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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var iCl,l9s,UsB,n9c,ydN,Ad3,Uc,Bl9,bCs,yg,Wo,g9d,u$l,Z9,e3,v99,Q_9,GN$,a_,qc3,M3G,k9,eKK,ScC,KBK,pos,FB3,o9g,rdl,$s_,Nl$,E9N,U7,Cm,hy,HC9,P5,bH,Yc9,Gv,ty,V3g,iml,x1,jh,Dro,WkC,Byd,ry,PHg,bm$,$1,g19,u8N,v1B,s7,CH$,E7,Gv3,q7N,mrg,gH,a7C,thK,b$,Rzc,hr,Zm$,ezc,xrC,Fkg,o1g,Mw,zzd,ry_,f7G,$rK,Ny9,E1g,Tyc,Y7s,Om9,lvc,UwN,yr$,h8K,bPB,P$_,pP,g83,LJK,jW,q59,R8_,avo,e8c,tWc,mwl,wH,sgc,rH,fP,Nw,X2l,s5,dwC,S59,kTN,Y8,KJG,cr$,p2g,xw9,FJc,j$G,o8G,w29,rro,I$,fvd,NH_,E8N,Iv$,y1,Y5o,icl,Wh,Ug9,AkK,VWG,WHB,Cw3,hIG,
GqK,gCd,LHl,MDg,RIK,eIC,mg$,SW$,kqK,ckg,xgo,oC9,rkg,zIs,$g_,ECG,VDK,SD,lY$,Uqd,nFB,jD,FO,wT,Il,YC,V1,bzC,Av,uRl,Gz$,L6K,qSc,Mc_,gE,RUd,vY,Qr,Gz,Jv,eU3,mq9,aYG,tcd,XY$,kzd,dqC,K6$,cv$,xqd,RV,Mq,jV9,F6$,oFo,rv$,wYo,zU$,fY$,$q3,cY,pz,xF,jc,oV,sVo,wE,TE9,Vc9,fz,i2$,lUl,DGB,Nq,UG_,nm$,yag,ES,BeB,IV,Pp9,b2d,HY,umC,gm9,vmd,QBl,GPK,Jad,Vr,LL9,qj$,lp,Mrs,RhK,DU,Uj,n2,yK,Z2c,mGo,ehs,Aa,tr_,X7B,Sj3,B7,ha,P7,bp,ge,up,kPl,dGC,caC,p79,jBd,FL3,omK,w7l,ra3,zhd,GP,fUN,$G9,sBG,EmG,TeN,IUc,H2l,Yjo,O2C,MG,VrB,ZU,er,
iwB,Uxg,nTc,yA9,W73,BsC,COg,gT_,ut9,vTo,Qjo,GC9,JAc,L7d,ZwN,Xm,e3l,mxg,ayo,tU$,XEN,Sdl,dxs,$x$,NsN,sjB,Iyc,HwN,xm,Ydc,iys,UV_,niC,yq9,Aq9,WUo,BMo,Ch9,hyd,byo,giC,lp9,ux_,vil,Qws,GpN,Jqo,LUl,qPs,MNs,Ryd,apG,eyg,SPK,tNg,X_B,KU_,cqG,p_l,kps,jwg,dVB,oiG,VK,w_K,iO,Dy,rqo,fpd,$VK,Eio,U1s,Ip_,TM_,YPK,VNo,Hy3,C0G,AfB,hGc,P0C,bkd,gg9,u2o,QN_,vgc,GZG,JfN,LvK,qZC,RG3,eGG,m13,aQB,X3B,tM$,rfG,AA,zGo,$1_,NtK,sNo,EgN,Ttd,Hk_,YZ9,Ok3,GC,JA,VMG,yc9,Mx,Rj,Cl9,PlN,M_c,tA,eg9,mKK,SG9,t_$,XS$,Kw,k8s,dKN,cco,pSB,xK9,jGo,
Fdo,oZ$,wS3,zg9,fJ3,NcK,$K9,Tcd,$T,Ed,Ht3,YG9,Ots,V_9,i6$,lll,UZ_,y3l,nHG,W_,Cy,vHN,gM,M9N,Rvo,uh,evC,Z6g,c3$,pG9,xZg,FWo,zv9,$ZK,NbN,s2c,EH$,Ilg,YLg,O6G,Jq,iBB,Rw,Dal,Ua$,nGB,AL_,l0$,V9d,yL9,qV,B$G,bBG,htd,vG3,QIB,JLc,Li3,qUG,M2B,SN,Rt$,et9,ZBg,ma3,t2$,Ky,kjK,xi,Fx,jN,pAC,SU_,wAs,CPc,bA_,PP9,vYg,zp,G73,q13,Mn$,sP,ZA$,Tp,Iw,aml,S1K,dMC,KE$,cHg,Yi,pdc,OP,xM3,FEo,oYK,wd9,rHd,fmG,DQ,$MN,NmC,nk,W3,Tml,Ims,HAC,Vns,iSd,DEG,UEc,h6G,P6B,Ww9,gxC,u4N,vxG,Jf,M1,RN,Lwo,q2_,mv,MV$,R6G,ZSN,e6s,aBB,tVK,XT9,S2N,
mEc,kss,X2,Kwc,Fw3,SM,jAB,ox$,dE9,wTG,dt,z6c,fB3,$EC,N0B,Exd,sA9,T03,Y2B,IBs,VV$,y6o,WQ9,CU9,bI3,PUd,hpB,g2g,uGN,QSG,J6l,Ga3,q99,zZ,Rp3,ZIo,epo,mAB,XHc,kad,S9N,dA$,KQ9,sZ,c6o,pHl,jSo,o2g,zpd,$AC,f5G,vS,NV9,FQN,OIg,i3o,lP_,Dt_,MK,UtK,yJB,Bj3,Pu_,hQG,vSC,Qes,GoK,JJ9,qtN,mtG,Mzd,Z3d,eQg,aPd,tzC,StK,X6K,dt9,kol,pt,K0l,p6K,xtK,w6C,ft,$Z,rJN,zQB,NK,se9,IG,HS,YZ,H3_,OG,VzB,ld,i7_,l19,Dl3,Ul_,n6,nB_,y49,A4G,Bug,hf_,gBl,vB9,ud,QJc,G3_,J4l,LFs,qBd,Ms_,Rf_,Z73,Gn,a13,tsK,XcK,SB9,k3l,dlo,KFl,c43,pcl,xlK,jJo,
FFs,oBl,mW,YBs,O79,a2,t3,Xy,Vs_,iUC,lsC,DN9,UN$,nfG,yud,h99,PVc,bU3,gfo,uPl,K6,p6,xH,j9,wb,rb,zn,Qn$,$H,JuG,NZ,LXl,qJ9,sL,Mdg,R9C,ZUl,KXo,pk$,wkC,$Ng,fsc,cuG,NX$,TXK,BPB,iYo,gu_,DQK,PJK,usB,OL,Qr$,iy,Jj9,L2K,M09,RsG,ZY_,mQB,UU,t0B,Xg$,SlK,kYg,dQo,K23,cjG,aNo,jr9,F2o,ou9,yX,NP9,sr9,$QG,TP3,INB,Ylc,OYg,HYG,yed,WpG,Cms,Pm3,vA,Je9,QOG,Gts,Zec,mD$,akl,tQd,X93,SV9,kt3,mi,w9g,zHd,Fp$,jOd,reB,Kpd,$D9,lVc,Etg,Thd,Ik9,P_d,go$,h0o,L89,C_9,dDN,J1o,sOK,i0N,b0G,fkc,p9G,ceN,xDo,otC,Bf9,fB,c1_,xhN,jLg,F83,ooG,Tf_,
VZd,iqC,iP,DJc,yiC,CIo,BNN,PI_,bq3,u7C,QT$,vvd,GyC,Jio,Lr9,qEG,RdN,MqK,uP,Xr_,tqC,aX_,KrN,SEc,ci3,dJ3,pr3,xJN,wrB,FrK,ovC,zd3,NNc,sTN,IX9,Hq$,YEg,OqG,i43,DdB,qM,nX_,WGd,yBg,Bkc,b4C,gX3,Qz9,JBC,mE,a1,RWl,Z4G,tH,Xb,eWc,Sn,kY,mdc,dm,afC,KA,ttc,XFC,pA,SrB,kMK,ddB,KGC,cBs,xd$,pFd,FGG,rBl,wFo,zW9,ff3,jzo,$d9,EX$,szB,oX$,Tkc,If3,wm,H4C,O4_,Yrl,Vts,iE_,D9c,lL$,U9B,z7,yS$,ASG,nqK,BLo,CDl,hFg,uwK,Ghs,RFK,aLB,fA,S4_,khB,$Y,d9C,I1,Hd,FCs,s1,VE,oq9,wI9,zFd,fLK,NLC,Eq$,TLc,ILs,HEg,VaG,nzN,DFG,OEl,yUN,AU9,yP,UF$,
We9,BT,B6$,CBB,hMs,PBB,vzG,bh9,u93,Le3,qyg,mFl,eMl,XmC,pm$,xFG,FeG,wml,rUG,fod,$F9,N6c,Ezd,T69,IoN,Ohl,DUd,UUN,VYG,yzN,WbK,AzB,nh3,BUl,hLo,PW9,bTc,gho,up9,qE,ME,eV,tO,G5$,Jz_,qFs,ZT3,X4,SV,eL$,kx,t8$,Xlc,SF9,KS,pls,ohN,rzc,zLo,fR9,NU3,sR3,EhK,HTo,pS,YF3,ib3,xx,lzN,yXK,jV,Bx3,F4,r0,zs,Cns,Pn9,hmB,gNl,ua3,vNC,QPB,bbo,Me3,Rmg,emB,az_,kmg,SYc,di3,cX_,pbK,xiK,jP_,FOC,oNs,wbB,fz_,rX_,E2,NxG,Ts,sP9,HT,Yx,ENG,TxC,IzN,HbB,YYl,O2,Ob9,Vec,iLG,lr9,UHK,nP3,y8c,A83,WS_,Cod,BIg,VP,Po$,gPG,uCB,vPg,Q8G,LS9,Ml$,U9,
ZLl,mH9,arG,tl9,Xp$,Sg9,kro,dHg,KS9,qgc,RNN,c8B,ppB,oPg,wp9,r8C,zNN,Ucd,A7G,WmB,BC9,y7d,u6B,G_l,vKN,J7s,M5s,ZpC,mcl,SaK,XPd,c7l,gV,pPg,xcN,uU,jpd,vH,FmB,oKs,wP9,znC,r7$,fO9,$cG,NCC,sp3,V5$,lWC,Ufo,DfB,Hpd,TCl,yVC,WlC,bn9,gAs,QdB,RVB,eV3,LI,mfB,tLG,Xz$,kL_,pz$,FlG,rVc,zVs,fWK,$fd,IW9,N7B,VLK,iiG,leB,UTc,eG,nsN,AZo,WRG,BDg,C3l,hRg,P39,bi3,uHK,vsg,XG,QxK,G29,LR9,k2,JZl,Mfs,mT_,cH,ae$,tfs,Xy3,dTG,KR_,SC3,pyC,osd,wy$,rZ$,wV,zR9,sxl,Eso,$2,Hic,TD9,Iec,Vfd,i5$,lxg,yMB,BA3,W59,AMG,CvG,PvK,b5C,Gdo,g0$,JM9,
qiG,L5B,axg,Si$,d$B,cM9,F5d,NA9,ez,E0$,Yig,VvC,Re,p3,yx$,Cc$,B3G,Pcl,bMl,urg,gMG,vMB,QZ$,xS,rus,Ax3,hr9,WzN,K3,Lzs,qQg,Mm_,Rrd,aSK,tmK,SQK,kAl,d3g,Kz_,cxK,Et,pqC,x3N,jZg,Fzl,oM$,YS,wqG,fS9,N3_,sZG,VmC,l2g,Dj9,Ujc,yC$,AC3,A4,BvC,CNG,h1G,PN3,bdg,gpc,vpg,Ge9,Ltc,qp_,a29,e1_,tpN,keG,djl,gu,KtG,cCB,pNC,Ft$,wN9,op3,z1C,$jo,L7,sf9,EpK,Nv9,TvG,I2o,Ypc,Vp_,Od9,i$B,HdG,l8C,DOs,UOd,nkl,y9C,A9B,WP_,B9N,Ca3,b$_,PaG,gkK,vkc,uuN,ql,Q4l,LPo,Z$d,G9c,a89,ty9,XON,S0c,KPc,wOo,r9B,f8_,$Oo,cc,T9c,O$s,lu9,p7,yK_,D2o,U2s,
nW9,AKl,PtB,wu,bFg,gWC,vW9,QoK,GWN,JKg,qAC,MPc,kW9,au3,XRB,K4d,d2$,cKK,pRC,jod,oW9,uYG,QH$,Gw3,Lu9,S39,Kug,p0N,xng,jHd,FuK,oOG,rYl,zeG,NZd,sH$,EO$,TZg,IZN,HuN,Y3_,Oul,lqC,yQ9,OB,VT,iV,AQd,W$g,UJ,Czo,JQ9,e2G,R2c,rQ3,z2K,fqc,PzB,GON,u_C,Ngc,sY3,EaC,Tgd,qhB,Iqg,Yhs,VwK,DYl,UY$,gX,bKo,uQ$,Q5l,Gks,qRl,R5g,MSK,mYc,tS9,pw_,KKC,SRC,cg$,kkc,xYN,wwB,XP,Sd,ID$,s53,YRc,OKC,iGg,lFg,dX,Dko,yR9,ARK,Wo$,Bil,Qbc,vRc,wX,Rq9,sJ,eq9,mk$,aFN,tu9,XfB,SDB,k6c,dkC,Ko3,cRN,pf_,TI,xkC,jb9,FoG,oRC,wf9,rRd,zqc,fFs,Hk,$kN,NiB,
sbl,ERB,Ti9,IFc,HGC,YDo,OGG,VuN,ixl,lcl,D4d,OJ,nn9,AP9,BpC,Pi9,u5C,vnK,QWK,JPK,qMK,MkK,Rld,Bg,tk9,m4o,XQG,SMB,kic,cPN,pQg,x4g,Fhs,qQ,wQl,Jj,zll,fcC,MQ,$4s,Npg,sWN,En9,ZN,YMG,Vkc,neB,UBN,A5G,W__,ku,B__,C9G,P93,ge$,u3G,QDB,GSc,bO_,J5N,ZO9,tg$,XxC,dP,S_o,kSg,xB$,dB$,c5o,pxs,zA9,F_3,f49,N_$,Eed,T__,I4B,HOl,Y_l,OOC,iV9,l$3,Dvd,Uv9,n4C,A2l,Br$,P4K,v4G,J2c,qnd,ZVd,or,e_c,mvg,a$s,tJB,X$9,kc$,dvs,K13,c23,p$3,xv3,ja9,F1c,o4B,w$N,r2G,f$l,z_C,sad,Trc,zY,I$c,OVG,YnK,laB,DWN,UW$,Aw3,CZ$,B8s,ywB,b99,PZ$,GDN,gw3,
El,vwK,ePs,qo9,Mjo,RPd,Z9B,mWg,tj3,aaG,TY,Ir,pvs,SoB,cwo,KnC,kDs,dWK,Fno,wv$,zP3,rw_,fad,EwN,stG,Ia9,O9g,if_,Yo_,ldN,UIo,DI9,yT9,Bn9,im,CAN,huc,gEc,JTG,eu9,Dk,ad9,Xid,Kql,dIG,SNG,kG$,W9,jK9,cT9,pio,FqK,wi9,oEd,fdN,$IK,sKd,EEo,Tns,Id9,HfG,OfC,VIg,qD,l6_,DpN,AtK,Wyg,mp,B2g,hS9,Lyd,kt,ufK,Jtg,vjc,QcN,Zv$,RS_,tbo,eSg,X4o,S8s,Ke,dpg,Kyl,cto,kHl,xt,p4d,c9,ojc,scg,Ejo,T2l,I6o,Hv9,Y89,lM3,Vb$,iRo,Ovg,UmG,A0g,Cf9,hil,bRc,vU9,gUl,ul_,Q39,J0_,LN_,qqo,MEc,Ri3,ZRG,mm3,$t,tEG,kRB,SqK,KNC,dm$,c0N,pJN,j3l,FNG,EUB,
NJd,HRl,Yqg,U_G,ncg,y$g,A$s,Wcl,Bas,PEC,bHd,gcC,vcB,QkN,GJs,J$3,LcC,q6G,RO9,ZHN,eOl,yl,X89,tBl,awB,m_d,kJs,c$C,d_K,x__,jk$,oc3,w8_,r$G,zOc,fwg,IwG,$_K,skc,EcK,HHN,Y69,OHc,TaG,h1,l_o,Uos,Do9,b_,nl9,Apg,Wx$,BdC,ypN,CMG,hac,PMg,b1N,gl$,vll,QEc,G0g,Jp3,Mis,qH9,a_g,Lxs,u_,tiB,RaB,mo_,SHs,k0g,doN,Kx3,cpC,xoB,jEC,Fx9,waB,rpC,f_G,NdB,H1_,Tdg,I_c,Eld,sEo,YHs,eZ,O1d,m8,ViN,ioK,SZ,nVl,Alo,WIK,Bw_,CYd,h4g,PY3,df,K0,QsB,gV$,bo$,u1l,XX$,mXN,vV9,e4c,pXl,xX_,jso,FI9,oV9,z4c,$X9,ss_,Tws,IHd,HoB,iJ_,VX9,lC3,U7B,Om,
Ahg,WVl,B19,Cs_,hwc,PsK,bJg,iI,lI,vrB,Qhc,Jhl,MxB,txg,KVg,d7G,chd,x7C,jhK,FV3,orl,wVo,rhK,Br,zwK,IC$,HJo,sho,N1N,T1o,Erd,lbB,D6G,U6_,n39,yFo,AFo,C7K,B43,Wac,JFo,QCs,LaG,qfB,M$o,eJ$,m6c,RJ_,ZZl,cFo,x6c,FaK,wsd,zJN,$6$,T49,IbC,HZ$,V$g,OZg,Yfd,i83,lKl,D89,U8o,n6$,yN3,AN_,WfB,Bzd,CSg,PS9,b8N,g63,uMo,v6B,Qvd,JNG,LfG,qkl,MTG,RBN,Z89,tTc,XBc,kQc,KfK,d8d,cNN,qJ,pBG,x8g,jvK,Ff_,zBC,rNG,fKs,$8G,Nzl,sv9,IK9,H8l,YkB,O8K,VT_,ir3,lTg,Dz9,UzG,n$K,yoC,WD_,AoC,BBC,CCK,hxc,PC9,brK,g$B,uKd,v$$,Sq,Gbd,Jo9,LDo,qXB,M4B,
ZrB,exG,mzN,aT9,t4K,XjG,kbC,dzd,coo,cr,juB,zxB,wjK,o$3,FDN,rol,NB$,su_,E$K,TBG,Hrg,YXK,OrG,ild,V4s,lgN,Dyd,UyN,AG$,WY$,B5B,CRd,hCG,PRN,uWl,vJ_,fq,qug,MHo,Zld,ag9,myK,tH$,XUB,$v,sE,kFc,dys,IT,Hr,xy_,KYG,cGK,oJ3,wUK,rG9,zCc,syl,T5g,Ig9,Hl_,Yu$,OlK,iQ9,lGc,D53,U5o,nDg,yDC,AD_,Vs,WAN,BoC,lq,CFo,hTB,PF$,bQs,gDG,uVl,n4,yd,vD9,QXB,AB,GKC,JD3,LAo,qv_,RT$,ZQC,m5g,kKG,Svo,XWg,d5c,KAs,wWg,x5l,jX_,FAc,pWK,oDN,rDo,zTg,$5l,sXc,BF,IGc,HQc,YvC,OQ_,V13,lIN,URo,As3,hD9,Bql,C4,WT$,vIN,Guo,hB,Jsg,LTN,qKc,MFG,RDg,eDN,
mRl,tFG,Xt3,kuG,dRg,xRB,pt9,FTC,oIG,wtN,rsc,fIC,$Rd,Nq_,s0l,EIc,Tqo,IIN,HWC,YKg,VFB,ij_,y_l,A_l,W3o,BYs,P1G,JB,uAC,vLB,Q9N,GgK,J_9,L3G,MRC,R73,Zj$,e7N,aAc,tRN,XCB,Md,STl,kgN,c_o,pCN,Rz,Zf,F3N,xus,oL_,z73,wCd,fAC,NY9,tB,s9_,EL$,Hjd,Ojd,XZ,iso,lhl,DLN,UL9,n_g,yE9,AEs,W9o,Prd,uTd,bsC,g_$,v_9,L9G,QFc,JEN,qs3,MoK,Rj3,mL9,ah9,too,Sso,kB$,jFK,xLC,fho,sFK,FZ,E_3,fQ$,TKc,IhB,YsK,iDB,lnC,BGK,CbC,hbg,Pb3,bD_,gQc,vQ_,QM3,JIN,qz$,GVs,LMc,RbG,M63,ebl,t6_,me3,Xeg,SzK,kV$,deG,KMc,cIg,xel,pe3,we3,fng,rI9,$e3,NGc,
sM9,Er,EQK,TG$,Iz,HD$,In_,Yzs,V6l,ODG,UbB,n5g,Ang,Wg9,C29,hYo,P2C,bgs,v5s,GX3,qb_,Lgc,MAK,RYc,ZgK,atC,jQN,kXo,o5c,wMB,zYd,fto,E53,TFl,Its,Hgo,Yb9,Og9,iXB,lEN,DSs,US$,AW$,BOl,WZK,gb3,uzG,vbd,Qi9,G$g,JWs,LZN,MOs,eo9,mSs,aEc,tOo,Xug,S$$,KZc,dSC,xS3,FZ9,obG,wuG,rWB,zo3,$S_,fEB,sil,Y$_,l39,ial,D0l,U0o,nyc,AbB,LE,BWg,ZL,hk9,baB,gy9,JbG,qwC,Zal,m0K,a3c,XDs,Sw$,kEd,Kjs,pDg,x0_,Fjg,rbs,wDs,oy$,Sa,f3c,zk3,$0N,NW$,sUB,Ey9,TW9,I3l,HaG,OaC,iNG,lio,DC$,UCC,n7B,yms,AmC,WsB,Ce3,h$B,PeK,Ls$,qx$,M7C,ZN3,e$G,mCs,Xn_,
xq,pnG,xCG,Fs$,o7$,wn9,rmK,z$B,Fw,HNo,B_,o7,rL,Yxl,ON3,l9r,Usk,Ds_,fE,n97,ydv,Adh,WB_;iCl=function(){var l,D;return typeof CSS!=="undefined"&&((D=(l=CSS).supports)==null?void 0:D.call(l,"selector(:has(*))"))};
l9s=function(l){return l.visibility!=="hidden"&&l.display!=="none"};
UsB=function(l){if(iCl()||l.tagName!=="DETAILS"?!l.matches(Dsg):l.querySelector("summary")!==null)return-1;l=l.getAttribute("tabindex")||"0";return Number(l)};
n9c=function(l){return l.some(function(D){return UsB(D)>0})};
ydN=function(l){if(l.textContent||l.ariaLabel)return!0;if(l instanceof HTMLInputElement){if(!l.labels)return!1;l=_.B(l.labels);for(var D=l.next();!D.done;D=l.next())if(D.value.textContent)return!0}return!1};
Ad3=function(l){return l.sort(function(D,U){return UsB(U)-UsB(D)})};
_.WBg=function(l){l=Array.from(l.querySelectorAll(Dsg)).filter(function(D){return(l9s(D.style)?l9s(window.getComputedStyle(D)):!1)&&ydN(D)});
return n9c(l)?Ad3(l):l};
_.D9=function(l,D){if(Error.captureStackTrace)Error.captureStackTrace(this,_.D9);else{var U=Error().stack;U&&(this.stack=U)}l&&(this.message=String(l));D!==void 0&&(this.cause=D)};
Uc=function(){throw Error("E");};
Bl9=function(l,D){D=String.fromCharCode.apply(null,D);return l==null?D:l+D};
bCs=function(l){var D=!1;D=D===void 0?!1:D;if(CGN){if(D&&(hKl?!l.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(l)))throw Error("F");l=(PGG||(PGG=new TextEncoder)).encode(l)}else{for(var U=0,n=new Uint8Array(3*l.length),y=0;y<l.length;y++){var A=l.charCodeAt(y);if(A<128)n[U++]=A;else{if(A<2048)n[U++]=A>>6|192;else{if(A>=55296&&A<=57343){if(A<=56319&&y<l.length){var C=l.charCodeAt(++y);if(C>=56320&&C<=57343){A=(A-55296)*1024+C-56320+65536;n[U++]=A>>18|
240;n[U++]=A>>12&63|128;n[U++]=A>>6&63|128;n[U++]=A&63|128;continue}else y--}if(D)throw Error("F");A=65533}n[U++]=A>>12|224;n[U++]=A>>6&63|128}n[U++]=A&63|128}}l=U===n.length?n:n.subarray(0,U)}return l};
yg=function(l){_.nC.setTimeout(function(){throw l;},0)};
_.Ad=function(l,D){return l.lastIndexOf(D,0)==0};
Wo=function(l,D){var U=l.length-D.length;return U>=0&&l.indexOf(D,U)==U};
_.hd=function(l){return/^[\s\xa0]*$/.test(l)};
_.bG=function(l,D){return l.indexOf(D)!=-1};
_.gl=function(l,D){return _.bG(l.toLowerCase(),D.toLowerCase())};
_.Qg=function(l,D){var U=0;l=uG(String(l)).split(".");D=uG(String(D)).split(".");for(var n=Math.max(l.length,D.length),y=0;U==0&&y<n;y++){var A=l[y]||"",C=D[y]||"";do{A=/(\d*)(\D*)(.*)/.exec(A)||["","","",""];C=/(\d*)(\D*)(.*)/.exec(C)||["","","",""];if(A[0].length==0&&C[0].length==0)break;U=g9d(A[1].length==0?0:parseInt(A[1],10),C[1].length==0?0:parseInt(C[1],10))||g9d(A[2].length==0,C[2].length==0)||g9d(A[2],C[2]);A=A[3];C=C[3]}while(U==0)}return U};
g9d=function(l,D){return l<D?-1:l>D?1:0};
_.LC=function(){var l=_.nC.navigator;return l&&(l=l.userAgent)?l:""};
u$l=function(l){if(!qs||!R_)return!1;for(var D=0;D<R_.brands.length;D++){var U=R_.brands[D].brand;if(U&&_.bG(U,l))return!0}return!1};
Z9=function(l){return _.bG(_.LC(),l)};
e3=function(){return qs?!!R_&&R_.brands.length>0:!1};
v99=function(){return e3()?!1:Z9("Opera")};
Q_9=function(){return e3()?!1:Z9("Trident")||Z9("MSIE")};
GN$=function(){return e3()?u$l("Microsoft Edge"):Z9("Edg/")};
a_=function(){return Z9("Firefox")||Z9("FxiOS")};
_.JdN=function(){return Z9("Safari")&&!(_.X$()||(e3()?0:Z9("Coast"))||v99()||(e3()?0:Z9("Edge"))||GN$()||(e3()?u$l("Opera"):Z9("OPR"))||a_()||Z9("Silk")||Z9("Android"))};
_.X$=function(){return e3()?u$l("Chromium"):(Z9("Chrome")||Z9("CriOS"))&&!(e3()?0:Z9("Edge"))||Z9("Silk")};
_.LB3=function(){return Z9("Android")&&!(_.X$()||a_()||v99()||Z9("Silk"))};
qc3=function(l){var D={};l.forEach(function(U){D[U[0]]=U[1]});
return function(U){return D[U.find(function(n){return n in D})]||""}};
M3G=function(l){var D=_.LC();if(l==="Internet Explorer"){if(Q_9())if((l=/rv: *([\d\.]*)/.exec(D))&&l[1])D=l[1];else{l="";var U=/MSIE +([\d\.]+)/.exec(D);if(U&&U[1])if(D=/Trident\/(\d.\d)/.exec(D),U[1]=="7.0")if(D&&D[1])switch(D[1]){case "4.0":l="8.0";break;case "5.0":l="9.0";break;case "6.0":l="10.0";break;case "7.0":l="11.0"}else l="7.0";else l=U[1];D=l}else D="";return D}var n=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");U=[];for(var y;y=n.exec(D);)U.push([y[1],y[2],y[3]||void 0]);
D=qc3(U);switch(l){case "Opera":if(v99())return D(["Version","Opera"]);if(e3()?u$l("Opera"):Z9("OPR"))return D(["OPR"]);break;case "Microsoft Edge":if(e3()?0:Z9("Edge"))return D(["Edge"]);if(GN$())return D(["Edg"]);break;case "Chromium":if(_.X$())return D(["Chrome","CriOS","HeadlessChrome"])}return l==="Firefox"&&a_()||l==="Safari"&&_.JdN()||l==="Android Browser"&&_.LB3()||l==="Silk"&&Z9("Silk")?(D=U[2])&&D[1]||"":""};
_.RKc=function(l){if(e3()&&l!=="Silk"){var D=R_.brands.find(function(U){return U.brand===l});
if(!D||!D.version)return NaN;D=D.version.split(".")}else{D=M3G(l);if(D==="")return NaN;D=D.split(".")}return D.length===0?NaN:Number(D[0])};
k9=function(){return qs?!!R_&&!!R_.platform:!1};
_.ZCc=function(){return k9()?R_.platform==="Android":Z9("Android")};
eKK=function(){return Z9("iPhone")&&!Z9("iPod")&&!Z9("iPad")};
_.dl=function(){return eKK()||Z9("iPad")||Z9("iPod")};
_.mso=function(){return k9()?R_.platform==="macOS":Z9("Macintosh")};
_.a9l=function(){return k9()?R_.platform==="Windows":Z9("Windows")};
_.t3_=function(){return k9()?R_.platform==="Chrome OS":Z9("CrOS")};
_.co=function(l){return l[l.length-1]};
_.pC=function(l,D,U){D=_.XoN(l,D,U);return D<0?null:typeof l==="string"?l.charAt(D):l[D]};
_.XoN=function(l,D,U){for(var n=l.length,y=typeof l==="string"?l.split(""):l,A=0;A<n;A++)if(A in y&&D.call(U,y[A],A,l))return A;return-1};
ScC=function(l){for(var D=_.x9,U=typeof l==="string"?l.split(""):l,n=l.length-1;n>=0;n--)if(n in U&&D.call(void 0,U[n],n,l))return n;return-1};
_.rl=function(l,D){return _.o_(l,D)>=0};
_.kNg=function(l,D){_.rl(l,D)||l.push(D)};
_.fC=function(l,D){D=_.o_(l,D);var U;(U=D>=0)&&_.dsg(l,D);return U};
_.dsg=function(l,D){Array.prototype.splice.call(l,D,1)};
_.$9=function(l){var D=l.length;if(D>0){for(var U=Array(D),n=0;n<D;n++)U[n]=l[n];return U}return[]};
_.sc=function(l,D){for(var U=1;U<arguments.length;U++){var n=arguments[U];if(_.Ns(n)){var y=l.length||0,A=n.length||0;l.length=y+A;for(var C=0;C<A;C++)l[y+C]=n[C]}else l.push(n)}};
_.cdG=function(l,D,U,n){Array.prototype.splice.apply(l,KBK(arguments,1))};
KBK=function(l,D,U){return arguments.length<=2?Array.prototype.slice.call(l,D):Array.prototype.slice.call(l,D,U)};
pos=function(l,D){D=D||l;for(var U=0,n=0,y={};n<l.length;){var A=l[n++],C=_.I_(A)?"o"+_.Ho(A):(typeof A).charAt(0)+A;Object.prototype.hasOwnProperty.call(y,C)||(y[C]=!0,D[U++]=A)}D.length=U};
_.j_3=function(l,D,U){U=U||_.xs$;for(var n=0,y=l.length,A;n<y;){var C=n+(y-n>>>1);var h=U(D,l[C]);h>0?n=C+1:(y=C,A=!h)}return A?n:-n-1};
_.Y9=function(l,D,U){if(!_.Ns(l)||!_.Ns(D)||l.length!=D.length)return!1;var n=l.length;U=U||FB3;for(var y=0;y<n;y++)if(!U(l[y],D[y]))return!1;return!0};
_.xs$=function(l,D){return l>D?1:l<D?-1:0};
FB3=function(l,D){return l===D};
o9g=function(l,D,U){D=Array.prototype.splice.call(l,D,1);Array.prototype.splice.call(l,U,0,D[0])};
rdl=function(l){return wol[l]||""};
$s_=function(l){if(!zKN)return _.Oc(l);l=f9d.test(l)?l.replace(f9d,rdl):l;l=atob(l);for(var D=new Uint8Array(l.length),U=0;U<l.length;U++)D[U]=l.charCodeAt(U);return D};
Nl$=function(l,D){l.__closure__error__context__984382||(l.__closure__error__context__984382={});l.__closure__error__context__984382.severity=D};
_.lH=function(l){l=Error(l);Nl$(l,"warning");return l};
E9N=function(l,D){if(l!=null){var U;var n=(U=s_9)!=null?U:s_9={};U=n[l]||0;U>=D||(n[l]=U+1,l=Error(),Nl$(l,"incident"),yg(l))}};
U7=function(l,D,U){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(U===void 0?0:U)&&Symbol.for&&l?Symbol.for(l):l!=null?Symbol(l):Symbol():D};
Cm=function(l,D){nm||_.y_ in l||Tld(l,I99);l[_.y_]|=D};
hy=function(l,D){nm||_.y_ in l||Tld(l,I99);l[_.y_]=D};
HC9=function(l){if(4&l)return 512&l?512:1024&l?1024:0};
P5=function(l){Cm(l,34);return l};
bH=function(l){Cm(l,8192);return l};
Yc9=function(l){Cm(l,32);return l};
Gv=function(){return typeof BigInt==="function"};
ty=function(l,D){return D===void 0?l.copyOnWrite!==eh&&!!(2&(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.y_]|0)):!!(2&D)&&l.copyOnWrite!==eh};
_.c5=function(l,D){if(l!=null)if(typeof l==="string")l=l?new Sh(l,k1):_.Km();else if(l.constructor!==Sh)if(OCK&&l!=null&&l instanceof Uint8Array)l=l.length?new Sh(new Uint8Array(l),k1):_.Km();else{if(!D)throw Error();l=void 0}return l};
V3g=function(l,D){if(typeof D!=="number"||D<0||D>=l.length)throw Error();};
iml=function(l,D,U){var n=D&128?0:-1,y=l.length,A;if(A=!!y)A=l[y-1],A=A!=null&&typeof A==="object"&&A.constructor===Object;var C=y+(A?-1:0);for(D=D&128?1:0;D<C;D++)U(D-n,l[D]);if(A){l=l[y-1];for(var h in l)!isNaN(h)&&U(+h,l[h])}};
x1=function(l){return l&128?pm:void 0};
jh=function(l){l.isGuard_doNotManuallySetPrettyPlease=!0;return l};
Dro=function(){var l=l7l;return jh(function(D){for(var U in l)if(D===l[U]&&!/^[0-9]+$/.test(U))return!0;return!1})};
_.F8=function(l){var D=l;if(Urc(D)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(D))throw Error(String(D));}else if(n1o(D)&&!Number.isSafeInteger(D))throw Error(String(D));return yyG?BigInt(l):l=Ayo(l)?l?"1":"0":Urc(l)?l.trim()||"0":String(l)};
WkC=function(l,D){if(l.length>D.length)return!1;if(l.length<D.length||l===D)return!0;for(var U=0;U<l.length;U++){var n=l[U],y=D[U];if(n>y)return!1;if(n<y)return!0}};
Byd=function(l){var D=l>>>0;og=D;wy=(l-D)/4294967296>>>0};
ry=function(l){if(l<0){Byd(-l);var D=_.B(CH$(og,wy));l=D.next().value;D=D.next().value;og=l>>>0;wy=D>>>0}else Byd(l)};
PHg=function(l){var D=hzg||(hzg=new DataView(new ArrayBuffer(8)));D.setFloat32(0,+l,!0);wy=0;og=D.getUint32(0,!0)};
bm$=function(l,D){var U=D*4294967296+(l>>>0);return Number.isSafeInteger(U)?U:_.fm(l,D)};
$1=function(l,D){var U=D&2147483648;U&&(l=~l+1>>>0,D=~D>>>0,l==0&&(D=D+1>>>0));l=bm$(l,D);return typeof l==="number"?U?-l:l:U?"-"+l:l};
g19=function(l){var D=og,U=wy,n=U>>31;U=(U<<1|D>>>31)^n;l(D<<1^n,U)};
u8N=function(l,D){var U=-(l&1);l=(l>>>1|D<<31)^U;return $1(l,D>>>1^U)};
_.fm=function(l,D){D>>>=0;l>>>=0;if(D<=2097151)var U=""+(4294967296*D+l);else Gv()?U=""+(BigInt(D)<<BigInt(32)|BigInt(l)):(U=(l>>>24|D<<8)&16777215,D=D>>16&65535,l=(l&16777215)+U*6777216+D*6710656,U+=D*8147497,D*=2,l>=1E7&&(U+=l/1E7>>>0,l%=1E7),U>=1E7&&(D+=U/1E7>>>0,U%=1E7),U=D+v1B(U)+v1B(l));return U};
v1B=function(l){l=String(l);return"0000000".slice(l.length)+l};
_.Qgs=function(l,D){D&2147483648?Gv()?l=""+(BigInt(D|0)<<BigInt(32)|BigInt(l>>>0)):(D=_.B(CH$(l,D)),l=D.next().value,D=D.next().value,l="-"+_.fm(l,D)):l=_.fm(l,D);return l};
s7=function(l){if(l.length<16)ry(Number(l));else if(Gv())l=BigInt(l),og=Number(l&BigInt(4294967295))>>>0,wy=Number(l>>BigInt(32)&BigInt(4294967295));else{var D=+(l[0]==="-");wy=og=0;for(var U=l.length,n=D,y=(U-D)%6+D;y<=U;n=y,y+=6)n=Number(l.slice(n,y)),wy*=1E6,og=og*1E6+n,og>=4294967296&&(wy+=Math.trunc(og/4294967296),wy>>>=0,og>>>=0);D&&(D=_.B(CH$(og,wy)),l=D.next().value,D=D.next().value,og=l,wy=D)}};
CH$=function(l,D){D=~D;l?l=~l+1:D+=1;return[l,D]};
E7=function(l){return Array.prototype.slice.call(l)};
_.Tv=function(l,D){throw Error(D===void 0?"unexpected value "+l+"!":D);};
_.Y1=function(l){if(l!=null&&typeof l!=="number")throw Error("L`"+typeof l+"`"+l);return l};
_.O7=function(l){if(l==null||typeof l==="number")return l;if(l==="NaN"||l==="Infinity"||l==="-Infinity")return Number(l)};
Gv3=function(l){if(l!=null&&typeof l!=="boolean")throw Error("M`"+_.i$(l)+"`"+l);return l};
_.Jys=function(l){if(l==null||typeof l==="boolean")return l;if(typeof l==="number")return!!l};
_.U5=function(l){switch(typeof l){case "bigint":return!0;case "number":return Dv(l);case "string":return Lk_.test(l);default:return!1}};
_.Ar=function(l){if(!Dv(l))throw _.lH("enum");return l|0};
_.W2=function(l){return l==null?l:Dv(l)?l|0:void 0};
q7N=function(l){if(typeof l!=="number")throw _.lH("int32");if(!Dv(l))throw _.lH("int32");return l|0};
_.B2=function(l){return l==null?l:q7N(l)};
_.CP=function(l){if(l==null)return l;if(typeof l==="string"&&l)l=+l;else if(typeof l!=="number")return;return Dv(l)?l|0:void 0};
_.Mh_=function(l){if(l==null)return l;if(typeof l==="string"&&l)l=+l;else if(typeof l!=="number")return;return Dv(l)?l>>>0:void 0};
mrg=function(l){var D=0;D=D===void 0?0:D;if(!_.U5(l))throw _.lH("int64");var U=typeof l;switch(D){case 512:switch(U){case "string":return hr(l);case "bigint":return String(P2(64,l));default:return Rzc(l)}case 1024:switch(U){case "string":return Zm$(l);case "bigint":return _.F8(P2(64,l));default:return ezc(l)}case 0:switch(U){case "string":return hr(l);case "bigint":return _.F8(P2(64,l));default:return b$(l)}default:return _.Tv(D,"Unknown format requested type for int64")}};
gH=function(l){return l==null?l:mrg(l)};
a7C=function(l){var D=l.length;if(l[0]==="-"?D<20||D===20&&l<="-9223372036854775808":D<19||D===19&&l<="9223372036854775807")return l;s7(l);return _.Qgs(og,wy)};
thK=function(l){if(l[0]==="-")var D=!1;else D=l.length,D=D<20?!0:D===20&&l<="18446744073709551615";if(D)return l;s7(l);return _.fm(og,wy)};
b$=function(l){l=u$(l);v2(l)||(ry(l),l=$1(og,wy));return l};
_.X5$=function(l){l=u$(l);l>=0&&v2(l)||(ry(l),l=bm$(og,wy));return l};
Rzc=function(l){l=u$(l);v2(l)?l=String(l):(ry(l),l=_.Qgs(og,wy));return l};
_.S7g=function(l){l=u$(l);l>=0&&v2(l)?l=String(l):(ry(l),l=_.fm(og,wy));return l};
hr=function(l){var D=u$(Number(l));if(v2(D))return String(D);D=l.indexOf(".");D!==-1&&(l=l.substring(0,D));return a7C(l)};
Zm$=function(l){var D=u$(Number(l));if(v2(D))return _.F8(D);D=l.indexOf(".");D!==-1&&(l=l.substring(0,D));return Gv()?_.F8(P2(64,BigInt(l))):_.F8(a7C(l))};
ezc=function(l){return v2(l)?_.F8(b$(l)):_.F8(Rzc(l))};
_.kvK=function(l){return v2(l)?_.F8(_.X5$(l)):_.F8(_.S7g(l))};
_.drK=function(l){var D=u$(Number(l));if(v2(D)&&D>=0)return String(D);D=l.indexOf(".");D!==-1&&(l=l.substring(0,D));return thK(l)};
_.Kkd=function(l){var D=u$(Number(l));if(v2(D)&&D>=0)return _.F8(D);D=l.indexOf(".");D!==-1&&(l=l.substring(0,D));return Gv()?_.F8((0,_.Jr)(64,BigInt(l))):_.F8(thK(l))};
_.p5c=function(l){if(l==null)return l;if(typeof l==="bigint")return cyo(l)?l=Number(l):(l=P2(64,l),l=cyo(l)?Number(l):String(l)),l;if(_.U5(l))return typeof l==="number"?b$(l):hr(l)};
xrC=function(l,D){D=D===void 0?!1:D;var U=typeof l;if(l==null)return l;if(U==="bigint")return String(P2(64,l));if(_.U5(l))return U==="string"?hr(l):D?Rzc(l):b$(l)};
_.jg$=function(l){var D=typeof l;if(l==null)return l;if(D==="bigint")return _.F8(P2(64,l));if(_.U5(l))return D==="string"?Zm$(l):ezc(l)};
Fkg=function(l){if(l==null)return l;var D=typeof l;if(D==="bigint")return String(P2(64,l));if(_.U5(l)){if(D==="string")return hr(l);if(D==="number")return b$(l)}};
o1g=function(l){if(l==null)return l;var D=typeof l;if(D==="bigint")return String((0,_.Jr)(64,l));if(_.U5(l)){if(D==="string")return _.drK(l);if(D==="number")return _.X5$(l)}};
_.LP=function(l){if(typeof l!=="string")throw Error();return l};
Mw=function(l){if(l!=null&&typeof l!=="string")throw Error();return l};
_.Zv=function(l){return l==null||typeof l==="string"?l:void 0};
zzd=function(l,D,U,n){if(l!=null&&l[a$]===tr)return l;if(!Array.isArray(l))return U?n&2?D[w5B]||(D[w5B]=ry_(D)):new D:void 0;U=l[_.y_]|0;n=U|n&32|n&2;n!==U&&hy(l,n);return new D(l)};
ry_=function(l){l=new l;P5(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return l};
f7G=function(l,D,U){l=D?q7N(l):_.CP(l);return l==null?U?0:void 0:l|0};
$rK=function(l){return l};
Ny9=function(l){return l};
E1g=function(l,D,U,n,y,A){l=zzd(l,n,U,A);y&&(l=sgc(l));return l};
Tyc=function(l){return[l,this.get(l)]};
Y7s=function(){return I79||(I79=new XJ(P5([]),void 0,void 0,void 0,HmB))};
Om9=function(l){var D=SW(dH);return D?l[D]:void 0};
lvc=function(l,D){var U=U===void 0?!1:U;if(SW(Vh3)&&SW(dH)&&void 0===Vh3){var n=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=n[dH];if(!y)return;if(y=y.reviveUnknownFields)try{y(n,D,iPB);return}catch(A){yg(A)}}U&&(l=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(U=SW(dH))&&U in l&&(l=l[U])&&delete l[D])};
UwN=function(l,D){var U=SW(dH),n;nm&&U&&((n=l[U])==null?void 0:n[D])!=null&&E9N(Dw3,3)};
yr$=function(l,D){D<100||E9N(n89,1)};
h8K=function(l,D,U,n){var y=n!==void 0;n=!!n;var A=SW(dH),C;!y&&nm&&A&&(C=l[A])&&ArN(C,yr$);A=[];var h=l.length;C=4294967295;var b=!1,u=!!(D&64),Q=u?D&128?0:-1:void 0;if(!(D&1)){var G=h&&l[h-1];G!=null&&typeof G==="object"&&G.constructor===Object?(h--,C=h):G=void 0;if(u&&!(D&128)&&!y){b=!0;var J;C=((J=WJB)!=null?J:$rK)(C-Q,Q,l,G,void 0)+Q}}D=void 0;for(J=0;J<h;J++){var L=l[J];if(L!=null&&(L=U(L,n))!=null)if(u&&J>=C){var R=J-Q,a=void 0;((a=D)!=null?a:D={})[R]=L}else A[J]=L}if(G)for(var S in G)h=G[S],
h!=null&&(h=U(h,n))!=null&&(J=+S,L=void 0,u&&!Number.isNaN(J)&&(L=J+Q)<C?A[L]=h:(J=void 0,((J=D)!=null?J:D={})[S]=h));D&&(b?A.push(D):A[C]=D);y&&SW(dH)&&(l=Om9(l))&&l instanceof BH$&&(A[dH]=C$c(l));return A};
bPB=function(l){l[0]=P$_(l[0]);l[1]=P$_(l[1]);return l};
P$_=function(l){switch(typeof l){case "number":return Number.isFinite(l)?l:""+l;case "bigint":return cyo(l)?Number(l):""+l;case "boolean":return l?1:0;case "object":if(Array.isArray(l)){var D=l[_.y_]|0;return l.length===0&&D&1?void 0:h8K(l,D,P$_)}if(l!=null&&l[a$]===tr)return g83(l);if(l instanceof Sh){D=l.JSC$8901_value_;if(D==null)l="";else if(typeof D==="string")l=D;else{if(zKN){for(var U="",n=0,y=D.length-10240;n<y;)U+=String.fromCharCode.apply(null,D.subarray(n,n+=10240));U+=String.fromCharCode.apply(null,
n?D.subarray(n):D);D=btoa(U)}else D=_.c2(D);l=l.JSC$8901_value_=D}return l}if(l instanceof XJ)return l=l.size!==0?uJl(l,bPB):void 0,l;return}return l};
pP=function(l,D){if(D){WJB=D==null||D===$rK||D[v8o]!==Q$9?$rK:D;try{return g83(l)}finally{WJB=void 0}}return g83(l)};
g83=function(l){l=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return h8K(l,l[_.y_]|0,P$_)};
LJK=function(l){switch(typeof l){case "boolean":return GTB||(GTB=[0,void 0,!0]);case "number":return l>0?void 0:l===0?Jrc||(Jrc=[0,void 0]):[-l,void 0];case "string":return[0,l];case "object":return l}};
jW=function(l,D){return q59(l,D[0],D[1])};
_.FJ=function(l,D,U){return q59(l,D,U,2048)};
q59=function(l,D,U,n){n=n===void 0?0:n;if(l==null){var y=32;U?(l=[U],y|=128):l=[];D&&(y=y&-16760833|(D&1023)<<14)}else{if(!Array.isArray(l))throw Error("O");y=l[_.y_]|0;if(MWc&&1&y)throw Error("P");2048&y&&!(2&y)&&R8_();if(y&256)throw Error("Q");if(y&64)return(y|n)!==y&&hy(l,y|n),l;if(U&&(y|=128,U!==l[0]))throw Error("R");a:{U=l;y|=64;var A=U.length;if(A){var C=A-1,h=U[C];if(h!=null&&typeof h==="object"&&h.constructor===Object){D=y&128?0:-1;C-=D;if(C>=1024)throw Error("T");for(var b in h)A=+b,A<C&&
(U[A+D]=h[b],delete h[b]);y=y&-16760833|(C&1023)<<14;break a}}if(D){b=Math.max(D,A-(y&128?0:-1));if(b>1024)throw Error("U");y=y&-16760833|(b&1023)<<14}}}hy(l,y|64|n);return l};
R8_=function(){if(MWc)throw Error("S");E9N(ZPg,5)};
avo=function(l,D){if(typeof l!=="object")return l;if(Array.isArray(l)){var U=l[_.y_]|0;return l.length===0&&U&1?void 0:e8c(l,U,D)}if(l!=null&&l[a$]===tr)return mwl(l);if(l instanceof XJ){D=l.arrayState;if(D&2)return l;if(!l.size)return;U=P5(uJl(l));if(l.valueCtor)for(l=0;l<U.length;l++){var n=U[l],y=n[1];y==null||typeof y!=="object"?y=void 0:y!=null&&y[a$]===tr?y=mwl(y):Array.isArray(y)?y=e8c(y,y[_.y_]|0,!!(D&32)):y=void 0;n[1]=y}return U}if(l instanceof Sh)return l};
e8c=function(l,D,U){if(D&2)return l;!U||4096&D||16&D?l=wH(l,D,!1,U&&!(D&16)):(Cm(l,34),D&4&&Object.freeze(l));return l};
tWc=function(l,D,U){l=new l.constructor(D);U&&(l.copyOnWrite=eh);l.noLegacyNull=eh;return l};
mwl=function(l){var D=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=D[_.y_]|0;return ty(l,U)?l:X2l(l,D,U)?tWc(l,D):wH(D,U)};
wH=function(l,D,U,n){n!=null||(n=!!(34&D));l=h8K(l,D,avo,n);n=32;U&&(n|=2);D=D&16769217|n;hy(l,D);return l};
sgc=function(l){var D=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=D[_.y_]|0;return ty(l,U)?X2l(l,D,U)?tWc(l,D,!0):new l.constructor(wH(D,U,!1)):l};
rH=function(l){if(l.copyOnWrite!==eh)return!1;var D=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;D=wH(D,D[_.y_]|0);Cm(D,2048);l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=D;l.copyOnWrite=void 0;l.noLegacyNull=void 0;return!0};
fP=function(l){if(!rH(l)&&ty(l,l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.y_]|0))throw Error();};
Nw=function(l,D){D===void 0&&(D=l[_.y_]|0);D&32&&!(D&4096)&&hy(l,D|4096)};
X2l=function(l,D,U){return U&2?!0:U&32&&!(U&4096)?(hy(D,U|2),l.copyOnWrite=eh,!0):!1};
s5=function(l,D,U,n,y){var A=U+(y?0:-1),C=l.length-1;if(C>=1+(y?0:-1)&&A>=C){var h=l[C];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[U]=n,D}if(A<=C)return l[A]=n,D;if(n!==void 0){var b;C=((b=D)!=null?b:D=l[_.y_]|0)>>14&1023||536870912;U>=C?n!=null&&(A={},l[C+(y?0:-1)]=(A[U]=n,A)):l[A]=n}return D};
_.H2=function(l,D,U,n,y){var A=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=A[_.y_]|0;n=ty(l,C)?1:n;y=!!y||n===3;n===2&&rH(l)&&(A=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=A[_.y_]|0);l=S59(A,D);var h=l===TT?7:l[_.y_]|0,b=kTN(h,C);var u=4&b?!1:!0;if(u){4&b&&(l=E7(l),h=0,b=I$(b,C),C=s5(A,C,D,l));for(var Q=0,G=0;Q<l.length;Q++){var J=U(l[Q]);J!=null&&(l[G++]=J)}G<Q&&(l.length=G);U=(b|4)&-513;b=U&=-1025;b&=-4097}b!==h&&(hy(l,b),2&b&&Object.freeze(l));return l=dwC(l,b,A,
C,D,n,u,y)};
dwC=function(l,D,U,n,y,A,C,h){var b=D;A===1||(A!==4?0:2&D||!(16&D)&&32&n)?Y8(D)||(D|=!l.length||C&&!(4096&D)||32&n&&!(4096&D||16&D)?2:256,D!==b&&hy(l,D),Object.freeze(l)):(A===2&&Y8(D)&&(l=E7(l),b=0,D=I$(D,n),n=s5(U,n,y,l)),Y8(D)||(h||(D|=16),D!==b&&hy(l,D)));2&D||!(4096&D||16&D)||Nw(U,n);return l};
S59=function(l,D,U){l=O5(l,D,U);return Array.isArray(l)?l:TT};
kTN=function(l,D){2&D&&(l|=2);return l|1};
Y8=function(l){return!!(2&l)&&!!(4&l)||!!(256&l)};
KJG=function(l){return _.c5(l,!0)};
cr$=function(l){l=E7(l);for(var D=0;D<l.length;D++){var U=l[D]=E7(l[D]);Array.isArray(U[1])&&(U[1]=P5(U[1]))}return bH(l)};
p2g=function(l,D){var U=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=U[_.y_]|0;a:{var y=n;n=ty(l,n);!n&&rH(l)&&(U=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=U[_.y_]|0);var A=O5(U,D);l=!1;if(A==null){if(n){D=Y7s();break a}A=[]}else if(A.constructor===XJ)if(A.arrayState&2&&!n)A=uJl(A);else{D=A;break a}else Array.isArray(A)?l=!!((A[_.y_]|0)&2):A=[];if(n){if(!A.length){D=Y7s();break a}l||(l=!0,P5(A))}else l&&(l=!1,bH(A),A=cr$(A));!l&&y&32&&Yc9(A);n=new XJ(A,void 0,f7G,f7G);
y=s5(U,y,D,n);l||Nw(U,y);D=n}return D};
_.Vq=function(l,D,U,n){fP(l);var y=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=y[_.y_]|0;if(U==null)return s5(y,A,D),l;var C=U===TT?7:U[_.y_]|0,h=C,b=Y8(C),u=b||Object.isFrozen(U);b||(C=0);u||(U=E7(U),h=0,C=I$(C,A),u=!1);C|=5;var Q;b=(Q=HC9(C))!=null?Q:0;for(Q=0;Q<U.length;Q++){var G=U[Q],J=n(G,b);Object.is(G,J)||(u&&(U=E7(U),h=0,C=I$(C,A),u=!1),U[Q]=J)}C!==h&&(u&&(U=E7(U),C=I$(C,A)),hy(U,C));s5(y,A,D,U);return l};
_.iw=function(l,D,U,n,y){fP(l);var A=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;s5(A,A[_.y_]|0,D,(n==="0"?Number(U)===0:U===n)?void 0:U,y);return l};
_.lw=function(l,D,U){if(D&2)throw Error();var n=x1(D),y=S59(l,U,n),A=y===TT?7:y[_.y_]|0,C=kTN(A,D);if(2&C||Y8(C)||16&C)C===A||Y8(C)||hy(y,C),y=E7(y),A=0,C=I$(C,D),s5(l,D,U,y,n);C&=-13;C!==A&&hy(y,C);return y};
xw9=function(l){if(nm){var D;return(D=l[Dj])!=null?D:l[Dj]=new Map}if(Dj in l)return l[Dj];D=new Map;Object.defineProperty(l,Dj,{value:D});return D};
FJc=function(l,D,U,n,y){var A=xw9(l),C=j$G(A,l,D,U,y);C!==n&&(C&&(D=s5(l,D,C,void 0,y)),A.set(U,n));return D};
j$G=function(l,D,U,n,y){var A=l.get(n);if(A!=null)return A;for(var C=A=0;C<n.length;C++){var h=n[C];O5(D,h,y)!=null&&(A!==0&&(U=s5(D,U,A,void 0,y)),A=h)}l.set(n,A);return A};
o8G=function(l,D,U,n,y){var A=!1;n=O5(l,n,y,function(C){var h=zzd(C,U,!1,D);A=h!==C&&h!=null;return h});
if(n!=null)return A&&!ty(n)&&Nw(l,D),n};
w29=function(l,D,U,n,y,A,C,h){var b=ty(l,U);A=b?1:A;C=!!C||A===3;b=h&&!b;(A===2||b)&&rH(l)&&(D=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=D[_.y_]|0);l=S59(D,y);var u=l===TT?7:l[_.y_]|0,Q=kTN(u,U);if(h=!(4&Q)){var G=l,J=U,L=!!(2&Q);L&&(J|=2);for(var R=!L,a=!0,S=0,d=0;S<G.length;S++){var c=zzd(G[S],n,!1,J);if(c instanceof n){if(!L){var N=ty(c);R&&(R=!N);a&&(a=N)}G[d++]=c}}d<S&&(G.length=d);Q|=4;Q=a?Q&-4097:Q|4096;Q=R?Q|8:Q&-9}Q!==u&&(hy(l,Q),2&Q&&Object.freeze(l));if(b&&!(8&Q||!l.length&&
(A===1||(A!==4?0:2&Q||!(16&Q)&&32&U)))){Y8(Q)&&(l=E7(l),Q=I$(Q,U),U=s5(D,U,y,l));n=l;b=Q;for(u=0;u<n.length;u++)G=n[u],Q=sgc(G),G!==Q&&(n[u]=Q);b|=8;Q=b=n.length?b|4096:b&-4097;hy(l,Q)}return l=dwC(l,Q,D,U,y,A,h,C)};
rro=function(l){l==null&&(l=void 0);return l};
I$=function(l,D){return l=(2&D?l|2:l&-3)&-273};
_.z89=function(l,D,U,n,y){fP(l);D=_.H2(l,D,y,2,!0);var A;y=(A=HC9(D===TT?7:D[_.y_]|0))!=null?A:0;D.push(U(n,y));return l};
fvd=function(l,D,U,n,y,A,C){fP(l);var h=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l=w29(l,h,h[_.y_]|0,U,D,2,!0);if(A&&C)y!=null||(y=l.length-1),V3g(l,y),l.splice(y,A),l.length||(l[_.y_]&=-4097);else{if(A){if(typeof y!=="number"||y<0||y>l.length)throw Error();}else n=n!=null?n:new U;y!=void 0?l.splice(y,A,n):l.push(n);y=U=l===TT?7:l[_.y_]|0;(n=ty(n))?(U&=-9,l.length===1&&(U&=-4097)):U|=4096;U!==y&&hy(l,U);n||Nw(h)}};
NH_=function(l,D){if(typeof l==="string")return new nc($s_(l),D);if(Array.isArray(l))return new nc(new Uint8Array(l),D);if(l.constructor===Uint8Array)return new nc(l,!1);if(l.constructor===ArrayBuffer)return l=new Uint8Array(l),new nc(l,!1);if(l.constructor===Sh)return D=$wg(l)||new Uint8Array(0),new nc(D,!0,l);if(l instanceof Uint8Array)return l=l.constructor===Uint8Array?l:new Uint8Array(l.buffer,l.byteOffset,l.byteLength),new nc(l,!1);throw Error();};
E8N=function(l){switch(typeof l){case "string":s$9(l)}};
Iv$=function(l){switch(typeof l){case "string":TH9(l)}};
y1=function(){var l=function(){throw Error();};
Object.setPrototypeOf(l,l.prototype);return l};
Y5o=function(l,D){var U=U===void 0?HPN:U;return new Ak(l,D,U)};
icl=function(l,D,U,n,y){OP9(l,U,VWG(D,n),y)};
Wh=function(l,D,U,n){var y=n[l];if(y)return y;y={};y.binaryFields=n;y.messageMetadata=LJK(n[0]);var A=n[1],C=1;A&&A.constructor===Object&&(y.extensions=A,A=n[++C],typeof A==="function"&&(y.isMessageSet=!0,lj$!=null||(lj$=A),Dg_!=null||(Dg_=n[C+1]),A=n[C+=2]));for(var h={};A&&Ug9(A);){for(var b=0;b<A.length;b++)h[A[b]]=A;A=n[++C]}for(b=1;A!==void 0;){typeof A==="number"&&(b+=A,A=n[++C]);var u=void 0;if(A instanceof Ak)var Q=A;else Q=nCc,C--;A=void 0;if((A=Q)==null?0:A.$$isMsg){A=n[++C];u=n;var G=C;
typeof A==="function"&&(A=A(),u[G]=A);u=A}A=n[++C];G=b+1;typeof A==="number"&&A<0&&(G-=A,A=n[++C]);for(;b<G;b++){var J=h[b];u?U(y,b,Q,u,J):D(y,b,Q,J)}}return n[l]=y};
Ug9=function(l){return Array.isArray(l)&&!!l.length&&typeof l[0]==="number"&&l[0]>0};
AkK=function(l){return Array.isArray(l)?l[0]instanceof Ak?l:[ykl,l]:[l,void 0]};
VWG=function(l,D){if(l instanceof _.Bh)return l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(l))return jW(l,D)};
WHB=function(l,D,U,n){var y=U.$$binaryReaderFn;l[D]=n?function(A,C,h){return y(A,C,h,n)}:y};
Cw3=function(l,D,U,n,y){var A=U.$$binaryReaderFn,C,h;l[D]=function(b,u,Q){return A(b,u,Q,h||(h=Wh(BTC,WHB,Cw3,n).messageMetadata),C||(C=hIG(n)),y)}};
hIG=function(l){var D=l[PwG];if(D!=null)return D;var U=Wh(BTC,WHB,Cw3,l);D=U.isMessageSet?function(n,y){return lj$(n,y,U)}:function(n,y){for(;bcB(y)&&y.nextWireType_!=4;){var A=y.nextField_,C=U[A];
if(C==null){var h=U.extensions;h&&(h=h[A])&&(h=gCd(h),h!=null&&(C=U[A]=h))}if(C==null||!C(y,n,A)){h=y;C=h.fieldCursor_;uO9(h);if(h.discardUnknownFields)var b=void 0;else{var u=h.decoder_.cursor_-C;h.decoder_.cursor_=C;b=vCB(h.decoder_,u)}u=h=C=void 0;var Q=n;b&&((C=(h=(u=Q[dH])!=null?u:Q[dH]=new BH$)[A])!=null?C:h[A]=[]).push(b)}}if(n=Om9(n))n.reviveUnknownFields=U.binaryFields[Qlc];return!0};
l[PwG]=D;l[Qlc]=GqK.bind(l);return D};
GqK=function(l,D,U,n){var y=this[BTC],A=this[PwG],C=jW(void 0,y.messageMetadata),h=Om9(l);if(h){var b=!1,u=y.extensions;if(u){y=function(R,a,S){if(S.length!==0)if(u[a])for(R=_.B(S),a=R.next();!a.done;a=R.next()){a=Jk_(a.value);try{b=!0,A(C,a)}finally{a.free()}}else n==null||n(l,a,S)};
if(D==null)ArN(h,y);else if(h!=null){var Q=h[D];Q&&y(h,D,Q)}if(b){var G=l[_.y_]|0;if(G&2&&G&2048&&(U==null||!U.reviveIntoImmutable))throw Error();var J=x1(G),L=function(R,a){if(O5(l,R,J)!=null)switch(U==null?void 0:U.resolutionBehavior){case 1:return;default:throw Error();}a!=null&&(G=s5(l,G,R,a,J));delete h[R]};
D==null?iml(C,C[_.y_]|0,function(R,a){L(R,a)}):L(D,O5(C,D,J))}}}};
gCd=function(l){l=AkK(l);var D=l[0].$$binaryReaderFn;if(l=l[1]){var U=hIG(l),n=Wh(BTC,WHB,Cw3,l).messageMetadata;return function(y,A,C){return D(y,A,C,n,U)}}return D};
LHl=function(l,D,U){l[D]=U.$$binaryWriterFn};
MDg=function(l,D,U,n){var y,A,C=U.$$binaryWriterFn;l[D]=function(h,b,u){return C(h,b,u,A||(A=Wh(qW3,LHl,MDg,n).messageMetadata),y||(y=RIK(n)))}};
RIK=function(l){var D=l[Zcl];if(!D){var U=Wh(qW3,LHl,MDg,l);D=function(n,y){return eIC(n,y,U)};
l[Zcl]=D}return D};
eIC=function(l,D,U){iml(l,l[_.y_]|0,function(n,y){if(y!=null){var A=mg$(U,n);A?A(D,y,n):n<500||E9N(ajK,3)}});
(l=Om9(l))&&ArN(l,function(n,y,A){Cc(D,D.encoder_.end());for(n=0;n<A.length;n++)Cc(D,$wg(A[n])||new Uint8Array(0))})};
mg$=function(l,D){var U=l[D];if(U)return U;if(U=l.extensions)if(U=U[D]){U=AkK(U);var n=U[0].$$binaryWriterFn;if(U=U[1]){var y=RIK(U),A=Wh(qW3,LHl,MDg,U).messageMetadata;U=l.isMessageSet?Dg_(A,y):function(C,h,b){return n(C,h,b,A,y)}}else U=n;
return l[D]=U}};
_.tDK=function(l,D,U){if(Array.isArray(D)){var n=D[_.y_]|0;if(n&4)return D;for(var y=0,A=0;y<D.length;y++){var C=l(D[y]);C!=null&&(D[A++]=C)}A<y&&(D.length=A);l=n|1;U&&(l=(l|4)&-1537);l!==n&&hy(D,l);U&&l&2&&Object.freeze(D);return D}};
_.Ph=function(l,D,U){return new Ak(l,D,U)};
_.XhB=function(l,D,U){return new Ak(l,D,U)};
_.bw=function(l,D,U){s5(l,l[_.y_]|0,D,U,x1(l[_.y_]|0))};
SW$=function(l,D,U){D=_.O7(D);D!=null&&(_.gT(l,U,1),l=l.encoder_,U=hzg||(hzg=new DataView(new ArrayBuffer(8))),U.setFloat64(0,+D,!0),og=U.getUint32(0,!0),wy=U.getUint32(4,!0),_.vh(l,og),_.vh(l,wy))};
kqK=function(l,D,U){D=_.O7(D);D!=null&&(_.gT(l,U,5),l=l.encoder_,PHg(D),_.vh(l,og))};
_.Jk=function(l,D,U){D=Fkg(D);if(D!=null&&(E8N(D),D!=null))switch(_.gT(l,U,0),typeof D){case "number":l=l.encoder_;ry(D);Gq(l,og,wy);break;case "bigint":U=BigInt.asUintN(64,D);U=new dgc(Number(U&BigInt(4294967295)),Number(U>>BigInt(32)));Gq(l.encoder_,U.JSC$8944_lo,U.JSC$8944_hi);break;default:U=s$9(D),Gq(l.encoder_,U.JSC$8944_lo,U.JSC$8944_hi)}};
ckg=function(l,D,U){D=o1g(D);if(D!=null&&(Iv$(D),D!=null))switch(_.gT(l,U,0),typeof D){case "number":l=l.encoder_;ry(D);Gq(l,og,wy);break;case "bigint":U=KHB(D);Gq(l.encoder_,U.JSC$8942_lo,U.JSC$8942_hi);break;default:U=TH9(D),Gq(l.encoder_,U.JSC$8942_lo,U.JSC$8942_hi)}};
xgo=function(l,D,U){D=_.CP(D);D!=null&&D!=null&&(_.gT(l,U,0),_.phC(l.encoder_,D))};
_.FHc=function(l,D,U){jlC(l,U,o1g(D))};
oC9=function(l,D,U){D=_.Jys(D);D!=null&&(_.gT(l,U,0),l.encoder_.JSC$8946_buffer_.push(D?1:0))};
rkg=function(l,D,U){D=_.Zv(D);D!=null&&wh3(l,U,bCs(D))};
zIs=function(l,D,U,n,y){OP9(l,U,VWG(D,n),y)};
_.fj$=function(l,D,U){D=D==null||typeof D=="string"||D instanceof Sh?D:void 0;D!=null&&wh3(l,U,NH_(D,!0).buffer)};
$g_=function(l,D,U){D=_.Mh_(D);D!=null&&D!=null&&(_.gT(l,U,0),Lc(l.encoder_,D))};
_.NTC=function(l,D,U){D=_.CP(D);D!=null&&(D=parseInt(D,10),_.gT(l,U,0),_.phC(l.encoder_,D))};
_.qg=function(l,D){return function(U,n){var y={treatNewDataAsImmutable:!0};n&&Object.assign(y,n);U=Jk_(U,void 0,void 0,y);try{var A=new l,C=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;hIG(D)(C,U);var h=A}finally{U.free()}return h}};
_.Mg=function(l){return function(D){return sl9(D,l)}};
ECG=function(l){return function(){return sl9(this,l)}};
_.TTl=function(l){return jh(function(D){return D instanceof l&&!ty(D)})};
_.eD=function(l){return function(D){return Ijd(l,D)}};
VDK=function(l,D){return HcC({child:l,origin:D||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:YW_,getPayloadCase:function(U){return U.getPayloadCase()},
createInitMessage:function(U){var n=new mH,y=new OcN;U=_.al(y,1,U);return _.tk(n,5,XO,U)}})};
SD=function(l){return{valueOf:l}.valueOf()};
lY$=function(){var l=null;if(!izB)return l;try{var D=function(U){return U};
l=izB.createPolicy("goog#html",{createHTML:D,createScript:D,createScriptURL:D})}catch(U){}return l};
Uqd=function(){Dq_===void 0&&(Dq_=lY$());return Dq_};
_.dT=function(l){var D=Uqd();l=D?D.createScriptURL(l):l;return new kC(l)};
_.Kc=function(l){if(l instanceof kC)return l.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.pc=function(l){return Object.isFrozen(l)&&Object.isFrozen(l.raw)};
nFB=function(l){return l.toString().indexOf("`")===-1};
jD=function(l){return new _.xC(yvB,l)};
FO=function(l){return l instanceof _.xC};
_.ol=function(l){if(FO(l))return l.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
wT=function(l){return new Avg(function(D){return D.substr(0,l.length+1).toLowerCase()===l+":"})};
_.rT=function(l,D){D=D===void 0?W6C:D;if(FO(l))return l;for(var U=0;U<D.length;++U){var n=D[U];if(n instanceof Avg&&n.isValid(l))return jD(l)}};
_.Ng=function(l,D){D=D===void 0?W6C:D;return _.rT(l,D)||zq};
_.sW=function(l){var D=window;if(typeof MediaSource!=="undefined"&&l instanceof MediaSource||typeof D.ManagedMediaSource!=="undefined"&&l instanceof D.ManagedMediaSource)return jD(URL.createObjectURL(l));D=l.type;D.toLowerCase()==="application/octet-stream"?D=!0:(D=D.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),D=(D==null?void 0:D.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(D[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(D[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(D[1])||/^font\/[\w-]+$/i.test(D[1])));if(!D)throw Error("Z");return jD(URL.createObjectURL(l))};
_.BEN=function(l){for(var D=_.EW.apply(1,arguments),U=[l[0]],n=0;n<D.length;n++)U.push(String(D[n])),U.push(l[n+1]);return jD(U.join(""))};
_.hUs=function(l){if(!C8N){a:{var D=document.createElement("a");try{D.href=l}catch(U){l=void 0;break a}l=D.protocol;l=l===":"||l===""?"https:":l}return l}try{D=new URL(l)}catch(U){return"https:"}return D.protocol};
_.Tq=function(l){l instanceof _.xC?l=_.ol(l):l=P8c.test(l)?l:void 0;return l};
Il=function(l,D){D=_.Tq(D);D!==void 0&&(l.href=D)};
YC=function(l){var D=Uqd();l=D?D.createHTML(l):l;return new Hh(l)};
V1=function(l){if(l instanceof Hh)return l.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.i8=function(l,D){l.src=_.Kc(D).toString()};
bzC=function(l,D){l.setAttribute("sandbox","");for(var U=0;U<D.length;U++)l.sandbox.supports&&!l.sandbox.supports(D[U])||l.sandbox.add(D[U])};
_.l8=function(l,D,U){l.removeAttribute("srcdoc");switch(D){case 0:if(U instanceof kC)throw new gF9("TrustedResourceUrl",0);bzC(l,[]);D=_.Tq(U);D!==void 0&&(l.src=D);break;case 1:if(!(U instanceof kC))throw new gF9(typeof U,1);bzC(l,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.i8(l,U);break;case 2:if(U instanceof kC)throw new gF9("TrustedResourceUrl",2);bzC(l,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
D=_.Tq(U);D!==void 0&&(l.src=D);break;default:_.Tv(D)}};
_.DY=function(l,D,U,n){D=_.Tq(D);return D!==void 0?l.open(D,U,n):null};
_.US=function(l){l=l===void 0?document:l;var D,U;l=(U=(D=l).querySelector)==null?void 0:U.call(D,"script[nonce]");return l==null?"":l.nonce||l.getAttribute("nonce")||""};
_.yr=function(l){var D=Uqd();l=D?D.createScript(l):l;return new _.nz(l)};
Av=function(l){if(l instanceof _.nz)return l.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
uRl=function(l){var D=_.US(l.ownerDocument);D&&l.setAttribute("nonce",D)};
_.WY=function(l,D){l.textContent=Av(D);uRl(l)};
_.BY=function(l,D){l.src=_.Kc(D);uRl(l)};
_.Cz=function(l,D){if(l.nodeType===1&&/^(script|style)$/i.test(l.tagName))throw Error("Z");l.innerHTML=V1(D)};
_.hv=function(l,D,U,n){if(l.length===0)throw Error("Z");l=l.map(function(A){if(A instanceof vFK)A=A.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return A});
var y=U.toLowerCase();if(l.every(function(A){return y.indexOf(A)!==0}))throw Error("aa`"+U);
D.setAttribute(U,n)};
_.PY=function(l,D,U){if(D instanceof kC)l.href=_.Kc(D).toString(),l.rel=U;else{if(QV$.indexOf(U)===-1)throw Error("ba`"+U);D=_.Tq(D);D!==void 0&&(l.href=D,l.rel=U)}};
Gz$=function(l){if(l instanceof b8)return l.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.Jvo=function(l,D){D=_.Tq(D);D!==void 0&&(l.href=D)};
L6K=function(l){return new Worker(_.Kc(l),void 0)};
qSc=function(l){return _.dT(l)};
Mc_=function(l,D){l&&(D=l.indexOf(D),0<=D&&l.splice(D,1))};
gE=function(l){return typeof l==="function"};
RUd=function(l){return l instanceof u8||l&&"closed"in l&&gE(l.remove)&&gE(l.add)&&gE(l.unsubscribe)};
vY=function(){};
Qr=function(l){Zzs(function(){throw l;})};
Gz=function(l){return l};
Jv=function(){return eU3(_.EW.apply(0,arguments))};
eU3=function(l){return l.length===0?Gz:l.length===1?l[0]:function(D){return l.reduce(function(U,n){return n(U)},D)}};
mq9=function(l){var D;return(D=l!=null?l:void 0)!=null?D:Promise};
aYG=function(l,D){return new Lz(function(U){var n=0;return D.schedule(function(){n===l.length?U.complete():(U.next(l[n++]),U.closed||this.schedule())})})};
tcd=function(l,D){if(!l)throw Error("ca");return new Lz(function(U){var n=new u8;n.add(D.schedule(function(){var y=l[Symbol.asyncIterator]();n.add(D.schedule(function(){var A=this;y.next().then(function(C){C.done?U.complete():(U.next(C.value),A.schedule())})}))}));
return n})};
XY$=function(l,D,U){D=D.schedule(function(){try{U.call(this)}catch(n){l.error(n)}},0);
l.add(D)};
kzd=function(l,D){return new Lz(function(U){var n;U.add(D.schedule(function(){n=l[SS$]();XY$(U,D,function(){var y=n.next(),A=y.value;y.done?U.complete():(U.next(A),this.schedule())})}));
return function(){var y;return gE((y=n)==null?void 0:y.return)&&n.return()}})};
dqC=function(l,D){return new Lz(function(U){var n=new u8;n.add(D.schedule(function(){var y=l[qq]();n.add(y.subscribe({next:function(A){n.add(D.schedule(function(){return U.next(A)}))},
error:function(A){n.add(D.schedule(function(){return U.error(A)}))},
complete:function(){n.add(D.schedule(function(){return U.complete()}))}}))}));
return n})};
K6$=function(l,D){return new Lz(function(U){return D.schedule(function(){return l.then(function(n){U.add(D.schedule(function(){U.next(n);U.add(D.schedule(function(){return U.complete()}))}))},function(n){U.add(D.schedule(function(){return U.error(n)}))})})})};
cv$=function(l){return new TypeError("da`"+(l!==null&&typeof l==="object"?"an invalid object":"'"+l+"'"))};
xqd=function(l,D){if(l!=null){if(gE(l[qq]))return dqC(l,D);if(pYo(l))return aYG(l,D);if(gE(l==null?void 0:l.then))return K6$(l,D);if(Symbol.asyncIterator&&gE(l==null?void 0:l[Symbol.asyncIterator]))return tcd(l,D);if(gE(l==null?void 0:l[SS$]))return kzd(l,D)}throw cv$(l);};
RV=function(l,D){return D?xqd(l,D):Mq(l)};
Mq=function(l){if(l instanceof Lz)return l;if(l!=null){if(gE(l[qq]))return jV9(l);if(pYo(l))return F6$(l);if(gE(l==null?void 0:l.then))return oFo(l);if(Symbol.asyncIterator&&gE(l==null?void 0:l[Symbol.asyncIterator]))return wYo(l);if(gE(l==null?void 0:l[SS$]))return rv$(l)}throw cv$(l);};
jV9=function(l){return new Lz(function(D){var U=l[qq]();if(gE(U.subscribe))return U.subscribe(D);throw new TypeError("ea");})};
F6$=function(l){return new Lz(function(D){for(var U=0;U<l.length&&!D.closed;U++)D.next(l[U]);D.complete()})};
oFo=function(l){return new Lz(function(D){l.then(function(U){D.closed||(D.next(U),D.complete())},function(U){return D.error(U)}).then(null,Qr)})};
rv$=function(l){return new Lz(function(D){for(var U=l[SS$]();!D.closed;){var n=U.next(),y=n.value;n.done?D.complete():D.next(y)}return function(){return gE(U==null?void 0:U.return)&&U.return()}})};
wYo=function(l){return new Lz(function(D){zU$(l,D).catch(function(U){return D.error(U)})})};
zU$=function(l,D){var U,n,y,A,C,h;return _.P(function(b){switch(b.nextAddress){case 1:_.ZY(b,2,3),A=_.m6(l);case 5:return b.yield(A.next(),8);case 8:n=b.yieldResult;if(n.done){b.jumpTo(3);break}C=n.value;D.next(C);b.jumpTo(5);break;case 3:_.aV(b);_.tv(b,9);if(!n||n.done||!(y=A.return)){b.jumpTo(9);break}return b.yield(y.call(A),9);case 9:_.aV(b,0,0,1);if(U)throw U.error;_.Sc(b,10,1);break;case 10:_.Sc(b,4);break;case 2:h=_.kF(b);U={error:h};b.jumpTo(3);break;case 4:D.complete(),_.Kz(b)}})};
fY$=function(l,D){return D?aYG(l,D):F6$(l)};
$q3=function(l){return gE(l[l.length-1])?l.pop():void 0};
cY=function(l){var D=l[l.length-1];return D&&gE(D.schedule)?l.pop():void 0};
pz=function(){var l=_.EW.apply(0,arguments),D=cY(l);return D?aYG(l,D):fY$(l)};
xF=function(l){var D=gE(l)?l:function(){return l};
return new Lz(function(U){return U.error(D())})};
jc=function(l){return function(D){if(gE(D==null?void 0:D.lift))return D.lift(function(U){try{return l(U,this)}catch(n){this.error(n)}});
throw new TypeError("fa");}};
oV=function(){return jc(function(l,D){var U=null;l._refCount++;var n=new FR(D,void 0,void 0,void 0,function(){if(!l||l._refCount<=0||0<--l._refCount)U=null;else{var y=l._connection,A=U;U=null;!y||A&&y!==A||y.unsubscribe();D.unsubscribe()}});
l.subscribe(n);n.closed||(U=l.connect())})};
sVo=function(){var l=NEl;var D=D===void 0?0:D;return jc(function(U,n){n.add(l.schedule(function(){return U.subscribe(n)},D))})};
wE=function(l){return jc(function(D,U){var n=0;D.subscribe(new FR(U,function(y){U.next(l.call(void 0,y,n++))}))})};
TE9=function(l){return wE(function(D){return EFN(D)?l.apply(null,_.zz(D)):l(D)})};
Vc9=function(l){if(l.length===1){var D=l[0];if(IYd(D))return{args:D,keys:null};if(D&&typeof D==="object"&&Hzd(D)===YSN)return l=Ozd(D),{args:l.map(function(U){return D[U]}),
keys:l}}return{args:l,keys:null}};
fz=function(){var l=_.EW.apply(0,arguments),D=cY(l),U=$q3(l);l=Vc9(l);var n=l.args,y=l.keys;if(n.length===0)return RV([],D);D=new Lz(i2$(n,D,y?function(A){for(var C={},h=0;h<A.length;h++)C[y[h]]=A[h];return C}:Gz));
return U?D.pipe(TE9(U)):D};
i2$=function(l,D,U){U=U===void 0?Gz:U;return function(n){lUl(D,function(){for(var y=l.length,A=Array(y),C=y,h=l.map(function(){return!1}),b=!0,u={i$jscomp$217:0};u.i$jscomp$217<y;u={i$jscomp$217:u.i$jscomp$217},u.i$jscomp$217++)lUl(D,function(Q){return function(){RV(l[Q.i$jscomp$217],D).subscribe(new $F(n,function(G){A[Q.i$jscomp$217]=G;
b&&(h[Q.i$jscomp$217]=!0,b=!h.every(Gz));b||n.next(U(A.slice()))},function(){return--C===0}))}}(u),n)},n)}};
lUl=function(l,D,U){l?U.add(l.schedule(D)):D()};
DGB=function(l,D,U,n){var y=[],A=0,C=0,h=!1,b=function(u){A++;Mq(U(u,C++)).subscribe(new FR(D,function(Q){D.next(Q)},void 0,function(){A--;
for(var Q={};y.length&&A<n;Q={bufferedValue:void 0})Q.bufferedValue=y.shift(),b(Q.bufferedValue);!h||y.length||A||D.complete()}))};
l.subscribe(new FR(D,function(u){return A<n?b(u):y.push(u)},void 0,function(){h=!0;
!h||y.length||A||D.complete()}));
return function(){y=null}};
Nq=function(l,D){var U=U===void 0?Infinity:U;if(gE(D))return Nq(function(n,y){return wE(function(A,C){return D(n,A,y,C)})(Mq(l(n,y)))},U);
typeof D==="number"&&(U=D);return jc(function(n,y){return DGB(n,y,l,U)})};
UG_=function(l){l=l===void 0?Infinity:l;return Nq(Gz,l)};
nm$=function(){var l=_.EW.apply(0,arguments);return UG_(1)(fY$(l,cY(l)))};
yag=function(l){return new Lz(function(D){Mq(l()).subscribe(D)})};
ES=function(l,D,U){if(gE(U)){var n=U;U=void 0}if(n)return ES(l,D,U).pipe(TE9(n));n=_.B(gE(l.addEventListener)&&gE(l.removeEventListener)?Aa9.map(function(C){return function(h){return l[C](D,h,U)}}):gE(l.addListener)&&gE(l.removeListener)?WLl.map(BeB(l,D)):gE(l.on)&&gE(l.off)?CpK.map(BeB(l,D)):[]);
var y=n.next().value,A=n.next().value;return!y&&pYo(l)?Nq(function(C){return ES(C,D,U)})(fY$(l)):new Lz(function(C){if(!y)throw new TypeError("ga");
var h=function(){var b=_.EW.apply(0,arguments);return C.next(1<b.length?b:b[0])};
y(h);return function(){return A(h)}})};
BeB=function(l,D){return function(U){return function(n){return l[U](D,n)}}};
IV=function(){var l=_.EW.apply(0,arguments),D=cY(l);var U=typeof l[l.length-1]==="number"?l.pop():Infinity;return l.length?l.length===1?Mq(l[0]):UG_(U)(fY$(l,D)):Tz};
Pp9=function(l){return l.length===1&&hhN(l[0])?l[0]:l};
b2d=function(){var l=Pp9(_.EW.apply(0,arguments));return jc(function(D,U){var n=[D].concat(_.zz(l)),y=function(){if(!U.closed)if(n.length>0){try{var A=Mq(n.shift())}catch(h){y();return}var C=new FR(U,void 0,vY,vY);U.add(A.subscribe(C));C.add(y)}else U.complete()};
y()})};
HY=function(l){return jc(function(D,U){var n=0;D.subscribe(new FR(U,function(y){return l.call(void 0,y,n++)&&U.next(y)}))})};
umC=function(){var l=_.EW.apply(0,arguments);l=Pp9(l);return l.length===1?Mq(l[0]):new Lz(gm9(l))};
gm9=function(l){return function(D){for(var U=[],n={i$jscomp$220:0};U&&!D.closed&&n.i$jscomp$220<l.length;n={i$jscomp$220:n.i$jscomp$220},n.i$jscomp$220++)U.push(Mq(l[n.i$jscomp$220]).subscribe(new FR(D,function(y){return function(A){if(U){for(var C=0;C<U.length;C++)C!==y.i$jscomp$220&&U[C].unsubscribe();U=null}D.next(A)}}(n))))}};
vmd=function(){var l=_.EW.apply(0,arguments),D=$q3(l),U=Pp9(l);return U.length?new Lz(function(n){var y=U.map(function(){return[]}),A=U.map(function(){return!1});
n.add(function(){y=A=null});
for(var C={sourceIndex$jscomp$1:0};!n.closed&&C.sourceIndex$jscomp$1<U.length;C={sourceIndex$jscomp$1:C.sourceIndex$jscomp$1},C.sourceIndex$jscomp$1++)Mq(U[C.sourceIndex$jscomp$1]).subscribe(new FR(n,function(h){return function(b){y[h.sourceIndex$jscomp$1].push(b);y.every(function(u){return u.length})&&(b=y.map(function(u){return u.shift()}),n.next(D?D.apply(null,_.zz(b)):b),y.some(function(u,Q){return!u.length&&A[Q]})&&n.complete())}}(C),void 0,function(h){return function(){A[h.sourceIndex$jscomp$1]=
!0;
!y[h.sourceIndex$jscomp$1].length&&n.complete()}}(C)));
return function(){y=A=null}}):Tz};
QBl=function(l){var D,U,n;return!!l&&typeof l.active==="boolean"&&typeof((D=l.clock)==null?void 0:D.now)==="function"&&((U=l.clock)==null?void 0:U.timeline)!==void 0&&!((n=l.lastMeasurement)==null||!n.timestamp)&&typeof l.equivalentTo==="function"&&typeof l.extrapolateToNow==="function"&&typeof l.extrapolateToTime==="function"&&typeof l.map==="function"&&typeof l.joinWith==="function"};
GPK=function(l){function D(U){return typeof U==="boolean"||typeof U==="string"||typeof U==="number"||U===void 0||U===null}
return D(l)?!0:Array.isArray(l)?l.every(D):typeof l==="object"?Object.keys(l).every(function(U){return typeof U==="string"})&&Object.values(l).every(function(U){return Array.isArray(U)?U.every(D):D(U)}):!1};
Jad=function(l){if(GPK(l))return l;if(QBl(l))return{lastMeasurement:{value:Jad(l.lastMeasurement.value),timestamp:YF(l.lastMeasurement.timestamp,new OS(0,l.lastMeasurement.timestamp.timeline))},active:l.active};try{return JSON.parse(JSON.stringify(l))}catch(D){}return String(l)};
Vr=function(l,D){return function(U){return new Lz(function(n){return U.subscribe(function(y){l.timeExecution(D,function(){n.next(y)})()},function(y){l.timeExecution(D,function(){n.error(y)})()},function(){l.timeExecution(D,function(){n.complete()})()})})}};
LL9=function(l,D){var U=!1;return new Lz(function(n){var y=l.setTimeout(function(){U=!0;n.next(!0);n.complete()},D);
return function(){U||l.clearTimeout(y)}})};
qj$=function(l){l=l.global;if(l.fetchLater)return l.fetchLater.bind(l)};
lp=function(l){return jc(function(D,U){var n=null,y=!1,A;n=D.subscribe(new FR(U,void 0,function(C){A=Mq(l(C,lp(l)(D)));n?(n.unsubscribe(),n=null,A.subscribe(U)):y=!0}));
y&&(n.unsubscribe(),n=null,A.subscribe(U))})};
Mrs=function(l,D,U){return function(n,y){var A=U,C=D,h=0;n.subscribe(new FR(y,function(b){var u=h++;C=A?l(C,b,u):(A=!0,b);y.next(C)},void 0,void 0))}};
RhK=function(l){l=l===void 0?null:l;return jc(function(D,U){var n=!1;D.subscribe(new FR(U,function(y){n=!0;U.next(y)},void 0,function(){n||U.next(l);
U.complete()}))})};
DU=function(){return jc(function(l,D){l.subscribe(new FR(D,vY))})};
Uj=function(l){return jc(function(D,U){D.subscribe(new FR(U,function(){return U.next(l)}))})};
n2=function(l){return l<=0?function(){return Tz}:jc(function(D,U){var n=0;
D.subscribe(new FR(U,function(y){++n<=l&&(U.next(y),l<=n&&U.complete())}))})};
yK=function(l){var D=D===void 0?Gz:D;var U;l=(U=l)!=null?U:Z2c;return jc(function(n,y){var A,C=!0;n.subscribe(new FR(y,function(h){var b=D(h);if(C||!l(A,b))C=!1,A=b,y.next(h)}))})};
Z2c=function(l,D){return l===D};
mGo=function(l){l=l===void 0?ehs:l;return jc(function(D,U){var n=!1;D.subscribe(new FR(U,function(y){n=!0;U.next(y)},void 0,function(){return n?U.complete():U.error(l())}))})};
ehs=function(){return new aUK};
Aa=function(){var l=_.EW.apply(0,arguments);return function(D){return nm$(D,pz.apply(null,_.zz(l)))}};
tr_=function(l){return jc(function(D,U){var n=0;D.subscribe(new FR(U,function(y){l.call(void 0,y,n++,D)||(U.next(!1),U.complete())},void 0,function(){U.next(!0);
U.complete()}))})};
X7B=function(){return jc(function(l,D){var U=[];l.subscribe(new FR(D,function(n){U.push(n);1<U.length&&U.shift()},void 0,function(){for(var n=_.B(U),y=n.next();!y.done;y=n.next())D.next(y.value);
D.complete()},function(){U=null}))})};
Sj3=function(l,D){var U=arguments.length>=2;return function(n){return n.pipe(l?HY(function(y,A){return l(y,A,n)}):Gz,X7B(),U?RhK(D):mGo(function(){return new aUK}))}};
B7=function(l){var D=gE(l)?l:function(){return l};
return gE()?jc(function(U,n){var y=D();(void 0)(y).subscribe(n).add(U.subscribe(y))}):function(U){var n=new W7(U,D);
gE(U==null?void 0:U.lift)&&(n.lift=U.lift);n.source=U;n.subjectFactory=D;return n}};
ha=function(l){var D=new C2(l,void 0,void 0);return function(U){return B7(function(){return D})(U)}};
P7=function(l,D){return jc(Mrs(l,D,arguments.length>=2))};
bp=function(){var l=_.EW.apply(0,arguments),D=cY(l);return jc(function(U,n){(D?nm$(l,U,D):nm$(l,U)).subscribe(n)})};
ge=function(l){return jc(function(D,U){var n=null,y=0,A=!1;D.subscribe(new FR(U,function(C){var h;(h=n)==null||h.unsubscribe();h=y++;Mq(l(C,h)).subscribe(n=new FR(U,function(b){return U.next(b)},void 0,function(){n=null;
A&&!n&&U.complete()}))},void 0,function(){(A=!0,!n)&&U.complete()}))})};
up=function(l,D){D=D===void 0?!1:D;return jc(function(U,n){var y=0;U.subscribe(new FR(n,function(A){var C=l(A,y++);(C||D)&&n.next(A);!C&&n.complete()}))})};
kPl=function(l,D,U){var n=gE(l)||D||U?{next:l,error:D,complete:U}:l;return n?jc(function(y,A){y.subscribe(new FR(A,function(C){var h;(h=n.next)==null||h.call(n,C);A.next(C)},function(C){var h;
(h=n.error)==null||h.call(n,C);A.error(C)},function(){var C;
(C=n.complete)==null||C.call(n);A.complete()}))}):Gz};
dGC=function(){var l=_.EW.apply(0,arguments),D=$q3(l);return jc(function(U,n){for(var y=l.length,A=Array(y),C=l.map(function(){return!1}),h=!1,b={i$jscomp$230:0};b.i$jscomp$230<y;b={i$jscomp$230:b.i$jscomp$230},b.i$jscomp$230++)Mq(l[b.i$jscomp$230]).subscribe(new FR(n,function(u){return function(Q){A[u.i$jscomp$230]=Q;
h||C[u.i$jscomp$230]||(C[u.i$jscomp$230]=!0,(h=C.every(Gz))&&(C=null))}}(b),void 0,vY));
U.subscribe(new FR(n,function(u){h&&(u=[u].concat(_.zz(A)),n.next(D?D.apply(null,_.zz(u)):u))}))})};
caC=function(l){var D=KLo;if(D)for(var U in D)Object.prototype.hasOwnProperty.call(D,U)&&l(D[U],U,D)};
p79=function(){var l=[];caC(function(D){l.push(D)});
return l};
jBd=function(l){try{return!!l&&l.location.href!=null&&xGg(l,"foo")}catch(D){return!1}};
_.QK=function(l){return new vFK(l[0].toLowerCase())};
FL3=function(l){for(var D=_.EW.apply(1,arguments),U=l[0],n=0;n<l.length-1;n++)U+=String(D[n]),U+=l[n+1];D=document.implementation.createHTMLDocument("");n=D.createElement("style");D.head.appendChild(n);D=n.sheet;D.insertRule(U,0);if(D.cssRules.length===1&&(U=D.cssRules[0],U instanceof CSSStyleRule))return new b8(U.cssText.replace(/</g,"\\3C "))};
omK=function(l){try{return new URL(l,window.document.baseURI)}catch(D){return new URL("about:invalid")}};
w7l=function(l,D){var U=D.createRange();U.selectNode(D.body);l=YC(l);return U.createContextualFragment(V1(l))};
ra3=function(l){l=l.nodeName;return typeof l==="string"?l:"FORM"};
zhd=function(l){l=l.nodeType;return l===1||typeof l!=="number"};
GP=function(l,D,U){l.setAttribute(D,U)};
fUN=function(l){return l.parts.map(function(D){var U=D.descriptor;return""+D.url+(U?" "+U:"")}).join(" , ")};
_.Ja=function(l){var D=_.EW.apply(1,arguments);if(D.length===0)return _.dT(l[0]);for(var U=l[0],n=0;n<D.length;n++)U+=encodeURIComponent(D[n])+l[n+1];return _.dT(U)};
_.L2=function(l,D){l=_.Kc(l).toString();var U=l.split(/[?#]/),n=/[?]/.test(l)?"?"+U[1]:"";return $G9(U[0],n,/[#]/.test(l)?"#"+(n?U[2]:U[1]):"",D)};
$G9=function(l,D,U,n){function y(C,h){C!=null&&(Array.isArray(C)?C.forEach(function(b){return y(b,h)}):(D+=A+encodeURIComponent(h)+"="+encodeURIComponent(C),A="&"))}
var A=D.length?"&":"?";n.constructor===Object&&(n=Object.entries(n));Array.isArray(n)?n.forEach(function(C){return y(C[1],C[0])}):n.forEach(y);
return _.dT(l+D+U)};
sBG=function(){var l=Av(Ne9).toString();return _.dT(URL.createObjectURL(new Blob([l],{type:"text/javascript"})))};
EmG=function(l){var D=[],U=0,n;for(n in l)D[U++]=n;return D};
TeN=function(l,D){for(var U in l)if(l[U]==D)return!0;return!1};
IUc=function(l,D,U){for(var n in l)if(D.call(U,l[n],n,l))return n};
H2l=function(l){if(!l||typeof l!=="object")return l;if(typeof l.clone==="function")return l.clone();if(typeof Map!=="undefined"&&l instanceof Map)return new Map(l);if(typeof Set!=="undefined"&&l instanceof Set)return new Set(l);if(l instanceof Date)return new Date(l.getTime());var D=Array.isArray(l)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(l)||l instanceof DataView?{}:new l.constructor(l.length),U;for(U in l)D[U]=H2l(l[U]);return D};
Yjo=function(l){var D=arguments.length;if(D==1&&Array.isArray(arguments[0]))return Yjo.apply(null,arguments[0]);if(D%2)throw Error("ma");for(var U={},n=0;n<D;n+=2)U[arguments[n]]=arguments[n+1];return U};
O2C=function(l){var D=arguments.length;if(D==1&&Array.isArray(arguments[0]))return O2C.apply(null,arguments[0]);for(var U={},n=0;n<D;n++)U[arguments[n]]=!0;return U};
MG=function(l,D,U,n){this.top=l;this.right=D;this.bottom=U;this.left=n};
VrB=function(l){l=l.global;if(l.PendingGetBeacon)return l.PendingGetBeacon};
ZU=function(l){return function(D){return D.pipe(iwB(l,B7(new RB)))}};
er=function(l){return function(D){return D.pipe(iwB(l,ha(1)))}};
iwB=function(l,D){function U(n){return new Lz(function(y){return n.subscribe(function(A){mL(l,function(){return void y.next(A)},3)},function(A){mL(l,function(){return void y.error(A)},3)},function(){mL(l,function(){return void y.complete()},3)})})}
return Jv(U,sVo(),D,oV(),U)};
Uxg=function(l){var D=ly9(l);return D===null?new aB(null):D.pipe(wE(function(U){U=U.serialize();if(DxB)U=_.nC.btoa(U);else{for(var n=[],y=0,A=0;A<U.length;A++){var C=U.charCodeAt(A);C>255&&(n[y++]=C&255,C>>=8);n[y++]=C}U=_.c2(n)}return U}),n2(1),er(l.queue))};
nTc=function(l){var D=D===void 0?{}:D;if(typeof Event==="function")return new Event(l,D);if(typeof document!=="undefined"){var U=document.createEvent("CustomEvent");U.initCustomEvent(l,D.bubbles||!1,D.cancelable||!1,D.detail);return U}throw Error();};
yA9=function(l){return typeof l==="string"?document.getElementById(l):l};
W73=function(l){var D=!1;D=D===void 0?!1:D;if(l.tagName==="IMG"){if(l.complete&&(!l.naturalWidth||!l.naturalHeight))return!0;var U;if(D&&((U=l.style)==null?void 0:U.display)==="none")return!0}var n,y;return AAB.test((n=l.getAttribute("width"))!=null?n:"")&&AAB.test((y=l.getAttribute("height"))!=null?y:"")};
BsC=function(l,D){if(l.tagName==="IMG")return l.naturalWidth&&l.naturalHeight?!0:!1;try{if(l.readyState)var U=l.readyState;else{var n,y;U=(n=l.contentWindow)==null?void 0:(y=n.document)==null?void 0:y.readyState}return U==="complete"}catch(A){return D===void 0?!1:D}};
COg=function(l){l||(l=function(D,U,n){D.addEventListener(U,n)});
return l};
gT_=function(l,D){var U=h3g();U=U===void 0?new POC:U;if(l=yA9(l)){var n=COg(n);for(var y=!1,A=function(S){y||(y=!0,D(S))},C,h=2,b=0;b<bw_.length;++b)if(bw_[b]===l.tagName){h=3;
C=[l];break}C||(C=l.querySelectorAll(bw_.join(",")));var u=0,Q=0,G=!0,J=l=!1;b={};for(var L=0;L<C.length;b={isImg:void 0},L++){var R=C[L];if(!W73(R))if(b.isImg=R.tagName==="IMG",BsC(R,U.crossDomainLoadedDefault))l=!0,b.isImg&&(G=!0);else{u++;var a=function(S){return function(d){u--;!u&&G&&A(h);S.isImg&&(d=d&&d.type==="error",Q--,d||(G=!0),!Q&&J&&G&&A(h))}}(b);
n(R,"load",a);b.isImg&&(Q++,n(R,"error",a))}}Q===0&&(G=!0);C=null;C=_.nC.document.readyState==="complete";if(u===0&&!l&&C)h=5;else if(u||!l){n(_.nC,"load",function(){!U.pendingImagesBlockLoad||!Q&&G?A(4):J=!0});
return}A(h)}};
ut9=function(l,D,U){if(l)for(var n=0;l!=null&&n<500&&!U(l);++n)l=D(l)};
vTo=function(l,D){ut9(l,function(U){try{return U===U.parent?null:U.parent}catch(n){}return null},D)};
Qjo=function(l,D){if(l.tagName=="IFRAME")D(l);else{l=l.querySelectorAll("IFRAME");for(var U=0;U<l.length&&!D(l[U]);++U);}};
GC9=function(l){return(l=l.ownerDocument)&&(l.parentWindow||l.defaultView)||null};
JAc=function(l,D,U){try{var n=JSON.parse(U.data)}catch(C){}if(typeof n==="object"&&n&&n.type==="creativeLoad"){var y=GC9(l);if(U.source&&y){var A;vTo(U.source,function(C){try{if(C.parent===y)return A=C,!0}catch(h){}});
A&&Qjo(l,function(C){if(C.contentWindow===A)return D(n),!0})}}};
L7d=function(l){return typeof l==="string"?document.getElementById(l):l};
ZwN=function(){var l={};return l[0]=_.Ja(qd_,"current"),l[1]=_.Ja(MUs),l[2]=_.Ja(R3N),l};
Xm=function(l,D){return l.left===D.left&&l.top===D.top&&l.width===D.width&&l.height===D.height};
e3l=function(l,D){return{left:Math.max(l.left,D.left),top:Math.max(l.top,D.top),width:Math.max(0,Math.min(l.left+l.width,D.left+D.width)-Math.max(l.left,D.left)),height:Math.max(0,Math.min(l.top+l.height,D.top+D.height)-Math.max(l.top,D.top))}};
mxg=function(l,D){return{left:Math.round(l.left+D.x),top:Math.round(l.top+D.y),width:l.width,height:l.height}};
ayo=function(l,D,U){if(l&&D!==null&&D!=D.top){if(!D.top)return new _.Sr(-12245933,-12245933);D=D.top}try{return(U===void 0?0:U)?(new _.Sr(D.innerWidth,D.innerHeight)).round():_.km(D).round()}catch(n){return new _.Sr(-12245933,-12245933)}};
tU$=function(l,D,U){try{if(l){if(!D.top)return new MG(-12245933,-12245933,-12245933,-12245933);D=D.top}var n=ayo(l,D,U),y=n.height,A=n.width;if(A===-12245933)return new MG(A,A,A,A);var C=de(K2(D.document)),h=C.x,b=C.y;return new MG(b,h+A,b+y,h)}catch(u){return new MG(-12245933,-12245933,-12245933,-12245933)}};
XEN=function(l){var D;return(D=l.google_tag_data)!=null?D:l.google_tag_data={}};
Sdl=function(l){var D,U;return typeof((D=l.navigator)==null?void 0:(U=D.userAgentData)==null?void 0:U.getHighEntropyValues)==="function"};
dxs=function(l){if(!Sdl(l))return null;var D=XEN(l);if(D.uach_promise)return D.uach_promise;l=l.navigator.userAgentData.getHighEntropyValues(kCG).then(function(U){D.uach!=null||(D.uach=U);return U});
return D.uach_promise=l};
$x$=function(l){var D;return K7s(cA3(pE_(xxg(jjG(F7s(oTg(wEK(rAN(new z3C,l.architecture||""),l.bitness||""),l.mobile||!1),l.model||""),l.platform||""),l.platformVersion||""),l.uaFullVersion||""),((D=l.fullVersionList)==null?void 0:D.map(function(U){var n=new fy3;n=_.c7(n,1,U.brand);return _.c7(n,2,U.version)}))||[]),l.wow64||!1)};
NsN=function(l){var D,U;return(U=(D=dxs(l))==null?void 0:D.then(function(n){return $x$(n)}))!=null?U:null};
sjB=function(l,D){return new Lz(function(U){var n=!1,y=Array(D.length);y.fill(void 0);var A=new Set,C=new Set,h=function(G,J){l.running?(y[J]=G,A.add(J),n||(n=!0,mL(l,function(){n=!1;U.next(_.$9(y))},1))):U.error(new p2(J))},b=function(G,J){C.add(J);
A.add(J);mL(l,function(){U.error(G)},1)},u=function(G){C.add(G);
mL(l,function(){C.size===D.length&&U.complete()},1)},Q=D.map(function(G,J){return G.subscribe(function(L){return void h(L,J)},function(L){return void b(L,J)},function(){return void u(J)})});
return function(){Q.forEach(function(G){return void G.unsubscribe()})}})};
Iyc=function(l,D,U){function n(){if(D.debugChannel){var S=D.debugChannel,d=S.next;var c={creativeId:D.debugNames.getName(U),requiredSignals:y,signals:Object.assign({},A),hasPrematurelyCompleted:C,errorMessage:h,erroredSignalKey:b};c={specMajor:2,specMinor:0,specPatch:0,timestamp:YF(D.timeProvider.now(),new OS(0,D.timeProvider.timeline)),instanceId:D.debugNames.getName(D.symbol),creativeState:c};d.call(S,c)}}
for(var y=Object.keys(l),A={},C=!1,h=null,b=null,u={},Q=new Set,G=[],J=[],L=_.B(y),R=L.next(),a={};!R.done;a={key$jscomp$394:void 0},R=L.next())a.key$jscomp$394=R.value,R=l[a.key$jscomp$394],R instanceof aB?(u[a.key$jscomp$394]=R.value,Q.add(a.key$jscomp$394),D.debugChannel&&(A[String(a.key$jscomp$394)]=Jad(R.value))):(R=R.pipe(yK(function(S,d){return QBl(S)||QBl(d)?!1:S===d}),wE(function(S){return function(d){D.debugChannel&&(A[String(S.key$jscomp$394)]=Jad(d),n());
var c={};return c[S.key$jscomp$394]=d,c}}(a)),lp(function(S){return function(d){if(d instanceof p2)throw new ETg(String(S.key$jscomp$394));
throw d;}}(a)),kPl(function(S){return function(){Q.add(S.key$jscomp$394)}}(a),function(S){return function(d){b=String(S.key$jscomp$394);
h=String(d);n()}}(a),function(S){return function(){Q.has(S.key$jscomp$394)||(C=!0,n())}}(a))),J.push(a.key$jscomp$394),G.push(R));
(l=Object.keys(A).length>0)&&n();L=sjB(D.queue,G).pipe(lp(function(S){if(S instanceof p2)throw new TsC(String(J[S.inputObservableIndex]));throw S;}),wE(function(S){return Object.freeze(Object.assign.apply(Object,[{},
u].concat(_.zz(S))))}));
return(G=G.length>0)&&l?IV(pz(Object.freeze(u)),L):G?L:pz(Object.freeze(u))};
HwN=function(l,D,U,n,y){return l.performanceMonitor.timeExecution.bind(l.performanceMonitor)(733,function(){var A={};try{return D.pipe(lp(function(C){n(Object.assign({},A,{error:C}));return Tz}),Nq(function(C){try{var h=U(l,C)}catch(u){return n(Object.assign({},A,{error:u instanceof Error?u:String(u)})),Tz}var b={};
return Iyc(h,l,C.symbol).pipe(kPl(function(u){b=u}),ha(1),oV()).pipe(y,lp(function(u){n(Object.assign({},b,{error:u}));
return Tz}),Aa(void 0),wE(function(){return!0}))})).pipe(P7(function(C){return C+1},0),lp(function(C){n(Object.assign({},A,{error:C}));
return Tz}))}catch(C){return n(Object.assign({},A,{error:C})),Tz}})()};
xm=function(l){var D=new Map;if(typeof l!=="object"||l===null)return D;Object.values(l).forEach(function(U){U&&typeof U.extrapolateToNow==="function"&&(D.has(U.clock.timeline)||D.set(U.clock.timeline,U.clock.now()))});
return D};
Ydc=function(l,D){return typeof l==="string"?encodeURIComponent(l):typeof l==="number"?String(l):Array.isArray(l)?l.map(function(U){return Ydc(U,D)}).join(","):l instanceof OS?l.toString():l&&typeof l.extrapolateToNow==="function"?Ydc(l.extrapolateUsingTimestampMap(D).value,D):l===!0?"1":l===!1?"0":l===void 0||l===null?null:l instanceof Owl?VUB(l):[l.top,
l.left,l.top+l.height,l.left+l.width].join()};
iys=function(l,D){l=Object.entries(l).map(function(U){var n=_.B(U);U=n.next().value;n=n.next().value;n=Ydc(n,D);return n===null?"":U+"="+n}).filter(function(U){return U!==""});
return l.length?l.join("&"):""};
UV_=function(l,D){var U=lp9,n=DVs;D=D===void 0?.01:D;return function(y){D>0&&Math.random()<=D&&(l.global.HTMLFencedFrameElement&&l.global.fence&&typeof l.global.fence.reportEvent==="function"&&l.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),y=Object.assign({},y,{errorMessage:y.error instanceof Error&&y.error.message?y.error.message:String(y.error),errorStack:y.error instanceof Error&&y.error.stack?String(y.error.stack):null,errorName:y.error instanceof
Error&&y.error.name?String(y.error.name):null,errorContext:String(l.performanceMonitor.timedFunctionContext),errorEscapedQueryId:y.escapedQueryId}),U(Object.assign({},y,{payloadMapper:function(){return function(A){try{return n(Object.assign({},A))}catch(C){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),xm(y)).forEach(function(A){l.beaconFactory.makeBeacon(A).sendNow()}))}};
niC=function(){var l=_.EW.apply(0,arguments);return function(D){var U=D.pipe(ha(1),oV());D=l.map(function(n){return U.pipe(n,Aa(!0))});
return fz(D).pipe(n2(1),DU())}};
yq9=function(){var l=_.EW.apply(0,arguments);return function(D){var U=D.pipe(ha(1),oV());D=l.map(function(n){return U.pipe(n,Aa(!0))});
return IV.apply(null,_.zz(D)).pipe(n2(1),DU())}};
Aq9=function(l,D){return function(U){var n=U.pipe(ha(1),oV());U=n.pipe(l,Aa(!0));n=n.pipe(Jv(D,ha(),oV()),Aa(!0));U=fz([U,n]);return umC(U,n).pipe(n2(1),DU())}};
WUo=function(l,D,U){U(!0)};
BMo=function(l,D){return Jv(ge(function(U){var n=l(U),y=D(U),A={};return n&&y&&A?new Lz(function(C){y(n,A,function(h){C.next(Object.assign({},U,{canEmit:h}));C.complete()});
return function(){}}):jr}),HY(function(U){return U.canEmit}))};
Ch9=function(l){var D={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(U){return U.pipe(ge(function(n){return new Lz(function(y){function A(){h.disconnect();b.unsubscribe()}
var C=l.MutationObserver;if(C&&n.ref!==void 0){var h=new C(function(u){y.next(u)});
h.observe(n.ref,D);var b=n.JSC$9441_released.subscribe(A);return A}})}))}};
hyd=function(l){if(l.measurementDeferralState===3)return null;if(l.timeOnScreenReason!==void 0){var D=l.creativeFound===!1?"n":null;if(D!==null)return D}return l.geometricMeasurementErrors instanceof Fm?"msf":l.contextValidationErrors instanceof oB?"c":l.contextVisibilityKnown===!1?"pv":l.geometricMeasurementErrors||l.contextValidationErrors?"x":null};
byo=function(l,D){return l.replace(Phg,function(U,n){try{var y=_.we.get(D,n);if(y==null||y.toString()==null)return U;y=y.toString();if(y==""||!_.hd(y==null?"":String(y)))return encodeURIComponent(y).replace(/%2C/g,",")}catch(A){}return U})};
giC=function(l,D){var U=Object.assign({},l),n=l.userAgentClientHints;U=(delete U.userAgentClientHints,U);U=l.payloadMapper(U);var y=iys(U,D);return _.re(l.urlPrefixes,function(A){var C="";typeof n==="string"&&(C="&"+iys({uach:n},D));var h={};return byo(A,(h.VIEWABILITY=y,h))+C})};
lp9=function(l,D){var U=l.payloadMapper(l),n=iys(U,D);return n?_.re(l.urlPrefixes,function(y){y=y.indexOf("?")>=0?y:y+"?";y="?&".indexOf(y.slice(-1))>=0?y:y+"&";return y+n}):l.urlPrefixes};
ux_=function(){return Jv(HY(function(l){return l!==void 0}),wE(function(l){return l}))};
vil=function(l){return Jv(wE(function(){return!0}),bp(!1),er(l))};
Qws=function(l){return l.length<=0?Tz:fz(l.map(function(D){var U=0;return D.pipe(wE(function(n){return{index:U++,value:n}}))})).pipe(HY(function(D){return D.every(function(U){return U.index===D[0].index})}),wE(function(D){return D.map(function(U){return U.value})}))};
GpN=function(l,D){l.currentState&&(l.previousState=l.currentState);l.currentState=D;l.previousState&&l.previousState.value?(D=Math.max(0,YF(D.timestamp,l.previousState.timestamp)),l.totalTime+=D,l.consecutiveTime+=D):l.consecutiveTime=0;return l};
Jqo=function(){return Jv(P7(GpN,{totalTime:0,consecutiveTime:0}),wE(function(l){return l.totalTime}))};
LUl=function(){return Jv(P7(GpN,{totalTime:0,consecutiveTime:0}),wE(function(l){return l.consecutiveTime}))};
qPs=function(l,D){return function(U){return Qws(D.map(function(n){return U.pipe(l(n))}))}};
MNs=function(){var l;return Jv(kPl(function(D){return void(l=D.timestamp)}),LUl(),wE(function(D){return{timestamp:l,
value:Math.round(D)}}))};
Ryd=function(l,D){return Xm(l.topWindowViewportExternalGeometry,D.topWindowViewportExternalGeometry)&&Xm(l.elementGeometry,D.elementGeometry)&&Xm(l.exposedViewportLocalGeometry,D.exposedViewportLocalGeometry)&&Xm(l.intersectionGeometry,D.intersectionGeometry)&&l.elementGeometrySourceName===D.elementGeometrySourceName&&l.measurementRequests===D.measurementRequests&&l.viewportGeometrySourceName===D.viewportGeometrySourceName&&l.viewportLocalAppOffset.x===D.viewportLocalAppOffset.x&&l.viewportLocalAppOffset.y===
D.viewportLocalAppOffset.y};
apG=function(l,D){return function(U){return function(n){var y=n.pipe(B7(new RB),oV());n=U.element.pipe(yK());y=y.pipe(wE(function(A){return A.value}));
return fz([n,y,D]).pipe(wE(function(A){var C=_.B(A);A=C.next().value;var h=C.next().value;C=C.next().value;if(A.ref===void 0)var b={top:0,left:0,width:0,height:0};else{b=A.ref.getBoundingClientRect();var u=A.ref,Q=l.global,G=new _.zP(0,0),J=f2(_.$m(u));if(xGg(J,"parent")){do{if(J==Q)var L=_.NG(u);else L=ZyB(u),L=new _.zP(L.left,L.top);G.x+=L.x;G.y+=L.y}while(J&&J!=Q&&J!=J.parent&&(u=J.frameElement)&&(J=J.parent))}b={top:G.y,left:G.x,width:b.width,height:b.height}}b=mxg(b,h.viewportLocalAppOffset);
Q=e3l(b,h.exposedViewportLocalGeometry);G=l.timeProvider.now();J=Object;u=J.assign;if(C!==2||l.inCrossDomainIframe||Q.width<=0||Q.height<=0)var R=!1;else try{var a=l.document.elementFromPoint(Q.left+Q.width/2,Q.top+Q.height/2);R=a?!eyg(a,A):!1}catch(S){R=!1}return{timestamp:G,value:u.call(J,{},h,{elementGeometrySourceName:"geo",intersectionGeometry:R?mVB.intersectionGeometry:Q,elementGeometry:b})}}),ZU(l.queue))}}};
eyg=function(l,D,U){U=U===void 0?0:U;return l.ref===void 0||D.ref===void 0?!1:l.ref===D.ref||_.sj(D.ref,function(n){return n===l.ref})?!0:D.ref.ownerDocument&&D.ref.ownerDocument.defaultView&&D.ref.ownerDocument.defaultView===D.ref.ownerDocument.defaultView.top?!1:U<10&&D.ref.ownerDocument&&D.ref.ownerDocument.defaultView&&D.ref.ownerDocument.defaultView.frameElement?eyg(l,new Ej(D.ref.ownerDocument.defaultView.frameElement),U+1):!0};
SPK=function(l){return function(D){return D.pipe(l.ResizeObserver?tNg(l):X_B(l),ha(1),oV())}};
tNg=function(l){return function(D){return D.pipe(ge(function(U){var n=l.ResizeObserver;if(!n||U.ref===void 0)return pz(mVB.elementGeometry);var y=(new Lz(function(A){function C(){U.ref!==void 0&&h.unobserve(U.ref);h.disconnect();b.unsubscribe()}
if(U.ref===void 0)return A.complete(),function(){};
var h=new n(function(u){u.forEach(function(Q){A.next(Q)})});
h.observe(U.ref);var b=U.JSC$9441_released.subscribe(C);return C})).pipe(Vr(l.performanceMonitor,736),wE(function(A){return A.contentRect}));
return IV(pz(U.ref.getBoundingClientRect()),y)}),yK(Xm))}};
X_B=function(l){return function(D){var U=D.pipe(Ch9(l)),n=l.onResize;U=IV(D.pipe(wE(function(){return nTc("resize")})),U,n);
return fz(D,U).pipe(Vr(l.performanceMonitor,737),wE(function(y){y=_.B(y).next().value;return y.ref===void 0?void 0:y.ref.getBoundingClientRect()}),ux_(),yK(Xm))}};
KU_=function(l,D){var U=kps(l,D).pipe(ha(1),oV());return function(n){return function(y){y=y.pipe(ge(function(A){return A.element}),yK());
return fz([U,y]).pipe(ge(function(A){var C=_.B(A);A=C.next().value;C=C.next().value;return dVB(l,A.intersectionObserver,SPK(l),A.observations,n,A.flushRecords,C)}),ZU(l.queue))}}};
cqG=function(l){return wE(function(D){return D.value.viewportGeometrySourceName!=="nio"?D:Object.assign({},D,{value:Object.assign({},D.value,{exposedViewportLocalGeometry:IB(l,!0),topWindowViewportExternalGeometry:IB(l,!0)})})})};
p_l=function(l,D){return pz(D).pipe(l,wE(function(){return D}))};
kps=function(l,D){return l.timeProvider.timeline!==xVd?xF(new Fm(2)):l.MutationObserver?typeof IntersectionObserver==="undefined"?xF(new Fm(0)):(new Lz(function(U){var n=new RB,y=new H7(n.next.bind(n),{threshold:[].concat(_.zz(D))});U.next({observations:n.pipe(Vr(l.performanceMonitor,735)),intersectionObserver:y,flushRecords:function(A){A=y.takeRecords(A);A.length>0&&n.next(A)}})})).pipe(n2(1),ha(1),oV()):xF(new Fm(1))};
jwg=function(l){return xqd(l.sort(function(D,U){return D.time-U.time}),NEl)};
dVB=function(l,D,U,n,y,A,C){return new Lz(function(h){function b(){R||(R=!0,C.ref!==void 0&&D.unobserve(y,C.ref),Q.unsubscribe(),L.unsubscribe(),J.unsubscribe(),a.unsubscribe())}
if(C.ref!==void 0){FUg(D,y);D.observe(y,C.ref);var u=new Ym({timestamp:l.timeProvider.now(),value:Object.assign({},mVB,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),Q=n.pipe(Nq(function(S){return jwg(S)}),HY(function(S){return S.target===C.ref}),wE(function(S){return{timestamp:new OS(S.time,xVd),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:S.rootBounds||Oj,topWindowViewportExternalGeometry:S.rootBounds||IB(l,!0),measurementRequests:G,elementGeometrySourceName:"nio",intersectionGeometry:S.intersectionRect,elementGeometry:S.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:S.isIntersecting,isV2Visible:S.isVisible}}}),B7(u),oV()).subscribe(h),G=new RB,J=G.subscribe(function(){A(y);
h.next({timestamp:l.timeProvider.now(),value:u.value.value});C.ref!==void 0&&(D.unobserve(y,C.ref),D.observe(y,C.ref))}),L=p_l(U,C).subscribe(function(){G.next()}),R=!1,a=C.JSC$9441_released.subscribe(function(){return b()});
return b}})};
oiG=function(l,D){var U=l.getOnBackgrounded().pipe(wE(function(){return"b"}));
return umC(D,U).pipe(n2(1),er(l.queue))};
VK=function(l){return function(D){var U;return D.pipe(kPl(function(n){return void(U=n.timestamp)}),wE(function(n){return n.value}),l,wE(function(n){return{timestamp:U,
value:n}}))}};
w_K=function(l){return l.intersectionGeometry.width*l.intersectionGeometry.height/(l.elementGeometry.width*l.elementGeometry.height)};
iO=function(l,D,U){U=U===void 0?function(n,y){return n===y}:U;
return l.timestamp.equals(D.timestamp)&&U(l.value,D.value)};
Dy=function(l,D){return D.pipe(wE(function(U){return new lO(l.timeProvider,{timestamp:l.timeProvider.now(),value:U})}))};
rqo=function(l){return function(D){return D.pipe(dGC(l),wE(function(U){var n=_.B(U);U=n.next().value;n=n.next().value;var y=U.value;return{timestamp:U.timestamp,value:y>=1?!0:y<=0?!1:y>=n}}))}};
fpd=function(){return Jv(HY(function(l,D){return D>0}),zy9,bp(-1),yK())};
$VK=function(l,D,U){return l?fz([D,U]).pipe(HY(function(n){var y=_.B(n);n=y.next().value;y=y.next().value;return n.timestamp.equals(y.timestamp)}),wE(function(n){var y=_.B(n);
n=y.next().value;y=y.next().value;return n.value>y.value?n:y})):D};
Eio=function(l){return function(D){var U=D.pipe(NM3),n=D.pipe(sws);return l instanceof Lz?l.pipe(ge(function(y){return $VK(y,U,n)})):$VK(l.value,U,n)}};
U1s=function(l,D,U,n){var y=n.geometryIsOccluded,A=n.exposureThreshold,C=n.wasLargeAdAtRender,h=n.allowLargeAdThreshold,b=n.largeAdExposureThreshold,u=n.mayUseViewportShareExposure,Q=n.hasMeasurementStarted;n=n.useIntersectionObserverV2;D=TM_(l,U,D);U=Ip_(l,U);n=Hy3(D,n);var G=YPK(l,y,u,D),J=G.pipe(wE(function(f){return f.value}),yK(),er(l),P7(function(f,I){return Math.max(f,I)},0)),L=G.pipe(wE(function(f){return f.value}),fpd(),er(l)),R=D.pipe(Oyo,wE(function(f){return f.value}),n2(2),yK(),er(l));
C=VNo(l,D,C,h);var a=C.pipe(bp(!1),yK(),wE(function(f){return f?b:A}));
h=G.pipe(rqo(a),yK(),er(l));var S=fz([h,D]).pipe(HY(function(f){var I=_.B(f);f=I.next().value;I=I.next().value;return f.timestamp.equals(I.timestamp)}),wE(function(f){var I=_.B(f);
f=I.next().value;I=I.next().value;return{visible:f.value,geometry:I.value.elementGeometry}}),P7(function(f,I){return!I.visible&&f.visible?f:I},{visible:!1,
geometry:Oj}),wE(function(f){return f.geometry}),bp(Oj),er(l),yK(Xm));
u=u instanceof Lz?u.pipe(yK(),Uj()):jr;a=fz([u,a]).pipe(Uj());var d=D.pipe(HY(function(f){return f.value.viewportGeometrySourceName!=="ns"&&f.value.elementGeometrySourceName!=="ns"}),P7(function(f){return f+1},0),bp(0),er(l)),c=U.pipe(Uj(!0),bp(!1),er(l));
c=fz([Q,c]).pipe(wE(function(f){var I=_.B(f);f=I.next().value;I=I.next().value;return f&&!I}),er(l));
var N=D.pipe(iko,yK()),z=N.pipe(wE(function(f){return f.value}),P7(function(f,I){return Math.max(f,I)},0),yK(),er(l));
l=N.pipe(wE(function(f){return f.value}),fpd(),er(l));
return{shouldResetExposureSignals:u,shouldResetViewabilitySignals:a,geometrySignals:{readyGeometryWithDefault:D,measurementStrategy:D.pipe(lQ$),creativePosition:S.pipe(yK(Xm)),visible:h.pipe(yK(iO)),timestampedExposure:G.pipe(yK(iO)),maximumExposure:J,minimumExposure:L,browserSize:D.pipe(D1C,yK(_.Y9)),timestampedScreenShare:N,maxScreenShare:z,minScreenShare:l,geometricMeasurementErrors:U,measurementRequests:D.pipe(wE(function(f){return f.value.measurementRequests})),
isLargeAd:C,geometryIsOccluded:y,hasMeasurementStarted:Q,geometryMeasurable:c,validMeasurementCount:d,loadTimeExposure:R,v2VisibilityBitVector:n}}};
Ip_=function(l,D){return D.pipe(HY(function(){return!1}),wE(function(U){return U}),lp(function(U){return Ud(new aB(U),l)}))};
TM_=function(l,D,U){return D.pipe(b2d(jr),er(l)).pipe(yK(function(n,y){return iO(n,y,Ryd)}),bp({timestamp:U.now(),
value:mVB}),er(l))};
YPK=function(l,D,U,n){U=n.pipe(Eio(U),VK(wE(function(y){return Math.round(y*100)/100})),er(l));
return D instanceof aB?U:fz([U,D]).pipe(wE(function(y){var A=_.B(y);y=A.next().value;A=A.next().value;return{timestamp:A.timestamp.maximum(y.timestamp),value:A.value?0:y.value}}),yK(iO),er(l))};
VNo=function(l,D,U,n){D=[D.pipe(wE(function(y){return y.value.elementGeometry.width*y.value.elementGeometry.height>=242500}))];
U instanceof Lz&&D.push(U.pipe(wE(function(y){return!!y})));
U=fz(D);return n?U.pipe(wE(function(y){return y.some(function(A){return A})}),bp(!1),yK(),er(l)):Ud(new aB(!1),l)};
Hy3=function(l,D){l=fz([l,D]).pipe(wE(function(y){var A=_.B(y);y=A.next().value;if(A.next().value&&y.value.isIntersecting)return y.value.isV2Visible}),yK());
var U=l.pipe(wE(function(y){return y===void 0?!0:y}),P7(function(y,A){return y||!A},!1)),n=l.pipe(P7(function(y,A){return A===void 0?y:A?!1:y!=null?y:!0},void 0),wE(function(y){return!!y}));
return fz([D,vmd(l,U,n)]).pipe(wE(function(y){var A=_.B(y);y=A.next().value;var C=_.B(A.next().value);A=C.next().value;var h=C.next().value;C=C.next().value;var b=0;if(!y)return 0;if(A===void 0)return 16;A&&(b|=1);A||(b|=2);h&&(b|=4);C&&(b|=8);return b}))};
C0G=function(l,D,U,n,y){var A=ng$.timeThresholdMs;var C=C===void 0?new yfC(D,n):C;return(new Lz(function(h){var b=U.pipe(bp(void 0),ge(function(){return AfB(y)})).pipe(wE(function(u){var Q=u.value;
u=u.timestamp;var G=Q.visible;Q=Q.consecutiveViewTime;var J=Q>=A;J||!G?Wvl(C):(u=Math.max(0,YF(D.now(),u)),Bts(C,Math.max(0,A-Q-u)));return J}),P7(function(u,Q){return Q||u},!1),yK()).subscribe(h);
return function(){C.dispose();b.unsubscribe()}})).pipe(up(function(h){return!h},!0),er(l))};
AfB=function(l){return Qws([l,l.pipe(MNs())]).pipe(wE(function(D){var U=_.B(D);D=U.next().value;U=U.next().value;return{timestamp:D.timestamp,value:{visible:D.value,consecutiveViewTime:U.value}}}),yK(function(D,U){return iO(D,U,function(n,y){return n.consecutiveViewTime===y.consecutiveViewTime&&n.visible===y.visible})}))};
hGc=function(){return Jv(LUl(),P7(function(l,D){return Math.max(l,D)},0),wE(function(l){return Math.round(l)}))};
P0C=function(l){return Jv(rqo(pz(l)),hGc())};
bkd=function(l,D){return D instanceof Lz?D.pipe(ge(function(U){return(U=U?15:null)?xF(new Fm(U)):l})):(D=D.value?15:null)?xF(new Fm(D)):l};
gg9=function(l){var D=new Fm(13);if(l.length<1)return{chain:Tz,capturedErrors:Tz};var U=new RB,n=l[0];return{chain:l.slice(1).reduce(function(y,A){return y.pipe(lp(function(C){U.next(C);return A}))},n).pipe(lp(function(y){U.next(y);
return xF(D)}),B7(new RB),oV()),
capturedErrors:U}};
u2o=function(l,D){var U=l.pipe(B7(new RB),oV());return ge(function(n){return U.pipe(D(n))})};
QN_=function(l,D){if(l.inCrossDomainIframe)return xF(new Fm(6));var U=new RB;return IV(pz({}),D,U).pipe(wE(function(){return{timestamp:l.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:vgc(l),topWindowViewportExternalGeometry:IB(l,!0),measurementRequests:U,viewportLocalAppOffset:{x:0,y:0}}}}),ZU(l.queue))};
vgc=function(l){var D=IB(l,!1);if(!l.inIframe||!jBd(l.global.parent)||l.global.parent===l.global)return D;var U=new nw(l.global.parent,l.debugChannel);U.beaconFactory=l.beaconFactory;U=vgc(U);l=l.global.frameElement.getBoundingClientRect();return e3l(mxg(e3l(U,l),{x:D.left-l.left,y:D.top-l.top}),D)};
GZG=function(l){if(l.prerendering)return 3;var D;return(D={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[l.visibilityState||l.webkitVisibilityState||l.mozVisibilityState||""])!=null?D:0};
JfN=function(l){return l.document.JSC$9452_onVisibilityChange.pipe(wE(function(D){return D==="visible"}),yK(),er(l.queue))};
LvK=function(l,D,U){var n;return D.pipe(yK(),ge(function(y){return U.pipe(wE(function(){if(!n){n=!0;try{y.next()}finally{n=!1}}return!0}))}),bp(!1),er(l.queue))};
qZC=function(l){return Jv(VK(wE(function(D){return D>=1?!0:D<=0?!1:D>=l})),Jqo(),wE(function(D){return Math.round(D)}))};
RG3=function(l,D,U,n,y){var A=MMl;if(A.length>1)for(var C=0;C<A.length-1;C++)if(A[C]<A[C+1])throw Error();C=y.pipe(bp(void 0),ge(function(){return U.pipe(MNs())}),yK(),er(l));
y=y.pipe(bp(void 0),ge(function(){return U.pipe(hGc())}),yK(),er(l));
return{totalMeasurementTime:n.pipe(bp(void 0),ge(function(){return D.pipe(wE(function(h){return{timestamp:h.timestamp,value:!0}}),Jqo())}),yK(),er(l)),
totalUnviewedTime:n.pipe(bp(void 0),ge(function(){return D.pipe(wE(function(h){return{timestamp:h.timestamp,value:h.value===0}}),Jqo())}),yK(),er(l)),
maxTimeOnScreen:n.pipe(bp(void 0),ge(function(){return D.pipe(qPs(P0C,A))}),yK(_.Y9),er(l)),
timeOnScreen:n.pipe(bp(void 0),ge(function(){return D.pipe(qPs(qZC,A),wE(function(h){return h.map(function(b,u){return u>0?b-h[u-1]:b})}))}),yK(_.Y9),er(l)),
maxConsecutiveViewTime:y,consecutiveViewTime:C.pipe(yK(iO),er(l))}};
eGG=function(l){var D=!0;D=D===void 0?!1:D;return Jv(ge(function(U){return ZkN(l.document,U,D)}),er(l.queue))};
m13=function(l,D,U){var n=U.pipe(wE(function(y){return{value:y,timestamp:l.timeProvider.now()}}),yK(iO));
return D instanceof Lz?D.pipe(yK(),ge(function(y){return y?Ud(new aB({value:!1,timestamp:l.timeProvider.now()}),l.queue):n})):D.value===!1?n:new aB(!1)};
aQB=function(l,D,U,n,y,A,C){var h=ng$;D=D instanceof Lz?D.pipe(bp(!1),yK()):D;var b=!l.isMobile();U=m13(l,U,n);l=C.measurableCreative.pipe(vil(l.queue));return Object.assign({},h,{geometryIsOccluded:U,wasLargeAdAtRender:y,allowLargeAdThreshold:b,mayUseViewportShareExposure:D,hasMeasurementStarted:l,useIntersectionObserverV2:A})};
X3B=function(l,D,U,n,y,A){var C=1;A=A===void 0?!0:A;C=C===void 0?.01:C;var h=h===void 0?l.timeProvider.intervalObservable(100).pipe(er(l.queue)):h;return l.performanceMonitor.timeExecution(916,function(){return tM$(l,D.pipe(ZU(l.queue)),U.pipe(ZU(l.queue)),n,y,A,C,h)})()};
tM$=function(l,D,U,n,y,A,C,h){var b=JfN(l).pipe(wE(function(Q){return!Q})),u=new SZc(l,[new kZg(l,MMl),
new d19(l,h)]);h=niC(KvG,cf_);return HwN(l,D,function(Q,G){var J=Ud(new aB(G.element),Q.queue).pipe(eGG(Q),er(Q.queue)),L={loadedElement:J,shouldMeasure:J.pipe(Uj(!0)),measurableCreative:J.pipe(wE(function(f){var I=I===void 0?Symbol():I;return Object.freeze({symbol:I,element:Ud(new aB(f),Q.queue)})})),
creativeSearchResult:Ud(new aB("mue"),Q.queue)},R=new aB(!1),a=new aB(!1),S=new aB(17),d=new aB(!1),c=new aB(!1),N=Ud(yp,Q.queue);R=u.buildGeometrySource(L,{inApp:R,useV2:!1,requestSource:Ud(S,Q.queue)}).geometrySource;L=aQB(Q,d,a,b,c,N,L);a=U1s(Q.queue,Q.timeProvider,R,L);L=a.geometrySignals;d=a.shouldResetViewabilitySignals;a=RG3(Q.queue,L.timestampedExposure,L.visible,a.shouldResetExposureSignals,d);d=C0G(Q.queue,Q.timeProvider,d,L.measurementRequests,L.visible);c=U.pipe(HY(function(f){return f===
G.element.ref}),wE(function(){return"ur"}));
N=LL9(Q.timeProvider,y).pipe(Uj("t"));c=oiG(Q,IV(c,N));N=LvK(Q,L.measurementRequests,c.pipe(HY(function(f){return f!==null})));
R=c.pipe(HY(function(f){return f!==null}),wE(function(){return GZG(Q.global.document)===1}));
var z=p3K(Q.document);return Object.assign({},{beaconFactory:new aB(Q.beaconFactory),context:new aB(Q),inferredPingId:new aB("lidar2"),timeOnScreenPingId:new aB("lidartos"),binaryContext:new aB(17),binaryVersion:new aB(n),requestSource:S,contextValidationErrors:new aB(Q.validate()?null:new oB),contextVisibilityKnown:new aB(z),payloadMapper:new aB(DVs),endOfSessionReason:c,timeOnScreenReason:c,requestMeasurementOnEndOfSession:N,hasImpressionFired:x13,crossDomainIframeState:new aB(Q.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:yp,inFetchLaterBeaconExperiment:yp,isTurtlex:yp,turtlexReportEventData:new aB(""),reportFencedFrameEvent:jr,isViewableAttributionEnabled:yp,inViewableAttributionExperiment:new aB(0),fetchBeaconFactory:jr,supportsPendingBeacon:yp,supportsFetchLater:yp,emit:new aB(WUo),beginToRenderEvent:new aB(Symbol()),activeViewUnmeasurableEvent:new aB(Symbol()),activeViewViewableEvent:new aB(Symbol()),creativeFound:x13,immediateUrlPrefixes:new aB(G.immediateUrls),timeOnScreenUrlPrefixes:new aB(G.timeOnScreenUrls),
cpmavUrls:jr,viewableRelayUrls:jr,measurementDeferralState:new aB(2),urlSerializer:new aB(giC),viewUrlSerializer:new aB(jNg),isCreativeLoaded:J.pipe(vil(Q.queue)),pageVisible:b.pipe(wE(function(f){return!f})),
eosPageVisible:R,timestampedExposureHistory:L.timestampedExposure.pipe(P7(function(f,I){f.push(I);return f},[]))},L,{viewable:Dy(Q,d),
maxTimeOnScreen:Dy(Q,a.maxTimeOnScreen),timeOnScreen:Dy(Q,a.timeOnScreen),maxConsecutiveViewTime:Dy(Q,a.maxConsecutiveViewTime),consecutiveViewTime:a.consecutiveViewTime.pipe(wE(function(f){return new lO(Q.timeProvider,f)})),
totalMeasurementTime:Dy(Q,a.totalMeasurementTime),totalUnviewedTime:Dy(Q,a.totalUnviewedTime),userAgentClientHints:Uxg(Q),clientOrderPingCounter:new aB(new Owl)})},UV_(l,C),yq9(A?Aq9(h,FvG):Aq9(h,og9),w3s))};
rfG=function(l){var D=_.EW.apply(1,arguments).filter(Boolean).join("&");if(!D)return l;var U=l.match(/[?&]adurl=/);return U?l.slice(0,U.index+1)+D+"&"+l.slice(U.index+1):l+(l.indexOf("?")<0?"?":"&")+D};
AA=function(l,D){return D?"&"+l+"="+encodeURIComponent(D):""};
zGo=function(){try{var l,D;return!!((l=window)==null?0:(D=l.top)==null?0:D.location.href)&&!1}catch(U){return!0}};
_.WE=function(l){l&&typeof l.dispose=="function"&&l.dispose()};
_.BE=function(l){for(var D=0,U=arguments.length;D<U;++D){var n=arguments[D];_.Ns(n)?_.BE.apply(null,n):_.WE(n)}};
$1_=function(){var l=fQ$();l=l===void 0?"bevasrsg":l;return new Promise(function(D){var U=window===window.top?window:zGo()?window:window.top,n=U[l],y;((y=n)==null?0:y.bevasrs)?D(new Cw(n.bevasrs)):(n||(n={},n=(n.nqfbel=[],n),U[l]=n),n.nqfbel.push(function(A){D(new Cw(A))}))})};
NtK=function(l){var D={c:l.rK,e:l.wqi,mc:l.rdL,me:l.u9u};l.zC&&(D.co={c:l.zC.zht,a:l.zC.tWi,s:l.zC.fGF});return D};
sNo=function(l){var D,U,n={rK:l.c,wqi:l.e,rdL:(D=l.mc)!=null?D:!1,u9u:(U=l.me)!=null?U:!1};l.co&&(n.zC={zht:l.co.c,tWi:l.co.a,fGF:l.co.s});return n};
EgN=function(l){return function(){var D;return _.P(function(U){if(U.nextAddress==1)return U.yield(l(),2);D=U.yieldResult;return U.return({f:function(){return D.i0v()},
c:function(n){return D.lSV(n)},
m:function(n){return D.fL(sNo(n))},
mws:function(n){return D.bhv(sNo(n))}})})}};
Ttd=function(l,D){var U=fQ$();U=U===void 0?"bevasrsg":U;D={s:function(A){var C;return l.snapshot(Object.assign({},A.c&&{rK:A.c},A.s&&{sDt:A.s},{zio:(C=A.p)!=null?C:!0}))},
e:function(A){var C;return void((C=l.f6v)==null?void 0:C.call(l,A))},
c:function(A,C){return l.t2v(A,C)},
p:l.vAW,l:function(){return l.vYW()},
wpc:D?EgN(D):void 0};var n=window===window.top?window:zGo()?window:window.top,y=n[U];if(y){y.bevasrs=D;if(y.nqfbel!==void 0)for(U=_.B(y.nqfbel),n=U.next();!n.done;n=U.next())n=n.value,n(D);y.nqfbel=void 0}else y={},y=(y.bevasrs=D,y.nqfbel=void 0,y),n[U]=y};
Hk_=function(l){var D=D===void 0?51:D;var U=[];_.uO(l,IQ9,6,_.vE()).forEach(function(n){_.Qp(n,2)<=D&&U.push(_.Qp(n,1))});
return U};
YZ9=function(l){var D=D===void 0?51:D;var U=[];_.uO(l,IQ9,6,_.vE()).forEach(function(n){_.Qp(n,2)>D&&U.push(_.Qp(n,1))});
return U};
Ok3=function(l){l.then(function(){},function(){})};
GC=function(l){return{fieldType:1,fieldName:l}};
JA=function(l){return{fieldType:2,fieldName:l}};
_.Lw=function(l){return{fieldType:3,fieldName:l}};
VMG=function(){function l(){y[0]=1732584193;y[1]=4023233417;y[2]=2562383102;y[3]=271733878;y[4]=3285377520;Q=u=0}
function D(G){for(var J=C,L=0;L<64;L+=4)J[L/4]=G[L]<<24|G[L+1]<<16|G[L+2]<<8|G[L+3];for(L=16;L<80;L++)G=J[L-3]^J[L-8]^J[L-14]^J[L-16],J[L]=(G<<1|G>>>31)&4294967295;G=y[0];var R=y[1],a=y[2],S=y[3],d=y[4];for(L=0;L<80;L++){if(L<40)if(L<20){var c=S^R&(a^S);var N=1518500249}else c=R^a^S,N=1859775393;else L<60?(c=R&a|S&(R|a),N=2400959708):(c=R^a^S,N=3395469782);c=((G<<5|G>>>27)&4294967295)+c+d+N+J[L]&4294967295;d=S;S=a;a=(R<<30|R>>>2)&4294967295;R=G;G=c}y[0]=y[0]+G&4294967295;y[1]=y[1]+R&4294967295;y[2]=
y[2]+a&4294967295;y[3]=y[3]+S&4294967295;y[4]=y[4]+d&4294967295}
function U(G,J){if(typeof G==="string"){G=unescape(encodeURIComponent(G));for(var L=[],R=0,a=G.length;R<a;++R)L.push(G.charCodeAt(R));G=L}J||(J=G.length);L=0;if(u==0)for(;L+64<J;)D(G.slice(L,L+64)),L+=64,Q+=64;for(;L<J;)if(A[u++]=G[L++],Q++,u==64)for(u=0,D(A);L+64<J;)D(G.slice(L,L+64)),L+=64,Q+=64}
function n(){var G=[],J=Q*8;u<56?U(h,56-u):U(h,64-(u-56));for(var L=63;L>=56;L--)A[L]=J&255,J>>>=8;D(A);for(L=J=0;L<5;L++)for(var R=24;R>=0;R-=8)G[J++]=y[L]>>R&255;return G}
for(var y=[],A=[],C=[],h=[128],b=1;b<64;++b)h[b]=0;var u,Q;l();return{reset:l,update:U,digest:n,digestString:function(){for(var G=n(),J="",L=0;L<G.length;L++)J+="0123456789ABCDEF".charAt(Math.floor(G[L]/16))+"0123456789ABCDEF".charAt(G[L]%16);return J}}};
yc9=function(l,D){D=D===void 0?itG:D;if(!lJ9){var U;l=(U=l.navigator)==null?void 0:U.userAgentData;if(!l||typeof l.getHighEntropyValues!=="function"||l.brands&&typeof l.brands.map!=="function")return Promise.reject(Error("ua"));DKg((l.brands||[]).map(function(y){var A=new UKG;A=_.c7(A,1,y.brand);return _.c7(A,2,y.version)}));
typeof l.mobile==="boolean"&&_.qx(nZ$,2,l.mobile);lJ9=l.getHighEntropyValues(D)}var n=new Set(D);return lJ9.then(function(y){var A=nZ$.clone();n.has("platform")&&_.c7(A,3,y.platform);n.has("platformVersion")&&_.c7(A,4,y.platformVersion);n.has("architecture")&&_.c7(A,5,y.architecture);n.has("model")&&_.c7(A,6,y.model);n.has("uaFullVersion")&&_.c7(A,7,y.uaFullVersion);return A.serialize()}).catch(function(){return nZ$.serialize()})};
Mx=function(l,D,U,n){this.initialValue_=l;this.maxValue_=D;this.currBaseValue_=this.currValue_=l;this.randomFactor_=U||0;this.backoffFactor_=n||2};
Rj=function(l){this.src=l;this.listeners={};this.typeCount_=0};
Cl9=function(){for(var l;l=Aco.remove();){try{l.fn.call(l.scope)}catch(D){yg(D)}Wdd.put(l)}Bc9=!1};
_.hgB=function(l){switch(l){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}};
PlN=function(l){switch(l){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""}};
_.btB=function(){};
M_c=function(l,D,U,n){l=gZl(uig(vZK(new _.Zy(1828,"0"),l),new QGo)).disableWithCredentials();D.length&&G8$(l,JcN(new LdG,D));n!==void 0&&(l.destinationUrl=n);var y=new qG3(1828,"","",!1,"",l.build());_.m7(y,l);var A=new aj({flush:function(C){try{y.flush(C)}catch(h){U(h)}}});
A.addOnDisposeCallback(function(){setTimeout(function(){try{A.snapshotAndFlush()}finally{y.dispose()}})});
A.invocationLimit=1E5;A.flushInterval=3E4;A.JSC$9868_flushTimer.setInterval(3E4);return A};
tA=function(){var l,D,U;return(U=(l=globalThis.performance)==null?void 0:(D=l.now)==null?void 0:D.call(l))!=null?U:Date.now()};
eg9=function(l,D){if(l.disable)return new Rg3;D=D?Hk_(D):[];l={vA:l.vA,bLO:l.qGX,bS6:l.fW5,destinationUrl:l.destinationUrl,hA6:l.hA6,b0i:l.b0i};D=D===void 0?[]:D;return new Zto(l,D)};
mKK=function(l){if(!l)return null;l=_.Xt(l,2);return l===null||l===void 0?null:YC(l)};
_.aJc=function(l){if(!l)return null;l=_.Xt(l,4);return l===null||l===void 0?null:_.dT(l)};
SG9=function(l,D){return D?t_$(D):l?XS$(l):Promise.resolve()};
t_$=function(l){return new Promise(function(D,U){var n=_.SU("SCRIPT"),y=_.aJc(l);_.BY(n,y);n.onload=function(){_.kT(n);D()};
n.onerror=function(){_.kT(n);U(Error("Fa"))};
(ds("HEAD")[0]||document.documentElement).appendChild(n)})};
XS$=function(l){return new Promise(function(D){var U=_.SU("SCRIPT");if(l){var n=_.Xt(l,6);n=n===null||n===void 0?null:_.yr(n)}else n=null;_.WY(U,n);(ds("HEAD")[0]||document.documentElement).appendChild(U);_.kT(U);D()})};
Kw=function(l,D,U){var n,y=new Promise(function(A){n=setTimeout(A,D)});
return Promise.race([l.finally(function(){return void clearTimeout(n)}),
y.then(U)])};
k8s=function(l,D){try{return globalThis.sessionStorage.setItem(l,D),!0}catch(U){return!1}};
dKN=function(l,D,U,n){D=D===void 0?0:D;U=U===void 0?l.length:U;var y=0;for(n&&(y=dKN(n));D<U;D++)n=typeof l==="string"?l.charCodeAt(D):l[D],y=Kd9(31,y)+n|0;return y};
cco=function(l,D){return[dKN(l,0,l.length>>1,D),dKN(l,l.length>>1)]};
pSB=function(l){var D=_.B(cco(l,cE));l=D.next().value;D=D.next().value;return l.toString(16)+D.toString(16)};
xK9=function(l,D){var U=cco(D);l=new Uint32Array(l.buffer);D=l[0];var n=_.B(U);U=n.next().value;n=n.next().value;for(var y=1;y<l.length;y+=2){for(var A=D,C=y,h=U,b=n,u=0;u<22;u++)C=C>>>8|C<<24,C+=A|0,C^=h+38293,A=A<<3|A>>>29,A^=C,b=b>>>8|b<<24,b+=h|0,b^=u+38293,h=h<<3|h>>>29,h^=b;A=[A,C];l[y]^=A[0];y+1<l.length&&(l[y+1]^=A[1])}};
jGo=function(l,D,U,n,y){var A=(4-(cE.length+U.length)%4)%4,C=new Uint8Array(4+A+cE.length+4+U.length),h=new DataView(C.buffer),b=0;h.setUint32(b,Math.random()*4294967295);b=b+4+A;C.set(cE,b);b+=cE.length;h.setUint32(b,y);C.set(U,b+4);xK9(C,n);return l.insert(D,function(u){return void globalThis.sessionStorage.removeItem(u)})?k8s(D,_.c2(C))?"s":"t":"i"};
Fdo=function(l,D){var U=globalThis.sessionStorage.getItem(l);if(!U)return["m"];try{var n=_.Oc(U);xK9(n,D)}catch(y){return globalThis.sessionStorage.removeItem(l),["c"]}for(D=4;D<7&&n[D]===0;)D++;for(U=0;U<cE.length;U++)if(n[D++]!==cE[U])return globalThis.sessionStorage.removeItem(l),["d"];U=(new DataView(n.buffer)).getUint32(D);return Math.floor(Date.now()/1E3)>=U?(globalThis.sessionStorage.removeItem(l),["e"]):["a",new Uint8Array(n.buffer,D+4)]};
oZ$=function(l){return globalThis.TextEncoder?(new TextEncoder).encode(l):_.pw(l)};
wS3=function(l){var D=l,U;return function(){if(D){var n=D;D=void 0;U=n.apply(this,arguments)}return U}};
zg9=function(l){return jh(function(D){if(D instanceof l)return!0;var U,n,y=D==null?void 0:(U=D.ownerDocument)==null?void 0:(n=U.defaultView)==null?void 0:n[l.name];return rc9(y)&&D instanceof y})};
_.oj=function(l,D,U){_.xT.call(this);this.JSC$10082_listener_=l;this.JSC$10082_interval_=D||0;this.handler_=U;this.callback_=(0,_.jU)(this.JSC$10084_doAction_,this)};
_.ws=function(l){l=fJ3(l);return _.dT(l)};
fJ3=function(l){return l===null?"null":l===void 0?"undefined":l};
NcK=function(l){if(l&&l.focus)if(l!==document.activeElement)l.focus();else return $K9(function(){return _.P(function(D){document.activeElement&&document.activeElement.blur();return D.return($K9(function(){l.focus()}))})})};
_.sGd=function(l){var D=D===void 0?5:D;setTimeout(function(){var U;return _.P(function(n){n.nextAddress==1&&(U=document.activeElement);if(n.nextAddress!=5)return(document.activeElement===U||document.activeElement===document.body)&&D>=0&&l?n.yield(NcK(l),5):n.jumpTo(0);if(document.activeElement===l)return n.return();l=l.parentElement;--D;return n.jumpTo(2)})},15)};
$K9=function(l){return new Promise(function(D){requestAnimationFrame(function(){D(l())})})};
Tcd=function(l){if(_.zC)l(_.zC);else{var D;((D=EZg)!=null?D:EZg=[]).push(l)}};
$T=function(){!_.zC&&_.fw&&_.IJ3(_.fw());return _.zC};
_.IJ3=function(l){_.zC=l;var D;(D=EZg)==null||D.forEach(Tcd);EZg=void 0};
_.Nx=function(l){_.zC&&_.zC.beforeLoadModuleCode(l)};
_.sd=function(){_.zC&&_.zC.JSC$11135_setLoaded()};
Ed=function(l){return cyo(l)?Number(l):String(l)};
Ht3=function(l){this.action=l;this.wfv=!1};
YG9=function(l,D){Ht3.call(this,"set-drive-options");this.appId=l;this.appOrigin=D};
Ots=function(l){Ht3.call(this,"visibility");this.visible=l};
V_9=function(l,D,U){TC.call(this,l,D,U)};
i6$=function(l){Ij.call(this,l)};
lll=function(l){l=l&&l.getWindow()||window;return l.gadgets&&l.gadgets.rpc};
UZ_=function(l,D){var U=D&&D.getWindow()||window;if(lll(D))l();else if(DZ_)DZ_.push(l);else var n=DZ_=[l],y=U.setInterval(function(){if(lll(D)){U.clearInterval(y);for(var A=0;A<n.length;A++)n[A]();DZ_=null}},100)};
y3l=function(l,D){var U=new HE(l);_.m7(D,U);var n={passive:!1};D.listen(U,"mousewheel",function(y){return void nHG(l,y)},n).listen(l,"scroll",function(y){return void nHG(l,y)},n)};
nHG=function(l,D){var U;a:{for(U=D.target;U;){if(U.nodeType==1){var n=_.Od(U,"overflowY");if(n=="auto"||n=="scroll")break a}U=U.parentNode}U=null}if(!U||!_.Vp(l,U)||U.scrollHeight==U.clientHeight||D.deltaY>0&&Math.abs(U.scrollTop-(U.scrollHeight-U.clientHeight))<=1||D.deltaY<0&&U.scrollTop==0)D.preventDefault(),D.stopPropagation()};
W_=function(l,D,U,n,y,A,C,h,b){h=h===void 0?!1:h;b=b===void 0?!1:b;TC.call(this,void 0,void 0,void 0);TC.call(this,A?A+" picker modal-dialog":"picker modal-dialog",!0,U);_.ih(l,"protocol");this.iframeManager_=new A3g;this.targetId_=lh();this.rpcToken_=lh();l=_.Dp(l);_.UP(l,"hostId");this.useGapi_=!b;h&&_.ny(l,"fv2","true");this.setUrl(l.toString());this.preferredDialogWidth_=n;this.preferredDialogHeight_=y;n!==void 0||y!==void 0?n=!0:(n=_.UP(_.Dp(l.toString()),"hostId"),WWl||(WWl=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
n=!WWl.has(n));this.autoSizeDialog_=n;this.JSC$10272_gadgetsDomHelper_=C||this.JSC$10223_dom_;D&&(C=this.JSC$10272_gadgetsDomHelper_,D=_.UP(_.Dp(this.JSC$10274_url_),"grugl")=="true"?Bb$:Cdg,lll(C)||(C=C||K2(document),n=C.createElement("SCRIPT"),_.BY(n,D),n.type="text/javascript",C.JSC$9407_document_.body.appendChild(n)));l=l.toString();D=null;C=l.indexOf("/picker?");C>-1?D=l.substring(0,C+8-1):Wo(l,"/picker")&&(D=l);D&&this.setRelayUrl(D+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(l=this.buttons_,l.JSC$10257_element_=this.buttonEl_,l.render()):_.Cz(this.buttonEl_,hvl),_.Aq(this.buttonEl_,!!this.buttons_))};
_.uys=function(l){var D=D===void 0?Pdo:D;var U=_.Ho(l),n=function(A){A=_.B(A);A.next();A=B_(A);return D(U,A)},y=function(A){var C=_.B(A);
A=C.next().value;C=B_(C);return l.apply(A,C)};
return function(){var A=_.EW.apply(0,arguments),C=this||_.nC,h=b6o.get(C);h||(h={},b6o.set(C,h));return gHC(h,[this].concat(_.zz(A)),y,n)}};
Cy=function(l){var D={};l=l.replace(/\r/g,"").split("\n");for(var U=0;U<l.length;U++){var n=l[U],y=n.indexOf(":");y<0||(D[n.substring(0,y)]=n.substring(y+2,n.length))}return D};
vHN=function(l,D,U){U=U===void 0?function(){}:U;
return l?D():U()};
_.Gnc=function(l){var D;return((D=Q2d.documentOverride)!=null?D:l).__wizdispatcher};
_.P_=function(l){var D=hq;hq=l;return D};
_.LW9=function(l){return l===J3d||(l==null?void 0:l.name)==="\u0275NotFound"};
_.bh=function(l,D){var U;if((U=l)==null?0:U.isDisposed)throw Error("jb`"+String(l.debugName));for(;l!==void 0;){U=l;if(U.retrieve)return U.retrieve(D,{optional:!0});l=l.parent}return J3d};
gM=function(l){return{"\u0275prov":{providedIn:"root",token:Symbol(l),factory:void 0,value:void 0}}};
_.qLc=function(l){var D=hq;if(!D){switch(l===void 0?3:l){case 0:l=Error("ib");break;case 1:l=Error("kb");break;case 2:l=Error("lb");break;default:l=Error("mb")}throw l;}return D};
M9N=function(l){var D=_.P_(l);l={};return l[Symbol.dispose]=function(){_.P_(D)},l};
Rvo=function(l,D){l.disposables||(l.disposables=[]);l.disposables.push(D)};
uh=function(l){var D=hq;D&&!D.isDisposed&&(Rvo(D,l),l.parent=D)};
evC=function(l){if(l.disposables){for(var D=_.B(l.disposables),U=D.next();!U.done;U=D.next())U=U.value,typeof U==="function"?U():Z6g(U);l.disposables.length=0}};
Z6g=function(l){if(!l.isDisposed){l.isDisposed=!0;var D;(D=l[Symbol.dispose])==null||D.call(l);delete l.parent;evC(l)}};
c3$=function(l){var D={retrieve:function(U){switch(U.\u0275prov.token){case mZN.\u0275prov.token:var n=l.asyncDeps;break;case _.alG.\u0275prov.token:n=l.rootElement;break;case t9$.\u0275prov.token:n=l.modelRootElement;break;case XG3.\u0275prov.token:n=l.appContext;break;case SLg.\u0275prov.token:n=l.rendererData;break;case knl.\u0275prov.token:n=l.injectingConstructor;break;case dZ9.\u0275prov.token:n=l.dispatcher}if(n)U=n;else a:{for(n=D.parent;n;){var y=n;if(y.retrieve){U=y.retrieve(U);break a}n=
n.parent}n=U.\u0275prov.token;y=KW3[n];y!==void 0?U=y:(y=U.\u0275prov.providedIn,U.\u0275prov.factory?(U=U.\u0275prov.factory(),n&&y==="root"&&(KW3[n]=U)):U=J3d)}return U}};
uh(D);return D};
pG9=function(){var l=_.qLc(1),D=_.bh(l,XG3);if(!_.LW9(D))return D;l=_.bh(l,dZ9);if(!_.LW9(l))return l.getOptionalAppContext()};
xZg=function(l){if(typeof document!=="undefined"&&document&&document.getElementById&&(l=document.getElementById(l))){var D=l.tagName.toUpperCase();if(D=="SCRIPT"||D=="LINK")return l}return null};
FWo=function(l,D){if((l=l===void 0?"":l)&&D)throw Error("sb");var U="";var n=_.nC._F_jsUrl;(l=D||xZg(l))&&(U=l.src?l.src:l.getAttribute("href"));if(n&&U){if(n!=U)throw Error("tb`"+n+"`"+U);U=n}else U=n||U;if(!j2o(U))throw Error("ub");return U};
zv9=function(){if(!oHo){oHo=!0;try{var l=FWo(_.nC._F_jsUrl?"":"base-js")}catch(n){return}var D=wG9(r3o(l)),U=Object.keys(D);U.length!==0&&Tcd(function(n){for(var y=_.B(U),A=y.next();!A.done;A=y.next()){A=A.value;for(var C=_.B(Object.keys(D[A])),h=C.next();!h.done;h=C.next())n.addExtraEdge(A,h.value)}})}};
$ZK=function(){var l=Object.assign({},flg);Object.getOwnPropertyNames(flg).forEach(function(D){v_[D]!==void 0&&(l[D]=v_[D])});
return l};
NbN=function(l,D){if(v_.enablePerformanceTiming){var U,n;(n=(U=performance).mark)==null||n.call(U,l+"Start__"+D)}};
s2c=function(l,D){if(v_.enablePerformanceTiming){var U,n;(n=(U=performance).measure)==null||n.call(U,l+"__"+D,l+"Start__"+D)}};
EH$=function(l,D,U){var n;return l&&D?l+"__"+D:(n=l!=null?l:D)!=null?n:U};
Ilg=function(l,D){var U=Object.create(Tbs);U.debugName=D;!hq||uh(U);D=_.P_(U);try{l(U)}finally{_.P_(D)}return function(){return void Z6g(U)}};
YLg=function(l){return QH(l)&&H6C in l};
O6G=function(l,D){return Object.is(l,D)};
Jq=function(l){var D=Gp;Gp=l;return D};
iBB=function(l){if(Ly)throw Error("Z");if(Gp!==null){var D=Gp.producersTail;if(D===void 0||D.producer!==l){var U=void 0,n=Gp.recomputing;if(n&&(U=D!==void 0?D.nextProducer:Gp.producers,U!==void 0&&U.producer===l)){Gp.producersTail=U;U.lastReadVersion=l.version;return}var y=l.consumersTail,A;if(!(A=y===void 0||y.consumer!==Gp)){if(n){a:{A=Gp;n=A.producersTail;if(n!==void 0){A=A.producers;do{if(A===y){n=!0;break a}if(A===n)break;A=A.nextProducer}while(A!==void 0)}n=!1}n=!n}A=n}A&&(n=qV(Gp),U={producer:l,
consumer:Gp,nextProducer:U,prevConsumer:y,lastReadVersion:l.version,nextConsumer:void 0},Gp.producersTail=U,D!==void 0?D.nextProducer=U:Gp.producers=U,n&&V9d(l,U))}}};
Rw=function(l){if(!qV(l)||l.dirty)if(l.dirty||l.lastCleanEpoch!==MV)(l.producerMustRecompute(l)||l0$(l))&&l.producerRecomputeValue(l),l.dirty=!1,l.lastCleanEpoch=MV};
Dal=function(l){if(l.consumers!==void 0){var D=Ly;Ly=!0;try{for(var U=l.consumers;U!==void 0;U=U.nextConsumer){var n=U.consumer;n.dirty||(l=void 0,n.dirty=!0,Dal(n),(l=n.consumerMarkedDirty)==null||l.call(n,n))}}finally{Ly=D}}};
Ua$=function(){var l;return((l=Gp)==null?void 0:l.consumerAllowSignalWrites)!==!1};
nGB=function(l){l&&(l.producersTail=void 0,l.recomputing=!0);return Jq(l)};
AL_=function(l){l.recomputing=!1;var D=l.producersTail,U=D!==void 0?D.nextProducer:l.producers;if(U!==void 0){if(qV(l)){do U=yL9(U);while(U!==void 0)}D!==void 0?D.nextProducer=void 0:l.producers=void 0}};
l0$=function(l){for(l=l.producers;l!==void 0;l=l.nextProducer){var D=l.producer,U=l.lastReadVersion;if(U!==D.version)return!0;Rw(D);if(U!==D.version)return!0}return!1};
V9d=function(l,D){var U=l.consumersTail,n=qV(l);U!==void 0?(D.nextConsumer=U.nextConsumer,U.nextConsumer=D):(D.nextConsumer=void 0,l.consumers=D);D.prevConsumer=U;l.consumersTail=D;if(!n)for(l=l.producers;l!==void 0;l=l.nextProducer)V9d(l.producer,l)};
yL9=function(l){var D=l.producer,U=l.nextProducer,n=l.nextConsumer,y=l.prevConsumer;l.nextConsumer=void 0;l.prevConsumer=void 0;n!==void 0?n.prevConsumer=y:D.consumersTail=y;if(y!==void 0)y.nextConsumer=n;else if(D.consumers=n,!qV(D))for(l=D.producers;l!==void 0;)l=yL9(l);return U};
qV=function(l){return l.consumerIsAlwaysLive||l.consumers!==void 0};
B$G=function(l){var D=Object.create(Wio);D.computation=l;l=function(){Rw(D);iBB(D);if(D.value===Zp)throw D.error;return D.value};
l[eN]=D;return l};
bBG=function(l,D){var U=Object.create(Cyo);U.value=l;D!==void 0&&(U.equal=D);l=function(){iBB(U);return U.value};
l[eN]=U;return[l,function(n){return htd(U,n)},
function(n){Ua$()||Py_(U);htd(U,n(U.value))}]};
htd=function(l,D){Ua$()||Py_(l);if(!l.equal(l.value,D)){l.value=D;l.version++;MV++;Dal(l);var U;(U=gGl)==null||U(l)}};
vG3=function(l,D,U){var n=Object.create(u0C);n.source=l;n.computation=D;U!=void 0&&(n.equal=U);l=function(){Rw(n);iBB(n);if(n.value===Zp)throw n.error;return n.value};
l[eN]=n;return l};
_.mU=function(l){var D=Jq(null);try{return l()}finally{Jq(D)}};
_.aw=function(l,D,U){U=U===void 0?"":U;l=bBG(l,D==null?void 0:D.equals);var n=l[0],y=n[eN];y.debugName=EH$(D==null?void 0:D.debugName,U,"[signal]");if(!v_.enablePerformanceTiming)return l;var A=l[1],C=l[2];return[n,function(h){QIB(function(){return void A(h)},y)},
function(h){QIB(function(){return void C(h)},y)}]};
QIB=function(l,D){NbN("signalSet",D.debugName);try{l()}finally{s2c("signalSet",D.debugName)}};
JLc=function(l,D){var U=_.B(_.aw(l,void 0,"cPpJzc"));l=U.next().value;U=U.next().value;l[Gj9]=U;l[tq]=D;return l};
Li3=function(l){return!!l&&typeof l==="object"&&Object.getPrototypeOf(l)===Object.prototype};
qUG=function(l){return typeof l==="function"&&Gj9 in l&&typeof l[Gj9]==="function"};
M2B=function(l,D){Object.defineProperty(l,tq,{get:function(){return D}})};
SN=function(l,D){if(Xx(l)){var U=l.map(function(A){return SN(A,D)});
M2B(U,D);return U}if(Li3(l)){U={};l=_.B(Object.entries(l));for(var n=l.next();!n.done;n=l.next()){var y=_.B(n.value);n=y.next().value;y=y.next().value;U[n]=SN(y,D)}M2B(U,D);return U}return JLc(l,D)};
Rt$=function(l){if(Xx(l))return l.map(function(y){return Rt$(y)});
if(Li3(l)){var D={};l=_.B(Object.entries(l));for(var U=l.next();!U.done;U=l.next()){var n=_.B(U.value);U=n.next().value;n=n.next().value;D[U]=Rt$(n)}return D}return qUG(l)?l():l};
et9=function(){var l={height:0,width:0};if(!Li3(l))throw Error("Jb");var D=Symbol("Kb");return[SN(l,D),function(U,n){if(U[tq]===D)if(typeof n==="function"){var y=[].concat(_.zz(Rt$(U)));n=n(y)||y;ZBg(U,[].concat(_.zz(n)))}else ZBg(U,n);else throw Error("Lb");}]};
ZBg=function(l,D){if(qUG(l))l[Gj9](D);else if(Xx(l)&&Xx(D))D=SN(D,l[tq]),l.length=0,l.push.apply(l,_.zz(D));else if((Li3(l)||Xx(l))&&(Xx(D)||typeof D==="object"&&D!==null)){D=_.B(Object.entries(D));for(var U=D.next();!U.done;U=D.next()){var n=_.B(U.value);U=n.next().value;n=n.next().value;var y=l,A=y[U];Object.hasOwn(l,U)?ZBg(A,n):y[U]=SN(n,l[tq])}}else throw Error("Mb");};
ma3=function(l){return Object.create(Object.assign({},ki,l))};
t2$=function(){var l;return(l=a0c)!=null?l:a0c=ma3({consumerAllowSignalWrites:!0})};
_.dM=function(l,D,U){U=U===void 0?"":U;l=B$G(l);var n=l[eN];n.debugName=EH$(D==null?void 0:D.debugName,U,"[computed]");(D==null?void 0:D.equals)!=null&&(n.equal=D.equals);return l};
Ky=function(l){var D=Jq(XAK);try{l()}finally{Jq(D)}};
kjK=function(l,D,U){var n=SU_(l);c_={name:U?n+" ("+U+")":n,isReactive:l.componentType!==py,parent:c_};l=D();c_=c_.parent;return l};
xi=function(){var l=c_;return l?l.isReactive:!1};
Fx=function(l,D,U){var n=c_;D&&(c_=D);try{return U==null?l():l.call(U)}catch(A){l=A;jN(l,c_);if(l!==daC){Kig=c_;D=[];for(U=hq;U;){var y=void 0;D.push((y=U.debugName)!=null?y:"[context]");y=void 0;U=(y=U.parent)!=null?y:null}cLs=D.reverse()}daC=l;throw l;}finally{c_=n}};
jN=function(l,D){try{var U=pAC(D);if(U&&!l.componentStack&&(l.componentStack=U,v_.enableComponentStacksInErrorMessages)){var n=l.message+"\n\nComponent stack: "+U;l.stack&&(l.stack=l.stack.replace(l.message,n));l.message=n}}catch(y){}};
pAC=function(l){if(QH(l)&&l.name!==void 0&&l.isReactive!==void 0&&l.parent!==void 0||l===null){for(var D=0,U="";D<20&&l;)U+=l.name+" > ",l=l.parent,D++;l=U.slice(0,-3)}else if(v_.enableContextBasedComponentStacks){a:{for(l=l===void 0?hq:l;l;){if(YLg(l))break a;D=void 0;l=(D=l.parent)!=null?D:null}l=null}l=l.getComponentStack().slice(0,20).join(" > ")}else l="";return l};
SU_=function(l){return l.debugName||l.name||"[component]"};
wAs=function(l){switch(l.onInitType){case xad:jIg.schedule(l);break;case Fig:v_.enableQueueEffectAndOnInitInitialRuns?oGc.enqueue(l):oGc.schedule(l);break;default:_.Tv(l.onInitType)}};
CPc=function(l){if(!l.isDisposed)switch(l.effectType){case ow:rLc.schedule(l);break;case ztG:f0K.schedule(l);break;case WEs:v_.enableQueueEffectAndOnInitInitialRuns||l.hasRun?Bmg.enqueue(l):Bmg.schedule(l);break;default:_.Tv(l.effectType)}};
bA_=function(){if(wM>0)v_.flushRenderEffectsDuringRender&&rLc.flush();else{for(var l=_.B(hXc),D=l.next();!D.done;D=l.next())D.value.flush();PP9()}};
PP9=function(){_.P(function(l){if(l.nextAddress==1)return l.yield(Promise.resolve(),2);for(var D=_.B(gYo),U=D.next();!U.done;U=D.next())U.value.flush();_.Kz(l)})};
vYg=function(l){rM=!0;try{for(var D=_.B(l),U=D.next();!U.done;U=D.next()){for(var n=U.value,y=[n],A=n;A.parent!==void 0;)A=A.parent,ubd(A)&&l.has(A)&&y.push(A);for(;y.length>0;){var C=y.pop();l.delete(C);C.run()}}}finally{rM=!1}};
zp=function(l){wM--;if(l){l=_.B(Q1c);for(var D=l.next();!D.done;D=l.next())D.value.clear()}else wM>0||rM&&!v_.flushRenderEffectsDuringRender||bA_()};
G73=function(l,D,U){D=Object.create(D);l&&(D.effectFn=l);U&&(D.debugName=U);uh(D);D.componentStack=c_;return D};
_.fy=function(l,D){l=G73(l,JHl,D);CPc(l)};
_.$i=function(l,D){l=G73(l,LEl,D);CPc(l)};
q13=function(l){return l};
Mn$=function(l,D){function U(){return y()}
var n=n===void 0?"":n;var y=typeof l==="function"?vG3(l,q13,D==null?void 0:D.equals):vG3(l.source,l.computation,D==null?void 0:D.equals);var A=y[eN];A.debugName=EH$(D==null?void 0:D.debugName,n,"[linkedSignal]");U[eN]=A;return[U,function(C){QIB(function(){Rw(A);htd(A,C);A.dirty=!1;A.lastCleanEpoch=MV},A)},
function(C){QIB(function(){Rw(A);Ua$()||Py_(A);htd(A,C(A.value));A.dirty=!1;A.lastCleanEpoch=MV},A)}]};
_.NV=function(l){var D=hq;if(D){var U=c_;Rvo(D,function(){var n=Jq(t2$());try{Fx(function(){return void l()},U)}catch(y){throw v_.enableContextBasedComponentStacks&&jN(y),y;
}finally{Jq(n)}})}};
sP=function(l,D){var U={};(D===void 0||D)&&uh(U);D=_.P_(U);try{l(U)}finally{_.P_(D)}return function(){return void Z6g(U)}};
_.EP=function(l){return typeof l==="function"?l():(l==null?0:l[RXl])?l.get():l};
ZA$=function(l){if(hq)throw Error("nb");sP(l,!1)};
Tp=function(l,D){l=_.P_(l);try{return _.mU(D)}finally{_.P_(l)}};
Iw=function(l,D){var U=pAC(Kig),n,y;var A=(y=(n=cLs)==null?void 0:n.slice())!=null?y:[];D={componentStack:U,contextTrace:A,errorSeverity:3,featureFlags:$ZK(),tagName:D};return[l,D]};
aml=function(l,D,U){if(Object.hasOwnProperty.call(eXo,l)&&(l=eXo[l],Object.hasOwnProperty.call(l,D)&&(l=l[D],l instanceof Array))){for(var n=null,y=!1,A=0,C=l.length;A<C;++A){var h=l[A],b=h.contingentAttribute;if(!b)return h.contract;n===null&&(n={});b=Object.hasOwnProperty.call(n,b)?n[b]:n[b]=U(b);if(b===h.requiredValue)return h.contract;b==null&&(y=!0)}if(y)return null}D=mMd[D];return typeof D==="number"?D:null};
S1K=function(l,D,U){var n=null;(l=tnl[l])&&(n=l[D]);return typeof n!=="number"&&((l=tnl["*"])&&(n=l[D]),typeof n!=="number")?!1:!0===Xd9[n][String(U).toLowerCase()]};
dMC=function(l,D){D=aml(l.toLowerCase(),D,function(){var n;(n=v_.handleError)==null||n.call.apply(n,[v_].concat(_.zz(Iw(Error("Tb"),l.toLowerCase()))))});
if(D===null)return null;var U;return(U=k7l[D])!=null?U:null};
KE$=function(l,D,U){if(U===null||U===void 0)return U;D=D.toLowerCase();l=dMC(l,D);return l===null?U:l(D,U)};
cHg=function(){};
Yi=function(l,D){for(;l.length>D;)l.pop()};
pdc=function(l){l=Array(l);Yi(l,0);return l};
OP=function(l,D,U){if(U==null)l.removeAttribute(D);else{var n;(n=D.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":D.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?l.setAttributeNS(n,D,U):l.setAttribute(D,U)}};
xM3=function(l,D,U){l[D]=U};
FEo=function(l,D,U){l=l.style;if(typeof U==="string")l.cssText=U;else{l.cssText="";for(var n in U)if(j1d.call(U,n)){D=l;var y=n,A=U[n];y.indexOf("-")>=0?D.setProperty(y,A):D[y]=A}}};
oYK=function(l,D,U){var n=typeof U;n==="object"||n==="function"?l[D]=U:OP(l,D,U)};
wd9=function(){var l=new cHg;l[VH.default]=oYK;l.style=FEo;return l};
rHd=function(l,D,U,n){(n[D]||n[VH.default])(l,D,U)};
fmG=function(l,D,U){D=new zX$(D,U);return l.__incrementalDOMData=D};
DQ=function(l,D){if(l.__incrementalDOMData)return l.__incrementalDOMData;var U=l.nodeType===1?l.localName:l.nodeName,n=l.nodeType===1?l.getAttribute("key"):null;D=fmG(l,U,l.nodeType===1?n||D:null);if(l.nodeType===1&&(l=l.attributes,U=l.length)){n=D._attrsArr||(D._attrsArr=pdc(U*2));for(var y=0,A=0;y<U;y+=1,A+=2){var C=l[y],h=C.value;n[A]=C.name;n[A+1]=h}}return D};
$MN=function(l,D,U,n,y){return D==U&&n==y};
NmC=function(l){for(var D=UZ,U=nk();U!==l;){var n=U.nextSibling;D.removeChild(U);y5.deleted.push(U);U=n}};
nk=function(){return Af?Af.nextSibling:UZ.firstChild};
W3=function(){Af=nk()};
Tml=function(l,D,U){W3();var n;a:{if(n=Af){do{var y=n,A=l,C=D,h=DQ(y,C);if(s1l(y,A,h.nameOrCtor,C,h.key))break a}while(D&&(n=n.nextSibling))}n=null}n||(l==="#text"?(U=B3.createTextNode(""),fmG(U,"#text",null),l=U):(n=B3,y=UZ,typeof l==="function"?n=new l:n=(y=l==="svg"?"http://www.w3.org/2000/svg":l==="math"?"http://www.w3.org/1998/Math/MathML":y==null||DQ(y).nameOrCtor==="foreignObject"?null:y.namespaceURI)?n.createElementNS(y,l):n.createElement(l),fmG(n,l,D),l=n,U&&l.setAttribute("nonce",U)),y5.created.push(l),
n=l);U=n;if(U!==Af){if(EY9.indexOf(U)>=0)for(l=UZ,D=U.nextSibling,n=Af;n!==null&&n!==U;)y=n.nextSibling,l.insertBefore(n,D),n=y;else UZ.insertBefore(U,Af);Af=U}};
Ims=function(l,D,U){Tml(l,D,U);UZ=Af;Af=null;return UZ};
HAC=function(){NmC(null);Af=UZ;UZ=UZ.parentNode};
Vns=function(l,D){D=D===void 0?{}:D;var U=D.matches===void 0?$MN:D.matches;return function(n,y,A){var C=y5,h=B3,b=EY9,u=Ck,Q=hf,G=Af,J=UZ,L=s1l;B3=n.ownerDocument;y5=new Y13(n);s1l=U;Ck=[];hf=[];Af=null;var R=UZ=n.parentNode,a,S=OAg.call(n);if((a=S.nodeType===11||S.nodeType===9?S.activeElement:null)&&n.contains(a)){for(S=[];a!==R;)S.push(a),a=a.parentNode||(R?a.host:null);R=S}else R=[];EY9=R;try{return l(n,y,A)}finally{n=y5,P3&&n.deleted.length>0&&P3(n.deleted),B3=h,y5=C,s1l=L,Ck=u,hf=Q,Af=G,UZ=J,
EY9=b}}};
iSd=function(l,D,U,n){b0.push(rHd);b0.push(l);b0.push(D);b0.push(U);b0.push(n)};
DEG=function(l,D,U){var n=hf;D=D._attrsArr||(D._attrsArr=pdc(n.length));for(var y=!D.length||!1,A=0;A<n.length;A+=2){var C=n[A];if(y)D[A]=C;else if(D[A]!==C)break;var h=n[A+1];if(y||D[A+1]!==h)D[A+1]=h,iSd(l,C,h,U)}if(A<n.length||A<D.length){for(A=y=A;A<D.length;A+=2)gt[D[A]]=D[A+1];for(A=y;A<n.length;A+=2)y=n[A],C=n[A+1],gt[y]!==C&&iSd(l,y,C,U),D[A]=y,D[A+1]=C,delete gt[y];Yi(D,n.length);for(var b in gt)iSd(l,b,void 0,U),delete gt[b]}l=lBl;lBl=U=b0.length;for(b=l;b<U;b+=5)(0,b0[b])(b0[b+1],b0[b+
2],b0[b+3],b0[b+4]);lBl=l;Yi(b0,l);Yi(n,0)};
UEc=function(l){Tml("#text",null);var D=Af;var U=DQ(D);if(U.text!==l){U=U.text=l;for(var n=1;n<arguments.length;n+=1)U=(0,arguments[n])(U);D.data!==U&&(D.data=U)}};
h6G=function(l,D,U){if(U===!1&&nxs.has(D))OP(l,D,null);else if(D!=="idomKey"&&D!=="skip"&&D!=="skipchildren"&&D!=="children"&&D!=="el")if(D.startsWith("on")){if(D[2]!==":")throw Error("Sb`"+D);if(U===void 0||U===null){var n;(n=v_.handleError)==null||n.call.apply(n,[v_].concat(_.zz(Iw(Error("Xb`"+D),l.tagName))));l[D]=void 0}else{var y=D.slice(3);n=xi();if(y==="jsaction"){U=Array.isArray(U)?U:[U];U=_.B(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;if(typeof A!=="object"||A===null||typeof A.selfReg!==
"function")throw Error("$b`"+D);A.selfReg(0,l,n?_.NV:function(){})}}else{if(typeof U!=="object"||U===null)throw Error("Yb`"+D+"`"+typeof U);
if(typeof U.getFn!=="function")throw Error("Zb`"+D+"`"+Object.keys(U));if(U.selfReg)U.selfReg(0,l,y,n?_.NV:function(){});
else if(n&&l["on"+y]===void 0){var C=U.getFn(0);l.addEventListener(y,C);_.NV(function(){return void l.removeEventListener(y,C)})}else if(n||!yOo.includes(y))l["on"+y]=U.getFn(0)}}}else{if(D.startsWith("data-")&&typeof U==="string")try{U=AOK(U)}catch(h){U="zSoyz"}typeof U!=="function"||l._disposeEffects!=null?((n=D.startsWith("prop:"))&&(D=D.slice(5)),v_.enableAttributeSanitization&&(n&&Ww9(l.tagName)||(U=KE$(l.tagName,D,U))),D==="style"?("function"==typeof _.u0&&U instanceof _.u0&&(U=U.toString()),
B0g(l,D,U)):n?l[D]=U:C63(l,D,U)):(l._signalProps||(l._signalProps=[]),l._signalValues||(l._signalValues=[]),l._signalProps.push(D))}};
P6B=function(l,D,U){U=(U===void 0?{}:U).isReactive;if(D==null?0:D.el){var n=D.el,y;(y=n.onRender)==null||y.call(n,l);l._disposeRef||(l._disposeRef=function(){var A;(A=n.onUnmount)==null||A.call(n);delete l._disposeRef},U&&_.NV(function(){var A;
(A=l._disposeRef)==null||A.call(l)}))}};
Ww9=function(l){return l.length>0&&l.includes("-")&&!bSB.includes(l.toLowerCase())};
gxC=function(l){return QH(l)&&v3 in l};
u4N=function(l){return gxC(l)?l[v3].flattened:l};
vxG=function(l,D){var U=_.EW.apply(2,arguments),n;D=(n=D)!=null?n:{};n={};return n.type=l,n.props=D,n.children=U,n[Q5]=!0,n};
_.GZ=function(l){return l.children};
Jf=function(l){var D=QA3!==vxG;QA3=l?Gs3:vxG;return D};
_.q1=function(l){return _.I_(l)?"nodeType"in l:!1};
M1=function(){return document.createTextNode("")};
RN=function(l){l=document.createTextNode(String(l));l._isSignalTextNode=!0;return l};
Lwo=function(l){return l!=null&&l.contentKind===ZQ||l instanceof Hh||JOc(l)};
q2_=function(l){var D=document.createElement("div");if(JOc(l)&&mKK(l))_.Cz(D,mKK(l));else if(l instanceof Hh)_.Cz(D,l);else if(l!=null&&l.contentKind===ZQ){if(l.contentKind!==ZQ)throw Error("Wb");l=YC(l.toString());_.Cz(D,l)}l=_.B(D.childNodes);for(var U=l.next();!U.done;U=l.next())U.value._isSafeOrSanitizedHtmlNode=!0;return D};
mv=function(l){l=typeof l;return l==="string"||l==="number"||l==="boolean"};
MV$=function(l){return l instanceof kC||FO(l)||l instanceof b8||"function"==typeof _.u0&&l instanceof _.u0};
R6G=function(l,D){var U=l.parentElement;if(!U)return D;U.replaceChild(D,l);return D};
ZSN=function(l,D){var U=l[0].parentElement;if(U)if(l[0].previousSibling||l[l.length-1].nextSibling){U.insertBefore(D,l[0]);for(var n=l.length-1;n>=0;n--)U.removeChild(l[n])}else U.textContent="",U.appendChild(D);return D};
e6s=function(l,D){if(l[0].parentElement)for(var U=l[0].parentElement,n=D.length,y=l.length,A=n,C=0,h=0,b=l[y-1].nextSibling,u=null;C<y||h<A;)if(l[C]===D[h])C++,h++;else{for(;l[y-1]===D[A-1];)y--,A--;if(y===C)for(var Q=A<n?h?D[h-1].nextSibling:D[A-h]:b;h<A;){var G=D[h++];U.insertBefore(G,Q)}else if(A===h)for(;C<y;)Q=l[C],u&&u.has(Q)||U.removeChild(Q),C++;else if(l[C]===D[A-1]&&D[h]===l[y-1])Q=l[--y].nextSibling,U.insertBefore(D[h++],l[C++].nextSibling),U.insertBefore(D[--A],Q),l[y]=D[A];else{if(!u)for(u=
new Map,Q=h;Q<A;)u.set(D[Q],Q++);Q=u.get(l[C]);if(Q==null)U.removeChild(l[C]),C++;else if(h<Q&&Q<A){G=C;for(var J=1,L=void 0;++G<y&&G<A&&(L=u.get(l[G]))!=null&&L===Q+J;)J++;if(J>Q-h)for(G=l[C];h<Q;)U.insertBefore(D[h++],G);else U.replaceChild(D[h++],l[C++])}else C++}}return D};
aBB=function(l){if(Array.isArray(l)){if(l.length>1)throw Error("jc`"+l.length+"`"+l.map(mEc).join(", "));l=l[0]}if(l==null)return null;if(!(l instanceof _.nz)){var D,U;if((D=window)==null?0:(U=D.trustedTypes)==null?0:U.isScript(l))throw Error("ic");if(String(l).trim().length===0)return null;throw Error("kc`"+mEc(l));}return l};
tVK=function(l,D){D=aBB(D);D!==null&&_.WY(l,D)};
XT9=function(l){if(Array.isArray(l)){if(l.length>1)throw Error("lc`"+l.length+"`"+l.map(mEc).join(", "));l=l[0]}if(l==null)return null;if(!(l instanceof b8)){if(String(l).trim().length===0)return null;throw Error("mc`"+mEc(l));}return l};
S2N=function(l,D){D=XT9(D);D!==null&&(l.textContent=Gz$(D))};
mEc=function(l){return"("+typeof l+") "+(l!=null&&typeof l==="object"?l.constructor.name:typeof l)+" "+l};
kss=function(){};
X2=function(l,D){D=D===void 0?{}:D;var U=dE9(),n=!0,y,A=!!v_.legacyTriggerSoyRendererEvents;A&&(y=pG9());_.fy(function(){var C=!n&&D.isControlFlowComponent&&A,h=C?U[v3].flattened[0].parentElement:void 0;n=!1;_.aN.setUp();D.isControlFlowComponent&&wM++;var b=U[0],u=U[v3].flattened,Q=Jf(!0);try{var G=l(),J=Kwc(b,G,U);Array.isArray(J)||(U[v3].flattened=[J]);var L=U[v3].flattened;if(u&&(!Array.isArray(u)||u.length!==0)){var R=Array.isArray(u)?u[0]:u,a=R[tf],S=R._disposeEffects;R._disposeEffects=void 0;
R=Array.isArray(L)?L[0]:L;R[tf]=a;R[tf]&&(R[tf].numNodes=R===L?1:L.length);R._disposeEffects=S}U[0]=J;D.isControlFlowComponent&&zp(!1)}catch(d){throw D.isControlFlowComponent&&zp(!0),d;}finally{Jf(Q),_.aN.tearDown()}C&&(C=y,C!=null||(C=_.Gnc(document).getAppContext()),C.get(cOc).JSC$29578_getEventTarget().dispatchEvent(new pT$(xEc,h,ZQ)))},D.debugName);
return U};
Kwc=function(l,D,U){for(;typeof D==="function";)D=D();if(D!=null&&D[Q5]){var n,y,A;(A=v_.handleError)==null||A.call.apply(A,[v_].concat(_.zz(Iw(Error("nc`"+((n=D.type)==null?void 0:n.TAG_NAME)),(y=D.type)==null?void 0:y.TAG_NAME))))}if(l==null)return D==null?M1():mv(D)?RN(D):MV$(D)?RN(D.toString()):_.q1(D)?D:D.length===0?M1():jAB(D,U);if(_.q1(l)){if(D==null)return R6G(l,M1());if(mv(D))return Fw3(l,D);if(MV$(D))return Fw3(l,D.toString());if(_.q1(D))return R6G(l,D);if(D.length===0)return R6G(l,M1());
D=jAB(D,U);e6s([l],U[v3].flattened);return D}l=SM(l);if(D==null)return ZSN(l,M1());if(mv(D))return ZSN(l,RN(D));if(MV$(D))return ZSN(l,RN(D.toString()));if(_.q1(D))return e6s(l,[D])[0];if(D.length===0)return ZSN(l,M1());D=jAB(D,U);e6s(l,U[v3].flattened);return D};
Fw3=function(l,D){l.nodeType===Node.TEXT_NODE?l.textContent!==String(D)&&(l.textContent=String(D)):l=R6G(l,RN(D));return l};
SM=function(l,D,U){return ox$(l,D!=null?D:[],U===void 0?!1:U)};
jAB=function(l,D){var U=SM(l,void 0,!0);if(U.length===0)return M1();D[v3].flattened=U;return l};
ox$=function(l,D,U,n,y){D=D===void 0?[]:D;U=U===void 0?!1:U;y=y===void 0?-1:y;if(l==null)return D;if(l instanceof kg){var A=l.render();return ox$(A,D,U,n,y)}if(_.q1(D)&&D.nodeType===Node.ELEMENT_NODE)switch(D.tagName){case "SCRIPT":tVK(D,l);return;case "STYLE":S2N(D,l);return}mv(l)&&(l=RN(l),n&&U&&(n[y]=l));if(Lwo(l)){U=q2_(l);U=Array.from(U.childNodes);U=_.B(U);for(A=U.next();!A.done;A=U.next())wTG(D,A.value);return D}MV$(l)&&(l=RN(l.toString()),n&&U&&(n[y]=l));if(_.q1(l))return wTG(D,l);if(Array.isArray(l)){for(A=
0;A<l.length;A++)ox$(l[A],D,U,l,A);return D}if(typeof l==="function"){A=X2(function(){var h=l();return h!=null&&!mv(h)&&Lwo(h)?(h=q2_(h),Array.from(h.childNodes)):h},{debugName:"qmF2ne",
debugFn:l})[0];if(Array.isArray(A)){U=_.B(A);for(A=U.next();!A.done;A=U.next())wTG(D,A.value);return D}n&&U&&(n[y]=A);return wTG(D,A)}if(l!=null&&l[Q5]){n=l;y=Jf(!0);var C=QA3;try{A=C.apply(null,[n.type,n.props].concat(_.zz(n.children)))}finally{Jf(y)}return ox$(A,D,U)}(C=v_.handleError)==null||C.call.apply(C,[v_].concat(_.zz(Iw(Error("oc")))));return D};
dE9=function(l){var D={};D=Object.assign([],(D[v3]={flattened:[]},D));if(!l)return D;D[0]=jAB(l,D);return D};
wTG=function(l,D){Array.isArray(l)?l.push(D):l.appendChild(D);return l};
dt=function(l){if(!v_.enableLazyTsx)return l;if(Array.isArray(l)){for(var D=0;D<l.length;D++)l[D]=dt(l[D]);return l}return l instanceof kg?(l=l.render(),dt(l)):l};
z6c=function(l,D){var U,n,y=SU_(l),A=function(L){n=L;L=Jf(!0);var R=Jq(Kk);NbN("render",y);try{U=dt(l(D))}finally{s2c("render",y),Jq(R),Jf(L)}};
A=v_.enableContextPerComponent?Ilg(A,y):sP(A,v_.alwaysTrackContexts||!!hq);YLg(n);if(!D.renderedFromIdom){var C=_.P_(n);try{return rO$(l,D,U),U}finally{_.P_(C)}}!gxC(U)&&Array.isArray(U)&&(U=dE9(U));var h=u4N(U);C=Array.isArray(h)?h[0]:h;var b=!1;if(C){var u,Q=(u=D==null?void 0:D.idomKey)!=null?u:l;u=h!==C;C._disposeEffects=A;var G=C[tf]||{},J=gxC(U)?U:G.sourceDynamicRange;Object.assign(G,{key:Q,numNodes:u?h.length:1,context:n,higherOrder:!!C[tf],sourceDynamicRange:J});C[tf]=G}else b=!0;(function(){var L=
_.P_(n);try{rO$(l,D,h)}finally{_.P_(L)}})();
b&&A();return U};
fB3=function(l){var D={},U;for(U in l)D={prev$jscomp$24:void 0,next$jscomp$33:void 0},D.prev$jscomp$24=c3[U],D.next$jscomp$33=l[U],c3[U]=function(n){return function(){var y=_.EW.apply(0,arguments);n.prev$jscomp$24.apply(null,_.zz(y));n.next$jscomp$33.apply(null,_.zz(y))}}(D)};
$EC=function(){if(xi())throw Error("pc");return pk};
N0B=function(l,D){if(!l.__unmounted&&D){l.__unmounted=!0;try{l.didUnmount()}catch(y){var U,n;(n=v_.handleError)==null||n.call.apply(n,[v_].concat(_.zz(Iw(y,(U=l.__type)==null?void 0:U.TAG_NAME))))}c3.didUnmount(l);l.el=null;D.__instance&&delete D.__instance}};
Exd=function(l,D,U){l._signalProps!=null&&l._disposeEffects==null&&((U===void 0?0:U)?l._disposeEffects=sP(function(){return void sA9(l,D)},v_.alwaysTrackContexts||!!hq):sA9(l,D))};
sA9=function(l,D){_.fy(function(){for(var U=l._signalProps,n=l._signalValues,y=0;y<U.length;y++){var A=U[y],C=D[A]();n[y]!==C&&(n[y]=C,h6G(l,A,C))}},"e3YVbb")};
T03=function(l,D,U){var n,y=[];l._disposeEffects=sP(function(){_.fy(function(){var A=U();if(A===null||A===void 0)A="";if(mv(A)||A===null)n!=null||(n=document.createTextNode("")),n.parentNode!==l&&(n._isSignalTextNode=!0,l.insertBefore(n,D)),n.textContent=String(A);else if(Lwo(A)){for(var C=y.length>0?y[y.length-1].nextSibling:D,h=_.B(y),b=h.next();!b.done;b=h.next())l.removeChild(b.value);A=q2_(A);y=Array.from(A.childNodes);A=_.B(y);for(h=A.next();!h.done;h=A.next())l.insertBefore(h.value,C)}else throw b=
(h=(C=c_)==null?void 0:C.name)!=null?h:"unknown",Error("ec`"+b+"`"+typeof A);},"VvDgC")},v_.alwaysTrackContexts||!!hq)};
Y2B=function(l,D){var U=_.EW.apply(2,arguments);D!=null||(D={});return!v_.enableLazyTsx||c_!=null&&!xi()?IBs(l,D,U):new HS_(l,D,U)};
IBs=function(l,D,U){if(l===_.GZ)return U;if(typeof l==="function")return c_&&!xi()&&(D.renderedFromIdom=!0),kjK(l,function(){var A=OSc(l,D,U);if(A)return A;U.length>0&&(D.children=U.length===1?U[0]:U);if(l.componentType===py){var C;Ilg(function(){var h=D;if(l.componentType!==py)C=!1;else{h||(h={});var b=new xg(h,l),u=Jq(Kk);try{var Q=b.render(h)}finally{Jq(u)}Q instanceof HTMLElement?(Q.__instance=b,b.el=Q,b.__type=l,l.TAG_NAME=Q.tagName.toLowerCase(),c3.didPatch(b),C=Q):C=Q}},l.name);
if(C)return C}return z6c(l,D)},D.debugInstance);
var n=VV$(l,D),y;for(y in D)h6G(n,y,D[y]);Exd(n,D);SM(U,n);P6B(n,D,{isReactive:!0});iIC(n,D);return n};
VV$=function(l,D){l=(l53.has(l.toLowerCase())?0:DA9.has(l.startsWith("svg:")?l.replace("svg:",""):l))?document.createElementNS("http://www.w3.org/2000/svg",l.startsWith("svg:")?l.replace("svg:",""):l):UA$(l,D)||document.createElement(l);l[n2c]=!0;return l};
y6o=function(l){if(l){var D;(D=l._disposeRef)==null||D.call(l);var U;(U=l._disposeEffects)==null||U.call(l);l.__instance&&l.__instance instanceof jM&&(D=l.__instance,N0B(D,l),D instanceof xg&&D.disposeEffects());for(D=0;D<l.childNodes.length;D++)y6o(l.childNodes[D])}};
WQ9=function(l){A6g.push(l)===1&&requestAnimationFrame(function(){setTimeout(function(){var D=[].concat(_.zz(A6g));A6g=[];D=_.B(D);for(var U=D.next();!U.done;U=D.next()){U=U.value;try{for(var n=0;n<U.length;n++)y6o(U[n])}catch(y){n=U=void 0,(n=(U=v_).handleError)==null||n.call.apply(n,[U].concat(_.zz(Iw(y))))}}})})};
_.g=function(l,D){return QA3.apply(null,[l,D].concat(_.zz(_.EW.apply(2,arguments))))};
_.F2=function(l){return l};
_.oN=function(l){return{isDefault:!0,children:l.children}};
_.v=function(l){var D=l.cond;if(D===void 0)return l.else&&l.else();var U=_.dM(function(){return!!D()},void 0,"JHVi8"),n=function(){var y=D();
if(!y){var A;(A=v_.handleError)==null||A.call.apply(A,[v_].concat(_.zz(Iw(BV3.nonNullableCondIsNull()))))}return y};
return X2(function(){var y=U(),A;sP(function(){var C=Jq(Kk);try{A=dt(y?l.then(n):l.else&&l.else())}finally{Jq(C)}},!0);
return A},{debugName:l.debugInstance,
debugFn:l.then,isControlFlowComponent:!0})};
CU9=function(l){return _.v(l)};
_.wt=function(l){return l.keyBy==="INDEX"?hpB(l):PUd(l)};
bI3=function(l){l=_.B(l);for(var D=l.next();!D.done;D=l.next()){var U=void 0;(U=D.value)==null||U()}};
PUd=function(l){var D=l.keyBy===void 0||l.keyBy==="REFERENCE",U=D?function(Q){return Q}:l.keyBy,n=[],y=[],A=[],C=[],h=[],b=[],u=!0;
_.NV(function(){bI3(C)});
return X2(function(){var Q=g2g(l),G=Q.length;if(G===0){if(n.length===0&&!u)return A;bI3(C);n=Q;y=[];for(Q=0;Q<n.length;Q++)y.push(U(n[Q]));A=[];C=[];h=[];b=[];l.fallback&&(C[0]=uGN(function(){A[0]=dt(l.fallback())}));
u=!1;return A}for(var J=new v2_,L=n.length-1;L>=0;L--)J.push(y[L],L);L=Array(G);for(var R=Array(G),a=Array(G),S=Array(G),d=Array(D?0:G),c={i$jscomp$450:0};c.i$jscomp$450<G;c={i$jscomp$450:c.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},c.i$jscomp$450++){c.item$jscomp$104=Q[c.i$jscomp$450];c.key$jscomp$563=U(c.item$jscomp$104);var N=J.pop(c.key$jscomp$563);N!=null?(a[c.i$jscomp$450]=A[N],R[c.i$jscomp$450]=y[N],L[c.i$jscomp$450]=C[N],S[c.i$jscomp$450]=h[N],D||(d[c.i$jscomp$450]=b[N]),Ky(function(z){return function(){S[z.i$jscomp$450](z.i$jscomp$450);
if(!D)d[z.i$jscomp$450](z.item$jscomp$104)}}(c)),delete C[N]):L[c.i$jscomp$450]=uGN(function(z){return function(){var f=_.B(_.aw(z.i$jscomp$450,void 0,"Fqk1zd")),I=f.next().value;
f=f.next().value;S[z.i$jscomp$450]=f;R[z.i$jscomp$450]=z.key$jscomp$563;if(D)a[z.i$jscomp$450]=dt(l.children(z.item$jscomp$104,I));else{var iG=_.B(_.aw(z.item$jscomp$104,void 0,"GBj5de"));f=iG.next().value;iG=iG.next().value;d[z.i$jscomp$450]=iG;a[z.i$jscomp$450]=dt(l.children(f,I))}}}(c))}bI3(C);
n=Q;y=R;A=a;C=L;h=S;b=d;u=!1;return a},{debugName:l.debugInstance,
debugFn:l.each,isControlFlowComponent:!0})};
hpB=function(l){var D=[],U=[],n=[],y=[],A=!1;_.NV(function(){for(var C=_.B(y),h=C.next();!h.done;h=C.next())h=h.value,h()});
return X2(function(){var C=g2g(l);A&&C.length>0&&(y.pop()(),D.pop(),A=!1);for(var h=Array(C.length),b={i$jscomp$451:0};b.i$jscomp$451<C.length;b={i$jscomp$451:b.i$jscomp$451},b.i$jscomp$451++)if(b.i$jscomp$451<D.length)D[b.i$jscomp$451]!==C[b.i$jscomp$451]&&(Ky(function(Q){return function(){return void U[Q.i$jscomp$451](C[Q.i$jscomp$451])}}(b)),D[b.i$jscomp$451]=C[b.i$jscomp$451]),h[b.i$jscomp$451]=n[b.i$jscomp$451];
else{var u=uGN(function(Q){return function(){D[Q.i$jscomp$451]=C[Q.i$jscomp$451];var G=_.B(_.aw(C[Q.i$jscomp$451],void 0,"JMMLmd")),J=G.next().value;G=G.next().value;U[Q.i$jscomp$451]=G;h[Q.i$jscomp$451]=dt(l.children(J,Q.i$jscomp$451))}}(b));
y[b.i$jscomp$451]=u}for(;D.length>C.length;)D.pop(),y.pop()(),U.pop();C.length===0&&!A&&l.fallback&&(b=uGN(function(){h[0]=dt(l.fallback())}),y[0]=b,A=!0);
return n=h},{debugName:l.debugInstance,
isControlFlowComponent:!0})};
g2g=function(l){l=l.each();return Array.isArray(l)?l:Array.from(l)};
uGN=function(l){var D=hq;return sP(function(U){var n=Jq(Kk);try{U.parent=D,l(U)}finally{Jq(n)}},!1)};
_.rt=function(l){var D=QSG(l),U=_.dM(function(){return Ga3(D)},void 0,"F1PF4");
return X2(function(){var n=U(),y;sP(function(){var A=Jq(Kk);try{y=dt(n())}finally{Jq(A)}});
return y},{debugName:l.debugInstance,
isControlFlowComponent:!0})};
QSG=function(l){l=l.children;return Array.isArray(l)?l:[l]};
J6l=function(l){var D=l.props;l=l.getChildren()[0];return D.when?{when:D.when,children:l}:{isDefault:!0,children:l}};
Ga3=function(l){var D=function(){return null};
l=_.B(l);for(var U=l.next();!U.done;U=l.next())if(U=U.value,U!=null&&U[Q5]&&(U=U.type===_.oN?{isDefault:!0,children:U.children[0]}:{when:U.props.when,children:U.children[0]}),U instanceof kg&&(U=J6l(U)),U.isDefault)D=U.children;else if(U.when())return U.children;return D};
q99=function(l){var D=null,U,n={get value(){var A,C;(C=(A=y).validateGetValue)==null||C.call(A);return y.__value},set value(A){var C,h;(h=(C=y).validateSetValue)==null||h.call(C,A);y.__value=A;y.__hasBeenSet=!0}},y=(n.__value=null,n.__hasBeenSet=!1,n.__hasErrored=!1,n.onRender=function(A){if(U&&A!==U){U._disposeRef=void 0;var C;(C=D)==null||C()}U=A;D=l(A)||null},n.onUnmount=function(){var A;
(A=D)==null||A();D=y.value=null},n[_.LQ9]=!0,n);
return y};
zZ=function(l){return typeof l==="symbol"};
Rp3=function(l){var D=$EC();if(D==null)throw _.MGB.PRIMITIVE_INVALID_HOOK_CALL();var U=D.hookCounter++;D.hooks||(D.hooks=[]);var n=D.hooks;n[U]||(n[U]={key:l,host:D});if(l!==n[U].key){if(D.__type){var y;l=(y=D.__type)==null?void 0:y.name}else l=D instanceof xg?SU_(D.functionComponent):"<"+D.el.tagName.toLowerCase()+">";throw _.MGB.OUT_OF_ORDER_HOOK_CALL(l);}return n[U]};
ZIo=function(l,D){return!l||l.length!==(D==null?void 0:D.length)||l.some(function(U,n){return U!==D[n]})};
epo=function(l,D){var U=Rp3("onChange"),n=$EC();ZIo(U.deps,D)&&(U.deps=D,U.pendingEffect=l,n.__syncEffects||(n.__syncEffects=[]),n.__syncEffects.push(U))};
_.fk=function(l,D,U){U!=null||(U={});U=U.appContext;var n=!!v_.legacyTriggerSoyRendererEvents;_.aN.setUp();try{var y=mAB(l,D,U);n&&(D=U,D!=null||(D=_.Gnc(document).getAppContext()),D.get(cOc).JSC$29578_getEventTarget().dispatchEvent(new pT$(a5l,l,ZQ)));_.aN.log(l);return y}finally{_.aN.tearDown()}};
mAB=function(l,D,U){var n=Fx(function(){var y=Jq(Kk);try{return sP(function(){var A=_.Gnc(_.$m(l)),C;var h=c3$({rootElement:{value:l},appContext:U||(A==null?void 0:(C=A.getOptionalAppContext)==null?void 0:C.call(A)),dispatcher:A});A=_.P_(h);h=Jf(!0);wM++;try{SM(D(),l),zp(!1)}catch(b){throw zp(!0),b;}finally{Jf(h),_.P_(A)}},!1)}catch(A){throw v_.enableContextBasedComponentStacks&&jN(A),A;
}finally{Jq(y)}});
l[tGC]=!0;return function(){l.textContent="";n();l[tGC]=!1}};
_.$g=function(l){if(ubd(Gp)){var D;(D=v_.handleError)==null||D.call.apply(D,[v_].concat(_.zz(Iw(Error("dc")))))}var U=hq,n=c_;wAs({onInitType:Fig,run:function(){if(U&&!U.isDisposed){var y=_.P_(U);try{Fx(function(){return void l()},n)}catch(A){throw v_.enableContextBasedComponentStacks&&jN(A),A;
}finally{_.P_(y)}}}})};
XHc=function(l,D){epo(function(){return _.mU(l)},D)};
_.N1=function(l){xi()?_.$g(function(){_.mU(l)}):epo(function(){return _.mU(l)},[])};
kad=function(l){var D=[].concat(_.zz(l));l.length=0;l=_.B(D);for(D=l.next();!D.done;D=l.next()){D=D.value;S9N(D);var U=D.pendingEffect;D.pendingEffect=null;if(U=U==null?void 0:U())D.pendingCleanup=U}};
S9N=function(l){var D=l.pendingCleanup;l.pendingCleanup=null;D==null||D()};
dA$=function(l,D){if(xi())return l();var U=Rp3("useMemoInternal");ZIo(U.deps,D)&&(U.deps=D,U.value=l());return U.value};
KQ9=function(l,D){return dA$(l,D)};
sZ=function(l){return dA$(l,[])};
c6o=function(l){return sZ(function(){return{value:l}})};
_.EZ=function(l,D){if(!l)return null;l=Object.keys(l);l=_.B(l);for(var U=l.next();!U.done;U=l.next()){U=U.value;var n=U.toLowerCase();if(n.indexOf(D,n.length-D.length)>-1)return U}return null};
_.IN=function(){var l=arguments,D=_.TZ;l.length>1?D[l[0]]=l[1]:l.length===1&&Object.assign(D,l[0])};
_.H3=function(l,D){return l in _.TZ?_.TZ[l]:D};
_.il=function(l,D){return!!_.H3(l,D)};
pHl=function(l){var D=_.TZ.EXPERIMENT_FLAGS;return D?D[l]:void 0};
jSo=function(l){xAd.forEach(function(D){return D(l)})};
_.DJ=function(l){return l&&window.yterr?function(){try{return l.apply(this,arguments)}catch(D){_.ll(D)}}:l};
_.ll=function(l){var D=_.UG("yt.logging.errors.log");D?D(l,"ERROR",void 0,void 0,void 0,void 0,void 0):(D=_.H3("ERRORS",[]),D.push([l,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.IN("ERRORS",D));jSo(l)};
_.nt=function(l,D,U,n,y){var A=_.UG("yt.logging.errors.log");A?A(l,"WARNING",D,U,n,void 0,y):(A=_.H3("ERRORS",[]),A.push([l,"WARNING",D,U,n,void 0,y]),_.IN("ERRORS",A))};
o2g=function(l,D){D=l.split(D);for(var U={},n=0,y=D.length;n<y;n++){var A=D[n].split("=");if(A.length===1&&A[0]||A.length===2)try{var C=FQN(A[0]||""),h=FQN(A[1]||"");if(C in U){var b=U[C];Array.isArray(b)?_.sc(b,h):U[C]=[b,h]}else U[C]=h}catch(J){var u=J,Q=A[0],G=String(o2g);u.args=[{key:Q,value:A[1],query:l,method:wH_===G?"unchanged":G}];r6c.hasOwnProperty(Q)||_.nt(u)}}return U};
zpd=function(l){var D=[];_.we.forEach(l,function(U,n){var y=_.yy(n);U=Array.isArray(U)?U:[U];_.Ac(U,function(A){A==""?D.push(y):D.push(y+"="+_.yy(A))})});
return D.join("&")};
_.WS=function(l){l.charAt(0)==="?"&&(l=l.substring(1));return o2g(l,"&")};
_.BS=function(l){return l.indexOf("?")!==-1?(l=(l||"").split("#")[0],l=l.split("?",2),_.WS(l.length>1?l[1]:l[0])):{}};
_.Ct=function(l,D){return f5G(l,D||{},!0)};
$AC=function(l,D){return f5G(l,D||{},!1)};
f5G=function(l,D,U){var n=l.split("#",2);l=n[0];n=n.length>1?"#"+n[1]:"";var y=l.split("?",2);l=y[0];y=_.WS(y[1]||"");for(var A in D)if(U||!_.we.containsKey(y,A))y[A]=D[A];return _.hc(l,y)+n};
vS=function(l){if(!D)var D=window.location.href;var U=_.PS(l)[1]||null,n=_.bl(l);return U&&n?ul(l,D):n?_.bl(D)===n&&(Number(_.PS(D)[4]||null)||null)===(Number(_.PS(l)[4]||null)||null):!0};
_.sSc=function(l){l=NV9(l);return l===null?!1:l[0]==="com"&&l[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
NV9=function(l){l=_.bl(l);return l!==null?l.split(".").reverse():null};
FQN=function(l){return l&&l.match(E23)?l:Qy(l)};
_.G8=function(l){return new TV$(l)};
_.Jc=function(){I59||(I59=new HIB);return I59};
OIg=function(){var l=Y9B;return function(){var D=_.Jc();if(!D.resolve(_.G8(l))){var U={};D.addProvider((U.provide=l,U.useClass=l,U[Lt]=void 0,U))}return D.resolve(l)}};
i3o=function(l){var D=_.qK,U,n;_.P(function(y){U=_.Jc();return(n=U.resolve(_.G8(D)))?(l(n),y.return(Promise.resolve(n))):y.return(U.resolve(new VG$(D)).then(function(A){l(A);return A}))})};
_.q=function(l){l=MK(l);return typeof l==="string"&&l==="false"?!1:!!l};
_.RG=function(l,D){l=MK(l);return l===void 0&&D!==void 0?D:Number(l||0)};
lP_=function(l){l=MK(l);return Array.isArray(l)?_.re(l,function(D){return Number(D||0)}):[Number(l||0)]};
_.e_=function(l){l=MK(l);return l!==void 0?String(l):""};
_.md=function(l){l=MK(l);return Array.isArray(l)?_.re(l,function(D){return String(D||"")}):[String(l||"")]};
Dt_=function(){return _.H3("EXPERIMENTS_TOKEN","")};
MK=function(l){return _.H3("EXPERIMENT_FLAGS",{})[l]};
UtK=function(){for(var l=[],D=_.H3("EXPERIMENTS_FORCED_FLAGS",{}),U=_.B(Object.keys(D)),n=U.next();!n.done;n=U.next())n=n.value,l.push({key:n,value:String(D[n])});U=_.H3("EXPERIMENT_FLAGS",{});n=_.B(Object.keys(U));for(var y=n.next();!y.done;y=n.next())y=y.value,y.startsWith("force_")&&D[y]===void 0&&l.push({key:y,value:String(U[y])});return l};
yJB=function(){if(!nSl)return null;var l=nSl();return"open"in l?l:null};
_.AJd=function(l){switch(_.aG(l)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.aG=function(l){return l&&"status"in l?l.status:-1};
_.tc=function(l,D){typeof l==="function"&&(l=_.DJ(l));return window.setTimeout(l,D)};
_.Xi=function(l,D){typeof l==="function"&&(l=_.DJ(l));return window.setInterval(l,D)};
_.S_=function(l){window.clearTimeout(l)};
Bj3=function(l){l=_.BS(l);for(var D=_.B(W09),U=D.next();!U.done;U=D.next())if(l[U.value]!==void 0)return!0;return!1};
Pu_=function(l,D,U,n,y,A,C,h,b){U=U===void 0?"GET":U;n=n===void 0?"":n;h=h===void 0?!1:h;var u=yJB();if(!u)return null;var Q=function(){(u&&"readyState"in u?u.readyState:0)===4&&D&&_.DJ(D)(u)};
"onloadend"in u?u.addEventListener("loadend",Q,!1):u.onreadystatechange=Q;_.q("debug_forward_web_query_parameters")&&(l=Cuc(l,window.location.search));u.open(U,l,!0);A&&(u.responseType=A);C&&(u.withCredentials=!0);U=U==="POST"&&(window.FormData===void 0||!(n instanceof FormData));if(y=hQG(l,y))for(var G in y)u.setRequestHeader(G,y[G]),"content-type"===G.toLowerCase()&&(U=!1);U&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded");b&&"onprogress"in u&&(u.onprogress=function(){b(u.responseText)});
if(h&&"setAttributionReporting"in XMLHttpRequest.prototype){l={eventSourceEligible:!0,triggerEligible:!1};try{u.setAttributionReporting(l)}catch(J){_.nt(J)}}u.send(n);return u};
hQG=function(l,D){D=D===void 0?{}:D;var U=vS(l),n=_.H3("INNERTUBE_CLIENT_NAME"),y=_.q("web_ajax_ignore_global_headers_if_set"),A;for(A in b3K){var C=_.H3(b3K[A]),h=A==="X-Goog-AuthUser"||A==="X-Goog-PageId";A!=="X-Goog-Visitor-Id"||C||(C=_.H3("VISITOR_DATA"));var b;if(!(b=!C)){if(!(b=U||(_.bl(l)?!1:!0))){b=l;var u;if(u=_.q("add_auth_headers_to_remarketing_google_dot_com_ping")&&A==="Authorization"&&(n==="TVHTML5"||n==="TVHTML5_UNPLUGGED"||n==="TVHTML5_SIMPLY"))u=NV9(b),u=u===null?!1:u[1]==="google"?
!0:u[2]==="google"?u[0]==="au"&&u[1]==="com"?!0:u[0]==="uk"&&u[1]==="co"?!0:!1:!1;u&&(b=_.kZ(b)||"",b=b.split("/"),b="/"+(b.length>1?b[1]:""),u=b==="/pagead");b=u?!0:!1}b=!b}b||y&&D[A]!==void 0||n==="TVHTML5_UNPLUGGED"&&h||(D[A]=C)}"X-Goog-EOM-Visitor-Id"in D&&"X-Goog-Visitor-Id"in D&&delete D["X-Goog-Visitor-Id"];if(U||!_.bl(l))D["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(U||!_.bl(l)){try{var Q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(G){}Q&&(D["X-YouTube-Time-Zone"]=
Q)}document.location.hostname.endsWith("youtubeeducation.com")||!U&&_.bl(l)||(D["X-YouTube-Ad-Signals"]=zpd(gSc()));return D};
_.uI$=function(l,D){var U=_.bl(l);_.q("debug_handle_relative_url_for_query_forward_killswitch")||!U&&vS(l)&&(U=document.location.hostname);var n=_.kZ(l);n=(U=U&&(U.endsWith("youtube.com")||U.endsWith("youtube-nocookie.com")))&&n&&n.startsWith("/api/");if(!U||n)return l;var y=_.WS(D),A={};_.Ac(W09,function(C){y[C]&&(A[C]=y[C])});
return $AC(l,A)};
vSC=function(l,D){D.method="POST";D.postParams||(D.postParams={});return _.dc(l,D)};
Qes=function(l,D){var U=_.H3("XSRF_FIELD_NAME"),n;D.headers&&(n=D.headers["Content-Type"]);return!D.excludeXsrf&&(!_.bl(l)||D.withCredentials||_.bl(l)===document.location.hostname)&&D.method==="POST"&&(!n||n==="application/x-www-form-urlencoded")&&!(D.postParams&&D.postParams[U])};
_.dc=function(l,D){var U=D.format||"JSON";l=GoK(l,D);var n=JJ9(l,D),y=!1,A=L0d(l,function(b){if(!y){y=!0;h&&_.S_(h);var u=_.AJd(b),Q=null,G=400<=b.status&&b.status<500,J=500<=b.status&&b.status<600;if(u||G||J)Q=qtN(l,U,b,D.convertToSafeHtml);u&&(u=Mzd(U,b,Q));Q=Q||{};G=D.context||_.nC;u?D.onSuccess&&D.onSuccess.call(G,b,Q):D.onError&&D.onError.call(G,b,Q);D.onFinish&&D.onFinish.call(G,b,Q)}},D.method,n,D.headers,D.responseType,D.withCredentials,!1,D.onProgress);
n=D.timeout||0;if(D.onTimeout&&n>0){var C=D.onTimeout;var h=_.tc(function(){y||(y=!0,A.abort(),_.S_(h),C.call(D.context||_.nC,A))},n)}return A};
GoK=function(l,D){D.includeDomain&&(l=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+l);var U=_.H3("XSRF_FIELD_NAME");if(D=D.urlParams)D[U]&&delete D[U],l=_.Ct(l,D);return l};
JJ9=function(l,D){var U=_.H3("XSRF_FIELD_NAME"),n=_.H3("XSRF_TOKEN"),y=D.postBody||"",A=D.postParams;Qes(l,D)&&(A||(A={}),A[U]=n);(_.q("ajax_parse_query_data_only_when_filled")&&A&&Object.keys(A).length>0||A)&&typeof y==="string"&&(y=_.WS(y),_.we.extend(y,A),y=D.postBodyFormat&&D.postBodyFormat==="JSON"?JSON.stringify(y):_.Kt(y));A=y||A&&!_.we.isEmpty(A);!RQ3&&A&&D.method!=="POST"&&(RQ3=!0,_.ll(Error("Jc")));return y};
qtN=function(l,D,U,n){var y=null;switch(D){case "JSON":try{var A=U.responseText}catch(C){throw n=Error("Kc"),n.params=l,_.nt(n),C;}l=U.getResponseHeader("Content-Type")||"";A&&l.indexOf("json")>=0&&(A.substring(0,5)===")]}'\n"&&(A=A.substring(5)),y=JSON.parse(A));break;case "XML":if(l=(l=U.responseXML)?Z3d(l):null)y={},_.Ac(l.getElementsByTagName("*"),function(C){y[C.tagName]=eQg(C)})}n&&mtG(y);
return y};
mtG=function(l){if(_.I_(l))for(var D in l)D==="html_content"||Wo(D,"_html")?l[D]=YC(l[D]):mtG(l[D])};
Mzd=function(l,D,U){if(D&&D.status===204)return!0;switch(l){case "JSON":return!!U;case "XML":return Number(U&&U.return_code)===0;case "RAW":return!0;default:return!!U}};
Z3d=function(l){return l?(l=("responseXML"in l?l.responseXML:l).getElementsByTagName("root"))&&l.length>0?l[0]:null:null};
eQg=function(l){var D="";_.Ac(l.childNodes,function(U){D+=U.nodeValue});
return D};
aPd=function(l){if(l.name==="JavaException")return!0;l=l.stack;return l.includes("chrome://")||l.includes("-extension://")||l.includes("webkit-masked-url://")};
tzC=function(l){if(!l.stack)return!0;var D=!l.stack.includes("\n");return D&&l.stack.includes("ErrorType: ")||D&&l.stack.includes("Anonymous function (Unknown script")||l.stack.toLowerCase()==="not available"||l.fileName==="user-script"||l.fileName.startsWith("user-script:")?!0:!1};
_.cS=function(l){_.xT.call(this);this.JSC$10599_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!l};
StK=function(l,D){var U=l.length,n=0,y=function(){return l.charCodeAt(n++)};
do{var A=X6K(y);if(A===Infinity)break;var C=A>>3;switch(A&7){case 0:A=X6K(y);if(C===D)return A;break;case 1:if(C===D)return;n+=8;break;case 2:A=X6K(y);if(C===D)return l.substr(n,A);n+=A;break;case 5:if(C===D)return;n+=4;break;default:return}}while(n<U)};
X6K=function(l){var D=l(),U=D&127;if(D<128)return U;D=l();U|=(D&127)<<7;if(D<128)return U;D=l();U|=(D&127)<<14;if(D<128)return U;D=l();return D<128?U|(D&127)<<21:Infinity};
dt9=function(l,D,U,n){if(l)if(Array.isArray(l)){var y=n;for(n=0;n<l.length&&!(l[n]&&(y+=kol(n,l[n],D,U),y>500));n++);n=y}else if(typeof l==="object")for(y in l){if(l[y]){var A=y;var C=l[y],h=D,b=U;A=typeof C!=="string"||A!=="clickTrackingParams"&&A!=="trackingParams"?0:(C=StK(atob(C.replace(/-/g,"+").replace(/_/g,"/")),2))?kol(A+".ve",C,h,b):0;n+=A;n+=kol(y,l[y],D,U);if(n>500)break}}else U[D]=pt(l),n+=U[D].length;else U[D]=pt(l),n+=U[D].length;return n};
kol=function(l,D,U,n){U+="."+l;l=pt(D);n[U]=l;return U.length+l.length};
pt=function(l){try{return(typeof l==="string"?l:String(JSON.stringify(l))).substr(0,500)}catch(D){return"unable to serialize "+typeof l+" ("+D.message+")"}};
K0l=function(l){switch(l){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}};
_.j_=function(l,D,U,n,y){_.xZ.set(l,D,{maxAge:U,path:"/",domain:n===void 0?"youtube.com":n,secure:y===void 0?!1:y})};
_.cJo=function(l,D,U){_.xZ.remove(l,D===void 0?"/":D,U===void 0?"youtube.com":U)};
_.Fi=function(){if(_.q("embeds_web_enable_cookie_detection_fix")){if(!_.nC.navigator.cookieEnabled)return!1}else if(!_.xZ.isEnabled())return!1;if(!_.xZ.isEmpty())return!0;_.q("embeds_web_enable_cookie_detection_fix")?_.xZ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.xZ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.xZ.get("TESTCOOKIESENABLED")!=="1")return!1;_.xZ.remove("TESTCOOKIESENABLED");return!0};
p6K=function(){var l=_.nC.navigator;return l?l.connection:void 0};
xtK=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}};
_.F0K=function(){var l=p6K();if(l){var D=jeG[l.type||"unknown"]||"CONN_UNKNOWN";l=jeG[l.effectiveType||"unknown"]||"CONN_UNKNOWN";D==="CONN_CELLULAR_UNKNOWN"&&l!=="CONN_UNKNOWN"&&(D=l);if(D!=="CONN_UNKNOWN")return D;if(l!=="CONN_UNKNOWN")return l}};
w6C=function(){var l=p6K();if(l!=null&&l.effectiveType)return oS$.hasOwnProperty(l.effectiveType)?oS$[l.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.wc=function(){try{return _.oG(),!0}catch(l){return!1}};
_.oG=function(l){if(_.H3("DATASYNC_ID")!==void 0)return _.H3("DATASYNC_ID");throw new _.rc("Datasync ID not set",l===void 0?"unknown":l);};
_.z8=function(l){this.mechanism=l};
ft=function(l){this.mechanism=l};
$Z=function(l){this.storage_=l;this.cachedIsStorageAvailable_=null};
rJN=function(){var l=null;try{l=_.nC.localStorage||null}catch(D){}$Z.call(this,l)};
zQB=function(){var l=null;try{l=_.nC.sessionStorage||null}catch(D){}$Z.call(this,l)};
NK=function(l,D){this.mechanism_=l;this.JSC$10702_prefix_=D+"::"};
_.fPK=function(l){var D=new rJN;return D.isAvailable()?l?new NK(D,l):D:null};
_.$tK=function(l){var D=new zQB;return D.isAvailable()?l?new NK(D,l):D:null};
se9=function(){var l;return(l=NjC())==null?void 0:l.get("LAST_RESULT_ENTRY_KEY",!0)};
_.T8=function(l){ESg||(_.sG?_.sG.logError(l):(_.EG.push({type:"ERROR",payload:l}),_.EG.length>10&&_.EG.shift()))};
IG=function(l,D){ESg||(_.sG?_.sG.logEvent(l,D):(_.EG.push({type:"EVENT",eventType:l,payload:D}),_.EG.length>10&&_.EG.shift()))};
HS=function(l){if(l.indexOf(":")>=0)throw Error("Rc");};
YZ=function(l){return l.substr(0,l.indexOf(":"))||l};
H3_=function(){return(Tj_||IP9)&&OG("applewebkit")&&!OG("version")&&(!OG("safari")||OG("gsa/"))};
OG=function(l){var D=_.LC();return D?D.toLowerCase().indexOf(l)>=0:!1};
VzB=function(l,D,U,n){D=YZ(D);var y=l instanceof Error?l:Error("Sc`"+l);if(y instanceof Vy)return y;l={objectStoreNames:U,dbName:D,dbVersion:n};if(y.name==="QuotaExceededError")return new Vy("QUOTA_EXCEEDED",l);if(_.id&&y.name==="UnknownError")return new Vy("QUOTA_MAYBE_EXCEEDED",l);if(y instanceof Ytl)return new Vy("MISSING_INDEX",Object.assign({},l,{objectStore:y.objectStore,index:y.index}));if(y.name==="InvalidStateError"&&O3K.some(function(A){return y.message.includes(A)}))return new Vy("EXECUTE_TRANSACTION_ON_CLOSED_DB",
l);
if(y.name==="AbortError")return new Vy("UNKNOWN_ABORT",l,y.message);y.args=[Object.assign({},l,{name:"IdbError",originalName:y.name})];y.level="WARNING";return y};
ld=function(l,D,U){var n=se9();return new Vy("IDB_NOT_SUPPORTED",{context:{caller:l,publicName:D,version:U,hasSucceededOnce:n==null?void 0:n.hasSucceededOnce}})};
i7_=function(l){if(!l)throw Error();throw l;};
l19=function(l){return l};
Dl3=function(l,D,U){var n=function(){try{l.removeEventListener("success",y),l.removeEventListener("error",A)}catch(C){}},y=function(){D(l.result);
n()},A=function(){U(l.error);
n()};
l.addEventListener("success",y);l.addEventListener("error",A)};
Ul_=function(l){return new Promise(function(D,U){Dl3(l,D,U)})};
n6=function(l){return new Dl(new UL(function(D,U){Dl3(l,D,U)}))};
nB_=function(l,D){return new Dl(new UL(function(U,n){var y=function(){var A=l?D(l):null;A?A.then(function(C){l=C;y()},n):U()};
y()}))};
y49=function(l,D,U){return new Promise(function(n,y){var A=D!==void 0?self.indexedDB.open(l,D):self.indexedDB.open(l);var C=U.blocked,h=U.blocking,b=U.terminated,u=U.upgrade,Q=U.closed,G,J=function(){G||(G=new yo(A.result,{closed:Q}));return G};
A.addEventListener("upgradeneeded",function(L){try{if(L.newVersion===null)throw Error("Xc");if(A.transaction===null)throw Error("Yc");L.dataLoss&&L.dataLoss!=="none"&&IG("IDB_DATA_CORRUPTED",{reason:L.dataLossMessage||"unknown reason",dbName:YZ(l)});var R=J(),a=new A3(A.transaction);u&&u(R,function(S){return L.oldVersion<S&&L.newVersion>=S},a);
a.done.catch(function(S){y(S)})}catch(S){y(S)}});
A.addEventListener("success",function(){var L=A.result;h&&L.addEventListener("versionchange",function(){h(J())});
L.addEventListener("close",function(){IG("IDB_UNEXPECTEDLY_CLOSED",{dbName:YZ(l),dbVersion:L.version});b&&b()});
n(J())});
A.addEventListener("error",function(){y(A.error)});
C&&A.addEventListener("blocked",function(){C()})})};
A4G=function(l,D,U){U=U===void 0?{}:U;return y49(l,D,U)};
_.BG=function(l,D){D=D===void 0?{}:D;var U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return _.ZY(C,2),U=self.indexedDB.deleteDatabase(l),n=D,(y=n.blocked)&&U.addEventListener("blocked",function(){y()}),C.yield(Ul_(U),4);
if(C.nextAddress!=2)return _.WG(C,0);A=_.kF(C);throw VzB(A,l,"",-1);})};
Bug=function(l,D){var U;return _.P(function(n){if(n.nextAddress==1)return n.yield(_.C6(WFB,D),2);U=n.yieldResult;return n.return(_.h3(U,["databases"],{enableRetries:!0,mode:"readwrite"},function(y){var A=y.objectStore("databases");return A.get(l.actualName).then(function(C){if(C?l.actualName!==C.actualName||l.publicName!==C.publicName||l.userIdentifier!==C.userIdentifier:1)return A.put(l).then(function(){})})}))})};
_.PG=function(l,D){var U;return _.P(function(n){if(n.nextAddress==1)return l?n.yield(_.C6(WFB,D),2):n.return();U=n.yieldResult;return n.return(U.delete("databases",l))})};
_.CQ_=function(l,D){var U,n;return _.P(function(y){return y.nextAddress==1?(U=[],y.yield(_.C6(WFB,D),2)):y.nextAddress!=3?(n=y.yieldResult,y.yield(_.h3(n,["databases"],{enableRetries:!0,mode:"readonly"},function(A){U.length=0;return bd(A.objectStore("databases"),{},function(C){l(C.getValue())&&U.push(C.getValue());return C.continue()})}),3)):y.return(U)})};
hf_=function(l,D){return _.CQ_(function(U){return U.publicName===l&&U.userIdentifier!==void 0},D)};
gBl=function(){var l,D,U,n;return _.P(function(y){switch(y.nextAddress){case 1:l=se9();if((D=l)==null?0:D.hasSucceededOnce)return y.return(!0);var A;if(A=PQl)A=/WebKit\/([0-9]+)/.exec(_.LC()),A=!!(A&&parseInt(A[1],10)>=600);A&&(A=/WebKit\/([0-9]+)/.exec(_.LC()),A=!(A&&parseInt(A[1],10)>=602));if(A||gb)return y.return(!1);try{if(U=self,!(U.indexedDB&&U.IDBIndex&&U.IDBKeyRange&&U.IDBObjectStore))return y.return(!1)}catch(C){return y.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return y.return(!1);
_.ZY(y,2);n={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return y.yield(Bug(n,b7s),4);case 4:return y.yield(_.PG("yt-idb-test-do-not-use",b7s),5);case 5:return y.return(!0);case 2:return _.kF(y),y.return(!1)}})};
vB9=function(){if(uoo!==void 0)return uoo;ESg=!0;return uoo=gBl().then(function(l){ESg=!1;var D;if((D=NjC())!=null&&D.hasLocalStorage()){var U;D={hasSucceededOnce:((U=se9())==null?void 0:U.hasSucceededOnce)||l};var n;(n=NjC())==null||n.set("LAST_RESULT_ENTRY_KEY",D,2592E3,!0)}return l})};
ud=function(){return _.UG("ytglobal.idbToken_")||void 0};
_.Qo=function(){var l=ud();return l?Promise.resolve(l):vB9().then(function(D){(D=D?b7s:void 0)&&_.vG("ytglobal.idbToken_",D);return D})};
QJc=function(l){if(!_.wc())throw l=new Vy("AUTH_INVALID",{dbName:l}),_.T8(l),l;var D=_.oG();return{actualName:l+":"+D,publicName:l,userIdentifier:D}};
G3_=function(l,D,U,n){var y,A,C,h,b,u;return _.P(function(Q){switch(Q.nextAddress){case 1:return A=(y=Error().stack)!=null?y:"",Q.yield(_.Qo(),2);case 2:C=Q.yieldResult;if(!C)throw h=ld("openDbImpl",l,D),_.q("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+A.substring(A.indexOf("\n")+1)),_.T8(h),h;HS(l);b=U?{actualName:l,publicName:l,userIdentifier:void 0}:QJc(l);_.ZY(Q,3);return Q.yield(Bug(b,C),5);case 5:return Q.yield(A4G(b.actualName,D,n),6);case 6:return Q.return(Q.yieldResult);case 3:return u=
_.kF(Q),_.ZY(Q,7),Q.yield(_.PG(b.actualName,C),9);case 9:_.WG(Q,8);break;case 7:_.kF(Q);case 8:throw u;}})};
J4l=function(l,D,U){U=U===void 0?{}:U;return G3_(l,D,!1,U)};
LFs=function(l,D,U){U=U===void 0?{}:U;return G3_(l,D,!0,U)};
qBd=function(l,D){D=D===void 0?{}:D;var U,n;return _.P(function(y){if(y.nextAddress==1)return y.yield(_.Qo(),2);if(y.nextAddress!=3){U=y.yieldResult;if(!U)return y.return();HS(l);n=QJc(l);return y.yield(_.BG(n.actualName,D),3)}return y.yield(_.PG(n.actualName,U),0)})};
Ms_=function(l,D,U){l=l.map(function(n){return _.P(function(y){return y.nextAddress==1?y.yield(_.BG(n.actualName,D),2):y.yield(_.PG(n.actualName,U),0)})});
return Promise.all(l).then(function(){})};
Rf_=function(l){var D=D===void 0?{}:D;var U,n;return _.P(function(y){if(y.nextAddress==1)return y.yield(_.Qo(),2);if(y.nextAddress!=3){U=y.yieldResult;if(!U)return y.return();HS(l);return y.yield(hf_(l,U),3)}n=y.yieldResult;return y.yield(Ms_(n,D,U),0)})};
Z73=function(l,D){D=D===void 0?{}:D;var U;return _.P(function(n){if(n.nextAddress==1)return n.yield(_.Qo(),2);if(n.nextAddress!=3){U=n.yieldResult;if(!U)return n.return();HS(l);return n.yield(_.BG(l,D),3)}return n.yield(_.PG(l,U),0)})};
Gn=function(l,D){return efd(l,D)};
a13=function(l){return _.C6(mls(),l)};
tsK=function(l,D,U,n){var y,A,C;return _.P(function(h){switch(h.nextAddress){case 1:return y={config:l,hashData:D,timestamp:n!==void 0?n:(0,_.J3)()},h.yield(a13(U),2);case 2:return A=h.yieldResult,h.yield(A.clear("hotConfigStore"),3);case 3:return h.yield(A.put("hotConfigStore",y),4);case 4:return C=h.yieldResult,h.return(C)}})};
XcK=function(l,D,U,n,y){var A,C,h;return _.P(function(b){switch(b.nextAddress){case 1:return A={config:l,hashData:D,configData:U,timestamp:y!==void 0?y:(0,_.J3)()},b.yield(a13(n),2);case 2:return C=b.yieldResult,b.yield(C.clear("coldConfigStore"),3);case 3:return b.yield(C.put("coldConfigStore",A),4);case 4:return h=b.yieldResult,b.return(h)}})};
SB9=function(l){var D,U;return _.P(function(n){return n.nextAddress==1?n.yield(a13(l),2):n.nextAddress!=3?(D=n.yieldResult,U=void 0,n.yield(_.h3(D,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(y){return _.L6(y.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(A){U=A.getValue()})}),3)):n.return(U)})};
k3l=function(l){var D,U;return _.P(function(n){return n.nextAddress==1?n.yield(a13(l),2):n.nextAddress!=3?(D=n.yieldResult,U=void 0,n.yield(_.h3(D,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(y){return _.L6(y.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(A){U=A.getValue()})}),3)):n.return(U)})};
dlo=function(){return _.P(function(l){return l.yield(Rf_("ytGcfConfig"),0)})};
KFl=function(){return"INNERTUBE_API_KEY"in _.TZ&&"INNERTUBE_API_VERSION"in _.TZ};
_.qZ=function(){return{innertubeApiKey:_.H3("INNERTUBE_API_KEY"),innertubeApiVersion:_.H3("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.H3("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.H3("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.H3("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.H3("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.H3("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.H3("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.H3("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.il("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.il("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.H3("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.wc_=function(l){var D={client:{hl:l.innertubeContextHostLanguage,gl:l.innertubeContextGeoLocation,clientName:l.innertubeContextClientName,clientVersion:l.innertubeContextClientVersion,configInfo:l.innertubeContextClientConfigInfo}};navigator.userAgent&&(D.client.userAgent=String(navigator.userAgent));var U=_.nC.devicePixelRatio;U&&U!=1&&(D.client.screenDensityFloat=String(U));U=Dt_();U!==""&&(D.client.experimentsToken=U);U=UtK();U.length>0&&(D.request={internalExperimentFlags:U});c43(l,void 0,D);
pcl(void 0,D);xlK(void 0,D);jJo(l,void 0,D);FFs(void 0,D);_.q("start_client_gcf")&&oBl(void 0,D);_.H3("DELEGATED_SESSION_ID")&&!_.q("pageid_as_header_web")&&(D.user={onBehalfOfUser:_.H3("DELEGATED_SESSION_ID")});!_.q("fill_delegate_context_in_gel_killswitch")&&(l=_.H3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(D.user=Object.assign({},D.user,{serializedDelegationContext:l}));l=_.H3("INNERTUBE_CONTEXT");var n;if(_.q("enable_persistent_device_token")&&(l==null?0:(n=l.client)==null?0:n.rolloutToken)){var y;
D.client.rolloutToken=l==null?void 0:(y=l.client)==null?void 0:y.rolloutToken}n=Object;y=n.assign;l=D.client;U={};for(var A=_.B(Object.entries(_.WS(_.H3("DEVICE","")))),C=A.next();!C.done;C=A.next()){var h=_.B(C.value);C=h.next().value;h=h.next().value;C==="cbrand"?U.deviceMake=h:C==="cmodel"?U.deviceModel=h:C==="cbr"?U.browserName=h:C==="cbrver"?U.browserVersion=h:C==="cos"?U.osName=h:C==="cosver"?U.osVersion=h:C==="cplatform"&&(U.platform=h)}D.client=y.call(n,l,U);return D};
c43=function(l,D,U){l=l.innertubeContextClientName;if(l==="WEB"||l==="MWEB"||l===1||l===2)if(D){U=_.MZ(D,r49,96)||new r49;var n=zfd();n=Object.keys(f1B).indexOf(n);n=n===-1?null:n;n!==null&&_.R2(U,3,n);_.al(D,96,U)}else U&&(U.client.mainAppWebInfo=(n=U.client.mainAppWebInfo)!=null?n:{},U.client.mainAppWebInfo.webDisplayMode=zfd())};
pcl=function(l,D){var U=_.UG("yt.embedded_player.embed_url");U&&(l?(D=_.MZ(l,$lg,7)||new $lg,_.c7(D,4,U),_.al(l,7,D)):D&&(D.thirdParty={embedUrl:U}))};
xlK=function(l,D){var U;if(_.q("web_log_memory_total_kbytes")&&((U=_.nC.navigator)==null?0:U.deviceMemory)){var n;U=(n=_.nC.navigator)==null?void 0:n.deviceMemory;l?_.Zl(l,95,gH(U*1E6)):D&&(D.client.memoryTotalKbytes=""+U*1E6)}};
jJo=function(l,D,U){if(l.appInstallData)if(D){var n;U=(n=_.MZ(D,e9,62))!=null?n:new e9;_.c7(U,6,l.appInstallData);_.al(D,62,U)}else U&&(U.client.configInfo=U.client.configInfo||{},U.client.configInfo.appInstallData=l.appInstallData)};
FFs=function(l,D){var U=_.F0K();U&&(l?_.R2(l,61,Nu_[U]):D&&(D.client.connectionType=U));_.q("web_log_effective_connection_type")&&(U=w6C())&&(l?_.R2(l,94,sJ$[U]):D&&(D.client.effectiveConnectionType=U))};
_.I1d=function(l,D,U){U=U===void 0?{}:U;var n={};_.H3("EOM_VISITOR_DATA")?n={"X-Goog-EOM-Visitor-Id":_.H3("EOM_VISITOR_DATA")}:n={"X-Goog-Visitor-Id":U.visitorData||_.H3("VISITOR_DATA","")};if(D&&D.includes("www.youtube-nocookie.com"))return n;D=U.authorization||_.H3("AUTHORIZATION");D||(l?D="Bearer "+_.UG("gapi.auth.getToken")().access_token:(EB_.instance||(EB_.instance=new EB_),l=Tu9(),_.q("pageid_as_header_web")||delete l["X-Goog-PageId"],n=Object.assign({},n,l)));D&&(n.Authorization=D);return n};
oBl=function(l,D){var U=H7g();if(U){var n=U.coldConfigData,y=U.coldHashData;U=U.hotHashData;if(l){var A;D=(A=_.MZ(l,e9,62))!=null?A:new e9;n=_.c7(D,1,n);_.c7(n,3,y).setHotHashData(U);_.al(l,62,D)}else D&&(D.client.configInfo=D.client.configInfo||{},n&&(D.client.configInfo.coldConfigData=n),y&&(D.client.configInfo.coldHashData=y),U&&(D.client.configInfo.hotHashData=U))}};
mW=function(l){for(var D=l.length;--D>=0;)l[D]=0};
YBs=function(l,D,U,n,y){this.static_tree=l;this.extra_bits=D;this.extra_base=U;this.elems=n;this.max_length=y;this.has_stree=l&&l.length};
O79=function(l,D){this.dyn_tree=l;this.max_code=0;this.stat_desc=D};
a2=function(l,D){l.pending_buf[l.pending++]=D&255;l.pending_buf[l.pending++]=D>>>8&255};
t3=function(l,D,U){l.bi_valid>16-U?(l.bi_buf|=D<<l.bi_valid&65535,a2(l,l.bi_buf),l.bi_buf=D>>16-l.bi_valid,l.bi_valid+=U-16):(l.bi_buf|=D<<l.bi_valid&65535,l.bi_valid+=U)};
Xy=function(l,D,U){t3(l,U[D*2],U[D*2+1])};
Vs_=function(l,D){var U=0;do U|=l&1,l>>>=1,U<<=1;while(--D>0);return U>>>1};
iUC=function(l,D,U){var n=Array(16),y=0,A;for(A=1;A<=15;A++)n[A]=y=y+U[A-1]<<1;for(U=0;U<=D;U++)y=l[U*2+1],y!==0&&(l[U*2]=Vs_(n[y]++,y))};
lsC=function(l){var D;for(D=0;D<286;D++)l.dyn_ltree[D*2]=0;for(D=0;D<30;D++)l.dyn_dtree[D*2]=0;for(D=0;D<19;D++)l.bl_tree[D*2]=0;l.dyn_ltree[512]=1;l.opt_len=l.static_len=0;l.last_lit=l.matches=0};
DN9=function(l){l.bi_valid>8?a2(l,l.bi_buf):l.bi_valid>0&&(l.pending_buf[l.pending++]=l.bi_buf);l.bi_buf=0;l.bi_valid=0};
UN$=function(l,D,U){DN9(l);a2(l,U);a2(l,~U);S9.arraySet(l.pending_buf,l.window,D,U,l.pending);l.pending+=U};
nfG=function(l,D,U,n){var y=D*2,A=U*2;return l[y]<l[A]||l[y]===l[A]&&n[D]<=n[U]};
yud=function(l,D,U){for(var n=l.heap[U],y=U<<1;y<=l.heap_len;){y<l.heap_len&&nfG(D,l.heap[y+1],l.heap[y],l.depth)&&y++;if(nfG(D,n,l.heap[y],l.depth))break;l.heap[U]=l.heap[y];U=y;y<<=1}l.heap[U]=n};
h99=function(l,D,U){var n=0;if(l.last_lit!==0){do{var y=l.pending_buf[l.d_buf+n*2]<<8|l.pending_buf[l.d_buf+n*2+1];var A=l.pending_buf[l.l_buf+n];n++;if(y===0)Xy(l,A,D);else{var C=kH[A];Xy(l,C+256+1,D);var h=AuB[C];h!==0&&(A-=WX$[C],t3(l,A,h));y--;C=y<256?db[y]:db[256+(y>>>7)];Xy(l,C,U);h=BXC[C];h!==0&&(y-=CVo[C],t3(l,y,h))}}while(n<l.last_lit)}Xy(l,256,D)};
PVc=function(l,D){var U=D.dyn_tree,n=D.stat_desc.static_tree,y=D.stat_desc.has_stree,A=D.stat_desc.elems,C,h=-1;l.heap_len=0;l.heap_max=573;for(C=0;C<A;C++)U[C*2]!==0?(l.heap[++l.heap_len]=h=C,l.depth[C]=0):U[C*2+1]=0;for(;l.heap_len<2;){var b=l.heap[++l.heap_len]=h<2?++h:0;U[b*2]=1;l.depth[b]=0;l.opt_len--;y&&(l.static_len-=n[b*2+1])}D.max_code=h;for(C=l.heap_len>>1;C>=1;C--)yud(l,U,C);b=A;do C=l.heap[1],l.heap[1]=l.heap[l.heap_len--],yud(l,U,1),n=l.heap[1],l.heap[--l.heap_max]=C,l.heap[--l.heap_max]=
n,U[b*2]=U[C*2]+U[n*2],l.depth[b]=(l.depth[C]>=l.depth[n]?l.depth[C]:l.depth[n])+1,U[C*2+1]=U[n*2+1]=b,l.heap[1]=b++,yud(l,U,1);while(l.heap_len>=2);l.heap[--l.heap_max]=l.heap[1];C=D.dyn_tree;b=D.max_code;n=D.stat_desc.static_tree;y=D.stat_desc.has_stree;A=D.stat_desc.extra_bits;var u=D.stat_desc.extra_base,Q=D.stat_desc.max_length,G,J=0;for(G=0;G<=15;G++)l.bl_count[G]=0;C[l.heap[l.heap_max]*2+1]=0;for(D=l.heap_max+1;D<573;D++){var L=l.heap[D];G=C[C[L*2+1]*2+1]+1;G>Q&&(G=Q,J++);C[L*2+1]=G;if(!(L>
b)){l.bl_count[G]++;var R=0;L>=u&&(R=A[L-u]);var a=C[L*2];l.opt_len+=a*(G+R);y&&(l.static_len+=a*(n[L*2+1]+R))}}if(J!==0){do{for(G=Q-1;l.bl_count[G]===0;)G--;l.bl_count[G]--;l.bl_count[G+1]+=2;l.bl_count[Q]--;J-=2}while(J>0);for(G=Q;G!==0;G--)for(L=l.bl_count[G];L!==0;)n=l.heap[--D],n>b||(C[n*2+1]!==G&&(l.opt_len+=(G-C[n*2+1])*C[n*2],C[n*2+1]=G),L--)}iUC(U,h,l.bl_count)};
bU3=function(l,D,U){var n,y=-1,A=D[1],C=0,h=7,b=4;A===0&&(h=138,b=3);D[(U+1)*2+1]=65535;for(n=0;n<=U;n++){var u=A;A=D[(n+1)*2+1];++C<h&&u===A||(C<b?l.bl_tree[u*2]+=C:u!==0?(u!==y&&l.bl_tree[u*2]++,l.bl_tree[32]++):C<=10?l.bl_tree[34]++:l.bl_tree[36]++,C=0,y=u,A===0?(h=138,b=3):u===A?(h=6,b=3):(h=7,b=4))}};
gfo=function(l,D,U){var n,y=-1,A=D[1],C=0,h=7,b=4;A===0&&(h=138,b=3);for(n=0;n<=U;n++){var u=A;A=D[(n+1)*2+1];if(!(++C<h&&u===A)){if(C<b){do Xy(l,u,l.bl_tree);while(--C!==0)}else u!==0?(u!==y&&(Xy(l,u,l.bl_tree),C--),Xy(l,16,l.bl_tree),t3(l,C-3,2)):C<=10?(Xy(l,17,l.bl_tree),t3(l,C-3,3)):(Xy(l,18,l.bl_tree),t3(l,C-11,7));C=0;y=u;A===0?(h=138,b=3):u===A?(h=6,b=3):(h=7,b=4)}}};
uPl=function(l){var D=4093624447,U;for(U=0;U<=31;U++,D>>>=1)if(D&1&&l.dyn_ltree[U*2]!==0)return 0;if(l.dyn_ltree[18]!==0||l.dyn_ltree[20]!==0||l.dyn_ltree[26]!==0)return 1;for(U=32;U<256;U++)if(l.dyn_ltree[U*2]!==0)return 1;return 0};
K6=function(l,D,U){l.pending_buf[l.d_buf+l.last_lit*2]=D>>>8&255;l.pending_buf[l.d_buf+l.last_lit*2+1]=D&255;l.pending_buf[l.l_buf+l.last_lit]=U&255;l.last_lit++;D===0?l.dyn_ltree[U*2]++:(l.matches++,D--,l.dyn_ltree[(kH[U]+256+1)*2]++,l.dyn_dtree[(D<256?db[D]:db[256+(D>>>7)])*2]++);return l.last_lit===l.lit_bufsize-1};
p6=function(l,D){l.msg=cG[D];return D};
xH=function(l){for(var D=l.length;--D>=0;)l[D]=0};
j9=function(l){var D=l.state,U=D.pending;U>l.avail_out&&(U=l.avail_out);U!==0&&(S9.arraySet(l.output,D.pending_buf,D.pending_out,U,l.next_out),l.next_out+=U,D.pending_out+=U,l.total_out+=U,l.avail_out-=U,D.pending-=U,D.pending===0&&(D.pending_out=0))};
wb=function(l,D){var U=l.block_start>=0?l.block_start:-1,n=l.strstart-l.block_start,y=0;if(l.level>0){l.strm.data_type===2&&(l.strm.data_type=uPl(l));PVc(l,l.l_desc);PVc(l,l.d_desc);bU3(l,l.dyn_ltree,l.l_desc.max_code);bU3(l,l.dyn_dtree,l.d_desc.max_code);PVc(l,l.bl_desc);for(y=18;y>=3&&l.bl_tree[vfC[y]*2+1]===0;y--);l.opt_len+=3*(y+1)+5+5+4;var A=l.opt_len+3+7>>>3;var C=l.static_len+3+7>>>3;C<=A&&(A=C)}else A=C=n+5;if(n+4<=A&&U!==-1)t3(l,D?1:0,3),UN$(l,U,n);else if(l.strategy===4||C===A)t3(l,2+(D?
1:0),3),h99(l,Fy,o2);else{t3(l,4+(D?1:0),3);U=l.l_desc.max_code+1;n=l.d_desc.max_code+1;y+=1;t3(l,U-257,5);t3(l,n-1,5);t3(l,y-4,4);for(A=0;A<y;A++)t3(l,l.bl_tree[vfC[A]*2+1],3);gfo(l,l.dyn_ltree,U-1);gfo(l,l.dyn_dtree,n-1);h99(l,l.dyn_ltree,l.dyn_dtree)}lsC(l);D&&DN9(l);l.block_start=l.strstart;j9(l.strm)};
rb=function(l,D){l.pending_buf[l.pending++]=D};
zn=function(l,D){l.pending_buf[l.pending++]=D>>>8&255;l.pending_buf[l.pending++]=D&255};
Qn$=function(l,D){var U=l.max_chain_length,n=l.strstart,y=l.prev_length,A=l.nice_match,C=l.strstart>l.w_size-262?l.strstart-(l.w_size-262):0,h=l.window,b=l.w_mask,u=l.prev,Q=l.strstart+258,G=h[n+y-1],J=h[n+y];l.prev_length>=l.good_match&&(U>>=2);A>l.lookahead&&(A=l.lookahead);do{var L=D;if(h[L+y]===J&&h[L+y-1]===G&&h[L]===h[n]&&h[++L]===h[n+1]){n+=2;for(L++;h[++n]===h[++L]&&h[++n]===h[++L]&&h[++n]===h[++L]&&h[++n]===h[++L]&&h[++n]===h[++L]&&h[++n]===h[++L]&&h[++n]===h[++L]&&h[++n]===h[++L]&&n<Q;);
L=258-(Q-n);n=Q-258;if(L>y){l.match_start=D;y=L;if(L>=A)break;G=h[n+y-1];J=h[n+y]}}}while((D=u[D&b])>C&&--U!==0);return y<=l.lookahead?y:l.lookahead};
$H=function(l){var D=l.w_size,U;do{var n=l.window_size-l.lookahead-l.strstart;if(l.strstart>=D+(D-262)){S9.arraySet(l.window,l.window,D,D,0);l.match_start-=D;l.strstart-=D;l.block_start-=D;var y=U=l.hash_size;do{var A=l.head[--y];l.head[y]=A>=D?A-D:0}while(--U);y=U=D;do A=l.prev[--y],l.prev[y]=A>=D?A-D:0;while(--U);n+=D}if(l.strm.avail_in===0)break;y=l.strm;U=l.window;A=l.strstart+l.lookahead;var C=y.avail_in;C>n&&(C=n);C===0?U=0:(y.avail_in-=C,S9.arraySet(U,y.input,y.next_in,C,A),y.state.wrap===
1?y.adler=GI_(y.adler,U,C,A):y.state.wrap===2&&(y.adler=f6(y.adler,U,C,A)),y.next_in+=C,y.total_in+=C,U=C);l.lookahead+=U;if(l.lookahead+l.insert>=3)for(n=l.strstart-l.insert,l.ins_h=l.window[n],l.ins_h=(l.ins_h<<l.hash_shift^l.window[n+1])&l.hash_mask;l.insert&&!(l.ins_h=(l.ins_h<<l.hash_shift^l.window[n+3-1])&l.hash_mask,l.prev[n&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=n,n++,l.insert--,l.lookahead+l.insert<3););}while(l.lookahead<262&&l.strm.avail_in!==0)};
JuG=function(l,D){for(var U;;){if(l.lookahead<262){$H(l);if(l.lookahead<262&&D===0)return 1;if(l.lookahead===0)break}U=0;l.lookahead>=3&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+3-1])&l.hash_mask,U=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart);U!==0&&l.strstart-U<=l.w_size-262&&(l.match_length=Qn$(l,U));if(l.match_length>=3)if(U=K6(l,l.strstart-l.match_start,l.match_length-3),l.lookahead-=l.match_length,l.match_length<=l.max_lazy_match&&l.lookahead>=3){l.match_length--;
do l.strstart++,l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+3-1])&l.hash_mask,l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart;while(--l.match_length!==0);l.strstart++}else l.strstart+=l.match_length,l.match_length=0,l.ins_h=l.window[l.strstart],l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+1])&l.hash_mask;else U=K6(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++;if(U&&(wb(l,!1),l.strm.avail_out===0))return 1}l.insert=l.strstart<2?l.strstart:2;return D===4?(wb(l,
!0),l.strm.avail_out===0?3:4):l.last_lit&&(wb(l,!1),l.strm.avail_out===0)?1:2};
NZ=function(l,D){for(var U,n;;){if(l.lookahead<262){$H(l);if(l.lookahead<262&&D===0)return 1;if(l.lookahead===0)break}U=0;l.lookahead>=3&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+3-1])&l.hash_mask,U=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart);l.prev_length=l.match_length;l.prev_match=l.match_start;l.match_length=2;U!==0&&l.prev_length<l.max_lazy_match&&l.strstart-U<=l.w_size-262&&(l.match_length=Qn$(l,U),l.match_length<=5&&(l.strategy===1||l.match_length===3&&
l.strstart-l.match_start>4096)&&(l.match_length=2));if(l.prev_length>=3&&l.match_length<=l.prev_length){n=l.strstart+l.lookahead-3;U=K6(l,l.strstart-1-l.prev_match,l.prev_length-3);l.lookahead-=l.prev_length-1;l.prev_length-=2;do++l.strstart<=n&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+3-1])&l.hash_mask,l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart);while(--l.prev_length!==0);l.match_available=0;l.match_length=2;l.strstart++;if(U&&(wb(l,!1),l.strm.avail_out===0))return 1}else if(l.match_available){if((U=
K6(l,0,l.window[l.strstart-1]))&&wb(l,!1),l.strstart++,l.lookahead--,l.strm.avail_out===0)return 1}else l.match_available=1,l.strstart++,l.lookahead--}l.match_available&&(K6(l,0,l.window[l.strstart-1]),l.match_available=0);l.insert=l.strstart<2?l.strstart:2;return D===4?(wb(l,!0),l.strm.avail_out===0?3:4):l.last_lit&&(wb(l,!1),l.strm.avail_out===0)?1:2};
LXl=function(l,D){for(var U,n,y,A=l.window;;){if(l.lookahead<=258){$H(l);if(l.lookahead<=258&&D===0)return 1;if(l.lookahead===0)break}l.match_length=0;if(l.lookahead>=3&&l.strstart>0&&(n=l.strstart-1,U=A[n],U===A[++n]&&U===A[++n]&&U===A[++n])){for(y=l.strstart+258;U===A[++n]&&U===A[++n]&&U===A[++n]&&U===A[++n]&&U===A[++n]&&U===A[++n]&&U===A[++n]&&U===A[++n]&&n<y;);l.match_length=258-(y-n);l.match_length>l.lookahead&&(l.match_length=l.lookahead)}l.match_length>=3?(U=K6(l,1,l.match_length-3),l.lookahead-=
l.match_length,l.strstart+=l.match_length,l.match_length=0):(U=K6(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++);if(U&&(wb(l,!1),l.strm.avail_out===0))return 1}l.insert=0;return D===4?(wb(l,!0),l.strm.avail_out===0?3:4):l.last_lit&&(wb(l,!1),l.strm.avail_out===0)?1:2};
qJ9=function(l,D){for(var U;;){if(l.lookahead===0&&($H(l),l.lookahead===0)){if(D===0)return 1;break}l.match_length=0;U=K6(l,0,l.window[l.strstart]);l.lookahead--;l.strstart++;if(U&&(wb(l,!1),l.strm.avail_out===0))return 1}l.insert=0;return D===4?(wb(l,!0),l.strm.avail_out===0?3:4):l.last_lit&&(wb(l,!1),l.strm.avail_out===0)?1:2};
sL=function(l,D,U,n,y){this.good_length=l;this.max_lazy=D;this.nice_length=U;this.max_chain=n;this.func=y};
Mdg=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 S9.Buf16(1146);this.dyn_dtree=new S9.Buf16(122);this.bl_tree=new S9.Buf16(78);xH(this.dyn_ltree);xH(this.dyn_dtree);xH(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new S9.Buf16(16);this.heap=new S9.Buf16(573);xH(this.heap);this.heap_max=this.heap_len=0;this.depth=new S9.Buf16(573);xH(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};
R9C=function(l,D){if(!l||!l.state||D>5||D<0)return l?p6(l,-2):-2;var U=l.state;if(!l.output||!l.input&&l.avail_in!==0||U.status===666&&D!==4)return p6(l,l.avail_out===0?-5:-2);U.strm=l;var n=U.last_flush;U.last_flush=D;if(U.status===42)if(U.wrap===2)l.adler=0,rb(U,31),rb(U,139),rb(U,8),U.gzhead?(rb(U,(U.gzhead.text?1:0)+(U.gzhead.hcrc?2:0)+(U.gzhead.extra?4:0)+(U.gzhead.name?8:0)+(U.gzhead.comment?16:0)),rb(U,U.gzhead.time&255),rb(U,U.gzhead.time>>8&255),rb(U,U.gzhead.time>>16&255),rb(U,U.gzhead.time>>
24&255),rb(U,U.level===9?2:U.strategy>=2||U.level<2?4:0),rb(U,U.gzhead.os&255),U.gzhead.extra&&U.gzhead.extra.length&&(rb(U,U.gzhead.extra.length&255),rb(U,U.gzhead.extra.length>>8&255)),U.gzhead.hcrc&&(l.adler=f6(l.adler,U.pending_buf,U.pending,0)),U.gzindex=0,U.status=69):(rb(U,0),rb(U,0),rb(U,0),rb(U,0),rb(U,0),rb(U,U.level===9?2:U.strategy>=2||U.level<2?4:0),rb(U,3),U.status=113);else{var y=8+(U.w_bits-8<<4)<<8;y|=(U.strategy>=2||U.level<2?0:U.level<6?1:U.level===6?2:3)<<6;U.strstart!==0&&(y|=
32);U.status=113;zn(U,y+(31-y%31));U.strstart!==0&&(zn(U,l.adler>>>16),zn(U,l.adler&65535));l.adler=1}if(U.status===69)if(U.gzhead.extra){for(y=U.pending;U.gzindex<(U.gzhead.extra.length&65535)&&(U.pending!==U.pending_buf_size||(U.gzhead.hcrc&&U.pending>y&&(l.adler=f6(l.adler,U.pending_buf,U.pending-y,y)),j9(l),y=U.pending,U.pending!==U.pending_buf_size));)rb(U,U.gzhead.extra[U.gzindex]&255),U.gzindex++;U.gzhead.hcrc&&U.pending>y&&(l.adler=f6(l.adler,U.pending_buf,U.pending-y,y));U.gzindex===U.gzhead.extra.length&&
(U.gzindex=0,U.status=73)}else U.status=73;if(U.status===73)if(U.gzhead.name){y=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>y&&(l.adler=f6(l.adler,U.pending_buf,U.pending-y,y)),j9(l),y=U.pending,U.pending===U.pending_buf_size)){var A=1;break}A=U.gzindex<U.gzhead.name.length?U.gzhead.name.charCodeAt(U.gzindex++)&255:0;rb(U,A)}while(A!==0);U.gzhead.hcrc&&U.pending>y&&(l.adler=f6(l.adler,U.pending_buf,U.pending-y,y));A===0&&(U.gzindex=0,U.status=91)}else U.status=91;if(U.status===
91)if(U.gzhead.comment){y=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>y&&(l.adler=f6(l.adler,U.pending_buf,U.pending-y,y)),j9(l),y=U.pending,U.pending===U.pending_buf_size)){A=1;break}A=U.gzindex<U.gzhead.comment.length?U.gzhead.comment.charCodeAt(U.gzindex++)&255:0;rb(U,A)}while(A!==0);U.gzhead.hcrc&&U.pending>y&&(l.adler=f6(l.adler,U.pending_buf,U.pending-y,y));A===0&&(U.status=103)}else U.status=103;U.status===103&&(U.gzhead.hcrc?(U.pending+2>U.pending_buf_size&&j9(l),
U.pending+2<=U.pending_buf_size&&(rb(U,l.adler&255),rb(U,l.adler>>8&255),l.adler=0,U.status=113)):U.status=113);if(U.pending!==0){if(j9(l),l.avail_out===0)return U.last_flush=-1,0}else if(l.avail_in===0&&(D<<1)-(D>4?9:0)<=(n<<1)-(n>4?9:0)&&D!==4)return p6(l,-5);if(U.status===666&&l.avail_in!==0)return p6(l,-5);if(l.avail_in!==0||U.lookahead!==0||D!==0&&U.status!==666){n=U.strategy===2?qJ9(U,D):U.strategy===3?LXl(U,D):EL[U.level].func(U,D);if(n===3||n===4)U.status=666;if(n===1||n===3)return l.avail_out===
0&&(U.last_flush=-1),0;if(n===2&&(D===1?(t3(U,2,3),Xy(U,256,Fy),U.bi_valid===16?(a2(U,U.bi_buf),U.bi_buf=0,U.bi_valid=0):U.bi_valid>=8&&(U.pending_buf[U.pending++]=U.bi_buf&255,U.bi_buf>>=8,U.bi_valid-=8)):D!==5&&(t3(U,0,3),UN$(U,0,0),D===3&&(xH(U.head),U.lookahead===0&&(U.strstart=0,U.block_start=0,U.insert=0))),j9(l),l.avail_out===0))return U.last_flush=-1,0}if(D!==4)return 0;if(U.wrap<=0)return 1;U.wrap===2?(rb(U,l.adler&255),rb(U,l.adler>>8&255),rb(U,l.adler>>16&255),rb(U,l.adler>>24&255),rb(U,
l.total_in&255),rb(U,l.total_in>>8&255),rb(U,l.total_in>>16&255),rb(U,l.total_in>>24&255)):(zn(U,l.adler>>>16),zn(U,l.adler&65535));j9(l);U.wrap>0&&(U.wrap=-U.wrap);return U.pending!==0?0:1};
ZUl=function(l){if(!(this instanceof ZUl))return new ZUl(l);l=this.options=S9.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},l||{});l.raw&&l.windowBits>0?l.windowBits=-l.windowBits:l.gzip&&l.windowBits>0&&l.windowBits<16&&(l.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new e9C;this.strm.avail_out=0;var D=this.strm;var U=l.level,n=l.method,y=l.windowBits,A=l.memLevel,C=l.strategy;if(D){var h=1;U===-1&&(U=6);y<0?(h=0,y=-y):y>15&&
(h=2,y-=16);if(A<1||A>9||n!==8||y<8||y>15||U<0||U>9||C<0||C>4)D=p6(D,-2);else{y===8&&(y=9);var b=new Mdg;D.state=b;b.strm=D;b.wrap=h;b.gzhead=null;b.w_bits=y;b.w_size=1<<b.w_bits;b.w_mask=b.w_size-1;b.hash_bits=A+7;b.hash_size=1<<b.hash_bits;b.hash_mask=b.hash_size-1;b.hash_shift=~~((b.hash_bits+3-1)/3);b.window=new S9.Buf8(b.w_size*2);b.head=new S9.Buf16(b.hash_size);b.prev=new S9.Buf16(b.w_size);b.lit_bufsize=1<<A+6;b.pending_buf_size=b.lit_bufsize*4;b.pending_buf=new S9.Buf8(b.pending_buf_size);
b.d_buf=b.lit_bufsize;b.l_buf=3*b.lit_bufsize;b.level=U;b.strategy=C;b.method=n;if(D&&D.state){D.total_in=D.total_out=0;D.data_type=2;U=D.state;U.pending=0;U.pending_out=0;U.wrap<0&&(U.wrap=-U.wrap);U.status=U.wrap?42:113;D.adler=U.wrap===2?0:1;U.last_flush=0;if(!mNl){n=Array(16);for(A=C=0;A<28;A++)for(WX$[A]=C,y=0;y<1<<AuB[A];y++)kH[C++]=A;kH[C-1]=A;for(A=C=0;A<16;A++)for(CVo[A]=C,y=0;y<1<<BXC[A];y++)db[C++]=A;for(C>>=7;A<30;A++)for(CVo[A]=C<<7,y=0;y<1<<BXC[A]-7;y++)db[256+C++]=A;for(y=0;y<=15;y++)n[y]=
0;for(y=0;y<=143;)Fy[y*2+1]=8,y++,n[8]++;for(;y<=255;)Fy[y*2+1]=9,y++,n[9]++;for(;y<=279;)Fy[y*2+1]=7,y++,n[7]++;for(;y<=287;)Fy[y*2+1]=8,y++,n[8]++;iUC(Fy,287,n);for(y=0;y<30;y++)o2[y*2+1]=5,o2[y*2]=Vs_(y,5);aso=new YBs(Fy,AuB,257,286,15);tdg=new YBs(o2,BXC,0,30,15);XkN=new YBs([],SJo,0,19,7);mNl=!0}U.l_desc=new O79(U.dyn_ltree,aso);U.d_desc=new O79(U.dyn_dtree,tdg);U.bl_desc=new O79(U.bl_tree,XkN);U.bi_buf=0;U.bi_valid=0;lsC(U);U=0}else U=p6(D,-2);U===0&&(D=D.state,D.window_size=2*D.w_size,xH(D.head),
D.max_lazy_match=EL[D.level].max_lazy,D.good_match=EL[D.level].good_length,D.nice_match=EL[D.level].nice_length,D.max_chain_length=EL[D.level].max_chain,D.strstart=0,D.block_start=0,D.lookahead=0,D.insert=0,D.match_length=D.prev_length=2,D.match_available=0,D.ins_h=0);D=U}}else D=-2;if(D!==0)throw Error(cG[D]);l.header&&(D=this.strm)&&D.state&&D.state.wrap===2&&(D.state.gzhead=l.header);if(l.dictionary){var u;typeof l.dictionary==="string"?u=kIC(l.dictionary):dN$.call(l.dictionary)==="[object ArrayBuffer]"?
u=new Uint8Array(l.dictionary):u=l.dictionary;l=this.strm;A=u;C=A.length;if(l&&l.state)if(u=l.state,D=u.wrap,D===2||D===1&&u.status!==42||u.lookahead)D=-2;else{D===1&&(l.adler=GI_(l.adler,A,C,0));u.wrap=0;C>=u.w_size&&(D===0&&(xH(u.head),u.strstart=0,u.block_start=0,u.insert=0),U=new S9.Buf8(u.w_size),S9.arraySet(U,A,C-u.w_size,u.w_size,0),A=U,C=u.w_size);U=l.avail_in;n=l.next_in;y=l.input;l.avail_in=C;l.next_in=0;l.input=A;for($H(u);u.lookahead>=3;){A=u.strstart;C=u.lookahead-2;do u.ins_h=(u.ins_h<<
u.hash_shift^u.window[A+3-1])&u.hash_mask,u.prev[A&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=A,A++;while(--C);u.strstart=A;u.lookahead=2;$H(u)}u.strstart+=u.lookahead;u.block_start=u.strstart;u.insert=u.lookahead;u.lookahead=0;u.match_length=u.prev_length=2;u.match_available=0;l.next_in=n;l.input=y;l.avail_in=U;u.wrap=D;D=0}else D=-2;if(D!==0)throw Error(cG[D]);this._dict_set=!0}};
KXo=function(l,D){D=D||{};D.gzip=!0;D=new ZUl(D);D.push(l,!0);if(D.err)throw D.msg||cG[D.err];return D.result};
pk$=function(l,D){var U=cuG();U&&U.publish.call(U,l.toString(),l,D)};
wkC=function(l,D,U){var n=cuG();if(!n)return 0;var y=n.subscribe(l.toString(),function(A,C){var h=_.UG("ytPubsub2Pubsub2SkipSubKey");h&&h==y||(h=function(){if(xNC[y])try{if(C&&l instanceof jnl&&l!=A)try{var b=l.dataClass,u=C;if(!u.args||!u.version)throw Error("$c");try{if(!b.version_){var Q=new b;b.version_=Q.version}var G=b.version_}catch(J){}if(!G||u.version!=G)throw Error("ad");try{C=Reflect.construct(b,_.$9(u.args))}catch(J){throw J.message="yt.pubsub2.Data.deserialize(): "+J.message,J;}}catch(J){throw J.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+l.toString()+": "+J.message,J;}D.call(U||window,C)}catch(J){_.ll(J)}},FX9[l.toString()]?_.UG("yt.scheduler.instance")?_.Tn.addLowPriorityJob(h):_.tc(h,0):h())});
xNC[y]=!0;ofB[l.toString()]||(ofB[l.toString()]=[]);ofB[l.toString()].push(y);return y};
$Ng=function(){var l=rus,D=wkC(z9$,function(U){l.apply(void 0,arguments);fsc(D)});
return D};
fsc=function(l){var D=cuG();D&&(typeof l==="number"&&(l=[l]),_.Ac(l,function(U){D.unsubscribeByKey(U);delete xNC[U]}))};
cuG=function(){return _.UG("ytPubsub2Pubsub2Instance")};
NX$=function(l,D,U){U=U===void 0?{sampleRate:.1}:U;Math.random()<Math.min(.02,U.sampleRate/100)&&pk$("meta_logging_csi_event",{timerName:l,timelineData:D})};
_.sn_=function(l){return l?(l=l.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.yr(l):null:null};
_.I2=function(l){return l?(l=l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.dT(l):null:null};
TXK=function(){Efc||(Efc=_.I2(_.H3("WORKER_SERIALIZATION_URL")));return Efc||void 0};
_.HUd=function(){var l=TXK();Isl||l===void 0||(Isl=L6K(l));return Isl};
_.YJN=function(){return typeof Worker==="function"&&TXK()?!0:!1};
_.lNG=function(){if(_.YJN()&&!OU$){var l=function(U){U=U.data;if(U.op==="gzippedGelBatch"){var n=VdC.get(U.key);n&&(iYo(U.gzippedBatch,n.latencyPayload,n.url,n.options,n.sendFn),VdC.delete(U.key))}},D=_.HUd();
D&&(D.addEventListener("message",l),D.onerror=function(){VdC.clear()},OU$=!0)}};
BPB=function(l,D,U,n,y){y=y===void 0?!1:y;var A={startTime:(0,_.J3)(),ticks:{},infos:{}};if(HG)try{var C=DQK(D);if(C!=null&&(C>UQs||C<nu9))n(l,U);else{if(_.q("gzip_gel_with_worker")&&(_.q("initial_gzip_use_main_thread")&&!yjg||!_.q("initial_gzip_use_main_thread"))){OU$||_.lNG();var h=_.HUd();if(h&&!y){VdC.set(AjK,{latencyPayload:A,url:l,options:U,sendFn:n});h.postMessage({op:"gelBatchToGzip",serializedBatch:D,key:AjK});AjK++;return}}var b=KXo(W2c(D));iYo(b,A,l,U,n)}}catch(u){_.nt(u),n(l,U)}else n(l,
U)};
iYo=function(l,D,U,n,y){yjg=!1;var A=(0,_.J3)();D.ticks.gelc=A;YH++;_.q("disable_compression_due_to_performance_degredation")&&A-D.startTime>=CJd&&(hsc++,HG=!1);PJK(D);n.headers||(n.headers={});n.headers["Content-Encoding"]="gzip";n.postBody=l;n.postParams=void 0;y(U,n)};
gu_=function(l){var D=D===void 0?!1:D;var U=U===void 0?!1:U;var n=(0,_.J3)(),y={startTime:n,ticks:{},infos:{}},A=D?_.UG("yt.logging.gzipForFetch",!1):!0;if(HG&&A){if(!l.body)return l;try{var C=U?l.body:typeof l.body==="string"?l.body:JSON.stringify(l.body);A=C;if(!U&&typeof C==="string"){var h=DQK(C);if(h!=null&&(h>UQs||h<nu9))return l;U=D?{level:1}:void 0;A=KXo(W2c(C),U);var b=(0,_.J3)();y.ticks.gelc=b;if(D){YH++;if((_.q("disable_compression_due_to_performance_degredation")||_.q("disable_compression_due_to_performance_degradation_lr"))&&
b-n>=CJd)if(hsc++,_.q("abandon_compression_after_N_slow_zips_lr")){D=hsc/YH;var u=bYl/_.RG("compression_disable_point");YH>0&&YH%_.RG("compression_disable_point")===0&&D>=u&&(HG=!1)}else HG=!1;PJK(y)}}l.headers=Object.assign({},{"Content-Encoding":"gzip"},l.headers||{});l.body=A;return l}catch(Q){return _.nt(Q),l}}else return l};
DQK=function(l){try{return(new Blob(l.split(""))).size}catch(D){return _.nt(D),null}};
PJK=function(l){_.q("gel_compression_csi_killswitch")||!_.q("log_gel_compression_latency")&&!_.q("log_gel_compression_latency_lr")||NX$("gel_compression",l,{sampleRate:.1})};
usB=function(){this.blockSize=-1};
OL=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var l=1;l<this.blockSize;++l)this.pad_[l]=0;this.total_=this.inbuf_=0;this.reset()};
Qr$=function(l){l=Object.assign({},l);delete l.Authorization;var D=_.vuK();if(D){var U=new OL;U.update(_.H3("INNERTUBE_API_KEY"));U.update(D);l.hash=_.c2(U.digest(),3)}return l};
iy=function(){GY9||(GY9=new _.Vo("yt.innertube"));return GY9};
Jj9=function(l,D,U,n){if(n)return null;n=iy().get("nextId",!0)||1;var y=iy().get("requests",!0)||{};y[n]={method:l,request:D,authState:Qr$(U),requestTime:Math.round((0,_.J3)())};iy().set("nextId",n+1,86400,!0);iy().set("requests",y,86400,!0);return n};
L2K=function(l){var D=iy().get("requests",!0)||{};delete D[l];iy().set("requests",D,86400,!0)};
M09=function(l){var D=iy().get("requests",!0);if(D){for(var U in D){var n=D[U];if(!(Math.round((0,_.J3)())-n.requestTime<6E4)){var y=n.authState,A=Qr$(_.I1d(!1));_.we.equals(y,A)&&(y=n.request,"requestTimeMs"in y&&(y.requestTimeMs=Math.round((0,_.J3)())),ql$(l,n.method,y,{}));delete D[U]}}iy().set("requests",D,86400,!0)}};
RsG=function(l){var D;return(l=l==null?void 0:(D=l.error)==null?void 0:D.code)&&l>=400&&l<=599?!1:!0};
ZY_=function(l){var D;l=l==null?void 0:(D=l.error)==null?void 0:D.code;return!(l!==400&&l!==415)};
mQB=function(){if(esg)return esg();var l={};esg=Gn("LogsDatabaseV2",{objectStores:(l.LogsRequestsStore={addedAtVersion:2},l),shared:!1,upgrade:function(D,U,n){U(2)&&ly(D,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});U(3);U(5)&&(n=n.objectStore("LogsRequestsStore"),n.JSC$10761_wrapped.indexNames.contains("newRequest")&&n.JSC$10761_wrapped.deleteIndex("newRequest"),D0(n,"newRequestV2",["status","interface","timestamp"]));U(7)&&D.JSC$10746_wrapped.objectStoreNames.contains("sapisid")&&D.JSC$10746_wrapped.deleteObjectStore("sapisid");
U(9)&&D.JSC$10746_wrapped.objectStoreNames.contains("SWHealthLog")&&D.JSC$10746_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return esg()};
UU=function(l){return _.C6(mQB(),l)};
t0B=function(l,D){var U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return U={startTime:(0,_.J3)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},C.yield(UU(D),2);if(C.nextAddress!=3)return n=C.yieldResult,y=Object.assign({},l,{options:JSON.parse(JSON.stringify(l.options)),interface:_.H3("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),C.yield(n.put("LogsRequestsStore",y),3);A=C.yieldResult;U.ticks.tc=(0,_.J3)();aNo(U);return C.return(A)})};
Xg$=function(l,D){var U,n,y,A,C,h,b,u,Q;return _.P(function(G){if(G.nextAddress==1)return U={startTime:(0,_.J3)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},G.yield(UU(D),2);if(G.nextAddress!=3)return n=G.yieldResult,y=_.H3("INNERTUBE_CONTEXT_CLIENT_NAME",0),A=[l,y,0],C=[l,y,(0,_.J3)()],h=IDBKeyRange.bound(A,C),b="prev",_.q("use_fifo_for_networkless")&&(b="next"),u=void 0,Q=l==="NEW"?"readwrite":"readonly",_.q("use_readonly_for_get_most_recent_by_status_killswitch")&&(Q="readwrite"),
G.yield(_.h3(n,["LogsRequestsStore"],{mode:Q,enableRetries:!0},function(J){return _.L6(J.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:b},function(L){L.getValue()&&(u=L.getValue(),l==="NEW"&&(u.status="QUEUED",L.update(u)))})}),3);
U.ticks.tc=(0,_.J3)();aNo(U);return G.return(u)})};
SlK=function(l,D){var U;return _.P(function(n){if(n.nextAddress==1)return n.yield(UU(D),2);U=n.yieldResult;return n.return(_.h3(U,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(y){var A=y.objectStore("LogsRequestsStore");return A.get(l).then(function(C){if(C)return C.status="QUEUED",A.put(C).then(function(){return C})})}))})};
kYg=function(l,D,U,n){U=U===void 0?!0:U;var y;return _.P(function(A){if(A.nextAddress==1)return A.yield(UU(D),2);y=A.yieldResult;return A.return(_.h3(y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(C){var h=C.objectStore("LogsRequestsStore");return h.get(l).then(function(b){return b?(b.status="NEW",U&&(b.sendCount+=1),n!==void 0&&(b.options.compress=n),h.put(b).then(function(){return b})):Dl.resolve(void 0)})}))})};
dQo=function(l,D){var U;return _.P(function(n){if(n.nextAddress==1)return n.yield(UU(D),2);U=n.yieldResult;return n.return(U.delete("LogsRequestsStore",l))})};
K23=function(l){var D,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(UU(l),2);D=n.yieldResult;U=(0,_.J3)()-2592E6;return n.yield(_.h3(D,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(y){return bd(y.objectStore("LogsRequestsStore"),{},function(A){if(A.getValue().timestamp<=U)return A.delete().then(function(){return A.continue()})})}),0)})};
cjG=function(){_.P(function(l){return l.yield(Rf_("LogsDatabaseV2"),0)})};
aNo=function(l){_.q("nwl_csi_killswitch")||NX$("networkless_performance",l,{sampleRate:1})};
_.xQc=function(l){return _.C6(pg_(),l)};
jr9=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return n.yield(_.xQc(l),2);D=n.yieldResult;U=(0,_.J3)()-2592E6;return n.yield(_.h3(D,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(y){return bd(y.objectStore("SWHealthLog"),{},function(A){if(A.getValue().timestamp<=U)return A.delete().then(function(){return A.continue()})})}),0)})};
F2o=function(l){var D;return _.P(function(U){if(U.nextAddress==1)return U.yield(_.xQc(l),2);D=U.yieldResult;return U.yield(D.clear("SWHealthLog"),0)})};
_.nB=function(l,D,U,n,y,A,C){y=y===void 0?"":y;A=A===void 0?!1:A;C=C===void 0?!1:C;if(l)if(U&&!OG("cobalt"))_.nt(new _.rc("Legacy referrer-scrubbed ping detected")),l&&ou9(l,void 0,{scrubReferrer:!0});else if(y)Pu_(l,D,"POST",y,n);else if(_.H3("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||n||C)Pu_(l,D,"GET","",n,void 0,A,C);else{b:{try{c:{var h=new wgK({url:l});if(h.urlParamValues_.dsh==="1")var b=null;else{var u=h.urlParamValues_.ae;if(u==="1"){var Q=h.urlParamValues_.adurl;if(Q)try{b={version:3,directUrl:decodeURIComponent(Q),
asyncUrl:rfG(h.JSC$9557_url_,"act=1","ri=1",rjg(h))};break c}catch(R){}}b=u==="2"?{version:4,directUrl:rfG(h.JSC$9557_url_,"dct=1","suid="+h.suid_,"ri=1"),asyncUrl:rfG(h.JSC$9557_url_,"act=1","ri=1","suid="+h.suid_)}:null}}if(b){var G=_.kZ(l);var J=!(!G||!G.endsWith("/aclk")||_.ih(l,"ri")!=="1");break b}}catch(R){}J=!1}if(J){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(l,"")){var L=!0;break b}}catch(R){}L=!1}L?(D&&D(),U=!0):U=!1}else U=!1;U||ou9(l,D)}};
ou9=function(l,D,U){U=U===void 0?{}:U;var n=new Image,y=""+zs9++;fN9[y]=n;n.onload=n.onerror=function(){D&&fN9[y]&&D();delete fN9[y]};
U.scrubReferrer&&(n.referrerPolicy="no-referrer");n.src=l};
yX=function(l,D){$QG(l,D==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
NP9=function(l){var D;return((D=document.featurePolicy)==null?0:D.allowedFeatures().includes("attribution-reporting"))?l+"&nis=6":l+"&nis=5"};
sr9=function(l){if(!l)return!1;try{var D;if(((D=_.WS(l))==null?void 0:D.asm)==="4")return!0}catch(U){_.ll(U)}return!1};
$QG=function(l,D){D?(l=NP9(l),_.nB(l,void 0,void 0,void 0,"",!0,!0)):_.nB(l)};
TP3=function(){EuC||(EuC=new _.Vo("yt.offline"));return EuC};
INB=function(l){if(_.q("offline_error_handling")){var D=TP3().get("errors",!0)||{};D[l.message]={name:l.name,stack:l.stack};l.level&&(D[l.message].level=l.level);TP3().set("errors",D,2592E3,!0)}};
Ylc=function(l,D,U,n){n=n===void 0?!1:n;D=_.q("web_fp_via_jspb")?Object.assign({},D):D;_.q("use_cfr_monitor")&&HYG(l,D);if(_.q("use_request_time_ms_header"))D.headers&&vS(l)&&(D.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.J3)())));else{var y;if((y=D.postParams)==null?0:y.requestTimeMs)D.postParams.requestTimeMs=Math.round((0,_.J3)())}U&&Object.keys(D).length===0?_.nB(l):D.compress?D.postBody?(typeof D.postBody!=="string"&&(D.postBody=JSON.stringify(D.postBody)),BPB(l,D.postBody,
D,_.dc,n)):BPB(l,JSON.stringify(D.postParams),D,vSC,n):_.dc(l,D)};
OYg=function(l,D){_.q("use_event_time_ms_header")&&vS(l)&&(D.headers||(D.headers={}),D.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.J3)())));return D};
_.ies=function(){V03||(V03=new _.AL({logOfflineErrors:!0,enablePolling:!0}));return V03};
HYG=function(l,D){var U=D.onError?D.onError:function(){};
D.onError=function(y,A){WA().requestComplete(l,!1);U(y,A)};
var n=D.onSuccess?D.onSuccess:function(){};
D.onSuccess=function(y,A){WA().requestComplete(l,!0);n(y,A)}};
_.lk9=function(){return _.bl(document.location.toString())!=="www.youtube-nocookie.com"};
_.nt9=function(){return _.UG("ytNetworklessLoggingInitializationOptions")?_.DDo.isNwlInitialized:_.UD9};
yed=function(l,D){if(_.q("polymer_on_demand_shady_dom")){var U;var n=(U=l.__shady_native_firstElementChild)!=null?U:l.firstElementChild}else n=l.firstElementChild;for(;n;){if(l=D(n)?n:yed(n,D))return l;n=n.nextElementSibling}return null};
WpG=function(){var l=document;if("visibilityState"in l)return l.visibilityState;var D=AeC+"VisibilityState";if(D in l)return l[D]};
_.Bh$=function(l,D){var U;BA(l,function(n){U=D[n];return!!U});
return U};
_.hL=function(l){var D=Cms(l);D?D.focus(void 0):_.CB(l)};
Cms=function(l){return(l=yed(l,function(D){return _.PA(D)?hHB(D)&&!!D.offsetParent:!1}))?l:null};
_.CB=function(l,D){l.hasAttribute("tabindex")||l.setAttribute("tabindex","-1");l.focus(D)};
Pm3=function(l,D,U,n){n=n===void 0?{}:n;l.addEventListener&&(D!="mouseenter"||"onmouseenter"in document?D!="mouseleave"||"onmouseenter"in document?D=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(D="MozMousePixelScroll"):D="mouseout":D="mouseover");return _.we.findKey(by,function(y){var A=typeof y[4]==="boolean"&&y[4]==!!n,C=_.I_(y[4])&&_.I_(n)&&_.we.equals(y[4],n);return!!y.length&&y[0]==l&&y[1]==D&&y[2]==U&&(A||C)})};
_.uy=function(l,D,U,n){n=n===void 0?{}:n;if(!l||!l.addEventListener&&!l.attachEvent)return"";var y=Pm3(l,D,U,n);if(y)return y;y=++bel.count+"";var A=!(D!="mouseenter"&&D!="mouseleave"||!l.addEventListener||"onmouseenter"in document);var C=A?function(h){h=new g$(h);if(!_.sj(h.relatedTarget,function(b){return b==l},!0))return h.currentTarget=l,h.type=D,U.call(l,h)}:function(h){h=new g$(h);
h.currentTarget=l;return U.call(l,h)};
C=_.DJ(C);l.addEventListener?(D=="mouseenter"&&A?D="mouseover":D=="mouseleave"&&A?D="mouseout":D=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(D="MozMousePixelScroll"),gtg()||typeof n==="boolean"?l.addEventListener(D,C,n):l.addEventListener(D,C,!!n.capture)):l.attachEvent("on"+D,C);by[y]=[l,D,U,C,n];return y};
_.vt_=function(l,D,U){var n=n===void 0?{}:n;var y=_.uy(l,D,function(){_.uk$(y);U.apply(l,arguments)},n)};
_.uk$=function(l){l&&(typeof l=="string"&&(l=[l]),_.Ac(l,function(D){if(D in by){var U=by[D],n=U[0],y=U[1],A=U[3];U=U[4];n.removeEventListener?gtg()||typeof U==="boolean"?n.removeEventListener(y,A,U):n.removeEventListener(y,A,!!U.capture):n.detachEvent&&n.detachEvent("on"+y,A);delete by[D]}}))};
vA=function(l){this.callback_=l;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(l=0;l<4;l++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.uy(window,"mousemove",(0,_.jU)(this.onMouseMove_,this));this.timerId_=_.Xi((0,_.jU)(this.checkPosition_,this),25)};
Je9=function(){var l={};var D=l.preferMobileEvents===void 0?!1:l.preferMobileEvents;l=l.enableScrollEventListener===void 0?!0:l.enableScrollEventListener;if(_.UG("_lact",window)==null){var U=parseInt(_.H3("LACT"),10);U=isFinite(U)?Date.now()-Math.max(U,0):-1;_.vG("_lact",U,window);_.vG("_fact",U,window);U==-1&&_.QX();QOG(window,D,l);new vA(function(){Gts("mouse",100)})}};
QOG=function(l,D,U){D=D===void 0?!1:D;U=U===void 0?!0:U;_.uy(l.document,"keydown",_.QX);_.uy(l.document,"keyup",_.QX);_.uy(l.document,"mousedown",_.QX);_.uy(l.document,"mouseup",_.QX);D?_.uy(l,"touchmove",function(){Gts("touchmove",200)},{passive:!0}):(_.uy(l,"resize",function(){Gts("resize",200)}),U&&_.uy(l,"scroll",function(){Gts("scroll",200)}));
_.uy(l.document,"touchstart",_.QX,{passive:!0});_.uy(l.document,"touchend",_.QX,{passive:!0})};
Gts=function(l,D){Lpg[l]||(Lpg[l]=!0,_.Tn.addLowPriorityJob(function(){_.QX();Lpg[l]=!1},D))};
_.QX=function(){_.UG("_lact",window)==null&&Je9();var l=Date.now();_.vG("_lact",l,window);_.UG("_fact",window)==-1&&_.vG("_fact",l,window);(l=_.UG("ytglobal.ytUtilActivityCallback_"))&&l()};
_.Gj=function(){var l=_.UG("_lact",window);return l==null?-1:Math.max(Date.now()-l,0)};
_.Ma=function(l,D,U){var n=_.JL();if(n&&D){var y=n.subscribe(l,function(){var A=arguments,C=function(){LB[y]&&D.apply&&typeof D.apply=="function"&&D.apply(U||window,A)};
try{_.qVo[l]?C():_.tc(C,0)}catch(h){_.ll(h)}},U);
LB[y]=!0;qa[l]||(qa[l]=[]);qa[l].push(y);return y}return 0};
_.MQc=function(l){var D=_.JL();D&&(typeof l==="number"?l=[l]:typeof l==="string"&&(l=[parseInt(l,10)]),_.Ac(l,function(U){D.unsubscribeByKey(U);delete LB[U]}))};
_.RHd=function(l,D){var U=_.JL();U&&U.publish.apply(U,arguments)};
_.eH$=function(l){var D=_.JL();if(D)if(D.clear(l),l)Zec(l);else for(var U in qa)Zec(U)};
_.JL=function(){return _.nC.ytPubsubPubsubInstance};
Zec=function(l){qa[l]&&(l=qa[l],_.Ac(l,function(D){LB[D]&&delete LB[D]}),l.length=0)};
mD$=function(){var l,D;return"h5vcc"in RI&&((l=RI.h5vcc.traceEvent)==null?0:l.traceBegin)&&((D=RI.h5vcc.traceEvent)==null?0:D.traceEnd)?1:"performance"in RI&&RI.performance.mark&&RI.performance.measure?2:0};
akl=function(l){var D=mD$();switch(D){case 1:RI.h5vcc.traceEvent.traceBegin("YTLR",l);break;case 2:RI.performance.mark(l+"-start");break;case 0:break;default:_.Tv(D,"unknown trace type")}};
tQd=function(l){var D=mD$();switch(D){case 1:RI.h5vcc.traceEvent.traceEnd("YTLR",l);break;case 2:D=l+"-start";var U=l+"-end";RI.performance.mark(U);RI.performance.measure(l,D,U);break;case 0:break;default:_.Tv(D,"unknown trace type")}};
X93=function(l){var D,U;(U=(D=window).onerror)==null||U.call(D,l.message,"",0,0,l)};
SV9=function(l){if(_.q("web_lifecycle_error_handling_killswitch"))return l();try{return l()}catch(D){X93(D)}};
kt3=function(l){return[l.auth===void 0?"undefined":l.auth,l.isJspb===void 0?"undefined":l.isJspb,l.cttAuthInfo===void 0?"undefined":l.cttAuthInfo,l.tier===void 0?"undefined":l.tier].join("/")};
_.M=function(l,D){if(l)return l[D.name]};
mi=function(){var l=_.UG("yt.logging.ims");l||(l=new Z0,_.vG("yt.logging.ims",l));return l};
w9g=function(l,D){if(l.endpoint==="log_event"){dDN(l);var U=Kpd(l),n=ceN(l.payload)||"",y=p9G(n),A=200;if(y){if(y.enabled===!1&&!_.q("web_payload_policy_disabled_killswitch"))return;A=xDo(y.tier);if(A===400){jOd(l,D);return}}aI[U]=!0;U={cttAuthInfo:U,isJspb:!1,tier:A};mi().storePayload(U,l.payload);Fp$(D,!1,U,otC(n))}};
zHd=function(l,D,U){if(D.endpoint==="log_event"){dDN(void 0,D);var n=Kpd(D,!0),y=p9G(l),A=200;if(y){if(y.enabled===!1&&!_.q("web_payload_policy_disabled_killswitch"))return;A=xDo(y.tier);if(A===400){reB(l,D,U);return}}aI[n]=!0;n={cttAuthInfo:n,isJspb:!0,tier:A};mi().storePayload(n,pP(D.payload));Fp$(U,!0,n,otC(l))}};
Fp$=function(l,D,U,n){D=D===void 0?!1:D;n=n===void 0?!1:n;l&&(tL=new l);l=_.RG("tvhtml5_logging_max_batch_ads_fork")||_.RG("tvhtml5_logging_max_batch")||_.RG("web_logging_max_batch")||100;var y=(0,_.J3)(),A=fkc(D,U.tier),C=A.lastDebounceQueueFromLogTimeMs;n&&(A.useVideoStatsEndPoint=!0);n=0;U&&(n=mi().getSequenceCount(U));var h=function(){$D9({writeThenSend:!0},D,U.tier)};
n>=1E3?h():n>=l?Nh9||(Nh9=sOK(function(){h();Nh9=void 0},0)):y-C>=10&&(Etg(D,U.tier),A.lastDebounceQueueFromLogTimeMs=y)};
jOd=function(l,D){if(l.endpoint==="log_event"){_.q("more_accurate_gel_parser")&&mi().storePayload({isJspb:!1},l.payload);dDN(l);var U=Kpd(l),n=new Map;n.set(U,[l.payload]);var y=ceN(l.payload)||"";D&&(tL=new D);return new _.X0(function(A,C){tL&&tL.isReady()?Thd(n,tL,A,C,{bypassNetworkless:!0},!0,otC(y)):A()})}};
reB=function(l,D,U){if(D.endpoint==="log_event"){dDN(void 0,D);var n=Kpd(D,!0),y=new Map;y.set(n,[pP(D.payload)]);U&&(tL=new U);return new _.X0(function(A){tL&&tL.isReady()?Ik9(y,tL,A,{bypassNetworkless:!0},!0,otC(l)):A()})}};
Kpd=function(l,D){var U="";if(l.dangerousLogToVisitorSession)U="visitorOnlyApprovedKey";else if(l.cttAuthInfo){if(D===void 0?0:D){D=l.cttAuthInfo.token;U=l.cttAuthInfo;var n=new He3;U.videoId?n.setVideoId(U.videoId):U.playlistId&&S2(n,2,YVB,Mw(U.playlistId));Oes[D]=n}else D=l.cttAuthInfo,U={},D.videoId?U.videoId=D.videoId:D.playlistId&&(U.playlistId=D.playlistId),VQo[l.cttAuthInfo.token]=U;U=l.cttAuthInfo.token}return U};
$D9=function(l,D,U){l=l===void 0?{}:l;D=D===void 0?!1:D;new _.X0(function(n,y){var A=fkc(D,U),C=A.useVideoStatsEndPoint;A.useVideoStatsEndPoint=!1;i0N(A.queueTimer);i0N(A.queueMaxTimer);A.queueMaxTimer=0;tL&&tL.isReady()?U===void 0&&_.q("enable_web_tiered_gel")?lVc(n,y,l,D,300,C):lVc(n,y,l,D,U,C):(Etg(D,U),n())})};
lVc=function(l,D,U,n,y,A){var C=tL;U=U===void 0?{}:U;n=n===void 0?!1:n;y=y===void 0?200:y;A=A===void 0?!1:A;var h=new Map,b=new Map,u={isJspb:n,cttAuthInfo:void 0,tier:y},Q={isJspb:n,cttAuthInfo:void 0};if(n){D=_.B(Object.keys(aI));for(y=D.next();!y.done;y=D.next())y=y.value,b=_.q("enable_web_tiered_gel")?mi().smartExtractMatchingEntries({keys:[u,Q],sizeLimit:1E3}):mi().extractMatchingEntries({isJspb:!0,cttAuthInfo:y}),b.length>0&&h.set(y,b),(_.q("web_fp_via_jspb_and_json")&&U.writeThenSend||!_.q("web_fp_via_jspb_and_json"))&&
delete aI[y];Ik9(h,C,l,U,!1,A)}else{h=_.B(Object.keys(aI));for(u=h.next();!u.done;u=h.next())u=u.value,Q=_.q("enable_web_tiered_gel")?mi().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:u,tier:y},{isJspb:!1,cttAuthInfo:u}],sizeLimit:1E3}):mi().extractMatchingEntries({isJspb:!1,cttAuthInfo:u}),Q.length>0&&b.set(u,Q),(_.q("web_fp_via_jspb_and_json")&&U.writeThenSend||!_.q("web_fp_via_jspb_and_json"))&&delete aI[u];Thd(b,C,l,D,U,!1,A)}};
Etg=function(l,D){l=l===void 0?!1:l;D=D===void 0?200:D;var U=function(){$D9({writeThenSend:!0},l,D)},n=fkc(l,D),y=n===DhG||n===Uhg?5E3:nol;
_.q("web_gel_timeout_cap")&&!n.queueMaxTimer&&(y=sOK(function(){U()},y),n.queueMaxTimer=y);
i0N(n.queueTimer);y=_.H3("LOGGING_BATCH_TIMEOUT",_.RG("web_gel_debounce_ms",1E4));_.q("shorten_initial_gel_batch_timeout")&&y1$&&(y=A19);y=sOK(function(){_.RG("gel_min_batch_size")>0?mi().getSequenceCount({cttAuthInfo:void 0,isJspb:l,tier:D})>=W8l&&U():U()},y);
n.queueTimer=y};
Thd=function(l,D,U,n,y,A,C){y=y===void 0?{}:y;var h=Math.round((0,_.J3)()),b=l.size,u=Bf9(C);l=_.B(l);var Q=l.next();for(C={};!Q.done;C={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},Q=l.next()){var G=_.B(Q.value);Q=G.next().value;G=G.next().value;C.batchRequest=_.we.unsafeClone({context:_.wc_(D.config_||_.qZ())});if(!_.Ns(G)&&!_.q("throw_err_when_logevent_malformed_killswitch")){n();break}C.batchRequest.events=G;
(G=VQo[Q])&&C_9(C.batchRequest,Q,G);delete VQo[Q];C.dangerousLogToVisitorSession=Q==="visitorOnlyApprovedKey";h0o(C.batchRequest,h,C.dangerousLogToVisitorSession);P_d(y);C.onSuccess$jscomp$3=function(J){_.q("start_client_gcf")&&_.Tn.addLowPriorityJob(function(){return _.P(function(L){return L.yield(b0G(J),0)})});
b--;b||U()};
C.networkFailures=0;C.onError$jscomp$5=function(J){return function(){J.networkFailures++;if(y.bypassNetworkless&&J.networkFailures===1)try{ql$(D,u,J.batchRequest,go$({writeThenSend:!0},J.dangerousLogToVisitorSession,J.onSuccess$jscomp$3,J.onError$jscomp$5,A)),y1$=!1}catch(L){_.ll(L),n()}b--;b||U()}}(C);
try{ql$(D,u,C.batchRequest,go$(y,C.dangerousLogToVisitorSession,C.onSuccess$jscomp$3,C.onError$jscomp$5,A)),y1$=!1}catch(J){_.ll(J),n()}}};
Ik9=function(l,D,U,n,y,A){n=n===void 0?{}:n;var C=Math.round((0,_.J3)()),h={value:l.size},b=new Map([].concat(_.zz(l)));b=_.B(b);for(var u=b.next();!u.done;u=b.next()){var Q=_.B(u.value).next().value,G=l.get(Q);u=new uEc;var J=D.config_||_.qZ(),L=new kG,R=new vog;_.c7(R,1,J.innertubeContextHostLanguage);_.c7(R,2,J.innertubeContextGeoLocation);_.R2(R,16,J.innertubeContextClientNameFieldNumber);_.c7(R,17,J.innertubeContextClientVersion);if(J.innertubeContextClientConfigInfo){var a=J.innertubeContextClientConfigInfo,
S=new e9;a.coldConfigData&&_.c7(S,1,a.coldConfigData);a.appInstallData&&_.c7(S,6,a.appInstallData);a.coldHashData&&_.c7(S,3,a.coldHashData);a.hotHashData&&S.setHotHashData(a.hotHashData);_.al(R,62,S)}(a=_.nC.devicePixelRatio)&&a!=1&&_.Zl(R,65,_.Y1(a));a=Dt_();a!==""&&_.c7(R,54,a);a=UtK();if(a.length>0){S=new QLd;for(var d=0;d<a.length;d++){var c=new d$;c.setKey(a[d].key);S2(c,2,G4B,Mw(a[d].value));KB(S,15,d$,c)}_.al(L,5,S)}c43(J,R);pcl(L);xlK(R);jJo(J,R);FFs(R);_.q("start_client_gcf")&&oBl(R);_.H3("DELEGATED_SESSION_ID")&&
!_.q("pageid_as_header_web")&&(J=new cA,_.c7(J,3,_.H3("DELEGATED_SESSION_ID")));!_.q("fill_delegate_context_in_gel_killswitch")&&(a=_.H3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(S=_.MZ(L,cA,3)||new cA,J=L,a=_.c7(S,18,a),_.al(J,3,a));J=R;a=_.B(Object.entries(_.WS(_.H3("DEVICE",""))));for(S=a.next();!S.done;S=a.next())d=_.B(S.value),S=d.next().value,d=d.next().value,S==="cbrand"?_.c7(J,12,d):S==="cmodel"?_.c7(J,13,d):S==="cbr"?_.c7(J,87,d):S==="cbrver"?_.c7(J,88,d):S==="cos"?_.c7(J,18,
d):S==="cosver"?_.c7(J,19,d):S==="cplatform"&&_.R2(J,42,K0l(d));L.setClient(R);_.al(u,1,L);if(R=Oes[Q])a:{if(_.Xt(R,pB(R,YVB,1)))L=1;else if(R.getPlaylistId())L=2;else break a;_.al(u,4,R);R=u.getContext()||new kG;J=_.MZ(R,cA,3)||new cA;a=new xG;a.setToken(Q);_.R2(a,1,L);KB(J,12,xG,a);_.al(R,3,J)}delete Oes[Q];Q=Q==="visitorOnlyApprovedKey";J1o()||_.j2(u,2,C);!Q&&(L=_.H3("EVENT_ID"))&&(R=L89(),J=new qmg,_.c7(J,1,L),_.j2(J,2,R),_.al(u,5,J));P_d(n);if(_.q("jspb_serialize_with_worker")&&(L=_.HUd())&&
n.writeThenSend){_.MZ9.set(R0s,{client:D,resolve:U,networklessOptions:n,isIsolated:y,useVSSEndpoint:A,dangerousLogToVisitorSession:Q,requestsOutstanding:h});L.postMessage({op:"gelBatchToSerialize",batchRequest:pP(u),clientEvents:G,key:R0s});R0s++;break}if(G){L=[];for(R=0;R<G.length;R++)try{L.push(new F0(G[R]))}catch(N){_.ll(new _.rc("Transport failed to deserialize "+String(G[R])))}G=L}else G=[];G=_.B(G);for(L=G.next();!L.done;L=G.next())KB(u,3,F0,L.value);G={startTime:(0,_.J3)(),ticks:{},infos:{}};
u=u.serialize();G.ticks.geljspc=(0,_.J3)();_.q("log_jspb_serialize_latency")&&NX$("gel_jspb_serialize",G,{sampleRate:.1});_.Z0c(u,D,U,n,y,A,Q,h)}};
_.Z0c=function(l,D,U,n,y,A,C,h){n=n===void 0?{}:n;h=h===void 0?{value:0}:h;A=Bf9(A);n=go$(n,C,function(b){_.q("start_client_gcf")&&_.Tn.addLowPriorityJob(function(){return _.P(function(u){return u.yield(b0G(b),0)})});
h.value--;h.value||U()},function(){h.value--;
h.value||U()},y);
n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=l;ql$(D,A,"",n);y1$=!1};
P_d=function(l){_.q("always_send_and_write")&&(l.writeThenSend=!1)};
go$=function(l,D,U,n,y){l={retry:!0,onSuccess:U,onError:n,networklessOptions:l,dangerousLogToVisitorSession:D,bypassMonitoring:!!y,headers:{},postBodyFormat:"",postBody:"",compress:_.q("compress_gel")||_.q("compress_gel_lr")};J1o()&&(l.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.J3)())));return l};
h0o=function(l,D,U){J1o()||(l.requestTimeMs=String(D));_.q("unsplit_gel_payloads_in_logs")&&(l.unsplitGelPayloadsInLogs=!0);!U&&(D=_.H3("EVENT_ID"))&&(U=L89(),l.serializedClientEventId={serializedEventId:D,clientCounter:String(U)})};
L89=function(){var l=_.H3("BATCH_CLIENT_COUNTER")||0;l||(l=Math.floor(Math.random()*65535/2));l++;l>65535&&(l=1);_.IN("BATCH_CLIENT_COUNTER",l);return l};
C_9=function(l,D,U){if(U.videoId)var n="VIDEO";else if(U.playlistId)n="PLAYLIST";else return;l.credentialTransferTokenTargetId=U;l.context=l.context||{};l.context.user=l.context.user||{};l.context.user.credentialTransferTokens=[{token:D,scope:n}]};
dDN=function(l,D){var U=_.e_("il_payload_scraping")==="enable_il_payload_scraping";if(!_.UG("yt.logging.transport.enableScrapingForTest"))if(U)e0_=[],_.vG("yt.logging.transport.enableScrapingForTest",!0),_.vG("yt.logging.transport.scrapedPayloadsForTesting",e0_),_.vG("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.vG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.vG("yt.logging.transport.scrapeClientEvent",!0);else return;U=_.UG("yt.logging.transport.scrapedPayloadsForTesting");var n=_.UG("yt.logging.transport.payloadToScrape");D&&(D=_.UG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(D.payload)())&&U.push(D);D=_.UG("yt.logging.transport.scrapeClientEvent");if(n&&n.length>=1)for(var y=0;y<n.length;y++)if(l&&l.payload[n[y]])if(D)U.push(l.payload);else{var A=void 0;U.push(((A=l)==null?void 0:A.payload)[n[y]])}_.vG("yt.logging.transport.scrapedPayloadsForTesting",
U)};
J1o=function(){return _.q("use_request_time_ms_header")||_.q("lr_use_request_time_ms_header")};
sOK=function(l,D){return _.q("transport_use_scheduler")===!1?_.tc(l,D):_.q("logging_avoid_blocking_during_navigation")||_.q("lr_logging_avoid_blocking_during_navigation")?_.oI(_.Tn,function(){if(_.mhc().currentState==="none")l();else{var U={};_.mhc().install((U.none={callback:l},U))}},D):_.oI(_.Tn,l,D)};
i0N=function(l){_.q("transport_use_scheduler")?_.Tn.cancelJob(l):_.S_(l)};
b0G=function(l){var D,U,n,y,A,C,h,b,u,Q;return _.P(function(G){return G.nextAddress==1?(n=(D=l)==null?void 0:(U=D.responseContext)==null?void 0:U.globalConfigGroup,y=_.M(n,aVK),C=(A=n)==null?void 0:A.hotHashData,h=_.M(n,tZK),u=(b=n)==null?void 0:b.coldHashData,(Q=_.Jc().resolve(_.G8(w$)))?C?y?G.yield(XK9(Q,C,y),2):G.yield(XK9(Q,C),2):G.jumpTo(2):G.return()):u?h?G.yield(SmK(Q,u,h),0):G.yield(SmK(Q,u),0):G.jumpTo(0)})};
fkc=function(l,D){D=D===void 0?200:D;return l?D===300?DhG:k49:D===300?Uhg:dho};
p9G=function(l){if(_.q("enable_web_tiered_gel")){l=K8c[l||""];var D,U,n,y=_.Jc().resolve(_.G8(w$))==null?void 0:(D=r$())==null?void 0:(U=D.loggingHotConfig)==null?void 0:(n=U.eventLoggingConfig)==null?void 0:n.payloadPolicies;if(y)for(D=0;D<y.length;D++)if(y[D].payloadNumber===l)return y[D]}};
ceN=function(l){l=Object.keys(l);l=_.B(l);for(var D=l.next();!D.done;D=l.next())if(D=D.value,K8c[D])return D};
xDo=function(l){switch(l){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}};
otC=function(l){return l==="gelDebuggingEvent"};
Bf9=function(l){return(l===void 0?0:l)&&_.q("vss_through_gel_video_stats")?"video_stats":"log_event"};
fB=function(l,D,U,n){n=n===void 0?{}:n;var y={},A=Math.round(n.timestamp||(0,_.J3)());y.eventTimeMs=A<Number.MAX_SAFE_INTEGER?A:0;y[l]=D;l=_.Gj();y.context={lastActivityMs:String(n.timestamp||!isFinite(l)?-1:l)};n.sequenceGroup&&!_.q("web_gel_sequence_info_killswitch")&&(l=y.context,D=n.sequenceGroup,D={index:c1_(D),groupKey:D},l.sequence=D,n.endOfSequence&&delete zj[n.sequenceGroup]);_.q("web_tag_automated_log_events")&&(y.context.automatedLogEventSource=n.automatedLogEventSource);(n.sendIsolatedPayload?
jOd:w9g)({endpoint:"log_event",payload:y,cttAuthInfo:n.cttAuthInfo,dangerousLogToVisitorSession:n.dangerousLogToVisitorSession},U)};
c1_=function(l){zj[l]=l in zj?zj[l]+1:0;return zj[l]};
_.Na=function(l,D,U){U=U===void 0?{}:U;var n=$G;_.il("ytLoggingEventsDefaultDisabled",!1)&&$G===$G&&(n=null);fB(l,D,n,U)};
_.sU=function(){if(_.q("web_fp_via_jspb")){var l=!0;l=l===void 0?!1:l;var D=pKl;pKl=[];if(D){D=_.B(D);for(var U=D.next();!U.done;U=D.next())U=U.value,l?fB(U.payloadName,U.payload,$G,U.options):_.Na(U.payloadName,U.payload,U.options)}$D9(void 0,!0);if(!_.q("web_fp_via_jspb_and_json"))return}$D9(void 0,!1)};
xhN=function(l,D){var U;if((U=D)==null?0:U.componentStack)return D;if(l=l.componentStack)D||(D={}),D.componentStack=l;return D};
jLg=function(){_.Ac(_.H3("ERRORS")||[],function(l){_.EU.apply(null,l)});
_.IN("ERRORS",[])};
_.Tj=function(l){_.EU(l)};
_.II=function(l){_.EU(l,"WARNING")};
F83=function(l){l instanceof Error?_.EU(l):(l=_.I_(l)?JSON.stringify(l):String(l),l=new _.rc(l),l.name="RejectedPromiseError",_.II(l))};
ooG=function(l,D,U,n,y,A){D=D===void 0?"Unknown file":D;U=U===void 0?0:U;var C=!1,h=pHl("log_window_onerror_fraction");if(h&&Math.random()<h)C=!0;else{h=document.getElementsByTagName("script");for(var b=0,u=h.length;b<u;b++)if(h[b].src.indexOf("/debug-")>0){C=!0;break}}C&&(C=!1,y?C=!0:(typeof l==="string"?h=l:ErrorEvent&&l instanceof ErrorEvent?(C=!0,h=l.message,D=l.filename,U=l.lineno,n=l.colno):(h="Unknown error",D="Unknown file",U=0),y=new _.rc(h),y.name="UnhandledWindowError",y.message=h,y.fileName=
D,y.lineNumber=U,isNaN(n)?delete y.columnNumber:y.columnNumber=n),_.q("wiz_enable_component_stack_propagation_killswitch")||(A=xhN(y,A)),A&&_.HA(y,A),C?_.EU(y):_.II(y))};
_.EU=function(l,D,U,n,y,A,C,h){A=A===void 0?{}:A;A.name=U||_.H3("INNERTUBE_CONTEXT_CLIENT_NAME",1);A.version=n||_.H3("INNERTUBE_CONTEXT_CLIENT_VERSION");U=A;D=D===void 0?"ERROR":D;C=C===void 0?!1:C;D=D===void 0?"ERROR":D;C=C===void 0?!1:C;if(l&&(l.hasOwnProperty("level")&&l.level&&(D=l.level),_.q("console_log_js_exceptions")&&(n=[],n.push("Name: "+l.name),n.push("Message: "+l.message),l.hasOwnProperty("params")&&n.push("Error Params: "+JSON.stringify(l.params)),l.hasOwnProperty("args")&&n.push("Error args: "+
JSON.stringify(l.args)),n.push("File name: "+l.fileName),n.push("Stacktrace: "+l.stack),n=n.join("\n"),window.console.log(n,l)),!(wKg>=5))){n=[];y=_.B(r1l);for(A=y.next();!A.done;A=y.next()){A=A.value;try{A()&&n.push(A())}catch(S){}}n=[].concat(_.zz(z0s),_.zz(n));var b=fVK(l);y=b.message||"Unknown Error";A=b.name||"UnknownError";var u=b.stack||l.stacktrace||"Not available";if(u.startsWith(A+": "+y)){var Q=u.split("\n");Q.shift();u=Q.join("\n")}Q=b.lineNumber||"Not available";b=b.fileName||"Not available";
var G=0;if(l.hasOwnProperty("args")&&l.args&&l.args.length)for(var J=0;J<l.args.length&&!(G=dt9(l.args[J],"params."+J,U,G),G>=500);J++);else if(l.hasOwnProperty("params")&&l.params){var L=l.params;if(typeof l.params==="object")for(J in L){if(L[J]){var R="params."+J,a=pt(L[J]);U[R]=a;G+=R.length+a.length;if(G>500)break}}else U.params=pt(L)}if(n.length)for(J=0;J<n.length&&!(G=dt9(n[J],"params.context."+J,U,G),G>=500);J++);navigator.vendor&&!U.hasOwnProperty("vendor")&&(U["device.vendor"]=navigator.vendor);
J={message:y,name:A,lineNumber:Q,fileName:b,stack:u,params:U,sampleWeight:1};U=Number(l.columnNumber);isNaN(U)||(J.lineNumber=J.lineNumber+":"+U);if(l.level==="IGNORED")l=0;else a:{l=$h$();U=_.B(l.messageWeights);for(n=U.next();!n.done;n=U.next())if(n=n.value,J.message&&J.message.match(n.messageRegExp)){l=n.weight;break a}l=_.B(l.callbackWeights);for(U=l.next();!U.done;U=l.next())if(U=U.value,U.callback(J)){l=U.weight;break a}l=1}J.sampleWeight=l;l=_.B(Nfd);for(U=l.next();!U.done;U=l.next())if(U=
U.value,U.patternsForType[J.name])for(y=_.B(U.patternsForType[J.name]),n=y.next();!n.done;n=y.next())if(A=n.value,n=J.message.match(A.regexp)){J.params["params.error.original"]=n[0];y=A.groups;A={};for(Q=0;Q<y.length;Q++)A[y[Q]]=n[Q+1],J.params["params.error."+y[Q]]=n[Q+1];J.message=U.messageFn(A);break}J.params||(J.params={});l=$h$();J.params["params.errorServiceSignature"]="msg="+l.messageWeights.length+"&cb="+l.callbackWeights.length;J.params["params.serviceWorker"]="false";_.nC.document&&_.nC.document.querySelectorAll&&
(J.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new YG(sLN,"sample")).constructor!==YG&&(J.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(J);if(J.sampleWeight!==0&&!Eos.has(J.message)){if(C&&_.q("web_enable_error_204"))Tf_(D===void 0?"ERROR":D,J);else{D=D===void 0?"ERROR":D;D==="ERROR"?(OU.publish("handleError",J),_.q("record_app_crashed_web")&&IVc===0&&J.sampleWeight===1&&(IVc++,C={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.q("report_client_error_with_app_crash_ks")||(C.systemHealth={crashData:{clientError:{logMessage:{message:J.message}}}}),_.Na("appCrashed",C)),H0d++):D==="WARNING"&&OU.publish("handleWarning",J);if(_.q("kevlar_gel_error_routing")){C=D;h=h===void 0?{}:h;b:{l=_.B(Ym_);for(U=l.next();!U.done;U=l.next())if(OG(U.value.toLowerCase())){l=!0;break b}l=!1}if(l)h=void 0;else{U={stackTrace:J.stack};J.fileName&&(U.filename=J.fileName);l=J.lineNumber&&J.lineNumber.split?J.lineNumber.split(":"):[];l.length!==
0&&(l.length!==1||isNaN(Number(l[0]))?l.length!==2||isNaN(Number(l[0]))||isNaN(Number(l[1]))||(U.lineNumber=Number(l[0]),U.columnNumber=Number(l[1])):U.lineNumber=Number(l[0]));l={level:"ERROR_LEVEL_UNKNOWN",message:J.message,errorClassName:J.name,sampleWeight:J.sampleWeight};C==="ERROR"?l.level="ERROR_LEVEL_ERROR":C==="WARNING"&&(l.level="ERROR_LEVEL_WARNNING");U={isObfuscated:!0,browserStackInfo:U};h.pageUrl=window.location.href;h.kvPairs=[];_.H3("FEXP_EXPERIMENTS")&&(h.experimentIds=_.H3("FEXP_EXPERIMENTS"));
n=_.H3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!pHl("web_disable_gel_stp_ecatcher_killswitch")&&n)for(y=_.B(Object.keys(n)),A=y.next();!A.done;A=y.next())A=A.value,h.kvPairs.push({key:A,value:String(n[A])});if(n=J.params)for(y=_.B(Object.keys(n)),A=y.next();!A.done;A=y.next())A=A.value,h.kvPairs.push({key:"client."+A,value:String(n[A])});n=_.H3("SERVER_NAME");y=_.H3("SERVER_VERSION");n&&y&&(h.kvPairs.push({key:"server.name",value:n}),h.kvPairs.push({key:"server.version",value:y}));h={errorMetadata:h,
stackTrace:U,logMessage:l}}h&&(_.Na("clientError",h),(C==="ERROR"||_.q("errors_flush_gel_always_killswitch"))&&_.sU())}_.q("suppress_error_204_logging")||Tf_(D,J)}try{Eos.add(J.message)}catch(S){}wKg++}}};
Tf_=function(l,D){var U=D.params||{};l={urlParams:{a:"logerror",t:"jserror",type:D.name,msg:D.message.substr(0,250),line:D.lineNumber,level:l,"client.name":U.name},postParams:{url:_.H3("PAGE_NAME",window.location.href),file:D.fileName},method:"POST"};U.version&&(l["client.version"]=U.version);if(l.postParams){D.stack&&(l.postParams.stack=D.stack);D=_.B(Object.keys(U));for(var n=D.next();!n.done;n=D.next())n=n.value,l.postParams["client."+n]=U[n];if(U=_.H3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(D=
_.B(Object.keys(U)),n=D.next();!n.done;n=D.next())n=n.value,l.postParams[n]=U[n];(U=_.H3("LAVA_VERSION"))&&(l.postParams["lava.version"]=U);U=_.H3("SERVER_NAME");D=_.H3("SERVER_VERSION");U&&D&&(l.postParams["server.name"]=U,l.postParams["server.version"]=D)}_.dc(_.H3("ECATCHER_REPORT_HOST","")+"/error_204",l)};
_.O0d=function(l,D){D=D===void 0?"ERROR":D;var U=U===void 0?{}:U;var n=_.UG("ytbin.polymer.shared.lib.tampering.info");n&&(n=n())&&(U["params.tamperingInfo"]=n.sort().join(","));_.EU(l,D,void 0,void 0,!0,U)};
_.HA=function(l){var D=_.EW.apply(1,arguments);l.args||(l.args=[]);Array.isArray(l.args)&&l.args.push.apply(l.args,_.zz(D))};
VZd=function(l){l.level="IGNORED"};
iqC=function(l,D){z0s.push(l);D();z0s.pop()};
iP=function(l,D){for(var U in D)D.hasOwnProperty(U)&&(l=_.VX(l,U,D[U]));return l};
_.lXl=function(l,D,U){U=U===void 0?!1:U;if(!l)return null;if(l.adInfoDialogEndpoint||l.backstageImageUploadEndpoint||l.confirmDialogEndpoint||l.clientActionEndpoint||l.createBackstagePostDialogEndpoint||l.createCommentReplyDialogEndpoint||l.flowEndpoint||l.guideBuilderEndpoint||l.liveChatDialogEndpoint||l.modalEndpoint||l.openPopupAction||l.shareEndpoint||l.shareEntityEndpoint||l.showLiveChatItemEndpoint||l.subscriptionManagerEndpoint||l.unlimitedCreateFamilyEndpoint||l.unlimitedFamilyFlowEndpoint||
l.updateCommentDialogEndpoint||l.updateCommentReplyDialogEndpoint||l.userFeedbackEndpoint||l.videoEditorEndpoint||l.ypcCancelSurveyEndpoint)return D=_.RG("polymer_report_client_url_requested_rate"),!U&&Math.random()<D&&_.II(new _.rc("urlForEndpoint used on client endpoint",l)),null;var n=_.RG("polymer_report_missing_web_navigation_endpoint_rate");if(l.liveChatEndpoint||l.liveChatReplayEndpoint)n=0;if(!l.commandMetadata&&!l.clickTrackingParams&&Math.random()<n){var y={},A;for(A in l)y[A]="1";_.II(new _.rc("Missing navigation data",
y))}y="";if(l.commandMetadata&&l.commandMetadata.webCommandMetadata&&l.commandMetadata.webCommandMetadata.url)y=l.commandMetadata.webCommandMetadata.url;else if(l.searchEndpoint)Math.random()<n&&_.II(new _.rc("Should not manually handle search",l)),y="/results?search_query="+encodeURIComponent(l.searchEndpoint.query).replace(/%20/g,"+"),l.searchEndpoint.params&&(y+="&sp="+l.searchEndpoint.params);else if(l.watchEndpoint)Math.random()<n&&_.II(new _.rc("Should not manually handle watch",l)),y="/watch?v="+
l.watchEndpoint.videoId,l.watchEndpoint.playlistId&&(y+="&list="+l.watchEndpoint.playlistId),l.watchEndpoint.index&&(y+="&index="+l.watchEndpoint.index),l.watchEndpoint.startTimeSeconds&&(y+="&t="+l.watchEndpoint.startTimeSeconds);else if(l.browseEndpoint)n=l.browseEndpoint.browseId,(A=l.browseEndpoint.canonicalBaseUrl)?y=A:n&&(y=n.substr(0,2),y=y==="FE"?n==="FEwhat_to_watch"?"/":n==="FEmy_videos"?"/my_videos":"/feed/"+n.substr(2):y==="VL"?"/playlist?list="+n.substr(2):"/channel/"+n),y&&l.browseEndpoint.query&&
(y=iP(y+"/search",{query:l.browseEndpoint.query})),y&&l.browseEndpoint.params&&(y=iP(y,{params:l.browseEndpoint.params}));else{if(l.urlEndpoint)return l.urlEndpoint.url;l.signInEndpoint?(y="https://accounts.google.com/ServiceLogin",n={},_.we.extend(n,D||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),D=n):l.uploadEndpoint?y="//www.youtube.com/upload":l.liveChatEndpoint?(y=l.liveChatEndpoint,n=_.we.clone(y),_.I_(y.continuation)&&(A=Object.keys(y.continuation)[0],
n.continuation=y.continuation[A].continuation),y=iP("/youtubei/v1/live_chat/get_live_chat",n)):l.liveChatReplayEndpoint?(y=_.we.clone(l.liveChatReplayEndpoint),y.currentPlayerState&&(_.we.extend(y,y.currentPlayerState),delete y.currentPlayerState),y=iP("/youtubei/v1/live_chat/get_live_chat_replay",y)):l.liveChatItemContextMenuEndpoint?y=iP("/youtubei/v1/live_chat/get_item_context_menu",l.liveChatItemContextMenuEndpoint):l.liveChatPurchaseMessageEndpoint?y=iP("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
l.liveChatPurchaseMessageEndpoint):l.openSuperStickerBuyFlowCommand?y=iP("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",l.openSuperStickerBuyFlowCommand):l.videoEditEndpoint?y=iP("/edit",{video_id:l.videoEditEndpoint.videoId}):l.liveDashboardEndpoint?y=l.liveDashboardEndpoint.videoId?iP("/live_dashboard",{v:l.liveDashboardEndpoint.videoId}):"/live_dashboard":l.signalNavigationEndpoint&&l.signalNavigationEndpoint.signal&&l.signalNavigationEndpoint.signal==="WEBCAM"?y="/webcam":l.getPdgBuyFlowCommand&&
(y=iP(l.getPdgBuyFlowCommand.buyflowApiPath,{params:l.getPdgBuyFlowCommand.params}))}return y||U?iP(y,D||{}):(_.II(new _.rc("Error: Can't construct url for endpoint","keys:"+Object.keys(l).sort().join(","),l)),null)};
DJc=function(l){if(l){if(l.browseEndpoint)return!!l.browseEndpoint.nofollow;if(l.watchEndpoint)return!!l.watchEndpoint.nofollow;if(l.urlEndpoint)return!!l.urlEndpoint.nofollow}return!1};
_.nv9=function(l,D){var U=D+l,n=UJs.get(U);if(n)return n;l=D+"-"+l.replace(/([A-Z])/g,"-$1").toLowerCase();UJs.set(U,l);return l};
yiC=function(l){var D=_.EZ(l,"action")||_.EZ(l,"command")||_.EZ(l,"endpoint");if(!D)return null;D=_.nv9(D,"yt");_.M(l,_.lP)&&(D+="-"+_.M(l,_.lP).signal.toLowerCase().replace(/_/g,"-"));return D};
CIo=function(l){try{var D=Object.keys(l)}catch(y){return[]}for(var U=0;U<D.length;U++){var n=D[U];if(Ail.test(n)||Wr$.test(n))return BNN(l[n])}return[]};
BNN=function(l){return l.command?[l.command]:l.onExecutionAction?[l.onExecutionAction]:l.onResponseReceivedCommand?[l.onResponseReceivedCommand]:l.updateFlowCommand?[l.updateFlowCommand]:l.clientActions?l.clientActions:l.action?[l.action]:l.actions||l.commands||l.onResponseReceivedActions||l.onResponseReceivedCommands||l.onResponseReceivedEndpoints||[]};
PI_=function(l,D){D=D===void 0?!1:D;var U=_.Jc().resolve(_.G8(Dm));U||(U=new hd9,_.Jc().addProvider({provide:Dm,useValue:U}));return U&&l&&!_.we.isEmpty(l)?U.getUrl(l,D):""};
bq3=function(l,D,U){U=U===void 0?"":U;if(D){l.data=D;var n=PI_(D);n?(Il(l,n),DJc(D)||!vS(n)?l.rel="nofollow":l.removeAttribute("rel"),_.M(D,_.yE)&&_.M(D,_.yE).target==="TARGET_NEW_WINDOW"?l.target="_blank":U?l.target=U:l.removeAttribute("target")):(l.removeAttribute("href"),l.removeAttribute("rel"),l.removeAttribute("target"))}};
_.Pd=function(l,D){var U=hq;if(xi())gvc(l,function(){var A=_.EW.apply(0,arguments);Tp(U,function(){D.apply(null,_.zz(A))})});
else{var n=_.AH.getInstance(),y=c6o(D);epo(function(){y.value=D});
_.N1(function(){var A={},C=_.Wd(n,(A[l]=function(){var h=_.EW.apply(0,arguments);Tp(U,function(){y.value.apply(y,_.zz(h))})},A));
return function(){var h={};_.Bd(n,(h[l]="",h),C)}})}};
_.bP=function(l,D){return u7C(l,!1,D)};
_.gm=function(l,D){return u7C(l,!0,D)};
u7C=function(l,D,U){return xi()?vvd(l,D,U):QT$(l,D,U)};
QT$=function(l,D,U){return sZ(function(){return vvd(l,D,U)})};
vvd=function(l,D,U){var n=q99(function(y){n.value=y;var A=function(){var C=Jq(null);try{return U==null?void 0:U(y)}finally{Jq(C)}}();
return function(){A==null||A()}});
n.__expectedTagName=l;n.__optional=D;n.isIdom=!xi();return n};
GyC=function(l){var D=hq,U=c_;return{getFn:function(){return function(n){if(!D.isDisposed){var y=function(){return l(n)};
Fx(function(){return _.mU(y)},U)!==!0&&n.stopPropagation()}}}}};
Jio=function(l){if(typeof l.children==="function")return l.children(),null;l=_.B(l.children);for(var D=l.next();!D.done;D=l.next())D=D.value,D();return null};
Lr9=function(l){var D;return((D=l.prototype)==null?void 0:D.render)===void 0};
qEG=function(l){var D=Array.isArray(l.items)?l.items:Array.from(l.items);l=l.children;return(Array.isArray(D)?D:Array.from(D)).map(l)};
RdN=function(l,D,U){U=U===void 0?!1:U;Fx(function(){return MqK(l,D,U)})};
MqK=function(l,D,U){var n=null;wM++;U=(U===void 0?0:U)?ZqB:edB;try{n=U(l,function(){uP(D)}),zp(!1)}catch(y){throw zp(!0),y;
}return n===null?l:n};
uP=function(l){if(l!==void 0&&l!==null)if(l instanceof kg)for(var D=UZ;nk()!=null&&n2c in nk()&&D.contains(nk());)W3();else if(Array.isArray(l))for(D=_.B(l),l=D.next();!l.done;l=D.next())uP(l.value);else if(l instanceof kC||l instanceof b8||"function"==typeof _.u0&&l instanceof _.u0)UEc(l.toString());else if(_.q1(l)){if(nk()!==l){var U,n;D=(n=(U=c_)==null?void 0:U.name)!=null?n:"unknown";throw Error("hc`"+l.tagName+"`"+D);}W3()}else if(l!=null&&l.contentKind===ZQ||l instanceof Hh||JOc(l))for(D=q2_(l),
D=Array.from(D.childNodes),D=_.B(D),l=D.next();!l.done;l=D.next())UZ.appendChild(l.value),W3();else if(FO(l)&&(l=l.toString()),U=typeof l,U==="boolean"||U==="number"||U==="string")UEc(l);else if(typeof l==="function"){D=UZ;var y=nk();y&&(y._isSignalTextNode||y._isSafeOrSanitizedHtmlNode)||T03(D,y,l);W3()}else if(l.type===qEG)uP(l.type(Object.assign({},l.props,{children:l.children[0]})));else{if(typeof l.type==="string"){a:{l.__open||Ims(l.type,l.props.idomKey);y=UZ;for(D in l.props)if(l.props[D]!==
mJN){var A=l.props[D];U=hf;U.push(D);U.push(A)}D=v_.attributes;D=D===void 0?vd:D;A=UZ;U=DQ(A);DEG(A,U,D);Exd(y,l.props,!0);if((l.props.skip||l.props.skipchildren)&&UZ.hasChildNodes())Af=UZ.lastChild;else{if(l.type==="style"&&XT9(l.children)===null){Af=UZ.lastChild;D=void 0;break a}uP(l.children)}HAC();l.__open&&(l.__open=!1);P6B(y,l.props);D=y}return D}if(l.type===_.GZ)uP(l.children);else if(!aX_(l)){D=l;try{tqC(D)}catch(C){l=C,(A=v_.handleError)==null||A.call.apply(A,[v_].concat(_.zz(Iw(l,(y=D.type)==
null?void 0:y.TAG_NAME))))}D.__open&&(HAC(),D.__open=!1)}}};
Xr_=function(l,D){var U;Lr9(l)?U=new xg(D,l):U=new l(D);U.__type=l;U.__updateContext={nextState:U.state,isForced:!1};return U};
tqC=function(l){var D=l.type,U=D.TAG_NAME;if(D===Jio)l.props.children=l.children,D(l.props);else{l.children.length>0&&(l.props.children=l.children);var n;(n=l.props).idomKey||(n.idomKey=D);if(U){var y=Ims(U,l.props.idomKey);l.__open=!0;var A=y.__instance}A||(A=Xr_(D,l.props),A.props=null,y&&(y.__instance=A,A.el=y));var C;U=((C=A.__updateContext)!=null?C:{nextState:A.state,isForced:!1}).nextState;A.__updateContext=void 0;D.getDerivedStateFromProps&&(U=D.getDerivedStateFromProps(l.props,U));A.props=
l.props;A.state=U;C=function(){var h=A;c3.beforeRender(h);var b=h.render(h.props);b?(h.props.idomKey&&(b.props.idomKey=h.props.idomKey),h=b):h=void 0;if(b=h)if(b.__open=l.__open,h=uP(b),l.__open=b.__open,!D.TAG_NAME)if(h)D.TAG_NAME=h.tagName.toLowerCase(),h.__instance=A,A.el=h;else{var u;if((u=A.hooks)==null?0:u.length){var Q;(Q=v_.handleError)==null||Q.call.apply(Q,[v_].concat(_.zz(Iw(Error("od")))))}}A.didPatch();c3.didPatch(A)};
(U=A.functionComponent)?kjK(U,C,A.props.debugInstance):C()}};
aX_=function(l){var D=l.type;if(!Lr9(D)||D===Jio||D.componentType===py)return!1;l.props.children=l.children.length>1?l.children:l.children[0];var U,n=(U=l.props.idomKey)!=null?U:l.type,y;if(nk()&&((y=nk()[tf])==null?void 0:y.key)===n){var A=nk(),C=A[tf];if(!C)throw Error("gc`"+A.tagName);var h;(h=C.updateSignalsFromIdomProps)==null||h.call(C,l.props);SEc(C);return!0}if(ky3.has(D.name))throw h=D.name,D=(C=(A=c_)==null?void 0:A.name)!=null?C:"unknown",Error("fc`"+h+"`"+D);OSc(l.type,l.props,l.children);
l.props.renderedFromIdom=!0;(h=kjK(l.type,function(){return z6c(l.type,l.props)},l.props.debugInstance))&&dJ3(h);
return!0};
KrN=function(l){for(var D=0;D<SM(l).length;D++)W3()};
SEc=function(l){var D=ci3();if(D)KrN(D);else for(var U=0;U<l.numNodes;U++)(D=ci3())?KrN(D):W3()};
ci3=function(){var l;return(l=nk()[tf])==null?void 0:l.sourceDynamicRange};
dJ3=function(l){l=u4N(l);l=Array.isArray(l)?l:[l];l=_.B(l);for(var D=l.next();!D.done;D=l.next())UZ.insertBefore(D.value,nk()),W3()};
pr3=function(){var l=$EC(),D=sZ(function(){return{value:0}});
return[D.value,function(U){if(pk!==null){var n;(n=v_.handleError)==null||n.call.apply(n,[v_].concat(_.zz(Iw(Error("pd")))))}D.value=typeof U==="function"?U(D.value):U;l.__updateContext={nextState:l.state,isForced:!0};U=_.P_(l.effectContext);n=Jf(!1);try{if(l.el){var y,A={},C=(A.props=l.props,A.type=l.__type,A.children=(y=l.props.children)!=null?y:[],A[Q5]=!0,A);try{RdN(l.el,C,!0)}catch(u){var h,b;(b=v_.handleError)==null||b.call.apply(b,[v_].concat(_.zz(Iw(u,(h=l.__type)==null?void 0:h.TAG_NAME))))}}}finally{Jf(n),
_.P_(U)}}]};
_.QE=function(l,D){var U=hq,n=function(y){Tp(U,function(){D(y)})};
window.addEventListener(l,n,void 0);_.NV(function(){window.removeEventListener(l,n,void 0)})};
_.JH=function(l){var D=hq;return function(U){var n,y=(n=l.observer)!=null?n:_.Jc().resolve(G7);n=xJN(U);var A=[];l.showOption&&A.push(y.observe(U,function(){Tp(D,function(){l.visibilityCallback(!0,U)})},l.showOption));
l.hideOption&&A.push(y.observe(U,function(){Tp(D,function(){l.visibilityCallback(!1,U)})},l.hideOption));
l.prescanOption&&l.prescanCallback&&A.push(y.observe(U,function(){Tp(D,function(){l.prescanCallback()})},l.prescanOption));
var C;n.visibilityMonitorKeys=((C=n.visibilityMonitorKeys)!=null?C:[]).concat(A)}};
xJN=function(l){var D;return(D=l.polymerController)!=null?D:l};
wrB=function(l,D){var U=jTB;return _.g(_.GZ,null,vHN(v_.enableLazyTsx,function(){return _.g(FrK,{id:U,value:l,children:D})},function(){var n=ovC(U,l);
uh(n);n=_.P_(n);try{return D()}finally{_.P_(n)}}))};
FrK=function(l){var D=l.children;l=ovC(l.id,l.value);uh(l);l=_.P_(l);try{return _.g(_.GZ,null,dt(D()))}finally{_.P_(l)}};
ovC=function(l,D){return Object.assign(Object.create(riN),{id:l,contextValue:D})};
zd3=function(l){var D,U=hq;_.fy(function(){var n=_.P_(U),y=Jf(!D);try{if(D)RdN(D,l.children(),!0);else if(D=dt(l.children()),!(D instanceof Element))throw Error("qd");}finally{Jf(y),_.P_(n)}},"g");
return D};
_.fX9=function(l,D){var U;D=sP(function(){var n=Jf(!0);wM++;try{U=SM(l()),zp(!1)}catch(y){throw zp(!0),y;}finally{Jf(n)}},D===void 0?!1:D);
return[U,D]};
NNc=function(l){var D=new $Jd;D.abort(l);return D.signal};
sTN=function(){if(this.aborted){var l;throw(l=this.reason)!=null?l:new DOMException("signal is aborted without reason","AbortError");}};
IX9=function(l){var D=new $Jd;l=_.B(l);for(var U=l.next();!U.done;U=l.next())if(U=U.value,U.aborted){D.abort(U.reason);break}else Ev_.set(D.signal,D),TN_.add(U,D.signal);return D.signal};
Hq$=function(){for(var l=_.B(TN_.get(this)),D=l.next();!D.done;D=l.next())Ev_.get(D.value).abort(this.reason)};
YEg=function(l){var D=new $Jd;setTimeout(function(){D.abort(new DOMException("signal timed out","TimeoutError"))},l);
return D.signal};
OqG=function(){var l,D;return{promise:new Promise(function(U,n){l=U;D=n}),
resolve:l,reject:D}};
i43=function(l){var D=OqG(),U=D.promise;VqK.set(l,{promise:U,resolve:D.resolve,reject:D.reject});LA||(LA=[],queueMicrotask(function(){var n=[].concat(_.zz(LA));LA=null;var y=$T().loadMultiple(n);n=_.B(n);for(var A=n.next();!A.done;A=n.next())A=A.value,y[A].then(VqK.get(A).resolve,VqK.get(A).reject)}));
LA.push(l);return U};
DdB=function(l){l=l.buf.charCodeAt(l.pos++);return lf9[l]};
qM=function(l){var D=0,U=0;do{var n=DdB(l);D|=(n&31)<<U;U+=5}while(n&32);return D<0?D+4294967296:D};
nX_=function(l,D,U,n){var y=!0;y=y===void 0?!1:y;D=D===void 0?!1:D;n=n===void 0?{}:n;var A=n.cssRowKey||"",C=n.combinedSignature||"";!A&&window&&window._F_cssRowKey&&(A=window._F_cssRowKey,!C&&window._F_combinedSignature&&(C=window._F_combinedSignature));if(A&&typeof window._F_installCss!=="function")throw Error("Ad");var h=n.loaderClass||_.MM;l=xZg(l===void 0?"base-js":l);D=new h(qSc(FWo("",l)),A,C,y,D);y=n.useCors||l&&l.hasAttribute("crossorigin");l=n.corsMode||l&&l.getAttribute("crossorigin");
y&&(D.useCors_=y);l&&(D.corsMode_=l);n.urlMaxLength&&(D.urlMaxLength=n.urlMaxLength);U&&(D.insertPos=U);n.fetchPriority&&(D.fetchPriority=n.fetchPriority);var b=$T();b.JSC$10135_loader_=D;b.setBatchModeEnabled(!0);_.Ud_=n.batchingStrategy==="BATCH"?i43:function(u){return Promise.resolve(b.load(u))}};
WGd=function(l,D,U){yBg(l,D);l[D][ABN].unshift(U)};
yBg=function(l,D){if(!l[D]||!l[D][ABN]){var U=l[D],n=U?[U]:[];l[D]=function(){for(var y=_.B(n),A=y.next();!A.done;A=y.next())A.value.apply(this,arguments)};
l[D][ABN]=n}};
Bkc=function(l){if(!l)return[];var D=[];l=_.B(l);for(var U=l.next();!U.done;U=l.next())U=U.value,Array.isArray(U)?D.push.apply(D,_.zz(Bkc(U))):D.push(U);return D};
_.Zm=function(l,D){if(l&&Cq$.test(l)||l==="//")return l;if(hWN===void 0){hWN=!1;try{var U=new URL("b","http://a");U.pathname="c%20d";hWN=U.href==="http://a/c%20d"}catch(n){}}D||(D=document.baseURI||window.location.href);if(hWN)try{return(new URL(l,D)).href}catch(n){return l}R1||(R1=document.implementation.createHTMLDocument("temp"),R1.base=R1.createElement("base"),R1.head.appendChild(R1.base),R1.anchor=R1.createElement("a"),R1.body.appendChild(R1.anchor));R1.base.href=D;R1.anchor.href=l;return R1.anchor.href||
l};
b4C=function(l,D){return l.replace(Pq$,function(U,n,y,A){return n+"'"+_.Zm(y.replace(/["']/g,""),D)+"'"+A})};
gX3=function(l){return l.substring(0,l.lastIndexOf("/")+1)};
Qz9=function(){uZN=!1;for(var l=en.length,D=0;D<l;D++){var U=en[D];if(U)try{U()}catch(n){setTimeout(function(){throw n;})}}en.splice(0,l);
vXg+=l};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(l){console.log("["+l.is+"]: registered")};
JBC=function(l){GMC.push(l)};
mE=function(l){return LG9[l]||(LG9[l]=l.indexOf("-")<0?l:l.replace(qrc,function(D){return D[1].toUpperCase()}))};
a1=function(l){return LG9[l]||(LG9[l]=l.replace(Mt9,"-$1").toLowerCase())};
RWl=function(l,D){var U=D.parentInfo&&RWl(l,D.parentInfo);if(U)for(l=U.firstChild,U=0;l;l=l.nextSibling){if(D.parentIndex===U++)return l}else return l};
Z4G=function(l,D){l=l._methodHost||l;return function(U){if(l[D])l[D](U,U.detail);else console.warn("listener method `"+D+"` not defined")}};
tH=function(l){return l.indexOf(".")>=0};
Xb=function(l){var D=l.indexOf(".");return D===-1?l:l.slice(0,D)};
eWc=function(l,D){return l.indexOf(D+".")===0};
Sn=function(l,D){return D.indexOf(l+".")===0};
kY=function(l,D,U){return D+U.slice(l.length)};
mdc=function(l,D){return l===D||eWc(l,D)||Sn(l,D)};
dm=function(l){if(Array.isArray(l)){for(var D=[],U=0;U<l.length;U++)for(var n=l[U].toString().split("."),y=0;y<n.length;y++)D.push(n[y]);return D.join(".")}return l};
afC=function(l){return Array.isArray(l)?dm(l).split("."):l.toString().split(".")};
KA=function(l,D,U){D=afC(D);for(var n=0;n<D.length;n++){if(!l)return;l=l[D[n]]}U&&(U.path=D.join("."));return l};
ttc=function(l,D,U){var n=afC(D),y=n[n.length-1];if(n.length>1){for(D=0;D<n.length-1;D++)if(l=l[n[D]],!l)return;l[y]=U}else l[D]=U;return n.join(".")};
XFC=function(l,D,U){var n=l[D];if(!n)n=l[D]={};else if(!l.hasOwnProperty(D)&&(n=l[D]=Object.create(l[D]),U))for(var y in n)for(l=n[y],D=n[y]=Array(l.length),U=0;U<l.length;U++)D[U]=l[U];return n};
pA=function(l,D,U,n,y,A){if(D){var C=!1,h=cd++,b;for(b in U){var u=y?Xb(b):b;if(u=D[u])for(var Q=0,G=u.length,J=void 0;Q<G&&(J=u[Q]);Q++)J.info&&J.info.lastRun===h||y&&!SrB(b,J.trigger)||(J.info&&(J.info.lastRun=h),J.fn(l,b,U,n,J.info,y,A),C=!0)}return C}return!1};
SrB=function(l,D){if(D){var U=D.name;return U==l||!(!D.structured||!eWc(U,l))||!(!D.wildcard||!Sn(U,l))}return!0};
kMK=function(l,D,U,n,y){D=typeof y.method==="string"?l[y.method]:y.method;U=y.property;D?D.call(l,l.__data[U],n[U]):y.dynamicFn||console.warn("observer method `"+y.method+"` not defined")};
ddB=function(l,D,U,n){U={value:U,queueProperty:!0};n&&(U.path=n);(0,_.xY)(l).dispatchEvent(new CustomEvent(D,{detail:U}))};
KGC=function(l,D,U,n,y,A){A=(n=(A?Xb(D):D)!=D?D:null)?KA(l,n):l.__data[D];n&&A===void 0&&(A=U[D]);ddB(l,y.eventName,A,n)};
cBs=function(l,D,U,n,y){U=l.__data[D];jn&&(U=jn(U,y.attrName,"attribute",l));l._propertyToAttribute(D,y.attrName,U)};
xd$=function(l){var D=l.constructor.__orderedComputedDeps;if(!D){D=new Map;for(var U=l.__computeEffects,n=pFd(l),y=n.counts,A=n.ready,C=n.total;n=A.shift();)D.set(n,D.size),(n=U[n])&&n.forEach(function(h){h=h.info.methodInfo;--C;--y[h]===0&&A.push(h)});
C!==0&&console.warn("Computed graph for "+l.localName+" incomplete; circular?");l.constructor.__orderedComputedDeps=D}return D};
pFd=function(l){var D=l.__computeInfo,U={};l=l.__computeEffects;var n=[],y=0,A;for(A in D){var C=D[A];y+=U[A]=C.args.filter(function(b){return!b.literal}).length+(C.dynamicFn?1:0)}for(var h in l)D[h]||n.push(h);
return{counts:U,ready:n,total:y}};
FGG=function(l,D,U,n,y){D=jzo(l,D,U,n,y);if(D===Fb)return!1;y=y.methodInfo;if(l.__dataHasAccessor&&l.__dataHasAccessor[y])return l._setPendingProperty(y,D,!0);l[y]=D;return!1};
rBl=function(l,D,U,n,y,A,C){U.bindings=U.bindings||[];n={kind:n,target:y,parts:A,literal:C,isCompound:A.length!==1};U.bindings.push(n);n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"&&(U=n.parts[0],A=U.negate,n.listenerEvent=U.event||a1(y)+"-changed",n.listenerNegate=A);y=D.nodeInfoList.length;for(U=0;U<n.parts.length;U++){var h=n.parts[U];h.compoundIndex=U;A=l;C=D;var b=n,u=h,Q=y;if(!u.literal)if(b.kind==="attribute"&&b.target[0]==="-")console.warn("Cannot set attribute "+
b.target+' because "-" is not a valid attribute starting character');else for(h=u.dependencies,b={index:Q,binding:b,part:u,evaluator:A},u=0;u<h.length;u++)Q=h[u],typeof Q=="string"&&(Q=oX$(Q),Q.wildcard=!0),A._addTemplatePropertyEffect(C,Q.rootProperty,{fn:wFo,info:b,trigger:Q})}};
wFo=function(l,D,U,n,y,A,C){C=C[y.index];var h=y.binding,b=y.part;A&&b.source&&D.length>b.source.length&&h.kind=="property"&&!h.isCompound&&C.__isPropertyEffectsClient&&C.__dataHasAccessor&&C.__dataHasAccessor[h.target]?(U=U[D],D=kY(b.source,h.target,D),C._setPendingPropertyOrPath(D,U,!1,!0)&&l._enqueueClient(C)):(D=y.evaluator._evaluateBinding(l,b,D,U,n,A),D!==Fb&&(h.isCompound&&(U=C.__dataCompoundStorage[h.target],U[b.compoundIndex]=D,D=U.join("")),h.kind==="attribute"||h.target!=="textContent"&&
(h.target!=="value"||C.localName!=="input"&&C.localName!=="textarea")||(D=D==void 0?"":D),b=D,jn&&(b=jn(b,h.target,h.kind,C)),h.kind=="attribute"?l._valueToNodeAttribute(C,b,h.target):(h=h.target,C.__isPropertyEffectsClient&&C.__dataHasAccessor&&C.__dataHasAccessor[h]?C.__readOnly&&C.__readOnly[h]||C._setPendingProperty(h,b)&&l._enqueueClient(C):l._setUnmanagedPropertyToNode(C,h,b))))};
zW9=function(l,D,U){if(U.listenerEvent){var n=U.parts[0];l.addEventListener(U.listenerEvent,function(y){var A=U.target,C=n.source,h=n.negate,b=y.detail,u=b&&b.path;u?(C=kY(A,C,u),y=b&&b.value):y=y.currentTarget[A];D.__readOnly&&D.__readOnly[C]||!D._setPendingPropertyOrPath(C,h?!y:y,!0,!!u)||b&&b.queueProperty||D._invalidateProperties()})}};
ff3=function(l,D,U,n,y,A){A=D.static||A&&(typeof A!=="object"||A[D.methodName]);y={methodName:D.methodName,args:D.args,methodInfo:y,dynamicFn:A};for(var C=0,h=void 0;C<D.args.length&&(h=D.args[C]);C++)h.literal||l._addPropertyEffect(h.rootProperty,U,{fn:n,info:y,trigger:h});A&&l._addPropertyEffect(D.methodName,U,{fn:n,info:y});return y};
jzo=function(l,D,U,n,y){n=l._methodHost||l;var A=n[y.methodName];if(A)return l=l._marshalArgs(y.args,D,U),l===Fb?Fb:A.apply(n,l);y.dynamicFn||console.warn("method `"+y.methodName+"` not defined")};
$d9=function(l){for(var D="",U=0;U<l.length;U++)D+=l[U].literal||"";return D};
EX$=function(l){if(l=l.match(/([^\s]+?)\(([\s\S]*)\)/)){var D={methodName:l[1],static:!0,args:NkB};return l[2].trim()?szB(l[2].replace(/\\,/g,"&comma;").split(","),D):D}return null};
szB=function(l,D){D.args=l.map(function(U){U=oX$(U);U.literal||(D.static=!1);return U},this);
return D};
oX$=function(l){l=l.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var D={name:l,value:"",literal:!1},U=l[0];U==="-"&&(U=l[1]);U>="0"&&U<="9"&&(U="#");switch(U){case "'":case '"':D.value=l.slice(1,-1);D.literal=!0;break;case "#":D.value=Number(l),D.literal=!0}D.literal||(D.rootProperty=Xb(l),D.structured=tH(l),D.structured&&(D.wildcard=l.slice(-2)==".*",D.wildcard&&(D.name=l.slice(0,-2))));return D};
Tkc=function(l,D,U){l=KA(l,U);l===void 0&&(l=D[U]);return l};
If3=function(l,D,U,n){n={indexSplices:n};o1&&!l._overrideLegacyUndefined&&(D.splices=n);l.notifyPath(U+".splices",n);l.notifyPath(U+".length",D.length);o1&&!l._overrideLegacyUndefined&&(n.indexSplices=[])};
wm=function(l,D,U,n,y,A){If3(l,D,U,[{index:n,addedCount:y,removed:A,object:D,type:"splice"}])};
H4C=function(l){l=b4C((l.body?l.body:l).textContent,l.baseURI);var D=document.createElement("style");D.textContent=l;return D};
O4_=function(l){l=l.trim().split(/\s+/);for(var D=[],U=0;U<l.length;U++)D.push.apply(D,_.zz(Yrl(l[U])));return D};
Yrl=function(l){var D=rm.import(l);if(!D)return console.warn("Could not find style data in module named",l),[];if(D._styles===void 0){l=[];l.push.apply(l,_.zz(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D)));var U=D.querySelector("template");U&&l.push.apply(l,_.zz(Vts(U,D.assetpath)));D._styles=l}return D._styles};
Vts=function(l,D){if(!l._styles){for(var U=[],n=l.content.querySelectorAll("style"),y=0;y<n.length;y++){var A=n[y],C=A.getAttribute("include");C&&U.push.apply(U,_.zz(O4_(C).filter(function(h,b,u){return u.indexOf(h)===b})));
D&&(A.textContent=b4C(A.textContent,D));U.push(A)}l._styles=U}return l._styles};
iE_=function(l){return(l=rm.import(l))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(l){var D=[];l=l.querySelectorAll("link[rel=import][type~=css]");for(var U=0;U<l.length;U++){var n=l[U];if(n.import){var y=n.import;if((n=n.hasAttribute("shady-unscoped"))&&!y._unscopedStyle){var A=H4C(y);A.setAttribute("shady-unscoped","");y._unscopedStyle=A}else y._style||(y._style=H4C(y));D.push(n?y._unscopedStyle:y._style)}}return D};
D9c=function(l){l=l.trim().split(/\s+/);for(var D="",U=0;U<l.length;U++)D+=lL$(l[U]);return D};
lL$=function(l){var D=rm.import(l);if(D&&D._cssText===void 0){var U=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D),n=D.querySelector("template");n&&(U+=U9B(n,D.assetpath));D._cssText=U||null}D||console.warn("Could not find style data in module named",l);return D&&D._cssText||""};
U9B=function(l,D){var U="";l=Vts(l,D);for(D=0;D<l.length;D++){var n=l[D];n.parentNode&&n.parentNode.removeChild(n);U+=n.textContent}return U};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(l){var D="";l=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l);for(var U=0;U<l.length;U++)D+=l[U].textContent;return D};
z7=function(l,D){return{index:l,removed:[],addedCount:D}};
yS$=function(l,D,U,n){var y=0,A=0,C=0,h=0,b=Math.min(D-y,n-A);if(y==0&&A==0)a:{for(C=0;C<b;C++)if(l[C]!==U[C])break a;C=b}if(D==l.length&&n==U.length){h=l.length;for(var u=U.length,Q=0;Q<b-C&&nqK(l[--h],U[--u]);)Q++;h=Q}y+=C;A+=C;D-=h;n-=h;if(D-y==0&&n-A==0)return[];if(y==D){for(D=z7(y,0);A<n;)D.removed.push(U[A++]);return[D]}if(A==n)return[z7(y,D-y)];b=y;C=A;n=n-C+1;h=D-b+1;D=Array(n);for(u=0;u<n;u++)D[u]=Array(h),D[u][0]=u;for(u=0;u<h;u++)D[0][u]=u;for(u=1;u<n;u++)for(Q=1;Q<h;Q++)if(l[b+Q-1]===
U[C+u-1])D[u][Q]=D[u-1][Q-1];else{var G=D[u-1][Q]+1,J=D[u][Q-1]+1;D[u][Q]=G<J?G:J}b=D.length-1;C=D[0].length-1;n=D[b][C];for(l=[];b>0||C>0;)b==0?(l.push(2),C--):C==0?(l.push(3),b--):(h=D[b-1][C-1],u=D[b-1][C],Q=D[b][C-1],G=u<Q?u<h?u:h:Q<h?Q:h,G==h?(h==n?l.push(0):(l.push(1),n=h),b--,C--):G==u?(l.push(3),b--,n=u):(l.push(2),C--,n=Q));l.reverse();D=void 0;b=[];for(C=0;C<l.length;C++)switch(l[C]){case 0:D&&(b.push(D),D=void 0);y++;A++;break;case 1:D||(D=z7(y,0));D.addedCount++;y++;D.removed.push(U[A]);
A++;break;case 2:D||(D=z7(y,0));D.addedCount++;y++;break;case 3:D||(D=z7(y,0)),D.removed.push(U[A]),A++}D&&b.push(D);return b};
ASG=function(l,D){return yS$(l,l.length,D,D.length)};
nqK=function(l,D){return l===D};
BLo=function(l){if(l instanceof WC9)return l.value;throw Error("Id`"+l);};
CDl=function(l,D){for(var U in D)U===null?l.style.removeProperty(U):l.style.setProperty(U,D[U])};
hFg=function(l,D){return(l=window.getComputedStyle(l).getPropertyValue(D))?l.trim():""};
uwK=function(l){requestAnimationFrame(function(){PDs?PDs(l):(bE9||(bE9=new Promise(function(D){gqo=D}),document.readyState==="complete"?gqo():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&gqo()})),bE9.then(function(){l&&l()}))})};
Ghs=function(l){vqC=l&&l.shimcssproperties?!1:Q79||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
RFK=function(l){if(!(JSl.indexOf(l)>-1)&&l!=="touchend"&&LCc&&q4l&&Mac)return{passive:!0}};
aLB=function(l){for(var D=ZE9?["click"]:JSl,U=0,n;U<D.length;U++)n=D[U],l?(eF3.length=0,document.addEventListener(n,m9G,!0)):document.removeEventListener(n,m9G,!0)};
fA=function(l){var D=l.type;return JSl.indexOf(D)>-1?D==="mousemove"?(D=l.buttons===void 0?1:l.buttons,l instanceof window.MouseEvent&&!ta_&&(D=XIo[l.which]||0),!!(D&1)):(l.button===void 0?0:l.button)===0:!1};
S4_=function(l){if(l.type==="click"){if(l.detail===0)return!0;var D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l);if(!D.nodeType||D.nodeType!==Node.ELEMENT_NODE)return!0;D=D.getBoundingClientRect();var U=l.pageX;l=l.pageY;return!(U>=D.left&&U<=D.right&&l>=D.top&&l<=D.bottom)}return!1};
khB=function(l,D,U){l.movefn=D;l.upfn=U;document.addEventListener("mousemove",D);document.addEventListener("mouseup",U)};
$Y=function(l){document.removeEventListener("mousemove",l.movefn);document.removeEventListener("mouseup",l.upfn);l.movefn=null;l.upfn=null};
d9C=function(l,D){for(var U=document.elementFromPoint(l,D),n=U;n&&n.shadowRoot&&!window.ShadyDOM;){var y=n;n=n.shadowRoot.elementFromPoint(l,D);if(y===n)break;n&&(U=n)}return U};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l){var D=KC9(l);return D.length>0?D[0]:l.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l){var D=l.type,U=l.currentTarget.__polymerGestures;if(U&&(U=U[D])){if(!l.__polymerGesturesHandled&&(l.__polymerGesturesHandled={},D.slice(0,5)==="touch")){var n=l.changedTouches[0];D==="touchstart"&&l.touches.length===1&&(cS9=n.identifier);if(cS9!==n.identifier)return;LCc||(D==="touchstart"||D==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l)}n=
l.__polymerGesturesHandled;if(!n.skip){for(var y=0,A;y<NM.length;y++)A=NM[y],U[A.name]&&!n[A.name]&&A.flow&&A.flow.start.indexOf(l.type)>-1&&A.reset&&A.reset();for(y=0;y<NM.length;y++)A=NM[y],U[A.name]&&!n[A.name]&&(n[A.name]=!0,A[D](l))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l){var D=l.changedTouches[0],U=l.type;if(U==="touchstart")pI9=D.clientX,x9g=D.clientY,j7g=!1;else if(U==="touchmove"&&!j7g){j7g=!0;U="auto";for(var n=KC9(l),y=0,A;y<n.length;y++)if(A=n[y],A.__polymerGesturesTouchAction){U=A.__polymerGesturesTouchAction;break}n=!1;y=Math.abs(pI9-D.clientX);D=Math.abs(x9g-D.clientY);l.cancelable&&(U==="none"?n=!0:U==="pan-x"?n=D>y:U==="pan-y"&&(n=y>D));n?l.preventDefault():
s1("track")}};
I1=function(l,D,U){return T7[D]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,D,U),!0):!1};
Hd=function(l,D,U){return T7[D]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,D,U),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l,D,U){var n=T7[D],y=n.deps,A=n.name,C=l.__polymerGestures;C||(l.__polymerGestures=C={});for(var h=0,b,u;h<y.length;h++)b=y[h],ZE9&&JSl.indexOf(b)>-1&&b!=="click"||((u=C[b])||(C[b]=u={_count:0}),u._count===0&&l.addEventListener(b,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,RFK(b)),u[A]=(u[A]||0)+1,u._count=(u._count||0)+1);l.addEventListener(D,U);n.touchAction&&_.YY(l,n.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l,D,U){var n=T7[D],y=n.deps;n=n.name;var A=l.__polymerGestures;if(A)for(var C=0,h,b;C<y.length;C++)h=y[C],(b=A[h])&&b[n]&&(b[n]=(b[n]||1)-1,b._count=(b._count||1)-1,b._count===0&&l.removeEventListener(h,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,RFK(h)));l.removeEventListener(D,U)};
FCs=function(l){NM.push(l);for(var D=0;D<l.emits.length;D++)T7[l.emits[D]]=l};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l){for(var D=0,U;D<NM.length;D++){U=NM[D];for(var n=0,y;n<U.emits.length;n++)if(y=U.emits[n],y===l)return U}return null};
_.YY=function(l,D){LCc&&l instanceof HTMLElement&&O1.run(function(){l.style.touchAction=D});
l.__polymerGesturesTouchAction=D};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(l,D,U){D=new Event(D,{bubbles:!0,cancelable:!0,composed:!0});D.detail=U;(0,_.xY)(l).dispatchEvent(D);D.defaultPrevented&&(l=U.preventer||U.sourceEvent)&&l.preventDefault&&l.preventDefault()};
s1=function(l){l=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l);l.info&&(l.info.prevent=!0)};
VE=function(l,D,U,n){D&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,l,{x:U.clientX,y:U.clientY,sourceEvent:U,preventer:n,prevent:function(y){return s1(y)}})};
oq9=function(l,D,U){if(l.prevent)return!1;if(l.started)return!0;U=Math.abs(l.y-U);return Math.abs(l.x-D)>=5||U>=5};
wI9=function(l,D,U){if(D){var n=l.moves[l.moves.length-2],y=l.moves[l.moves.length-1],A=y.x-l.x,C=y.y-l.y,h=0;if(n){var b=y.x-n.x;h=y.y-n.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,"track",{state:l.state,x:U.clientX,y:U.clientY,dx:A,dy:C,ddx:b,ddy:h,sourceEvent:U,hover:function(){return d9C(U.clientX,U.clientY)}})}};
zFd=function(l,D,U){var n=Math.abs(D.clientX-l.x),y=Math.abs(D.clientY-l.y),A=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(U||D);!A||rS$[A.localName]&&A.hasAttribute("disabled")||!(isNaN(n)||isNaN(y)||n<=25&&y<=25||S4_(D))||l.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,"tap",{x:D.clientX,y:D.clientY,sourceEvent:D,preventer:U})};
fLK=function(l,D,U,n,y){var A;y&&(A=typeof U==="object"&&U!==null)&&(n=l.__dataTemp[D]);n=n!==U&&(n===n||U===U);A&&n&&(l.__dataTemp[D]=U);return n};
NLC=function(){if(i6&&!l6){if(!$9g){$9g=!0;var l=document.createElement("style");l.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(l)}return!0}return!1};
Eq$=function(){return s7l};
TLc=function(l,D){s7l=l;Object.setPrototypeOf(l,D.prototype);new D;s7l=null};
ILs=function(l,D){for(var U=0;U<D.length;U++){var n=D[U];if(!!l!=!!n.__hideTemplateChildren__)if(n.nodeType===Node.TEXT_NODE)l?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if(n.localName==="slot")if(l)n.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.xY)((0,_.xY)(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{var y=n.__polymerReplaced__;y&&(0,_.xY)((0,_.xY)(y).parentNode).replaceChild(n,y)}else n.style&&(l?(n.__polymerDisplay__=
n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=l;n._showHideChildren&&n._showHideChildren(l)}};
HEg=function(l){return(l=l.__dataHost)&&l._methodHost||l};
VaG=function(l,D,U){var n=U.mutableData?Y4_:nS;yP.mixin&&(n=yP.mixin(n));var y=function(){return n.apply(this,arguments)||this};
_.Z(y,n);y.prototype.__templatizeOptions=U;y.prototype._bindTemplate(l);OEl(y,l,D,U);return y};
nzN=function(l,D,U,n){var y=U.forwardHostProp;if(y&&D.hasHostProps){var A=l.localName=="template",C=D.templatizeTemplateClass;if(!C){if(A){var h=U.mutableData?ih_:log;C=function(){return h.apply(this,arguments)||this};
_.Z(C,h);C=D.templatizeTemplateClass=C}else{var b=l.constructor;C=function(){return b.apply(this,arguments)||this};
_.Z(C,b);C=D.templatizeTemplateClass=C}var u=D.hostProps,Q;for(Q in u)C.prototype._addPropertyEffect("_host_"+Q,C.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:DFG(y)}),C.prototype._createNotifyingProperty("_host_"+Q);AO&&n&&UF$(D,U,n)}l.__dataProto&&Object.assign(l.__data,l.__dataProto);if(A)TLc(l,C),l.__dataTemp={},l.__dataPending=null,l.__dataOld=null,l._enableProperties();else{Object.setPrototypeOf(l,C.prototype);D=D.hostProps;for(var G in D)G="_host_"+G,G in l&&(D=l[G],delete l[G],l.__data[G]=
D)}}};
DFG=function(l){return function(D,U,n){l.call(D.__templatizeOwner,U.substring(6),n[U])}};
OEl=function(l,D,U,n){var y=U.hostProps||{},A;for(A in n.instanceProps){delete y[A];var C=n.notifyInstanceProp;C&&l.prototype._addPropertyEffect(A,l.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:yUN(C)})}if(n.forwardHostProp&&D.__dataHost)for(var h in y)U.hasHostProps||(U.hasHostProps=!0),l.prototype._addPropertyEffect(h,l.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:AU9()})};
yUN=function(l){return function(D,U,n){l.call(D.__templatizeOwner,D,U,n[U])}};
AU9=function(){return function(l,D,U){l.__dataHost._setPendingPropertyOrPath("_host_"+D,U[D],!0,!0)}};
yP=function(l,D,U){if(WT&&!HEg(l))throw Error("Od");U=U||{};if(l.__templatizeOwner)throw Error("Pd");l.__templatizeOwner=D;var n=(D?D.constructor:nS)._parseTemplate(l),y=n.templatizeInstanceClass;y||(y=VaG(l,n,U),n.templatizeInstanceClass=y);var A=HEg(l);nzN(l,n,U,A);U=function(){return y.apply(this,arguments)||this};
_.Z(U,y);U.prototype._methodHost=A;U.prototype.__dataHost=l;U.prototype.__templatizeOwner=D;U.prototype.__hostProps=n.hostProps;return U};
UF$=function(l,D,U){U=U.constructor._properties;l=l.propertyEffects;D=D.instanceProps;for(var n in l)if(!(U[n]||D&&D[n]))for(var y=l[n],A=0;A<y.length;A++){var C=y[A].info.part;if(!C.signature||!C.signature.static){console.warn("Property '"+n+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
We9=function(l,D){for(var U;D;)if(U=D.__dataHost?D:D.__templatizeInstance)if(U.__dataHost!=l)D=U.__dataHost;else return U;else D=(0,_.xY)(D).parentNode;return null};
BT=function(l){return l.localName==="slot"};
B6$=function(){for(var l=CS.prototype,D="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),U={},n=0;n<D.length;U={method$jscomp$33:void 0},n++)U.method$jscomp$33=D[n],l[U.method$jscomp$33]=function(y){return function(){return this.node[y.method$jscomp$33].apply(this.node,arguments)}}(U)};
CBB=function(l,D){for(var U={},n=0;n<D.length;U={name$jscomp$448:void 0},n++)U.name$jscomp$448=D[n],Object.defineProperty(l,U.name$jscomp$448,{get:function(y){return function(){return this.node[y.name$jscomp$448]}}(U),
configurable:!0})};
hMs=function(){for(var l=CS.prototype,D=["textContent","innerHTML","className"],U={},n=0;n<D.length;U={name$jscomp$449:void 0},n++)U.name$jscomp$449=D[n],Object.defineProperty(l,U.name$jscomp$449,{get:function(y){return function(){return this.node[y.name$jscomp$449]}}(U),
set:function(y){return function(A){this.node[y.name$jscomp$449]=A}}(U),
configurable:!0})};
PBB=function(){hO=document.documentElement.getAttribute("dir");hO=document.documentElement.getAttribute("dir");for(var l=0;l<PT.length;l++){var D=PT[l];D.__autoDirOptOut||D.setAttribute("dir",hO)}};
vzG=function(){b6=!0;requestAnimationFrame(function(){b6=!1;bh9(gzK);setTimeout(function(){for(var l=0,D=g0.length;l<D;l++)u93(g0.shift())})})};
bh9=function(l){for(;l.length;)u93(l.shift())};
u93=function(l){var D=l[0],U=l[1];l=l[2];try{U.apply(D,l)}catch(n){setTimeout(function(){throw n;})}};
_.QmK=function(l,D,U){b6||vzG();gzK.push([l,D,U])};
_.u6=function(l,D,U){b6||vzG();g0.push([l,D,U])};
Le3=function(l,D){D=D===void 0?!1:D;if(!GlC||!JUK||!GlC.handlesDynamicScoping)return null;var U=JUK.ScopingShim;if(!U)return null;var n=U.scopeForNode(l),y=(0,_.xY)(l).getRootNode(),A=function(C){if((0,_.xY)(C).getRootNode()===y){var h=Array.from(GlC.nativeMethods.querySelectorAll.call(C,"*"));h.push(C);for(C=0;C<h.length;C++){var b=h[C];if((0,_.xY)(b).getRootNode()===y){var u=U.currentScopeForNode(b);u!==n&&(u!==""&&U.unscopeNode(b,u),U.scopeNode(b,n))}}}};
A(l);return D?(D=new MutationObserver(function(C){for(var h=0;h<C.length;h++)for(var b=C[h],u=0;u<b.addedNodes.length;u++){var Q=b.addedNodes[u];Q.nodeType===Node.ELEMENT_NODE&&A(Q)}}),D.observe(l,{childList:!0,
subtree:!0}),D):null};
qyg=function(){document.body.removeAttribute("unresolved")};
mFl=function(l){var D=l=l.replace(MYK,"").replace(RMN,""),U=new ZhC;U.start=0;U.end=D.length;for(var n=U,y=0,A=D.length;y<A;y++)if(D[y]==="{"){n.rules||(n.rules=[]);var C=n,h=C.rules[C.rules.length-1]||null;n=new ZhC;n.start=y+1;n.parent=C;n.previous=h;C.rules.push(n)}else D[y]==="}"&&(n.end=y+1,n=n.parent||U);return eMl(U,l)};
eMl=function(l,D){var U=D.substring(l.start,l.end-1);l.parsedCssText=l.cssText=U.trim();l.parent&&(U=D.substring(l.previous?l.previous.end:l.parent.start,l.start-1),U=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(U),U=U.replace(ao3," "),U=U.substring(U.lastIndexOf(";")+1),U=l.parsedSelector=l.selector=U.trim(),l.atRule=U.indexOf("@")===0,l.atRule?U.indexOf("@media")===0?l.type=4:U.match(tYd)&&(l.type=7,l.keyframesName=l.selector.split(ao3).pop()):U.indexOf("--")===
0?l.type=1E3:l.type=1);if(U=l.rules)for(var n=0,y=U.length,A=void 0;n<y&&(A=U[n]);n++)eMl(A,D);return l};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(l){return l.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var D=arguments[1],U=6-D.length;U--;)D="0"+D;return"\\"+D})};
XmC=function(l,D,U){U=U===void 0?"":U;var n="";if(l.cssText||l.rules){var y=l.rules;if(y&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(y))for(var A=0,C=y.length,h=void 0;A<C&&(h=y[A]);A++)n=XmC(h,D,n);else D?D=l.cssText:(D=l.cssText,D=D.replace(Syl,"").replace(klN,""),D=D.replace(dFg,"").replace(Ke_,"")),(n=D.trim())&&(n="  "+n+"\n")}n&&(l.selector&&(U+=l.selector+" {\n"),U+=n,l.selector&&(U+="}\n\n"));return U};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(l){l=l[0];return!!l&&!!l.selector&&l.selector.indexOf("--")===0};
pm$=function(l){if(l=cUN[l])l._applyShimCurrentVersion=l._applyShimCurrentVersion||0,l._applyShimValidatingVersion=l._applyShimValidatingVersion||0,l._applyShimNextVersion=(l._applyShimNextVersion||0)+1};
xFG=function(l){return l._applyShimCurrentVersion===l._applyShimNextVersion};
FeG=function(l){l._applyShimValidatingVersion=l._applyShimNextVersion;l._validating||(l._validating=!0,jm$.then(function(){l._applyShimCurrentVersion=l._applyShimNextVersion;l._validating=!1}))};
wml=function(l){if(!l)return"";typeof l==="string"&&(l=mFl(l));return XmC(l,ozK)};
rUG=function(l){!l.__cssRules&&l.textContent&&(l.__cssRules=mFl(l.textContent));return l.__cssRules||null};
fod=function(l,D,U,n){if(l){var y=!1,A=l.type;if(n&&A===4){var C=l.selector.match(zM9);C&&(window.matchMedia(C[1]).matches||(y=!0))}A===1?D(l):U&&A===7?U(l):A===1E3&&(y=!0);if((l=l.rules)&&!y)for(y=0,A=l.length,C=void 0;y<A&&(C=l[y]);y++)fod(C,D,U,n)}};
$F9=function(l,D){var U=l.indexOf("var(");if(U===-1)return D(l,"","","");a:{var n=0;var y=U+3;for(var A=l.length;y<A;y++)if(l[y]==="(")n++;else if(l[y]===")"&&--n===0)break a;y=-1}n=l.substring(U+4,y);U=l.substring(0,U);l=$F9(l.substring(y+1),D);A=n.indexOf(",");if(A===-1)return D(U,n.trim(),"",l);y=n.substring(0,A).trim();n=n.substring(A+1).trim();return D(U,y,n,l)};
N6c=function(l){if(vT!==void 0)return vT;if(l.__cssBuild===void 0){var D=l.getAttribute("css-build");if(D)l.__cssBuild=D;else{a:{D=l.localName==="template"?l.content.firstChild:l.firstChild;if(D instanceof Comment&&(D=D.textContent.trim().split(":"),D[0]==="css-build")){D=D[1];break a}D=""}if(D!==""){var U=l.localName==="template"?l.content.firstChild:l.firstChild;U.parentNode.removeChild(U)}l.__cssBuild=D}}return l.__cssBuild||""};
Ezd=function(l,D,U,n){for(var y=D._noAccessors,A=Object.getOwnPropertyNames(D),C=0;C<A.length;C++){var h=A[C];if(!(h in n))if(y)l[h]=D[h];else{var b=Object.getOwnPropertyDescriptor(D,h);b&&(b.configurable=!0,Object.defineProperty(l,h,b))}}for(var u in smG)D[u]&&(U[u]=U[u]||[],U[u].push(D[u]))};
T69=function(l,D,U){D=D||[];for(var n=l.length-1;n>=0;n--){var y=l[n];y?Array.isArray(y)?T69(y,D):D.indexOf(y)<0&&(!U||U.indexOf(y)<0)&&D.unshift(y):console.warn("behavior is null, check for missing or 404 import")}return D};
IoN=function(l,D){for(var U in D){var n=l[U],y=D[U];l[U]=!("value"in y)&&n&&"value"in n?Object.assign({value:n.value},y):y}};
Ohl=function(l,D,U){var n={},y=function(){return D.apply(this,arguments)||this};
_.Z(y,D);y._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(C)for(var b=0,u;b<C.length;b++)u=C[b],u.properties&&this.createProperties(u.properties),u.observers&&this.createObservers(u.observers,u.properties);l.properties&&this.createProperties(l.properties);l.observers&&this.createObservers(l.observers,l.properties);this._prepareTemplate()}else D._finalizeClass.call(this)};
y.prototype.created=function(){D.prototype.created.call(this);var b=n.created;if(b)for(var u=0;u<b.length;u++)b[u].call(this)};
y.prototype._registered=function(){var b=y.prototype;if(!b.hasOwnProperty("__hasRegisterFinished")){b.__hasRegisterFinished=!0;D.prototype._registered.call(this);i6&&h(b);b=Object.getPrototypeOf(this);var u=n.beforeRegister;if(u)for(var Q=0;Q<u.length;Q++)u[Q].call(b);if(u=n.registered)for(Q=0;Q<u.length;Q++)u[Q].call(b)}};
y.prototype._applyListeners=function(){D.prototype._applyListeners.call(this);var b=n.listeners;if(b)for(var u=0;u<b.length;u++){var Q=b[u];if(Q)for(var G in Q)this._addMethodEventListenerToNode(this,G,Q[G])}};
y.prototype._ensureAttributes=function(){var b=n.hostAttributes;if(b)for(var u=b.length-1;u>=0;u--){var Q=b[u],G;for(G in Q)this._ensureAttribute(G,Q[G])}D.prototype._ensureAttributes.call(this)};
y.prototype.ready=function(){D.prototype.ready.call(this);var b=n.ready;if(b)for(var u=0;u<b.length;u++)b[u].call(this)};
y.prototype.attached=function(){D.prototype.attached.call(this);var b=n.attached;if(b)for(var u=0;u<b.length;u++)b[u].call(this)};
y.prototype.detached=function(){D.prototype.detached.call(this);var b=n.detached;if(b)for(var u=0;u<b.length;u++)b[u].call(this)};
y.prototype.attributeChanged=function(b,u,Q){D.prototype.attributeChanged.call(this);var G=n.attributeChanged;if(G)for(var J=0;J<G.length;J++)G[J].call(this,b,u,Q)};
_.QP.Object.defineProperties(y,{properties:{configurable:!0,enumerable:!0,get:function(){var b={};if(C)for(var u=0;u<C.length;u++)IoN(b,C[u].properties);IoN(b,l.properties);return b}},
observers:{configurable:!0,enumerable:!0,get:function(){var b=[];if(C)for(var u=0,Q;u<C.length;u++)Q=C[u],Q.observers&&(b=b.concat(Q.observers));l.observers&&(b=b.concat(l.observers));return b}}});
if(U){Array.isArray(U)||(U=[U]);var A=D.prototype.behaviors;var C=T69(U,null,A);y.prototype.behaviors=A?A.concat(U):C}var h=function(b){if(C)for(var u=C,Q=0;Q<u.length;Q++)Ezd(b,u[Q],n,Hhc);Ezd(b,l,n,Yys)};
i6||h(y.prototype);y.generatedFrom=l;return y};
DUd=function(l){var D=typeof l!=="string"?l:{is:l,notifyObserversOnUndefined:!0};D.fastInit===void 0&&(D.fastInit=!0);return function(U){if(!D.disableInheritanceCheck&&Object.getPrototypeOf(U.prototype).constructor!==_.Gs)throw Error("Td");var n=U.prototype;n.is=D.is;WGd(n,"created",function(){this.hostElement=this;this.polymerController=this});
VYG(n,U,D.fastInit);D.notifyObserversOnUndefined&&(n._overrideLegacyUndefined=!0);if(iTG)for(var y=_.B(Object.getOwnPropertyNames(n)),A=y.next();!A.done;A=y.next()){A=A.value;var C=Object.getOwnPropertyDescriptor(n,A);C.enumerable===!1&&(C.enumerable=!0,Object.defineProperty(n,A,C))}if("template"in U)var h=function(){return U.template};
else D.template!==void 0&&(h=D.template);if(h!==void 0){var b;Object.defineProperty(n,"_template",{get:function(){b===void 0&&(b=h());return b},
set:function(u){b=u},
configurable:!0,enumerable:!0})}Polymer(n);U[lR_]=n}};
UUN=function(l){l=l===void 0?{}:l;l.fastInit===void 0&&(l.fastInit=!0);return function(D){if(!l.disableInheritanceCheck&&Object.getPrototypeOf(D.prototype).constructor!==JO)throw Error("Ud");VYG(D.prototype,D,l.fastInit)}};
VYG=function(l,D,U){U=U===void 0?!1:U;nh3(D);U?WGd(l,"created",function(){this.disableEnforceFastDefaultValuesCheck||yzN(D,this)}):WGd(l,"ready",function(){for(var n={},y=_.B(Bkc(this.behaviors)),A=y.next();!A.done;A=y.next())A=A.value,A.properties&&Object.assign(n,AzB(this,A.properties));
Object.assign(n,AzB(this,this.properties));yzN(D,this);y=_.B(Object.keys(n));for(A=y.next();!A.done;A=y.next())A=A.value,this[A]=n[A]})};
yzN=function(l,D){if(iTG){l=new l;for(var U=_.B(Object.getOwnPropertyNames(l)),n=U.next();!n.done;n=U.next())n=n.value,D[n]=l[n];for(U=D;U&&U!==Object.prototype;U=Object.getPrototypeOf(U)){n=_.B(Object.getOwnPropertyNames(U));for(var y=n.next();!y.done;y=n.next())y=y.value,l.hasOwnProperty(y)||Object.defineProperty(l,y,WbK(D,y))}}else l.apply(D)};
WbK=function(l,D){return{get:function(){var U=l[D];return U instanceof Function?U.bind(l):U},
set:function(U){l[D]=U}}};
AzB=function(l,D){if(!D)return{};for(var U={},n=_.B(Object.keys(D)),y=n.next();!y.done;y=n.next())if(y=y.value,!D[y].readOnly){var A=l[y];A!==void 0&&(U[y]=A)}return U};
nh3=function(l){var D=new l;l=l.prototype.properties||{};for(var U=_.B(Object.keys(l)),n=U.next();!n.done;n=U.next())if(n=n.value,D.hasOwnProperty(n)){var y=l[n];typeof y==="function"&&(l[n]=y={type:y});D[n]!=null&&y.type===Object&&(y.type=BUl(D[n].constructor))}};
BUl=function(l){for(var D=_.B(CWd),U=D.next();!U.done;U=D.next())if(U=U.value,l===U)return U;return Object};
hLo=function(l){return function(D,U){D.behaviors=D.behaviors||[];D.behaviors.push(l||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",D,U).prototype:void 0));Object.defineProperty(D,U,{get:function(){return this},
enumerable:!0,configurable:!0})}};
PW9=function(l){l=l===void 0?{}:l;return function(D,U){D.properties=D.properties||{};l.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?l.type=BUl(Reflect.getMetadata("design:type",D,U)):l.type=String);var n=l,y=D.properties[U];D.properties[U]=y?Object.assign({},y,n):n}};
bTc=function(l){return function(D,U){D.listeners=D.listeners||{};D.listeners[l]=U}};
gho=function(){var l=_.EW.apply(0,arguments);if(l.length===0)throw Error("Vd");return function(D,U){D.observers=D.observers||[];D.observers.push(U+"("+l.join(",")+")")}};
up9=function(){var l=_.EW.apply(0,arguments);return function(D,U,n){var y=Object.getOwnPropertyDescriptor(D,U).get,A="__compute__"+U;Object.defineProperty(D,A,{value:y,enumerable:!0});D.properties=D.properties||{};y=D.properties[U];y||(y={},D.properties[U]=y);y.computed=A+"("+l.join(",")+")";n.get=void 0}};
_.LS=function(l,D,U){_.xT.call(this);this.JSC$11391_id_=null;this.usingListeners_=!1;this.JSC$11391_listener_=l;this.handler_=U;this.JSC$11391_win_=D||window;this.callback_=(0,_.jU)(this.JSC$11393_doAction_,this)};
qE=function(l){this.range_=l};
ME=function(l){this.range_=l};
eV=function(l,D,U){_.xT.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=l;this.scrollTimer_=new _.RA(50);this.JSC$11470_eventHandler_=new _.ZB(this);this.scrollDelta_=new _.zP;this.containerIsActuallyContent_=l.tagName==="BODY"||l.tagName==="HTML";this.containerBounds_=vhN(l);this.containerIsActuallyContent_&&(l=_.km(),this.containerBounds_.height=l.height,this.containerBounds_.width=l.width);this.margin_=D||0;if(D){if(D=this.containerBounds_.clone(),l=this.margin_){var n=
Math.min(l,D.height*.25);D.top+=n;D.height-=2*n;l=Math.min(l,D.width*.25);D.left+=l;D.width-=2*l}}else D=this.containerBounds_;this.scrollBounds_=D;U||this.JSC$11470_eventHandler_.listen(_.$m(this.containerNode_),"mousemove",this.JSC$11472_onMouseMove);this.JSC$11470_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11472_onTick_)};
_.mw=function(l){this.mechanism=l};
tO=function(l,D){this.JSC$11568_key_=l;this.JSC$11568_value_=D};
G5$=function(l){if(l>=55296&&l<=57343||l>1114111)return"\ufffd";l in QRK&&(l=QRK[l]);var D="";l>65535&&(l-=65536,D+=String.fromCharCode(l>>>10&1023|55296),l=56320|l&1023);return D+=String.fromCharCode(l)};
Jz_=function(l,D){return l<D?1:-1};
qFs=function(){return function(l){return l.charAt(1)==="#"?l.charAt(2)==="X"||l.charAt(2)==="x"?G5$(parseInt(l.substr(3),16)):G5$(parseInt(l.substr(2),10)):Lbc[l.slice(1,-1)]}};
ZT3=function(l){return l.slice(1,l.length-1).trim().replace(M8c,function(D){return RLC[D]||" "})};
X4=function(l){return l===32||l===9};
SV=function(l,D){return D<l.length?l.charCodeAt(D):-1};
eL$=function(l){for(;l;){if(l._lastLineBlank)return!0;var D=l.type;if(D==="list"||D==="item")l=l._lastChild;else break}return!1};
kx=function(l){if(mUc.test(l)){var D=1,U=0,n=0;for(l[U]=="|"&&U++;U<l.length;){switch(l[U]){case "|":n=1;break;case " ":break;case "\t":break;default:n&&(n=0,D++)}U++}return aRB.test(l)?-D:D}return 0};
t8$=function(l){return l=="table"||l=="row"||l=="cell"};
Xlc=function(){return new d0("document",[[1,1],[0,0]])};
SF9=function(){};
KS=function(){var l={safe:!1};l=l||{};l.softbreak=l.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=l};
pls=function(l,D){var U="";if(l)if(l=l.toLowerCase(),l===" "||k5o.test(l))U="space";else if(dUl.test(l))U="esc";else if(l.length==1){if(!D||Kbc.test(l))U=l}else U=czG.test(l)?l.replace("arrow",""):l=="multiply"?"*":l;return U};
ohN=function(l,D){var U=l.hasModifiers;if(D.key)U=pls(D.key,U);else if(D.detail&&D.detail.key)U=pls(D.detail.key,U);else{U=D.keyIdentifier;var n="";U&&(U in xUg?n=xUg[U]:jRo.test(U)?(U=parseInt(U.replace("U+","0x"),16),n=String.fromCharCode(U).toLowerCase()):n=U.toLowerCase());(U=n)||(U=D.keyCode,n="",Number(U)&&(U>=65&&U<=90?n=String.fromCharCode(32+U):U>=112&&U<=123?n="f"+(U-112+1):U>=48&&U<=57?n=String(U-48):U>=96&&U<=105?n=String(U-96):n=FbN[U]),U=n);U=U||""}return U===l.key&&(!l.hasModifiers||
!!D.shiftKey===!!l.shiftKey&&!!D.ctrlKey===!!l.ctrlKey&&!!D.altKey===!!l.altKey&&!!D.metaKey===!!l.metaKey)};
rzc=function(l){return l.length===1?{combo:l,key:l,event:"keydown"}:l.split("+").reduce(function(D,U){var n=U.split(":");U=n[0];n=n[1];U in wlK?(D[wlK[U]]=!0,D.hasModifiers=!0):(D.key=U,D.event=n||"keydown");return D},{combo:l.split(":").shift()})};
zLo=function(l){return l.trim().split(" ").map(function(D){return rzc(D)})};
fR9=function(l,D){if(l&&l.fn){var U=l.fn;l.fn=function(){try{U.apply(this,arguments)}catch(n){if(n instanceof cT)console.warn("Argument '"+n.arg+"'"+(D?" for method '"+D+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw n;}}}return l};
NU3=function(){var l=[],D;var U=U||_.$UK.length;for(D=0;D<8;D++)l[D]=_.$UK[0|Math.random()*U];return l.join("")};
sR3=function(){var l=_.EW.apply(0,arguments);return l.length===0?function(D){return D}:l.length===1?l[0]:l.reduce(function(D,U){return function(){return D(U.apply(null,_.zz(_.EW.apply(0,arguments))))}})};
EhK=function(){var l=_.EW.apply(0,arguments);return function(D){return function(U,n){U=D(U,n);var y=function(){throw Error("Fe");},A={getState:U.getState,
dispatch:function(C){return y.apply(null,[C].concat(_.zz(_.EW.apply(1,arguments))))}};
n=l.map(function(C){return C(A)});
y=sR3.apply(null,_.zz(n))(U.dispatch);return Object.assign({},U,{dispatch:y})}}};
HTo=function(l){Object.keys(l).forEach(function(D){var U=l[D];if(typeof U(void 0,{type:TU3})==="undefined")throw Error("Ge`"+D);if(typeof U(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+IR9()})==="undefined")throw Error("He`"+D+"`"+TU3);})};
pS=function(l){for(var D=Object.keys(l),U={},n=0;n<D.length;n++){var y=D[n];typeof l[y]==="function"&&(U[y]=l[y])}var A=Object.keys(U);try{HTo(U)}catch(h){var C=h}return function(h,b){h=h===void 0?{}:h;if(C)throw C;for(var u=!1,Q={},G=0;G<A.length;G++){var J=A[G],L=h[J],R=(0,U[J])(L,b);if(typeof R==="undefined")throw h=b&&b.type,Error("Ie`"+(h?'"'+String(h)+'"':"(unknown type)")+"`"+J);Q[J]=R;u=u||R!==L}return(u=u||A.length!==Object.keys(h).length)?Q:h}};
YF3=function(l,D,U){function n(){if(Q)throw Error("Je");return h}
function y(L){if(typeof L!=="function")throw Error("Ke`"+typeof L);if(Q)throw Error("Le");var R=!0;u===b&&(u=b.slice());u.push(L);return function(){if(R){if(Q)throw Error("Me");R=!1;u===b&&(u=b.slice());var a=u.indexOf(L);u.splice(a,1);b=null}}}
function A(L){if(typeof L!=="object"||L===null)var R=!1;else{for(R=L;Object.getPrototypeOf(R)!==null;)R=Object.getPrototypeOf(R);R=Object.getPrototypeOf(L)===R}if(!R)throw Error("Ne`"+typeof L);if(typeof L.type==="undefined")throw Error("Oe");if(Q)throw Error("Pe");try{Q=!0,h=C(h,L)}finally{Q=!1}R=b=u;for(var a=0;a<R.length;a++)(0,R[a])();return L}
if(typeof D==="function"&&typeof U==="function"||typeof U==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof D==="function"&&typeof U==="undefined"&&(U=D,D=void 0);if(typeof U!=="undefined"){if(typeof U!=="function")throw Error("Re`"+typeof U);return U(YF3)(l,D)}if(typeof l!=="function")throw Error("Se`"+typeof l);var C=l,h=D,b=[],u=b,Q=!1;A({type:TU3});var G={},J=(G.dispatch=A,G.subscribe=y,G.getState=n,G.replaceReducer=function(L){if(typeof L!=="function")throw Error("Te`"+
typeof L);C=L;A({type:OTN});return J},G[V8B]=function(){var L={};
return L.subscribe=function(R){function a(){R.next&&R.next(n())}
if(typeof R!=="object"||R===null)throw new TypeError("Ue`"+typeof R);a();return{unsubscribe:y(a)}},L[V8B]=function(){return this},L},G);
return J};
ib3=function(l){function D(){y&&(y=!1,l());A&&n()}
function U(){requestAnimationFrame(D)}
function n(){var h=Date.now();if(y){if(h-C<2)return;A=!0}else y=!0,A=!1,setTimeout(U,20);C=h}
var y=!1,A=!1,C=0;return n};
xx=function(l){return typeof l==="number"?l:parseFloat(l)||0};
lzN=function(l){return _.EW.apply(1,arguments).reduce(function(D,U){return D+xx(l["border-"+U+"-width"])},0)};
yXK=function(l){if(DiG[l])return DiG[l];var D=globalThis[l],U=D.prototype,n=l in Uic?Uic[l]:void 0;n=!(!n||!n.every(function(b){var u,Q;return!!((u=Object.getOwnPropertyDescriptor(U,b))==null?0:(Q=u.get)==null?0:Q.toString().includes("[native code]"))}));
var y=l in nN9?nN9[l]:void 0;y=!(!y||!y.every(function(b){var u;return typeof U[b]==="function"&&((u=U[b])==null?void 0:u.toString().includes("[native code]"))}));
if(n&&y&&!globalThis.Zone)return DiG[l]=D.prototype;try{var A=document.createElement("iframe");document.body.appendChild(A);var C=A.contentWindow;if(!C)return D.prototype;var h=C[l].prototype;document.body.removeChild(A);return h?DiG[l]=h:U}catch(b){return U}};
jV=function(l,D,U){var n=l+"."+String(U);if(AXG[n])return AXG[n].call(D);l=yXK(l);var y;l=(y=Object.getOwnPropertyDescriptor(l,U))==null?void 0:y.get;if(!l)return D[U];AXG[n]=l;return l.call(D)};
Bx3=function(l,D){var U="Node."+String(D);if(WOK[U])return WOK[U].bind(l);var n=yXK("Node")[D];if(typeof n!=="function")return l[D];WOK[U]=n;return n.bind(l)};
F4=function(l,D,U){try{if(!(D in l))return function(){};
var n=l[D],y=U(n);typeof y==="function"&&(y.prototype=y.prototype||{},Object.defineProperties(y,{__rrweb_original__:{enumerable:!1,value:n}}));l[D]=y;return function(){l[D]=n}}catch(A){return function(){}}};
r0=function(l){var D=l&&"host"in l&&"mode"in l&&oA(l)||null;return!!(D&&"shadowRoot"in D&&w0(D)===l)};
zs=function(l){return Object.prototype.toString.call(l)==="[object ShadowRoot]"};
Cns=function(l){l.includes(" background-clip: text;")&&!l.includes(" -webkit-background-clip: text;")&&(l=l.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return l};
Pn9=function(l){try{var D=l.rules||l.cssRules;if(!D)return null;var U=l.href;!U&&l.ownerNode&&(U=l.ownerNode.baseURI);var n=Array.from(D,function(y){return hmB(y,U)}).join("");
return Cns(n)}catch(y){return null}};
hmB=function(l,D){if("styleSheet"in l){try{var U;if(!(U=Pn9(l.styleSheet))){var n=l.cssText;if(n.split('"').length<3)U=n;else{var y=["@import","url("+JSON.stringify(l.href)+")"];l.layerName===""?y.push("layer"):l.layerName&&y.push("layer("+l.layerName+")");l.supportsText&&y.push("supports("+l.supportsText+")");l.media.length&&y.push(l.media.mediaText);U=y.join(" ")+";"}}var A=U}catch(C){A=l.cssText}return l.styleSheet.href?bbo(A,l.styleSheet.href):A}A=l.cssText;"selectorText"in l&&l.selectorText.includes(":")&&
(A=A.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return D?bbo(A,D):A};
gNl=function(l){var D=l.element;var U=l.maskInputOptions;var n=l.tagName;var y=l.type;var A=l.value;l=l.maskInputFn;A=A||"";y=y&&y.toLowerCase();if(U[n.toLowerCase()]||y&&U[y])A=l?l(A,D):"*".repeat(A.length);return A};
ua3=function(l){var D=l.getContext("2d");if(!D)return!0;for(var U=0;U<l.width;U+=50)for(var n=0;n<l.height;n+=50){var y=D.getImageData;if((new Uint32Array(("__rrweb_original__"in y?y.__rrweb_original__:y).call(D,U,n,Math.min(50,l.width-U),Math.min(50,l.height-n)).data.buffer)).some(function(A){return A!==0}))return!1}return!0};
vNC=function(l){var D=l.type;return l.hasAttribute("data-rr-is-password")?"password":D?D.toLowerCase():null};
QPB=function(l){try{var D=new URL(l,window.location.href)}catch(y){return null}var U,n;return(n=(U=D.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:U[1])!=null?n:null};
bbo=function(l,D){return(l||"").replace(Gmg,function(U,n,y,A,C,h){y=y||C||h;n=n||A||"";if(!y)return U;if(JXB.test(y)||LO3.test(y)||qYB.test(y))return"url("+n+y+n+")";if(y[0]==="/")return U=D.indexOf("//")>-1?D.split("/").slice(0,3).join("/"):D.split("/")[0],U=U.split("?")[0],"url("+n+(U+y)+n+")";U=D.split("/");A=y.split("/");U.pop();A=_.B(A);for(y=A.next();!y.done;y=A.next())y=y.value,y!=="."&&(y===".."?U.pop():U.push(y));return"url("+n+U.join("/")+n+")"})};
Me3=function(l,D){return(D=D===void 0?!1:D)?l.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):l.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
Rmg=function(l,D){var U=U===void 0?!1:U;D=Array.from(D.childNodes);var n=[],y=0;if(D.length>1&&l&&typeof l==="string")for(var A=Me3(l,U),C=A.length/l.length,h=1;h<D.length;h++)if(D[h].textContent&&typeof D[h].textContent==="string"){for(var b=Me3(D[h].textContent,U),u=3;u<b.length&&(b[u].match(/[a-zA-Z0-9]/)||b.indexOf(b.substring(0,u),1)!==-1);u++);for(;u<b.length;u++){var Q=b.substring(0,u),G=A.split(Q),J=-1;if(G.length===2)J=G[0].length;else if(G.length>2&&G[0]===""&&D[h-1].textContent!=="")J=
A.indexOf(Q,1);else if(G.length===1){Q=Q.substring(0,Q.length-1);G=A.split(Q);if(G.length<=1)return n.push(l),n;u=101}else u===b.length-1&&(J=A.indexOf(Q));if(G.length>=2&&u>100){var L=D[h-1].textContent;L&&typeof L==="string"&&(J=A.indexOf(Q,Me3(L).length));J===-1&&(J=G[0].length)}if(J!==-1){for(b=Math.floor(J/C);b>0&&b<l.length;){y+=1;if(y>50*D.length)return n.push(l),n;u=Me3(l.substring(0,b),U);if(u.length===J){n.push(l.substring(0,b));l=l.substring(b);A=A.substring(J);break}else b=u.length<J?
b+Math.max(1,Math.floor((J-u.length)/C)):b-Math.max(1,Math.floor((u.length-J)*C))}break}}}n.push(l);return n};
emB=function(){return Zb$++};
az_=function(l){if(l instanceof HTMLFormElement)return"form";l=l.tagName.toLowerCase();return mi9.test(l)?"div":l};
kmg=function(l,D){function U(u){return(u=u.exec(D.substring(n)))?(u=u[0],n+=u.length,u):""}
if(D.trim()==="")return D;for(var n=0,y=[];;){U(teo);if(n>=D.length)break;var A=U(Xb$);if(A.slice(-1)===",")A=SYc(l,A.substring(0,A.length-1)),y.push(A);else{var C="";A=SYc(l,A);for(var h=!1;;){var b=D.charAt(n);if(b===""){y.push((A+C).trim());break}else if(h)b===")"&&(h=!1);else if(b===","){n+=1;y.push((A+C).trim());break}else b==="("&&(h=!0);C+=b;n+=1}}}return y.join(", ")};
SYc=function(l,D){return D&&D.trim()!==""?di3(l,D):D};
di3=function(l,D){var U=KOo.get(l);U||(U=l.createElement("a"),KOo.set(l,U));if(!D)D="";else if(D.startsWith("blob:")||D.startsWith("data:"))return D;Il(U,D);return U.href};
cX_=function(l,D,U,n){return n?U==="src"||U==="href"&&(D!=="use"||n[0]!=="#")||U==="xlink:href"&&n[0]!=="#"||U==="background"&&(D==="table"||D==="td"||D==="th")?SYc(l,n):U==="srcset"?kmg(l,n):U==="style"?bbo(n,di3(l)):D==="object"&&U==="data"?SYc(l,n):n:n};
pbK=function(l,D){return(l==="video"||l==="audio")&&D==="autoplay"};
xiK=function(l,D,U){try{if(typeof D==="string"){if(l.classList.contains(D))return!0}else for(var n=l.classList.length;n--;)if(D.test(l.classList[n]))return!0;if(U)return l.matches(U)}catch(y){}return!1};
jP_=function(l,D,U){if(!l)return!1;if(l.nodeType!==l.ELEMENT_NODE)return U?jP_(fS(l),D,U):!1;for(var n=l.classList.length;n--;)if(D.test(l.classList[n]))return!0;return U?jP_(fS(l),D,U):!1};
FOC=function(l,D,U,n){if(l.nodeType===l.ELEMENT_NODE){if(!$x(l).length)return!1}else{if(NE(l)===null)return!1;l=NE(l)}try{if(typeof D==="string")if(n){if(l.closest("."+D))return!0}else{if(l.classList.contains(D))return!0}else if(jP_(l,D,n))return!0;if(U)if(n){if(l.closest(U))return!0}else if(l.matches(U))return!0}catch(y){}return!1};
oNs=function(l,D,U){var n=l.contentWindow;if(n){var y=!1;try{var A=n.document.readyState}catch(h){return}if(A!=="complete"){var C=setTimeout(function(){y||(D(),y=!0)},U);
l.addEventListener("load",function(){clearTimeout(C);y=!0;D()})}else n.location.href==="about:blank"&&l.src!=="about:blank"&&l.src!==""||setTimeout(D,0),l.addEventListener("load",D)}};
wbB=function(l,D,U){var n=!1;try{var y=l.sheet}catch(C){return}if(!y){var A=setTimeout(function(){n||(D(),n=!0)},U);
l.addEventListener("load",function(){clearTimeout(A);n=!0;D()})}};
fz_=function(l,D){var U=D.doc,n=D.blockClass,y=D.blockSelector,A=D.needsMask,C=D.inlineStylesheet,h=D.maskInputOptions===void 0?{}:D.maskInputOptions,b=D.maskTextFn,u=D.maskInputFn,Q=D.dataURLOptions===void 0?{}:D.dataURLOptions,G=D.inlineImages,J=D.recordCanvas,L=D.keepIframeSrcFn,R=D.newlyAddedElement===void 0?!1:D.newlyAddedElement,a=D.cssCaptured===void 0?!1:D.cssCaptured;D=D.mirror;D.nodeMetaMap.has(U)?(D=D.getId(U),D=D===1?void 0:D):D=void 0;switch(l.nodeType){case l.DOCUMENT_NODE:return l.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:l.compatMode}:{type:0,childNodes:[]};case l.DOCUMENT_TYPE_NODE:return{type:1,name:l.name,publicId:l.publicId,systemId:l.systemId,rootId:D};case l.ELEMENT_NODE:return rX_(l,{doc:U,blockClass:n,blockSelector:y,inlineStylesheet:C,maskInputOptions:h,maskInputFn:u,dataURLOptions:Q,inlineImages:G,recordCanvas:J,keepIframeSrcFn:L,newlyAddedElement:R,rootId:D});case l.TEXT_NODE:return C=(n=fS(l))&&n.tagName,n="",y=C==="STYLE"?!0:void 0,(C=C==="SCRIPT"?!0:void 0)?
n="SCRIPT_PLACEHOLDER":a||(n=zml(l),y&&n&&(n=bbo(n,di3(U)))),!y&&!C&&n&&A&&(n=b?b(n,NE(l)):n.replace(/[\S]/g,"*")),{type:3,textContent:n||"",rootId:D};case l.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:D};case l.COMMENT_NODE:return{type:5,textContent:zml(l)||"",rootId:D};default:return!1}};
rX_=function(l,D){var U=D.doc,n=D.inlineStylesheet,y=D.maskInputOptions===void 0?{}:D.maskInputOptions,A=D.maskInputFn,C=D.dataURLOptions===void 0?{}:D.dataURLOptions,h=D.inlineImages,b=D.recordCanvas,u=D.keepIframeSrcFn,Q=D.newlyAddedElement===void 0?!1:D.newlyAddedElement,G=D.rootId;D=xiK(l,D.blockClass,D.blockSelector);for(var J=az_(l),L={},R=l.attributes.length,a=0;a<R;a++){var S=l.attributes[a];pbK(J,S.name)||(L[S.name]=cX_(U,J,S.name.toLowerCase(),S.value))}J==="link"&&n&&(n=Array.from(U.styleSheets).find(function(f){return f.href===
l.href}),R=null,n&&(R=Pn9(n)),R&&(delete L.rel,delete L.href,L._cssText=R));
J==="style"&&l.sheet&&(n=Pn9(l.sheet))&&(l.childNodes.length>1&&(n=Rmg(n,l).join("/* rr_split */")),L._cssText=n);if(J==="input"||J==="textarea"||J==="select")n=l.value,R=l.checked,L.type!=="radio"&&L.type!=="checkbox"&&L.type!=="submit"&&L.type!=="button"&&n?L.value=gNl({element:l,type:vNC(l),tagName:J,value:n,maskInputOptions:y,maskInputFn:A}):R&&(L.checked=R);J==="option"&&(l.selected&&!y.select?L.selected=!0:delete L.selected);J==="dialog"&&l.open&&(L.rr_open_mode=l.matches("dialog:modal")?"modal":
"non-modal");J==="canvas"&&b&&(l.__context==="2d"?ua3(l)||(L.rr_dataURL=l.toDataURL(C.type,C.quality)):"__context"in l||(y=l.toDataURL(C.type,C.quality),A=U.createElement("canvas"),A.width=l.width,A.height=l.height,A=A.toDataURL(C.type,C.quality),y!==A&&(L.rr_dataURL=y)));if(J==="img"&&h){s2||(s2=U.createElement("canvas"),$iG=s2.getContext("2d"));var d=l.currentSrc||l.getAttribute("src")||"<unknown-src>",c=l.crossOrigin,N=function(){l.removeEventListener("load",N);try{s2.width=l.naturalWidth,s2.height=
l.naturalHeight,$iG.drawImage(l,0,0),L.rr_dataURL=s2.toDataURL(C.type,C.quality)}catch(f){if(l.crossOrigin!=="anonymous"){l.crossOrigin="anonymous";l.complete&&l.naturalWidth!==0?N():l.addEventListener("load",N);return}console.warn("Cannot inline img src="+d+"! Error: "+f)}l.crossOrigin==="anonymous"&&(c?L.crossOrigin=c:l.removeAttribute("crossorigin"))};
l.complete&&l.naturalWidth!==0?N():l.addEventListener("load",N)}if(J==="audio"||J==="video")U=L,U.rr_mediaState=l.paused?"paused":"played",U.rr_mediaCurrentTime=l.currentTime,U.rr_mediaPlaybackRate=l.playbackRate,U.rr_mediaMuted=l.muted,U.rr_mediaLoop=l.loop,U.rr_mediaVolume=l.volume;Q||(l.scrollLeft&&(L.rr_scrollLeft=l.scrollLeft),l.scrollTop&&(L.rr_scrollTop=l.scrollTop));D&&(Q=l.getBoundingClientRect(),L={class:L.class,rr_width:Q.width+"px",rr_height:Q.height+"px"});J!=="iframe"||u(L.src)||(l.contentDocument||
(L.rr_src=L.src),delete L.src);var z;try{customElements.get(J)&&(z=!0)}catch(f){}return{type:2,tagName:J,attributes:L,childNodes:[],isSVG:!(l.tagName!=="svg"&&!l.ownerSVGElement)||void 0,needBlock:D,rootId:G,isCustom:z}};
E2=function(l){return l===void 0||l===null?"":l.toLowerCase()};
NxG=function(l,D){return D.comment&&l.type===5||l.type===2&&(D.script&&(l.tagName==="script"||l.tagName==="link"&&(l.attributes.rel==="preload"&&l.attributes.as==="script"||l.attributes.rel==="modulepreload")||l.tagName==="link"&&l.attributes.rel==="prefetch"&&typeof l.attributes.href==="string"&&QPB(l.attributes.href)==="js")||D.headFavicon&&(l.tagName==="link"&&l.attributes.rel==="shortcut icon"||l.tagName==="meta"&&(E2(l.attributes.name).match(/^msapplication-tile(image|color)$/)||E2(l.attributes.name)===
"application-name"||E2(l.attributes.rel)==="icon"||E2(l.attributes.rel)==="apple-touch-icon"||E2(l.attributes.rel)==="shortcut icon"))||l.tagName==="meta"&&(D.headMetaDescKeywords&&E2(l.attributes.name).match(/^description|keywords$/)||D.headMetaSocial&&(E2(l.attributes.property).match(/^(og|twitter|fb):/)||E2(l.attributes.name).match(/^(og|twitter):/)||E2(l.attributes.name)==="pinterest")||D.headMetaRobots&&(E2(l.attributes.name)==="robots"||E2(l.attributes.name)==="googlebot"||E2(l.attributes.name)===
"bingbot")||D.headMetaHttpEquiv&&l.attributes["http-equiv"]!==void 0||D.headMetaAuthorship&&(E2(l.attributes.name)==="author"||E2(l.attributes.name)==="generator"||E2(l.attributes.name)==="framework"||E2(l.attributes.name)==="publisher"||E2(l.attributes.name)==="progid"||E2(l.attributes.property).match(/^article:/)||E2(l.attributes.property).match(/^product:/))||D.headMetaVerification&&(E2(l.attributes.name)==="google-site-verification"||E2(l.attributes.name)==="yandex-verification"||E2(l.attributes.name)===
"csrf-token"||E2(l.attributes.name)==="p:domain_verify"||E2(l.attributes.name)==="verify-v1"||E2(l.attributes.name)==="verification"||E2(l.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
Ts=function(l,D){var U=D.doc,n=D.mirror,y=D.blockClass,A=D.blockSelector,C=D.maskTextClass,h=D.maskTextSelector,b=D.skipChild===void 0?!1:D.skipChild,u=D.inlineStylesheet===void 0?!0:D.inlineStylesheet,Q=D.maskInputOptions===void 0?{}:D.maskInputOptions,G=D.maskTextFn,J=D.maskInputFn,L=D.slimDOMOptions,R=D.dataURLOptions===void 0?{}:D.dataURLOptions,a=D.inlineImages===void 0?!1:D.inlineImages,S=D.recordCanvas===void 0?!1:D.recordCanvas,d=D.onSerialize,c=D.onIframeLoad,N=D.iframeLoadTimeout===void 0?
5E3:D.iframeLoadTimeout,z=D.onStylesheetLoad,f=D.stylesheetLoadTimeout===void 0?5E3:D.stylesheetLoadTimeout,I=D.keepIframeSrcFn===void 0?function(){return!1}:D.keepIframeSrcFn,iG=D.newlyAddedElement===void 0?!1:D.newlyAddedElement,CC=D.cssCaptured===void 0?!1:D.cssCaptured,vo=D.needsMask,td=D.preserveWhiteSpace===void 0?!0:D.preserveWhiteSpace;
vo||(vo=FOC(l,C,h,vo===void 0));var GN=fz_(l,{doc:U,mirror:n,blockClass:y,blockSelector:A,needsMask:vo,inlineStylesheet:u,maskInputOptions:Q,maskTextFn:G,maskInputFn:J,dataURLOptions:R,inlineImages:a,recordCanvas:S,keepIframeSrcFn:I,newlyAddedElement:iG,cssCaptured:CC});if(!GN)return console.warn(l,"not serialized"),null;iG=n.nodeMetaMap.has(l)?n.getId(l):NxG(GN,L)||!td&&GN.type===3&&!GN.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Zb$++;D=Object.assign(GN,{id:iG});n.add(l,D);if(iG===-2)return null;
d&&d(l);iG=!b;D.type===2&&(iG=iG&&!D.needBlock,delete D.needBlock,(CC=w0(l))&&zs(CC)&&(D.isShadowHost=!0));if((D.type===0||D.type===2)&&iG){L.headWhitespace&&D.type===2&&D.tagName==="head"&&(td=!1);b={doc:U,mirror:n,blockClass:y,blockSelector:A,needsMask:vo,maskTextClass:C,maskTextSelector:h,skipChild:b,inlineStylesheet:u,maskInputOptions:Q,maskTextFn:G,maskInputFn:J,slimDOMOptions:L,dataURLOptions:R,inlineImages:a,recordCanvas:S,preserveWhiteSpace:td,onSerialize:d,onIframeLoad:c,iframeLoadTimeout:N,
onStylesheetLoad:z,stylesheetLoadTimeout:f,keepIframeSrcFn:I,cssCaptured:!1};if(D.type!==2||D.tagName!=="textarea"||D.attributes.value===void 0)for(D.type===2&&D.attributes._cssText!==void 0&&typeof D.attributes._cssText==="string"&&(b.cssCaptured=!0),iG=_.B(Array.from($x(l))),CC=iG.next();!CC.done;CC=iG.next())(CC=Ts(CC.value,b))&&D.childNodes.push(CC);iG=null;if(l.nodeType===l.ELEMENT_NODE&&(iG=w0(l))){CC=_.B(Array.from($x(iG)));for(var Ms=CC.next();!Ms.done;Ms=CC.next())if(Ms=Ts(Ms.value,b))zs(iG)&&
(Ms.isShadow=!0),D.childNodes.push(Ms)}}(b=fS(l))&&r0(b)&&zs(b)&&(D.isShadow=!0);D.type===2&&D.tagName==="iframe"&&oNs(l,function(){var j3=l.contentDocument;j3&&c&&(j3=Ts(j3,{doc:j3,mirror:n,blockClass:y,blockSelector:A,needsMask:vo,maskTextClass:C,maskTextSelector:h,skipChild:!1,inlineStylesheet:u,maskInputOptions:Q,maskTextFn:G,maskInputFn:J,slimDOMOptions:L,dataURLOptions:R,inlineImages:a,recordCanvas:S,preserveWhiteSpace:td,onSerialize:d,onIframeLoad:c,iframeLoadTimeout:N,onStylesheetLoad:z,stylesheetLoadTimeout:f,
keepIframeSrcFn:I}))&&c(l,j3)},N);
D.type===2&&D.tagName==="link"&&typeof D.attributes.rel==="string"&&(D.attributes.rel==="stylesheet"||D.attributes.rel==="preload"&&typeof D.attributes.href==="string"&&QPB(D.attributes.href)==="css")&&wbB(l,function(){if(z){var j3=Ts(l,{doc:U,mirror:n,blockClass:y,blockSelector:A,needsMask:vo,maskTextClass:C,maskTextSelector:h,skipChild:!1,inlineStylesheet:u,maskInputOptions:Q,maskTextFn:G,maskInputFn:J,slimDOMOptions:L,dataURLOptions:R,inlineImages:a,recordCanvas:S,preserveWhiteSpace:td,onSerialize:d,
onIframeLoad:c,iframeLoadTimeout:N,onStylesheetLoad:z,stylesheetLoadTimeout:f,keepIframeSrcFn:I});j3&&z(l,j3)}},f);
return D};
sP9=function(l){var D=document;l=l||{};var U=l.maskAllInputs===void 0?!1:l.maskAllInputs,n=l.slimDOM===void 0?!1:l.slimDOM;return Ts(D,{doc:D,mirror:l.mirror===void 0?new IA:l.mirror,blockClass:l.blockClass===void 0?"rr-block":l.blockClass,blockSelector:l.blockSelector===void 0?null:l.blockSelector,maskTextClass:l.maskTextClass===void 0?"rr-mask":l.maskTextClass,maskTextSelector:l.maskTextSelector===void 0?null:l.maskTextSelector,skipChild:!1,inlineStylesheet:l.inlineStylesheet===void 0?!0:l.inlineStylesheet,
maskInputOptions:U===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:U===!1?{password:!0}:U,maskTextFn:l.maskTextFn,maskInputFn:l.maskInputFn,slimDOMOptions:n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:n==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:n===!1?{}:n,dataURLOptions:l.dataURLOptions,
inlineImages:l.inlineImages===void 0?!1:l.inlineImages,recordCanvas:l.recordCanvas===void 0?!1:l.recordCanvas,preserveWhiteSpace:l.preserveWhiteSpace,onSerialize:l.onSerialize,onIframeLoad:l.onIframeLoad,iframeLoadTimeout:l.iframeLoadTimeout,onStylesheetLoad:l.onStylesheetLoad,stylesheetLoadTimeout:l.stylesheetLoadTimeout,keepIframeSrcFn:l.keepIframeSrcFn===void 0?function(){return!1}:l.keepIframeSrcFn,
newlyAddedElement:!1})};
HT=function(l,D,U){U=U===void 0?document:U;var n={capture:!0,passive:!0};U.addEventListener(l,D,n);return function(){return U.removeEventListener(l,D,n)}};
Yx=function(l,D,U){U=U===void 0?{}:U;var n=null,y=0;return function(){var A=_.EW.apply(0,arguments),C=Date.now();y||U.leading!==!1||(y=C);var h=D-(C-y),b=this;h<=0||h>D?(n&&(clearTimeout(n),n=null),y=C,l.apply(b,A)):n||U.trailing===!1||(n=setTimeout(function(){y=U.leading===!1?0:Date.now();n=null;l.apply(b,A)},h))}};
ENG=function(l,D,U,n,y){y=y===void 0?window:y;var A=y.Object.getOwnPropertyDescriptor(l,D);y.Object.defineProperty(l,D,n?U:{set:function(C){var h=this;setTimeout(function(){U.set.call(h,C)},0);
A&&A.set&&A.set.call(this,C)}});
return function(){return ENG(l,D,A||{},!0)}};
TxC=function(l){var D=l.document,U,n,y,A;return{left:D.scrollingElement?D.scrollingElement.scrollLeft:l.pageXOffset!==void 0?l.pageXOffset:D.documentElement.scrollLeft||(D==null?void 0:D.body)&&((U=NE(D.body))==null?void 0:U.scrollLeft)||(D==null?void 0:(n=D.body)==null?void 0:n.scrollLeft)||0,top:D.scrollingElement?D.scrollingElement.scrollTop:l.pageYOffset!==void 0?l.pageYOffset:(D==null?void 0:D.documentElement.scrollTop)||(D==null?void 0:D.body)&&((y=NE(D.body))==null?void 0:y.scrollTop)||(D==
null?void 0:(A=D.body)==null?void 0:A.scrollTop)||0}};
IzN=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
HbB=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
YYl=function(l){return l?l.nodeType===l.ELEMENT_NODE?l:NE(l):null};
O2=function(l,D,U,n){if(!l)return!1;l=YYl(l);if(!l)return!1;try{if(typeof D==="string"){if(l.classList.contains(D)||n&&l.closest("."+D)!==null)return!0}else if(jP_(l,D,n))return!0}catch(y){}return U&&(l.matches(U)||n&&l.closest(U)!==null)?!0:!1};
Ob9=function(l,D,U){return l.tagName==="TITLE"&&U.headTitleMutations?!0:D.getId(l)===-2};
Vec=function(l,D){if(r0(l))return!1;var U=D.getId(l);return D.has(U)?(U=fS(l))&&U.nodeType===l.DOCUMENT_NODE?!1:U?Vec(U,D):!0:!0};
iLG=function(){var l=l===void 0?window:l;"NodeList"in l&&!l.NodeList.prototype.forEach&&(l.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in l&&!l.DOMTokenList.prototype.forEach&&(l.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
lr9=function(l,D){return!(l.nodeName!=="LINK"||l.nodeType!==l.ELEMENT_NODE||!l.getAttribute||l.getAttribute("rel")!=="stylesheet"||!D.nodeMetaMap.get(l))};
UHK=function(l){var D=null,U;"getRootNode"in l&&((U=DHC(l))==null?void 0:U.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&oA(DHC(l))&&(D=oA(DHC(l)));return D};
nP3=function(l){var D=l.ownerDocument;if(D){if(!(D=Bx3(D,"contains")(l)))if(D=l.ownerDocument){for(var U;U=UHK(l);)l=U;D=Bx3(D,"contains")(l)}else D=!1}else D=!1;return D};
y8c=function(l,D){l.delete(D);$x(D).forEach(function(U){return y8c(l,U)})};
A83=function(l,D){for(var U=[l];U.length;)l=U.pop(),D.has(l)||(D.add(l),$x(l).forEach(function(n){return U.push(n)}))};
WS_=function(l,D){l.size===0?l=!1:l=(D=fS(D))?l.has(D):!1;return l};
Cod=function(l,D){return l.size===0?!1:BIg(l,D)};
BIg=function(l,D){return(D=fS(D))?l.has(D)?!0:BIg(l,D):!1};
VP=function(l){try{if("composedPath"in l){var D=l.composedPath();if(D.length)return D[0]}else if("path"in l&&l.path.length)return l.path[0]}catch(U){}return l&&l.target};
Po$=function(l,D){var U=new hNC;iU.push(U);U.init(l);l=new (yXK("MutationObserver").constructor)(lU(U.processMutations.bind(U)));l.observe(D,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return l};
gPG=function(l){var D=l.mousemoveCb;var U=l.sampling;var n=l.doc;var y=l.mirror;if(U.mousemove===!1)return function(){};
var A=[],C,h=Yx(lU(function(u){var Q=Date.now()-C;D(A.map(function(G){G.timeOffset-=Q;return G}),u);
A=[];C=null}),typeof U.mousemoveCallback==="number"?U.mousemoveCallback:500);
l=lU(Yx(lU(function(u){var Q=VP(u),G=u.changedTouches?u.changedTouches[0]:u,J=G.clientX;G=G.clientY;C||(C=bLB());A.push({x:J,y:G,id:y.getId(Q),timeOffset:bLB()-C});h(typeof DragEvent!=="undefined"&&u instanceof DragEvent?12:u instanceof MouseEvent?1:6)}),typeof U.mousemove==="number"?U.mousemove:50,{trailing:!1}));
var b=[HT("mousemove",l,n),HT("touchmove",l,n),HT("drag",l,n)];return lU(function(){b.forEach(function(u){return u()})})};
uCB=function(l){var D=l.mouseInteractionCb;var U=l.doc;var n=l.mirror;var y=l.blockClass;var A=l.blockSelector;l=l.sampling;if(l.mouseInteraction===!1)return function(){};
var C=l.mouseInteraction===!0||l.mouseInteraction===void 0?{}:l.mouseInteraction,h=[],b=null,u=function(Q){return function(G){var J=VP(G);if(!O2(J,y,A,!0)){var L=null,R=Q;if("pointerType"in G){switch(G.pointerType){case "mouse":L=0;break;case "touch":L=2;break;case "pen":L=1}L===2&&(D5[Q]===1?R="TouchStart":D5[Q]===0&&(R="TouchEnd"))}else G.changedTouches&&(L=2);if(L!==null){if(b=L,R.startsWith("Touch")&&L===2||R.startsWith("Mouse")&&L===0)L=null}else D5[Q]===2&&(L=b,b=null);if(G=G.changedTouches?
G.changedTouches[0]:G)J=n.getId(J),lU(D)(Object.assign({},{type:D5[R],id:J,x:G.clientX,y:G.clientY},L!==null&&{pointerType:L}))}}};
Object.keys(D5).filter(function(Q){return Number.isNaN(Number(Q))&&!Q.endsWith("_Departed")&&C[Q]!==!1}).forEach(function(Q){var G=Q.toLowerCase(),J=u(Q);
if(window.PointerEvent)switch(D5[Q]){case 1:case 0:G=G.replace("mouse","pointer");break;case 7:case 9:return}h.push(HT(G,J,U))});
return lU(function(){h.forEach(function(Q){return Q()})})};
vPg=function(l){var D=l.scrollCb;var U=l.doc;var n=l.mirror;var y=l.blockClass;var A=l.blockSelector;return HT("scroll",lU(Yx(lU(function(C){var h=VP(C);h&&!O2(h,y,A,!0)&&(C=n.getId(h),h===U&&U.defaultView?(h=TxC(U.defaultView),D({id:C,x:h.left,y:h.top})):D({id:C,x:h.scrollLeft,y:h.scrollTop}))}),l.sampling.scroll||100)),U)};
Q8G=function(l,D){var U=l.viewportResizeCb;var n=-1,y=-1;return HT("resize",lU(Yx(lU(function(){var A=IzN(),C=HbB();if(n!==A||y!==C)U({width:Number(C),height:Number(A)}),n=A,y=C}),200)),D.win)};
LS9=function(l){function D(S){var d=VP(S),c=S.isTrusted,N=d&&d.tagName;d&&N==="OPTION"&&(d=NE(d));if(!(!d||!N||Gr9.indexOf(N)<0||O2(d,C,h,!0)||d.classList.contains(b)||u&&d.matches(u))){var z=d.value,f=!1;S=vNC(d)||"";if(S==="radio"||S==="checkbox")f=d.checked;else if(Q[N.toLowerCase()]||Q[S])z=gNl({element:d,maskInputOptions:Q,tagName:N,type:S,value:z,maskInputFn:G});U(d,L?{text:z,isChecked:f,userTriggered:c}:{text:z,isChecked:f});c=d.name;S==="radio"&&c&&f&&y.querySelectorAll('input[type="radio"][name="'+
c+'"]').forEach(function(I){if(I!==d){var iG=I.value;U(I,L?{text:iG,isChecked:!f,userTriggered:!1}:{text:iG,isChecked:!f})}})}}
function U(S,d){var c=J8g.get(S);c&&c.text===d.text&&c.isChecked===d.isChecked||(J8g.set(S,d),S=A.getId(S),lU(n)(Object.assign({},d,{id:S})))}
var n=l.inputCb;var y=l.doc;var A=l.mirror;var C=l.blockClass;var h=l.blockSelector;var b=l.ignoreClass;var u=l.ignoreSelector;var Q=l.maskInputOptions;var G=l.maskInputFn;var J=l.sampling;var L=l.userTriggeredOnInput;var R=(J.input==="last"?["change"]:["input","change"]).map(function(S){return HT(S,lU(D),y)}),a=y.defaultView;
if(!a)return function(){R.forEach(function(S){return S()})};
l=a.Object.getOwnPropertyDescriptor(a.HTMLInputElement.prototype,"value");J=[[a.HTMLInputElement.prototype,"value"],[a.HTMLInputElement.prototype,"checked"],[a.HTMLSelectElement.prototype,"value"],[a.HTMLTextAreaElement.prototype,"value"],[a.HTMLSelectElement.prototype,"selectedIndex"],[a.HTMLOptionElement.prototype,"selected"]];l&&l.set&&R.push.apply(R,_.zz(J.map(function(S){return ENG(S[0],S[1],{set:function(){lU(D)({target:this,isTrusted:!1})}},!1,a)})));
return lU(function(){R.forEach(function(S){return S()})})};
Ml$=function(l){var D=[],U,n,y,A;qgc("CSSGroupingRule")&&((U=l.parentRule)==null?void 0:(n=U.constructor)==null?void 0:n.name)==="CSSGroupingRule"||qgc("CSSMediaRule")&&l.parentRule instanceof CSSMediaRule||qgc("CSSSupportsRule")&&l.parentRule instanceof CSSSupportsRule||qgc("CSSConditionRule")&&((y=l.parentRule)==null?void 0:(A=y.constructor)==null?void 0:A.name)==="CSSConditionRule"?(l=Array.from(l.parentRule.cssRules).indexOf(l),D.unshift(l)):l.parentStyleSheet&&(l=Array.from(l.parentStyleSheet.cssRules).indexOf(l),
D.unshift(l));return D};
U9=function(l,D,U){var n,y;if(!l)return{};l.ownerNode?n=D.getId(l.ownerNode):y=U.getId(l);return{styleId:y,id:n}};
ZLl=function(l,D){var U=l.styleSheetRuleCb;var n=l.mirror;var y=l.stylesheetManager;var A=D.win;if(!A.CSSStyleSheet||!A.CSSStyleSheet.prototype)return function(){};
var C=A.CSSStyleSheet.prototype.insertRule;A.CSSStyleSheet.prototype.insertRule=new nI(C,{apply:lU(function(J,L,R){var a=_.B(R),S=a.next().value;a=a.next().value;var d=U9(L,n,y.styleMirror),c=d.id;d=d.styleId;(c&&c!==-1||d&&d!==-1)&&U({id:c,styleId:d,adds:[{rule:S,index:a}]});return J.apply(L,R)})});
A.CSSStyleSheet.prototype.addRule=function(J,L,R){R=R===void 0?this.cssRules.length:R;return A.CSSStyleSheet.prototype.insertRule.apply(this,[J+" { "+L+" }",R])};
var h=A.CSSStyleSheet.prototype.deleteRule;A.CSSStyleSheet.prototype.deleteRule=new nI(h,{apply:lU(function(J,L,R){var a=_.B(R).next().value,S=U9(L,n,y.styleMirror),d=S.id;S=S.styleId;(d&&d!==-1||S&&S!==-1)&&U({id:d,styleId:S,removes:[{index:a}]});return J.apply(L,R)})});
A.CSSStyleSheet.prototype.removeRule=function(J){return A.CSSStyleSheet.prototype.deleteRule.apply(this,[J])};
if(A.CSSStyleSheet.prototype.replace){var b=A.CSSStyleSheet.prototype.replace;A.CSSStyleSheet.prototype.replace=new nI(b,{apply:lU(function(J,L,R){var a=_.B(R).next().value,S=U9(L,n,y.styleMirror),d=S.id;S=S.styleId;(d&&d!==-1||S&&S!==-1)&&U({id:d,styleId:S,replace:a});return J.apply(L,R)})})}if(A.CSSStyleSheet.prototype.replaceSync){var u=A.CSSStyleSheet.prototype.replaceSync;
A.CSSStyleSheet.prototype.replaceSync=new nI(u,{apply:lU(function(J,L,R){var a=_.B(R).next().value,S=U9(L,n,y.styleMirror),d=S.id;S=S.styleId;(d&&d!==-1||S&&S!==-1)&&U({id:d,styleId:S,replaceSync:a});return J.apply(L,R)})})}var Q={};
RNN("CSSGroupingRule")?Q.CSSGroupingRule=A.CSSGroupingRule:(RNN("CSSMediaRule")&&(Q.CSSMediaRule=A.CSSMediaRule),RNN("CSSConditionRule")&&(Q.CSSConditionRule=A.CSSConditionRule),RNN("CSSSupportsRule")&&(Q.CSSSupportsRule=A.CSSSupportsRule));var G={};Object.entries(Q).forEach(function(J){var L=_.B(J);J=L.next().value;L=L.next().value;G[J]={insertRule:L.prototype.insertRule,deleteRule:L.prototype.deleteRule};L.prototype.insertRule=new nI(G[J].insertRule,{apply:lU(function(R,a,S){var d=_.B(S),c=d.next().value;
d=d.next().value;var N=U9(a.parentStyleSheet,n,y.styleMirror),z=N.id;N=N.styleId;(z&&z!==-1||N&&N!==-1)&&U({id:z,styleId:N,adds:[{rule:c,index:[].concat(_.zz(Ml$(a)),[d||0])}]});return R.apply(a,S)})});
L.prototype.deleteRule=new nI(G[J].deleteRule,{apply:lU(function(R,a,S){var d=_.B(S).next().value,c=U9(a.parentStyleSheet,n,y.styleMirror),N=c.id;c=c.styleId;(N&&N!==-1||c&&c!==-1)&&U({id:N,styleId:c,removes:[{index:[].concat(_.zz(Ml$(a)),[d])}]});return R.apply(a,S)})})});
return lU(function(){A.CSSStyleSheet.prototype.insertRule=C;A.CSSStyleSheet.prototype.deleteRule=h;b&&(A.CSSStyleSheet.prototype.replace=b);u&&(A.CSSStyleSheet.prototype.replaceSync=u);Object.entries(Q).forEach(function(J){var L=_.B(J);J=L.next().value;L=L.next().value;L.prototype.insertRule=G[J].insertRule;L.prototype.deleteRule=G[J].deleteRule})})};
mH9=function(l,D){var U=l.mirror;var n=l.stylesheetManager;var y=null;y=D.nodeName==="#document"?U.getId(D):U.getId(oA(D));var A,C,h;l=D.nodeName==="#document"?(A=D.defaultView)==null?void 0:A.Document:(C=D.ownerDocument)==null?void 0:(h=C.defaultView)==null?void 0:h.ShadowRoot;var b=(l==null?0:l.prototype)?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;if(y===null||y===-1||!l||!b)return function(){};
Object.defineProperty(D,"adoptedStyleSheets",{configurable:b.configurable,enumerable:b.enumerable,get:function(){var u;return(u=b.get)==null?void 0:u.call(this)},
set:function(u){var Q,G=(Q=b.set)==null?void 0:Q.call(this,u);if(y!==null&&y!==-1)try{eNC(n,u,y)}catch(J){}return G}});
return lU(function(){Object.defineProperty(D,"adoptedStyleSheets",{configurable:b.configurable,enumerable:b.enumerable,get:b.get,set:b.set})})};
arG=function(l,D){var U=l.styleDeclarationCb;var n=l.mirror;var y=l.ignoreCSSAttributes;var A=l.stylesheetManager;var C=D.win;var h=C.CSSStyleDeclaration.prototype.setProperty;C.CSSStyleDeclaration.prototype.setProperty=new nI(h,{apply:lU(function(u,Q,G){var J=_.B(G),L=J.next().value,R=J.next().value;J=J.next().value;if(y.has(L))return h.apply(Q,[L,R,J]);var a,S=U9((a=Q.parentRule)==null?void 0:a.parentStyleSheet,n,A.styleMirror);a=S.id;S=S.styleId;(a&&a!==-1||S&&S!==-1)&&U({id:a,styleId:S,set:{property:L,
value:R,priority:J},index:Ml$(Q.parentRule)});return u.apply(Q,G)})});
var b=C.CSSStyleDeclaration.prototype.removeProperty;C.CSSStyleDeclaration.prototype.removeProperty=new nI(b,{apply:lU(function(u,Q,G){var J=_.B(G).next().value;if(y.has(J))return b.apply(Q,[J]);var L,R=U9((L=Q.parentRule)==null?void 0:L.parentStyleSheet,n,A.styleMirror);L=R.id;R=R.styleId;(L&&L!==-1||R&&R!==-1)&&U({id:L,styleId:R,remove:{property:J},index:Ml$(Q.parentRule)});return u.apply(Q,G)})});
return lU(function(){C.CSSStyleDeclaration.prototype.setProperty=h;C.CSSStyleDeclaration.prototype.removeProperty=b})};
tl9=function(l){var D=l.mediaInteractionCb;var U=l.blockClass;var n=l.blockSelector;var y=l.mirror;var A=l.sampling;l=l.doc;var C=lU(function(b){return Yx(lU(function(u){if((u=VP(u))&&!O2(u,U,n,!0)){var Q=u.currentTime,G=u.volume,J=u.muted,L=u.playbackRate,R=u.loop;D({type:b,id:y.getId(u),currentTime:Q,volume:G,muted:J,playbackRate:L,loop:R})}}),A.media||500)}),h=[HT("play",C(0),l),
HT("pause",C(1),l),HT("seeked",C(2),l),HT("volumechange",C(3),l),HT("ratechange",C(4),l)];return lU(function(){h.forEach(function(b){return b()})})};
Xp$=function(l){var D=l.fontCb;l=l.doc;var U=l.defaultView;if(!U)return function(){};
var n=[],y=new WeakMap,A=U.FontFace;U.FontFace=function(C,h,b){var u=new A(C,h,b);y.set(u,{family:C,buffer:typeof h!=="string",descriptors:b,fontSource:typeof h==="string"?h:JSON.stringify(Array.from(new Uint8Array(h)))});return u};
l=F4(l.fonts,"add",function(C){return function(h){setTimeout(lU(function(){var b=y.get(h);b&&(D(b),y.delete(h))}),0);
return C.apply(this,[h])}});
n.push(function(){U.FontFace=A});
n.push(l);return lU(function(){n.forEach(function(C){return C()})})};
Sg9=function(l){var D=l.doc,U=l.mirror,n=l.blockClass,y=l.blockSelector,A=l.selectionCb,C=!0;l=lU(function(){var h=D.getSelection();if(h&&!(C&&(h==null?0:h.isCollapsed))){C=h.isCollapsed||!1;for(var b=[],u=h.rangeCount||0,Q=0;Q<u;Q++){var G=h.getRangeAt(Q),J=G.startContainer,L=G.startOffset,R=G.endContainer;G=G.endOffset;O2(J,n,y,!0)||O2(R,n,y,!0)||b.push({start:U.getId(J),startOffset:L,end:U.getId(R),endOffset:G})}A({ranges:b})}});
l();return HT("selectionchange",l)};
kro=function(l){var D=l.doc;var U=l.customElementCb;return(l=D.defaultView)&&l.customElements?F4(l.customElements,"define",function(n){return function(y,A,C){try{U({define:{name:y}})}catch(h){console.warn("Custom element callback failed for "+y)}return n.apply(this,[y,A,C])}}):function(){}};
dHg=function(l,D){var U=l.mutationCb,n=l.mousemoveCb,y=l.mouseInteractionCb,A=l.scrollCb,C=l.viewportResizeCb,h=l.inputCb,b=l.mediaInteractionCb,u=l.styleSheetRuleCb,Q=l.styleDeclarationCb,G=l.canvasMutationCb,J=l.fontCb,L=l.selectionCb,R=l.customElementCb;l.mutationCb=function(){var a=_.EW.apply(0,arguments);D.mutation&&D.mutation.apply(D,_.zz(a));U.apply(null,_.zz(a))};
l.mousemoveCb=function(){var a=_.EW.apply(0,arguments);D.mousemove&&D.mousemove.apply(D,_.zz(a));n.apply(null,_.zz(a))};
l.mouseInteractionCb=function(){var a=_.EW.apply(0,arguments);D.mouseInteraction&&D.mouseInteraction.apply(D,_.zz(a));y.apply(null,_.zz(a))};
l.scrollCb=function(){var a=_.EW.apply(0,arguments);D.scroll&&D.scroll.apply(D,_.zz(a));A.apply(null,_.zz(a))};
l.viewportResizeCb=function(){var a=_.EW.apply(0,arguments);D.viewportResize&&D.viewportResize.apply(D,_.zz(a));C.apply(null,_.zz(a))};
l.inputCb=function(){var a=_.EW.apply(0,arguments);D.input&&D.input.apply(D,_.zz(a));h.apply(null,_.zz(a))};
l.mediaInteractionCb=function(){var a=_.EW.apply(0,arguments);D.mediaInteaction&&D.mediaInteaction.apply(D,_.zz(a));b.apply(null,_.zz(a))};
l.styleSheetRuleCb=function(){var a=_.EW.apply(0,arguments);D.styleSheetRule&&D.styleSheetRule.apply(D,_.zz(a));u.apply(null,_.zz(a))};
l.styleDeclarationCb=function(){var a=_.EW.apply(0,arguments);D.styleDeclaration&&D.styleDeclaration.apply(D,_.zz(a));Q.apply(null,_.zz(a))};
l.canvasMutationCb=function(){var a=_.EW.apply(0,arguments);D.canvasMutation&&D.canvasMutation.apply(D,_.zz(a));G.apply(null,_.zz(a))};
l.fontCb=function(){var a=_.EW.apply(0,arguments);D.font&&D.font.apply(D,_.zz(a));J.apply(null,_.zz(a))};
l.selectionCb=function(){var a=_.EW.apply(0,arguments);D.selection&&D.selection.apply(D,_.zz(a));L.apply(null,_.zz(a))};
l.customElementCb=function(){var a=_.EW.apply(0,arguments);D.customElement&&D.customElement.apply(D,_.zz(a));R.apply(null,_.zz(a))}};
KS9=function(l,D){D=D===void 0?{}:D;var U=l.doc.defaultView;if(!U)return function(){};
dHg(l,D);var n;l.recordDOM&&(n=Po$(l,l.doc));var y=gPG(l),A=uCB(l),C=vPg(l),h=Q8G(l,{win:U}),b=LS9(l),u=tl9(l),Q=function(){},G=function(){},J=function(){},L=function(){};
l.recordDOM&&(Q=ZLl(l,{win:U}),G=mH9(l,l.doc),J=arG(l,{win:U}),l.collectFonts&&(L=Xp$(l)));var R=Sg9(l),a=kro(l),S=[];l=_.B(l.plugins);for(D=l.next();!D.done;D=l.next())D=D.value,S.push(D.observer(D.callback,U,D.options));return lU(function(){iU.forEach(function(c){return c.reset()});
var d;(d=n)==null||d.disconnect();y();A();C();h();b();u();Q();G();J();L();R();a();S.forEach(function(c){return c()})})};
qgc=function(l){return typeof window[l]!=="undefined"};
RNN=function(l){return!!(typeof window[l]!=="undefined"&&window[l].prototype&&"insertRule"in window[l].prototype&&"deleteRule"in window[l].prototype)};
c8B=function(l){l=new Uint8Array(l);for(var D="",U=0;U<l.byteLength;U++)D+=String.fromCharCode(l[U]);return btoa(D)};
ppB=function(l,D,U){if(l instanceof Array)return l.map(function(y){return ppB(y,D,U)});
if(l!==null){if(l instanceof Float32Array||l instanceof Float64Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Uint8Array||l instanceof Uint16Array||l instanceof Int16Array||l instanceof Int8Array||l instanceof Uint8ClampedArray)return{rr_type:l.constructor.name,args:[Object.values(l)]};if(l instanceof ArrayBuffer){var n=l.constructor.name;l=c8B(l);return{rr_type:n,base64:l}}if(l instanceof DataView)return{rr_type:l.constructor.name,args:[ppB(l.buffer,D,U),l.byteOffset,l.byteLength]};
if(l instanceof HTMLImageElement)return{rr_type:l.constructor.name,src:l.src};if(l instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:l.toDataURL()};if(l instanceof ImageData)return{rr_type:l.constructor.name,args:[ppB(l.data,D,U),l.width,l.height]};if(xHK(l,D)||typeof l==="object")return n=l.constructor.name,l=j89(l,D,U),{rr_type:n,index:l}}return l};
oPg=function(l,D,U,n){for(var y=[],A=_.B(Object.getOwnPropertyNames(D.CanvasRenderingContext2D.prototype)),C=A.next(),h={};!C.done;h={prop$jscomp$58:void 0},C=A.next()){h.prop$jscomp$58=C.value;try{if(typeof D.CanvasRenderingContext2D.prototype[h.prop$jscomp$58]==="function"){var b=F4(D.CanvasRenderingContext2D.prototype,h.prop$jscomp$58,function(u){return function(Q){return function(){var G=_.EW.apply(0,arguments),J=this;O2(this.canvas,U,n,!0)||setTimeout(function(){var L=FS9(G,D,J);l(J.canvas,{type:yh["2D"],
property:u.prop$jscomp$58,args:L})},0);
return Q.apply(this,G)}}}(h));
y.push(b)}}catch(u){C=ENG(D.CanvasRenderingContext2D.prototype,h.prop$jscomp$58,{set:function(Q){return function(G){l(this.canvas,{type:yh["2D"],property:Q.prop$jscomp$58,args:[G],setter:!0})}}(h)}),y.push(C)}}return function(){y.forEach(function(u){return u()})}};
wp9=function(l,D,U,n){var y=[];try{var A=F4(l.HTMLCanvasElement.prototype,"getContext",function(C){return function(h){var b=_.EW.apply(1,arguments);if(!O2(this,D,U,!0)){var u=h==="experimental-webgl"?"webgl":h;"__context"in this||(this.__context=u);n&&["webgl","webgl2"].includes(u)&&(b[0]&&typeof b[0]==="object"?(u=b[0],u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)):b.splice(0,1,{preserveDrawingBuffer:!0}))}return C.apply(this,[h].concat(_.zz(b)))}});
y.push(A)}catch(C){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){y.forEach(function(C){return C()})}};
r8C=function(l,D,U,n,y,A){for(var C=[],h=_.B(Object.getOwnPropertyNames(l)),b=h.next(),u={};!b.done;u={prop$jscomp$59:void 0},b=h.next())if(u.prop$jscomp$59=b.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u.prop$jscomp$59))try{if(typeof l[u.prop$jscomp$59]==="function"){var Q=F4(l,u.prop$jscomp$59,function(G){return function(J){return function(){var L=_.EW.apply(0,arguments),R=J.apply(this,L);j89(R,A,this);"tagName"in this.canvas&&!O2(this.canvas,n,y,!0)&&(L=
FS9(L,A,this),U(this.canvas,{type:D,property:G.prop$jscomp$59,args:L}));return R}}}(u));
C.push(Q)}}catch(G){b=ENG(l,u.prop$jscomp$59,{set:function(J){return function(L){U(this.canvas,{type:D,property:J.prop$jscomp$59,args:[L],setter:!0})}}(u)}),C.push(b)}return C};
zNN=function(l,D,U,n){var y=[];y.push.apply(y,_.zz(r8C(D.WebGLRenderingContext.prototype,1,l,U,n,D)));typeof D.WebGL2RenderingContext!=="undefined"&&y.push.apply(y,_.zz(r8C(D.WebGL2RenderingContext.prototype,2,l,U,n,D)));return function(){y.forEach(function(A){return A()})}};
Ucd=function(l){var D=l=l===void 0?{}:l,U=D.emit,n=D.checkoutEveryNms,y=D.checkoutEveryNth,A=D.blockClass===void 0?"rr-block":D.blockClass,C=D.blockSelector===void 0?null:D.blockSelector,h=D.ignoreClass===void 0?"rr-ignore":D.ignoreClass,b=D.ignoreSelector===void 0?null:D.ignoreSelector,u=D.maskTextClass===void 0?"rr-mask":D.maskTextClass,Q=D.maskTextSelector===void 0?null:D.maskTextSelector,G=D.inlineStylesheet===void 0?!0:D.inlineStylesheet,J=D.maskAllInputs,L=D.maskInputOptions,R=D.slimDOMOptions,
a=D.maskInputFn,S=D.maskTextFn,d=D.hooks,c=D.packFn,N=D.sampling===void 0?{}:D.sampling,z=D.dataURLOptions===void 0?{}:D.dataURLOptions,f=D.mousemoveWait,I=D.recordDOM===void 0?!0:D.recordDOM,iG=D.recordCanvas===void 0?!1:D.recordCanvas,CC=D.recordCrossOriginIframes===void 0?!1:D.recordCrossOriginIframes,vo=D.recordAfter===void 0?l.recordAfter==="DOMContentLoaded"?l.recordAfter:"load":D.recordAfter,td=D.userTriggeredOnInput===void 0?!1:D.userTriggeredOnInput,GN=D.collectFonts===void 0?!1:D.collectFonts,
Ms=D.inlineImages===void 0?!1:D.inlineImages,j3=D.plugins,wl=D.keepIframeSrcFn===void 0?function(){return!1}:D.keepIframeSrcFn,zN=D.ignoreCSSAttributes===void 0?new Set([]):D.ignoreCSSAttributes;
A6=D.errorHandler;var Z7=CC?window.parent===window:!0,Lm=!1;if(!Z7)try{window.parent.document&&(Lm=!1)}catch(uH){Lm=!0}if(Z7&&!U)throw Error("$e");if(!Z7&&!Lm)return function(){};
f!==void 0&&N.mousemove===void 0&&(N.mousemove=f);WH.reset();var Vg=J===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:L!==void 0?L:{password:!0},v5=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:R==="all",headMetaDescKeywords:R==="all",headTitleMutations:R==="all"}:
R?R:{};iLG();var mk,dy=0,eW=function(uH){for(var yq=_.B(j3||[]),TN=yq.next();!TN.done;TN=yq.next())TN=TN.value,TN.eventProcessor&&(uH=TN.eventProcessor(uH));c&&!Lm&&(uH=c(uH));return uH};
BH=function(uH,yq){uH.timestamp=bLB();var TN;((TN=iU[0])==null?0:TN.isFrozen())&&uH.type!==2&&(uH.type!==3||uH.data.source!==0)&&iU.forEach(function(l$){return l$.unfreeze()});
Z7?U==null||U(eW(uH),yq):Lm&&(yq={type:"rrweb",event:eW(uH),origin:window.location.origin,isCheckout:yq},window.parent.postMessage(yq,"*"));uH.type===2?(mk=uH,dy=0):uH.type!==3||uH.data.source===0&&uH.data.isAttachIframe||(dy++,uH=n&&uH.timestamp-mk.timestamp>n,(y&&dy>=y||uH)&&fr_(!0))};
var Qq=function(uH){BH({type:3,data:Object.assign({},{source:0},uH)})},Bo=function(uH){return BH({type:3,
data:Object.assign({},{source:3},uH)})},D7=function(uH){return BH({type:3,
data:Object.assign({},{source:9},uH)})},qr=new $HC({mutationCb:Qq,
adoptedStyleSheetCb:function(uH){return BH({type:3,data:Object.assign({},{source:15},uH)})}}),H5=new NIg({mirror:WH,
mutationCb:Qq,stylesheetManager:qr,recordCrossOriginIframes:CC,wrappedEmit:BH});l=_.B(j3||[]);for(D=l.next();!D.done;D=l.next())D=D.value,D.getMirror&&D.getMirror({nodeMirror:WH,crossOriginIframeMirror:H5.crossOriginIframeMirror,crossOriginIframeStyleMirror:H5.crossOriginIframeStyleMirror});var Mr=new s8l;EP_=new TI$({recordCanvas:iG,mutationCb:D7,win:window,blockClass:A,blockSelector:C,mirror:WH,sampling:N.canvas,dataURLOptions:z});var V_=new IrN({mutationCb:Qq,scrollCb:Bo,bypassOptions:{blockClass:A,
blockSelector:C,maskTextClass:u,maskTextSelector:Q,inlineStylesheet:G,maskInputOptions:Vg,dataURLOptions:z,maskTextFn:S,maskInputFn:a,recordCanvas:iG,inlineImages:Ms,sampling:N,slimDOMOptions:v5,iframeManager:H5,stylesheetManager:qr,canvasManager:EP_,keepIframeSrcFn:wl,processedNodeManager:Mr},mirror:WH});fr_=function(uH){uH=uH===void 0?!1:uH;if(I){BH({type:4,data:{href:window.location.href,width:HbB(),height:IzN()}},uH);qr.reset();V_.init();iU.forEach(function(TN){return TN.lock()});
var yq=sP9({mirror:WH,blockClass:A,blockSelector:C,maskTextClass:u,maskTextSelector:Q,inlineStylesheet:G,maskAllInputs:Vg,maskTextFn:S,maskInputFn:a,slimDOM:v5,dataURLOptions:z,recordCanvas:iG,inlineImages:Ms,onSerialize:function(TN){TN.nodeName==="IFRAME"&&WH.nodeMetaMap.get(TN)&&HLc(H5,TN);lr9(TN,WH)&&Ygg(qr,TN);TN&&w0(TN)&&OLC(V_,w0(TN),document)},
onIframeLoad:function(TN,l$){Vl3(H5,TN,l$);TN.contentWindow&&TN.contentDocument&&ipl(V_,TN.contentWindow.Element,TN.contentDocument)},
onStylesheetLoad:function(TN,l$){lOK(qr,TN,l$)},
keepIframeSrcFn:wl});yq?(BH({type:2,data:{node:yq,initialOffset:TxC(window)}},uH),iU.forEach(function(TN){return TN.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&eNC(qr,document.adoptedStyleSheets,WH.getId(document))):console.warn("Failed to snapshot the document")}};
try{var ec=[],Nr=function(uH){var yq;return lU(KS9)({mutationCb:Qq,mousemoveCb:function(TN,l$){return BH({type:3,data:{source:l$,positions:TN}})},
mouseInteractionCb:function(TN){return BH({type:3,data:Object.assign({},{source:2},TN)})},
scrollCb:Bo,viewportResizeCb:function(TN){return BH({type:3,data:Object.assign({},{source:4},TN)})},
inputCb:function(TN){return BH({type:3,data:Object.assign({},{source:5},TN)})},
mediaInteractionCb:function(TN){return BH({type:3,data:Object.assign({},{source:7},TN)})},
styleSheetRuleCb:function(TN){return BH({type:3,data:Object.assign({},{source:8},TN)})},
styleDeclarationCb:function(TN){return BH({type:3,data:Object.assign({},{source:13},TN)})},
canvasMutationCb:D7,fontCb:function(TN){return BH({type:3,data:Object.assign({},{source:10},TN)})},
selectionCb:function(TN){BH({type:3,data:Object.assign({},{source:14},TN)})},
customElementCb:function(TN){BH({type:3,data:Object.assign({},{source:16},TN)})},
blockClass:A,ignoreClass:h,ignoreSelector:b,maskTextClass:u,maskTextSelector:Q,maskInputOptions:Vg,inlineStylesheet:G,sampling:N,recordDOM:I,recordCanvas:iG,inlineImages:Ms,userTriggeredOnInput:td,collectFonts:GN,doc:uH,maskInputFn:a,maskTextFn:S,keepIframeSrcFn:wl,blockSelector:C,slimDOMOptions:v5,dataURLOptions:z,mirror:WH,iframeManager:H5,stylesheetManager:qr,shadowDomManager:V_,processedNodeManager:Mr,canvasManager:EP_,ignoreCSSAttributes:zN,plugins:(j3==null?void 0:(yq=j3.filter(function(TN){return TN.observer}))==
null?void 0:yq.map(function(TN){return{observer:TN.observer,
options:TN.options,callback:function(l$){return BH({type:6,data:{plugin:TN.name,payload:l$}})}}}))||[]},d)};
Dc9(H5,function(uH){try{ec.push(Nr(uH.contentDocument))}catch(yq){console.warn(yq)}});
var gy=function(){fr_();ec.push(Nr(document))};
document.readyState==="interactive"||document.readyState==="complete"?gy():(ec.push(HT("DOMContentLoaded",function(){BH({type:0,data:{}});vo==="DOMContentLoaded"&&gy()})),ec.push(HT("load",function(){BH({type:1,
data:{}});vo==="load"&&gy()},window)));
return function(){ec.forEach(function(uH){try{uH()}catch(yq){String(yq).toLowerCase().includes("cross-origin")||console.warn(yq)}});
Mr.destroy();A6=void 0}}catch(uH){console.warn(uH)}};
_.e=function(l,D){D=V1(YC(D));l.innerHTML=D};
A7G=function(l){var D=nKs;D||(D=y7d(),D=nKs=_.we.transpose(D));D=D[l];return typeof D==="string"?D:_.CI(l)};
WmB=function(l){l=String(l).toLowerCase();var D=y7d()[l];return typeof D==="string"?D:_.h6(l)};
BC9=function(l){l=l.toLowerCase();l=y7d()[l];return typeof l==="string"?l:null};
y7d=function(){if(!CLs){for(var l=Object.assign({},hn3),D=_.B(PLl),U=D.next();!U.done;U=D.next())U=U.value,l[U.toLowerCase()]=U;CLs=l}return CLs};
u6B=function(l,D){var U=window.customElements;return U&&U.get(l)||bpK[l]===!0?2:D.name==="HTMLUnknownElement"?1:D.name==="HTMLElement"&&gKC.test(l)?3:0};
G_l=function(l,D){switch(D){case "innerHTML":return vKN(l)===1?2:null;case "textContent":return l=vKN(l),l===1||l===6?1:null;default:var U,n;return(n=(U=Qp3[l.localName])==null?void 0:U[D])!=null?n:null}};
vKN=function(l){var D=l.localName,U=u6B(D,l.constructor);switch(U){case 0:case 1:return J7s(D,l);case 3:case 2:return 1;default:_.Tv(U,"got an unknown element classification")}};
J7s=function(l,D){var U=Object.hasOwnProperty.call(LmK,l)?LmK[l]:null;return U!==null?U:Object.hasOwnProperty.call(qa3,l)&&D instanceof SVGElement?qa3[l]:null};
M5s=function(l,D){return D};
ZpC=function(l){return(l=l.split(Rnd,2))?{url:l[0],metadata:l[1]}:null};
mcl=function(l){var D=String(l.url).replace(end,encodeURIComponent);if(l=l.metadata){end.lastIndex=0;if(end.test(l))return null;D+=" "+l}return D};
SaK=function(l){function D(u){var Q=u.localName;if(!u.getAttribute("is")&&u6B(Q,u.constructor)===2){var G;return(G=b)!=null?G:b=document.createElement("polyresinuncustomized")}(u=h[Q])||(u=h[Q]=document.createElement(Q));return u}
var U=l.reportHandler||void 0,n=l.safeTypesBridge||aO9,y=/^$/;if(l=l.allowedIdentifierPrefixes){l=_.B(l);for(var A=l.next();!A.done;A=l.next())y=new RegExp(y.source+"|^"+_.t5s(A.value))}U&&U(!1,"initResin",null);var C=XPd(y,n,U),h={},b=null;return function(u,Q,G){var J=u.nodeType;if(J!==Node.ELEMENT_NODE){if(J===Node.TEXT_NODE){Q=u.parentElement;G=!Q;if(Q&&Q.nodeType===Node.ELEMENT_NODE){J=Q.localName;var L=u6B(J,Q.constructor);switch(L){case 0:case 1:Q=J7s(J,Q);G=Q===1||Q===6;break;case 3:case 2:G=
!0;break;default:_.Tv(L,"got an unknown element classification")}}if(G)return function(d){return""+n(d,"STRING",d)}}return function(d){if(!d&&d!==document.all)return d;
U&&U(!0,"Failed to sanitize "+(u.parentElement&&u.parentElement.nodeName)+" #text node to value "+d,u.parentElement);return PH}}var R=u.localName;
J=D(u);var a=null;switch(G){case "attribute":if(WmB(Q)in J)break;return function(d){return d};
case "property":if(Q in J){a=G_l(J,Q);break}if((L=BC9(Q))&&L in J)break;return function(d){return d};
default:_.Tv(G,"got an unknown resin type, expected either 'property' or 'attribute'")}var S=G==="attribute"?Q.toLowerCase():A7G(Q);a||(a=aml(R,S,function(d){var c=u.getAttribute(d);return!c||/[\[\{]/.test(d)?null:c}));
return function(d){var c=bU,N=null;if(!d&&d!==document.all)return d;if(a!=null){var z=C[a],f=z.safeType;N=z.safeReplacement;f&&(c=n(d,f,bU));c===bU&&(z.filterString?(c=String(n(d,"STRING",d)),c=z.filterString(R,S,c)):z.filterRaw&&(c=z.filterRaw(R,S,d,u)),c===N&&(c=bU))}c===bU&&(c=N||PH,U&&U(!0,"Failed to sanitize attribute of <"+R+">: <"+R+" "+S+'="'+d+'">',u));return c}}};
XPd=function(l,D,U){return[,{filterRaw:function(n,y,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:k_d,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:k_d,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:PH,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:dcC,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(n,y,A){A=
String(A).toLowerCase();return S1K(n,y,A)?A:PH},
safeReplacement:PH,safeType:void 0},,{filterRaw:void 0,filterString:function(n,y,A){return l.test(A)?A:PH},
safeReplacement:PH,safeType:"CONSTANT"},{filterRaw:function(n,y,A,C){if(typeof A==="string")var h=(h=A.match(Km9))?h.map(ZpC).filter(Boolean):[];else if(Array.isArray(A))h=A;else return k_d;var b=h;h=[];var u=[],Q={};if(Array.isArray(b))for(var G=0,J=b.length;G<J;++G){var L=b[G],R=L&&L.url;if(R){var a=D(R,"URL",Q);if(a){var S=a!==Q;(S?h:u).push({url:S?a:R,metadata:L.metadata})}}}else u.push(b);b=u.length?JSON.stringify(u):null;u=bU;if(h.length){if(!Array.isArray(h))throw Error();u=h.map(mcl).filter(Boolean).join(" , ")||
bU}b&&U&&U(!0,"Failed to sanitize attribute value of <"+n+">: <"+n+" "+y+'="'+A+'">: '+b,C);return u===bU?k_d:u},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
c7l=function(l){var D=SaK(l);return function(U,n,y,A){return A||A===document.all?D(U,n,y)(A):A}};
gV=function(l,D){function U(){function y(h,b,u){for(b=Reflect.getMetadata("parameters",h)||[];b.length<=u;)b.push(null);b[u]=b[u]||[];b[u].push(C);Reflect.defineMetadata(b,h);return h}
var A=_.EW.apply(0,arguments);if(this instanceof U)return n.apply(this,A),this;var C=new (Function.prototype.bind.apply(U,[null].concat(_.zz(A))));y.annotation=C;return y}
var n=pPg(D);U.prototype.toString=function(){return"@"+l};
return U.annotationCls=U};
pPg=function(l){return function(){var D=_.EW.apply(0,arguments),U=this;l.forEach(function(n,y){y=D[y];if(Array.isArray(n))U[n[0]]=y&&y!==void 0?y:n[1];else for(var A in n)U[A]=y&&y[A]!==void 0?y[A]:n[A]})}};
xcN=function(l){return l!==void 0&&l!==null};
uU=function(l){if(typeof l==="string")return l;if(l===void 0||l===null)return""+l;if(l.overriddenName)return l.overriddenName;if(l.name)return l.name;l=l.toString();var D=l.indexOf("\n");return D===-1?l:l.substring(0,D)};
jpd=function(l){l.__forward_ref__=jpd;l.toString=function(){return uU(this())};
return l};
vH=function(l){return typeof l==="function"&&l.hasOwnProperty("__forward_ref__")&&l.__forward_ref__===jpd?l():l};
FmB=function(l){return l?l.map(function(D){return new (Function.prototype.bind.apply(D.type.annotationCls,[null].concat(_.zz(D.args?D.args:[]))))}):[]};
oKs=function(l){for(var D=[],U=0;U<l.length;++U){if(D.indexOf(l[U])>-1){D.push(l[U]);break}D.push(l[U])}return D};
wP9=function(l){return l.length>1?" ("+oKs(l.slice().reverse()).map(function(D){return uU(D.token)}).join(" -> ")+")":""};
znC=function(l,D,U,n){if(n){var y=Error("cf``"+(n instanceof Error?n.message:n));y.ngOriginalError=n}else y=Error();y.addKey=r7$;y.keys=[D];y.injectors=[l];y.constructResolvingMessage=U;y.message=y.constructResolvingMessage();y.ngOriginalError=n;return y};
r7$=function(l,D){this.injectors.push(l);this.keys.push(D);this.message=this.constructResolvingMessage()};
fO9=function(l,D){return znC(l,D,function(){return"No provider for "+uU(this.keys[0].token)+"!"+wP9(this.keys)})};
$cG=function(l,D){return znC(l,D,function(){return"Cannot instantiate cyclic dependency!"+wP9(this.keys)})};
NCC=function(l,D,U){return znC(l,U,function(){var n=uU(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+n+"!"+wP9(this.keys)+"."},D)};
sp3=function(l,D){for(var U=[],n=0,y=D.length;n<y;n++){var A=D[n];A&&A.length!=0?U.push(A.map(uU).join(" ")):U.push("?")}return Error("gf`"+uU(l)+"`"+U.join(", ")+"`"+uU(l))};
V5$=function(l){var D=void 0,U=void 0;if(l&&l.useClass!==void 0){D=l.useClass;var n=vH(l.useClass);var y=EK_.factory(n);n=TCl(n)}else l&&l.useExisting!==void 0?(y=function(A){return A},n=[IOc(Qh.get(vH(l.useExisting)))]):l&&l.useFactory!==void 0?(y=l.useFactory,n=Hpd(l.useFactory,l.deps)):(U=l.useValue,y=function(){return l.useValue},n=Ya3);
return new Ops(y,n,D,U)};
lWC=function(l){return new inc(Qh.get(vH(l.provide)),[V5$(l)],l.multi)};
Ufo=function(l){l=DfB(l,[]).map(lWC);for(var D=new Map,U=0;U<l.length;U++){var n=l[U],y=D.get(n.key.id);if(y){if(n.multiProvider!==y.multiProvider)throw Error("jf`"+y+"`"+n);if(n.multiProvider)for(var A=0;A<n.resolvedFactories.length;A++)y.resolvedFactories.push(n.resolvedFactories[A]);else D.set(n.key.id,n)}else y=void 0,n.multiProvider?y=new inc(n.key,n.resolvedFactories.slice(),n.multiProvider):y=n,D.set(n.key.id,y)}return Array.from(D.values())};
DfB=function(l,D){l.forEach(function(U){if(U instanceof nAG)D.push({provide:U,useClass:U});else if(U&&typeof U=="object"&&U.provide!==void 0)D.push(U);else if(U instanceof Array)DfB(U,D);else throw Error("ff`"+U);});
return D};
Hpd=function(l,D){if(D){var U=D.map(function(n){return[n]});
return D.map(function(n){return yVC(l,n,U)})}return TCl(l)};
TCl=function(l){var D=EK_.parameters(l);if(!D)return[];if(D.some(function(U){return U==null}))throw sp3(l,D);
return D.map(function(U){return yVC(l,U,D)})};
yVC=function(l,D,U){var n=null,y=!1;if(!Array.isArray(D))return D instanceof AVN?WlC(D.token,y,null):WlC(D,y,null);for(var A=null,C=0;C<D.length;++C){var h=D[C];if(h instanceof nAG)n=h;else if(h instanceof AVN)n=h.token;else if(h instanceof B7N)y=!0;else if(h instanceof CK3||h instanceof hV_)A=h}n=vH(n);if(n!=null)return WlC(n,y,A);throw sp3(l,U);};
WlC=function(l,D,U){return new PK9(Qh.get(vH(l)),D,U)};
bn9=function(l,D){for(var U=Array(l.providers.length),n=0;n<l.providers.length;++n){var y=n;if(n<0||n>=l.providers.length)throw Error("hf`"+n);U[y]=D(l.providers[n])}return U};
gAs=function(l){return typeof l==="function"&&EK_.parameters(l).every(function(D){return!!D})};
QdB=function(l){var D=uXN;vAg.get(l)||vAg.set(l,new D);return vAg.get(l)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(l)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(l)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l,D){var U,n;if(l.contains(D))return!0;l=_.Ga(l).querySelectorAll("content,slot");for(U=0;U<l.length;++U){var y=_.Ga(l[U]).getDistributedNodes();for(n=0;n<y.length;++n)if(y[n].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(y[n],D))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l){l.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(l)&&l.preventDefault();l.targetTouches&&(l=l.targetTouches[0],GLC=l.pageX,JVc=l.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 l=0,D=J6.length;l<D;l++)document.addEventListener(J6[l],_._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 l=0,D=J6.length;l<D;l++)document.removeEventListener(J6[l],_._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(l){var D=_.Ga(l).rootTarget;l.type!=="touchmove"&&Ll9!==D&&(Ll9=D,qIc=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Ga(l).path));if(!qIc.length)return!0;if(l.type==="touchstart")return!1;l=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(l);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(qIc,l.deltaX,l.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l){for(var D=[],U=l.indexOf(MLN),n=0;n<=U;n++)if(l[n].nodeType===Node.ELEMENT_NODE){var y=l[n],A=y.style;A.overflow!=="scroll"&&A.overflow!=="auto"&&(A=window.getComputedStyle(y));A.overflow!=="scroll"&&A.overflow!=="auto"||D.push(y)}return D};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(l,D,U){if(D||U)for(var n=Math.abs(U)>=Math.abs(D),y=0;y<l.length;y++){var A=l[y];if(n?U<0?A.scrollTop>0:A.scrollTop<A.scrollHeight-A.clientHeight:D<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(l){var D={deltaX:l.deltaX,deltaY:l.deltaY};"deltaX"in l||("wheelDeltaX"in l&&"wheelDeltaY"in l?(D.deltaX=-l.wheelDeltaX,D.deltaY=-l.wheelDeltaY):"wheelDelta"in l?(D.deltaX=0,D.deltaY=-l.wheelDelta):"axis"in l?(D.deltaX=l.axis===1?l.detail:0,D.deltaY=l.axis===2?l.detail:0):l.targetTouches&&(l=l.targetTouches[0],D.deltaX=GLC-l.pageX,D.deltaY=JVc-l.pageY));return D};
RVB=function(l){this.element=l;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
eV3=function(l){this.element=l;this.color=window.getComputedStyle(l).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");_.Ga(this.waveContainer).appendChild(this.wave);Zns(this)};
LI=function(l,D){for(var U in l)if(U.toLowerCase()===D.toLowerCase())return l[U]};
mfB=function(l,D){for(var U in l)if(U.toLowerCase()===D.toLowerCase()){delete l[U];break}};
tLG=function(l){l=_.we.clone(l);for(var D=0;D<aWl.length;++D){var U=aWl[D],n=LI(l,U);n&&(l["X-Goog-Upload-Header-"+U]=n,mfB(l,U))}return l};
Xz$=function(l){l=_.we.clone(l);mfB(l,"X-Goog-Upload-Status")};
kL_=function(l){return SIo.some(function(D){return D.test(l)})};
pz$=function(l,D){var U;var n=(U=l.formContent)==null?void 0:U.locale;U=n==null?void 0:n.split("-")[0];n=n&&df9.includes(n)?n:U&&df9.includes(U)?U:void 0;n=(n!=null?n:"en").replaceAll("-","_").toLowerCase();var y;l=((y=l.initializationData)==null?0:y.useNightlyRelease)?"nightly":"live";var A;return(D==null?0:(A=D.getEnableAlohaBinarySplit)==null?0:A.call(D))?_.Ja(Kld,l):_.Ja(cVl,l,n)};
FlG=function(l,D,U,n){if(xfB&&jdG===D)return xfB;jdG=D;var y=pz$(l,n);return xfB=D.feedbackV2GlobalObject?Promise.resolve(D.feedbackV2GlobalObject):new Promise(function(A,C){var h=_.SU("SCRIPT");_.BY(h,y);h.onload=function(){D.feedbackV2GlobalObject?A(D.feedbackV2GlobalObject):C(Error("mf"))};
h.onerror=function(){C(Error("nf`"+y.toString()))};
U.body.appendChild(h)})};
rVc=function(l,D,U,n){if(oAC&&wzl===D)return oAC;wzl=D;var y=pz$(l,n);return oAC=D.feedbackV2GlobalObject?Promise.resolve(D.feedbackV2GlobalObject):new Promise(function(A,C){var h=_.SU("SCRIPT");_.BY(h,y);h.onload=function(){D.feedbackV2GlobalObject?A(D.feedbackV2GlobalObject):C(Error("mf"))};
h.onerror=function(){C(Error("nf`"+y.toString()))};
U.body.appendChild(h)})};
zVs=function(l,D,U,n,y){y=y===void 0?!0:y;var A,C,h,b,u;return _.P(function(Q){switch(Q.nextAddress){case 1:return A=Date.now(),Q.yield(FlG(l,U,n,D),2);case 2:C=Q.yieldResult;if(!(y||((b=l.initializationData)==null?0:b.useNightlyRelease)||((u=l.initializationData)==null?0:u.isLocalServer))){h=C.initializeFeedbackClient(l,A,D);Q.jumpTo(3);break}return Q.yield(C.initializeFeedbackClientAsync(l,A,D),4);case 4:h=Q.yieldResult;case 3:return h.initiateAloha(),Q.return(h)}})};
fWK=function(l,D,U,n){var y,A,C;return _.P(function(h){if(h.nextAddress==1)return y=Date.now(),h.yield(rVc(l,U,n.document,D),2);if(h.nextAddress!=3)return A=h.yieldResult,h.yield(A.initializeFeedbackClientAsync(l,y,D,n),3);C=h.yieldResult;C.initiateAloha();return h.return(C)})};
$fd=function(l,D,U){var n=!0;n=n===void 0?!0:n;var y,A,C,h,b,u,Q,G;return _.P(function(J){y=U||_.nC;if((A=D)==null?0:(h=(C=A).getEnableAlohaBinarySplit)==null?0:h.call(C)){b=y;if(b.isFormOpened)throw new qA;b.isFormOpened=!0;l.callbacks=l.callbacks||{};u=l.callbacks.onClose||function(){};
l.callbacks.onClose=function(L){b.isFormOpened=!1;u(L)};
try{return J.return(fWK(l,D,b,y))}catch(L){throw b.isFormOpened=!1,L;}}else{Q=y;if(Q.isFormOpened)throw new qA;Q.isFormOpened=!0;l.callbacks=l.callbacks||{};G=l.callbacks.onClose||function(){};
l.callbacks.onClose=function(L){Q.isFormOpened=!1;G(L)};
try{return J.return(zVs(l,D,Q,y.document,n))}catch(L){throw Q.isFormOpened=!1,L;}}_.Kz(J)})};
IW9=function(l,D){return _.P(function(U){return U.return(new Promise(function(n,y){Number.isInteger(Number(l))&&Number(l)>0?(y=N7B(D!=null?D:"")+"/aloha_form_properties?productId="+l,sdd(y,function(A){A=A.target;var C=null;try{var h=JSON,b=h.stringify;if(A.JSC$9877_xhr_){var u=A.JSC$9877_xhr_.responseText;u.indexOf(")]}'\n")==0&&(u=u.substring(5));var Q=(0,_.MA)(u)}else Q=void 0;C=Ijd(EA_,b.call(h,Q))}catch(G){b=new EA_,Q=T7N(),Q=_.RS(Q,13,!1),Q=_.RS(Q,14,!0),Q=_.RS(Q,15,!0),Q=_.RS(Q,20,!1),C=_.al(b,
1,Q)}n(C)},"GET","",{},2E3,!0)):y(Error("of`"+l))}))})};
N7B=function(l){return kL_(l)?l:"https://www.google.com/tools/feedback"};
VLK=function(l){l=l.match(new RegExp(Hnl,"gi"))||[];l=_.B(l);for(var D=l.next();!D.done;D=l.next()){D=D.value;a:{var U=_.B(YI9);for(var n=U.next();!n.done;n=U.next())if(n.value.test(D)){U=!1;break a}U=!0}if(!U)a:{U=_.B(OnC);for(n=U.next();!n.done;n=U.next())if(n.value.test(D)){U=!0;break a}U=!1}if(U)return!0}return!1};
iiG=function(l,D){var U={},n=Object.keys(l);n=_.B(n);for(var y=n.next();!y.done;y=n.next())y=y.value,U[y]=D(y,l[y]);return U};
leB=function(l){switch(l){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"}};
UTc=function(l){if(window.crypto&&window.crypto.getRandomValues)try{var D=Array(l),U=new Uint8Array(l);window.crypto.getRandomValues(U);for(var n=0;n<D.length;n++)D[n]=U[n];return D}catch(A){}D=Array(l);for(U=0;U<l;U++){n=Date.now();for(var y=0;y<n%23;y++)D[U]=Math.random();D[U]=Math.floor(Math.random()*256)}if(DT9)for(U=1,n=0;n<DT9.length;n++)D[U%l]^=D[(U-1)%l]/4^DT9.charCodeAt(n),U++;return D};
eG=function(l){l=UTc(l);for(var D=[],U=0;U<l.length;U++)D.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(l[U]&63));return D.join("")};
nsN=function(){var l=_.nC.ytLoggingDocDocumentNonce_;l||(l=eG(16),_.vG("ytLoggingDocDocumentNonce_",l));return l};
AZo=function(l){l&&_.Na("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:yZ$,clientScreenNonce:l})};
WRG=function(l){return _.H3("client-screen-nonce-store",{})[l===void 0?0:l]};
BDg=function(l,D){D=D===void 0?0:D;var U=_.H3("client-screen-nonce-store");U||(U={},_.IN("client-screen-nonce-store",U));U[D]=l};
C3l=function(l){l=l===void 0?0:l;return l===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+l};
hRg=function(l){return _.H3(C3l(l===void 0?0:l))};
_.aS=function(l){return(l=hRg(l===void 0?0:l))?new mQ({veType:l,youtubeData:void 0,jspbYoutubeData:void 0}):null};
P39=function(){var l=_.H3("csn-to-ctt-auth-info");l||(l={},_.IN("csn-to-ctt-auth-info",l));return l};
bi3=function(){return Object.values(_.H3("client-screen-nonce-store",{})).filter(function(l){return l!==void 0})};
_.t6=function(l){l=WRG(l===void 0?0:l);if(!l&&!_.il("USE_CSN_FALLBACK",!0))return null;l||(l="UNDEFINED_CSN");return l?l:null};
uHK=function(l){for(var D=_.B(Object.values(gsB)),U=D.next();!U.done;U=D.next())if(_.t6(U.value)===l)return!0;return!1};
vsg=function(l,D,U){var n=P39();(U=_.t6(U))&&delete n[U];D&&(n[l]=D)};
XG=function(l){return P39()[l]};
_.SG=function(l,D,U,n){U=U===void 0?0:U;if(l!==WRG(U)||D!==_.H3(C3l(U)))if(vsg(l,n,U),BDg(l,U),_.IN(C3l(U),D),D=function(){setTimeout(function(){AZo(l)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(D)}catch(y){D()}else D()};
QxK=function(l,D){D=D===void 0?"":D;var U=[],n;for(n in l)if(l.hasOwnProperty(n)){var y=D!==""?D+"."+n:n;typeof l[n]==="object"?U.push.apply(U,_.zz(QxK(l[n],y))):U.push([y,l[n]])}U.sort();return U};
_.dV=function(l){var D=_.EW.apply(1,arguments);if(!k2(l)||D.some(function(n){return!k2(n)}))throw Error("pf");
D=_.B(D);for(var U=D.next();!U.done;U=D.next())G29(l,U.value)};
G29=function(l,D){for(var U in D)if(k2(D[U])){if(U in l&&!k2(l[U]))throw Error("qf");U in l||(l[U]={});G29(l[U],D[U])}else if(JZl(D[U])){if(U in l&&!JZl(l[U]))throw Error("rf");U in l||(l[U]=[]);LR9(l[U],D[U])}else l[U]=D[U];return l};
LR9=function(l,D){D=_.B(D);for(var U=D.next();!U.done;U=D.next())U=U.value,k2(U)?l.push(G29({},U)):JZl(U)?l.push(LR9([],U)):l.push(U);return l};
k2=function(l){return typeof l==="object"&&!Array.isArray(l)};
JZl=function(l){return typeof l==="object"&&Array.isArray(l)};
Mfs=function(l){for(var D=_.B(Object.entries(qCl)),U=D.next();!U.done;U=D.next())if(U=_.B(U.value),U.next(),U=U.next().value,U==="SLI_STATUS_"+l)return U;return"SLI_STATUS_UNKNOWN"};
_.KI=function(l,D,U,n){return RRl(l,D,function(){return new _.ZiG(l,D,U,n)})};
_.eRo=function(){return _.KI("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
mT_=function(){return _.KI("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
cH=function(){return _.KI("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
ae$=function(){return _.KI("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
tfs=function(){return _.KI("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Xy3=function(){return _.KI("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
dTG=function(l){l&&(l.dataset?l.dataset[SC3()]="true":_.hv([_.QK(k2c)],l,"data-loaded","true".toString()))};
KR_=function(l){return l?l.dataset?l.dataset[SC3()]:l.getAttribute("data-loaded"):null};
SC3=function(){return cZB.loaded||(cZB.loaded="loaded".replace(/\-([a-z])/g,function(l,D){return D.toUpperCase()}))};
_.pI=function(l,D,U){pyC(l,D,U===void 0?null:U)};
_.jxB=function(l,D){l&&D&&(l=""+_.Ho(D),(l=xTl[l])&&_.MQc(l))};
pyC=function(l,D,U){U=U===void 0?null:U;var n=_.FRs(typeof l==="string"?l:l.toString()),y=document.getElementById(n),A=y&&KR_(y),C=y&&!A;A?D&&D():(D&&(A=_.Ma(n,D),D=""+_.Ho(D),xTl[D]=A),C||(y=osd(l,n,function(){KR_(y)||(dTG(y),_.RHd(n),_.tc(function(){_.eH$(n)},0))},U)))};
osd=function(l,D,U,n){n=n===void 0?null:n;var y=_.SU("SCRIPT");y.id=D;y.onload=function(){U&&setTimeout(U,0)};
y.onreadystatechange=function(){switch(y.readyState){case "loaded":case "complete":y.onload()}};
n&&y.setAttribute("nonce",n);_.BY(y,typeof l==="string"?_.ws(l):l);l=document.getElementsByTagName("head")[0]||document.body;l.insertBefore(y,l.firstChild);return y};
_.FRs=function(l){var D=document.createElement("a");Il(D,l);return"js-"+x2(D.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
wy$=function(l){var D=_.H3("INNERTUBE_HOST_OVERRIDE");D&&(l=String(D)+String(_.jG(l)));return l};
rZ$=function(l){var D={};_.q("json_condensed_response")&&(D.prettyPrint="false");return l=$AC(l,D)};
_.FG=function(l){return vS(l)?"same-origin":"include"};
_.oS=function(l){return vS(l)?"same-origin":"cors"};
wV=function(l,D,U){U=U===void 0?{}:U;l={method:D===void 0?"POST":D,mode:_.oS(l),credentials:_.FG(l)};D={};for(var n=_.B(Object.keys(U)),y=n.next();!y.done;y=n.next())y=y.value,U[y]&&(D[y]=U[y]);Object.keys(D).length>0&&(l.headers=D);return l};
_.rV=function(l,D){D=D===void 0?{}:D;return"service:"+l+"/"+Object.keys(D).sort().map(function(U){return U+":"+D[U]}).join("/")};
zR9=function(l){var D,U,n,y;l=(D=_.M(l,_.za))==null?void 0:(U=D.watchEndpointSupportedOnesieConfig)==null?void 0:(n=U.html5PlaybackOnesieConfig)==null?void 0:(y=n.commonConfig)==null?void 0:y.url;if(!l)return[];D=new _.fI(l);return D.JSC$10113_domain_?["https://"+D.JSC$10113_domain_+"/generate_204"]:[]};
_.NDB=function(){return feN()||H3_()||$TN&&OG("version/")?!0:_.H3("EOM_VISITOR_DATA")?!1:!0};
sxl=function(l){var D=l.docid||l.video_id||l.videoId||l.id;if(D)return D;D=l.raw_player_response;D||(l=l.player_response)&&(D=JSON.parse(l));return D&&D.videoDetails&&D.videoDetails.videoId||null};
Eso=function(l){return l.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
$2=function(l){return!isNaN(Number(l))&&!_.hd(l)};
_.s9=function(l,D,U,n){n=n===void 0?!0:n;var y=_.H3("VALID_SESSION_TEMPDATA_DOMAINS",[]),A=_.bl(window.location.href);A&&y.push(A);A=_.bl(l);if(_.rl(y,A)||!A&&_.Ad(l,"/"))if(y=document.createElement("a"),Il(y,l),l=y.href)if(l=_.jG(l),l=_.NA(l))n&&!D.csn&&(D.itct||D.ved)&&(D=Object.assign({csn:_.t6()},D)),U?(U=parseInt(U,10),isFinite(U)&&U>0&&TD9(l,D,U)):TD9(l,D)};
Hic=function(l){var D=_.H3("VALID_SESSION_TEMPDATA_DOMAINS",[]),U=_.bl(window.location.href);U&&D.push(U);U=_.bl(l);if(!(_.rl(D,U)||!U&&_.Ad(l,"/")))return null;l=_.jG(l);(l=_.NA(l))?(l=Iec(l),l=(l=_.xZ.get(l,void 0)||null)?_.WS(l):{}):l=null;return l};
TD9=function(l,D,U){l=Iec(l);D=D?_.Kt(D):"";U=U||5;_.NDB()&&_.j_(l,D,U)};
Iec=function(l){for(var D=_.B(YCc),U=D.next();!U.done;U=D.next())l=_.E9(l,U.value);return"ST-"+x2(l).toString(36)};
_.OiG=function(l){if(l.requestFullscreen)l=l.requestFullscreen(void 0);else if(l.webkitRequestFullscreen)l=l.webkitRequestFullscreen();else if(l.mozRequestFullScreen)l=l.mozRequestFullScreen();else if(l.msRequestFullscreen)l=l.msRequestFullscreen();else if(l.webkitEnterFullscreen)l=l.webkitEnterFullscreen();else return Promise.reject(Error("Af"));return l instanceof Promise?l:Promise.resolve()};
_.IS=function(l){var D;_.Bh$(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Ta()==l&&(D=document):D=l;if(D&&(l=_.Bh$(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],D))){l.call(D)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Ta=function(){var l=l===void 0?!1:l;var D=_.Bh$(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(l)for(;D&&D.shadowRoot;)D=D.shadowRoot.fullscreenElement;return D?D:null};
_.HH=function(l,D){D=D===void 0?!0:D;l.addEventListener("wheel",Vfd);l.overscrollConfig={cooldown:D}};
_.Y2=function(l){l.overscrollConfig=void 0;l.removeEventListener("wheel",Vfd)};
Vfd=function(l){var D=l.deltaY,U=l.target,n=null;if(window.Polymer&&window.Polymer.Element){if(U=l.path||l.composedPath&&l.composedPath()){U=_.B(U);for(var y=U.next();!y.done&&(y=y.value,!i5$(y,D));y=U.next())if(y.overscrollConfig){n=y;break}}}else for(;U&&!i5$(U,D);){if(U.overscrollConfig){n=U;break}U=U.parentElement}n&&(D=n.overscrollConfig,D.cooldown?(n=l.deltaY,U=D.lastDeltaY||0,D.lastDeltaY=n,y=D.lastStopped||0,U&&y&&U>0==n>0?Math.abs(U)>=Math.abs(n)?(n=y+1200,U=!1):(n=y+600,U=!0):(n=Date.now()+
600,U=!0),n>Date.now()&&(l.preventDefault(),U&&(D.lastStopped=Date.now()))):l.preventDefault())};
i5$=function(l,D){return D<0&&l.scrollTop>0||D>0&&l.scrollTop<l.scrollHeight-l.clientHeight-1?(l=getComputedStyle(l).overflowY,l=="auto"||l=="scroll"):!1};
_.O9=function(l,D,U,n){n||(n={bubbles:!0,cancelable:!1,composed:!0});U!==null&&U!==void 0&&(n.detail=U);var y=new CustomEvent(D,n);_.q("untrack_fire_custom_event_killswitch")?l.dispatchEvent(y):_.mU(function(){return void l.dispatchEvent(y)});
return y};
lxg=function(l){var D=window,U=function(n){D.removeEventListener("yt-navigate-start",U);return l.call(D,n)};
D.addEventListener("yt-navigate-start",U,void 0)};
_.Vh=function(l,D,U,n){D=new D$l(D,!(n===void 0||!n),U);_.O9(l,"yt-action",D);return D.returnValue};
_.iu=function(l,D,U){return _.Vh(l,D,U,!0)};
_.DP=function(l,D,U,n){D&&D.length&&D.forEach(function(y){var A=yiC(y);A&&(_.q("handle_service_request_actions")&&y.commandMetadata&&y.commandMetadata.webCommandMetadata&&y.commandMetadata.webCommandMetadata.sendPost?_.lu(U?U:l,[y]):_.iu(l,A,[y,U,n]))})};
_.lu=function(l,D){var U=[l];D&&U.push.apply(U,D);D=_.Vh(l,"yt-service-request",U);return D.length>0&&(D=D[0],_.O9(l,"yt-service-request-sent",D),D&&D.ajaxPromise)?(D.ajaxPromise.then(function(n){_.O9(l,"yt-service-request-completed",n)},function(n){_.O9(l,"yt-service-request-error",{error:n,
params:U})},l),D.ajaxPromise):_.Ut()};
_.y0=function(l,D){if(_.q("handle_service_request_actions"))_.DP(D,l,D);else{l=_.B(l);for(var U=l.next();!U.done;U=l.next()){U=U.value;var n=void 0;((n=_.M(U,_.n3))==null?0:n.commands)?_.y0(_.M(U,_.n3).commands,D):(n=void 0,((n=_.M(U,_.AJ))==null?0:n.actions)?_.y0(_.M(U,_.AJ).actions,D):(n=void 0,((n=_.M(U.commandMetadata,_.W6))==null?0:n.sendPost)?_.lu(D,[U]):_.DP(D,[U],D)))}}};
_.n0G=function(l,D,U){D=D===void 0?{}:D;typeof D==="function"&&(D={callback:D});U||D._c&&D._c.jsl&&D._c.jsl.h||_.we.extend(D,{_c:{jsl:{h:_.H3("GAPI_HINT_PARAMS")}}});(D.gapiHintOverride||_.H3("GAPI_HINT_OVERRIDE"))&&(U=_.BS(document.location.href).gapi_jsh)&&_.we.extend(D,{_c:{jsl:{h:U}}});U$3(l,D)};
_.C3=function(l,D,U){D=D===void 0?{}:D;l=(l=l in B6?B6[l]:U)||"";U={};for(var n in D){U={key$jscomp$844:U.key$jscomp$844};U.key$jscomp$844=n;var y=function(A){return function(){return String(D[A.key$jscomp$844])}}(U);
l=l.replace(new RegExp("\\$\\{"+U.key$jscomp$844+"\\}","gi"),y);l=l.replace(new RegExp("\\$"+U.key$jscomp$844,"gi"),y)}return l};
_.hJ=function(l,D){return yMB(l in B6?B6[l]:{},D)};
yMB=function(l,D){var U=_.H3("I18N_PLURAL_RULES");U||(U=function(n){return n==1?"one":"other"});
return(l=l["case"+D]||l[U(D)])?l.replace("#",D.toString()):D+""};
BA3=function(l){var D=AMG(l),U=document.getElementById(D),n=U&&KR_(U);n||U&&!n||(U=W59(l,D,function(){if(!KR_(U)){dTG(U);_.RHd(D);var y=_.P6(_.eH$,D);_.tc(y,0)}}))};
W59=function(l,D,U){var n=document.createElement("link");n.id=D;n.onload=function(){U&&setTimeout(U,0)};
l=_.ws(l);_.PY(n,l,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(n);return n};
AMG=function(l){var D=_.SU("A");Il(D,jD(l));return"css-"+x2(D.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.hEB=function(l){var D=CvG();l!==D&&(D=_.bu(),!_.q("web_autonav_allow_off_by_default")&&l||_.gj(0,141,!0),_.gj(0,140,!l),D.save())};
CvG=function(){var l=_.bu();return _.q("web_autonav_allow_off_by_default")&&!l.getFlag(141)&&_.H3("AUTONAV_OFF_BY_DEFAULT")?!1:!l.getFlag(140)};
PvK=function(l,D){var U,n;l=((U=l.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(n=U.videoAuthorizationToken)==null?void 0:n.credentialTransferTokens)||[];for(U=0;U<l.length;++U)if(l[U].scope===D)return l[U].token||void 0};
b5C=function(l){for(var D=0,U=0;U<l.length;U++)D=D*31+l.charCodeAt(U),U<l.length-1&&(D%=0x800000000000);return D%1E5};
_.uu=function(l){return _.UG("ytcsi."+(l||"")+"data_")||g0$(l)};
_.udo=function(l){l=_.uu(l);l.metadata||(l.metadata={});return l.metadata};
_.v09=function(l){l=_.uu(l);l.tick||(l.tick={});return l.tick};
_.v6=function(l){l=_.uu(l);if(l.gel){var D=l.gel;D.gelInfos||(D.gelInfos={});D.gelTicks||(D.gelTicks={})}else l.gel={gelTicks:{},gelInfos:{}};return l.gel};
_.Q6B=function(l){l=_.v6(l);l.gelInfos||(l.gelInfos={});return l.gelInfos};
Gdo=function(l){var D=_.uu(l).nonce;D||(D=eG(16),_.uu(l).nonce=D);return D};
g0$=function(l){var D={tick:{},info:{}};_.vG("ytcsi."+(l||"")+"data_",D);return D};
JM9=function(){var l=_.UG("ytcsi.debug");l||(l=[],_.vG("ytcsi.debug",l),_.vG("ytcsi.reference",{}));return l};
_.Q0=function(l){l=l||"";var D=L5B();if(D[l])return D[l];var U=JM9(),n={timerName:l,info:{},tick:{},span:{},jspbInfo:[]};U.push(n);return D[l]=n};
qiG=function(l){l=l||"";var D=L5B();D[l]&&delete D[l];var U=JM9(),n={timerName:l,info:{},tick:{},span:{},jspbInfo:[]};U.push(n);D[l]=n};
L5B=function(){var l=_.UG("ytcsi.reference");if(l)return l;JM9();return _.UG("ytcsi.reference")};
_.REd=function(l){return MvB[l]||"LATENCY_ACTION_UNKNOWN"};
axg=function(l,D,U){U=U===void 0?{}:U;var n=!1;_.il("ytLoggingEventsDefaultDisabled",!1)&&(n=!0);n=n?null:$G;U=U===void 0?{}:U;var y=Math.round(U.timestamp||(0,_.J3)());_.j2(D,1,y<Number.MAX_SAFE_INTEGER?y:0);y=new Z5_;if(U.lact)_.j2(y,1,isFinite(U.lact)?U.lact:-1);else if(U.timestamp)_.j2(y,1,-1);else{var A=_.Gj();_.j2(y,1,isFinite(A)?A:-1)}if(U.sequenceGroup&&!_.q("web_gel_sequence_info_killswitch")){A=U.sequenceGroup;var C=c1_(A),h=new eEs;_.j2(h,2,C);_.c7(h,1,A);_.al(y,3,h);U.endOfSequence&&delete m$B[U.sequenceGroup]}_.al(D,
33,y);(U.sendIsolatedPayload?reB:zHd)(l,{endpoint:"log_event",payload:D,cttAuthInfo:U.cttAuthInfo,dangerousLogToVisitorSession:U.dangerousLogToVisitorSession},n)};
_.JJ=function(){return(_.q("csi_use_time_origin")||_.q("csi_use_time_origin_tvhtml5"))&&_.Go.timeOrigin?Math.floor(_.Go.timeOrigin):_.Go.timing.navigationStart};
_.tvd=function(l,D){_.L3("_start",l,D)};
_.qt=function(l,D){if(!_.q("web_csi_action_sampling_enabled")||!_.uu(D).actionDisabled){var U=_.Q0(D||"");_.dV(U.info,l);l.loadType&&(U=l.loadType,_.udo(D).loadType=U);_.dV(_.Q6B(D),l);U=Gdo(D);D=_.uu(D).cttAuthInfo;XLB().info(l,U,D)}};
Si$=function(){var l,D,U,n;return((n=_.Jc().resolve(_.G8(w$))==null?void 0:(l=r$())==null?void 0:(D=l.loggingHotConfig)==null?void 0:(U=D.csiConfig)==null?void 0:U.debugTicks)!=null?n:[]).map(function(y){return Object.values(y)[0]})};
_.L3=function(l,D,U){if(!_.q("web_csi_action_sampling_enabled")||!_.uu(U).actionDisabled){var n=Gdo(U),y;if(y=_.q("web_csi_debug_sample_enabled")&&n){(_.Jc().resolve(_.G8(w$))==null?0:r$())&&!kd3&&(kd3=!0,_.L3("gcfl",(0,_.J3)(),U));var A,C,h;y=(_.Jc().resolve(_.G8(w$))==null?void 0:(A=r$())==null?void 0:(C=A.loggingHotConfig)==null?void 0:(h=C.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(A=y!==0)b:{A=Si$();if(A.length>0)for(C=0;C<A.length;C++)if(l===A[C]){A=!0;break b}A=!1}A?(y=b5C(n)%y!==0,
_.uu(U).debugTicksExcludedLogged||(A={},A.debugTicksExcluded=y,_.qt(A,U)),_.uu(U).debugTicksExcludedLogged=!0):y=!1}if(!y){l[0]!=="_"&&d$B(l,U,D);y=_.Q0(U||"");y.tick[l]=D||(0,_.J3)();if(y.callback&&y.callback[l])for(y=_.B(y.callback[l]),A=y.next();!A.done;A=y.next())A=A.value,A();y=_.v6(U);y.gelTicks&&(y.gelTicks[l]=!0);A=_.v09(U);y=D||(0,_.J3)();_.q("log_repeated_ytcsi_ticks")?l in A||(A[l]=y):A[l]=y;A=_.uu(U).cttAuthInfo;l==="_start"?XLB().baseline(n,D,A):XLB().tick(l,n,D,A);_.K53(U);return y}}};
d$B=function(l,D,U){if(_.Go.mark)if(l.startsWith("mark_")||(l="mark_"+l),D&&(l+=" ("+D+")"),U===void 0||_.q("web_csi_disable_alt_time_performance_mark"))_.Go.mark(l);else{U=_.q("csi_use_performance_navigation_timing")?U-_.Go.timeOrigin:U-(_.Go.timeOrigin||_.Go.timing.navigationStart);try{_.Go.mark(l,{startTime:U})}catch(n){}}};
cM9=function(){var l,D=(l=_.Go.getEntriesByType)==null?void 0:l.call(_.Go,"mark");D&&D.forEach(function(U){if(U.name.startsWith("mark_")){var n;(n=_.Go.clearMarks)==null||n.call(_.Go,U.name)}})};
_.pLg=function(){switch(WpG()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.x$o=function(l){var D={},U=function(A,C,h){C=C.match("_rid")?C.split("_rid")[0]:C;typeof h==="number"&&(h=JSON.stringify(h));A.requestIds?A.requestIds.push({endpoint:C,id:h}):A.requestIds=[{endpoint:C,id:h}]};
l=_.B(Object.entries(l));for(var n=l.next();!n.done;n=l.next()){var y=_.B(n.value);n=y.next().value;y=y.next().value;switch(n){case "GetBrowse_rid":U(D,n,y);break;case "GetGuide_rid":U(D,n,y);break;case "GetHome_rid":U(D,n,y);break;case "GetPlayer_rid":U(D,n,y);break;case "GetSearch_rid":U(D,n,y);break;case "GetSettings_rid":U(D,n,y);break;case "GetTrending_rid":U(D,n,y);break;case "GetWatchNext_rid":U(D,n,y);break;case "yt_red":D.isRedSubscriber=!!y;break;case "yt_ad":D.isMonetized=!!y}}return D};
F5d=function(l,D,U,n,y,A){if(!_.q("web_csi_action_sampling_enabled")||!_.uu(A).actionDisabled){var C=_.v6(A);if(C.gelSpans)C.gelSpans[l]=!0;else{var h={};C.gelSpans=(h[l]=!0,h)}j6G++;l={spanName:l,spanLengthUsec:String(Math.round(D*1E3)),spanNonce:j6G};n&&(l.spanInfo=n);y&&(l.parentSpanNonce=y);U&&(l.spanStartTimeUsec=String(Math.round(U*1E3)));_.Q0(A||"").span[String(l.spanName)]=l;U=_.v6(A);U.gelSpans||(U.gelSpans={});_.dV(U.gelSpans,l);U=Gdo(A);A=_.uu(A).cttAuthInfo;XLB().span(l,U,A);return l.spanNonce}};
_.o0d=function(l){var D=_.Mt("aft",l);if(D)return D;D=_.H3((l||"")+"TIMING_AFT_KEYS",["ol"]);for(var U=D.length,n=0;n<U;n++){var y=_.Mt(D[n],l);if(y)return y}return NaN};
_.wL3=function(l,D){_.vG("ytglobal.timing"+(D||"")+"ready_",l)};
_.Mt=function(l,D){if(l=_.v09(D)[l])return typeof l==="number"?l:l[l.length-1]};
_.K53=function(l){var D=_.Mt("_start",l),U=_.o0d(l),n=!rM9;D&&U&&n&&(pk$(zEN,new fx$(Math.round(U-D),l)),rM9=!0)};
NA9=function(l){g0$(l);$$9();cM9();l||(_.H3("TIMING_ACTION")&&_.IN("PREVIOUS_ACTION",_.H3("TIMING_ACTION")),_.IN("TIMING_ACTION",""))};
_.s69=function(l){l=l===void 0?{}:l;_.DJ(function(){Re();qiG();NA9();_.wL3(!1);l.cttAuthInfo&&(_.uu().cttAuthInfo=l.cttAuthInfo);_.IN("TIMING_AFT_KEYS",[]);l.isHot?_.ZP({loadType:"hot"}):_.ZP({loadType:"warm"});_.IN("TIMING_ACTION","");delete _.H3("TIMING_INFO",{}).yt_lt;_.DJ(_.tvd)(l.startTime,void 0)})()};
_.m0=function(l,D,U,n){D=D===void 0?{}:D;_.DJ(function(){var y=U?U:l;ez(y);var A=D.sampleRate;if(!_.q("web_csi_action_sampling_enabled")||A===void 0||A<=1)A=!1;else{var C=Gdo(y);A=b5C(C)%A!==0}A&&(_.uu(y).actionDisabled=!0);_.Q0(y||"").info.actionType=l;D.cttAuthInfo&&(_.uu(y).cttAuthInfo=D.cttAuthInfo);_.IN(y+"TIMING_ACTION",l);_.DJ(_.tvd)(D.startTime,y);A={actionType:n||_.REd(l)};D.logPreviousAction&&(A.previousAction=_.REd(_.H3("TIMING_ACTION")));(C=_.t6())&&C!=="UNDEFINED_CSN"&&(A.clientScreenNonce=
C);_.ZP(A,y);_.wL3(!0,y)})()};
ez=function(l){_.DJ(function(){Re(l);qiG(l);NA9(l)})()};
E0$=function(){_.DJ(function(){var l=[],D;for(D in _.UG("ytcsi.".slice(0,-1)))D.endsWith("data_")&&l.push(D.slice(0,-5));l=_.B(l);for(D=l.next();!D.done;D=l.next())ez(D.value);Re()})()};
_.Ix9=function(l){return _.DJ(function(){return _.TA9("_start",l)})()};
_.ZP=function(l,D,U){_.DJ(_.qt)(l,D,U===void 0?!1:U)};
_.ae=function(l,D,U){return _.DJ(_.L3)(l,D,U)};
_.TA9=function(l,D){return _.DJ(function(){var U=_.v09(D);return l in U})()};
Yig=function(l){if(!_.q("universal_csi_network_ticks"))return"";l=_.kZ(l)||"";for(var D=Object.keys(H5G),U=0;U<D.length;U++){var n=D[U];if(l.includes(n))return n}return""};
VvC=function(l){if(!_.q("universal_csi_network_ticks"))return function(){};
var D=H5G[l];return D?(_.tJ(D),function(){var U=_.q("universal_csi_network_ticks")?(U=O5C[l])?_.tJ(U):!1:!1;return U}):function(){}};
_.tJ=function(l,D,U){return _.DJ(function(){if(_.TA9(l,U))return!1;_.ae(l,D,U);return!0})()};
_.XI=function(l,D,U){_.DJ(function(){if(!_.Ix9(U)||_.TA9(l,U))return!1;_.ae(l,D,U);return!0})()};
_.dj=function(l){return _.DJ(_.Mt)(l,void 0)};
Re=function(l){_.Ix9(l)&&_.ae("aa",void 0,l)};
_.nMc=function(l,D,U,n,y,A,C,h,b){var u=iMG();h=new mQ({veType:D,youtubeData:A,jspbYoutubeData:h});A=K3({},u);y&&(A.cttAuthInfo=y);y={csn:u,pageVe:h.getAsJson()};_.q("expectation_logging")&&b&&b.screenCreatedLoggingExpectations&&(y.screenCreatedLoggingExpectations=b.screenCreatedLoggingExpectations);U&&U.visualElement?(y.implicitGesture={parentCsn:U.clientScreenNonce,gesturedVe:U.visualElement.getAsJson()},C&&(y.implicitGesture.gestureType=C)):U&&_.II(new _.rc("newScreen() parent element does not have a VE - rootVe",
D));n&&(y.cloneCsn=n);l?fB("screenCreated",y,l,A):_.Na("screenCreated",y,A);pk$(z9$,new lSd(u));c6.clear();D39.clear();U3C.clear();return u};
p3=function(l,D,U,n,y,A){A=A===void 0?{}:A;yx$(l,D,U,[n],y===void 0?!1:y,A)};
yx$=function(l,D,U,n,y,A){y=y===void 0?!1:y;A=A===void 0?{}:A;Object.assign(A,K3({cttAuthInfo:XG(D)||void 0},D));for(var C=_.B(n),h=C.next();!h.done;h=C.next()){h=h.value;var b=h.getAsJson();(_.we.isEmpty(b)||!b.trackingParams&&!b.veType)&&_.II(Error("Bf"));if(_.q("no_client_ve_attach_unless_shown")){var u=Ax3(h,D);if(b.veType&&!D39.has(u)&&!U3C.has(u)&&!y){if(!_.q("il_attach_cache_limit")||c6.size<1E3){c6.set(u,[l,D,U,h]);return}_.q("il_attach_cache_limit")&&c6.size>1E3&&_.II(new _.rc("IL Attach cache exceeded limit"))}h=
Ax3(U,D);c6.has(h)?WzN(U,D):U3C.set(h,!0)}}n=n.filter(function(Q){Q.csn!==D?(Q.csn=D,Q=!0):Q=!1;return Q});
U={csn:D,parentVe:U.getAsJson(),childVes:_.re(n,function(Q){return Q.getAsJson()})};
D==="UNDEFINED_CSN"?xS("visualElementAttached",A,U):l?fB("visualElementAttached",U,l,A):_.Na("visualElementAttached",U,A)};
Cc$=function(l,D,U,n,y){B3G(l,D,U,y)};
B3G=function(l,D,U,n){hr9(U,D);var y=K3({cttAuthInfo:XG(D)||void 0},D);U={csn:D,ve:U.getAsJson(),eventType:1};n&&(U.clientData=n);D==="UNDEFINED_CSN"?xS("visualElementShown",y,U):l?fB("visualElementShown",U,l,y):_.Na("visualElementShown",U,y)};
Pcl=function(l,D,U,n){hr9(U,D);var y=K3({cttAuthInfo:XG(D)||void 0},D);U={csn:D,ve:U.getAsJson(),eventType:4};n&&(U.clientData=n);D==="UNDEFINED_CSN"?xS("visualElementShown",y,U):l?fB("visualElementShown",U,l,y):_.Na("visualElementShown",U,y)};
bMl=function(l,D,U,n,y){var A=(n=n===void 0?!1:n)?16:8;n=K3({cttAuthInfo:XG(D)||void 0,endOfSequence:n},D);U={csn:D,ve:U.getAsJson(),eventType:A};y&&(U.clientData=y);D==="UNDEFINED_CSN"?xS("visualElementHidden",n,U):l?fB("visualElementHidden",U,l,n):_.Na("visualElementHidden",U,n)};
urg=function(l,D,U,n,y){gMG(l,D,U,void 0,n,y)};
gMG=function(l,D,U,n,y){hr9(U,D);n=n||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var A=K3({cttAuthInfo:XG(D)||void 0},D);U={csn:D,ve:U.getAsJson(),gestureType:n};y&&(U.clientData=y);D==="UNDEFINED_CSN"?xS("visualElementGestured",A,U):l?fB("visualElementGestured",U,l,A):_.Na("visualElementGestured",U,A)};
vMB=function(l,D,U,n){var y=K3({cttAuthInfo:XG(D)||void 0},D);U={csn:D,ve:U.getAsJson(),clientData:n};D==="UNDEFINED_CSN"?xS("visualElementStateChanged",y,U):l?fB("visualElementStateChanged",U,l,y):_.Na("visualElementStateChanged",U,y)};
QZ$=function(){var l=UTc(16);for(var D=[],U=0;U<l.length;U++)D.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(l[U]&63));return D.join("")};
xS=function(l,D,U){GAB.push({payloadName:l,payload:U,jspbPayload:void 0,options:D});JxN||(JxN=$Ng())};
rus=function(l){if(GAB){for(var D=_.B(GAB),U=D.next();!U.done;U=D.next())U=U.value,U.payload&&(U.payload.csn=l.csn,_.Na(U.payloadName,U.payload,U.options));GAB.length=0}JxN=0};
Ax3=function(l,D){return""+l.getAsJson().veType+l.getAsJson().veCounter+D};
hr9=function(l,D){if(_.q("no_client_ve_attach_unless_shown")){var U=Ax3(l,D);D39.set(U,!0);WzN(l,D)}};
WzN=function(l,D){l=Ax3(l,D);c6.has(l)&&(D=c6.get(l)||[],p3(D[0],D[1],D[2],D[3],!0),c6.delete(l))};
K3=function(l,D){_.q("log_sequence_info_on_gel_web")&&(l.sequenceGroup=D);return l};
_.jz=function(l,D,U){_.DJ(p3)(void 0,l,D,U)};
_.FI=function(l,D,U){_.DJ(yx$)(void 0,l,D,U)};
_.oe=function(l,D){_.DJ(Cc$)(void 0,l,D,void 0,void 0,void 0)};
_.wj=function(l,D,U){_.DJ(function(){_.Ac(D,function(n){Pcl(void 0,l,n,U)})})()};
_.rj=function(l,D,U,n){_.DJ(function(){_.Ac(D,function(y){bMl(void 0,l,y,U,n)})})()};
_.zo=function(l,D,U){_.DJ(urg)(void 0,l,D,U,void 0)};
_.f3=function(l,D,U,n){_.DJ(gMG)(void 0,l,D,U,n,void 0)};
_.$S=function(l,D,U){_.DJ(vMB)(void 0,l,D,U,void 0)};
Lzs=function(l,D){Nt.set(l,D)};
qQg=function(l){st.initialized=!0;st.sessionId=l.sessionId||"";st.enabledSpans=l.enabledSpans;l.shouldSampleFn!=null&&(st.shouldSampleFn=l.shouldSampleFn)};
Mm_=function(l){st.processors.push(l)};
Rrd=function(l){return st.initialized?st.enabledSpans?st.enabledSpans[l]:!0:!1};
aSK=function(l,D,U){return Rrd(l)&&st.shouldSampleFn(l,D,ZMg)?new er9(l,D,U):m3c};
tmK=function(l,D,U){if(typeof U==="function"){var n=U;U=void 0}var y=aSK(l,D,U),A;if(((A=U)==null?void 0:A.endTime)!=null)return n&&_.II(Error("Ff")),y;var C;y!==m3c&&((C=U)==null?void 0:C.active)!==!1&&st.stack.push(y);if(!n)return y;if(y===m3c)return n(y);try{var h=n(y);if(h instanceof Promise)return h.then(function(b){y.end();return b},function(b){y.end(2);
throw b;});
y.end();return h}catch(b){throw y.end(2),b;}};
SQK=function(){OU.subscribe("handleError",function(l){try{for(var D in Xq9)try{var U=Xq9[D];typeof Xq9[D]==="function"&&(U=U());l.params[D]=typeof Xq9[D]==="object"?JSON.stringify(U):String(U)}catch(n){_.II(n)}}catch(n){_.II(n)}})};
kAl=function(){};
d3g=function(l,D){var U=Object.keys(l);l=new _.rc("[Command Handler] "+D,{filteredCommandNames:U,originalCommand:l});_.EU(l)};
Kz_=function(l,D){d3g(l,D+" was called but not set")};
cxK=function(l){return function(){return new l}};
Et=function(l){return function(){return _.Jc().resolve(l)}};
pqC=function(l,D){var U=_.M(l,_.lP);if(U&&(U=D[U.signal]))return U();l=_.B(Object.keys(l));for(U=l.next();!U.done;U=l.next())if(U=U.value,D[U]&&(U=D[U]))return U()};
_.To=function(l,D,U,n){return{browseEndpoint:{browseId:l},commandMetadata:{webCommandMetadata:{url:D,rootVe:U,webPageType:n===void 0?"WEB_PAGE_TYPE_BROWSE":n}}}};
x3N=function(l,D,U){var n=D=D===void 0?0:D;U=U===void 0?0:U;var y=U-n;return _.Ie(l,"PPSV",void 0,void 0,(y>600?0:y<60||U<=0||n/U>.9)?0:D)};
_.Ie=function(l,D,U,n,y){var A="/watch?v="+l;l={videoId:l};D&&(l.playlistId=D,A+="&list="+D);n&&(A+="&pp="+n);y&&(l.startTimeSeconds=y,A+="&t="+y+"s");D={watchEndpoint:l,commandMetadata:{webCommandMetadata:{url:A,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};U&&(D.clickTrackingParams=U);n&&(_.M(D,_.za).playerParams=n);return D};
jZg=function(l){return{browseEndpoint:{browseId:"VL"+l},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+l,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Fzl=function(l){if(l){var D;if(l){var U=(D=_.M(l.commandMetadata,_.W6))==null?void 0:D.url;D=!(!U||U==="/service_ajax")}else D=!1;if(D)return l;var n;if(l=(n=_.M(l,_.n3))==null?void 0:n.commands)for(n=_.B(l),l=n.next();!l.done;l=n.next())if(l=Fzl(l.value))return l}};
_.H6=function(l){return{runs:[{text:l}]}};
oM$=function(l,D){return l&&D?{runs:[{text:l,navigationEndpoint:D}]}:void 0};
YS=function(l){return l?_.H6(l):void 0};
_.Ot=function(l){return l?{simpleText:l}:void 0};
_.V0=function(l){var D=l.type;l=l.payload;D={type:D};l!==void 0&&(D.payload=l);return D};
wqG=function(l,D,U){for(var n=Object.assign({},l),y=_.B(Object.keys(D)),A=y.next();!A.done;A=y.next()){A=A.value;var C=l[A],h=D[A];if(h===void 0)delete n[A];else if(C===void 0)n[A]=h;else if(Array.isArray(h)&&Array.isArray(C))n[A]=U?[].concat(_.zz(C),_.zz(h)):h;else if(!Array.isArray(h)&&_.I_(h)&&!Array.isArray(C)&&_.I_(C))n[A]=wqG(C,h,U);else if(typeof h===typeof C)n[A]=h;else return D=new _.rc("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:A,originalValue:C,updateValue:h}),
_.EU(D),l}return n};
fS9=function(l){if(!l.length)return"";try{if(rx9)return rx9.decode(l);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(l)}catch(C){}for(var D=0,U=[],n=l.length;D<n;){for(var y=0;y<1024&&D<n;){var A=l[D++];if(A<128)zr$[y++]=A;else{if(A<224)A=(A&31)<<6|l[D++]&63;else if(A<240)A=(A&15)<<12|(l[D++]&63)<<6|l[D++]&63;else{if(y+1===1024){--D;break}A=(A&7)<<18|(l[D++]&63)<<12|(l[D++]&63)<<6|l[D++]&63;A-=65536;zr$[y++]=55296|A>>10;A=56320|A&1023}zr$[y++]=A}}A=String.fromCharCode.apply(String,
zr$);y<1024&&(A=A.substring(0,y));U.push(A)}return U.join("")};
N3_=function(l,D){var U;if((U=$3G)==null?0:U.encodeInto)return D=$3G.encodeInto(l,D),D.read<l.length?l.length*4:D.written;for(var n=U=0;n<l.length;n++){var y=l.charCodeAt(n);y<128?D[U++]=y:(y<2048?D[U++]=y>>6|192:((y&64512)===55296&&n+1<l.length&&(l.charCodeAt(n+1)&64512)===56320?(y=65536+((y&1023)<<10)+(l.charCodeAt(++n)&1023),D[U++]=y>>18|240,D[U++]=y>>12&63|128):D[U++]=y>>12|224,D[U++]=y>>6&63|128),D[U++]=y&63|128)}return U};
sZG=function(l,D,U){if(D&&U&&U.buffer===D.exports.memory.buffer){var n=D.realloc(U.byteOffset,l);if(n)return new Uint8Array(D.exports.memory.buffer,n,l)}l=D?new Uint8Array(D.exports.memory.buffer,D.malloc(l),l):new Uint8Array(l);U&&l.set(U);return l};
_.lQ=function(l){l=new EMK(new T3$([_.Oc(decodeURIComponent(l))]));if(IS9(l,2)){var D=iQ(l);var U=l.pos;var n=l.arrayView;U=U===void 0?0:U;var y=D===void 0?-1:D;U=U===void 0?0:U;y=y===void 0?-1:y;if(n.totalLength&&y){y<0&&(y=n.totalLength-U);n.focus(U);if(!(U-n.arrayPos+y<=n.arrays[n.arrayIdx].length)){var A=n.arrayIdx,C=n.arrayPos;n.focus(U+y-1);C=new Uint8Array(n.arrayPos+n.arrays[n.arrayIdx].length-C);for(var h=0,b=A;b<=n.arrayIdx;b++)C.set(n.arrays[b],h),h+=n.arrays[b].length;n.arrays.splice(A,
n.arrayIdx-A+1,C);n.arrayIdx=0;n.arrayPos=0;n.focus(U)}A=n.arrays[n.arrayIdx];n=new DataView(A.buffer,A.byteOffset+U-n.arrayPos,y)}else n=new DataView(new ArrayBuffer(0));n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);l.pos+=D;D=n}else D=void 0;D=D?fS9(D):void 0;l=IS9(l,4)?iQ(l):void 0;n=HMC[l];if(typeof n==="undefined")throw l=new _.rc("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:l}),_.EU(l),l;return{entityTypeFieldNumber:l,entityType:n,entityId:D}};
_.n7=function(l,D,U){U=U===void 0?0:U;var n=new YQg;if($3G)l=$3G.encode(l);else{var y=new Uint8Array(Math.ceil(l.length*1.2)),A=N3_(l,y);y.length<A&&(y=new Uint8Array(A),A=N3_(l,y));y.length>A&&(y=y.subarray(0,A));l=y}l!==void 0&&(D1(n,18),y=l.length,D1(n,y),UB(n,y),n.buf.set(l,n.pos),n.pos+=y);l=OMg[D];if(typeof l==="undefined")throw U=new _.rc("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:D}),_.EU(U),U;l!==void 0&&(D1(n,32),D1(n,l));D1(n,40);D1(n,1);D=new Uint8Array(n.buf.buffer,
n.buf.byteOffset,n.pos);return encodeURIComponent(_.c2(D,U))};
VmC=function(l){l=l.key||l.id;if(!l)throw Error("Hf");return l};
l2g=function(l,D){l=l===void 0?{}:l;return idC(l,D)};
Dj9=function(l,D,U,n){if(n===void 0)return n=Object.assign({},l[D]||{}),U=(delete n[U],n),n={},Object.assign({},l,(n[D]=U,n));var y={},A={};return Object.assign({},l,(A[D]=Object.assign({},l[D],(y[U]=n,y)),A))};
Ujc=function(l,D,U,n,y){var A=l[D];if(A==null||!A[U])return l;n=wqG(A[U],n,y==="REPEATED_FIELDS_MERGE_OPTION_APPEND");y={};A={};return Object.assign({},l,(A[D]=Object.assign({},l[D],(y[U]=n,y)),A))};
_.yT=function(l,D,U){return l[D]?l[D][U]||null:null};
yC$=function(){if(np9)return np9();var l={};np9=Gn("PersistentEntityStoreDb",{objectStores:(l.EntityStore={addedAtVersion:1},l.EntityAssociationStore={addedAtVersion:2},l),shared:!1,upgrade:function(D,U){U(1)&&D0(ly(D,"EntityStore",{keyPath:"key"}),"entityType","entityType");U(2)&&(D=ly(D,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),D0(D,"byParentEntityKey","parentEntityKey"),D0(D,"byChildEntityKey","childEntityKey"))},
version:3});return np9()};
AC3=function(l){return _.C6(yC$(),l)};
A4=function(l){return window.Int32Array?new Int32Array(l):Array(l)};
BvC=function(l){return _.C6(Wtl(),l)};
CNG=function(l){return new Wc("WRONG_DATA_TYPE",{encoderVersion:l})};
h1G=function(l){return l instanceof Error?new Wc("UNKNOWN_ENCODE_ERROR",{originalMessage:l.message}):new Wc("UNKNOWN_ENCODE_ERROR")};
PN3=function(l){return l instanceof Error?new Wc("UNKNOWN_DECODE_ERROR",{originalMessage:l.message}):new Wc("UNKNOWN_DECODE_ERROR")};
bdg=function(l,D){l=l instanceof Wc?l:D(l);_.EU(l);throw l;};
gpc=function(l){l=(new TextEncoder).encode(l).subarray(0,16);var D=new Uint8Array(16);D.set(l);return D};
vpg=function(l){var D=uc_[l];if(D)return D;_.II(new _.rc("Entity model not found.",{entityType:l}))};
_.Bc=function(){Qf9||(Qf9=Ge9());return Qf9};
Ge9=function(){var l,D,U;return _.P(function(n){if(n.nextAddress==1)return _.ZY(n,2),n.yield(_.Qo(),4);if(n.nextAddress!=2){l=n.yieldResult;if(!l||!_.wc()||typeof _.nC.BroadcastChannel==="undefined")return n.return();D=new JC$;return n.return(new C7(l,D))}U=_.kF(n);U instanceof Error&&_.EU(U);return n.return()})};
_.h4=function(l,D){var U;return _.P(function(n){if(n.nextAddress==1){U=l.mutations;if(!U||U.length<=0)return n.return();D&&D.dispatch(_.V0({type:"ENTITY_LOADED",payload:U}));return n.yield(Ltc(U),2)}U.length=0;_.Kz(n)})};
Ltc=function(l){var D;return _.P(function(U){return U.nextAddress==1?U.yield(_.Bc(),2):(D=U.yieldResult)?U.yield(_.Pc(D,"readwrite",function(n){for(var y={},A=_.B(l),C=A.next(),h={};!C.done;h={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},C=A.next())h.mutation$jscomp$8=C.value,h.mutation$jscomp$8.entityKey&&qp_(h.mutation$jscomp$8)&&(h.mutationEntityType$jscomp$3=(0,_.we.getAnyKey)(h.mutation$jscomp$8.payload),C=void 0,h.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(C=function(b){return function(){return _.Mp_(n,
b.mutation$jscomp$8.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(h)),h.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(C=function(b){return function(){return R1o(n,b.mutation$jscomp$8.entityKey)}}(h)),h.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(C=function(b){return function(){return Zdl(n,b.mutation$jscomp$8.entityKey,b.mutation$jscomp$8.payload[b.mutationEntityType$jscomp$3],b.mutationEntityType$jscomp$3)}}(h)),C&&(y[h.mutation$jscomp$8.entityKey]=
y[h.mutation$jscomp$8.entityKey]?y[h.mutation$jscomp$8.entityKey].then(C):C()));
return Dl.all(Object.values(y))}),0):U.return()})};
qp_=function(l){var D;l=(D=l.options)==null?void 0:D.persistenceOption;return l==="ENTITY_PERSISTENCE_OPTION_PERSIST"||l==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
a29=function(l,D){var U,n;_.P(function(y){if(y.nextAddress==1)return y.yield(_.Bc(),2);if(y.nextAddress!=3)return(U=y.yieldResult)?y.yield(_.Pc(U,"readonly",function(A){var C={},h=Object.keys(D).map(function(b){var u=D[b]?[].concat(_.zz(D[b])):[];return e1_(A,b,u,C)});
return Dl.all(h).then(function(){return C})}),3):y.return();
n=y.yieldResult;Object.keys(n).length>0&&l.dispatch(mjC(n));_.Kz(y)})};
e1_=function(l,D,U,n){return bQ(l,D,U).then(function(y){n[D]=tpN(U,y)})};
tpN=function(l,D){if(D.length!==l.length)throw Error("Kf");return D.reduce(function(U,n,y){U[l[y]]=n;return U},{})};
keG=function(l){var D=l.filter(function(y){var A;return(y==null?void 0:(A=y.transferEntity)==null?void 0:A.transferState)==="TRANSFER_STATE_COMPLETE"}).length,U=l.filter(function(y){var A;
return(y==null?void 0:(A=y.transferEntity)==null?void 0:A.transferState)==="TRANSFER_STATE_FAILED"}).length,n=l.filter(function(y){var A;
return(y==null?void 0:(A=y.transferEntity)==null?void 0:A.transferState)&&XNd.includes(y.transferEntity.transferState)});
if(!(D||n!=null&&n.length))return 0;D=_.Spg(n)+D;l=l.length-U;return l===0?0:Math.round(D*100/l)/100};
_.Spg=function(l){var D=[];D=D.concat.apply(D,_.zz(l.filter(function(A){return A.streamEntity}).map(function(A){var C=Object.assign({},A.streamEntity),h,b=(h=A.transferEntity)==null?void 0:h.transferState;
C.streamsProgress=C.streamsProgress||[];C.streamsProgress=C.streamsProgress.map(function(u){var Q=Object.assign({},u);Q.numBytesDownloaded=b==="TRANSFER_STATE_COMPLETE"?u.numTotalBytes:u.numBytesDownloaded;return Q});
return C}).map(function(A){return A.streamsProgress})));
var U=l=0;D=_.B(D);for(var n=D.next();!n.done;n=D.next()){var y=n.value;n=Number(y.numBytesDownloaded);y=Number(y.numTotalBytes);U+=isNaN(n)?0:n;l+=isNaN(y)?0:y}return l===0?0:Math.round(U*100/l)/100};
djl=function(l){if(!l||!l.expirationTimestamp||!l.action)return!1;var D=(0,_.J3)()/1E3;return Number(l.expirationTimestamp)>=D};
gu=function(l){return l&&l.expirationTimestamp&&l.action?djl(l)&&l.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.uQ=function(l){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(l||"TRANSFER_STATE_UNKNOWN")};
KtG=function(l){var D=new YQg;if(l!==void 0){var U=Math.ceil(Math.log2(l.length*4+2)/7);U=U===void 0?2:U;D1(D,10);D.submessagePosStack.push(D.pos);D.submessagePosStack.push(U);D.pos+=U;UB(D,l.length*1.2);U=N3_(l,D.buf.subarray(D.pos));D.pos+U>D.buf.length&&(UB(D,U),U=N3_(l,D.buf.subarray(D.pos)));D.pos+=U;l=D.submessagePosStack.pop();U=D.submessagePosStack.pop();for(var n=D.pos-U-l;l--;){var y=l?128:0;D.view.setUint8(U++,n&127|y);n>>=7}}D=new Uint8Array(D.buf.buffer,D.buf.byteOffset,D.pos);return(new TextDecoder("utf-8")).decode(D)};
_.vc=function(l){var D=0;l=_.B(l);for(var U=l.next(),n={};!U.done;n={transferState$jscomp$3:void 0},U=l.next()){var y=U.value,A=void 0;U=(A=y.streamEntity)!=null?A:{};A=void 0;n.transferState$jscomp$3=(A=y.transferEntity)==null?void 0:A.transferState;A=y=void 0;((y=U)==null?0:(A=y.streamsProgress)==null?0:A.length)&&U.streamsProgress.forEach(function(C){return function(h){h=Number(C.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?h.numTotalBytes:h.numBytesDownloaded);isFinite(h)&&(D+=h)}}(n))}return D};
cCB=function(l){return l.some(function(D){var U;if(!(D==null?0:(U=D.transferEntity)==null?0:U.transferState)){var n;return!(D==null?0:(n=D.policyEntity)==null?0:n.action)||D.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return XNd.includes(D.transferEntity.transferState)})};
pNC=function(l,D){if(!D)return!1;if(_.q("of_pb_en_po_ks"))return!0;var U;l=(U=_.yT(l,"offlineVideoPolicy",_.n7(D,"offlineVideoPolicy")))!=null?U:void 0;return!!l&&gu(l)};
_.jfc=function(l){var D=["TRANSFER_STATE_COMPLETE"];D=D===void 0?xjg:D;return l.filter(function(U){var n,y;return D.includes((y=(n=U.transferEntity)==null?void 0:n.transferState)!=null?y:"TRANSFER_STATE_UNKNOWN")})};
Ft$=function(l,D){if(D){var U,n=(U=_.yT(l,"playbackData",_.n7(D,"playbackData")))!=null?U:null,y;U=(y=_.yT(l,"transfer",_.n7(D,"transfer")))!=null?y:null;var A;y=(A=_.yT(l,"offlineVideoStreams",_.n7(D,"offlineVideoStreams")))!=null?A:null;var C;l=(C=_.yT(l,"offlineVideoPolicy",_.n7(D,"offlineVideoPolicy")))!=null?C:null;if(n||U||y||l)return{playbackDataEntity:n,transferEntity:U,streamEntity:y,policyEntity:l}}};
_.QT=function(l){var D=l.playbackData;if(!D)return[];var U=[];D=_.B(Object.keys(D));for(var n=D.next();!n.done;n=D.next()){var y=n.value;if(!op3(l,_.lQ(y).entityId)&&(n=Ft$(l,_.lQ(y).entityId))){var A=void 0,C=void 0;y=(C=Number((A=_.yT(l,"playbackData",y))==null?void 0:A.streamDownloadTimestampSeconds))!=null?C:(0,_.J3)();U.push({entity:n,streamDownloadTimestamp:y})}}return U.sort(function(h,b){var u=h.streamDownloadTimestamp,Q=b.streamDownloadTimestamp;return Q===u?h.entity.streamEntity&&!b.entity.streamEntity?
1:-1:Q-u}).map(function(h){return h.entity})};
wN9=function(l){return _.jfc(_.QT(l))};
_.rCB=function(l){return _.QT(l).filter(function(D){var U;if(((U=D.policyEntity)==null?0:U.action)&&D.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var n;if((n=D.transferEntity)==null?0:n.transferState){var y;return XNd.includes((y=D.transferEntity)==null?void 0:y.transferState)}return!0})};
op3=function(l,D){var U;return((U=_.yT(l,"downloadStatusEntity",_.n7(D,"downloadStatusEntity")))==null?void 0:U.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
z1C=function(l){var D;if(l==null?0:(D=l.playbackDataEntity)==null?0:D.key)return _.lQ(l.playbackDataEntity.key).entityId;var U;if(l==null?0:(U=l.transferEntity)==null?0:U.key)return _.lQ(l.transferEntity.key).entityId;var n;if(l==null?0:(n=l.streamEntity)==null?0:n.key)return _.lQ(l.streamEntity.key).entityId;var y;if(l==null?0:(y=l.policyEntity)==null?0:y.key)return _.lQ(l.policyEntity.key).entityId};
$jo=function(l){var D=new Set,U;l=(U=l.mainDownloadsListEntity)==null?void 0:U[f2g];var n;if(!(l==null?0:(n=l.downloads)==null?0:n.length))return D;var y;l==null||(y=l.downloads)==null||y.forEach(function(A){(A==null?0:A.videoItem)&&D.add(A.videoItem)});
return D};
L7=function(l,D){if(D){var U=_.yT(l,"mainVideoEntity",_.n7(D,"mainVideoEntity")),n=_.yT(l,"downloadStatusEntity",_.n7(D,"downloadStatusEntity")),y=_.yT(l,"ytMainChannelEntity",_.n7(D,"ytMainChannelEntity")),A={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};l=Ft$(l,D);n=(n==null?void 0:n.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.q("woffle_render_failed_download_state_ks")&&(n==null?void 0:n.downloadState)==="DOWNLOAD_STATE_FAILED";!l&&n&&(l=A);if(l&&U&&
y)return Object.assign({},{videoEntity:U,channelEntity:y},l)}};
sf9=function(l,D){return Nv9(l,D)==="TRANSFER_STATE_COMPLETE"&&pNC(l,D)};
EpK=function(l,D){if(!D)return!1;var U;l=(U=_.yT(l,"playbackData",_.n7(D,"playbackData")))!=null?U:void 0;return!!l&&!!l.playerResponseJson};
Nv9=function(l,D){if(!D)return"TRANSFER_STATE_UNKNOWN";var U=_.yT(l,"transfer",_.n7(D,"transfer"));if(U){var n;return(n=U.transferState)!=null?n:"TRANSFER_STATE_UNKNOWN"}U=_.yT(l,"offlineOrchestrationActionWrapperEntity",_.n7(D,"offlineOrchestrationActionWrapperEntity"));l=_.yT(l,"mainVideoEntity",_.n7(D,"mainVideoEntity"));return U||l?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
TvG=function(l,D){if(!D)return"TRANSFER_STATE_UNKNOWN";if(l=_.yT(l,"transfer",_.n7(D,"transfer"))){var U;return(U=l.transferState)!=null?U:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
I2o=function(l,D){return D&&(l=_.yT(l,"videoPlaybackPositionEntity",_.n7(D,"videoPlaybackPositionEntity")),l==null?0:l.lastPlaybackPositionSeconds)?Number(l.lastPlaybackPositionSeconds):0};
Ypc=function(l,D){return HdG(l).some(function(U){var n;return(U==null?void 0:(n=U.mainPlaylistEntity)==null?void 0:n.playlistId)===D})};
Vp_=function(l,D,U){var n=Od9(l,D);if(!n.length)return[];D=[];n=_.B(n);for(var y=n.next();!y.done;y=n.next()){y=y.value;var A=L7(l,y);U&&Nv9(l,y)!=="TRANSFER_STATE_COMPLETE"||A&&D.push(A)}return D};
Od9=function(l,D){if(!D)return[];var U=_.n7(D,"mainPlaylistEntity"),n;D=(n=l.mainPlaylistEntity)==null?void 0:n[U];n=[];if(D==null||!D.videos)return n;D=_.B(D.videos);for(U=D.next();!U.done;U=D.next()){U=U.value;var y=void 0,A=void 0,C=void 0,h=(y=l)==null?void 0:(A=y.mainPlaylistVideoEntity)==null?void 0:(C=A[U])==null?void 0:C.video;h&&(U=_.lQ(h).entityId)&&n.push(U)}return n};
i$B=function(l,D){if(D){var U=_.yT(l,"mainPlaylistEntity",_.n7(D,"mainPlaylistEntity")),n=_.yT(l,"mainPlaylistDownloadStateEntity",_.n7(D,"mainPlaylistDownloadStateEntity"));l=_.yT(l,"ytMainChannelEntity",_.n7(D,"ytMainChannelEntity"));if(n&&U)return Object.assign({},{mainPlaylistEntity:U,mainPlaylistDownloadStateEntity:n},!!l&&{channelEntity:l})}};
HdG=function(l){return l8C(l).sort(function(D,U){return U.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return D.downloadedPlaylistEntities})};
l8C=function(l){var D=l.mainPlaylistDownloadStateEntity,U=[];if(!D)return U;for(var n=_.B(Object.keys(D)),y=n.next();!y.done;y=n.next()){var A=y.value;y=i$B(l,_.lQ(A).entityId);var C=void 0;A=Number((C=D[A])==null?void 0:C.addedTimestampMillis);C=isNaN(A)?(0,_.J3)():A;y!==void 0&&U.push({downloadedPlaylistEntities:y,addedTimestampMillis:C})}return U};
DOs=function(l){var D,U=(D=l.mainPlaylistVideoEntity)!=null?D:{};return new Set(HdG(l).reduce(function(n,y){n=n===void 0?[]:n;var A,C;y==null||(A=y.mainPlaylistEntity)==null||(C=A.videos)==null||C.forEach(function(h){var b;(h=(b=U[h])==null?void 0:b.video)&&n.push(h)});
return n},[]))};
UOd=function(l){return"downloadedMusicPlaylistEntities"in l};
nkl=function(l){return"mainPlaylistEntity"in l&&"mainPlaylistDownloadStateEntity"in l};
y9C=function(l){return"videoEntity"in l&&"channelEntity"in l};
A9B=function(l){var D=l.musicPlaylistDownloadMetadataEntity,U=[];if(!D)return U;for(var n=_.B(Object.keys(D)),y=n.next();!y.done;y=n.next()){y=y.value;a:{var A=l,C=_.lQ(y).entityId;if(C){var h=_.yT(A,"musicPlaylist",_.n7(C,"musicPlaylist"));A=_.yT(A,"musicPlaylistDownloadMetadataEntity",_.n7(C,"musicPlaylistDownloadMetadataEntity"));if(h&&A){h={musicPlaylistEntity:h,musicPlaylistDownloadStateEntity:A};break a}}h=void 0}A=void 0;y=Number((A=D[y])==null?void 0:A.addedTimestampMillis);y=isNaN(y)?(0,_.J3)():
y;h!==void 0&&U.push({downloadedMusicPlaylistEntities:h,addedTimestampMillis:y})}return U};
WP_=function(l){var D=new Set;l=_.B(l);for(var U=l.next();!U.done;U=l.next())if(U=U.value,"musicPlaylistEntity"in U&&"musicPlaylistDownloadStateEntity"in U){U=_.B(U.musicPlaylistEntity.tracks);for(var n=U.next();!n.done;n=U.next())D.add(n.value)}return D};
B9N=function(l,D){if(D){var U=_.yT(l,"musicTrack",_.n7(D,"musicTrack")),n=_.yT(l,"musicArtist",_.n7(D,"musicArtist"))||{};if((l=Ft$(l,D))&&U&&n)return Object.assign({},{musicTrackEntity:U,musicArtistEntity:n},l)}};
Ca3=function(l){var D=l.musicTrackDownloadMetadataEntity,U=[];if(!D)return[];D=_.B(Object.keys(D));for(var n=D.next();!n.done;n=D.next()){var y=n.value;n=B9N(l,_.lQ(y).entityId);var A=void 0;y=Number((A=_.yT(l,"musicTrackDownloadMetadataEntity",y))==null?void 0:A.addedTimestampMillis);A=isNaN(y)?(0,_.J3)():y;n!==void 0&&U.push({downloadedMusicEntities:n,addedTimestampMillis:A})}return U};
b$_=function(l,D){if(!D)return[];if(Object.values(hZl).includes(D))return PaG(l,D);D=_.n7(D,"musicPlaylist");var U;l=(U=l.musicPlaylist)==null?void 0:U[D];U=[];if(l==null||!l.tracks)return U;l=_.B(l.tracks);for(D=l.next();!D.done;D=l.next())(D=_.lQ(D.value).entityId)&&U.push(D);return U};
PaG=function(l,D){var U=new Set,n=A9B(l).map(function(A){return A.downloadedMusicPlaylistEntities});
n=WP_(n);n=_.B(n);for(var y=n.next();!y.done;y=n.next())(y=_.lQ(y.value).entityId)&&U.add(y);return gkK(l).downloadedMusicEntities.filter(function(A){var C;if((C=A.musicTrackEntity)!=null&&C.videoId){A=A.musicTrackEntity;if(C=D==="PPOM"?!0:!U.has(A.videoId))b:switch(A=A.musicVideoType,D){case "PPSE":C=A==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:C=A!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}A=C}else A=!1;return A}).map(function(A){var C;
return(C=A.musicTrackEntity)==null?void 0:C.videoId})};
gkK=function(l){var D=Ca3(l).sort(function(U,n){return n.addedTimestampMillis-U.addedTimestampMillis}).map(function(U){return"downloadedMusicEntities"in U?U.downloadedMusicEntities:UOd(U)?U.downloadedMusicPlaylistEntities:{}});
l=A9B(l).sort(function(U,n){return n.addedTimestampMillis-U.addedTimestampMillis}).map(function(U){return"downloadedMusicEntities"in U?U.downloadedMusicEntities:UOd(U)?U.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:D,downloadedMusicPlaylistEntities:l}};
vkc=function(l,D){D=_.H3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?b$_(l,D):Od9(l,D);if(!D.length)return"TRANSFER_STATE_UNKNOWN";D=D.map(function(U){return TvG(l,U)});
return uuN(D)};
uuN=function(l){var D=new Set(l);if(D.has("TRANSFER_STATE_FAILED")&&D.size===1)return"TRANSFER_STATE_FAILED";D.delete("TRANSFER_STATE_FAILED");if(D.has("TRANSFER_STATE_UNKNOWN")&&D.size===1)return"TRANSFER_STATE_PRE_TRANSFER";D.delete("TRANSFER_STATE_UNKNOWN");if(D.has("TRANSFER_STATE_PRE_TRANSFER")&&D.size===1||D.size===0)return"TRANSFER_STATE_PRE_TRANSFER";l=D.has("TRANSFER_STATE_TRANSFERRING");D=D.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return l||D?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
ql=function(l){var D=l.mainVideoDownloadStateEntity,U=[];if(!D)return[];D=_.B(Object.keys(D));for(var n=D.next();!n.done;n=D.next()){var y=n.value;if(!op3(l,_.lQ(y).entityId)){n=L7(l,_.lQ(y).entityId);var A=void 0,C=void 0;y=(C=Number((A=_.yT(l,"mainVideoDownloadStateEntity",y))==null?void 0:A.addedTimestampMillis))!=null?C:(0,_.J3)();n!==void 0&&U.push({downloadedVideoEntities:n,addedTimestampMillis:y})}}return U};
Q4l=function(l){return ql(l).sort(function(D,U){return U.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return D.downloadedVideoEntities})};
_.J9N=function(l){var D=DOs(l),U=_.Ml(l),n=$jo(l),y=ql(l).filter(function(C){var h,b;if((C==null?void 0:(h=C.downloadedVideoEntities)==null?void 0:(b=h.transferEntity)==null?void 0:b.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var u,Q;C=C==null?void 0:(u=C.downloadedVideoEntities)==null?void 0:(Q=u.videoEntity)==null?void 0:Q.key;return _.q("kevlar_use_library_entity")?C&&(n.has(C)||U[C]):C&&!D.has(C)}),A=l8C(l).filter(function(C){return vkc(l,C.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.zz(y),_.zz(A)).sort(function(C,h){return h.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return G9c(C)})};
LPo=function(l,D){if(D&&pNC(l,D)){var U,n,y=(n=(U=_.yT(l,"playbackData",_.n7(D,"playbackData")))!=null?U:void 0)==null?void 0:n.playerResponseJson;if(y){try{var A=JSON.parse(y);var C=_.yT(l,"transfer",_.n7(D,"transfer")),h=I2o(l,D);h&&(A=Object.assign({},A,{playerConfig:Object.assign({},A.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+h*1E3}}})}));A.cotn=C==null?void 0:C.cotn}catch(b){}return A}}};
_.MyG=function(l){var D,U,n;l=(n=(U=((D=l.downloadsPageViewConfigurationEntity)!=null?D:{})[_.RJ])==null?void 0:U.smartDownloadsOptInBannerVisibility)!=null?n:{};var y;return(y=_.M(l,q0N))!=null?y:{}};
_.Ml=function(l){var D,U,n;l=(n=(U=((D=l.mainDownloadsListEntity)!=null?D:{})[_.RZ$])==null?void 0:U.downloads)!=null?n:[];D={};U=_.B(l);for(n=U.next();!n.done;n=U.next())l=void 0,D[(l=n.value.videoItem)!=null?l:""]=!0;return D};
Z$d=function(l){var D=_.Ml(l);if(Object.keys(D).length===0)return!1;var U=l.mainVideoEntity;if(!U)return!0;U=_.B(Object.keys(U));for(var n=U.next();!n.done;n=U.next()){n=n.value;var y=_.lQ(n).entityId;if(D[n]&&!op3(l,y))return!1}return!0};
_.Z1=function(l){var D=_.Ml(l);return ql(l).sort(function(U,n){return U.addedTimestampMillis-n.addedTimestampMillis}).map(function(U){return U.downloadedVideoEntities}).filter(function(U){var n;
return(U=U==null?void 0:(n=U.videoEntity)==null?void 0:n.key)&&!!D[U]})};
_.mOC=function(l){var D,U,n;l=(n=(U=((D=l.downloadsPageViewConfigurationEntity)!=null?D:{})[_.RJ])==null?void 0:U.downloadsUpsellBannerVisibility)!=null?n:{};var y;return(y=_.M(l,eZC))!=null?y:{}};
G9c=function(l){return"downloadedVideoEntities"in l?l.downloadedVideoEntities:"downloadedPlaylistEntities"in l?l.downloadedPlaylistEntities:{}};
a89=function(l){var D=_.Ml(l),U=DOs(l),n=ql(l).filter(function(y){var A,C;return(y=y==null?void 0:(A=y.downloadedVideoEntities)==null?void 0:(C=A.videoEntity)==null?void 0:C.key)&&!D[y]&&!U.has(y)});
l=l8C(l);return[].concat(_.zz(n),_.zz(l)).sort(function(y,A){return A.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return G9c(y)})};
_.es=function(l){if(!_.q("kevlar_use_library_entity"))return a89(l);var D=ql(l).filter(function(n){var y,A;if(y=n=n==null?void 0:(y=n.downloadedVideoEntities)==null?void 0:(A=y.videoEntity)==null?void 0:A.key){var C,h,b;y=((h=(C=l.mainDownloadsListEntity)==null?void 0:C[f2g])==null?0:(b=h.downloads)==null?0:b.length)?$jo(l).has(n):!1}return y}),U=l8C(l);
return[].concat(_.zz(D),_.zz(U)).sort(function(n,y){return y.addedTimestampMillis-n.addedTimestampMillis}).map(function(n){return G9c(n)})};
ty9=function(l){var D=_.Ml(l),U=DOs(l);return Q4l(l).filter(function(n){var y;return(n=n==null?void 0:(y=n.videoEntity)==null?void 0:y.key)&&!D[n]&&!U.has(n)})};
XON=function(l){if(!_.q("kevlar_use_library_entity"))return ty9(l);var D=_.Ml(l),U=$jo(l);return Q4l(l).filter(function(n){var y;return(n=n==null?void 0:(y=n.videoEntity)==null?void 0:y.key)&&!D[n]&&U.has(n)})};
S0c=function(l,D){D=_.n7(D,"settingEntity");var U,n,y;return!!((y=(n=((U=l.settingEntity)!=null?U:{})[D])==null?void 0:n.settingOptionValue)!=null?y:{}).boolValue};
_.mF=function(l){var D=_.Z1(l);if(cCB(D))return 0;var U=[];D=_.B(D);for(var n=D.next();!n.done;n=D.next()){n=n.value;var y=void 0,A=void 0;if((y=n)==null?0:(A=y.videoEntity)==null?0:A.key)y=_.lQ(n.videoEntity.key).entityId,n=l,y=_.n7(y,"mainVideoDownloadStateEntity"),n=_.yT(n,"mainVideoDownloadStateEntity",y),(n=Number(n==null?void 0:n.addedTimestampMillis))&&U.push(n)}return Math.max.apply(Math,_.zz(U))};
_.aJ=function(l){return l.ui.richGridMiniMode};
_.t4=function(l){return l.ui.richGridItemsPerRow};
_.k9d=function(l){return l.ui.richGridSlimItemsPerRow};
_.dOg=function(l){return l.ui.guideIsExpanded};
_.Xo=function(l){return l.ui.miniplayerIsActive};
KPc=function(l){return l.ui.singleOptionSurveyIsActive};
_.Ss=function(l){var D;return((D=l.ui)==null?void 0:D.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.c9K=function(l){return _.Ss(l)==="WEB_PAGE_TYPE_WATCH"};
_.pOs=function(l){return _.Ss(l)==="WEB_PAGE_TYPE_SHORTS"};
_.xOd=function(l){return l.ui.inlinePreviewIsActive};
_.j4o=function(l){return l.ui.inlinePreviewIsEnabled};
_.FPo=function(l){return l.ui.miniplayerPlaybackState};
_.kB=function(l){return l.ui.isOnline};
_.ok9=function(l){return l.ui.frostedGlassMode};
_.du=function(l,D){return Nv9(l.entities,D)};
_.K7=function(l,D){return vkc(l.entities,D)};
wOo=function(l,D){var U;if(D){var n;l=(n=_.yT(l.entities,"offlineVideoPolicy",_.n7(D,"offlineVideoPolicy")))==null?void 0:n.action}else l=void 0;return(U=l)!=null?U:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
r9B=function(l,D){var U;D?(l=_.yT(l.entities,"offlineVideoPolicy",_.n7(D,"offlineVideoPolicy")),l=Number(l==null?void 0:l.expirationTimestamp)):l=void 0;return(U=l)!=null?U:0};
_.zZg=function(l){return _.QT(l.entities).length};
f8_=function(l,D){return L7(l.entities,D)};
$Oo=function(l,D){return i$B(l.entities,D)};
cc=function(l,D){return(l=L7(l.entities,D))?_.Spg([l]):0};
_.N9_=function(l,D){var U=_.H3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(U){var n=l.entities;var y=b$_(n,D);if(y.length){var A=[];y=_.B(y);for(var C=y.next();!C.done;C=y.next())(C=B9N(n,C.value))&&A.push(C);n=A}else n=[]}else n=Vp_(l.entities,D);var h;if(U){var b=l.entities;D?(D=_.n7(D,"musicPlaylist"),b=(h=b.musicPlaylist)==null?void 0:h[D],h=b!=null&&b.tracks?b.tracks.length:0):h=0}else h=l.entities,D?(D=_.n7(D,"mainPlaylistEntity"),h=(b=h.mainPlaylistEntity)==null?void 0:b[D],h=h!=null&&h.videos?
h.videos.length:0):h=0;return n.length!==h?0:n?keG(n):0};
_.s4C=function(l){return l.download.isLeaderTab};
_.EkC=function(l,D,U){if(!D&&U){var n=l.entities;if(U){var y=KtG(U),A,C;D=(C=(A=_.yT(n,"offlineabilityEntity",_.n7(y,"offlineabilityEntity")))==null?void 0:A.addToOfflineButtonState)!=null?C:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else D="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else A=l.entities,D?(C=KtG(D),D=(y=(n=_.yT(A,"offlineabilityEntity",_.n7(C,"offlineabilityEntity")))==null?void 0:n.addToOfflineButtonState)!=null?y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):D="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return D};
T9c=function(l,D){l=l.entities;if(D){D=KtG(D);var U,n;D=(n=(U=_.yT(l,"offlineabilityEntity",_.n7(D,"offlineabilityEntity")))==null?void 0:U.addToOfflineButtonState)!=null?n:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else D="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return D};
_.I8g=function(l){var D=l.entities;l=_.kB(l);var U=S0c(D,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.q("kevlar_modern_downloads_page")&&U)var n=!1;else{var y,A;D=(A=(y=((n=D.downloadsPageViewConfigurationEntity)!=null?n:{})[_.RJ])==null?void 0:y.smartDownloadsOptInBannerVisibility)!=null?A:{};n=l?!!D.visibleWithConnection:!!D.visibleWithoutConnection}return n};
_.H$$=function(l){return S0c(l.entities,"SMART_DOWNLOADS_ENABLED")};
_.Y03=function(l){return Z$d(l.entities)};
O$s=function(l){return _.Z1(l.entities).every(function(D){var U;return(D==null?void 0:(U=D.transferEntity)==null?void 0:U.transferState)&&!XNd.includes(D.transferEntity.transferState)})};
_.Vy3=function(l){var D,U,n,y=(n=(U=((D=l.entities.downloadsPageViewConfigurationEntity)!=null?D:{})[_.RJ])==null?void 0:U.downloadsUpsellBannerVisibility)!=null?n:{};return _.kB(l)?!!y.visibleWithConnection:!!y.visibleWithoutConnection};
_.iF3=function(l,D){return op3(l.entities,D)};
lu9=function(l,D){if(D){var U,n;l=(n=(U=_.yT(l.entities,"downloadStatusEntity",_.n7(D,"downloadStatusEntity")))==null?void 0:U.downloadState)!=null?n:"DOWNLOAD_STATE_UNKNOWN"}else l="DOWNLOAD_STATE_UNKNOWN";return l};
p7=function(l,D){return I2o(l.entities,D)};
yK_=function(l){l=D2o(l);var D=l.hours===void 0?0:l.hours,U=l.minutes===void 0?0:l.minutes,n=l.seconds===void 0?0:l.seconds,y=D>0;l=[];y&&(D=U2s(D),l.push(D));D=y;D=D===void 0?!1:D;U=(["af","be","lt"].includes(js)||D)&&U<10?nW9().format(U):(new Intl.NumberFormat("en-u-nu-latn")).format(U);l.push(U);U=nW9().format(n);l.push(U);U=":";"da fi id si sr sr-Latn".split(" ").includes(js)&&(U=".");return l.join(U)};
_.W43=function(l){l=D2o(l);var D=l.hours===void 0?0:l.hours,U=l.minutes===void 0?0:l.minutes,n=l.seconds===void 0?0:l.seconds;l=[];if(D>0){var y=AKl().format({hours:D});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(js)||D>9999)y=y.replace(D.toString(),U2s(D)),js==="km"&&(y=y.replace(".",","));l.push(y)}U>0&&l.push(AKl().format({minutes:U}));n>0&&l.push(AKl().format({seconds:n}));D="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");U=js=="am"?"{0}\u1363 ":js=="fa"?"{0}\u060c\u200f ":
js=="my"?"{0} - ":js=="ne"?"{0},":js=="th"?"{0} ":js=="ur"?"{0}\u060c ":js=="ar"||js=="ar-XB"?"{0} \u0648":js=="ja"||js=="zh-CN"||js=="zh-HK"||js=="zh-TW"?"{0}\u3001":"{0}, ";n=js=="am"?"\u1363 ":js=="fa"?"\u060c\u200f ":js=="my"?" - ":js=="th"?" ":js=="ur"?"\u060c ":js=="ar"||js=="ar-XB"?" \u0648":js=="ja"||js=="zh-CN"||js=="zh-HK"||js=="zh-TW"?"\u3001":", ";y=js=="am"?" \u12a5\u1293 {0}":js=="as"?" \u0986\u09f0\u09c1 {0}":js=="az"?" v\u0259 {0}":js=="bn"?" \u098f\u09ac\u0982 {0}":js=="cs"?" a\u00a0{0}":
js=="de"?" und {0}":js=="el"?" \u03ba\u03b1\u03b9 {0}":js=="eu"?" eta {0}":js=="fa"?"\u060c \u0648 {0}":js=="fil"?", at {0}":js=="gu"?" \u0a85\u0aa8\u0ac7 {0}":js=="hi"?", \u0914\u0930 {0}":js=="hu"?" \u00e9s {0}":js=="hy"?" \u0587 {0}":js=="id"?", dan {0}":js=="iw"?" \u05d5-{0}":js=="ja"?"\u3001{0}":js=="ka"?" \u10d3\u10d0 {0}":js=="km"?" \u1793\u17b7\u1784 {0}":js=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":js=="ko"?" \ubc0f {0}":js=="ky"?" \u0436\u0430\u043d\u0430 {0}":js=="lt"?" ir {0}":js==
"lv"?" un {0}":js=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":js=="mr"?" \u0906\u0923\u093f {0}":js=="ms"?" dan {0}":js=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":js=="ne"?" \u0930 {0}":js=="or"?", \u0b13 {0}":js=="pa"?" \u0a05\u0a24\u0a47 {0}":js=="ro"?" \u0219i {0}":js=="si"?", \u0dc3\u0dc4 {0}":js=="sk"?" a {0}":js=="sl"?" in {0}":js=="sq"?" dhe {0}":js=="sv"?" och {0}":js=="sw"?" na {0}":js=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":js=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
js=="th"?" \u0e41\u0e25\u0e30{0}":js=="tr"?" ve {0}":js=="ur"?"\u060c \u0627\u0648\u0631 {0}":js=="uz"?" va {0}":js=="vi"?" v\u00e0 {0}":js=="zh-HK"?"\u53ca{0}":js=="zu"?", ne-{0}":js=="af"||js=="nl"?" en {0}":js=="ar"||js=="ar-XB"?" \u0648{0}":js=="be"||js=="uk"?" \u0456 {0}":js=="en-GB"||js=="en-IN"?" and {0}":js=="en"||js=="en-XA"?", and {0}":js=="et"||js=="fi"?" ja {0}":js=="fr"||js=="fr-CA"?" et {0}":js=="zh-CN"||js=="zh-TW"?"\u548c{0}":js=="da"||js=="is"||js=="no"?" og {0}":js=="es"||js=="es-419"||
js=="es-US"?" y {0}":js=="kk"||js=="lo"||js=="mn"?", {0}":js=="bg"||js=="mk"||js=="ru"||js=="sr"?" \u0438 {0}":js=="gl"||js=="it"||js=="pt-BR"||js=="pt-PT"?" e {0}":" i {0}";var A=js=="am"?"{0} \u12a5\u1293 {1}":js=="as"?"{0} \u0986\u09f0\u09c1 {1}":js=="az"?"{0} v\u0259 {1}":js=="bn"?"{0} \u098f\u09ac\u0982 {1}":js=="de"?"{0} und {1}":js=="el"?"{0} \u03ba\u03b1\u03b9 {1}":js=="eu"?"{0} eta {1}":js=="fa"?"{0} \u0648 {1}":js=="fil"?"{0} at {1}":js=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":js=="hi"?"{0} \u0914\u0930 {1}":
js=="hu"?"{0} \u00e9s {1}":js=="hy"?"{0} \u0587 {1}":js=="iw"?"{0} \u05d5-{1}":js=="ja"?"{0}\u3001{1}":js=="ka"?"{0} \u10d3\u10d0 {1}":js=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":js=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":js=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":js=="ko"?"{0} \ubc0f {1}":js=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":js=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":js=="lt"?"{0} ir {1}":js=="lv"?"{0} un {1}":js=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":js=="mn"?"{0}, {1}":js==
"mr"?"{0} \u0906\u0923\u093f {1}":js=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":js=="ne"?"{0} \u0930 {1}":js=="or"?"{0} \u0b13 {1}":js=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":js=="ro"?"{0} \u0219i {1}":js=="si"?"{0} \u0dc3\u0dc4 {1}":js=="sl"?"{0} in {1}":js=="sq"?"{0} dhe {1}":js=="sv"?"{0} och {1}":js=="sw"?"{0} na {1}":js=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":js=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":js=="th"?"{0}\u0e41\u0e25\u0e30{1}":js=="tr"?"{0} ve {1}":js=="ur"?
"{0} \u0627\u0648\u0631 {1}":js=="uz"?"{0} va {1}":js=="vi"?"{0} v\u00e0 {1}":js=="zh-HK"?"{0}\u53ca{1}":js=="zu"?"{0} ne-{1}":js=="af"||js=="nl"?"{0} en {1}":js=="ar"||js=="ar-XB"?"{0} \u0648{1}":js=="be"||js=="uk"?"{0} \u0456 {1}":js=="cs"||js=="sk"?"{0} a\u00a0{1}":js=="et"||js=="fi"?"{0} ja {1}":js=="fr"||js=="fr-CA"?"{0} et {1}":js=="id"||js=="ms"?"{0} dan {1}":js=="zh-CN"||js=="zh-TW"?"{0}\u548c{1}":js=="da"||js=="is"||js=="no"?"{0} og {1}":js=="es"||js=="es-419"||js=="es-US"?"{0} y {1}":js==
"bg"||js=="mk"||js=="ru"||js=="sr"?"{0} \u0438 {1}":js=="en"||js=="en-GB"||js=="en-IN"||js=="en-XA"?"{0} and {1}":js=="gl"||js=="it"||js=="pt-BR"||js=="pt-PT"?"{0} e {1}":"{0} i {1}";js==="sq"?(y=y.replace("dhe","e"),A=A.replace("dhe","e")):js==="th"?(n=n.replace("{0}"," {0}"),A=A.replace("{0}","{0} "),A=A.replace("{1}"," {1}")):js==="ne"?n=",":js==="zh-CN"?n="":D.includes(js)&&(n=" ");return l.length<2?l.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(js)?
l.length===2?A.replace("{0}",l[0]).replace("{1}",l[1]):U.replace("{0}",l[0])+l.slice(1,-1).join(n)+y.replace("{0}",l[l.length-1]):l.join(n)};
D2o=function(l){var D=l.hours||0,U=l.minutes||0,n=l.seconds||0;D=n+U*60+D*3600+(l.days||0)*86400+(l.weeks||0)*604800+(l.months||0)*2629800+(l.years||0)*31557600;if(D<=0)return{hours:0,minutes:0,seconds:0};l=D;D=Math.floor(l/3600);l%=3600;U=Math.floor(l/60);n=Math.floor(l%60);return{hours:D,minutes:U,seconds:n}};
U2s=function(l){l=(new Intl.NumberFormat("en-u-nu-latn")).format(l);var D=["fr"],U="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(js)?l.replace(",","\u00a0"):D.includes(js)?l.replace(",","\u202f"):U.includes(js)?l.replace(",","."):l};
nW9=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
AKl=function(){BS9||(Fo=Ctg,BS9=new hcN);return BS9};
PtB=function(l){try{return(new _.oJ(5)).format(l)}catch(D){}};
wu=function(l){return{thumbnailOverlayDownloadingRenderer:{state:l}}};
bFg=function(){var l=_.C3("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.H6(l),icon:{iconType:"PLAY_ALL"}}}};
gWC=function(l){l=_.ru(l,2);return js!=="ru"&&js!=="es_419"&&js!=="es-419"&&js!=="es"&&js!=="es_US"&&js!=="es-US"&&js!=="fr"&&js!=="pl"&&js!=="it"&&js!=="nl"&&js!=="uk"&&js!=="fr_CA"&&js!=="fr-CA"||l===""?l:l[0].toLocaleUpperCase()+l.substring(1)};
vW9=function(l){return function(D){var U=l(),n=_.ru(D,U.dateFormat);D=_.ru(D,U.timeFormat);var y=uL9.DATETIMEFORMATS[U.joinerStyle];y=y.replace(/'(?!')/g,"");y=y.replace("{0}",D);y=y.replace("{1}",n);return U.capitalize(y)}};
QoK=function(l){return l?typeof l.seconds==="string"&&(l.nanos===void 0||typeof l.nanos==="number"):!1};
GWN=function(l){return new Date(Number(l.seconds)*1E3+(l.nanos||0)*1E-6)};
_.ru=function(l,D){if(typeof l.getTime==="function")l={date:l};else if(QoK(l))l={date:GWN(l)};else if(typeof QoK(l.timestamp)&&typeof l.i18nInternalSecondsEastOfUtc==="number")l={date:GWN(l.timestamp),timeZone:z3(-l.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(l));var U=l;l=U.date;U=U.timeZone;D=JKg(D).format(l,U);js==="zh-TW"&&(l=U?Number(JKg("H").format(l,U)):l.getHours(),D=l<5?D.replace("\u4e0a\u5348","\u51cc\u6668"):l<8?D.replace("\u4e0a\u5348","\u65e9\u4e0a"):l<12?
D.replace("\u4e0a\u5348","\u4e0a\u5348"):l<13?D.replace("\u4e0b\u5348","\u4e2d\u5348"):l<19?D.replace("\u4e0b\u5348","\u4e0b\u5348"):D.replace("\u4e0b\u5348","\u665a\u4e0a"));return D};
JKg=function(l){if(L4o.has(l))return L4o.get(l);var D=qAC(l);D=MPc(D);Rcd!==!0&&(Rcd=!0);ZFC=!0;ZFC=!1;D=new f7(D,uL9);L4o.set(l,D);return D};
qAC=function(l){return(new f7(l,uL9)).patternParts_.map(function(D){return D.type===0?"'"+D.text+"'":D.text}).join("")};
MPc=function(l){return js==="en"||js==="es_US"||js==="es-US"?l:l.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(D,U,n){return"H".repeat(U.length)+n})};
kW9=function(l,D){ecg||(Fo=Ctg,ecg=new m2s);var U=ecg;a:if(l=au3(l),D=au3(D||new Date),l>D)U=l.getTime()-D.getTime()>6048E5?_.ru(l,1):tP3(l);else{for(var n=0;XRB(l,12*(n+1))<D;)++n;if(n>0)U=U.format(-n,0);else{for(n=0;XRB(l,n+1)<D;)++n;if(n>0)U=U.format(-n,2);else{l=D.getTime()-l.getTime();D=_.B(SA9);for(n=D.next();!n.done;n=D.next()){n=n.value;var y=n.unit,A=Math.floor(l/n.unitDuration);if(A>=(n.threshold===void 0?1:n.threshold)){U=U.format(-A,y);break a}}U=U.format(-0,7)}}}return U};
au3=function(l){if(typeof l.getTime==="function")return l;if(QoK(l))return GWN(l);throw Error("Mf`"+JSON.stringify(l));};
XRB=function(l,D){for(var U=0,n;;++U)if(n=new Date(l.getFullYear(),l.getMonth()+D,l.getDate()-U,l.getHours(),l.getMinutes(),l.getSeconds()),n.getMonth()===(l.getMonth()+D)%12)return n};
_.$B=function(l){return{runs:[{text:l}]}};
_.Nl=function(l){if(l&&l.simpleText)return l.simpleText;var D="";if(l&&l.runs)for(var U=0;U<l.runs.length;U++)l.runs[U].text&&(D+=l.runs[U].text);return D};
K4d=function(l,D,U,n){return l.videoEntity&&!l.policyEntity&&U!=="DOWNLOAD_STATE_FAILED"?[wu("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:gu(l.policyEntity)&&D!=="TRANSFER_STATE_FAILED"&&D!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?D==="TRANSFER_STATE_PAUSED_BY_USER"?[wu("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.uQ(D)?[wu("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:l.videoEntity.lengthSeconds?d2$(l.videoEntity.lengthSeconds,n):[]:
[wu("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
d2$=function(l,D){var U=[{thumbnailOverlayTimeStatusRenderer:{text:_.H6(yK_({seconds:l})),style:"DEFAULT"}}];D&&(l=D<=0||l<=0?0:D>=l?100:Math.ceil(D*100/l),l>0&&U.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:l}}));return U};
cKK=function(l,D,U,n,y){if(D==="TRANSFER_STATE_UNKNOWN"||!l)return{};if(_.uQ(D)||D==="TRANSFER_STATE_PRE_TRANSFER")var A=[wu("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var C,h;if(D==="TRANSFER_STATE_COMPLETE"&&((C=l.mainPlaylistEntity)==null?0:(h=C.videos)==null?0:h.length)){var b;l=(A=l.mainPlaylistEntity)==null?void 0:(b=A.videos)==null?void 0:b.length;A=(A=PtB(l))?{thumbnailOverlayBottomPanelRenderer:{text:_.H6(A),icon:{iconType:"PLAYLISTS"}}}:void 0;A=[bFg(),Object.assign({},
A!=null?A:{})]}else A=[]}a:if(D==="TRANSFER_STATE_PRE_TRANSFER")U=YS(_.C3("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(D==="TRANSFER_STATE_TRANSFER_IN_QUEUE")U=YS(_.C3("WAITING_TO_DOWNLOAD"));else if(_.uQ(D))U=Math.floor(U*100).toString(),U=YS(_.C3("DOWNLOADING_PERCENT",{percent:U},"Downloading... "+U+"%"));else{if(n&&(_.q("playlist_is_offline_selector_killswitch")&&(y=_.Jc().resolve(_.AL).isNetworkAvailable()),y)){U=oM$(_.C3("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
jZg(n));break a}U=void 0}D=D==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.C3("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},A.length?{thumbnailOverlays:A}:{},U?{viewPlaylistText:U}:{viewPlaylistText:_.$B("")},D.length?{badges:D}:{})};
pRC=function(l,D,U,n,y,A){if(D==="TRANSFER_STATE_UNKNOWN"||!l)return{};if(n==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var C=K4d(l,D,n);if(l.videoEntity&&!l.policyEntity&&n!=="DOWNLOAD_STATE_FAILED"){var h=_.C3("WAITING_TO_DOWNLOAD");if(h)return{shortViewCountText:_.$B(h),publishedTimeText:void 0,thumbnailOverlays:C}}if(!gu(l.policyEntity)){A=l.policyEntity&&!djl(l.policyEntity)?_.C3("DOWNLOAD_EXPIRED",{},"Download expired"):
_.C3("TRANSFER_FAILED",{},"Download failed");var b;if((b=l.policyEntity)==null?0:b.shortMessageForDisabledAction)A=l.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:YS(A),publishedTimeText:void 0,thumbnailOverlays:C}}if(D==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.$B(_.C3("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:C};if(D==="TRANSFER_STATE_FAILED"||D==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.$B(_.C3("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:C};if(D==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(b=_.C3("WAITING_TO_DOWNLOAD"),n==="DOWNLOAD_STATE_PAUSED"&&(b=_.C3("DOWNLOAD_PAUSED",{},"Download paused")),b))return{shortViewCountText:_.$B(b),publishedTimeText:void 0,thumbnailOverlays:C};if(_.uQ(D))return l=Math.floor(U*100).toString(),{shortViewCountText:_.$B(_.C3("DOWNLOADING_PERCENT",{percent:l},"Downloading... "+l+"%")),publishedTimeText:void 0,thumbnailOverlays:C};D=void 0;l.videoEntity.publishedTimestampMillis&&
(D=new Date,y&&(D=new Date(y)),D=YS(kW9(new Date(Number(l.videoEntity.publishedTimestampMillis)),D)));y=[];_.q("kevlar_woffle_badge_killswitch")||(y=[{metadataBadgeRenderer:{label:_.C3("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var u;l=YS((u=l.videoEntity.localizedStrings)==null?void 0:u.viewCount);return Object.assign({},A?{shortViewCountText:void 0}:{shortViewCountText:l},A?{}:{publishedTimeText:D},{badges:y,thumbnailOverlays:C})};
jod=function(l,D){l=l===void 0?x2c:l;switch(D.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:D.payload.playlistId,inviteLinkURL:D.payload.inviteLinkUrl};default:return l}};
oW9=function(l,D){l=l===void 0?F4N:l;switch(D.type){case "SET_CURRENT_FORM_ID":return D=D.payload.formId,l.currentFormId===D?l:{currentFormId:D,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var U=D.payload;D=U.groupId;U=U.command;if(l.currentFormId){var n=Object.assign({},l.commandsMap);n[D]=U;l=Object.assign({},l,{commandsMap:n})}return l;case "RESET_COMMAND_MAP":return Object.assign({},l,{commandsMap:{}});default:return l}};
uYG=function(l,D){l=l===void 0?gO_:l;switch(D.type){case "UPDATE_CANVAS_MODE":return Object.assign({},l,{currentMode:D.payload.currentMode});default:return l}};
QH$=function(l,D){l=l===void 0?vO9:l;switch(D.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},l,{guideIsExpanded:D.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},l,{scrollAtTop:D.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},l,{guideIsVisibleButNotPersistent:D.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},l,{miniplayerIsActive:D.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},l,{singleOptionSurveyIsActive:D.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},l,{slimlineSurveyRatingSelectedIndex:D.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},l,{richGridMiniMode:D.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},l,{richGridItemsPerRow:D.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},l,{richGridSlimItemsPerRow:D.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},l,{richGridContainerWidth:D.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},l,{richGridStyle:D.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},l,{currentPageType:D.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},l,{inlinePreviewIsActive:D.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},l,{inlinePreviewIsEnabled:D.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},l,{darkModeIsEnabled:D.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
l,{miniplayerPlaybackState:D.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},l,{tabGesturesIsActive:D.payload});case "SET_ONLINE_STATUS":return Object.assign({},l,{isOnline:D.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},l,{chipBarIsSticky:D.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},l,{frostedGlassMode:D.payload});default:return l}};
Gw3=function(){return _.q("kevlar_disable_theater_mode_persistence")?!1:_.il("START_IN_THEATER_MODE")};
Lu9=function(l,D){l=l===void 0?JYN:l;switch(D.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},l,{transcription:D.payload});case "SET_OVERLAY_STATE":return Object.assign({},l,{overlay:D.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return l}};
S39=function(){return pS(Object.assign({},{continuation:q3o,download:MKg,canvas:uYG,reportChannelAbuse:Re$,share:ZuC,talkToRecs:ee_,ui:QH$,voiceSearch:Lu9,watch:mn$,ypc:aZG,shorts:tKK,radioButtonGroup:oW9,collabInviteLink:jod},X0C))};
Kug=function(){return _.q("web_player_entities_middleware")?new sB(S39(),[kwc,dnB]):new sB(S39(),[kwc])};
_.EB=function(){cYs||(cYs=Kug());return cYs};
p0N=function(l,D,U){if(l.length)return{titleText:_.H6(D!=null?D:_.C3("DOWNLOADS",void 0,"Downloads")),contents:l.map(function(n){var y=n.videoEntity;n={videoId:y.videoId,title:YS(y.title),shortBylineText:YS(n.channelEntity.title),thumbnail:y.thumbnail};var A=y.videoId?p7(_.EB().getState(),y.videoId):0;y.videoId&&U?n.navigationEndpoint=_.Ie(y.videoId,U,void 0,void 0,A):y.videoId&&(n.navigationEndpoint=x3N(y.videoId,A,y.lengthSeconds));y.lengthSeconds&&(n.thumbnailOverlays=d2$(y.lengthSeconds,A));return{playlistPanelVideoRenderer:n}}),
totalVideos:l.length}};
xng=function(l){return(l=(0,_.we.getValueByKeys)(l,"playlistId"))?{playlistId:l}:null};
jHd=function(){return{}};
FuK=function(l,D){return new _.X0(function(U,n){l.then(function(y){if(y){if(y=D(y))return U(y);n()}},n)})};
oOG=function(l){var D,U,n,y=(D=l.contents)==null?void 0:(U=D.twoColumnWatchNextResults)==null?void 0:(n=U.autoplay)==null?void 0:n.autoplay,A,C,h;D=(A=l.contents)==null?void 0:(C=A.twoColumnWatchNextResults)==null?void 0:(h=C.playlist)==null?void 0:h.playlist;return y&&D&&D.playlistId?{rawResponse:l,autoplayRenderer:y,playlistPanelRenderer:D,playlistId:D.playlistId}:null};
rYl=function(l){var D=D===void 0?"UNKNOWN_INTERFACE":D;if(l.length===1)return l[0];var U=w0N[D];if(U){U=new RegExp(U);for(var n=_.B(l),y=n.next();!y.done;y=n.next())if(y=y.value,U.exec(y))return y}var A=[];Object.entries(w0N).forEach(function(C){var h=_.B(C);C=h.next().value;h=h.next().value;D!==C&&A.push(h)});
U=new RegExp(A.join("|"));l.sort(function(C,h){return C.length-h.length});
n=_.B(l);for(y=n.next();!y.done;y=n.next())if(y=y.value,!U.exec(y))return y;return l[0]};
_.T3=function(l){return"/youtubei/v1/"+rYl(l)};
_.IJ=function(l,D){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:l}}},D!==void 0?{durationHintMs:D}:{})}};
_.Hc=function(l,D){return _.IJ(_.$B(l),D)};
zeG=function(l,D){var U={mode:"NORMAL"};l&&(U.autoplayVideo=l.navigationEndpoint,U.nextButtonVideo=l.navigationEndpoint);D&&(U.previousButtonVideo=D.navigationEndpoint);return U};
NZd=function(l,D,U){if(!U||!U.sets)return{sets:[zeG(l,D)]};var n=U.sets.find(function(C){return C.mode==="NORMAL"}),y=(0,_.we.unsafeClone)(U);
if(!n)return y.sets.push(zeG(l,D)),y;if(!l)return U;n=_.we.getValueByKeys.apply(null,[n].concat(_.zz(fZN)));var A=_.we.getValueByKeys.apply(null,[l].concat(_.zz($nN)));if(n===A)return U;y.sets=y.sets.filter(function(C){return C.mode!=="NORMAL"});
y.sets.push(zeG(l,D));return y};
sH$=function(l){return!!l.playlistPanelVideoRenderer&&!l.playlistPanelVideoRenderer.unplayableText};
EO$=function(l){return!!l.playlistPanelVideoRenderer&&!!l.playlistPanelVideoRenderer.title};
TZg=function(l,D){if(D.contents&&!(l>=D.contents.length)&&(l=D.contents.slice(l).find(sH$)))return l.playlistPanelVideoRenderer};
IZN=function(l,D){if(D.contents)return(D=D.contents.find(function(U){return!!U.playlistPanelVideoRenderer&&U.playlistPanelVideoRenderer.videoId===l}))?D.playlistPanelVideoRenderer:void 0};
HuN=function(l,D){return D.contents?D.contents.findIndex(function(U){return!!U.playlistPanelVideoRenderer&&U.playlistPanelVideoRenderer.videoId===l}):-1};
Y3_=function(l,D){return D.contents?D.contents.findIndex(function(U){return!!U.playlistPanelVideoRenderer&&U.playlistPanelVideoRenderer.playlistSetVideoId===l}):-1};
Oul=function(l,D){l.contents&&D!==-1&&l.contents.splice(D,1).length===1&&l.totalVideos!==void 0&&(--l.totalVideos,delete l.videoCountText)};
_.VKl=function(l){var D=[];if(!l||!l.contents)return D;l=_.B(l.contents);for(var U=l.next();!U.done;U=l.next())U=U.value,U.playlistPanelVideoRenderer&&U.playlistPanelVideoRenderer.videoId&&D.push(U.playlistPanelVideoRenderer.videoId);return D};
_.i_N=function(l){if(l&&l.contents)return(l=l.contents.find(function(D){return!!D.playlistPanelVideoRenderer&&!!D.playlistPanelVideoRenderer.selected})||l.contents[l.currentIndex])?l.playlistPanelVideoRenderer:void 0};
lqC=function(l,D,U,n,y,A,C){y=y===void 0?!1:y;A=A===void 0?!1:A;C=C===void 0?!1:C;if(l.contents&&l.contents.length!==0){n&&(l.contents=l.contents.filter(n));n=l.contents.length;for(var h=0;h<n;h++){var b=l.contents[h].playlistPanelVideoRenderer;b&&(h===D?(A&&delete b.menu,b.indexText=_.$B("\u25b6")):y||l.isInfinite||b.indexText===void 0?delete b.indexText:b.indexText=_.$B((h+1+U).toString()))}l.currentIndex=D+U;C&&(delete l.videoCountText,l.totalVideos=n)}};
_.YB=function(l){l=DP9(l);if(l){var D=l.length;var U=-12%D;U<0&&(U=D+U);l=l.slice(D-U)+l.slice(0,D-U)}else l="";U="";for(D=0;D<l.length&&l[D]!==UPo;D++)U+=l[D];return U};
_.nag=function(l,D){var U=document.body;D=D===void 0?function(h){return h}:D;
var n,y=null;l=_.B(l);for(n=l.next();!n.done;n=l.next()){var A=n.value;n="div";A[2]&&(n=D(A[2]));n=document.createElement(n);y||(y=n);var C=A[0];A=A[1];C&&(n.id=D(C));if(A)for(A=_.B(A),C=A.next();!C.done;C=A.next())n.classList.add(D(C.value));U.appendChild(n);U=n}return[y,U]};
yQ9=function(l,D){for(var U="",n=0;n<D;n++)U+=l.charAt(Math.floor(Math.random()*l.length));return U};
OB=function(l){return yQ9("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",l)};
VT=function(l){return yQ9("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",l)};
iV=function(l){return yQ9("0123456789",l)};
AQd=function(){var l=performance.now(),D=new Date;var U="2."+D.getFullYear()+String(D.getMonth()+1).padStart(2,"0")+String(D.getDate()).padStart(2,"0");for(var n,y=Math.floor(Math.random()*11)+15,A=[],C=0;C<y;C++)A.push(Math.floor(Math.random()*26476865)+24547720);n=A.join(",");var h=OB(10),b=OB(100),u=OB(102),Q=OB(106),G=OB(108),J=OB(11),L=OB(1140),R=OB(123),a=OB(14),S=OB(16),d=OB(1900),c=OB(23),N=OB(26),z=OB(34),f=OB(397),I=OB(44),iG=OB(5),CC=OB(72),vo=OB(74),td=OB(75),GN=OB(88),Ms=OB(91),j3="rr2---sn-q4fzene7 rr2---sn-aigl6nze rr1---sn-q4fl6nss rr4---sn-5hnednsz rr1---sn-q4fl6n6s rr5---sn-q4flrn7r rr1---sn-q4fl6nsr rr2---sn-q4fl6n6r rr1---sn-ntqe6n7r rr4---sn-q4fl6ns6 rr5---sn-q4fzen7e rr5---sn-t0a7lnee rr3---sn-q4fl6nd7 rr3---sn-q4flrn7y rr4---sn-q4flrn7r rr3---sn-q4fzen7r rr2---sn-hgn7rnll rr1---sn-q4flrnsd rr3---sn-q4flrnes rr1---sn-q4fl6ndl".split(" ");
var wl=j3[Math.floor(Math.random()*j3.length)];var zN=(new Date("2010-01-01")).getTime();var Z7=(new Date(zN+Math.random()*((new Date).getTime()-zN))).toISOString().split("T")[0];for(var Lm,Vg=[],v5=0;v5<4;v5++)Vg.push(Math.floor(Math.random()*100));Lm=Vg.join(".");var mk=Number(iV(5)),dy=Number(iV(6)),eW=Number(iV(7)),Qq=Number(iV(9)),Bo=iV(1),D7=iV(10),qr=iV(16),H5=iV(19),Mr=iV(2),V_=iV(20),ec=iV(21),Nr=iV(3),gy=iV(4),uH=iV(5),yq=iV(6),TN=iV(7),l$=iV(8),uw=iV(9);var UW=yQ9("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var GT=[VT(5),VT(5),VT(5)].join("%2C"),$8=[iV(3),iV(5),iV(5)].join("%2C"),hA=VT(0),qG=VT(1),zv=VT(10),mJ=VT(108),nP=VT(11),Ft=VT(12),PE=VT(13),bO=VT(14),gs=VT(15),ip=VT(16),G3=VT(17),S3=VT(18),F$=VT(19),Ec=VT(2),Rg=VT(20),R$=VT(22),ch=VT(23),k8=VT(24),X8=VT(266),ag=VT(3),zT=VT(30),fc=VT(34),Jy=VT(35),TP=VT(36),yH=VT(4),$C=VT(40),H_=VT(43),U1=VT(47),J4=VT(5),Lk=VT(6),zI=VT(7),yv=VT(75),E1=VT(8),Z2=VT(80),nA=VT(9),ta="https://www."+VT(12)+".com",qi={},uX={},kA={},Q7={},d7={},vw={},aA={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:n}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:U},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+VT(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:U},{key:"client.name",value:"WEB"},{key:"client.fexp",value:n}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:ec+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+VT(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:$C,ypcGetOfflineUpsellEndpoint:{params:Z2}},trackingParams:Jy+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&cnr="+Mr+"&ratebypass=yes&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&c=WEB&txp="+TN+"&n="+S+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:dy,width:640,height:360,lastModified:qr,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:TN,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+$8+"&mn="+
GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&cnr="+Mr+"&ratebypass=yes&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&c=WEB&txp="+TN+"&n="+S+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+mJ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:dy,width:1280,
height:720,lastModified:qr,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:TN,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+$8+"&mn="+GT+"&ms="+
GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+uw+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&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="+G,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:eW,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:uw,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:eW,approxDurationMs:TN},{itag:248,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+$8+"&mn="+GT+"&ms="+GT+"&mv="+
qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fwebm&ns="+k8+"&gir="+ag+"&clen="+uw+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:eW,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:uw,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:eW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:399,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+uw+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&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="+G,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:eW,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:uw,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:eW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:136,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+uw+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:eW,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:uw,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:dy,approxDurationMs:TN},{itag:247,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+$8+"&mn="+
GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fwebm&ns="+k8+"&gir="+ag+"&clen="+uw+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:eW,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:uw,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:dy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:398,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+uw+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:eW,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:uw,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:dy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:135,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:dy,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:dy,approxDurationMs:TN},{itag:244,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+$8+"&mn="+
GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fwebm&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+mJ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:dy,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:dy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:397,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&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="+G,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:dy,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:dy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:134,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:dy,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:dy,highReplication:!0,approxDurationMs:TN},{itag:243,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fwebm&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:dy,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:dy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:396,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:dy,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:dy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:133,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:dy,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:dy,approxDurationMs:TN},{itag:242,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+$8+"&mn="+
GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fwebm&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:dy,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:dy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:395,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:dy,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:dy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:160,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:dy,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:mk,approxDurationMs:TN},{itag:278,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+$8+"&mn="+
GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fwebm&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:dy,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:mk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:394,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&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="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=video%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&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="+G,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:mk,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:mk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:TN},{itag:140,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=audio%2Fmp4&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:dy,
initRange:{start:"0",end:"631"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:dy,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:TN,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+
Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=audio%2Fwebm&ns="+k8+"&gir="+ag+"&clen="+TN+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'audio/webm; codecs="opus"',bitrate:mk,initRange:{start:"0",end:"265"},indexRange:{start:Nr,
end:gy},lastModified:qr,contentLength:TN,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:mk,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:TN,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=audio%2Fwebm&ns="+
k8+"&gir="+ag+"&clen="+TN+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'audio/webm; codecs="opus"',bitrate:mk,initRange:{start:"0",end:"265"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:TN,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:mk,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:TN,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+wl+".googlevideo.com/videoplayback?expire="+D7+"&ei="+c+"&ip="+Lm+"&id=o-AF"+H_+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+$8+"&mn="+GT+"&ms="+GT+"&mv="+qG+"&mvi="+Bo+"&pl="+Mr+"&initcwndbps="+TN+"&siu="+Bo+"&spc="+I+"&vprv="+Bo+"&svpuc="+Bo+"&mime=audio%2Fwebm&ns="+k8+"&gir="+ag+"&clen="+l$+"&dur="+l$+"&lmt="+qr+"&mt="+D7+"&fvip=3&keepalive="+ag+"&c=WEB&txp="+
TN+"&n="+ip+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'audio/webm; codecs="opus"',bitrate:dy,initRange:{start:"0",end:"265"},indexRange:{start:Nr,end:gy},lastModified:qr,contentLength:l$,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:dy,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:TN,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="+uw+"&docid="+J+"&ei="+c+"&feature="+h+"&fexp="+hA+"&ns="+Ec+"&plid="+S+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+qG+"&el="+zv+"&len="+gy+"&of="+R$+
"&uga="+Mr+"&vm="+X8},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+uw+"&docid="+J+"&ei="+c+"&feature="+h+"&fexp="+hA+"&ns="+Ec+"&plid="+S+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+qG+"&el="+zv+"&len="+gy+"&of="+R$+"&uga="+Mr+"&vm="+X8},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+uw+"&docid="+J+"&ei="+c+"&feature="+h+"&fexp="+hA+"&ns="+Ec+"&plid="+S+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
qG+"&el="+zv+"&len="+gy+"&of="+R$+"&uga="+Mr+"&vm="+X8},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+c+"&m="+GN+"&oid="+R$+"&plid="+S+"&pltype="+zI+"&ptchn="+R$+"&ptk="+a+"&video_id="+J},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+uw+"&docid="+J+"&ei="+c+"&event="+bO+"&feature="+h+"&fexp="+hA+"&ns="+Ec+"&plid="+S+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+qG},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
ip+"&ver=2&cmt=1."+Nr+"&fmt="+Nr+"&fs=0&rt="+uH+"&euri&lact="+Nr+"&cl="+uw+"&mos="+Bo+"&volume=100&cbrand="+J4+"&cbr="+Lk+"&cbrver="+Lm+"&c=WEB&cver="+U+"&cplayer=UNIPLAYER&cos="+nA+"&cosver="+TN+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+Mr+"&len="+l$+"&fexp="+GT+"&feature=g-high-rec&afmt="+Nr+"&muted=0&conn=1&docid="+J+"&ei="+c+"&plid="+S+"&vm="+VT(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
J+"&caps="+ag+"&opi="+uw+"&xoaf="+Bo+"&hl="+Ec+"&ip="+Lm+"&ipbits="+Bo+"&expire="+D7+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Lm+"&key="+ag+"&lang="+iG,name:{simpleText:gs},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+J+"&caps="+ag+"&opi="+uw+"&xoaf="+Bo+"&hl="+Ec+"&ip="+Lm+"&ipbits="+Bo+"&expire="+D7+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Lm+"&key="+ag+"&kind="+ag+"&lang="+Ec,name:{simpleText:ip},
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:nP,title:PE,lengthSeconds:"1155",keywords:[Ft,gs,E1,nA],channelId:k8,isOwnerViewing:!1,shortDescription:gs,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+TP+"G&rs="+fc,width:168,height:94},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+TP+
"G&rs="+fc,width:196,height:110},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+TP+"G&rs="+z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+TP+"G&rs="+z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+J+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:TN,author:PE,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:TN,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
R$+"/featured_channel.jpg?v="+E1,width:40,height:40}]},trackingParams:Jy+"=",navigationEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"/channel/"+k8,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:k8}},channelName:PE,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:nA}]},subscribed:!1,enabled:!0,type:"FREE",channelId:k8,showPreferences:!1,subscribedButtonText:{runs:[{text:yH}]},unsubscribedButtonText:{runs:[{text:ip}]},
trackingParams:Jy+"=",unsubscribeButtonText:{runs:[{text:ip}]},serviceEndpoints:[{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[k8],params:E1}},{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:$C,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Jy+"=",dialogMessages:[{runs:[{text:zv},
{text:yH},{text:G3}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:E1}]},serviceEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[k8],params:E1}},accessibility:{label:Rg},trackingParams:Jy+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Rg}]},accessibility:{label:PE},
trackingParams:Jy+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:F$}},unsubscribeAccessibility:{accessibilityData:{label:J4}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:l$},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[k8],
params:E1}},unsubscribeCommand:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[k8],params:E1}},addToWatchLaterCommand:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:nP,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:nP}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+J+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+TP+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+J+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+nP,width:1280,
height:720},title:{simpleText:Rg},description:{simpleText:zv},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+S3,externalChannelId:k8,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:TN,category:"Travel & Events",publishDate:Z7,ownerChannelName:PE,uploadDate:Z7}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:nP},trackingParams:Jy+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:$C,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Jy+"="}}],headerText:{simpleText:J4},icon:{infoCardIconRenderer:{trackingParams:Jy+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Jy+"="}},trackingParams:Jy+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Jy+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+nP+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:UW,interpreterSafeUrl:(qi.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+zT+".js",qi),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:zI},{text:nP,bold:!0}]},endpoint:{clickTrackingParams:$C,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:Jy+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:J4}]},actionButton:{buttonRenderer:{text:{runs:[{text:Ft}]},navigationEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+J,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
J,target:"TARGET_NEW_WINDOW"}},trackingParams:Jy+"="}},trackingParams:Jy+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+CC+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+CC+"=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:TN,endMs:TN,title:{accessibility:{accessibilityData:{label:S3}},simpleText:PE},metadata:{simpleText:S3},callToAction:{simpleText:gs},dismiss:{simpleText:E1},endpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"/channel/"+k8,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:k8}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:J4}]},subscribed:!1,enabled:!0,type:"FREE",channelId:k8,showPreferences:!1,
subscribedButtonText:{runs:[{text:J4}]},unsubscribedButtonText:{runs:[{text:G3}]},trackingParams:Jy+"=",unsubscribeButtonText:{runs:[{text:zI}]},serviceEndpoints:[{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[k8],params:E1}},{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:$C,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Jy+
"=",dialogMessages:[{runs:[{text:Lk},{text:J4},{text:nA}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:F$}]},serviceEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[k8],params:E1}},accessibility:{label:E1},trackingParams:Jy+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:J4}]},
accessibility:{label:PE},trackingParams:Jy+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:bO}},unsubscribeAccessibility:{accessibilityData:{label:Ft}}}},trackingParams:Jy+"=",isSubscribe:!0,id:V_}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+TP+"G&rs="+z,width:168,height:94},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+TP+"G&rs="+fc,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+TP+"G&rs="+z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+TP+"G&rs="+z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+J+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:TN,endMs:TN,title:{accessibility:{accessibilityData:{label:nP}},simpleText:nA},metadata:{simpleText:F$},endpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
nP,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:nP,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+wl+".googlevideo.com/videoplayback?source=youtube&oeis="+Bo+"&c=WEB&oad="+gy+"&ovd="+gy+"&oaad="+uH+"&oavd="+uH+"&ocs="+Nr+"&oewis="+Bo+"&oputc="+Bo+"&ofpcc="+Bo+"&siu="+Bo+"&msp="+Bo+"&odepv="+Bo+
"&id=o-AF"+H_+"&ip="+Lm+"&initcwndbps="+TN+"&mt="+D7+"&oweuc="+hA}}}}},trackingParams:Jy+"=",id:V_,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:J4}},simpleText:zv},style:"DEFAULT"}}]}}],startMs:TN,trackingParams:Jy+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Bo,offsetEndMilliseconds:uH},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+uw+";dc_trk_cid="+uw+";dc_dbm_token="+G+";ord="+D7+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Bo+";dc_rui="+Bo+";dc_exteid="+V_+";dc_av="+Nr+";dc_sk="+Bo+";dc_ctype="+Mr+";dc_ref=http://www.youtube.com/video/"+nP+";dc_pubid="+Bo+";dc_btype=23?gclid="+Ms+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Bo+"&ns="+Bo+"&event="+Bo+"&device="+Bo+"&content_v="+J+"&el="+zv+"&ei="+c+"&devicever="+U+"&bti="+TN+"&format="+yq+"&break_type="+Bo+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Bo+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Lm+"&slot_pos="+Bo+"&slot_len="+Bo+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+$8+"&ad_len="+uH+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
nP+"&aqi="+c+"&ad_rmp="+Bo+"&sli="+Bo}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+
";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+yq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+TN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&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+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&ctype="+Nr+"&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+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_engaged_view&ctype="+Nr+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+yq+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
uw+";dc_trk_cid="+uw+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Bo+";ord="+uw+";dc_rui="+Bo+";dc_exteid="+H5+";dc_av="+Bo+";dc_sk="+Bo+";dc_ctype="+Mr+";dc_pubid="+Bo+";dc_btype=3?gclid="+Ms+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+ch+"&ad_cpn=[AD_CPN]&id="+Lk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Lk+"&dc_pubid="+Bo+"&dc_exteid="+V_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+ch+"&ad_cpn=[AD_CPN]&id="+Lk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Bo},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Lk+"&avm="+Bo+"&dc_pubid="+Bo+"&dc_exteid="+
V_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&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="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
u+"&sig="+ch+"&ad_cpn=[AD_CPN]&id="+Lk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Bo},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Lk+"&dc_pubid="+Bo+"&dc_exteid="+V_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+yq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+yq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:$C,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+
Nr+"&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/"+J+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Jy+"="},trackingParams:Jy+
"=",templatedCountdown:{templatedAdText:{text:nA,isTemplated:!0,trackingParams:Jy+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:nP,isTemplated:!1,trackingParams:Jy+"="},trackingParams:Jy+"="}},trackingParams:Jy+"=",skipOffsetMilliseconds:5E3}},trackingParams:Jy+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:E1},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jy+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:yH,isTemplated:!1,trackingParams:Jy+"="},trackingParams:Jy+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:bO,isTemplated:!0,trackingParams:Jy+"="}},trackingParams:Jy+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:$C,openPopupAction:{popup:{aboutThisAdRenderer:{url:(uX.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Ec+"&origin=www.youtube.com&ata_theme="+yH,uX),trackingParams:Jy+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Jy+"="}},hoverText:{runs:[{text:yH}]},trackingParams:Jy+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jy+"="},headline:{text:Lk,isTemplated:!1,trackingParams:Jy+"="},description:{text:Ft,
trackingParams:Jy+"="},actionButton:{buttonRenderer:{text:{simpleText:zv},navigationEndpoint:{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+uw+";dc_trk_cid="+uw+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Bo+";ord="+uw+";dc_rui="+Bo+";dc_exteid="+V_+";dc_av="+Bo+";dc_sk="+Bo+";dc_ctype="+Mr+";dc_pubid="+Bo+";dc_btype=3?gclid="+Ms+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jy+"="}},startMs:Bo,trackingParams:Jy+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:zI},elementId:E1}},elementId:gs,trackingParams:Jy+"=",legacyInfoCardVastExtension:gs,sodarExtensionData:{siub:zv,bgub:bO,scs:F$,bgp:yH},externalVideoId:nP,adLayoutLoggingData:{serializedAdServingDataEntry:gs},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jy+"="},
headline:{text:Lk,isTemplated:!1,trackingParams:Jy+"="},description:{text:J4,isTemplated:!1,trackingParams:Jy+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:bO},navigationEndpoint:{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+uw+";dc_trk_cid="+uw+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Bo+";ord="+uw+";dc_rui="+Bo+";dc_exteid="+
V_+";dc_av="+Bo+";dc_sk="+Bo+";dc_ctype="+Mr+";dc_pubid="+Bo+";dc_btype=3?gclid="+Ms+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+
Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jy+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Jy+"="}},navigationEndpoint:{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+uw+";dc_trk_cid="+
uw+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Bo+";ord="+uw+";dc_rui="+Bo+";dc_exteid="+V_+";dc_av="+Bo+";dc_sk="+Bo+";dc_ctype="+Mr+";dc_pubid="+Bo+";dc_btype=3?gclid="+Ms+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+
R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jy+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Jy+"="},abandonCommands:{commands:[{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&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="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+
Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:$C,commandExecutorCommand:{commands:[{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:ip,isTemplated:!1,trackingParams:Jy+
"="},trackingParams:Jy+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Rg},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+TN+";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="+uw+";dc_trk_cid="+uw+";ord="+D7+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Bo+";dc_rui="+Bo+";dc_exteid="+V_+";dc_av="+Nr+";dc_sk="+Bo+";dc_ctype="+Mr+";dc_ref=http://www.youtube.com/video/"+nP+";dc_pubid="+Bo+";dc_btype=23?gclid="+Ms+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Bo+"&ns="+Bo+"&event="+Bo+"&device="+Bo+"&content_v="+J+"&el="+zv+"&ei="+c+"&devicever="+U+"&bti="+TN+"&format="+yq+"&break_type="+Bo+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Bo+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Lm+"&slot_pos="+Bo+"&slot_len="+Bo+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
$8+"&ad_len="+uH+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+nP+"&aqi="+c+"&ad_rmp="+Bo+"&sli="+Bo}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+yq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+
N+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+TN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&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+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&ctype="+Nr+"&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+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_engaged_view&ctype="+Nr+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+yq+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+ch+"&ad_cpn=[AD_CPN]&id="+
Lk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Lk+"&dc_pubid="+Bo+"&dc_exteid="+V_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+
"&sig="+ch+"&ad_cpn=[AD_CPN]&id="+Lk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Bo},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Lk+"&avm="+Bo+"&dc_pubid="+Bo+"&dc_exteid="+V_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&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="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+ch+"&ad_cpn=[AD_CPN]&id="+Lk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Bo},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Lk+"&dc_pubid="+Bo+"&dc_exteid="+V_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+yq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+yq+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+
Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&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/"+J+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Jy+"="},trackingParams:Jy+"=",templatedCountdown:{templatedAdText:{text:gs,isTemplated:!0,trackingParams:Jy+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Lk,isTemplated:!1,trackingParams:Jy+"="},trackingParams:Jy+"="}},
trackingParams:Jy+"=",skipOffsetMilliseconds:5E3}},trackingParams:Jy+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:S3},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jy+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:nA,isTemplated:!1,trackingParams:Jy+"="},trackingParams:Jy+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:E1,
isTemplated:!0,trackingParams:Jy+"="}},trackingParams:Jy+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:$C,openPopupAction:{popup:{aboutThisAdRenderer:{url:(kA.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Ec+"&origin=www.youtube.com&ata_theme="+yH,kA),trackingParams:Jy+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Jy+"="}},hoverText:{runs:[{text:F$}]},trackingParams:Jy+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vo+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jy+"="},headline:{text:gs,isTemplated:!1,trackingParams:Jy+"="},description:{text:zI,trackingParams:Jy+"="},actionButton:{buttonRenderer:{text:{simpleText:PE},navigationEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jy+"="}},startMs:Bo,trackingParams:Jy+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:nP},elementId:zv}},elementId:F$,trackingParams:Jy+"=",legacyInfoCardVastExtension:yH,sodarExtensionData:{siub:yH,bgub:zv,scs:Rg,bgp:gs},externalVideoId:nP,adLayoutLoggingData:{serializedAdServingDataEntry:yH},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vo+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jy+"="},headline:{text:zI,
isTemplated:!1,trackingParams:Jy+"="},description:{text:zI,isTemplated:!1,trackingParams:Jy+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:yH},navigationEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jy+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Jy+"="}},navigationEndpoint:{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+
Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jy+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Jy+"="},abandonCommands:{commands:[{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&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="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+Mr+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:$C,commandExecutorCommand:{commands:[{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:zv,isTemplated:!1,trackingParams:Jy+"="},trackingParams:Jy+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:nP},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Bo+";dc_exteid="+V_+";met="+Bo+";ecn"+Bo+"="+Bo+";etm1="+Bo+";eid1="+
TN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:yH}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:uH,offsetEndMilliseconds:yq},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+c+"&m_pos="+Mr+"&token=ALHj"+f+"&index="+Bo+"&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="+U+"&m_pos_ms="+uH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gs}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:yq,offsetEndMilliseconds:yq},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+c+"&m_pos="+Nr+"&token=ALHj"+f+"&index="+Bo+"&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="+
U+"&m_pos_ms="+yq}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zI}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yq,offsetEndMilliseconds:yq},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+c+"&m_pos="+Nr+"&token=ALHj"+f+"&index="+Bo+"&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="+
U+"&m_pos_ms="+yq}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yq,offsetEndMilliseconds:yq},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+c+"&m_pos="+Nr+"&token=ALHj"+f+"&index="+Bo+"&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="+
U+"&m_pos_ms="+yq}},adSlotLoggingData:{serializedSlotAdServingDataEntry:bO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yq,offsetEndMilliseconds:Mr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+c+"&m_pos="+Nr+"&token=ALHj"+f+"&index="+Bo+"&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="+
U+"&m_pos_ms="+yq}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Mr,offsetEndMilliseconds:Mr},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+c+"&m_pos="+Mr+"&token=ALHj"+f+"&index="+Bo+"&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="+
U+"&m_pos_ms="+Mr}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ft}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:E1,isTemplated:!1,trackingParams:Jy+"="},description:{text:bO,isTemplated:!1,trackingParams:Jy+"="},actionButton:{buttonRenderer:{text:{simpleText:Rg},navigationEndpoint:{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
uw+";dc_trk_cid="+uw+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Bo+";ord="+uw+";dc_rui="+Bo+";dc_exteid="+V_+";dc_av="+Bo+";dc_sk="+Bo+";dc_ctype="+Mr+";dc_pubid="+Bo+";dc_btype=3?gclid="+Ms+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jy+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U1+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Jy+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+td+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Jy+"="},navigationEndpoint:{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+uw+";dc_trk_cid="+uw+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Bo+";ord="+uw+
";dc_rui="+Bo+";dc_exteid="+V_+";dc_av="+Bo+";dc_sk="+Bo+";dc_ctype="+Mr+";dc_pubid="+Bo+";dc_btype=3?gclid="+Ms+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jy+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:$C,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Q7.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Ec+"&origin=www.youtube.com&ata_theme="+yH,Q7),trackingParams:Jy+"="}},popupType:"DIALOG"}},trackingParams:Jy+"="}},hoverText:{runs:[{text:G3}]},trackingParams:Jy+"="}},adVideoId:nP,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nA},associatedCompositePlayerBytesLayoutId:ip}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:E1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:S3,isTemplated:!1,trackingParams:Jy+"="},description:{text:nP,isTemplated:!1,trackingParams:Jy+"="},actionButton:{buttonRenderer:{text:{simpleText:F$},navigationEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+
R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jy+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vo+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Jy+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+yv+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Jy+"="},navigationEndpoint:{clickTrackingParams:$C,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+
Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jy+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:$C,openPopupAction:{popup:{aboutThisAdRenderer:{url:(d7.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Ec+"&origin=www.youtube.com&ata_theme="+yH,d7),trackingParams:Jy+"="}},popupType:"DIALOG"}},trackingParams:Jy+"="}},
hoverText:{runs:[{text:yH}]},trackingParams:Jy+"="}},adVideoId:nP,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+nP+"&cid="+N+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:zI},associatedCompositePlayerBytesLayoutId:ip}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zI}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:J4,
isTemplated:!1,trackingParams:Jy+"="},description:{text:S3,isTemplated:!1,trackingParams:Jy+"="},actionButton:{buttonRenderer:{text:{simpleText:zI},navigationEndpoint:{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+uw+";dc_trk_cid="+uw+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Bo+";ord="+uw+";dc_rui="+Bo+";dc_exteid="+V_+";dc_av="+Bo+";dc_sk="+Bo+";dc_ctype="+
Mr+";dc_pubid="+Bo+";dc_btype=3?gclid="+Ms+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+
z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jy+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U1+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Jy+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+td+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Jy+
"="},navigationEndpoint:{clickTrackingParams:$C,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+uw+";dc_trk_cid="+uw+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Bo+";ord="+uw+";dc_rui="+Bo+";dc_exteid="+V_+";dc_av="+Bo+";dc_sk="+Bo+";dc_ctype="+Mr+";dc_pubid="+Bo+";dc_btype=3?gclid="+Ms+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+R+"AxAA&ase=2&num="+Bo+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+z+"&adurl="+ta+"&label=video_click_to_advertiser_site&ctype="+Nr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jy+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:$C,openPopupAction:{popup:{aboutThisAdRenderer:{url:(vw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Ec+"&origin=www.youtube.com&ata_theme="+yH,vw),trackingParams:Jy+"="}},popupType:"DIALOG"}},trackingParams:Jy+
"="}},hoverText:{runs:[{text:bO}]},trackingParams:Jy+"="}},adVideoId:nP,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+R+"AxAA&sigh="+J+"&cid="+N+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nA},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:ip}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zv}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:zT,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:zT,command:{innertubeCommand:{clickTrackingParams:$C,ypcGetOfflineUpsellEndpoint:{params:Z2}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Jy+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:D7,nanos:Qq}}}},GH=JSON.stringify(aA),ep=performance.now()-l;return{objectRepresentation:aA,jsonRepresentation:GH,generationTime:ep}};
W$g=function(l,D){if(l===D)return!0;if(!l||!D||typeof l!==typeof D)return!1;if(l instanceof Array&&D instanceof Array){if(l.length!==D.length)return!1;for(var U=0;U<l.length;U++)if(!W$g(l[U],D[U]))return!1;return!0}if(typeof l==="object"&&typeof D==="object"&&l&&D){for(U in l)if(!(U in D&&W$g(l[U],D[U])))return!1;for(var n in D)if(!(n in l))return!1;return!0}return!1};
_.Ds=function(){if(!lV){lV=new aj(new Bgl);var l=_.RG("client_streamz_web_flush_count",-1);l!==-1&&(lV.invocationLimit=l)}return lV};
UJ=function(l,D,U,n){if(l===D)return!0;if(Array.isArray(l)&&Array.isArray(D)){if(l.length!==D.length)return!1;for(var y=0;y<l.length;y++)if(!UJ(l[y],D[y],U,n))return!1;return!0}if(l instanceof Set||D instanceof Set){if(l instanceof Set&&D instanceof Set){if(l.size!==D.size)return!1;n=_.B(l.values());for(y=n.next();!y.done;y=n.next())if(!D.has(y.value))return!1;return!0}return!1}if(l instanceof Function){if(n)return!0;l.name===""&&_.EU(Error("Qf"),"ERROR");return!1}if(l instanceof Date&&D instanceof
Date)return l.getTime()===D.getTime();if(l instanceof Object&&D instanceof Object){if(Czo(l)&&Czo(D))try{return l.equals(D)}catch(C){_.EU(Error("Rf`"+C),"ERROR")}y=Object.getOwnPropertyNames(l).filter(function(C){return U?l[C]!==void 0:!0});
var A=Object.getOwnPropertyNames(D).filter(function(C){return U?D[C]!==void 0:!0});
if(y.length!==A.length)return!1;y=_.B(y);for(A=y.next();!A.done;A=y.next())if(A=A.value,!UJ(l[A],D[A],U,n))return!1;return!0}return!1};
Czo=function(l){l=Object.getPrototypeOf(l).equals;return l instanceof Function&&l.length===1};
_.b__=function(){return _.P(function(l){if(l.nextAddress==1)return h2B!==2?l.jumpTo(2):l.yield(PzB(),3);l.nextAddress!=2&&(h2B=l.yieldResult);return l.return(h2B)})};
_.va9=function(){return _.P(function(l){if(l.nextAddress==1)return _.q("ab_pl_man")?ga9!==2?l.jumpTo(2):l.yield(u_C(),3):l.return(1);l.nextAddress!=2&&(ga9=l.yieldResult);return l.return(ga9)})};
JQ9=function(){return _.P(function(l){if(l.nextAddress==1)return _.q("ab_fk_sk_cl")?QYK!==2?l.jumpTo(2):l.yield(GON(),3):l.return(1);l.nextAddress!=2&&(QYK=l.yieldResult);return l.return(QYK)})};
_.Mw$=function(){return _.P(function(l){if(l.nextAddress==1)return _.q("ab_det_apb_b")?L$9!==2?l.jumpTo(2):l.yield(qhB(),3):l.return(1);l.nextAddress!=2&&(L$9=l.yieldResult);return l.return(L$9)})};
e2G=function(){var l;return _.P(function(D){if(D.nextAddress==1)return D.yield(Promise.all([_.b__(),_.Mw$(),_.va9(),JQ9()]),2);if(D.nextAddress!=3)return R2c()?D.return(!0):D.yield(_.Z__(),3);l=D.yieldResult;return D.return(l===0)})};
R2c=function(){var l=!1,D=function(U,n){mP9.increment(n,U);U===0&&(l=!0)};
D(_.aq9(),"j.s_");D(h2B,"f.i_");D(L$9,"a.b_");D(ga9,"p.m_");D(QYK,"i.f_");twK===2&&(twK=_.XZG(Sh3));D(twK,"e.h_");_.q("ks_det_gpbl")||D(_.kOs(),"p.i_");_.q("ks_get_o_pp")||D(_.dPG(),"g.o_");_.q("ab_deg_unex_thr")||D(_.K$g(),"a.o_");D(cQ$,"s.t_");_.q("ab_det_sc_inj_enf")&&D(_.pZc(),"s.i_");D(xP9,"d.p_");D(_.jY9(_.nU),"o.p_");D(_.F$G()===0?0:_.oaC(),"o.a_");return _.q("debug_sk_em_precheck")?!0:l};
rQ3=function(){var l=[].concat(_.zz(wZ_));try{var D=AQd();l.push({jsonRepresentation:D.jsonRepresentation,objectRepresentation:D.objectRepresentation})}catch(U){l=[].concat(_.zz(wZ_))}return l};
z2K=function(){var l=["adPlacements","adSlots"];try{return l.filter(function(){return!0}).length!==l.length?0:1}catch(D){return 0}};
_.dPG=function(){if(z2K()===0)return 0;var l=AQd(),D=l.objectRepresentation,U=(0,_.we.unsafeClone)(D),n=[];if(D&&typeof D==="object")for(var y in D)n.push(y);else return 4;l=l.objectRepresentation.adPlacements;if(!(l&&l.length>0))return 4;try{if(!W$g(n,Object.getOwnPropertyNames(D)))return 0}catch(A){return 0}return W$g(U,D)?1:0};
_.jY9=function(l){if(!l||!l.length||typeof l==="string")return 0;for(var D=Object.getOwnPropertyNames(Object.prototype),U=0;U<l.length;U++)for(var n=_.YB(l[U]),y=_.B(D),A=y.next();!A.done;A=y.next())if(n===A.value)return 0;return 1};
fqc=function(l){var D=_.YB(l[1]);if(l[0]===null)return D;l=l[0];for(var U={},n=0;n<l.length;n++){var y=_.YB(l[n]);if(n===0)U[y]=D;else{var A={};A[y]=U;U=A}}return U};
_.F$G=function(){for(var l=_.yf,D=0;D<l.length;D++){var U=fqc(l[D]),n=[];n.push(U);if(n.length===0)return 0}return 1};
_.oaC=function(){for(var l=_.yf,D={},U=0;U<l.length;D={pgK:void 0},U++){var n=[fqc(l[U])];D.pgK=[];n.forEach(function(y){return function(A){y.pgK[y.pgK.length]=A}}(D));
if(D.pgK.length===0)return 0}return 1};
_.aq9=function(){for(var l=_.B(rQ3()),D=l.next();!D.done;D=l.next()){var U=D.value;D=U.jsonRepresentation;U=U.objectRepresentation;try{var n=JSON.parse(D);if(!UJ(n,U,!1,!1))return 0}catch(y){return 0}}return 1};
_.pZc=function(){try{var l=_.md("ab_det_sc_inj_val");l.length===1&&l[0]===""&&(l=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var D=document.querySelectorAll("script"),U=_.B(D),n=U.next();!n.done;n=U.next())for(var y=n.value,A=_.B(l),C=A.next();!C.done;C=A.next()){var h=C.value;D=void 0;if((D=y.textContent)==null?0:D.includes(h))return 0}}catch(b){return 4}return 1};
_.Z__=function(){var l,D,U,n,y,A,C;return _.P(function(h){switch(h.nextAddress){case 1:_.ZY(h,2),l=_.B(wZ_),D=l.next();case 4:if(D.done)return h.return(1);n=U=D.value;y=n.jsonRepresentation;A=n.objectRepresentation;return h.yield((new Response(y,{status:200})).json(),7);case 7:C=h.yieldResult;if(!UJ(C,A,!1,!1))return h.return(0);D=l.next();h.jumpTo(4);break;case 2:return _.kF(h),h.return(4)}})};
_.K$g=function(){try{btoa("abc")}catch(l){return 0}return 1};
PzB=function(){var l,D,U,n,y,A,C,h,b,u,Q;return _.P(function(G){switch(G.nextAddress){case 1:_.ZY(G,2),l=_.B(rQ3()),D=l.next();case 4:if(D.done)return G.return(1);n=U=D.value;y=n.jsonRepresentation;A=n.objectRepresentation;C=btoa(y);h="data:application/json;base64,"+C;b=new Request(h);Object.defineProperty(b,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(b,"method",{get:function(){return"POST"}});
Object.defineProperty(b,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(b,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(b,"body",{get:function(){return new ReadableStream}});
return G.yield(fetch(b),7);case 7:return u=G.yieldResult,G.yield(u.json(),8);case 8:Q=G.yieldResult;if(!UJ(Q,A,!1,!1))return G.return(0);D=l.next();G.jumpTo(4);break;case 2:return _.kF(G),G.return(4)}})};
_.XZG=function(l){if(!l||!l.length||typeof l==="string")return 0;for(var D=function(y){return _.YB(y)},U=2,n=0;n<l.length&&(U=_.$Pl(_.nag(l[n],D)),U!==0);n++);
return U};
_.$Pl=function(l){var D=_.B(l);l=D.next().value;D=D.next().value;try{var U=document.createElement("div");document.body.appendChild(U);var n=getComputedStyle(U).display;document.body.removeChild(U);if(n==="none")return 4;var y=getComputedStyle(D).display==="none"?0:1;document.body.removeChild(l);return y}catch(A){return 4}};
GON=function(){var l,D,U;return _.P(function(n){l=new _.Au;D=document.createElement("button");D.classList.add("ytp-ad-skip-button");D.style.opacity="0";D.style.height="0px";D.style.width="0px";D.style.padding="0px";D.style.border="none";U=function(){D.parentElement&&D.parentElement.removeChild(D)};
D.onclick=function(){l.resolve(0);U()};
document.body.appendChild(D);setTimeout(function(){U();l.resolve(1)},50);
return n.return(l.promise)})};
u_C=function(){var l,D,U,n,y,A,C;return _.P(function(h){l=new _.Au;D=document.createElement("ytd-player");try{document.body.prepend(D)}catch(b){return h.return(4)}U=function(){D.parentElement&&D.parentElement.removeChild(D)};
D.getElementsByTagName("div").length>0?n=D.getElementsByTagName("div")[0]:(n=document.createElement("div"),D.appendChild(n));y=document.createElement("div");n.appendChild(y);A=document.createElement("video");C=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=_.ol(_.sW(C));A.ontimeupdate=function(){U();l.resolve(0)};
y.appendChild(A);A.classList.add("html5-main-video");setTimeout(function(){y.classList.add("ad-interrupting")},200);
setTimeout(function(){U();l.resolve(1)},5E3);
return h.return(l.promise)})};
Ngc=function(l){var D=AQd().objectRepresentation.playbackTracking;if(D){var U=[],n;U.push(D==null?void 0:(n=D.videostatsPlaybackUrl)==null?void 0:n.baseUrl);var y;U.push(D==null?void 0:(y=D.videostatsDelayplayUrl)==null?void 0:y.baseUrl);var A;U.push(D==null?void 0:(A=D.videostatsWatchtimeUrl)==null?void 0:A.baseUrl);var C;U.push(D==null?void 0:(C=D.ptrackingUrl)==null?void 0:C.baseUrl);var h;U.push(D==null?void 0:(h=D.qoeUrl)==null?void 0:h.baseUrl);var b;U.push(D==null?void 0:(b=D.atrUrl)==null?
void 0:b.baseUrl);D=_.B(U);for(U=D.next();!U.done;U=D.next())if((U=U.value)&&l.test(U))return U.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
sY3=function(l,D){var U,n;return _.P(function(y){switch(y.nextAddress){case 1:U=[],n=0;case 2:if(!(n<3)){y.jumpTo(4);break}return y.yield(fetch(l,{cache:"no-store",method:D}).then(function(A){U.push(A.status)}).catch(function(){U.push(-1)}),3);
case 3:n++;y.jumpTo(2);break;case 4:return y.return(U)}})};
EaC=function(l){return l.domainLookupStart===0&&l.domainLookupEnd===0&&l.connectStart===0&&l.connectEnd===0||l.duration===0};
Tgd=function(l,D,U){U=U===void 0?"GET":U;var n,y,A,C,h,b,u,Q,G,J;return _.P(function(L){if(L.nextAddress==1)return L.yield(Promise.all([sY3(l,U),sY3(D,U)]),2);n=L.yieldResult;y=_.B(n);A=y.next().value;C=y.next().value;h=A;b=C;if(Math.min.apply(Math,_.zz(b))!==Math.max.apply(Math,_.zz(b))||Math.min.apply(Math,_.zz(h))!==Math.max.apply(Math,_.zz(h)))return L.return(2);if(Math.min.apply(Math,_.zz(b))===Math.min.apply(Math,_.zz(h)))return L.return(1);Q=(u=performance.getEntriesByName(l))==null?void 0:
u[0];J=(G=performance.getEntriesByName(D))==null?void 0:G[0];return Q&&J?EaC(J)?L.return(1):EaC(Q)?L.return(0):L.return(1):L.return(2)})};
qhB=function(){var l;return _.P(function(D){var U=[];var n;var y,A,C;(y=n=(y=AQd().objectRepresentation.streamingData)==null?void 0:(A=y.formats)==null?void 0:(C=A[0])==null?void 0:C.url)&&y&&!n.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(y=y.replace("initcwndbps","ctier=L&initcwndbps"),y=y.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),n={testUrl:y,baseUrl:n,method:"GET"}):n=void 0;n&&U.push(n);_.q("ab_net_tp_e")&&U.push({testUrl:_.nC.location.origin+"/ad_companion",baseUrl:_.nC.location.origin+
"/generate_204",method:"OPTIONS"});_.q("ab_fix_creator_view_cnt")&&(U.length=0,(n=Ngc(/api\/stats\/atr/))&&U.push({testUrl:_.nC.location.origin+n,baseUrl:_.nC.location.origin+"/generate_204",method:"POST"}));_.q("ad_net_pb_pbp")&&(n=Ngc(/api\/stats\/qoe/))&&U.push({testUrl:_.nC.location.origin+n,baseUrl:_.nC.location.origin+"/feed/download",method:"GET"});U=U.length!==0?U[Math.floor(Math.random()*U.length)]:void 0;return(l=U)?D.return(Tgd(l.testUrl,l.baseUrl,l.method)):D.return(4)})};
_.kOs=function(){if(_.nC.zWW===void 0||_.nC.zWW===null||typeof _.nC.zWW!=="function")return 2;try{return _.nC.zWW()===!0?0:1}catch(l){return 0}};
Iqg=function(l){switch(l){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Tv(l,"unknown result type")}};
_.H_3=function(l,D){var U=Number(_.H3("CATSTAT",0));if(D.zqX===void 0)return U;D=D.zqX;l=Iqg(l);return U&~(3<<D)|l<<D};
Yhs=function(l){var D,U;if((l=(D=l.auxiliaryUi)==null?void 0:(U=D.messageRenderers)==null?void 0:U.bkaEnforcementMessageViewModel)&&l.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return l};
VwK=function(){for(var l=_.B(Object.values(_.O_l)),D=l.next();!D.done;D=l.next())D=D.value,D.agl&&D.zqX&&_.IN("CATSTAT",_.H_3(2,D))};
_.CU=function(l,D){l=_.Wk("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",l);(D===void 0?0:D)?_.iK3(l,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Bk().logFlowEvent(l,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
DYl=function(){if(!lDG){if(Polymer.Base){var l=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{l.apply(this,arguments)}catch(G){_.ll(G)}};
var D=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{D.apply(this,arguments)}catch(G){_.ll(G)}};
var U=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{U.apply(this,arguments)}catch(G){_.ll(G)}};
var n=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{n.apply(this,arguments)}catch(G){_.ll(G)}};
var y=Polymer.Base._listen,A=new WeakMap;Polymer.Base._listen=function(G,J,L){var R=function(){try{L.apply(this,arguments)}catch(a){_.ll(a)}};
A.set(L,R);y.call(this,G,J,R)};
var C=Polymer.Base._unlisten;Polymer.Base._unlisten=function(G,J,L){C.call(this,G,J,A.get(L))}}if(Polymer.Async){var h=Polymer.Async,b=h._atEndOfMicrotask;
h._atEndOfMicrotask=function(){try{b.apply(h,arguments)}catch(G){_.ll(G)}}}if(Polymer.RenderStatus){var u=Polymer.RenderStatus,Q=u.afterNextRender;
u.afterNextRender=function(G,J,L){Q.call(u,G,function(){try{J.apply(this,arguments)}catch(R){_.ll(R)}},L)}}lDG=!0}};
_.ndK=function(l){var D=l?_.kZ(l):"";if(D){if(D.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(D.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(D.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(D.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(D.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.q("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(D.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";D=D.toLowerCase();if(D==="/")return"home";if(D==="/channel_memberships")return"channel-memberships-shopfront";if(D.indexOf("/feed/trending")===0)return"trending";if(D.indexOf("/feed/explore")===0)return"explore";if(D.indexOf("/live")===0)return"live";if(D.indexOf("/results")===0)return"search";if(D.indexOf("/sports")===0)return"sports";if(D.indexOf("/fashion")===0||D.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(D))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(D))return _.q("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(D.indexOf("/channel/")===0||D.indexOf("/user/")===0||D.indexOf("/gaming")===0||D.indexOf("/post/")===0)return"channel";if(UY$(l))return"show";if(D==="/playlist"||D.indexOf("/playlist/")===0||D==="/view_play_list"||D.indexOf("/view_play_list/")===0||D.indexOf("/show/")===0)return"playlist";if(D==="/companion_canvas")return"companion-canvas";if(D==="/feed/history"||
D.indexOf("/feed/history/")===0)return"history";if(D==="/new")return"labs";if(D==="/feed/subscriptions")return"subscriptions";if(D.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(D==="/history_controls")return"standalone";if(D.indexOf("/account")===0||D==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(D.indexOf("/paid_memberships")===0||D.indexOf("/refund")===0||D.indexOf("/purchases")===0||D.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(D.indexOf("/product")===
0)return"yts-products";if(D.indexOf("/premium")===0||D.indexOf("/musicpremium")===0)return D.indexOf("/premium/offers")===0||D.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(D==="/cart/checkout"||D==="/cart")return"ypc-checkout";if(D.indexOf("/reporthistory")===0)return _.q("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(D.indexOf("/feed/downloads")===0||D.indexOf("/redeem")===0)return"browse";if(D.indexOf("/hashtag")===0)return"hashtag-landing-page";if(D.indexOf("/handle")===
0)return"handle";if(D.indexOf("/source")===0)return"audio-pivot";if(D.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(D.indexOf("/playables")===0)return"playables";if(D.indexOf("/create/live/join")===0)return"open-in-app";if(D.indexOf("/shorts")===0)return"shorts";if(D.indexOf("/feed/channels")===0)return"subscriptions-channels";var U=l?_.kZ(l):"";U&&U.indexOf("/watch")===0&&_.q("web_watch_enable_learning_journey")?(l=_.BS(l),l=!!l.list&&l.list.indexOf("LJPP")===0):l=!1;if(l)return"learning_journey_watch";
if(_.q("enable_new_page_subtypes_for_ai_companion")&&D==="/feed/courses")return"your-courses"}};
_.hu=function(l){var D,U;(l=(U=_.M(l==null?void 0:l.commandMetadata,_.W6))==null?void 0:U.url)&&(D=_.ndK(l));return D};
UY$=function(l){var D=l?_.kZ(l):"";if(!D)return!1;D=D.toLowerCase();return D.indexOf("/show/")===0||D.indexOf("/playlist")===0&&(l=_.BS(l),l.list&&l.list.indexOf("EL")===0)?!0:!1};
gX=function(l){var D="unknown",U;var n=((U=_.M(l==null?void 0:l.commandMetadata,_.W6))==null?void 0:U.webPageType)||"";n?(U=n.toLowerCase(),U.startsWith("web_page_type_")&&(U=U.slice(14))):U=n;U&&ygc[U.toUpperCase()]?D=ygc[U.toUpperCase()]:_.M(l,_.Pk)||_.M(l,Ag_)?D="browse":_.M(l,_.bV)?D="search":_.M(l,_.za)&&(D="watch");D==="watch"&&_.hu(l||null)==="learning_journey_watch"&&(D="learning_journey_watch");D==="unknown"&&_.II(Error("Tf`"+JSON.stringify({clickTrackingParams:l==null?void 0:l.clickTrackingParams,
commandMetadata:l==null?void 0:l.commandMetadata,allEndpointKeys:Object.keys(l||[])})));return D};
_.uV=function(l){if(!_.WKc||l)_.WKc=_.km();return _.WKc};
_.BRs=function(l){return!!_.M(l,_.za)||!!_.M(l,_.vk)&&_.q("kevlar_enable_shorts_prefetch")};
_.CX$=function(l,D){l=_.M(l,_.za)||_.M(l,_.vk);return"v"+l.videoId+(l.playlistId?"-pl"+l.playlistId:"")+(D?"-an1":"")+(l.params?"-pr"+l.params:"")};
_.h5g=function(l){var D=new Qf(_.H3("ONE_PICK_URL",""));D.urlParamMap_.set("hostId",l);(l=_.H3("GAPI_LOCALE"))&&D.urlParamMap_.set("hl",l);(l=_.H3("SESSION_INDEX"))&&D.urlParamMap_.set("authuser",l);(l=_.H3("DELEGATED_SESSION_ID"))&&D.urlParamMap_.set("groupId",l);return D};
bKo=function(){var l=_.Jc(),D=l.resolve(_.GI);l=l.resolve(_.Ju);return new PXc(D,l)};
uQ$=function(l){if(window.IntersectionObserver)return new gdC(l,400);throw new TypeError("Vf");};
Q5l=function(){var l=Hammer.TouchAction,D=l.prototype.preventDefaults;l.prototype.preventDefaults=function(U){var n=this.actions.indexOf("pan-down")>-1;if(!n)return D.call(this,U);if(!vdN){var y=U.srcEvent;U=U.direction;var A;if((A=this.manager)==null?0:A.session.prevented)y.preventDefault();else if(n&&U&Hammer.DIRECTION_DOWN)return this.preventSrc(y)}}};
Gks=function(l){if(!l||l.size===0)return Hammer.DIRECTION_ALL;if(l.size===2){if(l.has("up")&&l.has("down"))return Hammer.DIRECTION_VERTICAL;if(l.has("right")&&l.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(l.size===1){if(l.has("up"))return Hammer.DIRECTION_UP;if(l.has("down"))return Hammer.DIRECTION_DOWN;if(l.has("right"))return Hammer.DIRECTION_RIGHT;if(l.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.LK3=function(){return Jgc?Promise.resolve(Jgc):new Promise(function(l,D){var U=self.indexedDB.open("swpushnotificationsdb");U.onerror=D;U.onsuccess=function(){var n=U.result;if(n.objectStoreNames.contains("swpushnotificationsstore"))Jgc=n,l(Jgc);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.LK3()};
U.onupgradeneeded=qRl})};
qRl=function(l){l=l.target.result;l.objectStoreNames.contains("swpushnotificationsstore")&&l.deleteObjectStore("swpushnotificationsstore");l.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.qN=function(l,D,U){var n=U&&U>0?U:0;U=n?Date.now()+n*1E3:0;if((n=n?_.LU.getLocalStorage():_.LU.getSessionStorage())&&window.JSON){typeof D!=="string"&&(D=JSON.stringify(D,void 0));try{n.set(l,D,U)}catch(y){n.remove(l)}}};
_.MN=function(l){var D=_.LU.getSessionStorage(),U=_.LU.getLocalStorage();if(!D&&!U||!window.JSON)return null;try{var n=D.get(l)}catch(y){}if(typeof n!=="string")try{n=U.get(l)}catch(y){}if(typeof n!=="string")return null;try{n=JSON.parse(n,void 0)}catch(y){}return n};
_.Rn=function(l){try{var D=_.LU.getSessionStorage(),U=_.LU.getLocalStorage();D&&D.remove(l);U&&U.remove(l)}catch(n){}};
R5g=function(l){var D=MSK(),U;return _.P(function(n){switch(n.nextAddress){case 1:return _.ZY(n,2),n.yield(l.match(D,{cacheName:"yt-appshell-assets"}),4);case 4:U=n.yieldResult;_.WG(n,3);break;case 2:_.kF(n);case 3:return n.return(U)}})};
MSK=function(){var l=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?ZKo.registration.scope:e5_;l.endsWith("/")&&(l=l.slice(0,-1));return l+"/app_shell_home"};
mYc=function(l){l.map(function(D){return D.source}).join("|")};
_.aD3=function(l){return _.P(function(D){return D.return(R5g(l))})};
tS9=function(){var l=window.caches,D;return _.P(function(U){if(U.nextAddress==1)return U.yield(_.aD3(l),2);D=U.yieldResult;return U.return(!!D)})};
pw_=function(){_.P(function(l){if(l.nextAddress==1){if(Xw3)return l.jumpTo(0);Xw3=!0;if(_.q("enable_system_health_primes_monitoring"))return _.Xi(SRC,3E4),kkc(),l.return();if(!(Math.random()<_.RG("web_system_health_fraction")))return l.jumpTo(0);dYK={heightPixels:screen.height,widthPixels:screen.width};Zs&&!isNaN(Zs.jsHeapSizeLimit)&&(dYK.memoryTotalKbytes=String(Math.round(Zs.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(dYK.devicePixelRatio=window.devicePixelRatio);return l.yield(KKC(),4)}_.Xi(SRC,
3E4);return l.yield(cg$(),0)})};
KKC=function(){return _.P(function(l){if(l.nextAddress==1)return ed.intersectionObserverPresent="IntersectionObserver"in window,ed.serviceWorkerPresent="serviceWorker"in navigator,ed.webSharePresent="share"in navigator,ed.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,ed.cacheStoragePresent="caches"in window,ed.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,ed.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
ed.webkitTemporaryStoragePresent="webkitTemporaryStorage"in mX&&mX.webkitTemporaryStorage&&"queryUsageAndQuota"in mX.webkitTemporaryStorage,ed.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",l.yield(vB9(),2);ed.indexedDbPresent=l.yieldResult;ed.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;ed.broadcastChannelPresent="BroadcastChannel"in window;ed.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(ed.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,ed.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Kz(l)})};
SRC=function(){var l=9E4+Math.random()*2E3;_.Gj()>l||(_.q("enable_system_health_primes_monitoring")?kkc():cg$())};
cg$=function(){var l;return _.P(function(D){if(D.nextAddress==1)return D.yield(xYN(),2);l=D.yieldResult;_.Na("systemHealthCaptured",l);_.Kz(D)})};
kkc=function(){var l={metric:{}},D=j5s();D.networkEvents.length&&(l.metric.networkEvents=FK_(D));_.Na("systemHealthCaptured",l)};
xYN=function(){var l,D,U,n,y,A,C,h,b,u;return _.P(function(Q){switch(Q.nextAddress){case 1:l={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)};D=window.screen;_.q("enable_is_extended_monitoring")&&D&&"isExtended"in D&&(l.isExtended=!!D.isExtended);U={metric:{staticContext:dYK,dynamicContext:l,webMetric:odo,webApiSupport:ed}};
if(n=_.t6())U.csn=n;Zs&&(U.metric.webMetric.currentHeapKbytes=Math.round(Zs.usedJSHeapSize/1E3));window.matchMedia&&(U.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,U.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,U.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in mX&&typeof mX.getBattery==="function")){Q.jumpTo(2);break}return Q.yield(mX.getBattery(),3);case 3:if(y=
Q.yieldResult)U.metric.dynamicContext.chargingStatus=y.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(U.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(ed.storageEstimatePresent)return Q.yield(navigator.storage.estimate(),8);if(!ed.webkitTemporaryStoragePresent){Q.jumpTo(5);break}return Q.yield(wwB(),7);case 7:A=Q.yieldResult;Q.jumpTo(5);break;case 8:A=Q.yieldResult;case 5:return U.metric.dynamicContext.deviceStorageQuotaMbytes=((C=A)==null?0:C.quota)?String(Math.round(A.quota/
1048576/10)*10):"-1",U.metric.dynamicContext.deviceStorageUsageMbytes=((h=A)==null?0:h.usage)?String(Math.round(A.usage/1048576/10)*10):"-1",b=U.metric.dynamicContext,Q.yield(tS9(),9);case 9:return b.hasAppShell=Q.yieldResult,u=j5s(),u.networkEvents.length&&(U.metric.networkEvents=FK_(u)),Q.return(U)}})};
wwB=function(){return new Promise(function(l){var D;ed.webkitTemporaryStoragePresent&&(D=mX.webkitTemporaryStorage)!=null&&D.queryUsageAndQuota?mX.webkitTemporaryStorage.queryUsageAndQuota(function(U,n){l({usage:U,quota:n})}):l(void 0)})};
_.an=function(l){l&=16777215;l=[(l&16711680)>>16,(l&65280)>>8,l&255];return rg3(l[0],l[1],l[2])};
_.tu=function(l){l=[(l&16711680)>>>16,(l&65280)>>>8,l&255,(l&4278190080)>>>24];if(!_.z59(l,function(D){return D===(D&255)}))throw Error("Wf`"+l.join(","));
return"rgba("+l[0]+","+l[1]+","+l[2]+","+(l[3]/255).toFixed(3)+")"};
_.fDc=function(l){return[(l&16711680)>>>16,(l&65280)>>>8,l&255]};
_.$Yg=function(l){l=l.map(function(D){D/=255;return D<=.03928?D/12.92:Math.pow((D+.05)/1.05,2.4)});
return l[0]*.2126+l[1]*.7152+l[2]*.0722};
XP=function(l,D){l=_.fDc(l);return"rgba("+l[0]+", "+l[1]+", "+l[2]+", "+D+")"};
Sd=function(l){return(l&4278190080)>>>24===0?XP(l,"1"):_.tu(l)};
_.NR9=function(){try{return!!self.localStorage}catch(l){return!1}};
ID$=function(){if(s53())_.II(Error("Xf"));else{var l=document.createElement("iframe");l.style.display="none";var D=D===void 0?window.location.href:D;var U=_.I2(_.H3("PERSIST_IDENTITY_IFRAME_URL"));D=U?U:(new URL(D)).host.indexOf("studio")===0?_.Ja(Edd,"persist_identity"):_.Ja(TRC,"persist_identity");_.l8(l,1,D);l.id="persist_identity";var n;(n=document.body)==null||n.appendChild(l)}};
s53=function(){var l=HKd;l||(l=document.querySelector("#persist_identity"));return l};
YRc=function(){var l=!1;try{l=!!window.sessionStorage.getItem("session_logininfo")}catch(D){l=!0}return(_.H3("INNERTUBE_CLIENT_NAME")==="WEB"||_.H3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&l};
OKC=function(l,D){if(!YRc())return!1;D||(D=_.H3("LOGIN_INFO"));return D?(l.session_logininfo=D,!0):!1};
iGg=function(l,D){l=l===void 0?!1:l;if((D===void 0||!D)&&VS$!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.il("LOG_STICKINESS",!1)){D=_.t6();var U=_.aS(),n={identityStickinessData:{initialState:VS$}};D&&U&&_.$S(D,U,n)}if(D=s53())if(U=D.src?(new URL(D.src)).origin:"*",l){var y;(y=D.contentWindow)==null||y.postMessage({action:"clear"},U)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(l=window.sessionStorage.getItem("session_logininfo"))){var A;(A=D.contentWindow)==null||A.postMessage({loginInfo:l},U)}};
_.kf=function(l){l=l===void 0?!0:l;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.IN("LOGIN_INFO",""),l&&window.sessionStorage.setItem("from_switch_account","1"),iGg(!0,l)}catch(D){}};
lFg=function(l){l&&(l.startsWith("https://accounts.google.com/AddSession")?_.kf():l.startsWith("https://accounts.google.com/ServiceLogin")?_.kf():l.startsWith("https://myaccount.google.com")&&_.Dp(l).getPath().endsWith("/youtubeoptions")&&_.kf())};
dX=function(l,D){lFg(l);if(_.il("LOGGED_IN",!0)&&YRc()){var U=Hic(l);U==null&&(U={});OKC(U,D)&&_.s9(l,U)}};
Dko=function(){function l(D){for(D=D.target;D&&D.nodeName!=="A";)if(D=D.parentNode,!(D&&D instanceof HTMLElement))return;if(D&&!D.hasAttribute("download")&&D.getAttribute("rel")!=="external"&&D.href)return D.href}
document.addEventListener("mousedown",function(D){D.button!==0&&(D=l(D))&&dX(D)});
document.addEventListener("click",function(D){(D=l(D))&&dX(D)})};
yR9=function(){var l=new Ukl;try{if(_.il("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(h){l.increment(5,!1);return}if(_.H3("LOGIN_INFO")){var D=nRC?nRC:window.location;_.H3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&ID$();var U=Hic(D.href);U==null&&(U={});var n=U.session_logininfo,y=Number(window.sessionStorage.getItem("stickiness_reload")),A=n===_.H3("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
y>=2||A)y>=2?l.increment(2,A):A?l.increment(7,A):window.sessionStorage.getItem("session_logininfo")||(l.increment(3,A),VS$="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.H3("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.H3("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))l.increment(4,A),window.sessionStorage.removeItem("stickiness_reload");
else if(y<2){window.sessionStorage.setItem("stickiness_reload",String(y+1));var C=D.href;C=_.E9(C,"sttick");dX(C,window.sessionStorage.getItem("session_logininfo"));C=_.Ct(C,{sttick:y});l.increment(y,A);_.Jvo(D,C)}}else l.increment(6,!1)}else _.kf(!1)}catch(h){}};
_.KU=function(l,D,U,n,y){D=D===void 0?{}:D;U=U===void 0?"":U;n=n===void 0?window:n;l=_.hc(l,D);dX(l);U=_.Ng(l+U,y);_.Jvo(n.location,U)};
ARK=function(l){if(l.urlEndpoint){if(l=_.BS(l.urlEndpoint.url),l.adurl)return Qy(l.adurl)}else if(l.watchEndpoint)return"//www.youtube.com/watch?v="+l.watchEndpoint.videoId;return null};
Wo$=function(l){if(!l||!l.reportingPings)return null;var D={};l.reportingPings.forEach(function(U){U.pingType in D?D[U.pingType].push(U.url):D[U.pingType]=[U.url]});
return{adpings:zpd(D)}};
_.pU=function(l){l=l===void 0?!1:l;var D=_.bu(),U="USER_INTERFACE_THEME_LIGHT";D.getFlag(165)?U="USER_INTERFACE_THEME_DARK":D.getFlag(174)?U="USER_INTERFACE_THEME_LIGHT":_.ck()&&(U="USER_INTERFACE_THEME_DARK");return l?U:Bil()||U};
_.CTc=function(){return!_.q("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.ck=function(){return _.CTc()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.xf=function(){var l=_.bu();return _.CTc()&&!l.getFlag(165)&&!l.getFlag(174)};
Bil=function(){var l=l===void 0?window.location.href:l;if(_.q("kevlar_disable_theme_param"))return null;var D=_.kZ(l);if(_.hq$(D))return"USER_INTERFACE_THEME_DARK";try{var U=_.BS(l).theme;return PTG.get(U)||null}catch(n){}return null};
_.hq$=function(l){return _.q("enable_dark_theme_only_on_shorts")?!(l==null||!l.startsWith("/shorts/")):!1};
_.uDG=function(l,D,U,n,y){D=D===void 0?!1:D;U=U===void 0?!1:U;var A=_.H3("INNERTUBE_CONTEXT");if(!A)return _.EU(Error("ag")),{};A=(0,_.we.unsafeClone)(A);_.q("web_no_tracking_params_in_shell_killswitch")||delete A.clickTracking;A.client||(A.client={});var C=A.client;C.clientName==="MWEB"&&C.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(C.clientFormFactor=_.H3("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");C.screenWidthPoints=window.innerWidth;C.screenHeightPoints=window.innerHeight;C.screenPixelDensity=
Math.round(window.devicePixelRatio||1);C.screenDensityFloat=window.devicePixelRatio||1;C.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());C.userInterfaceTheme=_.pU();if(!D){var h=_.F0K();h&&(C.connectionType=h);_.q("web_log_effective_connection_type")&&(h=w6C())&&(A.client.effectiveConnectionType=h)}var b;if(_.q("web_log_memory_total_kbytes")&&((b=_.nC.navigator)==null?0:b.deviceMemory)){var u;b=(u=_.nC.navigator)==null?void 0:u.deviceMemory;A.client.memoryTotalKbytes=""+b*1E6}D&&n&&!_.q("web_it_context_set_original_url_ks")&&
(C.originalUrl=bG_(_.nC.location.href,n).toString());_.q("web_gcf_hashes_innertube")&&(h=H7g())&&(u=h.coldConfigData,b=h.coldHashData,h=h.hotHashData,A.client.configInfo=A.client.configInfo||{},u&&(A.client.configInfo.coldConfigData=u),b&&(A.client.configInfo.coldHashData=b),h&&(A.client.configInfo.hotHashData=h));u=_.BS(_.nC.location.href);!_.q("web_populate_internal_geo_killswitch")&&u.internalcountrycode&&(C.internalGeo=u.internalcountrycode);!_.q("web_populate_client_screen_killswitch")&&y&&(C.clientScreen=
y);C.clientName==="MWEB"||C.clientName==="WEB"?(C.mainAppWebInfo||(C.mainAppWebInfo={}),C.mainAppWebInfo.graftUrl=n||_.nC.location.href,_.q("kevlar_woffle")&&_.jd.instance&&(n=_.jd.instance,C.mainAppWebInfo.pwaInstallabilityStatus=!n.appInstalledEventFired&&n.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),C.mainAppWebInfo.webDisplayMode=zfd(),C.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):C.clientName==="TVHTML5"&&
(!_.q("web_lr_app_quality_killswitch")&&(n=_.H3("LIVING_ROOM_APP_QUALITY"))&&(C.tvAppInfo=Object.assign(C.tvAppInfo||{},{appQuality:n})),n=_.H3("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(C.tvAppInfo=Object.assign(C.tvAppInfo||{},{certificationScope:n}));!_.q("web_populate_time_zone_itc_killswitch")&&(n=xtK())&&(C.timeZone=n);(n=Dt_())?C.experimentsToken=n:delete C.experimentsToken;C=UtK();n=_.gRN();n=(0,_.we.getValues)(n.tokenJars);A.request=Object.assign({},A.request,{internalExperimentFlags:C,consistencyTokenJars:n});
!_.q("web_prequest_context_killswitch")&&(C=_.H3("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(A.request.externalPrequestContext=C);n=_.bu();C=n.getFlag(58);n=n.get("gsml","");A.user=Object.assign({},A.user);C&&(A.user.enableSafetyMode=C);n&&(A.user.lockedSafetyMode=!0);_.q("warm_op_csn_cleanup")?U&&(D=_.t6())&&(A.clientScreenNonce=D):!D&&(D=_.t6())&&(A.clientScreenNonce=D);l&&(A.clickTracking={clickTrackingParams:l});if(l=_.UG("yt.mdx.remote.remoteClient_"))A.remoteClient=l;_.FP.getInstance().setLocationOnInnerTubeContext(A);
try{var Q=gSc(),G=Q.bid;delete Q.bid;A.adSignalsInfo={params:[],bid:G};for(var J=_.B(Object.entries(Q)),L=J.next();!L.done;L=J.next()){var R=_.B(L.value),a=R.next().value,S=R.next().value;Q=a;G=S;l=void 0;(l=A.adSignalsInfo.params)==null||l.push({key:Q,value:""+G})}var d,c;if(((d=A.client)==null?void 0:d.clientName)==="TVHTML5"||((c=A.client)==null?void 0:c.clientName)==="TVHTML5_UNPLUGGED"){var N=_.H3("INNERTUBE_CONTEXT");N.adSignalsInfo&&(A.adSignalsInfo.advertisingId=N.adSignalsInfo.advertisingId,
A.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",A.adSignalsInfo.limitAdTracking=N.adSignalsInfo.limitAdTracking)}}catch(z){_.EU(z)}return A};
_.on=function(){return{isShellLoad:_.il("IS_SHELL_LOAD",!1)}};
Qbc=function(){navigator.serviceWorker.getRegistrations().then(function(l){l.forEach(vRc)})};
vRc=function(l){l&&_.G69(JR9,l.scope)};
_.G69=function(l,D){D={scope:D||_.e_("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Kc(l),D)};
wX=function(l,D,U,n){if(D&&D.serializedYpcCujLoggingParams){if(U){var y={};y.transactionErrorType=U;n&&(y.errorMessage=n);D.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:y}}}U={};U.ypcCujContext=D;l=_.Wk("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",l,U);_.Bk().logFlowEvent(l,"FLOW_TYPE_YPC_ACQUISITION")}};
_.LoB=function(l,D,U,n){var y={};y.serializedTransactionFlowLoggingParams=D;U&&(y.errorType=U);n&&(y.errorMessage=n);_.Na(l,y);_.sU()};
_.qDB=function(l){l&&_.LoB("transactionFlowStarted",l)};
_.Mu_=function(l){l&&_.LoB("transactionFlowCancelled",l)};
_.rX=function(l,D,U){D&&_.LoB("transactionFlowFailed",D,l,U)};
Rq9=function(l){var D=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");D&&(D.inert=l)};
_.fU=function(){this.megabloxUrl_=null};
_.$f=function(l){try{var D=ZGo==null?void 0:ZGo.composedPath(l)}catch(U){D=l.composedPath?l.composedPath():[]}return D&&D.length>0?D:l.composedPath?l.composedPath():[]};
_.NN=function(l){return _.$f(l)[0]};
sJ=function(l){return l instanceof ShadowRoot?ShadowRoot:l instanceof DocumentFragment?DocumentFragment:l instanceof Document?Document:HTMLElement};
eq9=function(l){if(l instanceof Element)return Element.prototype;if(l instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+l);};
mk$=function(l,D){return _.q("sunnydom_native_scoped_query_selectors")?eq9(l).querySelector.call(l,D):sJ(l).prototype.querySelector.call(l,D)};
aFN=function(l,D){return _.q("sunnydom_native_scoped_query_selectors")?eq9(l).querySelectorAll.call(l,D):sJ(l).prototype.querySelectorAll.call(l,D)};
tu9=function(l){var D,U,n;return(n=(U=(D=l.parentElement)!=null?D:l.__shady_native_parentElement)!=null?U:l.__shady_parentElement)!=null?n:null};
XfB=function(l){var D,U,n;return(n=(U=(D=l.parentNode)!=null?D:l.__shady_native_parentNode)!=null?U:l.__shady_parentNode)!=null?n:null};
SDB=function(l){var D,U,n;return(n=(U=(D=l.nextSibling)!=null?D:l.__shady_native_nextSibling)!=null?U:l.__shady_nextSibling)!=null?n:null};
k6c=function(l){var D,U,n;return(n=(U=(D=l.previousSibling)!=null?D:l.__shady_native_previousSibling)!=null?U:l.__shady_previousSibling)!=null?n:null};
dkC=function(l){var D,U,n;return(n=(U=(D=l.nextElementSibling)!=null?D:l.__shady_native_nextElementSibling)!=null?U:l.__shady_nextElementSibling)!=null?n:null};
Ko3=function(l){var D,U,n;return(n=(U=(D=l.previousElementSibling)!=null?D:l.__shady_native_previousElementSibling)!=null?U:l.__shady_previousElementSibling)!=null?n:null};
cRN=function(l){var D,U,n;return new Set([].concat(_.zz((D=l.children)!=null?D:[]),_.zz((U=l.__shady_native_children)!=null?U:[]),_.zz((n=l.__shady_children)!=null?n:[])))};
pf_=function(l){var D,U,n;return new Set([].concat(_.zz((D=l.childNodes)!=null?D:[]),_.zz((U=l.__shady_native_childNodes)!=null?U:[]),_.zz((n=l.__shady_childNodes)!=null?n:[])))};
_.EJ=function(l){if(!(l instanceof Element))return null;l=l.classList?Array.from(l.classList):void 0;if(!l)return null;var D=l.indexOf("style-scope");return D>-1&&D+1<l.length?l[D+1]:null};
TI=function(l){if(!(l instanceof HTMLElement))return null;var D=l&&(l.$$||l.polymerController)?l.tagName.toLowerCase():null;return D?D:_.EJ(l)};
xkC=function(l,D){return _.q("sunnydom_native_scoped_query_selectors")?l+".style-scope."+D:l.replace(/[^a-z]*[^\s]+/g,function(U){return U+".style-scope."+D})};
jb9=function(l,D){return D?l.split(",").map(function(U){return xkC(U.trim(),D)}).join(", "):l};
_.In=function(l){var D,U,n,y;return(y=(n=(U=(D=l.root)!=null?D:l.shadowRoot)!=null?U:l.__shady_native_shadowRoot)!=null?n:l.__shady_shadowRoot)!=null?y:l};
FoG=function(l){var D,U,n;return(n=(U=(D=l.__shady_parentNode)!=null?D:l.__shady_native_parentNode)!=null?U:l.parentNode)!=null?n:null};
oRC=function(l){var D,U;return(U=(D=XfB(l))!=null?D:l.host)!=null?U:null};
wf9=function(l){for(;l&&!(l instanceof HTMLElement);)l=oRC(l);return l};
rRd=function(l){var D=wf9(l);return l===D?_.EJ(l):D?TI(D):null};
zqc=function(l){return(l=wf9(l))?TI(l):null};
fFs=function(l){if(l instanceof Comment)return!1;if(l instanceof Text){var D,U;if(((U=(D=l.textContent)==null?void 0:D.trim())!=null?U:"")==="")return!1}return!0};
Hk=function(l,D,U){var n=D(l);for(U=U===void 0?zqc(l):U;n&&(rRd(n)!==U||!fFs(n));)l=n,n=D(l);return n};
$kN=function(l,D,U){if(!D)return null;l=zqc(l);return rRd(D)===l&&fFs(D)?D:Hk(D,U,l)};
NiB=function(l){return Hk(l,FoG,_.EJ(l))};
sbl=function(l){return Hk(l,dkC)};
ERB=function(l){return Hk(l,SDB)};
Ti9=function(l){return Hk(l,Ko3)};
IFc=function(l){return Hk(l,k6c)};
HGC=function(l){return $kN(l,l.firstChild||null,SDB)};
YDo=function(l){var D,U,n;var y=(n=(U=(D=l.firstElementChild)!=null?D:l.__shady_native_firstElementChild)!=null?U:l.__shady_firstElementChild)!=null?n:null;return $kN(l,y,dkC)};
OGG=function(l){var D,U,n;var y=(n=(U=(D=l.lastChild)!=null?D:l.__shady_native_lastChild)!=null?U:l.__shady_lastChild)!=null?n:null;return $kN(l,y,k6c)};
VuN=function(l){var D,U,n;var y=(n=(U=(D=l.lastElementChild)!=null?D:l.__shady_native_lastElementChild)!=null?U:l.__shady_lastElementChild)!=null?n:null;return $kN(l,y,Ko3)};
ixl=function(l){var D=zqc(l);return Array.from(pf_(l)).filter(function(U){return rRd(U)===D})};
lcl=function(l){var D=TI(l);return Array.from(cRN(l)).filter(function(U){return _.EJ(U)===D})};
D4d=function(l){if(!l)return null;var D=_.EJ(l);if(!D){var U;return(U=Node.prototype.getRootNode)==null?void 0:U.call(l)}D=D.toUpperCase();for(l=tu9(l);l&&l.tagName!==D;)l=tu9(l);return l?_.In(l):null};
_.Yf=function(l,D,U){if(l instanceof HTMLElement&&_.EJ(l)===U){var n=Array.from(l.classList).indexOf("style-scope");if(n===-1)l.classList.add("style-scope"),l.classList.add(D);else if(!(n+1>=l.classList.length)){n=l.classList[n+1];var y,A;l==null||(y=l.classList)==null||(A=y.replace)==null||A.call(y,n,D)}}if(l instanceof HTMLElement||l instanceof DocumentFragment)for(y=_.B(cRN(l)),A=y.next();!A.done;A=y.next())_.Yf(A.value,D,U);return l};
OJ=function(l,D){if(l instanceof HTMLElement&&_.EJ(l)===D){var U=Array.from(l.classList).indexOf("style-scope");U===-1||U+1>=l.classList.length||l.classList.remove("style-scope",l.classList[U+1])}if(l instanceof HTMLElement||l instanceof DocumentFragment){U=_.B(l.children);for(var n=U.next();!n.done;n=U.next())OJ(n.value,D)}return l};
_.U4G=function(l,D){return sJ(l).prototype.appendChild.call(l,D)};
nn9=function(l,D){if(l===D)return!0;l=pf_(l);return Array.from(l).some(function(U){return nn9(U,D)})};
_.iJ=function(l,D){if(l instanceof Vf)return l;(D==null?0:D.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(l,"ownerDocument")&&Object.defineProperty(l,"ownerDocument",{get:function(){return window.document}});
return new Vf(l)};
AP9=function(){var l=Vf.prototype,D=[].concat(_.zz(yPg?[]:["getRootNode"]),["setAttribute","removeAttribute"]);D=_.B(D);for(var U=D.next(),n={};!U.done;n={method$jscomp$53:void 0},U=D.next())n.method$jscomp$53=U.value,l[n.method$jscomp$53]=function(y){return function(){return this.host[y.method$jscomp$53].apply(this.host,arguments)}}(n)};
BpC=function(){var l=Vf.prototype,D=[].concat(_.zz(yPg?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.zz(Who?[]:["querySelector","querySelectorAll"]));D=_.B(D);for(var U=D.next(),n={};!U.done;n={method$jscomp$54:void 0},U=D.next())n.method$jscomp$54=U.value,l[n.method$jscomp$54]=function(y){return function(){return this.root[y.method$jscomp$54].apply(this.root,arguments)}}(n)};
Pi9=function(){var l=Vf.prototype,D=[].concat(_.zz(CiN?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.zz(hld?[]:["parentNode"]));D=_.B(D);for(var U=D.next(),n={};!U.done;n={prop$jscomp$67:void 0},U=D.next())n.prop$jscomp$67=U.value,Object.defineProperty(l,n.prop$jscomp$67,{get:function(y){return function(){return this.host[y.prop$jscomp$67]}}(n),
configurable:!0})};
u5C=function(){var l=Vf.prototype,D=["activeElement"].concat(_.zz(CiN?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.zz(bxB?[]:["children"]),_.zz(gno?[]:["lastChild"]));D=_.B(D);for(var U=D.next(),n={};!U.done;n={prop$jscomp$68:void 0},U=D.next())n.prop$jscomp$68=U.value,Object.defineProperty(l,n.prop$jscomp$68,{get:function(y){return function(){return this.root[y.prop$jscomp$68]}}(n),
configurable:!0})};
vnK=function(){for(var l=Vf.prototype,D=_.B(["innerHTML","textContent"]),U=D.next(),n={};!U.done;n={prop$jscomp$69:void 0},U=D.next())n.prop$jscomp$69=U.value,Object.defineProperty(l,n.prop$jscomp$69,{get:function(y){return function(){return this.root[y.prop$jscomp$69]}}(n),
set:function(y){return function(A){this.root[y.prop$jscomp$69]=A}}(n),
configurable:!0})};
QWK=function(l){var D=Vf.prototype;l=_.B(Object.entries(l));for(var U=l.next(),n={};!U.done;n={fn$jscomp$403:void 0},U=l.next()){var y=_.B(U.value);U=y.next().value;y=y.next().value;n.fn$jscomp$403=y;D[U]=function(A){return function(){return A.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.zz(arguments)))}}(n)}};
JPK=function(){for(var l=Vf.prototype,D=_.B(Object.entries(GiK)),U=D.next(),n={};!U.done;n={fn$jscomp$404:void 0},U=D.next()){var y=_.B(U.value);U=y.next().value;y=y.next().value;n.fn$jscomp$404=y;Object.defineProperty(l,U,{get:function(A){return function(){return A.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.zz(arguments)))}}(n),
configurable:!0})}};
_.lJ=function(l){return l instanceof LhC||l instanceof Document?l:new LhC(l)};
qMK=function(){for(var l=LhC.prototype,D=_.B("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),U=D.next(),n={};!U.done;n={method$jscomp$55:void 0},U=D.next())n.method$jscomp$55=U.value,l[n.method$jscomp$55]=function(y){return function(){return HTMLElement.prototype[y.method$jscomp$55].call.apply(HTMLElement.prototype[y.method$jscomp$55],[this.node].concat(_.zz(arguments)))}}(n)};
MkK=function(){for(var l=LhC.prototype,D=_.B("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),U=D.next(),n={};!U.done;n={prop$jscomp$70:void 0},U=D.next())n.prop$jscomp$70=U.value,Object.defineProperty(l,n.prop$jscomp$70,{get:function(y){return function(){var A;return(A=this.node["__shady_native_"+y.prop$jscomp$70])!=null?A:this.node[y.prop$jscomp$70]}}(n),
configurable:!0})};
_.nY=function(l,D,U){U===void 0&&(U=!l.classList.contains(D));U?l.classList.add(D):l.classList.remove(D)};
_.yj=function(l,D,U){U===void 0&&(U=!l.hasAttribute(D));if(D==="class")throw Error("fg");U?_.lJ(l).setAttribute(D,""):_.lJ(l).removeAttribute(D)};
Rld=function(l){return(l.localName!=="slot"?[]:(0,_.Aj)(l).assignedNodes({flatten:!0})).filter(function(D){return D.nodeType===Node.ELEMENT_NODE})};
_.Zxg=function(l){return(l=_.iJ(l).querySelector("slot"))&&l.localName==="slot"?Rld(l):[]};
_.Wg=function(l,D){window.ShadyCSS&&window.ShadyCSS.styleSubtree(l,D)};
Bg=function(l,D){var U=D.bind(l);return function(n){U(n,n.detail)}};
_.CY=function(l,D){var U=elg.get(l);U||(U=new WeakMap,elg.set(l,U));if(U.has(D))return U.get(D);if(_.q("web_fi_listen_disable_bound_fn_helper")){var n=D.bind(l);l=function(y){n(y,y==null?void 0:y.detail)}}else l=Bg(l,D);
U.set(D,l);return l};
tk9=function(l,D){m4o(l);l.created[ac_].push(D)};
m4o=function(l){if(!l.created||!l.created[ac_]){var D=l.created,U=D?[D]:[];l.created=function(){for(var n=_.B(U),y=n.next();!y.done;y=n.next())y.value.apply(this)};
l.created[ac_]=U}};
XQG=function(l){return function(){var D=_.EW.apply(0,arguments);return function(U,n,y){l.apply(null,_.zz(D))(U,n,y)}}};
SMB=function(){return function(){var l=_.EW.apply(0,arguments);return function(D,U,n){hLo.apply(null,_.zz(l))(D,U,n)}}};
_.m=function(l){return SMB()(l)};
_.t=function(){return XQG(up9).apply(null,_.zz(_.EW.apply(0,arguments)))};
_.hj=function(l){return _.q("pbcm_fi_listen_decorators")?kic(l):XQG(bTc)(l)};
kic=function(l){return function(D,U){tk9(D,function(){var n=this[U],y=_.q("web_fi_listen_disable_bound_fn_helper")?function(A){n(A,A.detail)}.bind(this):Bg(this,n);
d4$.has(l)?I1(this.hostElement,l,y):this.hostElement.addEventListener(l,y)})}};
_.Pg=function(){return XQG(gho).apply(null,_.zz(_.EW.apply(0,arguments)))};
_.K=function(l){l=l===void 0?{}:l;return XQG(PW9)(l)};
_.bJ=function(l){if(l.hostElement&&l!==l.hostElement){var D=_.Ga(l.hostElement);D=l.renderIdom?D:D.shadowRoot}D||(l=l.root,D=l instanceof Node?_.Ga(l):null);return D};
_.gP=function(l){return Kh9?cPN(l):function(D,U){Object.defineProperty(D,U,{get:function(){var n;return(n=_.bJ(this))==null?void 0:n.querySelector(l)},
enumerable:!0,configurable:!0})}};
cPN=function(l){return function(D,U){Object.defineProperty(D,U,{get:function(){var n,y=(n=_.iJ(this.hostElement))==null?void 0:n.querySelector(l);if(y)return y;var A;return(A=_.bJ(this))==null?void 0:A.querySelector(l)},
enumerable:!0,configurable:!0})}};
_.uJ=function(l){return Kh9?pQg(l):function(D,U){Object.defineProperty(D,U,{get:function(){var n;return(n=_.bJ(this))==null?void 0:n.querySelectorAll(l)},
enumerable:!0,configurable:!0})}};
pQg=function(l){return function(D,U){Object.defineProperty(D,U,{get:function(){var n,y=(n=_.iJ(this.hostElement))==null?void 0:n.querySelectorAll(l);if(y==null?0:y.length)return y;var A;return(A=_.bJ(this))==null?void 0:A.querySelectorAll(l)},
enumerable:!0,configurable:!0})}};
x4g=function(l){return function(D){if(![_.Gs,_.p].includes(Object.getPrototypeOf(D.prototype).constructor))throw Error("gg");DUd(Object.assign({},typeof l!=="string"?l:{is:l,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(D)}};
_.Qj=function(){var l=l===void 0?{}:l;return function(D){if(![JO,_.vg].includes(Object.getPrototypeOf(D.prototype).constructor))throw Error("hg");UUN(Object.assign({},l,{disableInheritanceCheck:!0}))(D)}};
Fhs=function(l,D){jWB[l]!=null||(jWB[l]=new Set);jWB[l].add(D)};
_.GY=function(){var l=_.Pg.apply(null,_.zz(_.EW.apply(0,arguments)));return function(D,U){Fhs(D.is,U);l(D,U)}};
qQ=function(l,D,U){if(Jj(l)&&!onl.has(D)){D=D.replace(/^JSC\$[\d]+_/,"");D=D.replace(/\.\d+(\.|$)/g,function(A,C){return".#"+C});
LY[l]!=null||(LY[l]={});var n,y;(n=LY[l])[y=D]!=null||(n[y]=new Set);LY[l][D].has(U)||(LY[l][D].add(U),_.Na("polymerPropertyAccessEvent",{componentName:l,propertyName:D,accessType:U}))}};
wQl=function(){return _.q("polymer_property_access_logging_debug")||_.q("polymer_enable_property_access_logging")};
Jj=function(l){if(_.q("polymer_property_access_logging_debug"))return!0;if(!_.q("polymer_enable_property_access_logging"))return!1;rP$||(rP$=Date.now());return(x2(l)+rP$)%100<_.RG("polymer_property_access_logging_percent")};
zll=function(l,D){return Jj(D)&&l.hostElement.loggingStatus?new Proxy(l,{get:function(U,n,y){if(U.hostElement.loggingStatus.bypassProxyController)return U[n];U.hostElement.loggingStatus.isExternalGet=!0;var A=U[n];U.hostElement.loggingStatus.isExternalGet=!1;if(A instanceof Function)return function(){var C=_.EW.apply(0,arguments);try{return U.hostElement.loggingStatus.currentExternalCall=n,qQ(D,n,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),A.apply(this===y?U:this,C)}finally{U.hostElement.loggingStatus.currentExternalCall=
void 0}};
qQ(D,n,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return A},
set:function(U,n,y){if(U.hostElement.loggingStatus.bypassProxyController)return U[n]=y,!0;U.hostElement.loggingStatus.isRendererStamper?qQ(D,n,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):U.hostElement.loggingStatus.isDeclarativeExternal||qQ(D,n,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{U.hostElement.loggingStatus.currentExternalSet=n,U[n]=y}finally{U.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):l};
fcC=function(l,D){l&&l.loggingStatus&&!l.loggingStatus.isDeclarativeExternal&&!l.loggingStatus.isExternalGet&&l.loggingStatus.currentExternalSet!==D&&qQ(l.tagName.toLowerCase(),D,"PROPERTY_ACCESS_GET_INTERNAL")};
MQ=function(l,D,U){l&&(U||l.loggingStatus&&!l.loggingStatus.isInitializing&&!l.loggingStatus.isDefiningPropertyAccessor&&l.loggingStatus.currentExternalSet!==D)&&qQ(l.tagName.toLowerCase(),D,"PROPERTY_ACCESS_SET_INTERNAL")};
$4s=function(){return{_definePropertyAccessor:function(l,D){var U=this,n=U.hostElement.loggingStatus;n&&(n.isDefiningPropertyAccessor=!0);var y=U[l];y!==void 0&&(U.__data?U._setPendingProperty(l,y):(U.__dataProto!=null||(U.__dataProto={}),U.__dataProto[l]=y));n&&(n.isDefiningPropertyAccessor=!1);Object.defineProperty(this,l,{get:function(){fcC(U.hostElement,l);return this.__data[l]},
set:function(A){D||this._setPendingProperty(l,A,!0)&&this._invalidateProperties()}})},
created:function(){var l=this._setPendingProperty.bind(this);this._setPendingProperty=function(D,U,n){MQ(this.hostElement,D);return l.apply(this,[D,U,n])}}}};
Npg=function(l){wQl()&&_.m(Rr.prototype)(l.prototype,"__templateBindingLoggingBehavior")};
sWN=function(l,D){if(D.resolvedFactories.length!==l.resolvedFactories.length)return!0;D=_.B(D.resolvedFactories.entries());for(var U=D.next();!U.done;U=D.next()){var n=_.B(U.value);U=n.next().value;n=n.next().value;if(n.providerClass){if(n.providerClass!==l.resolvedFactories[U].providerClass)return!0}else if(n.providerValue){if(n.providerValue!==l.resolvedFactories[U].providerValue)return!0}else if(n.factory!==l.resolvedFactories[U].factory)return!0}return!1};
En9=function(l,D){l=_.B(l);for(var U=l.next();!U.done;U=l.next())if(U=U.value,U.constructor===Array)En9(U,D);else{var n=D;n.has(U)||(U.inject&&n.add(U),U.behaviors&&En9(U.behaviors,n))}};
ZN=function(l,D){var U=l[D];l[D]=function(){var n=_.EW.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(U)return U.apply(this,n)}};
YMG=function(){_.e0.Class=function(U,n){U=TpN(U,n);ZN(U.prototype,"created");return U};
ZN(m2.prototype,"_initializeProperties");ZN(_.ar.prototype,"_initializeProperties");if(Icd)ZN(Hxl,"created");else{var l=function(){ZN(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))l();else{var D=customElements.define;customElements.define=function(U,n,y){D.call(customElements,U,n,y);U==="tp-yt-iron-list"&&(l(),customElements.define=D)}}}};
Vkc=function(l,D){l.prototype.behaviors=l.prototype.behaviors||[];l.prototype.behaviors.unshift(OxN.InjectBehavior);l.prototype.provide=D};
_.S0=function(l){return function(D){if(!l.disableElementRegistration){l.noInjection||Vkc(D,l.providers);var U=D.prototype;U.__templateHelpers||hLo(tj.prototype)(U,"__templateHelpers");U=l.is;iO9||(iO9=Date.now());(x2(U)+iO9)%100<_.RG("polymer_log_prop_change_observer_percent")&&hLo(Xs.prototype)(D.prototype,"__propertyObserverObserver");D.prototype.behaviors=D.prototype.behaviors||[];D.prototype.behaviors.unshift(_.l4g.YtHostElementBehavior);Npg(D);x4g({is:l.is,notifyObserversOnUndefined:l.notifyObserversOnUndefined!==
!1,fastInit:l.fastInit,template:l.template,disableEnforceFastDefaultValuesCheck:!0})(D)}}};
_.x=function(l){return _.S0({is:l.is,template:l.template,disableElementRegistration:l.disableElementRegistration,cssBuildOptOut:l.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
neB=function(l,D){if(DBs){l=new l;for(var U=_.B(Object.getOwnPropertyNames(l)),n=U.next();!n.done;n=U.next())n=n.value,D[n]=l[n];for(U=D;U&&U!==Object.prototype;U=Object.getPrototypeOf(U)){n=_.B(Object.getOwnPropertyNames(U));for(var y=n.next();!y.done;y=n.next())y=y.value,l.hasOwnProperty(y)||Object.defineProperty(l,y,UBN(D,y))}}else l.apply(D)};
UBN=function(l,D){return{get:function(){var U=l[D];return U instanceof Function?U.bind(l):U},
set:function(U){l[D]=U}}};
A5G=function(l,D){for(var U=l._noAccessors,n=_.B(Object.getOwnPropertyNames(l)),y=n.next();!y.done;y=n.next())if(y=y.value,!y5C.has(y))if(U)D[y]=l[y];else{var A=Object.getOwnPropertyDescriptor(l,y);A&&(A.configurable=!0,Object.defineProperty(D,y,A))}};
W__=function(l,D,U){return function(n){if(U){var y=U();n.model=y}if(l[D])l[D](n,n.detail)}};
ku=function(l){var D=[];if(typeof l==="string")l.length>0&&D.push.apply(D,_.zz(l.split(".")));else{l=_.B(l);for(var U=l.next();!U.done;U=l.next())U=U.value,typeof U==="string"?D.push.apply(D,_.zz(U.split("."))):D.push(U)}return D};
B__=function(l,D){if(D[D.length-1]!=="*"&&D[D.length-1]!=="splices"){for(var U=0;U<D.length;U++){if(!l)return;l=l[D[U]]}return l}};
C9G=function(l,D){if(l.length>D.length)return!1;for(var U=0;U<l.length;U++)if(l[U]!==D[U])return!1;return!0};
P93=function(l,D,U){if(D.type==="compute"){var n=D.getter.bind(U);var y=D.args}else n=function(){return U[D.method.methodName].apply(U,_.zz(_.EW.apply(0,arguments)))},y=D.method.args;
hAs(l,D.propertyKey,n,y,D.value)};
ge$=function(l,D){if(D.readOnly){var U=Object.getOwnPropertyDescriptor(l.model,D.propertyKey);Object.defineProperty(l.model,D.propertyKey,{get:U.get,set:function(){}});
l.model[bO_(D.propertyKey)]=U.set}};
u3G=function(l,D,U){if(U){var n=D.propertyKey,y=D.selector;D=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.zz(D.selectorArgs.map(function(A){return{type:"path",path:A}})));
hAs(l,n,function(A){var C=_.EW.apply(1,arguments);return y.apply(null,[U.getState()].concat(_.zz(C)))},D)}};
QDB=function(l,D,U){var n=_.CI(D.propertyKey)+"-changed";ves(l,function(y){var A={value:y.value,queueProperty:!0};y.path.split(".").length>1&&(A.path=y.path);U.dispatchEvent(new CustomEvent(n,{detail:A}))},[{type:"wildcard",
path:D.propertyKey}])};
GSc=function(l,D,U){ves(l,function(){U[D.method.methodName].apply(U,_.zz(_.EW.apply(0,arguments)))},D.method.args)};
bO_=function(l){return"_set"+(l.charAt(0).toUpperCase()+l.slice(1))};
J5N=function(){var l,D=sP(function(U){l=U},!1);
return[l,D]};
ZO9=function(l){l=l.trim().replace(L_s,",").replace(q_9,"$1");var D=l[0];D==="-"&&(D=l[1]);if(D>="0"&&D<="9")return{type:"literal",value:Number(l)};if(D==="'"||D==='"')return{type:"literal",value:l.slice(1,-1)};if(D=l.match(MgK)){D=D[1];var U=RAB[D];if(U)return{type:U,path:l.slice(0,-(D.length+1))}}return{type:"path",path:l}};
tg$=function(l){var D=l.match(eAo);if(D)return l={methodName:D[1],args:mBN},D[2].trim()&&(D=D[2].replace(a4g,"&comma;").split(","),l.args=D.map(ZO9)),l};
XxC=function(l,D,U,n){n=n===void 0?!1:n;D=_.CI(D);var y=jn;y&&(U=y(U,D,"attribute",l));dP(l,U,D,n)};
dP=function(l,D,U,n){D=S_o(D,n===void 0?!1:n);D===void 0?l.removeAttribute(U):l.setAttribute(U,D)};
S_o=function(l,D){switch(typeof l){case "object":case "function":if(l instanceof Date)return l.toString();if(l){if((D===void 0?0:D)&&!_.q("polymer_reflect_objects_as_boolean_killswitch"))return l?"":void 0;D=window.trustedTypes?window.trustedTypes.isHTML(l)||window.trustedTypes.isScript(l)||window.trustedTypes.isScriptURL(l):void 0;if(D)return l;try{return JSON.stringify(l)}catch(U){_.II(Error("Dg`"+l))}}break;case "boolean":return l?"":void 0;default:return l!==null&&l!==void 0?l.toString():void 0}};
kSg=function(l){if(l===void 0)throw Error("Eg");return l};
xB$=function(l,D,U,n){var y=dB$(n);if(y.length){n=U;var A="property";K_9.test(U)?A="attribute":U[U.length-1]==="$"&&(U=U.slice(0,-1),A="attribute");var C=c5o(y);C&&A==="attribute"&&(U==="class"&&l.hasAttribute("class")&&(C+=" "+l.getAttribute(U)),dP(l,C,U));A==="attribute"&&n==="disable-upgrade$"&&l.setAttribute("disable-upgrade","");l.localName==="input"&&n==="value"&&l.setAttribute("value","");l.removeAttribute(n);A==="property"&&(U=_.h6(U));D=kSg(D);pxs(D,A,U,y);return!0}return U.slice(0,3)===
"on-"?(l.removeAttribute(U),(A=D).events!=null||(A.events=[]),D.events.push({name:U.slice(3),value:n}),!0):U==="id"?(D.id=n,!0):!1};
dB$=function(l){for(var D=[],U=0,n;(n=jD9.exec(l))!==null;){n.index>U&&D.push({type:"literal",value:l.slice(U,n.index)});var y=n[1][0];U=!!n[2];n=n[3].trim();if(y==="{")throw Error("Fg");(y=tg$(n))?D.push({type:"method",negate:U,signature:y}):D.push({type:"path",negate:U,path:n});U=jD9.lastIndex}U&&U<l.length&&(l=l.substring(U))&&D.push({type:"literal",value:l});return D};
c5o=function(l){for(var D="",U=0;U<l.length;U++){var n=l[U];n.type==="literal"&&(D+=n.value)}return D};
pxs=function(l,D,U,n){l.bindings!=null||(l.bindings=[]);l.bindings.push({kind:D,target:U,parts:n})};
zA9=function(l,D,U){var n=!1;if(l.localName==="template"){n=U;var y=D.stripWhitespace;y=F_3(l,y===void 0?!1:y);var A=l.content.ownerDocument.createDocumentFragment();y.content=A;A.appendChild(l.content);n&&(n.templateInfo=y);n=!0}else l.localName==="slot"&&(D.hasInsertionPoint=!0);if(l.firstChild&&(y=U,l.localName!=="script"&&l.localName!=="style")){A=0;for(var C=l.firstChild;C;){var h=C;if(h.localName==="template"){var b=h.getAttribute("is");if((C=b==="dom-if")||b==="dom-repeat"){h.removeAttribute("is");
b=h.ownerDocument.createElement("ps-"+b);h.parentNode.replaceChild(b,h);b.appendChild(h);var u=Array.from(h.attributes);u=_.B(u);for(var Q=u.next();!Q.done;Q=u.next())Q=Q.value,C?oeC.has(Q.name)&&dP(b,Q.value,Q.name):wxo.has(Q.name)?dP(b,Q.value,Q.name):r5G.has(Q.name),h.removeAttribute(Q.name);C=b}else C=h}if(C.nodeType===Node.TEXT_NODE){h=void 0;b=l;for(u=C;((h=u.nextSibling)==null?void 0:h.nodeType)===Node.TEXT_NODE;)Q=void 0,(Q=u).textContent!=null||(Q.textContent=""),u.nextSibling.textContent&&
(u.textContent+=u.nextSibling.textContent),b.removeChild(u.nextSibling);if(D.stripWhitespace&&C.textContent&&!C.textContent.trim()){l.removeChild(C);C=C.nextSibling;continue}}zA9(C,D,{parentIndex:A,parentInfo:y});C.parentNode&&A++;C=C.nextSibling}}var G;if((G=l.hasAttributes)==null?0:G.call(l)){G=U=kSg(U);y=!1;A=Array.from(l.attributes);A=_.B(A);for(h=A.next();!h.done;h=A.next())h=h.value,y=xB$(l,G,h.name,h.value)||y;n=y||n}l.nodeType===Node.TEXT_NODE&&(G=dB$(l.textContent),G.length&&(l.textContent=
c5o(G)||" ",U=kSg(U),pxs(U,"text","textContent",G),n=!0));U&&n&&(U.infoIndex=D.nodeInfoList.push(U)-1)};
F_3=function(l,D){D={nodeInfoList:[],stripWhitespace:(D===void 0?!1:D)||l.hasAttribute("strip-whitespace")};zA9(l.content,D);return D};
f49=function(l){Object.assign(l,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
N_$=function(l,D,U){D.signalCache!=null||(D.signalCache={});var n=D.signalCache[U];if(!n){var y=U.split(".");n=!$Bd(l,y[0]);if(y.length>1&&n){var A=l.getPathMutationSignal(y);n=function(){var C=Tp(l.owner,function(){return l.getWithPath([y[0]])}),h,b=(h=A())==null?void 0:h.value;
return{rootWasDefined:C!==void 0,value:b}}}else n=function(){var C=l.getWithPath(y);
return{rootWasDefined:C!==void 0,value:C}};
D.signalCache[U]=n}return n()};
Eed=function(l,D,U,n,y){D=D.parts.map(function(C,h){if(C.type==="literal"){U.partWasDefined!=null||(U.partWasDefined=[]);var b;(b=U.partWasDefined)[h]||(b[h]=C.value!==void 0);return C.value}var u;if(C.type==="method"){var Q,G=(Q=(u=U.partWasDefined)==null?void 0:u[h])!=null?Q:!1;G||(G=C.signature.args.every(function(R){return R.type==="literal"}));
var J=!1,L=!0;u=C.signature.args.map(function(R){if(R.type==="literal")return R.value;if(R.type!=="path")throw Error("Gg`"+R.type);var a=N_$(l,U,R.path);R=a.value;a=a.rootWasDefined;J||(J=a);L&&(L=a);return R});
G||(G=y===1?L:J);U.partWasDefined!=null||(U.partWasDefined={});U.partWasDefined[h]=G;if(!G)return;u=(h=N_$(l,U,C.signature.methodName).value)&&typeof h==="function"?h.apply(n,u):void 0}else Q=N_$(l,U,C.path),u=Q.value,U.partWasDefined!=null||(U.partWasDefined={}),(G=U.partWasDefined)[h]||(G[h]=u!==void 0||Q.rootWasDefined);C.negate&&(u=!u);return u});
if(D.length===1){var A;return((A=U.partWasDefined)==null?0:A[0])?D[0]:sDd}return D.join("")};
T__=function(l){return typeof l==="object"&&!!l&&"notifyPath"in l&&"canNotifyPath"in l};
I4B=function(l){return typeof l==="object"&&!!l&&"notifyPath"in l};
HOl=function(l){return"polymerController"in l};
Y_l=function(l,D){D=""+ku(D)[0];if(T__(l))return l.canNotifyPath(D);if(HOl(l)&&T__(l.polymerController))return l.polymerController.canNotifyPath(D);if(I4B(l)){var U;return!((U=l.properties)==null||!U[D])}if(HOl(l)&&I4B(l.polymerController)){var n;return!((n=l.polymerController.properties)==null||!n[D])}return!1};
OOC=function(l,D,U){T__(l)||I4B(l)?l.notifyPath(D,U):HOl(l)&&(T__(l.polymerController)||I4B(l.polymerController))&&l.polymerController.notifyPath(D,U)};
iV9=function(l,D,U){if(U!==sDd){l.kind==="attribute"||l.target!=="textContent"&&(l.target!=="value"||D.localName!=="input"&&D.localName!=="textarea")||(U=U===void 0?"":U);var n,y=(n=Vgs.Polymer)==null?void 0:n.sanitizeDOMValue;y&&(U=y(U,l.target,l.kind,D));if(l.kind==="attribute"){l=l.target;if(l==="class"||l==="name"||l==="slot")D=(0,_.Aj)(D);dP(D,U,l)}else if(l=l.target,U!==D[l]||typeof U==="object")D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!0,qQ(D.localName,l,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
D[l]=U,D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!1)}};
l$3=function(l,D,U,n){var y=D.parts[0];if(D.parts.length!==1||y.type!=="path"||!Y_l(U,D.target))return!1;var A=_.B(y.path.split(".")),C=A.next().value,h=B_(A);if($Bd(l,C))return!1;n.signalCache!=null||(n.signalCache={});A=n.signalCache[y.path];var b;A=(b=A)==null?void 0:b().value;if((A==null?void 0:A.path)!==void 0){n=ku(A.path);var u=ku(y.path);n=[D.target].concat(_.zz(n.slice(u.length-1)));OOC(U,n,y.negate?!A.value:A.value);return!0}var Q=KY(l,C);var G=Q.getChangeRecordSignal(h),J=!1;A=function(){if(!J){var R=
Tp(l.owner,function(){return Q.getWithPath([])});
J||(J=R!==void 0)}return{value:G(),rootWasDefined:J}};
n.signalCache[y.path]=A;n.partWasDefined!=null||(n.partWasDefined={});A=A();(u=n.partWasDefined)[0]||(u[0]=A.rootWasDefined);var L=Tp(l.owner,function(){return Q.getWithPath(h)});
n.partWasDefined[0]&&Tp(l.owner,function(){return void iV9(D,U,y.negate?!L:L)});
return!0};
Dvd=function(l,D,U,n,y,A){if(!l$3(l,D,U,n)){var C=Eed(l,D,n,y,A);Tp(l.owner,function(){return void iV9(D,U,C)})}};
Uv9=function(l,D,U,n,y,A){U=_.B(U);for(var C=U.next(),h={};!C.done;h={infoIndex:void 0},C=U.next()){C=C.value;var b=C.bindings;h.infoIndex=C.infoIndex;C=C.parentInfo;if(b){b=_.B(b);for(var u=b.next(),Q={};!u.done;Q={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},u=b.next()){Q.b$jscomp$256=u.value;if(h.infoIndex===void 0)throw Error("Hg");Q.bindingCtx$jscomp$4={};l.effect(function(G,J){return function(){y&&!y()||Dvd(l,G.b$jscomp$256,D[J.infoIndex],G.bindingCtx$jscomp$4,n,A)}}(Q,h))}}C&&Uv9(l,D,[C],
n,y,A)}};
n4C=function(l,D){l=(D.parentInfo?n4C(l,D.parentInfo):l).firstChild;for(var U=0;l;l=l.nextSibling)if(D.parentIndex===U++)return l;throw Error("Ig");};
A2l=function(l,D,U,n){l=document.importNode(l.content,!0);l.__noInsertionPoint=!(n==null?0:n.hasInsertionPoint);for(var y=Array(D.length),A={},C=0;C<D.length;C++){var h=D[C],b=n4C(l,h);y[C]=b;h.id&&(A[h.id]=b);if(h.templateInfo){var u=b.parentElement;u&&(u.templateInfo=h.templateInfo,u.parentSignalProxy=U,u.eventListenerHost=n.eventListenerHost,u.stampingEnabled=n.enabledSignal)}u=void 0;if((u=h.events)==null?0:u.length)for(u=0;u<h.events.length;u++){var Q=h.events[u];y2N(n.eventListenerHost,b,Q.name,
Q.value,n.getModel)}}Uv9(U,y,D,n.thisCtx,n.enabledSignal,n.methodInvocationRequirement);return{root:l,nodes:y,nodesById:A}};
Br$=function(l,D){l=l();var U;(U=W1d.ShadyCSS)==null||U.prepareTemplate(l,D);D=F_3(l);return{template:l,nodeInfoList:D.nodeInfoList,hasInsertionPoint:D.hasInsertionPoint}};
P4K=function(){C4c=!1;for(var l=cg.length,D=0;D<l;D++){var U=cg[D];if(U)try{U()}catch(n){Promise.resolve().then(function(){throw n;})}}cg.splice(0,l);
h_G+=l};
v4G=function(l){C4c||(C4c=!0,bVs.textContent=(g4g++).toString());cg.push(l);return un3++};
_.j0=function(l,D,U){pY++;l=D?new QaG(pY,l,D,U):new Gc_(pY,l);xu.set(pY,l);return pY};
J2c=function(l){(l=xu.get(l))&&l.cancel()};
qnd=function(l,D){l=L1N.get(l);return l?(D=l.get(D))?D:null:null};
_.Fs=function(l,D,U,n){var y=qnd(l,D);if(!y){y=new MJs;var A=L1N.get(l);A||(A=new Map,L1N.set(l,A));A.set(D,y)}l=U.bind(l);y.run(l,n,void 0)};
_.R_K=function(l,D){var U;(U=qnd(l,D))==null||U.cancel()};
ZVd=function(l){var D;(D=qnd(l,"doRender"))==null||D.flush()};
or=function(l){var D;return(D=l.hostElement)!=null?D:l};
e_c=function(l){var D=l.indexOf(".");return D===-1?l:l.slice(0,D)};
mvg=function(l,D,U,n,y,A){A=(y=(n=A?e_c(D):D)?D:null)?l.get(y):l.__data[D];y&&A===void 0&&(A=U[D]);_.O9(l.hostElement,Eso(n)+"-changed",{value:A,queueProperty:!0,path:y!=null?y:void 0},{bubbles:!1,composed:!1})};
a$s=function(l,D){l.__isReflecting=!0;XxC(l.hostElement,D,l.__data[D]);l.__isReflecting=!1};
tJB=function(l){if(l._onIronRequestResizeNotifications){var D=l._onIronRequestResizeNotifications.bind(l);l._onIronRequestResizeNotifications=function(U){_.NN(U)!==l.hostElement&&D(U)}}l._ariaActiveAttributeChanged&&(l._ariaActiveAttributeChanged=l._ariaActiveAttributeChanged.bind(l.hostElement));
l._activeChanged&&(l._activeChanged=function(U){l.toggles?dP(l.hostElement,U?"true":"false",l.ariaActiveAttribute):l.hostElement.removeAttribute(l.ariaActiveAttribute);l._changedButtonState()});
l._asyncClick&&(l._asyncClick=function(){_.j0(function(){l.hostElement.click()},1)});
!l.keyEventTarget||l.keyEventTarget instanceof EventTarget||(l.keyEventTarget=or(l.keyEventTarget));l._disabledChanged&&(l._disabledChanged=l._disabledChanged.bind(l.hostElement));l._observeItems&&(l._observeItems=function(U){var n=or(U);return _.Ga(n).observeNodes(function(y){l._updateItems();l._updateSelected();_.O9(n,"iron-items-changed",y,{bubbles:!1,cancelable:!1})})});
l._updateItems&&l._updateItems===_.wP._updateItems&&(l._updateItems=function(){var U=_.Ga(l.hostElement).queryDistributedElements(l.selectable||"*");U=Array.prototype.filter.call(U,l._bindFilterItem);l._setItems(U)});
l._computeKeyboardClass&&(l._computeKeyboardClass=function(U){_.nY(l.hostElement,"keyboard-focus",U)});
l.ensureRipple&&(l.ensureRipple=function(U){if(l.hasRipple&&!l.hasRipple()){if(!l._createRipple)return;l._ripple=l._createRipple();l._ripple.noink=l.noink;var n=l._rippleContainer||l.hostElement;n&&_.iJ(n).appendChild(l._ripple)}var y;if(U&&((y=l._ripple)==null?0:y.uiDownAction)){n=_.iJ(l._rippleContainer||l.hostElement);var A;y=(A=U.composedPath())==null?void 0:A[0];n.contains(y)&&l._ripple.uiDownAction(U)}});
l._updateMultiselectable&&(l._updateMultiselectable=function(U){U?l.hostElement.setAttribute("aria-multiselectable","true"):l.hostElement.removeAttribute("aria-multiselectable")})};
X$9=function(l,D,U){U=_.B(U);for(var n=U.next();!n.done;n=U.next())neB(n.value.constructor,l);neB(D.constructor,l)};
kc$=function(l,D){l=_.B(l);for(var U=l.next();!U.done;U=l.next())if(U=U.value,U.type==="signal"){var n=U.propertyKey;if(D.hasOwnProperty(n)&&D[n]!=null&&U.attributeType===Object){a:{n=D[n].constructor;for(var y=_.B(Sng),A=y.next();!A.done;A=y.next())if(A=A.value,n===A){n=A;break a}n=Object}U.attributeType=n}}};
dvs=function(){};
K13=function(l){var D;return(D=l.hostElement)!=null?D:l};
c23=function(){throw Error("Mg");};
p$3=function(l,D){l.constructor.prototype.useSignals=!0;var U=new l.constructor;X$9(U,l,D.behaviors);kc$(D.reactiveSchemas,U);U={};for(var n=_.B(D.reactiveSchemas),y=n.next();!y.done;y=n.next())y=y.value,y.type==="signal"&&(U[y.propertyKey]=y.attributeType);var A={copyPropertiesToProto:c23,didRegister:!1,typesForSignals:U},C=["disable-upgrade"].concat(_.zz(D.observedAttributes)),h=function(b){rP.call(this,l,D,A,b)};
_.Z(h,rP);_.QP.Object.defineProperties(h,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return C}}});
A.copyPropertiesToProto=function(){for(var b=0;b<D.behaviors.length;b++)A5G(D.behaviors[b],h.prototype);A5G(l,h.prototype)};
D.legacyOptimizations||A.copyPropertiesToProto();h.prototype.is=l.is;return h};
xv3=function(l,D){if(Object.getPrototypeOf(D.prototype).constructor!==_.p)throw Error("Ng");D.prototype.is=l.is;return p$3(D.prototype,l)};
ja9=function(l){return l.type==="compute"||l.type==="computeWithMethod"};
F1c=function(l){for(var D=l.reactiveSchemas.filter(ja9),U=new Map,n=new Map,y=new Map,A=_.B(D),C=A.next();!C.done;C=A.next())C=C.value,U.set(C.propertyKey,C),n.set(C.propertyKey,[]),y.set(C.propertyKey,0);A=0;D=_.B(D);for(C=D.next();!C.done;C=D.next()){C=C.value;for(var h=_.B(C.type==="computeWithMethod"?C.method.args:C.args),b=h.next();!b.done;b=h.next())b=b.value,b.type!=="literal"&&(b=b.path.split(".")[0],n.has(b)&&(n.get(b).push(C.propertyKey),y.set(C.propertyKey,y.get(C.propertyKey)+1),A++))}C=
[].concat(_.zz(n.keys())).filter(function(u){return y.get(u)===0});
for(D=[];C.length;)for(h=C.shift(),D.push(U.get(h)),h=_.B(n.get(h)),b=h.next();!b.done;b=h.next())b=b.value,y.set(b,y.get(b)-1),A--,y.get(b)===0&&C.push(b);U=l.reactiveSchemas.filter(function(u){return!ja9(u)});
l.reactiveSchemas=[].concat(_.zz(U),_.zz(D))};
o4B=function(l,D){if(D.properties)for(var U=_.B(Object.entries(D.properties)),n=U.next();!n.done;n=U.next()){var y=_.B(n.value);n=y.next().value;y=y.next().value;l.properties[n]=typeof y==="function"?{type:y}:y}D.observers&&l.observers.push.apply(l.observers,_.zz(D.observers));D.disabledPolySiReactions&&l.disabledPolySiReactions.push.apply(l.disabledPolySiReactions,_.zz(D.disabledPolySiReactions))};
w$N=function(l,D){for(var U=D.length-1;U>=0;U--){var n=D[U];Array.isArray(n)?w$N(l,n):l.indexOf(n)<0&&l.unshift(n)}};
r2G=function(l,D){l.reactiveSchemas=l.reactiveSchemas.filter(function(U){return U.type==="observe"&&D.includes(U.method.methodName)||ja9(U)&&D.includes(U.propertyKey)?!1:!0})};
f$l=function(l,D){var U=D.prototype,n,y,A={is:l.is,reactiveSchemas:[],observedAttributes:[],behaviors:[OxN.InjectBehavior,tj.prototype],disableElementRegistration:l.disableElementRegistration,provide:(n=l.providers)!=null?n:[],reactivityMode:l.reactivityMode,signalProperties:(y=U.signalProperties)!=null?y:[]};"template"in D?A.templateGetter=function(){return D.template}:l.getTemplate&&(A.templateGetter=l.getTemplate);
U.behaviors&&w$N(A.behaviors,U.behaviors);z_C(A,D);return A};
z_C=function(l,D){for(var U=D.prototype,n={properties:{},observers:[],disabledPolySiReactions:[]},y=_.B(l.behaviors),A=y.next();!A.done;A=y.next())o4B(n,A.value);o4B(n,U);if(l.signalProperties)for(U=_.B(l.signalProperties),y=U.next();!y.done;y=U.next())delete n.properties[y.value];U=_.B(Object.entries(n.properties));for(y=U.next();!y.done;y=U.next()){A=_.B(y.value);y=A.next().value;A=A.next().value;var C=void 0;if((C=l.signalProperties)==null||!C.includes(y)){C=void 0;var h=l,b=A.type;if(!b)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{b=Reflect.getMetadata("design:type",D,y);for(var u=_.B($v9),Q=u.next();!Q.done;Q=u.next())if(Q=Q.value,b===Q){b=Q;break a}b=Object}else b=String;A.computed||A.selector||(h.reactiveSchemas.push({type:"signal",propertyKey:y,value:A.value,attributeType:b,readOnly:A.readOnly}),h.observedAttributes.push(_.CI(y)));A.reflectToAttribute&&h.reactiveSchemas.push({type:"reflect",propertyKey:y});if(A.computed){b=tg$(A.computed);if(!b)throw Error("Og");h.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:y,method:b,value:A.value})}A.observer&&h.reactiveSchemas.push({type:"observe",method:{methodName:A.observer,args:[{type:"path",path:y}]}});A.notify&&h.reactiveSchemas.push({type:"notify",propertyKey:y});A.selector&&h.reactiveSchemas.push({type:"redux",propertyKey:y,selector:A.selector,selectorArgs:(C=A.selectorArgs)!=null?C:[]})}}Nr$&&F1c(l);D=_.B(n.observers);for(y=D.next();!y.done;y=D.next())U=l,y=y.value,(A=tg$(y))?U.reactiveSchemas.push({type:"observe",method:A}):console.log('Warning: unable to parse observe declaration: "'+
y+'"');r2G(l,n.disabledPolySiReactions)};
sad=function(l,D){for(var U=0;U<D.length;U++){var n=D[U],y=void 0;(y=n).showHideApi!=null||(y.showHideApi={});y=void 0;!!l!==!((y=n.showHideApi)==null||!y.hideTemplateChildren)&&(n.nodeType===Node.TEXT_NODE?l?(n.showHideApi.polymerTextContent=n.textContent,n.textContent=""):(y=void 0,n.textContent=(y=n.showHideApi.polymerTextContent)!=null?y:null):n instanceof Element&&n.localName==="slot"?l?(n.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Aj)((0,_.Aj)(n).parentNode).replaceChild(n.showHideApi.polymerReplaced,
n)):(y=n.showHideApi.polymerReplaced)&&(0,_.Aj)((0,_.Aj)(y).parentNode).replaceChild(n,y):n instanceof HTMLElement&&n.style&&(l?(n.showHideApi.polymerDisplay=n.style.display,n.style.display="none"):n.style.display=n.showHideApi.polymerDisplay));n.showHideApi.hideTemplateChildren=l;n.showHideChildren&&n.showHideChildren(l)}};
Trc=function(){if(!E4N){var l=document.createElement("style");l.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(l);E4N=!0}};
zY=function(){return _.q("disable_hidden_dom_if_using_stamper")};
I$c=function(l,D){var U=_.fY().getState();return D?l.apply(null,[U].concat(_.zz(D))):l(U)};
OVG=function(){if(HVG)return HVG;var l=_.B(_.aw(0,void 0,"MB1Hb")),D=l.next().value;l.next();var U=l.next().value;_.fY().subscribe(function(){YnK(U)});
return HVG=D};
YnK=function(l){VJs||(VJs=!0,Promise.resolve().then(function(){l(function(D){return D+1});
VJs=!1}))};
_.fY=function(){return i9G.getAppStore()};
laB=function(l,D){return i9G.getSelectFn()(l,D)};
_.$u=function(l){i9G.getDispatchFn()(l)};
DWN=function(l,D){var U={},n;for(n in l)U[n]=D(l[n],n);return U};
_.NQ=function(l,D){return function(){var U;return(U=_.EP(l))!=null?U:D}};
_.sl=function(l,D){var U=Object.assign({},l),n;for(n in D)D.hasOwnProperty(n)&&(U[n]=_.NQ(l[n],D[n]));return U};
UW$=function(l,D,U){l instanceof Element&&(U.debugName||(U.debugName="<"+l.tagName.toLowerCase()+(l.tagName.includes("-")?">":"."+l.className+">")),_.q("ytwiz_enable_debug_component_props")&&(l.debugProps||(l.debugProps=DWN(D,function(n){return function(){return n()}}))))};
_.w=function(l,D){var U=function(n){return tmK("ytComponent",{},function(y){var A=nwl={};var C;if(((C=U)==null?0:C.idomCompat)&&n.renderedFromIdom){var h;C=typeof U.idomCompat==="object"?(h=U)==null?void 0:h.idomCompat.callbacks:{};C=_.B(ywB(n,C,U.debugName));h=C.next().value;C.next();C=C.next().value;var b=Aw3(l,h);A.privateValue=b;nwl=void 0;UW$(b,h,U);y.addAttributes({debugName:U.debugName});y=u4N(b);y=Array.isArray(y)?y[0]:y;y[tf]||(y[tf]={});y[tf].updateSignalsFromIdomProps=C;Wnc(h,b);return b}C=
DWN(n,B8s);h=Aw3(l,C);A.privateValue=h;nwl=void 0;UW$(h,C,U);y.addAttributes({debugName:U.debugName});Wnc(C,h);return h})};
U.debugName=D===void 0?"":D;return U};
Aw3=function(l,D){l=l(D);return dt(l)};
CZ$=function(l,D){l[D]||(l=new _.rc("IDOM interop setter undefined. Key:",D),_.EU(l))};
B8s=function(l,D){return D==="children"||D==="ref"||typeof l==="function"||l===void 0?l:function(){return _.EP(l)}};
ywB=function(l,D,U){var n={},y={},A={},C={},h;for(h in l){C={key$jscomp$952:C.key$jscomp$952};C.key$jscomp$952=h;var b=l[C.key$jscomp$952];if(C.key$jscomp$952==="children"||C.key$jscomp$952==="ref")n[C.key$jscomp$952]=b;else if(typeof b==="function")C.key$jscomp$952 in D||b.length>0?(A[C.key$jscomp$952]=b,n[C.key$jscomp$952]=function(Q){return function(){return A[Q.key$jscomp$952].apply(A,_.zz(_.EW.apply(0,arguments)))}}(C)):n[C.key$jscomp$952]=b;
else if(!(l[C.key$jscomp$952]===void 0&&C.key$jscomp$952 in D)){var u=_.B(_.aw(l[C.key$jscomp$952],{debugName:C.key$jscomp$952+":cwis:"+U},"cvwbof"));b=u.next().value;u=u.next().value;n[C.key$jscomp$952]=b;y[C.key$jscomp$952]=u}}return[n,y,function(Q){var G={},J;for(J in Q)G={key$jscomp$951:G.key$jscomp$951,val$jscomp$122:void 0},G.key$jscomp$951=J,G.val$jscomp$122=Q[G.key$jscomp$951],G.key$jscomp$951!=="children"&&G.key$jscomp$951!=="ref"&&(typeof G.val$jscomp$122==="function"?G.key$jscomp$951 in
D?A[G.key$jscomp$951]=G.val$jscomp$122:G.val$jscomp$122.length>0&&(A[G.key$jscomp$951]=G.val$jscomp$122,_.II(new _.rc("Callback detected that was not set in the idomCompat callbacks map. Key:",G.key$jscomp$951))):G.key$jscomp$951 in D&&G.val$jscomp$122===void 0||(CZ$(y,G.key$jscomp$951),Ky(function(L){return function(){y[L.key$jscomp$951](L.val$jscomp$122)}}(G))))}]};
b99=function(l,D,U){var n=Ohl(l.prototype,hPg,l.prototype.behaviors);n.prototype.is=D;n.prototype.localName=D;U&&PZ$(n,U);return function(y){y&&(n.prototype.hostElement=y);var A=new n;A.root=A;A.hostElement=y;return A}};
PZ$=function(l,D){var U;Object.defineProperty(l.prototype,"_template",{get:function(){U===void 0&&(U=D());return U},
set:function(n){U=n},
configurable:!0,enumerable:!0})};
GDN=function(l,D,U,n){function y(){if(!L){for(var R=new Set,a=_.B(Q),S=a.next();!S.done;S=a.next()){S=S.value;for(var d=_.B(Object.getOwnPropertyNames(S)),c=d.next();!c.done;c=d.next()){c=c.value;var N=void 0,z=(N=Object.getOwnPropertyDescriptor(S,c))==null?void 0:N.value;z&&z instanceof Function&&!El(c)&&(!h[c]||_.q("polymer_forward_method_killswitch"))&&R.add(c)}}a=_.B(Object.entries(Object.getOwnPropertyDescriptors(l.prototype)));for(S=a.next();!S.done;S=a.next())d=_.B(S.value),S=d.next().value,
d=d.next().value,d.value instanceof Function&&!El(S)&&R.add(S);L=R}return L}
gw3(l,D,n==null?void 0:n.providers);VYG(l.prototype,l,!0);var A=b99(l,D,U),C,h=(C=l.prototype.properties)!=null?C:{},b,u,Q=(u=(b=l.prototype.behaviors)==null?void 0:b.flat(Infinity))!=null?u:[];U=_.B(Q);for(C=U.next();!C.done;C=U.next())h=Object.assign({},C.value.properties,h);var G=[].concat(_.zz(uvK),_.zz(Object.keys(h).map(function(R){return _.CI(R)}))),J=!1,L;
return{ctor:function(R,a){var S=A(R),d,c;R=[].concat(_.zz((d=n==null?void 0:n.allowedProps)!=null?d:[]),_.zz((c=n==null?void 0:n.allowedPropsFromBehaviors)!=null?c:[]));S.allowedProps=R.length>0?R:void 0;d={};c=_.B(G);for(R=c.next();!R.done;R=c.next())R=R.value,d[R]=_.h6(R);S.__dataAttributes=d;var N=S.ready.bind(S);S.ready=function(){a.beforeReady();N();if(Jj(D)&&!J){var z=S.__templateInfo;if(z==null?0:z.hostProps){z=_.B(Object.keys(z.hostProps));for(var f=z.next();!f.done;f=z.next())qQ(D,f.value,
"PROPERTY_ACCESS_GET_INTERNAL")}J=!0}};
S._overrideLegacyUndefined=!0;return S},
props:h,observedAttributes:G,getInitialMethods:y,getPropsToForwardBeforeRegister:function(){for(var R=[],a=new Set,S=_.B(Object.keys(h)),d=S.next();!d.done;d=S.next())d=d.value,R.push([d,h[d].readOnly]),a.add(d);S=y();d=_.B(Object.keys(Object.getOwnPropertyDescriptors(l.prototype)));for(var c=d.next();!c.done;c=d.next())c=c.value,!vwK(c)||S.has(c)||a.has(c)||(R.push([c,!1]),a.add(c));a=_.B(QtN);for(S=a.next();!S.done;S=a.next())R.push([S.value,!0]);return R},
getPropsToForwardBeforeReady:function(R){for(var a=[],S=_.B(Object.entries(R)),d=S.next();!d.done;d=S.next()){var c=_.B(d.value);d=c.next().value;c=c.next().value;if(vwK(d)&&!(c instanceof Function)&&(a.push([d,!1]),Jj(D))){var N=c=void 0;(N=(c=R)._createPropertyAccessor)==null||N.call(c,d)}}return a},
shouldForwardProp:vwK,shouldLog:Jj}};
gw3=function(l,D,U){Vkc(l,U);l.prototype.behaviors.unshift(Jws);if(wQl()){if(Jj(D)){var n;(n=l.prototype).behaviors!=null||(n.behaviors=[]);l.prototype.behaviors.unshift($4s())}Npg(l)}_.m(tj.prototype)(l.prototype,"__templateHelpers")};
El=function(l){return Lns.has(l)||l.startsWith("__compute__")};
vwK=function(l){return!El(l)&&!l.startsWith("_")&&!l.endsWith("_")};
ePs=function(l,D){function U(){var J=b();J=_.B(J);for(var L=J.next();!L.done;L=J.next()){var R=_.B(L.value);L=R.next().value;R=R.next().value;qo9(G.prototype,L,R)}n=!0}
var n=!1,y=l.ctor,A=l.getInitialMethods,C=l.observedAttributes,h=l.getPropsToForwardBeforeReady,b=l.getPropsToForwardBeforeRegister,u=l.shouldForwardProp,Q=l.shouldLog,G=function(){var J=HTMLElement.call(this)||this;J.didForwardDynamicProps=!1;J.loggingStatus={};n||U();J.inst=y(J,{beforeReady:function(){J.didForwardDynamicProps||(J.forwardDynamicProps(),J.didForwardDynamicProps=!0)}});
J.controllerProxy=zll(J.inst,D);J.forwardMethods();return J};
_.Z(G,HTMLElement);G.prototype.forwardMethods=function(){for(var J=this,L=_.B(this.inst.getExtraMethodsToForward()),R=L.next(),a={};!R.done;a={method$jscomp$65:void 0},R=L.next()){var S=_.B(R.value);R=S.next().value;S=S.next().value;a.method$jscomp$65=S;this[R]=function(d){return function(){return d.method$jscomp$65.call.apply(d.method$jscomp$65,[J.inst].concat(_.zz(_.EW.apply(0,arguments))))}}(a)}L=_.B(A());
for(a=L.next();!a.done;a=L.next())a=a.value,u(a)&&Mjo(this,a),Q(D)&&!El(a)&&RPd(this.inst,a)};
G.prototype.forwardDynamicProps=function(){var J=h(this.inst);J=_.B(J);for(var L=J.next();!L.done;L=J.next()){var R=_.B(L.value);L=R.next().value;R=R.next().value;qo9(this,L,R);Q(D)&&!El(L)&&Z9B(this.inst,L)}};
G.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
G.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
G.prototype.attributeChangedCallback=function(J,L,R){this.inst.attributeChangedCallbackWrapper(J,L,R)};
_.QP.Object.defineProperties(G.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return D}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.QP.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return C}}});
customElements.define(D,G)};
qo9=function(l,D,U){l.hasOwnProperty(D)||Object.defineProperty(l,D,{get:function(){var n,y=((n=l.is)!=null?n:l.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||qQ(y,D,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,n=this.polymerController[D],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,n},
set:function(n){if(!U){var y,A=((y=l.is)!=null?y:l.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||qQ(A,D,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=D,this.loggingStatus.bypassProxyController=!0,this.polymerController[D]!==n&&(y={},this.polymerController.setProperties((y[D]=n,y)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Mjo=function(l,D,U){var n=l.polymerController;l[D]=function(){var y=_.EW.apply(0,arguments);l.loggingStatus.currentExternalCall=D;l.loggingStatus.bypassProxyController=!0;var A,C=((A=l.is)!=null?A:l.tagName).toLowerCase();qQ(C,D,"PROPERTY_ACCESS_CALL_EXTERNAL");var h;A=(h=U!=null?U:n[D])==null?void 0:h.call.apply(h,[n].concat(_.zz(y)));l.loggingStatus.currentExternalCall=void 0;l.loggingStatus.bypassProxyController=!1;return A}};
RPd=function(l,D){var U=l.hostElement,n=l[D];l[D]=function(){var y=_.EW.apply(0,arguments);if(U.loggingStatus.currentExternalCall!==D){var A,C=((A=U.is)!=null?A:U.tagName).toLowerCase();qQ(C,D,"PROPERTY_ACCESS_CALL_INTERNAL")}return n==null?void 0:n.apply(l,y)}};
Z9B=function(l,D){var U=Object.getOwnPropertyDescriptor(l,D);U&&!U.get&&Object.defineProperty(l,D,{get:function(){fcC(l.hostElement,D);return U.value},
set:function(n){MQ(l.hostElement,D);U.value=n}})};
mWg=function(l){return _.q("poly_si_dom_repeat_detached_fix_killswitch")||l.tagName!=="PS-DOM-REPEAT"?l.tagName==="DOM-REPEAT":!0};
tj3=function(l,D){var U=aaG(l);l instanceof Element&&U.unshift(l);l=_.B(U.filter(mWg));for(var n=l.next();!n.done;n=l.next()){var y=void 0;n=_.B((y=n.value.__instances)!=null?y:[]);for(y=n.next();!y.done;y=n.next())if(y=y.value,y.root){y=Array.from(y.root.children);y=_.B(y);for(var A=y.next();!A.done;A=y.next())U.push.apply(U,_.zz(tj3(A.value,D)))}}return U.filter(function(C){return C.usePatchedLifecycles&&C.lifecycleIsConnected===D})};
aaG=function(l){var D=null;l instanceof Element?D=Element.prototype.querySelectorAll:l instanceof DocumentFragment&&(D=DocumentFragment.prototype.querySelectorAll);return D?Array.from(D.call(l,"*")):[]};
TY=function(l){_.mU(function(){for(var D=_.B(tj3(l,!1)),U=D.next();!U.done;U=D.next()){U=U.value;U.lifecycleIsConnected=!0;try{var n=void 0,y=void 0,A=void 0,C=void 0;(n=(C=U.polymerController)!=null?C:U)==null||(A=(y=n).connectedCallback)==null||A.call(y)}catch(h){_.EU(h)}}})};
Ir=function(l){_.mU(function(){for(var D=_.B(tj3(l,!0)),U=D.next();!U.done;U=D.next()){U=U.value;U.lifecycleIsConnected=!1;try{var n=void 0,y=void 0,A=void 0,C=void 0;(n=(C=U.polymerController)!=null?C:U)==null||(A=(y=n).disconnectedCallback)==null||A.call(y)}catch(h){_.EU(h)}}})};
pvs=function(){if(!XvK){XvK=!0;var l=[Node];Hg&&l.push(Hg.Wrapper);var D=Node.prototype.insertBefore,U=Node.prototype.removeChild;l=_.B(l);for(var n=l.next(),y={};!n.done;y={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},n=l.next())n=n.value,y.nativeInsertBefore=n.prototype.insertBefore,n.prototype.insertBefore=function(C){return function(h,b){if(h instanceof DocumentFragment){var u=Array.from(h.children);h=C.nativeInsertBefore.call(this,h,b);
if(this.isConnected&&C.nativeInsertBefore===D)for(b=_.B(u),u=b.next();!u.done;u=b.next())TY(u.value);return h}u=h instanceof Element&&h.isConnected;b=C.nativeInsertBefore.call(this,h,b);u&&Ir(h);this.isConnected&&TY(h);return b}}(y),y.nativeAppendChild=n.prototype.appendChild,n.prototype.appendChild=function(C){return function(h){if(h instanceof DocumentFragment){var b=Array.from(h.children);
h=C.nativeAppendChild.call(this,h);if(this.isConnected){b=_.B(b);for(var u=b.next();!u.done;u=b.next())TY(u.value)}return h}b=h instanceof Element&&h.isConnected;u=C.nativeAppendChild.call(this,h);b&&Ir(h);this.isConnected&&TY(h);return u}}(y),y.nativeRemoveChild=n.prototype.removeChild,n.prototype.removeChild=function(C){return function(h){var b=h instanceof Element&&h.isConnected,u=C.nativeRemoveChild.call(this,h);
b&&U===C.nativeRemoveChild&&Ir(h);return u}}(y),y.nativeReplaceChild=n.prototype.replaceChild,n.prototype.replaceChild=function(C){return function(h,b){if(h instanceof DocumentFragment){var u=Array.from(h.children);
h=C.nativeReplaceChild.call(this,h,b);if(this.isConnected)for(Ir(b),b=_.B(u),u=b.next();!u.done;u=b.next())TY(u.value);return h}u=h instanceof Element&&h.isConnected;var Q=this.isConnected,G=C.nativeReplaceChild.call(this,h,b);Q&&Ir(b);u&&Ir(h);Q&&TY(h);return G}}(y);
l=[Element];Hg&&l.push(Hg.Wrapper);l=_.B(l);n=l.next();for(y={};!n.done;y={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},n=l.next())n=n.value,n.prototype.before=SoB(n.prototype.before),n.prototype.after=SoB(n.prototype.after),y.nativeReplaceWith=n.prototype.replaceWith,n.prototype.replaceWith=function(C){return function(){var h=_.EW.apply(0,arguments),b=_.B(kDs(h)),u=b.next().value,
Q=b.next().value;b=this.isConnected;C.nativeReplaceWith.apply(this,h);h=_.B(Q);for(Q=h.next();!Q.done;Q=h.next())Ir(Q.value);if(b)for(Ir(this),u=_.B(u),b=u.next();!b.done;b=u.next())b=b.value,b instanceof Element&&TY(b)}}(y),y.nativeRemove=n.prototype.remove,n.prototype.remove=function(C){return function(){var h=this.isConnected;
C.nativeRemove.call(this);h&&Ir(this)}}(y),y.nativeInsertAdjacentElement=n.prototype.insertAdjacentElement,n.prototype.insertAdjacentElement=function(C){return function(h,b){var u=b.isConnected;
h=C.nativeInsertAdjacentElement.call(this,h,b);u&&Ir(b);h.isConnected&&TY(h);return h}}(y),y.nativeSetAttribute=n.prototype.setAttribute,n.prototype.setAttribute=function(C){return function(h,b){var u=dWK(this);
if(!u.usePatchedLifecycles)return C.nativeSetAttribute.call(this,h,b);var Q=this.getAttribute(h);C.nativeSetAttribute.call(this,h,b);b=this.getAttribute(h);KnC(u,h,Q,b)}}(y),y.nativeRemoveAttribute=n.prototype.removeAttribute,n.prototype.removeAttribute=function(C){return function(h){var b=dWK(this);
if(!b.usePatchedLifecycles)return C.nativeRemoveAttribute.call(this,h);var u=this.getAttribute(h);C.nativeRemoveAttribute.call(this,h);u!==null&&KnC(b,h,u,null)}}(y),y.nativeToggleAttribute=n.prototype.toggleAttribute,n.prototype.toggleAttribute=function(C){return function(h,b){var u=dWK(this);
if(!this.usePatchedLifecycles)return C.nativeToggleAttribute.call(this,h,b);var Q=this.getAttribute(h),G=Q!==null;b=C.nativeToggleAttribute.call(this,h,b);b!==G&&KnC(u,h,Q,b?"":null);return b}}(y);
l=[Document,DocumentFragment,Element,ShadowRoot];Hg&&l.push(Hg.Wrapper);l=_.B(l);for(y=l.next();!y.done;y=l.next())y=y.value,y.prototype.prepend=SoB(y.prototype.prepend),y.prototype.append=SoB(y.prototype.append);(Hg==null?void 0:Hg.noPatch)===!0&&cwo();document.readyState==="complete"?TY(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&TY(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(C){C||Ir(this);A.set.call(this,C);return C}})}};
SoB=function(l){return function(){var D=_.EW.apply(0,arguments),U=_.B(kDs(D)),n=U.next().value;U=U.next().value;l.apply(this,D);D=_.B(U);for(U=D.next();!U.done;U=D.next())Ir(U.value);if(this.isConnected)for(n=_.B(n),D=n.next();!D.done;D=n.next())D=D.value,D instanceof Element&&TY(D)}};
cwo=function(){for(var l=_.B(xWs),D=l.next();!D.done;D=l.next()){D=D.value.prototype;for(var U=_.B(jts),n=U.next();!n.done;n=U.next()){n=n.value;var y=Object.getOwnPropertyDescriptor(D,n);y&&Object.defineProperty(D,"__shady_native_"+n,y)}}};
KnC=function(l,D,U,n){var y,A;if((y=l.polymerController)==null?0:(A=y.observedAttributes)==null?0:A.includes(D))if(l=l.polymerController,l.attributeChangedCallbackWrapper)l.attributeChangedCallbackWrapper.call(l,D,U,n);else{var C;(C=l.attributeChangedCallback)==null||C.call(l,D,U,n)}};
kDs=function(l){var D=[],U=[];l=_.B(l);for(var n=l.next();!n.done;n=l.next())n=n.value,n instanceof Element&&n.isConnected&&U.push(n),n instanceof DocumentFragment?D.push.apply(D,_.zz(Array.from(n.children))):D.push(n);return[D,U]};
dWK=function(l){return!(l instanceof Element)&&l.node instanceof Element?l.node:l};
Fno=function(l,D){var U=D?["children"].concat(_.zz(D)):["children"];D=[];U=_.B(U);for(var n=U.next();!n.done;n=U.next()){var y=n.value;if(l.hasOwnProperty(y)){n=l[y];n=typeof n==="function"?n():n;n=Array.isArray(n)?n:[n];n=dt(n).flat();if(y!=="children"){y=Eso(y);for(var A=_.B(n),C=A.next();!C.done;C=A.next())C=C.value,C instanceof Element&&C.setAttribute("slot",y)}D.push(n)}}D.length===0?l=[]:(l=dt(_.g("div",null,D)),l=Array.from(l.childNodes));return l};
wv$=function(l,D,U){var n={};_.fy(function(){var y={},A;for(A in D)if(D.hasOwnProperty(A)){var C=void 0,h=void 0;if(!(((C=U.slotProps)==null?0:C.includes(A))||A==="children"||((h=U.callbackProps)==null?0:h.includes(A))||A==="ref")&&(C=_.EP(D[A]),n[A]!==C)){n[A]=C;h=void 0;var b=(h=l.hostElement)!=null?h:l;!U.skipHostForwardedProps&&owg.has(A)&&(b[A]=C);y[A]=C}}Ky(function(){if(l.setProperties)l.setProperties(y);else for(var u=_.B(Object.entries(y)),Q=u.next();!Q.done;Q=u.next()){var G=_.B(Q.value);
Q=G.next().value;G=G.next().value;l[Q]=G}})},"j")};
zP3=function(l,D,U,n){var y=Fno(U,n.slotProps),A=(0,_.Aj)(l);y=_.B(y);for(var C=y.next();!C.done;C=y.next())A.appendChild(C.value);wv$(D,U,n);n=_.B(n.callbackProps||[]);y=n.next();for(A={};!y.done;A={kebabEventName:void 0,eventListener:void 0},y=n.next())C=y=y.value,String(y).substring(0,2)==="on"&&U[C]?(A.kebabEventName=Eso(String(y).substring(2)),A.eventListener=U[C],l.addEventListener(A.kebabEventName,A.eventListener),_.NV(function(Q){return function(){l.removeEventListener(Q.kebabEventName,Q.eventListener)}}(A))):
D[C]=U[C];
if(U.ref){U=_.B(rw_(U.ref));var h=U.next().value,b=U.next().value,u=D.attached.bind(D);D.attached=function(){h(l);u()};
_.NV(function(){b()})}};
rw_=function(l){if(typeof l==="function"){var D;return[function(U){D=l(U)},
function(){var U;(U=D)==null||U()}]}if(!l.onRender||!l.onUnmount)throw Error("Sg");
return[l.onRender,l.onUnmount]};
fad=function(l,D){D=D===void 0?{}:D;var U=function(n){var y=document.createElement(l),A;var C=(A=y.polymerController)!=null?A:y;zP3(y,C,n,D);return y};
U.debugName=l+" (CoW wrapped)";return U};
EwN=function(l,D,U,n,y){n=n===void 0?{}:n;var A=$W9,C=!1;A?(C=!0,$W9=void 0):(N8o=D,A=document.createElement(D),N8o=void 0);var h=A;h.usePatchedLifecycles=!0;h.lifecycleIsConnected=!1;A.loggingStatus={};var b=stG(l,D,A,n,y);_.NV(function(){h.lifecycleIsConnected&&(h.lifecycleIsConnected=!1,b.disconnectedCallback())});
C||(A.__noInsertionPoint=!0,zP3(A,b,U,n));return A};
stG=function(l,D,U,n,y){y=y===void 0?GDN:y;T8$[D]!=null||(T8$[D]=y(l,D,n==null?void 0:n.getTemplate,n));var A=T8$[D],C=A.ctor;y=A.getInitialMethods;var h=A.getPropsToForwardBeforeReady;l=A.getPropsToForwardBeforeRegister;n=A.shouldForwardProp;var b=A.observedAttributes,u=A.shouldLog,Q=C(U,{beforeReady:function(){var G=Q;G._takeAttributes?G._takeAttributes():G.setPropertiesFromInitialAttributeValues&&G.setPropertiesFromInitialAttributeValues();G=_.B(h(U.polymerController));for(var J=G.next();!J.done;J=
G.next()){var L=_.B(J.value);J=L.next().value;L=L.next().value;qo9(U,J,L);u(D)&&!El(J)&&Z9B(U.polymerController,J)}U.polymerController=zll(Q,D)}});
U.polymerController=Q;U.polymerController.observedAttributes=b;A=_.B(Q.getExtraMethodsToForward());for(C=A.next();!C.done;C=A.next())b=_.B(C.value),C=b.next().value,b=b.next().value,Mjo(U,C,b);y=_.B(y());for(A=y.next();!A.done;A=y.next())A=A.value,n(A)&&Mjo(U,A),u(D)&&!El(A)&&RPd(Q,A);l=_.B(l());for(n=l.next();!n.done;n=l.next())y=_.B(n.value),n=y.next().value,y=y.next().value,qo9(U,n,y);return Q};
Ia9=function(l){var D=Yu;Yu=l;return D};
O9g=function(l){if(H9_.has(l)&&Yu&&Yo_(Yu)===l){var D;(D=Yu)._numRenders!=null||(D._numRenders=0);Yu._numRenders++;if(Yu._numRenders>1)throw Error("Tg");return Yu}};
if_=function(l){var D=Yo_(l);Yu!==l&&D.includes("-")&&VjC.set(l,!0)};
Yo_=function(l){var D;return(D=l==null?void 0:l.tagName.toLowerCase())!=null?D:""};
ldN=function(l,D){if(l.componentType===py)throw Error("Ug");H9_.add(D);var U=function(){var n=HTMLElement.call(this)||this;n.is=D;if(N8o===D)return n.isInert=!0,n;n.createElement();return n};
_.Z(U,HTMLElement);U.prototype.createElement=function(){if(!this.isInert){$W9=this;var n=_.B(_.fX9(function(){return _.g(l,null)})).next().value;
$W9=void 0;f49(this);return n}};
customElements.define(D,U)};
UIo=function(l,D,U,n,y){l.prototype.is=D;(n==null?0:n.useSink)?DI9(l,D,U,n,y):(U=GDN(l,D,U,n),ePs(U,D));return l};
DI9=function(l,D,U,n,y){pvs();var A=_.w(function(C){return EwN(l,D,C,Object.assign({},n,{getTemplate:U}),y)},"k");
A.debugName=D+" (CoW wrapped)";ldN(A,D);return A};
yT9=function(l){return!nEc.has(l)};
Bn9=function(l,D,U,n){function y(){if(!G){for(var J=new Set(ATo),L=_.B(A.behaviors),R=L.next();!R.done;R=L.next()){R=R.value;for(var a=_.B(Object.getOwnPropertyNames(R)),S=a.next();!S.done;S=a.next()){S=S.value;var d=void 0,c=(d=Object.getOwnPropertyDescriptor(R,S))==null?void 0:d.value;c&&c instanceof Function&&(!u[S]||_.q("polymer_forward_method_killswitch"))&&J.add(S)}}L=_.B(Object.entries(Object.getOwnPropertyDescriptors(l.prototype)));for(R=L.next();!R.done;R=L.next())a=_.B(R.value),R=a.next().value,
a=a.next().value,a.value instanceof Function&&J.add(R);G=J}return G}
var A=f$l({is:D,disableElementRegistration:!1,getTemplate:U,providers:n==null?void 0:n.providers,reactivityMode:n==null?void 0:n.reactivityMode},l);if((n==null?0:n.allowedProps)||(n==null?0:n.allowedPropsFromBehaviors)){var C,h;A.allowedProps=[].concat(_.zz((C=n.allowedProps)!=null?C:[]),_.zz((h=n.allowedPropsFromBehaviors)!=null?h:[]))}var b=xv3(A,l);D=b.observedAttributes;var u={};U=_.B(A.reactiveSchemas);for(n=U.next();!n.done;n=U.next())if(n=n.value,n.type==="signal")u[n.propertyKey]={readOnly:n.readOnly},
n.readOnly&&(u[bO_(n.propertyKey)]={readOnly:!0});else if(n.type==="compute"||n.type==="computeWithMethod"||n.type==="redux")u[n.propertyKey]={readOnly:!0};var Q=A.reactiveSchemas.length,G;return{ctor:function(J,L){J=new b(J);J.beforeReady=L.beforeReady;return J},
props:u,observedAttributes:D,getInitialMethods:y,getPropsToForwardBeforeRegister:function(){for(var J=[],L=new Set,R=_.B(WqG),a=R.next();!a.done;a=R.next())a=a.value,J.push([a,a!=="observers"&&a!=="properties"]),L.add(a);R=_.B(Object.keys(u));for(a=R.next();!a.done;a=R.next())a=a.value,J.push([a,u[a].readOnly]),L.add(a);R=y();a=_.B(Object.keys(Object.getOwnPropertyDescriptors(l.prototype)));for(var S=a.next();!S.done;S=a.next())S=S.value,!yT9(S)||R.has(S)||L.has(S)||(J.push([S,!1]),L.add(S));J.push(["allowedProps",
!0]);return J},
getPropsToForwardBeforeReady:function(J){var L=[];J=_.B(Object.keys(J));for(var R=J.next();!R.done;R=J.next()){R=R.value;var a=y();yT9(R)&&!a.has(R)&&L.push([R,!1])}J=_.B(A.reactiveSchemas.slice(Q));for(R=J.next();!R.done;R=J.next())R=R.value,R.type!=="compute"&&R.type!=="computeWithMethod"&&R.type!=="redux"&&R.type!=="signal"||L.push([R.propertyKey,R.type==="signal"?R.readOnly:!0]);return L},
shouldForwardProp:yT9,shouldLog:Jj}};
_.r=function(l,D,U,n){var y,A,C=(A=(y=n)==null?void 0:y.mode)!=null?A:0;n!=null||(n={});var h;(h=n).reactivityMode!=null||(h.reactivityMode=0);C===1&&_.md("creator_poly_si_disable_list").includes(D)&&(C=2);return C===1?UIo(l,D,U,Object.assign({},n,{useSink:!0}),Bn9):UIo(l,D,U,Object.assign({},n,{useSink:C===2}))};
_.Ol=function(){return function(l,D,U,n){var y,A,C=(A=(y=n)==null?void 0:y.mode)!=null?A:2;n!=null||(n={});var h;(h=n).reactivityMode!=null||(h.reactivityMode=0);if(C===0)throw Error("Vg`"+C);return DI9(l,D,U,n,C===1?Bn9:void 0)}};
_.Vj=function(l){return _.q("creator_poly_si_killswitch")?!1:_.q("force_all_poly_si_batches")&&(l==="poly_si_all_on_test_check"||l==="creator_poly_si_batch_050"?0:l)||document.documentElement.hasAttribute("use-signals")?!0:!l||_.q(l+"_holdback_enabled")&&_.q("kevlar_polysi_holdback")?!1:_.q(l)};
im=function(l){return l?l.icon?l.icon.iconType.toLowerCase():l.customThumbnail?"member":"":""};
CAN=function(l){if(!l)return"";l=_.B(l);for(var D=l.next();!D.done;D=l.next())if((D=D.value)&&D.liveChatAuthorBadgeRenderer&&(D=im(D.liveChatAuthorBadgeRenderer))&&D!=="verified")return D;return""};
huc=function(l,D){if(!l)return null;var U;return((U=l.find(function(n){return n&&n.liveChatAuthorBadgeRenderer?im(n.liveChatAuthorBadgeRenderer)===D:!1}))==null?void 0:U.liveChatAuthorBadgeRenderer)||null};
_.QKG=function(l){var D=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;l=PAK(l);D=PAK(D);var U=bfG(l.hex);D=bfG(D.hex);var n=D[0]/255;var y=D[1]/255,A=D[2]/255,C=Math.max(n,y,A),h=Math.min(n,y,A),b=0,u=0,Q=.5*(C+h);C!=h&&(C==n?b=60*(y-A)/(C-h):C==y?b=60*(A-n)/(C-h)+120:C==A&&(b=60*(n-y)/(C-h)+240),u=0<Q&&Q<=.5?(C-h)/(2*Q):(C-h)/(2-2*Q));n=[Math.round(b+360)%360,u,Q];U=gEc(U,D);for(l=uSC(l.hex);U<4.5;){l=n[2]>=.5?l.darker((4.5-U)/2):l.brighter((4.5-U)/2);U=l.toString();
y=vE$(U);if(!y.length)throw Error("Xd`"+U);U=y;U=gEc(U,D)}return l.hex()};
gEc=function(l,D){l=_.$Yg(l);D=_.$Yg(D);return(Math.max(l,D)+.05)/(Math.min(l,D)+.05)};
_.lm=function(l){return"#"+("000000"+(l&16777215).toString(16)).slice(-6)};
_.GGG=function(l){for(var D=0,U=0;U<l.length;U++)D=l.charCodeAt(U)+((D<<5)-D);l="#";for(U=0;U<3;U++)l+=("00"+(D>>U*8&255).toString(16)).slice(-2);return l};
JTG=function(l){l=(l||"").split(":");l.length===1&&l.unshift("yt-icons");l[1]=l[1].toLowerCase();return l};
eu9=function(l,D){var U=(D=D===void 0?!1:D)?Lq_:qNo,n=D?MIG:RuC;l.getIconNames().forEach(function(y){y=D?y:y.substring(y.indexOf(":")+1);l.name==="yt-icons"?Zfc.add(y):y.includes("-filled")?U.add(y):n.add(y)})};
Dk=function(l,D,U,n){U=U===void 0?!1:U;n=n===void 0?!1:n;var y,A,C;return _.P(function(h){if(h.nextAddress==1)return h.yield(mIN,2);if(n)return h.return(Zfc.has(l));y=U?Lq_:qNo;A=U?MIG:RuC;return D?(C=l.includes("-filled")?l:l.concat("-filled"),h.return(y.has(C))):h.return(A.has(l))})};
_.UV=function(l){if(ad9(l))return l.toString();var D=tIC.get(l);if(D)return D;D=l.toLowerCase();var U="yt-icons",n=D.replace(/_/g,"-");switch(l){case "MY_CHANNEL":D="account_circle";break;case "ADD_TO_LIBRARY":D="add";break;case "ALERT_WARN_RED":D="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":D="person_music";break;case "BLOCK_USER":D="block";break;case "CAPTIONS":D="closed_caption";break;case "CLOSED_CAPTION":U="av";D="closed-caption";break;case "COLLECTION":U="maps";D="layers";break;case "CONTACT":U=
"icons";D="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":U="yt-studio-system-icons";D=n.split("creator-studio-")[1];break;case "DISMISSAL":D="close";break;case "DO_NOT_DISTURB":D="block";break;case "DOGFOOD":U="icons";D="pets";break;case "DRAFT":D="paper_corner_folded";
break;case "EMPTY_LIKE":D="like_outline";break;case "EXIT_APP":D="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":D=n;break;case "GAMES":U="ytg";D="my-games";break;case "GO_TO_PAGE":D="arrow-forward";break;case "GROUP":U="social";break;case "HIDE":D="not_interested";break;case "INPUT_COMPONENT":U="icons";D="settings-input-component";break;case "KIDS_BLOCK":D="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":U="ytg";D="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":U=
"ytg";D="membership-post-purchase";break;case "MULTIVIEW":D="screen_multi_view";break;case "MY_LOCATION":U="maps";D=n;break;case "NOTIFICATIONS_INBOX":D="NOTIFICATIONS";break;case "NEXT":D="chevron_right";break;case "OFFLINE":D="power-settings-new";break;case "PAUSE":U="miniplayer";break;case "PAYMENT":U="icons";break;case "PHONE_DOWNLOAD":D="phone_download";break;case "PREMIUM_STANDALONE":U="yt-logos";D="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":U="yt-logos";D="premium_standalone_cairo";
break;case "QUESTION_ANSWER":D="question_answer";break;case "REDEEM":U="icons";D="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":D="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":D="library_add";break;case "SCHOOL":U="yt-sys-icons";D="creator_academy";break;case "SETTINGS_LIGHT":D="settings_applications";break;case "SETTINGS_MATERIAL":D="settings";break;case "SEARCH_HISTORY":D="watch_history";break;case "SHOPPING_BAG":D="bag";break;case "SOCIAL":case "PEOPLE":U=
"yt-icons";D="people";break;case "STAFF_PICK":U="ytg";D="spotlight";break;case "START_DVR":D="add";break;case "STOP_DVR":U="av";D="stop";break;case "TAB_LIKED":D="like";break;case "TAB_INBOX":D="mail";break;case "TERMS_OF_SERVICE":U="icons";D="description";break;case "TRENDING":D="fire";break;case "UNBLOCK_USER":D="remove";break;case "UNPLUGGED_DARK_THEME":U="image";D="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":D="live";break;case "UNPLUGGED_SPORTS":U="ytu";D="visibility-off";break;
case "VIDEOS":U="av";D="play-circle-filled";break;case "YOUTUBE":U="yt-logos";D="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":U="yt-logos-ext";D="yt-logo-red-updated";break;case "YOUTUBE_LOGO":U="yt-logos-ext";D="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":U="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":U="shorts";D=n;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":U="yt-sys-icons";D="youtube_improve_tv";break;case "OUTLINE_BAG":U=
"yt-sys-icons";D="bag";break;case "QUEUE_PLAY_LAST":U="yt-sys-icons";D="list_queue_last";break;case "SLASH_CIRCLE_LEFT":D="slash_circle_left";break;case "SPEED_1_POINT_2X":D="1_point_2x";break;case "SPEED_1_POINT_5X":D="1_point_5x";break;case "SPEED_1_POINT_8X":D="1_point_8x";break;case "SPEED_POINT_2X":D="point_2x";break;case "SPEED_POINT_5X":D="point_5x";break;case "SPEED_POINT_8X":D="point_8x";break;case "SPEED_1X":D="1x";break;case "SPEED_2X":D="2x";break;case "TAB_BOOKMARK":D="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":U="yt-sys-icons";D="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":U="yt-sys-icons";D="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":U="yt-sys-icons",D="tic_tac_toe"}D=U+":"+D;tIC.set(l,D);return D};
ad9=function(l){var D;_.q("kevlar_use_wil_icons")?D=!!_.Jc().resolve(_.ne).resolveIcon({iconName:l.toString()}):D=!1;return D};
_.Ae=function(l,D,U,n){U=U===void 0?{}:U;n=n===void 0?!1:n;U===null&&(U={});var y=_.md("kevlar_command_handler_command_banlist");y=_.B(y);for(var A=y.next();!A.done;A=y.next())if(A=l?l.hasOwnProperty(A.value):void 0,A)return!1;y=_.M(l.commandMetadata,_.W6);return n&&y!=null&&y.url?!1:!D.disableCommandHandlerOverride&&_.yu.instance?(n=_.yu.instance,U.form||(U.form={element:D}),U.form.element||(U.form.element=D),!U.clickedVisualElement&&D.visualElement&&(U.clickedVisualElement=D.visualElement),n.resolveCommand(l,
U),!0):!1};
Xid=function(l,D){l=W9(l);for(var U=_.B(l.visibilityMonitorKeys||[]),n=U.next();!n.done;n=U.next())D.unobserveByKey(n.value);l.visibilityMonitorKeys=void 0};
Kql=function(l,D){if(_.t6()){if(_.q("kevlar_vimio_use_shared_monitor"))SNG(l,D.data);else if(!SNG(l,D.data))return;var U=D.data,n=kG$(U);if(_.q("enable_client_ve_spec_logging"))Xid(l,D.observer);else{var y=W9(l);y.trackedParams&&y.trackedParams!==n&&Xid(l,D.observer)}y=W9(l);!U||y.data&&y.data===U||(y.data=U);dIG(l,D);y.trackedParams=n}};
dIG=function(l,D){var U=D.observer;if(!U&&_.q("web_skip_missing_vimio_observer")){var n,y;_.II(new _.rc("VisibilityObserver is not defined.",l.tagName,l.trackedParams,(n=D.data)==null?void 0:n.trackingParams,(y=D.data)==null?void 0:y.loggingDirectives))}else{var A=D.layer,C=D.visibilityCallback||function(){},h=D.prescanCallback,b=W9(l);
n=[];D.showOption&&n.push(U.observe(l,function(){D.skipLogging&&D.skipLogging()||_.B9().reportShown(b,void 0,A);C(!0)},D.showOption));
D.hideOption&&n.push(U.observe(l,function(){_.B9().reportHidden(b,void 0,A);C(!1)},D.hideOption));
D.prescanOption&&h&&n.push(U.observe(l,function(){h()},D.prescanOption));
b.visibilityMonitorKeys=n}};
SNG=function(l,D){l=W9(l);if(l.visualElement&&!D)return!0;if(!D)return!1;var U=!1;if(_.q("enable_client_ve_spec_logging")){var n,y;U=!!((n=D.loggingDirectives)==null?0:(y=n.clientVeSpec)==null?0:y.uiType)}n=kG$(D);if(!n&&!U)return!1;_.q("mweb_component_visibility_logging")&&(l.veContainer||(l.veContainer={}),l.veContainer.trackingParams=n);if(l.trackedParams&&l.trackedParams===n)return!1;var A;if(_.q("enable_client_ve_spec_logging")&&((A=l.visualElement)==null?0:A.isClientVe())){var C;A=(C=l.visualElement)==
null?void 0:C.getAsJspb();var h,b,u,Q;if(_.Qp(A,2)===((h=D.loggingDirectives)==null?void 0:(b=h.clientVeSpec)==null?void 0:b.uiType)&&_.Qp(A,3,-1)===((u=D.loggingDirectives)==null?void 0:(Q=u.clientVeSpec)==null?void 0:Q.elementIndex))return!1}if(_.q("enable_client_ve_spec_logging")){var G,J;!l.visualElement&&((G=D.loggingDirectives)==null?0:(J=G.clientVeSpec)==null?0:J.uiType)&&(h=D.loggingDirectives.clientVeSpec,D=h.uiType,C=h.elementIndex,h=h.clientYoutubeData,l.visualElement=_.Ce(_.he(),{veType:D,
elementIndex:C,clientYouTubeData:h}))}return!0};
kG$=function(l){if(l==null?0:l.rendererContext){var D=_.M(l.rendererContext,_.P9);if(D==null?0:D.loggingDirectives)return D.loggingDirectives.trackingParams}return(l==null?0:l.loggingDirectives)?l.loggingDirectives.trackingParams:l==null?void 0:l.trackingParams};
W9=function(l){var D;return(D=l.polymerController)!=null?D:l};
jK9=function(l){_.B9();if(_.DJ(bm().JSC$12802_elementShouldLogGesture).bind(bm())(l,4)){cT9(l);var D=pio(l);xIo.set(l,D)}};
cT9=function(l){xIo.has(l)&&(xIo.get(l).cancel("untrack hover element"),xIo.delete(l))};
pio=function(l){var D,U=[],n=!1,y=new _.X0(function(A,C){gh(l,"mouseenter",_.DJ(function(){var h,b,u;return _.P(function(Q){if(Q.nextAddress==1)return D=(0,_.J3)(),h=FqK(l),U.push(h),b=oEd(l,function(){n=!0;C(Error("Wg"))}),Q.yield(h,2);
if(Q.nextAddress!=3)return b&&um(b),u=wi9(l),U.push(u),Q.yield(u,3);A();_.Kz(Q)})}))});
y.then(function(){var A=(0,_.J3)()-D;A=Math.round(A);if(!(500>A||6E5<=A)){var C=l.getScreenLayer?l.getScreenLayer():void 0;C=_.t6(C)||"";var h=rTg(_.B9(),l);_.f3(C,l.visualElement?l.visualElement:_.v9(h),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:A}})}jK9(l)},function(){Qu&&(Qu(),Qu=null);
n&&(cT9(l),jK9(l))});
return y};
FqK=function(l){var D;return(new _.X0(function(U,n){Qu=function(){n(Error("Xg"))};
D=_.Tn.debounce(_.DJ(function(){um(y);U()}),1,100);
var y=_.Gt(l,"mousemove",D)})).thenCatch(function(){var U=_.Tn.cancelDebouncedJobMap.get(D);
U&&_.Tn.cancelJob(U)})};
wi9=function(l){var D;return(new _.X0(function(U,n){Qu=function(){n(Error("Yg"))};
D=gh(l,"mouseleave",_.DJ(function(){U()}))})).thenCatch(function(){um(D)})};
oEd=function(l,D){return gh(l,"mouseleave",_.DJ(D))};
fdN=function(l){zuG&&_.Je.cancel(zuG);zuG=_.Je.run(function(){_.O9(l,"yt-visibility-refresh");zuG=0})};
$IK=function(l){l=Number(l);return"rgba("+[l>>16&255,l>>8&255,l&255,(l>>24&255)/255].join()+")"};
sKd=function(l){if(!l)return!1;if(_.M(l,_.Nnd))return!0;var D;if(l=(D=_.M(l,_.n3))==null?void 0:D.commands)for(D=_.B(l),l=D.next();!l.done;l=D.next())if(_.M(l.value,_.Nnd))return!0;return!1};
EEo=function(l){var D=!0;D=D===void 0?!0:D;if(!l.useSignals&&!l.experimentalPropertiesChanged||_.q("experimental_templating_behavior_nopatch_killswitch")){var U=l._propertiesChanged;l._propertiesChanged=function(n,y,A){D?l.debounceRender():l.doRender();U&&U.call(l,n,y,A)}}};
Tns=function(l,D){if(l.useSignals||l.experimentalPropertiesChanged)if(_.q("experimental_templating_behavior_nopatch_killswitch"))l.experimentalPropertiesChanged=function(){};
else return;var U=new Set,n=[l].concat(_.zz(l.behaviors));n=_.B(n);for(var y=n.next();!y.done;y=n.next()){y=y.value;for(var A in y.properties)U.has(A)||(l._addPropertyEffect(A,"function",D),U.add(A))}};
Id9=function(){var l=Polymer.Element,D=l._prepareTemplate;l._prepareTemplate=function(){D.call(this);var U=this.prototype;if(U.experimentalTemplatingInUse&&U.experimentalTemplatingInUse()&&U.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.EU(Error("Zg"));else{U=this.template.content.childNodes;for(var n=U.length-1;n>=0;n--){var y=U[n];y.nodeName!=="STYLE"&&y.nodeName!=="LINK"&&y.nodeName!=="SCRIPT"&&y.nodeName!=="#comment"&&y.remove()}}}};
HfG=function(l){var D=!0;D=D===void 0?!0:D;Id9();var U=l.ready;l.ready=function(){this._template=null;U.call(this)};
Tns(l,D?l.debounceRender:l.doRender)};
OfC=function(l,D,U){if(U===null||U===void 0)return U;var n=aml(l.tagName.toLowerCase(),D,function(){throw Error("Tb");});
if(n===null)return U;n=YNo[n];var y;if((y=n.isUnwrappable)==null?0:y.call(n,U)){if(n.unwrap)return n.unwrap(U);throw Error("bh");}return n.filterString?n.filterString(l.tagName,D,String(U)):U};
VIg=function(l,D,U){var n=D[D.length-1]!=="$",y=OfC(l,D,U);if(n)if(typeof y==="function"&&D.startsWith("reactiveon")&&D===D.toLowerCase()){var A=hq;xM3(l,D.slice(8),function(C){Tp(A,function(){y(C)})})}else l[D]=y;
else U=y==null?null:String(y),OP(l,D.slice(0,-1),U)};
qD=function(l){iv9.length===0&&requestAnimationFrame(function(){setTimeout(function(){var D=iv9.slice();iv9.length=0;D=_.B(D);for(var U=D.next();!U.done;U=D.next()){U=U.value;try{U()}catch(n){_.Le(n)}}})});
iv9.push(l)};
l6_=function(l){if(l){var D=l.component;if(D){var U;D==null||(U=D.events)==null||U.publish("DISCONNECTED");var n;D==null||(n=D.onDisconnected)==null||n.call(D)}var y,A;(y=l.__spec)==null||(A=y.didUnmount)==null||A.call(y);for(D=0;D<l.childNodes.length;D++)l6_(l.childNodes[D])}};
DpN=function(l,D,U){var n=D&&D.key,y=Ck;y[0]=l;y[1]=n;y[2]=void 0;for(var A in D)D.hasOwnProperty(A)&&(l=D[A],n=hf,n.push(A),n.push(l));D=Ck;a:{if(A=Ck[2])for(l=0;l<A.length;l+=2)if(A[l]==="nonce"){A=A[l+1];break a}A=""}A=Ims(D[0],D[1],A);l=DQ(A);n=D[2];if(!l.staticsApplied&&(l.staticsApplied=!0,n&&n.length))if((y=l._attrsArr)&&y.length){for(y=0;y<n.length;y+=2)MD[n[y]]=y+1;y=l._attrsArr||(l._attrsArr=pdc(0));for(var C=0,h=0;h<y.length;h+=2){var b=y[h],u=y[h+1],Q=MD[b];Q?n[Q]===u&&delete MD[b]:(y[C]=
b,y[C+1]=u,C+=2)}Yi(y,C);for(var G in MD)rHd(A,G,n[MD[G]],vd),delete MD[G]}else for(G=0;G<n.length;G+=2)rHd(A,n[G],n[G+1],vd);DEG(A,l,vd);Yi(D,0);U&&U(UZ);HAC()};
_.RO=function(l,D,U){U===void 0?delete l[D.name]:l[D.name]=U};
_.Zk=function(l){var D={androidIncludeFontPadding:!1},U=0,n=[],y=[],A=[];if(l.simpleText)return D.content=l.simpleText,D;if(l.runs===void 0)return D.content="",D;l=_.B(l.runs);for(var C=l.next();!C.done;C=l.next()){C=C.value;var h=C.text,b=void 0,u=(b=h)==null?void 0:b.length;if(h&&u){n.push(h);if(C.bold||C.italics||C.strikethrough||C.underline||C.textColor!=null&&C.textColor!==0||C.deemphasize){h=y;b=h.push;var Q={startIndex:U,length:u};C.bold&&(Q.weightLabel="FONT_WEIGHT_MEDIUM");C.italics&&(Q.italic=
!0);C.strikethrough&&(Q.strikethrough="LINE_STYLE_SINGLE");C.underline&&(Q.underline="LINE_STYLE_SINGLE");C.textColor!=null&&C.textColor!==0?document.documentElement.hasAttribute("dark")?Q.fontColor=C.darkModeTextColor||C.textColor:Q.fontColor=C.textColor:C.deemphasize&&(document.documentElement.hasAttribute("dark")?Q.fontColor=parseInt("ff"+Upo("#aaa").substring(1),16):Q.fontColor=parseInt("ff"+Upo("#606060").substring(1),16));b.call(h,Q)}C.navigationEndpoint&&(h=A,b=h.push,Q={startIndex:U,length:u,
onTap:{innertubeCommand:C.navigationEndpoint}},C.loggingDirectives&&_.RO(Q,nj9,C.loggingDirectives),b.call(h,Q));U+=u}}D.content=n.join("");D.styleRuns=y.length?y:void 0;D.commandRuns=A.length?A:void 0;return D};
AtK=function(l){if(l==null||!l.runs)return!0;l=_.B(l.runs);for(var D=l.next();!D.done;D=l.next())if(D=D.value,D.bracket||D.errorUnderline||D.deemphasize||_.M(D,eQ)||_.M(D,yt$))return!1;return!0};
Wyg=function(l,D){return function(U){var n=D.unit;if(n!==U)throw Error("eh`"+l+"`"+n+"`"+U);return D}};
mp=function(l){if(!((l==null?0:l.value)&&(l==null?0:l.unit)))return"";switch(l.unit){case "DIMENSION_UNIT_FRACTION":var D="%";break;default:D="px"}l=l.value;D==="%"&&(l*=100);return""+l+D};
B2g=function(l){try{return l()}catch(D){_.II(D)}};
_.te=function(l){var D=_.M(l,_.aO);if(D)return D;if((D=_.M(l,Cj9))&&D.commands)return hS9(D.commands);if((D=_.M(l,Pj3))&&D.commands)return hS9(D.commands);if((l=_.M(l,bvg))&&l.identifier&&l.command&&(gj9||(gj9=[]),!gj9.includes(l.identifier)))return gj9.push(l.identifier),_.M(l.command,_.aO)};
hS9=function(l){if(l.length!==0){var D=[];l=_.B(l);for(var U=l.next();!U.done;U=l.next())(U=_.te(U.value))&&D.push(U);return{commandExecutorCommand:{commands:D}}}};
_.SQ=function(l){var D=l.defaultTarget,U=l.elementConfig,n=l.elementsCommand,y=l.skipOnClick,A=l.forceNewState,C=l.additionalCommandArgs,h=l.innertubeCommand||_.te(n);if(h){l={};var b=ufK(h);n=b.navigatingCommand;b=b.href;n&&b?(l.href$=b,vjc(l,n,b,D),_.q("web_atagconfig_pointerdown")&&QcN(l,n),A&&(l["force-new-state$"]=!0)):(l.role$="button",l.href$="javascript:void(0);");_.M(h,GHC)&&(l["aria-haspopup$"]=!0);y||(l.onclick=function(u){var Q={};if(Jtg(u)){var G=(C==null?void 0:C.clickedVisualElement)||
(C==null?void 0:C.getClickedVisualElement)&&C.getClickedVisualElement();G&&(Q={clickedVisualElement:G});Q=Object.assign({},{form:{element:u.target,event:u,createScreenConfig:Q}},C);u.preventDefault();_.Xk(h,Q)}});
return Object.assign({},U,l)}};
Lyd=function(l){if(l.length){if(l.length===1)return l[0];var D={};_.RO(D,_.n3,{commands:l});return D}};
kt=function(l){return l&&l.href$!=="javascript:void(0);"};
ufK=function(l){var D,U=((D=_.M(l,_.n3))==null?void 0:D.commands)||[l];l=_.B(U);for(D=l.next();!D.done;D=l.next()){D=D.value;var n=void 0,y=void 0;U=(y=_.M((n=D)==null?void 0:n.commandMetadata,_.W6))==null?void 0:y.url;_.q("web_remove_web_navigation_endpoint_data")||(n=void 0,U=U||((n=_.M(D,q8_))==null?void 0:n.url));if(U&&U!=="/service_ajax"){if(n=_.rT(U,Mb3))return l=_.ol(n),{navigatingCommand:D,href:l};_.II(new _.rc("AttributedString URL could not be sanitized",U))}}return{}};
Jtg=function(l){return l.button!==void 0?l.button===0&&!(l.shiftKey||l.altKey||l.metaKey||l.ctrlKey):!(l.shiftKey||l.altKey||l.metaKey||l.ctrlKey)};
vjc=function(l,D,U,n){U=!vS(U);var y,A,C;if((y=_.M(D,_.Pk))!=null&&y.nofollow||(A=_.M(D,_.za))!=null&&A.nofollow||(C=_.M(D,_.yE))!=null&&C.nofollow||U)l.rel$="nofollow";var h;D=((h=_.M(D,_.yE))==null?void 0:h.target)==="TARGET_NEW_WINDOW"?"_blank":n===void 0?"":n;l.target$=D};
QcN=function(l,D){D.clickTrackingParams&&(l.params={itct:D.clickTrackingParams});l.onpointerdown=function(U){RS_(U)};
l._data=D};
Zv$=function(l){(l.loggingUrls||[]).forEach(function(D){yX(D.baseUrl,D.attributionSrcMode)})};
RS_=function(l){var D=l.currentTarget;l=B2g(function(){return D.href});
var U=D.params;l&&_.s9(l,U||{},8,!0)};
_.dh=function(l,D){(l=_.te(l))&&_.Xk(l,D)};
_.Xk=function(l,D){i3o(function(U){D?U.resolveCommand(l,D):U.resolveCommand(l)})};
tbo=function(l,D){var U=["yt-core-attributed-string__link"];D!=null&&D.noLinkColor||((D==null?0:D.isOverlay)?U.push("yt-core-attributed-string__link--overlay-call-to-action-color"):U.push("yt-core-attributed-string__link--call-to-action-color"),(D==null?0:D.linkInheritColor)&&U.push("yt-core-attributed-string--link-inherit-color"));U={className:U.join(" "),tabindex$:"0"};var n=l.onTap||l.onLongPress;if(!n)return U;var y=eSg(l);y&&(U["aria-label$"]=y);D=_.SQ({elementsCommand:n,elementConfig:U,skipOnClick:!(D==
null||!D.skipOnClick),forceNewState:!0});l.onLongPress&&(n=new mpg(function(){var A=_.te(l.onLongPress);A&&_.Jc().resolve(_.qK).resolveCommand(A)}),D&&a6c(n,D));
return D||U};
eSg=function(l){var D,U;return(D=l.onTapOptions)==null?void 0:(U=D.accessibilityInfo)==null?void 0:U.accessibilityLabel};
X4o=function(l){var D=l;l<=16777215&&(D+=parseInt("ff000000",16));return _.tu(D)};
S8s=function(l){var D=l.isDarkTheme;var U=l.extension;l=l.runColor;var n=void 0;if(U=U==null?void 0:U.colorMap){D=D?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";U=_.B(U);for(var y=U.next();!y.done;y=U.next())if(y=y.value,D===y.key){n=y.value;break}}n==null&&l&&(n=l);if(n)return X4o(n)};
Ke=function(l){var D=l.config;var U=l.image;var n=l.imageConfig;var y=l.imageWrapperConfig;var A=l.run;var C=l.tag;var h=l.textLength;var b=l.startIndex===void 0?0:l.startIndex;l=l.length;b===void 0&&(b=0);A={run:A,startIndex:b,endIndex:l!==void 0?b+l:h,tag:C};U&&(A.image=U);n&&(A.imageConfig=n);y&&(A.imageWrapperConfig=y);D&&(A.config=D);return A};
dpg=function(l,D){var U=[];U.push("yt-core-attributed-string");(D==null?0:D.className)&&U.push(D==null?void 0:D.className);(D==null?0:D.ellipsisTruncate)?U.push("yt-core-attributed-string--ellipsis-truncate"):(D==null?0:D.noWrap)?U.push("yt-core-attributed-string--white-space-no-wrap"):(D==null?0:D.noPreWrap)||U.push("yt-core-attributed-string--white-space-pre-wrap");(D==null?0:D.linkInheritColor)&&U.push("yt-core-attributed-string--link-inherit-color");l.alignment&&U.push(kHl(l.alignment));l.lineBreakMode&&
U.push("yt-core-attributed-string--word-wrapping");return U.join(" ")};
Kyl=function(l,D){if(l.weight)return l.weight;switch(l.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 D?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
cto=function(l){switch(l){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"}};
kHl=function(l){switch(l){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"}};
xt=function(l,D,U){var n=D;l.content&&U&&(U=l.content.indexOf("\n"),U!==-1&&(n=Math.min(D,U)));if(!l.content||l.content.length<=n)D=l;else if(l.attachmentRuns||l.commandRuns||l.decorationRuns||l.styleRuns||l.paragraphStyleRuns){D=c9(l.content,n);U=n;var y=l.attachmentRuns;if(y){var A=[];y=_.B(y);for(var C=y.next();!C.done;C=y.next())C=Object.assign({},C.value),C.startIndex===void 0||C.startIndex>=U||(C.length||(C.length=0),C.length+C.startIndex>U&&(C.length=U-C.startIndex),A.push(C));U=A}else U=void 0;
A=p4d(n,l.commandRuns);y=n;var h=l.decorationRuns;if(h){C=[];h=_.B(h);for(var b=h.next();!b.done;b=h.next()){b=b.value;var u=_.M(b.textDecorator,pe);if(u&&u.startIndex!==void 0&&!(u.startIndex>=y)){b=Object.assign({},b,{textDecorator:{highlightTextDecorator:Object.assign({},u)}});u=_.M(b.textDecorator,pe);if(!u.length||u.length+u.startIndex>y)u.length=y-u.startIndex;C.push(b)}}y=C}else y=void 0;C=p4d(n,l.styleRuns);if(h=l.paragraphStyleRuns)for(l=[],h=_.B(h),b=h.next();!b.done;b=h.next()){var Q=b.value;
b=Object.assign({},Q);if(!(b.startIndex===void 0||b.startIndex>=n)){if(!b.length||b.length+b.startIndex>n)b.length=n-b.startIndex;u=[];var G=void 0,J=void 0;if((G=Q)==null?0:(J=G.listGroup)==null?0:J.listItems)for(Q=_.B(Q.listGroup.listItems),G=Q.next();!G.done;G=Q.next())if(G=Object.assign({},G.value),!(G.startIndex===void 0||G.startIndex>=n)){if(!G.length||G.length+G.startIndex>n)G.length=n-G.startIndex;u.push(G)}u.length>0&&(b.listGroup||(b.listGroup={}),b.listGroup=Object.assign({},b.listGroup,
{listItems:u}));l.push(b)}}else l=void 0;D={content:D,attachmentRuns:U,commandRuns:A,decorationRuns:y,styleRuns:C,paragraphStyleRuns:l}}else D=Object.assign({},l,{content:c9(l.content,n)});return D};
p4d=function(l,D){if(D){var U=[];D=_.B(D);for(var n=D.next();!n.done;n=D.next())if(n=Object.assign({},n.value),!(n.startIndex===void 0||n.startIndex>=l)){if(!n.length||n.length+n.startIndex>l)n.length=l-n.startIndex;U.push(n)}return U}};
c9=function(l,D){var U=D,n;if(n=U>0)n=l.charCodeAt(U-1),n=n>=55296&&n<=56319;n&&(U=l.charCodeAt(U),n=U>=56320&&U<=57343);n&&--D;return l.substring(0,D)};
ojc=function(l,D,U){U=U===void 0?xpc:U;if(l){var n=_.Jc().resolve(G7);n||_.q("mweb_no_observer_killswitch")?Kql(l,{data:D,observer:n,visibilityCallback:U,hideOption:jcd,showOption:Fy$,layer:l.layer}):_.II(new _.rc("Warning: monitorVisibility called with null observer",l.tagName,D==null?void 0:D.loggingDirectives,D==null?void 0:D.trackingParams))}else _.II(new _.rc("Warning: monitorVisibility called with null element",D==null?void 0:D.loggingDirectives,D==null?void 0:D.trackingParams,D==null?void 0:
D.rendererContext))};
scg=function(l,D){var U=[],n=l.content.length,y,A=(y=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:y();if(l.paragraphStyleRuns){y=_.B(l.paragraphStyleRuns);for(var C=y.next();!C.done;C=y.next()){var h=U.push,b=h.apply;var u=void 0;C=C.value;if((u=C.listGroup)!=null&&u.listItems){u=[];b:switch(C.listGroup.listType){case "LIST_TYPE_BULLET":var Q="ul";break b;default:Q="span"}u.push(Ke({run:C,textLength:n,tag:Q,config:{className:"yt-core-attributed-string__list-group"},startIndex:C.startIndex,length:C.length}));
Q=_.B(C.listGroup.listItems);for(var G=Q.next();!G.done;G=Q.next()){G=G.value;b:switch(C.listGroup.listType){case "LIST_TYPE_BULLET":var J="li";break b;default:J="span"}u.push(Ke({run:C,textLength:n,tag:J,startIndex:G.startIndex,length:G.length}))}C=u}else C=[];b.call(h,U,_.zz(C))}}if(l.styleRuns&&(D==null||!D.noStyleRuns))for(y=_.B(l.styleRuns),h=y.next();!h.done;h=y.next()){C=h=h.value;u=A;b=D;u=S8s({extension:_.M(C.styleRunExtensions,w4l),isDarkTheme:u===void 0?!1:u,runColor:C.fontColor});G=C;
Q=[];u&&Q.push("yt-core-attributed-string--link-inherit-color");G.italic&&Q.push("yt-core-attributed-string--italicized");G.underline&&G.strikethrough?Q.push("yt-core-attributed-string--underline-strikethrough",cto(G.underline)):G.underline?Q.push("yt-core-attributed-string--underlined",cto(G.underline)):G.strikethrough&&Q.push("yt-core-attributed-string--strikethrough",cto(G.strikethrough));if(G.baselineOffset){a:switch(G.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":G="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":G="yt-core-attributed-string--baseline-offset-superscript";break a;default:G="yt-core-attributed-string--baseline-offset-unknown"}Q.push(G)}Q=Q.join(" ");G={};if(C.weight||C.weightLabel)G.fontWeight=Kyl(C,b==null?void 0:b.isHeadline).toString();u&&(G.color=u);U.push(Ke({run:h,textLength:n,tag:"span",config:{className:Q,style:G},startIndex:h.startIndex,length:h.length}))}if(l.decorationRuns)for(y=_.B(l.decorationRuns),h=y.next();!h.done;h=y.next())h=h.value,
b={},h.textDecorator&&(Q=h.textDecorator,C=A===void 0?!1:A,G=[],u=_.M(Q,pe),Q=_.M(Q,rt3),u?(Q=G,G=Q.concat,J=[],(C=S8s({extension:_.M(u.highlightTextDecoratorExtensions,zS9),isDarkTheme:C,runColor:u.backgroundColor}))&&J.push("background-color: "+C+";"),u.backgroundCornerRadius!==void 0&&J.push("border-radius: "+u.backgroundCornerRadius+"px;"),u.leftPadding!==void 0&&J.push("padding-left: "+u.leftPadding+"px;"),u.rightPadding!==void 0&&J.push("padding-right: "+u.rightPadding+"px;"),u.topPadding!==
void 0&&J.push("padding-top: "+u.topPadding+"px;"),u.bottomPadding!==void 0&&J.push("padding-bottom: "+u.bottomPadding+"px;"),G=G.call(Q,J)):Q&&(u=G,G=u.concat,C=C?"#2ba640":"#107516",C=Q.color?X4o(Q.color):C,C=["padding: 2px;","border-top: solid "+C+" 2px;","border-bottom: solid "+C+" 2px;","background: linear-gradient(135deg, "+C+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+C+" 3px, rgba(0, 0, 0, 0) 3px);"],G=G.call(u,C)),C=G.join(" "),b.style$=C,C=h.textDecorator,u=[],Q=_.M(C,
rt3),_.M(C,pe)?u.push("yt-core-attributed-string--highlight-text-decorator"):Q&&u.push("yt-core-attributed-string--bracket-text-decorator"),C=u.join(" "),b.className=C,b.dir="auto"),C=_.M(h.textDecorator,pe),u=_.M(h.textDecorator,rt3),Q=_.M(h.textDecorator,pe),G=_.M(h.textDecorator,rt3),U.push(Ke({run:h,textLength:n,tag:"span",config:b,startIndex:(C==null?void 0:C.startIndex)||(u==null?void 0:u.startIndex)||0,length:(Q==null?void 0:Q.length)||(G==null?void 0:G.length)||0}));if(l.commandRuns&&(D==
null||!D.noEndpoints))for(A=_.B(l.commandRuns),y=A.next();!y.done;y=A.next())y=y.value,h=tbo(y,D),U.push(Ke({run:y,textLength:n,tag:"a",config:h,startIndex:y.startIndex,length:y.length}));if(l.attachmentRuns)for(l=_.B(l.attachmentRuns),A=l.next();!A.done;A=l.next()){A=A.value;b=h=void 0;y={className:"yt-core-attributed-string--inline-block-mod"};if((b=A.element)==null?0:b.properties){b=(h=A.element)==null?void 0:h.properties;h=[];b=_.M(b,f6$);if(b==null?0:b.margin)b=b.margin,b.left&&h.push("margin-left: "+
mp(b.left)+";"),b.right&&h.push("margin-right: "+mp(b.right)+";"),b.top&&h.push("margin-top: "+mp(b.top)+";"),b.bottom&&h.push("margin-bottom: "+mp(b.bottom)+";");h=h.length!==0?h.join(" "):void 0;y.style$=h}C=void 0;h={alt:"",preserveHeight:!0,preserveWidth:!0};b=["yt-core-attributed-string__image-element"];if(A.alignment){a:switch(A.alignment){case "ALIGNMENT_BASELINE":u="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":u="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:u="yt-core-attributed-string__image-element--image-alignment-bottom"}b.push(u)}if((C=A.element)==null?0:C.properties)C=[],u=_.M(A.element.properties,f6$),(u==null?0:u.height)&&C.push("height: "+mp(u.height)+";"),(u==null?0:u.width)&&C.push("width: "+mp(u.width)+";"),C=C.length!==0?C.join(" "):void 0,h.style$=C,u=void 0,C=((u=_.M(A.element.properties,$pG))==null?void 0:u.label)||"",h.alt=C;h.className=b.join(" ");b=void 0;Q=u=void 0;C=((Q=A.element)==null?0:Q.type)?(u=_.M(A.element.type,
N2B))==null?void 0:u.image:void 0;U.push(Ke({run:A,textLength:n,tag:"img",image:C,imageConfig:h,imageWrapperConfig:y,startIndex:A.startIndex,length:(b=A.length)!=null?b:0}))}if(D==null?0:D.headerRuns)for(D=_.B(D.headerRuns),l=D.next();!l.done;l=D.next())if(l=l.value,l.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(l.headerMapping)){a:{switch(l.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}U.push(Ke({run:l,textLength:n,tag:"span",config:A?{className:A}:void 0,startIndex:l.startIndex,length:l.length}))}return U};
_.Fk=function(l){return(l==null?void 0:l.content)!==void 0};
Ejo=function(l){return _.Fk(l)?l:_.Zk(l)};
T2l=function(l){return l.image!==void 0&&l.imageConfig!==void 0};
I6o=function(l,D){if(D==null?0:D.userInput)for(l=_.B(l),D=l.next();!D.done;D=l.next())if(D=D.value,D.tag!=="a"&&D.tag!=="li"){var U=void 0;(U=D).config||(U.config={});D.config.dir=D.tag==="ul"?_.Jc().resolve(_.oO):"auto"}};
Hv9=function(l){return function(D){var U=l.run;(U.onTap!==void 0||U.onLongPress!==void 0)&&_.M(U,nj9)&&ojc(D,{loggingDirectives:_.M(U,nj9)})}};
Y89=function(l){return function(D){for(var U in l)(vd[U]||vd[VH["default"]])(D,U,l[U])}};
lM3=function(l,D){Ovg(D);var U={data:null,start:0,end:l.length,parts:[]};D=_.B(D);for(var n=D.next();!n.done;n=D.next())n=n.value,Vb$(U,n.startIndex,n.endIndex,n);iRo(l,U);return U};
Vb$=function(l,D,U,n){for(var y=_.B(l.parts),A=y.next();!A.done;A=y.next()){A=A.value;if(typeof A==="string")throw Error("gh");if(A.start<=D&&U<=A.end){Vb$(A,D,U,n);return}}l.parts.push({data:n,parts:[],start:D,end:U})};
iRo=function(l,D){for(var U=D.parts.length;U>=0;U--){var n=D.parts[U],y=D.parts[U-1],A=U===D.parts.length?D.end:n.start;y=U===0?D.start:y.end;A!==y&&D.parts.splice(U,0,l.slice(y,A));n&&iRo(l,n)}};
Ovg=function(l){l.sort(function(D,U){if(D.startIndex<U.startIndex)return-1;if(U.startIndex<D.startIndex)return 1;D=D.endIndex-D.startIndex;U=U.endIndex-U.startIndex;return D>U?-1:U>D?1:0})};
_.Dm_=function(l){var D=l.thumbnails;if(D){l={sources:[]};D=_.B(D);for(var U=D.next();!U.done;U=D.next()){U=U.value;var n={};n.url=U.url;n.width=U.width;n.height=U.height;l.sources.push(n)}return l}};
UmG=function(l,D,U,n){if(!D)return l.length>=1?l[l.length-1]:null;if(n)for(var y=_.B(l),A=y.next();!A.done;A=y.next()){A=A.value;var C=void 0,h=(C=A.url)==null?void 0:C.indexOf(n);if(h!==void 0&&h>=0)return A}n=_.B(l);for(y=n.next();!y.done;y=n.next())if(y=y.value,y.width&&y.height&&(U&&y.width>=D||!U&&y.height>=D))return y;for(D=l.length-1;D>=0;D--)if(U&&l[D].width||!U&&l[D].height)return l[D];return l[0]};
_.nUc=function(l){var D;return(l=(D=l.sources)==null?void 0:D[0])?l.width/l.height:0};
_.y0$=function(l){if(l.sources){l=_.B(l.sources);for(var D=l.next();!D.done;D=l.next()){D=D.value;var U=void 0;if((U=D.clientResource)==null?0:U.imageName)return D}}};
A0g=function(l){var D;if((D=l.clientResource)!=null&&D.imageColor)return _.tu(l.clientResource.imageColor)};
_.BJC=function(l,D,U,n,y,A,C){if(!D||D.length===0||D[0].clientResource)return null;if(U&&D[0].url)return D[0].url;n===void 0&&(n=!0);if(n){var h;l=WN3*(y||(l==null?void 0:(h=l.getBoundingClientRect())==null?void 0:h.width)||0)}else{var b;l=WN3*(A||(l==null?void 0:(b=l.getBoundingClientRect())==null?void 0:b.height)||0)}D=UmG(D,l,n,C);return(D==null?0:D.url)?D.url:(D==null?0:D.imageData)?D.imageData:null};
Cf9=function(l,D,U){U=U?[U]:[];l.opacity&&U.push("opacity: "+l.opacity+";");D&&l.placeholderColor?(l=_.tu(l.placeholderColor),U.push("background-color: "+l+";")):U.push("background-color: transparent;");return U.join(" ")};
hil=function(l,D,U,n,y){var A=["ytCoreImageHost"];D&&A.push(D);U||A.push("ytCoreImageFillParentHeight");n||A.push("ytCoreImageFillParentWidth");switch(l.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":A.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":A.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":A.push("ytCoreImageContentModeCenter");break;default:A.push("ytCoreImageContentModeScaleToFill")}l.flipForRtlLayout&&A.push("ytCoreImageFlipRtl");
switch(y){case "TOP_START":var C;A.push(((C=document.body)==null?void 0:C.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return A.join(" ")};
bRc=function(l){var D;if(l==null?0:(D=l.clientResource)==null?0:D.imageName){var U;l=(U=l.clientResource)==null?void 0:U.imageName;a:{switch(l){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":U="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":U="yt-logos-ext:yt-logo-updated";break a}U=void 0}return U||Pf9.get(l)||l}};
vU9=function(l){return _.q("mweb_wiz_skip_render")?gUl(l):ul_(l)};
gUl=function(l){return function(D){var U=Ims("wink-root");Af=UZ.lastChild;HAC();RdN(U,_.g(l,D))}};
ul_=function(l){var D=D===void 0?!1:D;return function(U){if(!D||!_.q("mweb_skip_keto_to_c3_if_no_data")||U.data!==void 0){var n=Jf(!1);try{var y=U.children;_.q("mweb_render_outside_patch_killswitch")||UZ?y?uP(_.g(l,U,y)):uP(_.g(l,U)):_.II(new _.rc("ketoToC3 called outside of a patch",{tagName:l.TAG_NAME}))}finally{Jf(n)}}}};
Q39=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
J0_=function(l,D){l.onViewportEntered=D;GR_.observe(l)};
LN_=function(){var l={rootMargin:"10%",threshold:.01};_.q("mweb_enable_set_io_root_to_null_safari")?l.root=null:_.q("mweb_enable_set_io_root_to_body_safari")&&(l.root=document.body);return new IntersectionObserver(function(D,U){D.filter(function(n){return n.intersectionRect.height>0}).forEach(function(n){n=n.target;
if(!_.q("mweb_enable_only_update_image_when_connected")||n.isConnected!==!1){var y;(y=n.onViewportEntered)==null||y.call(n);U.unobserve(n)}})},l)};
qqo=function(l,D,U,n,y){function A(){if(n){var h=n.loadedClass,b=n.notifyOnUnloaded;h&&_.wh(l,h);b&&l.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function C(){var h=U(D,l);h&&l.getAttribute("src")!==h&&(_.q("mweb_enable_only_update_image_when_connected")&&l.isConnected===!1||h===l.src||(l.src=h),A())}
y=y===void 0?!0:y;l.removeAttribute("src");A();D&&(y?J0_(l,C):C())};
MEc=function(l,D,U){if(!D)return!1;D=U(D,l);U=l.getAttribute("src");return D&&D===U&&l.complete};
Ri3=function(l,D){for(var U in D)U==="className"?l.className=D[U]:(vd[U]||vd[VH.default])(l,U,D[U])};
ZRG=function(l,D,U,n){vU9(_.rh)({contentMode:D.contentMode,loadedClass:D.loadedClass,isPreloaded:D.isPreloaded,notifyOnLoaded:D.notifyOnLoaded,notifyOnUnloaded:D.notifyOnUnloaded,preferredThumbnail:D.preferredThumbnail,preserveHeight:D.preserveHeight,preserveWidth:D.preserveWidth,objectPosition:D.objectPosition,targetWidth:D.targetWidth,targetHeight:D.targetHeight,shouldShowPlaceholder:D.shouldShowPlaceholder,useWidth:D.useWidth,isToggled:D.isToggled,alt:D.alt,className:D.className,onerror:D.onerror,
onload:D.onload,style$:D.style$,color:D.color,width:D.width,height:D.height,"aria-hidden$":D["aria-hidden$"],draggable:D.draggable,"data-disabled$":D["data-disabled$"],data:l,callback:U,renderLazy:n===void 0?!0:n,hideOn404:!1})};
mm3=function(l,D,U){U=U===void 0?!1:U;var n=l.sources!==void 0?l:_.Dm_(l);if(n){var y=D.onload;D.onload=function(b){var u=b.target;U&&u.naturalWidth===120||_.zt(u,"ytCoreImageLoaded");D.notifyOnLoaded&&u.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));y==null||y(b)};
D.targetWidth&&D.preserveWidth&&(D.width=D.targetWidth);D.targetHeight&&D.preserveHeight&&(D.height=D.targetHeight);var A=_.y0$(n),C=A&&bRc(A);if(C)return(l=A0g(A))&&(D.color=l),{type:"icon",iconName:C,config:Object.assign({},D,D.alt?{}:{"aria-hidden$":"true"},{"aria-label$":D.alt,role:"img"})};if(l.sources===void 0){D.alt=l.accessibility&&l.accessibility.accessibilityData&&l.accessibility.accessibilityData.label||D.alt;D.style$=Cf9(l,D.shouldShowPlaceholder,D.style$);var h;D.isPreloaded=!((h=_.M(l,
eiC))==null||!h.isPreloaded)}D.contentMode&&!n.contentMode&&(n.contentMode=D.contentMode);D.className=hil(n,D.className,D.preserveHeight,D.preserveWidth,D.objectPosition);D.loadedClass="ytCoreImageLoaded";return{type:"image",image:n,config:D}}};
_.fe=function(){var l=_.EW.apply(0,arguments);return _.gm(aM3,function(D){var U=l.map(function(n){return n==null?void 0:n(D)});
return function(){return void U.forEach(function(n){return void(n==null?void 0:n())})}})};
$t=function(l,D){var U=D==null?void 0:D.initial;return _.dM(function(){_.EP(!0);return U=l(U)},{equals:D==null?void 0:D.isEqual},"rSlKsc")};
tEG=function(l,D){if(l===D)return!0;if(l===void 0||D===void 0)return!1;var U,n,y,A,C,h,b,u;return l.content===D.content&&((U=l.styleRuns)==null?void 0:U.length)===((n=D.styleRuns)==null?void 0:n.length)&&((y=l.commandRuns)==null?void 0:y.length)===((A=D.commandRuns)==null?void 0:A.length)&&((C=l.attachmentRuns)==null?void 0:C.length)===((h=D.attachmentRuns)==null?void 0:h.length)&&((b=l.decorationRuns)==null?void 0:b.length)===((u=D.decorationRuns)==null?void 0:u.length)};
kRB=function(l,D){if(l){var U=Ejo(l);if(U!=null&&U.content)if(_.q("attr_string_reactive_c3"))vU9(XJd)({text:l,config:D});else{var n=!(D==null||!D.ariaLabel)||!(U.commandRuns&&U.commandRuns.length!==0||U.paragraphStyleRuns&&U.paragraphStyleRuns.length!==0);l=n?D==null?void 0:D.ariaLabel:null;n=n?"text":null;DpN("span",{className:dpg(U,D),dir$:(D==null?0:D.userInput)?"auto":void 0,"aria-label$":l,role$:n},function(){if(U.styleRuns||U.commandRuns||U.attachmentRuns||U.decorationRuns||U.paragraphStyleRuns){var y=
scg(U,D);I6o(y,D);y=lM3(U.content,y);y=_.B(y.parts);for(var A=y.next();!A.done;A=y.next())SqK(A.value)}else UEc(U.content)})}}};
SqK=function(l){typeof l==="string"?UEc(l):T2l(l.data)?DpN("span",l.data.imageWrapperConfig,function(){ZRG(l.data.image,l.data.imageConfig)}):DpN(l.data.tag,l.data.config,function(D){Hv9(l.data)(D);
D=_.B(l.parts);for(var U=D.next();!U.done;U=D.next())SqK(U.value)})};
KNC=function(l){return l.parts.map(dm$)};
dm$=function(l){if(typeof l==="string")return l;l=T2l(l.data)?_.g("span",{el:_.fe(Y89(l.data.imageWrapperConfig))},_.g(_.rh,Object.assign({},{data:l.data.image},l.data.imageConfig))):_.g(l.data.tag,{el:_.fe(Hv9(l.data),Y89(l.data.config))},l.parts.map(dm$));return dt(l)};
c0N=function(l,D){return l===D?!0:l===void 0||D===void 0?!1:l.noStyleRuns===D.noStyleRuns&&l.noLinkColor===D.noLinkColor&&l.noEndpoints===D.noEndpoints&&l.headerRuns===D.headerRuns&&l.isOverlay===D.isOverlay&&l.linkInheritColor===D.linkInheritColor&&l.userInput===D.userInput&&l.isHeadline===D.isHeadline};
pJN=function(l){return function(){var D,U,n,y,A,C,h,b,u,Q,G,J,L,R;return{ariaLabel:(D=l.ariaLabel)==null?void 0:D.call(l),className:(U=l.className)==null?void 0:U.call(l),ellipsisTruncate:(n=l.ellipsisTruncate)==null?void 0:n.call(l),isOverlay:(y=l.isOverlay)==null?void 0:y.call(l),linkInheritColor:(A=l.linkInheritColor)==null?void 0:A.call(l),noEndpoints:(C=l.noEndpoints)==null?void 0:C.call(l),noStyleRuns:(h=l.noStyleRuns)==null?void 0:h.call(l),noLinkColor:(b=l.noLinkColor)==null?void 0:b.call(l),
noPreWrap:(u=l.noPreWrap)==null?void 0:u.call(l),noWrap:(Q=l.noWrap)==null?void 0:Q.call(l),skipOnClick:(G=l.skipOnClick)==null?void 0:G.call(l),userInput:(J=l.userInput)==null?void 0:J.call(l),headerRuns:(L=l.headerRuns)==null?void 0:L.call(l),isHeadline:(R=l.isHeadline)==null?void 0:R.call(l)}}};
j3l=function(l,D){l=new xm9(l,D);_.EU(l);throw l;};
FNG=function(l,D,U){var n=Ia9(l);l._numRenders=0;try{var y=_.fX9(function(){return _.g(D,Object.assign({},U))})}catch(C){var A=function(h){h.args||(h.args=[]);
h.args.push("Error in web component wrapper");h.args.push(l.tagName.toLowerCase());return h};
_.Tj(C instanceof Error?A(C):new xm9("Wiz rendering error",l.tagName.toLowerCase()));throw C;}finally{Ia9(n)}return y};
_.Tt=function(l,D,U){function n(Q){var G={};Q=_.B(Q);for(var J=Q.next();!J.done;J=Q.next()){J=J.value;var L=void 0,R=void 0,a=void 0,S=_.h6((a=(R=(L=J).getAttribute)==null?void 0:R.call(L,"slot"))!=null?a:"children");if(L=G[S])L.push(J);else if(S in A||S==="children")G[S]=[J]}Q=_.B(Object.keys(G));S=Q.next();for(J={};!S.done;J={content$jscomp$59:void 0},S=Q.next())S=S.value,S!=="children"&&(J.content$jscomp$59=G[S],G[S]=function(d){return function(){return d.content$jscomp$59}}(J));
return G}
U=U===void 0?{}:U;var y,A=(y=U.props)!=null?y:{};H9_.add(D);var C=oUg();y=function(){var Q=C.apply(this,arguments)||this;Q.rawProps={};Q.queuingRender=!1;Q.dispose=function(){};
Q.isWebComponentWrapper=!0;Q.isReparenting=!1;Q.hasRendered=!1;return Q};
_.Z(y,C);y.prototype.render=function(){this.hasRendered=!0;for(var Q=_.B([].concat(_.zz(this.attributes))),G=Q.next();!G.done;G=Q.next())G=G.value,G.name!=="slot"&&G.name!=="hidden"&&this.removeAttribute(G.name);Q=Object.assign({},this.componentProps,this.slotProps);G=_.B(FNG(this,l,Q));Q=G.next().value;G=G.next().value;!(Q[0]instanceof Element)||Q.length>1?j3l("Wrapped Wiz components must return a single root element.",D):(Q=Q[0].tagName.toLowerCase(),Q!==D&&j3l("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(Q+" !== '"+D),D),this.dispose=G)};
y.prototype.setUpProps=function(){for(var Q=this.rawProps,G=this.attributes,J=_.B(Object.keys(A)),L=J.next();!L.done;L=J.next()){L=L.value;var R=void 0;((R=this)==null?0:R[L])&&this[L]!==wJG&&Q[L]===void 0&&(Q[L]=this[L],(R=Object.getOwnPropertyDescriptor(this.constructor.prototype,L))&&Object.defineProperty(this,L,R))}J=_.B(G);for(L=J.next();!L.done;L=J.next()){R=L.value;L=_.h6(R.name);var a=L==="class"&&!G.getNamedItem("class-name");if(L in A||a)R=R.value===""||R.value==="true"?!0:R.value==="false"?
!1:isNaN(Number(R.value))?R.value:Number(R.value),L!=="class"||Q.className?Q[L]=R:Q.className=R}G={};for(var S in A)A[S]!==_.ND&&A[S]!==r09&&(Q[S]instanceof Function&&j3l("Function props must be configured as STATIC, not SIGNAL.",D),L=_.B(_.aw(Q[S],void 0,"RKERzf")),J=L.next().value,L=L.next().value,G[S]=L,Q[S]=J);Q=_.B([Q,G]);this.componentProps=Q.next().value;this.setters=Q.next().value;this.slotProps=n(this.childNodes)};
y.prototype.connectedCallback=function(){VjC.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in A&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
y.prototype.disconnectedCallback=function(){if(!VjC.has(this)){var Q;a:{if(_.sV)for(Q=this;Q;){if(_.EV.has(Q)){Q=!0;break a}Q=Q.parentElement}Q=!1}if(Q)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){Q=_.B([].concat(_.zz(this.attributes)));for(var G=Q.next();!G.done;G=Q.next()){G=G.value;var J=void 0;G.name==="slot"||G.name==="hidden"&&((J=U.unsafeExternallySettableAttributes)==null?0:J.has("hidden"))||this.removeAttribute(G.name)}}this.innerText="";f49(this)}}};
y.prototype._setPendingPropertyOrPath=function(){};
y.prototype.notifyPath=function(){};
_.QP.Object.defineProperties(y.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var h=_.B(Object.keys(A)),b=h.next(),u={};!b.done;u={prop$jscomp$109:void 0},b=h.next())u.prop$jscomp$109=b.value,b=void 0,((b=U.legacyPolymer)==null?0:b.forwardHostProps)&&owg.has(u.prop$jscomp$109)||Object.defineProperty(y.prototype,u.prop$jscomp$109,{set:function(Q){return function(G){var J=this;VjC.has(this)||(this.setters?Ky(function(){var L,R;return void((R=(L=J.setters)[Q.prop$jscomp$109])==null?void 0:R.call(L,G))}):(this.rawProps[Q.prop$jscomp$109]=G,this.queuingRender&&Q.prop$jscomp$109===
"data"&&G!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(u),
get:zi_.has(u.prop$jscomp$109)?void 0:function(){return wJG}});
customElements.define(D,y)};
_.fM9=function(l,D){return(l=_.IO(l,D))?_.ol(_.Ng(l)):null};
_.H9=function(l){if(l=_.IO(l,Number.MAX_VALUE,void 0,"width"))return _.Ng(l)};
_.IO=function(l,D,U,n){n=n===void 0?"width":n;if(!l||!l.length)return null;if(_.q("kevlar_tuner_should_always_use_device_pixel_ratio")){var y=window.devicePixelRatio;_.q("kevlar_tuner_should_clamp_device_pixel_ratio")?y=Math.min(y,_.RG("kevlar_tuner_clamp_device_pixel_ratio")):_.q("kevlar_tuner_should_use_thumbnail_factor")&&(y=_.RG("kevlar_tuner_thumbnail_factor"));$m9=y}else $m9||($m9=window.devicePixelRatio);y=$m9;_.q("kevlar_tuner_should_always_use_device_pixel_ratio")?D*=y:y>1&&(D*=y);if(_.q("kevlar_tuner_min_thumbnail_quality"))return l[0].url||
null;y=l.length;if(_.q("kevlar_tuner_max_thumbnail_quality"))return l[y-1].url||null;if(U)for(var A=0;A<y;A++)if(l[A].url.indexOf(U)>=0)return l[A].url||null;for(U=0;U<y;U++)if(l[U][n]>=D)return l[U].url||null;for(D=y-1;D>0;D--)if(l[D][n])return l[D].url||null;return l[0].url||null};
EUB=function(){Yt.size?setTimeout(function(){OV(NJd)},0):s3C=0};
NJd=function(){var l=(0,_.J3)(),D=null,U=!1;Yt.forEach(function(y){y.loaded=!0;y.loadTime=l;y.pendingPaint=!1;var A=TJN.get(y);A&&A.resolve(l);D=y;U||!y.ftlEligible&&y.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(U=!0)});
var n;((n=D)==null?0:n.markDirty)&&D.markDirty();Yt.clear();s3C=0;U&&IM9(l)};
HRl=function(l){Yt.add(l);l.pendingPaint=!0;s3C||(s3C=_.Vu(_.Tn,EUB))};
Yqg=function(l){l.loaded=!1;l.loadTime=Infinity;var D=TJN.get(l);D&&(D.reject(Error("mh")),TJN.delete(l));l.pendingPaint&&(Yt.delete(l),l.pendingPaint=!1)};
_.OR3=function(l){var D=l.indexOf(":");return D===-1?{originalName:l}:{originalName:l.substring(0,D),datasyncId:l.substring(D+1)}};
_.iHd=function(){return _.P(function(l){if(VE9!==void 0)return l.return(VE9);VE9=new Promise(function(D){var U;return _.P(function(n){switch(n.nextAddress){case 1:return _.ZY(n,2),n.yield(_.i_.open("test-only"),4);case 4:return n.yield(_.i_.delete("test-only"),5);case 5:_.WG(n,3);break;case 2:if(U=_.kF(n),U instanceof Error&&U.name==="SecurityError")return D(!1),n.return();case 3:D("caches"in window),_.Kz(n)}})});
return l.return(VE9)})};
U_G=function(){return _.P(function(l){if(l.nextAddress==1)return l.yield(_.iHd(),2);if(!l.yieldResult)return l.return(void 0);lwo||(lwo=new D_c);return l.return(lwo)})};
ncg=function(l){var D,U,n,y;return _.P(function(A){switch(A.nextAddress){case 1:return A.yield(U_G(),2);case 2:D=A.yieldResult;if(!D)throw Error("oh");return A.yield(D.open("yt-player-local-img"),3);case 3:return U=A.yieldResult,A.yield(U.match(l),4);case 4:n=A.yieldResult;if(!n)throw Error("ph");return A.yield(n.blob(),5);case 5:return y=A.yieldResult,A.return(y)}})};
y$g=function(l,D){for(var U in l)if(l.hasOwnProperty(U)&&D[U])return U;return null};
A$s=function(l){return"stamp"+l.replace("-","_")+"_"};
Wcl=function(l){var D=l.match(/\[\[([\w\.]+)\]\]/);if(D&&D.length>1)return D[1];_.EU(Error("rh`"+l));return null};
Bas=function(l){return l===void 0?_.il("REUSE_COMPONENTS",!1):l||!1};
PEC=function(l,D,U){U&&(D.is?(CEK.has(D)&&(l=CEK.get(D),U=l.listener,delete D[l.property],U.type==="element"&&D.removeEventListener(U.eventName,U.handler),CEK.delete(D)),hOC(D)):D.__proto__==HTMLElement.prototype&&(D=new _.rc("Rendererstamper removed a non custom element","Stamper: "+l+" element: "+(D&&D.nodeName)),_.II(D)))};
bHd=function(l,D,U,n){var y=D.node?D.node:D;_.iJ(U).parentNode===y&&(D.removeChild(U),PEC(l,U,n));if(l=l_.get(U))l_.delete(U),_.Tn.cancelJob(l);U.hidden=!1};
gcC=function(l,D,U,n){if(D&&D.children&&(U=D.children[U]))if(_.il("DEFERRED_DETACH"))for(;U&&!l_.has(U);){var y=l,A=D,C=U,h=n;C.hidden=!0;y=_.oI(_.Tn,bHd.bind(null,y,A,C,h),0);l_.set(C,y);U=U.nextElementSibling}else for(;(C=D.lastElementChild)&&(D.removeChild(C),PEC(l,C,n),C!=U););};
_.DV=function(){for(var l=_.EW.apply(0,arguments),D=!0,U=_.B(l),n=U.next();!n.done;n=U.next())if(typeof n.value!=="string"){D=!1;break}return D?l.join(" ").trim()||void 0:function(){for(var y="",A=_.B(l),C=A.next();!C.done;C=A.next())if(C=C.value,typeof C==="function"&&(C=C()),C)if(typeof C==="string")y+=" "+C;else for(var h in C)if(C.hasOwnProperty(h)){var b=C[h];typeof b==="function"&&(b=b());b&&(y+=" "+h)}y=y.trim()||void 0;return _.EP(y)}};
_.uBd=function(l,D){return _.yT(l.entities,"markersEngagementPanelSyncEntity",D)};
_.Um=function(l,D){return _.yT(l.entities,"playerStateEntity",D)};
vcB=function(l,D){return _.yT(l.entities,"fantasyWinProbabilityEntity",D)};
QkN=function(l,D){return _.yT(l.entities,"fantasyTeamEntity",D)};
GJs=function(l,D){return _.yT(l.entities,"fantasyPlayerEntity",D)};
J$3=function(l,D){return _.yT(l.entities,"booleanEntity",D)};
LcC=function(l,D){return _.yT(l.entities,"qrCodeEntity",D)};
q6G=function(l){return _.yT(l.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
RO9=function(l){var D;return(D=MBc[l])!=null?D:"EVENT_SPAN_TYPE_UNKNOWN"};
ZHN=function(l){var D=l.nodeName;if(l.id)return D+="#"+l.id;if(l.classList)for(var U=_.B(l.classList),n=U.next();!n.done;n=U.next())D+="."+n.value;l.parentElement&&(D=ZHN(l.parentElement)+" > "+D);return D};
eOl=function(l){return function(D){var U=RO9(D.type);return U==="EVENT_SPAN_TYPE_UNKNOWN"?l(D):tmK("event",{type:U,nodepath:D.target instanceof Element?ZHN(D.target):void 0},function(){return l(D)})}};
_.n0=function(l){l&&Rrd("event")&&(l=eOl(l));return GyC(function(D){var U,n=(U=l)==null?void 0:U(D);return typeof n==="boolean"?n:!0})};
yl=function(l){return function(){return l()?l():void 0}};
X89=function(l){var D=_.bP("animated-rolling-character"),U=c6o(),n=$2(l.character)||$2(l.previousCharacter),y=_.B(pr3()),A=y.next().value,C=y.next().value;_.N1(function(){if(window.ResizeObserver&&_.q("web_fix_rolling_numbers_zoom_safari")){var h=new _.A1(function(){var u,Q,G=Math.round(((Q=(u=D.value.querySelector("div"))==null?void 0:u.getBoundingClientRect().height)!=null?Q:0)*100)/100;G&&C(G)},500),b=new ResizeObserver(function(){h.fire()});
b.observe(D.value);return function(){b.disconnect();h.dispose()}}});
epo(function(){var h=_.q("web_fix_rolling_numbers_zoom_safari")?A:l.marginMultiplier;if(h){var b;(b=U.value)==null||b.cancel();n?(b=l.previousCharacter?Number(l.previousCharacter)+10:l.rollUp?0:30,l.shouldAnimate||(b-=m_d(l,b))):(b=l.rollUp?0:2,l.shouldAnimate||(b-=l.rollUp?-1:1));D.value.style.marginTop="-"+b*h+"px";l.shouldAnimate?U.value=awB(D.value,l,b,n,h):D.value.style.display=l.character?"":"none"}});
return _.g("animated-rolling-character",{el:D,class:"animatedRollingCharacterHost"},vHN(n,function(){for(var h=[],b=1;b<30;b++)h.push(_.g("div",null,b%10));return _.g(_.GZ,null,_.g("div",null,"\u00a0"),h,_.g("div",null,"\u00a0"))},function(){return tBl(l.character)}))};
tBl=function(l){return _.g(_.GZ,null,_.g("div",null,"\u00a0"),_.g(_.GZ,null,vHN(!l||_.hd(l),function(){return _.g("div",null,"\u00a0")},function(){return _.g("div",null,l)})),_.g("div",null,"\u00a0"))};
awB=function(l,D,U,n,y){U=new Animation(new KeyframeEffect(l,[{transform:"translateY(0px)"},{transform:"translateY("+(n?m_d(D,U):D.rollUp?-1:1)*y+"px)"}],S63),document.timeline);D.character?(l.style.display="",U.onfinish=null):U.onfinish=function(){l.style.display="none"};
U.play();return U};
m_d=function(l,D){var U=Number(l.character)+10;if(l.previousCharacter)if(l.character){var n=Number(l.character),y=Number(l.previousCharacter);l=l.rollUp?y<n?U:U+10:y<n?U-10:U}else l=l.rollUp?30:0;else l=l.character==="0"?U:l.rollUp?U-10:U+10;return D-l};
kJs=function(l){return function(D){var U={},n;for(n in D){var y=void 0,A=void 0;((y=void 0)==null?0:(A=y.callbacks)==null?0:A[n])||(U[n]=D[n])}return _.g(zd3,null,function(){for(var C in U)D[C]=_.EP(U[C]);D.disableReactiveLogging=!0;return _.g(l,Object.assign({},D))})}};
c$C=function(l,D,U,n,y,A,C){U=new Animation(new KeyframeEffect(l,[{transform:"translateY(0px)"},{transform:"translateY("+(A?d_K(D,U,n,y):n?-1:1)*C+"px)"}],Kc$),document.timeline);D?(l.style.display="",U.onfinish=null):U.onfinish=function(){l.style.display="none"};
U.play();return U};
d_K=function(l,D,U,n){var y=Number(l)+10;D?l?(l=Number(l),D=Number(D),U=U?D<l?y:y+10:D<l?y-10:y):U=U?30:0:U=l==="0"?y:U?y-10:y+10;return n-U};
x__=function(l){var D=c6o(),U=c6o();XHc(function(){D.value=l.numberText;U.value=l.numberValue},[l.numberText]);
var n=l.fontSizeMultiplier?l.heightPx*l.fontSizeMultiplier:l.heightPx,y=KQ9(function(){if(l.numberText){var C=l.numberText;var h=l.forceRollUp||!U.value||!l.numberValue||U.value<l.numberValue;var b=!!l.shouldAnimate,u=D.value,Q=[],G=0,J=0,L=(u?u.replace(/\D/g,"").length:0)-(C?C.replace(/\D/g,"").length:0);u=u?u.split(/(\d)/).filter(Boolean):[];for(C=C.split(/(\d)/).filter(Boolean);L<0;){var R=C[J];Q.push({character:R,rollUp:h,marginMultiplier:n,shouldAnimate:b});J++;$2(R)&&L++}for(;G<L;)R=u[G],Q.push({previousCharacter:R,
rollUp:h,marginMultiplier:n,shouldAnimate:b}),G++,$2(R)||L++;for(;J<C.length;)L=C[J],R=u[G],$2(L)===$2(R)?(J++,G++):$2(L)?(G++,L=void 0):$2(R)&&(J++,R=void 0),Q.push({character:L,previousCharacter:R,rollUp:h,marginMultiplier:n,shouldAnimate:b});h=Q}else h=[];return h},[l.numberText]),A=l.numberText?["height: "+n+"px;",
"line-height: "+l.heightPx+"px;"].join(" "):"";return _.g("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:A,dir:"ltr","aria-hidden":"true"},y.map(function(C){return _.g(p8c,Object.assign({},C))}))};
jk$=function(l){switch(l){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.FcN=function(l,D){if(!l&&!D)return"medium";l=Math.max(l||0,D||0);return l>=256?"large":l>=96?"medium":"small"};
oc3=function(l){switch(l){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
w8_=function(l){return new KeyframeEffect(l,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
r$G=function(l){return new KeyframeEffect(l,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.WK=function(l){if(l.length===0)return Mn$(l,"E");var D=_.B(Mn$({source:function(){return l()},
computation:function(y,A){return(A==null?0:A.value)?l(A.value):y}},"F")),U=D.next().value,n=D.next().value;
D=D.next().value;return[U,n,D]};
_.BK=function(l){return function(){var D="",U;for(U in l){for(var n=l[U];typeof n==="function";)n=n();n!==void 0&&n!==null&&(D+="; "+U+": "+n)}return D.length>0?_.EP(D.slice(2)):_.EP()}};
zOc=function(l){switch(l){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"}};
fwg=function(l,D){if(D)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(l)switch(l){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
IwG=function(l,D,U,n,y,A,C){var h=$_K(l),b=h.disabled,u=h.iconPosition,Q=h.style,G=h.focused,J=function(){return!!a()&&u()==="icon-only"},L=function(){return!!a()&&u()==="icon-only-40"},R=function(){return!!a()&&u()==="icon-with-label"},a=function(){return!!D||!(n==null||!n())};
return{type:function(){return Q()==="call-to-action-inverse"?"text":Q()==="overlay-dark"&&l().type!=="filled"&&l().type!=="tonal"?"tonal":l().type},
shouldFocus:function(){return(G()||(A==null?void 0:A()))&&!b()},
hasIconLeading:function(){return!!a()&&u()==="leading"},
hasIconTrailing:function(){return!!a()&&u()==="trailing"},
hasIconLeadingTrailing:function(){return!!a()&&!!(U||y!=null&&y())&&u()==="leading-trailing"},
hasIconOnly:J,hasIconOnly40:L,hasIconWithLabel:R,iconButton:function(){return J()||L()||R()},
visiblyDisabled:function(){return(b()?"disabled":l().state)==="disabled"||b()},
overrideSmallSizeIcon:function(){return!l().ignoreIconSizeOverride&&skc(l(),a())},
iconToRender:D?D:function(){return _.g(_.C0,{icon:n,gradientColor:function(){var S;return(S=l().customColors)==null?void 0:S.iconGradientColor},
size:function(){return EcK(l(),!0,l().ignoreIconSizeOverride)},
active:function(){return l().toggled},
iconFilter:function(){return TaG(l())},
animateIcon:C})},
secondaryIconToRender:U?U:function(){return _.g(_.C0,{icon:y,size:function(){return EcK(l(),!0,l().ignoreIconSizeOverride)},
active:function(){return l().toggled},
iconFilter:function(){return TaG(l())}})}}};
$_K=function(l){return{size:function(){return l().size},
style:function(){return l().style},
focused:function(){return l().focused},
disabled:function(){return l().disabled},
onTap:function(D){var U,n;return(n=(U=l()).onTap)==null?void 0:n.call(U,D)},
alignByText:function(){return l().alignByText},
aTagConfig:function(){return l().aTagConfig},
customColors:function(){return l().customColors},
segmentedPosition:function(){return l().segmentedPosition},
toggled:function(){return l().toggled},
toggleable:function(){return l().toggleable},
accessibilityLabel:function(){return l().accessibilityLabel},
onToggle:function(D){var U,n;return(n=(U=l()).onToggle)==null?void 0:n.call(U,D)},
iconPosition:function(){return l().iconPosition},
oneOffCustomTextWrap:function(){return l().oneOffCustomTextWrap},
disableTextEllipsis:function(){return l().disableTextEllipsis},
disableBackdropFilter:function(){return l().disableBackdropFilter},
tooltipText:function(){return l().tooltipText},
tooltipShape:function(){return l().tooltipShape},
ariaHidden:function(){return l().ariaHidden},
tabIndex:function(){return l().tabIndex},
buttonText:function(){return l().buttonText},
formattedButtonText:function(){return l().formattedButtonText},
animatedTextProps:function(){return l().animatedTextProps},
onClickRateLimitMs:function(){return l().onClickRateLimitMs}}};
skc=function(l,D){D=(l.iconPosition==="icon-only"||l.iconPosition==="icon-only-40"||l.iconPosition==="icon-with-label")&&D;return!l.segmentedPosition&&D&&l.size==="S"};
EcK=function(l,D,U){switch(l.size){case "XS":return 16;case "S":return!U&&skc(l,D)?24:16;default:return 24}};
HHN=function(l){switch(l){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"}};
Y69=function(l){switch(l){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"}};
OHc=function(l){switch(l){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"}};
TaG=function(l){if(l.style==="overlay-dark"&&l.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
h1=function(l){return l&&l.endsWith("px")?Number(l.slice(0,-2)):0};
l_o=function(l,D){var U=_.B(_.WK(function(){var y,A;return(A=l())!=null?A:D==null?void 0:(y=D())==null?void 0:y.text})),n=U.next().value;
return[function(y){var A=_.dM(function(){var b;return Object.assign({},{location:"bottom",offset:16,delay:1},D==null?void 0:D(),{text:(b=n())!=null?b:""})},void 0,"IJU38d");
_.$i(function(){var b=A();_.mU(function(){_.Tn.addJob(function(){PK.notify(y,b)},4)})},"WlsgZc");
var C=function(){VBg(y,A())},h=function(){i1d()};
y.addEventListener("mouseenter",C);y.addEventListener("focus",C);y.addEventListener("mouseleave",h);y.addEventListener("blur",h);y.addEventListener("tap",h);_.NV(function(){y.removeEventListener("mouseenter",C);y.removeEventListener("mouseleave",h);y.removeEventListener("focus",C);y.removeEventListener("blur",h);y.removeEventListener("tap",h);i1d()})},
U.next().value]};
Uos=function(l,D){if(!hq){var U;ZA$(function(){return U=wrB(l,D)});
return U}l.parent=Do9();return wrB(l,D)};
Do9=function(){var l=_.bh(hq||void 0,jTB);return _.LW9(l)?void 0:l};
b_=function(l,D){_.Xk(l,Object.assign({},D,{forceClickLogging:!0}))};
nl9=function(l){switch(l){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
Apg=function(l,D){var U=_.te(l==null?void 0:l.onTap),n={};U&&(n.getClickedVisualElement=function(){var y;return ypN(l,U,D==null?void 0:(y=D.value)==null?void 0:y.visualElement)});
n=_.SQ({elementsCommand:l.onTap,forceNewState:!0,additionalCommandArgs:n});return kt(n)?n:void 0};
Wx$=function(l,D,U,n){b_(l,Object.assign({},{form:{element:D,event:U}},n))};
BdC=function(l,D,U,n,y){var A=void 0;return function(C){var h=_.te(U?l==null?void 0:l.onDisabledTap:l==null?void 0:l.onTap);if(h){var b;A=(b=A)!=null?b:D==null?void 0:D.value;if(h)if(_.q("web_button_vm_click_client_ve_killswitch"))Wx$(h,A,C);else{var u;b=ypN(l,h,(u=A)==null?void 0:u.visualElement);if(y){Wx$(h,y,C,{clickedVisualElement:b,form:{element:y}});return}Wx$(h,A,C,{clickedVisualElement:b})}}n&&n(C)}};
ypN=function(l,D,U){D=D==null?void 0:D.clickTrackingParams;var n,y;l=l==null?void 0:(n=l.loggingDirectives)==null?void 0:(y=n.clientVeSpec)==null?void 0:y.uiType;if(U&&l&&!D)return U};
CMG=function(l){switch(l){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"}};
hac=function(l){switch(l){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"}};
PMg=function(l){switch(l){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"}};
b1N=function(l){switch(l){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"}};
_.gf=function(l){return _.dM(function(){OVG()();return laB(l)},{debugName:"d8B62c"},"DEXkhd")};
gl$=function(l,D){return _.yT(l.entities,"engagementToolbarStateEntityPayload",D)};
vll=function(l){(l=_.v9(l))&&_.uqC(l)};
_.uqC=function(l){var D=_.t6();D&&_.oe(D,l)};
QEc=function(l,D,U){_.Vh(l,"yt-open-popup-action",[D,U||l])};
G0g=function(l,D){var U=_.EZ(l,"endpoint"),n=_.EZ(l,"action");return(U=n?n:U)&&D&&(U=D.navigationEndpointPopupMap[U])&&(l=_.UG(U,l),(U=_.EZ(l,"renderer"))&&D.supportedPopups.hasOwnProperty(U))?{openPopupAction:{popupType:D.popupTypeMap[U],popup:l}}:null};
Jp3=function(l,D,U,n){if(n){var y;U=U==null?void 0:(y=U.data)==null?void 0:y.contents;(y=U instanceof Array&&U.length?U[0]:U)&&(U=_.EZ(y,"renderer"))&&n.supportedPopups.hasOwnProperty(U)&&(D.stopPropagation(),QEc(l,{openPopupAction:{popupType:n.popupTypeMap[U],popup:y}}))}};
Mis=function(l,D,U,n){n=n===void 0?!1:n;var y=Lxs(D);if(y){y.href&&dX(y.href);var A=D.button;A=A!==void 0?A===0&&!u_(D):!u_(D);y.data&&A&&qH9(l,y,D,U,n)}};
qH9=function(l,D,U,n,y){y=y===void 0?!1:y;var A=_.RG("pbj_navigate_limit",-1)===0;RaB(D);_.Jc().resolve(_.G8(Dm));var C=D.data;if(Object.keys(C).length!==0)if(!_.q("unplugged_web_disable_actions_for_cec_endpoint")&&_.M(C,_.n3))_.q("endpoint_behavior_command_executor_fix_killswitch")||(U.preventDefault(),U.stopPropagation()),_.DP(l,[C],l);else if(n=G0g(C,n))C.loggingUrls&&C.loggingUrls.forEach(function(b){b.baseUrl&&_.nB(b.baseUrl)}),U.preventDefault(),U.stopPropagation(),QEc(l,n,D);
else{var h=Z1g(0,D.data,U);if(l=D.getForm)l=l(),h.tempData=h.tempData||{},h.tempData=Object.assign({},h.tempData,l);l=_.$f(U);if(n=l.find(function(b){return!!b.visualElement}))h.createScreenConfig=h.createScreenConfig||{},h.createScreenConfig.clickedVisualElement=n.visualElement;
if(!A)if(U.preventDefault(),U.stopPropagation(),_.M(C,_.ea3)&&!y&&_.yu.instance)_.yu.instance.resolveCommand(C,h);else if(_.q("kevlar_command_handler_formatted_string")&&!y&&_.yu.instance&&mo_(C))y=l.find(function(b){return!!b.is})||U.target,U={form:Object.assign({},h,{event:U,
element:y,originatingNode:D})},_.yu.instance.resolveCommand(C,U);else{C=_.$f(U);U=[];for(y=0;y<C.length;y++)(A=C[y].is)&&U.push(A);iqC({parents:U.join(","),text:D.innerText},function(){_.O9(D,"yt-navigate",h)})}}};
a_g=function(l){if(l=Lxs(l))RaB(l),lFg(l.href)};
Lxs=function(l){l=_.$f(l);for(var D,U=0;U<l.length;U++)if(D=l[U],D.tagName==="A"&&D.classList.contains("yt-simple-endpoint")){if(!D.data)break;return D}return null};
u_=function(l){return l.shiftKey||l.altKey||l.metaKey||l.ctrlKey};
tiB=function(l,D){var U={itct:D.clickTrackingParams};_.q("kevlar_client_side_screens")&&(!_.M(D,_.vk)||_.q("kevlar_exclude_endpoint_killswitch"))&&(U.endpoint=JSON.stringify(D));_.q("enable_unknown_lact_fix_on_html5")&&_.Jc().resolve(_.G8(_.vK))&&(U.lact=_.Gj());OKC(U);_.s9(l,U)};
RaB=function(l){l.href&&Object.keys(l.data).length!==0&&tiB(l.href,l.data)};
mo_=function(l){for(var D=_.B(XaB),U=D.next();!U.done;U=D.next())if(l[U.value])return!1;return!0};
SHs=function(){if(Ql)return Ql;if(window.lottie)return Ql=Promise.resolve(window.lottie);var l=_.I2(_.H3("LOTTIE_URL"));return l?Ql=new Promise(function(D,U){var n=document.createElement("script");n.addEventListener("load",function(){D(lottie)});
n.addEventListener("error",function(y){var A="Lottie library failed to load.";y?y.message&&(A+=" Original description: "+y.message,_.HA(y,A)):y=Error(A);_.II(y);U(y)});
n.setAttribute("async","");_.BY(n,l);document.head.appendChild(n)}):Promise.reject(Error("sh"))};
k0g=function(){return Ql?Ql:SHs()};
doN=function(l){if(l)switch(l){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.q("kevlar_use_wil_icons"))return l=(l=q6G(_.EB().getState()))&&l.animationLightUrl&&l.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:l.animationLightUrl,pathDarkTheme:l.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,l?l:G4.get("LIKE");break;case "LIKE_DELHI_PLAYER":return G4.get("LIKE_DELHI_PLAYER")}};
Kx3=function(l){var D=doN(l);if(D)return D;switch(l){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return G4.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return G4.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return G4.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return G4.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return G4.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return G4.get("NOTIFICATION_BELL")}};
cpC=function(l,D){if(!l.closest)return!1;D=!!doN(D);return _.H3("ID_TOKEN")&&D?!!l.closest("segmented-like-dislike-button-view-model")||!!l.closest("yt-player-quick-action-buttons"):!1};
xoB=function(l,D){if(!l||paK)D=!1;else{var U;if(!(U=cpC(l,D)))if(l.closest)if(U=!_.H3("ID_TOKEN"),l=l.closest("ytd-subscription-notification-toggle-button-renderer-next"),U||!l)U=!1;else{var n;U=((n=l.data)==null?void 0:n.targetId)==="notification-bell"&&D!=="EXPAND_MORE"}else U=!1;D=U}return D};
jEC=function(l){var D,U;return _.P(function(n){switch(n.nextAddress){case 1:return _.ZY(n,2),n.yield(fetch(l),4);case 4:return D=n.yieldResult,n.yield(D.json(),5);case 5:return n.return(n.yieldResult);case 2:U=_.kF(n),_.II(U),_.Kz(n)}})};
Fx9=function(l,D){var U,n,y;return _.P(function(A){if(A.nextAddress==1)return(U=D?l.pathDarkTheme:l.path)?A.yield(Promise.all([jEC(U),SHs()]),2):A.return();n=A.yieldResult;y=n[0];J1.set(U,y);_.Kz(A)})};
waB=function(l,D,U,n){function y(C,h){if(D.value===h&&!D.cancelled){for(;l.firstChild;)l.removeChild(l.firstChild);l.classList.add("ytSpecIconShapeHost");C(l,n)}}
var A=_.olc(_.Jc().resolve(_.ne),U);typeof A==="function"?(D.value=null,y(A,null)):(D.value=A,A.then(function(C){y(C,A)}))};
rpC=function(l,D){var U=document.createElement("div"),n=_.fk(U,function(){return _.g(_.v,{cond:l,then:function(y){return _.g(_.L0,{data:y,options:D})}})},"ca");
return[U,n]};
_.qh=function(l,D){if(D){var U={};zad.forEach(function(n){n=f_G(D,n,"--yt-lightsource-");Object.assign(U,n)});
$oC.forEach(function(n){n=f_G(D,n,"--yt-basic-");Object.assign(U,n)});
_.Wg(l,U)}};
f_G=function(l,D,U){var n={};n[U+_.CI(D)]=l&&l[D]?_.tu(l[D]):"";return n};
_.RL=function(l,D,U){Mh[l]||(Mh[l]={});Mh[l][D]=U};
_.ZV=function(l){Mh[l]||(Mh[l]={});return Mh[l]};
NdB=function(l){if(!l)return{};var D=l.foregroundTitleColor,U=l.backgroundColor;l=l.borderColor;var n="text";l?n="outline":U&&(n="filled");return{type:n,customColors:{color:D?_.tu(D):void 0,backgroundColor:U?_.tu(U):void 0,borderColor:l?_.tu(l):void 0}}};
H1_=function(l){var D=l.renderer;var U=l.element;var n=l.commandController;var y=l.onTapCallback;var A=l.skipCommandHandling;var C=l.overrides;var h=l.forceIcon;var b=l.forceModernIconButton;var u=l.forceDisabled;var Q=l.isSubscribe===void 0?!1:l.isSubscribe;var G=l.isPressed===void 0?!1:l.isPressed;var J=l.useButtonSize===void 0?!1:l.useButtonSize;l=sEo(D);Q&&(l.style="mono",l.type="filled");h=!D.icon||!h&&D.text?D.icon?D.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:b?"icon-only":"icon-only-40";h==="icon-only-40"&&(l.type="text");var L;b=Object;Q=b.assign;J=Eld(D,J);G=!!D.isSelected||!_.q("web_propagate_is_pressed_killswitch")&&!!G;var R=D.isSelected!==void 0;u=u===void 0?D.isDisabled:u;var a=D.text?_.Zk(D.text):void 0;var S,d,c,N=((S=D.accessibilityData)==null?void 0:(d=S.accessibilityData)==null?void 0:d.label)||((c=D.accessibility)==null?void 0:c.label);S=N?N:_.Nl(D.text);U=Tdg(D,U,n,y,A);n=I_c(D);n!=null&&n.length?(n=_.SQ({innertubeCommand:Lyd(n),
forceNewState:!0}),n=kt(n)?n:void 0):n=void 0;return Q.call(b,{},l,J,{iconPosition:h},C,{focused:!1,toggled:G,toggleable:R,disabled:u,formattedButtonText:a,accessibilityLabel:S,onTap:U,aTagConfig:n},NdB((L=D.colorData)==null?void 0:L.basicColorPaletteData),{oneOffCustomTextWrap:D.oneOffCustomTextWrap})};
Tdg=function(l,D,U,n,y){return function(A){var C=I_c(l);n(C,A);if(!y){C=_.B(C);for(var h=C.next();!h.done;h=C.next())b_(h.value,{form:{element:D,event:A},commandController:U})}}};
I_c=function(l){var D=[];l.command&&D.push(l.command);l.serviceEndpoint&&D.push(l.serviceEndpoint);l.navigationEndpoint&&D.push(l.navigationEndpoint);return D};
Eld=function(l,D){if(D)switch(l.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(l.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
sEo=function(l){switch(l.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
YHs=function(l,D){return typeof l!=="object"||l===null?!1:Object.keys(D).every(function(U){return U in l})};
eZ=function(l){return Object.fromEntries(Object.keys(l).map(function(D){return[D,D]}))};
O1d=function(l,D,U){return iiG(U,function(n,y){return function(A){var C=_.EW.apply(1,arguments);return YHs(A,l)?y.apply(null,[A[D]].concat(_.zz(C))):y.apply(null,[A].concat(_.zz(C)))}})};
m8=function(l){return function(D,U){return O1d(l,D,U)}};
ViN=function(l,D){var U;return(U=_.yT(l,"playlistLoopStateEntity",D))!=null?U:void 0};
ioK=function(l,D){var U;return(U=_.yT(l,"toggleMenuServiceItemEntity",D))!=null?U:void 0};
_.aL=function(l){return l!=null&&l.watch?l.watch.isTheaterMode:!1};
_.t1=function(l){return l!=null&&l.watch?l.watch.isWatchFullscreen:!1};
_.XE=function(l){if(_.lH$(l))return!0;l=_.DX9(l);return _.q("web_watch_enable_single_column_grid_view")?l:!1};
_.lH$=function(l){return l!=null&&l.watch?l.watch.isSwatcherooActive:!1};
_.DX9=function(l){return l.watch.isWatchNarrowWidth};
_.UXo=function(l){return l.watch.openEngagementPanels};
SZ=function(l,D){return _.yT(l.entities,"likeStatusEntity",D)};
nVl=function(l,D){return _.yT(l.entities,"likeCountEntity",D)};
_.yld=function(l,D){return _.yT(l.entities,"stringEntity",D)};
Alo=function(l,D){return _.yT(l.entities,"dataFreshnessEntity",D)};
WIK=function(l,D){if(!l)return!1;var U,n=(U=_.M(l,_.AJ))==null?void 0:U.signal;if(n&&D.signalEndpointMap)return!!D.signalEndpointMap[n];var y;if((U=(y=_.M(l,_.ko))==null?void 0:y.request)&&D.continuationEndpointMap)return!!D.continuationEndpointMap[U];for(var A in l)if(D.commandEndpointMap[A])return!0;return!1};
Bw_=function(l,D){if(D.streamingEndpointMap)for(var U in l)if(D.streamingEndpointMap[U]&&(l=D.streamingEndpointMap[U]))return l()};
CYd=function(l,D){var U,n=(U=_.M(l,_.AJ))==null?void 0:U.signal;if(n&&D.signalEndpointMap&&(U=D.signalEndpointMap[n]))return U();var y;if((U=(y=_.M(l,_.ko))==null?void 0:y.request)&&D.continuationEndpointMap&&(y=D.continuationEndpointMap[U]))return y();for(var A in l)if(D.commandEndpointMap[A]&&(l=D.commandEndpointMap[A]))return l()};
h4g=function(l){var D={"Content-Type":"application/json"};_.H3("EOM_VISITOR_DATA")?D["X-Goog-EOM-Visitor-Id"]=_.H3("EOM_VISITOR_DATA"):_.H3("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=_.H3("VISITOR_DATA"));D["X-Youtube-Bootstrap-Logged-In"]=_.H3("LOGGED_IN",!1);_.H3("DEBUG_SETTINGS_METADATA")&&(D["X-Debug-Settings-Metadata"]=_.H3("DEBUG_SETTINGS_METADATA"));if(l!=="cors"){var U=_.H3("INNERTUBE_CONTEXT_CLIENT_NAME");U&&(D["X-Youtube-Client-Name"]=U);(U=_.H3("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(D["X-Youtube-Client-Version"]=
U);(U=_.H3("CHROME_CONNECTED_HEADER"))&&(D["X-Youtube-Chrome-Connected"]=U);(U=_.H3("DOMAIN_ADMIN_STATE"))&&(D["X-Youtube-Domain-Admin-State"]=U)}_.il("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(l=_.H3("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(D["X-YouTube-Lava-Device-Context"]=l):l!=="cors"&&_.il("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(l=_.H3("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(D["X-YouTube-Lava-Device-Context"]=l);return D};
PY3=function(l,D){D.watchNextResponse||D.reelItemWatchResponse?D.watchNextResponse?l.content=D.watchNextResponse:l.content=D.reelItemWatchResponse:D.playerResponse?l.player=D.playerResponse:D.reelWatchSequenceResponse&&(l.reelSequence=D.reelWatchSequenceResponse)};
df=function(l){return function(){return new l}};
K0=function(l){var D=_.Jc();return function(){return D.resolve(l)}};
_.cK=function(l){if(!l)return null;for(var D=[],U=0;U<l.textSegments.length;U++){var n=l.textSegments[U];n.text?D.push(n):n.emojiId&&D.push({emoji_id:n.emojiId})}return{text_segments:D}};
QsB=function(l,D,U,n,y,A,C){A=A===void 0?[]:A;var h=new _.p0;h.endpoint=U;if(!U)return _.Tj(new _.rc("handle undefined endpoint",D.tagName)),h;var b=CIo(U);b.length&&(_.DP(l,b,D,n),h.actions=b);U.loggingUrls&&U.loggingUrls.forEach(function(Q){Q.baseUrl&&yX(Q.baseUrl,Q.attributionSrcMode)});
b=!_.q("web_skip_impression_click_killswitch")&&n&&n.impression;if(U.clickTrackingParams&&!bo$(U)&&!gV$(D)&&!b&&(b=_.he(),!_.xo(b,D))){var u=D.getScreenLayer&&D.getScreenLayer();u?b.clickCommand(U,null,u):b.clickCommand(U,null)}b=!1;for(u=0;u<A.length;u++)if((0,A[u])(D,U,n)){b=!0;break}!b&&u1l(U)&&(h.ajaxPromise=vV9(l,D,U,n,y,C));return h};
gV$=function(l){var D;return(l=(D=l.data)==null?void 0:D.navigationEndpoint)&&!!l.clickTrackingParams};
bo$=function(l){var D=_.M(l,_.AJ);if(D&&(D=D.signal)&&GU9.indexOf(D)>=0)return!0;for(var U in l)if(Jl_.indexOf(U)>=0)return!0;return!1};
u1l=function(l){var D;if(((D=_.M(l,_.AJ))==null?void 0:D.signal)==="CLIENT_SIGNAL")return!1;for(var U in l)if(LI_.indexOf(U)>=0)return!1;l=Object.keys(l);return l.length===1&&l[0]==="loggingUrls"?!1:!0};
XX$=function(l,D,U,n,y,A,C){var h=_.jZ.instance;if(h&&_.FE(h,n))var b=_.oL(h,n,y).then(function(Q){return(Q==null?0:Q.data)?Q:{data:Q}});
else b=l.requestDataForServiceEndpoint(n,y),_.M(n,qOs)||_.M(n,MXB)||_.M(n,_.R4s)||_.M(n,Zo$)||_.II(new _.rc("No RequestBuilder for endpoint",n));var u=_.wf();u.promise.thenCatch(function(){var Q=_.EZ(n,"action")||_.EZ(n,"command")||_.EZ(n,"endpoint");Q&&(Q=n[Q],Q.hasOwnProperty("onFailureAction")?_.DP(D,[Q.onFailureAction],U):Q.hasOwnProperty("onFailureCommand")&&_.DP(D,Q.onFailureCommand,U));b.cancel("Resolver promise rejected")});
b.then(function(Q){if(Q){var G=Q.error;if(G){if(A&&A.onServerError)A.onServerError(n,Q);u.reject(new _.rc("Response error",n,G))}else if(Q=Q.data)if(G=Q.error){if(A&&A.onServerError)A.onServerError(n,Q);u.reject(new _.rc("Returned error",n,G))}else{e4c(D,U,Q,n);mXN(Q);if(G=BNN(Q))for(var J=_.B(G),L=J.next();!L.done;L=J.next()){L=L.value;var R=_.Jc().resolve(_.G8(aH3))||tX3;if(!_.jZ.instance||!R.some(function(S){return!!_.M(n,S)})||_.q("kevlar_response_processor_allowlist_killswitch")){var a=R=void 0;
((a=_.M((R=L)==null?void 0:R.commandMetadata,_.W6))==null?0:a.sendPost)?_.lu(D,[L]):_.DP(D,[L],U)}}(J=_.M(Q==null?void 0:Q.frameworkUpdates,rf))&&C&&C(J);if(A&&A.onSuccess)A.onSuccess(n,Q);u.resolve(new _.z4(Q,G))}}else u.reject(new _.rc("Invalid service endpoint provided",n))},function(Q){u.reject(Q)});
return u.promise};
mXN=function(l){var D;(l=(D=_.M(l==null?void 0:l.onResponseReceivedCommand,_.SO9))==null?void 0:D.continuationItems)&&(l==null?void 0:l.length)===1&&_.M(l[0],kUd)&&_.ae("so_r",void 0,"search_overview_answer")};
vV9=function(l,D,U,n,y,A){var C;return(C=D.getNetworkManager&&D.getNetworkManager()?D.getNetworkManager():_.Jc().resolve(_.G8(_.GI)))?XX$(C,l,D,U,n,y,A):_.Le("No network manager.")};
e4c=function(l,D,U,n){if(U=U.trackingParams||U.loggingDirectives&&U.loggingDirectives.trackingParams){var y;(_.M(n,_.f0)||_.M(n,dXK)||_.M(n,KI9))&&n.clickTrackingParams?y=_.v9(n.clickTrackingParams):_.q("web_graft_to_parent_command")&&n.clickTrackingParams&&(y=_.v9(n.clickTrackingParams));var A;n=(A=D.getScreenLayer)==null?void 0:A.call(D);D=_.he().graftServerVe(U,y,n);_.iu(l,"yt-store-grafted-ve-action",[D])}};
_.clg=function(l){var D=new Image;return new _.X0(function(U,n){D.addEventListener("load",function(){U()});
D.addEventListener("error",function(){n()});
D.src=l})};
pXl=function(l){return!!l};
xX_=function(l){return!!l};
jso=function(l,D,U){var n=l.rowIndex;n!==void 0&&_.iu(l.hostElement,"yt-section-reactive-dismissal",[n,D,U])};
_.$o=function(l,D,U){l=_.B(l);for(var n=l.next();!n.done;n=l.next()){n=n.value;if(n===D)break;for(var y=_.B(U),A=y.next();!A.done;A=y.next())if(A=A.value,n.tagName===A||!_.q("web_event_button_role_check_killswitch")&&n.role==="button"&&A==="BUTTON")return!0}return!1};
_.Nh=function(l,D,U){l=_.B(l);for(var n=l.next();!n.done;n=l.next()){n=n.value;if(n===D)break;for(var y=_.B(U),A=y.next();!A.done;A=y.next())if(n.id===A.value)return!0}return!1};
_.T4=function(){var l=_.Jc().resolve(_.G8(_.sm));return l?(l=l.getCurrentPage())?_.Em(l):null:null};
_.IL=function(){var l=_.T4();if(!l){var D=_.Jc().resolve(_.G8(_.sm)),U=D?typeof D:"no page manager";D=D?D.getCurrentPage():null;U=new _.rc("Player is missing when requested.",U,D?D.tagName:"no page");_.EU(U)}return l};
_.Em=function(l){return l&&l.getPlayer?l.getPlayer():null};
FI9=function(l,D){l={args:{raw_player_response:l}};D&&(l.args=Object.assign({},l.args,D));return l};
oV9=function(l){if(l.args){if(l.args.raw_player_response)return l.args.raw_player_response;if(l.args.player_response)return JSON.parse(l.args.player_response)}};
_.wXK=function(l,D){var U={url:"/watch?v="+l.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};l.playlistId&&(U.url+="&list="+l.playlistId);l.playerParams&&(U.url+="&pp="+l.playerParams);l={watchEndpoint:l,commandMetadata:{webCommandMetadata:U}};D&&(l.clickTrackingParams=D);return l};
z4c=function(){return rl9||!!_.UG("yt.player.Application")};
$X9=function(){return fHN||!!document.querySelector("link#player-css")};
ss_=function(){function l(){rl9=!0;Nwg.resolve()}
var D,U;return _.P(function(n){Nwg||(Nwg=new _.Au,z4c()?l():(D=document.createElement("script"),D.addEventListener("load",l),U=_.ws(_.H3("PLAYER_JS_URL")),_.BY(D,U),document.head.appendChild(D)));return n.return(Nwg.promise)})};
Tws=function(){function l(){fHN=!0;EVN.resolve()}
if(!EVN)if(EVN=new _.Au,$X9())l();else{var D=document.createElement("link");D.id="player-css";D.addEventListener("load",l);var U=_.ws(_.H3("PLAYER_CSS_URL"));_.PY(D,U,"stylesheet");document.head.appendChild(D)}return EVN.promise};
IHd=function(){return z4c()&&$X9()?Promise.resolve([]):Promise.all([ss_(),Tws()])};
HoB=function(l,D,U){var n={args:{}};l&&(n.args.raw_player_response=l);D&&(n.args.raw_watch_next_response=D);U&&(n.args=Object.assign({},n.args,U));return n};
iJ_=function(l,D,U){var n=!1;n=n===void 0?!0:n;l=typeof l==="string"?_.HK(document,l):l;var y=YOG+"_"+_.Ho(l),A=Oo_[y];if(A&&n)return VX9(D,U)?A.api.loadVideoByPlayerVars(D.args||null):A.loadNewVideoConfig(D),A.api;A=new Yo(l,y,D,U,void 0);Oo_[y]=A;A.addOnDisposeCallback(function(){delete Oo_[A.getId()]});
return A.api};
VX9=function(l,D){return D&&D.serializedExperimentFlags?D.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):l&&l.args&&l.args.fflags?l.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
lC3=function(){var l=new _.Au;l.resolved=!1;var D=l.resolve;l.resolve=function(U){l.resolved=!0;D(U)};
return l};
U7B=function(l){var D={};D7s().install((D.document_disposed={callback:l},D))};
Om=function(l,D){if(!l&&Math.random()<=_.RG("kevlar_unified_player_logging_threshold")){l=Error("uh`"+(D?D:"Unspecified error"));if(_.q("kevlar_unified_player_throw_errors"))throw l;_.II(l)}};
_.nr_=function(){var l=_.UG("ytDebugData.callbacks");l||(l={},_.vG("ytDebugData.callbacks",l));return l};
Ahg=function(l,D){var U=_.nr_();if(_.q("web_dd_iu")||yhd.includes(l))U[l]=D};
WVl=function(){return _.P(function(l){return l.return({isLeader:_.s4C(_.EB().getState()),c:_.H3("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.H3("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
B19=function(){var l;_.P(function(D){if(D.nextAddress==1)return Ahg("APP_STATE",WVl),D.yield(_.Jc().resolve(_.Vl),2);l=D.yieldResult;Ahg("PI",function(){return _.P(function(U){return U.return(l.getVideoStats())})});
_.Kz(D)})};
Cs_=function(l){return!!l&&l.length>0&&l[0].loggingUrls!=null&&l[0].loggingUrls.length>0};
hwc=function(){var l=_.H3("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(l==null?void 0:l.length)===2?l[1]:null};
PsK=function(l){if(!l)return[];var D=[];l=_.B(l);for(var U=l.next();!U.done;U=l.next())if(U=U.value,U.loggingUrls){U=_.B(U.loggingUrls);for(var n=U.next();!n.done;n=U.next())n=n.value,n.baseUrl&&D.push(n.baseUrl)}return D};
bJg=function(l){var D=_.NA(_.jG(_.nC.location.href));l=_.NA(_.jG(l));return _.q("kevlar_clear_non_displayable_url_params")?D==iI(l):iI(D)==iI(l)};
iI=function(l){var D=_.gr_(l);l=l.slice(0);var U=["frags"];_.q("kevlar_hide_pp_url_param")&&U.push("pp");_.q("kevlar_hide_time_continue_url_param")&&U.push("time_continue");U=_.B(U);for(var n=U.next();!n.done;n=U.next())n=n.value,l=_.E9(_.NA(l),n);return _.NA(l)+(D?"#"+D:"")};
lI=function(l,D){D=Number(D)*1E3;var U=Math.round((0,_.J3)()),n=U.toString();l={innertubeResponse:l,serverDateTimestampMs:n,lastModifiedTimestampMs:n,expireTimestampMs:(U+D).toString()};if(D=_.H3("INNERTUBE_CONTEXT_CLIENT_NAME"))l.clientName=D;return l};
vrB=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++ujG};
Qhc=function(l){return!isNaN(l)&&l>0};
Jhl=function(){_.q("web_adaptive_repeat_ase")&&G1B&&_.Na("applicationStarted",G1B)};
_.LV$=function(){var l=_.aS(),D=_.t6();D&&l&&_.rj(D,[l],!0)};
MxB=function(l){return l&&qes.some(function(D){return l.includes(D)})};
txg=function(l){var D=_.M(l,_.yE);if(!D)return!1;var U=D.url,n=D.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!U)return _.EU(Error("zh")),!1;if(D.target==="TARGET_NEW_WINDOW"){D={};_.q("resolve_url_parent_tracking_params")&&(!_.bl(U)||ul(window.location.href,U))&&(D={endpoint:l,itct:l.clickTrackingParams});OKC(D);l=null;try{if(n){a:{var y=U,A=D;n=n===void 0?!1:n;A&&_.s9(y,A);var C=_.Ng(y),h=_.ol(C);y!=h&&_.nt(Error("Yf`"+y));y=h;try{if(n){h=y;h=NP9(h);dX(h);l=_.DY(window,h,"_blank",
"attributionsrc");break a}}catch(J){_.ll(J)}dX(y);l=_.DY(window,C,"_blank")}Rws(_.Jc().resolve(ZJs),l,U);return!0}}catch(J){_.EU(J)}_.s9(U,D);D={target:"_blank",noopener:!1};C=window;h=FO(U)?U:_.Ng(typeof U.href!="undefined"?U.href:String(U));n=self.crossOriginIsolated!==void 0;l="strict-origin-when-cross-origin";window.Request&&(l=(new Request("/")).referrerPolicy);y=D.noreferrer;if(n&&y&&l==="unsafe-url")throw Error("ve");l=y&&!n;y=D.target||U.target;A=[];var b=[],u=!1;for(G in D){var Q=D[G];switch(G){case "width":case "height":case "top":case "left":A.push(G+
"="+Q);break;case "target":break;case "noopener":case "noreferrer":Q?b.push(G):(u=!0,b.push(G+"=false"));break;case "attributionsrc":A.push(G+(Q?"="+Q:""));break;default:A.push(G+"="+(Q?1:0))}}var G=y!==void 0&&!["_blank","_self","_top","_parent",""].includes(y);G=a_()&&G;ewC&&n&&A.length===0&&b.length>0&&!G&&!u?(b.length===2&&(b=["noreferrer"]),_.DY(C,h,y,b[0]),l=m7_()):(G=A.join(","),_.dl()&&C.navigator&&C.navigator.standalone&&y&&y!="_self"?(G=_.SU("A"),Il(G,h),G.target=y,l&&(G.rel="noreferrer"),
((D=D.attributionsrc)||D==="")&&G.setAttribute("attributionsrc",D),D=document.createEvent("MouseEvent"),D.initMouseEvent("click",!0,!0,C,1),G.dispatchEvent(D),G=m7_()):l?(G=_.DY(C,"",y,G),C=_.ol(h),G&&(G.opener=null,C===""&&(C="javascript:''"),C='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+DX(C)+'">',C=YC(C),(D=G.document)&&D.write&&(D.write(V1(C)),D.close()))):((G=_.DY(C,h,y,G))&&D.noopener&&(G.opener=null),G&&D.noreferrer&&(G.opener=null)),l=G);Rws(_.Jc().resolve(ZJs),
l,U);return!0}G=_.kZ(U);G=MxB(G)||U==="https://studio.youtube.com/";if(_.bl(U)&&!ul(window.location.href,U)||G)dX(U),Re(),_.KU(U,void 0,void 0,window.top,aCg);else return _.II(new _.rc("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",l)),!1;return!0};
_.k1d=function(l,D){D=D===void 0?0:D;if(!(_.M(l,XV9)||_.M(l,Se9)||_.M(l,_.yE)&&_.M(l,_.yE).url))return!1;var U,n=(U=_.M(l,_.yE))==null?void 0:U.url;U=n?{externalLinkData:{url:n}}:null;return _.he().clickCommand(l,U,D)};
KVg=function(l,D,U,n,y){y=y===void 0?{}:y;return function(A){var C,h;var b=((C=l.loggingDirectives)==null?0:(h=C.clientVeSpec)==null?0:h.uiType)?_.UE(l.loggingDirectives.clientVeSpec.uiType):void 0;y.clickedVisualElement||(y.clickedVisualElement=b);b=d7G(l,D);U(b,A);b=_.B(b);for(C=b.next();!C.done;C=b.next()){C=C.value;h=n;var u=A,Q=y;Q.form?Q.form.event=u:Q.form={element:h,event:u};b_(C,Q)}}};
d7G=function(l,D){var U=[];D?(l.toggledCommand&&U.push(l.toggledCommand),l.toggledServiceEndpoint&&U.push(l.toggledServiceEndpoint)):(l.defaultCommand&&U.push(l.defaultCommand),l.defaultServiceEndpoint&&U.push(l.defaultServiceEndpoint),l.defaultNavigationEndpoint&&U.push(l.defaultNavigationEndpoint));return U};
chd=function(l,D){var U=l.toggledStyle||l.style,n;switch((n=D?U:l.style)==null?void 0:n.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"}}};
_.nq=function(){return _.P(function(l){return l.nextAddress==1?l.yield(_.Jc().resolve(_.Vl),2):l.return(_.Jc().resolve(pVK)())})};
_.Ai=function(){return _.Jc().resolve(pVK)()};
_.Wr=function(){return sZ(function(){return{lottieEl:void 0}})};
x7C=function(l,D){return l.startsWith(D.uniqueId)};
jhK=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return n.yield(_.nq(),2);D=n.yieldResult;if((U=D)==null||!U.addEventListener)return Br(),n.return();D.addEventListener("onCueRangeEnter",l);_.Kz(n)})};
FV3=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return n.yield(_.nq(),2);D=n.yieldResult;if((U=D)==null||!U.removeEventListener)return Br(),n.return();D.removeEventListener("onCueRangeEnter",l);_.Kz(n)})};
orl=function(l){var D,U,n,y,A;_.P(function(C){if(C.nextAddress==1)return C.yield(_.nq(),2);D=C.yieldResult;if((U=D)==null||!U.addCueRange)return Br(),C.return();n=_.B(l.timings);for(y=n.next();!y.done;y=n.next())A=y.value,D.addCueRange(l.uniqueId+"-"+A,A/1E3,(A+100)/1E3);_.Kz(C)})};
wVo=function(l){var D,U,n,y,A;_.P(function(C){if(C.nextAddress==1)return C.yield(_.nq(),2);D=C.yieldResult;if((U=D)==null||!U.removeCueRange)return Br(),C.return();n=_.B(l.timings);for(y=n.next();!y.done;y=n.next())A=y.value,D.removeCueRange(l.uniqueId+"-"+A);_.Kz(C)})};
rhK=function(){var l,D,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(_.nq(),2);l=n.yieldResult;if((D=l)==null||!D.getPlayerState)return Br(),n.return();U=l.getPlayerState();return n.return(U===2)})};
Br=function(){_.II(new _.rc("Smartimation player does not exist or is corrupted"))};
zwK=function(){try{var l;return(l=window.CSS)!=null&&l.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(D){return _.II(new _.rc("Smartimation CSS.supports threw an error")),!1}};
IC$=function(l,D,U,n,y){var A=l.playlistId?fCc:$7s;D=D();U=U();y=!!l.videoId&&y()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.uQ(D))return N1N({data:l,actionType:A,disabled:y},U);if(l.videoId&&n())return sho({data:l,actionType:A,disabled:y});switch(D){case "TRANSFER_STATE_UNKNOWN":return sho({data:l,actionType:A,disabled:y});case "TRANSFER_STATE_FAILED":return l.videoId?Erd({data:l,actionType:A,disabled:y}):T1o({data:l,actionType:A,disabled:y});case "TRANSFER_STATE_COMPLETE":return T1o({data:l,
actionType:A,disabled:y});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return N1N({data:l,actionType:A,disabled:y},U);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return l.videoId?Erd({data:l,actionType:A,disabled:y}):sho({data:l,actionType:A,disabled:y});default:return sho({data:l,actionType:A,disabled:y})}};
HJo=function(l,D){var U=l.onTapCommand,n=_.te(U);if(l.videoId&&_.M(n,_.Cq))return _.M(n,_.Cq).action=D,U;l.playlistId&&_.M(n,_.hi)&&(_.M(n,_.hi).action=D);return U};
sho=function(l){var D=l.data;var U=l.actionType;l=l.disabled;return{text:Yed,iconType:"OFFLINE_DOWNLOAD",onTap:HJo(D,U.ACTION_ADD),disabled:l}};
N1N=function(l,D){var U=l.data;var n=l.actionType;l=l.disabled;var y="OFFLINE_DOWNLOAD";D>=0&&D<=.1?y="OFFLINE_DOWNLOADING_ZERO":D>.1&&D<=.3?y="OFFLINE_DOWNLOADING_TWENTY":D>.3&&D<=.5?y="OFFLINE_DOWNLOADING_FORTY":D>.5&&D<=.7?y="OFFLINE_DOWNLOADING_SIXTY":D>.7&&D<1?y="OFFLINE_DOWNLOADING_EIGHTY":D===1&&(y="OFFLINE_PIN");return{text:OJ9,iconType:y,onTap:HJo(U,n.ACTION_REMOVE_WITH_PROMPT),disabled:l}};
T1o=function(l){var D=l.data;var U=l.actionType;l=l.disabled;return{text:VxN,iconType:"OFFLINE_PIN",onTap:HJo(D,U.ACTION_REMOVE_WITH_PROMPT),disabled:l}};
Erd=function(l){var D=l.data;var U=l.actionType;l=l.disabled;return{text:iZG,iconType:"OFFLINE_DOWNLOAD",onTap:HJo(D,U.ACTION_RETRY),disabled:l}};
_.Pr=function(l,D){var U=OVG();return _.dM(function(){U();return laB(l,[_.EP(D)||""])},{debugName:"LUZslf"},"Z105t")};
lbB=function(l){var D=_.Pr(_.du,function(){return l().videoId}),U=_.Pr(_.K7,function(){return l().playlistId});
return function(){return l().videoId?D:l().playlistId?U:_.B(_.aw("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
D6G=function(l){var D=_.Pr(cc,function(){return l().videoId}),U=_.Pr(_.N9_,function(){return l().playlistId});
return function(){return l().videoId?D:l().playlistId?U:_.B(_.aw(0,void 0,"K4tgOc")).next().value}};
U6_=function(l){var D=_.Pr(_.iF3,function(){return l().videoId});
return function(){return l().videoId?D:_.B(_.aw(!1,void 0,"Oaxwcf")).next().value}};
n39=function(l){var D=_.Pr(T9c,function(){return l().videoId});
return function(){return l().videoId?D:_.B(_.aw("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
yFo=function(){return{}};
_.hJC=function(l,D,U){return{submitForm:function(){var n,y,A,C;return _.P(function(h){if(h.nextAddress==1){n=AFo(l());if(!n)return h.return();if(n.onSubmit)return Wac(D),n.onSubmit(),Wac(U),h.return();if(!n.submitConfig||!n.formData)return h.jumpTo(0);n.disableDuringSubmission&&B43(l(),!0);Wac(D);return h.yield(C7K(n.submitConfig,n.formData()),3)}y=h.yieldResult;Wac(U);if(((A=y)==null?0:A.submitResult)&&((C=n)==null?0:C.onSubmitResult))n.onSubmitResult(y.submitResult);n.disableDuringSubmission&&B43(l(),
!1);return h.return()})},
isValid:function(){var n=AFo(l());if(n){var y;return!((y=n.isValid)==null||!y.call(n))}return!0},
isSubmitting:function(){var n,y;return!!((n=AFo(l()))==null?0:(y=n.isSubmitting)==null?0:y.call(n))}}};
_.bI=function(){if(!P7c){var l=_.B(_.aw(new Map,void 0,"Y1XnBc"));P7c=l.next().value;bZc=l.next().value}return P7c};
_.g33=function(l){bZc(new Map(l))};
AFo=function(l){if(l)return _.bI()().get(l)};
C7K=function(l,D){var U;return _.P(function(n){return n.nextAddress==1?D?(U=_.Jc().resolve(_.G8(ugK)))&&l.submitId?n.yield(U.submitForm(l.submitId,D,v3d,l.params,l.clickTrackingParams),2):n.return(Promise.reject(Error("Bh"))):n.return(Promise.reject(Error("Ah"))):n.return(n.yieldResult)})};
B43=function(l,D){if(l){var U=_.bI();U().set(l,Object.assign({},U().get(l),{isSubmitting:function(){return D}}));
_.g33(U())}};
Wac=function(l){if(l){var D=_.Jc().resolve(_.qK);D&&(l=_.te(l()))&&D.resolveCommand(l)}};
JFo=function(l,D){D=D===void 0?{shouldPersist:!0}:D;return{useUpdatableData:function(U,n){var y=_.dM(function(){return l(U())},void 0,"Gmrblb"),A=QCs(U,y,n,D);
_.$i(function(){if(y()!=null){Gf3.set(y(),A);var C=y();_.NV(function(){Gf3.delete(C)})}},"j4hx9b");
return A},
getData:function(U){var n;return(n=Gf3.get(l(U)))==null?void 0:n[0]()},
updateData:function(U,n){U=l(U);U=Gf3.get(U);if(!U)return!1;var y=_.B(U);U=y.next().value;y=y.next().value;n=n(U());y(n);return!0}}};
QCs=function(l,D,U,n){n=n===void 0?{}:n;var y=_.B(_.WK(function(){var h=l(),b=D();return LaG(h,b,U,n)})),A=y.next().value,C=y.next().value;
return[A,function(h){C(h);var b=D();if(n.shouldPersist&&b!=null){var u,Q=(u=U==null?void 0:U.map(function(G){return G()}))!=null?u:[];
_.gN.set(b,[h,Q])}}]};
LaG=function(l,D,U,n){n=n===void 0?{}:n;if(D==null||!n.shouldPersist)return l;n=_.gN.get(D);if(!n)return l;var y=_.B(n);n=y.next().value;var A=y.next().value,C;y=(C=U==null?void 0:U.map(function(h){return h()}))!=null?C:[];
if((A==null?0:A.length)&&(U==null?0:U.length)&&y.some(function(h,b){return h!==A[b]}))return _.gN.remove(D),l;
(U==null?0:U.length)&&_.gN.set(D,[n,y]);return n};
qfB=function(l){var D=_.B(_.aw(!0,void 0,"bKtO6d")),U=D.next().value;D.next();return function(){var n=dt(l.children());return _.g(_.v,{cond:U,then:function(){return n},
else:l.fallback})}()};
_.uI=function(l){var D=M$o(l),U=D.data,n=D.mapping,y=D.wrapper;D=D.pendingFallback;var A=function(){return RJ_(_.EP(U))},C=function(){var h=A(),b=[];
h=_.B(h);for(var u=h.next();!u.done;u=h.next()){var Q=void 0;u=u.value;var G=void 0;for(Q in u)if(!(!u).hasOwnProperty(Q)){G=Q;break}(Q=G)&&b.push(Q)}return b};
return l.data?_.g(qfB,{fallback:D},function(){return _.g(_.wt,{each:C},function(h,b){var u=y?function(G){return y(function(){return n[h](G,b)},Q,b)}:function(G){return n[h](G,b)};
u.debugName||(u.debugName=String(h));if(!n[String(h)])return document.createComment("");u.componentType!==py&&ZZl(String(h));var Q=eJ$(A,h,b);return _.g(u,{data:Q})})}):_.g(_.GZ,null)};
M$o=function(l){var D=l.targetId||m6c(l.children);if(!l.data||!D)return Object.assign({},l,{mapping:l.children});var U="stamper-"+abB++,n=function(){var h;return(h=typeof l.targetId==="function"?l.targetId(U):l.targetId)!=null?h:U};
D=_.B(t$N(function(){var h=RJ_(l.data());h.targetId=n;return h})).next().value;
var y=Object.assign({},(_.Jc().resolve(_.G8(Xss))||{}).replaceableMapping,l.children);if(l.replacementWrapper){var A=y.notificationTextRenderer,C=y.notificationMultiActionRenderer;A&&(y.notificationTextRenderer=function(h,b){return l.replacementWrapper(A({data:h.data},b))});
C&&(y.notificationMultiActionRenderer=function(h,b){return l.replacementWrapper(C({data:h.data},b))})}return Object.assign({},l,{data:D,
mapping:y,wrapper:function(h,b,u){return Uos({targetId:n,stamperIndex:u},l.wrapper?function(){return l.wrapper(h,b,u)}:h)}})};
eJ$=function(l,D,U){var n;return _.dM(function(){var y=l()[U()];if(y)n=y[D];else return _.II(new _.rc("Stamper failed to find "+String(D)+" at index "+U()+" of data array of length "+(l().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),n;return y[D]},void 0,"AtsHlc")};
m6c=function(l){l=_.B(Object.keys(l));for(var D=l.next();!D.done;D=l.next())if(D=D.value,Sfg.includes(D)||kfc.includes(D)||d6l.includes(D))return!0;return!1};
RJ_=function(l){return l?Array.isArray(l)&&l instanceof Array?l:[l]:[]};
ZZl=function(l){if(_.q("web_enable_renderer_logger")){var D;(D=_.Jc().resolve(_.G8(Ka9)))!=null&&D.loggingEnabled&&!D.ids.has(l)&&D.ids.add(l)}};
cFo=function(){var l,D;return(D=(l=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:l())!=null?D:!1};
x6c=function(l,D){l=l===void 0?psl:l;switch(D.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},l,{isOpen:D.payload});default:return l}};
FaK=function(l,D){l=l===void 0?jC$:l;switch(D.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},l,{isAllowed:D.payload});default:return l}};
wsd=function(l,D){l=l===void 0?o3N:l;switch(D.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},l,{errorMessage:D.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},l,{title:D.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},l,{privacy:D.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},l,{isDisabled:D.payload});default:return l}};
zJN=function(l,D){l=l===void 0?rFC:l;switch(D.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},l,{isOpen:D.payload});default:return l}};
$6$=function(l,D){l=l===void 0?fbc:l;switch(D.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},l,{isFullscreen:D.payload});case "SET_NAVIGATION_BUTTON":var U=D.payload.targetId,n=Object.assign({},l.navigationButtons);n[U]=D.payload.button;return Object.assign({},l,{navigationButtons:n});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},l,{topPanelId:D.payload});case "SET_SECONDARY_HEADER":return U=D.payload.panelId,n=Object.assign({},l.secondaryHeader),n[U]=D.payload.secondaryHeader,
Object.assign({},l,{secondaryHeader:n});default:return l}};
T49=function(){return pS(Object.assign({},{voiceSearch:Lu9,engagementPanel:$6$,bottomSheet:x6c,cinematicSetting:FaK,shorts:tKK,drawerLayout:zJN,createPlaylist:wsd,locationCollection:N4$,reportChannel:sC$,reportForm:E3C},X0C))};
IbC=function(l,D){_.Tn.addLowPriorityJob(function(){var U,n,y;return _.P(function(A){switch(A.nextAddress){case 1:return _.ZY(A,2),A.yield(SHs(),4);case 4:return A.yield(fetch(l),5);case 5:return U=A.yieldResult,A.yield(U.json(),6);case 6:n=A.yieldResult;J1.set(l,n);requestAnimationFrame(function(){D(n)});
_.WG(A,0);break;case 2:y=_.kF(A),_.II(y),_.Kz(A)}})})};
HZ$=function(l){var D={animationConfig:{},listeners:{}},U=function(){l(!0)};
D.listeners.data_failed=U;D.listeners.error=U;D.listeners.data_ready=function(){l(!1)};
return D};
V$g=function(l){var D=l.model;var U=l.subscribed;var n=l.isOverlay;var y=l.element;var A=l.commandController;var C=l.notificationState;if(U){var h,b;var u=(D==null?void 0:(h=D.buttonStyle)==null?void 0:h.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:D==null?void 0:(b=D.unsubscribeButtonContent)==null?void 0:b.buttonText}else{var Q;u=D==null?void 0:(Q=D.subscribeButtonContent)==null?void 0:Q.buttonText}a:{var G;switch(D==null?void 0:(G=D.buttonStyle)==
null?void 0:G.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":h="S";break a;default:h="M"}}a:if(n)n="overlay";else switch(D.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":n="overlay";break a;default:n="mono"}a:if(U)var J="tonal";else switch((J=D.buttonStyle)==
null?void 0:J.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":J="tonal";break a;default:J="filled"}return{style:n,type:J,state:D.disableSubscribeButton?"disabled":"active",size:h,focused:l.focused,toggled:U,accessibilityLabel:Yfd(D,U,C),buttonText:u,iconPosition:D.disableNotificationBell?"none":"leading-trailing",onTap:OZg(D,U,y,A),disableTextEllipsis:!!l.disableTextEllipsis}};
OZg=function(l,D,U,n){return function(y){if(D){var A;var C=l.disableNotificationBell?_.te(l==null?void 0:(A=l.unsubscribeButtonContent)==null?void 0:A.onTapCommand):_.te(l==null?void 0:l.onShowSubscriptionOptions)}else{var h;C=_.te(l==null?void 0:(h=l.subscribeButtonContent)==null?void 0:h.onTapCommand)}C&&b_(C,{form:{element:U==null?void 0:U.value},commandController:n});y.stopPropagation()}};
Yfd=function(l,D,U){if(D){if(l==null?0:l.disableNotificationBell){var n;return l==null?void 0:(n=l.unsubscribeButtonContent)==null?void 0:n.accessibilityText}switch(U){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var y;return l==null?void 0:(y=l.bellAccessibilityData)==null?void 0:y.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var A;return l==null?void 0:(A=l.bellAccessibilityData)==null?void 0:A.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var C;return l==null?void 0:(C=
l.bellAccessibilityData)==null?void 0:C.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var h;return l==null?void 0:(h=l.bellAccessibilityData)==null?void 0:h.disabledLabel;default:var b;return l==null?void 0:(b=l.unsubscribeButtonContent)==null?void 0:b.accessibilityText}}else{var u;return l==null?void 0:(u=l.subscribeButtonContent)==null?void 0:u.accessibilityText}};
i83=function(l,D){return _.yT(l.entities,"subscriptionStateEntity",D)};
lKl=function(l,D){return _.yT(l.entities,"subscriptionNotificationStateEntity",D)};
D89=function(l,D){return _.yT(l.entities,"upcomingEventReminderStateEntity",D)};
U8o=function(l,D){return _.yT(l.entities,"commentEntityPayload",D)};
n6$=function(l,D){return _.yT(l.entities,"engagementToolbarSurfaceEntityPayload",D)};
yN3=function(l,D){return _.yT(l.entities,"triStateButtonStateEntityPayload",D)};
AN_=function(l,D){return _.yT(l.entities,"commerceCartCheckoutButtonEntity",D)};
WfB=function(l,D){return _.yT(l.entities,"commandEntity",D)};
Bzd=function(l){if(l){switch(l){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":l="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":l="NOTIFICATIONS_OFF";break;default:l="NOTIFICATIONS_NONE"}return l}};
CSg=function(l,D,U){U.subscribed!==D&&((U=U.key)&&_.$u(_.vr("subscriptionStateEntity",U,{key:U,subscribed:D})),l.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:D})),D||_.Vh(l,"yt-unsubscribe-action"))};
PS9=function(l){l=_.M(_.te(l),_.Qs);var D,U,n,y;return(y=_.M(l==null?void 0:(D=l.panelLoadingStrategy)==null?void 0:(U=D.inlineContent)==null?void 0:(n=U.sheetViewModel)==null?void 0:n.content,hBB))==null?void 0:y.listItems};
b8N=function(l,D){if(l.onShowSubscriptionOptions&&D&&(l=PS9(l.onShowSubscriptionOptions),l!=null&&l.length)){var U=Bzd(D);l.forEach(function(n){n=_.M(n,_.Gy);var y,A,C,h,b=n==null?void 0:(y=n.leadingImage)==null?void 0:(A=y.sources)==null?void 0:(C=A[0])==null?void 0:(h=C.clientResource)==null?void 0:h.imageName;n&&b&&(n.isSelected=b===U)})}};
g63=function(l,D,U,n){D&&U?l.style.width=U+"px":!D&&n&&(l.style.width=n+"px")};
uMo=function(l,D,U){var n;(n=l.lottieEl)==null||n.goToAndPlay(0);var y;(y=D.lottieEl)==null||y.goToAndPlay(0);_.Ji(_.Tn,function(){var A;(A=U.lottieEl)==null||A.goToAndPlay(0)},300)};
v6B=function(l){return!(l==null||!l.iconName||(l==null?0:l.title))};
Qvd=function(l,D,U,n){U&&_.Tn.cancelJob(U);U=_.Tn.addLowPriorityJob(function(){n(void 0)},5E3);
n(U);D&&l!==(D.likeStatus==="LIKE")&&D.key&&_.$u(_.vr("likeStatusEntity",D.key,{key:D.key,likeStatus:l?"LIKE":"INDIFFERENT",hadUserInteraction:l}))};
_.GQN=function(l,D){return _.yT(l.entities,"accountLinkStatusEntity",D)};
JNG=function(l,D){return _.yT(l.entities,"hatsSurveyEntity",D)};
LfG=function(l,D){return _.yT(l.entities,"hatsSurveyStateEntity",D)};
qkl=function(l,D){return _.yT(l.entities,"quantityIncrementerEntity",D)};
MTG=function(l){switch(l){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
RBN=function(l){switch(l){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}};
Z89=function(l){switch(l){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.m8C=function(l){var D=_.RG("web_generic_client_event_wait_period ",0);D||(D=3E5);var U=eBC.get(l);!_.q("enable_web_client_experiment_event_timeout_killswitch")&&U&&(0,_.J3)()-U<D||(eBC.set(l,(0,_.J3)()),_.Na("genericClientExperimentEvent",{eventType:l}))};
_.aK3=function(l,D){var U,n,y,A;a:{var C=l.style;if(C===void 0)C=17;else switch(C){case "LIVE":C=18;break a;default:C=17}}return{type:C,text:D?yK_({seconds:D}):_.Nl(l.text),accessibilityText:(U=l.text)==null?void 0:(n=U.accessibility)==null?void 0:(y=n.accessibilityData)==null?void 0:y.label,icon:(A=l.icon)==null?void 0:A.iconType}};
tTc=function(l){switch(l){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
XBc=function(l){if(!l)return"";var D,U=(D=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:D(),n;if(!U&&((n=l.vibrantColorPalette)==null?0:n.iconInactiveColor))return XP(l.vibrantColorPalette.iconInactiveColor,"1");var y;return U&&((y=l.darkColorPalette)==null?0:y.iconInactiveColor)?XP(l.darkColorPalette.iconInactiveColor,"1"):l.color?XP(l.color,"1"):l.sampledThumbnailColor?(l=l.sampledThumbnailColor,"rgba("+l.red+","+l.green+","+l.blue+");"):""};
_.Lq=function(l,D){if(!l.includes("DATE_PLACEHOLDER"))return l;var U=new Date(0);U.setUTCSeconds(D);return l.replace("DATE_PLACEHOLDER",SkC(U))};
kQc=function(l,D,U){return function(n){var y=l.command;y&&(b_(y,{form:{element:U}}),D([y],n))}};
KfK=function(l,D,U,n,y){return function(A){var C=d8d(l,D);C&&b_(C,{form:{element:U},commandController:n});y&&A.stopPropagation()}};
d8d=function(l,D){if(l.signInEndpoint&&!_.q("web_subscribe_sign_in_endpoint_killswitch"))return l.signInEndpoint;if(D){if(l.serviceEndpoints)return l.serviceEndpoints[1];if(l.onUnsubscribeEndpoints)return l.onUnsubscribeEndpoints[0]}else{if(l.serviceEndpoints)return l.serviceEndpoints[0];if(l.onSubscribeEndpoints)return l.onSubscribeEndpoints[0]}};
cNN=function(l,D){var U,n,y,A;D=D&&((U=l.unsubscribeAccessibility)==null?void 0:(n=U.accessibilityData)==null?void 0:n.label)||((y=l.subscribeAccessibility)==null?void 0:(A=y.accessibilityData)==null?void 0:A.label);return l.longSubscriberCountText?[D,_.Nl(l.longSubscriberCountText)].filter(function(C){return C}).join(" "):D};
qJ=function(l,D){return D||(l==null?0:l.isChannelDelegate)?"disabled":"active"};
pBG=function(l,D){var U;switch((U=l.style)==null?void 0:U.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:qJ(l)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:qJ(l)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:qJ(l,!0)};case "OVERLAY":return D?{style:"overlay",type:"tonal",state:qJ(l)}:{style:"overlay",type:"filled",state:qJ(l)};default:return D?{style:"mono",type:"tonal",state:qJ(l)}:{style:"mono",type:"filled",state:qJ(l)}}};
_.MJ=function(){for(var l=[],D=_.B(_.EW.apply(0,arguments)),U=D.next();!U.done;U=D.next())if(U=U.value)if(typeof U==="string")l.push(U);else{U=_.B(Object.entries(U));for(var n=U.next();!n.done;n=U.next()){var y=_.B(n.value);n=y.next().value;(y=y.next().value)&&l.push(n)}}return l.join(" ")};
x8g=function(l){switch(l){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
jvK=function(l){switch(l){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Ff_=function(l,D){var U=l.map(function(n){return n.toString()});
return _.n0(function(n){if(U.includes(n.key)){D&&n.preventDefault();var y;(y=n.currentTarget)==null||y.click()}})};
_.o6c=function(){return Ff_(["Enter"])};
_.wBG=function(){return Ff_(["Enter"," "],!0)};
_.RT=function(l){if(l.composedPath)return l.composedPath();if(!l.__composedPath){for(var D=[],U=l.target;U;)D.push(U),U=U.parentNode;D.push(window);l.__composedPath=D}return l.__composedPath};
_.ZX=function(l,D,U){l=_.B(l);for(var n=l.next();!n.done;n=l.next()){n=n.value;if(n===D)break;for(var y=_.B(U),A=y.next();!A.done;A=y.next())if(A=A.value,n.tagName===A||n.role==="button"&&A==="BUTTON")return!0}return!1};
zBC=function(l,D){var U,n=(U=D.observer)!=null?U:_.Jc().resolve(G7);if(l){U=rNG(l);var y=[];D.showOption&&y.push(n.observe(l,function(){D.visibilityCallback(!0,l)},D.showOption));
D.hideOption&&y.push(n.observe(l,function(){D.visibilityCallback(!1,l)},D.hideOption));
D.prescanOption&&D.prescanCallback&&y.push(n.observe(l,function(){D.prescanCallback()},D.prescanOption));
var A;U.visibilityMonitorKeys=((A=U.visibilityMonitorKeys)!=null?A:[]).concat(y)}};
rNG=function(l){var D;return(D=l.polymerController)!=null?D:l};
_.mr=function(l){return!!_.eq(l)};
_.aT=function(l,D,U,n,y){return function(A){var C=Do9();_.$i(function(){if(A){fKs(A,l(),y);var h=$8G(A,l(),D,U,n,C);_.NV(h)}},"lrewVd")}};
fKs=function(l,D,U){var n=Nzl(D),y=sv9(D);D=n&&E6d;var A=y&&Tzl;(n||y)&&zBC(l,{visibilityCallback:function(C){var h=_.Jc().resolve(_.qK);C&&n?h.resolveCommand(n,{form:{element:U?l:void 0},disableClickTracking:!0}):!C&&y&&h.resolveCommand(y,{form:{element:U?l:void 0},disableClickTracking:!0})},
showOption:D,hideOption:A})};
$8G=function(l,D,U,n,y,A){var C=new Map;if(D=_.eq(D)){var h;l=(n==null?void 0:(h=n.onTap)==null?void 0:h.value)||l;U=IK9(D,l,U==null?void 0:U.onTap,y,A);l.addEventListener("click",U);C.set("click",U)}return function(){for(var b=_.B(C),u=b.next();!u.done;u=b.next()){var Q=_.B(u.value);u=Q.next().value;Q=Q.next().value;l.removeEventListener(u,Q)}}};
_.eq=function(l){var D;return(l=(D=_.M(l,_.ti))==null?void 0:D.onTap)&&_.te(l)};
Nzl=function(l){var D;return(l=(D=_.M(l,_.ti))==null?void 0:D.onVisible)&&_.te(l)};
sv9=function(l){var D;return(l=(D=_.M(l,_.ti))==null?void 0:D.onHidden)&&_.te(l)};
IK9=function(l,D,U,n,y){var A=function(h){_.Jc().resolve(_.qK).resolveCommand(l,h)},C=function(h){n&&_.ZX(_.RT(h),D,n)||A(h.target?{form:{element:h.target,
sourceData:l,mutationContext:y}}:void 0)};
U&&(C=function(h){U(h,A)});
return C};
H8l=function(l){switch(l){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}};
YkB=function(l){var D=l.numAvatarsInCluster;switch(l.clusterSize){case "small":return D===2?22:18;case "40":return D===2?24:22;default:return D===2?24:20}};
O8K=function(l,D){return function(U){var n=Object.keys(D);_.$i(function(){if(l!=null&&l()){for(var y=_.B(n),A=y.next();!A.done;A=y.next())A=A.value,U.addEventListener(A,D[A]);_.NV(function(){for(var C=_.B(n),h=C.next();!h.done;h=C.next())h=h.value,U.removeEventListener(h,D[h])})}},"bXZGfe")}};
VT_=function(l){switch(YkB(l)){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""}};
ir3=function(l){switch(l){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""}};
lTg=function(l){switch(YkB(l)){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""}};
Dz9=function(l){switch(l){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""}};
UzG=function(l){switch(l){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}};
n$K=function(l){return l==="medium"||l==="48"||l==="large"||l==="extra-large"||l==="extra-extra-large"||l==="giant"};
yoC=function(l){return!!((l==null?0:l.includes(3))||(l==null?0:l.includes(5)))};
WD_=function(l){var D=l.data;return{size:AoC(D.avatarImageSize),type:D.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:l.onTap,decorations:l.decorations||[],badgeText:l.badgeText,accessibilityText:l.accessibilityText,avatarButtonCustomClassName:l.avatarButtonCustomClassName,clusterLayoutConfig:l.clusterLayoutConfig}};
AoC=function(l){switch(l){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"}};
BBC=function(l){switch(l){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}};
CCK=function(l){switch(l){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
hxc=function(l){var D=l.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",U,n=l.avatars&&l.avatars.length>0?(U=_.M(l.avatars[0],_.X7))==null?void 0:U.avatarImageSize:"AVATAR_SIZE_UNKNOWN";U=BBC(n)||0;if(D){var y,A=(y=l.avatarClusterSize)!=null?y:"AVATAR_SIZE_M";D=BBC(A);var C,h,b=Math.min((h=(C=l.avatars)==null?void 0:C.length)!=null?h:0,4),u;return{avatars:((u=l.avatars)==null?void 0:u.slice(0,4))||[],avatarSizeInPx:U,avatarStackStyle:{width:D+"px",height:D+"px",position:"relative"},avatarStyle:function(G){var J=
YkB({clusterSize:AoC(A),numAvatarsInCluster:b,avatarIndex:G});var L=BBC(A);b===3&&G===2?(L=(L-J)/2,L=(_.H3("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*L):L=void 0;return{position:"absolute",top:b===2&&G===1||b===3&&G===2||b===4&&G>=2?"0":void 0,bottom:b===2&&G===0||b>2&&G<2?"0":void 0,left:b===2&&G===1||b>2&&(G===1||G===3)?"0":void 0,right:b<=3&&G===0||b===4&&(G===0||G===2)?"0":void 0,transform:L?"translateX("+L+"px)":void 0,width:J+"px",height:J+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(G){return{clusterSize:AoC(l.avatarClusterSize),numAvatarsInCluster:b,avatarIndex:G}},
avatarButtonCustomClassName:void 0}}var Q;return{avatars:((Q=l.avatars)==null?void 0:Q.slice())||[],avatarSizeInPx:U,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:CCK(n),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
PC9=function(l,D,U){return function(){b_(l,{form:{element:D},commandController:U})}};
brK=function(l){switch(l){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
g$B=function(l){switch(l){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
uKd=function(l){if("accessibilityText"in l)return l.accessibilityText||"";if("title"in l){var D,U,n;return((D=l.title)==null?void 0:(U=D.accessibility)==null?void 0:(n=U.accessibilityData)==null?void 0:n.label)||""}if("accessibility"in l){var y,A;return((y=l.accessibility)==null?void 0:(A=y.accessibilityData)==null?void 0:A.label)||""}return""};
v$$=function(l){return"inlinePlayerData"in l};
Sq=function(l){return new Qug(l)};
Gbd=function(l){switch(l){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"}};
Jo9=function(l){switch(l){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;default:return 0}};
LDo=function(l){switch(l){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}};
qXB=function(l){return function(D){l&&(l.thumbnailElRef=D.thumbnailElRef,l.thumbnail=D.thumbnail,l.thumbnailOverlays=D.thumbnailOverlays,l.thumbnailSize=D.thumbnailSize)}};
M4B=function(l){switch(l){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
ZrB=function(l){var D=_.B(_.aw(!1,void 0,"E6wDDe")),U=D.next().value,n=D.next().value;_.N1(function(){var y=l==null?void 0:l();if(y){var A=_.Jc().resolve(_.G8(Rxg));if(A){var C={triggeringElement:y,onDwellTriggeredFn:function(){n(!0)},
onDwellEndFn:function(){n(!1)}};
A.registerElement(C);_.NV(function(){_.kv(A,C)})}}});
return U};
exG=function(l,D,U){U?U(D):_.dh(D,l.target?{form:{element:l.target}}:void 0)};
_.dN=function(l,D,U,n){return function(y){_.$i(function(){function A(Q){Q=Q.composedPath();Q=_.B(Q);for(var G=Q.next();!G.done;G=Q.next()){G=G.value;if(G===y)break;if(G.className.indexOf("HostIsClickableAdComponent")>=0||G.tagName==="A".toString()||G.tagName==="BUTTON".toString())return!0}return!1}
var C=new Map,h,b=(h=l())==null?void 0:h.onTap;if(b){h=function(Q){A(Q)||exG(Q,b,D)};
var u=function(Q){A(Q)||Q.key!=="Enter"||exG(Q,b,D)};
(U==null?0:U())||_.q("enable_web_home_top_landscape_image_layout_level_click")?(y.addEventListener("tap",h),C.set("tap",h)):(y.addEventListener("click",h),C.set("click",h));if(n==null?0:n())y.addEventListener("keydown",u),C.set("keydown",u)}_.NV(function(){for(var Q=_.B(C),G=Q.next();!G.done;G=Q.next()){var J=_.B(G.value);G=J.next().value;J=J.next().value;y.removeEventListener(G,J)}})},"D7XqOc")}};
mzN=function(l,D){var U,n=(U=l.interaction)==null?void 0:U.onTap;if(l=_.SQ({elementsCommand:n,forceNewState:!0,skipOnClick:!0}))return l.onclick=function(y){Jtg(y)&&(y.preventDefault(),n&&exG(y,n,D))},kt(l)?l:void 0};
aT9=function(l){switch(l){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
t4K=function(l){switch(l){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"}};
XjG=function(l){switch(l){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"}};
_.SXc=function(l){return _.q("rich_grid_enable_dynamic_offset")&&l?Math.max((l-_.RG("rich_grid_dynamic_offset_anchor_width",1300))/100*_.RG("rich_grid_dynamic_offset_offset_per_100",10),_.RG("rich_grid_dynamic_offset_lower_bound",-60)):0};
kbC=function(l,D){switch(D){case 4:return 16;case 1:return l<528?16:l<1024?32:48;case 2:return(l>=528?16:8)/2;case 3:return(l<528?16:l<1024?32:48)+(l>=528?16:8)/2;default:return 0}};
dzd=function(l){var D=l.originalContainerWidth;var U=l.sizing;var n=l.standardUnit;if(l.isCompactList&&D<528)return 1;switch(U){case "STANDARD":return n;case "COMPACT":return n+1;case "EXTRA_COMPACT":return _.q("web_responsive_extra_compact_2x")?n*2:_.q("web_responsive_current")?n===1?2:n%2===0?n/2*3:n+2:n<4?n*2:Math.ceil(n*3/2);case "MINI":return n>1?n*2:3;default:return n}};
coo=function(l){var D=l.containerWidth;var U=l.peek;var n=l.gutter;var y=l.numItems;l=l.ignoreMaxWidthLimit;D=U?Math.max((D-U-n*y)/y,0):Math.max((D-n*(y-1))/y,0);return l?D:Math.min(D,KD9)};
_.Kq=function(l){var D=l.containerWidth;var U=l.hasPeek;var n=l.sizing;var y=l.marginSettings;var A=l.isCompactList;var C=l.enableFullBleedForSingleCol;var h=l.standardUnitMinWidth;n=n||"STANDARD";U=!!U;l=D>=528?16:8;var b=U?D>=528?48:24:0;y=kbC(D,y);var u=Math.max(D-y*2,0);h=_.q("kevlar_disable_min_width_override")?void 0:h;h=Math.min(Math.max(Math.floor((u-b+l)/((h!=null?h:pjo)+_.SXc(D)+l)),1),6);var Q=(C=!!C&&h===1)||h===1&&n!=="STANDARD";U=U||Q?u:Math.min(u,(KD9+l)*h-l);n=dzd({originalContainerWidth:D,
sizing:n,standardUnit:h,isCompactList:A});return{itemWidth:coo({containerWidth:U,peek:b,gutter:l,numItems:n,ignoreMaxWidthLimit:Q}),gutter:l,maxContainerWidth:U,numItems:n,margin:C?0:y,contentMargin:kbC(D,1),typographyBump:coo({containerWidth:U,peek:b,gutter:l,numItems:h,ignoreMaxWidthLimit:Q})>400&&!(A&&D<528),standardUnit:h}};
cr=function(l){switch(l){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.xzl=function(l){if(l){var D;if((D=l.responsiveContainerConfiguration)==null?0:D.responsiveSize)return cr(l.responsiveContainerConfiguration.responsiveSize);if(l.layoutSizing)switch(l.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"}}};
juB=function(l){if(l.fullbleed)return 1;switch(l.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
zxB=function(l,D,U,n,y,A,C,h,b){a:if(l===4&&n==="LOCKUP_CONTENT_TYPE_SOURCE")var u=1;else switch(l){case 3:u=1;break a;default:u=0}var Q=FDN(l,n);a:switch(l){case 4:A=!!(A&&A<100);break a;default:A=!1}a:switch(l){case 3:case 4:var G=n==="LOCKUP_CONTENT_TYPE_CHANNEL"||n==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:G=!1}return{metadataOnThumbnail:Q,isOverlay:h||Q,isCard:o$3(n,C),sizing:D!=null?D:"STANDARD",typographyBump:U!=null?U:!1,isTiny:A,isCentered:G,isCollection:wjK(n),arrangement:u,addMarginForFullbleed:l===
1&&n!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:l===1&&n==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:rol(n,y,b),disableRounding:l===5||o$3(n,C)||l===1&&n==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:wjK(n)?2:0,useLegacyTypography:!(b==null||!b.useLegacyTypography),useRichGridLegacyTypography:!(b==null||!b.useRichGridLegacyTypography)&&!_.q("web_enable_typography_bump"),compactMetadata:u===0&&n==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:b==null?void 0:b.onFocusEffect,titleMaxLines:n==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
wjK=function(l){switch(l){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
o$3=function(l,D){if(D&&l==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(l){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
FDN=function(l,D){if(D==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(l){case 5:return!0;case 4:return!1;default:return!1}};
rol=function(l,D,U){if(D&&(U==null||!U.alwaysRespectPodcastShowAspectRatio||l!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(l){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}};
_.pq=function(l){if(l){var D;return((D=_.Jc().resolve(_.G8(_.jQ)))==null?0:D())?l.darkThemeImage:l.image}};
NB$=function(l,D,U,n,y,A){if(y&&A&&D==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:y,height:A};if(!U)return{};y=U.size;U=U.allowFullWidth;if(D==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&U)return{fullWidth:!0};if(y===void 0)return{};switch(l){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:y,height:y};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:y,height:1/fTC*y};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:y*
$z9,height:y};default:return(n==null?0:n.height)&&(n==null?0:n.width)?n.width/n.height>1?{maxWidth:y*$z9}:{maxWidth:y}:{maxWidth:y}}};
su_=function(l){var D;return l&&((D=_.pq(l.themedImage))!=null?D:l.image)};
E$K=function(l){var D;return l==null?void 0:(D=l.sources)==null?void 0:D[0]};
TBG=function(l){switch(l){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.ITC=function(l){if(l)return"content-id-"+l};
Hrg=function(l){switch(l.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"}}};
YXK=function(l){var D=_.xv.currentPageSubTypeSelector(_.fY().getState())||"";return l?l+D:""};
OrG=function(l){switch(l){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
ild=function(l){var D=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],U=_.B(_.aw(void 0,void 0,"JrqNsb")),n=U.next().value,y=U.next().value,A=_.B(_.aw(void 0,void 0,"rWytse"));U=A.next().value;var C=A.next().value;A=_.B(_.aw(void 0,void 0,"DHRqxe"));var h=A.next().value,b=A.next().value;return{touchFeedbackEvents:{pointerUpEvent:n,pointerDownEvent:U,pointerLeaveEvent:h},touchFeedbackOnPointerUp:_.n0(function(u){V4s(_.RT(u),D)||(y(u),C(void 0),b(void 0))}),
touchFeedbackOnPointerDown:_.n0(function(u){l==null||l(u);V4s(_.RT(u),D)||(C(u),y(void 0),b(void 0))}),
touchFeedbackOnPointerLeave:_.n0(function(u){V4s(_.RT(u),D)||(b(u),C(void 0),y(void 0))})}};
V4s=function(l,D){D=D===void 0?[]:D;D=[].concat(_.zz(D),["BUTTON".toString()]);l=_.B(l);for(var U=l.next();!U.done;U=l.next()){U=U.value;for(var n=_.B(D),y=n.next();!y.done;y=n.next())if(U.tagName===y.value)return!0}return!1};
lgN=function(l){switch(l){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"}};
Dyd=function(l){return l.scrollHeight-l.offsetHeight>1};
UyN=function(l,D){var U;return xt(l,((U=l.content)==null?void 0:U.length)||0,!D)};
AG$=function(l,D,U,n,y,A){if(!D||nJd){var C;return xt(l,((C=l.content)==null?void 0:C.length)||0,!0)}D=n.value;if(!U.value||!D||!l.content)return l;U=0;n=l.content.length;C=0;yG_||(yG_=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var h=yG_;for(y=y*A*h;U<=n;)A=Math.floor(U+(n-U)/2),h=xt(l,A)||l,D.firstChild&&(D.firstChild.textContent=h.content),D.scrollHeight>y?n=A-1:(C=A,U=A+1);return xt(l,C)};
WY$=function(l,D){var U,n;return(((U=l.content)==null?void 0:U.length)||0)>(((n=D.content)==null?void 0:n.length)||0)};
B5B=function(l,D,U,n,y,A){var C=_.bP("truncated-text-content"),h=_.bP("truncated-text-content"),b=_.bP("button"),u=_.bP("button"),Q=_.bP("button"),G=_.Jc().resolve(_.oO),J=_.B(_.WK(function(){return UyN(l(),y())})),L=J.next().value,R=J.next().value;
J=_.B(_.WK(function(){return WY$(l(),L())}));
var a=J.next().value,S=J.next().value,d=null;_.$i(function(){function c(){if(C.value&&b.value&&Q.value){var f=A()?l():AG$(l(),y(),C,h,D(),U());R(f);requestAnimationFrame(function(){if(C.value&&b.value&&Q.value){var I=Dyd(C.value)||WY$(l(),f);S(I);if(!n()){var iG=Dyd(C.value),CC=U(),vo=C.value,td=b.value,GN=Q.value,Ms=G==="rtl";if(vo&&td){var j3=td.offsetLeft;Ms&&(j3=vo.offsetWidth-td.offsetWidth-td.offsetLeft);if(I){I=td.offsetWidth;td=vo.offsetWidth;var wl=iG?td-I-70:j3-70;CC="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
CC+"rem,\n      #000 "+CC+"rem,\n      #000 100%), linear-gradient(\n      to "+((Ms?"left":"right")+",\n      #000 0px,\n      #000 "+wl+"px,\n      transparent "+(iG?td-I:wl+70)+"px)");vo.style.setProperty("-webkit-mask-image",CC);vo.style.setProperty("mask-image",CC)}else vo.style.setProperty("-webkit-mask-image",""),vo.style.setProperty("mask-image","");iG?Ms?(GN.style.setProperty("left","0"),GN.style.setProperty("right","unset")):(GN.style.setProperty("left",""),GN.style.setProperty("right",
"0")):Ms?(GN.style.setProperty("left","unset"),GN.style.setProperty("right",j3+"px")):(GN.style.setProperty("left",j3+"px"),GN.style.setProperty("right","unset"))}}}})}}
var N,z;(N=d)==null||(z=N.stop)==null||z.call(N);N=new _.A1(c,17);c();d=N},"KjwIxd");
_.N1(function(){R(UyN(l(),y()));S(WY$(l(),L()));var c=function(){yG_=void 0;var z,f;(z=d)==null||(f=z.fire)==null||f.call(z)};
if(window.ResizeObserver){var N=new ResizeObserver(c);N.observe(C.value);_.NV(function(){var z,f;(z=d)==null||(f=z.stop)==null||f.call(z);N.disconnect()})}else window.addEventListener("resize",c),_.NV(function(){var z,f;
(z=d)==null||(f=z.stop)==null||f.call(z);window.removeEventListener("resize",c)})});
return{isTruncated:a,displayText:L,contentRef:C,hiddenRef:h,placeholderTruncationTextRef:b,hiddenTruncationTextRef:u,truncationTextRef:Q}};
CRd=function(l){return{content:l!=null?l:""}};
hCG=function(l){return _.te(l.onTap)||_.eq(l.rendererContext)};
PRN=function(l){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:l.overflowMenuA11yLabel,onTap:function(D){D.preventDefault();D.stopPropagation();if(l.overflowMenuOnTap){var U=_.SQ({elementsCommand:l.overflowMenuOnTap,forceNewState:!0});if(U==null?0:U.onclick)U.onclick(D)}}}};
_.jq=function(l,D,U,n,y){n=n===void 0?{}:n;if(!y||Math.random()<5E-4){D=D||null;U=U||null;l=l instanceof Error?l:new _.rc(l);if(l.args)for(var A=_.B(l.args),C=A.next();!C.done;C=A.next())C=C.value,C instanceof Object&&(n=Object.assign({},C,n));n.category="H5 Ads Control Flow";D&&(n.slot=D?"slot:  "+D.slotType:"");U&&(n.layout=U?"layout:  "+U.layoutType:"",n.layoutId=U.layoutId);y&&(n.known_error_aggressively_sampled=!0);l.args=[n];_.II(l)}};
_.blo=function(l,D){D=_.IJ(D);_.Vh(l,"yt-open-popup-action",[D,l])};
_.F7=function(l,D){_.blo(l,_.$B(D))};
uWl=function(l){if(!l)return"";if(gJ9[l])return gJ9[l];oT||(oT=_.SU("A"));oT.href!==l&&Il(oT,l);var D=oT.pathname;gJ9[l]=D.startsWith("/")?D:"/"+D;return gJ9[l]};
vJ_=function(){var l=uWl(window.location.href);if(l==="/")return"home";if(l.startsWith("/results"))return"search";if(l.startsWith("/watch"))return"watch";if(l.startsWith("/shorts"))return"shorts";if(l.startsWith("/hashtag"))return"hashtag";if(l.startsWith("/create_channel"))return"create_channel";if(l.startsWith("/@")||l.startsWith("/user/")||l.startsWith("/channel/"))return"channel";if(l.startsWith("/experiments"))return"experiments";if(l.startsWith("/sponsor_channel"))return"sponsorship";if(l.startsWith("/select_site"))return"settings";
if(l.startsWith("/locate"))return"locate";if(l.startsWith("/redeem"))return"redeem";if(l.startsWith("/musicpremium")||l.startsWith("/premium")||l.startsWith("/red"))return"premium";if(l.startsWith("/paid_memberships"))return"paid_memberships";if(l.startsWith("/oops"))return"oops";if(l.startsWith("/clip"))return"clip";var D;return(wN==null?void 0:(D=wN.response)==null?void 0:D.page)==="404"?"404":l.startsWith("/feed/history")?"history":l.startsWith("/feed/library")?"library":l.startsWith("/feed/subscriptions")?
"subscriptions":l.startsWith("/feed/trending")?"trending":l.startsWith("/feed/news_destination")?"news":l.startsWith("/playlist")?"playlist":l.startsWith("/minor_moment")?"minor_moment":l.startsWith("/playable/")||l.match("^/playables/(?!saved).")?"mini_app":l.startsWith("/playables")?"playables":l.startsWith("/create/live/join")?"open_in_app":l.startsWith("/feed/explore")?"explore":"browse"};
_.zy=function(){var l=wN==null?void 0:wN.response,D=l==null?void 0:l.endpoint;if(!D)return(l==null?void 0:l.page)==="watch"?"watch":vJ_();var U;l=(U=_.M(D==null?void 0:D.commandMetadata,_.W6))==null?void 0:U.webPageType;U=!1;if(l&&!Qy3.includes(l))switch(l){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 n;return((n=_.M(D==null?void 0:D.commandMetadata,_.W6))==null?0:n.url)&&uWl(_.M(D.commandMetadata,_.W6).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var y;return(D=(y=_.M(D,_.Pk))==null?void 0:y.browseId)?GF_[D]||"browse":"browse";default:U=!0}if(_.M(D,_.rN)||_.M(D,JGG))return"sponsorship";y=uWl(window.location.href);if(y.startsWith("/experiments"))return"experiments";if(y.startsWith("/create_channel"))return"create_channel";
if(_.M(D,_.yE)&&y.startsWith("/shorts"))return"shorts";if(_.M(D,_.yE)&&y.startsWith("/watch"))return"watch";U&&(D=new _.rc("Unsupported mWeb page type",{pathname:y,webPageType:l}),_.EU(D));return"browse"};
fq=function(l,D,U,n){return l&&D?l!==U||D!==n?(_.jq(Error("Kh"),void 0,void 0,{"stored-slot":l,"stored-layout":D,"latest-slot":U,"latest-layout":n}),!1):!0:!1};
qug=function(l,D,U){return l({targetId:D},function(n){return U.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},n,{contents:[U.continuationItems?_.M(U.continuationItems[0],LY9):{}]}):U.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},n,{header:U.continuationItems?U.continuationItems[0]:void 0}):Object.assign({},n,{contents:U.continuationItems?U.continuationItems:[]})})};
MHo=function(l,D,U,n){if(D=D.trackingParams){var y,A=(y=U.getScreenLayer)==null?void 0:y.call(U);U=_.t6(A);y=_.aS(A);if(U&&y){var C=_.v9(D);_.q("combine_ve_grafts")?l.graftServerVe(D,y,A):_.jz(U,y,C);n==null||n(C)}}};
Zld=function(l){var D;return((D=RC3.get(l))==null?void 0:D.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
ag9=function(l,D){var U={type:D.slotType,controlFlowManagerLayer:eC3.get(D.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};D.slotEntryTrigger&&(U.entryTriggerType=D.slotEntryTrigger.triggerType);D.slotPhysicalPosition!==1&&(U.slotPhysicalPosition=D.slotPhysicalPosition);if(l){U.debugData={slotId:D.slotId};if(l=D.slotEntryTrigger)U.debugData.slotEntryTriggerData=myK(l);l=D.slotFulfillmentTriggers;U.debugData.fulfillmentTriggerData=[];l=_.B(l);for(var n=l.next();!n.done;n=l.next())U.debugData.fulfillmentTriggerData.push(myK(n.value));
D=D.slotExpirationTriggers;U.debugData.expirationTriggerData=[];D=_.B(D);for(l=D.next();!l.done;l=D.next())U.debugData.expirationTriggerData.push(myK(l.value))}return U};
myK=function(l,D){var U={type:l.triggerType};D!=null&&(U.category=D);l.triggeringSlotId!=null&&(U.triggerSourceData||(U.triggerSourceData={}),U.triggerSourceData.associatedSlotId=l.triggeringSlotId);l.triggeringLayoutId!=null&&(U.triggerSourceData||(U.triggerSourceData={}),U.triggerSourceData.associatedLayoutId=l.triggeringLayoutId);return U};
tH$=function(l,D,U,n){D={opportunityType:D};l&&(n||U)&&(n=_.re(n||[],function(y){return ag9(l,y)}),D.debugData=Object.assign({},U&&U.length>0?{associatedSlotId:U}:{},n.length>0?{slots:n}:{}));
return D};
XUB=function(l){return $v(l.opportunityAdapterMap).concat($v(l.triggerAdapterMap)).concat($v(l.fulfillmentAdapterFactoryMap)).concat($v(l.slotAdapterFactoryMap)).concat($v(l.layoutRenderingAdapterFactoryMap))};
$v=function(l){var D=[];l=_.B(l.values());for(var U=l.next();!U.done;U=l.next())U=U.value,U.isAdsControlFlowEventListener&&D.push(U);return D};
sE=function(l){var D=l.slotId,U=l.slotType,n=l.slotPhysicalPosition;return D===void 0?new NJ("Cannot construct a slot due to the missing id.",{adSlotMetadata:l}):U===void 0?new NJ("Cannot construct a slot due to the missing type.",{adSlotMetadata:l}):n===void 0?new NJ("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:l}):{slotId:D,slotType:U,slotPhysicalPosition:n,managerLayer:"external",adSlotLoggingData:l.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new SuG}};
kFc=function(l){var D=l.layoutId,U=l.layoutType;return D===void 0?new EE("Cannot construct a layout due to the missing id.",{adLayoutMetadata:l}):U===void 0?new EE("Cannot construct a layout due to the missing type.",{adLayoutMetadata:l}):{layoutId:D,layoutType:U,managerLayer:"external",adLayoutLoggingData:l.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new SuG,interactionLoggingAdsClientData:{}}};
dys=function(l){if(l.querySelector("img")){var D=l.querySelector("img");D.addEventListener("error",function(){ncg(D.src).then(function(U){(U=_.sW(U).toString())?D.src=U:D.removeAttribute("src")}).catch(function(){D.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
IT=function(l,D){if(D&&(KYG(D.viewableCommand)||KYG(D.endOfSessionCommand))){var U=cGK(D==null?void 0:D.viewableCommand);D=cGK(D==null?void 0:D.endOfSessionCommand);if(!Ty){var n=_.RG("custom_active_view_tos_timeout_ms");Ty=n>0&&n!==36E5?new pUg(xy_(),n):new pUg(xy_())}jyN(Ty,l);FY_(Ty,l,U,D)}};
Hr=function(l){Ty&&jyN(Ty,l)};
xy_=function(){var l=_.H3("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(l==null?void 0:l.length)===2?l[1]:null};
KYG=function(l){l=_.te(l);return!(l==null||!l.loggingUrls)&&l.loggingUrls.length>0};
cGK=function(l){if(!l)return[];var D=[],U,n;((n=(U=_.te(l))==null?void 0:U.loggingUrls)!=null?n:[]).forEach(function(y){y.baseUrl&&D.push(y.baseUrl)});
return D};
oJ3=function(l){if(_.q("stop_av_measurement_on_detach"))return function(){Hr(l)}};
wUK=function(l){return function(){_.q("stop_av_measurement_on_detach")&&Hr(l)}};
rG9=function(l){if(_.q("stop_av_measurement_on_detach"))return function(){Hr(l)}};
zCc=function(l){return l.shorts.isDesktopSmallWidth};
_.fgo=function(l){return l.shorts.isShortsActive};
_.$yB=function(l){return l.shorts.isWatchWhileMode};
_.Yv=function(l){return l.shorts.isFullscreen};
_.OE=function(l){return l.shorts.isShortsPipActive};
syl=function(l){var D,U;if(l=(D=_.M(l.reelsAdCardButtoned,N5_))==null?void 0:(U=D.animatedRenderingConfig)==null?void 0:U.easeOutSeconds)return l+"s"};
T5g=function(l,D,U){return _.P(function(n){return n.return(new Promise(function(y){var A=new Image;A.onload=function(){y(new EJK(l,D,U,A.naturalWidth,A.naturalHeight))};
A.src=U.toString()}))})};
Ig9=function(l,D){return Math.round(l/1E-5)===Math.round(D/1E-5)};
Hl_=function(l,D){return Math.round(l/1E-5)===Math.round(D/1E-5)};
Yu$=function(l,D){return l.year===D.year&&l.month===D.month&&l.day===D.day};
OlK=function(l,D){return l.year!==D.year?l.year<D.year:l.month!==D.month?l.month<D.month:l.day<D.day};
iQ9=function(l){return l.day===VHG(l.year,l.month)?l.month===11?{year:l.year+1,month:0,day:1}:{year:l.year,month:l.month+1,day:1}:{year:l.year,month:l.month,day:l.day+1}};
lGc=function(){var l=new Date,D={year:l.getFullYear(),month:l.getMonth(),day:l.getDate()};return{start:D,end:{year:l.getFullYear()+2,month:l.getMonth(),day:l.getDate()},selectedDate:iQ9(D)}};
D53=function(l){return(new f7(2)).format(new Date(l.year,l.month,l.day))};
U5o=function(l){return{year:l.getFullYear(),month:l.getMonth(),day:l.getDate()}};
nDg=function(l,D){l=(l+(Number(D.utcOffsetSec)+(new Date(l*1E3)).getTimezoneOffset()*60))*1E3;D=U5o(new Date(l));return{date:D,secondsSinceMidnight:Math.floor((l-(new Date(D.year,D.month,D.day)).getTime())/1E3)}};
yDC=function(l,D){D=D.months.findIndex(function(U){return U.year===l.year&&U.month===l.month});
return D>=0?D:void 0};
AD_=function(l){if(!l)return!1;try{if(l.host&&l.host.tagName==="YT-FORMATTED-STRING"&&l.host.id==="contenteditable-textarea"||l.nodeType===Node.ELEMENT_NODE&&l.tagName==="YTD-COMMENTBOX")return!0}catch(D){return!1}return AD_(l.parentNode)};
Vs=function(l){return l?!(l.tagName!=="A"||!l.href||!l.classList.contains("yt-simple-endpoint")):!1};
WAN=function(l){return l?l.tagName==="IMG"&&l.classList.contains("emoji"):!1};
BoC=function(l,D,U){if(!l)return null;var n=Vs(l);if(n&&U)return D=l.pathname.substring(l.pathname.indexOf("/channel/")+9),document.createTextNode("@"+D);if(n&&!U)return document.createTextNode("");if(WAN(l))return U=l.alt,l=l.dataset.emojiId,!l&&D&&(D=_.iq(D,U))&&D.isCustomEmoji&&(l=D.emojiId),l?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+l+">"):document.createTextNode(U);n=l.cloneNode(!1);for(var y=0;y<l.childNodes.length;++y){var A=BoC(l.childNodes[y],D,U);A&&n.appendChild(A)}return n};
lq=function(l){return l?Vs(l)?l:lq(l.lastChild):null};
CFo=function(l){return l?Vs(l)?l:CFo(l.firstChild):null};
hTB=function(l){if(!l)return null;for(var D=l.previousSibling;D;)if(D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="BR")D=D.previousSibling;else if(D.nodeType===Node.TEXT_NODE&&/\s+/.test(D.textContent))D=D.previousSibling;else break;(D=lq(D))?l=D:l=(l=l.parentNode)?lq(l.previousElementSibling):null;return l};
PF$=function(l){if(!l)return null;for(var D=l.nextSibling;D;)if(D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="BR")D=D.nextSibling;else if(D.nodeType===Node.TEXT_NODE&&/\s+/.test(D.textContent))D=D.nextSibling;else break;return(D=CFo(D))?D:PF$(l.parentNode)};
bQs=function(l){var D=_.Df(),U=D.JSC$11424_getStartNode();if(!AD_(U.parentNode))return null;D=D.JSC$11424_getStartOffset();if(U.nodeType===Node.TEXT_NODE){var n=_.sj(U,Vs);if(n){if(l&&D===0||!l&&D===U.length)return n}else{if(l&&D===U.length)return!U||U.nodeName==="BR"||U.nextElementSibling&&_.Ur(U.nextElementSibling,"display")==="block"?null:CFo(U.nextElementSibling);if(!l&&D===0)return U?lq(U.previousElementSibling):null}}if(U.nodeType===Node.ELEMENT_NODE)if(l){if(0<=D&&D<U.childNodes.length)return CFo(U.childNodes[D])}else if(0<
D&&D<=U.childNodes.length)return lq(U.childNodes[D-1]);return null};
gDG=function(l,D,U){if(!l)return null;if(l.nodeType===Node.TEXT_NODE)if(U){var n=hTB(l);if(n&&!/^\s+\S/.test(l.wholeText.substr(0,D)))return n}else if((n=PF$(l))&&!/\S\s+/.test(l.wholeText.substr(D,l.wholeText.length)))return n;return l.nodeType===Node.ELEMENT_NODE?U?hTB(l.childNodes[D]):PF$(l.childNodes[D]):gDG(l.parentNode,D,U)};
uVl=function(l){if(l.hasChildNodes())switch(l.tagName){case "DIV":case "A":case "SPAN":var D="";for(l=l.firstChild;l;l=l.nextSibling)D+=uVl(l);return D;default:return""}else switch(l.nodeType){case 3:return l.textContent;default:return""}};
n4=function(l,D){return l.year===D.year&&l.month===D.month&&l.day===D.day};
yd=function(l,D){return l.year!==D.year?l.year<D.year:l.month!==D.month?l.month<D.month:l.day<D.day};
vD9=function(l){return{year:l.getFullYear(),month:l.getMonth(),day:l.getDate()}};
QXB=function(l){var D=gWC;D=D===void 0?gWC:D;D(new Date(l.year,l.month,l.day))};
AB=function(l){return vD9(new Date(Number(l.seconds)*1E3))};
GKC=function(l){return l.year!==void 0&&l.month!==void 0&&l.day!==void 0};
JD3=function(l){return l.start!==void 0&&l.end!==void 0};
LAo=function(l){return JD3(l)?l.start:l};
qv_=function(l){return JD3(l)?l.end:void 0};
RT$=function(l,D){for(var U=[],n=new Date(l.start.year,l.start.month);n.getFullYear()<l.end.year||n.getFullYear()===l.end.year&&n.getMonth()<=l.end.month;){var y=U,A=y.push,C=n.getFullYear(),h=n.getMonth(),b=l,u=D,Q=void 0,G=[],J=Object.freeze({extraCssClass:"invisible"}),L=new Date(C,h),R=vD9(L);L=L.getDay();for(var a=vD9(new Date);R.month===h;){L!==M1N&&Q||(Q=Array.from({length:7}).fill(J),G.push(Q));var S={date:{year:C,month:h,day:R.day},extraCssClass:"",debugClass:""};S.extraCssClass=u(S.date,
R,a,b).trim();Q[(L-M1N+7)%7]=S;R=R.day===VHG(R.year,R.month)?R.month===11?{year:R.year+1,month:0,day:1}:{year:R.year,month:R.month+1,day:1}:{year:R.year,month:R.month,day:R.day+1};L=(L+1)%7}A.call(y,{weeks:G,monthLabel:WF.SHORTMONTHS[h]+" "+C,year:C,month:h,monthLabelExtraCssClass:G[0][2]===J?"shift-down-label":""});n.setMonth(n.getMonth()+1)}return U};
ZQC=function(l,D){D=D.months.findIndex(function(U){return U.year===l.year&&U.month===l.month});
return D>=0?D:void 0};
m5g=function(l,D){a:{var U=U===void 0?[2,3]:U;U=_.B(U);for(var n=U.next();!n.done;n=U.next()){var y=new Date;if((new eT$(n.value)).parse(D,y,{validate:!0})){y.setHours(0,0,0,0);D=y;break a}}D=null}if(!D)return{isValid:!1,value:void 0};D=vD9(D);U=l.end;return yd(D,l.start)||yd(U,D)?{isValid:!1,value:void 0}:{isValid:!0,value:D}};
kKG=function(l){var D=aG9;D=D===void 0?t13:D;var U=l.columnsToShow||[],n=XWg(l.columnDimensions,l.columnsToShow,l.leftFloatingColumns,D);return U.map(function(y,A){var C=l.columns[y];if(C===void 0)throw Error("Qh");var h=n?n[A]:"";var b=l.getCustomTooltip?l.getCustomTooltip(y,C.headerTooltipParagraphs):C.headerTooltipParagraphs;var u=Svo(l,y);return{type:y,index:A,style:h,classes:u,headerName:C.headerName||"",headerIcon:C.headerIcon,headerTooltipParagraphs:b||[],headerTooltipHelpContext:C.headerTooltipHelpContext,
sortOrders:C.sortOrders||[],selectionState:C.isSelectionCheckbox?l.selectionState:void 0}})};
Svo=function(l,D){var U=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],n=l.columns[D];if(n===void 0)return"";var y=U.includes("DEFAULTS")&&n.cssClass?[n.cssClass]:[];if(U.includes("SORTING")){n.sortOrders&&n.sortOrders.length&&y.push("sortable");if(l.sorting&&l.sorting.columnType===D)a:switch(l.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var A="column-sorted";break a;default:A=""}else A="";A&&y.push(A)}U.includes("FLOATING")&&(D=l.columnsToShow.indexOf(D),l.leftFloatingColumns&&D<l.leftFloatingColumns&&
y.push("floating-column"),l.leftFloatingColumns&&D===l.leftFloatingColumns-1&&y.push("last-floating-column"));U.includes("RIGHT_ALIGN")&&n.rightAlignHeader&&y.push("right-align");return y.filter(function(C){return C}).join(" ")};
XWg=function(l,D,U,n){U=U===void 0?0:U;n=n===void 0?t13:n;if(l){var y=[],A=0;d5c(l,D,n).forEach(function(C,h){var b="min-width:"+C.minWidth+"px;padding-left:"+C.paddingLeft+"px;padding-right:"+C.paddingRight+"px;flex:"+C.flexGrow+" 0 "+C.minWidth+"px;";C.maxWidth!==Infinity&&(b=[b,"max-width:"+C.maxWidth+"px;"].join(""));A>0&&h<U&&(b=[b,"left:"+A+"px;"].join(""));y.push(b);A+=C.minWidth+C.paddingLeft+C.paddingRight});
return y}};
d5c=function(l,D,U){U=U===void 0?t13:U;return D.map(function(n,y){n=l&&l[n]||{};var A=y===0?U.paddingLeftFirstColumn:U.padding;n.paddingLeft!==void 0&&(A=n.paddingLeft);y=y===D.length-1?U.paddingRightLastColumn:U.padding;n.paddingRight!==void 0&&(y=n.paddingRight);return{paddingLeft:A,paddingRight:y,minWidth:n.minWidth!==void 0?n.minWidth:U.minWidth,maxWidth:n.maxWidth!==void 0?n.maxWidth:U.maxWidth,flexGrow:n.flexGrow!==void 0?n.flexGrow:U.flexGrow}})};
KAs=function(l){var D=l.reduce(function(n,y){var A=y.columnId,C={};y.headerText&&(C.headerName=_.Nl(y.headerText));y.rightAlignHeader&&(C.rightAlignHeader=y.rightAlignHeader);var h;if((h=y.headerIcon)==null?0:h.iconType)C.headerIcon=_.UV(y.headerIcon.iconType);n[A]=C;return n},{}),U=l.filter(function(n){return!n.hideColumn}).map(function(n){return n.columnId});
l=l.filter(function(n){return!!n.dimensions}).reduce(function(n,y){n[y.columnId]=y.dimensions;
return n},{});
return{columns:D,columnsToShow:U,columnDimensions:l}};
_.cDc=function(l){return l?l.simpleText?l.simpleText:l.runs?l.runs.map(function(D){return D.text}).join(""):"":""};
wWg=function(l){var D=l.data;var U=l.onTap;var n=l.isSelected;var y=l.onFocusIn;if(!D)return{};l=pWK(D);n===void 0&&(n=D==null?void 0:D.isSelected);var A;return{text:x5l(D,l),startIcon:(A=D.icon)==null?void 0:A.iconType,state:n?0:2,type:0,style:jX_(D),onTap:FAc(D,U),accessibilityLabel:oDN(D,l),onFocusIn:function(){return y==null?void 0:y()}}};
x5l=function(l,D){if(!D)return l.text?_.cDc(l.text):void 0};
jX_=function(l){var D;switch((D=l.style)==null?void 0:D.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
FAc=function(l,D){return function(U){D==null||D(U,l)}};
pWK=function(l){l=l.style&&l.style.styleType;return!nJd&&l==="STYLE_EXPLORE_LAUNCHER_CHIP"};
oDN=function(l,D){if(D){var U,n,y;return(y=(U=l.accessibilityData)==null?void 0:(n=U.accessibilityData)==null?void 0:n.label)!=null?y:x5l(l,!1)}};
rDo=function(){var l;return[function(D,U,n){return _.O9(l,D,U,n)},
function(D){l=D}]};
zTg=function(l,D){return _.yT(l.entities,"chipEntity",D)};
$5l=function(l,D,U,n){return function(){var y=fGB.has(l.displayType)&&l.selected,A=y&&l.deselectCommand?l.deselectCommand:l.tapCommand;!A||y&&n||_.dh(A,{form:{element:D==null?void 0:D.value}});U==null||U()}};
sXc=function(l,D){if(l=l.onUpdateText){var U;l=(U=_.M(l,No_))==null?void 0:U.stepId}else l=void 0;U=l;D=D==null?void 0:D.stepStates;if(U&&D){var n,y;return(n=D[U])==null?void 0:(y=n.userQuery)==null?void 0:y.userQuery}};
BF=function(l){return{signalAction:{signal:l}}};
IGc=function(){return _.H3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?EDg:_.Tod};
HQc=function(l,D){l=l===void 0?"SOFT_RELOAD_PAGE":l;D=D===void 0?49504:D;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.H6(_.C3("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:D}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:l}}]}}}};
YvC=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.H6(_.C3("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:IGc()}};
OQ_=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.H6(_.C3("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:IGc()}};
V13=function(l,D){var U=_.H6(_.C3("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),n=_.H6(_.C3("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),y={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.H6(_.C3("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};y.serviceEndpoint=l?l:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[BF("SOFT_RELOAD_PAGE")]}};return{title:U,bodyText:n,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:y},
style:{value:D!=null?D:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
lIN=function(l){l=l===void 0?{}:l;return{title:_.H6(l.localizedZeroStateTitleText===void 0?"":l.localizedZeroStateTitleText),bodyText:_.H6(l.localizedZeroStateMessage===void 0?"":l.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.H6(l.localizedZeroStateButtonText===void 0?"":l.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[iWB]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
URo=function(l){l=l===void 0?{}:l;return{title:_.H6(l.localizedOptInBannerTitleText===void 0?"":l.localizedOptInBannerTitleText),titleLength:19,subtitle:_.H6(l.localizedOptInMessage===void 0?"":l.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.H6(_.C3("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:_.H6(_.C3("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:[DRo]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
As3=function(l,D){var U=D=D===void 0?{}:D;D=U.offlineTitleText===void 0?"":U.offlineTitleText;var n=U.offlineDescriptionText===void 0?"":U.offlineDescriptionText,y=U.formattedSupplementalText,A=U.actionButtonText===void 0?"":U.actionButtonText,C=U.titleText===void 0?"":U.titleText;U=U.descriptionText===void 0?"":U.descriptionText;var h={title:A,accessibilityText:A,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};l||(C=D,U=n,h={title:A,accessibilityText:A,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.H6(C),titleLength:C.length,overrideTitleMaxFontSize:30,subtitle:_.H6(U),supplementalText:y,primaryButton:{buttonViewModel:h},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[nI3]},darkTileImage:{thumbnails:[ysG]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.CkG=function(l,D,U,n,y,A,C,h,b,u,Q){y=y===void 0?!1:y;A=A===void 0?!1:A;C=C===void 0?0:C;h=h===void 0?-Infinity:h;b=b===void 0?!1:b;u=u===void 0?!1:u;Q=Q===void 0?!1:Q;var G=[],J=_.H6(_.C3("SMART_DOWNLOADS",void 0,"Smart downloads")),L=_.H6(WT$(C,h,l.length));h=C=void 0;u?C={statementBannerRenderer:As3(Q,n)}:y?l.length>0?h=Bql(l,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.q("kevlar_manual_downloads_above"),J,L):b?h={alertBannerViewModel:{heading:{content:U.localizedOptInBannerTitleText===
void 0?"":U.localizedOptInBannerTitleText},body:{content:U.localizedPromptMessage===void 0?"":U.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.C3("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.C3("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:_.RZ$}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:A&&(h={backgroundPromoRenderer:{bodyText:_.H6(_.C3("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
A&&(h={alertBannerViewModel:{heading:{content:U.localizedOptInBannerTitleText===void 0?"":U.localizedOptInBannerTitleText},body:{content:U.localizedOptInMessage===void 0?"":U.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.C3("TURN_ON",void 0,"Turn on"),accessibilityText:_.C3("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}}}}}});U=_.H6(_.C3("YOUR_DOWNLOADS",void 0,"Your downloads"));n=void 0;D.length>0?(n=void 0,_.q("kevlar_display_downloads_numbers")&&(n=_.H6(_.hJ("VIDEO_COUNT",D.length))),n=Bql(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,U,n)):y||l.length||
u||(n={backgroundPromoRenderer:{bodyText:_.H6(_.C3("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}}}});C?G.push({richSectionRenderer:{content:C}}):h&&!_.q("kevlar_manual_downloads_above")&&G.push({richSectionRenderer:{content:h,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
n&&G.push({richSectionRenderer:{content:n,loggingDirectives:{clientVeSpec:{uiType:51721}}}});h&&_.q("kevlar_manual_downloads_above")&&G.push({richSectionRenderer:{content:h,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(D.length>0||y&&l.length>0&&!u)&&G.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.H6(_.C3("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:G}};
_.Pk_=function(l){return hD9(l,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.bWo=function(l){return hD9(l,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
hD9=function(l,D){var U=[];l=Bql(l,D,!0);U.push({richSectionRenderer:{content:l}});return{contents:U}};
Bql=function(l,D,U,n,y){U=U===void 0?!1:U;var A="RESPONSIVE_SIZE_STANDARD";_.q("kevlar_standard_rich_grid_on_offline_home")&&D==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?A="RESPONSIVE_SIZE_STANDARD":_.q("kevlar_modern_downloads_compact")?A="RESPONSIVE_SIZE_COMPACT":_.q("kevlar_modern_downloads_extra_compact")?A="RESPONSIVE_SIZE_EXTRA_COMPACT":_.q("kevlar_modern_downloads_tiny")&&(A="RESPONSIVE_SIZE_TINY");l={isExpanded:U,contents:C4(l),entitySelectorType:D,responsiveContainerConfiguration:{responsiveSize:A}};
n&&(l.title=n);y&&(l.subtitle=y);U||(_.q("kevlar_smart_downloads_show_more_button")?(l.showMoreButton={buttonRenderer:{accessibility:{label:_.C3("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.H6(_.C3("SHOW_MORE",void 0,"Show more"))}},l.showLessButton={buttonRenderer:{accessibility:{label:_.C3("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.H6(_.C3("SHOW_LESS",void 0,"Show less"))}}):(l.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.C3("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}}}},l.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.C3("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}}}},l.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.C3("VIEW_ALL",void 0,"View all"),accessibilityText:_.C3("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:_.To("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:l}};
C4=function(l){var D=[];l=_.B(l);for(var U=l.next();!U.done;U=l.next())if(U=U.value,y9C(U)){var n=D,y=n.push;var A=void 0;if(U==null?0:(A=U.videoEntity)==null?0:A.videoId){A=p7(_.EB().getState(),U.videoEntity.videoId);var C=_.EB().getState();var h=_.n7(U.videoEntity.videoId,"mainVideoEntity");C=!!_.Ml(C.entities)[h];C={videoId:U.videoEntity.videoId,title:YS(U.videoEntity.title),shortBylineText:YS(U.channelEntity.title),thumbnail:U.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:C&&_.q("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:x3N(U.videoEntity.videoId,A,U.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.C3("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};U.videoEntity.lengthSeconds&&(C.thumbnailOverlays=d2$(U.videoEntity.lengthSeconds,A));C.isWatched=A>0;_.q("kevlar_modern_downloads_page")&&(C.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:U.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.C3("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},C.badges=void 0);U=C}else U={};y.call(n,{richItemRenderer:{content:{videoRenderer:U},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(nkl(U)){n=D;y=n.push;var b=h=A=void 0,u=void 0,Q=void 0,G=void 0,J=void 0,L=void 0,R=void 0,a=void 0,S=void 0,d=void 0;C=U.mainPlaylistEntity.playlistId;var c=U==null?void 0:(d=U.mainPlaylistEntity)==null?void 0:(S=d.thumbnailStyleData)==null?void 0:(a=S[0])==null?void 0:(R=a.value)==null?void 0:(L=R.collageThumbnail)==
null?void 0:L.coverThumbnail;if(C&&c){L=jZg(C);!_.q("enable_offline_playlist_page")&&(U==null?0:(J=U.mainPlaylistEntity)==null?0:J.videos)&&(J=U==null?void 0:(G=U.mainPlaylistEntity)==null?void 0:(Q=G.videos)==null?void 0:Q[0],Q=_.lQ(J).entityId,Q=JSON.parse(Q).videoId,Q!==void 0&&(L=p7(_.EB().getState(),Q),L=_.Ie(Q,C,void 0,void 0,L)));Q=[];if(U==null?0:(u=U.mainPlaylistEntity)==null?0:(b=u.videos)==null?0:b.length)b=bFg(),u=Object,Q=u.assign,G=(G=PtB(U==null?void 0:U.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.H6(G),icon:{iconType:"PLAYLISTS"}}}:void 0,Q=[b,Q.call(u,{},(h=G)!=null?h:{})];U={playlistId:C,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:c}},navigationEndpoint:L,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:Q,title:YS(U.mainPlaylistEntity.title),shortBylineText:YS(U==null?void 0:(A=U.channelEntity)==null?void 0:A.title),badges:[{metadataBadgeRenderer:{label:_.C3("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.q("kevlar_modern_downloads_page")&&(U.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:gI9,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:C,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.C3("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},U.badges=void 0)}else U=void 0;y.call(n,{richItemRenderer:{content:{playlistRenderer:U},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return D};
WT$=function(l,D,U){l=l?uF9(l):"";D!==void 0&&isFinite(D)?D===0?D=_.C3("UPDATING",void 0,"Updating..."):(D=kW9(new Date(D),new Date),D=_.C3("UPDATED_TIME",{relative_time:D},"Updated "+D)):D="";var n="";l&&D&&(n=" \u2022 ");if(U&&_.q("kevlar_display_downloads_numbers")){U=_.hJ("VIDEO_COUNT",U);if(l||D)n=" \u2022 ";return U+n+l+n+D}return l+n+D};
vIN=function(l){return HdG(l.entities).length};
_.Q0B=function(l,D,U){var n=cr(l.responsiveSize),y;l=!((y=l.responsiveMap)==null||!y.some(function(A){return A.containerSize==="CONTAINER_SIZE_NARROW"&&A.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:U,containerWidth:D,sizing:n,enableFullBleedForSingleCol:!1,isCompactList:n==="COMPACT"&&l}};
Guo=function(l,D){return _.yT(l.entities,"votingEntity",D)};
hB=function(l){if(l){var D;return((D=_.Jc().resolve(_.G8(_.jQ)))==null?0:D())?l.darkTheme:l.lightTheme}};
Jsg=function(l,D){if(l.simpleText)return Object.assign({},l,{simpleText:c9(l.simpleText,D)});if(!l.runs)return l;for(var U=Object.assign({},l,{runs:[]}),n=0,y=_.B(l.runs),A=y.next();!A.done;A=y.next())if(A=A.value,A.text)if(n+A.text.length<=D)U.runs.push(A),n+=A.text.length;else return U.runs.push(Object.assign({},A,{text:c9(A.text,D-n)})),U;return l};
LTN=function(l,D){return _.yT(l.entities,"chipBarStateEntity",D)};
qKc=function(l){switch(l){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
MFG=function(l,D){return{triggeringElement:l,onDwellTriggeredFn:function(){var U={triggeringElement:l,loadVideoPreviewEventData:D},n=document.querySelector(".video-preview");n&&n.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:U}))},
onDwellEndFn:function(){var U=document.querySelector(".video-preview");U&&U.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
RDg=function(l,D){var U=_.Jc().resolve(_.G8(Rxg)),n=function(){var y=D();return U&&y?MFG(l.value,y):null};
_.$i(function(){var y=n();U&&y&&Promise.resolve().then(function(){U.registerElement(y)});
_.NV(function(){U&&y&&Promise.resolve().then(function(){_.kv(U,y)})})},"csPUge")};
eDN=function(l){var D=l.dataset.resizeObserverId;if(D)return D;D=""+ZWB++;return l.dataset.resizeObserverId=D};
mRl=function(l){l=_.B(l);for(var D=l.next();!D.done;D=l.next()){D=D.value;var U=eDN(D.target),n=Object.assign({},{target:D.target},PF.get(U));if(n!=null&&n.contentRect?n.contentRect.width!==D.contentRect.width||n.contentRect.height!==D.contentRect.height:1)for(PF.set(U,{borderBoxSize:D.borderBoxSize,contentBoxSize:D.contentBoxSize,contentRect:D.contentRect,devicePixelContentBoxSize:D.devicePixelContentBoxSize}),U=_.B(bq.get(U)||[]),n=U.next();!n.done;n=U.next())n=n.value,n(D)}};
tFG=function(l,D){var U=eDN(l);bq.has(U)||bq.set(U,new Set);bq.get(U).add(D);PF.has(U)&&D(Object.assign({},{target:l},PF.get(U)));gk||(gk=new aIo(mRl));D=gk;D.observe(l)};
Xt3=function(l,D){var U=eDN(l);bq.has(U)&&(bq.get(U).delete(D),bq.get(U).size===0&&(bq.delete(U),PF.delete(U),gk.unobserve(l),delete l.dataset.resizeObserverId));bq.size===0&&gk&&(gk.disconnect(),gk=void 0)};
kuG=function(l,D){var U=_.Jc().resolve(G7);return SK_.map(function(n){return U.observe(l,D,n)})};
dRg=function(l){var D=_.Jc().resolve(G7);l.forEach(function(U){D.unobserveByKey(U)})};
_.uq=function(l){var D=_.B(et9()),U=D.next().value,n=D.next().value,y=Object.assign({},KTs,l),A=csl(function(C){var h=C.contentRect.height;if((C=C.contentRect.width)||h||y.canHaveZeroSize)U.width()===C&&U.height()===h||n(U,{height:h,width:C})},y.throttleMs);
return[U,function(C){var h=[];y.useVisibilityObserver&&(h=kuG(C,function(b,u){requestAnimationFrame(function(){u==="visible"?tFG(C,A):Xt3(C,A)})}));
h.length||tFG(C,A);return function(){h.length&&(dRg(h),h.length=0);Xt3(C,A)}}]};
xRB=function(l,D,U,n,y){l=D?l.switchOffCommand:l.switchOnCommand;if(n&&y)pt9(l,U,y);else{var A,C;(A=_.SQ({elementsCommand:l}))==null||(C=A.onclick)==null||C.call(A,U)}};
pt9=function(l,D,U){l=_.SQ({elementsCommand:l,additionalCommandArgs:{commandController:{onSuccess:function(){U(!1)},
onServerError:function(){U(!1)}}}});
if(l==null?0:l.onclick)l.onclick(D),U(!0)};
FTC=function(l){if(l)return _.M(l,j0G)};
oIG=function(l){if(l)switch(l){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
wtN=function(l,D){if(!((l==null?0:l.entitySelectorType)&&(l==null?0:l.entityKey)))return{};switch(l.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.q("enable_web_shorts_captions_language_command")){var U;var n=(U=_.Ai())==null?void 0:U.getOption("captions","track");var y,A=typeof(n==null?void 0:n.translationLanguage)==="object"&&((y=n.translationLanguage)==null?void 0:y.languageName)||(n==null?void 0:n.displayName)||"";n={data:Object.assign({},
!!A&&{selectionText:{content:A}},!!A&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof n==="undefined"})}}else n={};return n;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.q("web_shorts_audio_track_picker")){var C;y=((C=_.Ai())==null?void 0:C.getAudioTrack())||void 0;U=y==null?void 0:(A=y.getLanguageInfo())==null?void 0:A.getName();y={data:Object.assign({},{selectionText:{content:U}},U&&!(y==null?0:(n=y.getLanguageInfo())==
null?0:n.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else y={};return y;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return n=l!=null&&l.entityKey?(n=_.Um(D,l.entityKey))?{isHidden:(n==null?void 0:n.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},n;default:return{}}};
rsc=function(l,D){return function(U){var n=function(y){_.ZX(_.RT(y),U,D)||l(y)};
U.addEventListener("click",n);return function(){U.removeEventListener("click",n)}}};
_.zDo=function(l){return function(){return _.M(l(),_.vF)}};
fIC=function(l){switch(l){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
$Rd=function(l){return fIC(l==null?void 0:l.all)};
Nq_=function(l){var D={};(l=l==null?void 0:l.padding)&&(D.padding=fIC(l.vertical)+"px "+fIC(l.horizontal)+"px");return D};
s0l=function(l){switch(l){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
EIc=function(l){switch(l){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
Tqo=function(l){switch(l){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
IIN=function(l,D){if(D)return{containerStyles:Nq_(D),itemStyles:function(U,n){var y={flex:"1"},A=D==null?void 0:D.flexDirection;b:switch(A){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":U=!!U;break b;default:U=!!n}U||(U=_.H3("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",A==="FLEX_DIRECTION_ROW"||A==="FLEX_DIRECTION_ROW_REVERSE"?(A=$Rd(D==null?void 0:D.gap)+"px",U?y["margin-left"]=A:y["margin-right"]=A):y["margin-bottom"]=$Rd(D==null?void 0:D.gap)+"px",y.flex=
"1");return y},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(D==null?void 0:D.flexDirection)==="FLEX_DIRECTION_ROW"||(D==null?void 0:D.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
HWC=function(l){return l<528?"CONTAINER_SIZE_NARROW":l<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
YKg=function(l,D){l=_.B(l.responsiveMap||[]);for(var U=l.next();!U.done;U=l.next())if(U=U.value,U.containerSize===D)return U.containerType};
_.OWC=function(l,D){if(D){var U=D.responsiveSize;l=HWC(l);var n=YKg(D,l);if(n&&U){a:{if(n==="CONTAINER_TYPE_VERTICAL_LIST")if(U==="RESPONSIVE_SIZE_STANDARD"){if(l!=="CONTAINER_SIZE_NARROW"){var y="50%";break a}}else{y=l==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}y=void 0}return{responsiveSize:U,containerSize:l,containerType:n,force16By9ThumbnailAspectRatio:!D.enableContentSpecificAspectRatio,contentPreviewWidth:y,fullbleed:(n==="CONTAINER_TYPE_VERTICAL_LIST"||n==="CONTAINER_TYPE_GRID")&&l===
"CONTAINER_SIZE_NARROW"&&!1}}}};
VFB=function(l,D){var U={};switch(D){case "CONTAINER_TYPE_VERTICAL_LIST":U["flex-direction"]="column";U.padding="0 "+l.margin+"px";break;case "CONTAINER_TYPE_GRID":U["flex-direction"]="row";U.flex="none";U["flex-wrap"]="wrap";U.width=l.maxContainerWidth?l.maxContainerWidth+l.gutter+"px":void 0;U.padding="0 "+(l.margin-l.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":U["flex-direction"]="row",U.flex="none",U["overflow-x"]="auto",U.width=l.maxContainerWidth?l.maxContainerWidth+"px":void 0,
U.padding="0 "+l.margin+"px"}return U};
ij_=function(l,D){if(D){var U=YKg(D,HWC(l));a:switch(U){case "CONTAINER_TYPE_GRID":var n=3;break a;default:n=1}n=_.Q0B(D,l,n);var y=_.Kq(n);return{containerLayoutConfig:_.OWC(l,D),containerStyles:VFB(y,U),itemStyles:function(A,C){A={};switch(U){case "CONTAINER_TYPE_VERTICAL_LIST":C||(A["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":A.width=y.itemWidth+"px";A["margin-right"]=y.gutter/2+"px";A["margin-left"]=y.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":A.width=y.itemWidth+
"px",A.flex="none",C||(A["margin-right"]=y.gutter+"px")}return A}}}};
y_l=function(l,D,U){if(D)return[lAC];switch(l){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Qd];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return U?[Qd]:[Du$,Qd];case "TRANSFER_STATE_PAUSED_BY_USER":return[Uu$,Qd];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[nLd,Qd];default:return[lAC]}};
A_l=function(l,D,U,n){return y_l(l,D,n).map(function(y){var A=y.text,C=y.iconType,h=y.videoAction;y=y.playlistAction;A=A?{content:A}:void 0;C=C&&{sources:[{clientResource:{imageName:C}}]};var b=(0,_.we.unsafeClone)(U);if(b){var u=_.M(b,_.Cq),Q=_.M(b,_.hi);u&&h?u.action=h:Q&&y&&(Q.action=y)}return{title:A,leadingImage:C,rendererContext:b&&{commandContext:{onTap:{innertubeCommand:b}}}}})};
W3o=function(l){l=_.eq(l.rendererContext);var D;return(D=_.M(l,_.hi))==null?void 0:D.playlistId};
BYs=function(l){var D;return(D=l.listItems)==null?void 0:D.some(function(U){var n;return _.mr((n=_.M(U,_.Gy))==null?void 0:n.rendererContext)})};
P1G=function(l){var D;return(D=l.listItems)==null?void 0:D.some(function(U){var n,y,A=(y=(n=_.M(U,C1o))==null?void 0:n.defaultListItem)!=null?y:U;U=_.M(A,_.Gy);return!!_.M(U==null?void 0:U.leadingAccessory,h79)})};
_.GM=function(l){var D=_.Jc().resolve(_.G8(_.jQ));return D!=null&&D()?l.darkThemeColorPalette:l.lightThemeColorPalette};
_.L4=function(l){return{primaryTextColor:JB(l,0),secondaryTextColor:JB(l,1),optionColor:JB(l,2),backgroundColor:JB(l,3),videoBackgroundColor:JB(l,4)}};
JB=function(l,D){if(l){switch(D){case 0:l=l.primaryTitleColor;break;case 1:l=l.secondaryTitleColor;break;case 2:l=l.surgeColor;break;case 3:l=l.section2Color;break;case 4:l=l.section3Color;break;default:return}if(l)return _.an(l)}};
uAC=function(l){var D=l.element;var U=l.veType;var n=l.storedVisualElement===void 0?null:l.storedVisualElement;var y=l.elementIndex===void 0?0:l.elementIndex;l=l.clientYouTubeData;var A=_.t6();A!==bjl&&(gLo.clear(),bjl=A);if(D.visualElement&&gLo.has(D.visualElement))return null;if(n&&gLo.has(n))return D.visualElement=n,null;U=_.Ce(_.he(),{veType:U,elementIndex:y,clientYouTubeData:l});if(!U)return null;D.visualElement=U;gLo.add(U);return U};
_.qd=function(l,D,U,n){U=U===void 0?null:U;n=n===void 0?xpc:n;var y=y===void 0?null:y;qD(function(){if(D){U instanceof Function&&(U=U());var A=uAC({element:D,veType:l,storedVisualElement:U,clientYouTubeData:void 0});A&&(ojc(D,y),n(A))}})};
vLB=function(l){return l?_.tu(l):""};
Q9N=function(l){return(l==null?void 0:l.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
GgK=function(l,D){return _.yT(l.entities,"videoOverviewAsyncDataEntity",D)};
J_9=function(l,D){var U;return"linear-gradient(to bottom, "+((U=D==null?void 0:D.map(function(n){var y=l?n.darkThemeColor:n.lightThemeColor;return y?_.tu(y)+" "+((n==null?void 0:n.startLocation)||0)*100+"%":"transparent"}))==null?void 0:U.join(", "))+")"};
L3G=function(l,D,U,n,y){if(!((n==null?0:n.height)&&(n==null?0:n.width)))return{size:0};var A=n.width;n=n.height;if(y)return D==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||D==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&A>n?{size:312/$z9}:D==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(U!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||l!==1&&l!==2||D!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&D!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&D!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(D==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||D==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||n===A)switch(l){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(D==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||n>A)switch(l){case 1:case 3:return{size:240*fTC};default:return{size:360*fTC}}switch(l){case 1:case 2:return{size:1/$z9*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.qTB=function(l){if(!("matchMedia"in window))return _.nt(Error("Rh")),function(){return!1};
var D=window.matchMedia(l);l=_.B(_.aw(D.matches,void 0,"jLJc8e"));var U=l.next().value,n=l.next().value,y=function(A){n(A.matches)};
D.addEventListener?(D.addEventListener("change",y),_.NV(function(){D.removeEventListener("change",y)})):D.addListener&&(D.addListener(y),_.NV(function(){D.removeListener(y)}));
return U};
MRC=function(l){return l==="IMAGE_BANNER_STYLE_INSET"||l==="IMAGE_BANNER_STYLE_UNKNOWN"};
R73=function(){if(!("matchMedia"in window))return _.nt(Error("Rh")),function(){return 0};
var l=sZ(function(){return window.matchMedia("(max-width: 527.9px)")}),D=sZ(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),U=sZ(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),n=sZ(function(){return window.matchMedia("(min-width: 1024px)")}),y=_.B(_.aw(l.matches,void 0,"og9kEc")),A=y.next().value,C=y.next().value;
y=_.B(_.aw(D.matches,void 0,"ybDWCb"));var h=y.next().value,b=y.next().value;y=_.B(_.aw(U.matches,void 0,"o0Gfh"));var u=y.next().value,Q=y.next().value;y=_.B(_.aw(n.matches,void 0,"yqUUgd"));var G=y.next().value,J=y.next().value,L=sZ(function(){return function(d){C(d.matches)}}),R=sZ(function(){return function(d){b(d.matches)}}),a=sZ(function(){return function(d){Q(d.matches)}}),S=sZ(function(){return function(d){J(d.matches)}});
_.N1(function(){l.addEventListener?(l.addEventListener("change",L),D.addEventListener("change",R),U.addEventListener("change",a),n.addEventListener("change",S)):l.addListener&&(l.addListener(L),D.addListener(R),U.addListener(a),n.addListener(S));_.NV(function(){l.removeEventListener?(l.removeEventListener("change",L),D.removeEventListener("change",R),U.removeEventListener("change",a),n.removeEventListener("change",S)):l.removeListener&&(l.removeListener(L),D.removeListener(R),U.removeListener(a),
n.removeListener(S))})});
return function(){return A()?1:h()?2:u()?3:G()?4:0}};
Zj$=function(l){var D=0;l=_.B([l.title,l.metadata,l.actions,l.description,l.attribution]);for(var U=l.next();!U.done;U=l.next())U.value&&D++;return D};
e7N=function(l){return l===1||l===2?1:0};
aAc=function(l){l=(new mu_).parse(l);return(new KS).render(l).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(D){var U=D.split(":").map(Number),n=0,y=0;if(U.length===3)U=_.B(U),n=U.next().value,y=U.next().value,U=U.next().value;else if(U.length===2)U=_.B(U),y=U.next().value,U=U.next().value;else if(U.length===1)U=_.B(U).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(n*3600+y*60+U)+'" role="button">'+D+"</span>"})};
tRN=function(l){l=_.B(l.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var D=l.next(),U={};!D.done;U={clickHandler$jscomp$5:void 0},D=l.next()){D=D.value;U.clickHandler$jscomp$5=function(y){y=Number(y.target.getAttribute("data-time"));if(isNaN(y))throw Error("Th");var A;(A=_.Ai())==null||A.seekTo(y,!0)};
var n=function(y){return function(A){A.key!=="Enter"&&A.key!=="Space"||(0,y.clickHandler$jscomp$5)(A)}}(U);
D.setAttribute("tabindex","0");D.removeEventListener("click",U.clickHandler$jscomp$5);D.removeEventListener("keydown",n);D.addEventListener("click",U.clickHandler$jscomp$5);D.addEventListener("keydown",n)}};
XCB=function(){return _.g("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.g(Md,{percentWidth:100}),_.g(Md,{animationDelay:200}),_.g(Md,{animationDelay:400}),_.g(Md,{animationDelay:600}),_.g(Md,{animationDelay:800,percentWidth:60}),_.g("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.g(Md,{percentWidth:100}),_.g(Md,{animationDelay:200}),_.g(Md,{animationDelay:400}),_.g(Md,{animationDelay:600,percentWidth:50}))};
Md=function(l){return _.g("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(l.percentWidth===void 0?100:l.percentWidth)+"%"},_.g("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(l.animationDelay===void 0?0:l.animationDelay)+"ms"}))};
STl=function(){var l=_.B(_.aw(function(){return""},void 0,"dXJHWc")),D=l.next().value;
return[function(){return D()()},
l.next().value]};
kgN=function(l,D){l=l?uF9(l):"";D!==void 0&&isFinite(D)?D===0?D=_.C3("UPDATING",void 0,"Updating..."):(D=kW9(new Date(D),new Date),D=_.C3("UPDATED_TIME",{relative_time:D},"Updated "+D)):D="";var U="";l&&D&&(U=" \u2022 ");return _.H6(l+U+D)};
c_o=function(l,D,U,n,y,A){D=D===void 0?0:D;var C=duG[D],h=C.title,b=C.iconType,u=C.topButtonRenderer,Q=C.sectionClientVE;C=C.videoClientVE;var G;if(D!==1||l.length){U=[];l=_.B(l);for(n=l.next();!n.done;n=l.next()){var J=n.value;if(y9C(J))U.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:J.videoEntity.videoId,title:YS(J.videoEntity.title),shortBylineText:YS(J.channelEntity.title),thumbnail:J.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:J.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.C3("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:C}}}}}});else if(nkl(J)){n=U;var L=n.push;var R=void 0,a=void 0,S=void 0,d=void 0,c=void 0,N=void 0,z=void 0,f=void 0,I=J.mainPlaylistEntity.playlistId,iG=J==null?void 0:(f=J.mainPlaylistEntity)==null?void 0:(z=f.thumbnailStyleData)==null?void 0:(N=z[0])==null?void 0:(c=N.value)==null?void 0:(d=c.collageThumbnail)==null?void 0:d.coverThumbnail;d=jZg(I);if(!_.q("enable_offline_playlist_page")&&
(J==null?0:(S=J.mainPlaylistEntity)==null?0:S.videos)){b:{S=J==null?void 0:(a=J.mainPlaylistEntity)==null?void 0:a.videos;a=_.EB().getState().entities;if(S!=null&&S.length&&a)for(S=_.B(S),c=S.next();!c.done;c=S.next())if(c=_.lQ(c.value).entityId,(c=JSON.parse(c).videoId)&&TvG(a,c)==="TRANSFER_STATE_COMPLETE"){a=c;break b}a=""}a!==void 0&&(d=p7(_.EB().getState(),a),d=_.Ie(a,I,void 0,void 0,d))}a=oM$(_.C3("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),jZg(I));J=I&&iG&&a?{playlistId:I,navigationEndpoint:d,
viewPlaylistText:a,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:iG}},title:YS(J.mainPlaylistEntity.title),shortBylineText:YS(J==null?void 0:(R=J.channelEntity)==null?void 0:R.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:K33,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:I,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.C3("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:C}}}:
void 0;L.call(n,{gridPlaylistRenderer:J})}}C={gridRenderer:{items:U}};D===1&&(G=kgN(y,A))}else if(n){var CC=_.H6((L=U==null?void 0:U.localizedPromptMessage)!=null?L:"");C={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.H6(_.C3("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.RZ$}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.H6(_.C3("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};G=kgN(y,A)}else CC=_.H6(_.C3("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
C={};return{contents:[{shelfRenderer:{title:h,titleAnnotation:G,icon:{iconType:b},subtitle:CC,content:C,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:u}]}}}}],loggingDirectives:{clientVeSpec:{uiType:Q}}}};
pCN=function(l,D,U,n,y,A,C,h,b,u,Q){U=U===void 0?{}:U;n=n===void 0?{}:n;y=y===void 0?!1:y;A=A===void 0?!1:A;C=C===void 0?!1:C;h=h===void 0?!1:h;b=b===void 0?!1:b;u=u===void 0?0:u;Q=Q===void 0?-Infinity:Q;if(!(D.length||l.length||y||h))return A?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:lIN(U)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.H6(_.C3("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 G=[];l.length&&G.push(c_o(l,0));h?G.push({contents:[{statementBannerRenderer:As3(b,n)}]}):y?G.push(c_o(D,1,U,C,u,Q)):A&&G.push({contents:[{statementBannerRenderer:URo(U)}]});(y&&D.length||l.length)&&G.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.H6(_.C3("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 G.map(function(J){return{itemSectionRenderer:J}})};
Rz=function(l,D){if(typeof l!=="object")return null;l=_.B(Object.entries(l));for(var U=l.next();!U.done;U=l.next()){var n=_.B(U.value);U=n.next().value;n=n.next().value;if(U===D)return U;if(n=Rz(n,D))return U+"."+n}return null};
Zf=function(l){var D=l.content;return(l=l.styleRuns)&&D?{runs:l.map(function(U){var n={text:D.slice(U.startIndex,U.startIndex+U.length)};U.fontColor&&(n.textColor=U.fontColor);return n})}:{simpleText:D}};
F3N=function(l,D,U,n){var y=xus;n&&(l.quantity=n);if(!l.quantity||!l.maxQuantity)return{};n=l.minusButton;var A=l.plusButton,C,h,b,u;return{value:l.quantity,maxValue:l.maxQuantity,onChangeCallback:function(Q){y(l,Q)},
minusLabel:(C=_.M(n,j9_))==null?void 0:C.label,minimumReachedLabel:(h=_.M(n,j9_))==null?void 0:h.limitReachedLabel,plusLabel:(b=_.M(A,j9_))==null?void 0:b.label,maximumReachedLabel:(u=_.M(A,j9_))==null?void 0:u.limitReachedLabel,disabled:D,onRemoveCommand:U}};
xus=function(l,D){var U=l.quantityIncrementerEntityKey;if(U){var n={};n.quantity=D;_.$u(_.et("quantityIncrementerEntity",U,n));l.onChangeCommand&&_.dh(l.onChangeCommand)}};
oL_=function(l){if(l)return l===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(l).overflowY)?l:oL_(l.parentElement)};
z73=function(l,D){(l=wCd(l))&&((_.q("enable_mini_app_command_handler_mweb_fix")?0:D)?r_g.push({command:l,sourceData:{},commandContext:void 0}):_.Jc().resolve(_.qK).resolveCommand(l))};
wCd=function(l){return _.M(l,_.aO)};
fAC=function(){var l=window.performance.timeOrigin+window.performance.now(),D=(new _.mG).setSeconds(l/1E9);return _.iw(D,2,_.B2(l%1E9),0)};
NY9=function(l,D){var U;l=(U=_.M(_.M(l,_.aO),$u$))==null?void 0:U.methodName;var n,y;(U=window.youtubewebview||((n=window.webkit)==null?void 0:(y=n.messageHandlers)==null?void 0:y.youtubewebview))&&l&&(n=new az,l=_.c7(n,1,l),l=_.c2(l.JSC$12628_serializeBinary()),D=_.c2(D),U.postMessage(l+","+D))};
tB=function(l,D){var U=_.M(_.M(l,_.aO),$u$);U&&(D&&(U.serializedAdditionalMetadata=_.c2(D)),z73(l,!0))};
s9_=function(l){switch(l){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"}};
EL$=function(){return!!_.H3("ID_TOKEN")};
Hjd=function(l){return l instanceof Error&&l.cause instanceof TYd&&l.cause.rpcErrorCode!==void 0?!IA$.includes(l.cause.rpcErrorCode):!0};
Ojd=function(){return _.hc(YT3,{authuser:""+(_.H3("SESSION_INDEX")||0)})};
XZ=function(l,D,U,n){U=U===void 0?"MINI_APP_SDK_API_UNSPECIFIED":U;n=n===void 0?"":n;var y=new _.rc;U={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:n,sdkApi:U};l instanceof Error&&(y.message=l.message,y.name=l.name,l.cause instanceof TYd&&l.cause.rpcErrorCode!==void 0&&(U.rpcErrorCode=l.cause.rpcErrorCode));var A;(A=D.onError)==null||A.call(D,{loggingError:y,metadata:U})};
iso=function(l,D,U,n){switch(l){case "MINI_APP_SOURCE_GAMESNACKS":return new St(D,U,n);default:return new VRg(D,U,n)}};
lhl=function(l){switch(l){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"}};
DLN=function(l){switch(l){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"}};
UL9=function(l){switch(l){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"}};
n_g=function(){return Math.floor(Math.random()*4)+1};
yE9=function(l,D,U,n){l=_.B(Object.entries(l));for(var y=l.next(),A={};!y.done;A={message$jscomp$995:void 0},y=l.next()){var C=_.B(y.value);y=C.next().value;C=C.next().value;A.message$jscomp$995=C;D.push(setTimeout(function(h){return function(){n(!1);U(h.message$jscomp$995.text)}}(A),A.message$jscomp$995.delayMs));
Number(y)>0&&D.push(setTimeout(function(){n(!0)},A.message$jscomp$995.delayMs-400))}};
AEs=function(l,D){var U=U===void 0?xpc:U;_.q("mweb_fix_monitor_visibility_after_render")?l&&qD(function(){ojc(l,D,U)}):qD(function(){ojc(l,D,U)})};
W9o=function(l,D){var U=document.createElement("ytd-engagement-panel-section-list-renderer");U.data=l;var n=D!=null?D:{};l=n.isPersistentPanel;D=n.hideDelayMs;n=n.overscrollContain;l=Object.assign({},l&&{isPersistentPanel:l},D&&{hideDelayMs:D},n&&{overscrollContain:n});Object.assign(U,l);return U};
Prd=function(l){BK_||(BK_=CrN(new _.oJ(1,void 0,void 0,hjC),0));var D=BK_.format(Math.floor(l));D=js==="be"||js==="bg"||js==="es"||js==="et"||js==="hu"||js==="ka"||js==="lv"||js==="pl"||js==="pt-PT"||js==="sq"?D.replace(new RegExp("^(\\d)"+hjC.GROUP_SEP.replace(".","\\.")+"(\\d+("+hjC.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):D;return l>=1E3&&l<=9999&&D[1]==="."&&(js==="sl"||js==="it")?D.replace(".",""):D};
uTd=function(l,D,U,n){if(l)return n=n||l.likeStatus,D?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:n==="LIKE",isDisabled:!l.likesAllowed,defaultIcon:{iconType:U},defaultText:n==="LIKE"?l.likeCountWithUnlikeText:l.likeCountText,toggledText:n==="LIKE"?l.likeCountText:l.likeCountWithLikeText,defaultNavigationEndpoint:bsC(l,"LIKE"),defaultServiceEndpoint:g_$(l,"LIKE"),toggledServiceEndpoint:g_$(l,"INDIFFERENT"),defaultTooltip:_.Nl(l.likeCountTooltipText),toggledTooltip:_.Nl(l.likeCountTooltipText),
targetId:l.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:n==="DISLIKE",isDisabled:!l.likesAllowed,defaultIcon:{iconType:U},defaultText:n==="DISLIKE"?l.dislikeCountWithUndislikeText:l.dislikeCountText,toggledText:n==="DISLIKE"?l.dislikeCountText:l.dislikeCountWithDislikeText,defaultNavigationEndpoint:bsC(l,"DISLIKE"),defaultServiceEndpoint:g_$(l,"DISLIKE"),toggledServiceEndpoint:g_$(l,"INDIFFERENT"),defaultTooltip:_.Nl(l.dislikeCountTooltipText),
toggledTooltip:_.Nl(l.dislikeCountTooltipText)}};
bsC=function(l,D){if(D==="LIKE")return l.likeCommand;if(D==="DISLIKE")return l.dislikeNavigationEndpoint};
g_$=function(l,D){var U;return(U=l.serviceEndpoints)==null?void 0:U.find(function(n){var y;return((y=_.M(n,_.kX))==null?void 0:y.status)===D})};
_.GBN=function(l,D,U){return window.spf&&!_.q("web_disable_spfjs_client")?v_9(l,D,U):QFc(l,D)};
v_9=function(l,D,U){var n=null,y=(new _.X0(function(A,C){var h={};if(D){h.method=D.method;var b=D.postParams||{};Qes(l,D)&&(b[_.H3("XSRF_FIELD_NAME")]=_.H3("XSRF_TOKEN"));h.postData=_.Kt(b);D.type&&(h.type=D.type);b=D.headers}h.headers=hQG(l,b);_.q("debug_forward_web_query_parameters")&&(l=_.uI$(l,window.location.search));h.experimental_headers=h.headers;h.onError=function(u){u.err&&u.xhr&&(u.err.params={url:u.xhr.responseURL,response:u.xhr.responseText.substr(0,64)});C(u.err)};
h.onPartDone=function(u){U&&U.call(null,u.part)};
h.onDone=function(u){var Q=JEN(u.response,"xsrf_token");ul(window.location.href,l)&&Q&&_.IN("XSRF_TOKEN",Q);if(Q=JEN(u.response,"service_worker_killswitch"))_.IN("SERVICE_WORKER_KILLSWITCH",Q),Qbc();A(u.response)};
n=spf.request(l,h)})).then(L9G);
y.thenCatch(function(A){var C=A instanceof _.dk,h=A&&A.hasOwnProperty("params")&&A.params.response?A.params.response:"";A instanceof Error&&(h?C?VZd(A):h===')]}\'\n{"reload":"now"}'?VZd(A):(qs3(A,l,h),MoK(A,h)?_.II(A):_.EU(A)):VZd(A));n&&n.abort()});
return y};
L9G=function(l){if(l.type==="multipart"){var D=l.timing;l=l.parts.reduce(function(U,n){Object.assign(U,n);return U},{});
l.timing=l.timing||{};Object.assign(l.timing,D);l.type="reduced"}return l};
QFc=function(l,D){D=D===void 0?{}:D;var U=null,n=new _.X0(function(y,A){D.onFinish=function(C){if(C.readyState===XMLHttpRequest.DONE)if(C.status===200){if(C.responseType!=="json"){var h=C.response;h.substring(0,5)===")]}'\n"&&(h=h.substring(5));try{var b=JSON.parse(h)}catch(u){b=u}}else b=C.response;b instanceof Error?A(b):(h=JEN(b,"xsrf_token"),ul(window.location.href,l)&&h&&_.IN("XSRF_TOKEN",h),C=C.responseURL,window.performance&&window.performance.getEntriesByName?(h=window.performance.getEntriesByName(C).pop())?
C={responseStart:(0,_.J3)()-(h.responseEnd-h.responseStart)}:(Math.random()<.01&&(h=Error("ei"),h.params=C,_.II(h)),C={responseStart:-1}):C={responseStart:0},b.timing=b.timing||{},Object.assign(b.timing,C),y(b))}else A(Error("di`"+C.status))};
(U=_.dc(l,D))||A(Error("di`"+U.status))});
n.thenCatch(function(y){y instanceof Error&&(qs3(y,l),MoK(y)&&(y.level="WARNING"))});
_.q("cancel_pending_navs")&&n.thenCatch(function(){U.abort()});
return n};
JEN=function(l,D){var U=l[D],n=l.parts;l.type==="multipart"&&n&&(U=(l=n.find(function(y){return D in y}))&&l[D]);
return U};
qs3=function(l,D,U){var n=l.message||"";D={original:n,url:D};if(U)if(n=n.match(/position:?\s*(\d+)/)){n=n&&Number(n[1])?Number(n[1]):0;var y=Math.max(n-25,0);D.position=n;D.response=U.substring(y,n+25)}else D.response=U.substring(0,50);_.HA(l,D);try{l.message="JSON parse error"}catch(A){}};
MoK=function(l,D){l=l.message||"";l=!!(l.indexOf("<")>=0||l.indexOf("end of ")>=0||l.indexOf("Unterminated string")>=0||l.indexOf("Unexpected EOF"));if(!l&&D)for(var U=D.length,n=!1,y=0;y<U;y++)if(n&&D[y]==="\\")y++;else if(D[y]==='"')n=!n;else if(D[y]==="<"&&!n){l=!0;break}return l};
Rj3=function(){return document.documentElement.hasAttribute("dark")};
_.Zsl=function(l,D){if(l!=="GFEEDBACK"&&l!=="GUIDED_HELP")_.ll(Error("fi`"+l));else{var U=_.Jc().resolve(_.G8(_.sm));if(U&&(U=U.getCurrentPage())&&U.getServiceTrackingParams&&(U=U.getServiceTrackingParams()))for(var n=0,y;y=U[n++];)if(y.service===l){if(l=y.params)for(U=0;n=l[U++];)D[n.key]=n.value;break}}};
_.ejc=function(l){var D=_.T4();D&&(D=D.getPlayer())&&(D.pauseVideo(),l.playback_id=D.getVideoData().cpn,l.eid=D.getVideoData().eventId,Object.assign(l,D.getFeedbackProductData()))};
mL9=function(){var l={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.H3("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(l.enableAnonymousFeedback=!0);_.H3("SESSION_INDEX")&&(l.authuser=String(_.H3("SESSION_INDEX")));_.q("enable_pageid_for_feedback")&&_.H3("DELEGATED_SESSION_ID")&&(l.pageId=String(_.H3("DELEGATED_SESSION_ID")));return l};
_.K4=function(l){_.q("enable_ypc_spinners")&&_.Vh(l,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},l])};
_.cF=function(l){_.q("enable_ypc_spinners")&&_.Vh(l,"yt-close-popup-action",["yt-loading-renderer"])};
ah9=function(l){return new Promise(function(D,U){_.Xk({verifyCommand:{recaptchaToken:l.recaptchaResponse}},{commandController:{onSuccess:function(n,y){y||U("ChallengeService did not return a response.");var A;D({challengeCompleted:(A=y.verified)!=null?A:!1})},
onServerError:function(n,y){U(y)}}})})};
too=function(l,D,U,n){D({recaptchaResponse:n}).then(function(y){y.challengeCompleted?_.Fi()?(U(3),_.Jc().resolve(_.qK).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:l}})):U(2):U(4)},function(){U(4)})};
Sso=function(l,D,U){_.pI(_.Ja(X1s,_.H3("HL")),function(){var n;(n=window.grecaptcha)==null||n.ready(function(){var y=window.grecaptcha;y?(U(y.render(l,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:too.bind(null,l,ah9,D)})),D(1)):D(4)})})};
kB$=function(l,D){return function(){switch(D()){case 0:return l().captchaLoadingMessage;case 1:return l().challengeReason;case 3:return l().captchaSuccessfulMessage;case 2:return l().captchaCookieSetFailureMessage;case 4:return l().captchaFailedMessage;default:return l().challengeReason}}()};
_.p4=function(){if(!dLd){var l=document.querySelector("#player.skeleton");l&&(_.kT(l),dLd=!0)}};
_.cEl=function(){return K9l=R2c()};
jFK=function(){return _.P(function(l){return p1s!==void 0?l.return():l.yield(xLC(),0)})};
xLC=function(){return _.P(function(l){if(l.nextAddress==1)return l.yield(e2G(),2);K9l=l.yieldResult;p1s=_.Tn.addLowPriorityJob(xLC,5E3);_.Kz(l)})};
fho=function(l){var D=D===void 0?F93:D;var U,n,y=(U=l.responseContext)==null?void 0:(n=U.mainAppWebResponseContext)==null?void 0:n.trackingParam;if(!y){D.increment("MISSING");var A,C,h,b,u,Q;_.II(new _.rc("282054944_a",{us9:!!((A=l.responseContext)==null?0:(C=A.mainAppWebResponseContext)==null?0:C.loggedOut),ie8:((h=l.responseContext)==null?void 0:h.mainAppWebResponseContext)===void 0,cRw:l.responseContext===void 0,cp:(b=l.playabilityStatus)==null?void 0:b.contextParams,cto:(((u=l.streamingData)==
null?void 0:u.formats)||[]).length>0,bbo:(((Q=l.streamingData)==null?void 0:Q.adaptiveFormats)||[]).length>0,os:!!l.offlineState,cotn:l.cotn}));return 2}U="";try{U=o_$(y)}catch(L){return D.increment("C_ERROR"),_.EU(L),2}try{var G=_.w1B(U);var J=rEB(G)}catch(L){return D.increment("P_ERROR"),_.EU(L),2}J=_.uO(J,zj9,1,_.vE());y=[];J=_.B(J);for(G=J.next();!G.done;G=J.next())n=G.value,G=n.getPath(),U=(0,_.we.getValueByKeys)(l,G.split(".")),U=String(U===void 0||U===null?"":U),n=n.getValue()||"",A=/[+\-\/_]/g,
U.replace(A,"")!==n.replace(A,"")&&(D.increment("MISMATCH"),_.q("ab_mis_log_err")&&(U=new _.rc("282054944_p",{cIS:G,g:String(U),e:String(n)}),_.EU(U)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(G)||(G.match(/enforcementMessageViewModel/i)?y.push(3):y.push(2)));if(y.length>0)return Math.max.apply(Math,_.zz(y));D.increment("SUCCESS");return 1};
sFK=function(l){var D=new xX;if(l.interpreterJavascript){var U=_.sn_(l.interpreterJavascript);U=Av(U).toString();var n=new $L_;_.c7(n,6,U);_.al(D,1,n,pm)}else l.interpreterUrl&&(U=_.I2(l.interpreterUrl),U=_.Kc(U).toString(),n=new _.NKG,_.c7(n,4,U),_.al(D,2,n,pm));l.interpreterHash&&_.jt(D,3,l.interpreterHash,pm);l.program&&_.jt(D,4,l.program,pm);l.globalName&&_.jt(D,5,l.globalName,pm);l.clientExperimentsStateBlob&&_.jt(D,7,l.clientExperimentsStateBlob,pm);return D};
FZ=function(l){var D={};l=_.B(l.split("&"));for(var U=l.next();!U.done;U=l.next())U=U.value.split("="),U.length===2&&(D[U[0]]=U[1]);return D};
E_3=function(l){return Number(l.t)||7200};
fQ$=function(){if(_.q("bg_st_hr"))return"havuokmhhs-0";var l,D=((l=globalThis.performance)==null?void 0:l.timeOrigin)||0;return"havuokmhhs-"+Math.floor(D)};
TKc=function(){return new Promise(function(l){var D=window;D.ntpevasrs!==void 0?l(new oz(D.ntpevasrs)):(D.ntpqfbel===void 0&&(D.ntpqfbel=[]),D.ntpqfbel.push(function(U){l(new oz(U))}))})};
IhB=function(l){var D=l.zKu.bind(l);_.vG("yt.aba.att",D);l=l.eCX.bind(l);_.vG("yt.aba.att2",l)};
YsK=function(l){switch(_.kZ(l.input)){case _.T3(Hs$):var D={};return D.encryptedVideoId=l.innerTubeRequest.externalVideoId,D}return{}};
iDB=function(l){switch(_.kZ(l.input)){case _.T3(Hs$):if(_.q("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.T3(Osd):if(_.q("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.T3(wk):if(_.q("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&l.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.T3(VoB):var D,U;if(_.q("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((U=_.M((D=l.config)==null?void 0:D.command,_.f0))==null?0:U.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.DeN=function(l){var D;if(l.playlistVideoRenderer&&((D=l.playlistVideoRenderer)==null?0:D.engagementBar))return lnC(l.playlistVideoRenderer.engagementBar);if(_.M(l,rk)){var U;if(l=(U=_.M(l,rk))==null?void 0:U.engagementBar)return lnC(l)}return""};
lnC=function(l){if(!l)return"";l=_.M(l,_.Ueg);if(l==null||!l.actions)return"";l=_.B(l.actions);for(l=l.next();!l.done;l=l.next()){l=_.M(l.value,_.nQc);var D=void 0;if((D=l)==null||!D.itemId)break;return l.itemId}return""};
_.yIl=function(l){var D;if(l.playlistVideoRenderer&&((D=l.playlistVideoRenderer)==null?0:D.videoId))return l.playlistVideoRenderer.videoId;if(_.M(l,rk)){var U,n;if(l=(U=_.M(l,rk))==null?void 0:(n=U.playlistItemData)==null?void 0:n.videoId)return l}return""};
_.AIK=function(l){var D;if(l.playlistVideoRenderer&&((D=l.playlistVideoRenderer)==null?0:D.voteCount))return l.playlistVideoRenderer.voteCount;if(_.M(l,rk)){var U,n;if(l=(U=_.M(l,rk))==null?void 0:(n=U.playlistItemData)==null?void 0:n.voteCount)return l}return 0};
_.zM=function(l,D){return _.yT(l.entities,"flowStateEntity",D)};
BGK=function(l,D,U,n){var y=void 0;l=_.B(l[D.iconName]||[]);for(var A=l.next();!A.done;A=l.next()){A=A.value;var C=D.iconSize;var h=D.iconStyle;C=!C||C===A[2];var b=WMo[A[0]];n&&n!==A[1]||!C||h&&h!==b?h=!1:y?(h=WMo[A[0]],h=!!D.iconStyle||h==="youtube_outline",C=y.version<=A[1],h=(!!D.iconSize||A[2]===24)&&h&&C):h=!0;h&&(y={name:D.iconName,style:WMo[A[0]],size:A[2],version:A[1],allowMirroring:!!A[3],url:U(D.iconName,A)})}return y};
CbC=function(l,D,U,n){return l+(""+WMo[U[0]]+((n===void 0?0:n)?"_experimental":"")+"/"+D+"/v"+U[1]+"/")+(U[2]+"px.svg")};
hbg=function(l){return _.H3("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.H3("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":l};
Pb3=function(l,D){return CbC("https://fonts.gstatic.com/s/i/",l,D)};
bD_=function(l,D){return CbC("https://fonts.gstatic.com/s/i/",l,D,!0)};
gQc=function(l,D){return CbC("https://www.gstatic.com/youtube/img/icons/web/",l,D)};
vQ_=function(l){var D=l.enabled;var U=l.itemPlaybackModel;var n=l.thumbnailElRef;var y=l.containerElRef;var A=l.options;var C;_.$i(function(){var h=y==null?void 0:y.value;var b,u=(b=n())==null?void 0:b.value;b=U();var Q=A();if(D&&b&&h&&u&&(Q==null?0:Q.thumbnail)){var G={data:b,hostElement:h},J,L,R=[].concat(_.zz((J=Q.thumbnailOverlays)!=null?J:[]),_.zz((L=b.overlays)!=null?L:[]));L=b.itemPlaybackOptions;J=(L==null?void 0:L.enableRoundedPlayer)||Q.enableRounding;L=L==null?void 0:L.disableTimeStatusOverlay;
var a,S;h={mediaRenderer:G,lockupElement:h,thumbnailElement:u,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.te((a=b.inlinePlayerData)==null?void 0:a.onVisible),navigationEndpoint:_.te((S=b.inlinePlayerData)==null?void 0:S.onSelect),thumbnail:Q.thumbnail,thumbnailOverlays:R,accessibilityText:Q.accessibilityText||""},thumbnailSize:Q.thumbnailSize,enableRounding:J,mouseleaveCallback:Q.mouseleaveCallback,hideTimeDisplay:L}}}else h=void 0;if(a=h){var d;(d=C)==null||f4(d);C=Sq(a);var c,N;
((c=U())==null?0:(N=c.inlinePlayerData)==null?0:N.forceImpAutoplay)&&uNN(C)}},"BLiQOd");
_.NV(function(){var h;(h=C)==null||f4(h)})};
QM3=function(l){l=atob(l);for(var D=[],U=0;U<l.length;U++)D.push(l.charCodeAt(U));return new Blob([new Uint8Array(D)],{type:"image/png"})};
JIN=function(l,D,U,n){n=n===void 0?"INSERTION_POSITION_UNSPECIFIED":n;return l({targetId:D},function(y){var A,C=(A=y.contents)!=null?A:[];A=U!=null?U:[];var h=GVs(C);switch(n){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},y,{contents:[].concat(_.zz(C.slice(0,h)),_.zz(A),_.zz(C.slice(h+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},y,{contents:[].concat(_.zz(A),_.zz(C))});case "INSERTION_POSITION_LAST":return Object.assign({},y,{contents:[].concat(_.zz(C),_.zz(A))});
default:return y}})};
qz$=function(l,D,U,n,y){y=y===void 0?"RELATIVE_INSERTION_POSITION_AFTER":y;return l({targetId:D},function(A){var C,h=(C=A.contents)!=null?C:[];C=LMc(h,U);if(C<0)return A;C=y==="RELATIVE_INSERTION_POSITION_BEFORE"?C:C+1;return Object.assign({},A,{contents:[].concat(_.zz(h.slice(0,C)),_.zz(n),_.zz(h.slice(C)))})})};
GVs=function(l){var D=l.findIndex(function(U){return _.M(U,_.$X)});
return D>=0?D:l.length};
LMc=function(l,D){return l.findIndex(function(U){a:{U=_.B(Object.values(U));for(var n=U.next();!n.done;n=U.next())if((n=n.value)&&n.targetId){U=n.targetId;break a}U=""}return U===D})};
RbG=function(l,D,U){return l({targetId:D},function(n){var y,A=(y=n.contents)!=null?y:[];return Object.assign({},n,{contents:M63(A,U)})})};
M63=function(l,D){return l.filter(function(U){var n=D.includes;a:{U=_.B(Object.values(U));for(var y=U.next();!y.done;y=U.next())if((y=y.value)&&y.targetId){U=y.targetId;break a}U=""}return!n.call(D,U||"")})};
_.ZDK=function(l,D){return{engagementPanelSectionListRenderer:{panelIdentifier:l,identifier:D,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
ebl=function(l,D){l=l.getAvailableAudioTracks();if(l.length)return l==null?void 0:l.find(function(U){var n;return(U==null?void 0:(n=U.getLanguageInfo())==null?void 0:n.getId())===D})};
_.ans=function(l){var D,U=(D=l.getOption("captions","tracklist",{includeAsr:!0}))!=null?D:[];return U=me3(U,l)};
t6_=function(l){return l.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
me3=function(l,D){D=t6_(D);if(D==null||!D.length)return l;var U=D.filter(function(C){return C});
D=l.filter(function(C){return C.languageCode.startsWith("en")});
U=_.B(U);for(var n=U.next();!n.done;n=U.next())if(n=n.value,D.length){var y=D[0],A=Object.assign({},y);y.languageCode!==n.languageCode&&(A.displayName=y.languageName+" >> "+n.languageName,A.translationLanguage=n,l.push(A))}return l};
Xeg=function(l,D,U){l=_.ans(l);if(l.length)return U?l.find(function(n){if(typeof(n==null?void 0:n.translationLanguage)==="object"){var y;return((y=n.translationLanguage)==null?void 0:y.languageCode)===D}return!1}):l==null?void 0:l.find(function(n){return n.languageCode===D})};
SzK=function(l){return l.getOption("captions","tracklist",{includeAsr:!0})};
kV$=function(l){var D=l.getAvailableAudioTracks();if(D!=null&&D.length){var U=l.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.zz(D.map(function(n){return{listItemViewModel:{title:{content:n.getLanguageInfo().getName()},isSelected:n.getLanguageInfo().getId()===(U==null?void 0:U.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:n.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
deG=function(l){return l.getOption("captions","tracklist",{includeAsr:!0})};
KMc=function(l){var D=deG(l);if(D==null?0:D.length)return D;l.loadModule("captions");return deG(l)};
cIg=function(l){var D=l.getOption("captions","track");if(D)return D;l.loadModule("captions");return l.getOption("captions","track")};
xel=function(l){var D=KMc(l);if(D!=null&&D.length){var U=cIg(l),n;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.C3("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(U==null?0:U.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.zz(D.map(function(y){return{listItemViewModel:{title:{content:y.displayName},
isSelected:y.displayName===(U==null?void 0:U.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:y.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.C3("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!U.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!U.translationLanguage&&{selectionText:{content:(U==null?void 0:(n=U.translationLanguage)==null?void 0:n.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[pe3(l)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
pe3=function(l){var D=t6_(l);if(D==null||!D.length)throw Error("Ei");var U=cIg(l);l=D.filter(function(n){return!n.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.zz(l.map(function(n){var y;return{listItemViewModel:{title:{content:n.languageName},isSelected:n.languageName===(U==null?void 0:(y=U.translationLanguage)==null?void 0:y.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:n.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
we3=function(l){return new Promise(function(D,U){if(l===void 0)_.EU(Error("Ii"),"ERROR"),U(Error("Ii"));else{U=new _.jM$;var n=_.FMc();U=U.init();var y=_.oQ9(_.H3("YPC_MB_URL"),!0);Promise.all([U,y]).then(function(){var A=_.Nd.payments.business.integration.ClientTokenFactory.createClientToken(l,n);D(A)})}})};
fng=function(l,D,U,n,y,A,C){var h=_.wf();U=U.replace(/-/g,"+").replace(/_/g,"/");var b=_.bu().get("hl"),u=_.sr(_.fU),Q=D==null?void 0:D.element;Q&&_.K4(Q);rI9(D,!0);_.zbl(u,U,h.resolve,function(){Q&&_.cF(Q)},function(G){Q&&_.cF(Q);
h.reject(G)},b,n?function(G){n&&_.oL(l,n,{backend_analytics:G})}:void 0,h.resolve,y,A,C);
return h.promise};
rI9=function(l,D){!(l=l==null?void 0:l.element)||l.tagName!=="YT-BUTTON-RENDERER"&&l.tagName!=="YTD-BUTTON-RENDERER"||(l.disabled=D)};
$e3=function(){var l=_.C3("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.H6(l),actionButton:{buttonRenderer:OQ_()}}},popupType:"TOAST"}};
NGc=function(){var l=_.C3("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.H6(l),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
sM9=function(l){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:l}]}}};
Er=function(l,D,U,n){var y;return _.P(function(A){if(A.nextAddress==1)return _.ZY(A,2),A.yield(l,4);if(A.nextAddress!=2)return(y=_.QT(D.getState().entities).length>0)?A.return({title:_.H6(_.C3("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.H6(_.C3("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:YvC()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
A.return(V13(U,n));_.kF(A);return A.return(V13(U,n))})};
EQK=function(l,D){return D?D==="PPSV"||Ypc(l,D):!1};
TG$=function(l){l.responseContext||(l.responseContext={});l.responseContext.maxAgeSeconds=0;return l};
Iz=function(l){var D;return _.P(function(U){return U.nextAddress==1?U.yield(In_(l,"service:topbar:fallback"),2):(D=U.yieldResult)&&_.TM(D)?U.return(TG$(_.TM(D))):U.return()})};
HD$=function(l){var D;return _.P(function(U){return U.nextAddress==1?U.yield(In_(l,"service:downloads_settings:fallback"),2):(D=U.yieldResult)&&_.TM(D)?U.return(D):U.return()})};
In_=function(l,D){var U;return _.P(function(n){if(n.nextAddress==1)return l?n.yield(l.get(D),2):n.return();U=n.yieldResult;return!U||!_.TM(U)||!isNaN(Number(U.data.expireTimestampMs))&&U.isExpired()?n.return():n.return(U)})};
Yzs=function(l){var D=_.Jc().resolve(Vd).getState().entities;return l.playlistId?EQK(D,l.playlistId):!1};
V6l=function(l){var D=_.RG("web_pbj_log_warning_rate",0);D=D>0&&Math.random()<D;if(!_.M(l,_.vk))return D&&_.II(Error("bj")),!1;var U;return _.q("shorts_controller_retrieve_seedless_sequence_v2")&&((U=_.M(l,_.vk))==null?void 0:U.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:ODG(l)?!0:(D&&_.II(Error("cj")),!1)};
ODG=function(l){var D=(_.M(l,_.za)||_.M(l,_.vk)).videoId;if(!D||!igC.test(D))return!1;var U;return(l=(U=_.M(l.commandMetadata,_.W6))==null?void 0:U.url)&&(l.includes(D)||l.startsWith("/clip"))?!0:!1};
_.Dbg=function(){var l=_.bu();return l.getFlag(192)?l.getFlag(190):!(_.q("web_watch_cinematics_disabled_by_default")||_.q("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&ltN())};
_.iD=function(l,D,U){var n={};n.currentUrl=D;n.vis=l.vis!==void 0?l.vis:0;n.splay=!1;D=_.bu();n.autoCaptionsDefaultOn=D.getFlag(66);D.getFlag(141)?D.getFlag(140)?n.autonavState="STATE_OFF":n.autonavState="STATE_ON":n.autonavState="STATE_NONE";n.html5Preference="HTML5_PREF_WANTS";isNaN(_.H3("STS"))||(n.signatureTimestamp=_.H3("STS"));l.autonav&&(n.autoplay=!0,n.autonav=!0);l.mutedAutoplay&&(n.autoplay=!0,n.mutedAutoplay=!0);l.inlinePlayback&&(n.autoplay=!0,n.autonav=!1,n.isInlineUnmutedPlayback=!!l.inlineUnmuted);
n.referer=U;n.lactMilliseconds=l.lact!==void 0?l.lact.toString():"-1";_.q("enable_unknown_lact_fix_on_html5")&&n.lactMilliseconds==="-1"&&_.II(new _.rc("Unknown LACT is set in playbackContext.",{"lact in tempData":l.lact||"undefined",autonav:l.autonav||"undefined"}));l={};D.getFlag(194)&&(l.hasShownAmbientMode=!0);D.getFlag(192)&&(l.hasToggledOffAmbientMode=!0);_.Dbg()&&(l.watchAmbientModeEnabled=!0);n.watchAmbientModeContext=l;return n};
UbB=function(l){var D={},U=l.pbis||0;U&&(D.playbackBeginsInSeconds=U);l.prefetch_reason&&l.prefetch_reason==="hc_pbis"&&(D.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return D};
n5g=function(l,D){var U;if(D==null?0:(U=D.requestTemplate)==null?0:U.panelId)l.panelId=D.requestTemplate.panelId;var n;if(D==null?0:(n=D.requestTemplate)==null?0:n.params)l.params=D.requestTemplate.params};
Ang=function(){if(ynl)return ynl();var l=!_.q("idb_response_store_auth_killswitch"),D={};ynl=Gn("yt-it-response-store",{objectStores:(D.ResponseStore={addedAtVersion:1},D),shared:!l,upgrade:function(U,n){n(1)&&(U=ly(U,"ResponseStore",{keyPath:["key","clientName"]}),D0(U,"byExpiration","expireTimestampMs"),D0(U,"byInterface","clientName"))},
version:1});return ynl()};
Wg9=function(l){return _.C6(Ang(),l)};
C29=function(l,D){var U;return _.P(function(n){return n.nextAddress==1?n.yield(_.Qo(),2):(U=n.yieldResult)?n.return(new BFC(l,D,U)):n.return()})};
hYo=function(l){var D=Object.keys(l)[0];if(D)return l.screenExit&&(D=D+";"+l.screenExit.screen),D};
P2C=function(l){var D=new Map;l=_.B(l);for(var U=l.next();!U.done;U=l.next())U=U.value,U!=null&&(D.has(U.taskType)||D.set(U.taskType,[]),D.get(U.taskType).push(U));return D};
bgs=function(l){l=[].concat(_.zz(l)).sort(function(U,n){return U-n});
var D=Math.floor(l.length/2);return l.length%2?l[D]:(l[D-1]+l[D])/2};
v5s=function(l,D){l=l===void 0?ooG:l;D=D===void 0?{}:D;_.vG("yt.logging.errors.log",_.EU);jLg();g5$($h$(),D);window.onerror=l;ue_=F83;window.addEventListener("unhandledrejection",function(U){if(U.reason instanceof Error){var n=U.reason;_.HA(n,{source:"unhandledrejection"});n.name==="AbortError"&&(n.level="WARNING")}F83(U.reason);U.preventDefault()})};
_.QQd=function(l){var D,U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I,iG,CC,vo,td,GN,Ms,j3,wl,zN,Z7,Lm,Vg,v5,mk,dy,eW,Qq,Bo;return _.P(function(D7){if(D7.nextAddress==1)return D7.yield(_.Pc(l,{mode:"readonly",enableRetries:!0},function(qr){return bQ(qr,"playbackData").then(function(H5){var Mr=H5.map(function(gy){return gy.transfer}).filter(function(gy){return!!gy}),V_=H5.map(function(gy){return gy.offlineVideoPolicy}).filter(function(gy){return!!gy}),ec=H5.filter(function(gy){return!!gy.key}).map(function(gy){return _.n7(_.lQ(gy.key).entityId,
"downloadStatusEntity")});
Mr=bQ(qr,"transfer",Mr);V_=bQ(qr,"offlineVideoPolicy",V_);ec=bQ(qr,"downloadStatusEntity",ec);var Nr=Mr.then(function(gy){gy=gy.reduce(function(uH,yq){(yq==null?0:yq.offlineVideoStreams)&&uH.push.apply(uH,_.zz(yq.offlineVideoStreams));return uH},[]).filter(function(uH){return!!uH});
return bQ(qr,"offlineVideoStreams",gy)});
return Dl.all([Mr,V_,Nr,ec]).then(function(gy){var uH=_.B(gy);gy=uH.next().value;var yq=uH.next().value;var TN=uH.next().value;uH=uH.next().value;return[H5,gy,yq,TN,uH]})})}),2);
if(D7.nextAddress!=3)return D=D7.yieldResult,D7.yield(_.Pc(l,{mode:"readonly",enableRetries:!0},function(qr){return bQ(qr,"mainDownloadsListEntity").then(function(H5){var Mr,V_;return(V_=(Mr=H5[0])==null?void 0:Mr.downloads)!=null?V_:[]})}),3);
U=D7.yieldResult;n=_.B(D);y=n.next().value;A=n.next().value;C=n.next().value;h=n.next().value;b=n.next().value;u=y;Q=A;G=C;J=h;L=b;R={};a={};S={};d={};c={};N=[];z=_.B(Q);for(f=z.next();!f.done;f=z.next())(I=f.value)&&(R[I.key]=I);iG=_.B(G);for(CC=iG.next();!CC.done;CC=iG.next())(vo=CC.value)&&(a[vo.key]=vo);td=_.B(L);for(GN=td.next();!GN.done;GN=td.next())(Ms=GN.value)&&(S[Ms.key]=Ms);j3=_.B(J);for(wl=j3.next();!wl.done;wl=j3.next())(zN=wl.value)&&(d[zN.key]=zN);Z7=_.B(U);for(Lm=Z7.next();!Lm.done;Lm=
Z7.next())Vg=Lm.value,v5=void 0,c[(v5=Vg.videoItem)!=null?v5:""]=!0,Vg.videoItem&&(dy=mk=void 0,eW=(dy=(mk=_.lQ(Vg.videoItem))==null?void 0:mk.entityId)!=null?dy:"",N.push({externalVideoId:eW}));Qq=u.filter(function(qr){if(!qr||!qr.key||!qr.offlineVideoPolicy)return!1;qr=_.lQ(qr.key).entityId;qr=_.n7(qr,"downloadStatusEntity");var H5;return!(qr&&((H5=S[qr])==null?void 0:H5.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Bo=Qq.map(function(qr){var H5=R[qr.transfer],Mr=[];if(H5==null?0:H5.offlineVideoStreams)for(var V_=_.B(H5.offlineVideoStreams),ec=V_.next();!ec.done;ec=V_.next())(ec=d[ec.value])&&Mr.push(ec);V_=a[qr.offlineVideoPolicy];ec=c;var Nr=qr==null?void 0:qr.playerResponseTimestamp,gy=_.lQ(V_.key).entityId;qr=_.n7(gy,"mainVideoEntity");if(V_.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var uH="OFFLINE_VIDEO_STATE_DISABLED";V_.expirationTimestamp&&Number(V_.expirationTimestamp)<Date.now()/1E3&&(uH="OFFLINE_VIDEO_STATE_EXPIRED")}else if(V_.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")uH="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(H5==null?void 0:H5.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":uH="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":uH="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":uH="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":uH="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":uH="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":uH="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:uH="OFFLINE_VIDEO_STATE_UNKNOWN"}if(uH==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(H5==null?void 0:H5.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":uH="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":uH="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":uH=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}gy={id:gy,videoState:uH};if(H5==null?0:H5.cotn)gy.cotn=H5.cotn;if(H5==null?0:H5.maximumDownloadQuality)gy.selectedVideoQuality=H5==null?void 0:H5.maximumDownloadQuality;if(H5==null?0:H5.lastProgressTimeMs)gy.lastProgressTimeMs=H5.lastProgressTimeMs;Nr&&(gy.playerResponseSavedTimeMs=String(Number(Nr)*1E3));H5=String;Nr=0;Mr=_.B(Mr);for(uH=Mr.next();!uH.done;uH=Mr.next())if(uH=uH.value,uH.streamsProgress){uH=_.B(uH.streamsProgress);for(var yq=uH.next();!yq.done;yq=
uH.next()){var TN=void 0;Nr+=Number((TN=yq.value.numBytesDownloaded)!=null?TN:0)}}gy.downloadedBytes=H5(Nr);gy.selectedOfflineMode=ec[qr]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";V_.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(gy.offlinePlaybackDisabledReason=V_.offlinePlaybackDisabledReason);return gy});
return D7.return({offlineVideos:Bo,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:N}}})})};
GX3=function(){var l;return _.P(function(D){return D.nextAddress==1?D.yield(_.Bc(),2):(l=D.yieldResult)?D.return(_.QQd(l)):D.return({state:"PES Unavailable"})})};
qb_=function(){var l,D,U,n;return _.P(function(y){if(y.nextAddress==1)return y.yield(_.Bc(),2);if(y.nextAddress!=3)return(l=y.yieldResult)?y.yield(JnB(l),3):y.return({state:"PES Unavailable"});D=y.yieldResult;U={};n=D.reduce(function(A,C){A[C.key]=C;return A},U);
return y.return(Lgc(n))})};
Lgc=function(l){for(var D={},U=[],n=_.B(Object.keys(l)),y=n.next();!y.done;y=n.next()){var A=y.value;y=l[A];var C=void 0;if(((C=y)==null?void 0:C.entityType)==="mainVideoEntity"){delete l[A];var h=y.data;y={};if(h){var b=void 0;C=(b=h.videoId)!=null?b:"vid-"+A;A=l;y.video=h;delete y.video.formattedDescription;delete y.video.thumbnail;h.owner&&(b=A[h.owner],b==null?0:b.data)&&(delete A[b.key],y.video.owner=b.data,delete y.video.owner.avatar);if(h=h.downloadState)if(b=A[h],b==null?0:b.data)if(delete A[h],
h=b.data.playbackData)if(b=A[h],b!=null&&b.data){delete A[h];h=b.data;delete h.playerResponseJson;y.playbackData=h;if(h.transfer&&(b=A[h.transfer],b==null?0:b.data)){delete A[b.key];var u=b.data;y.transfer=u;b=[];u=_.B(u.offlineVideoStreams||[]);for(var Q=u.next();!Q.done;Q=u.next())if(Q=A[Q.value])delete A[Q.key],b.push(Q.data);b&&(y.streams=b)}(h=h.offlineVideoPolicy)&&(h=A[h])&&h.data&&(delete A[h.key],y.offlineVideoPolicy=h.data)}D[C]=y}}else y&&y.entityType==="offlineOrchestrationActionWrapperEntity"&&
y.data&&(delete l[y.key],C=y.data,A=void 0,U.push({id:C.rootActionId,type:((A=C.actionProto)==null?void 0:A.actionType)||"",entity:y}))}D.wrapperEntities=U;Object.keys(l).length>0&&(D.unknownKeys=l);return D};
MAK=function(){var l,D,U,n,y,A,C,h,b;return _.P(function(u){if(u.nextAddress==1)return l=(new _.Vo("")).hasLocalStorage(),n=!!((D=_.nC.crypto)==null?0:(U=D.subtle)==null?0:U.importKey),y=!!_.nC.BroadcastChannel,A=!!_.nC.navigator.locks,u.yield(vB9(),2);C=u.yieldResult;h=l&&n&&y&&A&&C;b={isSupported:h};if(h)return u.return(b);b.missingBrowserFeatures=[];C||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");l||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
n||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");y||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");A||b.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return u.return(b)})};
RYc=function(l,D,U,n){var y=!1,A={contentId:void 0,contentType:"video"};D=_.B(Object.entries(D));for(var C=D.next();!C.done;C=D.next()){var h=_.B(C.value);C=h.next().value;h=h.next().value;l.includes(C)&&!U.has(h)?(A.contentId=h,U.add(h),y=!0):C==="contentType"?h==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(A.contentType="playlist"):typeof h==="object"&&h!==null&&RYc(l,h,U,n)}y&&n.push(A)};
ZgK=function(){var l;return!((l=lD?lD:null)==null||!l.window)};
_.mbK=function(l){if(_.X$()&&_.RKc("Chromium")>=120){var D=_.eYs().mediaSession;try{D.setActionHandler("enterpictureinpicture",function(){l()})}catch(U){}}};
atC=function(l){for(var D=[],U=_.B(document.styleSheets),n=U.next(),y={};!n.done;y={node$jscomp$779:void 0},n=U.next())y.node$jscomp$779=n.value.ownerNode,y.node$jscomp$779&&(y.node$jscomp$779 instanceof HTMLStyleElement||y.node$jscomp$779 instanceof HTMLLinkElement)&&D.push(new Promise(function(A){return function(C){var h=A.node$jscomp$779.cloneNode(!0);h.onload=function(){C()};
h.onerror=function(){_.II(Error("tj"));C()};
l.document.head.appendChild(h)}}(y)));
return Promise.all(D)};
jQN=function(l){var D=[_.QK(tA_),_.QK(XMd),_.QK(Sb9)];kXo(window.document.documentElement,l.document.documentElement,[_.QK(dbB),_.QK(KgG),_.QK(cn9),_.QK(pMG),_.QK(xbg)]);kXo(window.document.body,l.document.body,D)};
kXo=function(l,D,U){l=_.B(l.attributes);for(var n=l.next();!n.done;n=l.next())if(n=n.value)try{_.hv(U,D,n.name,n.value)}catch(y){}};
o5c=function(l,D){l=new _.DL(l.document.documentElement);l.start(FgN,D);return l};
wMB=function(l){var D=l.document.documentElement;D.addEventListener("click",function(U){Mis(D,U)});
D.addEventListener("touchstart",function(U){a_g(U)});
D.addEventListener("mousedown",function(U){a_g(U)})};
zYd=function(l,D,U,n){n=n===void 0?!1:n;D=new rnc(D||l,U||l);return{x:l.x+((n===void 0?0:n)?D.lengthX*-1:D.lengthX)*.2,y:l.y+((n===void 0?0:n)?D.lengthY*-1:D.lengthY)*.2}};
fto=function(l){if(!l)return!1;var D=l.status==="OK"||l.status==="LIVE_STREAM_OFFLINE",U,n,y,A=(y=(U=l.errorScreen)==null?void 0:U.playerLegacyDesktopYpcTrailerRenderer)!=null?y:(n=l.errorScreen)==null?void 0:n.ypcTrailerRenderer;return!!D||!!A};
_.$bo=function(l,D){if(!l)return!1;var U,n=(U=l.errorScreen)==null?void 0:U.playerLegacyDesktopYpcOfferRenderer,y;D=!!(D==null?0:(y=D.playerOverlayRenderer)==null?0:y.gatedActionsOverlayRenderer);return!!fto(l)||!!n||!!D};
E53=function(l){return NF3(l,0,"gclid",l.search(sQK))>=0||NF3(l,0,"gad_source",l.search(sQK))>=0};
TFl=function(l){var D=[],U=0;return{clear:function(){U=D.length=0},
push:function(n){D[U]=n;U=(U+1)%l},
iterate:function(){return function y(){var A,C,h,b;return _.U4(y,function(u){switch(u.nextAddress){case 1:_.tv(u,2),A=D.length,C=0;case 4:if(!(C<A)){u.jumpTo(2);break}h=U+C;b=_.nE;return u.yield(D[h%A],7);case 7:b(u.yieldResult);C++;u.jumpTo(4);break;case 2:_.aV(u),_.Sc(u,0)}})}()}}};
Its=function(l){l.eventsToIgnore||(l.eventsToIgnore=[]);var D=l.eventsToIgnore.map(RO9),U=new Set(D),n=TFl(l.bufferSize);return{flush:function(){var y=Array.from(n.iterate());n.clear();y=y.map(function(A){return{name:A.name,timestamp:A.startTime,attributes:A.attributes}});
return JSON.stringify(y)},
onSpanStart:function(y){y.name==="event"&&U.has(y.attributes.type)||n.push(y)}}};
Hgo=function(l){l=Its(l);var D=l.flush;Mm_({onSpanStart:l.onSpanStart});OU.subscribe("handleError",function(U){try{U.params.breadcrumbs=D()}catch(n){_.EU(n,"WARNING")}})};
Yb9=function(){ez("web_tracing_action");_.m0("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
Og9=function(){ez("web_tracing_action");_.m0("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
iXB=function(l,D,U){if(D===void 0){VAB||(Og9(),setInterval(Og9,6E5),VAB=!0);var n="web_tracing_action"}else n=D;var y,A=((y=l.endTime)!=null?y:l.startTime)-l.startTime,C={};y=l.name;var h=l.startTime;C={webTracing:(C[l.name]=l.attributes,C)};U=_.DJ(F5d)(y,A,h,C,U,n);if(l.children)for(l=_.B(l.children),n=l.next();!n.done;n=l.next())iXB(n.value,D,U)};
lEN=function(l){var D=kAl.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(U){U.data&&typeof U.data==="object"&&(U=U.data,U.from==="extension"&&U.app==="yt.telemetry"&&(D("Received message from extension",U),l.onMessage(U)))});
return function(U,n){U={app:"yt.telemetry",from:"app",key:U,payload:n};D("Sending message to extension",U);window.postMessage(U,"*")}};
DSs=function(){var l=l===void 0?3E3:l;var D=lEN({onMessage:function(){}}),U=[];
return{onSpanEnd:function(n){n.parentId==null&&U.push(n)===1&&setTimeout(function(){var y=[].concat(_.zz(U));U.length=0;D("spansReported",{spans:y})},l)}}};
US$=function(l){l=l===void 0?400:l;var D=[],U=[];return{start:function(){return Ucd({checkoutEveryNth:l,emit:function(n,y){y&&(D=U,U=[]);U.push(n)}})},
getRecording:function(){return[].concat(_.zz(D),_.zz(U))}}};
AW$=function(){(new nbG({sessionReplayEvents:_.RG("web_tracing_session_replay",0)})).subscribe(function(l){if(l.sessionReplayEvents>0)try{var D=US$(l.sessionReplayEvents);D.start();if(_.q("web_tracing_session_replay_demo")){var U=console.log;window.exportSessionReplay=function(){var n=JSON.stringify(D.getRecording(),null,2);n=yWK(new Blob([n],{type:"text/plain"}));var y=document.createElement("a");y.download="session_replay.json";y.dataset.downloadurl=["application/json",y.download,y.href].join(":");
y.style.display="none";y.href=n;y.click();URL.revokeObjectURL(n);U("View replay at go/yt-session-replay-viewer")}}}catch(n){_.II(Error("vj"))}})};
BOl=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var l=window.performance.getEntriesByType("navigation");if(l.length>0){var D=l[0],U=window.performance.timeOrigin;tmK("pageLoad",{navigationType:WZK(D.type),unloadEventStart:Math.round(D.unloadEventStart),unloadEventEnd:Math.round(D.unloadEventEnd),domInteractive:Math.round(D.domInteractive),domContentLoadedEventStart:Math.round(D.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(D.domContentLoadedEventEnd),
domComplete:Math.round(D.domComplete),loadEventStart:Math.round(D.loadEventStart),loadEventEnd:Math.round(D.loadEventEnd),redirectCount:D.redirectCount},{active:!1,startTime:U+D.startTime,endTime:U+D.loadEventEnd})}}catch(n){}})};
WZK=function(l){switch(l){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
gb3=function(){for(var l=CxK.value,D={},U=_.B(l.enabledSpansArray),n=U.next();!n.done;n=U.next())D[n.value]=!0;qQg({sessionId:nsN(),enabledSpans:D,shouldSampleFn:function(y,A,C){if(hoN){var h;return y==="shortToShort"||(C==null?void 0:(h=C.rootSpan())==null?void 0:h.name)==="shortToShort"}return!0}});
SQK();Rrd("pageLoad")&&BOl();l.exportToCsi&&Mm_(PxB);l.exportToDevTools&&Mm_(DSs());l.maxBreadcrumbs>0&&Hgo({eventsToIgnore:bXC,bufferSize:l.maxBreadcrumbs})};
uzG=function(l){return new Promise(function(D){window.setTimeout(D,l)})};
vbd=function(l){var D={bicf:function(A){l.klv=A},
blc:function(){return l.getLatestChallengeResponse()},
bcr:function(A){l.wfl.push(A)}},U=window;
U.ntpevasrs=D;if(U.ntpqfbel!==void 0)for(var n=_.B(U.ntpqfbel),y=n.next();!y.done;y=n.next())y=y.value,y(D);U.ntpqfbel=void 0};
Qi9=function(l){return _.P(function(D){if(D.nextAddress==1)return _.ZY(D,2),D.yield(l.i0v(),4);if(D.nextAddress!=2)return _.WG(D,0);_.kF(D);_.Kz(D)})};
G$g=function(l){var D,U;(D=l.ytcsi)==null||(U=D.tick)==null||U.call(D,"pot_ist")};
JWs=function(l){if(l instanceof Error){var D=_.UG("yt.logging.errors.log");D&&D(l,"WARNING")}};
LZN=function(l){try{var D=JSON.parse(l);if(D.bgChallenge)return D}catch(U){}};
MOs=function(){var l=window,D={networkStatusManagerPromise:_.Jc().resolve(new VG$(_.AL)),initialChallengeSli:_.q("wpo_att_sli")?new _.ZiG("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};l=l===void 0?window:l;var U=l.ytAtR,n;D==null||(n=D.initialChallengeSli)==null||_.yI(n);if(U){if(U=LZN(U)){var y;D==null||(y=D.initialChallengeSli)==null||_.AS(y,"SUCCESS");q$9(U,D)}l.ytAtR=void 0}else l.ytAtRC=function(A){if(A=LZN(A)){var C;D==null||(C=D.initialChallengeSli)==null||
_.AS(C,"SUCCESS");q$9(A,D);l.ytAtRC=void 0}}};
eo9=function(){if(RoB)return RoB;try{var l=_.SU("IFRAME");_.i8(l,_.Ja(ZX$));l.sandbox.add("allow-same-origin");l.style.display="none";document.body.appendChild(l);return RoB=l}catch(D){l=new _.rc("Failed to create sandbox iframe"),_.EU(l)}};
mSs=function(l){var D,U;return(U=l==null?void 0:(D=l.contentWindow)==null?void 0:D.fetch)!=null?U:window.fetch};
aEc=function(l){var D,U;return(U=l==null?void 0:(D=l.contentWindow)==null?void 0:D.Request)!=null?U:window.Request};
tOo=function(l){var D,U;return(U=l==null?void 0:(D=l.contentWindow)==null?void 0:D.TextDecoder)!=null?U:window.TextDecoder};
Xug=function(){return function(l,D){_.H3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[l]=D}};
S$$=function(){return function(l,D){var U={};U[l]=D;l=_.DJ(_.x$o)(U);Object.keys(l).length>0&&_.ZP(l)}};
KZc=function(){if(WpG()==="hidden")var l="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else WpG()==="visible"&&(l="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",k$N=null);l&&dSC(l)};
dSC=function(l){if(l==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||l==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(cWg===l)return;cWg=l}var D=9E4+Math.random()*2E3;if(l!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Gj()>D)&&WpG()==="visible"){D=-1;k$N&&(D=Math.round((0,_.J3)()-k$N));var U=String;var n=_.UG("_fact",window);n=n==null||n==-1?-1:Math.max(Date.now()-n,0);_.Na("foregroundHeartbeat",{firstActivityMs:U(n),clientDocumentNonce:yZ$,index:String(pug),lastEventDeltaMs:String(D),trigger:l});
_.vG("_fact",-1,window);pug++;k$N=(0,_.J3)()}};
xS3=function(l,D,U,n,y,A){D=new Uint8Array(D);if(l.length===0)return D;var C=0;y=y!=null?y:l.length-1;for(var h=U;h<=y;h++){var b=l[h],u=h===U?n:0,Q=void 0,G=h===y?(Q=A)!=null?Q:b.length:b.length;b=b.subarray(u,G);D.set(b,C);C+=b.length}return D};
_.ji3=function(){try{return!!self.sessionStorage}catch(l){return!1}};
FZ9=function(){var l=navigator;return new Promise(function(D,U){var n;(n=l.webkitTemporaryStorage)!=null&&n.queryUsageAndQuota?l.webkitTemporaryStorage.queryUsageAndQuota(function(y,A){D({usage:y,quota:A})},function(y){U(y)}):U(Error("Ej"))})};
obG=function(l,D){var U={errorSeverity:D.errorSeverity.toString(),wizFeatureFlags:Object.entries(D.featureFlags).join("\n")};xhN(D,U);D=D.errorSeverity;D===3?_.EU(l,"ERROR",void 0,void 0,void 0,U):D===2&&_.EU(l,"WARNING",void 0,void 0,void 0,U);_.q("cow_if_errors_in_popup")&&D===3&&l.message.indexOf("<If>")!==-1&&window.alert(l.message)};
wuG=function(l,D){var U=Nt.get(l)||{layerNode:D};U.layerNode=D;Lzs(l,U);l.getScreenLayer=function(){return WI(U.layerNode)}};
rWB=function(l){var D;l=l.parentNode;for(var U;l&&((D=Nt.get(l))==null||!D.isRenderer)&&!((U=l.polymerController)!=null?U:l).isRenderer_;)l=l.parentNode||l.host;if(D=l)return Nt.get(D)};
zo3=function(l){if(l){Nt.delete(l);var D=_.Jc().resolve(G7);Xid(l,D)}};
$S_=function(l,D,U){if(U===void 0?0:U){if(U=l.getAttribute("client-ve-type"),D.data&&!D.disableReactiveLogging||U)_.fy(function(){fEB(l,_.EP(D.data))},"xg"),_.NV(function(){return void zo3(l)})}else typeof D.data!=="function"&&fEB(l,D.data)};
fEB=function(l,D){NO9++;sil(l,D)&&_.Tn.addJob(function(){_.BI(_.Tn,function(){if(sil(l,D)&&l.ownerDocument.documentElement===document.documentElement&&l){var U;if(l.getAttribute("layer")){var n=U=Number(l.getAttribute("layer")),y=Nt.get(l);y?y.layerNode.layer=n:wuG(l,new Eb9(n));(n=rWB(l))&&(y=Nt.get(l))!=null&&(y.layerNode.parent=n.layerNode)}else if(U=Nt.get(l))U=WI(U.layerNode);else{U=WI;n=new Eb9;if(y=rWB(l))n.parent=y.layerNode;wuG(l,n);U=U(n)}U!=null||(U=0);n=l.getAttribute("client-ve-type");
y=Number(n);var A=!1;n=!1;var C=Nt.get(l),h;if((h=C)&&!(h=C[TOc]!==D)&&(h=y)){var b;h=((b=Nt.get(l))==null?void 0:b.clientVeType)===void 0}h&&(C[TOc]=D,A=n=C.isRenderer=!0);Nt.has(l)&&(Nt.get(l).clientVeType=y);l.visualElement&&(n=!0);if(_.q("wiz_next_ld_fix_client_ve_spec")){var u;b=((u=_.M(D==null?void 0:D.rendererContext,_.P9))==null?void 0:u.loggingDirectives)||(D==null?void 0:D.loggingDirectives)}else b=D==null?void 0:D.loggingDirectives;b&&b.clientVeSpec&&(u=IEK(_.B9(),l),u=_.HX9(_.he(),b,u||
void 0,U))&&(l.visualElement=u);!l.visualElement&&y&&A&&(l.veType=y,u=void 0,_.q("wiz_next_client_ve_parent_fix")&&(u=IEK(_.B9(),l)),u=_.Ce(_.he(),l,u,U),l.visualElement=u);n&&(u=_.Jc().resolve(G7),Kql(l,{data:D,observer:u,layer:U,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
sil=function(l,D){return(D==null?0:D.trackingParams)||(D==null?0:D.loggingDirectives)||_.M(D==null?void 0:D.rendererContext,_.P9)||l.getAttribute("client-ve-type")?!0:!1};
Y$_=function(l,D,U){l.componentType!==py&&U instanceof HTMLElement&&D&&!_.q("cow_logging_in_component_wrapper")&&$S_(U,D,!0)};
l39=function(){if(!OX9){OX9=!0;var l=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.q("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:_.q("enable_wiz_context_per_component")||!1},{handleError:obG,enableComponentStacksInErrorMessages:!1});Object.assign(v_,l);OSc=VOl;ial();UA$=O9g;iIC=if_}};
ial=function(){_.q("cow_logging_in_component_wrapper")?(Wnc=function(l,D){D instanceof HTMLElement&&$S_(D,l,!0)},rO$=function(){}):(Wnc=function(){},rO$=Y$_)};
D0l=function(l,D,U){D=D===void 0?{}:D;var n,y=(n=_.M(l.commandMetadata,_.W6))==null?void 0:n.url;n=D.form||{};!U||n.element||n.skipDefaultElement||(D.form=D.form||{},D.form.element=U);if(y&&y!=="/service_ajax")return{type:0,command:l,form:D.form};if(_.q("kevlar_service_command_check")){if(_.FE(_.Jc().resolve(_.Ju),l))return Object.assign({},{type:1,command:l},D)}else{var A;if((A=_.M(l.commandMetadata,_.W6))==null?0:A.apiUrl)return Object.assign({},{type:1,command:l},D)}return{type:2,command:l,form:D.form}};
U0o=function(l){if(l.form){var D=l.form,U=Object.assign({},D);D=D.element;U=(delete U.element,U);if(D)return[_.lu(D,[l.command,U,l.commandController])]}return[]};
nyc=function(l){if(l.form){var D=l.form,U=Object.assign({},D);D=D.element;U=(delete U.element,U);D&&_.DP(D,[l.command],D,U)}};
AbB=function(l,D,U){var n=new ybc(l,D),y=new CE(l,D,U);l={"/youtubei/v1/browse":new hS(l,D,U),"/youtubei/v1/player":n,"/youtubei/v1/navigation/resolve_url":new PI,"/youtubei/v1/next":y,"/youtubei/v1/guide":new bD(U),"/youtubei/v1/search":new gL(l,D,U),"/youtubei/v1/reel/reel_item_watch":new uD(l,D,U),"/youtubei/v1/get_watch":new vI(n,y)};l["/youtubei/v1/account/account_menu"]=new QI;l["/youtubei/v1/notification/get_notification_menu"]=new Gh;return l};
LE=function(){var l=_.Jc().resolve(_.JS);return Promise.resolve(Wjo(l,_.nC.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
BWg=function(l){return l&&(l=_.q9(_.gr_(l)))?(new URLSearchParams(l)).get("service"):null};
ZL=function(l,D){_.Vu(_.M9(),function(){_.ae("adl")});
_.Jc().resolve(CgC)(D);l=l.root;l.loadData&&l.loadData(D);(D==null?0:D.response)?_.AS(ae$(),"SUCCESS"):_.II(new _.rc("Lifecycle: No response in data",_.il("IS_SHELL_LOAD"),D?D.page:"NO_PAGE",D?D.endpoint:"NO_ENDPOINT"));l.polymerController.$["page-manager"].lazyPrepareCriticalPages((D==null?void 0:D.page)||"",D.endpoint);var U,n;((n=_.M(D==null?void 0:(U=D.endpoint)==null?void 0:U.commandMetadata,_.W6))==null?0:n.webPageType)&&_.EB().dispatch(_.R7(_.M(D.endpoint.commandMetadata,_.W6).webPageType))};
hk9=function(){var l,D;return _.P(function(U){switch(U.nextAddress){case 1:l=window;if(!l.getDataPromise){U.jumpTo(2);break}_.ZY(U,3);return U.yield(l.getDataPromise(),5);case 5:return U.return(U.yieldResult);case 3:return _.kF(U),U.yield(LE(),6);case 6:return U.return(U.yieldResult);case 2:if(l.getInitialData)return D=l.getInitialData(),l.getInitialData=void 0,U.return(D);throw Error("Gj`"+_.nC.location.href);}})};
baB=function(){_.IN("CSI_SERVICE_NAME","youtube");_.ZP({loadType:"cold"});_.q("kevlar_log_lcp")&&PgG(function(l){_.ae("lcp",l.value)})};
gy9=function(){var l=_.ih(document.location.href,"enable");l&&l.indexOf("scraper")>-1&&_.IN("ADD_SCRAPER_ATTRIBUTES",!0)};
JbG=function(l){var D=l.root;l=[uUs,vyK,_.ea];_.q("web_feedback_endpoint_autolog_allowlist_killswitch")&&l.push(_.mC,QUo);GE9(function(U,n){return D0l(U,n,D)},function(U){if(!U.command)return[];
var n;((n=U.form)==null?0:n.element)?U.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},U.form,{endpoint:U.command})})):D.handleNavigate(U);return[]},l);
_.Jc().addProvider({provide:_.qK,useValue:_.yu.instance})};
qwC=function(){var l={},D={},U;for(U in Lj3){var n=_.B(_.aw(Lj3[U],void 0,"IAtZ7"));l[U]=n.next().value;D[U]=n.next().value}return[l,function(y){for(var A in y){var C=void 0;(C=D[A])==null||C(y[A])}}]};
_.a7=function(l,D,U){D=D===void 0?!1:D;var n=_.we.getValueByKeys(l,"contents","twoColumnWatchNextResults","results","results","contents"),y=_.we.getValueByKeys(l,"contents","twoColumnWatchNextResults","playlist","playlist")||null;D&&(y=null);var A=D=null;if(y)D=_.we.getValueByKeys(y,"titleText"),A=_.we.unsafeClone(_.we.getValueByKeys(y,"longBylineText")),n="",A&&(n=_.Nl(A)),A=_.$B(n);else if(n){n=_.B(n);for(var C=n.next();!C.done;C=n.next())C=C.value,C.videoPrimaryInfoRenderer&&(D=_.we.getValueByKeys.apply(_.we,
[C].concat(_.zz(MCN)))),C.videoSecondaryInfoRenderer&&(A=_.we.getValueByKeys.apply(_.we,[C].concat(_.zz(Rko))))}else _.nt(Error("Lj"));var h;l.currentVideoEndpoint?h=l.currentVideoEndpoint:_.nt(Error("Mj"));var b;U&&(b=_.we.getValueByKeys(U,"playabilityStatus","miniplayer","miniplayerRenderer"));l={miniplayerTitle:D,miniplayerSubtitle:A,watchEndpoint:h,playlistData:y};b&&(l.miniplayerRenderer=b);return l};
Zal=function(l){if(l)return _.Zk(l)};
_.ekC=function(){return{isFullscreen:function(){throw Error("Nj");},
toggleFullscreen:function(){throw Error("Oj");},
exitFullscreen:function(){throw Error("Pj");},
isAutonavEnabled:function(){throw Error("Qj");},
setAutonavEnabled:function(){throw Error("Rj");},
isAutoplaySetExplicitly:function(){throw Error("Sj");}}};
m0K=function(l){return l.videoDuration?l.numTaps>1&&l.tapDirection!==0?_.tS(l.draggedTime/l.videoDuration,0,1):_.tS((l.playedTime||0)/l.videoDuration,0,1):0};
a3c=function(l){return l.videoDuration?l.isDragging||l.numTaps>1&&l.tapDirection!==0?_.tS(l.draggedTime/l.videoDuration,0,1):_.tS((l.playedTime||0)/l.videoDuration,0,1):0};
XDs=function(l){var D,U,n;return _.M(l==null?void 0:(D=l.markersMap)==null?void 0:(U=D.find(function(y){return y.key==="HEATSEEKER"}))==null?void 0:(n=U.value)==null?void 0:n.heatmap,tC$)};
Sw$=function(l){var D,U;return(U=(D=XDs(l))==null?void 0:D.heatMarkersDecorations)!=null?U:[]};
kEd=function(l){if(_.q("mweb_supported_chapters_killswitch"))return!0;var D;return!!(l==null?0:(D=l.markersMap)==null?0:D.find(function(U){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(U.key)}))};
_.d0N=function(l){var D=Object,U=D.assign,n;l={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(n=l==null?void 0:l.getPlayerState())!=null?n:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return U.call(D,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},l,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
Kjs=function(l){return function(D){var U=l(),n,y=(n=U.playerApi)==null?void 0:n.getPlayerState();D&&D!==U.playerState&&(D===1||D===2)&&U.setState({playerState:y})}};
pDg=function(l){return function(D){var U=l(),n=U.playerApi;n&&(D==null?void 0:D.type)==="newdata"&&(cbo&&(clearTimeout(cbo),cbo=void 0),_.q("web_shorts_use_progress_state_for_gapless")?(D=n==null?void 0:n.getProgressState(D==null?void 0:D.playertype),D=D.seekableEnd-D.seekableStart):D=n==null?void 0:n.getDuration(D==null?void 0:D.playertype),U.setState({playedTime:0,videoDuration:D}))}};
x0_=function(l){return function(D){var U=l(),n=U.playerApi;if(n){var y=n.getPresentingPlayerType();_.q("web_shorts_use_progress_state_for_gapless")?(n=n.getProgressState(y),n=n.seekableEnd-n.seekableStart):n=n.getDuration(y);U.setState({playedTime:D,videoDuration:n})}}};
Fjg=function(l){_.qd(112394,l,function(){return jU3},function(D){jU3=D})};
rbs=function(l,D){if(!l)return[];var U,n,y;l=((U=l.markersMap)==null?void 0:(n=U.find(function(A){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(A.key)}))==null?void 0:(y=n.value)==null?void 0:y.chapters)||[];
!oy$(l)||(D==null?0:D.ignoreStub)||(l=[wDs()].concat(_.zz(l)));return l};
wDs=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
oy$=function(l){if(l.length===0)return!1;var D;return((D=_.M(l[0],Xw))==null?void 0:D.timeRangeStartMillis)!==0};
Sa=function(l){return l?l.timeRangeStartMillis||0:0};
f3c=function(l,D){if(l.isDragging&&D)return l=zk3(l,D),l===-1?wDs():rbs(D)[l]};
zk3=function(l,D){return l.isDragging&&D?rbs(D,{ignoreStub:!0}).findIndex(function(U,n,y){U=$0N(l);return NW$(U,y,n).scrubberHovering}):-1};
$0N=function(l){return Object.assign({},l,{videoDuration:l.videoDuration*1E3,playedTime:l.playedTime*1E3,draggedTime:l.draggedTime*1E3})};
NW$=function(l,D,U){var n=Sa(_.M(D[U],Xw));D=Sa(_.M(D[U+1],Xw))||l.videoDuration;U=l.isDragging;var y;if(y=l.isDragging)y=l.draggedTime,y=y!==null&&y>=n&&y<D;var A=l.playedTime;return A!==null&&A>=n&&A<D?{videoPosition:"active",isScrubbing:U,scrubberHovering:y}:l.playedTime<n?{videoPosition:"pending",isScrubbing:U,scrubberHovering:y}:{videoPosition:"seen",isScrubbing:U,scrubberHovering:y}};
sUB=function(l,D){return l.videoPosition==="seen"||(D===void 0?0:D)>0};
Ey9=function(l,D,U){D=l/D.storyboardInterval;var n=rbs(U);if(!n.length)return-D*72;U=0;n=_.B(n);for(var y=n.next();!y.done;y=n.next())if(Sa(_.M(y.value,Xw))/1E3<l)U++;else break;return-(D*72)-U*56};
TW9=function(l){return l?l.width/l.columns:0};
I3l=function(l){return l.isHovering?l.hoveredTime:l.draggedTime};
HaG=function(l,D){l=l.draggedTime*1E3;return l>=D.visibleTimeRangeStartMillis&&l<=D.visibleTimeRangeEndMillis};
_.Yws=function(l){if(l===void 0||Number.isNaN(l))return"--:--";var D=Math.abs(Math.floor(l)),U=Math.floor(D/86400),n=Math.floor(D%86400/3600),y=Math.floor(D%3600/60);D=Math.floor(D%60);var A="";U>0&&(A+=U+":",n<10&&(A+="0"));if(U>0||n>0)A+=n+":",y<10&&(A+="0");A+=y+":";D<10&&(A+="0");A+=D;return l>=0?A:"-"+A};
OaC=function(l,D){return function(){var U=I3l(l());var n=D();var y=l().playerApi;if(y&&y.getNumberOfStoryboardLevels()!==0){var A=y.getStoryboardFrameIndex(U,1);A!==-1?n=y.getStoryboardFrame(A,1):(U=y.getStoryboardFrameIndex(U,0),y=y.getStoryboardFrame(U,0),n&&y&&(y.height*=3,y.width*=3),n=y)}else n=null;if(!n)return null;D()&&(n.width=90*n.columns,n.height=160*n.rows);return n}};
_.VC9=function(l){if(!l||l.getVideoData)return l};
iNG=function(){var l;return{playerApi:(l=_.Ai())!=null?l:void 0}};
lio=function(l){var D;_.P(function(U){if(U.nextAddress==1)return U.yield(_.nq(),2);if(D=U.yieldResult)D.unMute(!0),D.setVolume(l,!0);_.Kz(U)})};
DC$=function(l,D){l&&(l.value=""+D,l.style.setProperty("--gradient-percent",D+"%"))};
UCC=function(l){var D;return(D=l==null?void 0:l.value)!=null?D:0};
n7B=function(){var l;_.P(function(D){if(D.nextAddress==1)return D.yield(_.nq(),2);l=D.yieldResult;if(!l)return D.return();l.isMuted()?l.unMute(!0):l.mute(!0);_.Kz(D)})};
yms=function(l){var D=_.Jc().resolve(_.kq).getPlayerElement();D&&l&&(l===1?D.pause():D.play())};
AmC=function(l){_.iu(l,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
WsB=function(l){_.iu(l,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
Ce3=function(l){return _.fk(l.document.body,function(){return _.g(BQc,null)},"kh")};
h$B=function(){var l;return(l=navigator.userActivation)==null?void 0:l.isActive};
PeK=function(){var l=window.performance.getEntriesByType("navigation");return l?l.map(function(D){return D.type}).includes("reload"):!1};
Ls$=function(){dL(dL(dL(dL(dL(dL(dL(_.Jc().resolve(_.KE),_.bN3),_.g7G),_.uh$),_.v73),_.QqK),_.GxC),_.JmG)};
qx$=function(l,D){D=D===void 0?!1:D;var U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return D||!_.q("kevlar_shorts_seedless_retry_initial_load")||(U=window,n=!(!U.getDataPromise&&!U.getInitialData),n)?C.yield(hk9(),2):(setTimeout(qx$.bind(window,l,!0),1E3),C.return());if(C.nextAddress!=3)return y=C.yieldResult,C.yield(M7C(y),3);A=C.yieldResult;ZL(l,A);_.Kz(C)})};
M7C=function(l){var D;if((D=l.response)==null||!D.replacementEndpoint)return _.Ut(l);D=_.Jc().resolve(_.JS);l=l.response;_.M(l.replacementEndpoint,_.vk)&&l.sequenceContinuation&&(_.M(l.replacementEndpoint,_.vk).sequenceParams=l.sequenceContinuation);return cI(D,l.replacementEndpoint,{},_.nC.location.href,"shorts",function(){},function(){return!1})};
ZN3=function(l){var D=_.Jc().resolve(R$_);l.playerResponse&&D.handleResponse(l.playerResponse);l.response&&D.handleResponse(l.response)};
e$G=function(l){var D=_.EB(),U,n=_.M((U=l.response)==null?void 0:U.frameworkUpdates,rf),y;U=_.M((y=l.playerResponse)==null?void 0:y.frameworkUpdates,rf);var A;l=_.M((A=l.reelWatchSequenceResponse)==null?void 0:A.frameworkUpdates,rf);n&&_.h4(n,D);U&&_.h4(U,D);l&&_.h4(l,D)};
mCs=function(l){var D;_.q("enable_redirect_linking_for_desktop_web_client")&&((D=window.location.hash)==null?0:D.includes("redirect_state"))&&l.url&&(l.url=l.url.toString()+window.location.hash)};
Xn_=function(l){var D=_.Jc(),U=D.resolve(_.JS);D=D.resolve(_.aiK);l.endpoint&&(U=t7B(U,l.endpoint),U.content&&l.response&&_.pE(D,l.response,U.content),U.player&&l.playerResponse&&_.pE(D,l.playerResponse,U.player),U.reelSequence&&l.reelWatchSequenceResponse&&_.pE(D,l.reelWatchSequenceResponse,U.reelSequence))};
xq=function(l,D){ZN3(D);e$G(D);var U;(D==null?0:D.url)&&((U=window.location.hash)==null?0:U.includes("redirect_state"))&&(mCs(D),(U=BWg(D.url))&&_.Vh(l.root,"yt-initialize-third-party",[U,D]));Xn_(D);U=_.Jc();var n=U.resolve(Sxs);D.playerResponse&&U.resolve(kx$).handleResponse(D.playerResponse);if(D.playerResponse){U=void 0;if(_.q("ab_v_vid_sig")&&D.endpoint){var y,A=(y=_.M(D.endpoint,_.za))!=null?y:_.M(D.endpoint,_.vk);A&&(U=A.videoId)}dC_(n,D.playerResponse,U)}D.playerResponse&&Yhs(D.playerResponse)&&
_.q("web_enable_ab_rsp_cl")?jFK().then(function(){KsN(n,D.playerResponse);ZL(l,D)}):ZL(l,D)};
pnG=function(l){if(l=l.root.data){var D=_.Jc().resolve(cmN);l.endpoint&&(l.response&&D.handleResponse(l.response,void 0,document.querySelector("ytd-app")),l.playerResponse&&D.handleResponse(l.playerResponse),l.reelWatchSequenceResponse&&D.handleResponse(l.reelWatchSequenceResponse))}};
xCG=function(l){var D,U,n,y,A,C;return _.P(function(h){switch(h.nextAddress){case 1:D=window;if(!D.getDataPromise){h.jumpTo(2);break}_.ZY(h,3);return h.yield(D.getDataPromise(),5);case 5:U=h.yieldResult;xq(l,U);_.WG(h,4);break;case 3:return _.kF(h),h.yield(LE(),6);case 6:n=h.yieldResult,ZL(l,n);case 4:return h.return();case 2:if(!_.q("sw_nav_preload_pbj")){h.jumpTo(7);break}D.fetchInitialData=function(){var b;return _.P(function(u){if(u.nextAddress==1)return u.yield(LE(),2);b=u.yieldResult;ZL(l,b);
_.Kz(u)})};
if(D.getInitialData){D.loadInitialData=function(b){xq(l,b)};
y=D.getInitialData();D.getInitialData=void 0;xq(l,y);h.jumpTo(8);break}D.fetchInitialData=void 0;return h.yield(LE(),9);case 9:A=h.yieldResult,ZL(l,A);case 8:return h.return();case 7:D.getInitialData?(C=D.getInitialData(),D.getInitialData=void 0,xq(l,C)):D.loadInitialData=function(b){xq(l,b)},_.Kz(h)}})};
Fs$=function(){var l=new jqo;_.IJ3(l);l.registerInitializationCallback(function(){nX_(void 0,void 0,void 0,_.q("web_enable_mss_batching_ks")?void 0:{batchingStrategy:"BATCH"})});
l.registerCallback("error",function(D,U,n){_.ll(Error("Wj`"+U+"`"+n))})};
o7$=typeof Object.create=="function"?Object.create:function(l){var D=function(){};
D.prototype=l;return new D};
wn9=typeof Object.defineProperties=="function"?Object.defineProperty:function(l,D,U){if(l==Array.prototype||l==Object.prototype)return l;l[D]=U.value;return l};
rmK=function(l){l=["object"==typeof globalThis&&globalThis,l,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var D=0;D<l.length;++D){var U=l[D];if(U&&U.Math==Math)return U}throw Error("a");};
_.QP=rmK(this);z$B="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.QP.BigInt64Array&&(z$B.push("BigInt64"),z$B.push("BigUint64"));var $Cd=function(l,D){if(D)for(var U=0;U<z$B.length;U++)fiG(z$B[U]+"Array.prototype."+l,D)},ja=function(l,D){D&&fiG(l,D)},fiG=function(l,D){var U=_.QP;
l=l.split(".");for(var n=0;n<l.length-1;n++){var y=l[n];if(!(y in U))return;U=U[y]}l=l[l.length-1];n=U[l];D=D(n);D!=n&&D!=null&&wn9(U,l,{configurable:!0,writable:!0,value:D})},NQd=function(){function l(){function U(){}
new U;Reflect.construct(U,[],function(){});
return new U instanceof U}
if(typeof Reflect!="undefined"&&Reflect.construct){if(l())return Reflect.construct;var D=Reflect.construct;return function(U,n,y){U=D(U,n);y&&Reflect.setPrototypeOf(U,y.prototype);return U}}return function(U,n,y){y===void 0&&(y=U);
y=o7$(y.prototype||Object.prototype);return Function.prototype.apply.call(U,y,n)||y}}(),sq3;
if(typeof Object.setPrototypeOf=="function")sq3=Object.setPrototypeOf;else{var E7_;a:{var TQK={a:!0},IiN={};try{IiN.__proto__=TQK;E7_=IiN.a;break a}catch(l){}E7_=!1}sq3=E7_?function(l,D){l.__proto__=D;if(l.__proto__!==D)throw new TypeError("b`"+l);return l}:null}Fw=sq3;
_.Z=function(l,D){l.prototype=o7$(D.prototype);l.prototype.constructor=l;if(Fw)Fw(l,D);else for(var U in D)if(U!="prototype")if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(D,U);n&&Object.defineProperty(l,U,n)}else l[U]=D[U];l.superClass_=D.prototype};
HNo=function(l){var D=0;return function(){return D<l.length?{done:!1,value:l[D++]}:{done:!0}}};
_.B=function(l){var D=typeof Symbol!="undefined"&&Symbol.iterator&&l[Symbol.iterator];if(D)return D.call(l);if(typeof l.length=="number")return{next:HNo(l)};throw Error("c`"+String(l));};
B_=function(l){for(var D,U=[];!(D=l.next()).done;)U.push(D.value);return U};
_.zz=function(l){return l instanceof Array?l:B_(_.B(l))};
_.wL=function(l){return o7(l,l)};
o7=function(l,D){l.raw=D;Object.freeze&&(Object.freeze(l),Object.freeze(D));return l};
rL=function(l,D){return Object.prototype.hasOwnProperty.call(l,D)};
Yxl=function(l){if(l==null)throw new TypeError("d");return Object(l)};
ON3=typeof Object.assign=="function"?Object.assign:function(l,D){l=Yxl(l);for(var U=1;U<arguments.length;U++){var n=arguments[U];if(n)for(var y in n)rL(n,y)&&(l[y]=n[y])}return l};
ja("Object.assign",function(l){return l||ON3});
var zh=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},V7B=function(l){if(l.isRunning_)throw new TypeError("f");
l.isRunning_=!0};
zh.prototype.JSC$8797_next_=function(l){this.yieldResult=l};
var iCy=function(l,D){l.abruptCompletion_={exception:D,isException:!0};l.nextAddress=l.catchAddress_||l.finallyAddress_};
zh.prototype.return=function(l){this.abruptCompletion_={return:l};this.nextAddress=this.finallyAddress_};
zh.prototype.yield=function(l,D){this.nextAddress=D;return{value:l}};
zh.prototype.jumpTo=function(l){this.nextAddress=l};
_.Kz=function(l){l.nextAddress=0};
_.ZY=function(l,D,U){l.catchAddress_=D;U!=void 0&&(l.finallyAddress_=U)};
_.tv=function(l,D){l.catchAddress_=0;l.finallyAddress_=D||0};
_.WG=function(l,D,U){l.nextAddress=D;l.catchAddress_=U||0};
_.kF=function(l,D){l.catchAddress_=D||0;D=l.abruptCompletion_.exception;l.abruptCompletion_=null;return D};
_.aV=function(l,D,U,n){n?l.finallyContexts_[n]=l.abruptCompletion_:l.finallyContexts_=[l.abruptCompletion_];l.catchAddress_=D||0;l.finallyAddress_=U||0};
_.Sc=function(l,D,U){U=l.finallyContexts_.splice(U||0)[0];(U=l.abruptCompletion_=l.abruptCompletion_||U)?U.isException?l.nextAddress=l.catchAddress_||l.finallyAddress_:U.jumpTo!=void 0&&l.finallyAddress_<U.jumpTo?(l.nextAddress=U.jumpTo,l.abruptCompletion_=null):l.nextAddress=l.finallyAddress_:l.nextAddress=D};
l9r=function(l){this.JSC$8802_context_=new zh;this.program_=l};
Usk=function(l,D){V7B(l.JSC$8802_context_);var U=l.JSC$8802_context_.yieldAllIterator_;if(U)return Ds_(l,"return"in U?U["return"]:function(n){return{value:n,done:!0}},D,l.JSC$8802_context_.return);
l.JSC$8802_context_.return(D);return fE(l)};
Ds_=function(l,D,U,n){try{var y=D.call(l.JSC$8802_context_.yieldAllIterator_,U);if(!(y instanceof Object))throw new TypeError("e`"+y);if(!y.done)return l.JSC$8802_context_.isRunning_=!1,y;var A=y.value}catch(C){return l.JSC$8802_context_.yieldAllIterator_=null,iCy(l.JSC$8802_context_,C),fE(l)}l.JSC$8802_context_.yieldAllIterator_=null;n.call(l.JSC$8802_context_,A);return fE(l)};
fE=function(l){for(;l.JSC$8802_context_.nextAddress;)try{var D=l.program_(l.JSC$8802_context_);if(D)return l.JSC$8802_context_.isRunning_=!1,{value:D.value,done:!1}}catch(U){l.JSC$8802_context_.yieldResult=void 0,iCy(l.JSC$8802_context_,U)}l.JSC$8802_context_.isRunning_=!1;if(l.JSC$8802_context_.abruptCompletion_){D=l.JSC$8802_context_.abruptCompletion_;l.JSC$8802_context_.abruptCompletion_=null;if(D.isException)throw D.exception;return{value:D.return,done:!0}}return{value:void 0,done:!0}};
n97=function(l){this.next=function(D){V7B(l.JSC$8802_context_);l.JSC$8802_context_.yieldAllIterator_?D=Ds_(l,l.JSC$8802_context_.yieldAllIterator_.next,D,l.JSC$8802_context_.JSC$8797_next_):(l.JSC$8802_context_.JSC$8797_next_(D),D=fE(l));return D};
this.throw=function(D){V7B(l.JSC$8802_context_);l.JSC$8802_context_.yieldAllIterator_?D=Ds_(l,l.JSC$8802_context_.yieldAllIterator_["throw"],D,l.JSC$8802_context_.JSC$8797_next_):(iCy(l.JSC$8802_context_,D),D=fE(l));return D};
this.return=function(D){return Usk(l,D)};
this[Symbol.iterator]=function(){return this}};
_.U4=function(l,D){D=new n97(new l9r(D));Fw&&l.prototype&&Fw(D,l.prototype);return D};
ydv=function(l){function D(n){return l.next(n)}
function U(n){return l.throw(n)}
return new Promise(function(n,y){function A(C){C.done?n(C.value):Promise.resolve(C.value).then(D,U).then(A,y)}
A(l.next())})};
_.P=function(l){return ydv(new n97(new l9r(l)))};
ja("Symbol",function(l){if(l)return l;var D=function(A,C){this.$jscomp$symbol$id_=A;wn9(this,"description",{configurable:!0,writable:!0,value:C})};
D.prototype.toString=function(){return this.$jscomp$symbol$id_};
var U="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",n=0,y=function(A){if(this instanceof y)throw new TypeError("g");return new D(U+(A||"")+"_"+n++,A)};
return y});
ja("Symbol.iterator",function(l){if(l)return l;l=Symbol("h");wn9(Array.prototype,l,{configurable:!0,writable:!0,value:function(){return Adh(HNo(this))}});
return l});
ja("Symbol.asyncIterator",function(l){return l?l:Symbol("i")});
Adh=function(l){l={next:l};l[Symbol.iterator]=function(){return this};
return l};
_.m6=function(l){var D=l[Symbol.asyncIterator];return D!==void 0?D.call(l):new WB_(_.B(l))};
WB_=function(l){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return l};
this.next=function(D){return Promise.resolve(l.next(D))};
this["throw"]=function(D){return new Promise(function(U,n){var y=l["throw"];y!==void 0?U(y.call(l,D)):(U=l["return"],U!==void 0&&U.call(l),n(new TypeError("j")))})};
l["return"]!==void 0&&(this["return"]=function(D){return Promise.resolve(l["return"](D))})};
_.EW=function(){for(var l=Number(this),D=[],U=l;U<arguments.length;U++)D[U-l]=arguments[U];return D};
_.nE=function(l){return l};
ja("globalThis",function(l){return l||_.QP});
ja("Reflect",function(l){return l?l:{}});
ja("Reflect.construct",function(){return NQd});
ja("Reflect.setPrototypeOf",function(l){return l?l:Fw?function(D,U){try{return Fw(D,U),!0}catch(n){return!1}}:null});
ja("Promise",function(l){function D(){this.batch_=null}
function U(C){return C instanceof y?C:new y(function(h){h(C)})}
if(l&&(typeof _.QP.PromiseRejectionEvent!=="undefined"||!_.QP.Promise||_.QP.Promise.toString().indexOf("[native code]")===-1))return l;D.prototype.asyncExecute=function(C){if(this.batch_==null){this.batch_=[];var h=this;this.asyncExecuteFunction(function(){h.executeBatch_()})}this.batch_.push(C)};
var n=_.QP.setTimeout;D.prototype.asyncExecuteFunction=function(C){n(C,0)};
D.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var C=this.batch_;this.batch_=[];for(var h=0;h<C.length;++h){var b=C[h];C[h]=null;try{b()}catch(u){this.asyncThrow_(u)}}}this.batch_=null};
D.prototype.asyncThrow_=function(C){this.asyncExecuteFunction(function(){throw C;})};
var y=function(C){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var h=this.createResolveAndReject_();try{C(h.resolve,h.reject)}catch(b){h.reject(b)}};
y.prototype.createResolveAndReject_=function(){function C(u){return function(Q){b||(b=!0,u.call(h,Q))}}
var h=this,b=!1;return{resolve:C(this.resolveTo_),reject:C(this.JSC$8834_reject_)}};
y.prototype.resolveTo_=function(C){if(C===this)this.JSC$8834_reject_(new TypeError("n"));else if(C instanceof y)this.settleSameAsPromise_(C);else{a:switch(typeof C){case "object":var h=C!=null;break a;case "function":h=!0;break a;default:h=!1}h?this.resolveToNonPromiseObj_(C):this.fulfill_(C)}};
y.prototype.resolveToNonPromiseObj_=function(C){var h=void 0;try{h=C.then}catch(b){this.JSC$8834_reject_(b);return}typeof h=="function"?this.settleSameAsThenable_(h,C):this.fulfill_(C)};
y.prototype.JSC$8834_reject_=function(C){this.settle_(2,C)};
y.prototype.fulfill_=function(C){this.settle_(1,C)};
y.prototype.settle_=function(C,h){if(this.state_!=0)throw Error("o`"+C+"`"+h+"`"+this.state_);this.state_=C;this.result_=h;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
y.prototype.scheduleUnhandledRejectionCheck_=function(){var C=this;n(function(){if(C.notifyUnhandledRejection_()){var h=_.QP.console;typeof h!=="undefined"&&h.error(C.result_)}},1)};
y.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var C=_.QP.CustomEvent,h=_.QP.Event,b=_.QP.dispatchEvent;if(typeof b==="undefined")return!0;typeof C==="function"?C=new C("unhandledrejection",{cancelable:!0}):typeof h==="function"?C=new h("unhandledrejection",{cancelable:!0}):(C=_.QP.document.createEvent("CustomEvent"),C.initCustomEvent("unhandledrejection",!1,!0,C));C.promise=this;C.reason=this.result_;return b(C)};
y.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var C=0;C<this.onSettledCallbacks_.length;++C)A.asyncExecute(this.onSettledCallbacks_[C]);this.onSettledCallbacks_=null}};
var A=new D;y.prototype.settleSameAsPromise_=function(C){var h=this.createResolveAndReject_();C.callWhenSettled_(h.resolve,h.reject)};
y.prototype.settleSameAsThenable_=function(C,h){var b=this.createResolveAndReject_();try{C.call(h,b.resolve,b.reject)}catch(u){b.reject(u)}};
y.prototype.then=function(C,h){function b(J,L){return typeof J=="function"?function(R){try{u(J(R))}catch(a){Q(a)}}:L}
var u,Q,G=new y(function(J,L){u=J;Q=L});
this.callWhenSettled_(b(C,u),b(h,Q));return G};
y.prototype.catch=function(C){return this.then(void 0,C)};
y.prototype.callWhenSettled_=function(C,h){function b(){switch(u.state_){case 1:C(u.result_);break;case 2:h(u.result_);break;default:throw Error("p`"+u.state_);}}
var u=this;this.onSettledCallbacks_==null?A.asyncExecute(b):this.onSettledCallbacks_.push(b);this.isRejectionHandled_=!0};
y.resolve=U;y.reject=function(C){return new y(function(h,b){b(C)})};
y.race=function(C){return new y(function(h,b){for(var u=_.B(C),Q=u.next();!Q.done;Q=u.next())U(Q.value).callWhenSettled_(h,b)})};
y.all=function(C){var h=_.B(C),b=h.next();return b.done?U([]):new y(function(u,Q){function G(R){return function(a){J[R]=a;L--;L==0&&u(J)}}
var J=[],L=0;do J.push(void 0),L++,U(b.value).callWhenSettled_(G(J.length-1),Q),b=h.next();while(!b.done)})};
return y});
var $q=function(l,D,U){if(l==null)throw new TypeError("q`"+U);if(D instanceof RegExp)throw new TypeError("r`"+U);return l+""};
ja("String.prototype.startsWith",function(l){return l?l:function(D,U){var n=$q(this,D,"startsWith"),y=n.length,A=D.length;U=Math.max(0,Math.min(U|0,n.length));for(var C=0;C<A&&U<y;)if(n[U++]!=D[C++])return!1;return C>=A}});
ja("Object.setPrototypeOf",function(l){return l||Fw});
ja("Symbol.dispose",function(l){return l?l:Symbol("s")});
ja("SuppressedError",function(l){function D(U,n,y){if(!(this instanceof D))return new D(U,n,y);y=Error(y);"stack"in y&&(this.stack=y.stack);this.message=y.message;this.error=U;this.suppressed=n}
if(l)return l;_.Z(D,Error);D.prototype.name="SuppressedError";return D});
ja("Array.from",function(l){return l?l:function(D,U,n){U=U!=null?U:function(h){return h};
var y=[],A=typeof Symbol!="undefined"&&Symbol.iterator&&D[Symbol.iterator];if(typeof A=="function"){D=A.call(D);for(var C=0;!(A=D.next()).done;)y.push(U.call(n,A.value,C++))}else for(A=D.length,C=0;C<A;C++)y.push(U.call(n,D[C],C));return y}});
var Bl7=function(l,D,U){l instanceof String&&(l=String(l));for(var n=l.length,y=0;y<n;y++){var A=l[y];if(D.call(U,A,y,l))return{i:y,v:A}}return{i:-1,v:void 0}};
ja("Array.prototype.find",function(l){return l?l:function(D,U){return Bl7(this,D,U).v}});
ja("WeakMap",function(l){function D(){}
function U(b){var u=typeof b;return u==="object"&&b!==null||u==="function"}
function n(b){if(!rL(b,A)){var u=new D;wn9(b,A,{value:u})}}
function y(b){var u=Object[b];u&&(Object[b]=function(Q){if(Q instanceof D)return Q;Object.isExtensible(Q)&&n(Q);return u(Q)})}
if(function(){if(!l||!Object.seal)return!1;try{var b=Object.seal({}),u=Object.seal({}),Q=new l([[b,2],[u,3]]);if(Q.get(b)!=2||Q.get(u)!=3)return!1;Q.delete(b);Q.set(u,4);return!Q.has(b)&&Q.get(u)==4}catch(G){return!1}}())return l;
var A="$jscomp_hidden_"+Math.random();y("freeze");y("preventExtensions");y("seal");var C=0,h=function(b){this.JSC$8842_id_=(C+=Math.random()+1).toString();if(b){b=_.B(b);for(var u;!(u=b.next()).done;)u=u.value,this.set(u[0],u[1])}};
h.prototype.set=function(b,u){if(!U(b))throw Error("t");n(b);if(!rL(b,A))throw Error("u`"+b);b[A][this.JSC$8842_id_]=u;return this};
h.prototype.get=function(b){return U(b)&&rL(b,A)?b[A][this.JSC$8842_id_]:void 0};
h.prototype.has=function(b){return U(b)&&rL(b,A)&&rL(b[A],this.JSC$8842_id_)};
h.prototype.delete=function(b){return U(b)&&rL(b,A)&&rL(b[A],this.JSC$8842_id_)?delete b[A][this.JSC$8842_id_]:!1};
return h});
ja("Map",function(l){if(function(){if(!l||typeof l!="function"||!l.prototype.entries||typeof Object.seal!="function")return!1;try{var h=Object.seal({x:4}),b=new l(_.B([[h,"s"]]));if(b.get(h)!="s"||b.size!=1||b.get({x:4})||b.set({x:4},"t")!=b||b.size!=2)return!1;var u=b.entries(),Q=u.next();if(Q.done||Q.value[0]!=h||Q.value[1]!="s")return!1;Q=u.next();return Q.done||Q.value[0].x!=4||Q.value[1]!="t"||!u.next().done?!1:!0}catch(G){return!1}}())return l;
var D=new WeakMap,U=function(h){this[0]={};this[1]=A();this.size=0;if(h){h=_.B(h);for(var b;!(b=h.next()).done;)b=b.value,this.set(b[0],b[1])}};
U.prototype.set=function(h,b){h=h===0?0:h;var u=n(this,h);u.list||(u.list=this[0][u.id]=[]);u.entry?u.entry.value=b:(u.entry={next:this[1],previous:this[1].previous,head:this[1],key:h,value:b},u.list.push(u.entry),this[1].previous.next=u.entry,this[1].previous=u.entry,this.size++);return this};
U.prototype.delete=function(h){h=n(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this[0][h.id],h.entry.previous.next=h.entry.next,h.entry.next.previous=h.entry.previous,h.entry.head=null,this.size--,!0):!1};
U.prototype.clear=function(){this[0]={};this[1]=this[1].previous=A();this.size=0};
U.prototype.has=function(h){return!!n(this,h).entry};
U.prototype.get=function(h){return(h=n(this,h).entry)&&h.value};
U.prototype.entries=function(){return y(this,function(h){return[h.key,h.value]})};
U.prototype.keys=function(){return y(this,function(h){return h.key})};
U.prototype.values=function(){return y(this,function(h){return h.value})};
U.prototype.forEach=function(h,b){for(var u=this.entries(),Q;!(Q=u.next()).done;)Q=Q.value,h.call(b,Q[1],Q[0],this)};
U.prototype[Symbol.iterator]=U.prototype.entries;var n=function(h,b){var u=b&&typeof b;u=="object"||u=="function"?D.has(b)?u=D.get(b):(u=""+ ++C,D.set(b,u)):u="p_"+b;var Q=h[0][u];if(Q&&rL(h[0],u))for(h=0;h<Q.length;h++){var G=Q[h];if(b!==b&&G.key!==G.key||b===G.key)return{id:u,list:Q,index:h,entry:G}}return{id:u,list:Q,index:-1,entry:void 0}},y=function(h,b){var u=h[1];
return Adh(function(){if(u){for(;u.head!=h[1];)u=u.previous;for(;u.next!=u.head;)return u=u.next,{done:!1,value:b(u)};u=null}return{done:!0,value:void 0}})},A=function(){var h={};
return h.previous=h.next=h.head=h},C=0;
return U});
ja("Set",function(l){if(function(){if(!l||typeof l!="function"||!l.prototype.entries||typeof Object.seal!="function")return!1;try{var U=Object.seal({x:4}),n=new l(_.B([U]));if(!n.has(U)||n.size!=1||n.add(U)!=n||n.size!=1||n.add({x:4})!=n||n.size!=2)return!1;var y=n.entries(),A=y.next();if(A.done||A.value[0]!=U||A.value[1]!=U)return!1;A=y.next();return A.done||A.value[0]==U||A.value[0].x!=4||A.value[1]!=A.value[0]?!1:y.next().done}catch(C){return!1}}())return l;
var D=function(U){this.JSC$8856_map_=new Map;if(U){U=_.B(U);for(var n;!(n=U.next()).done;)this.add(n.value)}this.size=this.JSC$8856_map_.size};
D.prototype.add=function(U){U=U===0?0:U;this.JSC$8856_map_.set(U,U);this.size=this.JSC$8856_map_.size;return this};
D.prototype.delete=function(U){U=this.JSC$8856_map_.delete(U);this.size=this.JSC$8856_map_.size;return U};
D.prototype.clear=function(){this.JSC$8856_map_.clear();this.size=0};
D.prototype.has=function(U){return this.JSC$8856_map_.has(U)};
D.prototype.entries=function(){return this.JSC$8856_map_.entries()};
D.prototype.values=function(){return this.JSC$8856_map_.values()};
D.prototype.keys=D.prototype.values;D.prototype[Symbol.iterator]=D.prototype.values;D.prototype.forEach=function(U,n){var y=this;this.JSC$8856_map_.forEach(function(A){return U.call(n,A,A,y)})};
return D});
ja("Math.log2",function(l){return l?l:function(D){return Math.log(D)/Math.LN2}});
ja("Object.values",function(l){return l?l:function(D){var U=[],n;for(n in D)rL(D,n)&&U.push(D[n]);return U}});
ja("Object.is",function(l){return l?l:function(D,U){return D===U?D!==0||1/D===1/U:D!==D&&U!==U}});
ja("Array.prototype.includes",function(l){return l?l:function(D,U){var n=this;n instanceof String&&(n=String(n));var y=n.length;U=U||0;for(U<0&&(U=Math.max(U+y,0));U<y;U++){var A=n[U];if(A===D||Object.is(A,D))return!0}return!1}});
ja("String.prototype.includes",function(l){return l?l:function(D,U){return $q(this,D,"includes").indexOf(D,U||0)!==-1}});
ja("Object.entries",function(l){return l?l:function(D){var U=[],n;for(n in D)rL(D,n)&&U.push([n,D[n]]);return U}});
ja("Number.isFinite",function(l){return l?l:function(D){return typeof D!=="number"?!1:!isNaN(D)&&D!==Infinity&&D!==-Infinity}});
ja("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ja("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
ja("Number.isInteger",function(l){return l?l:function(D){return Number.isFinite(D)?D===Math.floor(D):!1}});
ja("Number.isSafeInteger",function(l){return l?l:function(D){return Number.isInteger(D)&&Math.abs(D)<=Number.MAX_SAFE_INTEGER}});
ja("String.prototype.endsWith",function(l){return l?l:function(D,U){var n=$q(this,D,"endsWith");U===void 0&&(U=n.length);U=Math.max(0,Math.min(U|0,n.length));for(var y=D.length;y>0&&U>0;)if(n[--U]!=D[--y])return!1;return y<=0}});
var CGv=function(l,D){l instanceof String&&(l+="");var U=0,n=!1,y={next:function(){if(!n&&U<l.length){var A=U++;return{value:D(A,l[A]),done:!1}}n=!0;return{done:!0,value:void 0}}};
y[Symbol.iterator]=function(){return y};
return y};
ja("Array.prototype.entries",function(l){return l?l:function(){return CGv(this,function(D,U){return[D,U]})}});
ja("Math.trunc",function(l){return l?l:function(D){D=Number(D);if(isNaN(D)||D===Infinity||D===-Infinity||D===0)return D;var U=Math.floor(Math.abs(D));return D<0?-U:U}});
ja("Number.isNaN",function(l){return l?l:function(D){return typeof D==="number"&&isNaN(D)}});
ja("Array.prototype.keys",function(l){return l?l:function(){return CGv(this,function(D){return D})}});
ja("Array.prototype.values",function(l){return l?l:function(){return CGv(this,function(D,U){return U})}});
ja("Array.prototype.fill",function(l){return l?l:function(D,U,n){var y=this.length||0;U<0&&(U=Math.max(0,y+U));if(n==null||n>y)n=y;n=Number(n);n<0&&(n=Math.max(0,y+n));for(U=Number(U||0);U<n;U++)this[U]=D;return this}});
$Cd("fill",function(l){return l?l:Array.prototype.fill});
ja("Object.fromEntries",function(l){return l?l:function(D){var U={};if(!(Symbol.iterator in D))throw new TypeError("v`"+D);D=D[Symbol.iterator].call(D);for(var n=D.next();!n.done;n=D.next()){n=n.value;if(Object(n)!==n)throw new TypeError("w");U[n[0]]=n[1]}return U}});
ja("String.prototype.replaceAll",function(l){return l?l:function(D,U){if(D instanceof RegExp&&!D.global)throw new TypeError("x");return D instanceof RegExp?this.replace(D,U):this.replace(new RegExp(String(D).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),U)}});
ja("Object.getOwnPropertySymbols",function(l){return l?l:function(){return[]}});
ja("String.prototype.repeat",function(l){return l?l:function(D){var U=$q(this,null,"repeat");if(D<0||D>1342177279)throw new RangeError("y");D|=0;for(var n="";D;)if(D&1&&(n+=U),D>>>=1)U+=U;return n}});
ja("Array.prototype.findIndex",function(l){return l?l:function(D,U){return Bl7(this,D,U).i}});
ja("Array.prototype.flatMap",function(l){return l?l:function(D,U){var n=[];Array.prototype.forEach.call(this,function(y,A){y=D.call(U,y,A,this);Array.isArray(y)?n.push.apply(n,y):n.push(y)});
return n}});
ja("String.prototype.codePointAt",function(l){return l?l:function(D){var U=$q(this,null,"codePointAt"),n=U.length;D=Number(D)||0;if(D>=0&&D<n){D|=0;var y=U.charCodeAt(D);if(y<55296||y>56319||D+1===n)return y;D=U.charCodeAt(D+1);return D<56320||D>57343?y:(y-55296)*1024+D+9216}}});
ja("String.fromCodePoint",function(l){return l?l:function(D){for(var U="",n=0;n<arguments.length;n++){var y=Number(arguments[n]);if(y<0||y>1114111||y!==Math.floor(y))throw new RangeError("z`"+y);y<=65535?U+=String.fromCharCode(y):(y-=65536,U+=String.fromCharCode(y>>>10&1023|55296),U+=String.fromCharCode(y&1023|56320))}return U}});
ja("String.prototype.trimLeft",function(l){function D(){return this.replace(/^[\s\xa0]+/,"")}
return l||D});
ja("String.prototype.trimStart",function(l){return l||String.prototype.trimLeft});
ja("String.prototype.padStart",function(l){return l?l:function(D,U){var n=$q(this,null,"padStart");D-=n.length;U=U!==void 0?String(U):" ";return(D>0&&U?U.repeat(Math.ceil(D/U.length)).substring(0,D):"")+n}});
ja("Promise.prototype.finally",function(l){return l?l:function(D){return this.then(function(U){return Promise.resolve(D()).then(function(){return U})},function(U){return Promise.resolve(D()).then(function(){throw U;
})})}});
ja("Math.imul",function(l){return l?l:function(D,U){D=Number(D);U=Number(U);var n=D&65535,y=U&65535;return n*y+((D>>>16&65535)*y+n*(U>>>16&65535)<<16>>>0)|0}});
ja("Object.hasOwn",function(l){return l?l:function(D,U){return Object.prototype.hasOwnProperty.call(D,U)}});
ja("Math.sign",function(l){return l?l:function(D){D=Number(D);return D===0||isNaN(D)?D:D>0?1:-1}});
ja("Array.prototype.flat",function(l){return l?l:function(D){D=D===void 0?1:D;var U=[];Array.prototype.forEach.call(this,function(n){Array.isArray(n)&&D>0?(n=Array.prototype.flat.call(n,D-1),U.push.apply(U,n)):U.push(n)});
return U}});
ja("String.raw",function(l){return l?l:function(D,U){D=Yxl(D);for(var n=D.raw,y=n.length,A="",C=0;C<y;++C)A+=n[C],C+1<y&&C+1<arguments.length&&(A+=String(arguments[C+1]));return A}});
ja("WeakSet",function(l){if(function(){if(!l||!Object.seal)return!1;try{var U=Object.seal({}),n=Object.seal({}),y=new l([U]);if(!y.has(U)||y.has(n))return!1;y.delete(U);y.add(n);return!y.has(U)&&y.has(n)}catch(A){return!1}}())return l;
var D=function(U){this.JSC$8867_map_=new WeakMap;if(U){U=_.B(U);for(var n;!(n=U.next()).done;)this.add(n.value)}};
D.prototype.add=function(U){this.JSC$8867_map_.set(U,!0);return this};
D.prototype.has=function(U){return this.JSC$8867_map_.has(U)};
D.prototype.delete=function(U){return this.JSC$8867_map_.delete(U)};
return D});
ja("Reflect.ownKeys",function(l){return l?l:function(D){var U=[],n=Object.getOwnPropertyNames(D);D=Object.getOwnPropertySymbols(D);for(var y=0;y<n.length;y++)(n[y].substring(0,14)=="jscomp_symbol_"?D:U).push(n[y]);return U.concat(D)}});
ja("Object.getOwnPropertyDescriptors",function(l){return l?l:function(D){for(var U={},n=Reflect.ownKeys(D),y=0;y<n.length;y++)U[n[y]]=Object.getOwnPropertyDescriptor(D,n[y]);return U}});
ja("Promise.allSettled",function(l){function D(n){return{status:"fulfilled",value:n}}
function U(n){return{status:"rejected",reason:n}}
return l?l:function(n){var y=this;n=Array.from(n,function(A){return y.resolve(A).then(D,U)});
return y.all(n)}});
ja("Number.parseInt",function(l){return l||parseInt});
_._DumpException=window._DumpException||function(l){throw l;};
window._DumpException=_._DumpException;var hKy=window.ytcsi;hKy&&typeof hKy.tick==="function"&&hKy.tick("rses_dpj");var PGH,N9,s4,E4,bCr,g9y,u$y,v91,SW,Q_7;PGH=PGH||{};_.nC=this||self;_.vG=function(l,D,U){l=l.split(".");U=U||_.nC;for(var n;l.length&&(n=l.shift());)l.length||D===void 0?U[n]&&U[n]!==Object.prototype[n]?U=U[n]:U=U[n]={}:U[n]=D};
N9=function(l,D){var U=_.UG("WIZ_global_data.oxN3nb");l=U&&U[l];return l!=null?l:D};
s4=_.nC._F_toggles_default_kevlar_base||[];E4=function(){};
E4.get=function(){return null};
_.Ud_=null;_.UG=function(l,D){l=l.split(".");D=D||_.nC;for(var U=0;U<l.length;U++)if(D=D[l[U]],D==null)return null;return D};
_.Th=function(l){l.instance_=void 0;l.getInstance=function(){return l.instance_?l.instance_:l.instance_=new l}};
_.i$=function(l){var D=typeof l;return D!="object"?D:l?Array.isArray(l)?"array":D:"null"};
_.Ns=function(l){var D=_.i$(l);return D=="array"||D=="object"&&typeof l.length=="number"};
_.I_=function(l){var D=typeof l;return D=="object"&&l!=null||D=="function"};
_.Ho=function(l){return Object.prototype.hasOwnProperty.call(l,bCr)&&l[bCr]||(l[bCr]=++g9y)};
bCr="closure_uid_"+(Math.random()*1E9>>>0);g9y=0;u$y=function(l,D,U){return l.call.apply(l.bind,arguments)};
v91=function(l,D,U){if(!l)throw Error();if(arguments.length>2){var n=Array.prototype.slice.call(arguments,2);return function(){var y=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(y,n);return l.apply(D,y)}}return function(){return l.apply(D,arguments)}};
_.jU=function(l,D,U){_.jU=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?u$y:v91;return _.jU.apply(null,arguments)};
_.P6=function(l,D){var U=Array.prototype.slice.call(arguments,1);return function(){var n=U.slice();n.push.apply(n,arguments);return l.apply(this,n)}};
_.I7=function(){return Date.now()};
SW=function(l){return l};
_.HI=function(l,D){function U(){}
U.prototype=D.prototype;l.superClass_=D.prototype;l.prototype=new U;l.prototype.constructor=l;l.base=function(n,y,A){for(var C=Array(arguments.length-2),h=2;h<arguments.length;h++)C[h-2]=arguments[h];return D.prototype[y].apply(n,C)}};
Q_7=function(l){return l};var GN8,Jdv;_.E=function(l,D,U,n){var y=arguments.length,A=y<3?D:n===null?n=Object.getOwnPropertyDescriptor(D,U):n,C;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")A=Reflect.decorate(l,D,U,n);else for(var h=l.length-1;h>=0;h--)if(C=l[h])A=(y<3?C(A):y>3?C(D,U,A):C(D,U))||A;y>3&&A&&Object.defineProperty(D,U,A)};
_.T=function(l,D){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(l,D)};
GN8=function(l,D){if(D!==null&&D!==void 0){if(typeof D!=="object"&&typeof D!=="function")throw new TypeError("A");if(U===void 0){if(!Symbol.dispose)throw new TypeError("C");var U=D[Symbol.dispose]}if(typeof U!=="function")throw new TypeError("D");l.stack.push({value:D,dispose:U,async:!1})}return D};
Jdv=function(l){function D(A){l.error=l.hasError?new SuppressedError(A,l.error,"An error was suppressed during disposal."):A;l.hasError=!0}
function U(){for(;n=l.stack.pop();)try{if(!n.async&&y===1)return y=0,l.stack.push(n),Promise.resolve().then(U);if(n.dispose){var A=n.dispose.call(n.value);if(n.async)return y|=2,Promise.resolve(A).then(U,function(C){D(C);return U()})}else y|=1}catch(C){D(C)}if(y===1)return l.hasError?Promise.reject(l.error):Promise.resolve();
if(l.hasError)throw l.error;}
var n,y=0;U()};var LBh="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(" ");iCl()&&LBh.push("details:not(:has(summary))");var Dsg=LBh.join(",");_.HI(_.D9,Error);_.D9.prototype.name="CustomError";var qch;var M3H=void 0,RK7,ZC7=typeof TextDecoder!=="undefined",PGG,hKl=typeof String.prototype.isWellFormed==="function",CGN=typeof TextEncoder!=="undefined";var eKz;_.pw=function(l){for(var D=[],U=0,n=0;n<l.length;n++){var y=l.charCodeAt(n);y<128?D[U++]=y:(y<2048?D[U++]=y>>6|192:((y&64512)==55296&&n+1<l.length&&(l.charCodeAt(n+1)&64512)==56320?(y=65536+((y&1023)<<10)+(l.charCodeAt(++n)&1023),D[U++]=y>>18|240,D[U++]=y>>12&63|128):D[U++]=y>>12|224,D[U++]=y>>6&63|128),D[U++]=y&63|128)}return D};
eKz=function(l){for(var D=[],U=0,n=0;U<l.length;){var y=l[U++];if(y<128)D[n++]=String.fromCharCode(y);else if(y>191&&y<224){var A=l[U++];D[n++]=String.fromCharCode((y&31)<<6|A&63)}else if(y>239&&y<365){A=l[U++];var C=l[U++],h=l[U++];y=((y&7)<<18|(A&63)<<12|(C&63)<<6|h&63)-65536;D[n++]=String.fromCharCode(55296+(y>>10));D[n++]=String.fromCharCode(56320+(y&1023))}else A=l[U++],C=l[U++],D[n++]=String.fromCharCode((y&15)<<12|(A&63)<<6|C&63)}return D.join("")};var uG=String.prototype.trim?function(l){return l.trim()}:function(l){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(l)[1]},ms5=/&/g,a9y=/</g,t3g=/>/g,Xov=/"/g,Scm=/'/g,kN_=/\x00/g,ds_=/[\x00&<>"']/;var Yq=!!(s4[0]>>15&1),KBz=!!(s4[0]&1024),cdH=!!(s4[0]>>16&1),por=!!(s4[0]&8),xs8=!!(s4[0]&2),j_h=!!(s4[0]&4),FBh=!!(s4[0]&16),o9_=!!(s4[0]&128);var qs=Yq?cdH:N9(610401301,!1),woy=Yq?por:N9(772657768,!1),rdy=Yq?xs8:N9(513659523,!1),zKv=Yq?KBz||!j_h:N9(568333945,!0),ewC=Yq?FBh:N9(1331761403,!1),MWc=Yq?KBz||!o9_:N9(748402147,!0);var R_,f9y=_.nC.navigator;R_=f9y?f9y.userAgentData||null:null;var BA;_.o_=function(l,D){return Array.prototype.indexOf.call(l,D,void 0)};
_.Ac=function(l,D,U){Array.prototype.forEach.call(l,D,U)};
_.O4=function(l,D,U){return Array.prototype.filter.call(l,D,U)};
_.re=function(l,D,U){return Array.prototype.map.call(l,D,U)};
BA=function(l,D,U){return Array.prototype.some.call(l,D,U)};
_.z59=function(l,D,U){return Array.prototype.every.call(l,D,U)};var VI=function(l){VI[" "](l);return l};
VI[" "]=function(){};
var xGg=function(l,D){try{return VI(l[D]),!0}catch(U){}return!1},gHC=function(l,D,U,n){n=n?n(D):D;
return Object.prototype.hasOwnProperty.call(l,n)?l[n]:l[n]=U(D)};var $sg,gb,Nl8,s_1,Tly,I91,$TN,HC1,Yc7,OCz,nJd,imy,l7y,yyH,Ay5,Wkm;_.eYs=function(){return _.nC.navigator||null};
$sg=v99();_.iB=Q_9();gb=Z9("Edge");Nl8=gb||_.iB;_.lB=Z9("Gecko")&&!(_.gl(_.LC(),"WebKit")&&!Z9("Edge"))&&!(Z9("Trident")||Z9("MSIE"))&&!Z9("Edge");_.Do=_.gl(_.LC(),"WebKit")&&!Z9("Edge");s_1=_.Do&&Z9("Mobile");_.E9v=_.mso();Tly=_.a9l();I91=(k9()?R_.platform==="Linux":Z9("Linux"))||_.t3_();$TN=_.ZCc();HC1=eKK();Yc7=Z9("iPad");OCz=Z9("iPod");_.V3_=_.dl();nJd=_.gl(_.LC(),"KaiOS");imy=function(){var l=_.nC.document;return l?l.documentMode:void 0};
a:{var Dr5="",Ur7=function(){var l=_.LC();if(_.lB)return/rv:([^\);]+)(\)|;)/.exec(l);if(gb)return/Edge\/([\d\.]+)/.exec(l);if(_.iB)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(l);if(_.Do)return/WebKit\/(\S+)/.exec(l);if($sg)return/(?:Version)[ \/]?(\S+)/.exec(l)}();
Ur7&&(Dr5=Ur7?Ur7[1]:"");if(_.iB){var n15=imy();if(n15!=null&&n15>parseFloat(Dr5)){l7y=String(n15);break a}}l7y=Dr5}yyH=l7y;Ay5={};_.Uy=function(l){return gHC(Ay5,l,function(){return _.Qg(yyH,l)>=0})};
if(_.nC.document&&_.iB){var Byy=imy();Wkm=Byy?Byy:parseInt(yyH,10)||void 0}else Wkm=void 0;_.CH8=Wkm;var Tj_,IP9,hz_;_.nh=a_();Tj_=eKK()||Z9("iPod");IP9=Z9("iPad");hz_=_.LB3();_.yJ=_.X$();_.id=_.JdN()&&!_.dl();var PH_,AU,DxB,DP9,g17,bm8;PH_={};AU=null;DxB=_.lB||_.Do||typeof _.nC.btoa=="function";_.c2=function(l,D){D===void 0&&(D=0);bm8();D=PH_[D];for(var U=Array(Math.floor(l.length/3)),n=D[64]||"",y=0,A=0;y<l.length-2;y+=3){var C=l[y],h=l[y+1],b=l[y+2],u=D[C>>2];C=D[(C&3)<<4|h>>4];h=D[(h&15)<<2|b>>6];b=D[b&63];U[A++]=u+C+h+b}u=0;b=n;switch(l.length-y){case 2:u=l[y+1],b=D[(u&15)<<2]||n;case 1:l=l[y],U[A]=D[l>>2]+D[(l&3)<<4|u>>4]+b+n}return U.join("")};
DP9=function(l){var D="";g17(l,function(U){D+=String.fromCharCode(U)});
return D};
_.w1B=function(l){var D=[];g17(l,function(U){D.push(U)});
return D};
_.Oc=function(l){var D=l.length,U=D*3/4;U%3?U=Math.floor(U):_.bG("=.",l[D-1])&&(U=_.bG("=.",l[D-2])?U-2:U-1);var n=new Uint8Array(U),y=0;g17(l,function(A){n[y++]=A});
return y!==U?n.subarray(0,y):n};
g17=function(l,D){function U(b){for(;n<l.length;){var u=l.charAt(n++),Q=AU[u];if(Q!=null)return Q;if(!_.hd(u))throw Error("H`"+u);}return b}
bm8();for(var n=0;;){var y=U(-1),A=U(0),C=U(64),h=U(64);if(h===64&&y===-1)break;D(y<<2|A>>4);C!=64&&(D(A<<4&240|C>>2),h!=64&&D(C<<6&192|h))}};
bm8=function(){if(!AU){AU={};for(var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),D=["+/=","+/","-_=","-_.","-_"],U=0;U<5;U++){var n=l.concat(D[U].split(""));PH_[U]=n;for(var y=0;y<n.length;y++){var A=n[y];AU[A]===void 0&&(AU[A]=y)}}}};var OCK=typeof Uint8Array!=="undefined",zKN=!_.iB&&typeof btoa==="function",f9d=/[-_.]/g,wol={"-":"+",_:"/",".":"="},k1={};var Sh,v1k;Sh=function(l,D){if(D!==k1)throw Error("J");this.JSC$8901_value_=l;if(l!=null&&l.length===0)throw Error("I");};
_.Km=function(){return u8v||(u8v=new Sh(null,k1))};
v1k=function(l){return new Uint8Array($wg(l)||0)};
Sh.prototype.isEmpty=function(){return this.JSC$8901_value_==null};
Sh.prototype.sizeBytes=function(){var l=$wg(this);return l?l.length:0};
var $wg=function(l){if(k1!==k1)throw Error("J");var D=l.JSC$8901_value_;D==null||OCK&&D!=null&&D instanceof Uint8Array||(typeof D==="string"?D=$s_(D):(_.i$(D),D=null));return D==null?D:l.JSC$8901_value_=D},u8v;var s_9=void 0;var nm=typeof Symbol==="function"&&typeof Symbol()==="symbol",Qgr=U7("jas",void 0,!0),w5B=U7(void 0,"0di"),Dj=U7(void 0,"1oa"),dH=U7(void 0,Symbol()),Dw3=U7(void 0,"0ub"),n89=U7(void 0,"0ubs"),ajK=U7(void 0,"0ubsb"),ZPg=U7(void 0,"0actk"),a$=U7("m_m","messagePrototypeMarker",!0),v8o=U7(void 0,"vps"),Vh3=U7();var I99,Tld,TT,Gvh;I99={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Tld=Object.defineProperties;_.y_=nm?Qgr:"internalArrayState";Gvh=[];hy(Gvh,7);TT=Object.freeze(Gvh);var tr={},eh={},Jyr=function(l,D,U){this.iterable=l;this.mapper=D;this.thisArg=U};
Jyr.prototype.next=function(){var l=this.iterable.next();l.done||(l.value=this.mapper.call(this.thisArg,l.value));return l};
Jyr.prototype[Symbol.iterator]=function(){return this};
var Lkg=Object.freeze({}),pm={};_.q7v=jh(function(l){return l!==null&&l!==void 0});var n1o=jh(function(l){return typeof l==="number"}),Urc=jh(function(l){return typeof l==="string"}),Ayo=jh(function(l){return typeof l==="boolean"}),Mhg=jh(function(l){return l!=null&&typeof l==="object"&&typeof l.then==="function"}),rc9=jh(function(l){return typeof l==="function"}),QH=jh(function(l){return!!l&&(typeof l==="object"||typeof l==="function")});var yyG=typeof _.nC.BigInt==="function"&&typeof _.nC.BigInt(0)==="bigint";var cyo=jh(function(l){return yyG?l>=Rz7&&l<=Zm8:l[0]==="-"?WkC(l,ez7):WkC(l,mr_)}),ez7=Number.MIN_SAFE_INTEGER.toString(),Rz7=yyG?BigInt(Number.MIN_SAFE_INTEGER):void 0,mr_=Number.MAX_SAFE_INTEGER.toString(),Zm8=yyG?BigInt(Number.MAX_SAFE_INTEGER):void 0;var a7m=typeof Uint8Array.prototype.slice==="function",og=0,wy=0,hzg;var P2,v2,Dv,u$,Lk_;P2=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Jr=typeof BigInt==="function"?BigInt.asUintN:void 0;v2=Number.isSafeInteger;Dv=Number.isFinite;u$=Math.trunc;Lk_=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Q$9={};var HmB={},thz=function(){try{var l=function(){return NQd(Map,[],this.constructor)};
_.Z(l,Map);VI(new l);return!1}catch(D){return!0}}(),Wm=function(){this.JSC$8920_map_=new Map};
_.W=Wm.prototype;_.W.get=function(l){return this.JSC$8920_map_.get(l)};
_.W.set=function(l,D){this.JSC$8920_map_.set(l,D);this.size=this.JSC$8920_map_.size;return this};
_.W.delete=function(l){l=this.JSC$8920_map_.delete(l);this.size=this.JSC$8920_map_.size;return l};
_.W.clear=function(){this.JSC$8920_map_.clear();this.size=this.JSC$8920_map_.size};
_.W.has=function(l){return this.JSC$8920_map_.has(l)};
_.W.entries=function(){return this.JSC$8920_map_.entries()};
_.W.keys=function(){return this.JSC$8920_map_.keys()};
_.W.values=function(){return this.JSC$8920_map_.values()};
_.W.forEach=function(l,D){return this.JSC$8920_map_.forEach(l,D)};
Wm.prototype[Symbol.iterator]=function(){return this.entries()};
var Bm=function(){if(thz)return Object.setPrototypeOf(Wm.prototype,Map.prototype),Object.defineProperties(Wm.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Wm;var l=function(){return NQd(Map,[],this.constructor)};
_.Z(l,Map);return l}(),XJ=function(l,D,U,n){U=U===void 0?Ny9:U;
n=n===void 0?Ny9:n;var y=Bm.call(this)||this;y.arrayState=l[_.y_]|0;y.valueCtor=D;y.keyToApi=U;y.valueToApi=y.valueCtor?E1g:n;for(var A=0;A<l.length;A++){var C=l[A],h=U(C[0],!1,!0),b=C[1];D?b===void 0&&(b=null):b=n(C[1],!1,!0,void 0,void 0,y.arrayState);Bm.prototype.set.call(y,h,b)}return y};
_.Z(XJ,Bm);var X58=function(l){if(l.arrayState&2)throw Error("N");},uJl=function(l,D){return bH(Array.from(Bm.prototype.entries.call(l),D))};
_.W=XJ.prototype;_.W.clear=function(){X58(this);Bm.prototype.clear.call(this)};
_.W.delete=function(l){X58(this);return Bm.prototype.delete.call(this,this.keyToApi(l,!0,!1))};
_.W.entries=function(){if(this.valueCtor){var l=Bm.prototype.keys.call(this);l=new Jyr(l,Tyc,this)}else l=Bm.prototype.entries.call(this);return l};
_.W.values=function(){if(this.valueCtor){var l=Bm.prototype.keys.call(this);l=new Jyr(l,XJ.prototype.get,this)}else l=Bm.prototype.values.call(this);return l};
_.W.forEach=function(l,D){this.valueCtor?Bm.prototype.forEach.call(this,function(U,n,y){l.call(D,y.get(n),n,y)}):Bm.prototype.forEach.call(this,l,D)};
_.W.set=function(l,D){X58(this);l=this.keyToApi(l,!0,!1);return l==null?this:D==null?(Bm.prototype.delete.call(this,l),this):Bm.prototype.set.call(this,l,this.valueToApi(D,!0,!0,this.valueCtor,!1,this.arrayState))};
_.W.has=function(l){return Bm.prototype.has.call(this,this.keyToApi(l,!1,!1))};
_.W.get=function(l){l=this.keyToApi(l,!1,!1);var D=Bm.prototype.get.call(this,l);if(D!==void 0){var U=this.valueCtor;return U?(U=this.valueToApi(D,!1,!0,U,this.callToMutableOnAccess,this.arrayState),U!==D&&Bm.prototype.set.call(this,l,U),U):D}};
XJ.prototype[Symbol.iterator]=function(){return this.entries()};
XJ.prototype.toJSON=void 0;var I79;var BH$=function(){},ArN=function(l,D){for(var U in l)!isNaN(U)&&D(l,+U,l[U])},C$c=function(l){var D=new BH$;
ArN(l,function(U,n,y){D[n]=E7(y)});
D.reviveUnknownFields=l.reviveUnknownFields;return D},iPB={reviveIntoImmutable:!0};var WJB;var GTB,Jrc;var S7_,O5,S2,pB,kvz,Gl,KB,drz,Kky,MF,cy5,Rm,me,am;S7_=_.F8(0);_.Ch={};_.hU=function(l,D,U,n,y){D=O5(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D,U,y);if(D!==null||n&&l.noLegacyNull!==eh)return D};
O5=function(l,D,U,n){if(D===-1)return null;var y=D+(U?0:-1),A=l.length-1;if(!(A<1+(U?0:-1))){if(y>=A){var C=l[A];if(C!=null&&typeof C==="object"&&C.constructor===Object){U=C[D];var h=!0}else if(y===A)U=C;else return}else U=l[y];if(n&&U!=null){n=n(U);if(n==null)return n;if(!Object.is(n,U))return h?C[D]=n:l[y]=n,n}return U}};
_.Zl=function(l,D,U,n){fP(l);var y=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;s5(y,y[_.y_]|0,D,U,n);return l};
_.Pm=function(l,D,U){l=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return o8G(l,l[_.y_]|0,D,U)!==void 0};
_.bB=function(l,D,U,n){var y=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return o8G(y,y[_.y_]|0,D,pB(l,n,U))!==void 0};
_.vE=function(l){return l===Lkg?2:4};
_.g6=function(l,D){l=_.hU(l,D,void 0,void 0,KJG);return l==null?_.Km():l};
S2=function(l,D,U,n){fP(l);var y=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=y[_.y_]|0;if(n==null){var C=xw9(y);if(j$G(C,y,A,U)===D)C.set(U,0);else return l}else A=FJc(y,A,U,D);s5(y,A,D,n);return l};
_.uB=function(l,D,U,n){var y=l[_.y_]|0,A=x1(y);y=FJc(l,y,U,D,A);s5(l,y,D,n,A)};
pB=function(l,D,U){return _.QJ(l,D)===U?U:-1};
_.QJ=function(l,D){l=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return j$G(xw9(l),l,void 0,D,void 0)};
kvz=function(l,D,U){var n=l[_.y_]|0,y=x1(n),A=O5(l,U,y);if(A!=null&&A[a$]===tr){if(!ty(A))return rH(A),A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var C=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(A)&&(C=A);if(C){var h=C[_.y_]|0;h&2&&(C=wH(C,h))}C=jW(C,D);C!==A&&s5(l,n,U,C,y);return C};
_.MZ=function(l,D,U,n){var y=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=y[_.y_]|0;D=o8G(y,A,D,U,n);if(D==null)return D;A=y[_.y_]|0;if(!ty(l,A)){var C=sgc(D);C!==D&&(rH(l)&&(y=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=y[_.y_]|0),D=C,A=s5(y,A,U,D,n),Nw(y,A))}return D};
_.uO=function(l,D,U,n){var y=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return w29(l,y,y[_.y_]|0,D,U,n,!1,!0)};
_.al=function(l,D,U,n){U=rro(U);_.Zl(l,D,U,n);U&&!ty(U)&&Nw(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return l};
_.tk=function(l,D,U,n){n=rro(n);S2(l,D,U,n);n&&!ty(n)&&Nw(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return l};
Gl=function(l,D,U){fP(l);var n=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=n[_.y_]|0;if(U==null)return s5(n,y,D),l;for(var A=U===TT?7:U[_.y_]|0,C=A,h=Y8(A),b=h||Object.isFrozen(U),u=!0,Q=!0,G=0;G<U.length;G++){var J=U[G];h||(J=ty(J),u&&(u=!J),Q&&(Q=J))}h||(A=u?13:5,A=Q?A&-4097:A|4096);b&&A===C||(U=E7(U),C=0,A=I$(A,y));A!==C&&hy(U,A);y=s5(n,y,D,U);2&A||!(4096&A||16&A)||Nw(n,y);return l};
KB=function(l,D,U,n){fvd(l,D,U,n);return l};
drz=function(l,D,U){fvd(l,D,JU,void 0,U,1,!0);return l};
_.Lh=function(l,D,U){l=_.hU(l,D,void 0,U);D=typeof l;l=l==null?l:D==="bigint"?_.F8((0,_.Jr)(64,l)):_.U5(l)?D==="string"?_.Kkd(l):_.kvK(l):void 0;return l};
_.qF=function(l,D){var U=U===void 0?!1:U;var n;return(n=_.Jys(_.hU(l,D)))!=null?n:U};
_.Qp=function(l,D,U){U=U===void 0?0:U;var n;return(n=_.CP(_.hU(l,D)))!=null?n:U};
Kky=function(l,D){var U=U===void 0?0:U;l=_.Mh_(_.hU(l,D));return l!=null?l:U};
MF=function(l,D,U){U=U===void 0?S7_:U;var n;return(n=_.jg$(_.hU(l,D)))!=null?n:U};
cy5=function(l){var D=D===void 0?S7_:D;var U;return(U=_.Lh(l,23))!=null?U:D};
Rm=function(l,D){var U=U===void 0?0:U;var n;return(n=_.hU(l,D,void 0,void 0,_.O7))!=null?n:U};
_.Zo=function(l,D,U,n){U=U===void 0?"":U;var y;return(y=_.Zv(_.hU(l,D,n)))!=null?y:U};
_.eY=function(l,D){var U=U===void 0?0:U;var n;return(n=_.W2(_.hU(l,D)))!=null?n:U};
me=function(l,D){var U=U===void 0?"0":U;l=xrC(_.hU(l,D),!0);return l!=null?l:U};
am=function(l,D,U){return _.Zo(l,pB(l,U,D))};
_.tU=function(l,D,U,n){return _.MZ(l,D,pB(l,n,U),void 0)};
_.Xt=function(l,D){return _.Zv(_.hU(l,D,void 0,_.Ch))};
_.qx=function(l,D,U){return _.Zl(l,D,Gv3(U))};
_.RS=function(l,D,U){return _.iw(l,D,Gv3(U),!1)};
_.X9=function(l,D,U){return _.Zl(l,D,_.B2(U))};
_.j2=function(l,D,U){return _.Zl(l,D,gH(U))};
_.c7=function(l,D,U){return _.Zl(l,D,Mw(U))};
_.jt=function(l,D,U,n){return _.iw(l,D,Mw(U),"",n)};
_.R2=function(l,D,U){return _.Zl(l,D,U==null?U:_.Ar(U))};
_.SY=function(l,D,U){return _.iw(l,D,U==null?U:_.Ar(U),0)};var nc=function(l,D,U){this.buffer=l;if(U&&!D)throw Error();this.JSC$8932_isImmutable=D};var p57=function(l,D,U,n){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8935_start_=0;this.init(l,D,U,n)},kz,jg8,Fk_,o1_,w5k,ryg,vCB,xrm;
_.W=p57.prototype;_.W.init=function(l,D,U,n){var y=n===void 0?{}:n;n=y.aliasBytesFields===void 0?!1:y.aliasBytesFields;y=y.treatNewDataAsImmutable===void 0?!1:y.treatNewDataAsImmutable;this.aliasBytesFields=n;this.treatNewDataAsImmutable=y;l&&(l=NH_(l,this.treatNewDataAsImmutable),this.bytes_=l.buffer,this.bytesAreImmutable_=l.JSC$8932_isImmutable,this.JSC$8935_start_=D||0,this.end_=U!==void 0?this.JSC$8935_start_+U:this.bytes_.length,this.cursor_=this.JSC$8935_start_)};
_.W.free=function(){this.clear();xrm.length<100&&xrm.push(this)};
_.W.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8935_start_=0;this.aliasBytesFields=!1};
_.W.reset=function(){this.cursor_=this.JSC$8935_start_};
_.W.atEnd=function(){return this.cursor_==this.end_};
_.d6=function(l,D){var U=0,n=0,y=0,A=l.bytes_,C=l.cursor_;do{var h=A[C++];U|=(h&127)<<y;y+=7}while(y<32&&h&128);if(y>32)for(n|=(h&127)>>4,y=3;y<32&&h&128;y+=7)h=A[C++],n|=(h&127)<<y;kz(l,C);if(!(h&128))return D(U>>>0,n>>>0);throw Error();};
kz=function(l,D){l.cursor_=D;if(D>l.end_)throw Error();};
_.Kh=function(l){var D=l.bytes_,U=l.cursor_,n=D[U++],y=n&127;if(n&128&&(n=D[U++],y|=(n&127)<<7,n&128&&(n=D[U++],y|=(n&127)<<14,n&128&&(n=D[U++],y|=(n&127)<<21,n&128&&(n=D[U++],y|=n<<28,n&128&&D[U++]&128&&D[U++]&128&&D[U++]&128&&D[U++]&128&&D[U++]&128)))))throw Error();kz(l,U);return y};
_.cm=function(l){var D=l.bytes_,U=l.cursor_,n=D[U],y=D[U+1],A=D[U+2];D=D[U+3];kz(l,l.cursor_+4);return(n<<0|y<<8|A<<16|D<<24)>>>0};
jg8=function(l){var D=_.cm(l);l=_.cm(l);return bm$(D,l)};
Fk_=function(l){var D=_.cm(l);l=(D>>31)*2+1;var U=D>>>23&255;D&=8388607;return U==255?D?NaN:l*Infinity:U==0?l*1.401298464324817E-45*D:l*Math.pow(2,U-150)*(D+8388608)};
o1_=function(l){var D=_.cm(l),U=_.cm(l);l=(U>>31)*2+1;var n=U>>>20&2047;D=4294967296*(U&1048575)+D;return n==2047?D?NaN:l*Infinity:n==0?l*4.9E-324*D:l*Math.pow(2,n-1075)*(D+4503599627370496)};
w5k=function(l){for(var D=0,U=l.cursor_,n=U+10,y=l.bytes_;U<n;){var A=y[U++];D|=A;if((A&128)===0)return kz(l,U),!!(D&127)}throw Error();};
ryg=function(l,D){if(D<0)throw Error();var U=l.cursor_;D=U+D;if(D>l.end_)throw Error();l.cursor_=D;return U};
vCB=function(l,D){if(D==0)return _.Km();var U=ryg(l,D);l.aliasBytesFields&&l.bytesAreImmutable_?U=l.bytes_.subarray(U,U+D):(l=l.bytes_,D=U+D,U=U===D?new Uint8Array(0):a7m?l.slice(U,D):new Uint8Array(l.subarray(U,D)));return U.length==0?_.Km():new Sh(U,k1)};
xrm=[];var f7H=function(l,D,U,n){if(xrm.length){var y=xrm.pop();y.init(l,D,U,n);l=y}else l=new p57(l,D,U,n);this.decoder_=l;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;zzy(this,n)},zzy=function(l,D){D=D===void 0?{}:D;
l.discardUnknownFields=D.discardUnknownFields===void 0?!1:D.discardUnknownFields},Jk_=function(l,D,U,n){if($rz.length){var y=$rz.pop();
zzy(y,n);y.decoder_.init(l,D,U,n);return y}return new f7H(l,D,U,n)},bcB,uO9,ph,Ny7,$rz;
f7H.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;$rz.length<100&&$rz.push(this)};
f7H.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
bcB=function(l){if(l.decoder_.atEnd())return!1;l.fieldCursor_=l.decoder_.cursor_;var D=_.Kh(l.decoder_)>>>0,U=D>>>3;D&=7;if(!(D>=0&&D<=5))throw Error();if(U<1)throw Error();l.nextField_=U;l.nextWireType_=D;return!0};
uO9=function(l){switch(l.nextWireType_){case 0:l.nextWireType_!=0?uO9(l):w5k(l.decoder_);break;case 1:l=l.decoder_;kz(l,l.cursor_+8);break;case 2:if(l.nextWireType_!=2)uO9(l);else{var D=_.Kh(l.decoder_)>>>0;l=l.decoder_;kz(l,l.cursor_+D)}break;case 5:l=l.decoder_;kz(l,l.cursor_+4);break;case 3:D=l.nextField_;do{if(!bcB(l))throw Error();if(l.nextWireType_==4){if(l.nextField_!=D)throw Error();break}uO9(l)}while(1);break;default:throw Error();}};
ph=function(l,D,U){var n=l.decoder_.end_,y=_.Kh(l.decoder_)>>>0;y=l.decoder_.cursor_+y;var A=y-n;A<=0&&(l.decoder_.end_=y,U(D,l,void 0,void 0,void 0),A=y-l.decoder_.cursor_);if(A)throw Error();l.decoder_.cursor_=y;l.decoder_.end_=n;return D};
Ny7=function(l){var D=_.Kh(l.decoder_)>>>0;l=l.decoder_;var U=ryg(l,D);l=l.bytes_;if(ZC7){var n=l,y;(y=RK7)||(y=RK7=new TextDecoder("utf-8",{fatal:!0}));D=U+D;n=U===0&&D===n.length?n:n.subarray(U,D);try{var A=y.decode(n)}catch(u){if(M3H===void 0){try{y.decode(new Uint8Array([128]))}catch(Q){}try{y.decode(new Uint8Array([97])),M3H=!0}catch(Q){M3H=!1}}!M3H&&(RK7=void 0);throw u;}}else{A=U;D=A+D;U=[];for(var C=null,h,b;A<D;)h=l[A++],h<128?U.push(h):h<224?A>=D?Uc():(b=l[A++],h<194||(b&192)!==128?(A--,
Uc()):U.push((h&31)<<6|b&63)):h<240?A>=D-1?Uc():(b=l[A++],(b&192)!==128||h===224&&b<160||h===237&&b>=160||((y=l[A++])&192)!==128?(A--,Uc()):U.push((h&15)<<12|(b&63)<<6|y&63)):h<=244?A>=D-2?Uc():(b=l[A++],(b&192)!==128||(h<<28)+(b-144)>>30!==0||((y=l[A++])&192)!==128||((n=l[A++])&192)!==128?(A--,Uc()):(h=(h&7)<<18|(b&63)<<12|(y&63)<<6|n&63,h-=65536,U.push((h>>10&1023)+55296,(h&1023)+56320))):Uc(),U.length>=8192&&(C=Bl9(C,U),U.length=0);A=Bl9(C,U)}return A};
_.sg7=function(l){var D=_.Kh(l.decoder_)>>>0;return vCB(l.decoder_,D)};
_.E1_=function(l,D,U){var n=_.Kh(l.decoder_)>>>0;for(n=l.decoder_.cursor_+n;l.decoder_.cursor_<n;)U.push(D(l.decoder_))};
$rz=[];var Ty7=function(l,D){this.JSC$8942_lo=l>>>0;this.JSC$8942_hi=D>>>0},KHB=function(l){l=BigInt.asUintN(64,l);
return new Ty7(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)))},TH9=function(l){if(!l)return I71||(I71=new Ty7(0,0));
if(!/^\d+$/.test(l))return null;s7(l);return new Ty7(og,wy)},I71,dgc=function(l,D){this.JSC$8944_lo=l>>>0;
this.JSC$8944_hi=D>>>0},s$9=function(l){if(!l)return Hmk||(Hmk=new dgc(0,0));
if(!/^-?\d+$/.test(l))return null;s7(l);return new dgc(og,wy)},Hmk;var xz=function(){this.JSC$8946_buffer_=[]},Gq,Lc,Y7r;
xz.prototype.length=function(){return this.JSC$8946_buffer_.length};
xz.prototype.end=function(){var l=this.JSC$8946_buffer_;this.JSC$8946_buffer_=[];return l};
Gq=function(l,D,U){for(;U>0||D>127;)l.JSC$8946_buffer_.push(D&127|128),D=(D>>>7|U<<25)>>>0,U>>>=7;l.JSC$8946_buffer_.push(D)};
Lc=function(l,D){for(;D>127;)l.JSC$8946_buffer_.push(D&127|128),D>>>=7;l.JSC$8946_buffer_.push(D)};
_.phC=function(l,D){if(D>=0)Lc(l,D);else{for(var U=0;U<9;U++)l.JSC$8946_buffer_.push(D&127|128),D>>=7;l.JSC$8946_buffer_.push(1)}};
Y7r=function(l,D){s7(D);g19(function(U,n){Gq(l,U>>>0,n>>>0)})};
xz.prototype.writeUint8=function(l){this.JSC$8946_buffer_.push(l>>>0&255)};
_.vh=function(l,D){l.JSC$8946_buffer_.push(D>>>0&255);l.JSC$8946_buffer_.push(D>>>8&255);l.JSC$8946_buffer_.push(D>>>16&255);l.JSC$8946_buffer_.push(D>>>24&255)};
xz.prototype.writeInt8=function(l){this.JSC$8946_buffer_.push(l>>>0&255)};var Om1,Cc,jlC,wh3,OP9;Om1=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new xz};
Cc=function(l,D){D.length!==0&&(l.blocks_.push(D),l.totalLength_+=D.length)};
_.Vhh=function(l,D){_.gT(l,D,2);D=l.encoder_.end();Cc(l,D);D.push(l.totalLength_);return D};
_.iPk=function(l,D){var U=D.pop();for(U=l.totalLength_+l.encoder_.length()-U;U>127;)D.push(U&127|128),U>>>=7,l.totalLength_++;D.push(U);l.totalLength_++};
_.gT=function(l,D,U){Lc(l.encoder_,D*8+U)};
jlC=function(l,D,U){if(U!=null)switch(Iv$(U),_.gT(l,D,1),typeof U){case "number":l=l.encoder_;Byd(U);_.vh(l,og);_.vh(l,wy);break;case "bigint":U=KHB(U);l=l.encoder_;D=U.JSC$8942_hi;_.vh(l,U.JSC$8942_lo);_.vh(l,D);break;default:U=TH9(U),l=l.encoder_,D=U.JSC$8942_hi,_.vh(l,U.JSC$8942_lo),_.vh(l,D)}};
wh3=function(l,D,U){_.gT(l,D,2);Lc(l.encoder_,U.length);Cc(l,l.encoder_.end());Cc(l,U)};
OP9=function(l,D,U,n){U!=null&&(D=_.Vhh(l,D),n(U,l),_.iPk(l,D))};var HPN,lv7,Dwh,Uwv,n81,Arv,WJk,C$7,h8z;HPN=y1();lv7=y1();Dwh=y1();Uwv=y1();n81=y1();_.yr8=y1();_.jY=y1();Arv=y1();WJk=y1();_.BH8=y1();C$7=y1();h8z=y1();_.P$g=y1();_.bPk=y1();_.Bh=function(l,D,U){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l,D,U)};
_.Bh.prototype.toJSON=function(){return pP(this)};
_.Bh.prototype.serialize=function(l){return JSON.stringify(pP(this,l))};
var Ijd=function(l,D){if(D==null||D=="")return new l;D=JSON.parse(D);if(!Array.isArray(D))throw Error("V");return new l(Yc9(D))};
_.Bh.prototype.getExtension=function(l){UwN(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l.fieldIndex);lvc(this,l.fieldIndex);return l.ctor?l.isRepeated?l.getExtensionFn(this,l.ctor,l.fieldIndex,_.vE(),l.JSC$8957_hasMessageId):l.getExtensionFn(this,l.ctor,l.fieldIndex,l.JSC$8957_hasMessageId):l.isRepeated?l.getExtensionFn(this,l.fieldIndex,_.vE(),l.JSC$8957_hasMessageId):l.getExtensionFn(this,l.fieldIndex,l.defaultValue,l.JSC$8957_hasMessageId)};
_.Bh.prototype.clone=function(){var l=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=l[_.y_]|0;return X2l(this,l,D)?tWc(this,l,!0):new this.constructor(wH(l,D,!1))};
_.Bh.prototype[a$]=tr;_.Bh.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Ak=function(l,D,U){this.$$binaryReaderFn=l;this.$$binaryWriterFn=D;l=SW(HPN);this.$$isMsg=!!l&&U===l||!1},nCc=Y5o(function(l,D,U,n,y){if(l.nextWireType_!==2)return!1;
ph(l,kvz(D,n,U),y);return!0},icl),ykl=Y5o(function(l,D,U,n,y){if(l.nextWireType_!==2)return!1;
ph(l,kvz(D,n,U),y);return!0},icl),qW3=Symbol(),BTC=Symbol(),PwG=Symbol(),Zcl=Symbol(),Qlc=Symbol(),lj$,Dg_;var sl9,g8h,F9,uJy,v85,Q$1,GTk,w6,LJz,q57,MW7,R8g,ZP_,mwy,av5,tW7,X2y,S51,kTv;sl9=function(l,D){var U=new Om1;eIC(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U,Wh(qW3,LHl,MDg,D));Cc(U,U.encoder_.end());l=new Uint8Array(U.totalLength_);D=U.blocks_;for(var n=D.length,y=0,A=0;A<n;A++){var C=D[A];l.set(C,y);y+=C.length}U.blocks_=[l];return l};
g8h=Y5o(function(l,D,U,n,y){if(l.nextWireType_!==2)return!1;l=ph(l,jW([void 0,void 0],n),y);l=E7(l);n=D[_.y_]|0;y=x1(n);if(n&2)throw Error();var A=O5(D,U,y);if(A instanceof XJ)(A.arrayState&2)!=0?(A=uJl(A),A.push(l),s5(D,n,U,A,y)):(D=A,U=D.keyToApi(l[0],!1,!0),l=l[1],l=D.valueCtor?l===void 0?null:l:D.valueToApi(l,!1,!0,void 0,!1,D.arrayState),Bm.prototype.set.call(D,U,l));else if(Array.isArray(A)){var C=A[_.y_]|0;C&8192||hy(A,C|=8192);C&2&&(A=cr$(A),s5(D,n,U,A,y));A.push(l)}else s5(D,n,U,bH([l]),
y);return!0},function(l,D,U,n,y){if(D instanceof XJ)D.forEach(function(h,b){OP9(l,U,jW([b,
h],n),y)});
else if(Array.isArray(D)){for(var A=0;A<D.length;A++){var C=D[A];Array.isArray(C)&&OP9(l,U,jW(C,n),y)}bH(D)}});
F9=_.Ph(function(l,D,U){if(l.nextWireType_!==1)return!1;_.bw(D,U,o1_(l.decoder_));return!0},SW$,h8z);
uJy=_.Ph(function(l,D,U,n){if(l.nextWireType_!==1)return!1;_.uB(D,U,n,o1_(l.decoder_));return!0},SW$,h8z);
v85=_.Ph(function(l,D,U){if(l.nextWireType_!==5)return!1;_.bw(D,U,Fk_(l.decoder_));return!0},kqK,C$7);
Q$1=_.XhB(function(l,D,U){if(l.nextWireType_!==5&&l.nextWireType_!==2)return!1;D=_.lw(D,D[_.y_]|0,U);l.nextWireType_==2?_.E1_(l,Fk_,D):D.push(Fk_(l.decoder_));return!0},function(l,D,U){D=_.tDK(_.O7,D,!0);
if(D!=null&&D.length)for(_.gT(l,U,2),Lc(l.encoder_,D.length*4),U=0;U<D.length;U++){var n=l.encoder_;PHg(D[U]);_.vh(n,og)}},C$7);
GTk=_.Ph(function(l,D,U,n){if(l.nextWireType_!==5)return!1;_.uB(D,U,n,Fk_(l.decoder_));return!0},kqK,C$7);
_.Jr7=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;_.bw(D,U,_.d6(l.decoder_,_.Qgs));return!0},_.Jk,_.jY);
_.om=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;_.bw(D,U,_.d6(l.decoder_,$1));return!0},_.Jk,_.jY);
w6=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;l=_.d6(l.decoder_,$1);_.bw(D,U,l===0?void 0:l);return!0},_.Jk,_.jY);
LJz=_.Ph(function(l,D,U,n){if(l.nextWireType_!==0)return!1;_.uB(D,U,n,_.d6(l.decoder_,$1));return!0},_.Jk,_.jY);
q57=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;_.bw(D,U,_.d6(l.decoder_,_.fm));return!0},ckg,Arv);
_.r6=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;_.bw(D,U,_.d6(l.decoder_,bm$));return!0},ckg,Arv);
_.zl=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;_.bw(D,U,_.Kh(l.decoder_));return!0},xgo,Uwv);
MW7=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;l=_.Kh(l.decoder_);_.bw(D,U,l===0?void 0:l);return!0},xgo,Uwv);
R8g=_.Ph(function(l,D,U,n){if(l.nextWireType_!==0)return!1;_.uB(D,U,n,_.Kh(l.decoder_));return!0},xgo,Uwv);
ZP_=_.Ph(function(l,D,U){if(l.nextWireType_!==1)return!1;_.bw(D,U,jg8(l.decoder_));return!0},_.FHc,_.BH8);
_.e87=_.XhB(function(l,D,U){if(l.nextWireType_!==1&&l.nextWireType_!==2)return!1;D=_.lw(D,D[_.y_]|0,U);l.nextWireType_==2?_.E1_(l,jg8,D):D.push(jg8(l.decoder_));return!0},function(l,D,U){D=_.tDK(o1g,D,!1);
if(D!=null)for(var n=0;n<D.length;n++)jlC(l,U,D[n])},_.BH8);
_.fh=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;_.bw(D,U,w5k(l.decoder_));return!0},oC9,lv7);
_.sy=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;l=w5k(l.decoder_);_.bw(D,U,l===!1?void 0:l);return!0},oC9,lv7);
mwy=_.Ph(function(l,D,U,n){if(l.nextWireType_!==0)return!1;_.uB(D,U,n,w5k(l.decoder_));return!0},oC9,lv7);
_.Ey=_.Ph(function(l,D,U){if(l.nextWireType_!==2)return!1;_.bw(D,U,Ny7(l));return!0},rkg,Dwh);
_.Tl=_.Ph(function(l,D,U){if(l.nextWireType_!==2)return!1;l=Ny7(l);_.bw(D,U,l===""?void 0:l);return!0},rkg,Dwh);
_.Im=_.Ph(function(l,D,U,n){if(l.nextWireType_!==2)return!1;_.uB(D,U,n,Ny7(l));return!0},rkg,Dwh);
av5=_.XhB(function(l,D,U){if(l.nextWireType_!==2)return!1;l=Ny7(l);_.lw(D,D[_.y_]|0,U).push(l);return!0},function(l,D,U){D=_.tDK(_.Zv,D,!0);
if(D!=null)for(var n=0;n<D.length;n++){var y=l,A=U,C=D[n];C!=null&&wh3(y,A,bCs(C))}},Dwh);
tW7=void 0;tW7=tW7===void 0?HPN:tW7;_.Hm=new Ak(function(l,D,U,n,y){if(l.nextWireType_!==2)return!1;n=jW(void 0,n);_.lw(D,D[_.y_]|0,U).push(n);ph(l,n,y);return!0},function(l,D,U,n,y){if(Array.isArray(D)){for(var A=0;A<D.length;A++)zIs(l,D[A],U,n,y);
l=D[_.y_]|0;l&1||hy(D,l|1)}},tW7);
_.Yz=Y5o(function(l,D,U,n,y,A){if(l.nextWireType_!==2)return!1;var C=D[_.y_]|0;FJc(D,C,A,U,x1(C));D=kvz(D,n,U);ph(l,D,y);return!0},zIs);
_.Oy=_.Ph(function(l,D,U){if(l.nextWireType_!==2)return!1;_.bw(D,U,_.sg7(l));return!0},_.fj$,_.P$g);
X2y=_.Ph(function(l,D,U,n){if(l.nextWireType_!==2)return!1;_.uB(D,U,n,_.sg7(l));return!0},_.fj$,_.P$g);
_.VJ=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;_.bw(D,U,_.Kh(l.decoder_)>>>0);return!0},$g_,n81);
S51=_.Ph(function(l,D,U,n){if(l.nextWireType_!==0)return!1;_.uB(D,U,n,_.Kh(l.decoder_)>>>0);return!0},$g_,n81);
_.iW=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;_.bw(D,U,_.Kh(l.decoder_));return!0},_.NTC,_.bPk);
_.lW=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;l=_.Kh(l.decoder_);_.bw(D,U,l===0?void 0:l);return!0},_.NTC,_.bPk);
kTv=_.Ph(function(l,D,U){if(l.nextWireType_!==0)return!1;_.bw(D,U,_.d6(l.decoder_,u8N));return!0},function(l,D,U){D=Fkg(D);
if(D!=null&&(E8N(D),D!=null))switch(_.gT(l,U,0),typeof D){case "number":l=l.encoder_;U=D;D=U<0;U=Math.abs(U)*2;Byd(U);U=og;var n=wy;D&&(U==0?n==0?n=U=4294967295:(n--,U=4294967295):U--);og=U;wy=n;Gq(l,og,wy);break;case "bigint":l=l.encoder_;D=D<<BigInt(1)^D>>BigInt(63);og=Number(BigInt.asUintN(32,D));wy=Number(BigInt.asUintN(32,D>>BigInt(32)));Gq(l,og,wy);break;default:Y7r(l.encoder_,D)}},WJk);var cr8=function(){var l=dwm,D=KJH;this.fieldIndex=175237375;this.ctor=D;this.isRepeated=0;this.getExtensionFn=_.MZ;this.defaultValue=void 0;this.JSC$8957_hasMessageId=l.messageId!=null?pm:void 0};
cr8.prototype.register=function(){VI(this)};var p2_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(p2_,_.Bh);var xw1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(xw1,_.Bh);var OcN=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(OcN,_.Bh);var j$H=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(j$H,_.Bh);var FJ7=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(FJ7,_.Bh);var o8H=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(o8H,_.Bh);var w21=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(w21,_.Bh);w21.prototype.getData=function(){return _.g6(this,2)};var rr5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(rr5,_.Bh);var z81=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(z81,_.Bh);z81.prototype.getStyle=function(){return _.MZ(this,p2_,1)};var mH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(mH,_.Bh);mH.prototype.getPayloadCase=function(){return _.QJ(this,XO)};
mH.prototype.getStyle=function(){return _.tU(this,z81,6,XO)};
var fvy=function(){var l=new mH,D=new FJ7;return _.tk(l,7,XO,D)},$w_=function(){var l=new mH,D=new o8H;
return _.tk(l,8,XO,D)},XO=[1,
2,3,4,5,6,7,8];var NHg=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(NHg,_.Bh);var s$1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(s$1,_.Bh);var E8v=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(E8v,_.Bh);var TH7=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(TH7,_.Bh);var Iv8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Iv8,_.Bh);var HPv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(HPv,_.Bh);var Y55=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Y55,_.Bh);var OP1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(OP1,_.Bh);OP1.prototype.getData=function(){return _.g6(this,2)};var VWH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(VWH,_.Bh);var YW_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(YW_,_.Bh);YW_.prototype.getPayloadCase=function(){return _.QJ(this,DR)};
var DR=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var UF=function(l,D){l=Error.call(this,l);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=D===void 0?2:D};
_.Z(UF,Error);var icy=Promise;var lj8=function(l){this.channelPromise=l};
lj8.prototype.send=function(l,D,U){this.channelPromise.then(function(n){n.send(l,D,U)})};var Dgg=function(l,D){this.data=l;this.channel=D};
Dgg.prototype.reply=function(l,D,U){this.channel.send(l,D,U)};var Ug1=function(l){this.JSC$9023_port_=l};
Ug1.prototype.send=function(l,D,U){U=U===void 0?[]:U;var n=new MessageChannel;nC7(n.port1,D);this.JSC$9023_port_.postMessage(l,[n.port2].concat(U))};
var yky=function(l,D){nC7(l,D);return new Ug1(l)},nC7=function(l,D){D&&(l.onmessage=function(U){D(new Dgg(U.data,yky(U.ports[0])))})};var Akz=function(l){this.verifier_=l};
Akz.prototype.verify=function(l){return this.verifier_(l)};
var WHk=function(l){var D=Object.create(null);(typeof l==="string"?[l]:l).forEach(function(U){if(U==="null")throw Error("X");D[U]=!0});
return function(U){return D[U]===!0}};_.BTm=function(){if(!_.nC.addEventListener||!Object.defineProperty)return!1;var l=!1,D=Object.defineProperty({},"passive",{get:function(){l=!0}});
try{var U=function(){};
_.nC.addEventListener("test",U,D);_.nC.removeEventListener("test",U,D)}catch(n){}return l}();var Cwh;_.nT=function(l){var D=l.destination;var U=l.iframe;var n=l.origin;var y=l.channelName===void 0?"ZNWN1d":l.channelName;var A=l.onMessage===void 0?void 0:l.onMessage;l=l.onEstablished===void 0?void 0:l.onEstablished;return Cwh({destination:D,getSource:function(){return U.contentWindow},
originVerifier:n instanceof Akz?n:typeof n==="function"?new Akz(n):new Akz(WHk(n)),channelName:y,onMessage:A,onEstablished:l})};
Cwh=function(l){var D=l.destination;var U=l.getSource;var n=l.originVerifier;var y=l.token===void 0?void 0:l.token;var A=l.channelName;var C=l.onMessage===void 0?void 0:l.onMessage;var h=l.onEstablished===void 0?void 0:l.onEstablished;return new lj8(new icy(function(b,u){var Q=function(G){G.source&&G.source===U()&&n.verify(G.origin)&&(G.data.n||G.data)===A&&(D.removeEventListener("message",Q,!1),y&&G.data.t!==y?u(Error("Y`"+A+"`"+y+"`"+G.data.t)):(b(yky(G.ports[0],C)),h&&h(G)))};
D.addEventListener("message",Q,!1)}))};var hIH=function(l){try{l()}catch(D){yg(D)}};var bck=function(l){var D=this;var U=l.getMessageType;var n=l.onUnregisteredMessage===void 0?function(){}:l.onUnregisteredMessage;
var y=l.onBeforeRegisteredMessage===void 0?function(){}:l.onBeforeRegisteredMessage;
l=l.onAfterRegisteredMessage===void 0?function(){}:l.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=U;this.onUnregisteredMessage_=n;this.onBeforeRegisteredMessage_=y;this.onAfterRegisteredMessage_=l;this.onMessage=function(A){return PwH(D,A)}};
bck.prototype.register=function(l,D){this.registry_.set(l,D);return this};
var PwH=function(l,D){var U=l.getMessageType_(D.data),n=l.registry_.get(U);n?(hIH(function(){return l.onBeforeRegisteredMessage_(D,U)}),hIH(function(){return n(D)}),hIH(function(){return l.onAfterRegisteredMessage_(D,U)})):hIH(function(){return l.onUnregisteredMessage_(D,U)})};var gCy=function(l){this.JSC$9040_channel_=l},vCk,Ql7;
gCy.prototype.send=function(l,D,U){this.JSC$9040_channel_.send(pP(l),D,U)};
_.uO1=function(l,D){return function(U){var n=new l(U.data);return D(new Dgg(n,U.channel))}};
vCk=function(l){return function(D){return l(new Dgg(D.data,new gCy(D.channel)))}};
Ql7=function(l,D){return vCk(_.uO1(l,D))};var Gqz=function(l,D,U,n){this.registry=l;this.delegate=D;this.receiveMessageConstructor=U;this.createInitMessage=n;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},HcC=function(l){var D=new bck({getMessageType:l.getPayloadCase});
return new Gqz(D,new gCy(_.nT({iframe:l.child,destination:window,origin:l.origin,channelName:l.channelName,onMessage:Ql7(l.receiveMessageConstructor,D.onMessage)})),l.receiveMessageConstructor,l.createInitMessage)},Jkg=function(l,D){l.createInitMessage=D};
Gqz.prototype.send=function(l){if(!this.initialised)throw new UF("Attempted to send a message before initialisation.");this.delegate.send(l)};
var LHy=function(l,D){return _.P(function(U){if(!l.initialised)throw new UF("Attempted to send a message before initialisation.");return U.return(new Promise(function(n){l.delegate.send(D,Ql7(l.receiveMessageConstructor,n))}))})};
Gqz.prototype.init=function(){var l=this;return _.P(function(D){if(l.initialised)throw new UF("Attempted to initialise twice. The SDK can only be initialised once.");if(l.createInitMessage!==void 0){var U=l.delegate,n=U.send,y=l.createInitMessage;var A=new xw1;var C=[].concat(_.zz(l.features));A=_.Vq(A,1,C,_.Ar);n.call(U,y.call(l,A))}l.initialised=!0;_.Kz(D)})};
var yG=function(l,D){if(l.initialised)throw new UF('Attempted to set up API "'+D+'" after initialisation. All APIs must be set up before initialising the SDK.');l.features.add(D);return l.registry};
_.QP.Object.defineProperties(Gqz.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var qWh=function(l){this.channel=l;this.registered=!1};
qWh.prototype.update=function(l){if(this.channel.isInitialised){if(!this.registered)throw new UF("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var D=new mH;var U=new j$H;U=_.qx(U,1,l);D=_.tk(D,2,XO,U);this.channel.send(D)}else this.register();this.JSC$9054_audioEnabled=l};
qWh.prototype.register=function(){yG(this.channel,1);this.registered=!0};
qWh.prototype.isAudioEnabled=function(){return this.JSC$9054_audioEnabled};var MD_=function(l){this.channel=l};
_.W=MD_.prototype;_.W.onFirstFrameReady=function(l){yG(this.channel,2).register(11,function(D){D=_.tU(D.data,NHg,11,DR);if(!D)throw new UF("Unexpectedly nonexistent GameFirstFrameReadyEvent");l(_.Zo(D,1))})};
_.W.onReady=function(l){yG(this.channel,2).register(4,function(D){D=_.tU(D.data,E8v,4,DR);if(!D)throw new UF("Unexpectedly nonexistent GameReadyEvent");l(_.Zo(D,1))})};
_.W.onLevelComplete=function(l){yG(this.channel,2).register(5,function(D){D=_.tU(D.data,TH7,5,DR);if(!D)throw new UF("Unexpectedly nonexistent LevelCompleteEvent");l(_.Zo(D,1),_.Qp(D,2))})};
_.W.onGameOver=function(l){yG(this.channel,2).register(6,function(D){D=_.tU(D.data,s$1,6,DR);if(!D)throw new UF("Unexpectedly nonexistent GameOverEvent");l(_.Zo(D,1))})};
_.W.pause=function(){var l=this;if(!this.channel.isInitialised)return yG(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new UF("Using unregistered Game Feature: pause.");var D=fvy();return new Promise(function(U){return _.P(function(n){if(n.nextAddress==1)return n.yield(LHy(l.channel,D),2);U();_.Kz(n)})})};
_.W.resume=function(){var l=this;if(!this.channel.isInitialised)return yG(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new UF("Using unregistered Game Feature: resume.");var D=$w_();return new Promise(function(U){return _.P(function(n){if(n.nextAddress==1)return n.yield(LHy(l.channel,D),2);U();_.Kz(n)})})};var RIz=function(l){this.channel=l};
RIz.prototype.onReady=function(l){yG(this.channel,5).register(8,function(D){if(!_.tU(D.data,Iv8,8,DR))throw new UF("Unexpectedly nonexistent PageReadyEvent");l()})};var Zcy=function(l){this.channel=l};
Zcy.prototype.onChange=function(l){yG(this.channel,3).register(7,function(D){D=_.tU(D.data,HPv,7,DR);if(!D)throw new UF("Unexpectedly nonexistent ScoreEvent");l(_.Zo(D,1),_.Qp(D,2))})};var eIm={load:function(){throw new UF("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new UF("Storage used, but storage.onSave() listener not set!");}},mg8=function(l){this.channel=l;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},ajz=function(l){yG(l.channel,4).register(2,eIm.load).register(3,eIm.save);
l.initialSetupDone=!0};
mg8.prototype.onLoad=function(l){this.initialSetupDone||ajz(this);this.loadRegistered||(this.loadRegistered=!0,yG(this.channel,4).register(2,function(D){var U,n,y;return _.P(function(A){if(A.nextAddress==1){U=_.tU(D.data,Y55,2,DR);if(!U)throw new UF("Unexpectedly nonexistent StorageLoad");n=_.Zo(U,1);return A.yield(l(n),2)}y=A.yieldResult;var C=D.reply,h=new mH;var b=new w21;b=_.c7(b,1,n);b=_.Zl(b,2,_.c5(y,!1));h=_.tk(h,3,XO,b);C.call(D,h);_.Kz(A)})}))};
mg8.prototype.onSave=function(l){this.initialSetupDone||ajz(this);this.saveRegistered||(this.saveRegistered=!0,yG(this.channel,4).register(3,function(D){var U,n,y;return _.P(function(A){if(A.nextAddress==1){U=_.tU(D.data,OP1,3,DR);if(!U)throw new UF("Unexpectedly nonexistent StorageSave");n=_.Zo(U,1);y=v1k(U.getData());return A.yield(l(n,y),2)}var C=D.reply,h=new mH;var b=new rr5;b=_.c7(b,1,n);h=_.tk(h,4,XO,b);C.call(D,h);_.Kz(A)})}))};var tDz=function(l){this.channel=l};
tDz.prototype.update=function(l){if(!this.channel.features.has(6))throw new UF("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var D=new mH,U=new z81;l=_.al(U,1,l);D=_.tk(D,6,XO,l);this.channel.send(D)};
tDz.prototype.register=function(){yG(this.channel,6)};var Xhk=function(l){this.channel=l;this.userActivityLoggingIntervalMs=0};
Xhk.prototype.onUserActivity=function(l,D){this.userActivityLoggingIntervalMs=D;yG(this.channel,7).register(9,function(U){if(!_.tU(U.data,VWH,9,DR))throw new UF("Unexpectedly nonexistent ClickEvent");l()})};var SW8=function(l){var D=this;this.channel=l;this.init=this.channel.init.bind(this.channel);this.page=new RIz(this.channel);this.game=new MD_(this.channel);this.audio=new qWh(this.channel);this.score=new Zcy(this.channel);this.storage=new mg8(this.channel);this.style=new tDz(this.channel);this.userActivity=new Xhk(this.channel);Jkg(this.channel,function(U){var n=new OcN;U=_.al(n,1,U);U=_.X9(U,3,D.userActivity.userActivityLoggingIntervalMs);n=D.audio.isAudioEnabled();n!==void 0&&_.qx(U,2,n);n=new mH;
return _.tk(n,5,XO,U)})};var kqz=function(){this.timedFunctionContext=0};
kqz.prototype.timeExecution=function(l,D){var U=this;return function(){var n=_.EW.apply(0,arguments);U.timedFunctionContext=l;return D.apply(null,_.zz(n))}};var dg7=function(){var l={};this.priorityTasks=(l[3]=[],l[2]=[],l[1]=[],l);this.isFlushing=!1},mL=function(l,D,U){var n=KHk(l,U);
l.priorityTasks[U].push(D);n&&l.priorityTasks[U].length===1&&l.flush()},KHk=function(l,D){return Object.keys(l.priorityTasks).map(function(U){return Number(U)}).filter(function(U){return!isNaN(U)&&U>D}).every(function(U){return l.priorityTasks[U].length===0})};
dg7.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(l){return l.length>0});)ck_(this,3),ck_(this,2),ck_(this,1)}catch(l){throw Object.values(this.priorityTasks).forEach(function(D){return void D.splice(0,D.length)}),l;
}finally{this.isFlushing=!1}}};
var ck_=function(l,D){for(;KHk(l,D)&&l.priorityTasks[D].length>0;)l.priorityTasks[D][0](),l.priorityTasks[D].shift()};
_.QP.Object.defineProperties(dg7.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(l){return l.length>0})}}});var yvB={};var phm=globalThis.trustedTypes,izB=phm,Dq_;var kC=function(l){this.privateDoNotAccessOrElseWrappedResourceUrl=l};
kC.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var xg5,jlm,FH7,oC1,whh,rk_,zIr,fj8;xg5=_.wL([""]);jlm=o7(["\x00"],["\\0"]);FH7=o7(["\n"],["\\n"]);oC1=o7(["\x00"],["\\u0000"]);whh=_.wL([""]);rk_=o7(["\x00"],["\\0"]);zIr=o7(["\n"],["\\n"]);fj8=o7(["\x00"],["\\u0000"]);_.$gg=nFB(function(l){return l(xg5)})||nFB(function(l){return l(jlm)})||nFB(function(l){return l(FH7)})||nFB(function(l){return l(oC1)});
_.NTm=_.pc(whh)&&_.pc(rk_)&&_.pc(zIr)&&_.pc(fj8);var zq;_.xC=function(l,D){this.privateDoNotAccessOrElseWrappedUrl=D};
_.xC.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.sl1=jD("about:blank");zq=jD("about:invalid#zClosurez");var Avg=function(l){this.isValid=l},ECH=new Avg(function(l){return/^[^:]*([/?#]|$)/.test(l)}),TTy=wT("data"),Ijy=wT("http"),Hcm=wT("https"),YWg=wT("ftp"),Ocv=wT("mailto"),VDz=wT("intent"),izk=wT("vnd.youtube"),W6C=[TTy,
Ijy,Hcm,Ocv,YWg,ECH],C8N=SD(function(){return typeof URL==="function"}),lY8=["data:",
"http:","https:","mailto:","ftp:"],P8c=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Hh=function(l){this.privateDoNotAccessOrElseWrappedHtml=l};
Hh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var hvl=SD(function(){return new Hh(phm?phm.emptyHTML:"")});var Dqg={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"},gF9=function(l,D){var U=Error.call(this,l+" cannot be used with intent "+Dqg[D]);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.type=l;this.intent=D;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.Z(gF9,Error);_.nz=function(l){this.privateDoNotAccessOrElseWrappedScript=l};
_.nz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var vFK=function(l){this.privateDoNotAccessOrElseWrappedAttributePrefix=l};
vFK.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var QV$="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var b8=function(l){this.privateDoNotAccessOrElseWrappedStyleSheet=l};
b8.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var fVK=function(l){var D=_.UG("window.location.href");l==null&&(l='Unknown Error of type "null/undefined"');if(typeof l==="string")return{message:l,name:"Unknown error",lineNumber:"Not available",fileName:D,stack:"Not available"};var U=!1;try{var n=l.lineNumber||l.line||"Not available"}catch(C){n="Not available",U=!0}try{var y=l.fileName||l.filename||l.sourceURL||_.nC.$googDebugFname||D}catch(C){y="Not available",U=!0}D=Uqy(l);if(!(!U&&l.lineNumber&&l.fileName&&l.stack&&l.message&&l.name)){U=l.message;
if(U==null){if(l.constructor&&l.constructor instanceof Function){if(l.constructor.name)U=l.constructor.name;else if(U=l.constructor,Az[U])U=Az[U];else{U=String(U);if(!Az[U]){var A=/function\s+([^\(]+)/m.exec(U);Az[U]=A?A[1]:"[Anonymous]"}U=Az[U]}U='Unknown Error of type "'+U+'"'}else U="Unknown Error of unknown type";typeof l.toString==="function"&&Object.prototype.toString!==l.toString&&(U+=": "+l.toString())}return{message:U,name:l.name||"UnknownError",lineNumber:n,fileName:y,stack:D||"Not available"}}return{message:l.message,
name:l.name,lineNumber:l.lineNumber,fileName:l.fileName,stack:D}},Uqy=function(l,D){D||(D={});
D[nFk(l)]=!0;var U=l.stack||"",n=l.cause;n&&!D[nFk(n)]&&(U+="\nCaused by: ",n.stack&&n.stack.indexOf(n.toString())==0||(U+=typeof n==="string"?n:n.message+"\n"),U+=Uqy(n,D));l=l.errors;if(Array.isArray(l)){n=1;var y;for(y=0;y<l.length&&!(n>4);y++)D[nFk(l[y])]||(U+="\nInner error "+n++ +": ",l[y].stack&&l[y].stack.indexOf(l[y].toString())==0||(U+=typeof l[y]==="string"?l[y]:l[y].message+"\n"),U+=Uqy(l[y],D));y<l.length&&(U+="\n... "+(l.length-y)+" more inner errors")}return U},nFk=function(l){var D=
"";
typeof l.toString==="function"&&(D=""+l);return D+l.stack},Az={};var yvk,Qy,DX,W6m,BEv,Av_,lh,x2,hUr;yvk=function(l,D){for(var U=l.split("%s"),n="",y=Array.prototype.slice.call(arguments,1);y.length&&U.length>1;)n+=U.shift()+y.shift();return n+U.join("%s")};
_.yy=function(l){return encodeURIComponent(String(l))};
Qy=function(l){return decodeURIComponent(l.replace(/\+/g," "))};
DX=function(l){ds_.test(l)&&(l.indexOf("&")!=-1&&(l=l.replace(ms5,"&amp;")),l.indexOf("<")!=-1&&(l=l.replace(a9y,"&lt;")),l.indexOf(">")!=-1&&(l=l.replace(t3g,"&gt;")),l.indexOf('"')!=-1&&(l=l.replace(Xov,"&quot;")),l.indexOf("'")!=-1&&(l=l.replace(Scm,"&#39;")),l.indexOf("\x00")!=-1&&(l=l.replace(kN_,"&#0;")));return l};
W6m=function(l){var D={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var U=_.nC.document.createElement("div");return l.replace(Av_,function(n,y){var A=D[n];if(A)return A;y.charAt(0)=="#"&&(y=Number("0"+y.slice(1)),isNaN(y)||(A=String.fromCharCode(y)));A||(_.Cz(U,YC(n+" ")),A=U.firstChild.nodeValue.slice(0,-1));return D[n]=A})};
BEv=function(l){return l.replace(/&([^;]+);/g,function(D,U){switch(U){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return U.charAt(0)!="#"||(U=Number("0"+U.slice(1)),isNaN(U))?D:String.fromCharCode(U)}})};
Av_=/&([^;\s<&]+);?/g;_.t5s=function(l){return String(l).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.C8v=String.prototype.repeat?function(l,D){return l.repeat(D)}:function(l,D){return Array(D+1).join(l)};
_.Wl=function(l,D){if(!Number.isFinite(l))return String(l);l=String(l);var U=l.indexOf(".");U===-1&&(U=l.length);var n=l[0]==="-"?"-":"";n&&(l=l.substring(1));return n+(0,_.C8v)("0",Math.max(0,D-U))+l};
lh=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.I7()).toString(36)};
x2=function(l){for(var D=0,U=0;U<l.length;++U)D=31*D+l.charCodeAt(U)>>>0;return D};
_.h6=function(l){return String(l).replace(/\-([a-z])/g,function(D,U){return U.toUpperCase()})};
_.CI=function(l){return String(l).replace(/([A-Z])/g,"-$1").toLowerCase()};
hUr=function(l){return l.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(D,U,n){return U+n.toUpperCase()})};var P87=function(){this.names=new Map};
P87.prototype.getName=function(l){var D=this.names.get(l);if(D)return D;var U;D=(U=l.description)!=null?U:lh();this.names.set(l,D);return D};var bzm=function(l){var D=Error.call(this,l?l.length+" errors occurred during unsubscription:\n"+l.map(function(U,n){return n+1+") "+U.toString()}).join("\n  "):"");
this.message=D.message;"stack"in D&&(this.stack=D.stack);this.errors=l;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.Z(bzm,Error);var u8=function(l){this.initialTeardown=l;this.closed=!1;this._teardowns=this._parentage=null};
_.W=u8.prototype;
_.W.unsubscribe=function(){if(!this.closed){this.closed=!0;var l=this._parentage;if(Array.isArray(l))for(var D=_.B(l),U=D.next();!U.done;U=D.next())U.value.remove(this);else l==null||l.remove(this);D=this.initialTeardown;if(gE(D))try{D()}catch(A){var n=A instanceof bzm?A.errors:[A]}var y=this._teardowns;if(y)for(this._teardowns=null,D=_.B(y),U=D.next();!U.done;U=D.next()){U=U.value;try{gE(U)?U():U.unsubscribe()}catch(A){U=void 0,n=(U=n)!=null?U:[],A instanceof bzm?n=[].concat(_.zz(n),_.zz(A.errors)):
n.push(A)}}if(n)throw new bzm(n);}};
_.W.add=function(l){if(l&&l!==this)if(this.closed)gE(l)?l():l.unsubscribe();else{if(l instanceof u8){if(l.closed||l._hasParent(this))return;l._addParent(this)}var D;(this._teardowns=(D=this._teardowns)!=null?D:[]).push(l)}};
_.W._hasParent=function(l){var D=this._parentage;return D===l||Array.isArray(D)&&D.includes(l)};
_.W._addParent=function(l){var D=this._parentage;this._parentage=Array.isArray(D)?(D.push(l),D):D?[D,l]:l};
_.W._removeParent=function(l){var D=this._parentage;D===l?this._parentage=null:Array.isArray(D)&&Mc_(D,l)};
_.W.remove=function(l){var D=this._teardowns;D&&Mc_(D,l);l instanceof u8&&l._removeParent(this)};
var gF7=new u8;gF7.closed=!0;u8.JSC$9150_EMPTY=gF7;var Zzs=function(){setTimeout.apply(null,_.zz(_.EW.apply(0,arguments)))};var Bl=function(l){u8.call(this);this.JSC$9155_isStopped=!1;this.destination=l instanceof Bl?l:new CT(!l||gE(l)?{next:l!=null?l:void 0}:l);RUd(l)&&l.add(this)};
_.Z(Bl,u8);Bl.JSC$9150_EMPTY=u8.JSC$9150_EMPTY;Bl.create=function(l,D,U){return new hz(l,D,U)};
_.W=Bl.prototype;_.W.next=function(l){this.JSC$9155_isStopped||this._next(l)};
_.W.error=function(l){this.JSC$9155_isStopped||(this.JSC$9155_isStopped=!0,this._error(l))};
_.W.complete=function(){this.JSC$9155_isStopped||(this.JSC$9155_isStopped=!0,this._complete())};
_.W.unsubscribe=function(){this.closed||(this.JSC$9155_isStopped=!0,u8.prototype.unsubscribe.call(this))};
_.W._next=function(l){this.destination.next(l)};
_.W._error=function(l){this.destination.error(l);this.unsubscribe()};
_.W._complete=function(){this.destination.complete();this.unsubscribe()};
var CT=function(l){this.partialObserver=l};
CT.prototype.next=function(l){var D=this.partialObserver;if(D.next)try{D.next(l)}catch(U){Qr(U)}};
CT.prototype.error=function(l){var D=this.partialObserver;if(D.error)try{D.error(l)}catch(U){Qr(U)}else Qr(l)};
CT.prototype.complete=function(){var l=this.partialObserver;if(l.complete)try{l.complete()}catch(D){Qr(D)}};
var hz=function(l,D,U){Bl.call(this);var n;gE(l)||!l?n={next:l!=null?l:void 0,error:D!=null?D:void 0,complete:U!=null?U:void 0}:n=l;this.destination=new CT(n)};
_.Z(hz,Bl);hz.JSC$9150_EMPTY=Bl.JSC$9150_EMPTY;hz.create=Bl.create;var qq=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Lz=function(l){l&&(this._subscribe=l)};
_.W=Lz.prototype;_.W.lift=function(l){var D=new Lz;D.source=this;D.operator=l;return D};
_.W.subscribe=function(l,D,U){l=l&&l instanceof Bl||l&&gE(l.next)&&gE(l.error)&&gE(l.complete)&&RUd(l)?l:new hz(l,D,U);D=this.operator;U=this.source;l.add(D?D.call(l,U):U?this._subscribe(l):this._trySubscribe(l));return l};
_.W._trySubscribe=function(l){try{return this._subscribe(l)}catch(D){l.error(D)}};
_.W.forEach=function(l,D){var U=this;D=mq9(D);return new D(function(n,y){var A=U.subscribe(function(C){try{l(C)}catch(h){y(h),A==null||A.unsubscribe()}},y,n)})};
_.W._subscribe=function(l){var D;return(D=this.source)==null?void 0:D.subscribe(l)};
Lz.prototype[qq]=function(){return this};
Lz.prototype.pipe=function(){var l=_.EW.apply(0,arguments);return l.length?eU3(l)(this):this};
Lz.create=function(l){return new Lz(l)};var uRy=function(){var l=Error.call(this,"object unsubscribed");this.message=l.message;"stack"in l&&(this.stack=l.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.Z(uRy,Error);var RB=function(){this.observers=[];this.hasError=this.JSC$9171_isStopped=this.closed=!1;this.thrownError=null};
_.Z(RB,Lz);_.W=RB.prototype;_.W.lift=function(l){var D=new Pl(this,this);D.operator=l;return D};
_.W._throwIfClosed=function(){if(this.closed)throw new uRy;};
_.W.next=function(l){this._throwIfClosed();if(!this.JSC$9171_isStopped){var D=this.observers.slice();D=_.B(D);for(var U=D.next();!U.done;U=D.next())U.value.next(l)}};
_.W.error=function(l){this._throwIfClosed();if(!this.JSC$9171_isStopped){this.hasError=this.JSC$9171_isStopped=!0;this.thrownError=l;for(var D=this.observers;D.length;)D.shift().error(l)}};
_.W.complete=function(){this._throwIfClosed();if(!this.JSC$9171_isStopped){this.JSC$9171_isStopped=!0;for(var l=this.observers;l.length;)l.shift().complete()}};
_.W.unsubscribe=function(){this.JSC$9171_isStopped=this.closed=!0;this.observers=null};
_.W._trySubscribe=function(l){this._throwIfClosed();return Lz.prototype._trySubscribe.call(this,l)};
_.W._subscribe=function(l){this._throwIfClosed();this._checkFinalizedStatuses(l);return this._innerSubscribe(l)};
_.W._innerSubscribe=function(l){var D=this,U=this.JSC$9171_isStopped,n=this.observers;return this.hasError||U?u8.JSC$9150_EMPTY:(n.push(l),new u8(function(){return Mc_(D.observers,l)}))};
_.W._checkFinalizedStatuses=function(l){var D=this.thrownError,U=this.JSC$9171_isStopped;this.hasError?l.error(D):U&&l.complete()};
RB.create=function(l,D){return new Pl(l,D)};
var Pl=function(l,D){RB.call(this);this.destination=l;this.source=D};
_.Z(Pl,RB);Pl.create=RB.create;Pl.prototype.next=function(l){var D,U;(D=this.destination)==null||(U=D.next)==null||U.call(D,l)};
Pl.prototype.error=function(l){var D,U;(D=this.destination)==null||(U=D.error)==null||U.call(D,l)};
Pl.prototype.complete=function(){var l,D;(l=this.destination)==null||(D=l.complete)==null||D.call(l)};
Pl.prototype._subscribe=function(l){var D,U;return(U=(D=this.source)==null?void 0:D.subscribe(l))!=null?U:u8.JSC$9150_EMPTY};var Ym=function(l){RB.call(this);this._value=l};
_.Z(Ym,RB);Ym.create=RB.create;Ym.prototype._subscribe=function(l){var D=RB.prototype._subscribe.call(this,l);!D.closed&&l.next(this._value);return D};
Ym.prototype.getValue=function(){var l=this.thrownError,D=this._value;if(this.hasError)throw l;this._throwIfClosed();return D};
Ym.prototype.next=function(l){RB.prototype.next.call(this,this._value=l)};
_.QP.Object.defineProperties(Ym.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Tz=new Lz(function(l){return l.complete()});var SS$=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var pYo=function(l){return l&&typeof l.length==="number"&&typeof l!=="function"};var vFz={now:function(){return(vFz.delegate||Date).now()},
delegate:void 0};var C2=function(l,D,U){l=l===void 0?Infinity:l;D=D===void 0?Infinity:D;U=U===void 0?vFz:U;RB.call(this);this.bufferSize=l;this.windowTime=D;this.timestampProvider=U;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=D===Infinity;this.bufferSize=Math.max(1,l);this.windowTime=Math.max(1,D)};
_.Z(C2,RB);C2.create=RB.create;C2.prototype.next=function(l){var D=this.buffer,U=this.infiniteTimeWindow,n=this.timestampProvider,y=this.windowTime;this.JSC$9171_isStopped||(D.push(l),!U&&D.push(n.now()+y));QV8(this);RB.prototype.next.call(this,l)};
C2.prototype._subscribe=function(l){this._throwIfClosed();QV8(this);for(var D=this._innerSubscribe(l),U=this.infiniteTimeWindow,n=this.buffer.slice(),y=0;y<n.length&&!l.closed;y+=U?1:2)l.next(n[y]);this._checkFinalizedStatuses(l);return D};
var QV8=function(l){var D=l.bufferSize,U=l.timestampProvider,n=l.buffer;l=l.infiniteTimeWindow;var y=(l?1:2)*D;D<Infinity&&y<n.length&&n.splice(0,n.length-y);if(!l){D=U.now();U=0;for(l=1;l<n.length&&n[l]<=D;l+=2)U=l;U&&n.splice(0,U+1)}};var Jv5=function(l,D){D=D===void 0?Gz8:D;this.schedulerActionCtor=l;this.now=D};
Jv5.prototype.schedule=function(l,D,U){D=D===void 0?0:D;return(new this.schedulerActionCtor(this,l)).schedule(U,D)};
var Gz8=vFz.now;var aUK=function(){var l=Error.call(this,"no elements in sequence");this.message=l.message;"stack"in l&&(this.stack=l.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.Z(aUK,Error);var FR=function(l,D,U,n,y){Bl.call(this,l);this.onUnsubscribe=y;D&&(this._next=function(A){try{D(A)}catch(C){this.destination.error(C)}});
U&&(this._error=function(A){try{U(A)}catch(C){this.destination.error(C)}this.unsubscribe()});
n&&(this._complete=function(){try{n()}catch(A){this.destination.error(A)}this.unsubscribe()})};
_.Z(FR,Bl);FR.JSC$9150_EMPTY=Bl.JSC$9150_EMPTY;FR.create=Bl.create;FR.prototype.unsubscribe=function(){var l;this.closed||(l=this.onUnsubscribe)!=null&&l.call(this);Bl.prototype.unsubscribe.call(this)};var W7=function(l,D){this.source=l;this.subjectFactory=D;this._subject=null;this._refCount=0;this._connection=null};
_.Z(W7,Lz);W7.create=Lz.create;W7.prototype._subscribe=function(l){return L6z(this).subscribe(l)};
var L6z=function(l){var D=l._subject;if(!D||D.JSC$9171_isStopped)l._subject=l.subjectFactory();return l._subject};
W7.prototype._teardown=function(){this._refCount=0;var l=this._connection;this._subject=this._connection=null;l==null||l.unsubscribe()};
W7.prototype.connect=function(){var l=this,D=this._connection;if(!D){D=this._connection=new u8;var U=L6z(this);D.add(this.source.subscribe(new FR(U,void 0,function(n){l._teardown();U.error(n)},function(){l._teardown();
U.complete()},function(){return l._teardown()})));
D.closed&&(this._connection=null,D=u8.JSC$9150_EMPTY)}return D};var EFN=Array.isArray;var IYd=Array.isArray,qS7=Object,Hzd=qS7.getPrototypeOf,YSN=qS7.prototype,Ozd=qS7.keys;var $F=function(l,D,U){Bl.call(this,l);this._next=D;this.shouldComplete=U};
_.Z($F,Bl);$F.JSC$9150_EMPTY=Bl.JSC$9150_EMPTY;$F.create=Bl.create;$F.prototype._complete=function(){this.shouldComplete()?Bl.prototype._complete.call(this):this.unsubscribe()};var WLl=["addListener","removeListener"],Aa9=["addEventListener","removeEventListener"],CpK=["on","off"];var bW=function(){u8.call(this)};
_.Z(bW,u8);bW.JSC$9150_EMPTY=u8.JSC$9150_EMPTY;bW.prototype.schedule=function(){return this};var Mcg=function(l,D){return setInterval.apply(null,[l,D].concat(_.zz(_.EW.apply(2,arguments))))};var gU=function(l,D){u8.call(this);this.scheduler=l;this.work=D;this.pending=!1};
_.Z(gU,bW);gU.JSC$9150_EMPTY=bW.JSC$9150_EMPTY;gU.prototype.schedule=function(l,D){D=D===void 0?0:D;if(this.closed)return this;this.state=l;l=this.id;var U=this.scheduler;l!=null&&(this.id=RUy(this,l,D));this.pending=!0;this.delay=D;this.id=this.id||this.requestAsyncId(U,this.id,D);return this};
gU.prototype.requestAsyncId=function(l,D,U){U=U===void 0?0:U;return Mcg(l.flush.bind(l,this),U)};
var RUy=function(l,D,U){U=U===void 0?0:U;if(U!=null&&l.delay===U&&l.pending===!1)return D;clearInterval(D)};
gU.prototype.execute=function(l,D){if(this.closed)return Error("ha");this.pending=!1;if(l=this._execute(l,D))return l;this.pending===!1&&this.id!=null&&(this.id=RUy(this,this.id,null))};
gU.prototype._execute=function(l){var D=!1;try{this.work(l)}catch(n){D=!0;var U=!!n&&n||Error(n)}if(D)return this.unsubscribe(),U};
gU.prototype.unsubscribe=function(){if(!this.closed){var l=this.id,D=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Mc_(D,this);l!=null&&(this.id=RUy(this,l,null));this.delay=null;bW.prototype.unsubscribe.call(this)}};var Zzr=function(l,D){D=D===void 0?Gz8:D;Jv5.call(this,l,D);this.actions=[];this.active=!1;this.scheduled=void 0};
_.Z(Zzr,Jv5);Zzr.prototype.flush=function(l){var D=this.actions;if(this.active)D.push(l);else{var U;this.active=!0;do if(U=l.execute(l.state,l.delay))break;while(l=D.shift());this.active=!1;if(U){for(;l=D.shift();)l.unsubscribe();throw U;}}};var jr=new Lz(vY);var hhN=Array.isArray;var uW=function(l,D){gU.call(this,l,D);this.scheduler=l;this.work=D};
_.Z(uW,gU);uW.JSC$9150_EMPTY=gU.JSC$9150_EMPTY;uW.prototype.schedule=function(l,D){D=D===void 0?0:D;if(D>0)return gU.prototype.schedule.call(this,l,D);this.delay=D;this.state=l;this.scheduler.flush(this);return this};
uW.prototype.execute=function(l,D){return D>0||this.closed?gU.prototype.execute.call(this,l,D):this._execute(l,D)};
uW.prototype.requestAsyncId=function(l,D,U){U=U===void 0?0:U;return U!=null&&U>0||U==null&&this.delay>0?gU.prototype.requestAsyncId.call(this,l,D,U):l.flush(this)};var eUh=function(){Zzr.apply(this,arguments)};
_.Z(eUh,Zzr);var NEl=new eUh(uW);var mq1=function(){this.performanceMonitor=new kqz;this.queue=new dg7;this.internalSymbol=Symbol();this.debugNames=new P87};
mq1.prototype.getOnBackgrounded=function(){return jr};
_.QP.Object.defineProperties(mq1.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var vl=function(l,D){D=Error.call(this,D?l+": "+D:String(l));this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=l;this.__proto__=vl.prototype;this.name=String(l)};
_.Z(vl,Error);var Fm=function(l){vl.call(this,1E3,'sfr:"'+l+'"');this.measurementStrategyFailureReason=l;this.__proto__=Fm.prototype};
_.Z(Fm,vl);var oB=function(){vl.call(this,1003);this.__proto__=oB.prototype};
_.Z(oB,vl);var QG=function(){vl.call(this,1009);this.__proto__=QG.prototype};
_.Z(QG,vl);var aYH=function(){vl.call(this,1011);this.__proto__=aYH.prototype};
_.Z(aYH,vl);var tcy=function(){vl.call(this,1007);this.__proto__=oB.prototype};
_.Z(tcy,vl);var p2=function(l){vl.call(this,1004,String(l));this.inputObservableIndex=l;this.__proto__=p2.prototype};
_.Z(p2,vl);var ETg=function(l){vl.call(this,1010,l);this.__proto__=TsC.prototype};
_.Z(ETg,vl);var TsC=function(l){vl.call(this,1005,l);this.__proto__=TsC.prototype};
_.Z(TsC,vl);var XY8=function(l){var D=_.EW.apply(1,arguments),U=this;this.orderedFactories=[];this.orderedFactories.push(l);D.forEach(function(n){U.orderedFactories.push(n)})};
XY8.prototype.isSupported=function(l){return this.orderedFactories.some(function(D){return D.isSupported(l)})};
XY8.prototype.makeBeacon=function(l,D){for(var U=0;U<this.orderedFactories.length;U++)if(this.orderedFactories[U].isSupported(D))return this.orderedFactories[U].makeBeacon(l,D);throw new QG;};var xVd=Symbol("ia"),SS8=Symbol("ja"),OS=function(l,D){this.value=l;this.timeline=D},YF=function(l,D){if(D.timeline!==l.timeline)throw new tcy;
return l.value-D.value};
_.W=OS.prototype;_.W.equals=function(l){return YF(this,l)===0};
_.W.maximum=function(l){if(l.timeline!==this.timeline)throw new tcy;return this.value>=l.value?this:l};
_.W.round=function(){return new OS(Math.round(this.value),this.timeline)};
_.W.add=function(l){return new OS(this.value+l,this.timeline)};
_.W.toString=function(){return String(this.value)};var G5=function(l,D){this.context=l;this.JSC$9277_pinger=D};
G5.prototype.isSupported=function(l){return this.JSC$9277_pinger.isSupported(l)};
G5.prototype.makeBeacon=function(l,D){if(!this.isSupported(D))throw new QG;return new Jz(this.context,this.JSC$9277_pinger,D!=null?D:void 0,l)};
var Jz=function(l,D,U,n){var y=this;this.JSC$9283_pinger=D;this.properties=U;this.url=n;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var A;this.method=(A=U==null?void 0:U.beaconMethod)!=null?A:"GET";this.backgroundedSubscription=l.getOnBackgrounded().subscribe(function(){y.sendNow()})};
Jz.prototype.deactivate=function(){this.internalIsPending=!1};
Jz.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9283_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var l,D;this.JSC$9283_pinger.pingWithHeadersAndBody((l=this.properties)!=null?l:{},this.customHeaders,(D=this.body)!=null?D:"",this.url)}else this.JSC$9283_pinger.ping(this.url);this.internalIsPending=!1}catch(U){}else this.internalIsPending=!1};
Jz.prototype.setHeader=function(l,D){this.customHeaders.set(l,D)};
_.QP.Object.defineProperties(Jz.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var dqm=function(){for(var l=_.B(_.EW.apply(0,arguments)),D=l.next();!D.done;D=l.next())if(D=D.value,D.available()){this.timeProvider=D;return}this.timeProvider=new kzy};
_.W=dqm.prototype;_.W.available=function(){return this.timeProvider.available()};
_.W.now=function(){return this.timeProvider.now()};
_.W.setTimeout=function(l,D){return this.timeProvider.setTimeout(l,D)};
_.W.clearTimeout=function(l){this.timeProvider.clearTimeout(l)};
_.W.interval=function(l,D){var U=this.intervalObservable(l).subscribe(D);return function(){return void U.unsubscribe()}};
_.W.intervalObservable=function(l){return this.timeProvider.intervalObservable(l)};
_.QP.Object.defineProperties(dqm.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var kzy=function(){this.timeline=Symbol()};
_.W=kzy.prototype;_.W.available=function(){return!1};
_.W.now=function(){return new OS(0,this.timeline)};
_.W.setTimeout=function(){return 0};
_.W.clearTimeout=function(){};
_.W.interval=function(){return function(){}};
_.W.intervalObservable=function(){return jr};var LT=function(l,D){this.intrinsicFunctionNamespace=l;this.performanceMonitor=D};
_.W=LT.prototype;_.W.setTimeout=function(l,D){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,l),D)};
_.W.clearTimeout=function(l){this.intrinsicFunctionNamespace.clearTimeout(l)};
_.W.interval=function(l,D){var U=this.intervalObservable(l).subscribe(D);return function(){return void U.unsubscribe()}};
_.W.intervalObservable=function(l){var D=this;return new Lz(function(U){var n=0,y=D.intrinsicFunctionNamespace.setInterval(function(){U.next(n++)},l);
return function(){D.intrinsicFunctionNamespace.clearInterval(y)}})};
_.W.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var K68=function(l,D){LT.call(this,l,D);this.timeline=SS8};
_.Z(K68,LT);K68.prototype.now=function(){return new OS(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
K68.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&LT.prototype.available.call(this)};var cv8=function(l,D){LT.call(this,l,D);this.timeline=xVd};
_.Z(cv8,LT);cv8.prototype.now=function(){return new OS(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
cv8.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&LT.prototype.available.call(this)};var xqy=function(l){this.context=l;if(pY5===void 0)a:{var D,U,n=(D=l.global)==null?void 0:(U=D.document)==null?void 0:U.createElement("meta");if(n)try{n.httpEquiv="origin-trial";n.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";l.global.document.head.append(n);pY5=n;break a}catch(y){}pY5=void 0}},
pY5;
xqy.prototype.isSupported=function(l){return qj$(this.context)!==void 0&&!(l==null||!l.endOfSession)&&!qU(this.context)&&!(l==null?0:l.attributionEnabled)&&!(l==null?0:l.customHeaders)&&!(l==null?0:l.customBody)};
xqy.prototype.makeBeacon=function(l,D){if(!this.isSupported(D))throw new QG;return new MU(this.context,l,D)};
var MU=function(l,D,U){this.context=l;this.properties=U;this.JSC$9310_urlWithoutToken=D;var n;this.beaconMethod=(n=U==null?void 0:U.beaconMethod)!=null?n:"GET";l=qj$(this.context);if(l===void 0)throw Error();this.fetchLater=l;jV7(this,F68(this))},jV7=function(l,D){l.beaconResult&&l.beaconResult.activated||(l.beaconAbort=new AbortController,l.beaconResult=l.fetchLater(D,{method:l.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:l.beaconAbort.signal,activateAfter:96E4}))},F68=function(l){l=l.JSC$9310_urlWithoutToken;
return(l.slice(-1)[0]==="&"?l:l+"&")+"flapi=1"};
MU.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
MU.prototype.sendNow=function(){};
MU.prototype.setHeader=function(){};
_.QP.Object.defineProperties(MU.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9310_urlWithoutToken},
set:function(l){this.JSC$9310_urlWithoutToken=l;l=F68(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);jV7(this,l)}},
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 oF5=function(l){this.context=l};
oF5.prototype.isSupported=function(){return!qU(this.context)&&!!this.context.global.fetch};
oF5.prototype.ping=function(){var l=this;return IV.apply(null,_.zz(_.EW.apply(0,arguments).map(function(D){return RV(l.context.global.fetch(D,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(wE(function(U){return U.status===200}))}))).pipe(tr_(function(D){return D}),Sj3())};
oF5.prototype.pingWithHeadersAndBody=function(l,D,U){for(var n=_.EW.apply(3,arguments),y=this,A=new Headers,C=_.B(D.entries()),h=C.next();!h.done;h=C.next()){var b=_.B(h.value);h=b.next().value;b=b.next().value;A.set(h,b)}var u,Q=(u=l.keepAlive)!=null?u:!1;IV.apply(null,_.zz(n.map(function(G){return RV(y.context.global.fetch(G,Object.assign({},{method:String(l.beaconMethod),cache:"no-cache"},Q?{keepalive:!0}:{},{mode:"no-cors",headers:A,body:U}))).pipe(wE(function(J){return J.status===200}))}))).pipe(tr_(function(G){return G}),
Sj3())};var wY5,csl,rv8;_.RR=function(){};
_.x9=function(l){return l};
wY5=function(l){var D=D||0;return function(){return l.apply(this,Array.prototype.slice.call(arguments,0,D))}};
_.ZR=function(l){var D=!1,U;return function(){D||(U=l(),D=!0);return U}};
_.e8=function(l,D){var U=0;return function(n){_.nC.clearTimeout(U);var y=arguments;U=_.nC.setTimeout(function(){l.apply(void 0,y)},D)}};
csl=function(l,D){var U=0,n=!1,y=[],A=function(){U=0;n&&(n=!1,C())},C=function(){U=_.nC.setTimeout(A,D);
var h=y;y=[];l.apply(void 0,h)};
return function(h){y=arguments;U?n=!0:C()}};
rv8=function(l,D){var U=0,n=function(){U=0};
return function(y){U||(U=_.nC.setTimeout(n,D),l.apply(void 0,arguments))}};var fY8=function(){return qs&&R_?R_.mobile:!zU8()&&(Z9("iPod")||Z9("iPhone")||Z9("Android")||Z9("IEMobile"))},zU8=function(){return qs&&R_?!R_.mobile&&(Z9("iPad")||Z9("Android")||Z9("Silk")):Z9("iPad")||Z9("Android")&&!Z9("Mobile")||Z9("Silk")};var mb=function(l,D,U,n,y){this.allowedElements=l;this.elementPolicies=D;this.allowedGlobalAttributes=U;this.globalAttributePolicies=n;this.globallyAllowedAttributePrefixes=y},$qh=function(l,D,U){U=l.elementPolicies.get(U);
return(U==null?0:U.has(D))?U.get(D):l.allowedGlobalAttributes.has(D)?{policyAction:1}:(U=l.globalAttributePolicies.get(D))?U:l.globallyAllowedAttributePrefixes&&[].concat(_.zz(l.globallyAllowedAttributePrefixes)).some(function(n){return D.indexOf(n)===0})?{policyAction:1}:{policyAction:0}};var NEy="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(" "),
sV5=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],EFv="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(" "),
TE1=[["dir",{policyAction:3,conditions:SD(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:SD(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:SD(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:SD(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],IYy=new mb(new Set(NEy),new Map(sV5),new Set(EFv),new Map(TE1)),Hzy=new mb(new Set(NEy.concat(["BUTTON",
"INPUT"])),new Map(sV5),new Set(SD(function(){return EFv.concat(["class","id","name"])})),new Map(SD(function(){return TE1.concat([["style",
{policyAction:1}]])})));var YSv,Ozy,i28;YSv=function(l,D,U,n,y){this.JSC$9367_sanitizerTable=l;this.styleElementSanitizer=D;this.styleAttributeSanitizer=U;this.JSC$9367_resourceUrlPolicy=n;this.JSC$9367_navigationUrlPolicy=y;this.changes=[]};
_.Vc7=function(l,D){var U=document.implementation.createHTMLDocument("");l=Ozy(l,D,U);U=U.body;U.appendChild(l);U=(new XMLSerializer).serializeToString(U);U=U.slice(U.indexOf(">")+1,U.lastIndexOf("</"));return YC(U)};
Ozy=function(l,D,U){D=w7l(D,U);D=document.createTreeWalker(D,5,function(h){if(h.nodeType===3)h=1;else if(zhd(h))if(h=ra3(h),h===null)h=2;else{var b=l.JSC$9367_sanitizerTable;h=h!=="FORM"&&(b.allowedElements.has(h)||b.elementPolicies.has(h))?1:2}else h=2;return h});
for(var n=D.nextNode(),y=U.createDocumentFragment(),A=y;n!==null;){var C=void 0;if(n.nodeType===3)l.styleElementSanitizer&&A.nodeName==="STYLE"?(n=l.styleElementSanitizer(n.data),C=l.createTextNode(n)):C=l.createTextNode(n.data);else if(zhd(n))C=i28(l,n,U);else throw Error("Z");A.appendChild(C);if(n=D.firstChild())A=C;else for(;!(n=D.nextSibling())&&(n=D.parentNode());)A=A.parentNode}return y};
YSv.prototype.createTextNode=function(l){return document.createTextNode(l)};
i28=function(l,D,U){var n,y=ra3(D);U=U.createElement(y);D=D.attributes;for(var A=_.B(D),C=A.next();!C.done;C=A.next()){var h=C.value;C=h.name;h=h.value;var b=$qh(l.JSC$9367_sanitizerTable,C,y);a:{if(n=b.conditions){n=_.B(n);for(var u=n.next();!u.done;u=n.next()){var Q=_.B(u.value);u=Q.next().value;Q=Q.next().value;var G=void 0;if((u=(G=D.getNamedItem(u))==null?void 0:G.value)&&!Q.has(u)){n=!1;break a}}}n=!0}if(n)switch(b.policyAction){case 1:GP(U,C,h);break;case 2:throw Error();case 3:GP(U,C,h.toLowerCase());
break;case 4:l.styleAttributeSanitizer?(h=l.styleAttributeSanitizer(h),GP(U,C,h)):GP(U,C,h);break;case 5:l.JSC$9367_resourceUrlPolicy?(b={type:2,attributeName:C,elementName:y},h=omK(h),(h=l.JSC$9367_resourceUrlPolicy(h,b))&&GP(U,C,h.toString())):GP(U,C,h);break;case 6:if(l.JSC$9367_resourceUrlPolicy){b={type:2,attributeName:C,elementName:y};n=[];h=_.B(h.split(","));for(u=h.next();!u.done;u=h.next())Q=_.B(u.value.trim().split(/\s+/,2)),u=Q.next().value,Q=Q.next().value,n.push({url:u,descriptor:Q});
h={parts:[]};n=_.B(n);for(u=n.next();!u.done;u=n.next())u=u.value,Q=omK(u.url),(Q=l.JSC$9367_resourceUrlPolicy(Q,b))&&h.parts.push({url:Q.toString(),descriptor:u.descriptor});GP(U,C,fUN(h))}else GP(U,C,h);break;case 7:b=h;if(l.JSC$9367_navigationUrlPolicy){b={type:2,attributeName:C,elementName:y};h=omK(h);h=l.JSC$9367_navigationUrlPolicy(h,b);if(h===null)break;b=h.toString()}h=b;b=_.hUs(h);b=b!==void 0&&lY8.indexOf(b.toLowerCase())!==-1?h:"about:invalid#zClosurez";GP(U,C,b)}}return U};
_.lUy=SD(function(){return new YSv(IYy)});
_.DGk=SD(function(){return new YSv(Hzy)});var UGg=function(){this.calledBuild=!1;this.JSC$9379_sanitizerTable=IYy},nm8=function(){UGg.apply(this,arguments)};
_.Z(nm8,UGg);nm8.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new YSv(this.JSC$9379_sanitizerTable,void 0,void 0,this.JSC$9379_resourceUrlPolicy,this.JSC$9379_navigationUrlPolicy)};var ya_=/[^#]*/;var KLo={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"},Aa1=_.ZR(function(){return p79()}),
Bek=function(){var l=WLy("IFRAME"),D={};
_.Ac(Aa1(),function(U){l.sandbox&&l.sandbox.supports&&l.sandbox.supports(U)&&(D[U]=!0)});
return D},WLy=function(l,D){D=D===void 0?document:D;
return D.createElement(String(l).toLowerCase())};var aR;_.tS=function(l,D,U){return Math.min(Math.max(l,D),U)};
aR=function(l,D,U){return l+U*(D-l)};_.zP=function(l,D){this.x=l!==void 0?l:0;this.y=D!==void 0?D:0};
_.W=_.zP.prototype;_.W.clone=function(){return new _.zP(this.x,this.y)};
_.W.equals=function(l){return l instanceof _.zP&&(this==l?!0:this&&l?this.x==l.x&&this.y==l.y:!1)};
_.W.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.W.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.W.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.W.translate=function(l,D){l instanceof _.zP?(this.x+=l.x,this.y+=l.y):(this.x+=Number(l),typeof D==="number"&&(this.y+=D));return this};
_.W.scale=function(l,D){this.x*=l;this.y*=typeof D==="number"?D:l;return this};_.Sr=function(l,D){this.width=l;this.height=D};
_.W=_.Sr.prototype;_.W.clone=function(){return new _.Sr(this.width,this.height)};
_.W.area=function(){return this.width*this.height};
_.W.aspectRatio=function(){return this.width/this.height};
_.W.isEmpty=function(){return!this.area()};
_.W.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.W.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.W.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.W.scale=function(l,D){this.width*=l;this.height*=typeof D==="number"?D:l;return this};var Cpz;_.we={};Cpz="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.we.add=function(l,D,U){if(l!==null&&D in l)throw Error("na`"+D);l[D]=U};
_.we.clear=function(l){for(var D in l)delete l[D]};
_.we.clone=function(l){var D={},U;for(U in l)D[U]=l[U];return D};
_.we.contains=function(l,D){return TeN(l,D)};
_.we.containsKey=function(l,D){return l!==null&&D in l};
_.we.containsValue=TeN;_.we.create=Yjo;_.we.createImmutableView=function(l){var D=l;Object.isFrozen&&!Object.isFrozen(l)&&(D=Object.create(l),Object.freeze(D));return D};
_.we.createSet=O2C;_.we.equals=function(l,D){for(var U in l)if(!(U in D)||l[U]!==D[U])return!1;for(var n in D)if(!(n in l))return!1;return!0};
_.we.every=function(l,D,U){for(var n in l)if(!D.call(U,l[n],n,l))return!1;return!0};
_.we.extend=function(l,D){for(var U,n,y=1;y<arguments.length;y++){n=arguments[y];for(U in n)l[U]=n[U];for(var A=0;A<Cpz.length;A++)U=Cpz[A],Object.prototype.hasOwnProperty.call(n,U)&&(l[U]=n[U])}};
_.we.filter=function(l,D,U){var n={},y;for(y in l)D.call(U,l[y],y,l)&&(n[y]=l[y]);return n};
_.we.findKey=IUc;_.we.findValue=function(l,D,U){return(D=IUc(l,D,U))&&l[D]};
_.we.forEach=function(l,D,U){for(var n in l)D.call(U,l[n],n,l)};
_.we.get=function(l,D,U){return l!==null&&D in l?l[D]:U};
_.we.getAllPropertyNames=function(l,D,U){if(!l)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return EmG(l);for(var n={};l&&(l!==Object.prototype||D)&&(l!==Function.prototype||U);){for(var y=Object.getOwnPropertyNames(l),A=0;A<y.length;A++)n[y[A]]=!0;l=Object.getPrototypeOf(l)}return EmG(n)};
_.we.getAnyKey=function(l){for(var D in l)return D};
_.we.getAnyValue=function(l){for(var D in l)return l[D]};
_.we.getCount=function(l){var D=0,U;for(U in l)D++;return D};
_.we.getKeys=EmG;_.we.getSuperClass=function(l){return(l=Object.getPrototypeOf(l.prototype))&&l.constructor};
_.we.getValueByKeys=function(l,D){var U=_.Ns(D),n=U?D:arguments;for(U=U?0:1;U<n.length;U++){if(l==null)return;l=l[n[U]]}return l};
_.we.getValues=function(l){var D=[],U=0,n;for(n in l)D[U++]=l[n];return D};
_.we.isEmpty=function(l){for(var D in l)return!1;return!0};
_.we.isImmutableView=function(l){return!!Object.isFrozen&&Object.isFrozen(l)};
_.we.map=function(l,D,U){var n={},y;for(y in l)n[y]=D.call(U,l[y],y,l);return n};
_.we.remove=function(l,D){var U;(U=D in l)&&delete l[D];return U};
_.we.set=function(l,D,U){l[D]=U};
_.we.setIfUndefined=function(l,D,U){return D in l?l[D]:l[D]=U};
_.we.setWithReturnValueIfNotSet=function(l,D,U){if(D in l)return l[D];U=U();return l[D]=U};
_.we.some=function(l,D,U){for(var n in l)if(D.call(U,l[n],n,l))return!0;return!1};
_.we.transpose=function(l){var D={},U;for(U in l)D[l[U]]=U;return D};
_.we.unsafeClone=H2l;var YG=function(l,D){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=l===sLN&&D||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=hhv};
YG.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Pp7=function(l){return l instanceof YG&&l.constructor===YG&&l.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===hhv?l.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},hhv={},sLN={};
new YG(sLN,"");var K2,ds,Xp,b2y,vmy,umm,f2,GPz,LL1,Jay,KT,qj8,trg,aUz,mG5,X7k,Sjh,kPy,dGm,hHB,KL5,p71,xG_,cam,tz;K2=function(l){return l?new tz(_.$m(l)):qch||(qch=new tz)};
_.HK=function(l,D){return typeof D==="string"?l.getElementById(D):D};
ds=function(l,D){return(D||document).getElementsByTagName(String(l))};
_.gm1=function(l){return b2y("yt-formatted-string","paper-input-input",l)};
Xp=function(l,D,U,n){l=n||l;return(D=D&&D!="*"?String(D).toUpperCase():"")||U?l.querySelectorAll(D+(U?"."+U:"")):l.getElementsByTagName("*")};
b2y=function(l,D,U){var n=document,y=l&&l!="*"?String(l).toUpperCase():"";return y||D?(U||n).querySelector(y+(D?"."+D:"")):Xp(n,l,D,U)[0]||null};
vmy=function(l,D){_.we.forEach(D,function(U,n){n=="style"?l.style.cssText=U:n=="class"?l.className=U:n=="for"?l.htmlFor=U:umm.hasOwnProperty(n)?l.setAttribute(umm[n],U):_.Ad(n,"aria-")||_.Ad(n,"data-")?l.setAttribute(n,U):l[n]=U})};
umm={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"};_.km=function(l){l=(l||window).document;l=l.compatMode=="CSS1Compat"?l.documentElement:l.body;return new _.Sr(l.clientWidth,l.clientHeight)};
_.QBy=function(l){var D=_.S8(l);l=l.defaultView;return new _.zP((l==null?void 0:l.pageXOffset)||D.scrollLeft,(l==null?void 0:l.pageYOffset)||D.scrollTop)};
_.S8=function(l){return l.scrollingElement?l.scrollingElement:_.Do||l.compatMode!="CSS1Compat"?l.body||l.documentElement:l.documentElement};
f2=function(l){return l?l.defaultView:window};
_.kh=function(l,D,U){return GPz(document,arguments)};
GPz=function(l,D){var U=D[1],n=Jay(l,String(D[0]));U&&(typeof U==="string"?n.className=U:Array.isArray(U)?n.className=U.join(" "):vmy(n,U));D.length>2&&LL1(l,n,D,2);return n};
LL1=function(l,D,U,n){function y(h){h&&D.appendChild(typeof h==="string"?l.createTextNode(h):h)}
for(;n<U.length;n++){var A=U[n];if(!_.Ns(A)||_.I_(A)&&A.nodeType>0)y(A);else{a:{if(A&&typeof A.length=="number"){if(_.I_(A)){var C=typeof A.item=="function"||typeof A.item=="string";break a}if(typeof A==="function"){C=typeof A.item=="function";break a}}C=!1}_.Ac(C?_.$9(A):A,y)}}};
_.SU=function(l){return Jay(document,l)};
Jay=function(l,D){D=String(D);l.contentType==="application/xhtml+xml"&&(D=D.toLowerCase());return l.createElement(D)};
_.dU=function(){return document.createTextNode("\n")};
KT=function(l){if(l.nodeType!=1)return!1;switch(l.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};
qj8=function(l,D){LL1(_.$m(l),l,arguments,1)};
_.cl=function(l){for(var D;D=l.firstChild;)l.removeChild(D)};
_.pT=function(l,D){D.parentNode&&D.parentNode.insertBefore(l,D)};
_.xh=function(l,D){D.parentNode&&D.parentNode.insertBefore(l,D.nextSibling)};
_.kT=function(l){return l&&l.parentNode?l.parentNode.removeChild(l):null};
_.Mrr=function(l,D){var U=D.parentNode;U&&U.replaceChild(l,D)};
_.Rhz=function(l){var D,U=l.parentNode;if(U&&U.nodeType!=11)if(l.removeNode)l.removeNode(!1);else{for(;D=l.firstChild;)U.insertBefore(D,l);_.kT(l)}};
_.j8=function(l){return l.children!=void 0?l.children:Array.prototype.filter.call(l.childNodes,function(D){return D.nodeType==1})};
_.ehr=function(l){return l.nextElementSibling!==void 0?l.nextElementSibling:_.Z27(l.nextSibling,!0)};
_.Z27=function(l,D){for(;l&&l.nodeType!=1;)l=D?l.nextSibling:l.previousSibling;return l};
_.PA=function(l){return _.I_(l)&&l.nodeType==1};
_.Vp=function(l,D){if(!l||!D)return!1;if(l.contains&&D.nodeType==1)return l==D||l.contains(D);if(typeof l.compareDocumentPosition!="undefined")return l==D||!!(l.compareDocumentPosition(D)&16);for(;D&&l!=D;)D=D.parentNode;return D==l};
trg=function(l,D){if(l==D)return 0;if(l.compareDocumentPosition)return l.compareDocumentPosition(D)&2?1:-1;if("sourceIndex"in l||l.parentNode&&"sourceIndex"in l.parentNode){var U=l.nodeType==1,n=D.nodeType==1;if(U&&n)return l.sourceIndex-D.sourceIndex;var y=l.parentNode,A=D.parentNode;return y==A?mG5(l,D):!U&&_.Vp(y,D)?-1*aUz(l,D):!n&&_.Vp(A,l)?aUz(D,l):(U?l.sourceIndex:y.sourceIndex)-(n?D.sourceIndex:A.sourceIndex)}n=_.$m(l);U=n.createRange();U.selectNode(l);U.collapse(!0);l=n.createRange();l.selectNode(D);
l.collapse(!0);return U.compareBoundaryPoints(_.nC.Range.START_TO_END,l)};
aUz=function(l,D){var U=l.parentNode;if(U==D)return-1;for(;D.parentNode!=U;)D=D.parentNode;return mG5(D,l)};
mG5=function(l,D){for(;D=D.previousSibling;)if(D==l)return-1;return 1};
X7k=function(l){var D,U=arguments.length;if(!U)return null;if(U==1)return arguments[0];var n=[],y=Infinity;for(D=0;D<U;D++){for(var A=[],C=arguments[D];C;)A.unshift(C),C=C.parentNode;n.push(A);y=Math.min(y,A.length)}A=null;for(D=0;D<y;D++){C=n[0][D];for(var h=1;h<U;h++)if(C!=n[h][D])return A;A=C}return A};
_.$m=function(l){return l.nodeType==9?l:l.ownerDocument||l.document};
Sjh=function(l){return l.contentDocument||l.contentWindow.document};
_.Fp=function(l,D){if("textContent"in l)l.textContent=D;else if(l.nodeType==3)l.data=String(D);else if(l.firstChild&&l.firstChild.nodeType==3){for(;l.lastChild!=l.firstChild;)l.removeChild(l.lastChild);l.firstChild.data=String(D)}else _.cl(l),l.appendChild(_.$m(l).createTextNode(String(D)))};
kPy={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};dGm={IMG:" ",BR:"\n"};hHB=function(l){var D;l.tagName=="A"&&l.hasAttribute("href")||l.tagName=="INPUT"||l.tagName=="TEXTAREA"||l.tagName=="SELECT"||l.tagName=="BUTTON"?D=!l.disabled&&(!l.hasAttribute("tabindex")||KL5(l)):D=l.hasAttribute("tabindex")&&KL5(l);return D};
KL5=function(l){l=l.tabIndex;return typeof l==="number"&&l>=0&&l<32768};
p71=function(l){var D=[];cam(l,D,!0);l=D.join("");l=l.replace(/ \xAD /g," ").replace(/\xAD/g,"");l=l.replace(/\u200B/g,"");l=l.replace(/ +/g," ");l!=" "&&(l=l.replace(/^\s*/,""));return l};
xG_=function(l){var D=[];cam(l,D,!1);return D.join("")};
cam=function(l,D,U){if(!(l.nodeName in kPy))if(l.nodeType==3)U?D.push(String(l.nodeValue).replace(/(\r\n|\r|\n)/g,"")):D.push(l.nodeValue);else if(l.nodeName in dGm)D.push(dGm[l.nodeName]);else for(l=l.firstChild;l;)cam(l,D,U),l=l.nextSibling};
_.jBy=function(l,D,U){if(!D&&!U)return null;var n=D?String(D).toUpperCase():null;return _.sj(l,function(y){return(!n||y.nodeName==n)&&(!U||typeof y.className==="string"&&_.rl(y.className.split(/\s+/),U))},!0)};
_.sj=function(l,D,U){l&&!U&&(l=l.parentNode);for(U=0;l;){if(D(l))return l;l=l.parentNode;U++}return null};
tz=function(l){this.JSC$9407_document_=l||_.nC.document||document};
_.W=tz.prototype;_.W.getElement=function(l){return _.HK(this.JSC$9407_document_,l)};
_.W.$=tz.prototype.getElement;_.W.getElementsByTagName=function(l,D){return(D||this.JSC$9407_document_).getElementsByTagName(String(l))};
_.W.getElementsByTagNameAndClass=function(l,D,U){return Xp(this.JSC$9407_document_,l,D,U)};
_.W.$$=tz.prototype.getElementsByTagNameAndClass;_.W.setProperties=vmy;_.W.JSC$9409_createDom=function(l,D,U){return GPz(this.JSC$9407_document_,arguments)};
_.W.createElement=function(l){return Jay(this.JSC$9407_document_,l)};
_.W.createTextNode=function(l){return this.JSC$9407_document_.createTextNode(String(l))};
_.W.getWindow=function(){return this.JSC$9407_document_.defaultView};
var de=function(l){return _.QBy(l.JSC$9407_document_)};
_.W=tz.prototype;_.W.appendChild=function(l,D){l.appendChild(D)};
_.W.append=qj8;_.W.canHaveChildren=KT;_.W.removeNode=_.kT;_.W.getChildren=_.j8;_.W.contains=_.Vp;_.W.isFocusable=hHB;_.W=MG.prototype;_.W.getWidth=function(){return this.right-this.left};
_.W.getHeight=function(){return this.bottom-this.top};
_.W.clone=function(){return new MG(this.top,this.right,this.bottom,this.left)};
_.W.contains=function(l){return this&&l?l instanceof MG?l.left>=this.left&&l.right<=this.right&&l.top>=this.top&&l.bottom<=this.bottom:l.x>=this.left&&l.x<=this.right&&l.y>=this.top&&l.y<=this.bottom:!1};
_.W.expand=function(l,D,U,n){_.I_(l)?(this.top-=l.top,this.right+=l.right,this.bottom+=l.bottom,this.left-=l.left):(this.top-=l,this.right+=Number(D),this.bottom+=Number(U),this.left-=Number(n));return this};
_.W.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};
_.W.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};
_.W.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};
_.W.translate=function(l,D){l instanceof _.zP?(this.left+=l.x,this.right+=l.x,this.top+=l.y,this.bottom+=l.y):(this.left+=l,this.right+=l,typeof D==="number"&&(this.top+=D,this.bottom+=D));return this};
_.W.scale=function(l,D){D=typeof D==="number"?D:l;this.left*=l;this.right*=l;this.top*=D;this.bottom*=D;return this};var oR=function(l,D,U,n){this.left=l;this.top=D;this.width=U;this.height=n};
_.W=oR.prototype;_.W.clone=function(){return new oR(this.left,this.top,this.width,this.height)};
_.W.boundingRect=function(l){var D=Math.max(this.left+this.width,l.left+l.width),U=Math.max(this.top+this.height,l.top+l.height);this.left=Math.min(this.left,l.left);this.top=Math.min(this.top,l.top);this.width=D-this.left;this.height=U-this.top};
_.W.contains=function(l){return l instanceof _.zP?l.x>=this.left&&l.x<=this.left+this.width&&l.y>=this.top&&l.y<=this.top+this.height:this.left<=l.left&&this.left+this.width>=l.left+l.width&&this.top<=l.top&&this.top+this.height>=l.top+l.height};
_.W.distance=function(l){var D=l.x<this.left?this.left-l.x:Math.max(l.x-(this.left+this.width),0);l=l.y<this.top?this.top-l.y:Math.max(l.y-(this.top+this.height),0);return Math.sqrt(D*D+l*l)};
_.W.getSize=function(){return new _.Sr(this.width,this.height)};
_.W.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};
_.W.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};
_.W.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};
_.W.translate=function(l,D){l instanceof _.zP?(this.left+=l.x,this.top+=l.y):(this.left+=l,typeof D==="number"&&(this.top+=D));return this};
_.W.scale=function(l,D){D=typeof D==="number"?D:l;this.left*=l;this.width*=l;this.top*=D;this.height*=D;return this};var omz,z5,ZyB,rU,fUv,zhy,$G7,vhN,Ne1,EmH;_.wU=function(l,D,U){if(typeof D==="string")(D=_.FLh(l,D))&&(l.style[D]=U);else for(var n in D){U=l;var y=D[n],A=_.FLh(U,n);A&&(U.style[A]=y)}};
omz={};_.FLh=function(l,D){var U=omz[D];if(!U){var n=_.h6(D);U=n;l.style[n]===void 0&&(n=(_.Do?"Webkit":_.lB?"Moz":null)+hUr(n),l.style[n]!==void 0&&(U=n));omz[D]=U}return U};
_.Ur=function(l,D){var U=_.$m(l);return U.defaultView&&U.defaultView.getComputedStyle&&(l=U.defaultView.getComputedStyle(l,null))?l[D]||l.getPropertyValue(D)||"":""};
_.Od=function(l,D){return _.Ur(l,D)||(l.currentStyle?l.currentStyle[D]:null)||l.style&&l.style[D]};
_.w7y=function(l){return _.Od(l,"position")};
z5=function(l,D,U){if(D instanceof _.zP){var n=D.x;D=D.y}else n=D,D=U;l.style.left=rU(n,!1);l.style.top=rU(D,!1)};
ZyB=function(l){try{return l.getBoundingClientRect()}catch(D){return{left:0,top:0,right:0,bottom:0}}};
_.NG=function(l){var D=_.$m(l),U=new _.zP(0,0);if(l==(D?_.$m(D):document).documentElement)return U;l=ZyB(l);D=de(K2(D));U.x=l.left+D.x;U.y=l.top+D.y;return U};
_.rah=function(l,D,U){if(D instanceof _.Sr)U=D.height,D=D.width;else if(U==void 0)throw Error("oa");l.style.width=rU(D,!0);l.style.height=rU(U,!0)};
rU=function(l,D){typeof l=="number"&&(l=(D?Math.round(l):l)+"px");return l};
fUv=function(l){return zhy(l)};
zhy=function(l){var D=$G7;if(_.Od(l,"display")!="none")return D(l);var U=l.style,n=U.display,y=U.visibility,A=U.position;U.visibility="hidden";U.position="absolute";U.display="inline";l=D(l);U.display=n;U.position=A;U.visibility=y;return l};
$G7=function(l){var D=l.offsetWidth,U=l.offsetHeight,n=_.Do&&!D&&!U;return(D===void 0||n)&&l.getBoundingClientRect?(l=ZyB(l),new _.Sr(l.right-l.left,l.bottom-l.top)):new _.Sr(D,U)};
vhN=function(l){var D=_.NG(l);l=zhy(l);return new oR(D.x,D.y,l.width,l.height)};
Ne1=function(l,D){l=l.style;"opacity"in l?l.opacity=D:"MozOpacity"in l?l.MozOpacity=D:"filter"in l&&(l.filter=D===""?"":"alpha(opacity="+Number(D)*100+")")};
_.Aq=function(l,D){l.style.display=D?"":"none"};
_.sBH=function(l){return"rtl"==_.Od(l,"direction")};
EmH=function(l){var D=_.Ur(l,"marginLeft"),U=_.Ur(l,"marginRight"),n=_.Ur(l,"marginTop");l=_.Ur(l,"marginBottom");return new MG(parseFloat(n),parseFloat(U),parseFloat(l),parseFloat(D))};
_.Tev=function(l){var D=_.Ur(l,"borderLeftWidth"),U=_.Ur(l,"borderRightWidth"),n=_.Ur(l,"borderTopWidth");l=_.Ur(l,"borderBottomWidth");return new MG(parseFloat(n),parseFloat(U),parseFloat(l),parseFloat(D))};var fT=function(l){this.context=l};
fT.prototype.isSupported=function(l){return(l==null?0:l.attributionEnabled)||(l==null?void 0:l.beaconMethod)==="POST"||(l==null?0:l.customHeaders)||(l==null?0:l.customBody)||(l==null?0:l.keepAlive)?!1:!qU(this.context)};
fT.prototype.ping=function(){var l=this;return pz(_.EW.apply(0,arguments).map(function(D){try{var U=l.context.global,n=!1;n=n===void 0?!1:n;U.google_image_requests||(U.google_image_requests=[]);var y=WLy("IMG",U.document);n&&(y.attributionSrc="");y.src=D;U.google_image_requests.push(y);return!0}catch(A){return!1}}).every(function(D){return D}))};
fT.prototype.pingWithHeadersAndBody=function(l,D,U){this.ping.apply(this,_.zz(_.EW.apply(3,arguments)))};var IU7=function(l){this.context=l};
IU7.prototype.isSupported=function(l){return H2y&&!qU(this.context)&&VrB(this.context)!==void 0&&!(l==null?0:l.attributionEnabled)&&(l==null?void 0:l.beaconMethod)!=="POST"&&!(l==null?0:l.customHeaders)&&!(l==null?0:l.customBody)};
IU7.prototype.makeBeacon=function(l,D){if(!this.isSupported(D))throw new QG;return new $h(this.context,l)};
var H2y=!1,$h=function(l,D){this.context=l;this.JSC$9428_urlWithoutToken=D;l=VrB(this.context);if(l===void 0)throw Error();this.wrappedBeacon=new l(Yj5(this),{})},Yj5=function(l){l=l.JSC$9428_urlWithoutToken;
return(l.slice(-1)[0]==="&"?l:l+"&")+"pbapi=1"};
$h.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
$h.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
$h.prototype.setHeader=function(){};
_.QP.Object.defineProperties($h.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9428_urlWithoutToken},
set:function(l){this.JSC$9428_urlWithoutToken=l;this.wrappedBeacon.setURL(Yj5(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(l){if(l!=="GET")throw new QG;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var O2m=function(l){this.context=l};
O2m.prototype.isSupported=function(l){if((l==null?0:l.attributionEnabled)||(l==null?void 0:l.beaconMethod)==="GET"||(l==null?0:l.customHeaders)||(l==null?0:l.customBody)||(l==null?0:l.keepAlive))return!1;var D;return!qU(this.context)&&((D=this.context.global.navigator)==null?void 0:D.sendBeacon)!==void 0};
O2m.prototype.ping=function(){var l=this;return pz(_.EW.apply(0,arguments).map(function(D){var U;return(U=l.context.global.navigator)==null?void 0:U.sendBeacon(D)}).every(function(D){return D}))};
O2m.prototype.pingWithHeadersAndBody=function(l,D,U){this.ping.apply(this,_.zz(_.EW.apply(3,arguments)))};var aB=function(l){this.value=l},Ud=function(l,D){return pz(l.value).pipe(er(D))},yp=new aB(!1),x13=new aB(!0);var Ej=function(l){this.value=l;this.releasedSubject=new RB};
Ej.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.QP.Object.defineProperties(Ej.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9441_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var bw_=["FRAME","IMG","IFRAME"],AAB=/^[01](px)?$/,POC=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},h3g=function(){var l=new POC;
l.crossDomainLoadedDefault=!0;l.pendingImagesBlockLoad=!0;return l};var Vrk=function(l,D){var U=L7d(l);if(U)if(U.onCreativeLoad)U.onCreativeLoad(D);else{var n=D?[D]:[],y=function(A){for(var C=0;C<n.length;++C)try{n[C](1,A)}catch(h){}n={push:function(h){h(1,A)}}};
U.onCreativeLoad=function(A){n.push(A)};
U.setAttribute("data-creative-load-listener","");U.addEventListener("creativeLoad",function(A){y(A.detail)});
_.nC.addEventListener("message",function(A){JAc(U,y,A)})}};var NU=function(l,D){var U=this;this.global=l;this.parentContext=D;this.JSC$9452_onVisibilityChange=this.document?IV(pz(!0),ES(this.document,"visibilitychange")).pipe(Vr(this.parentContext.performanceMonitor,748),wE(function(){return U.getVisibilityState()}),yK()):pz("visible");
this.document?ES(this.document,"DOMContentLoaded").pipe(Vr(this.parentContext.performanceMonitor,739),n2(1)):pz(nTc("DOMContentLoaded"))},p3K=function(l){return l.document!==null&&l.document.visibilityState!==void 0};
NU.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
NU.prototype.querySelector=function(l){return this.document?this.document.querySelector(l):null};
NU.prototype.querySelectorAll=function(l){return this.document?_.$9(this.document.querySelectorAll(l)):[]};
NU.prototype.elementFromPoint=function(l,D){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;l=this.document.elementFromPoint(l,D);return l===null?null:new Ej(l)};
var ZkN=function(l,D,U){U=U===void 0?!1:U;if(D.ref===void 0||!l.document)return pz(D).pipe(Vr(l.parentContext.performanceMonitor,749));var n=new C2(1),y=function(){n.next(D)};
U||Vrk(D.ref,y);gT_(D.ref,y);return n.pipe(Vr(l.parentContext.performanceMonitor,749),n2(1))};
_.QP.Object.defineProperties(NU.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return xGg(this.global,"document")?this.global.document||null:null}}});var qd_=_.wL(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),MUs=_.wL(["./reach_worklet.js"]),R3N=_.wL(["./reach_worklet.js"]),iwk=_.wL(["./reach_worklet.html"]),ly1=_.wL(["./reach_worklet.js"]),Dxk=_.wL(["./reach_worklet.js"]);_.Ja(iwk);_.Ja(ly1);_.Ja(Dxk);var Oj={left:0,top:0,width:0,height:0};var Ux_,nT7,yA7,AAk,ul,Bsm,CO_,h3_,NF3,sQK,gTg,ut1;Ux_=function(l,D,U,n,y,A,C){var h="";l&&(h+=l+":");U&&(h+="//",D&&(h+=D+"@"),h+=U,n&&(h+=":"+n));y&&(h+=y);A&&(h+="?"+A);C&&(h+="#"+C);return h};
nT7=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.PS=function(l){return l.match(nT7)};
_.q9=function(l,D){return l?D?decodeURI(l):decodeURIComponent(l):l};
yA7=function(l){l=_.PS(l)[1]||null;!l&&_.nC.self&&_.nC.self.location&&(l=_.nC.self.location.protocol.slice(0,-1));return l?l.toLowerCase():""};
_.bl=function(l){return _.q9(_.PS(l)[3]||null,!0)};
_.kZ=function(l){return _.q9(_.PS(l)[5]||null,!0)};
_.gr_=function(l){var D=l.indexOf("#");return D<0?null:l.slice(D+1)};
AAk=function(l){l=_.PS(l);return Ux_(l[1],l[2],l[3],l[4])};
_.W7h=function(l){l=_.PS(l);return Ux_(l[1],null,l[3],l[4])};
_.jG=function(l){l=_.PS(l);return Ux_(null,null,null,null,l[5],l[6],l[7])};
_.NA=function(l){var D=l.indexOf("#");return D<0?l:l.slice(0,D)};
ul=function(l,D){l=_.PS(l);D=_.PS(D);return l[3]==D[3]&&l[1]==D[1]&&l[4]==D[4]};
Bsm=function(l,D){if(l){l=l.split("&");for(var U=0;U<l.length;U++){var n=l[U].indexOf("="),y=null;if(n>=0){var A=l[U].substring(0,n);y=l[U].substring(n+1)}else A=l[U];D(A,y?Qy(y):"")}}};
CO_=function(l){var D=l.indexOf("#");D<0&&(D=l.length);var U=l.indexOf("?");if(U<0||U>D){U=D;var n=""}else n=l.substring(U+1,D);return[l.slice(0,U),n,l.slice(D)]};
h3_=function(l,D){return D?l?l+"&"+D:D:l};
_.POm=function(l,D){if(!D)return l;l=CO_(l);l[1]=h3_(l[1],D);return l[0]+(l[1]?"?"+l[1]:"")+l[2]};
_.bwg=function(l,D,U){if(Array.isArray(D))for(var n=0;n<D.length;n++)_.bwg(l,String(D[n]),U);else D!=null&&U.push(l+(D===""?"":"="+_.yy(D)))};
_.Kt=function(l){var D=[],U;for(U in l)_.bwg(U,l[U],D);return D.join("&")};
_.hc=function(l,D){D=_.Kt(D);return _.POm(l,D)};
_.sF=function(l,D,U){U=U!=null?"="+_.yy(U):"";return _.POm(l,D+U)};
NF3=function(l,D,U,n){for(var y=U.length;(D=l.indexOf(U,D))>=0&&D<n;){var A=l.charCodeAt(D-1);if(A==38||A==63)if(A=l.charCodeAt(D+y),!A||A==61||A==38||A==35)return D;D+=y+1}return-1};
sQK=/#|$/;_.ih=function(l,D){var U=l.search(sQK),n=NF3(l,0,D,U);if(n<0)return null;var y=l.indexOf("&",n);if(y<0||y>U)y=U;n+=D.length+1;return Qy(l.slice(n,y!==-1?y:0))};
gTg=/[?&]($|#)/;_.E9=function(l,D){for(var U=l.search(sQK),n=0,y,A=[];(y=NF3(l,n,D,U))>=0;)A.push(l.substring(n,y)),n=Math.min(l.indexOf("&",y)+1||U,U);A.push(l.slice(n));return A.join("").replace(gTg,"$1")};
_.VX=function(l,D,U){return _.sF(_.E9(l,D),D,U)};
ut1=function(l){var D=CO_(window.location.href),U=D[1],n=[];U&&U.split("&").forEach(function(y){var A=y.indexOf("=");A=A>=0?y.slice(0,A):y;l.hasOwnProperty(A)||n.push(y)});
D[1]=h3_(n.join("&"),_.Kt(l));return D[0]+(D[1]?"?"+D[1]:"")+D[2]};var fy3=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(fy3,_.Bh);var z3C=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(z3C,_.Bh);var xxg=function(l,D){return _.c7(l,2,D)},rAN=function(l,D){return _.c7(l,3,D)};
z3C.prototype.getModel=function(){return _.Zo(this,4)};
var F7s=function(l,D){return _.c7(l,4,D)},pE_=function(l,D){return _.c7(l,5,D)},wEK=function(l,D){return _.c7(l,9,D)},cA3=function(l,D){return Gl(l,10,D)},K7s=function(l,D){return _.qx(l,11,D)},jjG=function(l,D){return _.c7(l,1,D)},oTg=function(l,D){return _.qx(l,7,D)};var kCG="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var nw=function(l,D,U,n){l=l===void 0?window:l;D=D===void 0?null:D;U=U===void 0?new kqz:U;n=n===void 0?ZwN():n;mq1.call(this);var y=this;this.global=l;this.debugChannel=D;this.performanceMonitor=U;this.onPageHide=yag(function(){return ES(y.global,"pagehide")}).pipe(Vr(this.performanceMonitor,941));
this.onLoad=yag(function(){return ES(y.global,"load")}).pipe(Vr(this.performanceMonitor,738),n2(1));
this.onResize=yag(function(){return ES(y.global,"resize")}).pipe(Vr(this.performanceMonitor,741));
this.onMessage=yag(function(){return ES(y.global,"message")}).pipe(Vr(this.performanceMonitor,740));
this.document=new NU(this.global,this);this.timeProvider=new dqm(new cv8(this.intrinsicFunctionNamespace,this.performanceMonitor),new K68(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new XY8(new xqy(this),new IU7(this),new G5(this,new oF5(this)),new G5(this,new O2m(this)),new G5(this,new fT(this)))};
_.Z(nw,mq1);nw.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(l){return l}};
var qU=function(l){var D=l.global;return!!l.global.HTMLFencedFrameElement&&!!D.fence&&typeof D.fence.reportEvent==="function"};
_.W=nw.prototype;_.W.reportFencedFrameEvent=function(l){qU(this)&&this.global.fence.reportEvent(l)};
_.W.getOnBackgrounded=function(){return this.onPageHide.pipe(Vr(this.performanceMonitor,942),er(this.queue),wE(function(){}))};
_.W.postMessage=function(l,D,U){U=U===void 0?[]:U;this.global.postMessage(l,D,U)};
_.W.getWidth=function(){return jBd(this.global)?this.global.width:0};
_.W.getHeight=function(){return jBd(this.global)?this.global.height:0};
_.W.isMobile=function(){return zU8()||fY8()};
var IB=function(l,D){try{var U=tU$(D,l.global,l.isMobile());return{left:U.left,top:U.top,width:U.getWidth(),height:U.getHeight()}}catch(n){return Oj}};
nw.prototype.validate=function(){var l=this.beaconFactory.isSupported()||qU(this);return this.global&&this.timeProvider.available()&&l};
var ly9=function(l){return(l=NsN(l.global))?RV(l):null};
_.QP.Object.defineProperties(nw.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(l){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(l){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!jBd(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}}});_.vT5=!_.iB&&!_.JdN();var jNg=function(l){return l};var og9=function(l){return l.pipe(HY(function(D){var U=D.endOfSessionReason;var n;return((n=D.viewable)==null?void 0:n.extrapolateToNow().value)||U!=void 0}),n2(1),DU())};var Owl=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},VUB=function(l){var D=l.sequenceNumber.toString(10).padStart(2,"0");
D=""+l.startTime+D;l.sequenceNumber<99&&l.sequenceNumber++;return D};var cf_=Jv(up(function(l){return l.endOfSessionReason===void 0}),wE(function(l){return Object.assign({},l,{timestamps:xm(l)})}),HY(function(l){var D=l.viewable;
l=l.timestamps;var U;return(U=D==null?void 0:D.extrapolateUsingTimestampMap(l).value)!=null?U:!1}),wE(function(l){var D=l.beaconFactory;
var U=l.timestampedExposureHistory;var n=l.timeOnScreen;var y=l.binaryContext;l=l.timestamps;if(D===void 0||U===void 0||n===void 0||y===void 0)return!1;if(n.extrapolateUsingTimestampMap(l).value.every(function(A){return A>=0}))return!0;
U=U.map(function(A){return A.timestamp+":"+A.value}).join(",");
n=iys({bin:y,tos:n},l);D.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+n+("&eh="+U)).sendNow();return!0}),up(function(l){return!l}),DU());var DVs=function(l){return{id:l.pingId,mcvt:l.maxConsecutiveViewTime,p:l.creativePosition,asp:l.adSpeedPosition,tm:l.totalMeasurementTime,tu:l.totalUnviewedTime,mtos:l.maxTimeOnScreen,tos:l.timeOnScreen,v:l.binaryVersion,bin:l.binaryContext,avms:l.measurementStrategy,bs:l.browserSize,mc:l.maximumExposure,"if":l.crossDomainIframeState,vu:l.delayedImpressionJsState,app:l.inApp,mse:l.mraidError,mtop:l.mraidSituation,itpl:l.injectedTemplateId,adk:l.adKey,exk:l.awbidKey,rs:l.requestSource,la:l.isLargeAd,
cr:l.isContentRecommendationAd,uach:l.userAgentClientHints,vs:l.viewState,r:l.reasonCode,pay:l.hasCpmavUrl,co:l.clientPingOrderCounter,rst:l.adRenderStartTime,rpt:l.adRenderPeriodTime,isd:l.initialScrollDepth,lsd:l.loadedScrollDepth,context:l.errorContext,msg:l.errorMessage,stack:l.errorStack,name:l.errorName,ec:l.hasElementChanged,sfr:l.strategyFailureReasons,met:l.creativeSearchResult,wmsd:l.webMeasurementStartDiagnostic,pv:l.pageVisible,epv:l.eosPageVisible,pbe:l.inStatefulBeaconExperiment,fle:l.inFetchLaterBeaconExperiment,
vae:l.inViewableAttributionExperiment,spb:l.supportsPendingBeacon,sfl:l.supportsFetchLater,ffslot:l.isFencedFrameSlotTurtlex,reach:l.sharedStorageReachMode,io2:l.v2VisibilityBitVector,rxdbg:l.rxDebugger,omida:l.omidAppId,omidp:l.omidPartner,omidpv:l.omidPartnerVersion,omidor:l.omidOcclusionReasons,omidv:l.omidVersion,omids:l.omidSessionType,omidam:l.omidAccessMode,omidct:l.omidCreativeType,omidia:l.omidInApp,omiddc:l.omidDeviceCategory,omidlat:l.omidLastActivity,omiddit:l.omidDeviceIdleTime,qid:l.errorEscapedQueryId}};var FvG=function(l){var D=[];return l.pipe(wE(function(U){var n=U.beaconFactory,y=U.fetchBeaconFactory,A=U.timeOnScreen,C=U.timeOnScreenUrlPrefixes,h=U.payloadMapper,b=U.timeOnScreenPingId,u=U.timeOnScreenReason,Q=U.urlSerializer,G=U.viewable,J=U.hasImpressionFired,L=U.inStatefulBeaconExperiment,R=U.supportsPendingBeacon,a=U.supportsFetchLater,S=U.turtlexReportEventData;if(!U.geometryMeasurable||!J||U.maxTimeOnScreen===void 0||A===void 0||C===void 0||h===void 0||b===void 0||Q===void 0||n===void 0)return!1;
if(U.isTurtlex){if(u===void 0)return!1;C=U.reportFencedFrameEvent;if(!C)return!1;C({eventType:"active-view-time-on-screen",eventData:S!=null?S:"",destination:["buyer"]});return!0}if(!(L||a||u))return!1;S=xm(U);var d;G=(d=G==null?void 0:G.extrapolateUsingTimestampMap(S).value)!=null?d:!1;d=Q(Object.assign({},U,{pingId:b,viewState:G?4:3,reasonCode:u!=null?u:"u",payloadMapper:h,urlPrefixes:C}),S);if(L){for(;D.length>C.length;)U=void 0,(U=D.shift())==null||U.deactivate();d.forEach(function(N,z){z>=D.length?
D.push(n.makeBeacon(N)):D[z].url=N});
return R&&y&&u!==void 0?(d.forEach(function(N){y.makeBeacon(N).sendNow()}),!0):u!==void 0}if(R&&y&&u!==void 0)return d.forEach(function(N){y.makeBeacon(N).sendNow()}),!0;
if(a&&y){for(;D.length>C.length;)R=void 0,(R=D.shift())==null||R.deactivate();var c=Q(Object.assign({},U,{pingId:b,viewState:G?4:3,reasonCode:u!=null?u:"u",payloadMapper:h,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),S)[0];d.forEach(function(N,z){z>=D.length?D.push(n.makeBeacon(c,{endOfSession:!0})):D[z].url=c});
return u!==void 0?(d.forEach(function(N){y.makeBeacon(N).sendNow()}),!0):u!==void 0}return u!==void 0?(d.forEach(function(N){n.makeBeacon(N).sendNow()}),!0):!1}),up(function(U){return!U}),DU())};var w3s=Jv(HY(function(l){return l.immediateUrlPrefixes!==void 0&&l.payloadMapper!==void 0&&l.urlSerializer!==void 0&&l.inferredPingId!==void 0&&l.beaconFactory!==void 0}),HY(function(l){return hyd(l)!==null}),BMo(function(l){return l.activeViewUnmeasurableEvent},function(l){return l.emit}),wE(function(l){if(l.isTurtlex){var D=l.reportFencedFrameEvent;
if(D){var U;D({eventType:"active-view-unmeasurable",eventData:(U=l.turtlexReportEventData)!=null?U:"",destination:["buyer"]})}}else{U=void 0;var n=hyd(l);if(n==="x"){var y,A=(y=l.geometricMeasurementErrors)!=null?y:l.contextValidationErrors;A&&(D=A.stack,U=A.message)}l.urlSerializer(Object.assign({},l,{urlPrefixes:l.immediateUrlPrefixes,payloadMapper:l.payloadMapper,pingId:l.inferredPingId,viewState:2,reasonCode:n,errorMessage:U,errorStack:D}),xm(l)).forEach(function(C){l.beaconFactory.makeBeacon(C).sendNow()})}}),
n2(1),DU());var Phg=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var KvG=Jv(HY(function(l){return l.payloadMapper!==void 0&&l.immediateUrlPrefixes!==void 0&&l.urlSerializer!==void 0&&l.inferredPingId!==void 0&&l.beaconFactory!==void 0}),wE(function(l){return Object.assign({},l,{timestamps:xm(l)})}),HY(function(l){var D=l.viewable;
var U=l.hasImpressionFired;l=l.timestamps;var n;return!!U&&((n=D==null?void 0:D.extrapolateUsingTimestampMap(l).value)!=null?n:!1)}),BMo(function(l){return l.activeViewViewableEvent},function(l){return l.emit}),wE(function(l){var D=l.beaconFactory,U=l.turtlexReportEventData;
if(l.isTurtlex){var n=l.reportFencedFrameEvent;if(!n)return!1;n({eventType:"active-view-viewable",eventData:U!=null?U:"",destination:["buyer"]});return!0}U=l.urlSerializer(Object.assign({},l,{urlPrefixes:l.immediateUrlPrefixes,payloadMapper:l.payloadMapper,pingId:l.inferredPingId,viewState:4,reasonCode:"v"}),l.timestamps);(n=l.cpmavUrls)&&n.length>0&&l.viewUrlSerializer&&l.viewUrlSerializer(n,l).forEach(function(y){D.makeBeacon(y).sendNow()});
(n=l.viewableRelayUrls)&&n.length>0&&l.viewUrlSerializer&&l.viewUrlSerializer(n,l).forEach(function(y){D.makeBeacon(y).sendNow()});
U.forEach(function(y){D.makeBeacon(y,{attributionEnabled:l.isViewableAttributionEnabled}).sendNow()});
return!0}),up(function(l){return!l}),DU());var D1C=wE(function(l){return[l.value.topWindowViewportExternalGeometry.width,l.value.topWindowViewportExternalGeometry.height]});var H7=function(l,D){this.callback=l;this.options=D;this.intersectionObserverV2=this.intersectionObserverV1=null},FUg=function(l,D){D?l.intersectionObserverV2||(D=Object.assign({},l.options,{delay:100,
trackVisibility:!0}),l.intersectionObserverV2=new IntersectionObserver(l.callback,D)):l.intersectionObserverV1||(l.intersectionObserverV1=new IntersectionObserver(l.callback,l.options))},Qj5=function(l,D){l=D?l.intersectionObserverV2:l.intersectionObserverV1;
if(!l)throw new aYH;return l};
H7.prototype.observe=function(l,D){Qj5(this,l).observe(D)};
H7.prototype.unobserve=function(l,D){Qj5(this,l).unobserve(D)};
H7.prototype.disconnect=function(l){Qj5(this,l).disconnect()};
H7.prototype.takeRecords=function(l){return Qj5(this,l).takeRecords()};var mVB={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Oj,topWindowViewportExternalGeometry:Oj,measurementRequests:new RB,elementGeometrySourceName:"ns",elementGeometry:Oj,intersectionGeometry:Oj,viewportLocalAppOffset:{x:0,y:0}};var NM3=VK(Jv(wE(function(l){var D;return(D=l.exposureOverride)!=null?D:w_K(l)}),wE(function(l){return isFinite(l)?l:0}))),Oyo=VK(Jv(wE(function(l){var D;
return(D=l.exposureOverride)!=null?D:w_K(l)}),wE(function(l){return isFinite(l)?l:-1})));var EF=function(l,D){this.a=l;this.b=D;if(l.clock.timeline!==D.clock.timeline)throw Error();};
EF.prototype.equivalentTo=function(l){return l instanceof EF?this.a.equivalentTo(l.a)&&this.b.equivalentTo(l.b):!1};
EF.prototype.extrapolateToTime=function(l){var D=this.a.extrapolateToTime(l).value,U=this.b.extrapolateToTime(l).value;return{timestamp:l,value:[D,U]}};
_.QP.Object.defineProperties(EF.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 l=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),D=this.a.lastMeasurement.timestamp.equals(l)?this.a.lastMeasurement.value:this.a.extrapolateToTime(l).value,U=this.b.lastMeasurement.timestamp.equals(l)?this.b.lastMeasurement.value:this.b.extrapolateToTime(l).value;return{timestamp:l,value:[D,U]}}}});var T5=function(l,D){this.input=l;this.mapFunction=D;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
T5.prototype.equivalentTo=function(l){return l instanceof T5?this.input.equivalentTo(l.input)&&this.mapFunction===l.mapFunction:!1};
T5.prototype.extrapolateToTime=function(l){l=this.input.extrapolateToTime(l);return{timestamp:l.timestamp,value:this.mapFunction(l.value)}};
_.QP.Object.defineProperties(T5.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var IR=function(){};
IR.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
IR.prototype.extrapolateUsingTimestampMap=function(l){var D=this.clock.timeline,U,n=(U=l.get(D))!=null?U:this.clock.now();l.set(D,n);return this.extrapolateToTime(n)};
IR.prototype.map=function(l){return new GC1(this,l)};
IR.prototype.joinWith=function(l){return new JA7(this,l)};
var JA7=function(){EF.apply(this,arguments);this.map=IR.prototype.map;this.joinWith=IR.prototype.joinWith;this.extrapolateToNow=IR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=IR.prototype.extrapolateUsingTimestampMap};
_.Z(JA7,EF);var GC1=function(){T5.apply(this,arguments);this.map=IR.prototype.map;this.joinWith=IR.prototype.joinWith;this.extrapolateToNow=IR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=IR.prototype.extrapolateUsingTimestampMap};
_.Z(GC1,T5);var lO=function(l,D){this.lastMeasurement=D;this.extrapolateToNow=IR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=IR.prototype.extrapolateUsingTimestampMap;this.map=IR.prototype.map;this.joinWith=IR.prototype.joinWith;this.clock=l};
lO.prototype.equivalentTo=function(l){return l.active};
lO.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.QP.Object.defineProperties(lO.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var lQ$=wE(function(l){if(l.value.viewportGeometrySourceName==="omid"){if(l.value.elementGeometrySourceName==="nio")return"omio";if(l.value.elementGeometrySourceName==="geo")return"omgeo"}return l.value.elementGeometrySourceName==="geo"||l.value.elementGeometrySourceName==="nio"?l.value.viewportGeometrySourceName:l.value.elementGeometrySourceName});var zy9=Jv(HY(function(l){return!isNaN(l)}),P7(function(l,D){return isNaN(l)?D:Math.min(l,D)},NaN),yK());var sws=VK(Jv(wE(function(l){return l.intersectionGeometry.width*l.intersectionGeometry.height/(l.exposedViewportLocalGeometry.width*l.exposedViewportLocalGeometry.height)}),wE(function(l){return isFinite(l)?Math.min(1,l):0})));var iko=Jv(VK(wE(function(l){l=l.exposureOverride?l.elementGeometry.width*l.elementGeometry.height*l.exposureOverride/(l.topWindowViewportExternalGeometry.width*l.topWindowViewportExternalGeometry.height):l.intersectionGeometry.width*l.intersectionGeometry.height/(l.topWindowViewportExternalGeometry.width*l.topWindowViewportExternalGeometry.height);return isFinite(l)?l:0})));var yfC=function(l,D){var U=this;this.timeProvider=l;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=D.pipe(yK()).subscribe(function(n){Wvl(U);U.measurementRequestObserver=n})},Bts=function(l,D){Wvl(l);
l.lastMeasurementRequest=l.timeProvider.setTimeout(function(){var U;return void((U=l.measurementRequestObserver)==null?void 0:U.next())},D)},Wvl=function(l){l.lastMeasurementRequest!==null&&l.timeProvider.clearTimeout(l.lastMeasurementRequest);
l.lastMeasurementRequest=null};
yfC.prototype.dispose=function(){Wvl(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var L7y=function(){};var SZc=function(l,D){this.context=l;this.strategies=D};
_.Z(SZc,L7y);SZc.prototype.buildGeometrySource=function(l,D){var U=this.strategies.map(function(A){return A.buildGeometrySource(l,D)}),n=gg9(U.map(function(A){return A.geometrySource})),y=n.capturedErrors.pipe(qdg());
return{geometrySource:n.chain.pipe(er(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:y,strategyErrors:n.capturedErrors}].concat(_.zz(U.map(function(A){return A.additionalOutputs}))))}};
var qdg=function(){return P7(function(l,D){D instanceof Fm?l.push(D.measurementStrategyFailureReason):l.push(-1);return l},[])};var d19=function(l,D){this.context=l;this.poller=D};
_.Z(d19,L7y);d19.prototype.buildGeometrySource=function(l,D){var U=u2o(QN_(this.context,this.poller),apG(this.context,D.requestSource));return{geometrySource:bkd(l.measurableCreative.pipe(U),D.inApp),additionalOutputs:{}}};var kZg=function(l,D,U){U=U===void 0?KU_(l,D):U;this.context=l;this.intersectionObserverStrategy=U};
_.Z(kZg,L7y);kZg.prototype.buildGeometrySource=function(l,D){var U=this.intersectionObserverStrategy(D.useV2);return{geometrySource:bkd(l.measurableCreative.pipe(U,cqG(this.context)),D.inApp),additionalOutputs:{}}};var MUr=function(l,D,U){var n=n===void 0?Symbol():n;this.element=l;this.immediateUrls=D;this.timeOnScreenUrls=U;this.symbol=n};var ng$=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),MMl=Object.freeze([1,.75,ng$.exposureThreshold,ng$.largeAdExposureThreshold,0]);var pUg=function(l,D){D=D===void 0?36E5:D;var U=U===void 0?!0:U;this.creatives=new RB;this.elementsToUnregister=new RB;this.elementMap=new Map;var n=new nw(window,null);n.beaconFactory=new G5(n,new fT(n));X3B(n,this.creatives,this.elementsToUnregister,l,D,U).subscribe()},FY_=function(l,D,U,n){if(!l.elementMap.has(D)){var y=new Ej(D);
l.elementMap.set(D,y);l.creatives.next(new MUr(y,U,n))}},jyN=function(l,D){l.elementsToUnregister.next(D);
var U=l.elementMap.get(D);U!==void 0&&(U.release(),l.elementMap.delete(D))};var wgK=function(l){var D=l.url;l=l.uaDataValues;this.JSC$9557_url_=D;this.uaDataValues_=l;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var U=/[?&]([^&=]+)=([^&]*)/g;l=U.exec(D);)this.urlParamValues_[l[1]]=l[2]},rjg=function(l){l=l.uaDataValues_;
if(!l)return"";var D=AA("uap",l.platform)+AA("uapv",l.platformVersion)+AA("uafv",l.uaFullVersion)+AA("uaa",l.architecture)+AA("uam",l.model)+AA("uab",l.bitness);l.fullVersionList&&(D+="&uafvl="+encodeURIComponent(l.fullVersionList.map(function(U){return encodeURIComponent(U.brand)+";"+encodeURIComponent(U.version)}).join("|")));
l.wow64!=null&&(D+="&uaw="+Number(l.wow64));return D.slice(1)};var R3v=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(R3v,_.Bh);R3v.prototype.getId=function(){return _.Zo(this,1)};var Hl=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Hl,_.Bh);Hl.prototype.getSeconds=function(){return MF(this,1)};
Hl.prototype.setSeconds=function(l){return _.iw(this,1,gH(l),"0")};_.mG=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(_.mG,_.Bh);_.mG.prototype.getSeconds=function(){return MF(this,1)};
_.mG.prototype.setSeconds=function(l){return _.iw(this,1,gH(l),"0")};
_.Zwv=function(l){var D=Number(me(l,1));l=_.Qp(l,2);return new Date(D*1E3+l/1E6)};var Yh=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Yh,_.Bh);Yh.prototype.getUrl=function(){return _.Zo(this,1)};
Yh.prototype.setUrl=function(l){return _.jt(this,1,l)};
Yh.prototype.getHeight=function(){return _.Qp(this,2)};
Yh.prototype.getWidth=function(){return _.Qp(this,3)};var OF=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(OF,_.Bh);OF.prototype.getAspectRatio=function(){return Rm(this,1)};
OF.prototype.getDuration=function(){return _.MZ(this,Hl,2)};var e3y=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(e3y,_.Bh);var mx_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(mx_,_.Bh);var ay5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(ay5,_.Bh);var tU8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(tU8,_.Bh);var XEv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(XEv,_.Bh);var Sdy=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Sdy,_.Bh);var kCH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(kCH,_.Bh);var dxr=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(dxr,_.Bh);var K7r=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(K7r,_.Bh);var VG=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(VG,_.Bh);var ln=[2,4,5,6,7];var cAh=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(cAh,_.Bh);var JU=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(JU,_.Bh);_.W=JU.prototype;_.W.getId=function(){return _.MZ(this,R3v,1)};
_.W.getName=function(){return _.Zo(this,2)};
_.W.setDescription=function(l){return _.jt(this,3,l)};
_.W.getUrl=function(){return _.Zo(this,8)};
_.W.setUrl=function(l){return _.jt(this,8,l)};
var Dz=function(l){return _.uO(l,Yh,10,_.vE())};
JU.prototype.getOwner=function(l){var D=_.H2(this,40,_.Zv,3,!0);V3g(D,l);return D[l]};
var UY=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(UY,_.Bh);_.nb=[0,w6,MW7];_.ym=[0,w6,MW7];var pEg=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(pEg,_.Bh);var AX=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(AX,_.Bh);AX.prototype.getStatus=function(){return _.eY(this,1)};
AX.prototype.removeItem=function(l){return drz(this,2,l)};var xx_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(xx_,_.Bh);xx_.prototype.getName=function(){return _.Zo(this,8)};var Wb=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Wb,_.Bh);Wb.prototype.getCommand=function(){return _.eY(this,1)};
Wb.prototype.getSource=function(){return _.MZ(this,xx_,2)};
Wb.prototype.setVisible=function(l){return _.RS(this,5,l)};
Wb.prototype.removeItem=function(l){return drz(this,7,l)};var jjH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(jjH,_.Bh);jjH.prototype.getCommand=function(){return _.eY(this,1)};
jjH.prototype.removeItem=function(l){return drz(this,4,l)};
var F7r=_.eD(jjH);var Bb=function(l,D,U){U=U===void 0?Error():U;var n=Error.call(this);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.code=l;D+=":";U instanceof Error?(this.message=D+U.message,this.stack=U.stack||""):(this.message=D+String(U),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(Bb,Error);_.xT=function(){this.JSC$9615_disposed_=this.JSC$9615_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.xT.prototype.JSC$9615_disposed_=!1;_.xT.prototype.isDisposed=function(){return this.JSC$9615_disposed_};
_.xT.prototype.dispose=function(){this.JSC$9615_disposed_||(this.JSC$9615_disposed_=!0,this.disposeInternal())};
_.xT.prototype[Symbol.dispose]=function(){this.dispose()};
_.m7=function(l,D){l.addOnDisposeCallback(_.P6(_.WE,D))};
_.xT.prototype.addOnDisposeCallback=function(l,D){this.JSC$9615_disposed_?D!==void 0?l.call(D):l():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),D&&(l=l.bind(D)),this.onDisposeCallbacks_.push(l))};
_.xT.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Cb=function(l){_.xT.call(this);this.wpc=l};
_.Z(Cb,_.xT);Cb.prototype.i0v=function(){return this.wpc.f()};
Cb.prototype.lSV=function(l){return this.wpc.c(l)};
Cb.prototype.fL=function(l){return this.wpc.m(NtK(l))};
Cb.prototype.bhv=function(l){return this.wpc.mws(NtK(l))};
var Cw=function(l){_.xT.call(this);var D=this;this.vm=l;this.dg3="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.fsi=void 0;this.vAW=this.vm.p;this.ega=this.f6v.bind(this);this.addOnDisposeCallback(function(){return void oT_(D)})};
_.Z(Cw,_.xT);var wEz=function(l){var D;return _.P(function(U){if(U.nextAddress==1){if(!l.vm.wpc)throw new Bb(30,"NWA");return l.k4I?U.return(l.k4I):U.yield(l.vm.wpc(),2)}D=U.yieldResult;l.k4I=new Cb(D);return U.return(l.k4I)})};
Cw.prototype.snapshot=function(l){return this.vm.s(Object.assign({},l.rK&&{c:l.rK},l.sDt&&{s:l.sDt},l.wUi!==void 0&&{p:l.wUi}))};
Cw.prototype.f6v=function(l){this.vm.e(l)};
Cw.prototype.t2v=function(l,D){return this.vm.c(l,D,!1)};
var oT_=function(l){l.fsi!==void 0&&(l.dg3.forEach(function(D){var U;(U=l.fsi)==null||U.removeEventListener(D,l.ega)}),l.fsi=void 0)};
Cw.prototype.vYW=function(){return this.vm.l()};var hX=function(){_.xT.apply(this,arguments);this.aHX=1};
_.Z(hX,_.xT);hX.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.aHX++;return this};
hX.prototype.dispose=function(){--this.aHX||_.xT.prototype.dispose.call(this)};var rAv=function(l){this.u8V=l;l.addNewEventMetric("/client_streamz/bg/frs",_.Lw("mk"))};
rAv.prototype.record=function(l,D){this.u8V.record("/client_streamz/bg/frs",l,D)};
var z3m=function(l){this.vPd=l;l.addNewEventMetric("/client_streamz/bg/wrl",_.Lw("mn"),JA("ac"),JA("sc"),_.Lw("rk"),_.Lw("mk"))};
z3m.prototype.record=function(l,D,U,n,y,A){this.vPd.record("/client_streamz/bg/wrl",l,D,U,n,y,A)};
var fyh=function(l){this.dxs=l;l.addNewCounter("/client_streamz/bg/ec",_.Lw("en"),_.Lw("mk"))};
fyh.prototype.increment=function(l,D){this.dxs.JSC$9868_incrementCounter("/client_streamz/bg/ec",l,D)};
var $x8=function(l){this.yb3=l;l.addNewEventMetric("/client_streamz/bg/el",_.Lw("en"),_.Lw("mk"))};
$x8.prototype.record=function(l,D,U){this.yb3.record("/client_streamz/bg/el",l,D,U)};
var Nsv=function(l){this.sjF=l;l.addNewCounter("/client_streamz/bg/cec",JA("ec"),_.Lw("mk"))};
Nsv.prototype.increment=function(l,D){this.sjF.JSC$9868_incrementCounter("/client_streamz/bg/cec",l,D)};
var sjk=function(l){this.t1X=l;l.addNewCounter("/client_streamz/bg/po/csc",JA("cs"),_.Lw("mk"))};
sjk.prototype.increment=function(l,D){this.t1X.JSC$9868_incrementCounter("/client_streamz/bg/po/csc",l,D)};
var ET_=function(l){this.w9d=l;l.addNewCounter("/client_streamz/bg/po/ctav",_.Lw("av"),_.Lw("mk"))};
ET_.prototype.increment=function(l,D){this.w9d.JSC$9868_incrementCounter("/client_streamz/bg/po/ctav",l,D)};
var Tsm=function(l){this.qUE=l;l.addNewCounter("/client_streamz/bg/po/cwsc",_.Lw("su"),_.Lw("mk"))};
Tsm.prototype.increment=function(l,D){this.qUE.JSC$9868_incrementCounter("/client_streamz/bg/po/cwsc",l,D)};var LdG=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(LdG,_.Bh);var JcN=function(l,D){return _.Vq(l,3,D,q7N)};var Iy7=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Iy7,_.Bh);var Hwv=[1,2,3];var Yd7=[0,Hwv,_.Im,R8g,mwy];var Owy=[0,_.Hm,[0,F9,_.om]];var VUk=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(VUk,_.Bh);var iyr=[1,2,3];var lp1=[0,iyr,LJz,uJy,_.Yz,Owy];var DVr=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(DVr,_.Bh);var UVg=[0,_.Hm,Yd7,lp1];var nim=[0,_.Ey];var yq7=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(yq7,_.Bh);var Aq7=[0,_.Ey,-1,_.fh];var WU5=[0,_.Ey,-1,_.zl,_.fh];var BM5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(BM5,_.Bh);var Ch7=[1,2,3];var hyy=[0,Ch7,_.Yz,Aq7,_.Yz,WU5,_.Yz,nim];var Ph_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Ph_,_.Bh);Ph_.prototype.JSC$9688_serializeBinary=ECG([0,_.Ey,hyy,av5,_.Hm,UVg,ZP_,_.e87]);var by5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(by5,_.Bh);var viy=function(l){var D=new Ph_;D=_.c7(D,1,l.JSC$9804_metricName);var U=gim(l);D=_.Vq(D,3,U,_.LP);U=[];for(var n=[],y=_.B(l.cellMap.keys()),A=y.next();!A.done;A=y.next())n.push(A.value.split(","));for(y=0;y<n.length;y++){A=n[y];for(var C=l.cellType,h=l.getCells(A)||[],b=[],u=0;u<h.length;u++){var Q=h[u],G=Q&&Q.cellValue;Q=new VUk;switch(C){case 3:G=Number(G);Number.isFinite(G)&&S2(Q,1,iyr,gH(G));break;case 2:S2(Q,2,iyr,_.Y1(Number(G)))}b.push(Q)}C=b;for(h=0;h<C.length;h++){b=C[h];u=new DVr;b=_.al(u,
2,b);u=[];Q=uxg(l);for(G=0;G<Q.length;G++){var J=Q[G],L=A[G],R=new Iy7;switch(J){case 3:S2(R,1,Hwv,Mw(String(L)));break;case 2:J=Number(L);Number.isFinite(J)&&S2(R,2,Hwv,_.B2(J));break;case 1:S2(R,3,Hwv,Gv3(L==="true"))}u.push(R)}Gl(b,1,u);U.push(b)}}Gl(D,4,U);return D};var Qwr=function(l){if(!l)return"";if(/^about:(?:blank|srcdoc)$/.test(l))return window.origin||"";l.indexOf("blob:")===0&&(l=l.substring(5));l=l.split("#")[0].split("?")[0];l=l.toLowerCase();l.indexOf("//")==0&&(l=window.location.protocol+l);/^[\w\-]*:\/\//.test(l)||(l=window.location.href);var D=l.substring(l.indexOf("://")+3),U=D.indexOf("/");U!=-1&&(D=D.substring(0,U));U=l.substring(0,l.indexOf("://"));if(!U)throw Error("qa`"+l);if(U!=="http"&&U!=="https"&&U!=="chrome-extension"&&U!=="moz-extension"&&
U!=="file"&&U!=="android-app"&&U!=="chrome-search"&&U!=="chrome-untrusted"&&U!=="chrome"&&U!=="app"&&U!=="devtools")throw Error("ra`"+U);l="";var n=D.indexOf(":");if(n!=-1){var y=D.substring(n+1);D=D.substring(0,n);if(U==="http"&&y!=="80"||U==="https"&&y!=="443")l=":"+y}return U+"://"+D+l};var Jq5=function(l,D,U){var n=String(_.nC.location.href);return n&&l&&D?[D,Gpv(Qwr(n),l,U||null)].join(" "):null},Gpv=function(l,D,U){var n=[],y=[];
if((Array.isArray(U)?2:1)==1)return y=[D,l],_.Ac(n,function(h){y.push(h)}),LUy(y.join(" "));
var A=[],C=[];_.Ac(U,function(h){C.push(h.key);A.push(h.value)});
U=Math.floor((new Date).getTime()/1E3);y=A.length==0?[U,D,l]:[A.join(":"),U,D,l];_.Ac(n,function(h){y.push(h)});
l=LUy(y.join(" "));l=[U,l];C.length==0||l.push(C.join(""));return l.join("_")},LUy=function(l){var D=VMG();
D.update(l);return D.digestString().toLowerCase()};var Pb=function(l){this.JSC$9699_document_=l||{cookie:""}},qPr;
_.W=Pb.prototype;_.W.isEnabled=function(){if(!_.nC.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};
_.W.set=function(l,D,U){var n=!1;if(typeof U==="object"){var y=U.sameSite;n=U.secure||!1;var A=U.domain||void 0;var C=U.path||void 0;var h=U.maxAge}if(/[;=\s]/.test(l))throw Error("sa`"+l);if(/[;\r\n]/.test(D))throw Error("ta`"+D);h===void 0&&(h=-1);U=A?";domain="+A:"";C=C?";path="+C:"";n=n?";secure":"";h=h<0?"":h==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+h*1E3)).toUTCString();this.JSC$9699_document_.cookie=l+"="+D+U+C+h+n+(y!=null?";samesite="+y:"")};
_.W.get=function(l,D){for(var U=l+"=",n=(this.JSC$9699_document_.cookie||"").split(";"),y=0,A;y<n.length;y++){A=uG(n[y]);if(A.lastIndexOf(U,0)==0)return A.slice(U.length);if(A==l)return""}return D};
_.W.remove=function(l,D,U){var n=this.containsKey(l);this.set(l,"",{maxAge:0,path:D,domain:U});return n};
_.W.getKeys=function(){return qPr(this).keys};
_.W.getValues=function(){return qPr(this).values};
_.W.isEmpty=function(){return!this.JSC$9699_document_.cookie};
_.W.getCount=function(){return this.JSC$9699_document_.cookie?(this.JSC$9699_document_.cookie||"").split(";").length:0};
_.W.containsKey=function(l){return this.get(l)!==void 0};
_.W.containsValue=function(l){for(var D=qPr(this).values,U=0;U<D.length;U++)if(D[U]==l)return!0;return!1};
_.W.clear=function(){for(var l=qPr(this).keys,D=l.length-1;D>=0;D--)this.remove(l[D])};
qPr=function(l){l=(l.JSC$9699_document_.cookie||"").split(";");for(var D=[],U=[],n,y,A=0;A<l.length;A++)y=uG(l[A]),n=y.indexOf("="),n==-1?(D.push(""),U.push(y)):(D.push(y.substring(0,n)),U.push(y.substring(n+1)));return{keys:D,values:U}};
_.xZ=new Pb(typeof document=="undefined"?null:document);var feN,MNr;feN=function(){var l=_.nC.__SAPISID||_.nC.__APISID||_.nC.__3PSAPISID||_.nC.__1PSAPISID||_.nC.__OVERRIDE_SID;if(l)return!0;typeof document!=="undefined"&&(l=new Pb(document),l=l.get("SAPISID")||l.get("APISID")||l.get("__Secure-3PAPISID")||l.get("__Secure-1PAPISID"));return!!l};
MNr=function(l,D,U,n){(l=_.nC[l])||typeof document==="undefined"||(l=(new Pb(document)).get(D));return l?Jq5(l,U,n):null};
_.vuK=function(l){var D=Qwr(_.nC==null?void 0:_.nC.location.href),U=[];if(feN()){D=D.indexOf("https:")==0||D.indexOf("chrome-extension:")==0||D.indexOf("chrome-untrusted://new-tab-page")==0||D.indexOf("moz-extension:")==0;var n=D?_.nC.__SAPISID:_.nC.__APISID;n||typeof document==="undefined"||(n=new Pb(document),n=n.get(D?"SAPISID":"APISID")||n.get("__Secure-3PAPISID"));(n=n?Jq5(n,D?"SAPISIDHASH":"APISIDHASH",l):null)&&U.push(n);D&&((D=MNr("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",l))&&U.push(D),
(l=MNr("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",l))&&U.push(l))}return U.length==0?null:U.join(" ")};var Ryy=function(){this.minSize=1024};
Ryy.prototype.compress=function(l){var D,U,n,y;return _.P(function(A){switch(A.nextAddress){case 1:return D=new CompressionStream("gzip"),U=(new Response(D.readable)).arrayBuffer(),n=D.writable.getWriter(),A.yield(n.write((new TextEncoder).encode(l)),2);case 2:return A.yield(n.close(),3);case 3:return y=Uint8Array,A.yield(U,4);case 4:return A.return(new y(A.yieldResult))}})};
Ryy.prototype.isSupported=function(l){return l<this.minSize?!1:typeof CompressionStream!=="undefined"};var Zyk=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Zyk,_.Bh);var bn=function(l,D){this.intervalMs=l;this.callback=D;this.enabled=!1;this.nowFn=function(){return _.I7()};
this.lastTimeMs=this.nowFn()};
bn.prototype.setInterval=function(l){this.intervalMs=l;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
bn.prototype.start=function(){var l=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){l.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
bn.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
bn.prototype.tick=function(){var l=this;if(this.enabled){var D=Math.max(this.nowFn()-this.lastTimeMs,0);D<this.intervalMs*.8?this.timer=setTimeout(function(){l.tick()},this.intervalMs-D):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var ey_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(ey_,_.Bh);var mVk=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(mVk,_.Bh);var apH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(apH,_.Bh);apH.prototype.getTransmissionType=function(){return _.eY(this,1)};var UKG=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(UKG,_.Bh);var gx=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(gx,_.Bh);var DKg=function(l){Gl(nZ$,1,l)};
gx.prototype.getModel=function(){return _.Zo(this,6)};
var tN_=_.eD(gx);var X_k=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(X_k,_.Bh);var itG=["platform","platformVersion","architecture","model","uaFullVersion"],nZ$=new gx,lJ9=null;var un=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(un,_.Bh);var SPz=function(l){return _.R2(l,1,1)};var kpr=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l,4)};
_.Z(kpr,_.Bh);_.vb=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l,36)};
_.Z(_.vb,_.Bh);_.vb.prototype.getExperimentIds=function(){return _.MZ(this,Zyk,16)};var dVk=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l,19)};
_.Z(dVk,_.Bh);dVk.prototype.setLogSource=function(l){return _.R2(this,2,l)};
dVk.prototype.setScheduler=function(l){return _.R2(this,10,l)};var cqH=function(l,D){this.isServiceWorkerScope=D=D===void 0?!1:D;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new dVk;Number.isInteger(l)&&this.logRequest.setLogSource(l);D||(this.locale=document.documentElement.getAttribute("lang"));KUg(this,new un)};
cqH.prototype.setLogSource=function(l){this.logRequest.setLogSource(l);return this};
var KUg=function(l,D){_.al(l.logRequest,1,D);_.eY(D,1)||SPz(D);l.isServiceWorkerScope||(D=Qm(l),_.Zo(D,5)||_.c7(D,5,l.locale));l.uach&&(D=Qm(l),_.MZ(D,gx,9)||_.al(D,9,l.uach))},p_y=function(l,D){l.transmissionType=D},xVy=function(l){var D=D===void 0?itG:D;
var U=l.isServiceWorkerScope?void 0:f2();U?yc9(U,D).then(function(n){l.uach=tN_(n!=null?n:"[]");n=Qm(l);_.al(n,9,l.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Qm=function(l){var D=_.MZ(l.logRequest,un,1);
D||(D=new un,KUg(l,D));l=D;D=_.MZ(l,X_k,11);D||(D=new X_k,_.al(l,11,D));return D};
cqH.prototype.build=function(l,D,U,n,y,A){D=D===void 0?0:D;U=U===void 0?0:U;n=n===void 0?null:n;y=y===void 0?0:y;A=A===void 0?0:A;if(!this.isServiceWorkerScope){var C=Qm(this);var h=new apH;h=_.R2(h,1,this.transmissionType);h=_.qx(h,2,this.isFinal);U=_.X9(h,3,U>0?U:void 0);U=_.X9(U,4,y>0?y:void 0);U=_.X9(U,5,A>0?A:void 0);y=U.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=y[_.y_]|0;U=ty(U,A)?U:X2l(U,y,A)?tWc(U,y):new U.constructor(wH(y,A,!0));_.al(C,10,U)}C=this.logRequest.clone();U=Date.now().toString();
C=_.Zl(C,4,gH(U));l=l.slice();l=Gl(C,3,l);n&&(C=new ey_,n=_.X9(C,13,n),C=new mVk,n=_.al(C,2,n),C=new kpr,n=_.al(C,1,n),n=_.R2(n,2,9),_.al(l,18,n));D&&_.j2(l,14,D);return l};Mx.prototype.currBackoffCount_=0;Mx.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Mx.prototype.getValue=function(){return this.currValue_};
var jw_=function(l){l.currBaseValue_=Math.min(l.maxValue_,l.currBaseValue_*l.backoffFactor_);l.currValue_=Math.min(l.maxValue_,l.currBaseValue_+(l.randomFactor_?Math.round(l.randomFactor_*(Math.random()-.5)*2*l.currBaseValue_):0));l.currBackoffCount_++};var dwm=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l,8)};
_.Z(dwm,_.Bh);var FU_=_.eD(dwm);var KJH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(KJH,_.Bh);var Gm;Gm=new cr8;var JX=function(l){_.xT.call(this);var D=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9777_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$9777_sendBeaconApiEnabled=!1;this.logSource=l.logSource;this.getAuthHeaderValue=
l.getAuthHeaderValue||function(){};
this.logRequestBuilder=new cqH(l.logSource,l.isServiceWorkerScope);this.network=l.network||null;this.productID=l.productID||null;this.bufferSize=1E3;this.clearcutUrl=l.urlOverride||null;this.sessionIndex=l.sessionIndex||null;this.disableAutomaticFlush=l.disableAutomaticFlush||!1;this.withCredentials=!l.disableWithCredentials;this.isServiceWorkerScope=l.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!f2()&&!!f2().navigator&&f2().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(oiH())).searchParams&&!!(new URL(oiH())).searchParams.set;var U=SPz(new un);KUg(this.logRequestBuilder,U);this.flushBackoff=new Mx(1E4,3E5,.1);l=w_z(this,l.backgroundJobDeferrer);this.JSC$9777_flushTimer=new bn(this.flushBackoff.getValue(),l);this.backupTimer=new bn(6E5,l);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){rq5(D);
var n;(n=D.metalogService)==null||n.flush()}}),document.addEventListener("pagehide",function(){rq5(D);
var n;(n=D.metalogService)==null||n.flush()}))};
_.Z(JX,_.xT);var w_z=function(l,D){return l.isBrowserSupported?D?function(){D().then(function(){l.flush()})}:function(){l.flush()}:function(){}};
JX.prototype.disposeInternal=function(){rq5(this);this.JSC$9777_flushTimer.stop();this.backupTimer.stop();_.xT.prototype.disposeInternal.call(this)};
var zy7=function(l){l.clearcutUrl||(l.clearcutUrl=oiH());try{return(new URL(l.clearcutUrl)).toString()}catch(D){return(new URL(l.clearcutUrl,f2().location.origin)).toString()}};
JX.prototype.dispatch=function(l){if(l instanceof _.vb)this.log(l);else try{var D=new _.vb,U=l.serialize();var n=_.c7(D,8,U);this.log(n)}catch(y){Lb(this,4,1)}};
var Lb=function(l,D,U){l.metalogService&&l.metalogService.increment(D,U)};
JX.prototype.log=function(l){Lb(this,2,1);if(this.isBrowserSupported){l=l.clone();var D=this.sequencePosition++;l=_.j2(l,21,D);this.componentId&&_.c7(l,26,this.componentId);D=l;if(xrC(_.hU(D,1))==null){var U=Date.now();U=Number.isFinite(U)?U.toString():"0";_.Zl(D,1,gH(U))}_.p5c(_.hU(D,15))!=null||_.j2(D,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(U=this.experimentIds.clone(),_.al(D,16,U));Lb(this,1,1);D=this.pendingEvents.length-this.bufferSize+1;D>0&&(this.pendingEvents.splice(0,D),
this.numLogsDroppedSinceLastFlush+=D,Lb(this,3,D));this.pendingEvents.push(l);this.disableAutomaticFlush||this.JSC$9777_flushTimer.enabled||this.JSC$9777_flushTimer.start()}};
JX.prototype.flush=function(l,D){var U=this;if(this.pendingEvents.length===0)l&&l();else if(this.JSC$9777_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,fpy(this);else{var n=Date.now();if(this.noFlushUntilMs>n&&this.startWaitingMs<n)D&&D("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?p_y(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var y=this.pendingEvents.length,
A=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),C=this.getAuthHeaderValue();if(C&&this.lastFailedAuth===C)D&&D("stale-auth-token");else{this.pendingEvents=[];this.JSC$9777_flushTimer.enabled&&this.JSC$9777_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;n=A.serialize();var h;this.JSC$9777_compressor&&this.JSC$9777_compressor.isSupported(n.length)&&
(h=this.JSC$9777_compressor.compress(n));var b=$Vz(this,n,C),u=function(J){U.flushBackoff.reset();U.JSC$9777_flushTimer.setInterval(U.flushBackoff.getValue());if(J){var L=null;try{var R=JSON.stringify(JSON.parse(J.replace(")]}'\n","")));L=FU_(R)}catch(a){}L&&(J=Number(MF(L,1,_.F8("-1"))),J>0&&(U.startWaitingMs=Date.now(),U.noFlushUntilMs=U.startWaitingMs+J),UwN(L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Gm.fieldIndex),lvc(L,Gm.fieldIndex),L=Gm.ctor?Gm.getExtensionFn(L,Gm.ctor,Gm.fieldIndex,
Gm.JSC$8957_hasMessageId):Gm.getExtensionFn(L,Gm.fieldIndex,null,Gm.JSC$8957_hasMessageId),L=L===null?void 0:L)&&(L=_.Qp(L,1,-1),L!==-1&&(U.flushBackoff=new Mx(L<1?1:L,3E5,.1),U.JSC$9777_flushTimer.setInterval(U.flushBackoff.getValue())))}l&&l();U.numRetriesSinceLastSuccessfulFlush=0},Q=function(J,L){var R=_.uO(A,_.vb,3,_.vE());
var a=Number(MF(A,14));jw_(U.flushBackoff);U.JSC$9777_flushTimer.setInterval(U.flushBackoff.getValue());J===401&&C&&(U.lastFailedAuth=C);a&&(U.numLogsDroppedSinceLastFlush+=a);L===void 0&&(L=U.isRetryable(J));L&&(U.pendingEvents=R.concat(U.pendingEvents),U.disableAutomaticFlush||U.JSC$9777_flushTimer.enabled||U.JSC$9777_flushTimer.start());Lb(U,7,1);D&&D("net-send-failed",J);++U.numRetriesSinceLastSuccessfulFlush},G=function(){U.network&&U.network.send(b,u,Q)};
h?h.then(function(J){Lb(U,5,y);b.requestHeaders["Content-Encoding"]="gzip";b.requestHeaders["Content-Type"]="application/binary";b.body=J;b.bodyType=2;G()},function(){Lb(U,6,y);
G()}):G()}}}};
var $Vz=function(l,D,U){U=U===void 0?null:U;var n=n===void 0?l.withCredentials:n;var y={},A=new URL(zy7(l));U&&(y.Authorization=U);l.sessionIndex&&(y["X-Goog-AuthUser"]=l.sessionIndex,A.searchParams.set("authuser",l.sessionIndex));l.pageId&&(Object.defineProperty(y,"X-Goog-PageId",{value:l.pageId}),A.searchParams.set("pageId",l.pageId));return{url:A.toString(),body:D,bodyType:1,requestHeaders:y,requestType:"POST",withCredentials:n,timeoutMillis:l.timeoutMillis}},rq5=function(l){l.logRequestBuilder.isFinal=
!0;
l.flush();l.logRequestBuilder.isFinal=!1},fpy=function(l){NMh(l,function(D,U){D=new URL(D);
D.searchParams.set("format","json");var n=!1;try{n=f2().navigator.sendBeacon(D.toString(),U.serialize())}catch(y){}n||(l.isSendBeaconSupported=!1);return n})},NMh=function(l,D){if(l.pendingEvents.length!==0){var U=new URL(zy7(l));
U.searchParams.delete("format");var n=l.getAuthHeaderValue();n&&U.searchParams.set("auth",n);U.searchParams.set("authuser",l.sessionIndex||"0");for(n=0;n<10&&l.pendingEvents.length;++n){var y=l.pendingEvents.slice(0,32),A=l.logRequestBuilder.build(y,l.numLogsDroppedSinceLastFlush,l.numRetriesSinceLastSuccessfulFlush,l.productID,l.persistedLogRecoveredCount,l.persistedLogExpiredCount);if(!D(U.toString(),A)){++l.numRetriesSinceLastSuccessfulFlush;break}l.numLogsDroppedSinceLastFlush=0;l.numRetriesSinceLastSuccessfulFlush=
0;l.persistedLogRecoveredCount=0;l.persistedLogExpiredCount=0;l.pendingEvents=l.pendingEvents.slice(y.length)}l.JSC$9777_flushTimer.enabled&&l.JSC$9777_flushTimer.stop()}};
JX.prototype.isRetryable=function(l){return 500<=l&&l<600||l===401||l===0};
var oiH=function(){return"https://play.google.com/log?format=json&hasfast=true"};var swr=function(){this.abortSupported=typeof AbortController!=="undefined"};
swr.prototype.send=function(l,D,U){var n=this,y,A,C,h,b,u,Q,G,J,L;return _.P(function(R){switch(R.nextAddress){case 1:return A=(y=n.abortSupported?new AbortController:void 0)?setTimeout(function(){y.abort()},l.timeoutMillis):void 0,_.ZY(R,2,3),C=Object.assign({},{method:l.requestType,
headers:Object.assign({},l.requestHeaders)},l.body&&{body:l.body},l.withCredentials&&{credentials:"include"},{signal:l.timeoutMillis&&y?y.signal:null}),R.yield(fetch(l.url,C),5);case 5:h=R.yieldResult;if(h.status!==200){(b=U)==null||b(h.status);R.jumpTo(3);break}if((u=D)==null){R.jumpTo(7);break}return R.yield(h.text(),8);case 8:u(R.yieldResult);case 7:case 3:_.aV(R);clearTimeout(A);_.Sc(R,0);break;case 2:Q=_.kF(R);switch((G=Q)==null?void 0:G.name){case "AbortError":(J=U)==null||J(408);break;default:(L=
U)==null||L(400)}R.jumpTo(3)}})};
swr.prototype.getTransmissionType=function(){return 4};_.Zy=function(l,D){D=D===void 0?"0":D;_.xT.call(this);this.logSource=l;this.sessionIndex=D;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9795_clearExperimentIds=this.productID=null;this.JSC$9795_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.Z(_.Zy,_.xT);var vZK=function(l,D){l.buildLabel=D;return l},uig=function(l,D){l.network=D;
return l},G8$=function(l,D){l.JSC$9795_clearExperimentIds=D},gZl=function(l){l.JSC$9795_sendBeaconApiEnabled=!0;
return l};
_.Zy.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Zy.prototype.build=function(){this.network||(this.network=new swr);var l=new JX({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.vuK,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.m7(this,l);if(this.buildLabel){var D=this.buildLabel,U=
Qm(l.logRequestBuilder);_.c7(U,7,D)}l.JSC$9777_compressor=new Ryy;this.componentId&&(l.componentId=this.componentId);this.productID&&(l.productID=this.productID);this.pageId&&(l.pageId=this.pageId);this.JSC$9795_clearExperimentIds&&((U=this.JSC$9795_clearExperimentIds)?(l.experimentIds||(l.experimentIds=new Zyk),D=l.experimentIds,U=U.serialize(),_.c7(D,4,U)):l.experimentIds&&_.Zl(l.experimentIds,4));this.JSC$9795_sendBeaconApiEnabled&&(l.JSC$9777_sendBeaconApiEnabled=l.isSendBeaconSupported);xVy(l.logRequestBuilder);
this.bufferSize&&(l.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(l);return l};var qG3=function(l,D,U,n,y,A,C){l=l===void 0?-1:l;D=D===void 0?"":D;U=U===void 0?"":U;n=n===void 0?!1:n;y=y===void 0?"":y;_.xT.call(this);this.logSource=l;this.componentId=D;A?D=A:(l=new _.Zy(l,"0"),l.componentId=D,_.m7(this,l),U!==""&&(l.destinationUrl=U),n&&(l.serviceWorkerScopeEnabled=!0),y&&vZK(l,y),C&&uig(l,C),D=l.build());this.JSC$9799_transport=D};
_.Z(qG3,_.xT);qG3.prototype.flush=function(l){l=l||[];if(l.length){for(var D=new by5,U=[],n=0;n<l.length;n++){var y=l[n],A=viy(y);U.push(A);y.clear()}Gl(D,1,U);this.JSC$9799_transport.dispatch(D);this.JSC$9799_transport.flush()}};var Ei5=function(l){this.cellValue=l};var Mi=function(l,D,U){this.JSC$9804_metricName=l;this.cellType=D;this.fields=U||[];this.cellMap=new Map},uxg=function(l){return l.fields.map(function(D){return D.fieldType})},gim=function(l){return l.fields.map(function(D){return D.fieldName})};
_.W=Mi.prototype;_.W.addCell=function(l){var D=_.EW.apply(1,arguments),U=this.getCells(D);U?U.push(new Ei5(l)):this.JSC$9804_setCell(l,D)};
_.W.JSC$9804_setCell=function(l){var D=this.JSC$9804_getKey(_.EW.apply(1,arguments));this.cellMap.set(D,[new Ei5(l)])};
_.W.getCells=function(){var l=this.JSC$9804_getKey(_.EW.apply(0,arguments));return this.cellMap.has(l)?this.cellMap.get(l):void 0};
_.W.getCell=function(){var l=this.getCells(_.EW.apply(0,arguments));return l&&l.length?l[0]:void 0};
_.W.clear=function(){this.cellMap.clear()};
_.W.JSC$9804_getKey=function(){var l=_.EW.apply(0,arguments);return l?l.join(","):"key"};var TMg=function(l,D){Mi.call(this,l,3,D)};
_.Z(TMg,Mi);TMg.prototype.JSC$9807_incrementCounterBy=function(l){var D=_.EW.apply(1,arguments),U=0,n=this.getCell(D);n&&(U=n.cellValue);this.JSC$9804_setCell(U+l,D)};var Ipg=function(l,D){Mi.call(this,l,2,D)};
_.Z(Ipg,Mi);Ipg.prototype.record=function(l){this.addCell(l,_.EW.apply(1,arguments))};_.RP=function(l){this.id=l};
_.RP.prototype.toString=function(){return this.id};_.Zz=function(l,D){this.type=l instanceof _.RP?String(l):l;this.currentTarget=this.target=D;this.defaultPrevented=this.propagationStopped_=!1};
_.Zz.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Zz.prototype.preventDefault=function(){this.defaultPrevented=!0};_.ee=function(l,D){_.Zz.call(this,l?l.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;l&&this.init(l,D)};
_.HI(_.ee,_.Zz);
_.ee.prototype.init=function(l,D){var U=this.type=l.type,n=l.changedTouches&&l.changedTouches.length?l.changedTouches[0]:null;this.target=l.target||l.srcElement;this.currentTarget=D;D=l.relatedTarget;D||(U=="mouseover"?D=l.fromElement:U=="mouseout"&&(D=l.toElement));this.relatedTarget=D;n?(this.clientX=n.clientX!==void 0?n.clientX:n.pageX,this.clientY=n.clientY!==void 0?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.offsetX=_.Do||l.offsetX!==void 0?l.offsetX:l.layerX,
this.offsetY=_.Do||l.offsetY!==void 0?l.offsetY:l.layerY,this.clientX=l.clientX!==void 0?l.clientX:l.pageX,this.clientY=l.clientY!==void 0?l.clientY:l.pageY,this.screenX=l.screenX||0,this.screenY=l.screenY||0);this.button=l.button;this.keyCode=l.keyCode||0;this.key=l.key||"";this.charCode=l.charCode||(U=="keypress"?l.keyCode:0);this.ctrlKey=l.ctrlKey;this.altKey=l.altKey;this.shiftKey=l.shiftKey;this.metaKey=l.metaKey;this.pointerId=l.pointerId||0;this.pointerType=l.pointerType;this.state=l.state;
this.timeStamp=l.timeStamp;this.event_=l;l.defaultPrevented&&_.ee.superClass_.preventDefault.call(this)};
_.ee.prototype.isButton=function(l){return this.event_.button==l};
_.ee.prototype.stopPropagation=function(){_.ee.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.ee.prototype.preventDefault=function(){_.ee.superClass_.preventDefault.call(this);var l=this.event_;l.preventDefault?l.preventDefault():l.returnValue=!1};var Hyh="closure_listenable_"+(Math.random()*1E6|0),mO=function(l){return!(!l||!l[Hyh])};var YPz=0;var Oy5=function(l,D,U,n,y){this.listener=l;this.proxy=null;this.src=D;this.type=U;this.capture=!!n;this.handler=y;this.key=++YPz;this.removed=this.callOnce=!1},VN5=function(l){l.removed=!0;
l.listener=null;l.proxy=null;l.src=null;l.handler=null};Rj.prototype.add=function(l,D,U,n,y){var A=l.toString();l=this.listeners[A];l||(l=this.listeners[A]=[],this.typeCount_++);var C=ik5(l,D,n,y);C>-1?(D=l[C],U||(D.callOnce=!1)):(D=new Oy5(D,this.src,A,!!n,y),D.callOnce=U,l.push(D));return D};
Rj.prototype.remove=function(l,D,U,n){l=l.toString();if(!(l in this.listeners))return!1;var y=this.listeners[l];D=ik5(y,D,U,n);return D>-1?(VN5(y[D]),_.dsg(y,D),y.length==0&&(delete this.listeners[l],this.typeCount_--),!0):!1};
var lQ8=function(l,D){var U=D.type;if(!(U in l.listeners))return!1;var n=_.fC(l.listeners[U],D);n&&(VN5(D),l.listeners[U].length==0&&(delete l.listeners[U],l.typeCount_--));return n};
Rj.prototype.removeAll=function(l){l=l&&l.toString();var D=0,U;for(U in this.listeners)if(!l||U==l){for(var n=this.listeners[U],y=0;y<n.length;y++)++D,VN5(n[y]);delete this.listeners[U];this.typeCount_--}return D};
Rj.prototype.getListener=function(l,D,U,n){l=this.listeners[l.toString()];var y=-1;l&&(y=ik5(l,D,U,n));return y>-1?l[y]:null};
Rj.prototype.hasListener=function(l,D){var U=l!==void 0,n=U?l.toString():"",y=D!==void 0;return _.we.some(this.listeners,function(A){for(var C=0;C<A.length;++C)if(!(U&&A[C].type!=n||y&&A[C].capture!=D))return!0;return!1})};
var ik5=function(l,D,U,n){for(var y=0;y<l.length;++y){var A=l[y];if(!A.removed&&A.listener==D&&A.capture==!!U&&A.handler==n)return y}return-1};var D1m,U1r,ng8,Afk,Wvy,gh,um,hG7,Btr,C0H,aP,P0m,yfm;D1m="closure_lm_"+(Math.random()*1E6|0);U1r={};ng8=0;_.Gt=function(l,D,U,n,y){if(n&&n.once)return gh(l,D,U,n,y);if(Array.isArray(D)){for(var A=0;A<D.length;A++)_.Gt(l,D[A],U,n,y);return null}U=yfm(U);return mO(l)?l.listen(D,U,_.I_(n)?!!n.capture:!!n,y):Afk(l,D,U,!1,n,y)};
Afk=function(l,D,U,n,y,A){if(!D)throw Error("va");var C=_.I_(y)?!!y.capture:!!y,h=aP(l);h||(l[D1m]=h=new Rj(l));U=h.add(D,U,n,C,A);if(U.proxy)return U;n=Wvy();U.proxy=n;n.src=l;n.listener=U;if(l.addEventListener)_.BTm||(y=C),y===void 0&&(y=!1),l.addEventListener(D.toString(),n,y);else if(l.attachEvent)l.attachEvent(Btr(D.toString()),n);else if(l.addListener&&l.removeListener)l.addListener(n);else throw Error("wa");ng8++;return U};
Wvy=function(){var l=C0H,D=function(U){return l.call(D.src,D.listener,U)};
return D};
gh=function(l,D,U,n,y){if(Array.isArray(D)){for(var A=0;A<D.length;A++)gh(l,D[A],U,n,y);return null}U=yfm(U);return mO(l)?l.listenOnce(D,U,_.I_(n)?!!n.capture:!!n,y):Afk(l,D,U,!0,n,y)};
_.tX=function(l,D,U,n,y){if(Array.isArray(D))for(var A=0;A<D.length;A++)_.tX(l,D[A],U,n,y);else n=_.I_(n)?!!n.capture:!!n,U=yfm(U),mO(l)?l.unlisten(D,U,n,y):l&&(l=aP(l))&&(D=l.getListener(D,U,n,y))&&um(D)};
um=function(l){if(typeof l==="number"||!l||l.removed)return!1;var D=l.src;if(mO(D))return lQ8(D.eventTargetListeners_,l);var U=l.type,n=l.proxy;D.removeEventListener?D.removeEventListener(U,n,l.capture):D.detachEvent?D.detachEvent(Btr(U),n):D.addListener&&D.removeListener&&D.removeListener(n);ng8--;(U=aP(D))?(lQ8(U,l),U.typeCount_==0&&(U.src=null,D[D1m]=null)):VN5(l);return!0};
hG7=function(l,D,U,n,y){U=yfm(U);n=!!n;return mO(l)?l.getListener(D,U,n,y):l?(l=aP(l))?l.getListener(D,U,n,y):null:null};
Btr=function(l){return l in U1r?U1r[l]:U1r[l]="on"+l};
C0H=function(l,D){if(l.removed)l=!0;else{D=new _.ee(D,this);var U=l.listener,n=l.handler||l.src;l.callOnce&&um(l);l=U.call(n,D)}return l};
aP=function(l){l=l[D1m];return l instanceof Rj?l:null};
P0m="__closure_events_fn_"+(Math.random()*1E9>>>0);yfm=function(l){if(typeof l==="function")return l;l[P0m]||(l[P0m]=function(D){return l.handleEvent(D)});
return l[P0m]};_.Xa=function(){_.xT.call(this);this.eventTargetListeners_=new Rj(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.HI(_.Xa,_.xT);_.Xa.prototype[Hyh]=!0;_.W=_.Xa.prototype;_.W.setParentEventTarget=function(l){this.parentEventTarget_=l};
_.W.addEventListener=function(l,D,U,n){_.Gt(this,l,D,U,n)};
_.W.removeEventListener=function(l,D,U,n){_.tX(this,l,D,U,n)};
_.W.dispatchEvent=function(l){var D,U=this.parentEventTarget_;if(U)for(D=[];U;U=U.parentEventTarget_)D.push(U);U=this.actualEventTarget_;var n=l.type||l;if(typeof l==="string")l=new _.Zz(l,U);else if(l instanceof _.Zz)l.target=l.target||U;else{var y=l;l=new _.Zz(n,U);_.we.extend(l,y)}y=!0;var A;if(D)for(A=D.length-1;!l.propagationStopped_&&A>=0;A--){var C=l.currentTarget=D[A];y=bky(C,n,!0,l)&&y}l.propagationStopped_||(C=l.currentTarget=U,y=bky(C,n,!0,l)&&y,l.propagationStopped_||(y=bky(C,n,!1,l)&&
y));if(D)for(A=0;!l.propagationStopped_&&A<D.length;A++)C=l.currentTarget=D[A],y=bky(C,n,!1,l)&&y;return y};
_.W.disposeInternal=function(){_.Xa.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.W.listen=function(l,D,U,n){return this.eventTargetListeners_.add(String(l),D,!1,U,n)};
_.W.listenOnce=function(l,D,U,n){return this.eventTargetListeners_.add(String(l),D,!0,U,n)};
_.W.unlisten=function(l,D,U,n){return this.eventTargetListeners_.remove(String(l),D,U,n)};
_.W.removeAllListeners=function(l){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(l):0};
var bky=function(l,D,U,n){D=l.eventTargetListeners_.listeners[String(D)];if(!D)return!0;D=D.concat();for(var y=!0,A=0;A<D.length;++A){var C=D[A];if(C&&!C.removed&&C.capture==U){var h=C.listener,b=C.handler||C.src;C.callOnce&&lQ8(l.eventTargetListeners_,C);y=h.call(b,n)!==!1&&y}}return y&&!n.defaultPrevented};
_.Xa.prototype.getListener=function(l,D,U,n){return this.eventTargetListeners_.getListener(String(l),D,U,n)};
_.Xa.prototype.hasListener=function(l,D){return this.eventTargetListeners_.hasListener(l!==void 0?String(l):void 0,D)};var Se=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(l){return l&&AsyncContext.Snapshot.wrap(l)}:function(l){return l};var gg7=function(l,D){this.create_=l;this.reset_=D;this.occupants_=0;this.JSC$9839_head_=null};
gg7.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var l=this.JSC$9839_head_;this.JSC$9839_head_=l.next;l.next=null}else l=this.create_();return l};
gg7.prototype.put=function(l){this.reset_(l);this.occupants_<100&&(this.occupants_++,l.next=this.JSC$9839_head_,this.JSC$9839_head_=l)};var u25=function(){this.workTail_=this.workHead_=null};
u25.prototype.add=function(l,D){var U=Wdd.get();U.set(l,D);this.workTail_?this.workTail_.next=U:this.workHead_=U;this.workTail_=U};
u25.prototype.remove=function(){var l=null;this.workHead_&&(l=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),l.next=null);return l};
var Wdd=new gg7(function(){return new vg7},function(l){return l.reset()}),vg7=function(){this.next=this.scope=this.fn=null};
vg7.prototype.set=function(l,D){this.fn=l;this.scope=D;this.next=null};
vg7.prototype.reset=function(){this.next=this.scope=this.fn=null};var QNg,Bc9,Aco,GZH;Bc9=!1;Aco=new u25;_.kN=function(l,D){QNg||GZH();Bc9||(QNg(),Bc9=!0);Aco.add(l,D)};
GZH=function(){var l=Promise.resolve(void 0);QNg=function(){l.then(Cl9)}};var Jfv=function(l){l.prototype.$goog_Thenable=!0},Lvz=function(l){if(!l)return!1;
try{return!!l.$goog_Thenable}catch(D){return!1}};var qZm,MMy,RGh,eGH,m1h,aQk,kZ_,cfg,FvH,x1h,ue_;_.X0=function(l,D){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(l!=_.RR)try{var U=this;l.call(D,function(n){U.resolve_(2,n)},function(n){U.resolve_(3,n)})}catch(n){this.resolve_(3,n)}};
qZm=function(){this.next=this.context=this.JSC$9850_onRejected=this.JSC$9850_onFulfilled=this.child=null;this.always=!1};
qZm.prototype.reset=function(){this.context=this.JSC$9850_onRejected=this.JSC$9850_onFulfilled=this.child=null;this.always=!1};
MMy=new gg7(function(){return new qZm},function(l){l.reset()});
RGh=function(l,D,U){var n=MMy.get();n.JSC$9850_onFulfilled=l;n.JSC$9850_onRejected=D;n.context=U;return n};
_.Ut=function(l){if(l instanceof _.X0)return l;var D=new _.X0(_.RR);D.resolve_(2,l);return D};
_.Le=function(l){return new _.X0(function(D,U){U(l)})};
eGH=function(l,D,U){Zkv(l,D,U,null)||_.kN(_.P6(D,l))};
_.dx=function(l){return new _.X0(function(D,U){var n=l.length,y=[];if(n)for(var A=function(u,Q){n--;y[u]=Q;n==0&&D(y)},C=function(u){U(u)},h,b=0;b<l.length;b++)h=l[b],eGH(h,_.P6(A,b),C);
else D(y)})};
m1h=function(l){return new _.X0(function(D){var U=l.length,n=[];if(U)for(var y=function(h,b,u){U--;n[h]=b?{fulfilled:!0,value:u}:{fulfilled:!1,reason:u};U==0&&D(n)},A,C=0;C<l.length;C++)A=l[C],eGH(A,_.P6(y,C,!0),_.P6(y,C,!1));
else D(n)})};
aQk=function(l){return new _.X0(function(D,U){var n=l.length,y=[];if(n)for(var A=function(u){D(u)},C=function(u,Q){n--;
y[u]=Q;n==0&&U(y)},h,b=0;b<l.length;b++)h=l[b],eGH(h,A,_.P6(C,b));
else D(void 0)})};
_.wf=function(){var l,D,U=new _.X0(function(n,y){l=n;D=y});
return new tM8(U,l,D)};
_.X0.prototype.then=function(l,D,U){return X3k(this,Se(typeof l==="function"?l:null),Se(typeof D==="function"?D:null),U)};
Jfv(_.X0);kZ_=function(l,D,U,n){SZ7(l,RGh(D||_.RR,U||null,n))};
_.Kb=function(l,D){D=Se(D);D=RGh(D,D);D.always=!0;SZ7(l,D);return l};
_.X0.prototype.finally=function(l){var D=this;l=Se(l);return new _.X0(function(U,n){kZ_(D,function(y){l();U(y)},function(y){l();
n(y)})})};
_.X0.prototype.thenCatch=function(l,D){return X3k(this,null,Se(l),D)};
_.X0.prototype.catch=_.X0.prototype.thenCatch;_.X0.prototype.cancel=function(l){if(this.state_==0){var D=new _.dk(l);_.kN(function(){d11(this,D)},this)}};
var d11=function(l,D){if(l.state_==0)if(l.parent_){var U=l.parent_;if(U.callbackEntries_){for(var n=0,y=null,A=null,C=U.callbackEntries_;C&&(C.always||(n++,C.child==l&&(y=C),!(y&&n>1)));C=C.next)y||(A=C);y&&(U.state_==0&&n==1?d11(U,D):(A?(n=A,n.next==U.callbackEntriesTail_&&(U.callbackEntriesTail_=n),n.next=n.next.next):KvH(U),cfg(U,y,3,D)))}l.parent_=null}else l.resolve_(3,D)},SZ7=function(l,D){l.callbackEntries_||l.state_!=2&&l.state_!=3||p3z(l);
l.callbackEntriesTail_?l.callbackEntriesTail_.next=D:l.callbackEntries_=D;l.callbackEntriesTail_=D},X3k=function(l,D,U,n){var y=RGh(null,null,null);
y.child=new _.X0(function(A,C){y.JSC$9850_onFulfilled=D?function(h){try{var b=D.call(n,h);A(b)}catch(u){C(u)}}:A;
y.JSC$9850_onRejected=U?function(h){try{var b=U.call(n,h);b===void 0&&h instanceof _.dk?C(h):A(b)}catch(u){C(u)}}:C});
y.child.parent_=l;SZ7(l,y);return y.child};
_.X0.prototype.unblockAndFulfill_=function(l){this.state_=0;this.resolve_(2,l)};
_.X0.prototype.unblockAndReject_=function(l){this.state_=0;this.resolve_(3,l)};
_.X0.prototype.resolve_=function(l,D){this.state_==0&&(this===D&&(l=3,D=new TypeError("xa")),this.state_=1,Zkv(D,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=D,this.state_=l,this.parent_=null,p3z(this),l!=3||D instanceof _.dk||x1h(this,D)))};
var Zkv=function(l,D,U,n){if(l instanceof _.X0)return kZ_(l,D,U,n),!0;if(Lvz(l))return l.then(D,U,n),!0;if(_.I_(l))try{var y=l.then;if(typeof y==="function")return jN_(l,y,D,U,n),!0}catch(A){return U.call(n,A),!0}return!1},jN_=function(l,D,U,n,y){var A=!1,C=function(b){A||(A=!0,U.call(y,b))},h=function(b){A||(A=!0,n.call(y,b))};
try{D.call(l,C,h)}catch(b){h(b)}},p3z=function(l){l.executing_||(l.executing_=!0,_.kN(l.executeCallbacks_,l))},KvH=function(l){var D=null;
l.callbackEntries_&&(D=l.callbackEntries_,l.callbackEntries_=D.next,D.next=null);l.callbackEntries_||(l.callbackEntriesTail_=null);return D};
_.X0.prototype.executeCallbacks_=function(){for(var l;l=KvH(this);)cfg(this,l,this.state_,this.result_);this.executing_=!1};
cfg=function(l,D,U,n){if(U==3&&D.JSC$9850_onRejected&&!D.always)for(;l&&l.hadUnhandledRejection_;l=l.parent_)l.hadUnhandledRejection_=!1;if(D.child)D.child.parent_=null,FvH(D,U,n);else try{D.always?D.JSC$9850_onFulfilled.call(D.context):FvH(D,U,n)}catch(y){ue_.call(null,y)}MMy.put(D)};
FvH=function(l,D,U){D==2?l.JSC$9850_onFulfilled.call(l.context,U):l.JSC$9850_onRejected&&l.JSC$9850_onRejected.call(l.context,U)};
x1h=function(l,D){l.hadUnhandledRejection_=!0;_.kN(function(){l.hadUnhandledRejection_&&ue_.call(null,D)})};
ue_=yg;_.dk=function(l){_.D9.call(this,l)};
_.HI(_.dk,_.D9);_.dk.prototype.name="cancel";var tM8=function(l,D,U){this.promise=l;this.resolve=D;this.reject=U};var cb;_.RA=function(l,D){_.Xa.call(this);this.JSC$9862_interval_=l||1;this.timerObject_=D||_.nC;this.boundTick_=(0,_.jU)(this.tick_,this);this.last_=_.I7()};
_.HI(_.RA,_.Xa);_.W=_.RA.prototype;_.W.enabled=!1;_.W.JSC$9864_timer_=null;_.W.setInterval=function(l){this.JSC$9862_interval_=l;this.JSC$9864_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9864_timer_&&this.stop()};
_.W.tick_=function(){if(this.enabled){var l=_.I7()-this.last_;l>0&&l<this.JSC$9862_interval_*.8?this.JSC$9864_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9862_interval_-l):(this.JSC$9864_timer_&&(this.timerObject_.clearTimeout(this.JSC$9864_timer_),this.JSC$9864_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.W.start=function(){this.enabled=!0;this.JSC$9864_timer_||(this.JSC$9864_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9862_interval_),this.last_=_.I7())};
_.W.stop=function(){this.enabled=!1;this.JSC$9864_timer_&&(this.timerObject_.clearTimeout(this.JSC$9864_timer_),this.JSC$9864_timer_=null)};
_.W.disposeInternal=function(){_.RA.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
cb=function(l,D,U){if(typeof l==="function")U&&(l=(0,_.jU)(l,U));else if(l&&typeof l.handleEvent=="function")l=(0,_.jU)(l.handleEvent,l);else throw Error("ya");return Number(D)>2147483647?-1:_.nC.setTimeout(l,D||0)};
_.og1=function(l){var D=null;return(new _.X0(function(U,n){D=cb(function(){U(void 0)},l);
D==-1&&n(Error("za"))})).thenCatch(function(U){_.nC.clearTimeout(D);
throw U;})};var aj=function(l){_.xT.call(this);this.streamzLogger=l;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9868_flushTimer=new _.RA(this.flushInterval);this.JSC$9868_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.m7(this,this.JSC$9868_flushTimer)};
_.Z(aj,_.xT);aj.prototype.sendIsolatedPayload=function(l){this.shouldSendIsolatedPayload=l;this.invocationLimit=1};
var w3r=function(l){l.JSC$9868_flushTimer.enabled||l.JSC$9868_flushTimer.start();l.invocationCount++;l.invocationCount>=l.invocationLimit&&l.snapshotAndFlush()};
aj.prototype.snapshotAndFlush=function(){var l=this.metricMap.values();l=[].concat(_.zz(l)).filter(function(D){return D.cellMap.size});
l.length&&this.streamzLogger.flush(l,this.shouldSendIsolatedPayload);rfH(l);this.invocationCount=0;this.JSC$9868_flushTimer.enabled&&this.JSC$9868_flushTimer.stop()};
aj.prototype.addNewCounter=function(l){var D=_.EW.apply(1,arguments);this.metricMap.has(l)||this.metricMap.set(l,new TMg(l,D))};
aj.prototype.addNewEventMetric=function(l){var D=_.EW.apply(1,arguments);this.metricMap.has(l)||this.metricMap.set(l,new Ipg(l,D))};
var zG5=function(l,D){return l.disabledMetrics.has(D)?void 0:l.metricMap.get(D)};
aj.prototype.JSC$9868_incrementCounter=function(l){this.JSC$9868_incrementCounterBy(l,1,_.EW.apply(1,arguments))};
aj.prototype.JSC$9868_incrementCounterBy=function(l,D){var U=_.EW.apply(2,arguments),n=zG5(this,l);n&&n instanceof TMg&&(n.JSC$9807_incrementCounterBy(D,U),w3r(this))};
aj.prototype.record=function(l,D){var U=_.EW.apply(2,arguments),n=zG5(this,l);n&&n instanceof Ipg&&(n.record(D,U),w3r(this))};
var rfH=function(l){for(var D=0;D<l.length;D++)l[D].clear()};_.pb=function(l,D,U){U=U===void 0?{}:U;D=Error.call(this,D);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=l;this.metadata=U;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(_.pb,Error);_.pb.prototype.toString=function(){var l="RpcError("+(PlN(this.code)||String(this.code))+")";this.message&&(l+=": "+this.message);return l};_.fQ8=_.nC.JSON.parse;_.xN=_.nC.JSON.stringify;_.MA=_.nC.JSON.parse;_.$1g=function(l){switch(l){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 Ntz=function(l){switch(l){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var sN5,Egv=function(){};
_.HI(Egv,_.btB);Egv.prototype.createInstance=function(){return new XMLHttpRequest};
sN5=new Egv;_.je=function(l){_.Xa.call(this);this.headers=new Map;this.JSC$9877_xmlHttpFactory_=l||null;this.JSC$9877_active_=!1;this.JSC$9877_xhr_=null;this.JSC$9877_lastUri_="";this.JSC$9877_lastErrorCode_=0;this.JSC$9877_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9877_timeoutId_=null;this.responseType_="";this.JSC$9877_withCredentials_=!1};
_.HI(_.je,_.Xa);var Tty=/^https?$/i,IQ7=["POST","PUT"],Hkg=[],sdd=function(l,D,U,n,y,A,C){var h=new _.je;Hkg.push(h);D&&h.listen("complete",D);h.listenOnce("ready",h.cleanupSend_);A&&(h.timeoutInterval_=Math.max(0,A));C&&(h.JSC$9877_withCredentials_=C);h.send(l,U,n,y)};
_.je.prototype.cleanupSend_=function(){this.dispose();_.fC(Hkg,this)};
_.je.prototype.send=function(l,D,U,n){if(this.JSC$9877_xhr_)throw Error("Aa`"+this.JSC$9877_lastUri_+"`"+l);D=D?D.toUpperCase():"GET";this.JSC$9877_lastUri_=l;this.JSC$9877_lastError_="";this.JSC$9877_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9877_active_=!0;this.JSC$9877_xhr_=this.createXhr();this.JSC$9877_xhr_.onreadystatechange=Se((0,_.jU)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9877_xhr_.open(D,String(l),!0),this.inOpen_=!1}catch(C){YZ7(this,C);return}l=U||"";U=new Map(this.headers);
if(n)if(Object.getPrototypeOf(n)===Object.prototype)for(var y in n)U.set(y,n[y]);else if(typeof n.keys==="function"&&typeof n.get==="function"){y=_.B(n.keys());for(var A=y.next();!A.done;A=y.next())A=A.value,U.set(A,n.get(A))}else throw Error("Ba`"+String(n));n=Array.from(U.keys()).find(function(C){return"content-type"==C.toLowerCase()});
y=_.nC.FormData&&l instanceof _.nC.FormData;!_.rl(IQ7,D)||n||y||U.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");D=_.B(U);for(n=D.next();!n.done;n=D.next())U=_.B(n.value),n=U.next().value,U=U.next().value,this.JSC$9877_xhr_.setRequestHeader(n,U);this.responseType_&&(this.JSC$9877_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9877_xhr_&&this.JSC$9877_xhr_.withCredentials!==this.JSC$9877_withCredentials_&&(this.JSC$9877_xhr_.withCredentials=this.JSC$9877_withCredentials_);
try{this.JSC$9877_timeoutId_&&(clearTimeout(this.JSC$9877_timeoutId_),this.JSC$9877_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9877_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9877_xhr_.send(l),this.inSend_=!1}catch(C){YZ7(this,C)}};
_.je.prototype.createXhr=function(){return this.JSC$9877_xmlHttpFactory_?this.JSC$9877_xmlHttpFactory_.createInstance():sN5.createInstance()};
_.je.prototype.timeout_=function(){typeof PGH!="undefined"&&this.JSC$9877_xhr_&&(this.JSC$9877_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9877_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var YZ7=function(l,D){l.JSC$9877_active_=!1;l.JSC$9877_xhr_&&(l.inAbort_=!0,l.JSC$9877_xhr_.abort(),l.inAbort_=!1);l.JSC$9877_lastError_=D;l.JSC$9877_lastErrorCode_=5;Okh(l);VMH(l)},Okh=function(l){l.errorDispatched_||(l.errorDispatched_=!0,l.dispatchEvent("complete"),l.dispatchEvent("error"))};
_.je.prototype.abort=function(l){this.JSC$9877_xhr_&&this.JSC$9877_active_&&(this.JSC$9877_active_=!1,this.inAbort_=!0,this.JSC$9877_xhr_.abort(),this.inAbort_=!1,this.JSC$9877_lastErrorCode_=l||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),VMH(this))};
_.je.prototype.disposeInternal=function(){this.JSC$9877_xhr_&&(this.JSC$9877_active_&&(this.JSC$9877_active_=!1,this.inAbort_=!0,this.JSC$9877_xhr_.abort(),this.inAbort_=!1),VMH(this,!0));_.je.superClass_.disposeInternal.call(this)};
_.je.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)itH(this);else this.onReadyStateChangeEntryPoint_()};
_.je.prototype.onReadyStateChangeEntryPoint_=function(){itH(this)};
var itH=function(l){if(l.JSC$9877_active_&&typeof PGH!="undefined")if(l.inSend_&&_.Fa(l)==4)setTimeout(l.onReadyStateChange_.bind(l),0);else if(l.dispatchEvent("readystatechange"),l.isComplete()){l.JSC$9877_active_=!1;try{if(l.isSuccess())l.dispatchEvent("complete"),l.dispatchEvent("success");else{l.JSC$9877_lastErrorCode_=6;try{var D=_.Fa(l)>2?l.JSC$9877_xhr_.statusText:""}catch(U){D=""}l.JSC$9877_lastError_=D+" ["+l.getStatus()+"]";Okh(l)}}finally{VMH(l)}}},VMH=function(l,D){if(l.JSC$9877_xhr_){l.JSC$9877_timeoutId_&&
(clearTimeout(l.JSC$9877_timeoutId_),l.JSC$9877_timeoutId_=null);
var U=l.JSC$9877_xhr_;l.JSC$9877_xhr_=null;D||l.dispatchEvent("ready");try{U.onreadystatechange=null}catch(n){}}};
_.je.prototype.isActive=function(){return!!this.JSC$9877_xhr_};
_.je.prototype.isComplete=function(){return _.Fa(this)==4};
_.je.prototype.isSuccess=function(){var l=this.getStatus(),D;if(!(D=Ntz(l))){if(l=l===0)l=yA7(String(this.JSC$9877_lastUri_)),l=!Tty.test(l);D=l}return D};
_.Fa=function(l){return l.JSC$9877_xhr_?l.JSC$9877_xhr_.readyState:0};
_.W=_.je.prototype;_.W.getStatus=function(){try{return _.Fa(this)>2?this.JSC$9877_xhr_.status:-1}catch(l){return-1}};
_.W.getResponseText=function(){try{return this.JSC$9877_xhr_?this.JSC$9877_xhr_.responseText:""}catch(l){return""}};
_.W.getResponse=function(){try{if(!this.JSC$9877_xhr_)return null;if("response"in this.JSC$9877_xhr_)return this.JSC$9877_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9877_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9877_xhr_)return this.JSC$9877_xhr_.mozResponseArrayBuffer}return null}catch(l){return null}};
_.W.getAllResponseHeaders=function(){return this.JSC$9877_xhr_&&_.Fa(this)>=2?this.JSC$9877_xhr_.getAllResponseHeaders()||"":""};
_.W.getLastError=function(){return typeof this.JSC$9877_lastError_==="string"?this.JSC$9877_lastError_:String(this.JSC$9877_lastError_)};var QGo=function(){};
QGo.prototype.send=function(l,D,U){D=D===void 0?function(){}:D;
U=U===void 0?function(){}:U;
sdd(l.url,function(n){n=n.target;n.isSuccess()?D(n.getResponseText()):U(n.getStatus())},l.requestType,l.body,l.requestHeaders,l.timeoutMillis,l.withCredentials)};
QGo.prototype.getTransmissionType=function(){return 1};var lJ1=function(l,D){this.aoX=l;this.event=D;this.startTime=tA()},Rg3;
lJ1.prototype.done=function(){this.aoX.qP(this.event,tA()-this.startTime)};
var oP=function(){hX.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.Z(oP,hX);_.wx=function(l,D,U){var n=tA();D=D();l.qP(U,tA()-n);return D};
Rg3=function(){oP.apply(this,arguments)};
_.Z(Rg3,oP);_.W=Rg3.prototype;_.W.bBi=function(){};
_.W.vy=function(){};
_.W.qP=function(){};
_.W.logError=function(){};
_.W.wa=function(){};
_.W.jBt=function(){};
_.W.khO=function(){};
_.W.zft=function(){};
var DK_=function(l){oP.call(this);var D=this;this.ey=l;this.TEST_ONLY={s1o:function(){return D.ey},
getExperimentIds:function(){return D.ey.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void D.ey.dispose()})};
_.Z(DK_,oP);_.W=DK_.prototype;_.W.update=function(l){this.ey.dispose();this.ey=l};
_.W.vy=function(l){this.ey.vy(l)};
_.W.qP=function(l,D){this.ey.qP(l,D)};
_.W.logError=function(l){this.ey.logError(l)};
_.W.wa=function(){this.ey.wa()};
_.W.jBt=function(l){this.ey.jBt(l)};
_.W.khO=function(l){this.ey.khO(l)};
_.W.zft=function(l){this.ey.zft(l)};
_.W.bBi=function(l){this.ey.bBi(l)};
var UKH=function(l,D){_.xT.call(this);var U=this;this.callback=l;this.aWo=D;this.wZc=-D;this.addOnDisposeCallback(function(){return void clearTimeout(U.timer)})};
_.Z(UKH,_.xT);var nZ8=function(l){if(l.timer===void 0){var D=Math.max(0,l.wZc+l.aWo-tA());l.timer=setTimeout(function(){try{l.callback()}finally{l.wZc=tA(),l.timer=void 0}},D)}},yc1=function(l,D){oP.call(this);
this.metrics=l;this.vA=D};
_.Z(yc1,oP);_.W=yc1.prototype;_.W.bBi=function(l){this.metrics.jua.record(l,this.vA)};
_.W.vy=function(l){this.metrics.eventCount.increment(l,this.vA)};
_.W.qP=function(l,D){this.metrics.kqO.record(D,l,this.vA)};
_.W.logError=function(l){this.metrics.errorCount.increment(l,this.vA)};
_.W.jBt=function(l){this.metrics.wd2.increment(l,this.vA)};
_.W.khO=function(l){this.metrics.hmF.increment(l,this.vA)};
_.W.zft=function(l){this.metrics.ttM.increment(l,this.vA)};
var Zto=function(l,D){D=D===void 0?[]:D;var U={vA:l.vA||"_",bLO:l.bLO||[],bS6:l.bS6|0,destinationUrl:l.destinationUrl,hA6:l.hA6||function(){},
b0i:l.b0i||function(A,C){return M_c(A,C,U.hA6,U.destinationUrl)}},n=U.b0i("51",U.bLO.concat(D));
yc1.call(this,{jua:new rAv(n),errorCount:new Nsv(n),eventCount:new fyh(n),kqO:new $x8(n),f7T:new z3m(n),wd2:new sjk(n),hmF:new ET_(n),ttM:new Tsm(n)},U.vA);var y=this;this.TEST_ONLY={getExperimentIds:function(){return y.options.bLO.concat(y.gwX).sort(function(A,C){return A-C})}};
this.options=U;this.service=n;this.iiE=!l.b0i;this.flushDebouncer=new UKH(function(){return void y.service.snapshotAndFlush()},U.bS6);
this.addOnDisposeCallback(function(){y.flushDebouncer.dispose();y.iiE&&y.service.dispose()});
(this.gwX=D.slice()).sort(_.xs$)};
_.Z(Zto,yc1);Zto.prototype.wa=function(){nZ8(this.flushDebouncer)};var $L_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z($L_,_.Bh);_.NKG=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(_.NKG,_.Bh);var xX=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l,0,xX.messageId)};
_.Z(xX,_.Bh);var Ac5=_.TTl(xX);xX.messageId="bfkj";var IQ9=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(IQ9,_.Bh);var Wdy=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Wdy,_.Bh);var Bc7=_.eD(Wdy);_.Au=function(){var l=this;this.promise=new Promise(function(D,U){l.resolve=D;l.reject=U})};_.rx=function(l){_.xT.call(this);var D=this;this.jJX=Math.floor(Math.random()*200);this.kfX=new Wdy;if("challenge"in l&&Ac5(l.challenge)){var U=_.Zo(l.challenge,4,void 0,pm);var n=_.Zo(l.challenge,5,void 0,pm);_.Zo(l.challenge,7,void 0,pm)&&(this.kfX=Bc7(_.Zo(l.challenge,7,void 0,pm)))}else U=l.program,n=l.globalName;this.addOnDisposeCallback(function(){var R,a,S;return _.P(function(d){if(d.nextAddress==1)return d.yield(D.gbO,2);R=d.yieldResult;a=R.iBa;(S=a)==null||S();_.Kz(d)})});
this.es=eg9(l.xu6||{},this.kfX);_.m7(this,this.es);var y=new _.Au;this.gbO=y.promise;this.es.vy("t");var A=this.es.share(),C=new lJ1(A,"t"),h=function(R,a,S,d){if(!D.es.isDisposed()){var c="k";a?c="h":S&&(c="u");c!=="k"?d!==0&&(D.es.vy(c),D.es.qP(c,R)):D.jJX<=0?(D.es.vy(c),D.es.qP(c,R),D.jJX=Math.floor(Math.random()*200)):D.jJX--}},b=function(R,a,S,d){Promise.resolve().then(function(){C.done();
A.wa();A.dispose();y.resolve({pKZ:R,iBa:a,zNw:S,kCE:d})})};
if(!_.nC[n])throw this.es.logError(25),Error("Ca");if(!_.nC[n].a)throw this.es.logError(26),Error("Da");try{var u=_.nC[n].a;n=[];for(var Q=[],G=Hk_(this.kfX),J=0;J<G.length;J++)n.push(G[J]),Q.push(1);var L=YZ9(this.kfX);for(G=0;G<L.length;G++)n.push(L[G]),Q.push(2);this.f6S=_.B(u(U,b,!0,l.jzf,h,[n,Q],_.Zo(this.kfX,5),!1)).next().value;this.vAW=y.promise.then(function(){})}catch(R){throw this.es.logError(28),R;
}};
_.Z(_.rx,_.xT);_.rx.prototype.snapshot=function(l){if(this.isDisposed())throw Error("Ea");this.es.vy("n");var D=this.es.share();return this.gbO.then(function(U){var n=U.pKZ;return new Promise(function(y){var A=new lJ1(D,"n");n(function(C){A.done();D.bBi(C.length);D.wa();D.dispose();y(C)},[l.rK,
l.sDt,l.iJd,l.wUi])})})};
_.rx.prototype.f6v=function(l){this.gbO.then(function(D){var U;(U=D.zNw)==null||U(l)})};
_.rx.prototype.t2v=function(l,D){return this.gbO.then(function(U){var n;return(n=U.kCE)==null?void 0:n(l,D,!1)})};
_.rx.prototype.vYW=function(){return this.es.share()};var Cl7=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Cl7,_.Bh);var JOc=_.TTl(Cl7);var hgk=function(){this.promises={};this.kEV=null},Plv=function(){hgk.instance||(hgk.instance=new hgk);
return hgk.instance},gZy=function(l,D){return btk(l,_.MZ(D,$L_,1,pm),_.MZ(D,_.NKG,2,pm),_.Zo(D,3,void 0,pm))},btk=function(l,D,U,n){if(!D&&!U)return Promise.resolve();
if(!n)return SG9(D,U);var y;(y=l.promises)[n]||(y[n]=new Promise(function(A,C){SG9(D,U).then(function(){l.kEV=n;A()},function(h){delete l.promises[n];
C(h)})}));
return l.promises[n]};var ui_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(ui_,_.Bh);var vZz=function(l,D){return _.jt(l,1,D)},QG5=function(l,D){return _.jt(l,2,D)};var zm=function(l){_.xT.call(this);var D=this;this.options=l;this.zJu=new _.Au;this.vAW=this.zJu.promise;this.hFW=new _.Au;this.nZt=1;this.oSv=new _.Au;this.tbv=[];this.mti=l.mti||function(){};
this.prO=new DK_(eg9(l.xu6||{}));G88(this,l.ta,l.rn3,l.ibP,l.qiT,Object.assign({},Jcv,l.mzu||{}));this.addOnDisposeCallback(function(){return void LdH(D)})};
_.Z(zm,_.xT);zm.prototype.snapshot=function(l){var D=this;return _.P(function(U){switch(U.nextAddress){case 1:if(D.isDisposed())throw Error("Ea");if(D.y0||D.cph){U.jumpTo(2);break}return U.yield(D.hFW.promise,2);case 2:if(!D.y0){U.jumpTo(4);break}return U.yield(D.y0.snapshot(l),5);case 5:return U.return(U.yieldResult);case 4:throw D.cph;}})};
var qGh=function(l){var D;return _.P(function(U){if(l.isDisposed())throw Error("Ea");(D=l.y5)!=null&&(D.endTimeMs=0,D.resolver(1));return U.yield(l.oSv.promise,0)})},LdH=function(l){l.cph=Error("Ga");
l.hFW.resolve();Ok3(l.zJu.promise);l.zJu.reject(Error("Ga"));l.prO.dispose();Promise.all(l.tbv).then(function(){var U;return _.P(function(n){(U=l.y0)==null||U.dispose();l.y0=void 0;_.Kz(n)})});
l.tbv=[];var D;(D=l.y5)!=null&&(D.endTimeMs=0,D.resolver(1));Ok3(l.oSv.promise);l.oSv.reject(Error("Ga"))};
zm.prototype.f6v=function(l){var D,U;(D=this.y0)==null||(U=D.f6v)==null||U.call(D,l)};
zm.prototype.t2v=function(l,D){var U,n,y;return(y=(U=this.y0)==null?void 0:(n=U.t2v)==null?void 0:n.call(U,l,D))!=null?y:Promise.resolve()};
var M_7=function(l,D){var U=l.mti;l.mti=function(){U();D()}},Rgh=function(l,D){l.isDisposed()||(l.y0=D,l.prO.update(D.vYW()),l.hFW.resolve(),l.zJu.resolve(void 0),l.mti())};
zm.prototype.handleError=function(l){if(!this.isDisposed()){this.cph=l;this.hFW.resolve();var D,U;(U=(D=this.options).po8)==null||U.call(D,l)}};
var Zt5=function(l,D){D&&(Promise.all(l.tbv).then(function(){return void D.dispose()}),l.tbv=[])},fb=function(l,D){l.nZt=D;
var U,n;(n=(U=l.options).jGG)==null||n.call(U,D)},eg7=function(l){l.isDisposed()||(l.oSv.resolve(),l.oSv=new _.Au)},G88=function(l,D,U,n,y,A){n=n===void 0?Plv():n;
y=y===void 0?Promise.resolve(void 0):y;var C,h,b,u,Q,G,J,L,R,a,S,d;_.P(function(c){switch(c.nextAddress){case 1:return c.yield(0,3);case 3:h=null;if(!C){c.jumpTo(6);break}fb(l,7);_.ZY(c,7);return c.yield(Kw(C.snapshot({}),A.e0d,function(){return Promise.resolve("E:CTO")}),9);
case 9:h=c.yieldResult;_.WG(c,6);break;case 7:_.kF(c),h="E:UCE";case 6:b=void 0,u=C?A.eJ5:A.i8X,Q=new Mx(u,A.xkr,A.b8V,A.ans),G=1;case 10:if(!(G<=A.maxAttempts)){c.jumpTo(12);break}if(G===1){c.jumpTo(13);break}fb(l,0);l.y5=new mKz(Q.getValue(),A.bzr,A.go5);return c.yield(l.y5.promise,14);case 14:J=c.yieldResult,l.y5=void 0,J===1?(G=1,Q.reset()):jw_(Q);case 13:_.ZY(c,15);L=void 0;if(U){L=U;c.jumpTo(17);break}fb(l,5);R=n.kEV;return c.yield(Kw(aJ7(D,R,h),A.byf,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:L=c.yieldResult;case 17:return fb(l,3),c.yield(Kw(gZy(n,L),A.y4l,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return fb(l,8),c.yield(y,20);case 20:return a=new _.rx({challenge:L,xu6:l.options.xu6,jzf:l.options.jzf}),c.yield(Kw(a.vAW,A.m05,function(){return Promise.reject(Error("Ja"))}),21);
case 21:b=a;c.jumpTo(12);break;case 15:S=_.kF(c),l.handleError(S),eg7(l);case 11:G++;c.jumpTo(10);break;case 12:if(l.isDisposed()){c.jumpTo(5);break}b&&(U=void 0,Zt5(l,C),C=b,Rgh(l,b),eg7(l));fb(l,2);l.y5=new mKz(A.e9r,A.bzr,A.go5);return c.yield(l.y5.promise,22);case 22:l.y5=void 0;if(l.isDisposed()){c.jumpTo(5);break}c.jumpTo(3);break;case 5:(d=C)==null||d.dispose(),_.Kz(c)}})};
zm.prototype.vYW=function(){return this.prO.share()};
var Jcv={e9r:432E5,bzr:3E5,go5:10,e0d:1E4,byf:3E4,y4l:3E4,m05:6E4,i8X:1E3,eJ5:6E4,xkr:6E5,b8V:.25,ans:2,maxAttempts:10},mKz=function(l,D,U){var n=this;this.endTimeMs=Date.now()+l;this.promise=new Promise(function(A){n.resolver=A});
var y=function(){var A=n.endTimeMs-Date.now();A<=U?n.resolver(0):setTimeout(y,Math.min(A,D))};
y()};var t_8,Kd9=(t_8=Math.imul)!=null?t_8:function(l,D){return l*D|0},cE=[196,
200,224,18],$N=function(l,D,U){U=U===void 0?[]:U;this.maxItems=l;this.k7=D===void 0?0:D;this.uF=U},XS8=function(l){var D=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!D)return new $N(l);var U=D.split(",");if(U.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new $N(l);D=U.slice(1);D.length===1&&D[0]===""&&(D=[]);U=Number(U[0]);return isNaN(U)||U<0||U>D.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new $N(l)):new $N(l,U,D)};
$N.prototype.serialize=function(){return String(this.k7)+","+this.uF.join()};
$N.prototype.insert=function(l,D){var U=void 0;if(this.uF[this.k7]!==l){var n=this.uF.indexOf(l);n!==-1?(this.uF.splice(n,1),n<this.k7&&this.k7--,this.uF.splice(this.k7,0,l)):(U=this.uF[this.k7],this.uF[this.k7]=l)}this.k7=(this.k7+1)%this.maxItems;l=k8s("iU5q-!O9@$",this.serialize());U&&l&&D(U);return l};
var SG7=function(l,D){this.wYv=D;try{var U=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(n){U=!1}U&&(this.index=XS8(l))},k8r=function(l,D,U,n,y){var A=l.index?_.wx(l.wYv,function(){return jGo(l.index,pSB(D),U,n,y)},"W"):"u";
l.wYv.zft(A)},dKv=function(l,D,U){var n=_.B(l.index?_.wx(l.wYv,function(){return Fdo(pSB(D),U)},"R"):["u"]),y=n.next().value;
n=n.next().value;l.wYv.khO(y);return n};var Kd1={toString:function(l){var D=[],U=0;l-=-2147483648;D[U++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(l%52);for(l=Math.floor(l/52);l>0;)D[U++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(l%62),l=Math.floor(l/62);return D.join("")}};var xK7=function(l){l=cc5(l);for(var D=2654435769,U=2654435769,n=314159265,y=l.length,A=y,C=0,h=function(){D-=U;D-=n;D^=n>>>13;U-=n;U-=D;U^=D<<8;n-=D;n-=U;n^=U>>>13;D-=U;D-=n;D^=n>>>12;U-=n;U-=D;U^=D<<16;n-=D;n-=U;n^=U>>>5;D-=U;D-=n;D^=n>>>3;U-=n;U-=D;U^=D<<10;n-=D;n-=U;n^=U>>>15};A>=12;A-=12,C+=12)D+=pSk(l,C),U+=pSk(l,C+4),n+=pSk(l,C+8),h();
n+=y;switch(A){case 11:n+=l[C+10]<<24;case 10:n+=l[C+9]<<16;case 9:n+=l[C+8]<<8;case 8:U+=l[C+7]<<24;case 7:U+=l[C+6]<<16;case 6:U+=l[C+5]<<8;case 5:U+=l[C+4];case 4:D+=l[C+3]<<24;case 3:D+=l[C+2]<<16;case 2:D+=l[C+1]<<8;case 1:D+=l[C]}h();return Kd1.toString(n)},cc5=function(l){for(var D=[],U=0;U<l.length;U++)D.push(l.charCodeAt(U));
return D},pSk=function(l,D){return l[D]+(l[D+1]<<8)+(l[D+2]<<16)+(l[D+3]<<24)};var Ni=function(l){_.xT.call(this);this.l9=l;this.i6t=new _.Au};
_.Z(Ni,_.xT);var jG5=function(l,D){var U=setTimeout(function(){l.i6t.resolve()},D);
l.addOnDisposeCallback(function(){return void clearTimeout(U)})};
Ni.prototype.bhv=function(l,D){var U=this.fL(l);D==null||D(U);return _.wx(this.l9,function(){return _.c2(U,2)},this.eVO)};
var Fd5=function(l,D,U,n){return _.wx(l.l9,function(){return U?l.bhv(D,n):l.fL(D,n)},l.cVU)},oZ8=function(l,D,U,n){Ni.call(this,l);
this.xu8=D;this.cVo=U;this.cVU="m";this.eVO="x";this.bh2=0;jG5(this,n)};
_.Z(oZ8,Ni);oZ8.prototype.fL=function(l,D){var U=this;this.l9.vy(this.cVU);++this.bh2>=this.cVo&&this.i6t.resolve();var n=l();l=_.wx(this.l9,function(){return U.xu8(n)},"C");
if(l===void 0)throw new Bb(17,"YNJ:Undefined");if(!(l instanceof Uint8Array))throw new Bb(18,"ODM:Invalid");D==null||D(l);return l};
var wSh=function(l,D,U){Ni.call(this,l);this.eMZ=D;this.cVU="f";this.eVO="z";jG5(this,U)};
_.Z(wSh,Ni);wSh.prototype.fL=function(){return this.eMZ};
var rc1=function(l,D,U){Ni.call(this,l);this.bJd=D;this.cVU="w";this.eVO="z";jG5(this,U)};
_.Z(rc1,Ni);rc1.prototype.fL=function(){var l=this;return _.wx(this.l9,function(){return _.Oc(l.bJd)},"d")};
rc1.prototype.bhv=function(){return this.bJd};
var zg1=function(l,D){Ni.call(this,l);this.error=D;this.cVU="e";this.eVO="y"};
_.Z(zg1,Ni);var fJh=function(l,D){var U=(D(l.error.message)+":"+D(l.error.stack)).substring(0,2048);D=U.length+1;U=oZ$(U);var n=new Uint8Array(4+U.length);n.set([42,D&127|128,D>>7,l.error.code]);n.set(U,4);return n};
zg1.prototype.fL=function(){if(this.qdc)return this.qdc;this.qdc=fJh(this,function(l){return"_"+xK7(l)});
return fJh(this,function(l){return l})};
var $K1=function(l,D,U){Ni.call(this,l);this.sbZ=D;this.clientState=U;this.cVU="S";this.eVO="q"};
_.Z($K1,Ni);$K1.prototype.fL=function(){var l=Math.floor(Date.now()/1E3),D=[Math.random()*255,Math.random()*255],U=D.concat([this.sbZ&255,this.clientState],[l>>24&255,l>>16&255,l>>8&255,l&255]);l=new Uint8Array(2+U.length);l[0]=34;l[1]=U.length;l.set(U,2);U=l.subarray(2);for(var n=D=D.length;n<U.length;++n)U[n]^=U[n%D];this.l9.jBt(this.clientState);return l};var Ncz={cYs:3E4,pId:2E4},sY=function(l){_.xT.call(this);var D=this;this.qM7=new _.Au;this.xuu=0;this.wb=void 0;this.state=2;this.vm=l.vm;this.ta=l.ta;this.mzu=Object.assign({},Ncz,l.mzu||{});this.gW=l.vm.vYW();var U;this.onError=(U=l.onError)!=null?U:function(){};
this.nPu=l.nPu||!1;if(sGy(l)){var n=this.vm;this.aqF=function(){return qGh(n).catch(function(C){C=D.reportError(new Bb(D.xa?20:32,"TRG:Disposed",C));D.wb=C;var h;(h=D.xa)==null||h.dispose();D.xa=void 0;D.qM7.reject(C)})};
M_7(n,function(){return void EZ_(D)});
n.nZt===2&&EZ_(this)}else this.aqF=l.nq5,EZ_(this);var y=this.gW.share();y.vy("o");var A=new lJ1(y,"o");this.qM7.promise.then(function(){A.done();y.wa();y.dispose()},function(){return void y.dispose()});
this.addOnDisposeCallback(function(){D.xa?(D.xa.dispose(),D.xa=void 0):D.wb?D.gW.wa():(D.wb=D.reportError(new Bb(32,"TNP:Disposed")),D.gW.wa(),D.qM7.reject(D.wb))});
_.m7(this,this.gW)};
_.Z(sY,_.xT);sY.prototype.i0v=function(){return this.qM7.promise};
var Tcy=function(l,D){if(!(D instanceof Bb))if(D instanceof _.pb){var U=Error(D.toString());U.stack=D.stack;D=new Bb(11,"EBH:Error",U)}else D=new Bb(12,"BSO:Unknown",D);return l.reportError(D)},EZ_=function(l){var D,U,n,y,A,C,h,b,u,Q,G,J,L,R,a;
return _.P(function(S){switch(S.nextAddress){case 1:D=void 0;l.xuu++;U=new _.Au;l.vm instanceof zm&&l.vm.tbv.push(U.promise);if(!l.nPu){S.jumpTo(2);break}n=new _.Au;setTimeout(function(){return void n.resolve()});
return S.yield(n.promise,2);case 2:return y=l.gW.share(),_.ZY(S,4,5),l.state=5,A={},C=[],S.yield(Kw(l.vm.snapshot({rK:A,iJd:C}),l.mzu.pId,function(){return Promise.reject(new Bb(15,"MDA:Timeout"))}),7);
case 7:h=S.yieldResult;if(l.isDisposed())throw new Bb(l.xa?20:32,"MDA:Disposed");b=C[0];l.state=6;return S.yield(Kw(IJh(l.ta,h),l.mzu.cYs,function(){return Promise.reject(new Bb(10,"BWB:Timeout"))}),8);
case 8:u=S.yieldResult;if(l.isDisposed())throw new Bb(l.xa?20:32,"BWB:Disposed");l.state=7;D=_.wx(y,function(){var c=Hth(l,u,U,b);c.i6t.promise.then(function(){return void l.aqF()});
return c},"i");
case 5:_.aV(S);y.dispose();_.Sc(S,6);break;case 4:Q=_.kF(S);(G=D)==null||G.dispose();if(!l.wb){J=Tcy(l,Q);U.resolve();var d;if(d=l.vm instanceof zm&&l.xuu<2)a:if(Q instanceof Bb)d=Q.code!==32&&Q.code!==20&&Q.code!==10;else{if(Q instanceof _.pb)switch(Q.code){case 2:case 13:case 14:case 4:break;default:d=!1;break a}d=!0}if(d)return L=(1+Math.random()*.25)*(l.xa?6E4:1E3),R=setTimeout(function(){return void l.aqF()},L),l.addOnDisposeCallback(function(){return void clearTimeout(R)}),S.return();
l.wb=J}y.logError(l.xa?13:14);l.qM7.reject(l.wb);return S.return();case 6:l.state=8,l.xuu=0,(a=l.xa)==null||a.dispose(),l.xa=D,l.qM7.resolve(),_.Kz(S)}})},Hth=function(l,D,U,n){var y=Kky(D,2)*1E3;
if(y<=0)throw new Bb(31,"TTM:Invalid");if(_.Zo(D,4))return new rc1(l.gW,_.Zo(D,4),y);if(!Kky(D,3))return new wSh(l.gW,v1k(_.g6(D,1)),y);if(!n)throw new Bb(4,"PMD:Undefined");n=n(v1k(_.g6(D,1)));if(!(n instanceof Function))throw new Bb(16,"APF:Failed");l.lQ5=Math.floor((Date.now()+y)/1E3);l=new oZ8(l.gW,n,Kky(D,3),y);l.addOnDisposeCallback(function(){return void U.resolve()});
return l};
sY.prototype.fL=function(l){return YG1(this,Object.assign({},l),!1)};
sY.prototype.bhv=function(l){return YG1(this,Object.assign({},l),!0)};
sY.prototype.lSV=function(l){if(l>150)return!1;try{return this.cache=new SG7(l,this.gW),!0}catch(D){return this.reportError(new Bb(22,"GBJ:init",D)),!1}};
sY.prototype.reportError=function(l){this.gW.logError(l.code);this.onError(l);return l};
var Otr=function(l,D){D=D instanceof Bb?D:new Bb(5,"TVD:error",D);return l.reportError(D)},YG1=function(l,D,U){try{if(l.isDisposed())throw new Bb(21,"BNT:disposed");
if(!l.xa&&l.wb)throw l.wb;var n,y;return(y=(n=V_1(l,D,U))!=null?n:i68(l,D,U))!=null?y:lly(l,D,U)}catch(A){if(!D.u9u)throw Otr(l,A);return DZg(l,U,A)}},V_1=function(l,D,U){var n;
return(n=l.xa)==null?void 0:Fd5(n,function(){return UZg(l,D)},U,function(y){var A;
if(l.xa instanceof oZ8&&((A=D.zC)==null?0:A.fGF))try{var C;(C=l.cache)==null||k8r(C,UZg(l,D),y,D.zC.zht,l.lQ5-120)}catch(h){l.reportError(new Bb(24,"ELX:write",h))}})},i68=function(l,D,U){var n;
if((n=D.zC)!=null&&n.tWi)try{var y,A=(y=l.cache)==null?void 0:dKv(y,UZg(l,D),D.zC.zht);return A?U?_.wx(l.gW,function(){return _.c2(A,2)},"a"):A:void 0}catch(C){l.reportError(new Bb(23,"RXO:read",C))}},lly=function(l,D,U){var n={stack:[],
error:void 0,hasError:!1};try{if(!D.rdL)throw new Bb(29,"SDF:notready");return Fd5(GN8(n,new $K1(l.gW,0,l.state)),function(){return UZg(l,D)},U)}catch(y){n.error=y,n.hasError=!0}finally{Jdv(n)}},DZg=function(l,D,U){var n={stack:[],
error:void 0,hasError:!1};try{var y=Otr(l,U);return Fd5(GN8(n,new zg1(l.gW,y)),function(){return[]},D)}catch(A){n.error=A,n.hasError=!0}finally{Jdv(n)}},UZg=function(l,D){return D.wqi?D.wqi:D.rK?_.wx(l.gW,function(){return D.wqi=oZ$(D.rK)},"c"):[]},sGy=function(l){return jh(function(D){if(!QH(D))return!1;
for(var U=_.B(Object.entries(l)),n=U.next();!n.done;n=U.next()){var y=_.B(n.value);n=y.next().value;y=y.next().value;if(!(n in D)){if(y.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!y(D[n]))return!1}return!0})}({vm:function(l){return jh(function(D){return D instanceof l})}(zm)},"");var nHH=function(){var l=_.Ds();this.JSC$9995_streamzService=l;l.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",GC("cookie_enabled"),GC("cookie_3p_enabled"),_.Lw("browser"))};
nHH.prototype.increment=function(l,D,U){this.JSC$9995_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",l,D,U)};
var Ukl=function(){var l=_.Ds();this.JSC$10019_streamzService=l;l.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",JA("tick"),GC("from_st_cookie"))};
Ukl.prototype.increment=function(l,D){this.JSC$10019_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",l,D)};
var y3y=function(){var l=_.Ds();this.JSC$10025_streamzService=l;l.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Lw("status"))};
y3y.prototype.increment=function(l){this.JSC$10025_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",l)};
var A3_=function(){var l=_.Ds();this.JSC$10028_streamzService=l;l.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Lw("stage"),GC("is_using_ytd_player"),GC("has_expandable_tiles"))};
A3_.prototype.increment=function(l,D,U){this.JSC$10028_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",l,D,U)};
var WWy=function(){var l=_.Ds();this.JSC$10031_streamzService=l;l.addNewCounter("/client_streamz/youtube/web/response_signature",_.Lw("check_status"))};
WWy.prototype.increment=function(l){this.JSC$10031_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/web/response_signature",l)};
var Bb8=function(){var l=_.Ds();this.JSC$10034_streamzService=l;l.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Lw("sig"),JA("de"))};
Bb8.prototype.increment=function(l,D){this.JSC$10034_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/web/e_sig_log",l,D)};
var Cd_=function(){var l=_.Ds();this.JSC$10037_streamzService=l;l.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Lw("sig"),JA("de"))};
Cd_.prototype.increment=function(l,D){this.JSC$10037_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/web/e_sig_en",l,D)};
_.hvy=function(){var l=_.Ds();this.JSC$10040_streamzService=l;l.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Lw("action"))};
_.hvy.prototype.increment=function(l){this.JSC$10040_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/web/enforcement_intent",l)};var EY=window;var Pd5=(new Date).getTime();_.we.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.we.createSet("action","cite","data","formaction","href","manifest","poster","src");var b65=function(l){this.servicePromise_=l;l.then((0,_.jU)(function(){},this),function(){},this)},gHm=function(l,D,U){l.servicePromise_.then(function(n){var y=n[D];
if(!y)throw Error("Ka`"+D);return y.apply(n,U)})},Q2y=function(l,D,U){for(var n=Array(arguments.length-2),y=2;y<arguments.length;y++)n[y-2]=arguments[y];
y=uyr(l,D).then(function(A){return A.apply(null,n)},function(A){A=Error("La`"+D+"`"+l+"`"+A,{cause:A});
delete vHv[D];return _.Le(A)});
return new b65(y)},vHv={},uyr=function(l,D){var U=vHv[D];
if(U)return U;U=(U=_.UG(D))?_.Ut(U):(new _.X0(function(n,y){var A=(new tz(document)).createElement("SCRIPT");A.async=!0;_.BY(A,_.dT(Pp7(l)));A.onload=A.onreadystatechange=function(){A.readyState&&A.readyState!="loaded"&&A.readyState!="complete"||n()};
A.onerror=function(C){y(Error("Ma`"+D+"`"+l,{cause:C}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(A)})).then(function(){var n=_.UG(D);
if(!n)throw Error("Na`"+D+"`"+l);return n});
return vHv[D]=U};var Gn7={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},LW1=function(){var l=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=wS3(function(){return _.P(function(D){if(D.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?D.return(Promise.resolve()):D.yield(J3y(l),2);l.rsaForList.length>
0&&document.addEventListener("click",l.requestAccessForHelpPanel);_.Kz(D)})});
this.requestAccessForHelpPanel=function(){if(!(l.rsaForPromises.length>0)){for(var D=_.B(l.rsaForList),U=D.next();!U.done;U=D.next()){U=U.value;try{l.rsaForPromises.push(document.requestStorageAccessFor(U))}catch(n){}}Promise.all(l.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){l.reset()})}}};
LW1.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var J3y=function(l){var D,U,n,y;return _.P(function(A){switch(A.nextAddress){case 1:D=_.B(Object.values(Gn7)),U=D.next();case 2:if(U.done){A.jumpTo(0);break}n=U.value;_.ZY(A,5);return A.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:n}),7);case 7:y=A.yieldResult;y.state!=="granted"&&l.rsaForList.push(n);_.WG(A,3);break;case 5:_.kF(A);A.jumpTo(0);break;case 3:U=D.next(),A.jumpTo(2)}})};(new LW1).initialize();var qL7=function(l){this.JSC$10054_loader_=l};
qL7.prototype.startHelp=function(l){gHm(this.JSC$10054_loader_,"startHelp",arguments)};
qL7.prototype.JSC$10056_loadChatSupport=function(l){gHm(this.JSC$10054_loader_,"loadChatSupport",arguments)};
var Rv5=function(l,D){D=D||{};l=Q2y(M9v,"help.service.Lazy.create",l,{apiKey:D.apiKey||D.apiKey,asxUiUri:D.asxUiUri||D.asxUiUri,environment:D.environment||D.environment,flow:D.flow||D.flow,frdProductData:D.frdProductData||D.frdProductData,frdProductDataSerializedJspb:D.frdProductDataSerializedJspb||D.frdProductDataSerializedJspb,helpCenterPath:D.helpCenterPath||D.helpCenterPath,locale:D.locale||D.locale||"en-US".replace(/-/g,"_"),nonce:D.nonce||D.nonce,productData:D.productData||D.productData,receiverUri:D.receiverUri||
D.receiverUri,renderApiUri:D.renderApiUri||D.renderApiUri,theme:D.theme||D.theme,window:D.window||D.window});return new qL7(l)},M9v=new YG(sLN,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Z6_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Z6_,_.Bh);var evm=_.eD(Z6_);var mZv=[0,_.Tl,w6,MW7];_.alH=new function(l,D,U,n){this.configType=l;this.flagName=U;this.defaultValue=n;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 XGh=function(){this.retriever=_.Jc().resolve(t98)};_.Nd={get payments(){return window.payments}};zg9(Node);zg9(Element);var SL_=zg9(HTMLElement);zg9(SVGElement);var kny,dZ7,Hb,KWh;kny=function(l){return typeof l.className=="string"?l.className:l.getAttribute&&l.getAttribute("class")||""};
dZ7=function(l){return l.classList?l.classList:kny(l).match(/\S+/g)||[]};
_.Tm=function(l,D){typeof l.className=="string"?l.className=D:l.setAttribute&&l.setAttribute("class",D)};
_.IP=function(l,D){return l.classList?l.classList.contains(D):_.rl(dZ7(l),D)};
_.zt=function(l,D){if(l.classList)l.classList.add(D);else if(!_.IP(l,D)){var U=kny(l);_.Tm(l,U+(U.length>0?" "+D:D))}};
Hb=function(l,D){if(l.classList)Array.prototype.forEach.call(D,function(y){_.zt(l,y)});
else{var U={};Array.prototype.forEach.call(dZ7(l),function(y){U[y]=!0});
Array.prototype.forEach.call(D,function(y){U[y]=!0});
D="";for(var n in U)D+=D.length>0?" "+n:n;_.Tm(l,D)}};
_.wh=function(l,D){l.classList?l.classList.remove(D):_.IP(l,D)&&_.Tm(l,Array.prototype.filter.call(dZ7(l),function(U){return U!=D}).join(" "))};
KWh=function(l,D){l.classList?Array.prototype.forEach.call(D,function(U){_.wh(l,U)}):_.Tm(l,Array.prototype.filter.call(dZ7(l),function(U){return!_.rl(D,U)}).join(" "))};var c38=function(l){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=l.document},j25=function(l,D){pG7(l);
var U=document.createElement("div"),n;(n=D.parentNode)==null||n.insertBefore(U,D);U.tabIndex=0;U.id="fc-focus-trap-pre-div";U=document.createElement("div");var y;(y=D.parentNode)==null||y.insertBefore(U,D.nextSibling);U.tabIndex=0;U.id="fc-focus-trap-post-div";var A=xZ_(l,D),C=xZ_(l,D,!0);A&&C&&(l.focusChangeHandler=function(){var h=l.document.activeElement;if(h)if(_.Vp(D,h))l.previouslyFocusedElement=h;else if(h===l.document.activeElement)switch(l.previouslyFocusedElement){case A:C.focus();l.previouslyFocusedElement=
C;break;default:A.focus(),l.previouslyFocusedElement=A}},l.document.addEventListener("focus",l.focusChangeHandler,!0),l.document.addEventListener("focusin",l.focusChangeHandler))},pG7=function(l){l.focusChangeHandler&&(document.removeEventListener("focus",l.focusChangeHandler,!0),document.removeEventListener("focusin",l.focusChangeHandler),l.focusChangeHandler=null);
var D;(D=document.getElementById("fc-focus-trap-pre-div"))==null||D.remove();var U;(U=document.getElementById("fc-focus-trap-post-div"))==null||U.remove()},FW5=function(l,D,U,n,y){U=U===void 0?!0:U;
var A;y=(A=y===void 0?null:y)!=null?A:xZ_(l,D,n===void 0?!1:n);y!==null&&(y.focus(),U&&j25(l,D))};
c38.prototype.disableButton=function(l,D){D=D===void 0?null:D;l.disabled=!0;D&&_.zt(l,D)};
var xZ_=function(l,D,U){U=U===void 0?!1:U;if(hHB(D)&&!U)return D;var n=U?[].slice.call(D.children,0).reverse():D.children;n=_.B(n);for(var y=n.next();!y.done;y=n.next())if(y=y.value,SL_(y)&&(y=xZ_(l,y,U)))return y;return hHB(D)&&U?D:null};var oH5=function(l){this.originalBodyOverflow="";this.JSC$10081_domHelper=K2(l);var D;this.isScrollingEnabled=((D=this.JSC$10081_domHelper.JSC$9407_document_.body)==null?void 0:D.style.overflow)!=="hidden"};
oH5.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10081_domHelper.JSC$9407_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.HI(_.oj,_.xT);_.W=_.oj.prototype;_.W.JSC$10084_id_=0;_.W.disposeInternal=function(){_.oj.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10082_listener_;delete this.handler_};
_.W.start=function(l){this.stop();this.JSC$10084_id_=cb(this.callback_,l!==void 0?l:this.JSC$10082_interval_)};
_.W.stop=function(){this.isActive()&&_.nC.clearTimeout(this.JSC$10084_id_);this.JSC$10084_id_=0};
_.W.fire=function(){this.stop();this.JSC$10084_doAction_()};
_.W.isActive=function(){return this.JSC$10084_id_!=0};
_.W.JSC$10084_doAction_=function(){this.JSC$10084_id_=0;this.JSC$10082_listener_&&this.JSC$10082_listener_.call(this.handler_)};_.ZB=function(l){_.xT.call(this);this.handler_=l;this.JSC$10085_keys_={}};
_.HI(_.ZB,_.xT);var wG7=[];_.ZB.prototype.listen=function(l,D,U,n){Array.isArray(D)||(D&&(wG7[0]=D.toString()),D=wG7);for(var y=0;y<D.length;y++){var A=_.Gt(l,D[y],U||this.handleEvent,n||!1,this.handler_||this);if(!A)break;this.JSC$10085_keys_[A.key]=A}return this};
_.ZB.prototype.listenOnce=function(l,D,U,n){return r35(this,l,D,U,n)};
var r35=function(l,D,U,n,y,A){if(Array.isArray(U))for(var C=0;C<U.length;C++)r35(l,D,U[C],n,y,A);else{D=gh(D,U,n||l.handleEvent,y,A||l.handler_||l);if(!D)return l;l.JSC$10085_keys_[D.key]=D}return l};
_.ZB.prototype.unlisten=function(l,D,U,n,y){if(Array.isArray(D))for(var A=0;A<D.length;A++)this.unlisten(l,D[A],U,n,y);else if(l=hG7(l,D,U||this.handleEvent,_.I_(n)?!!n.capture:!!n,y||this.handler_||this))um(l),delete this.JSC$10085_keys_[l.key];return this};
_.ZB.prototype.removeAll=function(){_.we.forEach(this.JSC$10085_keys_,function(l,D){this.JSC$10085_keys_.hasOwnProperty(D)&&um(l)},this);
this.JSC$10085_keys_={}};
_.ZB.prototype.disposeInternal=function(){_.ZB.superClass_.disposeInternal.call(this);this.removeAll()};
_.ZB.prototype.handleEvent=function(){throw Error("Oa");};var YN=function(){_.xT.call(this);this.services_={}};
_.HI(YN,_.xT);YN.prototype.connect=function(l){l&&l()};
YN.prototype.isConnected=function(){return!0};
YN.prototype.registerService=function(l,D,U){this.services_[l]={callback:D,objectPayload:!!U}};
YN.prototype.getService=function(l,D){var U=this.services_[l];return U?U:this.defaultService_?{callback:_.P6(this.defaultService_,l),objectPayload:_.I_(D)}:null};
var zv1=function(l,D){if(D&&typeof l==="string")try{return JSON.parse(l)}catch(U){return null}else if(!D&&typeof l!=="string")return(0,_.xN)(l);return l};
YN.prototype.disposeInternal=function(){YN.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 OY=function(l,D){this.sequence_=[];this.onCancelFunction_=l;this.defaultScope_=D||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};
OY.prototype.cancel=function(l){if(this.fired_)this.result_ instanceof OY&&this.result_.cancel();else{if(this.parent_){var D=this.parent_;delete this.parent_;l?D.cancel(l):(D.branches_--,D.branches_<=0&&D.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Vm(this))}};
OY.prototype.continue_=function(l,D){this.blocked_=!1;fl_(this,l,D)};
var fl_=function(l,D,U){l.fired_=!0;l.result_=U;l.hadError_=!D;$Zz(l)},s27=function(l){if(l.fired_){if(!l.silentlyCanceled_)throw new Nbv(l);
l.silentlyCanceled_=!1}};
OY.prototype.callback=function(l){s27(this);fl_(this,!0,l)};
OY.prototype.errback=function(l){s27(this);fl_(this,!1,l)};
var EH8=function(l,D,U){io(l,D,null,U)};
OY.prototype.finally=function(l){var D=this;return Tbr(new Promise(function(U,n){io(D,function(y){l();U(y)},function(y){l();
n(y)})}))};
var io=function(l,D,U,n){var y=l.fired_;y||(D===U?D=U=Se(D):(D=Se(D),U=Se(U)));l.sequence_.push([D,U,n]);y&&$Zz(l)};
OY.prototype.then=function(l,D,U){var n,y,A=new _.X0(function(C,h){y=C;n=h});
io(this,y,function(C){C instanceof Vm?A.cancel():n(C);return Il_},this);
return A.then(l,D,U)};
Jfv(OY);var H6m=function(l,D){D instanceof OY?EH8(l,(0,_.jU)(D.branch,D)):EH8(l,function(){return D})};
OY.prototype.branch=function(l){var D=new OY;io(this,D.callback,D.errback,D);l&&(D.parent_=this,this.branches_++);return D};
OY.prototype.isError=function(l){return l instanceof Error};
var YL_=function(l){return BA(l.sequence_,function(D){return typeof D[1]==="function"})},Il_={},$Zz=function(l){if(l.unhandledErrorId_&&l.fired_&&YL_(l)){var D=l.unhandledErrorId_,U=O6H[D];
U&&(_.nC.clearTimeout(U.JSC$10102_id_),delete O6H[D]);l.unhandledErrorId_=0}l.parent_&&(l.parent_.branches_--,delete l.parent_);D=l.result_;for(var n=U=!1;l.sequence_.length&&!l.blocked_;){var y=l.sequence_.shift(),A=y[0],C=y[1];y=y[2];if(A=l.hadError_?C:A)try{var h=A.call(y||l.defaultScope_,D);h===Il_&&(h=void 0);h!==void 0&&(l.hadError_=l.hadError_&&(h==D||l.isError(h)),l.result_=D=h);if(Lvz(D)||typeof _.nC.Promise==="function"&&D instanceof _.nC.Promise)n=!0,l.blocked_=!0}catch(b){D=b,l.hadError_=
!0,YL_(l)||(U=!0)}}l.result_=D;n&&(h=(0,_.jU)(l.continue_,l,!0),n=(0,_.jU)(l.continue_,l,!1),D instanceof OY?(io(D,h,n),D.blocking_=!0):D.then(h,n));U&&(D=new V9y(D),O6H[D.JSC$10102_id_]=D,l.unhandledErrorId_=D.JSC$10102_id_)},Tbr=function(l){var D=new OY;
l.then(function(U){D.callback(U)},function(U){D.errback(U)});
return D},Nbv=function(){_.D9.call(this)};
_.HI(Nbv,_.D9);Nbv.prototype.message="Deferred has already fired";Nbv.prototype.name="AlreadyCalledError";var Vm=function(){_.D9.call(this)};
_.HI(Vm,_.D9);Vm.prototype.message="Deferred was canceled";Vm.prototype.name="CanceledError";var V9y=function(l){this.JSC$10102_id_=_.nC.setTimeout((0,_.jU)(this.throwError,this),0);this.JSC$10102_error_=l};
V9y.prototype.throwError=function(){delete O6H[this.JSC$10102_id_];throw this.JSC$10102_error_;};
var O6H={};var iBk={1:"NativeMessagingTransport"},l08=["pu","lru","pru","lpu","ppu"],Ua8=function(){for(var l=10,D=Day,U=D.length,n="";l-- >0;)n+=D.charAt(Math.floor(Math.random()*U));return n},Day="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var lo=function(l){_.xT.call(this);this.JSC$10105_domHelper_=l||K2()};
_.HI(lo,_.xT);lo.prototype.transportType=0;lo.prototype.getWindow=function(){return this.JSC$10105_domHelper_.getWindow()};
lo.prototype.getName=function(){return iBk[String(this.transportType)]||""};var Dr=function(l,D,U,n,y){lo.call(this,U);this.JSC$10108_channel_=l;this.protocolVersion_=y||2;this.peerHostname_=D||"*";this.JSC$10108_eventHandler_=new _.ZB(this);this.maybeAttemptToConnectTimer_=new _.RA(100,this.getWindow());this.oneSidedHandshake_=!!n;this.setupAckReceived_=new OY;this.setupAckSent_=new OY;this.JSC$10108_connected_=new OY;this.endpointId_=Ua8();this.peerEndpointId_=null;this.oneSidedHandshake_?nGk(this.JSC$10108_channel_)==1?H6m(this.JSC$10108_connected_,this.setupAckReceived_):
H6m(this.JSC$10108_connected_,this.setupAckSent_):(H6m(this.JSC$10108_connected_,this.setupAckReceived_),this.protocolVersion_==2&&H6m(this.JSC$10108_connected_,this.setupAckSent_));EH8(this.JSC$10108_connected_,this.notifyConnected_,this);this.JSC$10108_connected_.callback(!0);this.JSC$10108_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.HI(Dr,lo);Dr.prototype.peerProtocolVersion_=null;Dr.prototype.initialized_=!1;Dr.prototype.transportType=1;var yL7={};Dr.prototype.sendTimerId_=0;
var B$H=function(l){var D=l.event_.data;if(typeof D!=="string")return!1;var U=D.indexOf("|"),n=D.indexOf(":");if(U==-1||n==-1)return!1;var y=D.substring(0,U);U=D.substring(U+1,n);D=D.substring(n+1);if(n=Ug[y])return n.xpcDeliver(U,D,l.event_.origin),!0;n=ALg(D)[0];for(var A in Ug){var C=Ug[A];if(nGk(C)==1&&!C.isConnected()&&U=="tp"&&(n=="SETUP"||n=="SETUP_NTPV2")&&Wi5(C,l.event_.origin))return delete Ug[C.name],C.name=y,Ug[y]=C,C.xpcDeliver(U,D),!0}return!1},Cy5=function(l){l.protocolVersion_!=2||
l.peerProtocolVersion_!=null&&l.peerProtocolVersion_!=2||l.send("tp","SETUP_NTPV2,"+l.endpointId_);
l.peerProtocolVersion_!=null&&l.peerProtocolVersion_!=1||l.send("tp","SETUP")},hty=function(l,D){if(l.protocolVersion_!=2||l.peerProtocolVersion_!=null&&l.peerProtocolVersion_!=2||D!=2){if(l.peerProtocolVersion_!=null&&l.peerProtocolVersion_!=1||D!=1)return;
l.send("tp","SETUP_ACK")}else l.send("tp","SETUP_ACK_NTPV2");l.setupAckSent_.fired_||l.setupAckSent_.callback(!0)},Pyg=function(l,D){D>l.peerProtocolVersion_&&(l.peerProtocolVersion_=D);
l.peerProtocolVersion_==1&&(l.setupAckSent_.fired_||l.oneSidedHandshake_||l.setupAckSent_.callback(!0),l.peerEndpointId_=null)};
_.W=Dr.prototype;_.W.connect=function(){var l=this.getWindow(),D=_.Ho(l),U=yL7[D];typeof U!=="number"&&(U=0);U==0&&_.Gt(l.postMessage?l:l.document,"message",B$H,!1,Dr);yL7[D]=U+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.W.maybeAttemptToConnect_=function(){var l=nGk(this.JSC$10108_channel_)==0;this.oneSidedHandshake_&&l||this.JSC$10108_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Cy5(this))};
_.W.send=function(l,D){var U=this.JSC$10108_channel_.peerWindowObject_;U&&(this.send=function(n,y){var A=this,C=this.JSC$10108_channel_.name;this.sendTimerId_=cb(function(){A.sendTimerId_=0;try{var h=U.postMessage?U:U.document;h.postMessage&&h.postMessage(C+"|"+n+":"+y,A.peerHostname_)}catch(b){}},0)},this.send(l,D))};
_.W.notifyConnected_=function(){var l=this.JSC$10108_channel_,D=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;l.isConnected()||l.connectionDelay_&&l.connectionDelay_.isActive()||(l.state_=2,_.WE(l.connectionDelay_),D!==void 0?(l.connectionDelay_=new _.oj(l.connectCb_,D),l.connectionDelay_.start()):(l.connectionDelay_=null,l.connectCb_()))};
_.W.disposeInternal=function(){if(this.initialized_){var l=this.getWindow(),D=_.Ho(l),U=yL7[D];yL7[D]=U-1;U==1&&_.tX(l.postMessage?l:l.document,"message",B$H,!1,Dr)}this.sendTimerId_&&(_.nC.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.WE(this.JSC$10108_eventHandler_);delete this.JSC$10108_eventHandler_;_.WE(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10108_connected_.cancel();delete this.JSC$10108_connected_;delete this.send;Dr.superClass_.disposeInternal.call(this)};
var ALg=function(l){l=l.split(",");l[1]=l[1]||null;return l};var gGy;_.nL=function(l){if(l.getValues&&typeof l.getValues=="function")return l.getValues();if(typeof Map!=="undefined"&&l instanceof Map||typeof Set!=="undefined"&&l instanceof Set)return Array.from(l.values());if(typeof l==="string")return l.split("");if(_.Ns(l)){for(var D=[],U=l.length,n=0;n<U;n++)D.push(l[n]);return D}return _.we.getValues(l)};
_.bBH=function(l){if(l.getKeys&&typeof l.getKeys=="function")return l.getKeys();if(!l.getValues||typeof l.getValues!="function"){if(typeof Map!=="undefined"&&l instanceof Map)return Array.from(l.keys());if(!(typeof Set!=="undefined"&&l instanceof Set)){if(_.Ns(l)||typeof l==="string"){var D=[];l=l.length;for(var U=0;U<l;U++)D.push(U);return D}return _.we.getKeys(l)}}};
gGy=function(l,D,U){if(l.forEach&&typeof l.forEach=="function")l.forEach(D,U);else if(_.Ns(l)||typeof l==="string")Array.prototype.forEach.call(l,D,U);else for(var n=_.bBH(l),y=_.nL(l),A=y.length,C=0;C<A;C++)D.call(U,y[C],n&&n[C],l)};var bG_,Pp,gI,qUH,u0m,QIk,vGh,Lih,Gj7;
_.fI=function(l,D){this.JSC$10113_domain_=this.userInfo_=this.scheme_="";this.JSC$10113_port_=null;this.fragment_=this.JSC$10113_path_="";this.JSC$10113_ignoreCase_=!1;var U;l instanceof _.fI?(this.JSC$10113_ignoreCase_=D!==void 0?D:l.JSC$10113_ignoreCase_,_.y8(this,l.scheme_),this.userInfo_=l.userInfo_,_.A8(this,l.JSC$10113_domain_),_.Wp(this,l.JSC$10113_port_),_.Bp(this,l.getPath()),_.CL(this,l.JSC$10113_queryData_.clone()),_.h8(this,l.fragment_)):l&&(U=_.PS(String(l)))?(this.JSC$10113_ignoreCase_=
!!D,_.y8(this,U[1]||"",!0),this.userInfo_=Pp(U[2]||""),_.A8(this,U[3]||"",!0),_.Wp(this,U[4]),_.Bp(this,U[5]||"",!0),_.CL(this,U[6]||"",!0),_.h8(this,U[7]||"",!0)):(this.JSC$10113_ignoreCase_=!!D,this.JSC$10113_queryData_=new _.bo(null,this.JSC$10113_ignoreCase_))};
_.fI.prototype.toString=function(){var l=[],D=this.scheme_;D&&l.push(gI(D,u0m,!0),":");var U=this.JSC$10113_domain_;if(U||D=="file")l.push("//"),(D=this.userInfo_)&&l.push(gI(D,u0m,!0),"@"),l.push(_.yy(U).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),U=this.JSC$10113_port_,U!=null&&l.push(":",String(U));if(U=this.getPath())this.JSC$10113_domain_&&U.charAt(0)!="/"&&l.push("/"),l.push(gI(U,U.charAt(0)=="/"?vGh:QIk,!0));(U=this.JSC$10113_queryData_.toString())&&l.push("?",U);(U=this.fragment_)&&l.push("#",
gI(U,Gj7));return l.join("")};
_.fI.prototype.resolve=function(l){var D=this.clone(),U=!!l.scheme_;U?_.y8(D,l.scheme_):U=!!l.userInfo_;U?D.userInfo_=l.userInfo_:U=!!l.JSC$10113_domain_;U?_.A8(D,l.JSC$10113_domain_):U=l.JSC$10113_port_!=null;var n=l.getPath();if(U)_.Wp(D,l.JSC$10113_port_);else if(U=!!l.JSC$10113_path_){if(n.charAt(0)!="/")if(this.JSC$10113_domain_&&!this.JSC$10113_path_)n="/"+n;else{var y=D.getPath().lastIndexOf("/");y!=-1&&(n=D.getPath().slice(0,y+1)+n)}y=n;if(y==".."||y==".")n="";else if(_.bG(y,"./")||_.bG(y,
"/.")){n=_.Ad(y,"/");y=y.split("/");for(var A=[],C=0;C<y.length;){var h=y[C++];h=="."?n&&C==y.length&&A.push(""):h==".."?((A.length>1||A.length==1&&A[0]!="")&&A.pop(),n&&C==y.length&&A.push("")):(A.push(h),n=!0)}n=A.join("/")}else n=y}U?_.Bp(D,n):U=l.JSC$10113_queryData_.toString()!=="";U?_.CL(D,l.JSC$10113_queryData_.clone()):U=!!l.fragment_;U&&_.h8(D,l.fragment_);return D};
_.fI.prototype.clone=function(){return new _.fI(this)};
_.y8=function(l,D,U){l.scheme_=U?Pp(D,!0):D;l.scheme_&&(l.scheme_=l.scheme_.replace(/:$/,""));return l};
_.A8=function(l,D,U){l.JSC$10113_domain_=U?Pp(D,!0):D;return l};
_.Wp=function(l,D){if(D){D=Number(D);if(isNaN(D)||D<0)throw Error("Pa`"+D);l.JSC$10113_port_=D}else l.JSC$10113_port_=null;return l};
_.fI.prototype.getPath=function(){return this.JSC$10113_path_};
_.Bp=function(l,D,U){l.JSC$10113_path_=U?Pp(D,!0):D;return l};
_.CL=function(l,D,U){D instanceof _.bo?(l.JSC$10113_queryData_=D,JL7(l.JSC$10113_queryData_,l.JSC$10113_ignoreCase_)):(U||(D=gI(D,Lih)),l.JSC$10113_queryData_=new _.bo(D,l.JSC$10113_ignoreCase_));return l};
_.ny=function(l,D,U){l.JSC$10113_queryData_.set(D,U);return l};
_.UP=function(l,D){return l.JSC$10113_queryData_.get(D)};
_.h8=function(l,D,U){l.fragment_=U?Pp(D):D;return l};
_.uo=function(l){_.ny(l,"zx",lh());return l};
_.Dp=function(l,D){return l instanceof _.fI?l.clone():new _.fI(l,D)};
bG_=function(l,D){l instanceof _.fI||(l=_.Dp(l));D instanceof _.fI||(D=_.Dp(D));return l.resolve(D)};
Pp=function(l,D){return l?D?decodeURI(l.replace(/%25/g,"%2525")):decodeURIComponent(l):""};
gI=function(l,D,U){return typeof l==="string"?(l=encodeURI(l).replace(D,qUH),U&&(l=l.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l):null};
qUH=function(l){l=l.charCodeAt(0);return"%"+(l>>4&15).toString(16)+(l&15).toString(16)};
u0m=/[#\/\?@]/g;QIk=/[#\?:]/g;vGh=/[#\?]/g;Lih=/[#\?@]/g;Gj7=/#/g;_.bo=function(l,D){this.count_=this.keyMap_=null;this.encodedQuery_=l||null;this.JSC$10114_ignoreCase_=!!D};
_.vp=function(l){l.keyMap_||(l.keyMap_=new Map,l.count_=0,l.encodedQuery_&&Bsm(l.encodedQuery_,function(D,U){l.add(Qy(D),U)}))};
_.W=_.bo.prototype;_.W.getCount=function(){_.vp(this);return this.count_};
_.W.add=function(l,D){_.vp(this);this.encodedQuery_=null;l=Q8(this,l);var U=this.keyMap_.get(l);U||this.keyMap_.set(l,U=[]);U.push(D);this.count_+=1;return this};
_.W.remove=function(l){_.vp(this);l=Q8(this,l);return this.keyMap_.has(l)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(l).length,this.keyMap_.delete(l)):!1};
_.W.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.W.isEmpty=function(){_.vp(this);return this.count_==0};
_.W.containsKey=function(l){_.vp(this);l=Q8(this,l);return this.keyMap_.has(l)};
_.W.containsValue=function(l){var D=this.getValues();return _.rl(D,l)};
_.W.forEach=function(l,D){_.vp(this);this.keyMap_.forEach(function(U,n){U.forEach(function(y){l.call(D,y,n,this)},this)},this)};
_.W.getKeys=function(){_.vp(this);for(var l=Array.from(this.keyMap_.values()),D=Array.from(this.keyMap_.keys()),U=[],n=0;n<D.length;n++)for(var y=l[n],A=0;A<y.length;A++)U.push(D[n]);return U};
_.W.getValues=function(l){_.vp(this);var D=[];if(typeof l==="string")this.containsKey(l)&&(D=D.concat(this.keyMap_.get(Q8(this,l))));else{l=Array.from(this.keyMap_.values());for(var U=0;U<l.length;U++)D=D.concat(l[U])}return D};
_.W.set=function(l,D){_.vp(this);this.encodedQuery_=null;l=Q8(this,l);this.containsKey(l)&&(this.count_-=this.keyMap_.get(l).length);this.keyMap_.set(l,[D]);this.count_+=1;return this};
_.W.get=function(l,D){if(!l)return D;l=this.getValues(l);return l.length>0?String(l[0]):D};
_.M2k=function(l,D,U){l.remove(D);U.length>0&&(l.encodedQuery_=null,l.keyMap_.set(Q8(l,D),_.$9(U)),l.count_+=U.length)};
_.bo.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var l=[],D=Array.from(this.keyMap_.keys()),U=0;U<D.length;U++){var n=D[U],y=_.yy(n);n=this.getValues(n);for(var A=0;A<n.length;A++){var C=y;n[A]!==""&&(C+="="+_.yy(n[A]));l.push(C)}}return this.encodedQuery_=l.join("&")};
_.bo.prototype.clone=function(){var l=new _.bo;l.encodedQuery_=this.encodedQuery_;this.keyMap_&&(l.keyMap_=new Map(this.keyMap_),l.count_=this.count_);return l};
var Q8=function(l,D){D=String(D);l.JSC$10114_ignoreCase_&&(D=D.toLowerCase());return D},JL7=function(l,D){D&&!l.JSC$10114_ignoreCase_&&(_.vp(l),l.encodedQuery_=null,l.keyMap_.forEach(function(U,n){var y=n.toLowerCase();
n!=y&&(this.remove(n),_.M2k(this,y,U))},l));
l.JSC$10114_ignoreCase_=D};
_.bo.prototype.extend=function(l){for(var D=0;D<arguments.length;D++)gGy(arguments[D],function(U,n){this.add(n,U)},this)};var Gr=function(l,D){YN.call(this);for(var U=0,n;n=l08[U];U++)if(n in l&&!/^https?:\/\//.test(l[n]))throw Error("Ra`"+l[n]+"`"+n);this.cfg_=l;this.name=this.cfg_.cn||Ua8();this.JSC$10109_domHelper_=D||K2();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.ZB(this);l.lpu=l.lpu||AAk(this.JSC$10109_domHelper_.getWindow().location.href)+"/robots.txt";l.ppu=l.ppu||AAk(l.pu||"")+"/robots.txt";Ug[this.name]=this;hG7(window,"unload",Rt8)||gh(window,"unload",Rt8)};
_.HI(Gr,YN);var ZB_=RegExp("^%*tp$"),et1=RegExp("^%+tp$");_.W=Gr.prototype;_.W.connectionDelay_=null;_.W.peerWindowDeferred_=null;_.W.transport_=null;_.W.state_=1;_.W.isConnected=function(){return this.state_==2};
_.W.peerWindowObject_=null;_.W.iframeElement_=null;_.W.getConfig=function(){return this.cfg_};
_.W.connect=function(l){this.connectCb_=l||_.RR;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?EH8(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.W.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10109_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var l=this.iframeElement_.contentWindow;l||(l=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=l}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10109_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Dr(this,this.cfg_.ph,this.JSC$10109_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.W.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.WE(this.transport_);this.connectCb_=this.transport_=null;_.WE(this.connectionDelay_);this.connectionDelay_=null};
_.W.send=function(l,D){if(this.isConnected()){try{var U=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(y){U=!1}if(U){_.I_(D)&&(D=(0,_.xN)(D));U=this.transport_;var n=U.send;ZB_.test(l)&&(l="%"+l);l=l.replace(/[%:|]/g,encodeURIComponent);n.call(U,l,D)}else this.close()}};
_.W.xpcDeliver=function(l,D,U){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.jU)(this.xpcDeliver,this,l,D,U));else if(Wi5(this,U)&&!this.isDisposed()&&this.state_!=3)if(l&&l!="tp")this.isConnected()&&(l=l.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),l=et1.test(l)?l.substring(1):l,l=this.getService(l,D))&&(D=zv1(D,l.objectPayload),D!=null&&l.callback(D));else switch(l=this.transport_,U=ALg(D),D=U[1],U[0]){case "SETUP_ACK":Pyg(l,1);l.setupAckReceived_.fired_||l.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":l.protocolVersion_==2&&(Pyg(l,2),l.setupAckReceived_.fired_||l.setupAckReceived_.callback(!0));break;case "SETUP":Pyg(l,1);hty(l,1);break;case "SETUP_NTPV2":l.protocolVersion_==2&&(U=l.peerProtocolVersion_,Pyg(l,2),hty(l,2),U!=1&&l.peerEndpointId_==null||l.peerEndpointId_==D||Cy5(l),l.peerEndpointId_=D)}};
var nGk=function(l){var D=l.cfg_.role;return typeof D==="number"?D:window.parent==l.peerWindowObject_?1:0},Wi5=function(l,D){var U=l.cfg_.ph;
return _.hd(D==null?"":String(D))||_.hd(U==null?"":String(U))||D==l.cfg_.ph};
Gr.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Ug[this.name];_.WE(this.peerLoadHandler_);delete this.peerLoadHandler_;Gr.superClass_.disposeInternal.call(this)};
var Rt8=function(){for(var l in Ug)_.WE(Ug[l])},Ug={};var a07=function(l,D){this.win=l;this.allowAdsHttpEndpoint=D;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10123_domHelper=K2(l);this.scrollManager=new oH5(l);this.accessibilityManager=new c38(l);mah(this)},mah=function(l){var D=function(){l.allowAdsPopup&&l.allowAdsPopup.style.setProperty("display","none","important");
l.wallElement.style.setProperty("display","","important");pG7(l.accessibilityManager);FW5(l.accessibilityManager,l.wallElement.querySelector(".fc-dialog-container"),!1,!1,l.wallElement.querySelector(".fc-button-whitelist"));l.scrollManager.enableScrolling()};
l.allowAdsPopup=l.JSC$10123_domHelper.JSC$9409_createDom("DIV",{"class":"fc-whitelist-root"});l.allowAdsPopup.style.setProperty("display","none","important");l.JSC$10123_domHelper.appendChild(l.JSC$10123_domHelper.JSC$9407_document_.body,l.allowAdsPopup);var U=l.JSC$10123_domHelper.JSC$9409_createDom("DIV",{"class":"fc-dialog-overlay"});l.JSC$10123_domHelper.appendChild(l.allowAdsPopup,U);var n=l.JSC$10123_domHelper.JSC$9409_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:D});l.JSC$10123_domHelper.appendChild(l.allowAdsPopup,
n);U=l.JSC$10123_domHelper.JSC$9409_createDom("IFRAME");U.className="fc-whitelist-dialog";U.frameBorder="0";U.id="fc-whitelist-iframe";U.tabIndex="0";_.i8(U,l.allowAdsHttpEndpoint);l.JSC$10123_domHelper.appendChild(n,U);n={};n.pu=_.Kc(l.allowAdsHttpEndpoint).toString();n.tp=1;n.cn="fc-whitelist-channel";n.ifrid=U.id;n.osh=!0;l.allowAdsCrossPageChannel=new Gr(n);l.allowAdsCrossPageChannel.registerService("close",D);l.allowAdsCrossPageChannel.registerService("refresh",function(){l.win.location.reload()});
l.allowAdsCrossPageChannel.registerService("resize",function(y){if(y){var A=l.allowAdsPopup.querySelector(".fc-whitelist-dialog");y.width&&A.style.setProperty("width",y.width,"important");y.height&&A.style.setProperty("height",y.height,"important")}},!0);
l.allowAdsCrossPageChannel.connect()};
a07.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10123_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var J8=window,LL=document,t28=J8.location,XAz=function(){},SUg=/\[native code\]/,qH=function(l,D,U){return l[D]=l[D]||U},kjz=function(l){l=l.sort();
for(var D=[],U=void 0,n=0;n<l.length;n++){var y=l[n];y!=U&&D.push(y);U=y}return D},MH=function(){var l;
if((l=Object.create)&&SUg.test(l))l=l(null);else{l={};for(var D in l)l[D]=void 0}return l},R8=qH(J8,"gapi",{});var Zr={};Zr=qH(J8,"___jsl",MH());qH(Zr,"I",0);qH(Zr,"hel",10);var dam=function(){var l=t28.href;if(Zr.dpo)var D=Zr.h;else{D=Zr.h;var U=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),n=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(l=l&&(U.exec(l)||n.exec(l)))try{D=decodeURIComponent(l[2])}catch(y){}}return D},Ki_=function(l){var D=qH(Zr,"PQ",[]);
Zr.PQ=[];var U=D.length;if(U===0)l();else for(var n=0,y=function(){++n===U&&l()},A=0;A<U;A++)D[A](y)},cLr=function(l){return qH(qH(Zr,"H",MH()),l,MH())};var el=function(l){this.JSC$10125_obj_=l};
el.prototype.value=function(){return this.JSC$10125_obj_};
el.prototype.getWidth=function(){return this.JSC$10125_obj_.width};
el.prototype.getHeight=function(){return this.JSC$10125_obj_.height};
el.prototype.getStyle=function(){return this.JSC$10125_obj_.style};var pAm=function(l){this.JSC$10128_obj_=l||{}};
_.W=pAm.prototype;_.W.value=function(){return this.JSC$10128_obj_};
_.W.setUrl=function(l){this.JSC$10128_obj_.url=l;return this};
_.W.getUrl=function(){return this.JSC$10128_obj_.url};
_.W.getStyle=function(){return this.JSC$10128_obj_.style};
_.W.getId=function(){return this.JSC$10128_obj_.id};
_.W.getContext=function(){return this.JSC$10128_obj_.context};
var xay=function(l){l.JSC$10128_obj_.attributes=l.JSC$10128_obj_.attributes||{};return new el(l.JSC$10128_obj_.attributes)};var jI_=function(){pAm.apply(this,arguments)};
_.Z(jI_,pAm);var Fi_=qH(Zr,"perf",MH());qH(Fi_,"g",MH());var oG7=qH(Fi_,"i",MH());qH(Fi_,"r",[]);MH();MH();var rL7=function(l,D,U){D&&D.length>0&&(D=wAr(D),U&&U.length>0&&(D+="___"+wAr(U)),D.length>28&&(D=D.substr(0,28)+(D.length-28)),U=D,D=qH(oG7,"_p",MH()),qH(D,U,MH())[l]=(new Date).getTime(),D=Fi_.r,typeof D==="function"?D(l,"_p",U):D.push([l,"_p",U]))},wAr=function(l){return l.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var ztH=MH(),f0z=[],mS=function(l){throw Error("Ua`"+l);};
f0z.push(["jsl",function(l){for(var D in l)if(Object.prototype.hasOwnProperty.call(l,D)){var U=l[D];typeof U=="object"?Zr[D]=qH(Zr,D,[]).concat(U):qH(Zr,D,U)}if(D=l.u)l=qH(Zr,"us",[]),l.push(D),(D=/^https:(.*)$/.exec(D))&&l.push("http:"+D[1])}]);
var $ay=/^(\/[a-zA-Z0-9_\-]+)+$/,N$7=[/\/amp\//,/\/amp$/,/^\/amp$/],sIz=/^[a-zA-Z0-9\-_\.,!]+$/,EGg=/^gapi\.loaded_[0-9]+$/,T$v=/^[a-zA-Z0-9,._-]+$/,OBz=function(l,D,U,n,y){var A=l.split(";"),C=A.shift(),h=ztH[C],b=null;h?b=h(A,D,U,n):mS("no hint processor for: "+C);b||mS("failed to generate load url");D=b;U=D.match(I0h);(n=D.match(HB7))&&n.length===1&&YU_.test(D)&&U&&U.length===1||mS("failed sanity: "+l);try{l="?";if(y&&y.length>0){pos(y);var u=y.join(",");b=b+"?le="+u;l="&"}if(Zr.rol){var Q=Zr.ol;
Q&&Q.length&&(b=""+b+l+"ol="+Q.length)}}catch(G){}return b},lmh=function(l,D,U,n){l=V2H(l);
EGg.test(U)||mS("invalid_callback");D=iA7(D);n=n&&n.length?iA7(n):null;var y=function(A){return encodeURIComponent(A).replace(/%2C/g,",")};
return[encodeURIComponent(l.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",y(l.version),"/m=",y(D),n?"/exm="+y(n):"","/rt=j/sv=1/d=1/ed=1",l.activeMods?"/am="+y(l.activeMods):"",l.resourceSig?"/rs="+y(l.resourceSig):"",l.zcms?"/t="+y(l.zcms):"","/cb=",y(U)].join("")},V2H=function(l){l.charAt(0)!=="/"&&mS("relative path");
for(var D=l.substring(1).split("/"),U=[];D.length;){l=D.shift();if(!l.length||l.indexOf(".")==0)mS("empty/relative directory");else if(l.indexOf("=")>0){D.unshift(l);break}U.push(l)}l={};for(var n=0,y=D.length;n<y;++n){var A=D[n].split("="),C=decodeURIComponent(A[0]),h=decodeURIComponent(A[1]);A.length==2&&C&&h&&(l[C]=l[C]||h)}D="/"+U.join("/");$ay.test(D)||mS("invalid_prefix");U=0;for(n=N$7.length;U<n;++U)N$7[U].test(D)&&mS("invalid_prefix");U=DMy(l,"k",!0);n=DMy(l,"am");y=DMy(l,"rs");l=DMy(l,"t");
return{pathPrefix:D,version:U,activeMods:n,resourceSig:y,zcms:l}},iA7=function(l){for(var D=[],U=0,n=l.length;U<n;++U){var y=l[U].replace(/\./g,"_").replace(/-/g,"_");
T$v.test(y)&&D.push(y)}return D.join(",")},DMy=function(l,D,U){l=l[D];
!l&&U&&mS("missing: "+D);if(l){if(sIz.test(l))return l;mS("invalid: "+D)}return null},YU_=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,HB7=/\/cb=/g,I0h=/\/\//g;
ztH.m=function(l,D,U,n){(l=l[0])||mS("missing_hint");return"https://apis.google.com"+lmh(l,D,U,n)};
var UM7=decodeURI("%73cript"),nYg=/^[-+_0-9\/A-Za-z]+={0,2}$/,yHy=function(l,D){for(var U=[],n=0;n<l.length;++n){var y=l[n],A;if(A=y){a:{for(A=0;A<D.length;A++)if(D[A]===y)break a;A=-1}A=A<0}A&&U.push(y)}return U},AHk=function(){var l=Zr.nonce;
return l!==void 0?l&&l===String(l)&&l.match(nYg)?l:Zr.nonce=null:LL.querySelector?(l=LL.querySelector("script[nonce]"))?(l=l.nonce||l.getAttribute("nonce")||"",l&&l===String(l)&&l.match(nYg)?Zr.nonce=l:Zr.nonce=null):null:null},CP7=function(l){if(LL.readyState!="loading")WEr(l);
else{var D=AHk(),U="";D!==null&&(U=' nonce="'+D+'"');l="<"+UM7+' src="'+encodeURI(l)+'"'+U+"></"+UM7+">";LL.write(Bm_?Bm_.createHTML(l):l)}},WEr=function(l){var D=LL.createElement(UM7);
D.setAttribute("src",Bm_?Bm_.createScriptURL(l):l);l=AHk();l!==null&&D.setAttribute("nonce",l);D.async="true";(l=LL.getElementsByTagName(UM7)[0])?l.parentNode.insertBefore(D,l):(LL.head||LL.body||LL.documentElement).appendChild(D)},PP7=function(l,D,U){hX7(function(){var n=D===dam()?qH(R8,"_",MH()):MH();
n=qH(cLr(D),"_",n);l(n)},U)},U$3=function(l,D){var U=D||{};
typeof D=="function"&&(U={},U.callback=D);var n=(D=U)&&D._c;if(n)for(var y=0;y<f0z.length;y++){var A=f0z[y][0],C=f0z[y][1];C&&Object.prototype.hasOwnProperty.call(n,A)&&C(n[A],l,D)}D=[];l?D=l.split(":"):U.features&&(D=U.features);if(!(l=U.h)&&(l=dam(),!l))throw Error("Va");bAg(D||[],U,l)},bAg=function(l,D,U){l=kjz(l)||[];
var n=D.callback,y=D.config,A=D.timeout,C=D.ontimeout,h=D.onerror,b=void 0;typeof h=="function"&&(b=h);var u=null,Q=!1;if(A&&!C||!A&&C)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";h=qH(cLr(U),"r",[]).sort();var G=qH(cLr(U),"L",[]).sort(),J=Zr.le||[],L=[].concat(h),R=function(N,z){if(Q)return 0;J8.clearTimeout(u);G.push.apply(G,a);var f=((R8||{}).config||{}).update;f?f(y):y&&qH(Zr,"cu",[]).push(y);if(z){rL7("me0",N,L);try{PP7(z,U,b)}finally{rL7("me1",N,L)}}return 1};
A>0&&(u=J8.setTimeout(function(){Q=!0;C()},A));
var a=yHy(l,G);if(a.length){a=yHy(l,h);var S=qH(Zr,"CP",[]),d=S.length;S[d]=function(N){if(!N)return 0;rL7("ml1",a,L);var z=function(I){S[d]=null;R(a,N)&&Ki_(function(){n&&n();I()})},f=function(){var I=S[d+1];
I&&I()};
d>0&&S[d-1]?S[d]=function(){z(f)}:z(f)};
if(a.length){var c="loaded_"+Zr.I++;R8[c]=function(N){S[d](N);R8[c]=null};
l=OBz(U,a,"gapi."+c,h,J);h.push.apply(h,a);rL7("ml0",a,L);D.sync||J8.___gapisync?CP7(l):WEr(l)}else S[d](XAz)}else R(a)&&n&&n()},gY5;
var uby=null,vY_=_.nC.trustedTypes;if(vY_&&vY_.createPolicy){try{uby=vY_.createPolicy("goog#gapi",{createHTML:Q_7,createScript:Q_7,createScriptURL:Q_7})}catch(l){_.nC.console&&_.nC.console.error(l.message)}gY5=uby}else gY5=uby;var Bm_=gY5,hX7=function(l,D){if(Zr.hee&&Zr.hel>0)try{return l()}catch(U){D&&D(U),Zr.hel--,U$3("debug_error",function(){try{window.___jsl.hefn(U)}catch(n){throw U;}})}else try{return l()}catch(U){throw D&&D(U),U;
}},Q17=R8.load;
Q17&&qH(Zr,"ol",[]).push(Q17);R8.load=function(l,D){return hX7(function(){return U$3(l,D)})};var EZg;var JHy=function(l,D){var U=U||[];this.serviceId_=l;this.moduleId_=D||null;this.dependencies_=[];G7h(this,U)};
JHy.prototype.toString=function(){return this.serviceId_};
JHy.prototype.getModuleId=function(){return this.moduleId_};
var G7h=function(l,D){var U=!1;U=U===void 0?!1:U;l.dependencies_=l.dependencies_.concat(D);if(U){if(!l.moduleId_)throw Error("Wa`"+l.serviceId_);D.map(function(n){return n.getModuleId()}).forEach(function(n){Tcd(function(y){y.addExtraEdge(l.moduleId_,n)})})}};var cOc=new JHy("MpJwZc","MpJwZc");var a5l=new _.RP("a"),xEc=new _.RP("c"),pT$=function(l,D,U){_.Zz.call(this,l,D);this.node=D;this.kind=U};
_.Z(pT$,_.Zz);var LEy=function(){this.JSC$10141_keys_={};this.urlPrefix_="";this.JSC$10141_queryData_={}};
LEy.prototype.toString=function(){var l=this.urlPrefix_+q1h(this),D=_.Kt(this.JSC$10141_queryData_),U="";D!=""&&(U="?"+D);return l+U};
var Mn8=function(l){l=a8(l,"md");return!!l&&l!=="0"},q1h=function(l){var D=[],U=function(n){l.JSC$10141_keys_[n]!==void 0&&D.push(n+"="+l.JSC$10141_keys_[n])};
Mn8(l)?(U("md"),U("k"),U("ck"),U("am"),U("rs"),U("gssmodulesetproto"),U("slk"),U("dti")):(U("sdch"),U("k"),U("ck"),U("am"),U("rt"),"d"in l.JSC$10141_keys_||t8(l,"d","0"),U("d"),U("exm"),U("excm"),(l.JSC$10141_keys_.excm||l.JSC$10141_keys_.exm)&&D.push("ed=1"),U("im"),U("dg"),U("sm"),a8(l,"br")!="1"&&a8(l,"br")!="0"||U("br"),U("br-d"),a8(l,"rb")=="1"&&U("rb"),a8(l,"zs")!=="0"&&U("zs"),RXy(l)!==""&&U("wt"),U("gssmodulesetproto"),U("ujg"),U("sp"),U("rs"),U("cb"),U("ee"),U("slk"),U("dti"),U("m"));return D.join("/")},
a8=function(l,D){return l.JSC$10141_keys_[D]?l.JSC$10141_keys_[D]:null},t8=function(l,D,U){U?l.JSC$10141_keys_[D]=U:delete l.JSC$10141_keys_[D]},ZA8=function(l,D){l.urlPrefix_=D},eX5=function(l,D){D&&D.length>0?(D.sort(),t8(l,"exm",D.join(","))):t8(l,"exm",null)},mMy=function(l,D){D&&D.length>0?(D.sort(),t8(l,"excm",D.join(","))):t8(l,"excm",null)},amy=function(l){return(l=a8(l,"m"))?l.split(","):[]},RXy=function(l){switch(a8(l,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},tny=function(l,D){var U=Object.keys(D).filter(function(n){return!!Object.keys(D[n]).length}).map(function(n){var y=Object.keys(D[n]);
y.length>1&&y.sort();return n+":"+y.join(",")});
U.sort();t8(l,"ee",U.join(";"))},wG9=function(l){var D=a8(l,"ee");
if(!D)return{};l={};D=_.B(D.split(";"));for(var U=D.next();!U.done;U=D.next()){var n=_.B(U.value.split(":"));U=n.next().value;n=n.next().value;l[U]={};n=_.B(n.split(","));for(var y=n.next();!y.done;y=n.next())l[U][y.value]=!0}return l},Xd1=function(l){delete l.JSC$10141_keys_.m;
delete l.JSC$10141_keys_.exm;delete l.JSC$10141_keys_.ed};
LEy.prototype.clone=function(){var l=new LEy;l.JSC$10141_keys_=Object.assign({},this.JSC$10141_keys_);l.urlPrefix_=this.urlPrefix_;l.JSC$10141_queryData_=Object.assign({},this.JSC$10141_queryData_);return l};
var r3o=function(l,D){D=D===void 0?!0:D;var U=S1z(l),n=new LEy,y=_.PS(U)[5];_.we.forEach(k7y,function(C){var h=y.match("/"+C+"=([^/]+)");h&&t8(n,C,h[1])});
var A="";A=l.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";ZA8(n,l.substr(0,l.indexOf(A)+A.length));if(!D)return n;(l=_.PS(U)[6]||null)&&Bsm(l,function(C,h){n.JSC$10141_queryData_[C]=h});
return n},j2o=function(l){l=_.kZ(S1z(l));
return l===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(l)?/\/k=/.test(l):!1},S1z=function(l){return l.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?l.substr(65):l},k7y={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"},dMm=RegExp("^loaded_(g|h)?[_\\d]+$");_.XC=function(l){this.JSC$10153_id_=l;this.opts={}};
_.XC.prototype.JSC$10155_setLabel=function(l){this.label_=l||void 0;return this};
_.XC.prototype.addUploadMetadata=function(l,D){var U=this.opts.data||{};U[l]=D;this.opts.data=U;return this};
var KE8=function(l){var D=_.we.filter(l.opts,function(U){return U!==null});
D=_.we.isEmpty(D)?null:D;l=[l.JSC$10153_id_,l.label_,D];D=ScC(l);return l=l.slice(0,D+1)};
_.XC.prototype.toString=function(){var l=KE8(this);return"("+_.re(l,function(D){return JSON.stringify(D)}).join(",")+")"};
_.XC.prototype.getId=function(){return this.JSC$10153_id_};
_.XC.prototype.getOptions=function(){return _.we.clone(this.opts)};var Sl=function(){_.XC.call(this,"image-search")};
_.Z(Sl,_.XC);Sl.prototype.setSize=function(l){this.opts.imgsz=l;return this};
Sl.prototype.JSC$10155_setLabel=function(l){_.XC.prototype.JSC$10155_setLabel.call(this,l);return this};
Sl.prototype.addUploadMetadata=function(l,D){_.XC.prototype.addUploadMetadata.call(this,l,D);return this};var kP=function(){_.XC.call(this,"maps")};
_.Z(kP,_.XC);kP.prototype.setZoom=function(l){this.opts.zoom=l;return this};
kP.prototype.JSC$10155_setLabel=function(l){_.XC.prototype.JSC$10155_setLabel.call(this,l);return this};
kP.prototype.addUploadMetadata=function(l,D){_.XC.prototype.addUploadMetadata.call(this,l,D);return this};_.dI=function(){_.XC.call(this,"photos")};
_.Z(_.dI,_.XC);_.dI.prototype.JSC$10155_setLabel=function(l){_.XC.prototype.JSC$10155_setLabel.call(this,l);return this};
_.dI.prototype.addUploadMetadata=function(l,D){_.XC.prototype.addUploadMetadata.call(this,l,D);return this};var KL=function(){_.XC.call(this,"url")};
_.Z(KL,_.XC);var cH_=function(){var l=new KL;l.opts.type="video";l.opts.site="youtube.com";return l};
KL.prototype.JSC$10155_setLabel=function(l){_.XC.prototype.JSC$10155_setLabel.call(this,l);return this};
KL.prototype.addUploadMetadata=function(l,D){_.XC.prototype.addUploadMetadata.call(this,l,D);return this};var cp=function(){_.XC.call(this,"video-search")};
_.Z(cp,_.XC);var pd7=function(){var l=new cp;l.opts.site="youtube.com";return l};
cp.prototype.JSC$10155_setLabel=function(l){_.XC.prototype.JSC$10155_setLabel.call(this,l);return this};
cp.prototype.addUploadMetadata=function(l,D){_.XC.prototype.addUploadMetadata.call(this,l,D);return this};var xMh=function(){_.XC.call(this,"web")};
_.Z(xMh,_.XC);xMh.prototype.JSC$10155_setLabel=function(l){_.XC.prototype.JSC$10155_setLabel.call(this,l);return this};
xMh.prototype.addUploadMetadata=function(l,D){_.XC.prototype.addUploadMetadata.call(this,l,D);return this};var pL=function(){this.items_=[];this.opts={}},j1y=function(l){switch(l){case "image-search":return new Sl;
case "maps":return new kP;case "photos":return new _.dI;case "url":return new KL;case "video-search":return new cp;case "web":return new xMh}return new _.XC(l)};
pL.prototype.addView=function(l){this.items_.push(typeof l==="string"?j1y(l):l);return this};
var FE5=function(l){return"("+_.re(l.items_,function(D){return D.toString()}).join(",")+")"};
pL.prototype.toString=function(){return FE5(this)};
pL.prototype.getViews=function(l,D){D=D===void 0?[]:D;for(var U=this.items_,n=0;n<U.length;n++){var y=U[n];y instanceof pL?y.getViews(l,D):y.getId()==l&&D.push(y)}return D};
pL.prototype.getOptions=function(){return _.we.clone(this.opts)};var Ij=function(l){this.basePickerUrl_=l||"https://docs.google.com/picker";this.nav_=new pL};
Ij.prototype.nav_=null;Ij.prototype.addView=function(l){this.nav_.addView(l);return this};
Ij.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Ij.prototype.getViews=function(l){return this.nav_.getViews(l)};
_.oYz=function(l,D){l.callback_=D;return l};var wd7=new Map;wd7.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");wd7.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");wd7.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var rHy=new Set;rHy.add("application/vnd.google-apps.kix");rHy.add("application/vnd.google-apps.ritz");rHy.add("application/vnd.google-apps.punch");var Vnr=function(l,D,U){var n=U&&_.Zo(U,1);U=zX8(U);var y=l[0].getId();switch(_.eY(y,2)){case 13:return fmH(l,D,n,U);case 3:return $Mv(l,D,n,U);case 10:return Nmm(l,D,n,U);case 27:return Nmm(l,D,n,U);case 12:return s1y(l,D);case 2:return EY7(l,D,n,U);case 5:return Tmy(l,D,n,U);case 9:return Imr(l,D,n,U);case 6:return HAm(l,D,n,U);case 25:return Y1h(l,D,n,U);case 1:return _.Pm(l[0],e3y,26)?OA_(l,D,n,U):Nmm(l,D,n,U);default:return{}}},HAm=function(l,D,U,n){l=l.map(function(y){return{id:y.getId().getId(),
serviceId:"youtube",name:y.getName(),description:_.Zo(y,3),type:xP(y),lastEditedUtc:_.Zwv(_.MZ(y,_.mG,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:y.getUrl(),embedUrl:_.Zo(y,13),thumbnails:jl(Dz(y))}});
return{action:D,docs:l,viewToken:n,view:U||"youtube",v2Translated:!0}},EY7=function(l,D,U,n){var y=l.map(function(A){var C=A.getId().getId(),h=_.Zo(A,7),b=A.getName(),u=xP(A),Q=_.Zwv(_.MZ(A,_.mG,12)).getTime(),G=A.getUrl(),J=Number(cy5(A)),L=_.Zo(A,3),R=_.Zo(A,11),a=jl(Dz(A));
var S=_.MZ(A,UY,21);S=_.qF(S,1);var d=_.MZ(A,UY,21);d=_.Zo(d,10);var c=_.Zo(A,13);var N=_.MZ(A,UY,21);N=_.qF(N,9);var z=_.MZ(A,UY,21);z=_.Zo(z,11);C={id:C,serviceId:"docs",mimeType:h,name:b,type:u,lastEditedUtc:Q,url:G,sizeBytes:J,description:L,iconUrl:R,thumbnails:a,isShared:S,downloadUrl:d,embedUrl:c,copyable:N,resourceKey:z};h=_.MZ(A,UY,21);_.qF(h,12)&&(C.uploadState="success",C.isNew=!0);h=_.MZ(A,UY,21);_.Pm(h,OF,3)&&(A=_.MZ(A,UY,21),A=_.MZ(A,OF,3),_.Pm(A,Hl,2)&&(h=Ed(A.getDuration().getSeconds()),
b=A.getDuration(),b=_.Qp(b,2),C.duration=h+b/1E9),C.aspectRatio=A.getAspectRatio());return C});
return{action:D,docs:y,viewToken:n,view:U||"all",extraUserInputs:iSy(l),v2Translated:!0}},Tmy=function(l,D,U,n){l=l.map(function(y){var A=_.MZ(y,cAh,15);
A=_.MZ(A,Yh,1);KB(y,10,Yh,A);return{id:y.getId().getId(),serviceId:"web",mimeType:_.Zo(y,7),name:y.getName(),type:xP(y),url:y.getUrl(),description:_.Zo(y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jl(Dz(y))}});
return{action:D,docs:l,viewToken:n,view:U||"image-search",v2Translated:!0}},Imr=function(l,D,U,n){l=l.map(function(y){return{serviceId:"url",
name:Dz(y)[0].getUrl().split("/").pop(),type:xP(y),mimeType:_.Zo(y,7),url:y.getUrl(),description:_.Zo(y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jl(Dz(y))}});
return{action:D,docs:l,viewToken:n,view:U||"url",v2Translated:!0}},OA_=function(l,D,U,n){l=l.map(function(y){return{id:y.getId().getId(),
serviceId:"picasa",name:y.getName(),type:xP(y),description:_.Zo(y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jl(Dz(y))}});
return{action:D,docs:l,viewToken:n,view:U||"webcam",v2Translated:!0}},Nmm=function(l,D,U,n){return{action:D,
docs:l.map(lBy),viewToken:n,view:DEH(U||"upload",l),extraUserInputs:iSy(l),v2Translated:!0}},DEH=function(l,D){return D.some(function(U){var n;
return((n=_.MZ(U,VG,30))==null?void 0:_.eY(n,3))===9})?l+"/gmailphotos":l},$Mv=function(l,D,U,n){var y=l.map(function(A){var C={id:A.getId().getId(),
serviceId:"picasa",mimeType:_.Zo(A,7),name:A.getName(),type:xP(A),lastEditedUtc:_.Zwv(_.MZ(A,_.mG,12)).getTime(),url:A.getUrl(),sizeBytes:Number(cy5(A)),description:_.Zo(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jl(Dz(A)),mediaKey:A.getId().getId(),parentId:_.Zo(A,4)},h,b=(h=_.MZ(A,tU8,18))==null?void 0:_.MZ(h,ay5,3);b&&(C.latitude=Rm(b,1),C.longitude=Rm(b,2));var u;A=(u=_.MZ(A,tU8,18))==null?void 0:MF(u,6);u=A!=null?Ed(A):void 0;u&&(C.version=
u);return C});
return{action:D,docs:y,viewToken:n,view:U||"photos",extraUserInputs:iSy(l),v2Translated:!0}},fmH=function(l,D,U,n){l=l.map(function(y){return{id:y.getId().getId(),
serviceId:"et",name:Dz(y)[0].getUrl().split("/").pop(),description:_.Zo(y,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jl(Dz(y),"etjpg")}});
return{action:D,docs:l,viewToken:n,view:U||"et",v2Translated:!0}},Y1h=function(l,D,U,n){l=l.map(function(y){var A=y.getId().getId(),C=n["2"];
return{id:A,serviceId:C.type!=="gmail_themes"&&C.parent==="6226252643674576769"?"picasa":"static_themes",name:y.getName(),mimeType:_.Zo(y,7),type:xP(y),description:_.Zo(y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:y.getUrl(),embedUrl:y.getUrl(),thumbnails:jl(Dz(y))}});
return{action:D,docs:l,viewToken:n,view:U||"photos",v2Translated:!0}},s1y=function(l,D){l=l.map(function(U){var n=_.MZ(U,mx_,27);
n=_.H2(n,1,_.Zv,_.vE())[0];return{id:U.getId().getId(),serviceId:"contacts",mimeType:_.Zo(U,7),name:U.getName(),description:_.Zo(U,3),url:"mailto:"+n,thumbnail:[{url:_.Zo(U,11)}],email:n}});
return{action:D,docs:l,view:"contacts",v2Translated:!0}},zX8=function(l){if(!l)return{};
var D=_.Zo(l,3);D=D&&JSON.parse(D)||{};return{0:_.Zo(l,1),1:_.Zo(l,2),2:D}},jl=function(l,D){D=D===void 0?"":D;
if(!l.length)return null;D=="etjpg"&&(l=l.filter(function(U){return U.getUrl().includes("w1200-h300")}));
return l.map(function(U){return{url:U.getUrl(),height:U.getHeight(),width:U.getWidth(),type:D}})},iSy=function(l){return{isAttachment:l.some(function(D){return _.qF(D,31)})}},lBy=function(l){var D,U={id:(D=l.getId())==null?void 0:D.getId(),
serviceId:UE7(l),mimeType:_.Zo(l,7),name:l.getName(),type:xP(l),sizeBytes:Number(cy5(l)),description:_.Zo(l,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jl(Dz(l)),isNew:!0};if(D=_.MZ(l,VG,30)){U.dataUrl=_.Zo(D,1)||null;a:{var n=_.MZ(l,VG,30);switch(_.eY(n,3)){case 9:n=_.tU(n,dxr,2,ln);n={remoteRefs:n&&_.Zo(n,1)};break a;case 10:case 15:n=_.tU(n,kCH,4,ln);var y=Dz(l);n={photo_id:n&&_.Zo(n,1),media_key:l.getId().getId(),media_type:_.eY(l,6)===1?1:2,image_url:y&&
y[0].getUrl(),width:y&&String(y[0].getWidth()),height:y&&String(y[0].getHeight())};break a}n=null}U.uploadMetadata=n;U.uploadId=_.Zo(D,9)||null;U.uploadState=nxr(D)||null}(n=D&&_.tU(D,kCH,4,ln))&&(U.id=_.Zo(n,1));(n=D&&_.tU(D,K7r,5,ln))&&(U.contentId=_.Zo(n,1));(n=D&&_.tU(D,XEv,7,ln))&&(U.contentId=_.Zo(n,1));(n=D&&_.tU(D,Sdy,6,ln))&&(U.contentId=_.Zo(n,1));(D==null?void 0:_.eY(D,3))===1&&(U.mediaKey=l.getId().getId());return U},UE7=function(l){var D;
switch(((D=_.MZ(l,VG,30))==null?void 0:_.eY(D,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},xP=function(l){switch(_.eY(l,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 _.Zo(l,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},nxr=function(l){switch(l==null?void 0:_.eY(l,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 B0_,yO5,AOz,Ww7;_.C6h=function(l,D){var U=D||{};D=U.document||document;var n=_.Kc(l).toString(),y=(new tz(D)).createElement("SCRIPT"),A={script_:y,timeout_:void 0},C=new OY(yO5,A),h=null,b=U.timeout!=null?U.timeout:5E3;b>0&&(h=window.setTimeout(function(){AOz(y,!0);C.errback(new Ww7(1,"Timeout reached for loading script "+n))},b),A.timeout_=h);
y.onload=y.onreadystatechange=function(){y.readyState&&y.readyState!="loaded"&&y.readyState!="complete"||(AOz(y,U.cleanupWhenDone||!1,h),C.callback(null))};
y.onerror=function(){AOz(y,!0,h);C.errback(new Ww7(0,"Error while loading script "+n))};
A=U.attributes||{};_.we.extend(A,{type:"text/javascript",charset:"UTF-8"});vmy(y,A);_.BY(y,l);B0_(D).appendChild(y);return C};
B0_=function(l){var D=ds("HEAD",l);return D&&D.length!==0?D[0]:l.documentElement};
yO5=function(){if(this&&this.script_){var l=this.script_;l&&l.tagName=="SCRIPT"&&AOz(l,!0,this.timeout_)}};
AOz=function(l,D,U){U!=null&&_.nC.clearTimeout(U);l.onload=function(){};
l.onerror=function(){};
l.onreadystatechange=function(){};
D&&window.setTimeout(function(){_.kT(l)},0)};
Ww7=function(l,D){var U="Jsloader error (code #"+l+")";D&&(U+=": "+D);_.D9.call(this,U);this.code=l};
_.HI(Ww7,_.D9);var h6H=_.wL(["https://apis.google.com/js/api.js"]),P6k=_.Ja(h6H),vxH=function(l,D,U){U=U===void 0?{}:U;var n=!1,y=bSk(l,D,U).then(function(C){n=!0;return C}),A=_.og1(5E3).then(function(){return n?bSk(l,D,U):gxm(D,U).then(function(C){return u4v(C,l)})});
return aQk([y,A])},bSk=function(l,D,U){U=U===void 0?{}:U;
return QAh(D,U).then(function(n){return u4v(n,l)})},u4v=function(l,D){var U=_.Ad(D,"gapi.")?D.slice(5):D;
return l[U]?_.Ut(l[U]):new _.X0(function(n,y){var A=cb(function(){y(Error("Ya"))},3E4);
l.load(D,{callback:function(){_.nC.clearTimeout(A);n(l[U])},
onerror:function(C){_.nC.clearTimeout(A);y(C)}})})},QAh=function(l,D){D=D===void 0?{}:D;
return l.gapi&&l.gapi.load?_.Ut(l.gapi):gxm(l,D)},gxm=function(l,D){D=D===void 0?{}:D;
return _.C6h(P6k,{document:l.document,attributes:D}).then(function(){return l.gapi})},Gsh=function(){};
Gsh.prototype.load=function(l,D,U){D=D===void 0?window:D;U=U===void 0?{}:U;var n=Date.now();return vxH(l,D,U).then(function(y){var A=Date.now();return{library:y,loadStartMs:n,loadEndMs:A}},function(y){throw y instanceof Error?y:Error(String(y));
})};var A3g=function(){_.xT.call(this);this.gapiLoader_=new Gsh;this.origin_=null;this.gapiPickerIframeResolver_=_.wf();this.gapiIframesResolver_=_.wf();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.Z(A3g,_.xT);var JO7=function(l,D){var U=U===void 0?{}:U;var n=_.UG("gapi.iframes",D);return n?(l=Date.now(),_.Ut({library:n,loadStartMs:l,loadEndMs:l})):l.gapiLoader_.load("gapi.iframes",D,U)},Lw5=function(l,D,U,n,y,A){var C=!1;
C=C===void 0?!1:C;JO7(l,f2(D.ownerDocument)).then(function(h){var b=h.library;l.gapiIframesResolver_.resolve(b);h=l.gapiPickerIframeResolver_;var u=h.resolve,Q=C;Q=Q===void 0?!1:Q;var G={};G["host-message-handler"]=U;l.hostMessageHandlerInternal_=G;var J=_.Dp(n);J=_.Dp(J);J=_.Wp(_.A8(_.y8(new _.fI,J.scheme_),J.JSC$10113_domain_),J.JSC$10113_port_).toString();l.origin_=J;J=(new jI_).setUrl(n);J.JSC$10128_obj_.where=D;J.JSC$10128_obj_.allowPost=Q;J.JSC$10128_obj_.messageHandlers=G;Q=_.UG("makeWhiteListIframesFilter",
b)([l.origin_]);J.JSC$10128_obj_.messageHandlersFilter=Q;y!=null&&(J.JSC$10128_obj_.id=y);A!=null&&(J.JSC$10128_obj_.rpctoken=A);Q=xay(J);Q.JSC$10125_obj_.style={display:"block","min-width":"100%",width:"1px"};Q.JSC$10125_obj_.height="100%";xay(J).value().allow="camera 'src' "+l.origin_;b=b.getContext().openChild(J.value());u.call(h,b)},function(h){l.gapiIframesResolver_.reject(h);
l.gapiPickerIframeResolver_.reject(h)});
return l.gapiPickerIframeResolver_.promise},q2g=function(l,D){return _.dx([l.gapiIframesResolver_.promise,
l.gapiPickerIframeResolver_.promise]).then(function(U){var n=_.B(U);U=n.next().value;return(n=n.next().value)?n.send("picker-message-handler",D,void 0,_.UG("makeWhiteListIframesFilter",U)([l.origin_])):_.Le(Error("Za"))})};
A3g.prototype.disposeInternal=function(){MV8(this);_.xT.prototype.disposeInternal.call(this)};
var MV8=function(l){l.gapiPickerIframeResolver_.promise.then(function(D){D&&(D.unregister("host-message-handler"),delete l.hostMessageHandlerInternal_["host-message-handler"])})};var R6H=function(){this.nextId=0};var e6r=function(l,D){switch(l.action){case "select-contacts":l=ZSv(l.contacts);break;case "visibility":l=l.visible;var U=new Wb;l=_.SY(U,1,7).setVisible(l);U={};U["iframe-command"]=l.serialize();l=U;break;default:l=null}return l?q2g(D,l):_.Ut()},ZSv=function(l){if(!l||l.length==0)return null;
var D=new Wb;_.SY(D,1,11);var U=new R6H;l.forEach(function(n){if(n.email){var y=new JU;y=_.jt(y,2,n.name?n.name:n.email);var A=new mx_;n=_.z89(A,1,_.LP,n.email,_.Zv);n=_.al(y,27,n);y=new R3v;A=":"+(U.nextId++).toString(36);y=_.jt(y,1,A);y=_.SY(y,2,12);n=_.al(n,1,y)}else n=null;n&&KB(D,7,JU,n)});
l={};l["iframe-command"]=D.serialize();return l};_.mE7=function(){if(Tly){var l=/Windows NT ([0-9.]+)/;return(l=l.exec(_.LC()))?l[1]:"0"}return _.E9v?(l=/1[0|1][_.][0-9_.]+/,(l=l.exec(_.LC()))?l[0].replace(/_/g,"."):"10"):$TN?(l=/Android\s+([^\);]+)(\)|;)/,(l=l.exec(_.LC()))?l[1]:""):HC1||Yc7||OCz?(l=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(l=l.exec(_.LC()))?l[1].replace(/_/g,"."):""):""}();var FC;FC=function(l){return(l=l.exec(_.LC()))?l[1]:""};
_.aBk=function(){if(_.nh)return FC(/Firefox\/([0-9.]+)/);if(_.iB||gb||$sg)return yyH;if(_.yJ){if(_.dl()||_.mso()){var l=FC(/CriOS\/([0-9.]+)/);if(l)return l}return FC(/Chrome\/([0-9.]+)/)}if(_.id&&!_.dl())return FC(/Version\/([0-9.]+)/);if(Tj_||IP9){if(l=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.LC()))return l[1]+"."+l[2]}else if(hz_)return(l=FC(/Android\s+([0-9.]+)/))?l:FC(/Version\/([0-9.]+)/);return""}();var tVz=function(){};
_.Th(tVz);tVz.prototype.nextId_=0;_.o8=function(l){return":"+(l.nextId_++).toString(36)};var wI=function(l){_.Xa.call(this);this.JSC$10223_dom_=l||K2();this.JSC$10223_id_=null;this.inDocument_=!1;this.JSC$10223_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.HI(wI,_.Xa);wI.prototype.idGenerator_=tVz.getInstance();wI.prototype.getId=function(){return this.JSC$10223_id_||(this.JSC$10223_id_=_.o8(this.idGenerator_))};
wI.prototype.getElement=function(){return this.JSC$10223_element_};
var rI=function(l){l.googUiComponentHandler_||(l.googUiComponentHandler_=new _.ZB(l));return l.googUiComponentHandler_},XT1=function(l,D){if(l==D)throw Error("$a");
var U;if(U=D&&l.parent_&&l.JSC$10223_id_){U=l.parent_;var n=l.JSC$10223_id_;U=U.childIndex_&&n?_.we.get(U.childIndex_,n)||null:null}if(U&&l.parent_!=D)throw Error("$a");l.parent_=D;wI.superClass_.setParentEventTarget.call(l,D)};
wI.prototype.setParentEventTarget=function(l){if(this.parent_&&this.parent_!=l)throw Error("ab");wI.superClass_.setParentEventTarget.call(this,l)};
wI.prototype.JSC$10225_createDom=function(){this.JSC$10223_element_=this.JSC$10223_dom_.createElement("DIV")};
wI.prototype.render=function(l){S2v(this,l)};
var S2v=function(l,D,U){if(l.inDocument_)throw Error("bb");l.JSC$10223_element_||l.JSC$10225_createDom();D?D.insertBefore(l.JSC$10223_element_,U||null):l.JSC$10223_dom_.JSC$9407_document_.body.appendChild(l.JSC$10223_element_);l.parent_&&!l.parent_.inDocument_||l.enterDocument()};
_.W=wI.prototype;_.W.decorate=function(l){if(this.inDocument_)throw Error("bb");if(l&&this.canDecorate(l)){this.wasDecorated_=!0;var D=_.$m(l);this.JSC$10223_dom_&&this.JSC$10223_dom_.JSC$9407_document_==D||(this.JSC$10223_dom_=K2(l));this.decorateInternal(l);this.enterDocument()}else throw Error("cb");};
_.W.canDecorate=function(){return!0};
_.W.decorateInternal=function(l){this.JSC$10223_element_=l};
_.W.enterDocument=function(){this.inDocument_=!0;ksr(this,function(l){!l.inDocument_&&l.getElement()&&l.enterDocument()})};
_.W.exitDocument=function(){ksr(this,function(l){l.inDocument_&&l.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.W.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);ksr(this,function(l){l.dispose()});
!this.wasDecorated_&&this.JSC$10223_element_&&_.kT(this.JSC$10223_element_);this.parent_=this.model_=this.JSC$10223_element_=this.childIndex_=this.children_=null;wI.superClass_.disposeInternal.call(this)};
_.W.getModel=function(){return this.model_};
_.W.addChild=function(l,D){var U=this.children_?this.children_.length:0;if(l.inDocument_&&(D||!this.inDocument_))throw Error("bb");if(U<0||U>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);l.parent_==this?(_.we.set(this.childIndex_,l.getId(),l),_.fC(this.children_,l)):_.we.add(this.childIndex_,l.getId(),l);XT1(l,this);_.cdG(this.children_,U,0,l);l.inDocument_&&this.inDocument_&&l.parent_==this?(D=this.getContentElement(),
(D.childNodes[U]||null)!=l.getElement()&&(l.getElement().parentElement==D&&D.removeChild(l.getElement()),U=D.childNodes[U]||null,D.insertBefore(l.getElement(),U))):D?(this.JSC$10223_element_||this.JSC$10225_createDom(),U=this.children_?this.children_[U+1]||null:null,S2v(l,this.getContentElement(),U?U.JSC$10223_element_:null)):this.inDocument_&&!l.inDocument_&&l.JSC$10223_element_&&l.JSC$10223_element_.parentNode&&l.JSC$10223_element_.parentNode.nodeType==1&&l.enterDocument()};
_.W.getContentElement=function(){return this.JSC$10223_element_};
var ksr=function(l,D){l.children_&&l.children_.forEach(D,void 0)};
wI.prototype.removeChild=function(l,D){if(l){var U=typeof l==="string"?l:l.getId();l=this.childIndex_&&U?_.we.get(this.childIndex_,U)||null:null;U&&l&&(_.we.remove(this.childIndex_,U),_.fC(this.children_,l),D&&(l.exitDocument(),l.JSC$10223_element_&&_.kT(l.JSC$10223_element_)),XT1(l,null))}if(!l)throw Error("eb");return l};_.HI(YG9,Ht3);_.HI(Ots,Ht3);var dE1;_.we.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var Kw7=function(l,D){D?l.setAttribute("role",D):l.removeAttribute("role")},zr=function(l,D,U){Array.isArray(U)&&(U=U.join(" "));
var n="aria-"+D;U===""||U==void 0?(dE1||(U={},dE1=(U.atomic=!1,U.autocomplete="none",U.dropeffect="none",U.haspopup=!1,U.live="off",U.multiline=!1,U.multiselectable=!1,U.orientation="vertical",U.readonly=!1,U.relevant="additions text",U.required=!1,U.sort="none",U.busy=!1,U.disabled=!1,U.hidden=!1,U.invalid="false",U)),U=dE1,D in U?l.setAttribute(n,U[D]):l.removeAttribute(n)):l.setAttribute(n,U)};var cO7;_.fL=function(l,D,U){_.Xa.call(this);this.target=l;this.handle=D||l;this.limits=U||new oR(NaN,NaN,NaN,NaN);this.JSC$10228_document_=_.$m(l);this.JSC$10228_eventHandler_=new _.ZB(this);_.m7(this,this.JSC$10228_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;_.Gt(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=cO7};
_.HI(_.fL,_.Xa);cO7=_.nC.document&&_.nC.document.documentElement&&!!_.nC.document.documentElement.setCapture&&!!_.nC.document.releaseCapture;_.pT8=function(l,D){l.hysteresisDistanceSquared_=Math.pow(D,2)};
_.W=_.fL.prototype;_.W.setEnabled=function(l){this.enabled_=l};
_.W.disposeInternal=function(){_.fL.superClass_.disposeInternal.call(this);_.tX(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10228_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10228_document_.releaseCapture();this.handle=this.target=null};
_.W.startDrag=function(l){var D=l.type=="mousedown";if(!this.enabled_||this.dragging_||D&&(!l.isButton(0)||_.E9v&&l.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new $P("start",this,l.clientX,l.clientY,l)))this.dragging_=!0,D&&l.preventDefault();else return;else D&&l.preventDefault();D=this.JSC$10228_document_;var U=D.documentElement,n=!this.useSetCapture_;this.JSC$10228_eventHandler_.listen(D,["touchmove","mousemove"],this.handleMove_,
{capture:n,passive:!1});this.JSC$10228_eventHandler_.listen(D,["touchend","mouseup"],this.endDrag,n);this.useSetCapture_?(U.setCapture(!1),this.JSC$10228_eventHandler_.listen(U,"losecapture",this.endDrag)):this.JSC$10228_eventHandler_.listen(f2(D),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10228_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,n);this.clientX=this.startX=l.clientX;this.clientY=this.startY=l.clientY;this.screenX=l.screenX;this.screenY=l.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=de(K2(this.JSC$10228_document_))}};
_.W.endDrag=function(l,D){this.JSC$10228_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10228_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new $P("end",this,l.clientX,l.clientY,l,xE7(this,this.deltaX),jAk(this,this.deltaY),D||l.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.W.handleMove_=function(l){if(this.enabled_){var D=l.clientX-this.clientX,U=l.clientY-this.clientY;this.clientX=l.clientX;this.clientY=l.clientY;this.screenX=l.screenX;this.screenY=l.screenY;if(!this.dragging_){var n=this.startX-this.clientX,y=this.startY-this.clientY;if(n*n+y*y>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new $P("start",this,l.clientX,l.clientY,l)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(l);return}}U=Fwh(this,D,U);D=U.x;U=U.y;this.dragging_&&this.dispatchEvent(new $P("beforedrag",
this,l.clientX,l.clientY,l,D,U))&&(ox8(this,l,D,U),l.preventDefault())}};
var Fwh=function(l,D,U){var n=de(K2(l.JSC$10228_document_));D+=n.x-l.pageScroll.x;U+=n.y-l.pageScroll.y;l.pageScroll=n;l.deltaX+=D;l.deltaY+=U;return new _.zP(xE7(l,l.deltaX),jAk(l,l.deltaY))};
_.fL.prototype.onScroll_=function(l){var D=Fwh(this,0,0);l.clientX=this.clientX;l.clientY=this.clientY;ox8(this,l,D.x,D.y)};
var ox8=function(l,D,U,n){l.target.style.left=U+"px";l.target.style.top=n+"px";l.dispatchEvent(new $P("drag",l,D.clientX,D.clientY,D,U,n))},xE7=function(l,D){var U=l.limits;
l=isNaN(U.left)?null:U.left;U=isNaN(U.width)?0:U.width;return Math.min(l!=null?l+U:Infinity,Math.max(l!=null?l:-Infinity,D))},jAk=function(l,D){var U=l.limits;
l=isNaN(U.top)?null:U.top;U=isNaN(U.height)?0:U.height;return Math.min(l!=null?l+U:Infinity,Math.max(l!=null?l:-Infinity,D))};
_.fL.prototype.isDragging=function(){return this.dragging_};
var $P=function(l,D,U,n,y,A,C){_.Zz.call(this,l);this.clientX=U;this.clientY=n;this.browserEvent=y;this.left=A!==void 0?A:D.deltaX;this.top=C!==void 0?C:D.deltaY};
_.HI($P,_.Zz);var NH=function(l){this.JSC$10235_map_=new Map;var D=arguments.length;if(D>1){if(D%2)throw Error("ma");for(var U=0;U<D;U+=2)this.set(arguments[U],arguments[U+1])}else l&&this.addAll(l)};
_.W=NH.prototype;_.W.getCount=function(){return this.JSC$10235_map_.size};
_.W.getValues=function(){return Array.from(this.JSC$10235_map_.values())};
_.W.getKeys=function(){return Array.from(this.JSC$10235_map_.keys())};
_.W.containsKey=function(l){return this.JSC$10235_map_.has(l)};
_.W.containsValue=function(l){return this.getValues().some(function(D){return D==l})};
_.W.equals=function(l,D){var U=this;D=D===void 0?function(n,y){return n===y}:D;
return this===l?!0:this.JSC$10235_map_.size!=l.getCount()?!1:this.getKeys().every(function(n){return D(U.JSC$10235_map_.get(n),l.get(n))})};
_.W.isEmpty=function(){return this.JSC$10235_map_.size==0};
_.W.clear=function(){this.JSC$10235_map_.clear()};
_.W.remove=function(l){return this.JSC$10235_map_.delete(l)};
_.W.get=function(l,D){return this.JSC$10235_map_.has(l)?this.JSC$10235_map_.get(l):D};
_.W.set=function(l,D){this.JSC$10235_map_.set(l,D);return this};
_.W.addAll=function(l){if(l instanceof NH){l=_.B(l.JSC$10235_map_);for(var D=l.next();!D.done;D=l.next()){var U=_.B(D.value);D=U.next().value;U=U.next().value;this.JSC$10235_map_.set(D,U)}}else if(l)for(l=_.B(Object.entries(l)),D=l.next();!D.done;D=l.next())U=_.B(D.value),D=U.next().value,U=U.next().value,this.JSC$10235_map_.set(D,U)};
_.W.forEach=function(l,D){var U=this;D=D===void 0?this:D;this.JSC$10235_map_.forEach(function(n,y){return l.call(D,n,y,U)})};
_.W.clone=function(){return new NH(this)};(function(){for(var l=["ms","moz","webkit","o"],D,U=0;D=l[U]&&!_.nC.requestAnimationFrame;++U)_.nC.requestAnimationFrame=_.nC[D+"RequestAnimationFrame"],_.nC.cancelAnimationFrame=_.nC[D+"CancelAnimationFrame"]||_.nC[D+"CancelRequestAnimationFrame"];if(!_.nC.requestAnimationFrame){var n=0;_.nC.requestAnimationFrame=function(y){var A=(new Date).getTime(),C=Math.max(0,16-(A-n));n=A+C;return _.nC.setTimeout(function(){y(A+C)},C)};
_.nC.cancelAnimationFrame||(_.nC.cancelAnimationFrame=function(y){clearTimeout(y)})}})();
var wTH=[[],[]],rO8=0,z67=!1,fBh=0,N0k=function(l,D){var U=fBh++,n={measureTask:{id:U,fn:l.measure,context:D},mutateTask:{id:U,fn:l.mutate,context:D},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(n.args||(n.args=[]),n.args.length=0,n.args.push.apply(n.args,arguments),n.args.push(n.state)):n.args&&n.args.length!=0?(n.args[0]=n.state,n.args.length=1):n.args=[n.state];n.isScheduled||(n.isScheduled=!0,wTH[rO8].push(n));z67||(z67=!0,window.requestAnimationFrame($Em))}},$Em=
function(){z67=!1;
var l=wTH[rO8],D=l.length;rO8=(rO8+1)%2;for(var U,n=0;n<D;++n){U=l[n];var y=U.measureTask;U.isScheduled=!1;y.fn&&y.fn.apply(y.context,U.args)}for(n=0;n<D;++n)U=l[n],y=U.mutateTask,U.isScheduled=!1,y.fn&&y.fn.apply(y.context,U.args),U.state={};l.length=0};var sA7=_.wL(["about:blank"]),Exy=_.wL(["javascript:undefined"]),T0h=_.Ja(sA7);_.Kc(T0h);var IBr=_.Ja(Exy);_.Kc(IBr);var sg=function(l){_.Xa.call(this);this.JSC$10241_element_=l;this.listenKeyIn_=_.Gt(this.JSC$10241_element_,"focus",this,!0);this.listenKeyOut_=_.Gt(this.JSC$10241_element_,"blur",this,!0)};
_.HI(sg,_.Xa);sg.prototype.handleEvent=function(l){var D=new _.ee(l.event_);D.type=l.type=="focusin"||l.type=="focus"?"focusin":"focusout";this.dispatchEvent(D)};
sg.prototype.disposeInternal=function(){sg.superClass_.disposeInternal.call(this);um(this.listenKeyIn_);um(this.listenKeyOut_);delete this.JSC$10241_element_};var HSg=function(l,D){this.JSC$10244_element_=l;this.JSC$10244_dom_=D};var Eg=function(l,D){wI.call(this,D);this.useIframeMask_=!!l;this.lastFocus_=null;this.resizeBackgroundTask_=N0k({mutate:this.resizeBackground_},this);N0k({mutate:this.updateModalAndBackground_},this)};
_.HI(Eg,wI);_.W=Eg.prototype;_.W.focusHandler_=null;_.W.visible_=!1;_.W.bgEl_=null;_.W.bgIframeEl_=null;_.W.tabCatcherElement_=null;_.W.backwardTabWrapInProgress_=!1;_.W.getCssClass=function(){return"goog-modalpopup"};
_.W.getBackgroundElement=function(){return this.bgEl_};
_.W.JSC$10225_createDom=function(){Eg.superClass_.JSC$10225_createDom.call(this);var l=this.getElement(),D=uG(this.getCssClass()).split(" ");Hb(l,D);l.tabIndex=0;_.Aq(l,!1);Y2k(this);OS7(this)};
var Y2k=function(l){if(l.useIframeMask_&&!l.bgIframeEl_){var D=l.JSC$10223_dom_.JSC$9409_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.i8(D,T0h);l.bgIframeEl_=D;l.bgIframeEl_.className=l.getCssClass()+"-bg";_.Aq(l.bgIframeEl_,!1);Ne1(l.bgIframeEl_,0)}l.bgEl_||(l.bgEl_=l.JSC$10223_dom_.JSC$9409_createDom("DIV",l.getCssClass()+"-bg"),_.Aq(l.bgEl_,!1))},OS7=function(l){l.tabCatcherElement_||(l.tabCatcherElement_=l.JSC$10223_dom_.createElement("SPAN"),_.Aq(l.tabCatcherElement_,
!1),l.tabCatcherElement_.tabIndex=0,l.tabCatcherElement_.style.position="absolute")};
_.W=Eg.prototype;_.W.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.W.canDecorate=function(l){return!!l&&l.tagName=="DIV"};
_.W.decorateInternal=function(l){Eg.superClass_.decorateInternal.call(this,l);l=uG(this.getCssClass()).split(" ");Hb(this.getElement(),l);Y2k(this);OS7(this);this.getElement().tabIndex=0;_.Aq(this.getElement(),!1)};
_.W.enterDocument=function(){this.bgIframeEl_&&_.pT(this.bgIframeEl_,this.getElement());_.pT(this.bgEl_,this.getElement());Eg.superClass_.enterDocument.call(this);_.xh(this.tabCatcherElement_,this.getElement());this.focusHandler_=new sg(this.JSC$10223_dom_.JSC$9407_document_);rI(this).listen(this.focusHandler_,"focusin",this.onFocus);VV8(this,!1)};
_.W.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.WE(this.focusHandler_);Eg.superClass_.exitDocument.call(this);_.kT(this.bgIframeEl_);_.kT(this.bgEl_);_.kT(this.tabCatcherElement_)};
_.W.setVisible=function(l){if(l!=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_&&VV8(this,l),l){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10223_dom_.JSC$9407_document_.activeElement}catch(y){}this.updateModalAndBackground_();rI(this).listen(this.JSC$10223_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10223_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);iIm(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)gh(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){rI(this).unlisten(this.JSC$10223_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10223_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)gh(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var D=this.JSC$10223_dom_,U=D.JSC$9407_document_.body,n=D.JSC$9407_document_.activeElement||U;if(!this.lastFocus_||this.lastFocus_==U){this.lastFocus_=null;break a}(n==U||D.contains(this.getElement(),n))&&this.lastFocus_.focus()}catch(y){}this.lastFocus_=
null}}};
var VV8=function(l,D){l.modalAriaVisibilityHelper_||(l.modalAriaVisibilityHelper_=new HSg(l.JSC$10223_element_,l.JSC$10223_dom_));l=l.modalAriaVisibilityHelper_;if(D){l.hiddenElements_||(l.hiddenElements_=[]);D=l.JSC$10244_dom_.getChildren(l.JSC$10244_dom_.JSC$9407_document_.body);for(var U=0;U<D.length;U++){var n=D[U],y;if(y=n!=l.JSC$10244_element_)y=n.getAttribute("aria-hidden"),y=!(y==null||y==void 0?0:String(y));y&&(zr(n,"hidden",!0),l.hiddenElements_.push(n))}}else if(l.hiddenElements_){for(D=
0;D<l.hiddenElements_.length;D++)l.hiddenElements_[D].removeAttribute("aria-hidden");l.hiddenElements_=null}};
Eg.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var iIm=function(l,D){l.bgIframeEl_&&_.Aq(l.bgIframeEl_,D);l.bgEl_&&_.Aq(l.bgEl_,D);_.Aq(l.getElement(),D);_.Aq(l.tabCatcherElement_,D)};
_.W=Eg.prototype;_.W.onShow=function(){this.dispatchEvent("show")};
_.W.onHide=function(){iIm(this,!1);this.dispatchEvent("hide")};
_.W.isVisible=function(){return this.visible_};
_.W.focus=function(){this.focusElement_()};
_.W.resizeBackground_=function(){this.bgIframeEl_&&_.Aq(this.bgIframeEl_,!1);this.bgEl_&&_.Aq(this.bgEl_,!1);var l=this.JSC$10223_dom_.JSC$9407_document_;var D=_.km(f2(this.JSC$10223_dom_.JSC$9407_document_)||window);var U=Math.max(D.width,Math.max(l.body.scrollWidth,l.documentElement.scrollWidth));l=Math.max(D.height,Math.max(l.body.scrollHeight,l.documentElement.scrollHeight));this.bgIframeEl_&&(_.Aq(this.bgIframeEl_,!0),_.rah(this.bgIframeEl_,U,l));this.bgEl_&&(_.Aq(this.bgEl_,!0),_.rah(this.bgEl_,
U,l))};
_.W.reposition=function(){var l;if(_.w7y(this.getElement())=="fixed")var D=l=0;else D=de(this.JSC$10223_dom_),l=D.x,D=D.y;var U=fUv(this.getElement());var n=_.km(f2(this.JSC$10223_dom_.JSC$9407_document_)||window);l=Math.max(l+n.width/2-U.width/2,0);D=Math.max(D+n.height/2-U.height/2,0);z5(this.getElement(),l,D);z5(this.tabCatcherElement_,l,D)};
_.W.onFocus=function(l){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():l.target==this.tabCatcherElement_&&cb(this.focusElement_,0,this)};
_.W.focusElement_=function(){try{this.getElement().focus()}catch(l){}};
_.W.disposeInternal=function(){_.WE(this.popupShowTransition_);this.popupShowTransition_=null;_.WE(this.popupHideTransition_);this.popupHideTransition_=null;_.WE(this.bgShowTransition_);this.bgShowTransition_=null;_.WE(this.bgHideTransition_);this.bgHideTransition_=null;Eg.superClass_.disposeInternal.call(this)};var TC=function(l,D,U){Eg.call(this,D,U);this.JSC$10254_class_=l||"modal-dialog";this.buttons_=(new Tr).addButton(l5h,!0).addButton(DA7,!1,!0)};
_.HI(TC,Eg);_.W=TC.prototype;_.W.escapeToCancel_=!0;_.W.hasTitleCloseButton_=!0;_.W.modal_=!0;_.W.draggable_=!0;_.W.backgroundElementOpacity_=.5;_.W.title_="";_.W.JSC$10256_dragger_=null;_.W.JSC$10256_disposeOnHide_=!1;_.W.titleEl_=null;_.W.titleTextEl_=null;_.W.titleTextId_=null;_.W.titleCloseEl_=null;_.W.contentEl_=null;_.W.buttonEl_=null;_.W.getCssClass=function(){return this.JSC$10254_class_};
_.W.setTitle=function(l){this.title_=l;this.titleTextEl_&&_.Fp(this.titleTextEl_,l)};
_.W.getTitle=function(){return this.title_};
_.W.getContent=function(){return""};
_.W.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var UA8=function(l){l.getElement()||l.render();return l.getElement()};
TC.prototype.getBackgroundElement=function(){this.getElement()||this.render();return TC.superClass_.getBackgroundElement.call(this)};
var n27=function(l,D){l.backgroundElementOpacity_=D;l.getElement()&&(D=l.getBackgroundElement())&&Ne1(D,l.backgroundElementOpacity_)};
TC.prototype.setDraggable=function(l){this.draggable_=l;y65(this,l&&this.inDocument_)};
TC.prototype.handleDrag=function(){};
var y65=function(l,D){var U=uG(l.JSC$10254_class_+"-title-draggable").split(" ");l.getElement()&&(D?Hb(l.titleEl_,U):KWh(l.titleEl_,U));D&&!l.JSC$10256_dragger_?(D=new _.fL(l.getElement(),l.titleEl_),l.JSC$10256_dragger_=D,Hb(l.titleEl_,U),_.Gt(l.JSC$10256_dragger_,"start",l.setDraggerLimits_,!1,l),_.Gt(l.JSC$10256_dragger_,"drag",l.handleDrag,!1,l)):!D&&l.JSC$10256_dragger_&&(l.JSC$10256_dragger_.dispose(),l.JSC$10256_dragger_=null)};
_.W=TC.prototype;
_.W.JSC$10225_createDom=function(){TC.superClass_.JSC$10225_createDom.call(this);var l=this.getElement(),D=this.JSC$10223_dom_;this.titleTextId_=this.getId();var U=this.getId()+".contentEl";this.titleEl_=D.JSC$9409_createDom("DIV",this.JSC$10254_class_+"-title",this.titleTextEl_=D.JSC$9409_createDom("SPAN",{className:this.JSC$10254_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=D.JSC$9409_createDom("SPAN",this.JSC$10254_class_+"-title-close"));qj8(l,this.titleEl_,this.contentEl_=
D.JSC$9409_createDom("DIV",{className:this.JSC$10254_class_+"-content",id:U}),this.buttonEl_=D.JSC$9409_createDom("DIV",this.JSC$10254_class_+"-buttons"));Kw7(this.titleTextEl_,"heading");Kw7(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;zr(this.titleCloseEl_,"label","Close");Kw7(l,"dialog");zr(l,"labelledby",this.titleTextId_||"");_.Aq(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(l=this.buttons_,l.JSC$10257_element_=this.buttonEl_,l.render());_.Aq(this.buttonEl_,!!this.buttons_);
n27(this,this.backgroundElementOpacity_)};
_.W.decorateInternal=function(l){TC.superClass_.decorateInternal.call(this,l);l=this.getElement();var D=this.JSC$10254_class_+"-content";this.contentEl_=Xp(document,null,D,l)[0];this.contentEl_||(this.contentEl_=this.JSC$10223_dom_.JSC$9409_createDom("DIV",D),l.appendChild(this.contentEl_));D=this.JSC$10254_class_+"-title";var U=this.JSC$10254_class_+"-title-text",n=this.JSC$10254_class_+"-title-close";(this.titleEl_=Xp(document,null,D,l)[0])?(this.titleTextEl_=Xp(document,null,U,this.titleEl_)[0],
this.titleCloseEl_=Xp(document,null,n,this.titleEl_)[0]):(this.titleEl_=this.JSC$10223_dom_.JSC$9409_createDom("DIV",D),l.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=p71(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.kh("SPAN",{className:U,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;zr(l,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10223_dom_.JSC$9409_createDom("SPAN",n),this.titleEl_.appendChild(this.titleCloseEl_));_.Aq(this.titleCloseEl_,this.hasTitleCloseButton_);D=this.JSC$10254_class_+"-buttons";(this.buttonEl_=Xp(document,null,D,l)[0])?(this.buttons_=new Tr(this.JSC$10223_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10223_dom_.JSC$9409_createDom("DIV",D),l.appendChild(this.buttonEl_),this.buttons_&&(l=this.buttons_,l.JSC$10257_element_=this.buttonEl_,l.render()),_.Aq(this.buttonEl_,
!!this.buttons_));n27(this,this.backgroundElementOpacity_)};
_.W.enterDocument=function(){TC.superClass_.enterDocument.call(this);rI(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);rI(this).listen(this.buttonEl_,"click",this.onButtonClick_);y65(this,this.draggable_);rI(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var l=this.getElement();Kw7(l,"dialog");this.titleTextEl_.id!==""&&zr(l,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){l=this.JSC$10223_dom_;
var D=this.getBackgroundElement();l.removeNode(this.bgIframeEl_);l.removeNode(D)}this.isVisible()&&VV8(this,!1)}};
_.W.exitDocument=function(){this.isVisible()&&this.setVisible(!1);y65(this,!1);TC.superClass_.exitDocument.call(this)};
_.W.setVisible=function(l){l!=this.isVisible()&&(this.inDocument_||this.render(),TC.superClass_.setVisible.call(this,l))};
_.W.onShow=function(){TC.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.W.onHide=function(){TC.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10256_disposeOnHide_&&this.dispose()};
_.W.setDraggerLimits_=function(){var l=this.JSC$10223_dom_.JSC$9407_document_,D=_.km(f2(l)||window),U=Math.max(l.body.scrollWidth,D.width);l=Math.max(l.body.scrollHeight,D.height);var n=fUv(this.getElement());_.w7y(this.getElement())=="fixed"?this.JSC$10256_dragger_.limits=new oR(0,0,Math.max(0,D.width-n.width),Math.max(0,D.height-n.height)):this.JSC$10256_dragger_.limits=new oR(0,0,U-n.width,l-n.height)};
_.W.onTitleCloseClick_=function(){A6_(this)};
var A6_=function(l){if(l.hasTitleCloseButton_){var D=l.buttons_,U=D&&D.cancelButton_;U?(D=D.get(U),l.dispatchEvent(new I8(U,D))&&l.setVisible(!1)):l.setVisible(!1)}},WQ7=function(l){l.hasTitleCloseButton_=!1;
l.titleCloseEl_&&_.Aq(l.titleCloseEl_,l.hasTitleCloseButton_)};
TC.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;TC.superClass_.disposeInternal.call(this)};
TC.prototype.onButtonClick_=function(l){a:{for(l=l.target;l!=null&&l!=this.buttonEl_;){if(l.tagName=="BUTTON")break a;l=l.parentNode}l=null}if(l&&!l.disabled){l=l.name;var D=this.buttons_.get(l);this.dispatchEvent(new I8(l,D))&&this.setVisible(!1)}};
TC.prototype.onKey_=function(l){var D=!1,U=!1,n=this.buttons_,y=l.target;if(l.type=="keydown")if(this.escapeToCancel_&&l.keyCode==27){var A=n&&n.cancelButton_;y=y.tagName=="SELECT"&&!y.disabled;A&&!y?(U=!0,D=n.get(A),D=this.dispatchEvent(new I8(A,D))):y||(D=!0)}else{if(l.keyCode==9&&l.shiftKey&&y==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(Q){}cb(this.resetBackwardTabWrap_,0,this)}}else if(l.keyCode==13){if(y.tagName=="BUTTON"&&!y.disabled)A=y.name;
else if(y==this.titleCloseEl_)A6_(this);else if(n){var C=n.defaultButton_,h;if(h=C)a:{h=ds("BUTTON",n.JSC$10257_element_);for(var b,u=0;b=h[u];u++)if(b.name==C||b.id==C){h=b;break a}h=null}y=(y.tagName=="TEXTAREA"||y.tagName=="SELECT"||y.tagName=="A")&&!y.disabled;!h||h.disabled||y||(A=C)}A&&n&&(U=!0,D=this.dispatchEvent(new I8(A,String(n.get(A)))))}else y!=this.titleCloseEl_||l.keyCode!=32&&l.key!=" "||A6_(this);if(D||U)l.stopPropagation(),l.preventDefault();D&&this.setVisible(!1)};
var I8=function(l,D){this.type="dialogselect";this.key=l;this.caption=D};
_.HI(I8,_.Zz);var Tr=function(l){NH.call(this);l||K2();this.cancelButton_=this.JSC$10257_element_=this.defaultButton_=null};
_.HI(Tr,NH);_.W=Tr.prototype;_.W.clear=function(){NH.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.W.set=function(l,D,U,n){NH.prototype.set.call(this,l,D);U&&(this.defaultButton_=l);n&&(this.cancelButton_=l);return this};
_.W.addButton=function(l,D,U){return this.set(l.key,l.caption,D,U)};
_.W.render=function(){if(this.JSC$10257_element_){_.Cz(this.JSC$10257_element_,hvl);var l=K2(this.JSC$10257_element_);this.forEach(function(D,U){D=l.JSC$9409_createDom("BUTTON",{name:U},D);U==this.defaultButton_&&(D.className="goog-buttonset-default");this.JSC$10257_element_.appendChild(D)},this)}};
_.W.decorate=function(l){if(l&&l.nodeType==1){this.JSC$10257_element_=l;l=ds("BUTTON",this.JSC$10257_element_);for(var D,U,n,y=0;D=l[y];y++)if(U=D.name||D.id,n=p71(D)||D.value,U){var A=y==0;this.set(U,n,A,D.name=="cancel");A&&_.zt(D,"goog-buttonset-default")}}};
_.W.getElement=function(){return this.JSC$10257_element_};
var l5h={key:"ok",caption:"OK"},DA7={key:"cancel",caption:"Cancel"},BVh={key:"yes",caption:"Yes"},CU1={key:"no",caption:"No"},hpk={key:"save",caption:"Save"},PUy={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Tr).addButton(l5h,!0,!0),(new Tr).addButton(l5h,!0).addButton(DA7,!1,!0),(new Tr).addButton(BVh,!0).addButton(CU1,!1,!0),(new Tr).addButton(BVh).addButton(CU1,!0).addButton(DA7,!1,!0),(new Tr).addButton(PUy).addButton(hpk).addButton(DA7,!0,!0));_.HI(V_9,TC);_.HI(i6$,Ij);var bIh=_.wL(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),g2_=_.wL(["//apis.google.com/js/rpc.js"]),Cdg=_.Ja(bIh),Bb$=_.Ja(g2_),DZ_=null;var HE=function(l,D){_.Xa.call(this);this.JSC$10266_element_=l;l=_.PA(this.JSC$10266_element_)?this.JSC$10266_element_:this.JSC$10266_element_?this.JSC$10266_element_.body:null;this.isRtl_=!!l&&_.sBH(l);this.listenKey_=_.Gt(this.JSC$10266_element_,_.lB?"DOMMouseScroll":"mousewheel",this,D)};
_.HI(HE,_.Xa);HE.prototype.handleEvent=function(l){var D=0,U=0,n=l.event_;n.type=="mousewheel"?(l=uGv(-n.wheelDelta),n.wheelDeltaX!==void 0?(D=uGv(-n.wheelDeltaX),U=uGv(-n.wheelDeltaY)):U=l):(l=n.detail,l>100?l=3:l<-100&&(l=-3),n.axis!==void 0&&n.axis===n.HORIZONTAL_AXIS?D=l:U=l);typeof this.maxDeltaX_==="number"&&(D=_.tS(D,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(U=_.tS(U,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(D=-D);D=new v2g(l,n,D,U);this.dispatchEvent(D)};
var uGv=function(l){return _.Do&&(_.E9v||I91)&&l%40!=0?l:l/40};
HE.prototype.disposeInternal=function(){HE.superClass_.disposeInternal.call(this);um(this.listenKey_);this.listenKey_=null};
var v2g=function(l,D,U,n){_.ee.call(this,D);this.type="mousewheel";this.detail=l;this.deltaX=U;this.deltaY=n};
_.HI(v2g,_.ee);_.sr=function(l){var D="instance_";if(l.instance_&&l.hasOwnProperty(D))return l.instance_;D=new l;return l.instance_=D};var WWl;var QSH=_.wL(["https://about:blank"]),Gah=_.wL(['javascript:""']),J6y=_.wL(["about:blank"]);_.HI(W_,V_9);_.W=W_.prototype;_.W.JSC$10274_url_="";_.W.JSC$10274_iframe_=null;_.W.iframeLoaded_=!1;_.W.loadedFired_=!1;_.W.callback_=function(){};
_.W.enterDocument=function(){W_.superClass_.enterDocument.call(this);y3l(this.getBackgroundElement(),rI(this))};
_.W.render=function(l){var D=this;W_.superClass_.render.call(this,l);this.useGapi_?JO7(this.iframeManager_,window).then(function(){return LQ1(D)}).then(null,function(){D.callback_({action:"error"})}):q97(this)};
var LQ1=function(l){var D=l.JSC$10223_dom_.JSC$9409_createDom("div",["picker-dialog-content","picker-frame"]);_.Aq(D,!1);l.getContentElement().appendChild(D);return Lw5(l.iframeManager_,D,function(U){var n=F7r(U["iframe-command"]);switch(n.getCommand()){case 1:U=l.callback_;n=_.MZ(n,AX,2);var y="";switch(n.getStatus()){case 2:y="cancel";break;case 1:y="picked";break;case 3:y="error"}var A=_.uO(n,JU,2,_.vE(Lkg));n=A.length===0?{action:y}:Vnr(A,y,_.MZ(n,pEg,7));U.call(l,n);l.setVisible(!1);break;case 4:WQ7(l);
l.callback_({action:"loaded"});break;case 7:case 8:U=l.callback_;a:{y=n.getCommand();A=_.MZ(n,AX,2);switch(y){case 7:y="uploadScheduled";break;case 8:y="uploadStateChange";break;default:n={};break a}n=_.uO(A,JU,2,_.vE(Lkg));if(n.length===0)n={action:y};else{var C=_.MZ(A,pEg,7);A=C&&_.Zo(C,1);C=zX8(C);n=Nmm(n,y,A,C)}}U.call(l,n)}},l.JSC$10274_url_,l.targetId_,l.rpcToken_).then(function(U){l.JSC$10274_iframe_=U.getIframeEl();
MGk(l);_.Aq(l.JSC$10274_iframe_.parentElement,!0);_.zt(l.getElement(),"picker-dialog");Rph(l);return U})},q97=function(l){l.JSC$10274_iframe_=l.JSC$10223_dom_.JSC$9409_createDom("IFRAME",{id:l.targetId_,
name:l.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.i8(l.JSC$10274_iframe_,ZI5(l));_.zt(l.getElement(),"picker-dialog");l.getContentElement().appendChild(l.JSC$10274_iframe_);rI(l).listen(l.JSC$10274_iframe_,"load",function(){return void MGk(l)});
l.JSC$10274_iframe_.src=l.JSC$10274_url_;Rph(l)},mAk=function(l){ep5(l,(0,_.jU)(function(D){D.setAuthToken(this.targetId_,this.rpcToken_)},l))},Rph=function(l){var D=_.UP(_.Dp(l.JSC$10274_url_),"title");
D&&l.setTitle(D)},ZI5=function(l){return _.RKc("Internet Explorer")>=7&&_.Ad(l.JSC$10274_url_,"https")?_.Ja(QSH):_.iB?_.Ja(Gah):_.Ja(J6y)},MGk=function(l){mAk(l);
l.iframeLoaded_=!0;l.JSC$10274_iframe_.tabIndex=0;l.isVisible()&&l.focus()};
W_.prototype.handleKeydown_=function(l){l.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),l.stopPropagation(),l.preventDefault())};
var ep5=function(l,D){var U=l.JSC$10272_gadgetsDomHelper_;UZ_(function(){D(U.getWindow().gadgets.rpc)},U)};
W_.prototype.setUrl=function(l){l=_.ny(new _.fI(l),"rpcService",this.targetId_);_.ny(l,"rpctoken",this.rpcToken_);_.h8(l,"rpctoken="+this.rpcToken_);_.y8(l,"https");this.JSC$10274_url_=l.toString();this.JSC$10274_iframe_&&(this.JSC$10274_iframe_.src=this.JSC$10274_url_)};
var a5y=function(l,D){l.callback_=D;ep5(l,(0,_.jU)(function(U){U.register(this.targetId_,(0,_.jU)(this.handlePickerAction_,this))},l))};
W_.prototype.handlePickerAction_=function(l){var D=l.action;D=="loaded"&&(this.loadedFired_=!0,tGm(this,new Ots(this.isVisible())),XH7(this),WQ7(this),rI(this).unlisten(this.JSC$10223_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10274_iframe_.tabIndex=0);D!="picked"&&D!="cancel"||this.setVisible(!1);this.callback_(l)};
var XH7=function(l){l.JSC$10274_appId_&&tGm(l,new YG9(l.JSC$10274_appId_,window.location.protocol+"//"+window.location.host))};
W_.prototype.setRelayUrl=function(l){ep5(this,(0,_.jU)(function(D){D.setRelayUrl(this.targetId_,l)},this))};
var tGm=function(l,D){l.useGapi_&&e6r(D,l.iframeManager_).then(null,function(){l.callback_({action:"error"})});
ep5(l,(0,_.jU)(function(U){U.call(this.targetId_,"picker",null,D)},l))};
W_.prototype.resizePicker_=function(){var l=f2(this.JSC$10223_dom_.JSC$9407_document_)||window;if(_.UP(_.Dp(this.JSC$10274_url_),"ignoreLimits")=="true")l=new _.Sr(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.UP(_.Dp(this.JSC$10274_url_),"shadeDialog")=="true"){var D=UA8(this);D=EmH(D);var U=_.km(l);l=U.width-80;U=U.height-40;D&&(l-=D.left?D.left:0,l-=D.right?D.right:0,U-=D.top?D.top:0,U-=D.bottom?D.bottom:0);l=new _.Sr(l>0?l:0,U>0?U:0)}else(D=this.preferredDialogWidth_)?(D=Math.max(320,
Math.min(1051,D)),(U=this.preferredDialogHeight_)||(U=_.km(l).height*.85),U=Math.max(480,Math.min(650,U))):(D=_.km(l),U=D.width*.618,U=U<D.height?Math.round(Math.max(480,Math.min(650,U*.85))):Math.round(Math.max(480,Math.min(650,D.height*.85))),D=Math.round(U/.618)),l=_.km(l),D=Math.min(D,Math.max(l.width,320)),U=Math.min(U,Math.max(l.height,480)),l=new _.Sr(D,U);_.rah(this.getContentElement(),l);this.reposition()};
W_.prototype.reposition=function(){if(_.UP(_.Dp(this.JSC$10274_url_),"shadeDialog")=="true"){var l=fUv(this.getElement()),D=_.km(this.JSC$10223_dom_.getWindow());l=Math.floor(D.width/2-l.width/2);D=UA8(this);if(D=EmH(D)){var U=D.left?D.left:0;U+=D.right?D.right:0;l=Math.floor(l-U/2)}l=l>0?l:0;D=de(this.JSC$10223_dom_).y;z5(this.getElement(),l,D)}else W_.superClass_.reposition.call(this)};
W_.prototype.setVisible=function(l){if(l!=this.isVisible()&&this.autoSizeDialog_){var D=this.JSC$10223_dom_.getWindow();l?(this.resizePicker_(),rI(this).listen(D,"resize",this.resizePicker_),this.iframeLoaded_||rI(this).listen(D,"keydown",this.handleKeydown_)):(rI(this).unlisten(D,"resize",this.resizePicker_),this.iframeLoaded_||rI(this).unlisten(D,"keydown",this.handleKeydown_))}W_.superClass_.setVisible.call(this,l);tGm(this,new Ots(l))};
W_.prototype.focus=function(){W_.superClass_.focus.call(this);if(this.JSC$10274_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10274_iframe_.focus()}catch(l){}};var Qf=function(l,D){D=D===void 0?W_:D;Ij.call(this,l);this.pickerConstructor=D;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(l=window.location.origin)||(l=window.location.protocol+"//"+window.location.host);l&&this.urlParamMap_.set("origin",l);this.postProcessors_=[]};
_.Z(Qf,i6$);Qf.prototype.JSC$10279_disposeOnHide_=!1;
Qf.prototype.build=function(){this.JSC$10180_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10180_appId_);this.getRelayUrl()||this.setRelayUrl(_.Bp(_.h8(_.CL(_.Dp(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var l=new this.pickerConstructor(S9v(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);l.JSC$10256_disposeOnHide_=this.JSC$10279_disposeOnHide_;
l.JSC$10274_appId_=this.JSC$10180_appId_;l.loadedFired_&&XH7(l);a5y(l,this.callback_);return l};
var kay=function(l){l.urlParamMap_.set("multiselectEnabled","true");return l};
_.W=Qf.prototype;_.W.getHeight=function(){return this.dialogHeight_};
_.W.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.W.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.W.getTitle=function(){return this.urlParamMap_.get("title")};
_.W.getWidth=function(){return this.dialogWidth_};
var dA8=function(l){l.JSC$10279_disposeOnHide_=void 0;return l};
Qf.prototype.setRelayUrl=function(l){this.urlParamMap_.set("parent",l);return this};
var KQ1=function(l,D){l.urlParamMap_.set("selectButtonLabel",D);return l};
Qf.prototype.setSize=function(l,D){this.dialogWidth_=l;this.dialogHeight_=D;return this};
Qf.prototype.setTitle=function(l){this.urlParamMap_.set("title",l);return this};
var S9v=function(l){l.postProcessors_.length&&l.urlParamMap_.set("pp",JSON.stringify(l.postProcessors_));l.urlParamMap_.set("nav",FE5(l.nav_));var D=new _.fI(l.getBaseUrl());l.urlParamMap_.forEach(function(U,n){_.ny(D,n,U)});
return D};var xAy=function(l,D){l.name!==void 0?(this.name=l.name,this.code=c65[l.name]):(this.code=l=l.code,this.name=pHy(l));_.D9.call(this,yvk("%s %s",this.name,D))};
_.HI(xAy,_.D9);var pHy=function(l){var D=_.we.findKey(c65,function(U){return l==U});
if(D===void 0)throw Error("hb`"+l);return D},Hp={},c65=(Hp.AbortError=3,Hp.EncodingError=5,Hp.InvalidModificationError=9,Hp.InvalidStateError=7,Hp.NotFoundError=1,Hp.NotReadableError=4,Hp.NoModificationAllowedError=6,Hp.PathExistsError=12,Hp.QuotaExceededError=10,Hp.SecurityError=2,Hp.SyntaxError=8,Hp.TypeMismatchError=11,Hp);var jS5=function(l,D){_.Zz.call(this,l.type,D);this.event_=l};
_.HI(jS5,_.Zz);var FQv=function(l,D,U){U===void 0&&(U=l.size);return l.slice?l.slice(D,U):null};var b6o=new WeakMap,Pdo=function(l,D){l=[l];for(var U=D.length-1;U>=0;--U)l.push(typeof D[U],D[U]);return l.join("\v")};_.uys(function(){if(!_.nC.Blob)return!1;var l=new Uint8Array(100);try{var D=new Blob([l])}catch(U){return!1}return D.size!=100?!1:!0});
var o2_=_.uys(function(){if(!_.nC.Blob)return!1;var l=new Uint8Array(100);try{var D=new Blob([l])}catch(U){return!1}return FQv(D,0,1)===null?!1:!0});_.nC.U3bHHf!=null||(_.nC.U3bHHf=0);_.nC.U3bHHf++;_.wHg=new WeakMap;_.r67=new WeakMap;var Q2d={};var hq=void 0;var J3d=Symbol("pb");var dZ9=gM("WizInjectionContext_Dispatcher");var Q5=Symbol("qb");var kg,jM;kg=function(){this.afterRenderCallbacks=null};
_.LQ9=Symbol("rb");jM=function(l){this.props=l;this.__unmounted=!1};
jM.prototype.didPatch=function(){};
jM.prototype.didMount=function(){};
jM.prototype.didUnmount=function(){};
jM.prototype.didUpdate=function(){};_.alG=gM("WizInjectionContext_RootElement");var XG3=gM("WizInjectionContext_AppContext"),t9$=gM("WizInjectionContext_ModelRootElement"),SLg=gM("WizInjectionContext_RendererData"),knl=gM("WizInjectionContext_InjectingConstructor"),mZN=gM("WizInjectionContext_AsyncDeps"),KW3={};var oHo=!1;var flg={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:rdy,enableLazyTsx:zKv,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:woy,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var v_=Object.assign({},{attributes:{},handleError:function(l){throw l;}},flg);var zpy=Symbol("vb"),ow=Symbol("wb"),WEs=Symbol("xb"),ztG=Symbol("yb"),ubd=jh(function(l){return QH(l)&&zpy in l});var H6C=Symbol("zb"),YP={},Tbs=(YP[H6C]=!0,YP.debugName="[component]",YP.getComponentStack=function(){for(var l=[],D=this;D;)YLg(D)&&l.push(D.debugName),D=D.parent;return l},YP.registerSignal=function(){},YP.registerEffect=function(){},YP);var Gp=null,Ly=!1,MV=1,eN=Symbol("Db"),ki={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var Og=Symbol("Eb"),V8=Symbol("Fb"),Zp=Symbol("Gb"),Wio=Object.assign({},ki,{value:Og,dirty:!0,error:null,equal:O6G,kind:"computed",producerMustRecompute:function(l){return l.value===Og||l.value===V8},
producerRecomputeValue:function(l){if(l.value===V8)throw Error("Z");var D=l.value;l.value=V8;var U=nGB(l),n=!1;try{var y=l.computation();Jq(null);n=D!==Og&&D!==Zp&&y!==Zp&&l.equal(D,y)}catch(A){y=Zp,l.error=A}finally{Jq(U),l&&AL_(l)}n?l.value=D:(l.value=y,l.version++)}});Object.assign({},ki,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var Py_=function(){throw Error();};var gGl=null,Cyo=Object.assign({},ki,{equal:O6G,value:void 0,kind:"signal"});var u0C=Object.assign({},ki,{value:Og,dirty:!0,error:null,equal:O6G,kind:"linkedSignal",producerMustRecompute:function(l){return l.value===Og||l.value===V8},
producerRecomputeValue:function(l){if(l.value===V8)throw Error("Z");var D=l.value;l.value=V8;var U=nGB(l);try{var n=l.source();var y=l.computation(n,D===Og||D===Zp?void 0:{source:l.sourceValue,value:D});l.sourceValue=n}catch(A){y=Zp,l.error=A}finally{Jq(U),l&&AL_(l)}D!==Og&&y!==Zp&&l.equal(D,y)?l.value=D:(l.value=y,l.version++)}});Object.assign({},ki,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(l){l.schedule!==null&&l.schedule(l.ref)},
cleanupFn:function(){}});var Gj9=Symbol("Hb"),tq=Symbol("Ib");var Xx=Array.isArray;var a0c;var f5H={},XAK=ma3(Object.assign({},{consumerAllowSignalWrites:!0},f5H)),Kk=ma3(Object.assign({},{consumerAllowSignalWrites:!0},f5H));var py=Symbol("Nb");var c_=null,daC,Kig=null,cLs;var wM=0,rM=!1,iL=function(){this.queue=new Set};
iL.prototype.schedule=function(l){this.queue.add(l)};
iL.prototype.remove=function(l){this.queue.delete(l)};
iL.prototype.clear=function(){this.queue.clear()};
var Fig=Symbol("Ob"),xad=Symbol("Pb"),lL=function(){iL.apply(this,arguments)};
_.Z(lL,iL);lL.prototype.flush=function(){if(this.queue.size){rM=!0;for(var l=_.B(this.queue),D=l.next();!D.done;D=l.next()){D=D.value;this.queue.delete(D);try{D.run()}catch(U){$Am(U)}}rM=!1}};
var NV7=function(){lL.apply(this,arguments)};
_.Z(NV7,lL);var jIg=new NV7,sS7=function(){lL.apply(this,arguments)};
_.Z(sS7,lL);sS7.prototype.schedule=function(l){return _.P(function(D){if(D.nextAddress==1)return D.yield(Promise.resolve(),2);l.run();_.Kz(D)})};
sS7.prototype.enqueue=function(l){this.queue.add(l)};
var oGc=new sS7,DO=function(){iL.apply(this,arguments)};
_.Z(DO,iL);DO.prototype.flush=function(){this.queue.size&&vYg(this.queue)};
var E2h=function(){DO.apply(this,arguments)};
_.Z(E2h,DO);E2h.prototype.schedule=function(l){l.hasRun?this.queue.add(l):l.run()};
E2h.prototype.flush=function(){if(this.queue.size)if(v_.flushRenderEffectsDuringRender){var l=this.queue;this.queue=new Set;vYg(l)}else vYg(this.queue)};
var rLc=new E2h,TV8=function(){DO.apply(this,arguments)};
_.Z(TV8,DO);TV8.prototype.schedule=function(l){return _.P(function(D){if(D.nextAddress==1)return D.yield(Promise.resolve(),2);l.run();_.Kz(D)})};
TV8.prototype.enqueue=function(l){this.queue.add(l)};
var Bmg=new TV8,I51=function(){DO.apply(this,arguments)};
_.Z(I51,DO);var f0K=new I51,hXc=[rLc,jIg,f0K],gYo=[oGc,Bmg],HIk=[rLc,f0K,Bmg],Q1c=[].concat(_.zz(hXc),_.zz(gYo)),Y9k=[];gGl=function(){bA_();for(var l=_.B(Y9k),D=l.next();!D.done;D=l.next())D=D.value,D()};
var $Am=yg;var Ua={},OI_=Object.assign({},ki,(Ua[zpy]=!0,Ua.effectType=ow,Ua.isResettableContext=!0,Ua.hasRun=!1,Ua.effectFn=null,Ua.consumerIsAlwaysLive=!0,Ua.consumerAllowSignalWrites=!0,Ua.consumerMarkedDirty=CPc,Ua.kind="effect",Ua.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Ly)throw Error("Qb");this.dirty=!1;if(!this.hasRun||l0$(this)){this.hasRun=!0;evC(this);var l=_.P_(this),D=nGB(this);NbN("effectRun",this.debugName);try{Fx(this.effectFn,this.componentStack,this)}catch(U){throw v_.enableContextBasedComponentStacks&&
jN(U),U;}finally{s2c("effectRun",this.debugName),Jq(D),this&&AL_(this),_.P_(l)}}}},Ua.componentStack=void 0,Ua.debugName="[effect]",Ua[Symbol.dispose]=function(){if(qV(this))for(var l=this.producers;l!==void 0;)l=yL9(l);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;l=_.B(HIk);for(var D=l.next();!D.done;D=l.next())D.value.remove(this);Z6g(this)},Ua));var JHl=Object.assign({},OI_,{effectType:ow});var LEl=Object.assign({},OI_,{effectType:WEs});var RXl=Symbol("Rb");var nxs=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 mMd={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},eXo=
{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}]}},LmK={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},Xd9=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],tnl={"*":{async:1,dir:0,loading:2,target:3}};var VG8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,np={},k7l=(np[1]=null,np[2]=function(l,D){return D instanceof Hh?V1(D):zq.toString()},np[3]=function(l,D){return FO(D)?_.ol(D):VG8.test(String(D))?String(D):zq.toString()},np[4]=function(l,D){return D instanceof kC?_.Kc(D):zq.toString()},np[5]=function(l,D){return String(D)},np[7]=null,np[8]=null,np[10]=null,np);var mJN=Symbol("Ub");var uF9=function(l){var D=i35,U=l,n="",y="",A=1;l<0&&(l=-l);if(l===Infinity)l=(Infinity*Math.sign(U)).toString();else{for(var C=0;C<lPg.length;C++){var h=lPg[C];A=D[h];if(l>=A||A<=1&&l>.1*A){n=h;break}}n?(n+="B",y=" "):A=1;l=Math.round(U/A*10)/10+y+n}return l},lPg="Y Z E P T G M K  m u n".split(" "),i35={"":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};_.Dtg=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 ZQ={};RegExp.prototype.hasOwnProperty("sticky");var AOK=function(l){l=String(l);for(var D=function(n,y,A){for(var C=Math.min(y.length-A,n.length),h=0;h<C;h++){var b=y[A+h];if(n[h]!==("A"<=b&&b<="Z"?b.toLowerCase():b))return!1}return!0},U=0;(U=l.indexOf("<",U))!=-1;){if(D("\x3c/script",l,U)||D("\x3c!--",l,U))return"zSoyz";
U+=1}return l};var VH={default:"__default"};var j1d=Object.prototype.hasOwnProperty;cHg.prototype=Object.create(null);var vd=wd9();var P3=null;var Y13=function(l){this.created=[];this.deleted=[];this.node=l};var OAg=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var l=this,D=l;l;)D=l,l=l.parentNode;return D};var zX$=function(l,D){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=l;this.key=D;this.text=void 0};var y5=null,Af=null,UZ=null,B3=null,EY9=[],s1l=$MN,Ck=[],hf=[],edB=function(l){return Vns(function(D,U,n){UZ=Af=D;Af=null;U(n);NmC(null);Af=UZ;UZ=UZ.parentNode;return D},l)}(),ZqB=function(l){return Vns(function(D,U,n){var y={nextSibling:D};
Af=y;U(n);UZ&&NmC(D.nextSibling);return y===Af?null:Af},l)}();var b0=[],lBl=0;var gt=new cHg;var MD=new cHg;var Utz=wd9(),C63=Utz[VH.default],B0g=Utz.style,yOo=["focusin","focusout"],bSB="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var OSc=function(){},rO$=function(){},UA$=function(){},iIC=function(){};var v3=Symbol("bc");var Gs3,QA3=vxG;var tf=Symbol("cc");var DA9=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(" ")),
l53=new Set(["a","font","script","style","title"]);_.aN={setUp:kss,tearDown:kss,log:kss,logNodeRange:kss,graft:function(l,D){D()}};var c3={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var pk=null,xg=function(l,D){jM.call(this,l);var U=this;this.functionComponent=D;this.hooks=[];this.hookCounter=0;this.disposeEffects=sP(function(n){U.effectContext=n;_.NV(function(){N0B(U,U.el)})},v_.alwaysTrackContexts||!!hq)};
_.Z(xg,jM);xg.prototype.render=function(l){var D=pk;pk=this;this.hookCounter=0;var U=Jq(Kk),n=_.P_(this.effectContext);try{return NbN("render",this.componentName),this.functionComponent(l)}finally{s2c("render",this.componentName),_.P_(n),Jq(U),pk=D}};
_.QP.Object.defineProperties(xg.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return SU_(this.functionComponent)}}});var n2c=Symbol("qc"),HS_=function(l,D,U){this.afterRenderCallbacks=null;this.kind=l;this.props=D;this.children=U};
_.Z(HS_,kg);HS_.prototype.render=function(){var l=IBs(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var D=_.B(this.afterRenderCallbacks),U=D.next();!U.done;U=D.next())U=U.value,l=U(l);return l};
HS_.prototype.getChildren=function(){return this.children};var A6g=[];Py_=function(l){throw Error("ob`"+l.debugName);};
(function(){var l=P3;P3=function(D){l==null||l(D);WQ9(D)}})();Object.assign({},OI_,{effectType:ow,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var l=this.elementRef;var D;l.element!=null||(l.element=(D=l.document.getElementById(l.value))!=null?D:void 0);l=l.element;for(D=this.attributes;D;){var U=D.signal();U!==D.prevValue&&(D.prevValue=U,D.namespace===1?l[D.name]=U:nxs.has(D.name)?OP(l,D.name,U?"":null):OP(l,D.name,U));D=D.next}}});_.F2.debugName="tbhMcf";_.oN.debugName="zyMFzb";Object.assign({},OI_,{effectType:ow,hasRun:!0});_.v.debugName="RlDudd";var BV3={nonNullableCondIsNull:function(){return Error("uc")}};var v2_=function(){this.map=new Map};
v2_.prototype.push=function(l,D){var U=this.map;U.has(l)&&(this.multi||(this.multi=new Map),this.multi.set(D,U.get(l)));U.set(l,D)};
v2_.prototype.pop=function(l){var D=this.map,U=D.get(l),n;U!==void 0&&((n=this.multi)==null?0:n.has(U))?(D.set(l,this.multi.get(U)),this.multi.delete(U)):D.delete(l);return U};_.wt.debugName="nsTGHd";_.rt.debugName="vI1rtf";_.MGB={OUT_OF_ORDER_HOOK_CALL:function(l){return Error("vc`"+l)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(l,D){return Error("zc`"+((D===void 0?0:D)?"IDOM":"Reactive")+"`"+(zZ(l)?l.description:l))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(l,D){return Error("Ac`"+(zZ(l)?l.description:l)+"`"+D)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(l){return Error("Bc`"+(zZ(l)?l.description:l))},
USE_ELEMENT_NOT_ASSIGNED:function(l){return Error("Cc`"+(zZ(l)?l.description:l))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(l){return Error("Dc`"+(zZ(l)?l.description:l))}};Gs3=Y2B;var tGC=Symbol("Ec");fB3({beforeRender:function(l){var D=_.P_(l.effectContext);try{var U;((U=l.__syncEffects)==null?0:U.length)&&kad(l.__syncEffects)}finally{_.P_(D)}},
didPatch:function(l){var D=_.P_(l.effectContext);try{var U;((U=l.__syncEffects)==null?0:U.length)&&kad(l.__syncEffects)}finally{_.P_(D)}},
didUnmount:function(l){var D;((D=l.hooks)==null?0:D.length)&&l.hooks.forEach(S9N)}});var nSy,yJk,AJy;nSy=_.nC.window;_.TZ=(nSy==null?void 0:(yJk=nSy.yt)==null?void 0:yJk.config_)||(nSy==null?void 0:(AJy=nSy.ytcfg)==null?void 0:AJy.data_)||{};_.vG("yt.config_",_.TZ);var W07={},xAd=[];_.rc=function(l){var D=_.EW.apply(1,arguments);var U=Error.call(this,l);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.args=[].concat(_.zz(D));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(_.rc,Error);var D$l=function(l,D,U){this.actionName=l;this.optionalAction=D===void 0?!1:D;this.args=U===void 0?null:U;this.returnValue=[]};_.y4=function(l){this.name=l};_.lP=new _.y4("signalAction");var E23=/^[\w.]*$/,r6c={q:!0,search_query:!0},wH_=String(o2g);var Lt;Lt=Symbol("Fc");_.A7=function(l){this.name=l};
_.A7.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var TV$=function(l){this.key=l},VG$=function(l){this.deferredKey=l},HIB=function(){var l=this;
this.providers=new Map;this.JSC$10569_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(l.providers)}}};
HIB.prototype.addProvider=function(l){this.providers.set(l.provide,l);var D=this.JSC$10569_deferred.get(l.provide);if(D)try{D.resolver(this.resolve(l.provide))}catch(U){D.rejector(U)}};
HIB.prototype.resolve=function(l){return l instanceof VG$?Bjh(this,l):l instanceof TV$?Cu7(this,l.key,[],!0):Cu7(this,l,[])};
var Bjh=function(l,D){D=D.deferredKey;if(l.JSC$10569_deferred.has(D))return l.JSC$10569_deferred.get(D).promise;var U={};U.promise=new Promise(function(n,y){U.resolver=n;U.rejector=y});
l.JSC$10569_deferred.set(D,U);return U.promise},Cu7=function(l,D,U,n){n=n===void 0?!1:n;
if(U.indexOf(D)>-1)throw Error("Gc`"+D);if(l.cachedValues.has(D))return l.cachedValues.get(D);if(!l.providers.has(D)){if(n)return;throw Error("Hc`"+D);}n=l.providers.get(D);U.push(D);if(n.useValue!==void 0)var y=n.useValue;else if(n.useFactory)y=n[Lt]?hQH(l,n[Lt],U):[],y=n.useFactory.apply(n,_.zz(y));else if(n.useClass){y=n.useClass;var A=y[Lt]?hQH(l,y[Lt],U):[];y=new (Function.prototype.bind.apply(y,[null].concat(_.zz(A))))}else throw Error("Ic`"+D);U.pop();n.skipCache||l.cachedValues.set(D,y);return y},
hQH=function(l,D,U){return D?D.map(function(n){return n instanceof TV$?Cu7(l,n.key,U,!0):Cu7(l,n,U)}):[]};var I59;var Dm=new _.A7("ENDPOINT_HANDLER_TOKEN");_.yE=new _.y4("urlEndpoint");var Pug=function(){this.data=[];this.cachedPackedInt52=-1};
Pug.prototype.set=function(l,D){D=D===void 0?!0:D;0<=l&&l<52&&Number.isInteger(l)&&this.data[l]!==D&&(this.data[l]=D,this.cachedPackedInt52=-1)};
Pug.prototype.get=function(l){return!!this.data[l]};
var b3z=function(l){l.cachedPackedInt52===-1&&(l.cachedPackedInt52=l.data.reduce(function(D,U,n){return D+(U?Math.pow(2,n):0)},0));
return l.cachedPackedInt52};var gSc=function(l){var D=gS7;l=l===void 0?_.UG("yt.ads.biscotti.lastId_")||"":l;var U=Object,n=U.assign,y={};y.dt=Pd5;y.flash="0";a:{try{var A=D.JSC$10575_win_.top.location.href}catch(iG){A=2;break a}A=A?A===D.doc_.location.href?0:1:2}y=(y.frm=A,y);try{y.u_tz=-(new Date).getTimezoneOffset();try{var C=EY.history.length}catch(iG){C=0}y.u_his=C;var h;y.u_h=(h=EY.screen)==null?void 0:h.height;var b;y.u_w=(b=EY.screen)==null?void 0:b.width;var u;y.u_ah=(u=EY.screen)==null?void 0:u.availHeight;var Q;y.u_aw=
(Q=EY.screen)==null?void 0:Q.availWidth;var G;y.u_cd=(G=EY.screen)==null?void 0:G.colorDepth}catch(iG){}C=D.JSC$10575_win_;try{var J=C.screenX;var L=C.screenY}catch(iG){}try{var R=C.outerWidth;var a=C.outerHeight}catch(iG){}try{var S=C.innerWidth;var d=C.innerHeight}catch(iG){}try{var c=C.screenLeft;var N=C.screenTop}catch(iG){}try{S=C.innerWidth,d=C.innerHeight}catch(iG){}try{var z=C.screen.availWidth;var f=C.screen.availTop}catch(iG){}J=[c,N,J,L,z,f,R,a,S,d];L=ayo(!1,D.JSC$10575_win_.top);R={};
var I=I===void 0?_.nC:I;a=new Pug;"SVGElement"in I&&"createElementNS"in I.document&&a.set(0);S=Bek();S["allow-top-navigation-by-user-activation"]&&a.set(1);S["allow-popups-to-escape-sandbox"]&&a.set(2);I.crypto&&I.crypto.subtle&&a.set(3);"TextDecoder"in I&&"TextEncoder"in I&&a.set(4);I=b3z(a);D=(R.bc=I,R.bih=L.height,R.biw=L.width,R.brdim=J.join(),R.vis=GZG(D.doc_),R.wgl=!!EY.WebGLRenderingContext,R);U=n.call(U,y,D);U.ca_type="image";l&&(U.bid=l);return U},gS7=new function(){var l=window.document;
this.JSC$10575_win_=window;this.doc_=l};
_.vG("yt.ads_.signals_.getAdSignalsString",function(l){return zpd(gSc(l))});_.I7();navigator.userAgent.indexOf(" (CrKey ");var nSl="XMLHttpRequest"in _.nC?function(){return new XMLHttpRequest}:null;var uI8="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),vSm=[].concat(_.zz(uI8),["client_dev_set_cookie"]);var b3K={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"},W09="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(_.zz(uI8)),RQ3=!1,Cuc=_.uI$,L0d=Pu_;var Nfd=[{messageFn:function(l){return"Cannot read property '"+l.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(l){return"Cannot call '"+l.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(l){return l.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Qer={messageWeights:[],callbackWeights:[{callback:aPd,weight:500},{callback:tzC,weight:500}]};var Goz=function(){this.callbackWeights=[];this.messageWeights=[]},JJ7,$h$=function(){if(!JJ7){var l=JJ7=new Goz;
l.messageWeights.length=0;l.callbackWeights.length=0;g5$(l,Qer)}return JJ7},g5$=function(l,D){D.messageWeights&&l.messageWeights.push.apply(l.messageWeights,D.messageWeights);
D.callbackWeights&&l.callbackWeights.push.apply(l.callbackWeights,D.callbackWeights)};_.HI(_.cS,_.xT);_.cS.prototype.subscribe=function(l,D,U){var n=this.topics_[l];n||(n=this.topics_[l]=[]);var y=this.JSC$10599_key_;this.subscriptions_[y]=l;this.subscriptions_[y+1]=D;this.subscriptions_[y+2]=U;this.JSC$10599_key_=y+3;n.push(y);return y};
var L0y=function(l){var D=OU,U=!1,n=D.subscribe("handleError",function(y){U||(U=!0,this.unsubscribeByKey(n),l.apply(void 0,arguments))},D)};
_.cS.prototype.unsubscribe=function(l,D,U){if(l=this.topics_[l]){var n=this.subscriptions_;if(l=l.find(function(y){return n[y+1]==D&&n[y+2]==U}))return this.unsubscribeByKey(l)}return!1};
_.cS.prototype.unsubscribeByKey=function(l){var D=this.subscriptions_[l];if(D){var U=this.topics_[D];this.publishDepth_!=0?(this.pendingKeys_.push(l),this.subscriptions_[l+1]=function(){}):(U&&_.fC(U,l),delete this.subscriptions_[l],delete this.subscriptions_[l+1],delete this.subscriptions_[l+2])}return!!D};
_.cS.prototype.publish=function(l,D){var U=this.topics_[l];if(U){var n=Array(arguments.length-1),y=arguments.length,A;for(A=1;A<y;A++)n[A-1]=arguments[A];if(this.async_)for(A=0;A<U.length;A++)y=U[A],qtv(this.subscriptions_[y+1],this.subscriptions_[y+2],n);else{this.publishDepth_++;try{for(A=0,y=U.length;A<y&&!this.isDisposed();A++){var C=U[A];this.subscriptions_[C+1].apply(this.subscriptions_[C+2],n)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;U=this.pendingKeys_.pop();)this.unsubscribeByKey(U)}}return A!=
0}return!1};
var qtv=function(l,D,U){_.kN(function(){l.apply(D,U)})};
_.cS.prototype.clear=function(l){if(l){var D=this.topics_[l];D&&(D.forEach(this.unsubscribeByKey,this),delete this.topics_[l])}else this.subscriptions_.length=0,this.topics_={}};
_.cS.prototype.getCount=function(l){if(l){var D=this.topics_[l];return D?D.length:0}l=0;for(D in this.topics_)l+=this.getCount(D);return l};
_.cS.prototype.disposeInternal=function(){_.cS.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var OU=new _.cS;var e9=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(e9,_.Bh);e9.prototype.getColdHashData=function(){return _.Zo(this,3)};
e9.prototype.getHotHashData=function(){return _.Zo(this,5)};
e9.prototype.setHotHashData=function(l){return _.c7(this,5,l)};var r49=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(r49,_.Bh);var vog=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(vog,_.Bh);_.W=vog.prototype;_.W.getDeviceId=function(){return _.Zo(this,6)};
_.W.getExperimentIds=function(l){var D=_.H2(this,9,_.CP,3,!0);V3g(D,l);return D[l]};
_.W.getPlayerType=function(){return _.eY(this,36)};
_.W.setHomeGroupInfo=function(l){return _.al(this,81,l)};
_.W.clearLocationPlayabilityToken=function(){return _.Zl(this,89)};var d$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(d$,_.Bh);d$.prototype.setKey=function(l){return _.c7(this,1,l)};
d$.prototype.getValue=function(){return am(this,2,G4B)};
var G4B=[2,3,4,5,6];var Mzy=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Mzy,_.Bh);Mzy.prototype.setTrackingParams=function(l){return _.Zl(this,1,_.c5(l,!1))};var QLd=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(QLd,_.Bh);var $lg=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z($lg,_.Bh);$lg.prototype.getExperimentIds=function(l){var D=_.H2(this,5,_.Mh_,3,!0);V3g(D,l);return D[l]};var xG=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(xG,_.Bh);xG.prototype.getToken=function(){return _.Xt(this,2)};
xG.prototype.setToken=function(l){return _.c7(this,2,l)};var cA=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(cA,_.Bh);cA.prototype.setSafetyMode=function(l){return _.R2(this,5,l)};var kG=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(kG,_.Bh);kG.prototype.setClient=function(l){return _.al(this,1,l)};var f1B={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 zfd;_.jd=function(){var l=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.nC.addEventListener("beforeinstallprompt",function(D){D.preventDefault();l.deferredInstallPrompt=D});
_.nC.addEventListener("appinstalled",function(){l.appInstalledEventFired=!0},{once:!0})};
zfd=function(){if(!_.nC.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.nC.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.nC.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.nC.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.nC.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(l){return"WEB_DISPLAY_MODE_UNKNOWN"}};var EB_=function(){this.syncHeaders=!0},Tu9=function(l){var D={},U=[];
"USER_SESSION_ID"in _.TZ&&U.push({key:"u",value:_.H3("USER_SESSION_ID")});if(U=_.vuK(U))D.Authorization=U,U=l=l==null?void 0:l.sessionIndex,U===void 0&&(U=Number(_.H3("SESSION_INDEX",0)),U=isNaN(U)?0:U),_.q("voice_search_auth_header_removal")||(D["X-Goog-AuthUser"]=U.toString()),"INNERTUBE_HOST_OVERRIDE"in _.TZ||(D["X-Origin"]=window.location.origin),l===void 0&&"DELEGATED_SESSION_ID"in _.TZ&&(D["X-Goog-PageId"]=_.H3("DELEGATED_SESSION_ID"));return D};var RQh={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var WP=_.UG("ytglobal.prefsUserPrefsPrefs_")||{},Z3y;_.vG("ytglobal.prefsUserPrefsPrefs_",WP);_.BP=function(){this.cookieName=_.H3("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.H3("ALT_PREF_COOKIE_DOMAIN","youtube.com");var l=_.xZ.get(this.cookieName,void 0);l&&this.parse(l)};
_.bu=function(){Z3y||(Z3y=new _.BP);return Z3y};
_.BP.prototype.get=function(l,D){eQ_(l);mtH(l);l=WP[l]!==void 0?WP[l].toString():null;return l!=null?l:D?D:""};
_.BP.prototype.set=function(l,D){eQ_(l);mtH(l);if(D==null)throw Error("Lc");WP[l]=D.toString()};
_.BP.prototype.getFlag=function(l){return!!((aPy("f"+(Math.floor(l/31)+1))||0)&1<<l%31)};
_.gj=function(l,D,U){l="f"+(Math.floor(D/31)+1);D=1<<D%31;var n=aPy(l)||0;n=U?n|D:n&~D;n===0?delete WP[l]:(U=n.toString(16),WP[l]=U.toString())};
_.BP.prototype.remove=function(l){eQ_(l);mtH(l);delete WP[l]};
_.BP.prototype.save=function(){var l=!0;_.q("web_secure_pref_cookie_killswitch")&&(l=!1);_.j_(this.cookieName,this.dump(),63072E3,this.cookieDomain,l)};
_.BP.prototype.clear=function(){_.we.clear(WP)};
_.BP.prototype.dump=function(){var l=[],D;for(D in WP)WP.hasOwnProperty(D)&&l.push(D+"="+encodeURIComponent(String(WP[D])));return l.join("&")};
var mtH=function(l){if(/^f([1-9][0-9]*)$/.test(l))throw Error("Mc`"+l);},eQ_=function(l){if(!/^\w+$/.test(l))throw Error("Nc`"+l);
},aPy=function(l){l=WP[l]!==void 0?WP[l].toString():null;
return l!=null&&/^[A-Fa-f0-9]+$/.test(l)?parseInt(l,16):null};
_.BP.prototype.parse=function(l){l=decodeURIComponent(l).split("&");for(var D=0;D<l.length;D++){var U=l[D].split("="),n=U[0];(U=U[1])&&(WP[n]=U.toString())}};var jeG={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"},Nu_={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},sJ$={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},oS$={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var OV;_.Cp=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.oI=function(l,D,U){return l.addJob(D,0,U)};
_.Cp.prototype.addLowPriorityJob=function(l,D){return this.addJob(l,1,D)};
_.Ji=function(l,D,U){return l.addJob(D,2,U)};
_.BI=function(l,D,U){return l.addJob(D,3,U)};
_.Vu=function(l,D,U){return l.addJob(D,4,U)};
OV=function(l){var D=_.UG("yt.scheduler.instance.addImmediateJob");D?D(l):l()};
_.Cp.prototype.debounce=function(l,D,U){var n=this,y=0,A=function(){y&&n.cancelJob(y);y=n.addJob(l,D,U);n.cancelDebouncedJobMap.set(A,y)};
return A};
_.Cp.prototype.cancelThrottle=function(l){(l=this.cancelThrottledJobMap.get(l))&&l()};var h7=function(){_.Cp.apply(this,arguments)},tzm;
_.Z(h7,_.Cp);_.M9=function(){h7.instance||(h7.instance=new h7);return h7.instance};
h7.prototype.addJob=function(l,D,U){U!==void 0&&Number.isNaN(Number(U))&&(U=void 0);var n=_.UG("yt.scheduler.instance.addJob");return n?n(l,D,U):U===void 0?(l(),NaN):_.tc(l,U||0)};
h7.prototype.cancelJob=function(l){if(l===void 0||!Number.isNaN(Number(l))){var D=_.UG("yt.scheduler.instance.cancelJob");D?D(l):_.S_(l)}};
h7.prototype.start=function(){var l=_.UG("yt.scheduler.instance.start");l&&l()};
h7.prototype.pause=function(){var l=_.UG("yt.scheduler.instance.pause");l&&l()};
tzm=function(){_.M9();var l=_.UG("yt.scheduler.instance.setPriorityThreshold");l&&l(4)};
_.Tn=_.M9();_.z8.prototype.set=function(l,D){D===void 0?this.mechanism.remove(l):this.mechanism.set(l,(0,_.xN)(D))};
_.z8.prototype.get=function(l){try{var D=this.mechanism.get(l)}catch(U){return}if(D!==null)try{return JSON.parse(D)}catch(U){throw"Storage: Invalid value was encountered";}};
_.z8.prototype.remove=function(l){this.mechanism.remove(l)};var PP=function(l){this.mechanism=l};
_.HI(PP,_.z8);var X6z=function(l){this.data=l},Stz=function(l){return l===void 0||l instanceof X6z?l:new X6z(l)};
PP.prototype.set=function(l,D){PP.superClass_.set.call(this,l,Stz(D))};
PP.prototype.getWrapper=function(l){l=PP.superClass_.get.call(this,l);if(l===void 0||l instanceof Object)return l;throw"Storage: Invalid value was encountered";};
PP.prototype.get=function(l){if(l=this.getWrapper(l)){if(l=l.data,l===void 0)throw"Storage: Invalid value was encountered";}else l=void 0;return l};_.HI(ft,PP);_.koy=function(l){var D=l.creation;l=l.expiration;return!!l&&l<_.I7()||!!D&&D>_.I7()};
ft.prototype.set=function(l,D,U){if(D=Stz(D)){if(U){if(U<_.I7()){ft.prototype.remove.call(this,l);return}D.expiration=U}D.creation=_.I7()}ft.superClass_.set.call(this,l,D)};
ft.prototype.getWrapper=function(l,D){var U=ft.superClass_.getWrapper.call(this,l);if(U)if(!D&&_.koy(U))ft.prototype.remove.call(this,l);else return U};var bL=function(){};
bL.prototype.next=function(){return gC};
var gC={done:!0,value:void 0},uL=function(l){return{value:l,done:!1}};
bL.prototype.__iterator__=function(){return this};
_.dt7=function(l){if(l instanceof bL)return l;if(typeof l.__iterator__=="function")return l.__iterator__(!1);if(_.Ns(l)){var D=0,U=new bL;U.next=function(){for(;;){if(D>=l.length)return gC;if(D in l)return uL(l[D++]);D++}};
return U}throw Error("Oc");};var K0y=function(l){if(l instanceof vP||l instanceof Q4||l instanceof G_)return l;if(typeof l.next=="function")return new vP(function(){return l});
if(typeof l[Symbol.iterator]=="function")return new vP(function(){return l[Symbol.iterator]()});
if(typeof l.__iterator__=="function")return new vP(function(){return l.__iterator__()});
throw Error("Pc");},vP=function(l){this.func_=l};
vP.prototype.__iterator__=function(){return new Q4(this.func_())};
vP.prototype[Symbol.iterator]=function(){return new G_(this.func_())};
vP.prototype.toEs6=function(){return new G_(this.func_())};
var Q4=function(l){this.JSC$10684_iter_=l};
_.Z(Q4,bL);Q4.prototype.next=function(){return this.JSC$10684_iter_.next()};
Q4.prototype[Symbol.iterator]=function(){return new G_(this.JSC$10684_iter_)};
Q4.prototype.toEs6=function(){return new G_(this.JSC$10684_iter_)};
var G_=function(l){vP.call(this,function(){return l});
this.JSC$10687_iter_=l};
_.Z(G_,vP);G_.prototype.next=function(){return this.JSC$10687_iter_.next()};var cJ5=function(){};var J7=function(){};
_.HI(J7,cJ5);J7.prototype.getCount=function(){for(var l=0,D=_.B(this),U=D.next();!U.done;U=D.next())l++;return l};
J7.prototype[Symbol.iterator]=function(){return K0y(this.__iterator__(!0)).toEs6()};
J7.prototype.clear=function(){var l=Array.from(this);l=_.B(l);for(var D=l.next();!D.done;D=l.next())this.remove(D.value)};_.HI($Z,J7);_.W=$Z.prototype;_.W.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var l=this.storage_;if(l)try{l.setItem("__sak","1");l.removeItem("__sak");var D=!0}catch(U){D=U instanceof DOMException&&(U.name==="QuotaExceededError"||U.code===22||U.code===1014||U.name==="NS_ERROR_DOM_QUOTA_REACHED")&&l&&l.length!==0}else D=!1;this.cachedIsStorageAvailable_=D}return this.cachedIsStorageAvailable_};
_.W.set=function(l,D){Lp(this);try{this.storage_.setItem(l,D)}catch(U){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.W.get=function(l){Lp(this);l=this.storage_.getItem(l);if(typeof l!=="string"&&l!==null)throw"Storage mechanism: Invalid value was encountered";return l};
_.W.remove=function(l){Lp(this);this.storage_.removeItem(l)};
_.W.getCount=function(){Lp(this);return this.storage_.length};
_.W.__iterator__=function(l){Lp(this);var D=0,U=this.storage_,n=new bL;n.next=function(){if(D>=U.length)return gC;var y=U.key(D++);if(l)return uL(y);y=U.getItem(y);if(typeof y!=="string")throw"Storage mechanism: Invalid value was encountered";return uL(y)};
return n};
_.W.clear=function(){Lp(this);this.storage_.clear()};
_.W.key=function(l){Lp(this);return this.storage_.key(l)};
var Lp=function(l){if(l.storage_==null)throw Error("Qc");l.isAvailable()||yg(Error("Qc"))};_.HI(rJN,$Z);_.HI(zQB,$Z);_.HI(NK,J7);NK.prototype.set=function(l,D){this.mechanism_.set(this.JSC$10702_prefix_+l,D)};
NK.prototype.get=function(l){return this.mechanism_.get(this.JSC$10702_prefix_+l)};
NK.prototype.remove=function(l){this.mechanism_.remove(this.JSC$10702_prefix_+l)};
NK.prototype.__iterator__=function(l){var D=this.mechanism_[Symbol.iterator](),U=this,n=new bL;n.next=function(){var y=D.next();if(y.done)return y;for(y=y.value;y.slice(0,U.JSC$10702_prefix_.length)!=U.JSC$10702_prefix_;){y=D.next();if(y.done)return y;y=y.value}return uL(l?y.slice(U.JSC$10702_prefix_.length):U.mechanism_.get(y))};
return n};_.Vo=function(l){this.expiringStorage_=(l=_.fPK(l))?new ft(l):null;this.JSC$10706_domain_=document.domain||window.location.hostname};
_.W=_.Vo.prototype;_.W.hasLocalStorage=function(){return!!this.expiringStorage_};
_.W.set=function(l,D,U,n){U=U||31104E3;this.remove(l);if(this.hasLocalStorage())try{this.expiringStorage_.set(l,D,Date.now()+U*1E3);return}catch(A){}var y="";if(n)try{y=escape((0,_.xN)(D))}catch(A){return}else y=escape(D);_.j_(l,y,U,this.JSC$10706_domain_)};
_.W.get=function(l,D){var U=void 0,n=!this.hasLocalStorage();if(!n)try{U=this.expiringStorage_.get(l)}catch(y){n=!0}if(n&&(U=_.xZ.get(l,void 0))&&(U=unescape(U),D))try{U=JSON.parse(U)}catch(y){this.remove(l),U=void 0}return U};
_.W.remove=function(l){this.hasLocalStorage()&&this.expiringStorage_.remove(l);_.cJo(l,"/",this.JSC$10706_domain_)};
_.W.getCreationTime=function(l){return this.hasLocalStorage()&&(l=(this.expiringStorage_.getWrapper(l)||{}).creation,typeof l==="number")?l:null};var NjC=function(){var l;return function(){l||(l=new _.Vo("ytidb"));return l}}();var ESg;_.EG=[];ESg=!1;var PQl=Tj_||IP9;var qc={},p6z=(qc.AUTH_INVALID="No user identifier specified.",qc.EXPLICIT_ABORT="Transaction was explicitly aborted.",qc.IDB_NOT_SUPPORTED="IndexedDB is not supported.",qc.MISSING_INDEX="Index not created.",qc.MISSING_OBJECT_STORES="Object stores not created.",qc.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",qc.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",qc.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",qc.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",qc.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",qc.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",qc.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",qc),Mc={},xtz=(Mc.AUTH_INVALID="ERROR",Mc.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Mc.EXPLICIT_ABORT="IGNORED",
Mc.IDB_NOT_SUPPORTED="ERROR",Mc.MISSING_INDEX="WARNING",Mc.MISSING_OBJECT_STORES="ERROR",Mc.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Mc.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Mc.QUOTA_EXCEEDED="WARNING",Mc.QUOTA_MAYBE_EXCEEDED="WARNING",Mc.UNKNOWN_ABORT="WARNING",Mc.INCOMPATIBLE_DB_VERSION="WARNING",Mc),Rp={},jeH=(Rp.AUTH_INVALID=!1,Rp.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Rp.EXPLICIT_ABORT=!1,Rp.IDB_NOT_SUPPORTED=!1,Rp.MISSING_INDEX=!1,Rp.MISSING_OBJECT_STORES=!1,Rp.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Rp.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Rp.QUOTA_EXCEEDED=!1,Rp.QUOTA_MAYBE_EXCEEDED=!0,Rp.UNKNOWN_ABORT=!0,Rp.INCOMPATIBLE_DB_VERSION=!1,Rp),Vy=function(l,D,U,n,y){D=D===void 0?{}:D;U=U===void 0?p6z[l]:U;n=n===void 0?xtz[l]:n;y=y===void 0?jeH[l]:y;_.rc.call(this,U,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:l},D));this.type=l;this.message=U;this.level=n;this.retryable=y;Object.setPrototypeOf(this,Vy.prototype)};
_.Z(Vy,_.rc);var F0z=function(l,D){Vy.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:D,foundObjectStores:l},p6z.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,F0z.prototype)};
_.Z(F0z,Vy);var Ytl=function(l,D){var U=Error.call(this);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.index=l;this.objectStore=D;Object.setPrototypeOf(this,Ytl.prototype)};
_.Z(Ytl,Error);var O3K=["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 UL=function(l){this.executor=l},Dl=function(l){var D=this;
this.state={status:"PENDING"};this.JSC$10734_onFulfilled=[];this.JSC$10734_onRejected=[];l=l.executor;var U=function(y){if(D.state.status==="PENDING"){D.state={status:"FULFILLED",value:y};y=_.B(D.JSC$10734_onFulfilled);for(var A=y.next();!A.done;A=y.next())A=A.value,A()}},n=function(y){if(D.state.status==="PENDING"){D.state={status:"REJECTED",
reason:y};y=_.B(D.JSC$10734_onRejected);for(var A=y.next();!A.done;A=y.next())A=A.value,A()}};
try{l(U,n)}catch(y){n(y)}};
Dl.all=function(l){return new Dl(new UL(function(D,U){var n=[],y=l.length;y===0&&D(n);for(var A={i$jscomp$468:0};A.i$jscomp$468<l.length;A={i$jscomp$468:A.i$jscomp$468},++A.i$jscomp$468)Dl.resolve(l[A.i$jscomp$468]).then(function(C){return function(h){n[C.i$jscomp$468]=h;y--;y===0&&D(n)}}(A)).catch(function(C){U(C)})}))};
Dl.resolve=function(l){return new Dl(new UL(function(D,U){l instanceof Dl?l.then(D,U):D(l)}))};
Dl.reject=function(l){return new Dl(new UL(function(D,U){U(l)}))};
Dl.prototype.then=function(l,D){var U=this,n=l!=null?l:l19,y=D!=null?D:i7_;return new Dl(new UL(function(A,C){U.state.status==="PENDING"?(U.JSC$10734_onFulfilled.push(function(){oS8(U,U,n,A,C)}),U.JSC$10734_onRejected.push(function(){w6m(U,U,y,A,C)})):U.state.status==="FULFILLED"?oS8(U,U,n,A,C):U.state.status==="REJECTED"&&w6m(U,U,y,A,C)}))};
Dl.prototype.catch=function(l){return this.then(void 0,l)};
var oS8=function(l,D,U,n,y){try{if(l.state.status!=="FULFILLED")throw Error("Tc");var A=U(l.state.value);A instanceof Dl?rJv(l,D,A,n,y):n(A)}catch(C){y(C)}},w6m=function(l,D,U,n,y){try{if(l.state.status!=="REJECTED")throw Error("Uc");
var A=U(l.state.reason);A instanceof Dl?rJv(l,D,A,n,y):n(A)}catch(C){y(C)}},rJv=function(l,D,U,n,y){D===U?y(new TypeError("Vc")):U.then(function(A){A instanceof Dl?rJv(l,D,A,n,y):n(A)},function(A){y(A)})};var ZO;ZO=window;_.J3=ZO.ytcsi&&ZO.ytcsi.now?ZO.ytcsi.now:ZO.performance&&ZO.performance.timing&&ZO.performance.now&&ZO.performance.timing.navigationStart?function(){return ZO.performance.timing.navigationStart+ZO.performance.now()}:function(){return(new Date).getTime()};var yo=function(l,D){this.JSC$10746_wrapped=l;this.options=D;this.transactionCount=0;this.startedMs=Math.round((0,_.J3)());this.hasUnknownAbortedTransaction=!1},e5=function(){return _.q("idb_immediate_commit")},$tz,Njm,t7,Tjg;
yo.prototype.add=function(l,D,U){return _.h3(this,[l],{mode:"readwrite",enableRetries:!0,commit:e5()},function(n){return n.objectStore(l).add(D,U)})};
yo.prototype.clear=function(l){return _.h3(this,[l],{mode:"readwrite",enableRetries:!0},function(D){return D.objectStore(l).clear()})};
yo.prototype.close=function(){this.JSC$10746_wrapped.close();var l;((l=this.options)==null?0:l.closed)&&this.options.closed()};
yo.prototype.count=function(l,D){return _.h3(this,[l],{mode:"readonly",enableRetries:!0,commit:e5()},function(U){return U.objectStore(l).count(D)})};
var ly=function(l,D,U){l=l.JSC$10746_wrapped.createObjectStore(D,U);return new mm(l)};
yo.prototype.delete=function(l,D){return _.h3(this,[l],{mode:"readwrite",enableRetries:!0,commit:e5()&&!(D instanceof IDBKeyRange)},function(U){return U.objectStore(l).delete(D)})};
var zQk=function(l,D){return _.h3(l,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(U){return U.objectStore("ResponseStore").index("byInterface").delete(D)})};
yo.prototype.get=function(l,D){return _.h3(this,[l],{mode:"readonly",enableRetries:!0,commit:e5()},function(U){return U.objectStore(l).get(D)})};
yo.prototype.getAll=function(l,D,U){return _.h3(this,[l],{mode:"readonly",enableRetries:!0},function(n){return n.objectStore(l).getAll(D,U)})};
yo.prototype.put=function(l,D,U){return _.h3(this,[l],{mode:"readwrite",enableRetries:!0,commit:e5()},function(n){return n.objectStore(l).put(D,U)})};
yo.prototype.objectStoreNames=function(){return Array.from(this.JSC$10746_wrapped.objectStoreNames)};
_.h3=function(l,D,U,n){var y,A,C,h,b,u,Q,G,J,L,R,a;return _.P(function(S){switch(S.nextAddress){case 1:var d={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof U==="string"?d.mode=U:Object.assign(d,U);y=d;l.transactionCount++;A=y.enableRetries?3:1;C=0;case 2:if(h){S.jumpTo(4);break}C++;b=Math.round((0,_.J3)());_.ZY(S,5);u=l.JSC$10746_wrapped.transaction(D,y.mode);d=S.yield;var c=!!y.commit;var N=new A3(u);c=fPz(N,n,c);return d.call(S,c,7);case 7:return Q=S.yieldResult,G=Math.round((0,_.J3)()),
$tz(l,b,G,C,void 0,D.join(),y),S.return(Q);case 5:J=_.kF(S);L=Math.round((0,_.J3)());R=VzB(J,l.JSC$10746_wrapped.name,D.join(),l.JSC$10746_wrapped.version);if((a=R instanceof Vy&&!R.retryable)||C>=A)$tz(l,b,L,C,R,D.join(),y),h=R;S.jumpTo(2);break;case 4:return S.return(Promise.reject(h))}})};
$tz=function(l,D,U,n,y,A,C){D=U-D;y?(y instanceof Vy&&(y.type==="QUOTA_EXCEEDED"||y.type==="QUOTA_MAYBE_EXCEEDED")&&IG("QUOTA_EXCEEDED",{dbName:YZ(l.JSC$10746_wrapped.name),objectStoreNames:A,transactionCount:l.transactionCount,transactionMode:C.mode}),y instanceof Vy&&y.type==="UNKNOWN_ABORT"&&(U-=l.startedMs,U<0&&U>=2147483648&&(U=0),IG("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:A,transactionDuration:D,transactionCount:l.transactionCount,dbDuration:U}),l.hasUnknownAbortedTransaction=!0),
Njm(l,!1,n,A,D,C.tag),_.T8(y)):Njm(l,!0,n,A,D,C.tag)};
Njm=function(l,D,U,n,y,A){IG("TRANSACTION_ENDED",{objectStoreNames:n,connectionHasUnknownAbortedTransaction:l.hasUnknownAbortedTransaction,duration:y,isSuccessful:D,tryCount:U,tag:A===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":A})};
yo.prototype.getName=function(){return this.JSC$10746_wrapped.name};
var mm=function(l){this.JSC$10761_wrapped=l};
mm.prototype.add=function(l,D){return n6(this.JSC$10761_wrapped.add(l,D))};
mm.prototype.autoIncrement=function(){return this.JSC$10761_wrapped.autoIncrement};
mm.prototype.clear=function(){return n6(this.JSC$10761_wrapped.clear()).then(function(){})};
var D0=function(l,D,U){l.JSC$10761_wrapped.createIndex(D,U,{unique:!1})};
mm.prototype.count=function(l){return n6(this.JSC$10761_wrapped.count(l))};
var se7=function(l,D){return bd(l,{query:D},function(U){return U.delete().then(function(){return U.continue()})}).then(function(){})};
mm.prototype.delete=function(l){return l instanceof IDBKeyRange?se7(this,l):n6(this.JSC$10761_wrapped.delete(l))};
mm.prototype.get=function(l){return n6(this.JSC$10761_wrapped.get(l))};
mm.prototype.getAll=function(l,D){return"getAll"in IDBObjectStore.prototype?n6(this.JSC$10761_wrapped.getAll(l,D)):ES_(this,l,D)};
var ES_=function(l,D,U){var n=[];return bd(l,{query:D},function(y){if(!(U!==void 0&&n.length>=U))return n.push(y.getValue()),y.continue()}).then(function(){return n})};
mm.prototype.index=function(l){try{return new ap(this.JSC$10761_wrapped.index(l))}catch(D){if(D instanceof Error&&D.name==="NotFoundError")throw new Ytl(l,this.JSC$10761_wrapped.name);throw D;}};
mm.prototype.getName=function(){return this.JSC$10761_wrapped.name};
mm.prototype.keyPath=function(){return this.JSC$10761_wrapped.keyPath};
mm.prototype.put=function(l,D){return n6(this.JSC$10761_wrapped.put(l,D))};
var bd=function(l,D,U){l=l.JSC$10761_wrapped.openCursor(D.query,D.direction);return Tjg(l).then(function(n){return nB_(n,U)})},A3=function(l){var D=this;
this.JSC$10769_wrapped=l;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(U,n){D.JSC$10769_wrapped.addEventListener("complete",function(){U()});
D.JSC$10769_wrapped.addEventListener("error",function(y){y.currentTarget===y.target&&n(D.JSC$10769_wrapped.error)});
D.JSC$10769_wrapped.addEventListener("abort",function(){var y=D.JSC$10769_wrapped.error;if(y)n(y);else if(!D.aborted){y=Vy;for(var A=D.JSC$10769_wrapped.objectStoreNames,C=[],h=0;h<A.length;h++){var b=A.item(h);if(b===null)throw Error("Wc");C.push(b)}y=new y("UNKNOWN_ABORT",{objectStoreNames:C.join(),dbName:D.JSC$10769_wrapped.db.name,mode:D.JSC$10769_wrapped.mode});n(y)}})})},fPz=function(l,D,U){var n=new Promise(function(y,A){try{var C=D(l);
U&&l.commit();C.then(function(h){y(h)}).catch(A)}catch(h){A(h),l.abort()}});
return Promise.all([n,l.done]).then(function(y){return _.B(y).next().value})};
A3.prototype.abort=function(){this.JSC$10769_wrapped.abort();this.aborted=!0;throw new Vy("EXPLICIT_ABORT");};
A3.prototype.commit=function(){if(!this.aborted){var l,D;(D=(l=this.JSC$10769_wrapped).commit)==null||D.call(l)}};
A3.prototype.objectStore=function(l){l=this.JSC$10769_wrapped.objectStore(l);var D=this.objectStoreCache.get(l);D||(D=new mm(l),this.objectStoreCache.set(l,D));return D};
var ap=function(l){this.JSC$10771_wrapped=l};
ap.prototype.count=function(l){return n6(this.JSC$10771_wrapped.count(l))};
ap.prototype.delete=function(l){return _.L6(this,{query:l},function(D){return D.delete().then(function(){return D.continue()})})};
ap.prototype.get=function(l){return n6(this.JSC$10771_wrapped.get(l))};
ap.prototype.getAll=function(l,D){return"getAll"in IDBIndex.prototype?n6(this.JSC$10771_wrapped.getAll(l,D)):IP1(this,l,D)};
var IP1=function(l,D,U){var n=[];return _.L6(l,{query:D},function(y){if(!(U!==void 0&&n.length>=U))return n.push(y.getValue()),y.continue()}).then(function(){return n})};
ap.prototype.keyPath=function(){return this.JSC$10771_wrapped.keyPath};
ap.prototype.unique=function(){return this.JSC$10771_wrapped.unique};
_.L6=function(l,D,U){l=l.JSC$10771_wrapped.openCursor(D.query===void 0?null:D.query,D.direction===void 0?"next":D.direction);return Tjg(l).then(function(n){return nB_(n,U)})};
t7=function(l,D){this.request=l;this.cursor=D};
Tjg=function(l){return n6(l).then(function(D){return D?new t7(l,D):null})};
t7.prototype.continue=function(l){this.cursor.continue(l);return Tjg(this.request)};
t7.prototype.delete=function(){return n6(this.cursor.delete()).then(function(){})};
t7.prototype.getValue=function(){return this.cursor.value};
t7.prototype.update=function(l){return n6(this.cursor.update(l))};var X6=function(l,D){this.name=l;this.options=D;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},H3g;
X6.prototype.openDb=function(l,D,U){U=U===void 0?{}:U;return A4G(l,D,U)};
X6.prototype.delete=function(l){l=l===void 0?{}:l;return _.BG(this.name,l)};
H3g=function(l,D){return new Vy("INCOMPATIBLE_DB_VERSION",{dbName:l.name,oldVersion:l.options.version,newVersion:D})};
_.C6=function(l,D){if(!D)throw ld("openWithToken",YZ(l.name));return l.open()};
X6.prototype.open=function(){var l=this;if(!this.isCompatible)throw H3g(this);if(this.connectionPromise)return this.connectionPromise;var D,U=function(){l.connectionPromise===D&&(l.connectionPromise=void 0)},n={blocking:function(A){A.close()},
closed:U,terminated:U,upgrade:this.options.upgrade},y=function(){var A,C,h,b,u,Q,G,J,L,R;return _.P(function(a){switch(a.nextAddress){case 1:return C=(A=Error().stack)!=null?A:"",_.ZY(a,2),a.yield(l.openDb(l.name,l.options.version,n),4);case 4:for(var S=h=a.yieldResult,d=l.options,c=[],N=_.B(Object.keys(d.objectStores)),z=N.next();!z.done;z=N.next()){z=z.value;var f=d.objectStores[z],I=f.removedAtVersion===void 0?Number.MAX_VALUE:f.removedAtVersion;!(S.JSC$10746_wrapped.version>=f.addedAtVersion)||
S.JSC$10746_wrapped.version>=I||S.JSC$10746_wrapped.objectStoreNames.contains(z)||c.push(z)}b=c;if(b.length===0){a.jumpTo(5);break}u=Object.keys(l.options.objectStores);Q=h.objectStoreNames();if(l.timesReopenedToFixMissingObjectStore<_.RG("ytidb_reopen_db_retries",0))return l.timesReopenedToFixMissingObjectStore++,h.close(),_.T8(new Vy("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:l.name,expectedObjectStores:u,foundObjectStores:Q})),a.return(y());if(!(l.timesDeletedToFixMissingObjectStore<_.RG("ytidb_remake_db_retries",
1))){a.jumpTo(6);break}l.timesDeletedToFixMissingObjectStore++;return a.yield(l.delete(),7);case 7:return _.T8(new Vy("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:l.name,expectedObjectStores:u,foundObjectStores:Q})),a.return(y());case 6:throw new F0z(Q,u);case 5:return a.return(h);case 2:G=_.kF(a);if(G instanceof DOMException?G.name!=="VersionError":"DOMError"in self&&G instanceof DOMError?G.name!=="VersionError":!(G instanceof Object&&"message"in G)||G.message!=="An attempt was made to open a database using a lower version than the existing version."){a.jumpTo(8);
break}return a.yield(l.openDb(l.name,void 0,Object.assign({},n,{upgrade:void 0})),9);case 9:J=a.yieldResult;L=J.JSC$10746_wrapped.version;if(l.options.version!==void 0&&L>l.options.version+1)throw J.close(),l.isCompatible=!1,H3g(l,L);return a.return(J);case 8:throw U(),G instanceof Error&&!_.q("ytidb_async_stack_killswitch")&&(G.stack=G.stack+"\n"+C.substring(C.indexOf("\n")+1)),VzB(G,l.name,"",(R=l.options.version)!=null?R:-1);}})};
return this.connectionPromise=D=y()};var WFB=new X6("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(l,D){D(1)&&ly(l,"databases",{keyPath:"actualName"})}});var uoo,b7s=new function(){}(new function(){});new _.Au;var Yty=function(l,D){X6.call(this,l,D);this.options=D;HS(l)};
_.Z(Yty,X6);var efd=function(l,D){var U;return function(){U||(U=new Yty(l,D));return U}};
Yty.prototype.openDb=function(l,D,U){U=U===void 0?{}:U;return(this.options.shared?LFs:J4l)(l,D,Object.assign({},U))};
Yty.prototype.delete=function(l){l=l===void 0?{}:l;return(this.options.shared?Z73:qBd)(this.name,l)};var O3z={},mls=Gn("ytGcfConfig",{objectStores:(O3z.coldConfigStore={addedAtVersion:1},O3z.hotConfigStore={addedAtVersion:1},O3z),shared:!1,upgrade:function(l,D){D(1)&&(D0(ly(l,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),D0(ly(l,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Vzk=function(){_.xT.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var l=_.UG("yt.gcf.config.hotUpdateCallbacks");l?(this.localHotConfigJobQueue=[].concat(_.zz(l)),this.sharedHotConfigJobQueue=l):(this.sharedHotConfigJobQueue=[],_.vG("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.Z(Vzk,_.xT);Vzk.prototype.disposeInternal=function(){for(var l=_.B(this.localHotConfigJobQueue),D=l.next();!D.done;D=l.next()){var U=this.sharedHotConfigJobQueue;D=U.indexOf(D.value);D>=0&&U.splice(D,1)}this.localHotConfigJobQueue.length=0;_.xT.prototype.disposeInternal.call(this)};var w$=function(){var l=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Vzk;this.TEST_ONLY={initializeConfigDb:function(){l.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return l.coldGlobalConfigGroup},
setHotConfigGroup:function(D){i7g(l,D)},
setHotHashData:function(D){l.setHotHashData(D)},
setColdConfigGroup:function(D){l11(l,D)},
getColdHashData:function(){return l.coldHashData},
getHotHashData:function(){return l.hotHashData},
getHotConfigGroup:function(){return l.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Dlh()},
getExportedHotConfigGroup:function(){return S5()},
getExportedColdHashData:function(){return _.UG("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.UG("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Ulg(l)},
resetInstance:function(){l.setHotHashData(void 0);nBg(l);delete w$.instance},
setDebounceTimer:function(D){l.debounceTimer=D},
getDebounceTimer:function(){return l.debounceTimer}}},y41=function(){if(!w$.instance){var l=new w$;
w$.instance=l}return w$.instance},Bu_=function(l){var D;
_.P(function(U){if(U.nextAddress==1)return _.q("start_client_gcf")||_.q("delete_gcf_config_db")?_.q("start_client_gcf")?U.yield(_.Qo(),3):U.jumpTo(2):U.return();U.nextAddress!=2&&((D=U.yieldResult)&&_.wc()&&!_.q("delete_gcf_config_db")?(l.isConfigDbInitialized=!0,Ulg(l)):(A4H(l),WFk(l)));return _.q("delete_gcf_config_db")?U.yield(dlo(),0):U.jumpTo(0)})},r$=function(){var l;
return(l=S5())!=null?l:_.H3("RAW_HOT_CONFIG_GROUP")},CQg=function(l){var D,U,n,y,A,C;
return _.P(function(h){switch(h.nextAddress){case 1:if(l.hotGlobalConfigGroup)return h.return(S5());if(!l.isConfigDbInitialized)return D=ld("getHotConfig IDB not initialized"),_.nt(D),h.return(Promise.reject(D));U=ud();n=_.H3("TIME_CREATED_MS");if(!U){y=ld("getHotConfig token error");_.nt(y);h.jumpTo(2);break}return h.yield(k3l(U),3);case 3:if((A=h.yieldResult)&&A.timestamp>n)return i7g(l,A.config),l.setHotHashData(A.hashData),h.return(S5());case 2:WFk(l);if(!(U&&l.hotGlobalConfigGroup&&l.hotHashData)){h.jumpTo(4);
break}return h.yield(tsK(l.hotGlobalConfigGroup,l.hotHashData,U,n),4);case 4:return l.hotGlobalConfigGroup?h.return(S5()):(C=new _.rc("Config not available in ytConfig"),_.nt(C),h.return(Promise.reject(C)))}})},PQy=function(l){var D,U,n,y,A,C;
return _.P(function(h){switch(h.nextAddress){case 1:if(l.coldGlobalConfigGroup)return h.return(Dlh());if(!l.isConfigDbInitialized)return D=ld("getColdConfig IDB not initialized"),_.nt(D),h.return(Promise.reject(D));U=ud();n=_.H3("TIME_CREATED_MS");if(!U){y=ld("getColdConfig");_.nt(y);h.jumpTo(2);break}return h.yield(SB9(U),3);case 3:if((A=h.yieldResult)&&A.timestamp>n)return l11(l,A.config),hfg(l,A.configData),nBg(l,A.hashData),h.return(Dlh());case 2:A4H(l);if(!(U&&l.coldGlobalConfigGroup&&l.coldHashData&&
l.configData)){h.jumpTo(4);break}return h.yield(XcK(l.coldGlobalConfigGroup,l.coldHashData,l.configData,U,n),4);case 4:return l.coldGlobalConfigGroup?h.return(Dlh()):(C=new _.rc("Config not available in ytConfig"),_.nt(C),h.return(Promise.reject(C)))}})},Ulg=function(l){if(!l.hotGlobalConfigGroup||!l.coldGlobalConfigGroup){if(!ud()){var D=ld("scheduleGetConfigs");
_.nt(D)}l.initJob||(l.initJob=_.Tn.addLowPriorityJob(function(){return _.P(function(U){switch(U.nextAddress){case 1:return _.ZY(U,2),U.yield(CQg(l),4);case 4:_.WG(U,3);break;case 2:_.kF(U);case 3:return _.ZY(U,5),U.yield(PQy(l),7);case 7:_.WG(U,6);break;case 5:_.kF(U);case 6:l.initJob&&(l.initJob=0),_.Kz(U)}})},100))}},XK9=function(l,D,U){var n,y,A;
return _.P(function(C){switch(C.nextAddress){case 1:if(!_.q("start_client_gcf")){C.jumpTo(0);break}U&&i7g(l,U);l.setHotHashData(D);n=ud();if(!n){C.jumpTo(3);break}if(U){C.jumpTo(4);break}return C.yield(k3l(n),5);case 5:y=C.yieldResult,U=(A=y)==null?void 0:A.config;case 4:return C.yield(tsK(U,D,n),3);case 3:if(U)for(var h=U,b=_.B(l.configUpdateService.sharedHotConfigJobQueue),u=b.next();!u.done;u=b.next())u=u.value,u(h);_.Kz(C)}})},SmK=function(l,D,U){var n,y,A,C;
return _.P(function(h){if(h.nextAddress==1){if(!_.q("start_client_gcf"))return h.jumpTo(0);nBg(l,D);return(n=ud())?U?h.jumpTo(4):h.yield(SB9(n),5):h.jumpTo(0)}h.nextAddress!=4&&(y=h.yieldResult,U=(A=y)==null?void 0:A.config);if(!U)return h.jumpTo(0);C=U.configData;return h.yield(XcK(U,D,C,n),0)})},H7g=function(){var l=y41(),D=(0,_.J3)()-l.debounceTimer;
if(!(l.debounceTimer!==0&&D<_.RG("send_config_hash_timer"))){D=_.UG("yt.gcf.config.coldConfigData");var U=_.UG("yt.gcf.config.hotHashData"),n=_.UG("yt.gcf.config.coldHashData");D&&U&&n&&(l.debounceTimer=(0,_.J3)());return{coldConfigData:D,hotHashData:U,coldHashData:n}}},A4H=function(l){l11(l,_.H3("RAW_COLD_CONFIG_GROUP"));
nBg(l,_.H3("SERIALIZED_COLD_HASH_DATA"));var D;hfg(l,(D=l.coldGlobalConfigGroup)==null?void 0:D.configData)},WFk=function(l){i7g(l,_.H3("RAW_HOT_CONFIG_GROUP"));
l.setHotHashData(_.H3("SERIALIZED_HOT_HASH_DATA"))},i7g=function(l,D){l.hotGlobalConfigGroup=D;
_.vG("yt.gcf.config.hotConfigGroup",l.hotGlobalConfigGroup||null)},l11=function(l,D){l.coldGlobalConfigGroup=D;
_.vG("yt.gcf.config.coldConfigGroup",l.coldGlobalConfigGroup||null)};
w$.prototype.setHotHashData=function(l){this.hotHashData=l;_.vG("yt.gcf.config.hotHashData",this.hotHashData||null)};
var nBg=function(l,D){l.coldHashData=D;_.vG("yt.gcf.config.coldHashData",l.coldHashData||null)},hfg=function(l,D){l.configData=D;
_.vG("yt.gcf.config.coldConfigData",l.configData||null)},S5=function(){return _.UG("yt.gcf.config.hotConfigGroup")},Dlh=function(){return _.UG("yt.gcf.config.coldConfigGroup")};var S9={},b7r=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";S9.assign=function(l){for(var D=Array.prototype.slice.call(arguments,1);D.length;){var U=D.shift();if(U){if(typeof U!=="object")throw new TypeError("Zc`"+U);for(var n in U)Object.prototype.hasOwnProperty.call(U,n)&&(l[n]=U[n])}}return l};
S9.shrinkBuf=function(l,D){if(l.length===D)return l;if(l.subarray)return l.subarray(0,D);l.length=D;return l};
var gBy={arraySet:function(l,D,U,n,y){if(D.subarray&&l.subarray)l.set(D.subarray(U,U+n),y);else for(var A=0;A<n;A++)l[y+A]=D[U+A]},
flattenChunks:function(l){var D,U;var n=U=0;for(D=l.length;n<D;n++)U+=l[n].length;var y=new Uint8Array(U);n=U=0;for(D=l.length;n<D;n++){var A=l[n];y.set(A,U);U+=A.length}return y}},uo5={arraySet:function(l,D,U,n,y){for(var A=0;A<n;A++)l[y+A]=D[U+A]},
flattenChunks:function(l){return[].concat.apply([],l)}};
S9.setTyped=function(){b7r?(S9.Buf8=Uint8Array,S9.Buf16=Uint16Array,S9.Buf32=Int32Array,S9.assign(S9,gBy)):(S9.Buf8=Array,S9.Buf16=Array,S9.Buf32=Array,S9.assign(S9,uo5))};
S9.setTyped();var vB1=!0;try{new Uint8Array(1)}catch(l){vB1=!1}
var kIC=function(l){var D,U,n=l.length,y=0;for(D=0;D<n;D++){var A=l.charCodeAt(D);if((A&64512)===55296&&D+1<n){var C=l.charCodeAt(D+1);(C&64512)===56320&&(A=65536+(A-55296<<10)+(C-56320),D++)}y+=A<128?1:A<2048?2:A<65536?3:4}var h=new S9.Buf8(y);for(D=U=0;U<y;D++)A=l.charCodeAt(D),(A&64512)===55296&&D+1<n&&(C=l.charCodeAt(D+1),(C&64512)===56320&&(A=65536+(A-55296<<10)+(C-56320),D++)),A<128?h[U++]=A:(A<2048?h[U++]=192|A>>>6:(A<65536?h[U++]=224|A>>>12:(h[U++]=240|A>>>18,h[U++]=128|A>>>12&63),h[U++]=
128|A>>>6&63),h[U++]=128|A&63);return h};var GI_={};GI_=function(l,D,U,n){var y=l&65535|0;l=l>>>16&65535|0;for(var A;U!==0;){A=U>2E3?2E3:U;U-=A;do y=y+D[n++]|0,l=l+y|0;while(--A);y%=65521;l%=65521}return y|l<<16|0};for(var f6={},kK,QJ7=[],G3g=0;G3g<256;G3g++){kK=G3g;for(var J4y=0;J4y<8;J4y++)kK=kK&1?3988292384^kK>>>1:kK>>>1;QJ7[G3g]=kK}f6=function(l,D,U,n){U=n+U;for(l^=-1;n<U;n++)l=l>>>8^QJ7[(l^D[n])&255];return l^-1};var cG={};cG={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 AuB=[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],BXC=[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],SJo=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vfC=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Fy=Array(576);mW(Fy);var o2=Array(60);mW(o2);var db=Array(512);mW(db);var kH=Array(256);mW(kH);var WX$=Array(29);mW(WX$);var CVo=Array(30);mW(CVo);var aso,tdg,XkN,mNl=!1;var EL;
EL=[new sL(0,0,0,0,function(l,D){var U=65535;for(U>l.pending_buf_size-5&&(U=l.pending_buf_size-5);;){if(l.lookahead<=1){$H(l);if(l.lookahead===0&&D===0)return 1;if(l.lookahead===0)break}l.strstart+=l.lookahead;l.lookahead=0;var n=l.block_start+U;if(l.strstart===0||l.strstart>=n)if(l.lookahead=l.strstart-n,l.strstart=n,wb(l,!1),l.strm.avail_out===0)return 1;if(l.strstart-l.block_start>=l.w_size-262&&(wb(l,!1),l.strm.avail_out===0))return 1}l.insert=0;if(D===4)return wb(l,!0),l.strm.avail_out===0?3:
4;l.strstart>l.block_start&&wb(l,!1);return 1}),
new sL(4,4,8,4,JuG),new sL(4,5,16,8,JuG),new sL(4,6,32,32,JuG),new sL(4,4,16,16,NZ),new sL(8,16,32,32,NZ),new sL(8,16,128,128,NZ),new sL(8,32,128,256,NZ),new sL(32,128,258,1024,NZ),new sL(32,258,258,4096,NZ)];var e9C={};e9C=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 dN$=Object.prototype.toString;
ZUl.prototype.push=function(l,D){var U=this.strm,n=this.options.chunkSize;if(this.ended)return!1;var y=D===~~D?D:D===!0?4:0;typeof l==="string"?U.input=kIC(l):dN$.call(l)==="[object ArrayBuffer]"?U.input=new Uint8Array(l):U.input=l;U.next_in=0;U.avail_in=U.input.length;do{U.avail_out===0&&(U.output=new S9.Buf8(n),U.next_out=0,U.avail_out=n);l=R9C(U,y);if(l!==1&&l!==0)return LFr(this,l),this.ended=!0,!1;if(U.avail_out===0||U.avail_in===0&&(y===4||y===2))if(this.options.to==="string"){var A=S9.shrinkBuf(U.output,
U.next_out);D=A;A=A.length;if(A<65537&&(D.subarray&&vB1||!D.subarray))D=String.fromCharCode.apply(null,S9.shrinkBuf(D,A));else{for(var C="",h=0;h<A;h++)C+=String.fromCharCode(D[h]);D=C}this.chunks.push(D)}else D=S9.shrinkBuf(U.output,U.next_out),this.chunks.push(D)}while((U.avail_in>0||U.avail_out===0)&&l!==1);if(y===4)return(U=this.strm)&&U.state?(n=U.state.status,n!==42&&n!==69&&n!==73&&n!==91&&n!==103&&n!==113&&n!==666?l=p6(U,-2):(U.state=null,l=n===113?p6(U,-3):0)):l=-2,LFr(this,l),this.ended=
!0,l===0;y===2&&(LFr(this,0),U.avail_out=0);return!0};
var LFr=function(l,D){D===0&&(l.result=l.options.to==="string"?l.chunks.join(""):S9.flattenChunks(l.chunks));l.chunks=[];l.err=D;l.msg=l.strm.msg};var qBy=typeof TextEncoder!=="undefined"?new TextEncoder:null,W2c=qBy?function(l){return qBy.encode(l)}:function(l){l=_.pw(l);
for(var D=new Uint8Array(l.length),U=0;U<D.length;U++)D[U]=l[U];return D};var H5G={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},O5C={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var dC=function(l,D){this.version=l;this.args=D};
dC.prototype.serialize=function(){return{version:this.version,args:this.args}};var jnl=function(l,D){this.topic=l;this.dataClass=D};
jnl.prototype.toString=function(){return this.topic};var Msg=_.UG("ytPubsub2Pubsub2Instance")||new _.cS;_.cS.prototype.subscribe=_.cS.prototype.subscribe;_.cS.prototype.unsubscribeByKey=_.cS.prototype.unsubscribeByKey;_.cS.prototype.publish=_.cS.prototype.publish;_.cS.prototype.clear=_.cS.prototype.clear;_.vG("ytPubsub2Pubsub2Instance",Msg);var xNC=_.UG("ytPubsub2Pubsub2SubscribedKeys")||{};_.vG("ytPubsub2Pubsub2SubscribedKeys",xNC);var ofB=_.UG("ytPubsub2Pubsub2TopicToKeys")||{};_.vG("ytPubsub2Pubsub2TopicToKeys",ofB);
var FX9=_.UG("ytPubsub2Pubsub2IsAsync")||{};_.vG("ytPubsub2Pubsub2IsAsync",FX9);_.vG("ytPubsub2Pubsub2SkipSubKey",null);var Isl=void 0,Efc=void 0;var UQs=_.RG("max_body_size_to_compress",5E5),nu9=_.RG("min_body_size_to_compress",500),HG=!0,hsc=0,YH=0,CJd=_.RG("compression_performance_threshold_lr",250),bYl=_.RG("slow_compressions_before_abandon_count",4),OU$=!1,VdC=new Map,AjK=1,yjg=!0;_.HI(OL,usB);OL.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 Rfg=function(l,D,U){U||(U=0);var n=l.W_;if(typeof D==="string")for(var y=0;y<16;y++)n[y]=D.charCodeAt(U)<<24|D.charCodeAt(U+1)<<16|D.charCodeAt(U+2)<<8|D.charCodeAt(U+3),U+=4;else for(y=0;y<16;y++)n[y]=D[U]<<24|D[U+1]<<16|D[U+2]<<8|D[U+3],U+=4;for(D=16;D<80;D++)U=n[D-3]^n[D-8]^n[D-14]^n[D-16],n[D]=(U<<1|U>>>31)&4294967295;D=l.chain_[0];U=l.chain_[1];y=l.chain_[2];for(var A=l.chain_[3],C=l.chain_[4],h,b,u=0;u<80;u++)u<40?u<20?(h=A^U&(y^A),b=1518500249):(h=U^y^A,b=1859775393):u<60?(h=U&y|A&(U|y),
b=2400959708):(h=U^y^A,b=3395469782),h=(D<<5|D>>>27)+h+C+b+n[u]&4294967295,C=A,A=y,y=(U<<30|U>>>2)&4294967295,U=D,D=h;l.chain_[0]=l.chain_[0]+D&4294967295;l.chain_[1]=l.chain_[1]+U&4294967295;l.chain_[2]=l.chain_[2]+y&4294967295;l.chain_[3]=l.chain_[3]+A&4294967295;l.chain_[4]=l.chain_[4]+C&4294967295};
OL.prototype.update=function(l,D){if(l!=null){D===void 0&&(D=l.length);for(var U=D-this.blockSize,n=0,y=this.buf_,A=this.inbuf_;n<D;){if(A==0)for(;n<=U;)Rfg(this,l,n),n+=this.blockSize;if(typeof l==="string")for(;n<D;){if(y[A]=l.charCodeAt(n),++A,++n,A==this.blockSize){Rfg(this,y);A=0;break}}else for(;n<D;)if(y[A]=l[n],++A,++n,A==this.blockSize){Rfg(this,y);A=0;break}}this.inbuf_=A;this.total_+=D}};
OL.prototype.digest=function(){var l=[],D=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var U=this.blockSize-1;U>=56;U--)this.buf_[U]=D&255,D/=256;Rfg(this,this.buf_);for(U=D=0;U<5;U++)for(var n=24;n>=0;n-=8)l[D]=this.chain_[U]>>n&255,++D;return l};var GY9;var cP=function(l){var D=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(Q){D.databaseToken=Q},
triggerThrottle:function(){D.throttledSend()},
cancelThrottle:function(){D.cancelThrottledSend()},
immediateSend:function(Q){return _.P(function(G){return G.yield(D.immediateSend(Q),0)})},
requestWithinAgeLimit:function(Q,G){return D.requestWithinAgeLimit(Q,G)},
retryQueuedRequests:function(){D.retryQueuedRequests()}};
var U;this.throttleTimeout=(U=l.throttleTimeout)!=null?U:100;var n;this.retryMaxAttempts=(n=l.retryMaxAttempts)!=null?n:1;var y;this.requestAgeLimitMs=(y=l.requestAgeLimitMs)!=null?y:2592E6;var A;this.queuedRequestAgeLimitMs=(A=l.queuedRequestAgeLimitMs)!=null?A:12E4;var C;this.retryDelayMs=(C=l.retryDelayMs)!=null?C:5E3;var h;this.databaseToken=(h=l.databaseToken)!=null?h:void 0;this.enableCleaning=!!l.enableCleaning;var b;this.cleaningRate=(b=l.cleaningRate)!=null?b:.1;var u;this.potentialEsfErrorLimit=
(u=l.potentialEsfErrorLimit)!=null?u:10;l.handleError&&(this.handleError=l.handleError);l.handleWarning&&(this.handleWarning=l.handleWarning);l.disableYtIdbTransactions&&(this.disableYtIdbTransactions=l.disableYtIdbTransactions);l.bypassDbTokenDependency&&(this.bypassDbTokenDependency=l.bypassDbTokenDependency);this.getBooleanFlag=l.getBooleanFlag;this.jobManager=l.jobManager;this.logsStore=l.logsStore;this.networkManager=l.networkManager;this.sendFn=l.sendFn;this.onlineEvent=l.onlineEvent;this.offlineEvent=
l.offlineEvent;Kp(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Z7h(this)},Z7h=function(l){Kp(l)&&!l.disableYtIdbTransactions&&(l.initialized=!0,l.enableCleaning&&Math.random()<=l.cleaningRate&&l.logsStore.cleanLogsStore(l.databaseToken),l.retryQueuedRequests(),l.networkManager.isNetworkAvailable()&&l.throttledSend(),l.networkManager.listen(l.onlineEvent,l.throttledSend.bind(l)),l.networkManager.listen(l.offlineEvent,l.cancelThrottledSend.bind(l)))};
_.W=cP.prototype;_.W.writeThenSend=function(l,D){var U=this;D=D===void 0?{}:D;if(Kp(this)&&this.initialized){var n={url:l,options:D,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(n,this.databaseToken).then(function(y){n.id=y;U.networkManager.isNetworkAvailable()&&U.immediateSend(n)}).catch(function(y){U.immediateSend(n);
efy(U,y)})}else this.sendFn(l,D)};
_.W.sendThenWrite=function(l,D,U){var n=this;D=D===void 0?{}:D;if(Kp(this)&&this.initialized){var y={url:l,options:D,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(y.skipRetry=U);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!y.skipRetry){if(!y.skipRetry){var A=D.onError?D.onError:function(){};
D.onError=function(C,h){return _.P(function(b){if(b.nextAddress==1)return b.yield(n.logsStore.set(y,n.databaseToken).catch(function(u){efy(n,u)}),2);
A(C,h);_.Kz(b)})}}this.sendFn(l,D,y.skipRetry)}else this.logsStore.set(y,this.databaseToken).catch(function(C){n.sendFn(l,D,y.skipRetry);
efy(n,C)})}else this.sendFn(l,D,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&U)};
_.W.sendAndWrite=function(l,D){var U=this;D=D===void 0?{}:D;if(Kp(this)&&this.initialized){var n={url:l,options:D,timestamp:this.now(),status:"NEW",sendCount:0},y=!1,A=D.onSuccess?D.onSuccess:function(){};
n.options.onSuccess=function(C,h){n.id!==void 0?U.logsStore.deleteRequest(n.id,U.databaseToken):y=!0;U.networkManager.networkStatusHint&&U.getBooleanFlag&&U.getBooleanFlag("vss_network_hint")&&U.networkManager.networkStatusHint(!0);A(C,h)};
this.sendFn(n.url,n.options,void 0,!0);this.logsStore.set(n,this.databaseToken).then(function(C){n.id=C;y&&U.logsStore.deleteRequest(n.id,U.databaseToken)}).catch(function(C){efy(U,C)})}else this.sendFn(l,D,void 0,!0)};
_.W.throttledSend=function(){var l=this;if(!Kp(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var D;return _.P(function(U){if(U.nextAddress==1)return U.yield(l.logsStore.getMostRecentByStatus("NEW",l.databaseToken),2);if(U.nextAddress!=3)return D=U.yieldResult,D?U.yield(l.immediateSend(D),3):(l.cancelThrottledSend(),U.return());l.intervalJob&&(l.intervalJob=0,l.throttledSend());_.Kz(U)})},this.throttleTimeout))};
_.W.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.W.immediateSend=function(l){var D=this,U;return _.P(function(n){switch(n.nextAddress){case 1:if(!Kp(D))throw Error("cd");if(l.id===void 0){n.jumpTo(2);break}return n.yield(D.logsStore.markAsQueued(l.id,D.databaseToken),3);case 3:(U=n.yieldResult)||D.handleWarning(Error("dd"));case 2:if(D.requestWithinAgeLimit(l,D.requestAgeLimitMs)){n.jumpTo(4);break}D.handleWarning(Error("ed"));if(l.id===void 0){n.jumpTo(5);break}return n.yield(D.logsStore.deleteRequest(l.id,D.databaseToken),5);case 5:return n.return();
case 4:l.skipRetry||(l=mlr(D,l));if(!l){n.jumpTo(0);break}if(!l.skipRetry||l.id===void 0){n.jumpTo(8);break}return n.yield(D.logsStore.deleteRequest(l.id,D.databaseToken),8);case 8:D.sendFn(l.url,l.options,!!l.skipRetry),_.Kz(n)}})};
var mlr=function(l,D){if(!Kp(l))throw Error("fd");var U=D.options.onError?D.options.onError:function(){};
D.options.onError=function(y,A){var C,h,b,u;return _.P(function(Q){switch(Q.nextAddress){case 1:C=RsG(A);(h=ZY_(A))&&l.getBooleanFlag&&l.getBooleanFlag("web_enable_error_204")&&l.handleError(Error("gd"),D.url,A);if(!(l.getBooleanFlag&&l.getBooleanFlag("nwl_consider_error_code")&&C||l.getBooleanFlag&&!l.getBooleanFlag("nwl_consider_error_code")&&l.potentialEsfErrorCounter<=l.potentialEsfErrorLimit)){Q.jumpTo(2);break}if(!l.networkManager.sendNetworkCheckRequest){Q.jumpTo(3);break}return Q.yield(l.networkManager.sendNetworkCheckRequest(),
3);case 3:if(l.networkManager.isNetworkAvailable()){Q.jumpTo(2);break}U(y,A);if(!l.getBooleanFlag||!l.getBooleanFlag("nwl_consider_error_code")||((b=D)==null?void 0:b.id)===void 0){Q.jumpTo(6);break}return Q.yield(l.logsStore.resetRequest(D.id,l.databaseToken,!1),6);case 6:return Q.return();case 2:if(l.getBooleanFlag&&l.getBooleanFlag("nwl_consider_error_code")&&!C&&l.potentialEsfErrorCounter>l.potentialEsfErrorLimit)return Q.return();l.potentialEsfErrorCounter++;if(((u=D)==null?void 0:u.id)===void 0){Q.jumpTo(8);
break}return D.sendCount<l.retryMaxAttempts?Q.yield(l.logsStore.resetRequest(D.id,l.databaseToken,!0,h?!1:void 0),12):Q.yield(l.logsStore.deleteRequest(D.id,l.databaseToken),8);case 12:l.jobManager.addLowPriorityJob(function(){l.networkManager.isNetworkAvailable()&&l.throttledSend()},l.retryDelayMs);
case 8:U(y,A),_.Kz(Q)}})};
var n=D.options.onSuccess?D.options.onSuccess:function(){};
D.options.onSuccess=function(y,A){var C;return _.P(function(h){if(h.nextAddress==1)return((C=D)==null?void 0:C.id)===void 0?h.jumpTo(2):h.yield(l.logsStore.deleteRequest(D.id,l.databaseToken),2);l.networkManager.networkStatusHint&&l.getBooleanFlag&&l.getBooleanFlag("vss_network_hint")&&l.networkManager.networkStatusHint(!0);n(y,A);_.Kz(h)})};
return D};
cP.prototype.requestWithinAgeLimit=function(l,D){l=l.timestamp;return this.now()-l>=D?!1:!0};
cP.prototype.retryQueuedRequests=function(){var l=this;if(!Kp(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(D){D&&!l.requestWithinAgeLimit(D,l.queuedRequestAgeLimitMs)?l.jobManager.addLowPriorityJob(function(){return _.P(function(U){if(U.nextAddress==1)return D.id===void 0?U.jumpTo(2):U.yield(l.logsStore.resetRequest(D.id,l.databaseToken),2);l.retryQueuedRequests();_.Kz(U)})}):l.networkManager.isNetworkAvailable()&&l.throttledSend()})};
var efy=function(l,D){l.writeError&&!l.networkManager.isNetworkAvailable()?l.writeError(D):l.handleError(D)},Kp=function(l){return!!l.databaseToken||l.bypassDbTokenDependency};var esg;var K8c={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531};var a1h={},pg_=Gn("ServiceWorkerLogsDatabase",{objectStores:(a1h.SWHealthLog={addedAtVersion:1},a1h),shared:!0,upgrade:function(l,D){D(1)&&D0(ly(l,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var fN9={},zs9=0;var EuC;var pp=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},WA=function(){if(!pp.instance){var l=_.UG("yt.networkRequestMonitor.instance")||new pp;
_.vG("yt.networkRequestMonitor.instance",l);pp.instance=l}return pp.instance};
pp.prototype.requestComplete=function(l,D){D&&(this.anyRequestHasSucceeded=!0);l=this.removeParams(l);this.requestMap.get(l)||this.requestMap.set(l,D)};
pp.prototype.isEndpointCFR=function(l){l=this.removeParams(l);return(l=this.requestMap.get(l))?!1:l===!1&&this.anyRequestHasSucceeded?!0:null};
pp.prototype.removeParams=function(l){return l.split("?")[0]};
pp.prototype.removeParams=pp.prototype.removeParams;pp.prototype.isEndpointCFR=pp.prototype.isEndpointCFR;pp.prototype.requestComplete=pp.prototype.requestComplete;pp.getInstance=WA;var xK=function(l){_.Xa.call(this);var D=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=l!=null?l:{addLowPriorityJob:function(y,A){return setTimeout(y,A)},
cancelJob:function(y){clearTimeout(y)}};
var U,n;this.isOnline=(n=(U=window.navigator)==null?void 0:U.onLine)!=null?n:!0;this.onNavigatorChange=function(){return _.P(function(y){return y.yield(tsz(D),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||Xcz(this)};
_.Z(xK,_.Xa);xK.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete xK.instance};
xK.prototype.isNetworkAvailable=function(){return this.isOnline};
var Xcz=function(l){l.pollingJob=l.jobManager.addLowPriorityJob(function(){var D;return _.P(function(U){if(U.nextAddress==1)return l.isOnline?((D=window.navigator)==null?0:D.onLine)?U.jumpTo(3):U.yield(tsz(l),3):U.yield(tsz(l),3);Xcz(l);_.Kz(U)})},3E4)},tsz=function(l,D){return l.networkRequestPromise?l.networkRequestPromise:l.networkRequestPromise=new Promise(function(U){var n,y,A,C;
return _.P(function(h){switch(h.nextAddress){case 1:return n=window.AbortController?new window.AbortController:void 0,A=(y=n)==null?void 0:y.signal,C=!1,_.ZY(h,2,3),n&&(l.abortTimeoutKey=l.jobManager.addLowPriorityJob(function(){n.abort()},D||2E4)),h.yield(fetch("/generate_204",{method:"HEAD",
signal:A}),5);case 5:C=!0;case 3:_.aV(h);l.networkRequestPromise=void 0;l.abortTimeoutKey&&(l.jobManager.cancelJob(l.abortTimeoutKey),l.abortTimeoutKey=0);C!==l.isOnline&&(l.isOnline=C,l.isOnline?l.dispatchEvent("networkstatus-online"):l.dispatchEvent("networkstatus-offline"));U(C);_.Sc(h,0);break;case 2:_.kF(h),C=!1,h.jumpTo(3)}})})};var j5=function(){_.Xa.call(this);var l=this;this.shouldFlushErrors=!1;xK.instance||(xK.instance=new xK(_.Tn));this.sharedNetworkStatusManager=xK.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(l.shouldFlushErrors&&_.q("offline_error_handling")){var D=TP3().get("errors",!0);if(D){for(var U in D)if(D[U]){var n=new _.rc(U,"sent via offline_errors");n.name=D[U].name;n.stack=D[U].stack;n.level=D[U].level;_.ll(n)}TP3().set("errors",{},2592E3,!0)}}})};
_.Z(j5,_.Xa);var SB1=function(){if(!j5.instance){var l=_.UG("yt.networkStatusManager.instance")||new j5;_.vG("yt.networkStatusManager.instance",l);j5.instance=l}return j5.instance};
_.W=j5.prototype;_.W.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.W.networkStatusHint=function(l){this.sharedNetworkStatusManager.isOnline=l};
_.W.getWindowStatus=function(){var l=window.navigator.onLine;return l===void 0?!0:l};
_.W.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.W.listen=function(l,D){return this.sharedNetworkStatusManager.listen(l,D)};
_.W.sendNetworkCheckRequest=function(l){l=tsz(this.sharedNetworkStatusManager,l);l.then(function(D){_.q("use_cfr_monitor")&&WA().requestComplete("generate_204",D)});
return l};
j5.prototype.sendNetworkCheckRequest=j5.prototype.sendNetworkCheckRequest;j5.prototype.listen=j5.prototype.listen;j5.prototype.enableErrorFlushing=j5.prototype.enableErrorFlushing;j5.prototype.getWindowStatus=j5.prototype.getWindowStatus;j5.prototype.networkStatusHint=j5.prototype.networkStatusHint;j5.prototype.isNetworkAvailable=j5.prototype.isNetworkAvailable;j5.getInstance=SB1;_.AL=function(l){l=l===void 0?{}:l;_.Xa.call(this);var D=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=SB1();var U=_.UG("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);U&&(l.rateLimit?(this.rateLimit=l.rateLimit,U("networkstatus-online",function(){k3y(D,"publicytnetworkstatus-online")}),U("networkstatus-offline",function(){k3y(D,"publicytnetworkstatus-offline")})):(U("networkstatus-online",function(){D.dispatchEvent("publicytnetworkstatus-online")}),U("networkstatus-offline",
function(){D.dispatchEvent("publicytnetworkstatus-offline")})))};
_.Z(_.AL,_.Xa);_.AL.prototype.isNetworkAvailable=function(){var l=_.UG("yt.networkStatusManager.instance.isNetworkAvailable");return l?l.bind(this.nsmInstance)():!0};
_.AL.prototype.networkStatusHint=function(l){var D=_.UG("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);D&&D(l)};
_.AL.prototype.sendNetworkCheckRequest=function(l){var D=this,U;return _.P(function(n){U=_.UG("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(D.nsmInstance);return _.q("skip_network_check_if_cfr")&&WA().isEndpointCFR("generate_204")?n.return(new Promise(function(y){var A;D.networkStatusHint(((A=window.navigator)==null?void 0:A.onLine)||!0);y(D.isNetworkAvailable())})):U?n.return(U(l)):n.return(!0)})};
var k3y=function(l,D){l.rateLimit?l.lastJobTime?(_.Tn.cancelJob(l.schedulerJob),l.schedulerJob=_.Tn.addLowPriorityJob(function(){l.lastPublicSignalSent!==D&&(l.dispatchEvent(D),l.lastPublicSignalSent=D,l.lastJobTime=(0,_.J3)())},l.rateLimit-((0,_.J3)()-l.lastJobTime))):(l.dispatchEvent(D),l.lastPublicSignalSent=D,l.lastJobTime=(0,_.J3)()):l.dispatchEvent(D)};var V03,F6=function(){cP.call(this,{logsStore:{cleanLogsStore:K23,deleteRequest:dQo,getMostRecentByStatus:Xg$,markAsQueued:SlK,resetRequest:kYg,set:t0B},networkManager:_.ies(),handleError:function(l,D,U){var n,y=U==null?void 0:(n=U.error)==null?void 0:n.code;if(y===400||y===415){var A;l=new _.rc(l.message,D,U==null?void 0:(A=U.error)==null?void 0:A.code);_.nt(l,void 0,void 0,void 0,!0)}else _.ll(l)},
handleWarning:_.nt,sendFn:Ylc,now:_.J3,writeError:INB,jobManager:_.M9(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.RG("potential_esf_error_limit",10),getBooleanFlag:_.q,disableYtIdbTransactions:!(_.wc()&&_.lk9())});this.initializationPromise=new _.Au;_.q("networkless_immediately_drop_all_requests")&&cjG();Z73("LogsDatabaseV2")};
_.Z(F6,cP);_.KFy=function(){var l=_.UG("yt.networklessRequestController.instance");l||(l=new F6,_.vG("yt.networklessRequestController.instance",l),_.q("networkless_logging")&&_.Qo().then(function(D){l.databaseToken=D;Z7h(l);l.initializationPromise.resolve();l.enableCleaning&&Math.random()<=l.cleaningRate&&l.databaseToken&&jr9(l.databaseToken);_.q("networkless_immediately_drop_sw_health_store")&&dl5(l)}));
return l};
F6.prototype.writeThenSend=function(l,D){D||(D={});D=OYg(l,D);_.wc()||(this.initialized=!1);cP.prototype.writeThenSend.call(this,l,D)};
F6.prototype.sendThenWrite=function(l,D,U){D||(D={});D=OYg(l,D);_.wc()||(this.initialized=!1);cP.prototype.sendThenWrite.call(this,l,D,U)};
F6.prototype.sendAndWrite=function(l,D){D||(D={});D=OYg(l,D);_.wc()||(this.initialized=!1);cP.prototype.sendAndWrite.call(this,l,D)};
F6.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var dl5=function(l){var D;_.P(function(U){if(!l.databaseToken)throw D=ld("clearSWHealthLogsDb"),D;return U.return(F2o(l.databaseToken).catch(function(n){l.handleError(n)}))})};_.UD9=!1;_.DDo=_.nC.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.UD9};_.vG("ytNetworklessLoggingInitializationOptions",_.DDo);var $G=function(l){var D=this;this.config_=null;l?this.config_=l:KFl()&&(this.config_=_.qZ());_.oI(_.Tn,function(){M09(D)},5E3)};
$G.prototype.isReady=function(){!this.config_&&KFl()&&(this.config_=_.qZ());return!!this.config_};
var ql$=function(l,D,U,n){!_.H3("VISITOR_DATA")&&D!=="visitor_id"&&Math.random()<.01&&_.nt(new _.rc("Missing VISITOR_DATA when sending innertube request.",D,U,n));if(!l.isReady()){var y=new _.rc("innertube xhrclient not ready",D,U,n);_.ll(y);throw y;}var A={headers:n.headers||{},method:"POST",postParams:U,postBody:n.postBody,postBodyFormat:n.postBodyFormat||"JSON",onTimeout:function(){n.onTimeout()},
onFetchTimeout:n.onTimeout,onSuccess:function(G,J){if(n.onSuccess)n.onSuccess(J)},
onFetchSuccess:function(G){if(n.onSuccess)n.onSuccess(G)},
onProgress:function(G){if(n.onProgress)n.onProgress(G)},
onError:function(G,J){if(n.onError)n.onError(J)},
onFetchError:function(G){if(n.onError)n.onError(G)},
timeout:n.timeout,withCredentials:!0,compress:n.compress};A.headers["Content-Type"]||(A.headers["Content-Type"]="application/json");var C="";(y=l.config_.innertubeHostOverride)&&(C=y);var h=l.config_.innertubeUseThirdPartyAuth||!1,b=_.I1d(h,C,n);Object.assign(A.headers,b);A.headers.Authorization&&!C&&h&&(A.headers["x-origin"]=window.location.origin);var u=_.Ct(C+("/youtubei/"+l.config_.innertubeApiVersion+"/"+D),{alt:"json"}),Q=function(G){G=G===void 0?!1:G;var J;if(n.retry&&C!="www.youtube-nocookie.com"&&
(G||_.q("skip_ls_gel_retry")||A.headers["Content-Type"]!=="application/json"||(J=Jj9(D,U,b,h)),J)){var L=A.onSuccess,R=A.onFetchSuccess;A.onSuccess=function(d,c){L2K(J);L(d,c)};
U.onFetchSuccess=function(d,c){L2K(J);R(d,c)}}try{if(G&&n.retry&&!n.networklessOptions.bypassNetworkless)A.method="POST",n.networklessOptions.writeThenSend?_.KFy().writeThenSend(u,A):_.KFy().sendAndWrite(u,A);
else if(n.compress){var a=!n.networklessOptions.writeThenSend;if(A.postBody){var S=A.postBody;typeof S!=="string"&&(S=JSON.stringify(A.postBody));BPB(u,S,A,_.dc,a)}else BPB(u,JSON.stringify(A.postParams),A,vSC,a)}else vSC(u,A)}catch(d){if(d.name==="InvalidAccessError")J&&(L2K(J),J=0),_.nt(Error("id"));else throw d;}J&&_.oI(_.Tn,function(){M09(l)},5E3)};
_.nt9()?vB9().then(function(G){Q(G)}):Q(!1)};var eEs=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(eEs,_.Bh);var c4h=0,AeC=_.Do?"webkit":_.lB?"moz":_.iB?"ms":$sg?"o":"";_.vG("ytDomDomGetNextId",_.UG("ytDomDomGetNextId")||function(){return++c4h});var pcy={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},g$=function(l){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(l=
l||window.event){this.event=l;for(var D in l)D in pcy||(this[D]=l[D]);this.scale=l.scale;this.rotation=l.rotation;var U=l.target||l.srcElement;U&&U.nodeType==3&&(U=U.parentNode);this.target=U;var n=l.relatedTarget;if(n)try{n=n.nodeName?n:null}catch(y){n=null}else this.type=="mouseover"?n=l.fromElement:this.type=="mouseout"&&(n=l.toElement);this.relatedTarget=n;this.clientX=l.clientX!=void 0?l.clientX:l.pageX;this.clientY=l.clientY!=void 0?l.clientY:l.pageY;this.keyCode=l.keyCode?l.keyCode:l.which;
this.charCode=l.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=l.altKey;this.ctrlKey=l.ctrlKey;this.shiftKey=l.shiftKey;this.metaKey=l.metaKey;this.pageX_=l.pageX;this.pageY_=l.pageY}}catch(y){}},xlz=function(l){if(document.body&&document.documentElement){var D=document.body.scrollTop+document.documentElement.scrollTop;
l.pageX_=l.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);l.pageY_=l.clientY+D}};
g$.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
g$.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
g$.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var by=_.nC.ytEventsEventsListeners||{};_.vG("ytEventsEventsListeners",by);var bel=_.nC.ytEventsEventsCounter||{count:0};_.vG("ytEventsEventsCounter",bel);var gtg=_.ZR(function(){var l=!1;try{var D=Object.defineProperty({},"capture",{get:function(){l=!0}});
window.addEventListener("test",null,D)}catch(U){}return l});_.HI(vA,_.xT);vA.prototype.onMouseMove_=function(l){l.pageX_===void 0&&xlz(l);var D=l.pageX_;l.pageY_===void 0&&xlz(l);this.position_=new _.zP(D,l.pageY_)};
vA.prototype.checkPosition_=function(){if(this.position_){var l=(0,_.J3)();if(this.previousTime_!=0){var D=this.previousPosition_,U=this.position_,n=D.x-U.x;D=D.y-U.y;n=Math.sqrt(n*n+D*D)/(l-this.previousTime_);this.cycles_[this.index_]=Math.abs((n-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(U=D=0;U<4;U++)D+=this.cycles_[U]||0;D>=3&&this.callback_();this.previousVelocity_=n}this.previousTime_=l;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
vA.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.uk$(this.mouseListenerKey_)};var Lpg={};var tZK=new _.y4("rawColdConfigGroup");var aVK=new _.y4("rawHotConfigGroup");var jJ5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(jJ5,_.Bh);var Z5_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Z5_,_.Bh);var F0=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l,500)};
_.Z(F0,_.Bh);F0.prototype.getPayloadCase=function(){return _.QJ(this,FFr)};
F0.prototype.getContext=function(){return _.MZ(this,Z5_,33)};
var FFr=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var qmg=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(qmg,_.Bh);var He3=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(He3,_.Bh);He3.prototype.setVideoId=function(l){return S2(this,1,YVB,Mw(l))};
He3.prototype.getPlaylistId=function(){return _.Xt(this,pB(this,YVB,2))};
var YVB=[1,2];var uEc=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(uEc,_.Bh);uEc.prototype.getContext=function(){return _.MZ(this,kG,1)};
uEc.prototype.getTier=function(){return _.eY(this,7)};var oBy,LB,qa;oBy=_.nC.ytPubsubPubsubInstance||new _.cS;LB=_.nC.ytPubsubPubsubSubscribedKeys||{};qa=_.nC.ytPubsubPubsubTopicToKeys||{};_.qVo=_.nC.ytPubsubPubsubIsSynchronous||{};_.cS.prototype.subscribe=_.cS.prototype.subscribe;_.cS.prototype.unsubscribeByKey=_.cS.prototype.unsubscribeByKey;_.cS.prototype.publish=_.cS.prototype.publish;_.cS.prototype.clear=_.cS.prototype.clear;_.vG("ytPubsubPubsubInstance",oBy);_.vG("ytPubsubPubsubTopicToKeys",qa);_.vG("ytPubsubPubsubIsSynchronous",_.qVo);
_.vG("ytPubsubPubsubSubscribedKeys",LB);var RI=window;var op=_.q("web_enable_lifecycle_monitoring")&&mD$()!==0,wcg=_.q("web_enable_lifecycle_monitoring");var r41=function(l){var D=this;var U=U===void 0?0:U;var n=n===void 0?_.M9():n;this.JSC$10967_defaultPriority=U;this.scheduler=n;this.completedResolver=new _.Au;this.scheduledPayloads=l;for(l={i$jscomp$492:0};l.i$jscomp$492<this.scheduledPayloads.length;l={payload$jscomp$20:void 0,i$jscomp$492:l.i$jscomp$492},l.i$jscomp$492++)l.payload$jscomp$20=this.scheduledPayloads[l.i$jscomp$492],U=function(y){return function(){y.payload$jscomp$20.job();D.scheduledPayloads[y.i$jscomp$492].processed=!0;D.scheduledPayloads.every(function(A){return A.processed===
!0})&&D.completedResolver.resolve()}}(l),n=this.getPriority(l.payload$jscomp$20),n=this.scheduler.addJob(U,n),this.scheduledPayloads[l.i$jscomp$492]=Object.assign({},l.payload$jscomp$20,{job:U,
jobId:n})};
r41.prototype.flushJobs=function(){var l=this,D=Array.from(this.scheduledPayloads.keys()).sort(function(n,y){return l.getPriority(l.scheduledPayloads[y])-l.getPriority(l.scheduledPayloads[n])});
D=_.B(D);for(var U=D.next();!U.done;U=D.next())U=this.scheduledPayloads[U.value],U.jobId===void 0||U.processed||(this.scheduler.cancelJob(U.jobId),this.scheduler.addJob(U.job,10))};
r41.prototype.cancel=function(){for(var l=_.B(this.scheduledPayloads),D=l.next();!D.done;D=l.next())D=D.value,D.jobId===void 0||D.processed||this.scheduler.cancelJob(D.jobId),D.processed=!0;this.completedResolver.resolve()};
r41.prototype.getPriority=function(l){var D;return(D=l.priority)!=null?D:this.JSC$10967_defaultPriority};var wC=function(l){this.state=l;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};op&&akl(this.state)};
wC.prototype.install=function(l){this.plugins.push(l);return this};
wC.prototype.uninstall=function(){var l=this;_.EW.apply(0,arguments).forEach(function(D){D=l.plugins.indexOf(D);D>-1&&l.plugins.splice(D,1)})};
wC.prototype.transition=function(l,D){var U=this;op&&tQd(this.state);var n=this.transitions.find(function(A){return Array.isArray(A.from)?A.from.find(function(C){return C===U.state&&A.to===l}):A.from===U.state&&A.to===l});
if(n){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);zfy(this,l,D);this.state=l;op&&akl(this.state);n=n.action.bind(this);var y=this.plugins.filter(function(A){return A[l]}).map(function(A){return A[l]});
n(f1k(this,y),D)}else throw Error("jd`"+this.state+"`"+l);};
var f1k=function(l,D){var U=D.filter(function(y){return $l_(l,y)===10}),n=D.filter(function(y){return $l_(l,y)!==10});
return l.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var y=_.EW.apply(0,arguments);return _.P(function(A){if(A.nextAddress==1)return A.yield(l.runImmediateJobsAsync.apply(l,[U].concat(_.zz(y))),2);l.setJobSetWithScheduledJobs.apply(l,[n].concat(_.zz(y)));_.Kz(A)})}:function(){var y=_.EW.apply(0,arguments);
l.runImmediateJobsSync.apply(l,[U].concat(_.zz(y)));l.setJobSetWithScheduledJobs.apply(l,[n].concat(_.zz(y)))}};
wC.prototype.runImmediateJobsSync=function(l){var D=_.EW.apply(1,arguments);_.M9();for(var U=_.B(l),n=U.next(),y={};!n.done;y={lifecycle$jscomp$2:void 0},n=U.next())y.lifecycle$jscomp$2=n.value,OV(function(A){return function(){Nug(A.lifecycle$jscomp$2.name);SV9(function(){return A.lifecycle$jscomp$2.callback.apply(A.lifecycle$jscomp$2,_.zz(D))});
rC(A.lifecycle$jscomp$2.name)}}(y))};
wC.prototype.runImmediateJobsAsync=function(l){var D=_.EW.apply(1,arguments),U,n,y,A;return _.P(function(C){C.nextAddress==1&&(_.M9(),U=_.B(l),n=U.next(),y={});if(C.nextAddress!=3){if(n.done)return C.jumpTo(0);y.lifecycle$jscomp$3=n.value;y.asyncJobCompletion=void 0;A=function(h){return function(){Nug(h.lifecycle$jscomp$3.name);var b=SV9(function(){return h.lifecycle$jscomp$3.callback.apply(h.lifecycle$jscomp$3,_.zz(D))});
Mhg(b)?h.asyncJobCompletion=_.q("web_lifecycle_error_handling_killswitch")?b.then(function(){rC(h.lifecycle$jscomp$3.name)}):b.then(function(){rC(h.lifecycle$jscomp$3.name)},function(u){X93(u);
rC(h.lifecycle$jscomp$3.name)}):rC(h.lifecycle$jscomp$3.name)}}(y);
OV(A);return y.asyncJobCompletion?C.yield(y.asyncJobCompletion,3):C.jumpTo(3)}y={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};n=U.next();return C.jumpTo(2)})};
wC.prototype.setJobSetWithScheduledJobs=function(l){var D=_.EW.apply(1,arguments),U=this,n=l.map(function(y){return{job:function(){Nug(y.name);SV9(function(){return y.callback.apply(y,_.zz(D))});
rC(y.name)},
priority:$l_(U,y)}});
n.length&&(this.jobSet=new r41(n))};
var $l_=function(l,D){var U,n;return(n=(U=l.overridePriority)!=null?U:D.priority)!=null?n:0},Nug=function(l){op&&l&&akl(l)},rC=function(l){op&&l&&tQd(l)},zfy=function(l,D,U){wcg&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+l.constructor.name+"] '"+l.state+"' to '"+D+"'"),console.log("with message: ",U),console.groupEnd())};
_.QP.Object.defineProperties(wC.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var sJ8=function(l){wC.call(this,l===void 0?"none":l);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(){}}]},EBg;
_.Z(sJ8,wC);sJ8.prototype.runApplicationNavigationBegin=function(l,D){var U=this;this.navigationTimer=_.oI(_.Tn,function(){U.currentState==="application_navigating"&&U.transition("none")},5E3);
l(D==null?void 0:D.event)};
sJ8.prototype.runApplicationNavigationEnd=function(l,D){this.navigationTimer&&(_.Tn.cancelJob(this.navigationTimer),this.navigationTimer=null);l(D==null?void 0:D.event)};
_.mhc=function(){EBg||(EBg=new sJ8);return EBg};var e0_=[];_.vG("yt.logging.transport.getScrapedGelPayloads",function(){return e0_});var Z0=function(){var l=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return l.totalEntries}}};
Z0.prototype.storePayload=function(l,D){l=kt3(l);this.store[l]?this.store[l].push(D):(this.memoizedKeySequences={},this.store[l]=[D]);this.totalEntries++;_.q("more_accurate_gel_parser")&&(D=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(D));return l};
Z0.prototype.smartExtractMatchingEntries=function(l){if(!l.keys.length)return[];for(var D=Tu7(this,l.keys.splice(0,1)[0]),U=[],n=0;n<D.length;n++)this.store[D[n]]&&l.sizeLimit&&(this.store[D[n]].length<=l.sizeLimit?(U.push.apply(U,_.zz(this.store[D[n]])),delete this.store[D[n]]):U.push.apply(U,_.zz(this.store[D[n]].splice(0,l.sizeLimit))));this.totalEntries-=U.length;(l==null?0:l.sizeLimit)&&U.length<(l==null?void 0:l.sizeLimit)&&(l.sizeLimit-=U.length,U.push.apply(U,_.zz(this.smartExtractMatchingEntries(l))));
return U};
Z0.prototype.extractMatchingEntries=function(l){l=Tu7(this,l);for(var D=[],U=0;U<l.length;U++)this.store[l[U]]&&(D.push.apply(D,_.zz(this.store[l[U]])),delete this.store[l[U]]);this.totalEntries-=D.length;return D};
Z0.prototype.getSequenceCount=function(l){l=Tu7(this,l);for(var D=0,U=0;U<l.length;U++){var n=void 0;D+=((n=this.store[l[U]])==null?void 0:n.length)||0}return D};
var Tu7=function(l,D){var U=kt3(D);if(l.memoizedKeySequences[U])return l.memoizedKeySequences[U];var n=Object.keys(l.store)||[];if(n.length<=1&&kt3(D)===n[0])return n;for(var y=[],A=0;A<n.length;A++){var C=n[A].split("/");if(I1y(D.auth,C[0])){var h=D.isJspb;I1y(h===void 0?"undefined":h?"true":"false",C[1])&&I1y(D.cttAuthInfo,C[2])&&(h=D.tier,h=h===void 0?"undefined":JSON.stringify(h),I1y(h,C[3])&&y.push(n[A]))}}return l.memoizedKeySequences[U]=y},I1y=function(l,D){return l===void 0||l==="undefined"?
!0:l===D};
Z0.prototype.getSequenceCount=Z0.prototype.getSequenceCount;Z0.prototype.extractMatchingEntries=Z0.prototype.extractMatchingEntries;Z0.prototype.smartExtractMatchingEntries=Z0.prototype.smartExtractMatchingEntries;Z0.prototype.storePayload=Z0.prototype.storePayload;var A19,nol,W8l,tL,H7_,dho,k49,Uhg,DhG,Nh9,y1$,R0s,VQo;A19=_.RG("initial_gel_batch_timeout",2E3);nol=_.RG("gel_queue_timeout_max_ms",6E4);W8l=_.RG("gel_min_batch_size",5);tL=void 0;H7_=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
dho=new H7_;k49=new H7_;Uhg=new H7_;DhG=new H7_;y1$=!0;R0s=1;_.MZ9=new Map;VQo=_.nC.ytLoggingTransportTokensToCttTargetIds_||{};_.vG("ytLoggingTransportTokensToCttTargetIds_",VQo);var Oes=_.nC.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.vG("ytLoggingTransportTokensToJspbCttTargetIds_",Oes);var aI={};var zj=_.nC.ytLoggingGelSequenceIdObj_||{};_.vG("ytLoggingGelSequenceIdObj_",zj);var pKl=[];var Eos=new Set,wKg=0,H0d=0,IVc=0,z0s=[],r1l=[],Ym_=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var hd9=function(){};
hd9.prototype.getUrl=function(l,D){D=D===void 0?!1:D;return l.hasOwnProperty("shareEndpoint")?null:_.lXl(l,null,D)};
var Z1g=function(l,D,U){l={endpoint:D,actions:[]};U=(U.path?U.path[0]:U.target).icon||"";D=U.indexOf(":");D>0&&(U=U.substr(D+1));U&&l.actions.push(U);return l};var Wr$=/Command$/,Ail=/Endpoint$/,UJs=new Map;var YBr,O77;YBr=1;_.AH=function(){this.actionRoutingMap=new Map};
_.AH.prototype.triggerAction=function(l){var D=new D$l(l,!1,_.EW.apply(1,arguments));this.handleAction(D);return D.returnValue};
_.AH.prototype.triggerOptionalAction=function(l){var D=new D$l(l,!0,_.EW.apply(1,arguments));this.handleAction(D);return D.returnValue};
_.z_=function(l,D,U){D.forEach(function(n){var y=yiC(n);y&&l.triggerOptionalAction(y,n,U,void 0)})};
_.AH.prototype.handleAction=function(l){var D=this.actionRoutingMap.get(l.actionName);D&&O77(l,D);l.optionalAction||l.returnValue.length!==0||(l=new _.rc("Unhandled action",l.actionName),_.nt(l))};
O77=function(l,D){D.forEach(function(U){var n=null;U?n=U.apply(null,l.args):(U=Error("kd"),U.params=l.actionName,_.ll(U));l.returnValue.push(n)})};
_.Wd=function(l,D,U){U||(U=YBr++);for(var n=_.B(Object.keys(D)),y=n.next();!y.done;y=n.next()){y=y.value;var A=l.actionRoutingMap.get(y);A||(A=new Map,l.actionRoutingMap.set(y,A));l.registerActionHandler(U,y,D[y],A)}return U};
_.AH.prototype.registerActionHandler=function(l,D,U,n){n.set(l,_.DJ(U))};
_.Bd=function(l,D,U){D=_.B(Object.keys(D));for(var n=D.next();!n.done;n=D.next())(n=l.actionRoutingMap.get(n.value))&&n.delete(U)};
_.Th(_.AH);var gvc=function(l,D){var U=_.AH.getInstance();_.N1(function(){var n={},y=_.Wd(U,(n[l]=D,n));_.NV(function(){var A={};_.Bd(U,(A[l]="",A),y)})})};var aM3=Symbol("md");Gs3=Y2B;var ky3=new Set(["For","If","Match","Watch"]),Vsg={},iUm=(Vsg[VH.default]=function(){return h6G},Vsg.style=function(){return h6G},Vsg),lsm;
for(lsm in iUm)v_.attributes[lsm]=iUm[lsm](v_.attributes[lsm]);var G7=new _.A7("VISIBILITY_OBSERVER");var riN={retrieve:function(l){return this.id.\u0275prov.token===l.\u0275prov.token?this.contextValue:this?_.bh(this,this.id):J3d}};var VOl=function(l,D,U){if(l!==Jio)return!1;l=edB(document.createElement("div"),function(){var n=Jf(!1);try{U[0]()}finally{Jf(n)}});
l=Array.from(l.childNodes);l.length===1&&(l=l[0]);return l};var DN7=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(l){}var UN8=typeof WeakRef==="function";var nfH=function(l){this.value=l};
nfH.prototype.deref=function(){return this.value};
var yuy=UN8?WeakRef:nfH,Auk=function(l){this.newKeyHandler=l;this.map=new WeakMap};
Auk.prototype.add=function(l,D){this.map.has(l)||(this.newKeyHandler(l),this.map.set(l,[]));this.map.get(l).push(new yuy(D))};
Auk.prototype.get=function(l){var D=this;return function n(){var y,A,C,h,b,u,Q,G,J,L,R;return _.U4(n,function(a){switch(a.nextAddress){case 1:_.tv(a,2);y=D.map.get(l);if(!y)return a.return();A=0;C=_.B(y);h=C.next();case 4:if(h.done){a.jumpTo(6);break}b=h.value;u=b.deref();if(!u){a.jumpTo(5);break}A++;Q=_.nE;return a.yield(u,8);case 8:Q(a.yieldResult);case 5:h=C.next();a.jumpTo(4);break;case 6:if(2*A<y.length){G=0;J=_.B(y);for(L=J.next();!L.done;L=J.next())R=L.value,R.deref()&&(y[G++]=R);y.length=
G}case 2:_.aV(a),_.Sc(a,0)}})}()};var WX8=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},TN_=new Auk(function(l){l.addEventListener("abort",Hq$,{once:!0})}),Ev_=new WeakMap,BXm=function(l){l=l===void 0?fp:l;
this.signal=new l};
BXm.prototype.abort=function(l){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=l,l=new Event("abort"),this.signal.dispatchEvent(l))};
var fp=function(){this.target=WX8();this.aborted=!1;this.onabort=null};
fp.prototype.throwIfAborted=function(){sTN.call(this)};
fp.prototype.addEventListener=function(l,D,U){this.target.addEventListener(l,D,U)};
fp.prototype.removeEventListener=function(l,D,U){this.target.removeEventListener(l,D,U)};
fp.prototype.dispatchEvent=function(l){if(this.onabort&&l.type==="abort")this.onabort(l);return this.target.dispatchEvent(l)};
fp.abort=NNc;fp.timeout=YEg;fp.any=IX9;var $Jd=DN7?AbortController:BXm,$K=DN7?AbortSignal:fp;typeof $K.abort!=="function"&&($K.abort=NNc);typeof $K.prototype.throwIfAborted!=="function"&&($K.prototype.throwIfAborted=sTN);typeof $K.any!=="function"&&($K.any=IX9);typeof $K.timeout!=="function"&&($K.timeout=YEg);var LA=null,VqK=new Map;var CV5=function(l){l=l.clone();Xd1(l);t8(l,"dg",null);t8(l,"d","0");eX5(l,null);mMy(l,null);return l},h91=!0,PV7=function(l,D,U){var n=U===void 0?{}:U;
U=n.cssRowKey===void 0?void 0:n.cssRowKey;var y=n.combinedSignature===void 0?void 0:n.combinedSignature;var A=n.extraEdges===void 0?void 0:n.extraEdges;n=n.callback===void 0?void 0:n.callback;t8(l,"m",D.join(","));A&&tny(l,A);U&&(t8(l,"ck",U),y?t8(l,"rs",y):h91&&(h91=!1));if(n){if(n!=null&&!dMm.test(n))throw Error("Xa`"+n);t8(l,"cb",n)}l=l.toString();_.Ad(l,"/")&&(l=AAk(document.location.href)+l);return _.dT(l)};var gf5=function(l){return bUh(l).then(function(D){return JSON.parse(D.responseText)})},bUh=function(l){var D={},U=D.xmlHttpFactory?D.xmlHttpFactory.createInstance():sN5.createInstance();
return(new _.X0(function(n,y){var A;try{U.open("GET",l,!0)}catch(b){y(new Nc("Error opening XHR: "+b.message,l,U))}U.onreadystatechange=function(){if(U.readyState==4){_.nC.clearTimeout(A);var b;!(b=Ntz(U.status))&&(b=U.status===0)&&(b=yA7(l),b=!(b=="http"||b=="https"||b==""));b?n(U):y(new uPy(U.status,l,U))}};
U.onerror=function(){y(new Nc("Network error",l,U))};
if(D.headers)for(var C in D.headers){var h=D.headers[C];h!=null&&U.setRequestHeader(C,h)}D.withCredentials&&(U.withCredentials=D.withCredentials);D.responseType&&(U.responseType=D.responseType);D.mimeType&&U.overrideMimeType(D.mimeType);D.timeoutMs>0&&(A=_.nC.setTimeout(function(){U.onreadystatechange=function(){};
U.abort();y(new vfm(l,U))},D.timeoutMs));
try{U.send(null)}catch(b){U.onreadystatechange=function(){},_.nC.clearTimeout(A),y(new Nc("Error sending XHR: "+b.message,l,U))}})).thenCatch(function(n){n instanceof _.dk&&U.abort();
throw n;})},Nc=function(l,D,U){_.D9.call(this,l+", url="+D);
this.url=D;this.xhr=U};
_.HI(Nc,_.D9);Nc.prototype.name="XhrError";var uPy=function(l,D,U){Nc.call(this,"Request Failed, status="+l,D,U);this.status=l};
_.HI(uPy,Nc);uPy.prototype.name="XhrHttpError";var vfm=function(l,D){Nc.call(this,"Request timed out",l,D)};
_.HI(vfm,Nc);vfm.prototype.name="XhrTimeoutError";E4=E4||{};var sa=function(){_.xT.call(this)};
_.HI(sa,_.xT);sa.prototype.initialize=function(){};var Qn8=function(l,D){this.fn_=l;this.handler_=D};
Qn8.prototype.execute=function(l){this.fn_&&(this.fn_.call(this.handler_||null,l),this.fn_=this.handler_=null)};
Qn8.prototype.abort=function(){this.handler_=this.fn_=null};var Ea=function(l,D){_.xT.call(this);this.deps_=l;this.JSC$11122_id_=D;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.HI(Ea,_.xT);Ea.prototype.moduleConstructor_=sa;Ea.prototype.module_=null;Ea.prototype.getId=function(){return this.JSC$11122_id_};
Ea.prototype.registerCallback=function(l,D){return T_(this.onloadCallbacks_,l,D)};
var GIg=function(l,D){T_(l.onErrorCallbacks_,D)},T_=function(l,D,U){D=new Qn8(D,U);
l.push(D);return D};
Ea.prototype.isLoaded=function(){return!!this.module_};
Ea.prototype.onLoad=function(l){var D=new this.moduleConstructor_;D.initialize(l());this.module_=D;D=(D=JuH(this.earlyOnloadCallbacks_,l()))||JuH(this.onloadCallbacks_,l());D||(this.onErrorCallbacks_.length=0);return D};
Ea.prototype.onError=function(l){(l=JuH(this.onErrorCallbacks_,l))&&yg(Error("rd`"+l));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var JuH=function(l,D){for(var U=[],n=0;n<l.length;n++)try{l[n].execute(D)}catch(y){yg(y),U.push(y)}l.length=0;return U.length?U:null};
Ea.prototype.disposeInternal=function(){Ea.superClass_.disposeInternal.call(this);_.WE(this.module_)};var LXy,mNy,ZUy,e9m,Md_,R9m,kIm,Xkv,SJ5;
_.MM=function(l,D,U,n,y){n=n===void 0?!1:n;y=y===void 0?!1:y;var A=A===void 0?!0:A;this.scsReferenceUrl_=r3o(_.Kc(l).toString(),A);this.cssRowKey_=D;this.combinedSignature_=U;this.useNegativeLoading_=n;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(l=a8(this.scsReferenceUrl_,"excm"))?l.split(","):[];this.shouldScanForCss_=y;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;zv9();_.Ip(this,amy(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
LXy=function(l,D){if(D.href||D.getAttribute("data-href"))if(D=D.href||D.getAttribute("data-href"),j2o(D)&&!r3o(D).urlPrefix_.endsWith("_/js/")){D=amy(r3o(D));D=_.B(D);for(var U=D.next();!U.done;U=D.next())U=U.value,l.loadedCssModuleList_.includes(U)||l.loadedCssModuleList_.push(U)}};
_.MM.prototype.JSC$11127_loadModules=function(l,D,U){var n=U===void 0?{}:U;D=n.extraEdges;U=n.onError;var y=n.onSuccess;n=n.forceReload;if(!l)throw Error("sd");if(this.shouldScanForCss_){for(var A=_.B(document.getElementsByTagName("style")),C=A.next();!C.done;C=A.next())LXy(this,C.value);A=_.B(document.getElementsByTagName("link"));for(C=A.next();!C.done;C=A.next())LXy(this,C.value)}qJ1(this,Md_(this,l),D,U,y,n)};
var qJ1=function(l,D,U,n,y,A){n=n===void 0?function(){}:n;
y=y===void 0?function(){}:y;
A=A===void 0?!1:A;R9m(l,D,function(C,h,b){b=b===void 0?h:b;l.enableFallbackFetch&&A?l.loadWithFetch(C,h,n,y,b):l.load(C,h,n,y,b,U)},U)||n(-1)};
_.MM.prototype.loadWithFetch=function(){_.P(function(){throw Error("td");})};
_.MM.prototype.maybeSetAdditionalFields=function(){};
mNy=function(l,D,U){if(l.useNegativeLoading_){var n=l.scsReferenceUrl_;l={cssRowKey:l.cssRowKey_,combinedSignature:l.combinedSignature_,extraEdges:U,requestedModuleIds:ZUy(l),requestedCssModuleIds:e9m(l)};var y=l===void 0?{}:l;l=y.requestedModuleIds===void 0?[]:y.requestedModuleIds;U=y.requestedCssModuleIds===void 0?[]:y.requestedCssModuleIds;var A=y.cssRowKey===void 0?void 0:y.cssRowKey;var C=y.combinedSignature===void 0?void 0:y.combinedSignature;var h=y.extraEdges===void 0?void 0:y.extraEdges;
y=y.callback===void 0?void 0:y.callback;n=CV5(n);t8(n,"d","1");eX5(n,l);mMy(n,U);D=PV7(n,D,{cssRowKey:A,combinedSignature:C,extraEdges:h,callback:y})}else n=l.scsReferenceUrl_,l={cssRowKey:l.cssRowKey_,combinedSignature:l.combinedSignature_,requestedModuleIds:ZUy(l),requestedCssModuleIds:e9m(l)},h=l===void 0?{}:l,l=h.requestedCssModuleIds===void 0?[]:h.requestedCssModuleIds,U=h.cssRowKey===void 0?void 0:h.cssRowKey,A=h.combinedSignature===void 0?void 0:h.combinedSignature,C=h.extraEdges===void 0?
void 0:h.extraEdges,h=h.callback===void 0?void 0:h.callback,n=CV5(n),mMy(n,l),D=PV7(n,D,{cssRowKey:U,combinedSignature:A,extraEdges:C,callback:h});return D};
_.Ip=function(l,D){for(var U=!1,n=[],y=0;y<D.length;++y){var A=D[y];l.requestedModuleMap_[A]||(l.requestedModuleMap_[A]=!0,l.requestedModuleList_.push(A),U=!0,n.push(A))}U&&(l.requestedModuleListSorted_=!1)};
_.HP=function(l,D){for(var U=[],n=0;n<D.length;++n){var y=D[n];l.requestedModuleMap_[y]&&(delete l.requestedModuleMap_[y],_.fC(l.requestedModuleList_,y),U.push(y))}};
_.MM.prototype.load=function(l,D,U,n,y){y=y===void 0?D:y;_.Kc(l);var A=this.useCors_,C=this.corsMode_,h=this.fetchPriority,b=_.SU("SCRIPT");_.BY(b,l);A&&(b.crossOrigin=C);b.async=!1;h&&b.setAttribute("fetchpriority",h);_.Ip(this,D);_.as5(this,l,b,D,U,n,y)};
_.as5=function(l,D,U,n,y,A,C){C=C===void 0?n:C;l.lastScript_=U;l.insertPos.insertBefore(U,l.insertPos.firstChild);_.td_(U,n,function(){U.parentElement.removeChild(U);l.lastScript_==U&&(l.lastScript_=null);A()},function(h){U.parentElement.removeChild(U);
l.lastScript_==U&&(l.lastScript_=null);_.HP(l,h);l.pendingModuleGraphUpdate_?l.pendingModuleGraphUpdate_.then(function(){y(-1,D)}):y(-1,D)},C)};
_.td_=function(l,D,U,n,y){y=y===void 0?D:y;var A=D.length,C=function(){A=0;l.onload=null;l.onerror=null;h=function(){}},h=function(){C();
var u=y.filter(function(Q){return!$T().getModuleInfo(Q).isLoaded()});
u.length!==0?n(u,"Response was successful but was missing module(s) "+u+"."):U()},b=function(){A--;
A==0&&h()};
D.forEach(function(u){u=$T().getModuleInfo(u);u.isLoaded()?b():(T_(u.earlyOnloadCallbacks_,b),GIg(u,b))});
l.onload=function(){return h()};
l.onerror=function(){C();n(D)}};
ZUy=function(l){l.requestedModuleListSorted_||(l.requestedModuleListSorted_=!0,l.requestedModuleList_.sort());return l.requestedModuleList_};
e9m=function(l){l=l.loadedCssModuleList_;l.sort();return l};
Md_=function(l,D){return D.filter(function(U){return!l.requestedModuleMap_[U]})};
R9m=function(l,D,U,n){if(l.pendingModuleGraphUpdate_)return l.pendingModuleGraphUpdate_.then(function(){R9m(l,D,U,n)}),!0;
if(!l.useNegativeLoading_){var y=[],A=Object.assign({},l.requestedModuleMap_);Xkv(l,D,function(Q){y.push(Q.getId())},n,function(Q){return!Q.isLoaded()},A);
D=y}for(A=0;A<D.length;){for(var C=D.length-A,h=A==0?D:D.slice(A,D.length),b=mNy(l,h,n),u=_.Kc(b).toString();u.length>l.urlMaxLength;)if(C>1)C-=Math.ceil((u.length-l.urlMaxLength)/6),C=Math.max(C,1),h=D.slice(A,A+C),b=mNy(l,h,n),u=_.Kc(b).toString();else return l.useNegativeLoading_?(l.useNegativeLoading_=!1,l.pendingModuleGraphUpdate_=SJ5(l).then(function(Q){kIm(l,Q,n)}),R9m(l,D.slice(A),U,n)):!1;
A+=C;l.useNegativeLoading_?U(b,h):U(b,h,A===D.length?D:[])}return!0};
kIm=function(l,D,U){$T().setAllModuleInfoString((D||{}).moduleGraph);Xkv(l,ZUy(l),function(n){_.Ip(l,[n.getId()])},U);
l.pendingModuleGraphUpdate_=null};
Xkv=function(l,D,U,n,y,A){A=A===void 0?{}:A;var C=$T();D=_.B(D);for(var h=D.next();!h.done;h=D.next()){h=h.value;var b=C.getModuleInfo(h);if(!(A[h]||y&&!y(b))){A[h]=!0;var u=b.deps_||[];if(n){var Q=[];n[h]&&(Q=Object.keys(n[h]));u=u.concat(Q)}Xkv(l,u,U,n,y,A);U(b)}}};
SJ5=function(l){l=l.scsReferenceUrl_.clone();Xd1(l);t8(l,"dg",null);t8(l,"md","1");return gf5(l.toString())};var lf9=new Uint8Array(123);var dN8=[];var KX5=function(){this.JSC$10135_loader_=null};
_.W=KX5.prototype;_.W.setBatchModeEnabled=function(){};
_.W.setAllModuleInfoString=function(){};
_.W.addExtraEdge=function(){throw Error("ud");};
_.W.removeExtraEdge=function(){throw Error("vd");};
_.W.getModuleContext=function(){return null};
_.W.isActive=function(){return!1};
_.W.isUserActive=function(){return!1};
_.W.registerInitializationCallback=function(){};
_.W.registerCallback=function(){};var YK=function(l,D,U,n,y){var A=Error.call(this);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.name="ModuleLoadFailure";this.type=l;this.status=D;this.requestedModuleIds=U;this.url=n;this.cause=y;this.message=this.toString()};
_.Z(YK,Error);YK.prototype.toString=function(){return cuH(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var cuH=function(l){switch(l.type){case YK.Type.UNAUTHORIZED:return"Unauthorized";case YK.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case YK.Type.TIMEOUT:return"Timed out";case YK.Type.OLD_CODE_GONE:return"Out of date module id";case YK.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+l.type}};
E4.ModuleLoadFailure=YK;E4.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Oa=function(){this.moduleIds_=this.JSC$10135_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11140_extraEdges_={};this.JSC$11140_callbackMap_={};this.JSC$11140_currentlyLoadingModule_=this.baseModuleInfo_=new Ea([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new OY;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.HI(Oa,KX5);var pk8=function(l,D){_.D9.call(this,"Error loading "+l+": "+D)};
_.HI(pk8,_.D9);Oa.prototype.setBatchModeEnabled=function(l){this.batchModeEnabled_=l};
Oa.prototype.setAllModuleInfoString=function(l,D){if(!(this instanceof Oa))this.setAllModuleInfoString(l,D);else if(typeof l==="string"){if(l.startsWith("d$")){l=l.substring(2);for(var U=[],n=0,y=l.indexOf("/"),A=0,C=!1,h=0;;){var b=C?l.substring(A):l.substring(A,y);if(b.length===0)n++,A="sy"+n.toString(36),b=[];else{var u=b.indexOf(":");if(u<0)A=b,b=[];else if(u===b.length-1)A=b.substring(0,u),b=Array(U[h-1]);else{A=b.substring(0,u);b=b.substring(u+1).split(",");u=h;for(var Q=0;Q<b.length;Q++)u-=
b[Q].length===0?1:Number(b[Q]),b[Q]=U[u]}u=0;if(A.length===0)u=1;else if(A.charAt(0)==="+"||A.charAt(0)==="-")u=Number(A);u!==0&&(n+=u,A="sy"+n.toString(36))}U.push(A);xNm(this,A,b);if(C)break;A=y+1;y=l.indexOf("/",A);y===-1&&(C=!0);h++}this.moduleIds_=U}else if(l.startsWith("p$"))jny(this,l);else{l=l.split("/");U=[];for(n=0;n<l.length;n++){h=l[n].split(":");y=h[0];C=[];if(h[1])for(C=h[1].split(","),h=0;h<C.length;h++)C[h]=U[parseInt(C[h],36)];U.push(y);xNm(this,y,C)}this.moduleIds_=U}D&&D.length?
(_.sc(this.loadingModuleIds_,D),this.lastInitialModuleId_=_.co(D)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11140_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11140_currentlyLoadingModule_=null,(D=this.baseModuleInfo_.onLoad((0,_.jU)(this.getModuleContext,this)))&&D.length&&FX1(this,new E4.ModuleLoadFailure(E4.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,D[0])),V4(this))}};
var jny=function(l,D){var U=D.substring(2);for(D=0;D<64;D++)lf9["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(D)]=D;var n={buf:U,pos:0};qM(n);var y=qM(n),A=qM(n)+1;D=Array(y);var C=Array(y),h=Array(y);A=Array(A);var b=0,u=0,Q=n.pos,G=n.buf.indexOf("|",n.pos);n.pos=G+1;for(G=0;G<y;G++){var J=qM(n),L=J&2,R=J&1;J>>>=2;R?(b+=J>>>1^-(J&1),J="sy"+b.toString(36)):(R=Q,Q+=J,J=U.substring(R,Q));D[G]=J;L&&(A[u++]=J)}A[u]="";n.pos++;u=y&-2;U=y&1;for(b=0;b<u;b+=2)Q=DdB(n),h[b]=
Q&7,h[b+1]=Q>>>3&7;U&&(U=DdB(n),h[u]=U&7);n.pos++;for(u=0;u<y;u++)h[u]===7&&(h[u]=qM(n));n.pos++;for(U=u=0;U<y;U++){b=h[U];Q=b===0?dN8:Array(b);C[U]=Q;G=u;for(L=0;L<b;L++)G-=qM(n),Q[L]=A[G];A[u]===D[U]&&u++}for(n=0;n<D.length;n++)xNm(l,D[n],C[n]);l.moduleIds_=D};
_.W=Oa.prototype;_.W.getModuleInfo=function(l){return this.moduleInfoMap[l]};
_.W.addExtraEdge=function(l,D){var U=this.getModuleInfo(l);U&&U.isLoaded()?this.load(D):(this.JSC$11140_extraEdges_[l]||(this.JSC$11140_extraEdges_[l]={}),this.JSC$11140_extraEdges_[l][D]=!0)};
_.W.removeExtraEdge=function(l,D){if(this.JSC$11140_extraEdges_[l]){delete this.JSC$11140_extraEdges_[l][D];for(var U in this.JSC$11140_extraEdges_[l])return;delete this.JSC$11140_extraEdges_[l]}};
_.W.isActive=function(){return this.loadingModuleIds_.length>0};
_.W.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var V4=function(l){var D=l.lastActive_,U=l.isActive();U!=D&&(l.executeCallbacks_(U?"active":"idle"),l.lastActive_=U);D=l.isUserActive();D!=l.userLastActive_&&(l.executeCallbacks_(D?"userActive":"userIdle"),l.userLastActive_=D)},xNm=function(l,D,U){l.moduleInfoMap[D]?(l=l.moduleInfoMap[D].deps_,l!=U&&l.splice.apply(l,[0,
l.length].concat(_.zz(U)))):l.moduleInfoMap[D]=new Ea(U,D)},wkm=function(l,D,U){var n=[];
pos(D,n);D=[];for(var y={},A=0;A<n.length;A++){var C=n[A],h=l.getModuleInfo(C);if(!h)throw Error("wd`"+C);var b=new OY;y[C]=b;h.isLoaded()?b.callback(null):(ofk(l,C,h,!!U,b),l.isModuleLoading(C)||D.push(C))}D.length>0&&(l.loadingModuleIds_.length===0?l.loadModules_(D):(l.requestedModuleIdsQueue_.push(D),V4(l)));return y},ofk=function(l,D,U,n,y){U.registerCallback(y.callback,y);
GIg(U,function(A){y.errback(new pk8(D,A))});
l.isModuleLoading(D)?n&&(rur(l,D),V4(l)):n&&rur(l,D)};
Oa.prototype.loadModules_=function(l,D,U){var n=this;D||(this.consecutiveFailures_=0);var y=z98(this,l);this.loadingModuleIds_=y;this.requestedLoadingModuleIds_=this.batchModeEnabled_?l:_.$9(y);V4(this);if(y.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,y);l=this.JSC$10135_loader_;if(!l)throw Error("xd");if(Object.keys(this.JSC$11140_extraEdges_).length>0&&!l.supportsExtraEdges)throw Error("yd");U=(0,_.jU)(l.JSC$11127_loadModules,l,_.$9(y),this.moduleInfoMap,{extraEdges:this.JSC$11140_extraEdges_,
forceReload:!!U,onError:function(A,C){var h=n.requestedLoadingModuleIds_;A=A!=null?A:void 0;n.consecutiveFailures_++;var b=_.$9(y);n.requestedLoadingModuleIds_=h;y.forEach(_.P6(_.fC,n.requestedModuleIds_),n);A==401?(FX1(n,new E4.ModuleLoadFailure(E4.ModuleLoadFailure.Type.UNAUTHORIZED,A)),n.requestedModuleIdsQueue_.length=0):A==410?(fs7(n,new E4.ModuleLoadFailure(E4.ModuleLoadFailure.Type.OLD_CODE_GONE,A)),$N_(n)):n.consecutiveFailures_>=3?(fs7(n,new E4.ModuleLoadFailure(E4.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
A,b,C)),$N_(n)):n.loadModules_(n.requestedLoadingModuleIds_,!0,A==8001||!1)},
onTimeout:(0,_.jU)(this.handleLoadTimeout_,this)});(l=Math.pow(this.consecutiveFailures_,2)*5E3)?_.nC.setTimeout(U,l):U()}};
var z98=function(l,D){D=D.filter(function(y){return l.moduleInfoMap[y].isLoaded()?(_.nC.setTimeout(function(){return Error("zd`"+y)},0),!1):!0});
for(var U=[],n=0;n<D.length;n++)U=U.concat(NX8(l,D[n]));pos(U);return!l.batchModeEnabled_&&U.length>1?(D=U.shift(),l.requestedModuleIdsQueue_=U.map(function(y){return[y]}).concat(l.requestedModuleIdsQueue_),[D]):U},NX8=function(l,D){var U=_.we.createSet(l.requestedModuleIds_),n=[];
U[D]||n.push(D);D=[D];for(var y=0;y<D.length;y++)for(var A=l.getModuleInfo(D[y]).deps_,C=A.length-1;C>=0;C--){var h=A[C];l.getModuleInfo(h).isLoaded()||U[h]||(n.push(h),D.push(h))}n.reverse();pos(n);return n};
Oa.prototype.JSC$11135_setLoaded=function(){if(this.JSC$11140_currentlyLoadingModule_){var l=this.JSC$11140_currentlyLoadingModule_.getId(),D=[];if(this.JSC$11140_extraEdges_[l]){for(var U=_.B(Object.keys(this.JSC$11140_extraEdges_[l])),n=U.next();!n.done;n=U.next()){n=n.value;var y=this.getModuleInfo(n);y&&!y.isLoaded()&&(this.removeExtraEdge(l,n),D.push(n))}this.loadMultiple(D)}this.isDisposed()||((D=this.moduleInfoMap[l].onLoad((0,_.jU)(this.getModuleContext,this)))&&D.length&&FX1(this,new E4.ModuleLoadFailure(E4.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,D[0])),_.fC(this.userInitiatedLoadingModuleIds_,l),_.fC(this.loadingModuleIds_,l),this.loadingModuleIds_.length===0&&$N_(this),this.lastInitialModuleId_&&l==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),V4(this),this.JSC$11140_currentlyLoadingModule_=null)}};
Oa.prototype.isModuleLoading=function(l){if(_.rl(this.loadingModuleIds_,l))return!0;for(var D=0;D<this.requestedModuleIdsQueue_.length;D++)if(_.rl(this.requestedModuleIdsQueue_[D],l))return!0;return!1};
Oa.prototype.load=function(l,D){return wkm(this,[l],D)[l]};
Oa.prototype.loadMultiple=function(l){return wkm(this,l)};
var rur=function(l,D){_.rl(l.userInitiatedLoadingModuleIds_,D)||l.userInitiatedLoadingModuleIds_.push(D)};
Oa.prototype.beforeLoadModuleCode=function(l){var D=this;this.JSC$11140_currentlyLoadingModule_&&this.JSC$11140_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11135_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[l]&&sng(this,this.moduleInfoMap[l].deps_||[],function(U){U.module_=new sa;_.fC(D.loadingModuleIds_,U.getId())},function(U){return!U.isLoaded()});
this.JSC$11140_currentlyLoadingModule_=this.getModuleInfo(l)};
Oa.prototype.registerInitializationCallback=function(l){this.JSC$11140_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new Ea([],"synthetic_module_overhead"),this.JSC$11140_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);T_(this.JSC$11140_currentlyLoadingModule_.earlyOnloadCallbacks_,l)};
Oa.prototype.handleLoadTimeout_=function(){fs7(this,new E4.ModuleLoadFailure(E4.ModuleLoadFailure.Type.TIMEOUT));$N_(this)};
var fs7=function(l,D){l.requestedLoadingModuleIds_.length>1?l.requestedModuleIdsQueue_=l.requestedLoadingModuleIds_.map(function(U){return[U]}).concat(l.requestedModuleIdsQueue_):FX1(l,D)},FX1=function(l,D){var U=l.requestedLoadingModuleIds_;
l.loadingModuleIds_.length=0;for(var n=[],y=0;y<l.requestedModuleIdsQueue_.length;y++){var A=l.requestedModuleIdsQueue_[y].filter(function(b){var u=NX8(this,b);return BA(U,function(Q){return _.rl(u,Q)})},l);
_.sc(n,A)}for(y=0;y<U.length;y++)_.kNg(n,U[y]);for(y=0;y<n.length;y++){for(A=0;A<l.requestedModuleIdsQueue_.length;A++)_.fC(l.requestedModuleIdsQueue_[A],n[y]);_.fC(l.userInitiatedLoadingModuleIds_,n[y])}if(y=l.JSC$11140_callbackMap_.error)for(A=0;A<y.length;A++)for(var C=y[A],h=0;h<n.length;h++)C("error",n[h],D);for(n=0;n<U.length;n++)if(l.moduleInfoMap[U[n]])l.moduleInfoMap[U[n]].onError(D);l.requestedLoadingModuleIds_.length=0;V4(l)},$N_=function(l){for(;l.requestedModuleIdsQueue_.length;){var D=
l.requestedModuleIdsQueue_.shift().filter(function(U){return!this.getModuleInfo(U).isLoaded()},l);
if(D.length>0){l.loadModules_(D);return}}V4(l)};
Oa.prototype.registerCallback=function(l,D){Array.isArray(l)||(l=[l]);for(var U=0;U<l.length;U++){var n=l[U],y=D,A=this.JSC$11140_callbackMap_;A[n]||(A[n]=[]);A[n].push(y)}};
Oa.prototype.executeCallbacks_=function(l){for(var D=this.JSC$11140_callbackMap_[l],U=0;D&&U<D.length;U++)D[U](l)};
var sng=function(l,D,U,n,y){n=n===void 0?function(){return!0}:n;
y=y===void 0?{}:y;D=_.B(D);for(var A=D.next();!A.done;A=D.next()){A=A.value;var C=l.getModuleInfo(A);!y[A]&&n(C)&&(y[A]=!0,sng(l,C.deps_||[],U,n,y),U(C))}};
Oa.prototype.dispose=function(){_.BE(_.we.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11140_callbackMap_={};this.isDisposed_=!0};
Oa.prototype.isDisposed=function(){return this.isDisposed_};
_.fw=function(){return new Oa};var Ef7=[5E3,2E4],jqo=function(){this.JSC$10135_loader_=null;this.JSC$11148_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11148_queue_=[];this.JSC$11148_extraEdges_=Object.create(null);this.JSC$11148_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.Z(jqo,KX5);_.W=jqo.prototype;_.W.setAllModuleInfoString=function(){this.JSC$11148_currentlyLoadingModule_&&this.JSC$11148_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11135_setLoaded()};
_.W.getModuleInfo=function(l){var D=this.JSC$11148_moduleInfoMap_[l];D||(D=new Ea([],l),this.JSC$11148_moduleInfoMap_[l]=D);return D};
_.W.addExtraEdge=function(l,D){this.getModuleInfo(l).isLoaded()?this.load(D):(this.JSC$11148_extraEdges_[l]||(this.JSC$11148_extraEdges_[l]={}),this.JSC$11148_extraEdges_[l][D]=!0)};
_.W.removeExtraEdge=function(l,D){if(this.JSC$11148_extraEdges_[l]){delete this.JSC$11148_extraEdges_[l][D];for(var U in this.JSC$11148_extraEdges_[l])return;delete this.JSC$11148_extraEdges_[l]}};
_.W.isModuleLoading=function(l){return!!this.loadingModules_[l]};
_.W.load=function(l){TXz(this,[l]);return Isy(this,l)};
_.W.loadMultiple=function(l){var D=this,U=Object.create(null),n=[];l.forEach(function(y){U[y]||(U[y]=Isy(D,y),n.push(y))});
TXz(this,n);return U};
_.W.beforeLoadModuleCode=function(l){var D;((D=this.JSC$11148_currentlyLoadingModule_)==null?void 0:D.getId())==="synthetic_module_overhead"&&this.JSC$11135_setLoaded();var U,n;HUy(this,(n=(U=this.JSC$11148_moduleInfoMap_[l])==null?void 0:U.deps_)!=null?n:[],function(y){y.module_=new sa},function(y){return!y.isLoaded()});
this.JSC$11148_currentlyLoadingModule_=this.getModuleInfo(l)};
_.W.JSC$11135_setLoaded=function(){if(this.JSC$11148_currentlyLoadingModule_){var l=this.JSC$11148_currentlyLoadingModule_.getId(),D=[];if(this.JSC$11148_extraEdges_[l]){for(var U=_.B(Object.keys(this.JSC$11148_extraEdges_[l])),n=U.next();!n.done;n=U.next())n=n.value,this.getModuleInfo(n).isLoaded()||(this.removeExtraEdge(l,n),D.push(n));this.loadMultiple(D)}this.JSC$11148_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11148_currentlyLoadingModule_=null;(!this.isModuleLoading(l)&&/^sy[0-9a-z]{0,4}$/.test(l)||l==="synthetic_module_overhead")&&delete this.JSC$11148_moduleInfoMap_[l];this.unsetModulesAsLoading(l)}};
_.W.registerInitializationCallback=function(l){this.JSC$11148_currentlyLoadingModule_||(this.JSC$11148_moduleInfoMap_.synthetic_module_overhead=new Ea([],"synthetic_module_overhead"),this.JSC$11148_currentlyLoadingModule_=this.JSC$11148_moduleInfoMap_.synthetic_module_overhead);T_(this.JSC$11148_currentlyLoadingModule_.earlyOnloadCallbacks_,l)};
_.W.setModulesAsLoading=function(){var l=this;_.EW.apply(0,arguments).forEach(function(D){l.loadingModules_[D]=!0})};
_.W.unsetModulesAsLoading=function(){var l=this;_.EW.apply(0,arguments).forEach(function(D){delete l.loadingModules_[D]})};
var Isy=function(l,D){return new _.X0(function(U,n){var y=l.getModuleInfo(D);y.isLoaded()?U(null):(y.registerCallback(function(){U(null)}),GIg(y,function(A){var C="Error loading "+D+": "+A;
A instanceof E4.ModuleLoadFailure&&A.url&&(C=C+", requested url: "+A.url.toString());n(Error(C))}))})},TXz=function(l,D){D=D.filter(function(U){return!l.isModuleLoading(U)&&!l.getModuleInfo(U).isLoaded()});
D.length>0&&(l.setModulesAsLoading.apply(l,_.zz(D)),l.JSC$11148_queue_.push(D),YJv(l))},YJv=function(l){for(var D={};l.activeLoads_<Infinity&&l.JSC$11148_queue_.length>0;D={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})D.ids$jscomp$37=l.JSC$11148_queue_.shift().filter(function(U){return!l.getModuleInfo(U).isLoaded()}),D.ids$jscomp$37.length>0&&(l.activeLoads_++,D.finishLoad=function(U){return function(){l.activeLoads_--;
YJv(l);U.finishLoad=function(){}}}(D),_.dx(D.ids$jscomp$37.map(function(U){return Isy(l,U)})).then(function(U){return function(){(0,U.finishLoad)()}}(D)),D.attempt$jscomp$6=0,D.load$jscomp$1=function(U){return function(){if(Object.keys(l.JSC$11148_extraEdges_).length>0&&!l.JSC$10135_loader_.supportsExtraEdges)throw Error("yd");
l.JSC$10135_loader_.JSC$11127_loadModules(U.ids$jscomp$37,l.JSC$11148_moduleInfoMap_,{extraEdges:l.JSC$11148_extraEdges_,onError:function(n,y){var A=Ef7[U.attempt$jscomp$6++];A!==void 0?setTimeout(function(){(0,U.load$jscomp$1)()},A):(l.unsetModulesAsLoading.apply(l,_.zz(U.ids$jscomp$37)),(0,U.finishLoad)(),U.ids$jscomp$37.forEach(function(C){C=l.getModuleInfo(C);
if(!C.isLoaded())C.onError(new E4.ModuleLoadFailure(E4.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,n,U.ids$jscomp$37,y))}))}})}}(D),(0,D.load$jscomp$1)())},HUy=function(l,D,U,n,y){n=n===void 0?function(){return!0}:n;
y=y===void 0?{}:y;D=_.B(D);for(var A=D.next();!A.done;A=D.next()){A=A.value;var C=l.getModuleInfo(A);!y[A]&&n(C)&&(y[A]=!0,HUy(l,C.deps_||[],U,n,y),U(C))}};var OU8=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var ABN=Symbol("Bd");window.JSCompiler_renameProperty=function(l){return l};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Vdm=!OU8||HTMLElement.es5Shimmed||_.nC.Reflect===void 0||_.nC.customElements===void 0||_.nC.customElements.polyfillWrapFlushCallback||!1,iY5,oUg=function(){var l=HTMLElement;if(Vdm)return l;if(iY5!==void 0)return iY5;var D=_.nC.Reflect,U=function(){return D.construct(l,[],this.constructor)};
U.prototype=l.prototype;U.prototype.constructor=U;U.es5Shimmed=!0;Object.setPrototypeOf(U,l);return iY5=U},lNH=!1;Vdm||lNH||(lNH=!0,_.nC.HTMLElement=oUg());/*

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 Pq$=/(url\()([^)]*)(\))/g,Cq$=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,hWN,R1;var l6=!window.ShadyDOM||!window.ShadyDOM.inUse,DQz=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),UQr=!window.customElements.polyfillWrapFlushCallback,nu7;if(nu7=l6&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var yj_=new CSSStyleSheet;yj_.replaceSync("");var Ajz=document.createElement("div");Ajz.attachShadow({mode:"open"});Ajz.shadowRoot.adoptedStyleSheets=[yj_];nu7=Ajz.shadowRoot.adoptedStyleSheets[0]===yj_}catch(l){nu7=!1}
var W27=nu7,BPk=window.Polymer&&window.Polymer.rootPath||gX3(document.baseURI||window.location.href),jn=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Mac=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,WT=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,CJy=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,i6=window.Polymer&&window.Polymer.legacyOptimizations||!1,AO=window.Polymer&&window.Polymer.legacyWarnings||!1,hs7=window.Polymer&&window.Polymer.syncInitialRender||
!1,o1=window.Polymer&&window.Polymer.legacyUndefined||!1,PJz=window.Polymer&&window.Polymer.orderedComputed||!1,iK=window.Polymer&&window.Polymer.removeNestedTemplates||!1,lK=window.Polymer&&window.Polymer.fastDomIf||!1,DW=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,bYy=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,gug=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var UI={},usk={},rm=function(){return HTMLElement.apply(this,arguments)||this};
_.Z(rm,HTMLElement);rm.import=function(l,D){return l?(l=UI[l]||usk[l.toLowerCase()])&&D?l.querySelector(D):l:null};
rm.prototype.attributeChangedCallback=function(l,D,U){D!==U&&this.register()};
rm.prototype.register=function(l){if(l=l||this.id){if(WT&&(UI[l]||usk[l.toLowerCase()])!==void 0)throw UI[l]=usk[l.toLowerCase()]=null,Error("Cd`"+l);this.id=l;UI[l]=usk[l.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.QP.Object.defineProperties(rm.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var l=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;l=_.Zm(this.getAttribute("assetpath")||"",l.baseURI);this.__assetpath=gX3(l)}return this.__assetpath}}});
_.QP.Object.defineProperties(rm,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
rm["import"]=rm.import;rm.prototype.modules=UI;customElements.define("dom-module",rm);var vuz=0,vXg=0,en=[],Qr8=0,uZN=!1,GY7=document.createTextNode(""),Jj1,O1;(new window.MutationObserver(Qz9)).observe(GY7,{characterData:!0});_.nn={after:function(l){return{run:function(D){return window.setTimeout(D,l)},
cancel:function(D){window.clearTimeout(D)}}},
run:function(l,D){return window.setTimeout(l,D)},
cancel:function(l){window.clearTimeout(l)}};
_.Je={run:function(l){return window.requestAnimationFrame(l)},
cancel:function(l){window.cancelAnimationFrame(l)}};
Jj1={run:function(l){return window.requestIdleCallback?window.requestIdleCallback(l):window.setTimeout(l,16)},
cancel:function(l){window.cancelIdleCallback?window.cancelIdleCallback(l):window.clearTimeout(l)}};
O1={run:function(l){uZN||(uZN=!0,GY7.textContent=Qr8++);en.push(l);return vuz++},
cancel:function(l){var D=l-vXg;if(D>=0){if(!en[D])throw Error("Dd`"+l);en[D]=null}}};var L2z=0,yb=function(l){var D=l.__mixinApplications;D||(D=new WeakMap,l.__mixinApplications=D);var U=L2z++;return function(n){var y=n.__mixinSet;if(y&&y[U])return n;var A=D,C=A.get(n);C||(C=l(n),A.set(n,C),n=Object.create(C.__mixinSet||y||null),n[U]=!0,C.__mixinSet=n);return C}};_.xY=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(l){return ShadyDOM.patch(l)}:function(l){return l};var ql8=yb(function(l){var D=function(){var U=l.call(this)||this;U.__dataEnabled=!1;U.__dataReady=!1;U.__dataInvalid=!1;U.__data={};U.__dataPending=null;U.__dataOld=null;U.__dataInstanceProps=null;U.__dataCounter=0;U.__serializing=!1;U._initializeProperties();return U};
_.Z(D,l);D.createProperties=function(U){var n=this.prototype,y;for(y in U)y in n||n._createPropertyAccessor(y)};
D.attributeNameForProperty=function(U){return U.toLowerCase()};
D.typeForProperty=function(){};
D.prototype._createPropertyAccessor=function(U,n){this._addPropertyToAttributeMap(U);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[U]||(this.__dataHasAccessor[U]=!0,this._definePropertyAccessor(U,n))};
D.prototype._addPropertyToAttributeMap=function(U){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var n=this.__dataAttributes[U];n||(n=this.constructor.attributeNameForProperty(U),this.__dataAttributes[n]=U);return n};
D.prototype._definePropertyAccessor=function(U,n){Object.defineProperty(this,U,{get:function(){return this.__data[U]},
set:n?function(){}:function(y){this._setPendingProperty(U,y,!0)&&this._invalidateProperties()}})};
D.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
D.prototype._initializeProperties=function(){for(var U in this.__dataHasAccessor)this.hasOwnProperty(U)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[U]=this[U],delete this[U])};
D.prototype._initializeInstanceProperties=function(U){Object.assign(this,U)};
D.prototype._setProperty=function(U,n){this._setPendingProperty(U,n)&&this._invalidateProperties()};
D.prototype._getProperty=function(U){return this.__data[U]};
D.prototype._setPendingProperty=function(U,n){var y=this.__data[U],A=this._shouldPropertyChange(U,n,y);A&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||U in this.__dataOld||(this.__dataOld[U]=y),this.__data[U]=n,this.__dataPending[U]=n);return A};
D.prototype._isPropertyPending=function(U){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(U))};
D.prototype._invalidateProperties=function(){var U=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,O1.run(function(){U.__dataInvalid&&(U.__dataInvalid=!1,U._flushProperties())}))};
D.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
D.prototype._flushProperties=function(){this.__dataCounter++;var U=this.__data,n=this.__dataPending,y=this.__dataOld;this._shouldPropertiesChange(U,n,y)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(U,n,y));this.__dataCounter--};
D.prototype._shouldPropertiesChange=function(U,n){return!!n};
D.prototype._propertiesChanged=function(){};
D.prototype._shouldPropertyChange=function(U,n,y){return y!==n&&(y===y||n===n)};
D.prototype.attributeChangedCallback=function(U,n,y,A){n!==y&&this._attributeToProperty(U,y);l.prototype.attributeChangedCallback&&l.prototype.attributeChangedCallback.call(this,U,n,y,A)};
D.prototype._attributeToProperty=function(U,n,y){if(!this.__serializing){var A=this.__dataAttributes;U=A&&A[U]||U;this[U]=this._deserializeValue(n,y||this.constructor.typeForProperty(U))}};
D.prototype._propertyToAttribute=function(U,n,y){this.__serializing=!0;y=arguments.length<3?this[U]:y;this._valueToNodeAttribute(this,y,n||this.constructor.attributeNameForProperty(U));this.__serializing=!1};
D.prototype._valueToNodeAttribute=function(U,n,y){n=this._serializeValue(n);if(y==="class"||y==="name"||y==="slot")U=(0,_.xY)(U);n===void 0?U.removeAttribute(y):U.setAttribute(y,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)};
D.prototype._serializeValue=function(U){switch(typeof U){case "boolean":return U?"":void 0;default:return U!=null?U.toString():void 0}};
D.prototype._deserializeValue=function(U,n){switch(n){case Boolean:return U!==null;case Number:return Number(U);default:return U}};
return D});var M07=0,GMC=[];var RsH=yb(function(l){function D(A){A=Object.getPrototypeOf(A);return A.prototype instanceof y?A:null}
function U(A){if(!A.hasOwnProperty("__ownProperties")){var C=null;if(A.hasOwnProperty("properties")){var h=A.properties;if(h){C={};for(var b in h){var u=h[b];C[b]=typeof u==="function"?{type:u}:u}}}A.__ownProperties=C}return A.__ownProperties}
var n=ql8(l),y=function(){return n.apply(this,arguments)||this};
_.Z(y,n);y.finalize=function(){if(!this.hasOwnProperty("__finalized")){var A=D(this);A&&A.finalize();this.__finalized=!0;this._finalizeClass()}};
y._finalizeClass=function(){var A=U(this);A&&this.createProperties(A)};
y.typeForProperty=function(A){return(A=this._properties[A])&&A.type};
y.prototype._initializeProperties=function(){M07++;this.constructor.finalize();n.prototype._initializeProperties.call(this)};
y.prototype.connectedCallback=function(){n.prototype.connectedCallback&&n.prototype.connectedCallback.call(this);this._enableProperties()};
y.prototype.disconnectedCallback=function(){n.prototype.disconnectedCallback&&n.prototype.disconnectedCallback.call(this)};
_.QP.Object.defineProperties(y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var A=this;if(!this.hasOwnProperty("__observedAttributes")){JBC(this.prototype);var C=this._properties;this.__observedAttributes=C?Object.keys(C).map(function(h){return A.prototype._addPropertyToAttributeMap(h)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var A=D(this);this.__properties=Object.assign({},A&&A._properties,U(this))}return this.__properties}}});
return y});var LG9={},qrc=/-[a-z]/g,Mt9=/([A-Z])/g;for(var ZYg={},es_=HTMLElement.prototype;es_;){for(var mQk=Object.getOwnPropertyNames(es_),aN5=0;aN5<mQk.length;aN5++)ZYg[mQk[aN5]]=!0;es_=Object.getPrototypeOf(es_)}var t0k=window.trustedTypes?function(l){return trustedTypes.isHTML(l)||trustedTypes.isScript(l)||trustedTypes.isScriptURL(l)}:function(){return!1},Xg8=yb(function(l){var D=ql8(l);
l=function(){return D.apply(this,arguments)||this};
_.Z(l,D);l.createPropertiesForAttributes=function(){for(var U=this.observedAttributes,n=0;n<U.length;n++)this.prototype._createPropertyAccessor(mE(U[n]))};
l.attributeNameForProperty=function(U){return a1(U)};
l.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);D.prototype._initializeProperties.call(this)};
l.prototype._initializeProtoProperties=function(U){for(var n in U)this._setProperty(n,U[n])};
l.prototype._ensureAttribute=function(U,n){this.hasAttribute(U)||this._valueToNodeAttribute(this,n,U)};
l.prototype._serializeValue=function(U){switch(typeof U){case "object":if(U instanceof Date)return U.toString();if(U){if(t0k(U))return U;try{return JSON.stringify(U)}catch(n){return""}}default:return D.prototype._serializeValue.call(this,U)}};
l.prototype._deserializeValue=function(U,n){switch(n){case Object:try{var y=JSON.parse(U)}catch(A){y=U}break;case Array:try{y=JSON.parse(U)}catch(A){y=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+U)}break;case Date:y=isNaN(U)?String(U):Number(U);y=new Date(y);break;default:y=D.prototype._deserializeValue.call(this,U,n)}return y};
l.prototype._definePropertyAccessor=function(U,n){if(!ZYg[U]){var y=this[U];y!==void 0&&(this.__data?this._setPendingProperty(U,y):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[U]=y))}D.prototype._definePropertyAccessor.call(this,U,n)};
l.prototype._hasAccessor=function(U){return this.__dataHasAccessor&&this.__dataHasAccessor[U]};
l.prototype._isPropertyPending=function(U){return!!(this.__dataPending&&U in this.__dataPending)};
return l});var Slz={"dom-if":!0,"dom-repeat":!0},kY_=!1,dQ5=!1,K2h=function(){var l=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(D){return D}});
return function(D,U,n){U=U.getAttribute(n);l&&n.startsWith("on-")?D.setAttribute(n,l.createScript(U,n)):D.setAttribute(n,U)}}(),cjH=yb(function(l){var D=function(){return l.apply(this,arguments)||this};
_.Z(D,l);D._parseTemplate=function(U,n){if(!U._templateInfo){var y=U._templateInfo={};y.nodeInfoList=[];y.nestedTemplate=!!n;y.stripWhiteSpace=n&&n.stripWhiteSpace||U.hasAttribute&&U.hasAttribute("strip-whitespace");this._parseTemplateContent(U,y,{parent:null})}return U._templateInfo};
D._parseTemplateContent=function(U,n,y){return this._parseTemplateNode(U.content,n,y)};
D._parseTemplateNode=function(U,n,y){var A=!1;U.localName!="template"||U.hasAttribute("preserve-content")?U.localName==="slot"&&(n.hasInsertionPoint=!0):A=this._parseTemplateNestedTemplate(U,n,y)||A;if(!kY_){kY_=!0;var C=document.createElement("textarea");C.placeholder="a";dQ5=C.placeholder===C.textContent}dQ5&&U.localName==="textarea"&&U.placeholder&&U.placeholder===U.textContent&&(U.textContent=null);U.firstChild&&this._parseTemplateChildNodes(U,n,y);U.hasAttributes&&U.hasAttributes()&&(A=this._parseTemplateNodeAttributes(U,
n,y)||A);return A||y.noted};
D._parseTemplateChildNodes=function(U,n,y){if(U.localName!=="script"&&U.localName!=="style")for(var A=U.firstChild,C=0,h;A;A=h){if(A.localName=="template"){var b=A.getAttribute("is");if(b&&Slz[b])for(h=A,h.removeAttribute("is"),A=h.ownerDocument.createElement(b),h.parentNode.replaceChild(A,h),A.appendChild(h);h.attributes.length;)b=h.attributes[0].name,K2h(A,h,b),h.removeAttribute(b)}h=A.nextSibling;if(A.nodeType===Node.TEXT_NODE){for(b=h;b&&b.nodeType===Node.TEXT_NODE;)A.textContent+=b.textContent,
h=b.nextSibling,U.removeChild(b),b=h;if(n.stripWhiteSpace&&!A.textContent.trim()){U.removeChild(A);continue}}b={parentIndex:C,parentInfo:y};this._parseTemplateNode(A,n,b)&&(b.infoIndex=n.nodeInfoList.push(b)-1);A.parentNode&&C++}};
D._parseTemplateNestedTemplate=function(U,n,y){n=this._parseTemplate(U,n);(n.content=U.content.ownerDocument.createDocumentFragment()).appendChild(U.content);y.templateInfo=n;return!0};
D._parseTemplateNodeAttributes=function(U,n,y){for(var A=!1,C=Array.from(U.attributes),h=C.length-1,b;b=C[h];h--)A=this._parseTemplateNodeAttribute(U,n,y,b.name,b.value)||A;return A};
D._parseTemplateNodeAttribute=function(U,n,y,A,C){return A.slice(0,3)==="on-"?(U.removeAttribute(A),y.events=y.events||[],y.events.push({name:A.slice(3),value:C}),!0):A==="id"?(y.id=C,!0):!1};
D._contentForTemplate=function(U){var n=U._templateInfo;return n&&n.content||U.content};
D.prototype._stampTemplate=function(U,n){U&&!U.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(U);n=n||this.constructor._parseTemplate(U);var y=n.nodeInfoList;U=document.importNode(n.content||U.content,!0);U.__noInsertionPoint=!n.hasInsertionPoint;var A=U.nodeList=Array(y.length);U.$={};for(var C=0,h=y.length,b=void 0;C<h&&(b=y[C]);C++){var u=A[C]=RWl(U,b);b.id&&(U.$[b.id]=u);var Q=u,G=b,J=n;G.templateInfo&&(Q._templateInfo=G.templateInfo,Q._parentTemplateInfo=
J);if(b.events&&b.events.length)for(Q=0,G=b.events,J=void 0;Q<G.length&&(J=G[Q]);Q++)this._addMethodEventListenerToNode(u,J.name,J.value,this)}return U};
D.prototype._addMethodEventListenerToNode=function(U,n,y,A){y=Z4G(A||U,y);this._addEventListenerToNode(U,n,y);return y};
D.prototype._addEventListenerToNode=function(U,n,y){U.addEventListener(n,y)};
D.prototype._removeEventListenerFromNode=function(U,n,y){U.removeEventListener(n,y)};
return D});var cd=0,Fb=[],pgg={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},xQ7=/[A-Z]/,jr1=function(l,D,U,n,y){var A=y?Xb(l):l;if(D=D[A])for(A=0;A<D.length;A++){var C=D[A];if(C.info.lastRun!==cd&&(!y||SrB(l,C.trigger))){C.info.lastRun=cd;C=C.info;for(var h=U,b=n,u=0,Q=h.length-1,G=-1;u<=Q;){var J=u+Q>>1,L=b.get(h[J].methodInfo)-b.get(C.methodInfo);if(L<0)u=J+1;else if(L>0)Q=J-1;else{G=J;break}}G<
0&&(G=Q+1);h.splice(G,0,C)}}},NkB=[],F25=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"),Wz=yb(function(l){var D=cjH(Xg8(l));
l=function(){var U=D.call(this)||this;U.__isPropertyEffectsClient=!0;return U};
_.Z(l,D);l.prototype._initializeProperties=function(){D.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};
l.prototype._registerHost=function(){if(AV.length){var U=AV[AV.length-1];U._enqueueClient(this);this.__dataHost=U}};
l.prototype._initializeProtoProperties=function(U){this.__data=Object.create(U);this.__dataPending=Object.create(U);this.__dataOld={}};
l.prototype._initializeInstanceProperties=function(U){var n=this.__readOnly,y;for(y in U)n&&n[y]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[y]=this.__dataPending[y]=U[y])};
l.prototype._addPropertyEffect=function(U,n,y){this._createPropertyAccessor(U,n=="__readOnly");var A=XFC(this,n,!0)[U];A||(A=this[n][U]=[]);A.push(y)};
l.prototype._removePropertyEffect=function(U,n,y){U=XFC(this,n,!0)[U];y=U.indexOf(y);y>=0&&U.splice(y,1)};
l.prototype._hasPropertyEffect=function(U,n){n=this[n];return!(!n||!n[U])};
l.prototype._hasReadOnlyEffect=function(U){return this._hasPropertyEffect(U,"__readOnly")};
l.prototype._hasNotifyEffect=function(U){return this._hasPropertyEffect(U,"__notifyEffects")};
l.prototype._hasReflectEffect=function(U){return this._hasPropertyEffect(U,"__reflectEffects")};
l.prototype._hasComputedEffect=function(U){return this._hasPropertyEffect(U,"__computeEffects")};
l.prototype._setPendingPropertyOrPath=function(U,n,y,A){if(A||Xb(Array.isArray(U)?U[0]:U)!==U){if(!A&&(A=KA(this,U),U=ttc(this,U,n),!U||!D.prototype._shouldPropertyChange.call(this,U,n,A)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(U,n,y)){if(y=this.__dataLinkedPaths)for(var C in y)A=y[C],Sn(C,U)?(A=kY(C,A,U),this._setPendingPropertyOrPath(A,n,!0,!0)):Sn(A,U)&&(A=kY(A,C,U),this._setPendingPropertyOrPath(A,n,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[U])return this._setPendingProperty(U,
n,y);this[U]=n}return!1};
l.prototype._setUnmanagedPropertyToNode=function(U,n,y){if(y!==U[n]||typeof y=="object")n==="className"&&(U=(0,_.xY)(U)),U[n]=y};
l.prototype._setPendingProperty=function(U,n,y){var A=this.__dataHasPaths&&tH(U);if(this._shouldPropertyChange(U,n,(A?this.__dataTemp:this.__data)[U])){this.__dataPending||(this.__dataPending={},this.__dataOld={});U in this.__dataOld||(this.__dataOld[U]=this.__data[U]);A?this.__dataTemp[U]=n:this.__data[U]=n;this.__dataPending[U]=n;if(A||this.__notifyEffects&&this.__notifyEffects[U])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[U]=y;return!0}return!1};
l.prototype._setProperty=function(U,n){this._setPendingProperty(U,n,!0)&&this._invalidateProperties()};
l.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
l.prototype._enqueueClient=function(U){this.__dataPendingClients=this.__dataPendingClients||[];U!==this&&this.__dataPendingClients.push(U)};
l.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
l.prototype.__enableOrFlushClients=function(){var U=this.__dataPendingClients;if(U){this.__dataPendingClients=null;for(var n=0;n<U.length;n++){var y=U[n];y.__dataEnabled?y.__dataPending&&y._flushProperties():y._enableProperties()}}};
l.prototype._readyClients=function(){this.__enableOrFlushClients()};
l.prototype.setProperties=function(U,n){for(var y in U)!n&&this.__readOnly&&this.__readOnly[y]||this._setPendingPropertyOrPath(y,U[y],!0);this._invalidateProperties()};
l.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
l.prototype._propertiesChanged=function(U,n,y){U=this.__dataHasPaths;this.__dataHasPaths=!1;var A;if(A=this.__computeEffects)if(PJz){cd++;var C=xd$(this),h=[],b;for(b in n)jr1(b,A,h,C,U);for(;b=h.shift();)FGG(this,"",n,y,b)&&jr1(b.methodInfo,A,h,C,U);Object.assign(y,this.__dataOld);Object.assign(n,this.__dataPending);this.__dataPending=null}else for(C=n;pA(this,A,C,y,U);)Object.assign(y,this.__dataOld),Object.assign(n,this.__dataPending),C=this.__dataPending,this.__dataPending=null;A=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(n,y,U);this._flushClients();pA(this,this.__reflectEffects,n,y,U);pA(this,this.__observeEffects,n,y,U);if(A){C=this.__notifyEffects;h=cd++;for(var u in A)if(A[u]){if(b=C){var Q=C;b=h;var G=u,J=n,L=y,R=U,a=!1,S=R?Xb(G):G;if(Q=Q[S]){S=0;for(var d=Q.length,c=void 0;S<d&&(c=Q[S]);S++)c.info&&c.info.lastRun===b||R&&!SrB(G,c.trigger)||(c.info&&(c.info.lastRun=b),c.fn(this,G,J,L,c.info,R,void 0),a=!0)}b=a}if(b)var N=!0;else{if(b=U)b=u,G=n,J=Xb(b),J!==
b?(J=a1(J)+"-changed",ddB(this,J,G[b],b),b=!0):b=!1;b&&(N=!0)}}var z;N&&(z=this.__dataHost)&&z._invalidateProperties&&z._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
l.prototype._propagatePropertyChanges=function(U,n,y){this.__propagateEffects&&pA(this,this.__propagateEffects,U,n,y);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,U,n,y)};
l.prototype._runEffectsForTemplate=function(U,n,y,A){var C=this,h=function(b,u){pA(C,U.propertyEffects,b,y,u,U.nodeList);for(var Q=U.firstChild;Q;Q=Q.nextSibling)C._runEffectsForTemplate(Q,b,y,u)};
U.runEffects?U.runEffects(h,n,A):h(n,A)};
l.prototype.linkPaths=function(U,n){U=dm(U);n=dm(n);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[U]=n};
l.prototype.unlinkPaths=function(U){U=dm(U);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[U]};
l.prototype.notifySplices=function(U,n){var y={path:""};U=KA(this,U,y);If3(this,U,y.path,n)};
l.prototype.get=function(U,n){return KA(n||this,U)};
l.prototype.set=function(U,n,y){y?ttc(y,U,n):this.__readOnly&&this.__readOnly[U]||this._setPendingPropertyOrPath(U,n,!0)&&this._invalidateProperties()};
l.prototype.push=function(U){var n=_.EW.apply(1,arguments),y={path:""},A=KA(this,U,y),C=A.length,h=A.push.apply(A,_.zz(n));n.length&&wm(this,A,y.path,C,n.length,[]);return h};
l.prototype.pop=function(U){var n={path:""};U=KA(this,U,n);var y=!!U.length,A=U.pop();y&&wm(this,U,n.path,U.length,0,[A]);return A};
l.prototype.splice=function(U,n,y){var A=_.EW.apply(3,arguments),C={path:""},h=KA(this,U,C);n<0?n=h.length-Math.floor(-n):n&&(n=Math.floor(n));var b=arguments.length===2?h.splice(n):h.splice.apply(h,[n,y].concat(_.zz(A)));(A.length||b.length)&&wm(this,h,C.path,n,A.length,b);return b};
l.prototype.shift=function(U){var n={path:""};U=KA(this,U,n);var y=!!U.length,A=U.shift();y&&wm(this,U,n.path,0,0,[A]);return A};
l.prototype.unshift=function(U){var n=_.EW.apply(1,arguments),y={path:""},A=KA(this,U,y),C=A.unshift.apply(A,_.zz(n));n.length&&wm(this,A,y.path,0,n.length,[]);return C};
l.prototype.notifyPath=function(U,n){if(arguments.length==1){var y={path:""};n=KA(this,U,y);y=y.path}else y=Array.isArray(U)?dm(U):U;this._setPendingPropertyOrPath(y,n,!0,!0)&&this._invalidateProperties()};
l.prototype._createReadOnlyProperty=function(U,n){this._addPropertyEffect(U,"__readOnly");n&&(this["_set"+(U[0].toUpperCase()+U.substring(1))]=function(y){this._setProperty(U,y)})};
l.prototype._createPropertyObserver=function(U,n,y){var A={property:U,method:n,dynamicFn:!!y};this._addPropertyEffect(U,"__observeEffects",{fn:kMK,info:A,trigger:{name:U}});y&&this._addPropertyEffect(n,"__observeEffects",{fn:kMK,info:A,trigger:{name:n}})};
l.prototype._createMethodObserver=function(U,n){var y=EX$(U);if(!y)throw Error("Ed`"+U);ff3(this,y,"__observeEffects",jzo,null,n)};
l.prototype._createNotifyingProperty=function(U){this._addPropertyEffect(U,"__notifyEffects",{fn:KGC,info:{eventName:a1(U)+"-changed",property:U}})};
l.prototype._createReflectedProperty=function(U){var n=this.constructor.attributeNameForProperty(U);n[0]==="-"?console.warn("Property "+U+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(U,"__reflectEffects",{fn:cBs,info:{attrName:n}})};
l.prototype._createComputedProperty=function(U,n,y){var A=EX$(n);if(!A)throw Error("Fd`"+n);n=ff3(this,A,"__computeEffects",FGG,U,y);XFC(this,"__computeInfo")[U]=n};
l.prototype._marshalArgs=function(U,n,y){for(var A=this.__data,C=[],h=0,b=U.length;h<b;h++){var u=U[h],Q=u.name,G=u.structured,J=u.wildcard,L=u.value;u.literal||(J?(u=Sn(Q,n),G=Tkc(A,y,u?n:Q),L={path:u?n:Q,value:G,base:u?KA(A,Q):G}):L=G?Tkc(A,y,Q):A[Q]);if(o1&&!this._overrideLegacyUndefined&&L===void 0&&U.length>1)return Fb;C[h]=L}return C};
l.addPropertyEffect=function(U,n,y){this.prototype._addPropertyEffect(U,n,y)};
l.createPropertyObserver=function(U,n,y){this.prototype._createPropertyObserver(U,n,y)};
l.createMethodObserver=function(U,n){this.prototype._createMethodObserver(U,n)};
l.createNotifyingProperty=function(U){this.prototype._createNotifyingProperty(U)};
l.createReadOnlyProperty=function(U,n){this.prototype._createReadOnlyProperty(U,n)};
l.createReflectedProperty=function(U){this.prototype._createReflectedProperty(U)};
l.createComputedProperty=function(U,n,y){this.prototype._createComputedProperty(U,n,y)};
l.bindTemplate=function(U){return this.prototype._bindTemplate(U)};
l.prototype._bindTemplate=function(U,n){var y=this.constructor._parseTemplate(U),A=this.__preBoundTemplateInfo==y;if(!A)for(var C in y.propertyEffects)this._createPropertyAccessor(C);n?(y=Object.create(y),y.wasPreBound=A,this.__templateInfo?(U=U._parentTemplateInfo||this.__templateInfo,n=U.lastChild,y.parent=U,U.lastChild=y,(y.previousSibling=n)?n.nextSibling=y:U.firstChild=y):this.__templateInfo=y):this.__preBoundTemplateInfo=y;return y};
l._addTemplatePropertyEffect=function(U,n,y){(U.hostProps=U.hostProps||{})[n]=!0;U=U.propertyEffects=U.propertyEffects||{};(U[n]=U[n]||[]).push(y)};
l.prototype._stampTemplate=function(U,n){n=n||this._bindTemplate(U,!0);AV.push(this);U=D.prototype._stampTemplate.call(this,U,n);AV.pop();n.nodeList=U.nodeList;if(!n.wasPreBound)for(var y=n.childNodes=[],A=U.firstChild;A;A=A.nextSibling)y.push(A);U.templateInfo=n;y=n.nodeList;A=n.nodeInfoList;if(A.length)for(var C=0;C<A.length;C++){var h=y[C],b=A[C].bindings;if(b)for(var u=0;u<b.length;u++){var Q=b[u],G=h,J=Q;if(J.isCompound){for(var L=G.__dataCompoundStorage||(G.__dataCompoundStorage={}),R=J.parts,
a=Array(R.length),S=0;S<R.length;S++)a[S]=R[S].literal;R=J.target;L[R]=a;J.literal&&J.kind=="property"&&(R==="className"&&(G=(0,_.xY)(G)),G[R]=J.literal)}zW9(h,this,Q)}h.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients());return U};
l.prototype._removeBoundDom=function(U){U=U.templateInfo;var n=U.previousSibling,y=U.nextSibling,A=U.parent;n?n.nextSibling=y:A&&(A.firstChild=y);y?y.previousSibling=n:A&&(A.lastChild=n);U.nextSibling=U.previousSibling=null;U=U.childNodes;for(n=0;n<U.length;n++)y=U[n],(0,_.xY)((0,_.xY)(y).parentNode).removeChild(y)};
l._parseTemplateNode=function(U,n,y){var A=D._parseTemplateNode.call(this,U,n,y);if(U.nodeType===Node.TEXT_NODE){var C=this._parseBindings(U.textContent,n);C&&(U.textContent=$d9(C)||" ",rBl(this,n,y,"text","textContent",C),A=!0)}return A};
l._parseTemplateNodeAttribute=function(U,n,y,A,C){var h=this._parseBindings(C,n);if(h){C=A;var b="property";xQ7.test(A)?b="attribute":A[A.length-1]=="$"&&(A=A.slice(0,-1),b="attribute");var u=$d9(h);u&&b=="attribute"&&(A=="class"&&U.hasAttribute("class")&&(u+=" "+U.getAttribute(A)),U.setAttribute(A,u));b=="attribute"&&C=="disable-upgrade$"&&U.setAttribute(A,"");U.localName==="input"&&C==="value"&&U.setAttribute(C,"");U.removeAttribute(C);b==="property"&&(A=mE(A));rBl(this,n,y,b,A,h,u);return!0}return D._parseTemplateNodeAttribute.call(this,
U,n,y,A,C)};
l._parseTemplateNestedTemplate=function(U,n,y){var A=D._parseTemplateNestedTemplate.call(this,U,n,y),C=U.parentNode,h=y.templateInfo,b=C.localName==="dom-if",u=C.localName==="dom-repeat";iK&&(b||u)&&(C.removeChild(U),y=y.parentInfo,y.templateInfo=h,y.noted=!0,A=!1);U=h.hostProps;if(lK&&b)U&&(n.hostProps=Object.assign(n.hostProps||{},U),iK||(y.parentInfo.noted=!0));else for(var Q in U)rBl(this,n,y,"property","_host_"+Q,[{mode:"{",source:Q,dependencies:[Q],hostProp:!0}]);return A};
l._parseBindings=function(U,n){for(var y=[],A=0,C;(C=F25.exec(U))!==null;){C.index>A&&y.push({literal:U.slice(A,C.index)});A=C[1][0];var h=!!C[2];C=C[3].trim();var b=!1,u="",Q=-1;A=="{"&&(Q=C.indexOf("::"))>0&&(u=C.substring(Q+2),C=C.substring(0,Q),b=!0);Q=EX$(C);var G=[];if(Q){var J=Q,L=J.args;J=J.methodName;for(var R=0;R<L.length;R++){var a=L[R];a.literal||G.push(a)}if((L=n.dynamicFns)&&L[J]||Q.static)G.push(J),Q.dynamicFn=!0}else G.push(C);y.push({source:C,mode:A,negate:h,customEvent:b,signature:Q,
dependencies:G,event:u});A=F25.lastIndex}A&&A<U.length&&(U=U.substring(A))&&y.push({literal:U});return y.length?y:null};
l._evaluateBinding=function(U,n,y,A,C,h){U=n.signature?jzo(U,y,A,C,n.signature):y!=n.source?KA(U,n.source):h&&tH(y)?KA(U,y):U.__data[y];n.negate&&(U=!U);return U};
_.QP.Object.defineProperties(l.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return pgg}}});
return l}),AV=[];var ou1=window.ShadyCSS&&window.ShadyCSS.cssBuild,Bz=yb(function(l){function D(n,y,A,C){if(!ou1){for(var h=y.content.querySelectorAll("style"),b=Vts(y),u=iE_(A),Q=y.content.firstElementChild,G=0;G<u.length;G++){var J=u[G];J.textContent=n._processStyleText(J.textContent,C);y.content.insertBefore(J,Q)}for(Q=u=0;Q<b.length;Q++)G=b[Q],J=h[u],J!==G?(G=G.cloneNode(!0),J.parentNode.insertBefore(G,J)):u++,G.textContent=n._processStyleText(G.textContent,C)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(y,
A);if(gug&&ou1&&W27&&(y=y.content.querySelectorAll("style"))){var L="";Array.from(y).forEach(function(R){L+=R.textContent;R.parentNode.removeChild(R)});
n._styleSheet=new CSSStyleSheet;n._styleSheet.replaceSync(L)}}
var U=RsH(Wz(l));l=function(){return U.call(this)||this};
_.Z(l,U);l._finalizeClass=function(){U._finalizeClass.call(this);var n;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(n=this.__ownObservers)&&this.createObservers(n,this._properties);this._prepareTemplate()};
l._prepareTemplate=function(){var n=this.template;n&&(typeof n==="string"?(console.error("template getter must return HTMLTemplateElement"),n=null):i6||(n=n.cloneNode(!0)));this.prototype._template=n};
l.createProperties=function(n){for(var y in n){var A=this.prototype,C=y,h=n[y],b=n;h.computed&&(h.readOnly=!0);h.computed&&(A._hasReadOnlyEffect(C)?console.warn("Cannot redefine computed property '"+C+"'."):A._createComputedProperty(C,h.computed,b));h.readOnly&&!A._hasReadOnlyEffect(C)?A._createReadOnlyProperty(C,!h.computed):h.readOnly===!1&&A._hasReadOnlyEffect(C)&&console.warn("Cannot make readOnly property '"+C+"' non-readOnly.");h.reflectToAttribute&&!A._hasReflectEffect(C)?A._createReflectedProperty(C):
h.reflectToAttribute===!1&&A._hasReflectEffect(C)&&console.warn("Cannot make reflected property '"+C+"' non-reflected.");h.notify&&!A._hasNotifyEffect(C)?A._createNotifyingProperty(C):h.notify===!1&&A._hasNotifyEffect(C)&&console.warn("Cannot make notify property '"+C+"' non-notify.");h.observer&&A._createPropertyObserver(C,h.observer,b[h.observer]);A._addPropertyToAttributeMap(C)}};
l.createObservers=function(n,y){for(var A=this.prototype,C=0;C<n.length;C++)A._createMethodObserver(n[C],y)};
l.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);U.prototype._initializeProperties.call(this);this.rootPath=BPk;this.importPath=this.constructor.importPath;var n=this.constructor;if(!n.hasOwnProperty("__propertyDefaults")){n.__propertyDefaults=null;var y=n._properties,A;for(A in y){var C=y[A];"value"in C&&(n.__propertyDefaults=n.__propertyDefaults||{},n.__propertyDefaults[A]=C)}}if(n=n.__propertyDefaults)for(var h in n)y=n[h],
this._canApplyPropertyDefault(h)&&(y=typeof y.value=="function"?y.value.call(this):y.value,this._hasAccessor(h)?this._setPendingProperty(h,y,!0):this[h]=y)};
l.prototype._canApplyPropertyDefault=function(n){return!this.hasOwnProperty(n)};
l._processStyleText=function(n,y){return b4C(n,y)};
l._finalizeTemplate=function(n){var y=this.prototype._template;if(y&&!y.__polymerFinalized){y.__polymerFinalized=!0;var A=this.importPath;A=A?_.Zm(A):"";D(this,y,n,A);this.prototype._bindTemplate(y)}};
l.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);U.prototype.connectedCallback.call(this)};
l.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);U.prototype.ready.call(this)};
l.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));U.prototype._readyClients.call(this)};
l.prototype._attachDom=function(n){var y=(0,_.xY)(this);if(y.attachShadow)return n?(y.shadowRoot||(y.attachShadow({mode:"open",shadyUpgradeFragment:n}),y.shadowRoot.appendChild(n),this.constructor._styleSheet&&(y.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),hs7&&window.ShadyDOM&&window.ShadyDOM.flushInitial(y.shadowRoot),y.shadowRoot):null;throw Error("Hd");};
l.prototype.updateStyles=function(n){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,n)};
l.prototype.resolveUrl=function(n,y){!y&&this.importPath&&(y=_.Zm(this.importPath));return _.Zm(n,y)};
l._parseTemplateContent=function(n,y,A){y.dynamicFns=y.dynamicFns||this._properties;return U._parseTemplateContent.call(this,n,y,A)};
l._addTemplatePropertyEffect=function(n,y,A){!AO||y in this._properties||A.info.part.signature&&A.info.part.signature.static||A.info.part.hostProp||n.nestedTemplate||console.warn("Property '"+y+"' used in template but not declared in 'properties'; attribute will not be observed.");return U._addTemplatePropertyEffect.call(this,n,y,A)};
_.QP.Object.defineProperties(l,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var n=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof n==="function"&&(n=n());if(n===void 0){if(n=this.hasOwnProperty("is")){n=this.is;var y=null;if(n&&(!WT||CJy)&&(y=rm.import(n,"template"),WT&&!y))throw Error("Gd`"+n);n=y}n=n||Object.getPrototypeOf(this.prototype).constructor.template}this._template=n}return this._template},
set:function(n){this._template=n}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var n=this.importMeta;n?this._importPath=gX3(n.url):this._importPath=(n=rm.import(this.is))&&n.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return l});var wgz=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(l){return l}}),WC9=function(l,D){rj_(l,D);
this.value=D.reduce(function(U,n,y){return U+BLo(n)+l[y+1]},l[0]).toString()},rj_;
WC9.prototype.toString=function(){return this.value};
_.zs7=function(l){var D=_.EW.apply(1,arguments);rj_(l,D);var U=document.createElement("template");D=D.reduce(function(n,y,A){if(y instanceof HTMLTemplateElement)y=y.innerHTML;else if(y instanceof WC9)y=BLo(y);else throw Error("Jd`"+y);return n+y+l[A+1]},l[0]);
wgz&&(D=wgz.createHTML(D));U.innerHTML=D;return U};
rj_=function(l,D){if(!Array.isArray(l)||!Array.isArray(l.raw)||D.length!==l.length-1)throw new TypeError("Kd");};var Cn=Bz(HTMLElement);var fN1=yb(function(l){var D=Bz(l);l=function(){var U=D.call(this)||this;U.__lastItems=null;U.__lastMulti=null;U.__selectedMap=null;return U};
_.Z(l,D);l.prototype.__updateSelection=function(U,n){var y=n.path;y=="items"?(n=n.base||[],y=this.__lastItems,U!==this.__lastMulti&&this.clearSelection(),y&&(y=ASG(n,y),this.__applySplices(y)),this.__lastItems=n,this.__lastMulti=U):n.path=="items.splices"?this.__applySplices(n.value.indexSplices):(U=y.slice(6),n=parseInt(U,10),U.indexOf(".")<0&&U==n&&this.__deselectChangedIdx(n))};
l.prototype.__applySplices=function(U){for(var n=this,y=this.__selectedMap,A={},C=0;C<U.length;A={s$jscomp$109:void 0},C++){A.s$jscomp$109=U[C];y.forEach(function(Q){return function(G,J){G<Q.s$jscomp$109.index||(G>=Q.s$jscomp$109.index+Q.s$jscomp$109.removed.length?y.set(J,G+Q.s$jscomp$109.addedCount-Q.s$jscomp$109.removed.length):y.set(J,-1))}}(A));
for(var h=0;h<A.s$jscomp$109.addedCount;h++){var b=A.s$jscomp$109.index+h;y.has(this.items[b])&&y.set(this.items[b],b)}}this.__updateLinks();var u=0;y.forEach(function(Q,G){Q<0?(n.multi?n.splice("selected",u,1):n.selected=n.selectedItem=null,y.delete(G)):u++})};
l.prototype.__updateLinks=function(){var U=this;this.__dataLinkedPaths={};if(this.multi){var n=0;this.__selectedMap.forEach(function(y){y>=0&&U.linkPaths("items."+y,"selected."+n++)})}else this.__selectedMap.forEach(function(y){U.linkPaths("selected","items."+y);
U.linkPaths("selectedItem","items."+y)})};
l.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
l.prototype.isSelected=function(U){return this.__selectedMap.has(U)};
l.prototype.isIndexSelected=function(U){return this.isSelected(this.items[U])};
l.prototype.__deselectChangedIdx=function(U){var n=this,y=this.__selectedIndexForItemIndex(U);if(y>=0){var A=0;this.__selectedMap.forEach(function(C,h){y==A++&&n.deselect(h)})}};
l.prototype.__selectedIndexForItemIndex=function(U){if(U=this.__dataLinkedPaths["items."+U])return parseInt(U.slice(9),10)};
l.prototype.deselect=function(U){var n=this.__selectedMap.get(U);if(n>=0){this.__selectedMap.delete(U);var y;this.multi&&(y=this.__selectedIndexForItemIndex(n));this.__updateLinks();this.multi?this.splice("selected",y,1):this.selected=this.selectedItem=null}};
l.prototype.deselectIndex=function(U){this.deselect(this.items[U])};
l.prototype.select=function(U){this.selectIndex(this.items.indexOf(U))};
l.prototype.selectIndex=function(U){var n=this.items[U];this.isSelected(n)?this.toggle&&this.deselectIndex(U):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(n,U),this.__updateLinks(),this.multi?this.push("selected",n):this.selected=this.selectedItem=n)};
_.QP.Object.defineProperties(l,{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 l}),$QH=fN1(Cn),hV=function(){return $QH.apply(this,arguments)||this};
_.Z(hV,$QH);_.QP.Object.defineProperties(hV,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(hV.is,hV);var NP1=window.Polymer;window.Polymer=function(l){return window.Polymer._polymerFn(l)};
NP1&&Object.assign(Polymer,NP1);Polymer._polymerFn=function(){throw Error("Ld");};/*

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:b4C,resolveUrl:_.Zm,pathFromUrl:gX3};Polymer.DomModule=rm;Polymer.Async={timeOut:_.nn,animationFrame:_.Je,idlePeriod:Jj1,microTask:O1};Polymer.dedupingMixin=yb;Polymer.wrap=_.xY;Polymer.PropertiesChanged=ql8;Polymer.telemetry={instanceCount:M07,incrementInstanceCount:function(){M07++},
registrations:GMC,register:JBC,dumpRegistrations:function(){GMC.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=RsH;Polymer.CaseMap={dashToCamelCase:mE,camelToDashCase:a1};Polymer.PropertyAccessors=Xg8;Polymer.TemplateStamp=cjH;Polymer.Path={isPath:tH,root:Xb,isAncestor:eWc,isDescendant:Sn,translate:kY,matches:mdc,normalize:dm,split:afC,get:KA,set:ttc,isDeep:tH};Polymer.Settings={useShadow:l6,useNativeCSSProperties:DQz,useNativeCustomElements:UQr,get rootPath(){return BPk},setRootPath:function(l){BPk=l},
get sanitizeDOMValue(){return jn},setSanitizeDOMValue:function(l){jn=l},
get passiveTouchGestures(){return Mac},setPassiveTouchGestures:function(l){Mac=l},
get strictTemplatePolicy(){return WT},setStrictTemplatePolicy:function(l){WT=l},
get allowTemplateFromDomModule(){return CJy},setAllowTemplateFromDomModule:function(l){CJy=l},
get legacyOptimizations(){return i6},setLegacyOptimizations:function(l){i6=l},
get syncInitialRender(){return hs7},setSyncInitialRender:function(l){hs7=l},
get legacyUndefined(){return o1},setLegacyUndefined:function(l){o1=l},
get legacyWarnings(){return AO},setLegacyWarnings:function(l){AO=l},
get orderedComputed(){return PJz},setOrderedComputed:function(l){PJz=l},
get fastDomIf(){return lK},setFastDomIf:function(l){lK=l},
get removeNestedTemplates(){return iK},setRemoveNestedTemplates:function(l){iK=l},
get suppressTemplateNotifications(){return DW},setSuppressTemplateNotifications:DW};Polymer.rootPath!==void 0&&(BPk=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(jn=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Mac=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(WT=Polymer.strictTemplatePolicy);CJy=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(i6=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(hs7=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(o1=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(AO=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(PJz=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(lK=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(iK=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(DW=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return jn},
set:function(l){jn=l}});Polymer.PropertyEffects=Wz;Polymer.StyleGather={stylesFromModules:O4_,stylesFromModule:Yrl,stylesFromTemplate:Vts,stylesFromModuleImports:iE_,cssFromModules:D9c,cssFromModule:lL$,cssFromTemplate:U9B,cssFromModuleImports:function(l){return(l=rm.import(l))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l):""}};Polymer.ElementMixin=Bz;Polymer.updateStyles=function(l){window.ShadyCSS&&window.ShadyCSS.styleDocument(l)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:ASG};Polymer.html=_.zs7;Polymer.htmlLiteral=function(l){return new WC9(l,_.EW.apply(1,arguments))};Polymer.Element=Cn;Polymer.ArraySelectorMixin=fN1;Polymer.ArraySelector=hV;var sr1=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Eum=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,zM9=/@media\s(.*)/;var bE9=null,PDs=window.HTMLImports&&window.HTMLImports.whenReady||null,gqo;var TPh=null,Pz=null,bK=function(){this.customStyles=[];this.enqueued=!1;uwK(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},INk=function(l){!l.enqueued&&Pz&&(l.enqueued=!0,uwK(Pz))};
bK.prototype.addCustomStyle=function(l){l.__seenByShadyCSS||(l.__seenByShadyCSS=!0,this.customStyles.push(l),INk(this))};
bK.prototype.getStyleForCustomStyle=function(l){if(l.__shadyCSSCachedStyle)return l.__shadyCSSCachedStyle;var D;l.getStyle?D=l.getStyle():D=l;return D};
bK.prototype.processStyles=function(){for(var l=this.customStyles,D=0;D<l.length;D++){var U=l[D];if(!U.__shadyCSSCachedStyle){var n=this.getStyleForCustomStyle(U);n&&(n=n.__appliedElement||n,TPh&&TPh(n),U.__shadyCSSCachedStyle=n)}}return l};
bK.prototype.addCustomStyle=bK.prototype.addCustomStyle;bK.prototype.getStyleForCustomStyle=bK.prototype.getStyleForCustomStyle;bK.prototype.processStyles=bK.prototype.processStyles;Object.defineProperties(bK.prototype,{transformCallback:{get:function(){return TPh},
set:function(l){TPh=l}},
validateCallback:{get:function(){return Pz},
set:function(l){var D=!1;Pz||(D=!0);Pz=l;D&&INk(this)}}});var Q79=!(window.ShadyDOM&&window.ShadyDOM.inUse),vqC,vT;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(vT=window.ShadyCSS.cssBuild);var HYH=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?vqC=window.ShadyCSS.nativeCss:window.ShadyCSS?(Ghs(window.ShadyCSS),window.ShadyCSS=void 0):Ghs(window.WebComponents&&window.WebComponents.flags);var ozK=vqC;var Yl7=new bK;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(l,D){Yl7.processStyles();CDl(l,D)},
styleElement:function(){Yl7.processStyles()},
styleDocument:function(l){Yl7.processStyles();CDl(document.body,l)},
getComputedStyleValue:function(l,D){return hFg(l,D)},
flushCustomStyles:function(){},
nativeCss:ozK,nativeShadow:Q79,cssBuild:vT,disableRuntime:HYH});window.ShadyCSS.CustomStyleInterface=Yl7;var OY_=window.ShadyCSS.CustomStyleInterface,g7=function(){var l=HTMLElement.call(this)||this;l._style=null;OY_.addCustomStyle(l);return l};
_.Z(g7,HTMLElement);g7.prototype.getStyle=function(){if(this._style)return this._style;var l=this.querySelector("style");if(!l)return null;this._style=l;var D=l.getAttribute("include");D&&(l.removeAttribute("include"),l.textContent=D9c(D)+l.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
g7.prototype.getStyle=g7.prototype.getStyle;window.customElements.define("custom-style",g7);Polymer.CustomStyle=g7;var uK=function(){this._timer=this._callback=this._asyncModule=null},vz,ier;
uK.prototype.setConfig=function(l,D){var U=this;this._asyncModule=l;this._callback=D;this._timer=this._asyncModule.run(function(){U._timer=null;vz.delete(U);U._callback()})};
uK.prototype.cancel=function(){this.isActive()&&(V0h(this),vz.delete(this))};
var V0h=function(l){l.isActive()&&(l._asyncModule.cancel(l._timer),l._timer=null)};
uK.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
uK.prototype.isActive=function(){return this._timer!=null};
_.Qb=function(l,D,U){l instanceof uK?V0h(l):l=new uK;l.setConfig(D,U);return l};
vz=new Set;_.GL=function(l){vz.add(l)};
ier=function(){var l=!!vz.size;vz.forEach(function(D){try{D.flush()}catch(U){setTimeout(function(){throw U;})}});
return l};var LCc=typeof document.head.style.touchAction==="string",JSl=["mousedown","mousemove","mouseup","click"],XIo=[0,1,4,2],lk1;try{lk1=(new MouseEvent("test",{buttons:1})).buttons===1}catch(l){lk1=!1}var ta_=lk1,q4l=!1;(function(){try{var l=Object.defineProperty({},"passive",{get:function(){q4l=!0}});
window.addEventListener("test",null,l);window.removeEventListener("test",null,l)}catch(D){}})();
var ZE9=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),eF3=[],DD5={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},rS$={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},m9G=function(l){var D=l.sourceCapabilities;if(!D||D.firesTouchEvents)if(l.__polymerGesturesHandled={skip:!0},l.type==="click"){D=!1;for(var U=KC9(l),n=0;n<U.length;n++){if(U[n].nodeType===Node.ELEMENT_NODE)if(U[n].localName==="label")eF3.push(U[n]);
else if(DD5[U[n].localName]){var y=U[n];var A=Array.prototype.slice.call(y.labels||[]);if(!A.length){A=[];try{var C=y.getRootNode();if(y.id){var h=C.querySelectorAll("label[for = '"+y.id+"']");for(y=0;y<h.length;y++)A.push(h[y])}}catch(b){}}for(y=0;y<A.length;y++)D=D||eF3.indexOf(A[y])>-1}if(U[n]===UD1)return}D||(l.preventDefault(),l.stopPropagation())}},UD1=null,JV=null,pI9=0,x9g=0,cS9=-1,j7g=!1;
document.addEventListener("touchend",function(l){JV||aLB(!0);UD1=KC9(l)[0];JV=_.Qb(JV,_.nn.after(2500),function(){aLB();JV=UD1=null})},q4l?{passive:!0}:!1);
var KC9=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(l){return l.composedPath&&l.composedPath()||[]},T7={},NM=[];
FCs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){$Y(this.info)},
mousedown:function(l){if(fA(l)){var D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l),U=this;khB(this.info,function(n){fA(n)||(VE("up",D,n),$Y(U.info))},function(n){fA(n)&&VE("up",D,n);
$Y(U.info)});
VE("down",D,l)}},
touchstart:function(l){VE("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l),l.changedTouches[0],l)},
touchend:function(l){VE("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l),l.changedTouches[0],l)}});
FCs({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(l){this.moves.length>2&&this.moves.shift();this.moves.push(l)},
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;$Y(this.info)},
mousedown:function(l){if(fA(l)){var D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l),U=this,n=function(y){var A=y.clientX,C=y.clientY;oq9(U.info,A,C)&&(U.info.state=U.info.started?y.type==="mouseup"?"end":"track":"start",U.info.state==="start"&&s1("tap"),U.info.addMove({x:A,y:C}),fA(y)||(U.info.state="end",$Y(U.info)),D&&wI9(U.info,D,y),U.info.started=!0)};
khB(this.info,n,function(y){U.info.started&&n(y);$Y(U.info)});
this.info.x=l.clientX;this.info.y=l.clientY}},
touchstart:function(l){l=l.changedTouches[0];this.info.x=l.clientX;this.info.y=l.clientY},
touchmove:function(l){var D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l);l=l.changedTouches[0];var U=l.clientX,n=l.clientY;oq9(this.info,U,n)&&(this.info.state==="start"&&s1("tap"),this.info.addMove({x:U,y:n}),wI9(this.info,D,l),this.info.state="track",this.info.started=!0)},
touchend:function(l){var D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l);l=l.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:l.clientX,y:l.clientY}),wI9(this.info,D,l))}});
FCs({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(l){fA(l)&&(this.info.x=l.clientX,this.info.y=l.clientY)},
click:function(l){fA(l)&&zFd(this.info,l)},
touchstart:function(l){l=l.changedTouches[0];this.info.x=l.clientX;this.info.y=l.clientY},
touchend:function(l){zFd(this.info,l.changedTouches[0],l)}});var nt1=yb(function(l){var D=function(){return l.apply(this,arguments)||this};
_.Z(D,l);D.prototype._addEventListenerToNode=function(U,n,y){I1(U,n,y)||l.prototype._addEventListenerToNode.call(this,U,n,y)};
D.prototype._removeEventListenerFromNode=function(U,n,y){Hd(U,n,y)||l.prototype._removeEventListenerFromNode.call(this,U,n,y)};
return D});var Ln=yb(function(l){var D=function(){return l.apply(this,arguments)||this};
_.Z(D,l);D.prototype._shouldPropertyChange=function(U,n,y){return fLK(this,U,n,y,!0)};
return D}),yey=yb(function(l){var D=function(){return l.apply(this,arguments)||this};
_.Z(D,l);D.prototype._shouldPropertyChange=function(U,n,y){return fLK(this,U,n,y,this.mutableData)};
_.QP.Object.defineProperties(D,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return D});
Ln._mutablePropertyChange=fLK;var $9g=!1;var Aem=nt1(yey(Wz(HTMLElement))),qf=function(){var l=Aem.call(this)||this;if(WT)throw Error("Md");l.root=null;l.$=null;l.__children=null;return l};
_.Z(qf,Aem);_.W=qf.prototype;_.W.attributeChangedCallback=function(){this.mutableData=!0};
_.W.connectedCallback=function(){NLC()||(this.style.display="none");this.render()};
_.W.disconnectedCallback=function(){this.__removeChildren()};
_.W.__insertChildren=function(){(0,_.xY)((0,_.xY)(this).parentNode).insertBefore(this.root,this)};
_.W.__removeChildren=function(){if(this.__children)for(var l=0;l<this.__children.length;l++)this.root.appendChild(this.__children[l])};
_.W.render=function(){var l=this;if(!this.__children){var D=D||this.querySelector("template");if(!D){var U=new MutationObserver(function(){if(D=l.querySelector("template"))U.disconnect(),l.render();else throw Error("Nd");});
U.observe(this,{childList:!0});return}this.root=this._stampTemplate(D);this.$=this.root.$;this.__children=[];for(var n=this.root.firstChild;n;n=n.nextSibling)this.__children[this.__children.length]=n;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.QP.Object.defineProperties(qf,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",qf);Polymer.Debouncer=uK;Polymer.Gestures={gestures:T7,recognizers:NM,deepTargetFind:d9C,addListener:I1,removeListener:Hd,register:FCs,setTouchAction:_.YY,prevent:s1,resetMouseCanceller:function(){JV&&JV.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:I1,remove:Hd};Polymer.GestureEventListeners=nt1;Polymer.MutableData=Ln;Polymer.OptionalMutableData=yey;Polymer.DomBind=qf;_.Mf=function(){do{var l=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var D=ier()}while(l||D)};var s7l=null;Eq$.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Eq$,writable:!0}});var log=Wz(Eq$),ih_=Ln(log),WpH=Wz(function(){}),nS=function(l){var D=WpH.call(this)||this;
D._configureProperties(l);D.root=D._stampTemplate(D.__dataHost);var U=[];D.children=U;for(var n=D.root.firstChild;n;n=n.nextSibling)U.push(n),n.__templatizeInstance=D;D.__templatizeOwner&&D.__templatizeOwner.__hideTemplateChildren__&&D._showHideChildren(!0);U=D.__templatizeOptions;(l&&U.instanceProps||!U.instanceProps)&&D._enableProperties();return D};
_.Z(nS,WpH);_.W=nS.prototype;_.W._configureProperties=function(l){if(this.__templatizeOptions.forwardHostProp)for(var D in this.__hostProps)this._setPendingProperty(D,this.__dataHost["_host_"+D]);for(var U in l)this._setPendingProperty(U,l[U])};
_.W.forwardHostProp=function(l,D){this._setPendingPropertyOrPath(l,D,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.W._addEventListenerToNode=function(l,D,U){var n=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(l,D,function(A){A.model=n;U(A)});
else{var y=this.__dataHost.__dataHost;y&&y._addEventListenerToNode(l,D,U)}};
_.W._showHideChildren=function(l){ILs(l,this.children)};
_.W._setUnmanagedPropertyToNode=function(l,D,U){l.__hideTemplateChildren__&&l.nodeType==Node.TEXT_NODE&&D=="textContent"?l.__polymerTextContent__=U:WpH.prototype._setUnmanagedPropertyToNode.call(this,l,D,U)};
_.W.dispatchEvent=function(){return!0};
_.QP.Object.defineProperties(nS.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var l=this.__parentModel;if(!l){var D;l=this;do l=l.__dataHost.__dataHost;while((D=l.__templatizeOptions)&&!D.parentModel);this.__parentModel=l}return l}}});
var Y4_=Ln(nS);var Rd=function(){var l=Cn.call(this)||this;l.__renderDebouncer=null;l._lastIf=!1;l.__hideTemplateChildren__=!1;return l};
_.Z(Rd,Cn);_.W=Rd.prototype;_.W.__debounceRender=function(){var l=this;this.__renderDebouncer=_.Qb(this.__renderDebouncer,O1,function(){return l.__render()});
_.GL(this.__renderDebouncer)};
_.W.disconnectedCallback=function(){Cn.prototype.disconnectedCallback.call(this);var l=(0,_.xY)(this).parentNode;l&&(l.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.xY)(l).host)||this.__teardownInstance()};
_.W.connectedCallback=function(){Cn.prototype.connectedCallback.call(this);NLC()||(this.style.display="none");this.if&&this.__debounceRender()};
_.W.__ensureTemplate=function(){var l=this;if(!this.__template){var D=this._templateInfo?this:(0,_.xY)(this).querySelector("template");if(!D){var U=new MutationObserver(function(){if((0,_.xY)(l).querySelector("template"))U.disconnect(),l.__render();else throw Error("Qd");});
U.observe(this,{childList:!0});return!1}this.__template=D}return!0};
_.W.__ensureInstance=function(){var l=(0,_.xY)(this).parentNode;if(this.__hasInstance()){var D=this.__getInstanceNodes();if(D&&D.length&&(0,_.xY)(this).previousSibling!==D[D.length-1])for(var U=0,n=void 0;U<D.length&&(n=D[U]);U++)(0,_.xY)(l).insertBefore(n,this)}else{if(!l||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(l)}return!0};
_.W.render=function(){_.Mf()};
_.W.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();DW&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.W.__hasInstance=function(){};
_.W.__getInstanceNodes=function(){};
_.W.__createAndInsertInstance=function(){};
_.W.__teardownInstance=function(){};
_.W._showHideChildren=function(){};
_.QP.Object.defineProperties(Rd,{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:Rd.prototype.__debounceRender},restamp:{type:Boolean,observer:Rd.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Bh8=function(){var l=Rd.call(this)||this;l.__instance=null;l.__syncInfo=null;return l};
_.Z(Bh8,Rd);_.W=Bh8.prototype;_.W.__hasInstance=function(){return!!this.__instance};
_.W.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.W.__createAndInsertInstance=function(l){var D=this,U=this.__dataHost||this;if(WT&&!this.__dataHost)throw Error("Od");var n=U._bindTemplate(this.__template,!0);n.runEffects=function(y,A,C){var h=D.__syncInfo;if(D.if)h&&(D.__syncInfo=null,D._showHideChildren(),A=Object.assign(h.changedProps,A)),y(A,C);else if(D.__instance)if(h||(h=D.__syncInfo={runEffects:y,changedProps:{}}),C)for(var b in A)y=Xb(b),h.changedProps[y]=D.__dataHost[y];else Object.assign(h.changedProps,A)};
this.__instance=U._stampTemplate(this.__template,n);(0,_.xY)(l).insertBefore(this.__instance,this)};
_.W.__syncHostProperties=function(){var l=this.__syncInfo;l&&(this.__syncInfo=null,l.runEffects(l.changedProps,!1))};
_.W.__teardownInstance=function(){var l=this.__dataHost||this;this.__instance&&(l._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.W._showHideChildren=function(){var l=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==l&&(this.__instance.__hidden=l,ILs(l,this.__instance.templateInfo.childNodes));l||this.__syncHostProperties()};
var Cmr=function(){var l=Rd.call(this)||this;l.__ctor=null;l.__instance=null;l.__invalidProps=null;return l};
_.Z(Cmr,Rd);_.W=Cmr.prototype;_.W.__hasInstance=function(){return!!this.__instance};
_.W.__getInstanceNodes=function(){return this.__instance.children};
_.W.__createAndInsertInstance=function(l){this.__ctor||(this.__ctor=yP(this.__template,this,{mutableData:!0,forwardHostProp:function(D,U){this.__instance&&(this.if?this.__instance.forwardHostProp(D,U):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Xb(D)]=!0))}}));
this.__instance=new this.__ctor;(0,_.xY)(l).insertBefore(this.__instance.root,this)};
_.W.__teardownInstance=function(){if(this.__instance){var l=this.__instance.children;if(l&&l.length){var D=(0,_.xY)(l[0]).parentNode;if(D){D=(0,_.xY)(D);for(var U=0,n=void 0;U<l.length&&(n=l[U]);U++)D.removeChild(n)}}this.__instance=this.__invalidProps=null}};
_.W.__syncHostProperties=function(){var l=this.__invalidProps;if(l){this.__invalidProps=null;for(var D in l)this.__instance._setPendingProperty(D,this.__dataHost[D]);this.__instance._flushProperties()}};
_.W._showHideChildren=function(){var l=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==l&&(this.__instance.__hidden=l,this.__instance._showHideChildren(l));l||this.__syncHostProperties()};
_.ar=lK?Bh8:Cmr;customElements.define(_.ar.is,_.ar);Polymer.enqueueDebouncer=_.GL;Polymer.flush=_.Mf;Polymer.Templatize={templatize:yP,modelForElement:We9};Polymer.TemplateInstanceBase=nS;Polymer.DomIf=_.ar;var hHk=yey(Cn),m2=function(){var l=hHk.call(this)||this;l.__instances=[];l.__renderDebouncer=null;l.__itemsIdxToInstIdx={};l.__chunkCount=null;l.__renderStartTime=null;l.__itemsArrayChanged=!1;l.__shouldMeasureChunk=!1;l.__shouldContinueChunking=!1;l.__chunkingId=0;l.__sortFn=null;l.__filterFn=null;l.__observePaths=null;l.__ctor=null;l.__isDetached=!0;l.template=null;return l};
_.Z(m2,hHk);_.W=m2.prototype;_.W.disconnectedCallback=function(){hHk.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var l=0;l<this.__instances.length;l++)this.__detachInstance(l);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.W.connectedCallback=function(){hHk.prototype.connectedCallback.call(this);NLC()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var l=(0,_.xY)((0,_.xY)(this).parentNode),D=0;D<this.__instances.length;D++)this.__attachInstance(D,l);this.__chunkingId&&this.__render()}};
_.W.__ensureTemplatized=function(){var l=this;if(!this.__ctor){var D=this.template=this._templateInfo?this:this.querySelector("template");if(!D){var U=new MutationObserver(function(){if(l.querySelector("template"))U.disconnect(),l.__render();else throw Error("Rd");});
U.observe(this,{childList:!0});return!1}var n={};n[this.as]=!0;n[this.indexAs]=!0;n[this.itemsIndexAs]=!0;this.__ctor=yP(D,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:n,forwardHostProp:function(y,A){for(var C=this.__instances,h=0,b=void 0;h<C.length&&(b=C[h]);h++)b.forwardHostProp(y,A)},
notifyInstanceProp:function(y,A,C){mdc(this.as,A)&&(y=y[this.itemsIndexAs],A==this.as&&(this.items[y]=C),A=kY(this.as,"items."+y,A),this.notifyPath(A,C))}})}return!0};
_.W.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.W.__functionFromPropertyValue=function(l){if(typeof l==="string"){var D=this.__getMethodHost();return function(){return D[l].apply(D,arguments)}}return l};
_.W.__sortChanged=function(l){this.__sortFn=this.__functionFromPropertyValue(l);this.items&&this.__debounceRender(this.__render)};
_.W.__filterChanged=function(l){this.__filterFn=this.__functionFromPropertyValue(l);this.items&&this.__debounceRender(this.__render)};
_.W.__computeFrameTime=function(l){return Math.ceil(1E3/l)};
_.W.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.W.__handleObservedPaths=function(l){if(this.__sortFn||this.__filterFn)if(!l)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var D=this.__observePaths,U=0;U<D.length;U++)l.indexOf(D[U])===0&&this.__debounceRender(this.__render,this.delay)};
_.W.__itemsChanged=function(l){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(l.path,l.value)||(l.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.W.__debounceRender=function(l,D){D=D===void 0?0:D;this.__renderDebouncer=_.Qb(this.__renderDebouncer,D>0?_.nn.after(D):O1,l.bind(this));_.GL(this.__renderDebouncer)};
_.W.render=function(){this.__debounceRender(this.__render);_.Mf()};
_.W.__render=function(){var l=this;if(this.__ensureTemplatized()){var D=this.items||[],U=this.__sortAndFilterItems(D),n=this.__calculateLimit(U.length);this.__updateInstances(D,n,U);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){l.__chunkingId=null;l.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);DW&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.W.__sortAndFilterItems=function(l){for(var D=this,U=Array(l.length),n=0;n<l.length;n++)U[n]=n;this.__filterFn&&(U=U.filter(function(y,A,C){return D.__filterFn(l[y],A,C)}));
this.__sortFn&&U.sort(function(y,A){return D.__sortFn(l[y],l[A])});
return U};
_.W.__calculateLimit=function(l){var D=l,U=this.__instances.length;if(this.initialCount){var n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(D=Math.min(l,this.initialCount),this.__chunkCount=(n=Math.max(D-U,0))||1):(n=Math.min(Math.max(l-U,0),this.__chunkCount),D=Math.min(U+n,l));this.__shouldMeasureChunk=n===this.__chunkCount;this.__shouldContinueChunking=D<l;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return D};
_.W.__continueChunking=function(){if(this.__shouldMeasureChunk){var l=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/l*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.W.__updateInstances=function(l,D,U){var n=this.__itemsIdxToInstIdx={},y;for(y=0;y<D;y++){var A=this.__instances[y],C=U[y],h=l[C];n[C]=y;A?(A._setPendingProperty(this.as,h),A._setPendingProperty(this.indexAs,y),A._setPendingProperty(this.itemsIndexAs,C),A._flushProperties()):this.__insertInstance(h,y,C)}for(l=this.__instances.length-1;l>=y;l--)this.__detachAndRemoveInstance(l)};
_.W.__detachInstance=function(l){l=this.__instances[l];for(var D=(0,_.xY)(l.root),U=0;U<l.children.length;U++)D.appendChild(l.children[U]);return l};
_.W.__attachInstance=function(l,D){D.insertBefore(this.__instances[l].root,this)};
_.W.__detachAndRemoveInstance=function(l){this.__detachInstance(l);this.__instances.splice(l,1)};
_.W.__stampInstance=function(l,D,U){var n={};n[this.as]=l;n[this.indexAs]=D;n[this.itemsIndexAs]=U;return new this.__ctor(n)};
_.W.__insertInstance=function(l,D,U){l=this.__stampInstance(l,D,U);U=(U=this.__instances[D+1])?U.children[0]:this;(0,_.xY)((0,_.xY)(this).parentNode).insertBefore(l.root,U);return this.__instances[D]=l};
_.W._showHideChildren=function(l){for(var D=0;D<this.__instances.length;D++)this.__instances[D]._showHideChildren(l)};
_.W.__handleItemPath=function(l,D){var U=l.slice(6),n=U.indexOf(".");l=n<0?U:U.substring(0,n);if(l==parseInt(l,10)){U=n<0?"":U.substring(n+1);this.__handleObservedPaths(U);if(l=this.__instances[this.__itemsIdxToInstIdx[l]])l._setPendingPropertyOrPath(this.as+(U?"."+U:""),D,!1,!0),l._flushProperties();return!0}};
_.W.itemForElement=function(l){return(l=this.modelForElement(l))&&l[this.as]};
_.W.indexForElement=function(l){return(l=this.modelForElement(l))&&l[this.indexAs]};
_.W.modelForElement=function(l){return We9(this.template,l)};
_.QP.Object.defineProperties(m2,{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:m2.prototype.__sortChanged},filter:{type:Function,observer:m2.prototype.__filterChanged},observe:{type:String,observer:m2.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!DW,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.*)"]}}});
m2.prototype._setRenderedItemCount=function(){};
customElements.define(m2.is,m2);Polymer.DomRepeat=m2;var Pmh=function(l,D){var U=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=l;this.callback=D;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){U._schedule()};
this.connect();this._schedule()},bey=function(l){var D=(0,_.xY)(l);
if(BT(l))return D.assignedNodes({flatten:!0});l=[];for(var U=0;U<D.childNodes.length;U++){var n=D.childNodes[U];BT(n)?l.push.apply(l,_.zz((0,_.xY)(n).assignedNodes({flatten:!0}))):l.push(n)}return l};
_.W=Pmh.prototype;_.W.connect=function(){var l=this;BT(this._target)?this._listenSlots([this._target]):(0,_.xY)(this._target).children&&(this._listenSlots((0,_.xY)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(D){l._processMutations(D)}):(this._nativeChildrenObserver=new MutationObserver(function(D){l._processMutations(D)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.W.disconnect=function(){BT(this._target)?this._unlistenSlots([this._target]):(0,_.xY)(this._target).children&&(this._unlistenSlots((0,_.xY)(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};
_.W._schedule=function(){var l=this;this._scheduled||(this._scheduled=!0,O1.run(function(){return l.flush()}))};
_.W._processMutations=function(l){this._processSlotMutations(l);this.flush()};
_.W._processSlotMutations=function(l){if(l)for(var D=0;D<l.length;D++){var U=l[D];U.addedNodes&&this._listenSlots(U.addedNodes);U.removedNodes&&this._unlistenSlots(U.removedNodes)}};
_.W.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 l={target:this._target,addedNodes:[],removedNodes:[]},D=bey(this._target),U=ASG(D,this._effectiveNodes),n=0,y=void 0;n<U.length&&(y=U[n]);n++)for(var A=0,C=void 0;A<y.removed.length&&(C=y.removed[A]);A++)l.removedNodes.push(C);
n=0;for(y=void 0;n<U.length&&(y=U[n]);n++)for(A=y.index;A<y.index+y.addedCount;A++)l.addedNodes.push(D[A]);this._effectiveNodes=D;D=!1;if(l.addedNodes.length||l.removedNodes.length)D=!0,this.callback.call(this._target,l);return D};
_.W._listenSlots=function(l){for(var D=0;D<l.length;D++){var U=l[D];BT(U)&&U.addEventListener("slotchange",this._boundSchedule)}};
_.W._unlistenSlots=function(l){for(var D=0;D<l.length;D++){var U=l[D];BT(U)&&U.removeEventListener("slotchange",this._boundSchedule)}};var ZW=Element.prototype,gt_=ZW.matches||ZW.matchesSelector||ZW.mozMatchesSelector||ZW.msMatchesSelector||ZW.oMatchesSelector||ZW.webkitMatchesSelector,uk8=function(l,D){return gt_.call(l,D)},CS=function(l){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(l);
this.node=l},Je7;
_.W=CS.prototype;_.W.observeNodes=function(l){return new Pmh(this.node,l)};
_.W.unobserveNodes=function(l){l.disconnect()};
_.W.notifyObserver=function(){};
_.W.deepContains=function(l){if((0,_.xY)(this.node).contains(l))return!0;var D=l;for(l=l.ownerDocument;D&&D!==l&&D!==this.node;)D=(0,_.xY)(D).parentNode||(0,_.xY)(D).host;return D===this.node};
_.W.getOwnerRoot=function(){return(0,_.xY)(this.node).getRootNode()};
_.W.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.xY)(this.node).assignedNodes({flatten:!0}):[]};
_.W.getDestinationInsertionPoints=function(){for(var l=[],D=(0,_.xY)(this.node).assignedSlot;D;)l.push(D),D=(0,_.xY)(D).assignedSlot;return l};
_.W.importNode=function(l,D){return(0,_.xY)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(l,D)};
_.W.getEffectiveChildNodes=function(){return bey(this.node)};
_.W.queryDistributedElements=function(l){for(var D=this.getEffectiveChildNodes(),U=[],n=0,y=D.length,A=void 0;n<y&&(A=D[n]);n++)A.nodeType===Node.ELEMENT_NODE&&uk8(A,l)&&U.push(A);return U};
_.QP.Object.defineProperties(CS.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var l=this.node;return l._activeElement!==void 0?l._activeElement:l.activeElement}}});
var eL=function(l){this.event=l};
_.QP.Object.defineProperties(eL.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 vtg=CS;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var QOH=window.ShadyDOM.Wrapper,Gtr=function(){return QOH.apply(this,arguments)||this};
_.Z(Gtr,QOH);Object.getOwnPropertyNames(CS.prototype).forEach(function(l){l!="activeElement"&&l!="constructor"&&(Gtr.prototype[l]=CS.prototype[l])});
CBB(Gtr.prototype,["classList"]);vtg=Gtr;Object.defineProperties(eL.prototype,{localTarget:{get:function(){var l=this.event.currentTarget;l=l&&_.Ga(l).getOwnerRoot();for(var D=this.path,U=0;U<D.length;U++){var n=D[U];if(_.Ga(n).getOwnerRoot()===l)return n}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else B6$(),CBB(CS.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),hMs();Je7=vtg;_.Ga=function(l){l=l||document;if(l instanceof vtg)return l;if(l instanceof eL)return l;var D=l.__domApi;D||(l instanceof Event?D=new eL(l):D=new vtg(l),l.__domApi=D);return D};var Lp_=/:host\(:dir\((ltr|rtl)\)\)/g,qV5=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,MQ7=/:dir\((?:ltr|rtl)\)/,RHy=!(!window.ShadyDOM||!window.ShadyDOM.inUse),PT=[],ml=null,hO="",Ze7=yb(function(l){RHy||ml||(hO=document.documentElement.getAttribute("dir"),ml=new MutationObserver(PBB),ml.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var D=Xg8(l);l=function(){var U=D.call(this)||this;U.__autoDirOptOut=!1;return U};
_.Z(l,D);l._processStyleText=function(U,n){U=D._processStyleText.call(this,U,n);!RHy&&MQ7.test(U)&&(U=this._replaceDirInCssText(U),this.__activateDir=!0);return U};
l._replaceDirInCssText=function(U){U=U.replace(Lp_,':host([dir="$1"])');return U=U.replace(qV5,':host([dir="$2"]) $1')};
l.prototype.ready=function(){D.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
l.prototype.connectedCallback=function(){D.prototype.connectedCallback&&D.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(ml&&ml.takeRecords().length&&PBB(),PT.push(this),this.__autoDirOptOut||this.setAttribute("dir",hO))};
l.prototype.disconnectedCallback=function(){D.prototype.disconnectedCallback&&D.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var U=PT.indexOf(this);U>-1&&PT.splice(U,1)}};
l.__activateDir=!1;return l});var eH8=function(l){for(;l;){var D=Object.getOwnPropertyDescriptor(l,"observedAttributes");if(D)return D.get;l=Object.getPrototypeOf(l.prototype).constructor}return function(){return[]}};
yb(function(l){var D=Bz(l),U=eH8(D);l=function(){return D.call(this)||this};
_.Z(l,D);l.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:D.prototype._initializeProperties.call(this)};
l.prototype._enableProperties=function(){this.__isUpgradeDisabled||D.prototype._enableProperties.call(this)};
l.prototype._canApplyPropertyDefault=function(n){return D.prototype._canApplyPropertyDefault.call(this,n)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(n))};
l.prototype.attributeChangedCallback=function(n,y,A,C){n=="disable-upgrade"?this.__isUpgradeDisabled&&A==null&&(D.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.xY)(this).isConnected&&D.prototype.connectedCallback.call(this)):D.prototype.attributeChangedCallback.call(this,n,y,A,C)};
l.prototype.connectedCallback=function(){this.__isUpgradeDisabled||D.prototype.connectedCallback.call(this)};
l.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||D.prototype.disconnectedCallback.call(this)};
_.QP.Object.defineProperties(l,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return U.call(this).concat("disable-upgrade")}}});
return l});var b6=!1,gzK=[],g0=[];var GlC=window.ShadyDOM,JUK=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",qyg):document.readyState==="interactive"||document.readyState==="complete"?qyg():window.addEventListener("DOMContentLoaded",qyg);var ZhC=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=""},MYK=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,RMN=/@import[^;]*;/gim,Syl=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,klN=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,dFg=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Ke_=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,tYd=/^@[^\s]*keyframes/,
ao3=/\s+/g;var cUN={};var jm$=Promise.resolve();var mD8=new Set;var aky=/;\s*/m,tQy=/^\s*(initial)|(inherit)\s*$/,X9h=/\s*!important/,SV7=function(){this._map={}};
SV7.prototype.set=function(l,D){l=l.trim();this._map[l]={properties:D,dependants:{}}};
SV7.prototype.get=function(l){l=l.trim();return this._map[l]||null};
var kth=null,ad=function(){this._measureElement=this._currentElement=null;this._map=new SV7};
_.W=ad.prototype;_.W.detectMixin=function(l){l=Eum.test(l)||sr1.test(l);Eum.lastIndex=0;sr1.lastIndex=0;return l};
_.W.transformTemplate=function(l,D){if(l._gatheredStyle===void 0){var U=[];for(var n=l.content.querySelectorAll("style"),y=0;y<n.length;y++){var A=n[y];if(A.hasAttribute("shady-unscoped")){if(!Q79){var C=A.textContent;if(!mD8.has(C)){mD8.add(C);var h=document.createElement("style");h.setAttribute("shady-unscoped","");h.textContent=C;document.head.appendChild(h)}A.parentNode.removeChild(A)}}else U.push(A.textContent),A.parentNode.removeChild(A)}(U=U.join("").trim())?(n=document.createElement("style"),
n.textContent=U,l.content.insertBefore(n,l.content.firstChild),U=n):U=null;l._gatheredStyle=U}return(l=l._gatheredStyle)?this.JSC$11348_transformStyle(l,D):null};
_.W.JSC$11348_transformStyle=function(l,D){D=D===void 0?"":D;var U=rUG(l);this.transformRules(U,D);l.textContent=wml(U);return U};
_.W.transformCustomStyle=function(l){var D=this,U=rUG(l);fod(U,function(n){n.selector===":root"&&(n.selector="html");D.transformRule(n)});
l.textContent=wml(U);return U};
_.W.transformRules=function(l,D){var U=this;this._currentElement=D;fod(l,function(n){U.transformRule(n)});
this._currentElement=null};
_.W.transformRule=function(l){l.cssText=dDv(this,l.parsedCssText,l);l.selector===":root"&&(l.selector=":host > *")};
var dDv=function(l,D,U){D=D.replace(sr1,function(n,y,A,C){return l._produceCssProperties(n,y,A,C,U)});
return l._consumeCssProperties(D,U)};
_.W=ad.prototype;_.W._getInitialValueForProperty=function(l){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(l)};
_.W._fallbacksFromPreviousRules=function(l){for(var D=this,U=l;U.parent;)U=U.parent;var n={},y=!1;fod(U,function(A){(y=y||A===l)||A.selector===l.selector&&Object.assign(n,D._cssTextToMap(A.parsedCssText))});
return n};
_.W._consumeCssProperties=function(l,D){for(var U;U=Eum.exec(l);){var n=U[0],y=U[1];U=U.index;var A=U+n.indexOf("@apply"),C=U+n.length;n=l.slice(0,A);l=l.slice(C);A=D?this._fallbacksFromPreviousRules(D):{};Object.assign(A,this._cssTextToMap(n));y=this._atApplyToCssProperties(y,A);l=n+y+l;Eum.lastIndex=U+y.length}return l};
_.W._atApplyToCssProperties=function(l,D){l=l.replace(aky,"");var U=[],n=this._map.get(l);n||(this._map.set(l,{}),n=this._map.get(l));if(n){this._currentElement&&(n.dependants[this._currentElement]=!0);var y,A=n.properties;for(y in A){var C=D&&D[y];n=[y,": var(",l,"_-_",y];C&&n.push(",",C.replace(X9h,""));n.push(")");X9h.test(A[y])&&n.push(" !important");U.push(n.join(""))}}return U.join("; ")};
_.W._replaceInitialOrInherit=function(l,D){var U=tQy.exec(D);U&&(D=U[1]?this._getInitialValueForProperty(l):"apply-shim-inherit");return D};
_.W._cssTextToMap=function(l,D){D=D===void 0?!1:D;l=l.split(";");for(var U,n,y={},A=0;A<l.length;A++)if(U=l[A])n=U.split(":"),n.length>1&&(U=n[0].trim(),n=n.slice(1).join(":"),D&&(n=this._replaceInitialOrInherit(U,n)),y[U]=n);return y};
_.W._invalidateMixinEntry=function(l){if(kth)for(var D in l.dependants)D!==this._currentElement&&kth(D)};
_.W._produceCssProperties=function(l,D,U,n,y){var A=this;U&&$F9(U,function(R,a){a&&A._map.get(a)&&(n="@apply "+a+";")});
if(!n)return l;var C=this._consumeCssProperties(""+n,y);y=l.slice(0,l.indexOf("--"));var h=C=this._cssTextToMap(C,!0),b=this._map.get(D),u=b&&b.properties;u?h=Object.assign(Object.create(u),C):this._map.set(D,h);var Q=[],G,J=!1;for(G in h){var L=C[G];L===void 0&&(L="initial");!u||G in u||(J=!0);Q.push(D+"_-_"+G+": "+L)}J&&this._invalidateMixinEntry(b);b&&(b.properties=h);U&&(y=l+";"+y);return y+Q.join("; ")+";"};
ad.prototype.detectMixin=ad.prototype.detectMixin;ad.prototype.transformStyle=ad.prototype.JSC$11348_transformStyle;ad.prototype.transformCustomStyle=ad.prototype.transformCustomStyle;ad.prototype.transformRules=ad.prototype.transformRules;ad.prototype.transformRule=ad.prototype.transformRule;ad.prototype.transformTemplate=ad.prototype.transformTemplate;ad.prototype._separator="_-_";Object.defineProperty(ad.prototype,"invalidCallback",{get:function(){return kth},
set:function(l){kth=l}});var tV=new ad,Kpy=function(){this.customStyleInterface=null;tV.invalidCallback=pm$},XX=function(l){!l.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(l.customStyleInterface=window.ShadyCSS.CustomStyleInterface,l.customStyleInterface.transformCallback=function(D){tV.transformCustomStyle(D)},l.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){l.customStyleInterface.enqueued&&l.flushCustomStyles()})})};
_.W=Kpy.prototype;_.W.prepareTemplate=function(l,D){XX(this);N6c(l)===""&&(cUN[D]=l,D=tV.transformTemplate(l,D),l._styleAst=D)};
_.W.flushCustomStyles=function(){XX(this);if(this.customStyleInterface){var l=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var D=0;D<l.length;D++){var U=this.customStyleInterface.getStyleForCustomStyle(l[D]);U&&tV.transformCustomStyle(U)}this.customStyleInterface.enqueued=!1}}};
_.W.styleSubtree=function(l,D){XX(this);D&&CDl(l,D);if(l.shadowRoot)for(this.styleElement(l),l=l.shadowRoot.children||l.shadowRoot.childNodes,D=0;D<l.length;D++)this.styleSubtree(l[D]);else for(l=l.children||l.childNodes,D=0;D<l.length;D++)this.styleSubtree(l[D])};
_.W.styleElement=function(l){XX(this);var D=l.localName,U;D?D.indexOf("-")>-1?U=D:U=l.getAttribute&&l.getAttribute("is")||"":U=l.is;D=cUN[U];if(!(D&&N6c(D)!==""||!D||xFG(D))){if(xFG(D)||D._applyShimValidatingVersion!==D._applyShimNextVersion)this.prepareTemplate(D,U),FeG(D);if(l=l.shadowRoot)if(l=l.querySelector("style"))l.__cssRules=D._styleAst,l.textContent=wml(D._styleAst)}};
_.W.styleDocument=function(l){XX(this);this.styleSubtree(document.body,l)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var SL=new Kpy,cev=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(l,D){SL.flushCustomStyles();SL.prepareTemplate(l,D)},
prepareTemplateStyles:function(l,D,U){window.ShadyCSS.prepareTemplate(l,D,U)},
prepareTemplateDom:function(){},
styleSubtree:function(l,D){SL.flushCustomStyles();SL.styleSubtree(l,D)},
styleElement:function(l){SL.flushCustomStyles();SL.styleElement(l)},
styleDocument:function(l){SL.flushCustomStyles();SL.styleDocument(l)},
getComputedStyleValue:function(l,D){return hFg(l,D)},
flushCustomStyles:function(){SL.flushCustomStyles()},
nativeCss:ozK,nativeShadow:Q79,cssBuild:vT,disableRuntime:HYH};cev&&(window.ShadyCSS.CustomStyleInterface=cev)}window.ShadyCSS.ApplyShim=tV;var p9H;p9H=window.ShadyCSS;_.Kn=yb(function(l){l=nt1(Bz(l));var D=ou1?l:Ze7(l),U=eH8(D),n={x:"pan-x",y:"pan-y",none:"none",all:"auto"};l=function(){return D.call(this)||this};
_.Z(l,D);l.prototype.created=function(){};
l.prototype.__attributeReaction=function(y,A,C){(this.__dataAttributes&&this.__dataAttributes[y]||y==="disable-upgrade")&&this.attributeChangedCallback(y,A,C,null)};
l.prototype.setAttribute=function(y,A){if(bYy&&!this._legacyForceObservedAttributes){var C=this.getAttribute(y);D.prototype.setAttribute.call(this,y,A);this.__attributeReaction(y,C,String(A))}else D.prototype.setAttribute.call(this,y,A)};
l.prototype.removeAttribute=function(y){if(bYy&&!this._legacyForceObservedAttributes){var A=this.getAttribute(y);D.prototype.removeAttribute.call(this,y);this.__attributeReaction(y,A,null)}else D.prototype.removeAttribute.call(this,y)};
l.prototype._enableProperties=function(){this.__isUpgradeDisabled||D.prototype._enableProperties.call(this)};
l.prototype._canApplyPropertyDefault=function(y){return D.prototype._canApplyPropertyDefault.call(this,y)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(y))};
l.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(D.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
l.prototype.attached=function(){};
l.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(D.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
l.prototype.detached=function(){};
l.prototype.attributeChangedCallback=function(y,A,C,h){A!==C&&(y=="disable-upgrade"?this.__isUpgradeDisabled&&C==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.xY)(this).isConnected&&this.connectedCallback()):(D.prototype.attributeChangedCallback.call(this,y,A,C,h),this.attributeChanged(y,A,C)))};
l.prototype.attributeChanged=function(){};
l.prototype._initializeProperties=function(){if(i6&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var y=Object.getPrototypeOf(this);y.hasOwnProperty("__hasRegisterFinished")||(this._registered(),y.__hasRegisterFinished=!0);D.prototype._initializeProperties.call(this);this.root=this;this.created();bYy&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
l.prototype._takeAttributes=function(){for(var y=this.attributes,A=0,C=y.length;A<C;A++){var h=y[A];this.__attributeReaction(h.name,null,h.value)}};
l.prototype._registered=function(){};
l.prototype.ready=function(){this._ensureAttributes();D.prototype.ready.call(this)};
l.prototype._ensureAttributes=function(){};
l.prototype._applyListeners=function(){};
l.prototype.serialize=function(y){return this._serializeValue(y)};
l.prototype.deserialize=function(y,A){return this._deserializeValue(y,A)};
l.prototype.reflectPropertyToAttribute=function(y,A,C){this._propertyToAttribute(y,A,C)};
l.prototype.serializeValueToAttribute=function(y,A,C){this._valueToNodeAttribute(C||this,y,A)};
l.prototype.extend=function(y,A){if(!y||!A)return y||A;for(var C=Object.getOwnPropertyNames(A),h=0,b=void 0;h<C.length&&(b=C[h]);h++){var u=Object.getOwnPropertyDescriptor(A,b);u&&Object.defineProperty(y,b,u)}return y};
l.prototype.mixin=function(y,A){for(var C in A)y[C]=A[C];return y};
l.prototype.chainObject=function(y,A){y&&A&&y!==A&&(y.__proto__=A);return y};
l.prototype.instanceTemplate=function(y){y=this.constructor._contentForTemplate(y);return document.importNode(y,!0)};
l.prototype.fire=function(y,A,C){C=C||{};A=A===null||A===void 0?{}:A;y=new Event(y,{bubbles:C.bubbles===void 0?!0:C.bubbles,cancelable:!!C.cancelable,composed:C.composed===void 0?!0:C.composed});y.detail=A;(0,_.xY)(C.node||this).dispatchEvent(y);return y};
l.prototype.listen=function(y,A,C){y=y||this;var h=this.__boundListeners||(this.__boundListeners=new WeakMap),b=h.get(y);b||(b={},h.set(y,b));h=A+C;b[h]||(b[h]=this._addMethodEventListenerToNode(y,A,C,this))};
l.prototype.unlisten=function(y,A,C){y=y||this;var h=this.__boundListeners&&this.__boundListeners.get(y);C=A+C;var b=h&&h[C];b&&(this._removeEventListenerFromNode(y,A,b),h[C]=null)};
l.prototype.setScrollDirection=function(y,A){_.YY(A||this,n[y]||"auto")};
l.prototype.$$=function(y){return this.root.querySelector(y)};
l.prototype.distributeContent=function(){var y=_.Ga(this);window.ShadyDOM&&y.shadowRoot&&ShadyDOM.flush()};
l.prototype.getEffectiveChildNodes=function(){return _.Ga(this).getEffectiveChildNodes()};
l.prototype.queryDistributedElements=function(y){return _.Ga(this).queryDistributedElements(y)};
l.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(y){return y.nodeType===Node.ELEMENT_NODE})};
l.prototype.getEffectiveTextContent=function(){for(var y=this.getEffectiveChildNodes(),A=[],C=0,h;h=y[C];C++)h.nodeType!==Node.COMMENT_NODE&&A.push(h.textContent);return A.join("")};
l.prototype.queryEffectiveChildren=function(y){return(y=this.queryDistributedElements(y))&&y[0]};
l.prototype.queryAllEffectiveChildren=function(y){return this.queryDistributedElements(y)};
l.prototype.getContentChildNodes=function(y){return(y=this.root.querySelector(y||"slot"))?_.Ga(y).getDistributedNodes():[]};
l.prototype.getContentChildren=function(y){return this.getContentChildNodes(y).filter(function(A){return A.nodeType===Node.ELEMENT_NODE})};
l.prototype.isLightDescendant=function(y){return this!==y&&(0,_.xY)(this).contains(y)&&(0,_.xY)(this).getRootNode()===(0,_.xY)(y).getRootNode()};
l.prototype.isLocalDescendant=function(y){return this.root===(0,_.xY)(y).getRootNode()};
l.prototype.scopeSubtree=function(y,A){return Le3(y,A===void 0?!1:A)};
l.prototype.getComputedStyleValue=function(y){return p9H.getComputedStyleValue(this,y)};
l.prototype.debounce=function(y,A,C){this._debouncers=this._debouncers||{};return this._debouncers[y]=_.Qb(this._debouncers[y],C>0?_.nn.after(C):O1,A.bind(this))};
l.prototype.isDebouncerActive=function(y){this._debouncers=this._debouncers||{};y=this._debouncers[y];return!(!y||!y.isActive())};
l.prototype.flushDebouncer=function(y){this._debouncers=this._debouncers||{};(y=this._debouncers[y])&&y.flush()};
l.prototype.cancelDebouncer=function(y){this._debouncers=this._debouncers||{};(y=this._debouncers[y])&&y.cancel()};
l.prototype.async=function(y,A){return A>0?_.nn.run(y.bind(this),A):~O1.run(y.bind(this))};
l.prototype.cancelAsync=function(y){y<0?O1.cancel(~y):_.nn.cancel(y)};
l.prototype.create=function(y,A){y=document.createElement(y);if(A)if(y.setProperties)y.setProperties(A);else for(var C in A)y[C]=A[C];return y};
l.prototype.elementMatches=function(y,A){return uk8(A||this,y)};
l.prototype.toggleAttribute=function(y,A){var C=this;arguments.length===3&&(C=arguments[2]);arguments.length==1&&(A=!C.hasAttribute(y));if(A)return(0,_.xY)(C).setAttribute(y,""),!0;(0,_.xY)(C).removeAttribute(y);return!1};
l.prototype.toggleClass=function(y,A,C){C=C||this;arguments.length==1&&(A=!C.classList.contains(y));A?C.classList.add(y):C.classList.remove(y)};
l.prototype.transform=function(y,A){A=A||this;A.style.webkitTransform=y;A.style.transform=y};
l.prototype.translate3d=function(y,A,C,h){this.transform("translate3d("+y+","+A+","+C+")",h||this)};
l.prototype.arrayDelete=function(y,A){if(Array.isArray(y)){if(A=y.indexOf(A),A>=0)return y.splice(A,1)}else if(A=KA(this,y).indexOf(A),A>=0)return this.splice(y,A,1);return null};
l.prototype._logger=function(y,A){Array.isArray(A)&&A.length===1&&Array.isArray(A[0])&&(A=A[0]);switch(y){case "log":case "warn":case "error":console[y].apply(console,_.zz(A))}};
l.prototype._log=function(){this._logger("log",_.EW.apply(0,arguments))};
l.prototype._warn=function(){this._logger("warn",_.EW.apply(0,arguments))};
l.prototype._error=function(){this._logger("error",_.EW.apply(0,arguments))};
l.prototype._logf=function(y){return["[%s::%s]",this.is,y].concat(_.zz(_.EW.apply(1,arguments)))};
_.QP.Object.defineProperties(l.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var y=(0,_.xY)(this).getRootNode();return y instanceof DocumentFragment?y.host:y}}});
_.QP.Object.defineProperties(l,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return bYy&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],JBC(this.prototype)),this.__observedAttributes):U.call(this).concat("disable-upgrade")}}});
l.prototype.is="";return l});Polymer.FlattenedNodesObserver=Pmh;Polymer.DomApi=Je7;Polymer.EventApi=eL;Polymer.dom=_.Ga;Polymer.dom.matchesSelector=uk8;Polymer.dom.flush=_.Mf;Polymer.dom.addDebouncer=_.GL;Polymer.DirMixin=Ze7;Polymer.RenderStatus={beforeNextRender:_.QmK,afterNextRender:_.u6,flush:function(){for(;gzK.length||g0.length;)bh9(gzK),bh9(g0);b6=!1}};Polymer.LegacyElementMixin=_.Kn;var xD5;xD5=Ln._mutablePropertyChange;var jOy={properties:{mutableData:Boolean},_shouldPropertyChange:function(l,D,U){return xD5(this,l,D,U,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(l,D,U){return xD5(this,l,D,U,!0)}};
Polymer.OptionalMutableDataBehavior=jOy;var smG={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Yys={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Hhc=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Yys),Fp8=(0,_.Kn)(HTMLElement),TpN=function(l,D){l||console.warn("Polymer.Class requires `info` argument");D=D?D(Fp8):Fp8;D=Ohl(l,D,l.behaviors);D.is=D.prototype.is=
l.is;return D};Polymer.Class=TpN;Polymer.mixinBehaviors=function(l,D){return Ohl({},(0,_.Kn)(D),l)};
Polymer.GenerateClassFromInfo=Ohl;_.e0=function(l){var D=typeof l==="function"?l:_.e0.Class(l);l._legacyForceObservedAttributes&&(D.prototype._legacyForceObservedAttributes=l._legacyForceObservedAttributes);customElements.define(D.is,D);return D};
_.e0.Class=TpN;Polymer._polymerFn=_.e0;var otm=window.onLegacyPolymerFunctionDefinedCallback;otm&&otm();var Hxl={templatize:function(l,D){this._templatizerTemplate=l;this.ctor=yP(l,this,{mutableData:!!D,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(l){return new this.ctor(l)},
modelForElement:function(l){return We9(this._templatizerTemplate,l)}};Polymer.Templatizer=Hxl;_.cz=(0,_.Kn)(HTMLElement).prototype;Polymer.Base=_.cz;var iTG=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Gs=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Z(_.Gs,PolymerFakeBaseClass);var JO=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Z(JO,PolymerFakeBaseClass);var lR_=Symbol("Sd"),CWd=[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 w9_=w9_||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},rek;(function(l){function D(z,f,I){var iG=N.get(z);if(!iG){if(!I)return;iG=new d;N.set(z,iG)}z=iG.get(f);if(!z){if(!I)return;z=new d;iG.set(f,z)}return z}
function U(z,f,I){if(n(z,f,I))return!0;f=J(f);return f!==null?U(z,f,I):!1}
function n(z,f,I){f=D(f,I,!1);return f===void 0?!1:!!f.has(z)}
function y(z,f,I){if(n(z,f,I))return A(z,f,I);f=J(f);if(f!==null)return y(z,f,I)}
function A(z,f,I){f=D(f,I,!1);if(f!==void 0)return f.get(z)}
function C(z,f){var I=h(z,f);z=J(z);if(z===null)return I;var iG=C(z,f);if(iG.length<=0)return I;if(I.length<=0)return iG;f=new c;z=[];I=_.B(I);for(var CC=I.next();!CC.done;CC=I.next())CC=CC.value,f.has(CC)||(f.add(CC),z.push(CC));I=_.B(iG);for(iG=I.next();!iG.done;iG=I.next())iG=iG.value,f.has(iG)||(f.add(iG),z.push(iG));return z}
function h(z,f){z=D(z,f,!1);var I=[];z&&z.forEach(function(iG,CC){return I.push(CC)});
return I}
function b(z){return z===void 0}
function u(z){return typeof z==="object"?z!==null:typeof z==="function"}
function Q(z){return typeof z==="function"}
function G(z){return typeof z==="symbol"?z:String(z)}
function J(z){var f=Object.getPrototypeOf(z);if(typeof z!=="function"||z===S||f!==S)return f;var I=Object.getPrototypeOf(z.prototype);if(I==null||I===Object.prototype)return f;I=I.constructor;return typeof I!=="function"||I===z?f:I}
function L(){function z(){this._keys=[];this._values=[];this._cache=f}
var f={};z.prototype={get size(){return this._keys.length},has:function(I){return I===this._cache?!0:this._find(I)>=0?(this._cache=I,!0):!1},
get:function(I){var iG=this._find(I);if(iG>=0)return this._cache=I,this._values[iG]},
set:function(I,iG){this.delete(I);this._keys.push(I);this._values.push(iG);this._cache=I;return this},
delete:function(I){I=this._find(I);return I>=0?(this._keys.splice(I,1),this._values.splice(I,1),this._cache=f,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=f},
forEach:function(I){for(var iG=this.size,CC=0;CC<iG;++CC){var vo=this._keys[CC],td=this._values[CC];this._cache=vo;I.call(this,td,vo,this)}},
_find:function(I){for(var iG=this._keys,CC=iG.length,vo=0;vo<CC;++vo)if(iG[vo]===I)return vo;return-1}};
return z}
function R(){function z(){this._map=new d}
z.prototype={get size(){return this._map.length},has:function(f){return this._map.has(f)},
add:function(f){this._map.set(f,f);return this},
delete:function(f){return this._map.delete(f)},
clear:function(){this._map.clear()},
forEach:function(f,I){this._map.forEach(f,I)}};
return z}
function a(){function z(){this._key=I()}
function f(Ms,j3){for(var wl=0;wl<j3;++wl)Ms[wl]=Math.random()*255|0}
function I(){do{if(CC)var Ms=CC.randomBytes(16);else typeof Uint8Array==="function"?(Ms=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Ms):f(Ms,16)):(Ms=Array(16),f(Ms,16));Ms[6]=Ms[6]&79|64;Ms[8]=Ms[8]&191|128;for(var j3="",wl=0;wl<16;++wl){var zN=Ms[wl];if(wl===4||wl===6||wl===8)j3+="-";zN<16&&(j3+="0");j3+=zN.toString(16).toLowerCase()}Ms="@@WeakMap@@"+j3}while(vo.call(td,Ms));td[Ms]=!0;return Ms}
function iG(Ms,j3){if(!vo.call(Ms,GN)){if(!j3)return;Object.defineProperty(Ms,GN,{value:Object.create(null)})}return Ms[GN]}
var CC=typeof global!=="undefined"&&typeof w9_==="object"&&typeof require==="function"&&require("crypto"),vo=Object.prototype.hasOwnProperty,td={},GN=I();z.prototype={has:function(Ms){return(Ms=iG(Ms,!1))?this._key in Ms:!1},
get:function(Ms){if(Ms=iG(Ms,!1))return Ms[this._key]},
set:function(Ms,j3){iG(Ms,!0)[this._key]=j3;return this},
delete:function(Ms){return(Ms=iG(Ms,!1))&&this._key in Ms?delete Ms[this._key]:!1},
clear:function(){this._key=I()}};
return z}
var S=Object.getPrototypeOf(Function),d=typeof Map==="function"?Map:L(),c=typeof Set==="function"?Set:R(),N=new (typeof WeakMap==="function"?WeakMap:a());l.decorate=function(z,f,I,iG){if(b(iG)){if(b(I)){if(!Array.isArray(z))throw new TypeError;if(!Q(f))throw new TypeError;for(I=z.length-1;I>=0;--I)if(iG=(0,z[I])(f),!b(iG)){if(!Q(iG))throw new TypeError;f=iG}return f}if(!Array.isArray(z))throw new TypeError;if(!u(f))throw new TypeError;I=G(I);for(iG=z.length-1;iG>=0;--iG)(0,z[iG])(f,I)}else{if(Array.isArray(z))if(u(f)){if(b(I))throw new TypeError;
if(!u(iG))throw new TypeError;}else throw new TypeError;else throw new TypeError;I=G(I);for(var CC=z.length-1;CC>=0;--CC){var vo=(0,z[CC])(f,I,iG);if(!b(vo)){if(!u(vo))throw new TypeError;iG=vo}}return iG}};
l.metadata=function(z,f){return function(I,iG){if(b(iG)){if(!Q(I))throw new TypeError;D(I,void 0,!0).set(z,f)}else{if(!u(I))throw new TypeError;iG=G(iG);D(I,iG,!0).set(z,f)}}};
l.defineMetadata=function(z,f){var I;if(u(f))b(I)||(I=G(I));else throw new TypeError;D(f,I,!0).set("parameters",z)};
l.hasMetadata=function(z,f,I){if(u(f))b(I)||(I=G(I));else throw new TypeError;return U(z,f,I)};
l.hasOwnMetadata=function(z,f,I){if(u(f))b(I)||(I=G(I));else throw new TypeError;return n(z,f,I)};
l.getMetadata=function(z,f,I){if(u(f))b(I)||(I=G(I));else throw new TypeError;return y(z,f,I)};
l.getOwnMetadata=function(z,f,I){if(u(f))b(I)||(I=G(I));else throw new TypeError;return A(z,f,I)};
l.getMetadataKeys=function(z,f){if(u(z))b(f)||(f=G(f));else throw new TypeError;return C(z,f)};
l.getOwnMetadataKeys=function(z,f){if(u(z))b(f)||(f=G(f));else throw new TypeError;return h(z,f)};
l.deleteMetadata=function(z,f,I){if(u(f))b(I)||(I=G(I));else throw new TypeError;var iG=D(f,I,!1);if(!b(iG)){if(!iG.delete(z))return!1;if(iG.size>0)return!0;z=N.get(f);z.delete(I);if(z.size>0)return!0;N.delete(f);return!0}};
(function(z){if(typeof z.Reflect!=="undefined"){if(z.Reflect!==l)for(var f in l)z.Reflect[f]=l[f]}else z.Reflect=l})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(rek||(rek={}));var ZKo=self;var zHy=[0,_.zl,_.Ey,_.zl];var fk7=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(fk7,_.Bh);var $D7=_.qg(fk7,[0,_.Oy,_.Hm,zHy,_.Ey,_.iW]);var sOz=[0,_.VJ,-3,_.iW,_.Oy,_.zl,_.Jr7,_.VJ,q57,v85,F9,_.fh,_.zl,function(){return Nh7},
_.Ey],Nh7=[0,_.Hm,function(){return sOz},
_.Oy,14,_.VJ];_.HI(_.LS,_.xT);_.W=_.LS.prototype;_.W.start=function(){this.stop();this.usingListeners_=!1;var l=Et_(this),D=Thy(this);l&&!D&&this.JSC$11391_win_.mozRequestAnimationFrame?(this.JSC$11391_id_=_.Gt(this.JSC$11391_win_,"MozBeforePaint",this.callback_),this.JSC$11391_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11391_id_=l&&D?l.call(this.JSC$11391_win_,this.callback_):this.JSC$11391_win_.setTimeout(wY5(this.callback_),20)};
_.W.stop=function(){if(this.isActive()){var l=Et_(this),D=Thy(this);l&&!D&&this.JSC$11391_win_.mozRequestAnimationFrame?um(this.JSC$11391_id_):l&&D?D.call(this.JSC$11391_win_,this.JSC$11391_id_):this.JSC$11391_win_.clearTimeout(this.JSC$11391_id_)}this.JSC$11391_id_=null};
_.W.fire=function(){this.stop();this.JSC$11393_doAction_()};
_.W.isActive=function(){return this.JSC$11391_id_!=null};
_.W.JSC$11393_doAction_=function(){this.usingListeners_&&this.JSC$11391_id_&&um(this.JSC$11391_id_);this.JSC$11391_id_=null;this.JSC$11391_listener_.call(this.handler_,_.I7())};
_.W.disposeInternal=function(){this.stop();_.LS.superClass_.disposeInternal.call(this)};
var Et_=function(l){l=l.JSC$11391_win_;return l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||l.msRequestAnimationFrame||null},Thy=function(l){l=l.JSC$11391_win_;
return l.cancelAnimationFrame||l.cancelRequestAnimationFrame||l.webkitCancelRequestAnimationFrame||l.mozCancelRequestAnimationFrame||l.oCancelRequestAnimationFrame||l.msCancelRequestAnimationFrame||null};_.A1=function(l,D,U){_.xT.call(this);this.JSC$11394_listener_=U!=null?l.bind(U):l;this.JSC$11394_interval_=D;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11394_timer_=null};
_.Z(_.A1,_.xT);_.W=_.A1.prototype;_.W.fire=function(l){this.args_=arguments;this.JSC$11394_timer_||this.pauseCount_?this.shouldFire_=!0:Ik1(this)};
_.W.stop=function(){this.JSC$11394_timer_&&(_.nC.clearTimeout(this.JSC$11394_timer_),this.JSC$11394_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.W.pause=function(){this.pauseCount_++};
_.W.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11394_timer_||(this.shouldFire_=!1,Ik1(this))};
_.W.disposeInternal=function(){_.xT.prototype.disposeInternal.call(this);this.stop()};
var Ik1=function(l){l.JSC$11394_timer_=cb(function(){l.JSC$11394_timer_=null;l.shouldFire_&&!l.pauseCount_&&(l.shouldFire_=!1,Ik1(l))},l.JSC$11394_interval_);
var D=l.args_;l.args_=null;l.JSC$11394_listener_.apply(null,D)};var Heh=function(l,D){this.childIterator_=l[_.nC.Symbol.iterator]();this.mapFn_=D};
Heh.prototype[Symbol.iterator]=function(){return this};
Heh.prototype.next=function(){var l=this.childIterator_.next();return{value:l.done?void 0:this.mapFn_.call(void 0,l.value),done:l.done}};
var YVk=function(l,D){return new Heh(l,D)};var Oer={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 PAK=function(l){var D=VQ5(l);if(!D)throw Error("Wd`"+l);return D},VQ5=function(l){var D={};
l=String(l);var U=l.charAt(0)=="#"?l:"#"+l;if(i0v.test(U))return D.hex=Upo(U),D.type="hex",D;U=vE$(l);return U.length?(D.hex=rg3(U[0],U[1],U[2]),D.type="rgb",D):Oer&&(l=Oer[l.toLowerCase()])?(D.hex=l,D.type="named",D):null},lV7=/#(.)(.)(.)/,Upo=function(l){if(!i0v.test(l))throw Error("Yd`"+l);
l.length==4&&(l=l.replace(lV7,"#$1$1$2$2$3$3"));return l.toLowerCase()},bfG=function(l){l=Upo(l);
l=parseInt(l.slice(1),16);return[l>>16,l>>8&255,l&255]},rg3=function(l,D,U){l=Number(l);
D=Number(D);U=Number(U);if(l!=(l&255)||D!=(D&255)||U!=(U&255))throw Error("Zd`"+l+"`"+D+"`"+U);D=l<<16|D<<8|U;return l<16?"#"+(16777216|D).toString(16).slice(1):"#"+D.toString(16)},i0v=/^#(?:[0-9a-f]{3}){1,2}$/i,DhH=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,vE$=function(l){var D=l.match(DhH);
if(D){l=Number(D[1]);var U=Number(D[2]);D=Number(D[3]);if(l>=0&&l<=255&&U>=0&&U<=255&&D>=0&&D<=255)return[l,U,D]}return[]};var Uh_={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},WF=Uh_;WF=Uh_;var VHG,noy,y18;VHG=function(l,D){switch(D){case 1:return l%4!=0||l%100==0&&l%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
noy=function(l,D,U,n,y){l=new Date(l,D,U);y=y||0;return l.valueOf()+(((n!==void 0?n:3)-y+7)%7-((l.getDay()+6)%7-y+7)%7)*864E5};
_.pn=function(l,D,U){typeof l==="number"?(this.date=y18(l,D||0,U||1),A17(this,U||1)):_.I_(l)?(this.date=y18(l.getFullYear(),l.getMonth(),l.getDate()),A17(this,l.getDate())):(this.date=new Date(_.I7()),l=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),A17(this,l))};
y18=function(l,D,U){D=new Date(l,D,U);l>=0&&l<100&&D.setFullYear(D.getFullYear()-1900);return D};
_.W=_.pn.prototype;_.W.firstDayOfWeek_=WF.FIRSTDAYOFWEEK;_.W.firstWeekCutOffDay_=WF.FIRSTWEEKCUTOFFDAY;_.W.clone=function(){var l=new _.pn(this.date);l.firstDayOfWeek_=this.firstDayOfWeek_;l.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return l};
_.W.getFullYear=function(){return this.date.getFullYear()};
_.W.getYear=function(){return this.getFullYear()};
_.W.getMonth=function(){return this.date.getMonth()};
_.W.getDate=function(){return this.date.getDate()};
_.W.getTime=function(){return this.date.getTime()};
_.W.getDay=function(){return this.date.getDay()};
_.W.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.W.getUTCMonth=function(){return this.date.getUTCMonth()};
_.W.getUTCDate=function(){return this.date.getUTCDate()};
_.W.getUTCDay=function(){return this.date.getDay()};
_.W.getUTCHours=function(){return this.date.getUTCHours()};
_.W.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.W.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.W.set=function(l){this.date=new Date(l.getFullYear(),l.getMonth(),l.getDate())};
_.W.setFullYear=function(l){this.date.setFullYear(l)};
_.W.setYear=function(l){this.setFullYear(l)};
_.W.setMonth=function(l){this.date.setMonth(l)};
_.W.setDate=function(l){this.date.setDate(l)};
_.W.setTime=function(l){this.date.setTime(l)};
_.W.setUTCFullYear=function(l){this.date.setUTCFullYear(l)};
_.W.setUTCMonth=function(l){this.date.setUTCMonth(l)};
_.W.setUTCDate=function(l){this.date.setUTCDate(l)};
_.W.add=function(l){if(l.years||l.months){var D=this.getMonth()+l.months+l.years*12,U=this.getYear()+Math.floor(D/12);D%=12;D<0&&(D+=12);var n=Math.min(VHG(U,D),this.getDate());this.setDate(1);this.setFullYear(U);this.setMonth(D);this.setDate(n)}l.days&&(U=this.getYear(),D=U>=0&&U<=99?-1900:0,l=new Date((new Date(U,this.getMonth(),this.getDate(),12)).getTime()+l.days*864E5),this.setDate(1),this.setFullYear(l.getFullYear()+D),this.setMonth(l.getMonth()),this.setDate(l.getDate()),A17(this,l.getDate()))};
_.W.JSC$11407_toIsoString=function(l){var D=this.getFullYear(),U=D<0?"-":D>=1E4?"+":"";return[U+_.Wl(Math.abs(D),U?6:4),_.Wl(this.getMonth()+1,2),_.Wl(this.getDate(),2)].join(l?"-":"")};
_.W.equals=function(l){return!(!l||this.getYear()!=l.getYear()||this.getMonth()!=l.getMonth()||this.getDate()!=l.getDate())};
_.W.toString=function(){return this.JSC$11407_toIsoString()};
var A17=function(l,D){l.getDate()!=D&&l.date.setUTCHours(l.date.getUTCHours()+(l.getDate()<D?1:-1))};
_.pn.prototype.valueOf=function(){return this.date.valueOf()};var jL=function(l,D,U,n,y){this.reversed=!!D;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!U;l&&xA(this,l,n);this.depth=y!=void 0?y:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.HI(jL,bL);var xA=function(l,D,U,n){if(l.node=D)l.tagType=typeof U==="number"?U:l.node.nodeType!=1?0:l.reversed?-1:1;typeof n==="number"&&(l.depth=n)};
_.W=jL.prototype;_.W.JSC$11422_copyFrom=function(l){this.node=l.node;this.tagType=l.tagType;this.depth=l.depth;this.reversed=l.reversed;this.constrained=l.constrained};
_.W.clone=function(){return new jL(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.W.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return gC;var l=this.node;var D=this.reversed?-1:1;if(this.tagType==D){var U=this.reversed?l.lastChild:l.firstChild;U?xA(this,U):xA(this,l,D*-1)}else(U=this.reversed?l.previousSibling:l.nextSibling)?xA(this,U):xA(this,l.parentNode,D*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(l=this.node)?uL(l):gC};
_.W.equals=function(l){return l.node==this.node&&(!this.node||l.tagType==this.tagType)};
_.W.splice=function(l){var D=this.node,U=this.reversed?1:-1;this.tagType==U&&(this.tagType=U*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;jL.prototype.next.call(this);this.reversed=!this.reversed;U=_.Ns(arguments[0])?arguments[0]:arguments;for(var n=U.length-1;n>=0;n--)_.xh(U[n],D);_.kT(D)};var W8y=function(){},FX=function(l){for(var D=[],U=l.getTextRangeCount(),n=0;n<U;n++)D.push(l.getTextRange(n));
return D};
W8y.prototype.isReversed=function(){return!1};
W8y.prototype.getWindow=function(){return f2(_.$m(this.JSC$11424_getStartNode()))};
var Bf1=function(l,D){jL.call(this,l,D,!0)};
_.HI(Bf1,jL);var od=function(l,D,U,n,y){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!y;if(l){this.startNode_=l;this.startOffset_=D;this.endNode_=U;this.endOffset_=n;if(l.nodeType==1&&l.tagName!="BR")if(l=l.childNodes,D=l[D])this.startNode_=D,this.startOffset_=0;else{l.length&&(this.startNode_=_.co(l));var A=!0}U.nodeType==1&&((this.endNode_=U.childNodes[n])?this.endOffset_=0:this.endNode_=U)}jL.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);A&&this.next()};
_.HI(od,Bf1);_.W=od.prototype;_.W.JSC$11430_getStartNode=function(){return this.startNode_};
_.W.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)};
_.W.next=function(){return this.isLast()?gC:od.superClass_.next.call(this)};
_.W.JSC$11422_copyFrom=function(l){this.startNode_=l.startNode_;this.endNode_=l.endNode_;this.startOffset_=l.startOffset_;this.endOffset_=l.endOffset_;this.isReversed_=l.isReversed_;od.superClass_.JSC$11422_copyFrom.call(this,l)};
_.W.clone=function(){var l=new od(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);l.JSC$11422_copyFrom(this);return l};var C_7=function(){};
C_7.prototype.__iterator__=function(){return new od(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var w7=function(l){this.range_=l};
_.HI(w7,C_7);var h05=function(l){var D=_.$m(l).createRange();if(l.nodeType==3)D.setStart(l,0),D.setEnd(l,l.length);else if(KT(l)||l.nodeType==3){for(var U,n=l;(U=n.firstChild)&&(KT(U)||U.nodeType==3);)n=U;D.setStart(n,0);for(n=l;(U=n.lastChild)&&(KT(U)||U.nodeType==3);)n=U;D.setEnd(n,n.nodeType==1?n.childNodes.length:n.length)}else U=l.parentNode,l=Array.prototype.indexOf.call(U.childNodes,l),D.setStart(U,l),D.setEnd(U,l+1);return D},P_y=function(l,D,U,n){var y=_.$m(l).createRange();
y.setStart(l,D);y.setEnd(U,n);return y};
_.W=w7.prototype;_.W.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.W.getContainer=function(){return this.range_.commonAncestorContainer};
_.W.compareBrowserRangeEndpoints=function(l,D,U){return this.range_.compareBoundaryPoints(U==1?D==1?_.nC.Range.START_TO_START:_.nC.Range.START_TO_END:D==1?_.nC.Range.END_TO_START:_.nC.Range.END_TO_END,l)};
_.W.isCollapsed=function(){return this.range_.collapsed};
_.W.select=function(l){this.selectInternal(f2(_.$m(this.range_.startContainer)).getSelection(),l)};
_.W.selectInternal=function(l){l.removeAllRanges();l.addRange(this.range_)};
_.W.insertNode=function(l,D){var U=this.range_.cloneRange();U.collapse(D);U.insertNode(l);U.detach();return l};
_.W.collapse=function(l){this.range_.collapse(l)};_.HI(qE,w7);qE.prototype.selectInternal=function(l,D){!D||this.isCollapsed()?qE.superClass_.selectInternal.call(this,l,D):(l.collapse(this.range_.endContainer,this.range_.endOffset),l.extend(this.range_.startContainer,this.range_.startOffset))};_.HI(ME,w7);ME.prototype.compareBrowserRangeEndpoints=function(l,D,U){return ME.superClass_.compareBrowserRangeEndpoints.call(this,l,D,U)};
ME.prototype.selectInternal=function(l,D){D?l.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):l.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var b0H=function(l){return _.Do?new ME(l):_.lB?new qE(l):new w7(l)};var r7=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},go8;
_.HI(r7,W8y);go8=function(l,D){var U=new r7;U.browserRangeWrapper_=l;U.isReversed_=!!D;return U};
_.uE7=function(l){l=_.Do?new ME(h05(l)):_.lB?new qE(h05(l)):new w7(h05(l));return go8(l)};
_.zL=function(l,D,U,n){var y=new r7;y.isReversed_=vo_(l,D,U,n);if(_.PA(l)&&!KT(l)){var A=l.parentNode;D=Array.prototype.indexOf.call(A.childNodes,l);l=A}_.PA(U)&&!KT(U)&&(A=U.parentNode,n=Array.prototype.indexOf.call(A.childNodes,U),U=A);y.isReversed_?(y.startNode_=U,y.startOffset_=n,y.endNode_=l,y.endOffset_=D):(y.startNode_=l,y.startOffset_=D,y.endNode_=U,y.endOffset_=n);return y};
_.W=r7.prototype;_.W.clone=function(){var l=new r7;l.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();l.startNode_=this.startNode_;l.startOffset_=this.startOffset_;l.endNode_=this.endNode_;l.endOffset_=this.endOffset_;l.isReversed_=this.isReversed_;return l};
_.W.JSC$11424_getType=function(){return"text"};
_.W.getBrowserRangeObject=function(){return fn(this).range_};
_.W.getTextRangeCount=function(){return 1};
_.W.getTextRange=function(){return this};
var fn=function(l){var D;if(!(D=l.browserRangeWrapper_)){D=l.JSC$11424_getStartNode();var U=l.JSC$11424_getStartOffset(),n=l.JSC$11424_getEndNode(),y=l.JSC$11424_getEndOffset();D=_.Do?new ME(P_y(D,U,n,y)):_.lB?new qE(P_y(D,U,n,y)):new w7(P_y(D,U,n,y));D=l.browserRangeWrapper_=D}return D};
_.W=r7.prototype;_.W.getContainer=function(){return fn(this).getContainer()};
_.W.JSC$11424_getStartNode=function(){return this.startNode_||(this.startNode_=fn(this).range_.startContainer)};
_.W.JSC$11424_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=fn(this).range_.startOffset};
_.W.JSC$11424_getEndNode=function(){return this.endNode_||(this.endNode_=fn(this).range_.endContainer)};
_.W.JSC$11424_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=fn(this).range_.endOffset};
_.W.isReversed=function(){return this.isReversed_};
_.W.JSC$11424_containsRange=function(l,D){if(l.JSC$11424_getType()=="text"){var U=fn(this);l=fn(l);D=D&&!l.isCollapsed();l=l.range_;U=D?U.compareBrowserRangeEndpoints(l,0,1)>=0&&U.compareBrowserRangeEndpoints(l,1,0)<=0:U.compareBrowserRangeEndpoints(l,0,0)>=0&&U.compareBrowserRangeEndpoints(l,1,1)<=0}else U=!1;return U};
_.W.isCollapsed=function(){return fn(this).isCollapsed()};
_.W.JSC$11424_getText=function(){return fn(this).range_.toString()};
_.W.__iterator__=function(){return new od(this.JSC$11424_getStartNode(),this.JSC$11424_getStartOffset(),this.JSC$11424_getEndNode(),this.JSC$11424_getEndOffset())};
_.W.select=function(){fn(this).select(this.isReversed_)};
_.W.JSC$11424_removeContents=function(){var l=fn(this).range_;l.extractContents();if(l.startContainer.hasChildNodes()&&(l=l.startContainer.childNodes[l.startOffset])){var D=l.previousSibling;xG_(l)==""&&_.kT(l);D&&xG_(D)==""&&_.kT(D)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.W.insertNode=function(l,D){l=fn(this).insertNode(l,D);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return l};
_.W.collapse=function(l){l=this.isReversed()?!l:l;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(l);l?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var QLy=function(){};
_.HI(QLy,W8y);QLy.prototype.JSC$11424_containsRange=function(l,D){var U=FX(this);l=FX(l);return(D?BA:_.z59)(l,function(n){return BA(U,function(y){return y.JSC$11424_containsRange(n,D)})})};
QLy.prototype.insertNode=function(l,D){D?_.pT(l,this.JSC$11424_getStartNode()):_.xh(l,this.JSC$11424_getEndNode());return l};var G4k,J15=K2().JSC$9407_document_.documentElement;G4k=J15.requestFullscreen?"fullscreenchange":J15.webkitRequestFullscreen?"webkitfullscreenchange":J15.mozRequestFullScreen?"mozfullscreenchange":J15.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var L81=function(){var l=K2().JSC$9407_document_;return!!(l.webkitIsFullScreen||l.mozFullScreen||l.msFullscreenElement||l.fullscreenElement)};var $A=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.HI($A,QLy);_.W=$A.prototype;_.W.clone=function(){var l=new $A;l.browserRanges_=_.$9(this.browserRanges_);return l};
_.W.JSC$11424_getType=function(){return"mutli"};
_.W.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.W.getTextRangeCount=function(){return this.browserRanges_.length};
_.W.getTextRange=function(l){this.ranges_[l]||(this.ranges_[l]=go8(b0H(this.browserRanges_[l])));return this.ranges_[l]};
_.W.getContainer=function(){if(!this.container_){for(var l=[],D=this.getTextRangeCount(),U=0;U<D;U++)l.push(this.getTextRange(U).getContainer());this.container_=X7k.apply(null,l)}return this.container_};
var Nf=function(l){l.sortedRanges_||(l.sortedRanges_=FX(l),l.sortedRanges_.sort(function(D,U){var n=D.JSC$11424_getStartNode();D=D.JSC$11424_getStartOffset();var y=U.JSC$11424_getStartNode();U=U.JSC$11424_getStartOffset();return n==y&&D==U?0:vo_(n,D,y,U)?1:-1}));
return l.sortedRanges_};
_.W=$A.prototype;_.W.JSC$11424_getStartNode=function(){return Nf(this)[0].JSC$11424_getStartNode()};
_.W.JSC$11424_getStartOffset=function(){return Nf(this)[0].JSC$11424_getStartOffset()};
_.W.JSC$11424_getEndNode=function(){return _.co(Nf(this)).JSC$11424_getEndNode()};
_.W.JSC$11424_getEndOffset=function(){return _.co(Nf(this)).JSC$11424_getEndOffset()};
_.W.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.W.JSC$11424_getText=function(){return FX(this).map(function(l){return l.JSC$11424_getText()}).join("")};
_.W.__iterator__=function(){return new sI(this)};
_.W.select=function(){var l=this.getWindow().getSelection();l.removeAllRanges();for(var D=this.getTextRangeCount(),U=0;U<D;U++)l.addRange(this.getTextRange(U).getBrowserRangeObject())};
_.W.JSC$11424_removeContents=function(){FX(this).forEach(function(l){l.JSC$11424_removeContents()})};
_.W.collapse=function(l){if(!this.isCollapsed()){var D=l?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;D.collapse(l);this.ranges_=[D];this.sortedRanges_=[D];this.browserRanges_=[D.getBrowserRangeObject()]}};
var sI=function(l){this.iterators_=null;this.currentIdx_=0;l&&(this.iterators_=Nf(l).map(function(D){return _.dt7(D)}));
jL.call(this,l?this.JSC$11430_getStartNode():null,!1,!0)};
_.HI(sI,Bf1);_.W=sI.prototype;_.W.JSC$11430_getStartNode=function(){return this.iterators_[0].JSC$11430_getStartNode()};
_.W.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.W.next=function(){for(;this.currentIdx_<this.iterators_.length;){var l=this.iterators_[this.currentIdx_],D=l.next();if(D.done)this.currentIdx_++;else return xA(this,l.node,l.tagType,l.depth),D}return gC};
_.W.JSC$11422_copyFrom=function(l){this.iterators_=_.$9(l.iterators_);sI.superClass_.JSC$11422_copyFrom.call(this,l)};
_.W.clone=function(){var l=new sI(null);l.JSC$11422_copyFrom(this);return l};var qm_,vo_;_.Df=function(){var l=window.getSelection();return l&&qm_(l)};
qm_=function(l){var D=!1;if(l.createRange)try{var U=l.createRange()}catch(y){return null}else if(l.rangeCount){if(l.rangeCount>1){U=new $A;D=l.rangeCount;for(var n=0;n<D;n++)U.browserRanges_.push(l.getRangeAt(n));return U}U=l.getRangeAt(0);D=vo_(l.anchorNode,l.anchorOffset,l.focusNode,l.focusOffset)}else return null;return go8(b0H(U),D)};
_.EI=function(l,D){return _.zL(l,D,l,D)};
_.TL=function(l,D,U,n){return _.zL(l,D,U,n)};
vo_=function(l,D,U,n){if(l==U)return n<D;var y;if(l.nodeType==1&&D)if(y=l.childNodes[D])l=y,D=0;else if(_.Vp(l,U))return!0;if(U.nodeType==1&&n)if(y=U.childNodes[n])U=y,n=0;else if(_.Vp(U,l))return!1;return(trg(l,U)||D-n)>0};var Id=function(){_.Xa.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.jU)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.jU)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.jU)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.jU)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.jU)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.jU)(this.dispatchProgressEvent_,this)};
_.HI(Id,_.Xa);Id.prototype.abort=function(){try{this.reader_.abort()}catch(l){throw new xAy(l,"aborting read");}};
Id.prototype.getError=function(){return this.reader_.error&&new xAy(this.reader_.error,"reading file")};
Id.prototype.dispatchProgressEvent_=function(l){this.dispatchEvent(new jS5(l,this))};
Id.prototype.disposeInternal=function(){Id.superClass_.disposeInternal.call(this);delete this.reader_};
var R0r=function(l){var D=new Id,U=MZ7(D);D.reader_.readAsArrayBuffer(l);return U},Z07=function(l){var D=new Id,U=MZ7(D);
D.reader_.readAsDataURL(l);return U},MZ7=function(l){var D=new OY;
l.listen("loadend",_.P6(function(U,n){var y=n.reader_.result,A=n.getError();y==null||A?U.errback(A):U.callback(y);n.dispose()},D,l));
return D};var Hz=function(){_.Xa.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11464_eventHandler_=new _.ZB(this);this.JSC$11464_isInitialized_=!1};
_.HI(Hz,_.Xa);var e0g=new _.RP("d"),mh7=new _.RP("beforedragstart"),aVz=new _.RP("dragstart"),tZz=new _.RP("beforedragmove"),XK1=new _.RP("dragmove"),Smz=new _.RP("beforedragend"),k41=new _.RP("dragend"),dh5=new _.RP("e");Hz.prototype.isDragging=function(){return!!this.JSC$11464_dragger_};
var K87=function(l,D){D.dlgGrowthDirection_=0;D.dlgDragHoverClass_=void 0;D.dlgDragPermission=0;l.dragLists_.push(D)},c1g=function(l,D){l.getHandleForDragItem_=D};
Hz.prototype.init=function(){if(!this.JSC$11464_isInitialized_){for(var l=this.dragLists_.length,D=0;D<l;D++)for(var U=_.j8(this.dragLists_[D]),n=U.length,y=0;y<n;++y){var A=U[y],C=this.getHandleForDragItem_(A),h=_.Ho(C);this.dragItemForHandle_[h]=A;this.dragItemHoverClasses_&&(this.JSC$11464_eventHandler_.listen(A,"mouseover",this.handleDragItemMouseover_),this.JSC$11464_eventHandler_.listen(A,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11464_eventHandler_.listen(C,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11464_eventHandler_.listen(C,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(A);this.JSC$11464_eventHandler_.listen(C,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11464_isInitialized_=!0}};
Hz.prototype.disposeInternal=function(){this.JSC$11464_eventHandler_.dispose();for(var l=this.dragLists_.length,D=0;D<l;D++){var U=this.dragLists_[D];U.dlgGrowthDirection_=void 0;U.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;pKy(this);Hz.superClass_.disposeInternal.call(this)};
var xhv=function(l,D){for(var U=l.dragLists_.length,n=0;n<U;n++){var y=l.dragLists_[n];y.dlgBounds_=vhN(y)}U=l.dragItems_.length;for(n=0;n<U;n++)y=l.dragItems_[n],y!=D&&(y.dlgBounds_=vhN(y))};
_.W=Hz.prototype;
_.W.handlePotentialDragStart_=function(l){var D=_.Ho(l.currentTarget);D=this.dragItemForHandle_[D];if(D.parentElement.dlgDragPermission!=2){this.currDragItem_=D;a:{D=this.currDragItem_;for(var U=D.cloneNode(!0),n=ds("TEXTAREA",D),y=ds("TEXTAREA",U),A=0;A<n.length;A++)y[A].value=n[A].value;switch(D.tagName){case "TR":D=_.kh("TABLE",null,_.kh("TBODY",null,U));break a;case "TD":case "TH":D=_.kh("TABLE",null,_.kh("TBODY",null,_.kh("TR",null,U)));break a;case "TEXTAREA":U.value=D.value;default:D=U;break a}D=
void 0}this.draggerEl_=D;this.draggerElClasses_&&Hb(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.$m(this.currDragItem_).body.appendChild(this.draggerEl_);U=_.NG(this.currDragItem_);D=this.draggerEl_;n=_.NG(D);if(U instanceof _.zP){var C=U.y;U=U.x}z5(D,D.offsetLeft+(U-n.x),D.offsetTop+(Number(C)-n.y));this.JSC$11464_dragger_=new _.fL(this.draggerEl_);_.pT8(this.JSC$11464_dragger_,this.hysteresisDistance_);
_.Gt(this.JSC$11464_dragger_,"start",this.handleDragStart_,!1,this);_.Gt(this.JSC$11464_dragger_,"end",this.handleDragEnd_,!1,this);_.Gt(this.JSC$11464_dragger_,"earlycancel",this.JSC$11466_cleanup_,!1,this);this.dispatchEvent(new YA(e0g,this,l,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_));this.JSC$11464_dragger_.startDrag(l)}};
_.W.handleDragStart_=function(l){if(this.dispatchEvent(new YA(mh7,this,l.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.ehr(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Hb(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var D=zhy(this.draggerEl_);this.draggerEl_.halfWidth=D.width/2;this.draggerEl_.halfHeight=D.height/2;D=this.draggerEl_.getBoundingClientRect();
var U=l.clientY,n=xE7(this.JSC$11464_dragger_,l.clientX);if(n>D.right){var y=this.currDragItem_.getBoundingClientRect();this.JSC$11464_dragger_.deltaX=n-(n-y.left)/y.width*D.width}U=jAk(this.JSC$11464_dragger_,U);U>D.bottom&&(this.JSC$11464_dragger_.deltaY+=U-D.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";xhv(this,this.currDragItem_);this.currDragItem_.style.display="";_.Gt(this.JSC$11464_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new YA(aVz,
this,l.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_))}else l.preventDefault(),this.JSC$11466_cleanup_()};
_.W.handleDragMove_=function(l){var D=_.NG(this.draggerEl_);D=new _.zP(D.x+this.draggerEl_.halfWidth,D.y+this.draggerEl_.halfHeight);a:{var U=null;if(this.currDragItem_.style.display!="none"){U=this.currDragItem_.parentNode;var n=vhN(U);if(jL_(D,n))break a}n=this.dragLists_.length;for(var y=0;y<n;y++){var A=this.dragLists_[y];if(A!=U&&jL_(D,A.dlgBounds_)){U=A;break a}}U=null}if(U){if(U==null)throw Error("$d");n=0;y=!1;A=void 0;switch(U.dlgGrowthDirection_){case 0:n=D.y;var C=F8h;var h=ooH;break;case 4:y=
!0;case 2:n=D.x;C=wK_;h=ooH;break;case 5:y=!0;case 3:n=D.x,C=r1y,h=z0r}for(var b=null,u,Q=_.j8(U),G=Q.length,J=0;J<G;J++){var L=Q[J];if(L!=this.currDragItem_){var R=C(L.dlgBounds_);if(y){var a=fVz(L,D);A===void 0&&(A=a);h(n,R)&&(u==void 0||a<A||a==A&&(h(R,u)||R==u))&&(b=L,u=R);a<A&&(A=a)}else h(n,R)&&(u==void 0||h(R,u))&&(b=L,u=R)}}C=b!==null&&fVz(b,D)>A?null:b}else C=null;if(!this.dispatchEvent(new YA(tZz,this,l,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_,D,U,C)))return!1;if(U&&U.dlgDragPermission!=
1)this.currDragItem_.parentNode==U&&_.ehr(this.currDragItem_)==C||U.insertBefore(this.currDragItem_,C),this.currDragItem_.style.display="",U.dlgDragHoverClass_&&_.zt(U,U.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",h=this.dragLists_.length,u=0;u<h;u++)n=this.dragLists_[u],n.dlgDragHoverClass_&&_.wh(n,n.dlgDragHoverClass_);U!=this.currHoverList_&&(this.currHoverList_=U,xhv(this,this.currDragItem_));this.dispatchEvent(new YA(XK1,this,l,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_,
D,U,C));return!1};
_.W.JSC$11466_cleanup_=function(){pKy(this);this.JSC$11464_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var l=this.dragLists_.length,D=0;D<l;D++)this.dragLists_[D].dlgBounds_=null;l=this.dragItems_.length;for(D=0;D<l;D++)this.dragItems_[D].dlgBounds_=null};
_.W.handleDragEnd_=function(l){if(!this.dispatchEvent(new YA(Smz,this,l,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_)))return!1;pKy(this);this.dispatchEvent(new YA(k41,this,l,this.currDragItem_,this.draggerEl_,this.JSC$11464_dragger_));this.JSC$11466_cleanup_();return!0};
var pKy=function(l){_.WE(l.JSC$11464_dragger_);var D=l.draggerEl_&&l.draggerEl_.parentElement;l.draggerEl_&&_.kT(l.draggerEl_);l.currDragItem_&&l.currDragItem_.style.display=="none"&&(l.origList_.insertBefore(l.currDragItem_,l.origNextItem_),l.currDragItem_.style.display="");l.currDragItemClasses_&&l.currDragItem_?KWh(l.currDragItem_,l.currDragItemClasses_||[]):l.currDragItem_&&(l.currDragItem_.style.visibility="");for(var U=l.dragLists_.length,n=0;n<U;n++){var y=l.dragLists_[n];y.dlgDragHoverClass_&&
_.wh(y,y.dlgDragHoverClass_)}D&&l.dispatchEvent(new YA(dh5,l,null,l.currDragItem_,l.draggerEl_,l.JSC$11464_dragger_))};
_.W=Hz.prototype;_.W.getHandleForDragItem_=function(l){return l};
_.W.handleDragItemMouseover_=function(l){Hb(l.currentTarget,this.dragItemHoverClasses_||[])};
_.W.handleDragItemMouseout_=function(l){KWh(l.currentTarget,this.dragItemHoverClasses_||[])};
_.W.handleDragItemHandleMouseover_=function(l){Hb(l.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.W.handleDragItemHandleMouseout_=function(l){KWh(l.currentTarget,this.dragItemHandleHoverClasses_||[])};
var jL_=function(l,D){return l.x>D.left&&l.x<D.left+D.width&&l.y>D.top&&l.y<D.top+D.height},fVz=function(l,D){l=l.dlgBounds_;
return Math.abs(D.y-(l.top+(l.height-1)/2))},F8h=function(l){return l.top+l.height-1},wK_=function(l){return l.left+l.width-1},r1y=function(l){return l.left||0},ooH=function(l,D){return l<D},z0r=function(l,D){return l>D},YA=function(l,D,U,n,y,A){_.Zz.call(this,l);
this.event=U;this.currDragItem=n;this.draggerEl=y;this.JSC$11468_dragger=A};
_.HI(YA,_.Zz);_.HI(eV,_.xT);var $h8=new _.zP(0,0);eV.prototype.JSC$11472_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
eV.prototype.JSC$11472_onMouseMove=function(l){var D=this.containerIsActuallyContent_?$h8:de(K2(this.containerNode_)),U=this.horizontalScrolling_?this.calculateScrollDelta(l.clientX+D.x,this.scrollBounds_.left,this.scrollBounds_.width):0,n=this.calculateScrollDelta(l.clientY+D.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=U;this.scrollDelta_.y=n;!(U=!U&&!n)&&(U=this.constrainScroll_)&&(U=l.clientX+D.x,l=l.clientY+D.y,D=this.containerBounds_,U=!(D.left<=U&&D.left+D.width>=
U&&D.top<=l&&D.top+D.height>=l));U?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
eV.prototype.calculateScrollDelta=function(l,D,U){var n=0;l<D?n=-8:l>D+U&&(n=8);return n};
eV.prototype.disposeInternal=function(){eV.superClass_.disposeInternal.call(this);this.JSC$11470_eventHandler_.dispose();this.scrollTimer_.dispose()};var Nfy={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"}}},OI=Nfy;OI=Nfy;var Vb={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 sLv=function(){},z3=function(l){if(typeof l=="number"){var D=new sLv;
D.standardOffset_=l;var U=l;if(U==0)U="Etc/GMT";else{var n=["Etc/GMT",U<0?"-":"+"];U=Math.abs(U);n.push(Math.floor(U/60)%100);U%=60;U!=0&&n.push(":",_.Wl(U,2));U=n.join("")}D.timeZoneId_=U;U=l;U==0?U="UTC":(n=["UTC",U<0?"+":"-"],U=Math.abs(U),n.push(Math.floor(U/60)%100),U%=60,U!=0&&n.push(":",U),U=n.join(""));l=Eor(l);D.tzNames_=[U,U];D.tzNamesExt_={STD_LONG_NAME_GMT:l,STD_GENERIC_LOCATION:l};D.transitions_=[];return D}D=new sLv;D.timeZoneId_=l.id;D.standardOffset_=-l.std_offset;D.tzNames_=l.names;
D.tzNamesExt_=l.names_ext;D.transitions_=l.transitions;return D},Eor=function(l){var D=["GMT"];
D.push(l<=0?"+":"-");l=Math.abs(l);D.push(_.Wl(Math.floor(l/60)%100,2),":",_.Wl(l%60,2));return D.join("")},Tfg=function(l,D){D=Date.UTC(D.getUTCFullYear(),D.getUTCMonth(),D.getUTCDate(),D.getUTCHours(),D.getUTCMinutes())/36E5;
for(var U=0;U<l.transitions_.length&&D>=l.transitions_[U];)U+=2;return U==0?0:l.transitions_[U-1]},IV7=function(l,D){l=l.standardOffset_-Tfg(l,D);
return l===-1440?0:l};var f7=function(l,D){this.patternParts_=[];this.JSC$11483_dateTimeSymbols_=D||WF;typeof l=="number"?H0y(this,l):Ymg(this,l)},O0y=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],i3=function(l){return l.getHours?l.getHours():0},Ymg=function(l,D){for(ZFC&&(D=D.replace(/\u200f/g,""));D;){for(var U=D,n=0;n<O0y.length;++n){var y=D.match(O0y[n]);
if(y){var A=y[0];D=D.substring(A.length);n==0&&(A=="''"?A="'":(A=A.substring(1,y[1]=="'"?A.length-1:A.length),A=A.replace(/''/g,"'")));l.patternParts_.push({text:A,type:n});break}}if(U===D)throw Error("ae`"+D);}};
f7.prototype.format=function(l,D){if(!l)throw Error("be");var U=D?(l.getTimezoneOffset()-IV7(D,l))*6E4:0,n=U?new Date(l.getTime()+U):l,y=n;D&&n.getTimezoneOffset()!=l.getTimezoneOffset()&&(n=new Date(n.getTime()+(n.getTimezoneOffset()-l.getTimezoneOffset())*6E4),y=new Date(l.getTime()+(U+(U>0?-864E5:864E5))));U=[];for(var A=0;A<this.patternParts_.length;++A){var C=this.patternParts_[A].text;1==this.patternParts_[A].type?U.push(VZy(this,C,l,n,y,D)):U.push(C)}return U.join("")};
var H0y=function(l,D){if(D<4)var U=l.JSC$11483_dateTimeSymbols_.DATEFORMATS[D];else if(D<8)U=l.JSC$11483_dateTimeSymbols_.TIMEFORMATS[D-4];else if(D<12)U=l.JSC$11483_dateTimeSymbols_.DATETIMEFORMATS[D-8],U=U.replace("{1}",l.JSC$11483_dateTimeSymbols_.DATEFORMATS[D-8]),U=U.replace("{0}",l.JSC$11483_dateTimeSymbols_.TIMEFORMATS[D-8]);else if(D===12)U=l.JSC$11483_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(D===13)U=l.JSC$11483_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{H0y(l,10);return}Ymg(l,U)},l3=function(l,D){D=String(D);
l=l.JSC$11483_dateTimeSymbols_||WF;if(l.ZERODIGIT!==void 0&&!Rcd){for(var U=[],n=0;n<D.length;n++){var y=D.charCodeAt(n);U.push(48<=y&&y<=57?String.fromCharCode(l.ZERODIGIT+y-48):D.charAt(n))}D=U.join("")}return D},Rcd=!1,ZFC=!1,lXy=function(l,D,U,n){U=U.getFullYear();
U<=0&&n&&(U=1-U);return l3(l,iqm(U,D))},iqm=function(l,D){D==2&&(l%=100);
l<0&&D++;return _.Wl(l,D)},De=function(l){if(!(l.getHours&&l.getSeconds&&l.getMinutes))throw Error("ce");
},DJ7=function(l,D){De(D);
D=i3(D);return l.JSC$11483_dateTimeSymbols_.AMPMS[D>=12&&D<24?1:0]},VZy=function(l,D,U,n,y,A){var C=D.length;
switch(D.charAt(0)){case "G":return U=n.getFullYear()>0?1:0,C>=4?l.JSC$11483_dateTimeSymbols_.ERANAMES[U]:l.JSC$11483_dateTimeSymbols_.ERAS[U];case "y":return lXy(l,C,n,!0);case "Y":return U=(new Date(noy(n.getFullYear(),n.getMonth(),n.getDate(),l.JSC$11483_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,l.JSC$11483_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),C==2&&(U%=100),l3(l,iqm(U,C));case "u":return lXy(l,C,n,!1);case "M":a:switch(U=n.getMonth(),C){case 5:C=l.JSC$11483_dateTimeSymbols_.NARROWMONTHS[U];
break a;case 4:C=l.JSC$11483_dateTimeSymbols_.MONTHS[U];break a;case 3:C=l.JSC$11483_dateTimeSymbols_.SHORTMONTHS[U];break a;default:C=l3(l,_.Wl(U+1,C))}return C;case "k":return De(y),l3(l,_.Wl(i3(y)||24,C));case "S":return l3(l,(y.getMilliseconds()/1E3).toFixed(Math.min(3,C)).slice(2)+(C>3?_.Wl(0,C-3):""));case "E":return U=n.getDay(),C>=4?l.JSC$11483_dateTimeSymbols_.WEEKDAYS[U]:l.JSC$11483_dateTimeSymbols_.SHORTWEEKDAYS[U];case "a":return DJ7(l,y);case "b":return DJ7(l,y);case "B":return DJ7(l,
y);case "h":return De(y),l3(l,_.Wl(i3(y)%12||12,C));case "K":return De(y),l3(l,_.Wl(i3(y)%12,C));case "H":return De(y),l3(l,_.Wl(i3(y),C));case "c":a:switch(U=n.getDay(),C){case 5:C=l.JSC$11483_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[U];break a;case 4:C=l.JSC$11483_dateTimeSymbols_.STANDALONEWEEKDAYS[U];break a;case 3:C=l.JSC$11483_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[U];break a;default:C=l3(l,_.Wl(U,1))}return C;case "L":a:switch(U=n.getMonth(),C){case 5:C=l.JSC$11483_dateTimeSymbols_.STANDALONENARROWMONTHS[U];
break a;case 4:C=l.JSC$11483_dateTimeSymbols_.STANDALONEMONTHS[U];break a;case 3:C=l.JSC$11483_dateTimeSymbols_.STANDALONESHORTMONTHS[U];break a;default:C=l3(l,_.Wl(U+1,C))}return C;case "Q":return U=Math.floor(n.getMonth()/3),C<4?l.JSC$11483_dateTimeSymbols_.SHORTQUARTERS[U]:l.JSC$11483_dateTimeSymbols_.QUARTERS[U];case "d":return l3(l,_.Wl(n.getDate(),C));case "m":return De(y),l3(l,_.Wl(y.getMinutes?y.getMinutes():0,C));case "s":return De(y),l3(l,_.Wl(y.getSeconds(),C));case "v":return(A||z3(U.getTimezoneOffset())).timeZoneId_;
case "V":return l=A||z3(U.getTimezoneOffset()),C<=2?l.timeZoneId_:Tfg(l,U)>0?l.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?l.tzNamesExt_.DST_GENERIC_LOCATION:l.tzNamesExt_.DST_GENERIC_LOCATION:l.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?l.tzNamesExt_.STD_GENERIC_LOCATION:l.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return U=noy(y.getFullYear(),y.getMonth(),y.getDate(),l.JSC$11483_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,l.JSC$11483_dateTimeSymbols_.FIRSTDAYOFWEEK),l3(l,_.Wl(Math.floor(Math.round((U-(new Date((new Date(U)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,C));case "z":return l=A||z3(U.getTimezoneOffset()),C<4?l.tzNames_[Tfg(l,U)>0?2:0]:l.tzNames_[Tfg(l,U)>0?3:1];case "Z":return D=A||z3(U.getTimezoneOffset()),C<4?(C=-IV7(D,U),l=[C<0?"-":"+"],C=Math.abs(C),l.push(_.Wl(Math.floor(C/60)%100,2),_.Wl(C%60,2)),C=l.join("")):C=l3(l,Eor(IV7(D,U))),C;default:return""}};var UJr=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,nv1=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,eT$=function(l){this.patternParts_=[];this.JSC$11492_dateTimeSymbols_=WF;if(typeof l=="number"){l>11&&(l=10);if(l<4)var D=this.JSC$11492_dateTimeSymbols_.DATEFORMATS[l];else l<8?D=this.JSC$11492_dateTimeSymbols_.TIMEFORMATS[l-4]:(D=this.JSC$11492_dateTimeSymbols_.DATETIMEFORMATS[l-8],D=D.replace("{1}",this.JSC$11492_dateTimeSymbols_.DATEFORMATS[l-8]),D=D.replace("{0}",this.JSC$11492_dateTimeSymbols_.TIMEFORMATS[l-
8]));yim(this,D)}else yim(this,l)},yim=function(l,D){for(var U=!1,n="",y=0;y<D.length;y++){var A=D.charAt(y);
if(UJr.test(A))for(n.length>0&&(l.patternParts_.push({text:n,count:0,abutStart:!1,numeric:!1}),n=""),l.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});y<D.length-1&&D.charAt(y+1)==" ";)y++;else if(U)A=="'"?y+1<D.length&&D.charAt(y+1)=="'"?(n+="'",y++):U=!1:n+=A;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(A)>=0){n.length>0&&(l.patternParts_.push({text:n,count:0,abutStart:!1,numeric:!1}),n="");for(var C=D.charAt(y),h=y+1;h<D.length&&D.charAt(h)==C;)h++;C=h-y;C<=0?h=!1:(h="MydhHmsSDkK".indexOf(A),
h=h>0||h==0&&C<3);l.patternParts_.push({text:A,count:C,abutStart:!1,numeric:h});y+=C-1}else A=="'"?y+1<D.length&&D.charAt(y+1)=="'"?(n+="'",y++):U=!0:n+=A}n.length>0&&l.patternParts_.push({text:n,count:0,abutStart:!1,numeric:!1});D=!1;for(U=0;U<l.patternParts_.length;U++)l.patternParts_[U].numeric?!D&&U+1<l.patternParts_.length&&l.patternParts_[U+1].numeric&&(D=!0,l.patternParts_[U].abutStart=!0):D=!1};
eT$.prototype.parse=function(l,D,U){var n=!1,y=!1;U&&(n=U.predictive||!1,y=U.validate||!1);if(n)for(U=0;U<this.patternParts_.length;U++){var A=this.patternParts_[U];if(A.count>0&&("abBhHkKm".indexOf(A.text.charAt(0))<0||A.count>2||A.abutStart))throw Error("de`"+A.text.charAt(0));}A=new Aiy;U=[0];A.dayPeriodIndex=-1;for(var C=0;C<this.patternParts_.length&&!(n&&U[0]>=l.length);C++){if(this.patternParts_[C].count==0){a:{var h=l;var b=U,u=this.patternParts_[C],Q=n;if(u.text.match(UJr)!=null){if(u=b[0],
Wr8(h,b),b[0]>u){h=!0;break a}}else{if(h.indexOf(u.text,b[0])==b[0]){b[0]+=u.text.length;h=!0;break a}if(Q&&u.text.indexOf(h.substring(b[0]))==0){b[0]+=h.length-b[0];h=!0;break a}}h=!1}if(h)continue;return 0}if(this.patternParts_[C].abutStart){a:{b=l;u=U;Q=C;var G=u[0],J=0;for(h=Q;h<this.patternParts_.length;h++){var L=this.patternParts_[h],R=L.count;if(R===0)break;if(h==Q&&(R-=J,J++,R==0)){h=0;break a}var a=h>Q&&L.numeric,S=u[0];if(!BNv(this,b,u,L,R,A,!1)||a&&u[0]-S<R)h=Q-1,u[0]=G}h-=Q}if(h<=0)return 0;
C+=h-1}else if(!BNv(this,l,U,this.patternParts_[C],0,A,n))return 0}a:{l=y;if(D==null)throw Error("ee");A.era!=void 0&&A.year!=void 0&&A.era==0&&A.year>0&&(A.year=-(A.year-1));A.year!=void 0&&D.setFullYear(A.year);n=D.getDate();D.setDate(1);A.month!=void 0&&D.setMonth(A.month);A.day!=void 0?D.setDate(A.day):(y=VHG(D.getFullYear(),D.getMonth()),D.setDate(n>y?y:n));typeof D.setHours==="function"&&(A.hours==void 0&&(A.hours=D.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)),D.setHours(A.hours));typeof D.setMinutes==="function"&&A.minutes!=void 0&&D.setMinutes(A.minutes);typeof D.setSeconds==="function"&&A.seconds!=void 0&&D.setSeconds(A.seconds);typeof D.setMilliseconds==="function"&&A.milliseconds!=void 0&&D.setMilliseconds(A.milliseconds);if(l&&(A.year&&A.year!=D.getFullYear()||A.month&&A.month!=
D.getMonth()||A.day&&A.day!=D.getDate()||A.hours&&A.hours>=24||A.minutes&&A.minutes>=60||A.seconds&&A.seconds>=60||A.milliseconds&&A.milliseconds>=1E3))D=!1;else{A.tzOffset!=void 0&&D.setTime(D.getTime()+(A.tzOffset-D.getTimezoneOffset())*60*1E3);A.ambiguousYear&&(l=new Date,l.setFullYear(l.getFullYear()-80),D.getTime()<l.getTime()&&D.setFullYear(l.getFullYear()+100));if(A.dayOfWeek!=void 0)if(A.day==void 0)A=(7+A.dayOfWeek-D.getDay())%7,A>3&&(A-=7),l=D.getMonth(),D.setDate(D.getDate()+A),D.getMonth()!=
l&&D.setDate(D.getDate()+(A>0?-7:7));else if(A.dayOfWeek!=D.getDay()){D=!1;break a}D=!0}}return D?U[0]:0};
var BNv=function(l,D,U,n,y,A,C){Wr8(D,U);if(n.numeric&&y>0&&U[0]+y>D.length)return!1;switch(n.text.charAt(0)){case "G":return UC(D,U,[l.JSC$11492_dateTimeSymbols_.ERAS],function(h){return A.era=h}),!0;
case "M":case "L":return CI5(l,D,U,y,n,A);case "E":return UC(D,U,[l.JSC$11492_dateTimeSymbols_.WEEKDAYS,l.JSC$11492_dateTimeSymbols_.SHORTWEEKDAYS],function(h){return A.dayOfWeek=h});
case "B":case "b":return y=[],l=[[].concat(l.JSC$11492_dateTimeSymbols_.AMPMS)],y.push("isAm"),y.push("isPm"),D=UC(D,U,l,function(h){return A.dayPeriodIndex=h},C),A.dayPeriodName=y[A.dayPeriodIndex],C?D:!0;
case "a":return D=UC(D,U,[l.JSC$11492_dateTimeSymbols_.AMPMS],function(h){return A.ampm=h},C),C?D:!0;
case "y":return hd7(l,D,U,n,y,A);case "Q":return UC(D,U,[l.JSC$11492_dateTimeSymbols_.QUARTERS,l.JSC$11492_dateTimeSymbols_.SHORTQUARTERS],function(h){A.month=h*3;A.day=1});
case "d":return ni(l,D,U,n,y,function(h){A.day=h}),!0;
case "S":return PIg(l,D,U,y,A);case "h":case "K":case "H":case "k":return D=ni(l,D,U,n,y,function(h){A.hours=n.text.charAt(0)==="h"&&h===12?0:h},C),C?D:!0;
case "m":return D=ni(l,D,U,n,y,function(h){A.minutes=h},C),C?D:!0;
case "s":return ni(l,D,U,n,y,function(h){A.seconds=h}),!0;
case "z":case "Z":case "v":return bqh(l,D,U,A);default:return!1}},hd7=function(l,D,U,n,y,A){var C=U[0];
y=yi(l,D,U,y);y===null&&(y=yi(l,D,U,0,!0));if(y===null)return!1;y>=0&&U[0]-C==2&&n.count==2?(l=y,D=(new Date).getFullYear()-80,U=D%100,A.ambiguousYear=l==U,l+=Math.floor(D/100)*100+(l<U?100:0),A.year=l):A.year=y;return!0},CI5=function(l,D,U,n,y,A){return y.numeric&&ni(l,D,U,y,n,function(C){A.month=C-1})?!0:UC(D,U,[l.JSC$11492_dateTimeSymbols_.MONTHS,
l.JSC$11492_dateTimeSymbols_.STANDALONEMONTHS,l.JSC$11492_dateTimeSymbols_.SHORTMONTHS,l.JSC$11492_dateTimeSymbols_.STANDALONESHORTMONTHS],function(C){A.month=C})},PIg=function(l,D,U,n,y){var A=U[0];
l=yi(l,D,U,n);if(l===null)return!1;U=U[0]-A;y.milliseconds=U<3?l*Math.pow(10,3-U):Math.round(l/Math.pow(10,U-3));return!0},bqh=function(l,D,U,n){D.indexOf("GMT",U[0])==U[0]&&(U[0]+=3);
if(U[0]>=D.length)return n.tzOffset=0,!0;var y=U[0],A=yi(l,D,U,0,!0);if(A===null)return!1;if(U[0]<D.length&&D.charAt(U[0])==":"){var C=A*60;U[0]++;A=yi(l,D,U,0);if(A===null)return!1;C+=A}else C=A,C=C<24&&U[0]-y<=3?C*60:C%100+C/100*60;n.tzOffset=-C;return!0},ni=function(l,D,U,n,y,A,C){C=C||!1;
var h=U[0];l=yi(l,D,U,y);if(l===null)return!1;if(C&&U[0]-h<n.count){if(U[0]<D.length)return!1;l*=Math.pow(10,n.count-(U[0]-h))}A(l);return!0},UC=function(l,D,U,n,y){y=y||!1;
for(var A,C=0;C<U.length;C++){A=D;for(var h=U[C],b=y,u=0,Q=null,G=l.substring(A[0]).toLowerCase(),J=0;J<h.length;J++){var L=h[J].toLowerCase();if(b&&L.indexOf(G)==0){u=G.length;Q=J;break}h[J].length>u&&G.indexOf(L)==0&&(u=h[J].length,Q=J)}Q!==null&&(A[0]+=u);A=Q;if(A!==null)return n(A),!0}return!1},Wr8=function(l,D){(l=l.substring(D[0]).match(nv1))&&(D[0]+=l[0].length)},yi=function(l,D,U,n,y){D=n>0?D.substring(0,U[0]+n):D;
y=y||!1;if(l.JSC$11492_dateTimeSymbols_.ZERODIGIT){n=[];for(var A=U[0];A<D.length;A++){var C=D.charCodeAt(A)-l.JSC$11492_dateTimeSymbols_.ZERODIGIT;n.push(0<=C&&C<=9?String.fromCharCode(C+48):D.charAt(A))}D=n.join("")}else D=D.substring(U[0]);l=D.match(new RegExp("^"+(y?"[+-]?":"")+"\\d+"));if(!l)return null;U[0]+=l[0].length;return parseInt(l[0],10)},Aiy=function(){};
Aiy.prototype.ambiguousYear=!1;var gv7;
gv7={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 u7m={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}"]};
u7m={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 vvy=function(){var l={type:"unit",style:"narrow"};this.listType_=l&&l.type?l.type:"conjunction";this.listStyle_=l&&l.style?l.style:"long";this.listSymbols_=u7m;l=0;switch(this.listStyle_){case "short":l=1;break;case "narrow":l=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[l];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[l];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[l];this.listEndPattern_=
this.listSymbols_.AND_END[l];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[l];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[l];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[l];this.listEndPattern_=this.listSymbols_.OR_END[l];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[l],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[l],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[l],this.listEndPattern_=this.listSymbols_.UNIT_END[l]}};
vvy.prototype.format=function(l){return QT8(this,l)};
var QT8=function(l,D){var U=D.length;switch(U){case 0:return"";case 1:return String(D[0]);case 2:return l.listTwoPattern_.replace("{0}",String(D[0])).replace("{1}",String(D[1]))}for(var n=l.listStartPattern_.replace("{0}",String(D[0])).replace("{1}",String(D[1])),y=2;y<U-1;++y)n=l.listMiddlePattern_.replace("{0}",n).replace("{1}",String(D[y]));return l.listEndPattern_.replace("{0}",n).replace("{1}",String(D[U-1]))};var Gym={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"},Ji5=Gym,Lr7=Gym;Lr7=Ji5=Gym;var Mqz,AZ,By,CrN,Wy,qEH;
_.oJ=function(l,D,U,n){var y;if(y=D){a:if(D&&D.length===3){for(y=0;y<3;y++){var A=D[y];if(A<"A"||A>"Z"&&A<"a"||A>"z"){y=!1;break a}}y=!0}else y=!1;y=!y}if(y)throw new TypeError("fe");this.intlCurrencyCode_=D?D.toUpperCase():null;this.currencyStyle_=U||0;this.overrideNumberFormatSymbols_=n||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_=AZ(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof l==="number")switch(l){case 1:Wy(this,AZ(this).DECIMAL_PATTERN);break;case 2:Wy(this,AZ(this).SCIENTIFIC_PATTERN);break;case 3:Wy(this,AZ(this).PERCENT_PATTERN);break;case 4:l=AZ(this).CURRENCY_PATTERN;D=["0"];if(U=
Vb[By(this)]){U=U[0]&7;if(U>0)for(D.push("."),n=0;n<U;n++)D.push("0");l=l.replace(/0.00/g,D.join(""))}Wy(this,l);break;case 5:qEH(this,1);break;case 6:qEH(this,2);break;default:throw Error("ie");}else Wy(this,l)};
Mqz=!1;AZ=function(l){return l.overrideNumberFormatSymbols_||(Mqz?Lr7:Ji5)};
By=function(l){return l.intlCurrencyCode_||AZ(l).DEF_CURRENCY_CODE};
CrN=function(l,D){if(D>308)throw Error("he`"+D);l.maximumFractionDigits_=D;return l};
Wy=function(l,D){var U=[0];l.positivePrefix_=Rdv(l,D,U);for(var n=U[0],y=-1,A=0,C=0,h=0,b=-1,u=D.length,Q=!0;U[0]<u&&Q;U[0]++)switch(D.charAt(U[0])){case "#":C>0?h++:A++;b>=0&&y<0&&b++;break;case "0":if(h>0)throw Error("oe`"+D);C++;b>=0&&y<0&&b++;break;case ",":b>0&&l.groupingArray_.push(b);b=0;break;case ".":if(y>=0)throw Error("pe`"+D);y=A+C+h;break;case "E":if(l.useExponentialNotation_)throw Error("qe`"+D);l.useExponentialNotation_=!0;l.minExponentDigits_=0;U[0]+1<u&&D.charAt(U[0]+1)=="+"&&(U[0]++,
l.useSignForPositiveExponent_=!0);for(;U[0]+1<u&&D.charAt(U[0]+1)=="0";)U[0]++,l.minExponentDigits_++;if(A+C<1||l.minExponentDigits_<1)throw Error("re`"+D);Q=!1;break;default:U[0]--,Q=!1}C==0&&A>0&&y>=0&&(C=y,C==0&&C++,h=A-C,A=C-1,C=1);if(y<0&&h>0||y>=0&&(y<A||y>A+C)||b==0)throw Error("se`"+D);h=A+C+h;l.maximumFractionDigits_=y>=0?h-y:0;y>=0&&(l.minimumFractionDigits_=A+C-y,l.minimumFractionDigits_<0&&(l.minimumFractionDigits_=0));l.minimumIntegerDigits_=(y>=0?y:h)-A;l.useExponentialNotation_&&(l.maximumIntegerDigits_=
A+l.minimumIntegerDigits_,l.maximumFractionDigits_==0&&l.minimumIntegerDigits_==0&&(l.minimumIntegerDigits_=1));l.groupingArray_.push(Math.max(0,b));l.decimalSeparatorAlwaysShown_=y==0||y==h;n=U[0]-n;l.positiveSuffix_=Rdv(l,D,U);U[0]<D.length&&D.charAt(U[0])==";"?(U[0]++,l.multiplier_!=1&&(l.negativePercentSignExpected_=!0),l.negativePrefix_=Rdv(l,D,U),U[0]+=n,l.negativeSuffix_=Rdv(l,D,U)):(l.negativePrefix_+=l.positivePrefix_,l.negativeSuffix_+=l.positiveSuffix_)};
qEH=function(l,D){l.compactStyle_=D;Wy(l,AZ(l).DECIMAL_PATTERN);l.minimumFractionDigits_=0;CrN(l,2);if(l.minimumFractionDigits_>0)throw Error("ge");l.significantDigits_=2};
_.oJ.prototype.parse=function(l,D){D=D||[0];if(this.compactStyle_!==0)throw Error("je");l=l.replace(/ |\u202f/g,"\u00a0");var U=l.indexOf(this.positivePrefix_,D[0])==D[0],n=l.indexOf(this.negativePrefix_,D[0])==D[0];U&&n&&(this.positivePrefix_.length>this.negativePrefix_.length?n=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(U=!1));U?D[0]+=this.positivePrefix_.length:n&&(D[0]+=this.negativePrefix_.length);if(l.indexOf(AZ(this).INFINITY,D[0])==D[0]){D[0]+=AZ(this).INFINITY.length;var y=
Infinity}else{y=l;var A=!1,C=!1,h=!1,b=-1,u=1,Q=AZ(this).DECIMAL_SEP,G=AZ(this).GROUP_SEP,J=AZ(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");G=G.replace(/\u202f/g,"\u00a0");for(var L="";D[0]<y.length;D[0]++){var R=y.charAt(D[0]),a=Zqk(this,R);if(a>=0&&a<=9)L+=a,h=!0;else if(R==Q.charAt(0)){if(A||C)break;L+=".";A=!0}else if(R==G.charAt(0)&&("\u00a0"!=G.charAt(0)||D[0]+1<y.length&&Zqk(this,y.charAt(D[0]+1))>=0)){if(A||C)break}else if(R==J.charAt(0)){if(C)break;L+="E";C=!0;b=D[0]}else if(R==
"+"||R=="-"){if(h&&b!=D[0]-1)break;L+=R}else if(this.multiplier_==1&&R==AZ(this).PERCENT.charAt(0)){if(u!=1)break;u=100;if(h){D[0]++;break}}else if(this.multiplier_==1&&R==AZ(this).PERMILL.charAt(0)){if(u!=1)break;u=1E3;if(h){D[0]++;break}}else break}this.multiplier_!=1&&(u=this.multiplier_);y=parseFloat(L)/u}if(U){if(l.indexOf(this.positiveSuffix_,D[0])!=D[0])return NaN;D[0]+=this.positiveSuffix_.length}else if(n){if(l.indexOf(this.negativeSuffix_,D[0])!=D[0])return NaN;D[0]+=this.negativeSuffix_.length}return n?
-y:y};
_.oJ.prototype.format=function(l){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(l))return AZ(this).NAN;var D=[];var U=l;if(this.compactStyle_==0)U=Ci;else{U=Math.abs(U);var n=edk(this,U<=1?0:mJv(U)).divisorBase;U=edk(this,n+mJv(aXg(this,hZ(U,-n)).intValue))}l=hZ(l,-U.divisorBase);(n=l<0||l==0&&1/l<0)?U.negative_prefix?D.push(U.negative_prefix):(D.push(U.prefix),D.push(this.negativePrefix_)):(D.push(U.prefix),D.push(this.positivePrefix_));if(isFinite(l))if(l*=
n?-1:1,l*=this.multiplier_,this.useExponentialNotation_){var y=l;if(y==0)tqm(this,y,this.minimumIntegerDigits_,D),Xrg(this,0,D);else{var A=Math.floor(Math.log(y)/Math.log(10)+2E-15);y=hZ(y,-A);var C=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(C=A%this.maximumIntegerDigits_,C<0&&(C=this.maximumIntegerDigits_+C),y=hZ(y,C),A-=C,C=1):this.minimumIntegerDigits_<1?(A++,y=hZ(y,-1)):(A-=this.minimumIntegerDigits_-1,y=hZ(y,this.minimumIntegerDigits_-
1));tqm(this,y,C,D);Xrg(this,A,D)}}else tqm(this,l,this.minimumIntegerDigits_,D);else D.push(AZ(this).INFINITY);n?U.negative_suffix?D.push(U.negative_suffix):(isFinite(l)&&D.push(U.suffix),D.push(this.negativeSuffix_)):(isFinite(l)&&D.push(U.suffix),D.push(this.positiveSuffix_));return D.join("")};
var aXg=function(l,D){var U=hZ(D,l.maximumFractionDigits_);l.significantDigits_>0&&(U=SE7(U,l.significantDigits_,l.maximumFractionDigits_));U=Math.round(U);if(isFinite(U)){var n=Math.floor(hZ(U,-l.maximumFractionDigits_));U=Math.floor(U-hZ(n,l.maximumFractionDigits_));if(U<0||U>=hZ(1,l.maximumFractionDigits_))n=Math.round(D),U=0}else n=D,U=0;return{intValue:n,fracValue:U}},tqm=function(l,D,U,n){if(l.minimumFractionDigits_>l.maximumFractionDigits_)throw Error("le");
n||(n=[]);D=aXg(l,D);var y=D.intValue,A=D.fracValue,C=l.minimumFractionDigits_>0||A>0||!1;D=l.minimumFractionDigits_;C&&(D=l.minimumFractionDigits_);for(var h="",b=y;b>1E20;)h="0"+h,b=Math.round(hZ(b,-1));h=b+h;var u=AZ(l).DECIMAL_SEP;b=AZ(l).ZERO_DIGIT.codePointAt(0);var Q=h.length,G=0;if(y>0||U>0){for(y=Q;y<U;y++)n.push(String.fromCodePoint(b));if(l.groupingArray_.length>=2)for(U=1;U<l.groupingArray_.length;U++)G+=l.groupingArray_[U];U=Q-G;if(U>0){y=l.groupingArray_;G=Q=0;for(var J,L=AZ(l).GROUP_SEP,
R=h.length,a=0;a<R;a++)if(n.push(String.fromCodePoint(b+Number(h.charAt(a)))),R-a>1)if(J=y[G],a<U){var S=U-a;(J===1||J>0&&S%J===1)&&n.push(L)}else G<y.length&&(a===U?G+=1:J===a-U-Q+1&&(n.push(L),Q+=J,G+=1))}else{U=h;h=l.groupingArray_;y=AZ(l).GROUP_SEP;J=U.length;L=[];for(Q=h.length-1;Q>=0&&J>0;Q--){G=h[Q];for(R=0;R<G&&J-R-1>=0;R++)L.push(String.fromCodePoint(b+Number(U.charAt(J-R-1))));J-=G;J>0&&L.push(y)}n.push.apply(n,L.reverse())}}else C||n.push(String.fromCodePoint(b));(l.decimalSeparatorAlwaysShown_||
C)&&n.push(u);A=String(A);C=A.split("e+");C.length==2&&(A=String(SE7(parseFloat(C[0]),l.significantDigits_,1)),A=A.replace(".",""),A+=(0,_.C8v)("0",parseInt(C[1],10)-A.length+1));l.maximumFractionDigits_+1>A.length&&(A="1"+(0,_.C8v)("0",l.maximumFractionDigits_-A.length)+A);for(l=A.length;A.charAt(l-1)=="0"&&l>D+1;)l--;for(D=1;D<l;D++)n.push(String.fromCodePoint(b+Number(A.charAt(D))))},Xrg=function(l,D,U){U.push(AZ(l).EXP_SYMBOL);
D<0?(D=-D,U.push(AZ(l).MINUS_SIGN)):l.useSignForPositiveExponent_&&U.push(AZ(l).PLUS_SIGN);D=""+D;for(var n=AZ(l).ZERO_DIGIT,y=D.length;y<l.minExponentDigits_;y++)U.push(n);l=n.codePointAt(0)-kyh;for(n=0;n<D.length;n++)U.push(String.fromCodePoint(l+D.codePointAt(n)))},Zqk=function(l,D){D=D.codePointAt(0);
if(48<=D&&D<58)return D-48;l=AZ(l).ZERO_DIGIT.codePointAt(0);return l<=D&&D<l+10?D-l:-1},kyh="0".codePointAt(0),Rdv=function(l,D,U){for(var n="",y=!1,A=D.length;U[0]<A;U[0]++){var C=D.charAt(U[0]);
if(C=="'")U[0]+1<A&&D.charAt(U[0]+1)=="'"?(U[0]++,n+="'"):y=!y;else if(y)n+=C;else switch(C){case "#":case "0":case ",":case ".":case ";":return n;case "\u00a4":if(U[0]+1<A&&D.charAt(U[0]+1)=="\u00a4")U[0]++,n+=By(l);else switch(l.currencyStyle_){case 0:C=By(l);n+=C in Vb?Vb[C][1]:C;break;case 2:C=By(l);var h=Vb[C];n+=h?C==h[1]?C:C+" "+h[1]:C;break;case 1:C=By(l),n+=C in Vb?Vb[C][2]:C}break;case "%":if(!l.negativePercentSignExpected_&&l.multiplier_!=1)throw Error("me");if(l.negativePercentSignExpected_&&
l.multiplier_!=100)throw Error("ne");l.multiplier_=100;l.negativePercentSignExpected_=!1;n+=AZ(l).PERCENT;break;case "\u2030":if(!l.negativePercentSignExpected_&&l.multiplier_!=1)throw Error("me");if(l.negativePercentSignExpected_&&l.multiplier_!=1E3)throw Error("ne");l.multiplier_=1E3;l.negativePercentSignExpected_=!1;n+=AZ(l).PERMILL;break;default:n+=C}}return n},Ci={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},edk=function(l,D){l=l.compactStyle_==1?OI.COMPACT_DECIMAL_SHORT_PATTERN:OI.COMPACT_DECIMAL_LONG_PATTERN;l==null&&(l=OI.COMPACT_DECIMAL_SHORT_PATTERN);if(D<3)return Ci;D=Math.min(14,D);var U=l[hZ(1,D)];for(--D;!U&&D>=3;)U=l[hZ(1,D)],D--;if(!U)return Ci;U=U.other;var n=l="",y=U.indexOf(";");y>=0&&(U=U.substring(0,y),y=U.substring(y+1))&&(n=/([^0]*)(0+)(.*)/.exec(y),l=n[1],n=n[3]);return U&&U!="0"?(U=/([^0]*)(0+)(.*)/.exec(U))?{divisorBase:D+
1-(U[2].length-1),negative_prefix:l,negative_suffix:n,prefix:U[1],suffix:U[3]}:Ci:Ci},mJv=function(l){if(!isFinite(l))return l>0?l:0;
for(var D=0;(l/=10)>=1;)D++;return D},hZ=function(l,D){if(!l||!isFinite(l)||D==0)return l;
l=String(l).split("e");return parseFloat(l[0]+"e"+(parseInt(l[1]||0,10)+D))},dJh=function(l,D){return l&&isFinite(l)?hZ(Math.round(hZ(l,D)),-D):l},SE7=function(l,D,U){if(!l)return l;
D=D-mJv(l)-1;return D<-U?dJh(l,-U):dJh(l,D)};var Krv=function(l){return l%10==1&&l%100!=11?"one":l%10==2&&l%100!=12?"two":l%10==3&&l%100!=13?"few":"other"},cih=Krv;
cih=Krv;var prh=function(l,D){var U=l|0;if(void 0===D){D=Math;var n=D.min,y=l+"",A=y.indexOf(".");D=n.call(D,A===-1?0:y.length-A-1,3)}n=Math.pow(10,D);l={v:D,f:(l*n|0)%n};return U==1&&l.v==0?"one":"other"},Fo=prh;
Fo=prh;var ovm=function(l){this.JSC$11535_pattern_=l;this.parsedPattern_=this.literals_=this.initialLiterals_=null;l=Ji5;var D=OI;if(xJv!==l||jTk!==D)xJv=l,jTk=D,Frz=new _.oJ(1);this.numberFormatter_=Frz},xJv=null,jTk=null,Frz=null,wrk=RegExp("'([{}#].*?)'","g"),riv=RegExp("''","g");
ovm.prototype.format=function(l){if(this.JSC$11535_pattern_){this.initialLiterals_=[];var D=zdh(this,this.JSC$11535_pattern_);this.parsedPattern_=fX1(this,D);this.JSC$11535_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.$9(this.initialLiterals_),D=[],$Jy(this,this.parsedPattern_,l,!1,D),l=D.join("");this.literals_.length>0;)l=l.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else l="";return l};
var $Jy=function(l,D,U,n,y){for(var A=0;A<D.length;A++)switch(D[A].type){case 4:y.push(D[A].value);break;case 3:var C=D[A].value;var h=l,b=y,u=U[C];u===void 0?b.push("Undefined parameter - "+C):(h.literals_.push(u),b.push(h.buildPlaceholder_(h.literals_)));break;case 2:C=D[A].value;h=l;b=U;u=n;var Q=y,G=C.argumentIndex;b[G]===void 0?Q.push("Undefined parameter - "+G):(G=C[b[G]],G===void 0&&(G=C.other),$Jy(h,G,b,u,Q));break;case 0:C=D[A].value;NN7(l,C,U,Fo,n,y);break;case 1:C=D[A].value,NN7(l,C,U,
cih,n,y)}},NN7=function(l,D,U,n,y,A){var C=D.argumentIndex,h=D.argumentOffset,b=+U[C];
isNaN(b)?A.push("Undefined or invalid parameter - "+C):(h=b-h,C=D[U[C]],C===void 0&&(n=n(Math.abs(h)),C=D[n],C===void 0&&(C=D.other)),D=[],$Jy(l,C,U,y,D),U=D.join(""),y?A.push(U):(l=l.numberFormatter_.format(h),A.push(U.replace(/#/g,l))))},zdh=function(l,D){var U=l.initialLiterals_,n=l.buildPlaceholder_.bind(l);
D=D.replace(riv,function(){U.push("'");return n(U)});
return D=D.replace(wrk,function(y,A){U.push(A);return n(U)})},sTv=function(l){var D=0,U=[],n=[],y=/[{}]/g;
y.lastIndex=0;for(var A;A=y.exec(l);){var C=A.index;A[0]=="}"?(U.pop(),U.length==0&&(A={type:1},A.value=l.substring(D,C),n.push(A),D=C+1)):(U.length==0&&(D=l.substring(D,C),D!=""&&n.push({type:0,value:D}),D=C+1),U.push("{"))}l=l.substring(D);l!=""&&n.push({type:0,value:l});return n},Evg=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,TNg=/^\s*(\w+)\s*,\s*selectordinal\s*,/,IX7=/^\s*(\w+)\s*,\s*select\s*,/,fX1=function(l,D){var U=[];
D=sTv(D);for(var n=0;n<D.length;n++){var y={};if(0==D[n].type)y.type=4,y.value=D[n].value;else if(1==D[n].type){var A=D[n].value;switch(Evg.test(A)?0:TNg.test(A)?1:IX7.test(A)?2:/^\s*\w+\s*/.test(A)?3:5){case 2:y.type=2;y.value=Hq8(l,D[n].value);break;case 0:y.type=0;y.value=YE_(l,D[n].value);break;case 1:y.type=1;y.value=OqH(l,D[n].value);break;case 3:y.type=3,y.value=D[n].value}}U.push(y)}return U},Hq8=function(l,D){var U="";
D=D.replace(IX7,function(h,b){U=b;return""});
var n={};n.argumentIndex=U;D=sTv(D);for(var y=0;y<D.length;){var A=D[y].value;y++;var C=void 0;1==D[y].type&&(C=fX1(l,D[y].value));n[A.replace(/\s/g,"")]=C;y++}return n},YE_=function(l,D){var U="",n=0;
D=D.replace(Evg,function(b,u,Q){U=u;Q&&(n=parseInt(Q,10));return""});
var y={};y.argumentIndex=U;y.argumentOffset=n;D=sTv(D);for(var A=0;A<D.length;){var C=D[A].value;A++;var h=void 0;1==D[A].type&&(h=fX1(l,D[A].value));y[C.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;A++}return y},OqH=function(l,D){var U="";
D=D.replace(TNg,function(h,b){U=b;return""});
var n={};n.argumentIndex=U;n.argumentOffset=0;D=sTv(D);for(var y=0;y<D.length;){var A=D[y].value;y++;var C=void 0;1==D[y].type&&(C=fX1(l,D[y].value));n[A.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=C;y++}return n};
ovm.prototype.buildPlaceholder_=function(l){return"\ufddf_"+(l.length-1).toString(10)+"_"};var hcN=function(){var l={style:1},D=Vqz;this.style_=(l==null?void 0:l.style)||0;this.durationSymbols_=D||gv7},i4h=function(l,D){switch(D){default:case "years":return l.durationSymbols_.YEAR;
case "months":return l.durationSymbols_.MONTH;case "weeks":return l.durationSymbols_.WEEK;case "days":return l.durationSymbols_.DAY;case "hours":return l.durationSymbols_.HOUR;case "minutes":return l.durationSymbols_.MINUTE;case "seconds":return l.durationSymbols_.SECOND}},Py=function(l,D,U){a:{U=i4h(l,U);
switch(l.style_){case 1:if(U.LONG!=void 0){l=U.LONG;break a}case 2:if(U.NARROW!=void 0){l=U.NARROW;break a}default:l=U.SHORT;break a}l=void 0}return l?(new ovm("{DURATION_VALUE,plural,"+l+"}")).format({DURATION_VALUE:D}):""};
hcN.prototype.format=function(l){var D=[],U=l.years,n=l.months,y=l.weeks,A=l.days,C=l.hours,h=l.minutes;l=l.seconds;U!=null&&D.push(Py(this,U,"years"));n!=null&&D.push(Py(this,n,"months"));y!=null&&D.push(Py(this,y,"weeks"));A!=null&&D.push(Py(this,A,"days"));C!=null&&D.push(Py(this,C,"hours"));h!=null&&D.push(Py(this,h,"minutes"));l!=null&&D.push(Py(this,l,"seconds"));return(new vvy).format(D)};var lf1;
lf1={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 m2s=function(){this.rdtfSymbols_=Ddk||lf1;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
m2s.prototype.format=function(l,D){a:{D=Udg(this,D);switch(this.style_){case 2:if(D.NARROW!=void 0){D=D.NARROW;break a}case 1:if(D.SHORT!=void 0){D=D.SHORT;break a}default:D=D.LONG;break a}D=void 0}if(!this.alwaysNumeric_&&D&&D.R&&D.R[""+l])l=D.R[""+l];else if(D){var U=Math.abs(l);l=(new ovm("{N,plural,"+(l>0||l==0&&1/l==Infinity?D.F:D.P)+"}")).format({N:U})}else l="";return l};
var Udg=function(l,D){switch(D){default:case 0:return l.rdtfSymbols_.YEAR;case 1:return l.rdtfSymbols_.QUARTER;case 2:return l.rdtfSymbols_.MONTH;case 3:return l.rdtfSymbols_.WEEK;case 4:return l.rdtfSymbols_.DAY;case 5:return l.rdtfSymbols_.HOUR;case 6:return l.rdtfSymbols_.MINUTE;case 7:return l.rdtfSymbols_.SECOND}};var nXg=function(l,D,U,n,y,A,C,h){this.x0=l;this.y0=D;this.x1=U;this.y1=n;this.x2=y;this.y2=A;this.x3=C;this.y3=h};
nXg.prototype.clone=function(){return new nXg(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
nXg.prototype.equals=function(l){return this.x0==l.x0&&this.y0==l.y0&&this.x1==l.x1&&this.y1==l.y1&&this.x2==l.x2&&this.y2==l.y2&&this.x3==l.x3&&this.y3==l.y3};
var yB_=function(l,D){if(D==0)return l.x0;if(D==1)return l.x3;var U=aR(l.x0,l.x1,D),n=aR(l.x1,l.x2,D);l=aR(l.x2,l.x3,D);U=aR(U,n,D);n=aR(n,l,D);return aR(U,n,D)},ABv=function(l,D){var U=(D-l.x0)/(l.x3-l.x0);
if(U<=0)return 0;if(U>=1)return 1;for(var n=0,y=1,A=0,C=0;C<8;C++){A=yB_(l,U);var h=(yB_(l,U+1E-6)-A)/1E-6;if(Math.abs(A-D)<1E-6)return U;if(Math.abs(h)<1E-6)break;else A<D?n=U:y=U,U-=(A-D)/h}for(C=0;Math.abs(A-D)>1E-6&&C<8;C++)A<D?(n=U,U=(U+y)/2):(y=U,U=(U+n)/2),A=yB_(l,U);return U};var b3=function(){_.Xa.call(this);this.JSC$11556_name_="closure_frame"+WGy++;this.iframesForDisposal_=[];Bk7[this.JSC$11556_name_]=this},gD;
_.HI(b3,_.Xa);var Bk7={},WGy=0,Cq8=function(l,D){var U=K2(l);gGy(D,function(n,y){Array.isArray(n)||(n=[n]);_.Ac(n,function(A){A=U.JSC$9409_createDom("INPUT",{type:"hidden",name:y,value:A});l.appendChild(A)})})};
_.W=b3.prototype;_.W.JSC$11558_form_=null;_.W.JSC$11558_iframe_=null;_.W.iframeName_=null;_.W.nextIframeId_=0;_.W.JSC$11558_active_=!1;_.W.complete_=!1;_.W.success_=!1;_.W.lastContent_=null;_.W.JSC$11558_lastErrorCode_=0;_.W.iframeDisposalTimer_=null;
_.W.send=function(l,D,U,n){if(this.JSC$11558_active_)throw Error("te");l=new _.fI(l);D=D?D.toUpperCase():"GET";U&&_.uo(l);gD||(gD=_.kh("FORM"),gD.acceptCharset="utf-8",U=gD.style,U.position="absolute",U.visibility="hidden",U.top=U.left="-10px",U.width=U.height="10px",U.overflow="hidden",document.body.appendChild(gD));this.JSC$11558_form_=gD;D=="GET"&&Cq8(this.JSC$11558_form_,l.JSC$10113_queryData_);n&&Cq8(this.JSC$11558_form_,n);U=l.toString();U=fJ3(U);n=this.JSC$11558_form_;U=_.Tq(jD(U));U!==void 0&&
(n.action=U);this.JSC$11558_form_.method=D;hWv(this);Pq8(this)};
_.W.abort=function(l){if(this.JSC$11558_active_){var D=u3(this);if(D)if(mO(D))D.removeAllListeners(void 0);else if(D=aP(D)){var U=0,n;for(n in D.listeners)for(var y=D.listeners[n].concat(),A=0;A<y.length;++A)um(y[A])&&++U}this.success_=this.JSC$11558_active_=this.complete_=!1;this.JSC$11558_lastErrorCode_=l||7;this.dispatchEvent("abort");b4m(this)}};
_.W.disposeInternal=function(){this.JSC$11558_active_&&this.abort();b3.superClass_.disposeInternal.call(this);this.JSC$11558_iframe_&&gXh(this);Pq8(this);this.JSC$11558_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11558_form_=null;this.JSC$11558_lastErrorCode_=0;delete Bk7[this.JSC$11556_name_]};
_.W.isComplete=function(){return this.complete_};
_.W.isSuccess=function(){return this.success_};
_.W.isActive=function(){return this.JSC$11558_active_};
_.W.getResponseText=function(){return this.lastContent_};
_.W.getLastError=function(){return _.$1g(this.JSC$11558_lastErrorCode_)};
var hWv=function(l){l.JSC$11558_active_=!0;l.complete_=!1;l.JSC$11558_lastErrorCode_=0;l.iframeName_=l.JSC$11556_name_+"_"+(l.nextIframeId_++).toString(36);l.JSC$11558_iframe_=K2(l.JSC$11558_form_).JSC$9409_createDom("IFRAME",{name:l.iframeName_,id:l.iframeName_});var D=l.JSC$11558_iframe_.style;D.visibility="hidden";D.width=D.height="10px";D.display="none";_.Do?D.marginTop=D.marginLeft="-10px":(D.position="absolute",D.top=D.left="-10px");K2(l.JSC$11558_form_).JSC$9407_document_.body.appendChild(l.JSC$11558_iframe_);
D=l.iframeName_+"_inner";var U=Sjh(l.JSC$11558_iframe_);if(document.baseURI){var n=DX(D);n='<head><base href="'+DX(document.baseURI)+'"></head><body><iframe id="'+n+'" name="'+n+'"></iframe>';n=YC(n)}else n=DX(D),n=YC('<body><iframe id="'+n+'" name="'+n+'"></iframe>');U.write(V1(n));_.Gt(U.getElementById(D),"load",l.onIframeLoaded_,!1,l);n=ds("TEXTAREA",l.JSC$11558_form_);for(var y=0,A=n.length;y<A;y++){var C=n[y].value;xG_(n[y])!=C&&(_.Fp(n[y],C),n[y].value=C)}n=U.importNode(l.JSC$11558_form_,!0);
n.target=D;n.action=l.JSC$11558_form_.action;U.body.appendChild(n);y=ds("SELECT",l.JSC$11558_form_);A=ds("SELECT",n);C=0;for(var h=y.length;C<h;C++)for(var b=ds("OPTION",y[C]),u=ds("OPTION",A[C]),Q=0,G=b.length;Q<G;Q++)u[Q].selected=b[Q].selected;y=ds("INPUT",l.JSC$11558_form_);A=ds("INPUT",n);C=0;for(h=y.length;C<h;C++)if(y[C].type=="file"&&y[C].value!=A[C].value){l.JSC$11558_form_.target=D;n=l.JSC$11558_form_;break}try{l.errorHandled_=!1,n.submit(),U.close(),_.lB&&setTimeout(l.testForFirefoxSilentError_.bind(l),
250)}catch(J){_.tX(U.getElementById(D),"load",l.onIframeLoaded_,!1,l),U.close(),vy(l,2)}};
b3.prototype.onIframeLoaded_=function(){_.tX(u3(this),"load",this.onIframeLoaded_,!1,this);try{var l=this.JSC$11558_iframe_?Sjh(u3(this)):null;this.complete_=!0;this.JSC$11558_active_=!1;try{var D=l.body;this.lastContent_=D.textContent||D.innerText}catch(y){var U=1}var n;U||typeof this.errorChecker_!="function"||(n=this.errorChecker_(l))&&(U=4);U?vy(this,U):(this.success_=!0,this.JSC$11558_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),b4m(this))}catch(y){vy(this,1)}};
var vy=function(l,D){l.errorHandled_||(l.success_=!1,l.JSC$11558_active_=!1,l.complete_=!0,l.JSC$11558_lastErrorCode_=D,l.dispatchEvent("complete"),l.dispatchEvent("error"),b4m(l),l.errorHandled_=!0)},b4m=function(l){gXh(l);
Pq8(l);l.JSC$11558_form_=null;l.dispatchEvent("ready")},gXh=function(l){var D=l.JSC$11558_iframe_;
D&&(D.onreadystatechange=null,D.onload=null,D.onerror=null,l.iframesForDisposal_.push(D));l.iframeDisposalTimer_&&(clearTimeout(l.iframeDisposalTimer_),l.iframeDisposalTimer_=null);_.lB?l.iframeDisposalTimer_=setTimeout(l.disposeIframes_.bind(l),2E3):l.disposeIframes_();l.JSC$11558_iframe_=null;l.iframeName_=null};
b3.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var l=this.iframesForDisposal_.pop();_.kT(l)}};
var Pq8=function(l){l.JSC$11558_form_&&l.JSC$11558_form_==gD&&_.cl(l.JSC$11558_form_)},u3=function(l){return l.JSC$11558_iframe_?Sjh(l.JSC$11558_iframe_).getElementById(l.iframeName_+"_inner"):null};
b3.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11558_active_){var l=this.JSC$11558_iframe_?Sjh(u3(this)):null;l&&!xGg(l,"documentUri")?(_.tX(u3(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?vy(this,3):vy(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Qi=function(l){return l=="\r"||l=="\n"||l==" "||l=="\t"};var uZv;_.G2=function(l){this.errorMessage_=null;this.result_=[];this.JSC$11560_buffer_="";this.stack_=[];this.JSC$11560_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!l||!l.deliverMessageAsRawString)};
uZv={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};_.G2.prototype.isInputValid=function(){return this.streamState_!=3};
_.G2.prototype.done=function(){return this.streamState_===2};
var JZ=function(l,D,U){l.streamState_=3;l.errorMessage_="The stream is broken @"+l.JSC$11560_pos_+"/"+U+". With input:\n"+D;throw Error(l.errorMessage_);};
_.G2.prototype.acceptsBinaryInput=function(){return!1};
_.G2.prototype.parse=function(l){function D(){for(;J<l.length;)if(_.Qi(l[J]))J++,A.JSC$11560_pos_++;else break;return J<u}
function U(){for(var R;;){R=l[J++];if(!R)break;A.JSC$11560_pos_++;switch(A.state_){case b.INIT:R==="{"?A.state_=b.OBJECT_OPEN:R==="["?A.state_=b.ARRAY_OPEN:_.Qi(R)||JZ(A,l,J);continue;case b.KEY_START:case b.OBJECT_OPEN:if(_.Qi(R))continue;if(A.state_===b.KEY_START)C.push(b.KEY_END);else if(R==="}"){y("{}");A.state_=n();continue}else C.push(b.OBJECT_END);R==='"'?A.state_=b.STRING:JZ(A,l,J);continue;case b.KEY_END:case b.OBJECT_END:if(_.Qi(R))continue;R===":"?(A.state_===b.OBJECT_END&&(C.push(b.OBJECT_END),
A.depth_++),A.state_=b.VALUE):R==="}"?(A.depth_--,y(),A.state_=n()):R===","?(A.state_===b.OBJECT_END&&C.push(b.OBJECT_END),A.state_=b.KEY_START):JZ(A,l,J);continue;case b.ARRAY_OPEN:case b.VALUE:if(_.Qi(R))continue;if(A.state_===b.ARRAY_OPEN)if(A.depth_++,A.state_=b.VALUE,R==="]"){A.depth_--;if(A.depth_===0){A.state_=b.ARRAY_END;return}y("[]");A.state_=n();continue}else C.push(b.ARRAY_END);R==='"'?A.state_=b.STRING:R==="{"?A.state_=b.OBJECT_OPEN:R==="["?A.state_=b.ARRAY_OPEN:R==="t"?A.state_=b.TRUE1:
R==="f"?A.state_=b.FALSE1:R==="n"?A.state_=b.NULL1:R!=="-"&&("0123456789".indexOf(R)!==-1?A.state_=b.NUM_DIGIT:JZ(A,l,J));continue;case b.ARRAY_END:if(R===",")C.push(b.ARRAY_END),A.state_=b.VALUE,A.depth_===1&&(G=J);else if(R==="]"){A.depth_--;if(A.depth_===0)return;y();A.state_=n()}else if(_.Qi(R))continue;else JZ(A,l,J);continue;case b.STRING:var a=J;a:for(;;){for(;A.unicodeCount_>0;)if(R=l[J++],A.unicodeCount_===4?A.unicodeCount_=0:A.unicodeCount_++,!R)break a;if(R==='"'&&!A.slashed_){A.state_=
n();break}if(R==="\\"&&!A.slashed_&&(A.slashed_=!0,R=l[J++],!R))break;if(A.slashed_)if(A.slashed_=!1,R==="u"&&(A.unicodeCount_=1),R=l[J++])continue;else break;h.lastIndex=J;R=h.exec(l);if(!R){J=l.length+1;break}J=R.index+1;R=l[R.index];if(!R)break}A.JSC$11560_pos_+=J-a;continue;case b.TRUE1:if(!R)continue;R==="r"?A.state_=b.TRUE2:JZ(A,l,J);continue;case b.TRUE2:if(!R)continue;R==="u"?A.state_=b.TRUE3:JZ(A,l,J);continue;case b.TRUE3:if(!R)continue;R==="e"?A.state_=n():JZ(A,l,J);continue;case b.FALSE1:if(!R)continue;
R==="a"?A.state_=b.FALSE2:JZ(A,l,J);continue;case b.FALSE2:if(!R)continue;R==="l"?A.state_=b.FALSE3:JZ(A,l,J);continue;case b.FALSE3:if(!R)continue;R==="s"?A.state_=b.FALSE4:JZ(A,l,J);continue;case b.FALSE4:if(!R)continue;R==="e"?A.state_=n():JZ(A,l,J);continue;case b.NULL1:if(!R)continue;R==="u"?A.state_=b.NULL2:JZ(A,l,J);continue;case b.NULL2:if(!R)continue;R==="l"?A.state_=b.NULL3:JZ(A,l,J);continue;case b.NULL3:if(!R)continue;R==="l"?A.state_=n():JZ(A,l,J);continue;case b.NUM_DECIMAL_POINT:R===
"."?A.state_=b.NUM_DIGIT:JZ(A,l,J);continue;case b.NUM_DIGIT:if("0123456789.eE+-".indexOf(R)!==-1)continue;else J--,A.JSC$11560_pos_--,A.state_=n();continue;default:JZ(A,l,J)}}}
function n(){var R=C.pop();return R!=null?R:b.VALUE}
function y(R){A.depth_>1||(R||(R=G===-1?A.JSC$11560_buffer_+l.substring(Q,J):l.substring(G,J)),A.deliverMessageAsRawString_?A.result_.push(R):A.result_.push(JSON.parse(R)),G=J)}
for(var A=this,C=A.stack_,h=A.stringInputPattern_,b=uZv,u=l.length,Q=0,G=-1,J=0;J<u;)switch(A.streamState_){case 3:return JZ(A,l,J),null;case 2:return D()&&JZ(A,l,J),null;case 0:if(D()){var L=l[J++];A.JSC$11560_pos_++;if(L==="["){A.streamState_=1;Q=J;A.state_=b.ARRAY_OPEN;continue}else JZ(A,l,J)}return null;case 1:return U(),A.depth_===0&&A.state_==b.ARRAY_END?(A.streamState_=2,A.JSC$11560_buffer_=l.substring(J)):A.JSC$11560_buffer_=G===-1?A.JSC$11560_buffer_+l.substring(Q):l.substring(G),A.result_.length>
0?(L=A.result_,A.result_=[],L):null}return null};_.HI(_.mw,ft);tO.prototype.getValue=function(){return this.JSC$11568_value_};
tO.prototype.clone=function(){return new tO(this.JSC$11568_key_,this.JSC$11568_value_)};var Li=function(l){this.nodes_=[];if(l)a:{if(l instanceof Li){var D=l.getKeys();l=l.getValues();if(this.getCount()<=0){for(var U=this.nodes_,n=0;n<D.length;n++)U.push(new tO(D[n],l[n]));break a}}else D=_.we.getKeys(l),l=_.we.getValues(l);for(U=0;U<D.length;U++)this.insert(D[U],l[U])}};
_.W=Li.prototype;_.W.insert=function(l,D){var U=this.nodes_;U.push(new tO(l,D));l=U.length-1;D=this.nodes_;for(U=D[l];l>0;){var n=l-1>>1;if(D[n].JSC$11568_key_>U.JSC$11568_key_)D[l]=D[n],l=n;else break}D[l]=U};
_.W.remove=function(){var l=this.nodes_,D=l.length,U=l[0];if(!(D<=0)){if(D==1)l.length=0;else{l[0]=l.pop();l=0;D=this.nodes_;for(var n=D.length,y=D[l];l<n>>1;){var A=l*2+1,C=l*2+2;A=C<n&&D[C].JSC$11568_key_<D[A].JSC$11568_key_?C:A;if(D[A].JSC$11568_key_>y.JSC$11568_key_)break;D[l]=D[A];l=A}D[l]=y}return U.getValue()}};
_.W.peek=function(){var l=this.nodes_;if(l.length!=0)return l[0].getValue()};
_.W.getValues=function(){for(var l=this.nodes_,D=[],U=l.length,n=0;n<U;n++)D.push(l[n].getValue());return D};
_.W.getKeys=function(){for(var l=this.nodes_,D=[],U=l.length,n=0;n<U;n++)D.push(l[n].JSC$11568_key_);return D};
_.W.containsValue=function(l){return this.nodes_.some(function(D){return D.getValue()==l})};
_.W.containsKey=function(l){return this.nodes_.some(function(D){return D.JSC$11568_key_==l})};
_.W.clone=function(){return new Li(this)};
_.W.getCount=function(){return this.nodes_.length};
_.W.isEmpty=function(){return this.nodes_.length===0};
_.W.clear=function(){this.nodes_.length=0};_.qT=function(l,D){this.JSC$11574_map_={};this.JSC$11574_keys_=[];this.version_=this.size=0;var U=arguments.length;if(U>1){if(U%2)throw Error("ma");for(var n=0;n<U;n+=2)this.set(arguments[n],arguments[n+1])}else l&&this.addAll(l)};
_.W=_.qT.prototype;_.W.getCount=function(){return this.size};
_.W.getValues=function(){MT(this);for(var l=[],D=0;D<this.JSC$11574_keys_.length;D++)l.push(this.JSC$11574_map_[this.JSC$11574_keys_[D]]);return l};
_.W.getKeys=function(){MT(this);return this.JSC$11574_keys_.concat()};
_.W.containsKey=function(l){return this.has(l)};
_.W.has=function(l){return Rx(this.JSC$11574_map_,l)};
_.W.containsValue=function(l){for(var D=0;D<this.JSC$11574_keys_.length;D++){var U=this.JSC$11574_keys_[D];if(Rx(this.JSC$11574_map_,U)&&this.JSC$11574_map_[U]==l)return!0}return!1};
_.W.equals=function(l,D){if(this===l)return!0;if(this.size!=l.getCount())return!1;D=D||vX_;MT(this);for(var U,n=0;U=this.JSC$11574_keys_[n];n++)if(!D(this.get(U),l.get(U)))return!1;return!0};
var vX_=function(l,D){return l===D};
_.qT.prototype.isEmpty=function(){return this.size==0};
_.qT.prototype.clear=function(){this.JSC$11574_map_={};this.version_=this.size=this.JSC$11574_keys_.length=0};
_.qT.prototype.remove=function(l){return this.delete(l)};
_.qT.prototype.delete=function(l){return Rx(this.JSC$11574_map_,l)?(delete this.JSC$11574_map_[l],--this.size,this.version_++,this.JSC$11574_keys_.length>2*this.size&&MT(this),!0):!1};
var MT=function(l){if(l.size!=l.JSC$11574_keys_.length){for(var D=0,U=0;D<l.JSC$11574_keys_.length;){var n=l.JSC$11574_keys_[D];Rx(l.JSC$11574_map_,n)&&(l.JSC$11574_keys_[U++]=n);D++}l.JSC$11574_keys_.length=U}if(l.size!=l.JSC$11574_keys_.length){D={};for(n=U=0;U<l.JSC$11574_keys_.length;){var y=l.JSC$11574_keys_[U];Rx(D,y)||(l.JSC$11574_keys_[n++]=y,D[y]=1);U++}l.JSC$11574_keys_.length=n}};
_.W=_.qT.prototype;_.W.get=function(l,D){return Rx(this.JSC$11574_map_,l)?this.JSC$11574_map_[l]:D};
_.W.set=function(l,D){Rx(this.JSC$11574_map_,l)||(this.size+=1,this.JSC$11574_keys_.push(l),this.version_++);this.JSC$11574_map_[l]=D};
_.W.addAll=function(l){if(l instanceof _.qT)for(var D=l.getKeys(),U=0;U<D.length;U++)this.set(D[U],l.get(D[U]));else for(D in l)this.set(D,l[D])};
_.W.forEach=function(l,D){for(var U=this.getKeys(),n=0;n<U.length;n++){var y=U[n],A=this.get(y);l.call(D,A,y,this)}};
_.W.clone=function(){return new _.qT(this)};
_.W.transpose=function(){for(var l=new _.qT,D=0;D<this.JSC$11574_keys_.length;D++){var U=this.JSC$11574_keys_[D];l.set(this.JSC$11574_map_[U],U)}return l};
_.W.keys=function(){return K0y(this.__iterator__(!0)).toEs6()};
_.W.values=function(){return K0y(this.__iterator__(!1)).toEs6()};
_.W.entries=function(){var l=this;return YVk(this.keys(),function(D){return[D,l.get(D)]})};
_.W.__iterator__=function(l){MT(this);var D=0,U=this.version_,n=this,y=new bL;y.next=function(){if(U!=n.version_)throw Error("ue");if(D>=n.JSC$11574_keys_.length)return gC;var A=n.JSC$11574_keys_[D++];return uL(l?A:n.JSC$11574_map_[A])};
return y};
var Rx=function(l,D){return Object.prototype.hasOwnProperty.call(l,D)};var GMm=function(){this.JSC$11577_map_=new _.qT;this.JSC$11577_head_=new Qz7("");this.JSC$11577_head_.next=this.JSC$11577_head_.prev=this.JSC$11577_head_},JBm=function(l,D){if(D=l.JSC$11577_map_.get(D))D.remove(),l.insert_(D);
return D};
_.W=GMm.prototype;_.W.get=function(l,D){return(l=JBm(this,l))?l.value:D};
_.W.set=function(l,D){var U=JBm(this,l);U?U.value=D:(U=new Qz7(l,D),this.JSC$11577_map_.set(l,U),this.insert_(U))};
_.W.peek=function(){return this.JSC$11577_head_.next.value};
_.W.shift=function(){return LG7(this,this.JSC$11577_head_.next)};
_.W.pop=function(){return LG7(this,this.JSC$11577_head_.prev)};
_.W.remove=function(l){return(l=this.JSC$11577_map_.get(l))?(this.removeNode(l),!0):!1};
_.W.removeNode=function(l){l.remove();this.JSC$11577_map_.remove(l.key)};
_.W.getCount=function(){return this.JSC$11577_map_.getCount()};
_.W.isEmpty=function(){return this.JSC$11577_map_.isEmpty()};
_.W.getKeys=function(){return this.map(function(l,D){return D})};
_.W.getValues=function(){return this.map(function(l){return l})};
_.W.contains=function(l){return this.some(function(D){return D==l})};
_.W.containsKey=function(l){return this.JSC$11577_map_.containsKey(l)};
_.W.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11577_head_.prev)};
_.W.forEach=function(l,D){for(var U=this.JSC$11577_head_.next;U!=this.JSC$11577_head_;U=U.next)l.call(D,U.value,U.key,this)};
_.W.map=function(l,D){for(var U=[],n=this.JSC$11577_head_.next;n!=this.JSC$11577_head_;n=n.next)U.push(l.call(D,n.value,n.key,this));return U};
_.W.some=function(l,D){for(var U=this.JSC$11577_head_.next;U!=this.JSC$11577_head_;U=U.next)if(l.call(D,U.value,U.key,this))return!0;return!1};
_.W.every=function(l,D){for(var U=this.JSC$11577_head_.next;U!=this.JSC$11577_head_;U=U.next)if(!l.call(D,U.value,U.key,this))return!1;return!0};
_.W.insert_=function(l){l.next=this.JSC$11577_head_.next;l.prev=this.JSC$11577_head_;this.JSC$11577_head_.next=l;for(l.next.prev=l;this.getCount()>100;)this.removeNode(this.JSC$11577_head_.prev)};
var LG7=function(l,D){l.JSC$11577_head_!=D&&l.removeNode(D);return D.value},Qz7=function(l,D){this.key=l;
this.value=D};
Qz7.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var qr7=function(){Li.apply(this,arguments)};
_.Z(qr7,Li);qr7.prototype.enqueue=function(l,D){this.insert(l,D)};var Mt7=function(){var l=Error();l.name="SecurityError";throw l;},m7_=function(){return{get opener(){return null},
get closed(){return!0},get location(){Mt7()},get document(){Mt7()},postMessage:function(){},
close:function(){},
focus:function(){}}};var QRK={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 Lbc={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 RWy={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(Lbc).join("|");var Z4H=function(){function l(h){h.substr(-1)!==";"&&(h+=";");return C(h)}
for(var D=Object.keys(RWy).sort(Jz_),U=Object.keys(Lbc).sort(Jz_),n=0,y=0;n<U.length;n++)D[y]===U[n]?(U[n]+=";?",y++):U[n]+=";";var A=new RegExp("&(?:"+U.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),C=qFs();return function(h){return String(h).replace(A,l)}}();/*

 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 eW7={};var md7=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"),afm=/[\\&]/,tt7=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),XFm=RegExp('[&<>"]',"g"),Srk=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),kMz=function(l){return l.charCodeAt(0)===92?l.charAt(1):Z4H(l)},ddk=function(l){return afm.test(l)?l.replace(tt7,kMz):l},KGm=function(l){try{var D,U="";
if(typeof y!=="string"){var n=y;var y=";/?:@&=+$,-_.!~*'()#"}typeof n==="undefined"&&(n=!0);var A,C=eW7[y];if(C)var h=C;else{C=eW7[y]=[];for(A=0;A<128;A++){var b=String.fromCharCode(A);/^[0-9a-z]$/i.test(b)?C.push(b):C.push("%"+("0"+A.toString(16).toUpperCase()).slice(-2))}for(A=0;A<y.length;A++)C[y.charCodeAt(A)]=y[A];h=C}var u=0;for(D=l.length;u<D;u++){var Q=l.charCodeAt(u);if(n&&Q===37&&u+2<D&&/^[0-9a-f]{2}$/i.test(l.slice(u+1,u+3)))U+=l.slice(u,u+3),u+=2;else if(Q<128)U+=h[Q];else if(Q>=55296&&
Q<=57343){if(Q>=55296&&Q<=56319&&u+1<D){var G=l.charCodeAt(u+1);if(G>=56320&&G<=57343){U+=encodeURIComponent(l[u]+l[u+1]);u++;continue}}U+="%EF%BF%BD"}else U+=encodeURIComponent(l[u])}return U}catch(J){return l}},cBr=function(l){switch(l){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return l}},Ze=function(l,D){return XFm.test(l)?D?l.replace(Srk,cBr):l.replace(XFm,cBr):l};/*

 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 ef;if(String.fromCodePoint)ef=function(l){try{return String.fromCodePoint(l)}catch(D){if(D instanceof RangeError)return String.fromCharCode(65533);throw D;}};
else{var pFy=String.fromCharCode,xd8=Math.floor;ef=function(){var l=[],D=-1,U=arguments.length;if(!U)return"";for(var n="";++D<U;){var y=Number(arguments[D]);if(!isFinite(y)||y<0||y>1114111||xd8(y)!==y)return String.fromCharCode(65533);if(y<=65535)l.push(y);else{y-=65536;var A=(y>>10)+55296;y=y%1024+56320;l.push(A,y)}if(D+1===U||l.length>16384)n+=pFy.apply(null,l),l.length=0}return n}};var jz5=function(l){this.root=this.current=l;this.entering=!0};
jz5.prototype.next=function(){var l=this.current,D=this.entering;if(l===null)return null;a:switch(l._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 U=!0;break a;default:U=!1}D&&U?l._firstChild?(this.current=l._firstChild,this.entering=!0):this.entering=!1:l===this.root?this.current=null:l._next===null?(this.current=
l._parent,this.entering=!1):(this.current=l._next,this.entering=!0);return{entering:D,node:l}};
var d0=function(l,D){this._type=l;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=D;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};
d0.prototype.appendChild=function(l){l.unlink();l._parent=this;this._lastChild?(this._lastChild._next=l,l._prev=this._lastChild):this._firstChild=l;this._lastChild=l};
d0.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var FGH=function(l,D){D.unlink();D._next=l._next;D._next&&(D._next._prev=D);D._prev=l;l._next=D;D._parent=l._parent;D._next||(D._parent._lastChild=D)};
d0.prototype.insertBefore=function(l){l.unlink();l._prev=this._prev;l._prev&&(l._prev._next=l);l._next=this;this._prev=l;l._parent=this._parent;l._prev||(l._parent._firstChild=l)};
_.QP.Object.defineProperties(d0.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(l){this._literal=l}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(l){this._destination=l}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(l){this._title=l}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(l){this._info=l}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(l){this._level=l}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(l){this._listData.type=l}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(l){this._listData.tight=l}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(l){this._listData.start=l}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(l){this._onEnter=l}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(l){this._onExit=l}}});var M8c=/[ \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,
RLC={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 oX8=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]/),
wF5=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),rBy=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),zW7=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),ffh=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),$d1=/`+/,Nkk=/^`+/,szk=/\.\.\./g,EX8=/--+/g,Tk7=/^<([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])?)*)>/,
Ifh=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,H4m=/^ *(?:\n *)?/,Yry=/^[ \t\n\x0b\x0c\x0d]/,O4g=/[ \t\n\x0b\x0c\x0d]+/g,Vtr=/^\s/,iEg=/ *$/,lL8=/^ */,D97=/^ *(?:\n|$)/,U9k=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),nqz=/^[^\n`\[\]\\!<&*_'"]+/m,tZ=function(l){var D=new d0("text");D._literal=l;return D},XH=function(l){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=l||{}};
XH.prototype.match=function(l){l=l.exec(this.subject.slice(this.pos));if(l===null)return null;this.pos+=l.index+l[0].length;return l[0]};
XH.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Sf=function(l){l.match(H4m);return!0},yS8=function(l,D,U){var n=0;
var y=l.pos;if(D===39||D===34)n++,l.pos++;else for(;l.peek()===D;)n++,l.pos++;if(n===0)n=null;else{var A=y===0?"\n":l.subject.charAt(y-1);var C=l.peek();C=C===-1?"\n":ef(C);var h=Vtr.test(C);C=oX8.test(C);var b=Vtr.test(A);var u=oX8.test(A);A=!h&&!(C&&!b&&!u);h=!b&&!(u&&!h&&!C);D===95?(b=A&&(!h||u),C=h&&(!A||C)):(b=D===39||D===34?A&&!h:A,C=h);l.pos=y;n={numdelims:n,can_open:b,can_close:C}}if(!n)return!1;y=n.numdelims;C=l.pos;l.pos+=y;C=D===39?"\u2019":D===34?"\u201c":l.subject.slice(C,l.pos);C=tZ(C);
U.appendChild(C);l.delimiters={cc:D,numdelims:y,origdelims:y,node:C,previous:l.delimiters,next:null,can_open:n.can_open,can_close:n.can_close};l.delimiters.previous!==null&&(l.delimiters.previous.next=l.delimiters);return!0},ASH=function(l,D){D.previous!==null&&(D.previous.next=D.next);
D.next===null?l.delimiters=D.previous:D.next.previous=D.previous},WC7=function(l,D){var U,n,y=[],A=!1;
y[95]=D;y[42]=D;y[39]=D;y[34]=D;for(U=l.delimiters;U!==null&&U.previous!==D;)U=U.previous;for(;U!==null;){var C=U.cc;if(U.can_close){var h=U.previous;for(n=!1;h!==null&&h!==D&&h!==y[C];){A=(U.can_open||h.can_close)&&(h.origdelims+U.origdelims)%3===0;if(h.cc===U.cc&&h.can_open&&!A){n=!0;break}h=h.previous}var b=U;if(C===42||C===95)if(n){var u=U.numdelims>=2&&h.numdelims>=2?2:1;var Q=h.node;var G=U.node;h.numdelims-=u;U.numdelims-=u;Q._literal=Q._literal.slice(0,Q._literal.length-u);G._literal=G._literal.slice(0,
G._literal.length-u);var J=new d0(u===1?"emph":"strong");for(u=Q._next;u&&u!==G;){var L=u._next;u.unlink();J.appendChild(u);u=L}FGH(Q,J);u=h;L=U;u.next!==L&&(u.next=L,L.previous=u);h.numdelims===0&&(Q.unlink(),ASH(l,h));U.numdelims===0&&(G.unlink(),h=U.next,ASH(l,U),U=h)}else U=U.next;else C===39?(U.node._literal="\u2019",n&&(h.node._literal="\u2018"),U=U.next):C===34&&(U.node._literal="\u201d",n&&(h.node.literal="\u201c"),U=U.next);n||A||(y[C]=b.previous,b.can_open||ASH(l,b))}else U=U.next}for(;l.delimiters!==
null&&l.delimiters!==D;)ASH(l,l.delimiters)},BL5=function(l){l=l.match(wF5);
return l===null?null:ddk(l.substr(1,l.length-2))},CDy=function(l){var D=l.match(rBy);
if(D===null){D=l.pos;for(var U=0,n;(n=l.peek())!==-1;)if(n===92)l.pos+=1,l.peek()!==-1&&(l.pos+=1);else if(n===40)l.pos+=1,U+=1;else if(n===41)if(U<1)break;else l.pos+=1,--U;else if(Yry.exec(ef(n))!==null)break;else l.pos+=1;D=l.subject.substr(D,l.pos-D);return KGm(ddk(D))}return KGm(ddk(D.substr(1,D.length-2)))},hF_=function(l){l=l.match(U9k);
return l===null||l.length>1001?0:l.length},PDr=function(l,D,U,n){l.brackets!==null&&(l.brackets.bracketAfter=!0);
l.brackets={node:D,previous:l.brackets,previousDelimiter:l.delimiters,index:U,image:n,active:!0}},bE7=function(l,D){var U;
return(U=l.match(nqz))?(l.options.smart?D.appendChild(tZ(U.replace(szk,"\u2026").replace(EX8,function(n){var y=0,A=0;n.length%3===0?A=n.length/3:n.length%2===0?y=n.length/2:n.length%3===2?(y=1,A=(n.length-2)/3):(y=2,A=(n.length-4)/3);n="";var C;for(C=0;C<A;C++)n+="\u2014";for(C=0;C<y;C++)n+="\u2013";return n}))):D.appendChild(tZ(U)),!0):!1},gq5=function(l,D,U){l.subject=D;
l.pos=0;D=l.pos;var n=hF_(l);if(n===0)return 0;var y=l.subject.substr(0,n);if(l.peek()===58)l.pos++;else return l.pos=D,0;Sf(l);n=CDy(l);if(n===null||n.length===0)return l.pos=D,0;var A=l.pos;Sf(l);var C=BL5(l);C===null&&(C="",l.pos=A);var h=!0;l.match(D97)===null&&(C===""?h=!1:(C="",l.pos=A,h=l.match(D97)!==null));if(!h)return l.pos=D,0;y=ZT3(y);if(y==="")return l.pos=D,0;U[y]||(U[y]={destination:n,title:C});return l.pos-D},uwz=function(l,D){var U,n=l.peek();
if(n===-1)return!1;switch(n){case 10:l.pos+=1;if((U=D._lastChild)&&U.type==="text"&&U._literal[U._literal.length-1]===" "){var y=U._literal[U._literal.length-2]===" ";U._literal=U._literal.replace(iEg,"");D.appendChild(new d0(y?"linebreak":"softbreak"))}else D.appendChild(new d0("softbreak"));l.match(lL8);U=!0;break;case 92:U=l.subject;l.pos+=1;l.peek()===10?(l.pos+=1,U=new d0("linebreak"),D.appendChild(U)):zW7.test(U.charAt(l.pos))?(D.appendChild(tZ(U.charAt(l.pos))),l.pos+=1):D.appendChild(tZ("\\"));
U=!0;break;case 96:a:if(U=l.match(Nkk),U===null)U=!1;else{y=l.pos;for(var A;(A=l.match($d1))!==null;)if(A===U){A=new d0("code");A._literal=l.subject.slice(y,l.pos-U.length).trim().replace(O4g," ");D.appendChild(A);U=!0;break a}l.pos=y;D.appendChild(tZ(U));U=!0}break;case 42:case 95:U=yS8(l,n,D);break;case 39:case 34:U=l.options.smart&&yS8(l,n,D);break;case 91:U=l.pos;l.pos+=1;y=tZ("[");D.appendChild(y);PDr(l,y,U,!1);U=!0;break;case 33:U=l.pos;l.pos+=1;l.peek()===91?(l.pos+=1,y=tZ("!["),D.appendChild(y),
PDr(l,y,U+1,!0)):D.appendChild(tZ("!"));U=!0;break;case 93:var C,h=!1,b;l.pos+=1;var u=l.pos;y=l.brackets;if(y===null)D.appendChild(tZ("]"));else if(y.active){U=y.image;var Q=l.pos;l.peek()===40&&(l.pos++,Sf(l)&&(A=CDy(l))!==null&&Sf(l)&&(Yry.test(l.subject.charAt(l.pos-1))&&(C=BL5(l)),1)&&Sf(l)&&l.peek()===41?(l.pos+=1,h=!0):l.pos=Q);if(!h){var G=l.pos,J=hF_(l);J>2?b=l.subject.slice(G,G+J):y.bracketAfter||(b=l.subject.slice(y.index,u));J===0&&(l.pos=Q);b&&(b=l.refmap[ZT3(b)])&&(A=b.destination,C=
b.title,h=!0)}if(h){u=new d0(U?"image":"link");u._destination=A;u._title=C||"";for(A=y.node._next;A;)C=A._next,A.unlink(),u.appendChild(A),A=C;D.appendChild(u);WC7(l,y.previousDelimiter);l.brackets=l.brackets.previous;y.node.unlink();if(!U)for(y=l.brackets;y!==null;)y.image||(y.active=!1),y=y.previous}else l.brackets=l.brackets.previous,l.pos=u,D.appendChild(tZ("]"))}else D.appendChild(tZ("]")),l.brackets=l.brackets.previous;U=!0;break;case 60:(U=l.match(Tk7))?(U=U.slice(1,U.length-1),y=new d0("link"),
y._destination=KGm("mailto:"+U),y._title="",y.appendChild(tZ(U)),D.appendChild(y),U=!0):(U=l.match(Ifh))?(U=U.slice(1,U.length-1),y=new d0("link"),y._destination=KGm(U),y._title="",y.appendChild(tZ(U)),D.appendChild(y),U=!0):U=!1;U||(U=l.match(md7),U===null?U=!1:(y=new d0("html_inline"),y._literal=U,D.appendChild(y),U=!0));break;case 38:(U=l.match(ffh))?(D.appendChild(tZ(Z4H(U))),U=!0):U=!1;break;default:U=bE7(l,D)}U||(l.pos+=1,D.appendChild(tZ(ef(n))));return!0};
XH.prototype.parseInlines=function(l){this.subject=l._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;uwz(this,l););l._string_content=null;WC7(this,null)};
XH.prototype.parse=XH.prototype.parseInlines;var vqm=[/./,/^<(?: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")],Q71=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],Ghr=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,JSy=/^[#`~*+_=<>0-9-\|]|\|/,LC7=/[^ \t\f\v\r\n]/,q4y=/^[*+-]/,Ma7=/^(\d{1,9})([.)])/,RFz=/^#{1,6}(?:[ \t]+|$)/,ZE7=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,eFh=/^(?:`{3,}|~{3,})(?= *$)/,m9H=/^(?:=+|-+)[ \t]*$/,aLk=/\r\n|\n|\r/,mUc=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,aRB=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,tag={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(l){return l!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(l,D){for(l=D._firstChild;l;){if(eL$(l)&&l._next){D._listData.tight=!1;break}for(var U=l._firstChild;U;){if(eL$(U)&&(l._next||U._next)){D._listData.tight=!1;break}U=U._next}l=l._next}},
canContain:function(l){return l==="item"},
acceptsLines:!1},block_quote:{continue:function(l){var D=l.currentLine;if(l.indented||SV(D,l.nextNonspace)!==62)return 1;ks(l);dD(l,1,!1);X4(SV(D,l.offset))&&dD(l,1,!0);return 0},
finalize:function(){},
canContain:function(l){return l!=="item"},
acceptsLines:!1},item:{continue:function(l,D){if(l.blank){if(D._firstChild==null)return 1;ks(l)}else if(l.indent>=D._listData.markerOffset+D._listData.padding)dD(l,D._listData.markerOffset+D._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(l){return l!=="item"&&!t8$(l)},
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(l,D){var U=l.currentLine,n=l.indent;if(D._isFenced){if((n=n<=3&&U.charAt(l.nextNonspace)===D._fenceChar&&U.slice(l.nextNonspace).match(eFh))&&n[0].length>=D._fenceLength)return l.finalize(D,l.lineNumber),2;for(D=D._fenceOffset;D>0&&X4(SV(U,l.offset));)dD(l,1,!0),D--}else if(n>=4)dD(l,4,!0);else if(l.blank)ks(l);else return 1;return 0},
finalize:function(l,D){if(D._isFenced){var U=D._string_content,n=U.indexOf("\n");l=U.slice(0,n);U=U.slice(n+1);D.info=ddk(l.trim());D._literal=U}else D._literal=D._string_content.replace(/(\n *)+$/,"\n");D._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(l,D){return!l.blank||D._htmlBlockType!==6&&D._htmlBlockType!==7?0:1},
finalize:function(l,D){D._literal=D._string_content.replace(/(\n *)+$/,"");D._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(l){return l.blank?1:0},
finalize:function(l,D){for(var U,n=!1;SV(D._string_content,0)===91&&(U=gq5(l.inlineParser,D._string_content,l.refmap));)D._string_content=D._string_content.slice(U),n=!0;n&&!LC7.test(D._string_content)&&D.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(l){return kx(l.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(l){return l=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(l,D){if(!D._rowIsDelimiter){l=D._isHeader?"th":"td";for(var U=D._parent._tableColumns,n=D._string_content,y=0,A="",C,h=D._sourcepos[0][0];y<n.length;){switch(n[y]){case "|":C&&(C._string_content=A.trim(),A="",C=null,U--,U<=0&&(y=n.length));break;default:if(!C){C=new d0(l,[[h,y],[h,y]]);var b=D._parent._columnAlignment,u=D._parent._tableColumns-U;b&&u<=b.length&&u>=0&&(C._alignment=b[u]);D.appendChild(C)}A+=n[y];C._sourcepos[1][1]=y}y++}C&&(C._string_content=A.trim());D._string_content=
""}},
canContain:function(l){return l!=="row"},
acceptsLines:!1}},XI5=[function(l){if(l.indented||SV(l.currentLine,l.nextNonspace)!==62)return 0;ks(l);dD(l,1,!1);X4(SV(l.currentLine,l.offset))&&dD(l,1,!0);Ki(l);l.addChild("block_quote",l.nextNonspace);return 1},
function(l){var D;if(!l.indented&&(D=l.currentLine.slice(l.nextNonspace).match(RFz))){ks(l);dD(l,D[0].length,!1);Ki(l);var U=l.addChild("heading",l.nextNonspace);U.level=D[0].trim().length;U._string_content=l.currentLine.slice(l.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");dD(l,l.currentLine.length-l.offset);return 2}return 0},
function(l){var D;if(!l.indented&&(D=l.currentLine.slice(l.nextNonspace).match(ZE7))){var U=D[0].length;Ki(l);var n=l.addChild("code_block",l.nextNonspace);n._isFenced=!0;n._fenceLength=U;n._fenceChar=D[0][0];n._fenceOffset=l.indent;ks(l);dD(l,U,!1);return 2}return 0},
function(l,D){if(!l.indented&&SV(l.currentLine,l.nextNonspace)===60){var U=l.currentLine.slice(l.nextNonspace),n;for(n=1;n<=7;n++)if(vqm[n].test(U)&&(n<7||D.type!=="paragraph"))return Ki(l),l.addChild("html_block",l.offset)._htmlBlockType=n,2}return 0},
function(l,D){var U;if(!l.indented&&D.type==="paragraph"&&(U=l.currentLine.slice(l.nextNonspace).match(m9H))){Ki(l);var n=new d0("heading",D.sourcepos);n.level=U[0][0]==="="?1:2;n._string_content=D._string_content;FGH(D,n);D.unlink();l.tip=n;dD(l,l.currentLine.length-l.offset,!1);return 2}return 0},
function(l){return!l.indented&&Ghr.test(l.currentLine.slice(l.nextNonspace))?(Ki(l),l.addChild("thematic_break",l.nextNonspace),dD(l,l.currentLine.length-l.offset,!1),2):0},
function(l,D){var U,n;if(!(n=l.indented&&D.type!=="list")){a:{var y=D,A=l.currentLine.slice(l.nextNonspace);n={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:l.indent};if(U=A.match(q4y))n.type="bullet",n.bulletChar=U[0][0];else{if(!(U=A.match(Ma7))||y.type==="paragraph"&&U[1]!=="1"){U=null;break a}n.type="ordered";n.start=parseInt(U[1],10);n.delimiter=U[2]}var C=SV(l.currentLine,l.nextNonspace+U[0].length);if(C!==-1&&C!==9&&C!==32||y.type==="paragraph"&&!l.currentLine.slice(l.nextNonspace+
U[0].length).match(LC7))U=null;else{ks(l);dD(l,U[0].length,!0);y=l.column;A=l.offset;do dD(l,1,!0),C=SV(l.currentLine,l.offset);while(l.column-y<5&&X4(C));C=SV(l.currentLine,l.offset)===-1;var h=l.column-y;h>=5||h<1||C?(n.padding=U[0].length+1,l.column=y,l.offset=A,X4(SV(l.currentLine,l.offset))&&dD(l,1,!0)):n.padding=U[0].length+h;U=n}}n=!U}if(n)return 0;Ki(l);(n=l.tip.type!=="list")||(D=D._listData,n=!(D.type===U.type&&D.delimiter===U.delimiter&&D.bulletChar===U.bulletChar));n&&(D=l.addChild("list",
l.nextNonspace),D._listData=U);D=l.addChild("item",l.nextNonspace);D._listData=U;return 1},
function(l){var D;return((D=l.options.shouldParseIndentAsCodeBlock)!=null?D:1)&&l.indented&&l.tip.type!=="paragraph"&&!l.blank?(dD(l,4,!0),Ki(l),l.addChild("code_block",l.offset),2):0},
function(l,D){var U=kx(l.currentLine),n=kx(l.lookahead);if(U!==0&&n<0&&Math.abs(U)==Math.abs(n)&&!t8$(D.type)){Ki(l);D=l.addChild("table",l.nextNonspace);D._tableRows=1;D._tableColumns=Math.abs(U);U=l.lookahead;if(aRB.test(U)){n=[];for(var y=0,A=!1,C=0,h=void 0;y<U.length;){var b=C>=3;switch(U[y]){case "-":C++;break;case "|":A&&(n.push(h),h=void 0,C=0);A=!0;break;case ":":h||b||(h="left"),!h&&b&&(h="right"),h==="left"&&b&&(h="center")}y++}U=n}else U=void 0;D._columnAlignment=U;D=l.addChild("row",
l.nextNonspace);D._isHeader=!0;dD(l,l.currentLine.length-l.offset,!1);D._string_content=l.currentLine;return 1}return 0},
function(l,D){if(D.type=="table"&&kx(l.currentLine)!==0){Ki(l);var U=D;D=l.addChild("row",l.nextNonspace);kx(l.currentLine)<0?D._rowIsDelimiter=!0:U._tableRows+=1;dD(l,l.currentLine.length-l.offset,!1);D._string_content=l.currentLine;return 2}return 0}],mu_=function(){var l={shouldParseIndentAsCodeBlock:!1};
l=l===void 0?{}:l;this.lastMatchedContainer=this.doc=Xlc();this.refmap={};this.lastLineLength=0;this.inlineParser=new XH(l);this.options=l;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=tag;this.blockStarts=XI5},S4g=function(l){l.partiallyConsumedTab&&(l.offset+=1,l.tip._string_content+=" ".repeat(4-l.column%
4));
l.tip._string_content+=l.currentLine.slice(l.offset)+"\n"};
mu_.prototype.addChild=function(l,D){for(;!this.blocks[this.tip.type].canContain(l);)this.finalize(this.tip,this.lineNumber-1);l=new d0(l,[[this.lineNumber,D+1],[0,0]]);l._string_content="";this.tip.appendChild(l);return this.tip=l};
var Ki=function(l){if(!l.allClosed){for(;l.oldtip!==l.lastMatchedContainer;){var D=l.oldtip._parent;l.finalize(l.oldtip,l.lineNumber-1);l.oldtip=D}l.allClosed=!0}},dD=function(l,D,U){for(var n=l.currentLine,y,A;D>0&&(A=n[l.offset]);)A==="\t"?(y=4-l.column%4,U?(l.partiallyConsumedTab=y>D,y=y>D?D:y,l.column+=y,l.offset+=l.partiallyConsumedTab?0:1,D-=y):(l.partiallyConsumedTab=!1,l.column+=y,l.offset+=1,--D)):(l.partiallyConsumedTab=!1,l.offset+=1,l.column+=1,--D)},ks=function(l){l.offset=l.nextNonspace;
l.column=l.nextNonspaceColumn;l.partiallyConsumedTab=!1},khk=function(l){for(var D=l.currentLine,U=l.offset,n=l.column,y;(y=D.charAt(U))!=="";)if(y===" ")U++,n++;
else if(y==="\t")U++,n+=4-n%4;else break;l.blank=y==="\n"||y==="\r"||y==="";l.nextNonspace=U;l.nextNonspaceColumn=n;l.indent=l.nextNonspaceColumn-l.column;l.indented=l.indent>=4};
mu_.prototype.finalize=function(l,D){var U=l._parent;l._open=!1;l.sourcepos[1]=[D,this.lastLineLength];this.blocks[l.type].finalize(this,l);this.tip=U};
mu_.prototype.parse=function(l){this.tip=this.doc=Xlc();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!l)return this.doc;this.options.time&&console.time("preparing input");var D=l.split(aLk),U=D.length;l.charCodeAt(l.length-1)===10&&--U;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(l=0;l<U;l++)a:{var n=void 0,y=D[l],A=D[l+1],C=!0,h=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;y.indexOf("\x00")!==-1&&(y=y.replace(/\0/g,"\ufffd"));this.currentLine=y;for(this.lookahead=A;(n=h._lastChild)&&n._open;){h=n;khk(this);switch(this.blocks[h.type].continue(this,h)){case 0:break;case 1:C=!1;break;case 2:this.lastLineLength=y.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!C){h=h._parent;break}}this.allClosed=h===this.oldtip;this.lastMatchedContainer=
h;n=h.type!=="paragraph"&&tag[h.type].acceptsLines;A=this.blockStarts;for(C=A.length;!n;){khk(this);if(!this.indented&&!JSy.test(y.slice(this.nextNonspace))){ks(this);break}for(var b=0;b<C;){var u=A[b](this,h);if(u===1){h=this.tip;break}else if(u===2){h=this.tip;n=!0;break}else b++}if(b===C){ks(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Ki(this);this.blank&&h.lastChild&&(h.lastChild._lastLineBlank=!0);n=h.type;A=this.blank&&!(n==="block_quote"||n==="code_block"&&h._isFenced||
n==="item"&&!h._firstChild&&h.sourcepos[0][0]===this.lineNumber);for(C=h;C;)C._lastLineBlank=A,C=C._parent;this.blocks[n].acceptsLines?(S4g(this),n==="html_block"&&h._htmlBlockType>=1&&h._htmlBlockType<=5&&Q71[h._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(h,this.lineNumber)):this.offset<y.length&&!this.blank&&(this.addChild("paragraph",this.offset),ks(this),S4g(this))}else S4g(this);this.lastLineLength=y.length}for(;this.tip;)this.finalize(this.tip,U);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");y=new jz5(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;U=y.next();)D=U.node,l=D.type,U.entering||l!=="paragraph"&&l!=="heading"&&l!=="th"&&l!="td"||this.inlineParser.parse(D);this.options.time&&console.timeEnd("inline parsing");return this.doc};SF9.prototype.render=function(l){l=new jz5(l);var D;this.buffer="";for(this.lastOut="\n";D=l.next();){var U=D.node.type;if(this[U])this[U](D.node,D.entering)}return this.buffer};
SF9.prototype.out=function(l){cy(this,l)};
var cy=function(l,D){l.buffer+=D;l.lastOut=D};
SF9.prototype.cr=function(){this.lastOut!=="\n"&&cy(this,"\n")};var d9m=/^javascript:|vbscript:|file:|data:/i,KC7=/^data:image\/(?:png|gif|jpeg|webp)/i,cS1=function(l){return d9m.test(l)&&!KC7.test(l)};
KS.prototype=Object.create(SF9.prototype);_.W=KS.prototype;_.W.text=function(l){this.out(l.literal)};
_.W.html_inline=function(l){this.options.safe?cy(this,"\x3c!-- raw HTML omitted --\x3e"):cy(this,l.literal)};
_.W.html_block=function(l){this.cr();this.options.safe?cy(this,"\x3c!-- raw HTML omitted --\x3e"):cy(this,l.literal);this.cr()};
_.W.softbreak=function(){cy(this,this.options.softbreak)};
_.W.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.W.link=function(l,D){var U=this.attrs(l);D?(this.options.safe&&cS1(l.destination)||U.push(["href",Ze(l.destination,!0)]),l.title&&U.push(["title",Ze(l.title,!0)]),this.tag("a",U)):this.tag("/a")};
_.W.image=function(l,D){D?(this.disableTags===0&&(this.options.safe&&cS1(l.destination)?cy(this,'<img src="" alt="'):cy(this,'<img src="'+Ze(l.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(l.title&&cy(this,'" title="'+Ze(l.title,!0)),cy(this,'" />')))};
_.W.emph=function(l,D){this.tag(D?"em":"/em")};
_.W.strong=function(l,D){this.tag(D?"strong":"/strong")};
_.W.paragraph=function(l,D){var U=l.parent.parent;l=this.attrs(l);U!==null&&U.type==="list"&&U.listTight||(D?(this.cr(),this.tag("p",l)):(this.tag("/p"),this.cr()))};
_.W.heading=function(l,D){var U="h"+l.level;l=this.attrs(l);D?(this.cr(),this.tag(U,l)):(this.tag("/"+U),this.cr())};
_.W.code=function(l){this.tag("code");this.out(l.literal);this.tag("/code")};
_.W.code_block=function(l){var D=l.info?l.info.split(/\s+/):[],U=this.attrs(l);D.length>0&&D[0].length>0&&U.push(["class","language-"+Ze(D[0],!0)]);this.cr();this.tag("pre");this.tag("code",U);this.out(l.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.W.thematic_break=function(l){l=this.attrs(l);this.cr();this.tag("hr",l,!0);this.cr()};
_.W.block_quote=function(l,D){l=this.attrs(l);D?(this.cr(),this.tag("blockquote",l)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.W.list=function(l,D){var U=l.listType==="bullet"?"ul":"ol",n=this.attrs(l);D?(l=l.listStart,l!==null&&l!==1&&n.push(["start",l.toString()]),this.cr(),this.tag(U,n)):(this.cr(),this.tag("/"+U));this.cr()};
_.W.item=function(l,D){l=this.attrs(l);D?this.tag("li",l):(this.tag("/li"),this.cr())};
_.W.custom_inline=function(l,D){D&&l.onEnter?cy(this,l.onEnter):!D&&l.onExit&&cy(this,l.onExit)};
_.W.custom_block=function(l,D){this.cr();D&&l.onEnter?cy(this,l.onEnter):!D&&l.onExit&&cy(this,l.onExit);this.cr()};
_.W.table=function(l,D){l=this.attrs(l);D?(this.cr(),this.tag("table",l)):(this.tag("/table"),this.cr())};
_.W.row=function(l,D){l._rowIsDelimiter||(l=this.attrs(l),D?this.tag("tr",l):this.tag("/tr"))};
_.W.td=function(l,D){var U=this.attrs(l);l._alignment&&U.push(["align",l._alignment]);D?this.tag("td",U):this.tag("/td")};
_.W.th=function(l,D){var U=this.attrs(l);l._alignment&&U.push(["align",l._alignment]);D?this.tag("th",U):this.tag("/th")};
_.W.out=function(l){cy(this,Ze(l,!1))};
_.W.tag=function(l,D,U){if(!(this.disableTags>0)){this.buffer+="<"+l;if(D&&D.length>0){l=0;for(var n;(n=D[l])!==void 0;)this.buffer+=" "+n[0]+'="'+n[1]+'"',l++}U&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.W.attrs=function(l){var D=[];this.options.sourcepos&&(l=l.sourcepos)&&D.push(["data-sourcepos",String(l[0][0])+":"+String(l[0][1])+"-"+String(l[1][0])+":"+String(l[1][1])]);return D};
KS.prototype.text=KS.prototype.text;KS.prototype.html_inline=KS.prototype.html_inline;KS.prototype.html_block=KS.prototype.html_block;KS.prototype.softbreak=KS.prototype.softbreak;KS.prototype.linebreak=KS.prototype.linebreak;KS.prototype.link=KS.prototype.link;KS.prototype.image=KS.prototype.image;KS.prototype.emph=KS.prototype.emph;KS.prototype.strong=KS.prototype.strong;KS.prototype.paragraph=KS.prototype.paragraph;KS.prototype.heading=KS.prototype.heading;KS.prototype.code=KS.prototype.code;
KS.prototype.code_block=KS.prototype.code_block;KS.prototype.thematic_break=KS.prototype.thematic_break;KS.prototype.block_quote=KS.prototype.block_quote;KS.prototype.list=KS.prototype.list;KS.prototype.item=KS.prototype.item;KS.prototype.custom_inline=KS.prototype.custom_inline;KS.prototype.custom_block=KS.prototype.custom_block;KS.prototype.table=KS.prototype.table;KS.prototype.row=KS.prototype.row;KS.prototype.td=KS.prototype.td;KS.prototype.th=KS.prototype.th;KS.prototype.out=KS.prototype.out;
KS.prototype.tag=KS.prototype.tag;KS.prototype.attrs=KS.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 pI1,x9_,uSC;(function(){function l(k,X){return k<X?-1:k>X?1:k>=X?0:NaN}
function D(k){return function(X,F){return l(k(X),F)}}
function U(){for(var k=0,X=arguments.length,F={},lG;k<X;++k){if(!(lG=arguments[k]+"")||lG in F)throw Error("we`"+lG);F[lG]=[]}return new n(F)}
function n(k){this._=k}
function y(k,X){return k.trim().split(/^|\s+/).map(function(F){var lG="",Po=F.indexOf(".");Po>=0&&(lG=F.slice(Po+1),F=F.slice(0,Po));if(F&&!X.hasOwnProperty(F))throw Error("xe`"+F);return{type:F,name:lG}})}
function A(k,X,F){for(var lG=0,Po=k.length;lG<Po;++lG)if(k[lG].name===X){k[lG]=jHr;k=k.slice(0,lG).concat(k.slice(lG+1));break}F!=null&&k.push({name:X,value:F});return k}
function C(k){var X=k,F=X.indexOf(":");F>=0&&(X=k.slice(0,F))!=="xmlns"&&(k=k.slice(F+1));return HF.hasOwnProperty(X)?{space:HF[X],local:k}:k}
function h(k){return function(){var X=this.ownerDocument,F=this.namespaceURI;return F==="http://www.w3.org/1999/xhtml"&&X.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?X.createElement(k):X.createElementNS(F,k)}}
function b(k){return function(){return this.ownerDocument.createElementNS(k.space,k.local)}}
function u(k){k=C(k);return(k.local?b:h)(k)}
function Q(){}
function G(k){return k==null?Q:function(){return this.querySelector(k)}}
function J(k){return Array(k.length)}
function L(k,X){this.ownerDocument=k.ownerDocument;this.namespaceURI=k.namespaceURI;this._next=null;this._parent=k;this.__data__=X}
function R(k){return function(){return k}}
function a(k,X,F,lG,Po,Jd){for(var mB=0,KC,W5=X.length,iH=Jd.length;mB<iH;++mB)(KC=X[mB])?(KC.__data__=Jd[mB],lG[mB]=KC):F[mB]=new L(k,Jd[mB]);for(;mB<W5;++mB)if(KC=X[mB])Po[mB]=KC}
function S(k,X,F,lG,Po,Jd,mB){var KC,W5,iH={},B5=X.length,Q_=Jd.length,Ig=Array(B5),KP;for(KC=0;KC<B5;++KC)if(W5=X[KC])Ig[KC]=KP="$"+mB.call(W5,W5.__data__,KC,X),KP in iH?Po[KC]=W5:iH[KP]=W5;for(KC=0;KC<Q_;++KC)KP="$"+mB.call(k,Jd[KC],KC,Jd),(W5=iH[KP])?(lG[KC]=W5,W5.__data__=Jd[KC],iH[KP]=null):F[KC]=new L(k,Jd[KC]);for(KC=0;KC<B5;++KC)(W5=X[KC])&&iH[Ig[KC]]===W5&&(Po[KC]=W5)}
function d(k,X){return k<X?-1:k>X?1:k>=X?0:NaN}
function c(k){return function(){this.removeAttribute(k)}}
function N(k){return function(){this.removeAttributeNS(k.space,k.local)}}
function z(k,X){return function(){this.setAttribute(k,X)}}
function f(k,X){return function(){this.setAttributeNS(k.space,k.local,X)}}
function I(k,X){return function(){var F=X.apply(this,arguments);F==null?this.removeAttribute(k):this.setAttribute(k,F)}}
function iG(k,X){return function(){var F=X.apply(this,arguments);F==null?this.removeAttributeNS(k.space,k.local):this.setAttributeNS(k.space,k.local,F)}}
function CC(k){return function(){this.style.removeProperty(k)}}
function vo(k,X,F){return function(){this.style.setProperty(k,X,F)}}
function td(k,X,F){return function(){var lG=X.apply(this,arguments);lG==null?this.style.removeProperty(k):this.style.setProperty(k,lG,F)}}
function GN(k,X){return k.style.getPropertyValue(X)||(k.ownerDocument&&k.ownerDocument.defaultView||k.document&&k||k.defaultView).getComputedStyle(k,null).getPropertyValue(X)}
function Ms(k){return function(){delete this[k]}}
function j3(k,X){return function(){this[k]=X}}
function wl(k,X){return function(){var F=X.apply(this,arguments);F==null?delete this[k]:this[k]=F}}
function zN(){this.textContent=""}
function Z7(k){return function(){this.textContent=k}}
function Lm(k){return function(){var X=k.apply(this,arguments);this.textContent=X==null?"":X}}
function Vg(){this.innerHTML=""}
function v5(k){return function(){this.innerHTML=k}}
function mk(k){return function(){var X=k.apply(this,arguments);this.innerHTML=X==null?"":X}}
function dy(){return null}
function eW(){var k=this.parentNode;k&&k.removeChild(this)}
function Qq(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Bo(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function D7(k,X,F){k=qr(k,X,F);return function(lG){var Po=lG.relatedTarget;Po&&(Po===this||Po.compareDocumentPosition(this)&8)||k.call(this,lG)}}
function qr(k,X,F){return function(){k.call(this,this.__data__,X,F)}}
function H5(k){return k.trim().split(/^|\s+/).map(function(X){var F="",lG=X.indexOf(".");lG>=0&&(F=X.slice(lG+1),X=X.slice(0,lG));return{type:X,name:F}})}
function Mr(k){return function(){var X=this.__on;if(X){for(var F=0,lG=-1,Po=X.length,Jd;F<Po;++F)(Jd=X[F],k.type&&Jd.type!==k.type||Jd.name!==k.name)?X[++lG]=Jd:this.removeEventListener(Jd.type,Jd.listener,Jd.capture);++lG?X.length=lG:delete this.__on}}}
function V_(k,X,F){var lG=Lu7.hasOwnProperty(k.type)?D7:qr;return function(Po,Jd,mB){Po=this.__on;var KC;Jd=lG(X,Jd,mB);if(Po){mB=0;for(var W5=Po.length;mB<W5;++mB)if((KC=Po[mB]).type===k.type&&KC.name===k.name){this.removeEventListener(KC.type,KC.listener,KC.capture);this.addEventListener(KC.type,KC.listener=Jd,KC.capture=F);KC.value=X;return}}this.addEventListener(k.type,Jd,F);KC={type:k.type,name:k.name,value:X,listener:Jd,capture:F};Po?Po.push(KC):this.__on=[KC]}}
function ec(k,X,F){var lG=k.ownerDocument&&k.ownerDocument.defaultView||k.document&&k||k.defaultView,Po=lG.CustomEvent;typeof Po==="function"?Po=new Po(X,F):(Po=lG.document.createEvent("Event"),F?(Po.initEvent(X,F.bubbles,F.cancelable),Po.detail=F.detail):Po.initEvent(X,!1,!1));k.dispatchEvent(Po)}
function Nr(k,X){return function(){return ec(this,k,X)}}
function gy(k,X){return function(){return ec(this,k,X.apply(this,arguments))}}
function uH(k,X){this._groups=k;this._parents=X}
function yq(){return new uH([[document.documentElement]],Fu8)}
function TN(){this._="@"+(++oO$).toString(36)}
function l$(k,X,F){k.prototype=X.prototype=F;F.constructor=k}
function uw(k,X){k=Object.create(k.prototype);for(var F in X)k[F]=X[F];return k}
function UW(){}
function GT(k){var X;k=(k+"").trim().toLowerCase();return(X=w0T.exec(k))?(X=parseInt(X[1],16),new mJ(X>>8&15|X>>4&240,X>>4&15|X&240,(X&15)<<4|X&15,1)):(X=rYH.exec(k))?$8(parseInt(X[1],16)):(X=ze$.exec(k))?new mJ(X[1],X[2],X[3],1):(X=fZT.exec(k))?new mJ(X[1]*255/100,X[2]*255/100,X[3]*255/100,1):(X=$nT.exec(k))?hA(X[1],X[2],X[3],X[4]):(X=NZr.exec(k))?hA(X[1]*255/100,X[2]*255/100,X[3]*255/100,X[4]):(X=sHJ.exec(k))?Ft(X[1],X[2]/100,X[3]/100,1):(X=EOJ.exec(k))?Ft(X[1],X[2]/100,X[3]/100,X[4]):q35.hasOwnProperty(k)?
$8(q35[k]):k==="transparent"?new mJ(NaN,NaN,NaN,0):null}
function $8(k){return new mJ(k>>16&255,k>>8&255,k&255,1)}
function hA(k,X,F,lG){lG<=0&&(k=X=F=NaN);return new mJ(k,X,F,lG)}
function qG(k){k instanceof UW||(k=GT(k));if(!k)return new mJ;k=k.rgb();return new mJ(k.r,k.g,k.b,k.opacity)}
function zv(k,X,F,lG){return arguments.length===1?qG(k):new mJ(k,X,F,lG==null?1:lG)}
function mJ(k,X,F,lG){this.r=+k;this.g=+X;this.b=+F;this.opacity=+lG}
function nP(k){k=Math.max(0,Math.min(255,Math.round(k)||0));return(k<16?"0":"")+k.toString(16)}
function Ft(k,X,F,lG){lG<=0?k=X=F=NaN:F<=0||F>=1?k=X=NaN:X<=0&&(k=NaN);return new gs(k,X,F,lG)}
function PE(k){if(k instanceof gs)return new gs(k.h,k.s,k.l,k.opacity);k instanceof UW||(k=GT(k));if(!k)return new gs;if(k instanceof gs)return k;k=k.rgb();var X=k.r/255,F=k.g/255,lG=k.b/255,Po=Math.min(X,F,lG),Jd=Math.max(X,F,lG),mB=NaN,KC=Jd-Po,W5=(Jd+Po)/2;KC?(mB=X===Jd?(F-lG)/KC+(F<lG)*6:F===Jd?(lG-X)/KC+2:(X-F)/KC+4,KC/=W5<.5?Jd+Po:2-Jd-Po,mB*=60):KC=W5>0&&W5<1?0:mB;return new gs(mB,KC,W5,k.opacity)}
function bO(k,X,F,lG){return arguments.length===1?PE(k):new gs(k,X,F,lG==null?1:lG)}
function gs(k,X,F,lG){this.h=+k;this.s=+X;this.l=+F;this.opacity=+lG}
function ip(k,X,F){return(k<60?X+(F-X)*k/60:k<180?F:k<240?X+(F-X)*(240-k)/60:X)*255}
function G3(k){if(k instanceof S3)return new S3(k.l,k.a,k.b,k.opacity);if(k instanceof X8){if(isNaN(k.h))return new S3(k.l,0,0,k.opacity);var X=k.h*MK_;return new S3(k.l,Math.cos(X)*k.c,Math.sin(X)*k.c,k.opacity)}k instanceof mJ||(k=qG(k));var F=R$(k.r),lG=R$(k.g),Po=R$(k.b);X=F$(.2225045*F+.7168786*lG+.0606169*Po);if(F===lG&&lG===Po)var Jd=F=X;else Jd=F$((.4360747*F+.3850649*lG+.1430804*Po)/.96422),F=F$((.0139322*F+.0971045*lG+.7141733*Po)/.82521);return new S3(116*X-16,500*(Jd-X),200*(X-F),k.opacity)}
function S3(k,X,F,lG){this.l=+k;this.a=+X;this.b=+F;this.opacity=+lG}
function F$(k){return k>TZq?Math.pow(k,1/3):k/Re8+Zum}
function Ec(k){return k>q_?k*k*k:Re8*(k-Zum)}
function Rg(k){return 255*(k<=.0031308?12.92*k:1.055*Math.pow(k,1/2.4)-.055)}
function R$(k){return(k/=255)<=.04045?k/12.92:Math.pow((k+.055)/1.055,2.4)}
function ch(k){if(k instanceof X8)return new X8(k.h,k.c,k.l,k.opacity);k instanceof S3||(k=G3(k));if(k.a===0&&k.b===0)return new X8(NaN,0,k.l,k.opacity);var X=Math.atan2(k.b,k.a)*eeg;return new X8(X<0?X+360:X,Math.sqrt(k.a*k.a+k.b*k.b),k.l,k.opacity)}
function k8(k,X,F,lG){return arguments.length===1?ch(k):new X8(k,X,F,lG==null?1:lG)}
function X8(k,X,F,lG){this.h=+k;this.c=+X;this.l=+F;this.opacity=+lG}
function ag(k,X,F,lG){if(arguments.length===1){var Po=k;if(Po instanceof zT)Po=new zT(Po.h,Po.s,Po.l,Po.opacity);else{Po instanceof mJ||(Po=qG(Po));var Jd=Po.g/255,mB=Po.b/255,KC=(mn8*mB+Po.r/255*-1.7884503806-3.5172982438*Jd)/(mn8+-1.7884503806-3.5172982438);mB-=KC;var W5=(1.97294*(Jd-KC)- -.29227*mB)/-.90649;mB=(Jd=Math.sqrt(W5*W5+mB*mB)/(1.97294*KC*(1-KC)))?Math.atan2(W5,mB)*eeg-120:NaN;Po=new zT(mB<0?mB+360:mB,Jd,KC,Po.opacity)}}else Po=new zT(k,X,F,lG==null?1:lG);return Po}
function zT(k,X,F,lG){this.h=+k;this.s=+X;this.l=+F;this.opacity=+lG}
function fc(k,X,F,lG,Po){var Jd=k*k,mB=Jd*k;return((1-3*k+3*Jd-mB)*X+(4-6*Jd+3*mB)*F+(1+3*k+3*Jd-3*mB)*lG+mB*Po)/6}
function Jy(k){return function(){return k}}
function TP(k,X){return function(F){return k+F*X}}
function yH(k,X,F){return k=Math.pow(k,F),X=Math.pow(X,F)-k,F=1/F,function(lG){return Math.pow(k+lG*X,F)}}
function $C(k,X){var F=X-k;return F?TP(k,F>180||F<-180?F-360*Math.round(F/360):F):Jy(isNaN(k)?X:k)}
function H_(k){return(k=+k)===1?U1:function(X,F){return F-X?yH(X,F,k):Jy(isNaN(X)?F:X)}}
function U1(k,X){var F=X-k;return F?TP(k,F):Jy(isNaN(k)?X:k)}
function J4(k){return function(X){var F=X.length,lG=Array(F),Po=Array(F),Jd=Array(F),mB;for(mB=0;mB<F;++mB){var KC=zv(X[mB]);lG[mB]=KC.r||0;Po[mB]=KC.g||0;Jd[mB]=KC.b||0}lG=k(lG);Po=k(Po);Jd=k(Jd);KC.opacity=1;return function(W5){KC.r=lG(W5);KC.g=Po(W5);KC.b=Jd(W5);return KC+""}}}
function Lk(k,X){return k=+k,X-=k,function(F){return k+X*F}}
function zI(k){return function(){return k}}
function yv(k){return function(X){return k(X)+""}}
function E1(k,X){var F=wRK.lastIndex=rKl.lastIndex=0,lG,Po,Jd,mB=-1,KC=[],W5=[];k+="";for(X+="";(lG=wRK.exec(k))&&(Po=rKl.exec(X));)(Jd=Po.index)>F&&(Jd=X.slice(F,Jd),KC[mB]?KC[mB]+=Jd:KC[++mB]=Jd),(lG=lG[0])===(Po=Po[0])?KC[mB]?KC[mB]+=Po:KC[++mB]=Po:(KC[++mB]=null,W5.push({i:mB,x:Lk(lG,Po)})),F=rKl.lastIndex;F<X.length&&(Jd=X.slice(F),KC[mB]?KC[mB]+=Jd:KC[++mB]=Jd);return KC.length<2?W5[0]?yv(W5[0].x):zI(X):(X=W5.length,function(iH){for(var B5=0,Q_;B5<X;++B5)KC[(Q_=W5[B5]).i]=Q_.x(iH);return KC.join("")})}
function Z2(k,X,F,lG,Po,Jd){var mB,KC,W5;if(mB=Math.sqrt(k*k+X*X))k/=mB,X/=mB;if(W5=k*F+X*lG)F-=k*W5,lG-=X*W5;if(KC=Math.sqrt(F*F+lG*lG))F/=KC,lG/=KC,W5/=KC;k*lG<X*F&&(k=-k,X=-X,W5=-W5,mB=-mB);return{translateX:Po,translateY:Jd,rotate:Math.atan2(X,k)*aZH,skewX:Math.atan(W5)*aZH,scaleX:mB,scaleY:KC}}
function nA(k,X,F,lG){function Po(iH){return iH.length?iH.pop()+" ":""}
function Jd(iH,B5,Q_,Ig,KP,Zj){iH!==Q_||B5!==Ig?(KP=KP.push("translate(",null,X,null,F),Zj.push({i:KP-4,x:Lk(iH,Q_)},{i:KP-2,x:Lk(B5,Ig)})):(Q_||Ig)&&KP.push("translate("+Q_+X+Ig+F)}
function mB(iH,B5,Q_,Ig){iH!==B5?(iH-B5>180?B5+=360:B5-iH>180&&(iH+=360),Ig.push({i:Q_.push(Po(Q_)+"rotate(",null,lG)-2,x:Lk(iH,B5)})):B5&&Q_.push(Po(Q_)+"rotate("+B5+lG)}
function KC(iH,B5,Q_,Ig){iH!==B5?Ig.push({i:Q_.push(Po(Q_)+"skewX(",null,lG)-2,x:Lk(iH,B5)}):B5&&Q_.push(Po(Q_)+"skewX("+B5+lG)}
function W5(iH,B5,Q_,Ig,KP,Zj){iH!==Q_||B5!==Ig?(KP=KP.push(Po(KP)+"scale(",null,",",null,")"),Zj.push({i:KP-4,x:Lk(iH,Q_)},{i:KP-2,x:Lk(B5,Ig)})):Q_===1&&Ig===1||KP.push(Po(KP)+"scale("+Q_+","+Ig+")")}
return function(iH,B5){var Q_=[],Ig=[];iH=k(iH);B5=k(B5);Jd(iH.translateX,iH.translateY,B5.translateX,B5.translateY,Q_,Ig);mB(iH.rotate,B5.rotate,Q_,Ig);KC(iH.skewX,B5.skewX,Q_,Ig);W5(iH.scaleX,iH.scaleY,B5.scaleX,B5.scaleY,Q_,Ig);iH=B5=null;return function(KP){for(var Zj=-1,sS=Ig.length,dE;++Zj<sS;)Q_[(dE=Ig[Zj]).i]=dE.x(KP);return Q_.join("")}}}
function ta(k){return function(X,F){var lG=k((X=bO(X)).h,(F=bO(F)).h),Po=U1(X.s,F.s),Jd=U1(X.l,F.l),mB=U1(X.opacity,F.opacity);return function(KC){X.h=lG(KC);X.s=Po(KC);X.l=Jd(KC);X.opacity=mB(KC);return X+""}}}
function qi(k){return function(X,F){var lG=k((X=k8(X)).h,(F=k8(F)).h),Po=U1(X.c,F.c),Jd=U1(X.l,F.l),mB=U1(X.opacity,F.opacity);return function(KC){X.h=lG(KC);X.c=Po(KC);X.l=Jd(KC);X.opacity=mB(KC);return X+""}}}
function uX(k){return function lG(F){function Po(Jd,mB){var KC=k((Jd=ag(Jd)).h,(mB=ag(mB)).h),W5=U1(Jd.s,mB.s),iH=U1(Jd.l,mB.l),B5=U1(Jd.opacity,mB.opacity);return function(Q_){Jd.h=KC(Q_);Jd.s=W5(Q_);Jd.l=iH(Math.pow(Q_,F));Jd.opacity=B5(Q_);return Jd+""}}
F=+F;Po.gamma=lG;return Po}(1)}
function kA(){return wi||(tKz(Q7),wi=hI.now()+$al)}
function Q7(){wi=0}
function d7(){this._call=this._time=this._next=null}
function vw(k,X,F){var lG=new d7;lG.restart(k,X,F);return lG}
function aA(){wi=(N$c=hI.now())+$al;M_=Pe=0;try{kA();++M_;for(var k=sIK,X;k;)(X=wi-k._time)>=0&&k._call.call(null,X),k=k._next;--M_}finally{M_=0;k=sIK;for(var F=Infinity;k;)if(k._call){F>k._time&&(F=k._time);var lG=k;k=k._next}else X=k._next,k._next=null,k=lG?lG._next=X:sIK=X;bb=lG;ep(F);wi=0}}
function GH(){var k=hI.now(),X=k-N$c;X>1E3&&($al-=X,N$c=k)}
function ep(k){M_||(Pe&&(Pe=clearTimeout(Pe)),k-wi>24?(k<Infinity&&(Pe=setTimeout(aA,k-hI.now()-$al)),gG&&(gG=clearInterval(gG))):(gG||(N$c=hI.now(),gG=setInterval(GH,1E3)),M_=1,tKz(aA)))}
function Ay(k,X,F){var lG=new d7;X=X==null?0:+X;lG.restart(function(Po){lG.stop();k(Po+X)},X,F);
return lG}
function qw(k,X,F,lG,Po,Jd){var mB=k.__transition;if(!mB)k.__transition={};else if(F in mB)return;rs(k,F,{name:X,index:lG,group:Po,on:IZT,tween:HuT,time:Jd.time,delay:Jd.delay,duration:Jd.duration,ease:Jd.ease,timer:null,state:0})}
function o$(k,X){k=rE(k,X);if(k.state>0)throw Error("ye");return k}
function Q1(k,X){k=rE(k,X);if(k.state>2)throw Error("ze");return k}
function rE(k,X){k=k.__transition;if(!k||!(k=k[X]))throw Error("Ae");return k}
function rs(k,X,F){function lG(W5){var iH,B5;if(F.state!==1)return Jd();for(Ig in mB){var Q_=mB[Ig];if(Q_.name===F.name){if(Q_.state===3)return Ay(lG);Q_.state===4?(Q_.state=6,Q_.timer.stop(),Q_.on.call("interrupt",k,k.__data__,Q_.index,Q_.group),delete mB[Ig]):+Ig<X&&(Q_.state=6,Q_.timer.stop(),delete mB[Ig])}}Ay(function(){F.state===3&&(F.state=4,F.timer.restart(Po,F.delay,F.time),Po(W5))});
F.state=2;F.on.call("start",k,k.__data__,F.index,F.group);if(F.state===2){F.state=3;KC=Array(B5=F.tween.length);var Ig=0;for(iH=-1;Ig<B5;++Ig)if(Q_=F.tween[Ig].value.call(k,k.__data__,F.index,F.group))KC[++iH]=Q_;KC.length=iH+1}}
function Po(W5){W5=W5<F.duration?F.ease.call(null,W5/F.duration):(F.timer.restart(Jd),F.state=5,1);for(var iH=-1,B5=KC.length;++iH<B5;)KC[iH].call(null,W5);F.state===5&&(F.on.call("end",k,k.__data__,F.index,F.group),Jd())}
function Jd(){F.state=6;F.timer.stop();delete mB[X];for(var W5 in mB)return;delete k.__transition}
var mB=k.__transition,KC;mB[X]=F;F.timer=vw(function(W5){F.state=1;F.timer.restart(lG,F.delay,F.time);F.delay<=W5&&lG(W5-F.delay)},0,F.time)}
function Yg(k,X){var F,lG;return function(){var Po=Q1(this,k),Jd=Po.tween;if(Jd!==F){lG=F=Jd;Jd=0;for(var mB=lG.length;Jd<mB;++Jd)if(lG[Jd].name===X){lG=lG.slice();lG.splice(Jd,1);break}}Po.tween=lG}}
function $z(k,X,F){var lG,Po;if(typeof F!=="function")throw Error();return function(){var Jd=Q1(this,k),mB=Jd.tween;if(mB!==lG){Po=(lG=mB).slice();mB={name:X,value:F};for(var KC=0,W5=Po.length;KC<W5;++KC)if(Po[KC].name===X){Po[KC]=mB;break}KC===W5&&Po.push(mB)}Jd.tween=Po}}
function mR(k,X,F){var lG=k._id;k.each(function(){var Po=Q1(this,lG);(Po.value||(Po.value={}))[X]=F.apply(this,arguments)});
return function(Po){return rE(Po,lG).value[X]}}
function X0m(k,X){var F;return(typeof X==="number"?Lk:X instanceof GT?S37:(F=GT(X))?(X=F,S37):E1)(k,X)}
function Y3$(k){return function(){this.removeAttribute(k)}}
function OuH(k){return function(){this.removeAttributeNS(k.space,k.local)}}
function VKH(k,X,F){var lG,Po;return function(){var Jd=this.getAttribute(k);return Jd===F?null:Jd===lG?Po:Po=X(lG=Jd,F)}}
function i_T(k,X,F){var lG,Po;return function(){var Jd=this.getAttributeNS(k.space,k.local);return Jd===F?null:Jd===lG?Po:Po=X(lG=Jd,F)}}
function lqP(k,X,F){var lG,Po,Jd;return function(){var mB=F(this);if(mB==null)return void this.removeAttribute(k);var KC=this.getAttribute(k);return KC===mB?null:KC===lG&&mB===Po?Jd:Jd=X(lG=KC,Po=mB)}}
function DPv(k,X,F){var lG,Po,Jd;return function(){var mB=F(this);if(mB==null)return void this.removeAttributeNS(k.space,k.local);var KC=this.getAttributeNS(k.space,k.local);return KC===mB?null:KC===lG&&mB===Po?Jd:Jd=X(lG=KC,Po=mB)}}
function UP2(k,X){function F(){var lG=this,Po=X.apply(lG,arguments);return Po&&function(Jd){lG.setAttributeNS(k.space,k.local,Po(Jd))}}
F._value=X;return F}
function naq(k,X){function F(){var lG=this,Po=X.apply(lG,arguments);return Po&&function(Jd){lG.setAttribute(k,Po(Jd))}}
F._value=X;return F}
function yQv(k,X){return function(){o$(this,k).delay=+X.apply(this,arguments)}}
function AQr(k,X){return X=+X,function(){o$(this,k).delay=X}}
function W$q(k,X){return function(){Q1(this,k).duration=+X.apply(this,arguments)}}
function BgH(k,X){return X=+X,function(){Q1(this,k).duration=X}}
function Cz2(k,X){if(typeof X!=="function")throw Error();return function(){Q1(this,k).ease=X}}
function h2J(k){return(k+"").trim().split(/^|\s+/).every(function(X){var F=X.indexOf(".");F>=0&&(X=X.slice(0,F));return!X||X==="start"})}
function PzJ(k,X,F){var lG,Po,Jd=h2J(X)?o$:Q1;return function(){var mB=Jd(this,k),KC=mB.on;if(KC!==lG)(Po=(lG=KC).copy()).on(X,F);mB.on=Po}}
function b_$(k){return function(){var X=this.parentNode,F;for(F in this.__transition)if(+F!==k)return;X&&X.removeChild(this)}}
function ga8(k,X){var F,lG,Po;return function(){var Jd=GN(this,k),mB=(this.style.removeProperty(k),GN(this,k));return Jd===mB?null:Jd===F&&mB===lG?Po:Po=X(F=Jd,lG=mB)}}
function u_P(k){return function(){this.style.removeProperty(k)}}
function va8(k,X,F){var lG,Po;return function(){var Jd=GN(this,k);return Jd===F?null:Jd===lG?Po:Po=X(lG=Jd,F)}}
function QY8(k,X,F){var lG,Po,Jd;return function(){var mB=GN(this,k),KC=F(this);KC==null&&(KC=(this.style.removeProperty(k),GN(this,k)));return mB===KC?null:mB===lG&&KC===Po?Jd:Jd=X(lG=mB,Po=KC)}}
function GOT(k,X,F){function lG(){var Po=this,Jd=X.apply(Po,arguments);return Jd&&function(mB){Po.style.setProperty(k,Jd(mB),F)}}
lG._value=X;return lG}
function JQv(k){return function(){this.textContent=k}}
function L$8(k){return function(){var X=k(this);this.textContent=X==null?"":X}}
function mP(k,X,F,lG){this._groups=k;this._parents=X;this._name=F;this._id=lG}
function zcK(k){return{type:k}}
function fu9(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function EG_(){}
function kw7(k,X){var F=new EG_;if(k instanceof EG_)k.each(function(mB,KC){F.set(KC,mB)});
else if(Array.isArray(k)){var lG=-1,Po=k.length,Jd;if(X==null)for(;++lG<Po;)F.set(lG,k[lG]);else for(;++lG<Po;)F.set(X(Jd=k[lG],lG,k),Jd)}else if(k)for(lG in k)F.set(lG,k[lG]);return F}
function T$N(){}
function dnk(k){return function(X){for(var F={},lG=0;lG<k.length;lG++)F[k[lG]]=X[lG]||"";return F}}
function qhJ(k,X){var F=dnk(k);return function(lG,Po){return X(F(lG),Po,k)}}
function MwJ(k){var X=Object.create(null),F=[];k.forEach(function(lG){for(var Po in lG)Po in X||F.push(X[Po]=Po)});
return F}
function Ku_(k){function X(mB,KC){function W5(){if(Zj)return $2d;if(sS)return sS=!1,cYr;var CA,i0=Q_,Sz;if(mB.charCodeAt(i0)===34){for(;Q_++<B5&&mB.charCodeAt(Q_)!==34||mB.charCodeAt(++Q_)===34;);(CA=Q_)>=B5?Zj=!0:(Sz=mB.charCodeAt(Q_++))===10?sS=!0:Sz===13&&(sS=!0,mB.charCodeAt(Q_)===10&&++Q_);return mB.slice(i0+1,CA-1).replace(/""/g,'"')}for(;Q_<B5;){if((Sz=mB.charCodeAt(CA=Q_++))===10)sS=!0;else if(Sz===13)sS=!0,mB.charCodeAt(Q_)===10&&++Q_;else if(Sz!==Jd)continue;return mB.slice(i0,CA)}return Zj=
!0,mB.slice(i0,B5)}
var iH=[],B5=mB.length,Q_=0,Ig=0,KP,Zj=B5<=0,sS=!1;mB.charCodeAt(B5-1)===10&&--B5;for(mB.charCodeAt(B5-1)===13&&--B5;(KP=W5())!==$2d;){for(var dE=[];KP!==cYr&&KP!==$2d;)dE.push(KP),KP=W5();KC&&(dE=KC(dE,Ig++))==null||iH.push(dE)}return iH}
function F(mB){return mB.map(lG).join(k)}
function lG(mB){return mB==null?"":Po.test(mB)?'"'+mB.replace(/"/g,'""')+'"':mB}
var Po=new RegExp('["'+k+"\n\r]"),Jd=k.charCodeAt(0);return{parse:function(mB,KC){var W5,iH;mB=X(mB,function(B5,Q_){if(W5)return W5(B5,Q_-1);iH=B5;W5=KC?qhJ(B5,KC):dnk(B5)});
mB.columns=iH||[];return mB},
parseRows:X,format:function(mB,KC){KC==null&&(KC=MwJ(mB));return[KC.map(lG).join(k)].concat(mB.map(function(W5){return KC.map(function(iH){return lG(W5[iH])}).join(k)})).join("\n")},
formatRows:function(mB){return mB.map(F).join("\n")}}}
function R25(k){if(!k.ok)throw Error("Be`"+k.status+"`"+k.statusText);return k.text()}
function p0v(k){return function(X,F,lG){arguments.length===2&&typeof F==="function"&&(lG=F,F=void 0);return fetch(X,F).then(R25).then(function(Po){return k(Po,lG)})}}
function xn_(k,X,F,lG){if(isNaN(X)||isNaN(F))return k;var Po,Jd=k._root;lG={data:lG};var mB=k._x0,KC=k._y0,W5=k._x1,iH=k._y1,B5,Q_,Ig,KP,Zj;if(!Jd)return k._root=lG,k;for(;Jd.length;)if((Ig=X>=(B5=(mB+W5)/2))?mB=B5:W5=B5,(KP=F>=(Q_=(KC+iH)/2))?KC=Q_:iH=Q_,Po=Jd,!(Jd=Jd[Zj=KP<<1|Ig]))return Po[Zj]=lG,k;var sS=+k._x.call(null,Jd.data);var dE=+k._y.call(null,Jd.data);if(X===sS&&F===dE)return lG.next=Jd,Po?Po[Zj]=lG:k._root=lG,k;do Po=Po?Po[Zj]=Array(4):k._root=Array(4),(Ig=X>=(B5=(mB+W5)/2))?mB=B5:W5=
B5,(KP=F>=(Q_=(KC+iH)/2))?KC=Q_:iH=Q_;while((Zj=KP<<1|Ig)===(Ig=(dE>=Q_)<<1|sS>=B5));return Po[Ig]=Jd,Po[Zj]=lG,k}
function DN(k,X,F,lG,Po){this.node=k;this.x0=X;this.y0=F;this.x1=lG;this.y1=Po}
function Z_$(k){return k[0]}
function e2$(k){return k[1]}
function NSK(k,X,F,lG,Po,Jd){this._x=k;this._y=X;this._x0=F;this._y0=lG;this._x1=Po;this._y1=Jd;this._root=void 0}
function jHy(k){for(var X={data:k.data},F=X;k=k.next;)F=F.next={data:k.data};return X}
function I03(k,X){if((X=(k=X?k.toExponential(X-1):k.toExponential()).indexOf("e"))<0)return null;var F=k.slice(0,X);return[F.length>1?F[0]+F.slice(2):F,+k.slice(X+1)]}
function mP8(k){return k=I03(Math.abs(k)),k?k[1]:NaN}
function aq8(k,X){return function(F,lG){for(var Po=F.length,Jd=[],mB=0,KC=k[0],W5=0;Po>0&&KC>0;){W5+KC+1>lG&&(KC=Math.max(1,lG-W5));Jd.push(F.substring(Po-=KC,Po+KC));if((W5+=KC+1)>lG)break;KC=k[mB=(mB+1)%k.length]}return Jd.reverse().join(X)}}
function tw8(k){return function(X){return X.replace(/[0-9]/g,function(F){return k[+F]})}}
function soN(k){return new EWo(k)}
function EWo(k){if(!(X=XZ$.exec(k)))throw Error("Ce`"+k);var X;this.fill=X[1]||" ";this.align=X[2]||">";this.sign=X[3]||"-";this.symbol=X[4]||"";this.zero=!!X[5];this.width=X[6]&&+X[6];this.comma=!!X[7];this.precision=X[8]&&+X[8].slice(1);this.trim=!!X[9];this.type=X[10]||""}
function Fuz(k,X){X=I03(k,X);if(!X)return k+"";k=X[0];X=X[1];return X<0?"0."+Array(-X).join("0")+k:k.length>X+1?k.slice(0,X+1)+"."+k.slice(X+1):k+Array(X-k.length+2).join("0")}
function oOH(k){return k}
function ShW(k){function X(KC){function W5(OW){var e2=Sz,E5=ys,Rl,hk;if(i0==="c")E5=l0(OW)+E5,OW="";else{OW=+OW;var x8=OW<0;OW=l0(Math.abs(OW),dE);if(CA){var OZ=OW.length,DB=1,hH=-1;a:for(;DB<OZ;++DB)switch(OW[DB]){case ".":hH=Rl=DB;break;case "0":hH===0&&(hH=DB);Rl=DB;break;default:if(!+OW[DB])break a;hH>0&&(hH=0)}OW=hH>0?OW.slice(0,hH)+OW.slice(Rl+1):OW}x8&&+OW===0&&(x8=!1);e2=(x8?Q_==="("?Q_:"-":Q_==="-"||Q_==="("?"":Q_)+e2;E5=(i0==="s"?w0v[8+rYy/3]:"")+E5+(x8&&Q_==="("?")":"");if(eU)for(x8=-1,
Rl=OW.length;++x8<Rl;)if(hk=OW.charCodeAt(x8),48>hk||hk>57){E5=(hk===46?Po+OW.slice(x8+1):OW.slice(x8))+E5;OW=OW.slice(0,x8);break}}sS&&!KP&&(OW=F(OW,Infinity));hk=e2.length+OW.length+E5.length;x8=hk<Zj?Array(Zj-hk+1).join(iH):"";sS&&KP&&(OW=F(x8+OW,x8.length?Zj-E5.length:Infinity),x8="");switch(B5){case "<":OW=e2+OW+E5+x8;break;case "=":OW=e2+x8+OW+E5;break;case "^":OW=x8.slice(0,hk=x8.length>>1)+e2+OW+E5+x8.slice(hk);break;default:OW=x8+e2+OW+E5}return Jd(OW)}
KC=soN(KC);var iH=KC.fill,B5=KC.align,Q_=KC.sign,Ig=KC.symbol,KP=KC.zero,Zj=KC.width,sS=KC.comma,dE=KC.precision,CA=KC.trim,i0=KC.type;i0==="n"?(sS=!0,i0="g"):zeH[i0]||(dE==null&&(dE=12),CA=!0,i0="g");if(KP||iH==="0"&&B5==="=")KP=!0,iH="0",B5="=";var Sz=Ig==="$"?lG[0]:Ig==="#"&&/[boxX]/.test(i0)?"0"+i0.toLowerCase():"",ys=Ig==="$"?lG[1]:/[%p]/.test(i0)?mB:"",l0=zeH[i0],eU=/[defgprs%]/.test(i0);dE=dE==null?6:/[gprs]/.test(i0)?Math.max(1,Math.min(21,dE)):Math.max(0,Math.min(20,dE));W5.toString=function(){return KC+
""};
return W5}
var F=k.grouping&&k.thousands?aq8(k.grouping,k.thousands):oOH,lG=k.currency,Po=k.decimal,Jd=k.numerals?tw8(k.numerals):oOH,mB=k.percent||"%";return{format:X,formatPrefix:function(KC,W5){var iH=X((KC=soN(KC),KC.type="f",KC));KC=Math.max(-8,Math.min(8,Math.floor(mP8(W5)/3)))*3;var B5=Math.pow(10,-KC),Q_=w0v[8+KC/3];return function(Ig){return iH(B5*Ig)+Q_}}}}
function NF(){this.reset()}
function fZv(k,X,F){var lG=k.s=X+F,Po=lG-X;k.t=X-(lG-Po)+(F-Po)}
function HBc(k){return k>1?YX:k<-1?-YX:Math.asin(k)}
function kOw(){}
function $nv(k){var X=k[0];k=k[1];var F=Or(k);return[F*Or(X),F*xB(X),xB(k)]}
function NZy(k,X){return[k[1]*X[2]-k[2]*X[1],k[2]*X[0]-k[0]*X[2],k[0]*X[1]-k[1]*X[0]]}
function sH8(k){var X=YUg(k[0]*k[0]+k[1]*k[1]+k[2]*k[2]);k[0]/=X;k[1]/=X;k[2]/=X}
function dP$(){var k=[],X;return{point:function(F,lG){X.push([F,lG])},
lineStart:function(){k.push(X=[])},
lineEnd:kOw,rejoin:function(){k.length>1&&k.push(k.pop().concat(k.shift()))},
result:function(){var F=k;k=[];X=null;return F}}}
function OBK(k,X,F,lG){this.x=k;this.z=X;this.o=F;this.e=lG;this.v=!1;this.n=this.p=null}
function K$q(k,X,F,lG,Po){var Jd=[],mB=[];k.forEach(function(Q_){if(!((Ig=Q_.length-1)<=0)){var Ig,KP=Q_[0],Zj=Q_[Ig],sS=KP;if(a4(sS[0]-Zj[0])<1E-6&&a4(sS[1]-Zj[1])<1E-6){Po.lineStart();for(KC=0;KC<Ig;++KC)Po.point((KP=Q_[KC])[0],KP[1]);Po.lineEnd()}else Jd.push(Ig=new OBK(KP,Q_,null,!0)),mB.push(Ig.o=new OBK(KP,null,Ig,!1)),Jd.push(Ig=new OBK(Zj,Q_,null,!1)),mB.push(Ig.o=new OBK(Zj,null,Ig,!0))}});
if(Jd.length){mB.sort(X);EO8(Jd);EO8(mB);var KC=0;for(k=mB.length;KC<k;++KC)mB[KC].e=F=!F;F=Jd[0];for(var W5;;){for(var iH=F,B5=!0;iH.v;)if((iH=iH.n)===F)return;X=iH.z;Po.lineStart();do{iH.v=iH.o.v=!0;if(iH.e){if(B5)for(KC=0,k=X.length;KC<k;++KC)Po.point((W5=X[KC])[0],W5[1]);else lG(iH.x,iH.n.x,1,Po);iH=iH.n}else{if(B5)for(X=iH.p.z,KC=X.length-1;KC>=0;--KC)Po.point((W5=X[KC])[0],W5[1]);else lG(iH.x,iH.p.x,-1,Po);iH=iH.p}iH=iH.o;X=iH.z;B5=!B5}while(!iH.v);Po.lineEnd()}}}
function EO8(k){if(X=k.length){for(var X,F=0,lG=k[0],Po;++F<X;)lG.n=Po=k[F],Po.p=lG,lG=Po;lG.n=Po=k[0];Po.p=lG}}
function cQJ(k){return k.length>1}
function pZ5(k,X){return((k=k.x)[0]<0?k[1]-YX-1E-6:YX-k[1])-((X=X.x)[0]<0?X[1]-YX-1E-6:YX-X[1])}
function TSc(){}
function TZ_(k){return function(X,F){var lG=Or(X),Po=Or(F);lG=k(lG*Po);return[lG*Po*xB(X),lG*xB(F)]}}
function ub(k){return function(X,F){var lG=YUg(X*X+F*F),Po=k(lG),Jd=xB(Po);Po=Or(Po);return[IZv(X*Jd,lG*Po),HBc(lG&&F*Jd/lG)]}}
function xP8(k){var X=0,F=k.children,lG=F&&F.length;if(lG)for(;--lG>=0;)X+=F[lG].value;else X=1;k.value=X}
function Huv(k,X){var F=new ve(k);k=+k.value&&(F.value=k.value);var lG,Po=[F],Jd,mB,KC,W5;for(X==null&&(X=jYv);lG=Po.pop();)if(k&&(lG.value=+lG.data.value),(mB=X(lG.data))&&(W5=mB.length))for(lG.children=Array(W5),KC=W5-1;KC>=0;--KC)Po.push(Jd=lG.children[KC]=new ve(mB[KC])),Jd.parent=lG,Jd.depth=lG.depth+1;return F.eachBefore(F$$)}
function jYv(k){return k.children}
function oaP(k){k.data=k.data.data}
function F$$(k){var X=0;do k.height=X;while((k=k.parent)&&k.height<++X)}
function ve(k){this.data=k;this.depth=this.height=0;this.parent=null}
function Z5(k,X,F,lG){function Po(Jd){return k(Jd=new Date(+Jd)),Jd}
Po.floor=Po;Po.ceil=function(Jd){return k(Jd=new Date(Jd-1)),X(Jd,1),k(Jd),Jd};
Po.round=function(Jd){var mB=Po(Jd),KC=Po.ceil(Jd);return Jd-mB<KC-Jd?mB:KC};
Po.offset=function(Jd,mB){return X(Jd=new Date(+Jd),mB==null?1:Math.floor(mB)),Jd};
Po.range=function(Jd,mB,KC){var W5=[],iH;Jd=Po.ceil(Jd);KC=KC==null?1:Math.floor(KC);if(!(Jd<mB&&KC>0))return W5;do W5.push(iH=new Date(+Jd)),X(Jd,KC),k(Jd);while(iH<Jd&&Jd<mB);return W5};
Po.filter=function(Jd){return Z5(function(mB){if(mB>=mB)for(;k(mB),!Jd(mB);)mB.setTime(mB-1)},function(mB,KC){if(mB>=mB)if(KC<0)for(;++KC<=0;)for(;X(mB,-1),!Jd(mB););
else for(;--KC>=0;)for(;X(mB,1),!Jd(mB););})};
F&&(Po.count=function(Jd,mB){Iu_.setTime(+Jd);HFo.setTime(+mB);k(Iu_);k(HFo);return Math.floor(F(Iu_,HFo))},Po.every=function(Jd){Jd=Math.floor(Jd);
return isFinite(Jd)&&Jd>0?Jd>1?Po.filter(lG?function(mB){return lG(mB)%Jd===0}:function(mB){return Po.count(0,mB)%Jd===0}):Po:null});
return Po}
function ri(k){return Z5(function(X){X.setDate(X.getDate()-(X.getDay()+7-k)%7);X.setHours(0,0,0,0)},function(X,F){X.setDate(X.getDate()+F*7)},function(X,F){return(F-X-(F.getTimezoneOffset()-X.getTimezoneOffset())*6E4)/6048E5})}
function z6(k){return Z5(function(X){X.setUTCDate(X.getUTCDate()-(X.getUTCDay()+7-k)%7);X.setUTCHours(0,0,0,0)},function(X,F){X.setUTCDate(X.getUTCDate()+F*7)},function(X,F){return(F-X)/6048E5})}
function wZ$(k){if(0<=k.y&&k.y<100){var X=new Date(-1,k.m,k.d,k.H,k.M,k.S,k.L);X.setFullYear(k.y);return X}return new Date(k.y,k.m,k.d,k.H,k.M,k.S,k.L)}
function V2G(k){if(0<=k.y&&k.y<100){var X=new Date(Date.UTC(-1,k.m,k.d,k.H,k.M,k.S,k.L));X.setUTCFullYear(k.y);return X}return new Date(Date.UTC(k.y,k.m,k.d,k.H,k.M,k.S,k.L))}
function QF(k){return{y:k,m:0,d:1,H:0,M:0,S:0,L:0}}
function rQW(k){function X(E5,Rl){return function(hk){var x8=[],OZ=-1,DB=0,hH=E5.length,ZJ,ax;for(hk instanceof Date||(hk=new Date(+hk));++OZ<hH;)if(E5.charCodeAt(OZ)===37){x8.push(E5.slice(DB,OZ));(DB=Y3g[ZJ=E5.charAt(++OZ)])!=null?ZJ=E5.charAt(++OZ):DB=ZJ==="e"?" ":"0";if(ax=Rl[ZJ])ZJ=ax(hk,DB);x8.push(ZJ);DB=OZ+1}x8.push(E5.slice(DB,OZ));return x8.join("")}}
function F(E5,Rl){return function(hk){var x8=QF(1900);if(lG(x8,E5,hk,0)!=hk.length)return null;if("Q"in x8)return new Date(x8.Q);"p"in x8&&(x8.H=x8.H%12+x8.p*12);if("V"in x8){if(x8.V<1||x8.V>53)return null;"w"in x8||(x8.w=1);if("Z"in x8){hk=V2G(QF(x8.y));var OZ=hk.getUTCDay();hk=OZ>4||OZ===0?YA9.ceil(hk):YA9(hk);hk=Ouy.offset(hk,(x8.V-1)*7);x8.y=hk.getUTCFullYear();x8.m=hk.getUTCMonth();x8.d=hk.getUTCDate()+(x8.w+6)%7}else hk=Rl(QF(x8.y)),OZ=hk.getDay(),hk=OZ>4||OZ===0?OF_.ceil(hk):OF_(hk),hk=VKy.offset(hk,
(x8.V-1)*7),x8.y=hk.getFullYear(),x8.m=hk.getMonth(),x8.d=hk.getDate()+(x8.w+6)%7}else if("W"in x8||"U"in x8)"w"in x8||(x8.w="u"in x8?x8.u%7:"W"in x8?1:0),OZ="Z"in x8?V2G(QF(x8.y)).getUTCDay():Rl(QF(x8.y)).getDay(),x8.m=0,x8.d="W"in x8?(x8.w+6)%7+x8.W*7-(OZ+5)%7:x8.w+x8.U*7-(OZ+6)%7;return"Z"in x8?(x8.H+=x8.Z/100|0,x8.M+=x8.Z%100,V2G(x8)):Rl(x8)}}
function lG(E5,Rl,hk,x8){for(var OZ=0,DB=Rl.length,hH=hk.length,ZJ;OZ<DB;){if(x8>=hH)return-1;ZJ=Rl.charCodeAt(OZ++);if(ZJ===37){if(ZJ=Rl.charAt(OZ++),ZJ=e2[ZJ in Y3g?Rl.charAt(OZ++):ZJ],!ZJ||(x8=ZJ(E5,hk,x8))<0)return-1}else if(ZJ!=hk.charCodeAt(x8++))return-1}return x8}
var Po=k.dateTime,Jd=k.date,mB=k.time,KC=k.periods,W5=k.days,iH=k.shortDays,B5=k.months,Q_=k.shortMonths,Ig=GV(KC),KP=JI(KC),Zj=GV(W5),sS=JI(W5),dE=GV(iH),CA=JI(iH),i0=GV(B5),Sz=JI(B5),ys=GV(Q_),l0=JI(Q_),eU={a:function(E5){return iH[E5.getDay()]},
A:function(E5){return W5[E5.getDay()]},
b:function(E5){return Q_[E5.getMonth()]},
B:function(E5){return B5[E5.getMonth()]},
c:null,d:i_v,e:i_v,f:z28,H:fq5,I:$PH,j:Ng5,L:lqm,m:sYW,M:EaP,p:function(E5){return KC[+(E5.getHours()>=12)]},
Q:DP7,s:UP5,S:Tgr,u:Iqq,U:H_W,V:Yhw,w:O_H,W:Vw8,x:null,X:null,y:iKW,Y:lD$,Z:DYH,"%":na_},OW={a:function(E5){return iH[E5.getUTCDay()]},
A:function(E5){return W5[E5.getUTCDay()]},
b:function(E5){return Q_[E5.getUTCMonth()]},
B:function(E5){return B5[E5.getUTCMonth()]},
c:null,d:yQ7,e:yQ7,f:UYJ,H:nd8,I:yg5,j:Ag$,L:AQy,m:WK5,M:BRw,p:function(E5){return KC[+(E5.getUTCHours()>=12)]},
Q:DP7,s:UP5,S:CXJ,u:h5q,U:PX5,V:bK2,w:gdP,W:uQJ,x:null,X:null,y:vdT,Y:Q5H,Z:Gkw,"%":na_},e2={a:function(E5,Rl,hk){return(Rl=dE.exec(Rl.slice(hk)))?(E5.w=CA[Rl[0].toLowerCase()],hk+Rl[0].length):-1},
A:function(E5,Rl,hk){return(Rl=Zj.exec(Rl.slice(hk)))?(E5.w=sS[Rl[0].toLowerCase()],hk+Rl[0].length):-1},
b:function(E5,Rl,hk){return(Rl=ys.exec(Rl.slice(hk)))?(E5.m=l0[Rl[0].toLowerCase()],hk+Rl[0].length):-1},
B:function(E5,Rl,hk){return(Rl=i0.exec(Rl.slice(hk)))?(E5.m=Sz[Rl[0].toLowerCase()],hk+Rl[0].length):-1},
c:function(E5,Rl,hk){return lG(E5,Po,Rl,hk)},
d:W$_,e:W$_,f:Jg5,H:Bgy,I:Bgy,j:LKW,L:qRH,m:MS8,M:R5q,p:function(E5,Rl,hk){return(Rl=Ig.exec(Rl.slice(hk)))?(E5.p=KP[Rl[0].toLowerCase()],hk+Rl[0].length):-1},
Q:ZK2,s:e5$,S:mY5,u:aDW,U:tS8,V:XwW,w:SRP,W:kk5,x:function(E5,Rl,hk){return lG(E5,Jd,Rl,hk)},
X:function(E5,Rl,hk){return lG(E5,mB,Rl,hk)},
y:dY8,Y:KKP,Z:cgJ,"%":pw$};eU.x=X(Jd,eU);eU.X=X(mB,eU);eU.c=X(Po,eU);OW.x=X(Jd,OW);OW.X=X(mB,OW);OW.c=X(Po,OW);return{format:function(E5){var Rl=X(E5,eU);Rl.toString=function(){return E5};
return Rl},
parse:function(E5){var Rl=F(E5,wZ$);Rl.toString=function(){return E5};
return Rl},
utcFormat:function(E5){var Rl=X(E5,OW);Rl.toString=function(){return E5};
return Rl},
utcParse:function(E5){var Rl=F(E5,V2G);Rl.toString=function(){return E5};
return Rl}}}
function eM(k,X,F){var lG=k<0?"-":"";k=(lG?-k:k)+"";var Po=k.length;return lG+(Po<F?Array(F-Po+1).join(X)+k:k)}
function xYT(k){return k.replace(j5w,"\\$&")}
function GV(k){return new RegExp("^(?:"+k.map(xYT).join("|")+")","i")}
function JI(k){for(var X={},F=-1,lG=k.length;++F<lG;)X[k[F].toLowerCase()]=F;return X}
function SRP(k,X,F){return(X=kS.exec(X.slice(F,F+1)))?(k.w=+X[0],F+X[0].length):-1}
function aDW(k,X,F){return(X=kS.exec(X.slice(F,F+1)))?(k.u=+X[0],F+X[0].length):-1}
function tS8(k,X,F){return(X=kS.exec(X.slice(F,F+2)))?(k.U=+X[0],F+X[0].length):-1}
function XwW(k,X,F){return(X=kS.exec(X.slice(F,F+2)))?(k.V=+X[0],F+X[0].length):-1}
function kk5(k,X,F){return(X=kS.exec(X.slice(F,F+2)))?(k.W=+X[0],F+X[0].length):-1}
function KKP(k,X,F){return(X=kS.exec(X.slice(F,F+4)))?(k.y=+X[0],F+X[0].length):-1}
function dY8(k,X,F){return(X=kS.exec(X.slice(F,F+2)))?(k.y=+X[0]+(+X[0]>68?1900:2E3),F+X[0].length):-1}
function cgJ(k,X,F){return(X=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(X.slice(F,F+6)))?(k.Z=X[1]?0:-(X[2]+(X[3]||"00")),F+X[0].length):-1}
function MS8(k,X,F){return(X=kS.exec(X.slice(F,F+2)))?(k.m=X[0]-1,F+X[0].length):-1}
function W$_(k,X,F){return(X=kS.exec(X.slice(F,F+2)))?(k.d=+X[0],F+X[0].length):-1}
function LKW(k,X,F){return(X=kS.exec(X.slice(F,F+3)))?(k.m=0,k.d=+X[0],F+X[0].length):-1}
function Bgy(k,X,F){return(X=kS.exec(X.slice(F,F+2)))?(k.H=+X[0],F+X[0].length):-1}
function R5q(k,X,F){return(X=kS.exec(X.slice(F,F+2)))?(k.M=+X[0],F+X[0].length):-1}
function mY5(k,X,F){return(X=kS.exec(X.slice(F,F+2)))?(k.S=+X[0],F+X[0].length):-1}
function qRH(k,X,F){return(X=kS.exec(X.slice(F,F+3)))?(k.L=+X[0],F+X[0].length):-1}
function Jg5(k,X,F){return(X=kS.exec(X.slice(F,F+6)))?(k.L=Math.floor(X[0]/1E3),F+X[0].length):-1}
function pw$(k,X,F){return(k=FK$.exec(X.slice(F,F+1)))?F+k[0].length:-1}
function ZK2(k,X,F){return(X=kS.exec(X.slice(F)))?(k.Q=+X[0],F+X[0].length):-1}
function e5$(k,X,F){return(X=kS.exec(X.slice(F)))?(k.Q=+X[0]*1E3,F+X[0].length):-1}
function i_v(k,X){return eM(k.getDate(),X,2)}
function fq5(k,X){return eM(k.getHours(),X,2)}
function $PH(k,X){return eM(k.getHours()%12||12,X,2)}
function Ng5(k,X){return eM(1+VKy.count(Rk(k),k),X,3)}
function lqm(k,X){return eM(k.getMilliseconds(),X,3)}
function z28(k,X){return lqm(k,X)+"000"}
function sYW(k,X){return eM(k.getMonth()+1,X,2)}
function EaP(k,X){return eM(k.getMinutes(),X,2)}
function Tgr(k,X){return eM(k.getSeconds(),X,2)}
function Iqq(k){k=k.getDay();return k===0?7:k}
function H_W(k,X){return eM(od2.count(Rk(k),k),X,2)}
function Yhw(k,X){var F=k.getDay();k=F>=4||F===0?VP3(k):VP3.ceil(k);return eM(VP3.count(Rk(k),k)+(Rk(k).getDay()===4),X,2)}
function O_H(k){return k.getDay()}
function Vw8(k,X){return eM(OF_.count(Rk(k),k),X,2)}
function iKW(k,X){return eM(k.getFullYear()%100,X,2)}
function lD$(k,X){return eM(k.getFullYear()%1E4,X,4)}
function DYH(k){k=k.getTimezoneOffset();return(k>0?"-":(k*=-1,"+"))+eM(k/60|0,"0",2)+eM(k%60,"0",2)}
function yQ7(k,X){return eM(k.getUTCDate(),X,2)}
function nd8(k,X){return eM(k.getUTCHours(),X,2)}
function yg5(k,X){return eM(k.getUTCHours()%12||12,X,2)}
function Ag$(k,X){return eM(1+Ouy.count(Zw(k),k),X,3)}
function AQy(k,X){return eM(k.getUTCMilliseconds(),X,3)}
function UYJ(k,X){return AQy(k,X)+"000"}
function WK5(k,X){return eM(k.getUTCMonth()+1,X,2)}
function BRw(k,X){return eM(k.getUTCMinutes(),X,2)}
function CXJ(k,X){return eM(k.getUTCSeconds(),X,2)}
function h5q(k){k=k.getUTCDay();return k===0?7:k}
function PX5(k,X){return eM(wwJ.count(Zw(k),k),X,2)}
function bK2(k,X){var F=k.getUTCDay();k=F>=4||F===0?iuN(k):iuN.ceil(k);return eM(iuN.count(Zw(k),k)+(Zw(k).getUTCDay()===4),X,2)}
function gdP(k){return k.getUTCDay()}
function uQJ(k,X){return eM(YA9.count(Zw(k),k),X,2)}
function vdT(k,X){return eM(k.getUTCFullYear()%100,X,2)}
function Q5H(k,X){return eM(k.getUTCFullYear()%1E4,X,4)}
function Gkw(){return"+0000"}
function na_(){return"%"}
function DP7(k){return+k}
function UP5(k){return Math.floor(+k/1E3)}
function v7(k){for(var X=k.length/6|0,F=Array(X),lG=0;lG<X;)F[lG]="#"+k.slice(lG*6,++lG*6);return F}
function V5(k){return rgW(k[k.length-1])}
function iAc(k){var X=k.length;return function(F){return k[Math.max(0,Math.min(X-1,Math.floor(F*X)))]}}
function Cz5(k){this._context=k}
function h2k(k){this._curve=k}
function Pzk(k,X,F){var lG=k._x1-k._x0;X-=k._x1;var Po=(k._y1-k._y0)/(lG||X<0&&-0);k=(F-k._y1)/(X||lG<0&&-0);return((Po<0?-1:1)+(k<0?-1:1))*Math.min(Math.abs(Po),Math.abs(k),.5*Math.abs((Po*X+k*lG)/(lG+X)))||0}
function b_g(k,X){var F=k._x1-k._x0;return F?(3*(k._y1-k._y0)/F-X)/2:X}
function lZd(k,X,F){var lG=k._x0,Po=k._x1,Jd=k._y1,mB=(Po-lG)/3;k._context.bezierCurveTo(lG+mB,k._y0+mB*X,Po-mB,Jd-mB*F,Po,Jd)}
function DnK(k){this._context=k}
function ga1(k){this._context=k}
function LD(k,X,F){this.k=k;this.x=X;this.y=F}
(function(k){k.length===1&&(k=D(k));return{left:function(X,F,lG,Po){lG==null&&(lG=0);Po==null&&(Po=X.length);for(;lG<Po;){var Jd=lG+Po>>>1;k(X[Jd],F)<0?lG=Jd+1:Po=Jd}return lG},
right:function(X,F,lG,Po){lG==null&&(lG=0);Po==null&&(Po=X.length);for(;lG<Po;){var Jd=lG+Po>>>1;k(X[Jd],F)>0?Po=Jd:lG=Jd+1}return lG}}})(l);
var jHr={value:function(){}};
n.prototype=U.prototype={constructor:n,on:function(k,X){var F=this._,lG=y(k+"",F),Po,Jd=-1,mB=lG.length;if(arguments.length<2)for(;++Jd<mB;){var KC;if(KC=Po=(k=lG[Jd]).type){a:{KC=F[Po];for(var W5=0,iH=KC.length;W5<iH;++W5)if((Po=KC[W5]).name===k.name){Po=Po.value;break a}Po=void 0}KC=Po}if(KC)return Po}else{if(X!=null&&typeof X!=="function")throw Error("De`"+X);for(;++Jd<mB;)if(Po=(k=lG[Jd]).type)F[Po]=A(F[Po],k.name,X);else if(X==null)for(Po in F)F[Po]=A(F[Po],k.name,null);return this}},
copy:function(){var k={},X=this._,F;for(F in X)k[F]=X[F].slice();return new n(k)},
call:function(k,X){if((Po=arguments.length-2)>0)for(var F=Array(Po),lG=0,Po,Jd;lG<Po;++lG)F[lG]=arguments[lG+2];if(!this._.hasOwnProperty(k))throw Error("xe`"+k);Jd=this._[k];lG=0;for(Po=Jd.length;lG<Po;++lG)Jd[lG].value.apply(X,F)},
apply:function(k,X,F){if(!this._.hasOwnProperty(k))throw Error("xe`"+k);k=this._[k];for(var lG=0,Po=k.length;lG<Po;++lG)k[lG].value.apply(X,F)}};
var HF={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/"},u_m=function(k){return function(){return this.matches(k)}};
if(typeof document!=="undefined"){var qe=document.documentElement;if(!qe.matches){var z58=qe.webkitMatchesSelector||qe.msMatchesSelector||qe.mozMatchesSelector||qe.oMatchesSelector;u_m=function(k){return function(){return z58.call(this,k)}}}}var va1=u_m;
L.prototype={constructor:L,appendChild:function(k){return this._parent.insertBefore(k,this._next)},
insertBefore:function(k,X){return this._parent.insertBefore(k,X)},
querySelector:function(k){return this._parent.querySelector(k)},
querySelectorAll:function(k){return this._parent.querySelectorAll(k)}};
var Lu7={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(Lu7={mouseenter:"mouseover",mouseleave:"mouseout"}));var Fu8=[null];uH.prototype=yq.prototype={constructor:uH,select:function(k){typeof k!=="function"&&(k=G(k));for(var X=this._groups,F=X.length,lG=Array(F),Po=0;Po<F;++Po)for(var Jd=X[Po],mB=Jd.length,KC=lG[Po]=Array(mB),W5,iH,B5=0;B5<mB;++B5)(W5=Jd[B5])&&(iH=k.call(W5,W5.__data__,B5,Jd))&&("__data__"in W5&&(iH.__data__=W5.__data__),KC[B5]=iH);return new uH(lG,
this._parents)},
filter:function(k){typeof k!=="function"&&(k=va1(k));for(var X=this._groups,F=X.length,lG=Array(F),Po=0;Po<F;++Po)for(var Jd=X[Po],mB=Jd.length,KC=lG[Po]=[],W5,iH=0;iH<mB;++iH)(W5=Jd[iH])&&k.call(W5,W5.__data__,iH,Jd)&&KC.push(W5);return new uH(lG,this._parents)},
data:function(k,X){if(!k)return KP=Array(this.size()),iH=-1,this.each(function(i0){KP[++iH]=i0}),KP;
var F=X?S:a,lG=this._parents,Po=this._groups;typeof k!=="function"&&(k=R(k));for(var Jd=Po.length,mB=Array(Jd),KC=Array(Jd),W5=Array(Jd),iH=0;iH<Jd;++iH){var B5=lG[iH],Q_=Po[iH],Ig=Q_.length,KP=k.call(B5,B5&&B5.__data__,iH,lG),Zj=KP.length,sS=KC[iH]=Array(Zj),dE=mB[iH]=Array(Zj);Ig=W5[iH]=Array(Ig);F(B5,Q_,sS,dE,Ig,KP,X);Q_=B5=0;for(var CA;B5<Zj;++B5)if(Ig=sS[B5]){for(B5>=Q_&&(Q_=B5+1);!(CA=dE[Q_])&&++Q_<Zj;);Ig._next=CA||null}}mB=new uH(mB,lG);mB._enter=KC;mB._exit=W5;return mB},
enter:function(){return new uH(this._enter||this._groups.map(J),this._parents)},
exit:function(){return new uH(this._exit||this._groups.map(J),this._parents)},
merge:function(k){var X=this._groups;k=k._groups;for(var F=X.length,lG=Math.min(F,k.length),Po=Array(F),Jd=0;Jd<lG;++Jd)for(var mB=X[Jd],KC=k[Jd],W5=mB.length,iH=Po[Jd]=Array(W5),B5,Q_=0;Q_<W5;++Q_)if(B5=mB[Q_]||KC[Q_])iH[Q_]=B5;for(;Jd<F;++Jd)Po[Jd]=X[Jd];return new uH(Po,this._parents)},
order:function(){for(var k=this._groups,X=-1,F=k.length;++X<F;)for(var lG=k[X],Po=lG.length-1,Jd=lG[Po],mB;--Po>=0;)if(mB=lG[Po])Jd&&Jd!==mB.nextSibling&&Jd.parentNode.insertBefore(mB,Jd),Jd=mB;return this},
sort:function(k){function X(Q_,Ig){return Q_&&Ig?k(Q_.__data__,Ig.__data__):!Q_-!Ig}
k||(k=d);for(var F=this._groups,lG=F.length,Po=Array(lG),Jd=0;Jd<lG;++Jd){for(var mB=F[Jd],KC=mB.length,W5=Po[Jd]=Array(KC),iH,B5=0;B5<KC;++B5)if(iH=mB[B5])W5[B5]=iH;W5.sort(X)}return(new uH(Po,this._parents)).order()},
call:function(){var k=arguments[0];arguments[0]=this;k.apply(null,arguments);return this},
nodes:function(){var k=Array(this.size()),X=-1;this.each(function(){k[++X]=this});
return k},
node:function(){for(var k=this._groups,X=0,F=k.length;X<F;++X)for(var lG=k[X],Po=0,Jd=lG.length;Po<Jd;++Po){var mB=lG[Po];if(mB)return mB}return null},
size:function(){var k=0;this.each(function(){++k});
return k},
empty:function(){return!this.node()},
each:function(k){for(var X=this._groups,F=0,lG=X.length;F<lG;++F)for(var Po=X[F],Jd=0,mB=Po.length,KC;Jd<mB;++Jd)(KC=Po[Jd])&&k.call(KC,KC.__data__,Jd,Po);return this},
attr:function(k,X){var F=C(k);if(arguments.length<2){var lG=this.node();return F.local?lG.getAttributeNS(F.space,F.local):lG.getAttribute(F)}return this.each((X==null?F.local?N:c:typeof X==="function"?F.local?iG:I:F.local?f:z)(F,X))},
style:function(k,X,F){return arguments.length>1?this.each((X==null?CC:typeof X==="function"?td:vo)(k,X,F==null?"":F)):GN(this.node(),k)},
property:function(k,X){return arguments.length>1?this.each((X==null?Ms:typeof X==="function"?wl:j3)(k,X)):this.node()[k]},
text:function(k){return arguments.length?this.each(k==null?zN:(typeof k==="function"?Lm:Z7)(k)):this.node().textContent},
html:function(k){return arguments.length?this.each(k==null?Vg:(typeof k==="function"?mk:v5)(k)):this.node().innerHTML},
append:function(k){var X=typeof k==="function"?k:u(k);return this.select(function(){return this.appendChild(X.apply(this,arguments))})},
insert:function(k,X){var F=typeof k==="function"?k:u(k),lG=X==null?dy:typeof X==="function"?X:G(X);return this.select(function(){return this.insertBefore(F.apply(this,arguments),lG.apply(this,arguments)||null)})},
remove:function(){return this.each(eW)},
clone:function(k){return this.select(k?Bo:Qq)},
datum:function(k){return arguments.length?this.property("__data__",k):this.node().__data__},
on:function(k,X,F){var lG=H5(k+""),Po=lG.length,Jd;if(arguments.length<2){var mB=this.node().__on;if(mB)for(var KC=0,W5=mB.length,iH;KC<W5;++KC){var B5=0;for(iH=mB[KC];B5<Po;++B5)if((Jd=lG[B5]).type===iH.type&&Jd.name===iH.name)return iH.value}}else{mB=X?V_:Mr;F==null&&(F=!1);for(B5=0;B5<Po;++B5)this.each(mB(lG[B5],X,F));return this}},
dispatch:function(k,X){return this.each((typeof X==="function"?gy:Nr)(k,X))}};
var oO$=0;TN.prototype=function(){return new TN}.prototype={constructor:TN,
get:function(k){for(var X=this._;!(X in k);)if(!(k=k.parentNode))return;return k[X]},
set:function(k,X){return k[this._]=X},
remove:function(k){return this._ in k&&delete k[this._]},
toString:function(){return this._}};
var eB=1/.7,w0T=/^#([0-9a-f]{3})$/,rYH=/^#([0-9a-f]{6})$/,ze$=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),fZT=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),$nT=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),NZr=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*\\)$"),
sHJ=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),EOJ=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*\\)$"),q35={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};
l$(UW,GT,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
l$(mJ,zv,uw(UW,{brighter:function(k){k=k==null?eB:Math.pow(eB,k);return new mJ(this.r*k,this.g*k,this.b*k,this.opacity)},
darker:function(k){k=k==null?.7:Math.pow(.7,k);return new mJ(this.r*k,this.g*k,this.b*k,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"#"+nP(this.r)+nP(this.g)+nP(this.b)},
toString:function(){var k=this.opacity;k=isNaN(k)?1:Math.max(0,Math.min(1,k));return(k===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))+(k===1?")":", "+k+")")}}));
l$(gs,bO,uw(UW,{brighter:function(k){k=k==null?eB:Math.pow(eB,k);return new gs(this.h,this.s,this.l*k,this.opacity)},
darker:function(k){k=k==null?.7:Math.pow(.7,k);return new gs(this.h,this.s,this.l*k,this.opacity)},
rgb:function(){var k=this.h%360+(this.h<0)*360,X=this.l,F=X+(X<.5?X:1-X)*(isNaN(k)||isNaN(this.s)?0:this.s);X=2*X-F;return new mJ(ip(k>=240?k-240:k+120,X,F),ip(k,X,F),ip(k<120?k+240:k-120,X,F),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 MK_=Math.PI/180,eeg=180/Math.PI,Zum=4/29,q_=6/29,Re8=3*q_*q_,TZq=q_*q_*q_;l$(S3,function(k,X,F,lG){return arguments.length===1?G3(k):new S3(k,X,F,lG==null?1:lG)},uw(UW,{brighter:function(k){return new S3(this.l+18*(k==null?1:k),this.a,this.b,this.opacity)},
darker:function(k){return new S3(this.l-18*(k==null?1:k),this.a,this.b,this.opacity)},
rgb:function(){var k=(this.l+16)/116,X=isNaN(this.a)?k:k+this.a/500,F=isNaN(this.b)?k:k-this.b/200;X=.96422*Ec(X);k=1*Ec(k);F=.82521*Ec(F);return new mJ(Rg(3.1338561*X-1.6168667*k-.4906146*F),Rg(-.9787684*X+1.9161415*k+.033454*F),Rg(.0719453*X-.2289914*k+1.4052427*F),this.opacity)}}));
l$(X8,k8,uw(UW,{brighter:function(k){return new X8(this.h,this.c,this.l+18*(k==null?1:k),this.opacity)},
darker:function(k){return new X8(this.h,this.c,this.l-18*(k==null?1:k),this.opacity)},
rgb:function(){return G3(this).rgb()}}));
var mn8=1.78277*-.29227-.1347134789;l$(zT,ag,uw(UW,{brighter:function(k){k=k==null?eB:Math.pow(eB,k);return new zT(this.h,this.s,this.l*k,this.opacity)},
darker:function(k){k=k==null?.7:Math.pow(.7,k);return new zT(this.h,this.s,this.l*k,this.opacity)},
rgb:function(){var k=isNaN(this.h)?0:(this.h+120)*MK_,X=+this.l,F=isNaN(this.s)?0:this.s*X*(1-X),lG=Math.cos(k);k=Math.sin(k);return new mJ(255*(X+F*(-.14861*lG+1.78277*k)),255*(X+F*(-.29227*lG+-.90649*k)),255*(X+1.97294*lG*F),this.opacity)}}));
var S37=function F(X){function lG(Jd,mB){var KC=Po((Jd=zv(Jd)).r,(mB=zv(mB)).r),W5=Po(Jd.g,mB.g),iH=Po(Jd.b,mB.b),B5=U1(Jd.opacity,mB.opacity);return function(Q_){Jd.r=KC(Q_);Jd.g=W5(Q_);Jd.b=iH(Q_);Jd.opacity=B5(Q_);return Jd+""}}
var Po=H_(X);lG.gamma=F;return lG}(1),rgW=J4(function(X){var F=X.length-1;
return function(lG){var Po=lG<=0?lG=0:lG>=1?(lG=1,F-1):Math.floor(lG*F),Jd=X[Po],mB=X[Po+1];return fc((lG-Po/F)*F,Po>0?X[Po-1]:2*Jd-mB,Jd,mB,Po<F-1?X[Po+2]:2*mB-Jd)}});
J4(function(X){var F=X.length;return function(lG){var Po=Math.floor(((lG%=1)<0?++lG:lG)*F);return fc((lG-Po/F)*F,X[(Po+F-1)%F],X[Po%F],X[(Po+1)%F],X[(Po+2)%F])}});
var wRK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rKl=new RegExp(wRK.source,"g"),aZH=180/Math.PI,Un$={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Me,nOK,QYz,lm3,fD5=nA(function(X){if(X==="none")return Un$;Me||(Me=document.createElement("DIV"),nOK=document.documentElement,QYz=document.defaultView);Me.style.transform=X;X=QYz.getComputedStyle(nOK.appendChild(Me),null).getPropertyValue("transform");nOK.removeChild(Me);X=X.slice(7,-1).split(",");return Z2(+X[0],+X[1],+X[2],+X[3],
+X[4],+X[5])},"px, ","px)","deg)"),$Yq=nA(function(X){if(X==null)return Un$;
lm3||(lm3=document.createElementNS("http://www.w3.org/2000/svg","g"));lm3.setAttribute("transform",X);if(!(X=lm3.transform.baseVal.consolidate()))return Un$;X=X.matrix;return Z2(X.a,X.b,X.c,X.d,X.e,X.f)},", ",")",")");
ta($C);ta(U1);qi($C);qi(U1);uX($C);var yY9=uX(U1),M_=0,Pe=0,gG=0,sIK,bb,N$c=0,wi=0,$al=0,hI=typeof performance==="object"&&performance.now?performance:Date,tKz=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(X){setTimeout(X,17)};
d7.prototype=vw.prototype={constructor:d7,restart:function(X,F,lG){if(typeof X!=="function")throw new TypeError("Ee");lG=(lG==null?kA():+lG)+(F==null?0:+F);this._next||bb===this||(bb?bb._next=this:sIK=this,bb=this);this._call=X;this._time=lG;ep()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,ep())}};
var IZT=U("start","end","interrupt"),HuT=[],NRv=yq.prototype.constructor,GOv=0,mc=yq.prototype;mP.prototype=function(X){return yq().transition(X)}.prototype={constructor:mP,
select:function(X){var F=this._name,lG=this._id;typeof X!=="function"&&(X=G(X));for(var Po=this._groups,Jd=Po.length,mB=Array(Jd),KC=0;KC<Jd;++KC)for(var W5=Po[KC],iH=W5.length,B5=mB[KC]=Array(iH),Q_,Ig,KP=0;KP<iH;++KP)(Q_=W5[KP])&&(Ig=X.call(Q_,Q_.__data__,KP,W5))&&("__data__"in Q_&&(Ig.__data__=Q_.__data__),B5[KP]=Ig,qw(B5[KP],F,lG,KP,B5,rE(Q_,lG)));return new mP(mB,this._parents,F,lG)},
filter:function(X){typeof X!=="function"&&(X=va1(X));for(var F=this._groups,lG=F.length,Po=Array(lG),Jd=0;Jd<lG;++Jd)for(var mB=F[Jd],KC=mB.length,W5=Po[Jd]=[],iH,B5=0;B5<KC;++B5)(iH=mB[B5])&&X.call(iH,iH.__data__,B5,mB)&&W5.push(iH);return new mP(Po,this._parents,this._name,this._id)},
merge:function(X){if(X._id!==this._id)throw Error();var F=this._groups;X=X._groups;for(var lG=F.length,Po=Math.min(lG,X.length),Jd=Array(lG),mB=0;mB<Po;++mB)for(var KC=F[mB],W5=X[mB],iH=KC.length,B5=Jd[mB]=Array(iH),Q_,Ig=0;Ig<iH;++Ig)if(Q_=KC[Ig]||W5[Ig])B5[Ig]=Q_;for(;mB<lG;++mB)Jd[mB]=F[mB];return new mP(Jd,this._parents,this._name,this._id)},
selection:function(){return new NRv(this._groups,this._parents)},
transition:function(){for(var X=this._name,F=this._id,lG=++GOv,Po=this._groups,Jd=Po.length,mB=0;mB<Jd;++mB)for(var KC=Po[mB],W5=KC.length,iH,B5=0;B5<W5;++B5)if(iH=KC[B5]){var Q_=rE(iH,F);qw(iH,X,lG,B5,KC,{time:Q_.time+Q_.delay+Q_.duration,delay:0,duration:Q_.duration,ease:Q_.ease})}return new mP(Po,this._parents,X,lG)},
call:mc.call,nodes:mc.nodes,node:mc.node,size:mc.size,empty:mc.empty,each:mc.each,on:function(X,F){var lG=this._id;return arguments.length<2?rE(this.node(),lG).on.on(X):this.each(PzJ(lG,X,F))},
attr:function(X,F){var lG=C(X),Po=lG==="transform"?$Yq:X0m;return this.attrTween(X,typeof F==="function"?(lG.local?DPv:lqP)(lG,Po,mR(this,"attr."+X,F)):F==null?(lG.local?OuH:Y3$)(lG):(lG.local?i_T:VKH)(lG,Po,F+""))},
attrTween:function(X,F){var lG="attr."+X;if(arguments.length<2)return(lG=this.tween(lG))&&lG._value;if(F==null)return this.tween(lG,null);if(typeof F!=="function")throw Error();var Po=C(X);return this.tween(lG,(Po.local?UP2:naq)(Po,F))},
style:function(X,F,lG){var Po=X==="transform"?fD5:X0m;return F==null?this.styleTween(X,ga8(X,Po)).on("end.style."+X,u_P(X)):this.styleTween(X,typeof F==="function"?QY8(X,Po,mR(this,"style."+X,F)):va8(X,Po,F+""),lG)},
styleTween:function(X,F,lG){var Po="style."+X;if(arguments.length<2)return(Po=this.tween(Po))&&Po._value;if(F==null)return this.tween(Po,null);if(typeof F!=="function")throw Error();return this.tween(Po,GOT(X,F,lG==null?"":lG))},
text:function(X){return this.tween("text",typeof X==="function"?L$8(mR(this,"text",X)):JQv(X==null?"":X+""))},
remove:function(){return this.on("end.remove",b_$(this._id))},
tween:function(X,F){var lG=this._id;if(arguments.length<2){lG=rE(this.node(),lG).tween;for(var Po=0,Jd=lG.length,mB;Po<Jd;++Po)if((mB=lG[Po]).name===X)return mB.value;return null}return this.each((F==null?Yg:$z)(lG,X,F))},
delay:function(X){var F=this._id;return arguments.length?this.each((typeof X==="function"?yQv:AQr)(F,X)):rE(this.node(),F).delay},
duration:function(X){var F=this._id;return arguments.length?this.each((typeof X==="function"?W$q:BgH)(F,X)):rE(this.node(),F).duration},
ease:function(X){var F=this._id;return arguments.length?this.each(Cz2(F,X)):rE(this.node(),F).ease}};
var AYG={time:null,delay:0,duration:250,ease:function(X){return((X*=2)<=1?X*X*X:(X-=2)*X*X+2)/2}};
yq.prototype.transition=function(X){var F;if(X instanceof mP){var lG=X._id;X=X._name}else lG=++GOv,(F=AYG).time=kA(),X=X==null?null:X+"";for(var Po=this._groups,Jd=Po.length,mB=0;mB<Jd;++mB)for(var KC=Po[mB],W5=KC.length,iH,B5=0;B5<W5;++B5)if(iH=KC[B5]){var Q_=iH,Ig=X,KP=lG,Zj=B5,sS=KC,dE;if(!(dE=F))a:{dE=void 0;for(var CA=lG;!(dE=iH.__transition)||!(dE=dE[CA]);)if(!(iH=iH.parentNode)){dE=(AYG.time=kA(),AYG);break a}}qw(Q_,Ig,KP,Zj,sS,dE)}return new mP(Po,this._parents,X,lG)};
["e","w"].map(zcK);["n","s"].map(zcK);"n e s w nw ne se sw".split(" ").map(zcK);fu9.prototype=function(){return new fu9}.prototype={constructor:fu9,
moveTo:function(X,F){this._+="M"+(this._x0=this._x1=+X)+","+(this._y0=this._y1=+F)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(X,F){this._+="L"+(this._x1=+X)+","+(this._y1=+F)},
bezierCurveTo:function(X,F,lG,Po,Jd,mB){this._+="C"+ +X+","+ +F+","+ +lG+","+ +Po+","+(this._x1=+Jd)+","+(this._y1=+mB)},
rect:function(X,F,lG,Po){this._+="M"+(this._x0=this._x1=+X)+","+(this._y0=this._y1=+F)+"h"+ +lG+"v"+ +Po+"h"+-lG+"Z"},
toString:function(){return this._}};
EG_.prototype=kw7.prototype={constructor:EG_,has:function(X){return" "+X in this},
get:function(X){return this[" "+X]},
set:function(X,F){this[" "+X]=F;return this},
remove:function(X){X=" "+X;return X in this&&delete this[X]},
clear:function(){for(var X in this)X[0]===" "&&delete this[X]},
keys:function(){var X=[],F;for(F in this)F[0]===" "&&X.push(F.slice(1));return X},
values:function(){var X=[],F;for(F in this)F[0]===" "&&X.push(this[F]);return X},
entries:function(){var X=[],F;for(F in this)F[0]===" "&&X.push({key:F.slice(1),value:this[F]});return X},
size:function(){var X=0,F;for(F in this)F[0]===" "&&++X;return X},
empty:function(){for(var X in this)if(X[0]===" ")return!1;return!0},
each:function(X){for(var F in this)F[0]===" "&&X(this[F],F.slice(1),this)}};
var fG=kw7.prototype;T$N.prototype=function(X,F){var lG=new T$N;if(X instanceof T$N)X.each(function(mB){lG.add(mB)});
else if(X){var Po=-1,Jd=X.length;if(F==null)for(;++Po<Jd;)lG.add(X[Po]);else for(;++Po<Jd;)lG.add(F(X[Po],Po,X))}return lG}.prototype={constructor:T$N,
has:fG.has,add:function(X){this[" "+X]=X;return this},
remove:fG.remove,clear:fG.clear,values:fG.keys,size:fG.size,empty:fG.empty,each:fG.each};var cYr={},$2d={},s5W=Ku_(",").parse,Edr=Ku_("\t").parse;p0v(s5W);p0v(Edr);var Ul=function(X,F,lG){F=new NSK(F==null?Z_$:F,lG==null?e2$:lG,NaN,NaN,NaN,NaN);return X==null?F:F.addAll(X)}.prototype=NSK.prototype;
Ul.copy=function(){var X=new NSK(this._x,this._y,this._x0,this._y0,this._x1,this._y1),F=this._root,lG,Po;if(!F)return X;if(!F.length)return X._root=jHy(F),X;for(lG=[{source:F,target:X._root=Array(4)}];F=lG.pop();)for(var Jd=0;Jd<4;++Jd)if(Po=F.source[Jd])Po.length?lG.push({source:Po,target:F.target[Jd]=Array(4)}):F.target[Jd]=jHy(Po);return X};
Ul.add=function(X){var F=+this._x.call(null,X),lG=+this._y.call(null,X);return xn_(this.cover(F,lG),F,lG,X)};
Ul.addAll=function(X){var F,lG,Po=X.length,Jd,mB,KC=Array(Po),W5=Array(Po),iH=Infinity,B5=Infinity,Q_=-Infinity,Ig=-Infinity;for(lG=0;lG<Po;++lG)isNaN(Jd=+this._x.call(null,F=X[lG]))||isNaN(mB=+this._y.call(null,F))||(KC[lG]=Jd,W5[lG]=mB,Jd<iH&&(iH=Jd),Jd>Q_&&(Q_=Jd),mB<B5&&(B5=mB),mB>Ig&&(Ig=mB));Q_<iH&&(iH=this._x0,Q_=this._x1);Ig<B5&&(B5=this._y0,Ig=this._y1);this.cover(iH,B5).cover(Q_,Ig);for(lG=0;lG<Po;++lG)xn_(this,KC[lG],W5[lG],X[lG]);return this};
Ul.cover=function(X,F){if(isNaN(X=+X)||isNaN(F=+F))return this;var lG=this._x0,Po=this._y0,Jd=this._x1,mB=this._y1;if(isNaN(lG))Jd=(lG=Math.floor(X))+1,mB=(Po=Math.floor(F))+1;else if(lG>X||X>Jd||Po>F||F>mB){var KC=Jd-lG,W5=this._root,iH;switch(iH=(F<(Po+mB)/2)<<1|X<(lG+Jd)/2){case 0:do{var B5=Array(4);B5[iH]=W5;W5=B5}while(KC*=2,Jd=lG+KC,mB=Po+KC,X>Jd||F>mB);break;case 1:do B5=Array(4),B5[iH]=W5,W5=B5;while(KC*=2,lG=Jd-KC,mB=Po+KC,lG>X||F>mB);break;case 2:do B5=Array(4),B5[iH]=W5,W5=B5;while(KC*=
2,Jd=lG+KC,Po=mB-KC,X>Jd||Po>F);break;case 3:do B5=Array(4),B5[iH]=W5,W5=B5;while(KC*=2,lG=Jd-KC,Po=mB-KC,lG>X||Po>F)}this._root&&this._root.length&&(this._root=W5)}else return this;this._x0=lG;this._y0=Po;this._x1=Jd;this._y1=mB;return this};
Ul.data=function(){var X=[];this.visit(function(F){if(!F.length){do X.push(F.data);while(F=F.next)}});
return X};
Ul.extent=function(X){return arguments.length?this.cover(+X[0][0],+X[0][1]).cover(+X[1][0],+X[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Ul.find=function(X,F,lG){var Po=this._x0,Jd=this._y0,mB,KC,W5,iH,B5=this._x1,Q_=this._y1,Ig=[],KP=this._root,Zj;KP&&Ig.push(new DN(KP,Po,Jd,B5,Q_));lG==null?lG=Infinity:(Po=X-lG,Jd=F-lG,B5=X+lG,Q_=F+lG,lG*=lG);for(;Zj=Ig.pop();)if(!(!(KP=Zj.node)||(mB=Zj.x0)>B5||(KC=Zj.y0)>Q_||(W5=Zj.x1)<Po||(iH=Zj.y1)<Jd))if(KP.length){Zj=(mB+W5)/2;var sS=(KC+iH)/2;Ig.push(new DN(KP[3],Zj,sS,W5,iH),new DN(KP[2],mB,sS,Zj,iH),new DN(KP[1],Zj,KC,W5,sS),new DN(KP[0],mB,KC,Zj,sS));if(KP=(F>=sS)<<1|X>=Zj)Zj=Ig[Ig.length-
1],Ig[Ig.length-1]=Ig[Ig.length-1-KP],Ig[Ig.length-1-KP]=Zj}else if(Zj=X-+this._x.call(null,KP.data),sS=F-+this._y.call(null,KP.data),Zj=Zj*Zj+sS*sS,Zj<lG){var dE=Math.sqrt(lG=Zj);Po=X-dE;Jd=F-dE;B5=X+dE;Q_=F+dE;dE=KP.data}return dE};
Ul.remove=function(X){if(isNaN(iH=+this._x.call(null,X))||isNaN(B5=+this._y.call(null,X)))return this;var F,lG=this._root,Po,Jd=this._x0,mB=this._y0,KC=this._x1,W5=this._y1,iH,B5,Q_,Ig,KP,Zj,sS;if(!lG)return this;if(lG.length)for(;;){(KP=iH>=(Q_=(Jd+KC)/2))?Jd=Q_:KC=Q_;(Zj=B5>=(Ig=(mB+W5)/2))?mB=Ig:W5=Ig;if(!(F=lG,lG=lG[sS=Zj<<1|KP]))return this;if(!lG.length)break;if(F[sS+1&3]||F[sS+2&3]||F[sS+3&3]){var dE=F;var CA=sS}}for(;lG.data!==X;)if(!(Po=lG,lG=lG.next))return this;(X=lG.next)&&delete lG.next;
if(Po)return X?Po.next=X:delete Po.next,this;if(!F)return this._root=X,this;X?F[sS]=X:delete F[sS];(lG=F[0]||F[1]||F[2]||F[3])&&lG===(F[3]||F[2]||F[1]||F[0])&&!lG.length&&(dE?dE[CA]=lG:this._root=lG);return this};
Ul.removeAll=function(X){for(var F=0,lG=X.length;F<lG;++F)this.remove(X[F]);return this};
Ul.root=function(){return this._root};
Ul.size=function(){var X=0;this.visit(function(F){if(!F.length){do++X;while(F=F.next)}});
return X};
Ul.visit=function(X){var F=[],lG,Po=this._root,Jd,mB,KC,W5,iH;for(Po&&F.push(new DN(Po,this._x0,this._y0,this._x1,this._y1));lG=F.pop();)if(!X(Po=lG.node,mB=lG.x0,KC=lG.y0,W5=lG.x1,iH=lG.y1)&&Po.length){lG=(mB+W5)/2;var B5=(KC+iH)/2;(Jd=Po[3])&&F.push(new DN(Jd,lG,B5,W5,iH));(Jd=Po[2])&&F.push(new DN(Jd,mB,B5,lG,iH));(Jd=Po[1])&&F.push(new DN(Jd,lG,KC,W5,B5));(Jd=Po[0])&&F.push(new DN(Jd,mB,KC,lG,B5))}};
Ul.visitAfter=function(X){var F=[],lG=[],Po;for(this._root&&F.push(new DN(this._root,this._x0,this._y0,this._x1,this._y1));Po=F.pop();){var Jd=Po.node;if(Jd.length){var mB,KC=Po.x0,W5=Po.y0,iH=Po.x1,B5=Po.y1,Q_=(KC+iH)/2,Ig=(W5+B5)/2;(mB=Jd[0])&&F.push(new DN(mB,KC,W5,Q_,Ig));(mB=Jd[1])&&F.push(new DN(mB,Q_,W5,iH,Ig));(mB=Jd[2])&&F.push(new DN(mB,KC,Ig,Q_,B5));(mB=Jd[3])&&F.push(new DN(mB,Q_,Ig,iH,B5))}lG.push(Po)}for(;Po=lG.pop();)X(Po.node,Po.x0,Po.y0,Po.x1,Po.y1);return this};
Ul.x=function(X){return arguments.length?(this._x=X,this):this._x};
Ul.y=function(X){return arguments.length?(this._y=X,this):this._y};
var XZ$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;soN.prototype=EWo.prototype;EWo.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 rYy,zeH={"%":function(X,F){return(X*100).toFixed(F)},
b:function(X){return Math.round(X).toString(2)},
c:function(X){return X+""},
d:function(X){return Math.round(X).toString(10)},
e:function(X,F){return X.toExponential(F)},
f:function(X,F){return X.toFixed(F)},
g:function(X,F){return X.toPrecision(F)},
o:function(X){return Math.round(X).toString(8)},
p:function(X,F){return Fuz(X*100,F)},
r:Fuz,s:function(X,F){var lG=I03(X,F);if(!lG)return X+"";var Po=lG[0];lG=lG[1];lG=lG-(rYy=Math.max(-8,Math.min(8,Math.floor(lG/3)))*3)+1;var Jd=Po.length;return lG===Jd?Po:lG>Jd?Po+Array(lG-Jd+1).join("0"):lG>0?Po.slice(0,lG)+"."+Po.slice(lG):"0."+Array(1-lG).join("0")+I03(X,Math.max(0,F+lG-1))[0]},
X:function(X){return Math.round(X).toString(16).toUpperCase()},
x:function(X){return Math.round(X).toString(16)}},w0v="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),TRP;
(function(X){return TRP=ShW(X)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});NF.prototype={constructor:NF,reset:function(){this.s=this.t=0},
add:function(X){fZv(DMl,X,this.t);fZv(this,DMl.s,this.s);this.s?this.t+=DMl.t:this.s=DMl.t},
valueOf:function(){return this.s}};
var DMl=new NF,U2=Math.PI,YX=U2/2,JQ7=U2/4,IDJ=U2*2,Wuo=U2/180,a4=Math.abs,BZ$=Math.atan,IZv=Math.atan2,Or=Math.cos,xB=Math.sin,YUg=Math.sqrt;new NF;new NF;new NF;var C5l=new NF;(function(X,F,lG,Po){return function(Jd){function mB(l0,eU){X(l0,eU)&&Jd.point(l0,eU)}
function KC(l0,eU){KP.point(l0,eU)}
function W5(){ys.point=KC;KP.lineStart()}
function iH(){ys.point=mB;KP.lineEnd()}
function B5(l0,eU){Sz.push([l0,eU]);sS.point(l0,eU)}
function Q_(){sS.lineStart();Sz=[]}
function Ig(){B5(Sz[0][0],Sz[0][1]);sS.lineEnd();var l0=sS.clean(),eU=Zj.result(),OW=eU.length,e2;Sz.pop();CA.push(Sz);Sz=null;if(OW)if(l0&1){if(OW=eU[0],(eU=OW.length-1)>0){dE||(Jd.polygonStart(),dE=!0);Jd.lineStart();for(l0=0;l0<eU;++l0)Jd.point((e2=OW[l0])[0],e2[1]);Jd.lineEnd()}}else OW>1&&l0&2&&eU.push(eU.pop().concat(eU.shift())),i0.push(eU.filter(cQJ))}
var KP=F(Jd),Zj=dP$(),sS=F(Zj),dE=!1,CA,i0,Sz,ys={point:mB,lineStart:W5,lineEnd:iH,polygonStart:function(){ys.point=B5;ys.lineStart=Q_;ys.lineEnd=Ig;i0=[];CA=[]},
polygonEnd:function(){ys.point=mB;ys.lineStart=W5;ys.lineEnd=iH;var l0=i0,eU=l0.length;var OW=-1;for(var e2=0,E5,Rl;++OW<eU;)e2+=l0[OW].length;for(E5=Array(e2);--eU>=0;)for(Rl=l0[eU],OW=Rl.length;--OW>=0;)E5[--e2]=Rl[OW];i0=E5;l0=CA;eU=Po[0];e2=Po[1];var hk=xB(e2);OW=[xB(eU),-Or(eU),0];Rl=E5=0;C5l.reset();hk===1?e2=YX+1E-6:hk===-1&&(e2=-YX-1E-6);hk=0;for(var x8=l0.length;hk<x8;++hk)if(DB=(OZ=l0[hk]).length){var OZ,DB,hH=OZ[DB-1],ZJ=hH[0],ax=hH[1]/2+JQ7,UMc=xB(ax),L$1=Or(ax);for(ax=0;ax<DB;++ax,ZJ=
he_,UMc=qhk,L$1=RM,hH=nY_){var nY_=OZ[ax],he_=nY_[0];RM=nY_[1]/2+JQ7;var qhk=xB(RM),RM=Or(RM),ak=he_-ZJ,P5G=ak>=0?1:-1,bug=P5G*ak,yHl=bug>U2;UMc*=qhk;C5l.add(IZv(UMc*P5G*xB(bug),L$1*RM+UMc*Or(bug)));E5+=yHl?ak+P5G*IDJ:ak;yHl^ZJ>=eU^he_>=eU&&(hH=NZy($nv(hH),$nv(nY_)),sH8(hH),ZJ=NZy(OW,hH),sH8(ZJ),ZJ=(yHl^ak>=0?-1:1)*HBc(ZJ[2]),e2>ZJ||e2===ZJ&&(hH[0]||hH[1]))&&(Rl+=yHl^ak>=0?1:-1)}}l0=(E5<-1E-6||E5<1E-6&&C5l<-1E-6)^Rl&1;i0.length?(dE||(Jd.polygonStart(),dE=!0),K$q(i0,pZ5,l0,lG,Jd)):l0&&(dE||(Jd.polygonStart(),
dE=!0),Jd.lineStart(),lG(null,null,1,Jd),Jd.lineEnd());dE&&(Jd.polygonEnd(),dE=!1);i0=CA=null},
sphere:function(){Jd.polygonStart();Jd.lineStart();lG(null,null,1,Jd);Jd.lineEnd();Jd.polygonEnd()}};
return ys}})(function(){return!0},function(X){var F=NaN,lG=NaN,Po=NaN,Jd;
return{lineStart:function(){X.lineStart();Jd=1},
point:function(mB,KC){var W5=mB>0?U2:-U2,iH=a4(mB-F);if(a4(iH-U2)<1E-6)X.point(F,lG=(lG+KC)/2>0?YX:-YX),X.point(Po,lG),X.lineEnd(),X.lineStart(),X.point(W5,lG),X.point(mB,lG),Jd=0;else if(Po!==W5&&iH>=U2){a4(F-Po)<1E-6&&(F-=Po*1E-6);a4(mB-W5)<1E-6&&(mB-=W5*1E-6);iH=F;var B5=lG,Q_=mB,Ig,KP,Zj=xB(iH-Q_);lG=a4(Zj)>1E-6?BZ$((xB(B5)*(KP=Or(KC))*xB(Q_)-xB(KC)*(Ig=Or(B5))*xB(iH))/(Ig*KP*Zj)):(B5+KC)/2;X.point(Po,lG);X.lineEnd();X.lineStart();X.point(W5,lG);Jd=0}X.point(F=mB,lG=KC);Po=W5},
lineEnd:function(){X.lineEnd();F=lG=NaN},
clean:function(){return 2-Jd}}},function(X,F,lG,Po){X==null?(lG*=YX,Po.point(-U2,lG),Po.point(0,lG),Po.point(U2,lG),Po.point(U2,0),Po.point(U2,-lG),Po.point(0,-lG),Po.point(-U2,-lG),Po.point(-U2,0),Po.point(-U2,lG)):a4(X[0]-F[0])>1E-6?(X=X[0]<F[0]?U2:-U2,lG=lG*X/2,Po.point(-X,lG),Po.point(0,lG),Po.point(X,lG)):Po.point(F[0],F[1])},[-U2,
-YX]);new NF;new NF;new NF;new NF;TSc.prototype={constructor:TSc,point:function(X,F){this.stream.point(X,F)},
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()}};
Or(30*Wuo);(function(X){return function(F){var lG=new TSc,Po;for(Po in X)lG[Po]=X[Po];lG.stream=F;return lG}})({point:function(X,F){this.stream.point(X*Wuo,F*Wuo)}});
TZ_(function(X){return YUg(2/(1+X))}).invert=ub(function(X){return 2*HBc(X/2)});
TZ_(function(X){return(X=X>1?0:X<-1?U2:Math.acos(X))&&X/xB(X)}).invert=ub(function(X){return X});
YUg(3);ub(BZ$);ub(HBc);ub(function(X){return 2*BZ$(X)});
ve.prototype=Huv.prototype={constructor:ve,count:function(){return this.eachAfter(xP8)},
each:function(X){var F,lG=[this],Po;do{var Jd=lG.reverse();for(lG=[];F=Jd.pop();)if(X(F),F=F.children){var mB=0;for(Po=F.length;mB<Po;++mB)lG.push(F[mB])}}while(lG.length);return this},
eachAfter:function(X){for(var F,lG=[this],Po=[],Jd,mB;F=lG.pop();)if(Po.push(F),F=F.children)for(Jd=0,mB=F.length;Jd<mB;++Jd)lG.push(F[Jd]);for(;F=Po.pop();)X(F);return this},
eachBefore:function(X){for(var F,lG=[this],Po;F=lG.pop();)if(X(F),F=F.children)for(Po=F.length-1;Po>=0;--Po)lG.push(F[Po]);return this},
sum:function(X){return this.eachAfter(function(F){for(var lG=+X(F.data)||0,Po=F.children,Jd=Po&&Po.length;--Jd>=0;)lG+=Po[Jd].value;F.value=lG})},
sort:function(X){return this.eachBefore(function(F){F.children&&F.children.sort(X)})},
path:function(X){var F=this;var lG=F;var Po=X;if(lG!==Po){var Jd=lG.ancestors(),mB=Po.ancestors(),KC=null;lG=Jd.pop();for(Po=mB.pop();lG===Po;)KC=lG,lG=Jd.pop(),Po=mB.pop();lG=KC}for(Po=[F];F!==lG;)F=F.parent,Po.push(F);for(F=Po.length;X!==lG;)Po.splice(F,0,X),X=X.parent;return Po},
ancestors:function(){for(var X=this,F=[X];X=X.parent;)F.push(X);return F},
links:function(){var X=this,F=[];X.each(function(lG){lG!==X&&F.push({source:lG.parent,target:lG})});
return F},
copy:function(){return Huv(this).eachBefore(oaP)}};
(function(X,F){this._=X;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=F}).prototype=Object.create(ve.prototype);
var Iu_=new Date,HFo=new Date,Mw8=Z5(function(){},function(X,F){X.setTime(+X+F)},function(X,F){return F-X});
Mw8.every=function(X){X=Math.floor(X);return isFinite(X)&&X>0?X>1?Z5(function(F){F.setTime(Math.floor(F/X)*X)},function(F,lG){F.setTime(+F+lG*X)},function(F,lG){return(lG-F)/X}):Mw8:null};
Z5(function(X){X.setTime(Math.floor(X/1E3)*1E3)},function(X,F){X.setTime(+X+F*1E3)},function(X,F){return(F-X)/1E3},function(X){return X.getUTCSeconds()});
Z5(function(X){X.setTime(Math.floor(X/6E4)*6E4)},function(X,F){X.setTime(+X+F*6E4)},function(X,F){return(F-X)/6E4},function(X){return X.getMinutes()});
Z5(function(X){var F=X.getTimezoneOffset()*6E4%36E5;F<0&&(F+=36E5);X.setTime(Math.floor((+X-F)/36E5)*36E5+F)},function(X,F){X.setTime(+X+F*36E5)},function(X,F){return(F-X)/36E5},function(X){return X.getHours()});
var VKy=Z5(function(X){X.setHours(0,0,0,0)},function(X,F){X.setDate(X.getDate()+F)},function(X,F){return(F-X-(F.getTimezoneOffset()-X.getTimezoneOffset())*6E4)/864E5},function(X){return X.getDate()-1}),od2=ri(0),OF_=ri(1);
ri(2);ri(3);var VP3=ri(4);ri(5);ri(6);Z5(function(X){X.setDate(1);X.setHours(0,0,0,0)},function(X,F){X.setMonth(X.getMonth()+F)},function(X,F){return F.getMonth()-X.getMonth()+(F.getFullYear()-X.getFullYear())*12},function(X){return X.getMonth()});
var Rk=Z5(function(X){X.setMonth(0,1);X.setHours(0,0,0,0)},function(X,F){X.setFullYear(X.getFullYear()+F)},function(X,F){return F.getFullYear()-X.getFullYear()},function(X){return X.getFullYear()});
Rk.every=function(X){return isFinite(X=Math.floor(X))&&X>0?Z5(function(F){F.setFullYear(Math.floor(F.getFullYear()/X)*X);F.setMonth(0,1);F.setHours(0,0,0,0)},function(F,lG){F.setFullYear(F.getFullYear()+lG*X)}):null};
Z5(function(X){X.setUTCSeconds(0,0)},function(X,F){X.setTime(+X+F*6E4)},function(X,F){return(F-X)/6E4},function(X){return X.getUTCMinutes()});
Z5(function(X){X.setUTCMinutes(0,0,0)},function(X,F){X.setTime(+X+F*36E5)},function(X,F){return(F-X)/36E5},function(X){return X.getUTCHours()});
var Ouy=Z5(function(X){X.setUTCHours(0,0,0,0)},function(X,F){X.setUTCDate(X.getUTCDate()+F)},function(X,F){return(F-X)/864E5},function(X){return X.getUTCDate()-1}),wwJ=z6(0),YA9=z6(1);
z6(2);z6(3);var iuN=z6(4);z6(5);z6(6);Z5(function(X){X.setUTCDate(1);X.setUTCHours(0,0,0,0)},function(X,F){X.setUTCMonth(X.getUTCMonth()+F)},function(X,F){return F.getUTCMonth()-X.getUTCMonth()+(F.getUTCFullYear()-X.getUTCFullYear())*12},function(X){return X.getUTCMonth()});
var Zw=Z5(function(X){X.setUTCMonth(0,1);X.setUTCHours(0,0,0,0)},function(X,F){X.setUTCFullYear(X.getUTCFullYear()+F)},function(X,F){return F.getUTCFullYear()-X.getUTCFullYear()},function(X){return X.getUTCFullYear()});
Zw.every=function(X){return isFinite(X=Math.floor(X))&&X>0?Z5(function(F){F.setUTCFullYear(Math.floor(F.getUTCFullYear()/X)*X);F.setUTCMonth(0,1);F.setUTCHours(0,0,0,0)},function(F,lG){F.setUTCFullYear(F.getUTCFullYear()+lG*X)}):null};
var Y3g={"-":"",_:" ",0:"0"},kS=/^\s*\d+/,FK$=/^%/,j5w=/[\\^$*+?|[\]().{}]/g,AHB;(function(X){AHB=rQW(X);pI1=AHB.utcFormat;x9_=AHB.utcParse;return AHB})({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||pI1("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||x9_("%Y-%m-%dT%H:%M:%S.%LZ");v7("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
v7("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");v7("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");v7("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");v7("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");v7("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");v7("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
v7("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");v7("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");v7("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");v7("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");v7("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var HKr=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(v7);V5(HKr);var YR5=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(v7);V5(YR5);var OKP=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(v7);V5(OKP);var VSJ=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(v7);
V5(VSJ);var iGq=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(v7);V5(iGq);var lFq=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(v7);V5(lFq);var Dk2=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(v7);V5(Dk2);var UkH=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(v7);V5(UkH);var nRP=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(v7);V5(nRP);var yRv=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(v7);V5(yRv);var AR8=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(v7);V5(AR8);var WoJ=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(v7);V5(WoJ);var BiH=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(v7);V5(BiH);var CT5=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(v7);V5(CT5);var hqJ=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(v7);V5(hqJ);var PT$=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(v7);V5(PT$);var bG$=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(v7);V5(bG$);var gRT=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(v7);V5(gRT);var uD$=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(v7);V5(uD$);var vR5=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(v7);V5(vR5);var Qb5=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(v7);V5(Qb5);var G68=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(v7);V5(G68);var JRv=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(v7);V5(JRv);var LoJ=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(v7);V5(LoJ);var qDJ=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(v7);V5(qDJ);var Mu$=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(v7);V5(Mu$);var Rq8=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(v7);V5(Rq8);yY9(ag(300,.5,0),ag(-240,.5,1));yY9(ag(-100,.75,.35),ag(80,1.5,.8));yY9(ag(260,.75,.35),ag(80,1.5,.8));ag();zv();iAc(v7("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
iAc(v7("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
iAc(v7("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
iAc(v7("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
Cz5.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(X,F){X=+X;F=+F;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(X,F):this._context.moveTo(X,F);break;case 1:this._point=2;default:this._context.lineTo(X,F)}}};
(function(X){function F(lG){return new h2k(X(lG))}
F._curve=X;return F})(function(X){return new Cz5(X)});
h2k.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(X,F){this._curve.point(F*Math.sin(X),F*-Math.cos(X))}};
DnK.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:lZd(this,this._t0,b_g(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(X,F){var lG=NaN;X=+X;F=+F;if(X!==this._x1||F!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(X,F):this._context.moveTo(X,F);break;case 1:this._point=2;break;case 2:this._point=3;lZd(this,b_g(this,lG=Pzk(this,X,F)),lG);break;default:lZd(this,this._t0,lG=Pzk(this,X,F))}this._x0=this._x1;this._x1=X;this._y0=this._y1;this._y1=F;this._t0=lG}}};
(function(X){this._context=new ga1(X)}.prototype=Object.create(DnK.prototype)).point=function(X,F){DnK.prototype.point.call(this,F,X)};
ga1.prototype={moveTo:function(X,F){this._context.moveTo(F,X)},
closePath:function(){this._context.closePath()},
lineTo:function(X,F){this._context.lineTo(F,X)},
bezierCurveTo:function(X,F,lG,Po,Jd,mB){this._context.bezierCurveTo(F,X,Po,lG,mB,Jd)}};
LD.prototype={constructor:LD,scale:function(X){return X===1?this:new LD(this.k*X,this.x,this.y)},
translate:function(X,F){return X===0&F===0?this:new LD(this.k,this.x+this.k*X,this.y+this.k*F)},
apply:function(X){return[X[0]*this.k+this.x,X[1]*this.k+this.y]},
invert:function(X){return[(X[0]-this.x)/this.k,(X[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new LD(1,0,0);uSC=GT;HF.svg=HF.svg;HF.xhtml=HF.xhtml;HF.xlink=HF.xlink;HF.xml=HF.xml;HF.xmlns=HF.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 j7_="hammer_"+(Math.random()*1E6|0),FCr=function(){var l=document||document;if(!l[j7_]){var D=function(){(function(U,n,y,A){function C(S3,F$,Ec){return setTimeout(J(S3,Ec),F$)}
function h(S3,F$,Ec){return Array.isArray(S3)?(b(S3,Ec[F$],Ec),!0):!1}
function b(S3,F$,Ec){var Rg;if(S3)if(S3.forEach)S3.forEach(F$,Ec);else if(S3.length!==A){var R$=0;for(Rg=S3.length;R$<Rg;R$++)F$.call(Ec,S3[R$],R$,S3)}else for(R$ in S3)S3.hasOwnProperty(R$)&&F$.call(Ec,S3[R$],R$,S3)}
function u(S3,F$,Ec){for(var Rg=Object.keys(F$),R$=0,ch=Rg.length;R$<ch;R$++)if(!Ec||Ec&&S3[Rg[R$]]===A)S3[Rg[R$]]=F$[Rg[R$]];return S3}
function Q(S3,F$){return u(S3,F$,!0)}
function G(S3,F$,Ec){F$=F$.prototype;var Rg=S3.prototype=Object.create(F$);Rg.constructor=S3;Rg._super=F$;Ec&&u(Rg,Ec)}
function J(S3,F$){return function(){return S3.apply(F$,arguments)}}
function L(S3,F$){return typeof S3=="function"?S3.apply(F$?F$[0]||A:A,F$):S3}
function R(S3,F$,Ec){b(S(F$),function(Rg){S3.addEventListener(Rg,Ec,!1)})}
function a(S3,F$,Ec){b(S(F$),function(Rg){S3.removeEventListener(Rg,Ec,!1)})}
function S(S3){return S3.trim().split(/\s+/g)}
function d(S3,F$,Ec){if(S3.indexOf&&!Ec)return S3.indexOf(F$);for(var Rg=0,R$=S3.length;Rg<R$;Rg++)if(Ec&&S3[Rg][Ec]==F$||!Ec&&S3[Rg]===F$)return Rg;return-1}
function c(S3,F$,Ec){for(var Rg=[],R$=[],ch=0,k8=S3.length;ch<k8;ch++){var X8=F$?S3[ch][F$]:S3[ch];d(R$,X8)<0&&Rg.push(S3[ch]);R$[ch]=X8}Ec&&(Rg=F$?Rg.sort(function(ag,zT){return ag[F$]>zT[F$]}):Rg.sort());
return Rg}
function N(S3,F$){for(var Ec,Rg=F$[0].toUpperCase()+F$.slice(1),R$=0,ch=gy.length;R$<ch;R$++)if(Ec=(Ec=gy[R$])?Ec+Rg:F$,Ec in S3)return Ec;return A}
function z(S3,F$){var Ec=this;this.manager=S3;this.callback=F$;this.element=S3.element;this.target=S3.options.inputTarget;this.domHandler=function(Rg){L(S3.options.enable,[S3])&&Ec.handler(Rg)};
this.evEl&&R(this.element,this.evEl,this.domHandler);this.evTarget&&R(this.target,this.evTarget,this.domHandler);this.evWin&&R(U,this.evWin,this.domHandler)}
function f(S3){var F$;$8?F$=j3:hA?F$=wl:GT?F$=zN:F$=Ms;return new F$(S3,I)}
function I(S3,F$,Ec){var Rg=Ec.pointers.length,R$=Ec.changedPointers.length,ch=F$&1&&Rg-R$===0;Ec.isFirst=!!ch;Ec.isFinal=!!(F$&12&&Rg-R$===0);ch&&(S3.session={});Ec.eventType=F$;F$=S3.session;Rg=Ec.pointers;R$=Rg.length;F$.firstInput||(F$.firstInput=iG(Ec));R$>1&&!F$.firstMultiple?F$.firstMultiple=iG(Ec):R$===1&&(F$.firstMultiple=!1);ch=F$.firstInput;var k8=(R$=F$.firstMultiple)?R$.center:ch.center,X8=Ec.center=CC(Rg);Ec.timeStamp=l$();Ec.deltaTime=Ec.timeStamp-ch.timeStamp;Ec.angle=GN(k8,X8);Ec.distance=
td(k8,X8);ch=Ec.center;k8=F$.offsetDelta||{};X8=F$.prevDelta||{};var ag=F$.prevInput||{};if(Ec.eventType===1||ag.eventType===4)X8=F$.prevDelta={x:ag.deltaX||0,y:ag.deltaY||0},k8=F$.offsetDelta={x:ch.x,y:ch.y};Ec.deltaX=X8.x+(ch.x-k8.x);Ec.deltaY=X8.y+(ch.y-k8.y);Ec.offsetDirection=vo(Ec.deltaX,Ec.deltaY);R$?(ch=R$.pointers,ch=td(Rg[0],Rg[1],zv)/td(ch[0],ch[1],zv)):ch=1;Ec.scale=ch;R$?(R$=R$.pointers,Rg=GN(Rg[1],Rg[0],zv)-GN(R$[1],R$[0],zv)):Rg=0;Ec.rotation=Rg;k8=F$.lastInterval||Ec;Rg=Ec.timeStamp-
k8.timeStamp;Ec.eventType!=8&&(Rg>25||k8.velocity===A)?(ch=k8.deltaX-Ec.deltaX,k8=k8.deltaY-Ec.deltaY,X8=ch/Rg||0,ag=k8/Rg||0,Rg=X8,R$=ag,X8=TN(X8)>TN(ag)?X8:ag,ch=vo(ch,k8),F$.lastInterval=Ec):(X8=k8.velocity,Rg=k8.velocityX,R$=k8.velocityY,ch=k8.direction);Ec.velocity=X8;Ec.velocityX=Rg;Ec.velocityY=R$;Ec.direction=ch;F$=S3.element;a:{for(Rg=Ec.srcEvent.target;Rg;){if(Rg==F$){Rg=!0;break a}Rg=Rg.parentNode}Rg=!1}Rg&&(F$=Ec.srcEvent.target);Ec.target=F$;S3.emit("hammer.input",Ec);S3.recognize(Ec);
S3.session.prevInput=Ec}
function iG(S3){for(var F$=[],Ec=0;Ec<S3.pointers.length;Ec++)F$[Ec]={clientX:yq(S3.pointers[Ec].clientX),clientY:yq(S3.pointers[Ec].clientY)};return{timeStamp:l$(),pointers:F$,center:CC(F$),deltaX:S3.deltaX,deltaY:S3.deltaY}}
function CC(S3){var F$=S3.length;if(F$===1)return{x:yq(S3[0].clientX),y:yq(S3[0].clientY)};for(var Ec=0,Rg=0,R$=0;R$<F$;R$++)Ec+=S3[R$].clientX,Rg+=S3[R$].clientY;return{x:yq(Ec/F$),y:yq(Rg/F$)}}
function vo(S3,F$){return S3===F$?1:TN(S3)>=TN(F$)?S3>0?2:4:F$>0?8:16}
function td(S3,F$,Ec){Ec||(Ec=qG);var Rg=F$[Ec[0]]-S3[Ec[0]];S3=F$[Ec[1]]-S3[Ec[1]];return Math.sqrt(Rg*Rg+S3*S3)}
function GN(S3,F$,Ec){Ec||(Ec=qG);return Math.atan2(F$[Ec[1]]-S3[Ec[1]],F$[Ec[0]]-S3[Ec[0]])*180/Math.PI}
function Ms(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;z.apply(this,arguments)}
function j3(){this.evEl=PE;this.evWin=bO;z.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function wl(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};z.apply(this,arguments)}
function zN(){z.apply(this,arguments);var S3=J(this.handler,this);this.touch=new wl(this.manager,S3);this.mouse=new Ms(this.manager,S3)}
function Z7(S3,F$){this.manager=S3;this.set(F$)}
function Lm(S3){if(S3.indexOf("none")>-1)return"none";var F$=S3.indexOf("pan-x")>-1,Ec=S3.indexOf("pan-y")>-1;return F$&&Ec?"pan-x pan-y":F$||Ec?F$?"pan-x":"pan-y":S3.indexOf("manipulation")>-1?"manipulation":"auto"}
function Vg(S3){this.id=uw++;this.manager=null;this.options=Q(S3||{},this.defaults);S3=this.options.enable;this.options.enable=S3===A?!0:S3;this.state=1;this.simultaneous={};this.requireFail=[]}
function v5(S3){return S3==16?"down":S3==8?"up":S3==2?"left":S3==4?"right":""}
function mk(S3,F$){return(F$=F$.manager)?F$.get(S3):S3}
function dy(){Vg.apply(this,arguments)}
function eW(){dy.apply(this,arguments);this.pY=this.pX=null}
function Qq(){dy.apply(this,arguments)}
function Bo(){Vg.apply(this,arguments);this._input=this._timer=null}
function D7(){dy.apply(this,arguments)}
function qr(){dy.apply(this,arguments)}
function H5(){Vg.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Mr(S3,F$){F$=F$||{};var Ec=F$.recognizers;F$.recognizers=Ec===A?Mr.defaults.preset:Ec;return new V_(S3,F$)}
function V_(S3,F$){F$=F$||{};this.options=Q(F$,Mr.defaults);this.options.inputTarget=this.options.inputTarget||S3;this.handlers={};this.session={};this.recognizers=[];this.element=S3;this.input=f(this);this.touchAction=new Z7(this,this.options.touchAction);ec(this,!0);b(F$.recognizers,function(Ec){var Rg=this.add(new Ec[0](Ec[1]));Ec[2]&&Rg.recognizeWith(Ec[2]);Ec[3]&&Rg.requireFailure(Ec[2])},this)}
function ec(S3,F$){var Ec=S3.element;b(S3.options.cssProps,function(Rg,R$){Ec.style[N(Ec.style,R$)]=F$?Rg:""})}
function Nr(S3,F$){var Ec=n.createEvent("Event");Ec.initEvent(S3,!0,!0);Ec.gesture=F$;F$.target.dispatchEvent(Ec)}
var gy=" webkit moz MS ms o".split(" "),uH=n.createElement("div"),yq=Math.round,TN=Math.abs,l$=Date.now,uw=1,UW=/mobile|tablet|ip(ad|hone|od)|android/i,GT="ontouchstart"in U,$8=N(U,"PointerEvent")!==A,hA=GT&&UW.test(navigator.userAgent),qG=["x","y"],zv=["clientX","clientY"];z.prototype={handler:function(){},
destroy:function(){this.evEl&&a(this.element,this.evEl,this.domHandler);this.evTarget&&a(this.target,this.evTarget,this.domHandler);this.evWin&&a(U,this.evWin,this.domHandler)}};
var mJ={mousedown:1,mousemove:2,mouseup:4};G(Ms,z,{handler:function(S3){var F$=mJ[S3.type];F$&1&&S3.button===0&&(this.pressed=!0);F$&2&&S3.which!==1&&(F$=4);this.pressed&&this.allow&&(F$&4&&(this.pressed=!1),this.callback(this.manager,F$,{pointers:[S3],changedPointers:[S3],pointerType:"mouse",srcEvent:S3}))}});
var nP={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Ft={2:"touch",3:"pen",4:"mouse",5:"kinect"},PE="pointerdown",bO="pointermove pointerup pointercancel";U.MSPointerEvent&&(PE="MSPointerDown",bO="MSPointerMove MSPointerUp MSPointerCancel");G(j3,z,{handler:function(S3){var F$=this.store,Ec=!1,Rg=S3.type.toLowerCase().replace("ms","");Rg=nP[Rg];var R$=Ft[S3.pointerType]||S3.pointerType;Rg&1&&(S3.button===0||R$=="touch")?F$.push(S3):Rg&12&&(Ec=!0);var ch=d(F$,S3.pointerId,"pointerId");
ch<0||(F$[ch]=S3,this.callback(this.manager,Rg,{pointers:F$,changedPointers:[S3],pointerType:R$,srcEvent:S3}),Ec&&F$.splice(ch,1))}});
var gs={touchstart:1,touchmove:2,touchend:4,touchcancel:8};G(wl,z,{handler:function(S3){var F$=gs[S3.type];var Ec=Array.prototype.slice.call(S3.touches,0);var Rg=this.targetIds;if(F$&3&&Ec.length===1)Rg[Ec[0].identifier]=!0,Rg=[Ec,Ec];else{var R$,ch=Array.prototype.slice.call(S3.targetTouches,0),k8=Array.prototype.slice.call(S3.changedTouches,0),X8=[];if(F$===1)for(Ec=0,R$=ch.length;Ec<R$;Ec++)Rg[ch[Ec].identifier]=!0;Ec=0;for(R$=k8.length;Ec<R$;Ec++)Rg[k8[Ec].identifier]&&X8.push(k8[Ec]),F$&12&&
delete Rg[k8[Ec].identifier];Rg=X8.length?[c(ch.concat(X8),"identifier",!0),X8]:void 0}Rg&&this.callback(this.manager,F$,{pointers:Rg[0],changedPointers:Rg[1],pointerType:"touch",srcEvent:S3})}});
G(zN,z,{handler:function(S3,F$,Ec){var Rg=Ec.pointerType=="mouse";if(Ec.pointerType=="touch")this.mouse.allow=!1;else if(Rg&&!this.mouse.allow)return;F$&12&&(this.mouse.allow=!0);this.callback(S3,F$,Ec)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var ip=N(uH.style,"touchAction"),G3=ip!==A;Z7.prototype={set:function(S3){S3=="compute"&&(S3=this.compute());G3&&(this.manager.element.style[ip]=S3);this.actions=S3.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var S3=[];b(this.manager.recognizers,function(F$){L(F$.options.enable,[F$])&&(S3=S3.concat(F$.getTouchAction()))});
return Lm(S3.join(" "))},
preventDefaults:function(S3){if(!G3){var F$=S3.srcEvent;S3=S3.offsetDirection;if(this.manager.session.prevented)F$.preventDefault();else{var Ec=this.actions,Rg=Ec.indexOf("none")>-1,R$=Ec.indexOf("pan-y")>-1;Ec=Ec.indexOf("pan-x")>-1;if(Rg||R$&&Ec||R$&&S3&6||Ec&&S3&24)return this.preventSrc(F$)}}},
preventSrc:function(S3){this.manager.session.prevented=!0;S3.preventDefault()}};
Vg.prototype={defaults:{},set:function(S3){u(this.options,S3);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(S3){if(h(S3,"recognizeWith",this))return this;var F$=this.simultaneous;S3=mk(S3,this);F$[S3.id]||(F$[S3.id]=S3,S3.recognizeWith(this));return this},
dropRecognizeWith:function(S3){if(h(S3,"dropRecognizeWith",this))return this;S3=mk(S3,this);delete this.simultaneous[S3.id];return this},
requireFailure:function(S3){if(h(S3,"requireFailure",this))return this;var F$=this.requireFail;S3=mk(S3,this);d(F$,S3)===-1&&(F$.push(S3),S3.requireFailure(this));return this},
dropRequireFailure:function(S3){if(h(S3,"dropRequireFailure",this))return this;S3=mk(S3,this);S3=d(this.requireFail,S3);S3>-1&&this.requireFail.splice(S3,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(S3){return!!this.simultaneous[S3.id]},
emit:function(S3){function F$(R$){Ec.manager.emit(Ec.options.event+(R$?Rg&16?"cancel":Rg&8?"end":Rg&4?"move":Rg&2?"start":"":""),S3)}
var Ec=this,Rg=this.state;Rg<8&&F$(!0);F$();Rg>=8&&F$(!0)},
tryEmit:function(S3){if(this.canEmit())return this.emit(S3);this.state=32},
canEmit:function(){for(var S3=0;S3<this.requireFail.length;S3++)if(!(this.requireFail[S3].state&33))return!1;return!0},
recognize:function(S3){S3=u({},S3);L(this.options.enable,[this,S3])?(this.state&56&&(this.state=1),this.state=this.process(S3),this.state&30&&this.tryEmit(S3)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
G(dy,Vg,{defaults:{pointers:1},attrTest:function(S3){var F$=this.options.pointers;return F$===0||S3.pointers.length===F$},
process:function(S3){var F$=this.state,Ec=S3.eventType,Rg=F$&6;S3=this.attrTest(S3);return Rg&&(Ec&8||!S3)?F$|16:Rg||S3?Ec&4?F$|8:F$&2?F$|4:2:32}});
G(eW,dy,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var S3=this.options.direction;if(S3===30)return["none"];var F$=[];S3&6&&F$.push("pan-y");S3&24&&F$.push("pan-x");return F$},
directionTest:function(S3){var F$=this.options,Ec=!0,Rg=S3.distance,R$=S3.direction,ch=S3.deltaX,k8=S3.deltaY;R$&F$.direction||(F$.direction&6?(R$=ch===0?1:ch<0?2:4,Ec=ch!=this.pX,Rg=Math.abs(S3.deltaX)):(R$=k8===0?1:k8<0?8:16,Ec=k8!=this.pY,Rg=Math.abs(S3.deltaY)));S3.direction=R$;return Ec&&Rg>F$.threshold&&R$&F$.direction},
attrTest:function(S3){return dy.prototype.attrTest.call(this,S3)&&(this.state&2||!(this.state&2)&&this.directionTest(S3))},
emit:function(S3){this.pX=S3.deltaX;this.pY=S3.deltaY;var F$=v5(S3.direction);F$&&this.manager.emit(this.options.event+F$,S3);this._super.emit.call(this,S3)}});
G(Qq,dy,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(S3){return this._super.attrTest.call(this,S3)&&(Math.abs(S3.scale-1)>this.options.threshold||this.state&2)},
emit:function(S3){this._super.emit.call(this,S3);S3.scale!==1&&this.manager.emit(this.options.event+(S3.scale<1?"in":"out"),S3)}});
G(Bo,Vg,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(S3){var F$=this.options,Ec=S3.pointers.length===F$.pointers,Rg=S3.distance<F$.threshold,R$=S3.deltaTime>F$.time;this._input=S3;if(!Rg||!Ec||S3.eventType&12&&!R$)this.reset();else if(S3.eventType&1)this.reset(),this._timer=C(function(){this.state=8;this.tryEmit()},F$.time,this);
else if(S3.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(S3){this.state===8&&(S3&&S3.eventType&4?this.manager.emit(this.options.event+"up",S3):(this._input.timeStamp=l$(),this.manager.emit(this.options.event,this._input)))}});
G(D7,dy,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(S3){return this._super.attrTest.call(this,S3)&&(Math.abs(S3.rotation)>this.options.threshold||this.state&2)}});
G(qr,dy,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return eW.prototype.getTouchAction.call(this)},
attrTest:function(S3){var F$=this.options.direction;if(F$&30)var Ec=S3.velocity;else F$&6?Ec=S3.velocityX:F$&24&&(Ec=S3.velocityY);return this._super.attrTest.call(this,S3)&&F$&S3.direction&&TN(Ec)>this.options.velocity&&S3.eventType&4},
emit:function(S3){var F$=v5(S3.direction);F$&&this.manager.emit(this.options.event+F$,S3);this.manager.emit(this.options.event,S3)}});
G(H5,Vg,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(S3){var F$=this.options,Ec=S3.pointers.length===F$.pointers,Rg=S3.distance<F$.threshold,R$=S3.deltaTime<F$.time;this.reset();if(S3.eventType&1&&this.count===0)return this.failTimeout();if(Rg&&R$&&Ec){if(S3.eventType!=4)return this.failTimeout();Ec=this.pTime?S3.timeStamp-this.pTime<F$.interval:!0;Rg=!this.pCenter||td(this.pCenter,S3.center)<F$.posThreshold;this.pTime=S3.timeStamp;this.pCenter=S3.center;Rg&&Ec?this.count+=1:this.count=1;this._input=S3;if(this.count%F$.taps===0)return this.hasRequireFailures()?
(this._timer=C(function(){this.state=8;this.tryEmit()},F$.interval,this),2):8}return 32},
failTimeout:function(){this._timer=C(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))}});
Mr.VERSION="2.0.2";Mr.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[D7,{enable:!1}],[Qq,{enable:!1},["rotate"]],[qr,{direction:6}],[eW,{direction:6},["swipe"]],[H5],[H5,{event:"doubletap",taps:2},["tap"]],[Bo]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};V_.prototype={set:function(S3){u(this.options,S3);return this},
stop:function(S3){this.session.stopped=S3?2:1},
recognize:function(S3){var F$=this.session;if(!F$.stopped){this.touchAction.preventDefaults(S3);var Ec=this.recognizers,Rg=F$.curRecognizer;if(!Rg||Rg&&Rg.state&8)Rg=F$.curRecognizer=null;for(var R$=0,ch=Ec.length;R$<ch;R$++){var k8=Ec[R$];F$.stopped===2||Rg&&k8!=Rg&&!k8.canRecognizeWith(Rg)?k8.reset():k8.recognize(S3);!Rg&&k8.state&14&&(Rg=F$.curRecognizer=k8)}}},
get:function(S3){if(S3 instanceof Vg)return S3;for(var F$=this.recognizers,Ec=0;Ec<F$.length;Ec++)if(F$[Ec].options.event==S3)return F$[Ec];return null},
add:function(S3){if(h(S3,"add",this))return this;var F$=this.get(S3.options.event);F$&&this.remove(F$);this.recognizers.push(S3);S3.manager=this;this.touchAction.update();return S3},
remove:function(S3){if(h(S3,"remove",this))return this;var F$=this.recognizers;S3=this.get(S3);F$.splice(d(F$,S3),1);this.touchAction.update();return this},
on:function(S3,F$){var Ec=this.handlers;b(S(S3),function(Rg){Ec[Rg]=Ec[Rg]||[];Ec[Rg].push(F$)});
return this},
off:function(S3,F$){var Ec=this.handlers;b(S(S3),function(Rg){F$?Ec[Rg].splice(d(Ec[Rg],F$),1):delete Ec[Rg]});
return this},
emit:function(S3,F$){this.options.domEvents&&Nr(S3,F$);var Ec=this.handlers[S3]&&this.handlers[S3].slice();if(Ec&&Ec.length){F$.type=S3;F$.preventDefault=function(){F$.srcEvent.preventDefault()};
S3=0;for(var Rg=Ec.length;S3<Rg;S3++)Ec[S3](F$)}},
destroy:function(){this.element&&ec(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
u(Mr,{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:V_,Input:z,TouchAction:Z7,Recognizer:Vg,AttrRecognizer:dy,Tap:H5,Pan:eW,Swipe:qr,Pinch:Qq,Rotate:D7,Press:Bo,on:R,off:a,each:b,merge:Q,extend:u,inherit:G,bindFn:J,prefixed:N});
U[y]=Mr})(window,document,"Hammer");
return window.Hammer}.call({});
D.DOCUMENT=l;l[j7_]=D}return l[j7_]};/*

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

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

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 Dx,xU_,jR5;Dx=Element.prototype;xU_=Dx.matches||Dx.matchesSelector||Dx.mozMatchesSelector||Dx.msMatchesSelector||Dx.oMatchesSelector||Dx.webkitMatchesSelector;jR5=function(){};
_.ohv=function(l){var D=Fbv,U=[];return D._collectTabbableNodes(l,U)?D._sortByTabIndex(U):U};
_.W=jR5.prototype;_.W.isFocusable=function(l){return xU_.call(l,"input, select, textarea, button, object")?xU_.call(l,":not([disabled])"):xU_.call(l,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.W._normalizedTabIndex=function(l){return this.isFocusable(l)?(l=l.getAttribute("tabindex")||0,Number(l)):-1};
_.W._collectTabbableNodes=function(l,D){if(l.nodeType!==Node.ELEMENT_NODE||!this._isVisible(l))return!1;var U=this._normalizedTabIndex(l),n=U>0;U>=0&&D.push(l);if(l.localName==="content"||l.localName==="slot")U=_.Ga(l).getDistributedNodes();else{var y;U=((y=_.Ga(l).shadowRoot)!=null?y:_.Ga(l.root||l)).children}for(l=0;l<U.length;l++)n=this._collectTabbableNodes(U[l],D)||n;return n};
_.W._isVisible=function(l){var D=l.style;return D.visibility!=="hidden"&&D.display!=="none"?(D=window.getComputedStyle(l),D.visibility!=="hidden"&&D.display!=="none"):!1};
_.W._sortByTabIndex=function(l){var D=l.length;if(D<2)return l;var U=Math.ceil(D/2);D=this._sortByTabIndex(l.slice(0,U));l=this._sortByTabIndex(l.slice(U));return this._mergeSortByTabIndex(D,l)};
_.W._mergeSortByTabIndex=function(l,D){for(var U=[];l.length>0&&D.length>0;)this._hasLowerTabOrder(l[0],D[0])?U.push(D.shift()):U.push(l.shift());return U.concat(l,D)};
_.W._hasLowerTabOrder=function(l,D){l=Math.max(l.tabIndex,0);D=Math.max(D.tabIndex,0);return l===0||D===0?D>l:l>D};
var Fbv=new jR5;var wlz;var rz7;_.e0({_template:function(){if(rz7!==void 0)return rz7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;wlz===void 0&&(wlz=document.createElement("template"));var n=wlz;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return rz7=l},
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&&_.Ga(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Ga(this.parentNode).removeChild(this)},
_onTransitionend:function(l){l&&l.target===this&&this.complete()},
_openedChanged:function(l){l?this.prepare():(l=window.getComputedStyle(this),l.transitionDuration!=="0s"&&l.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 Ui=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;I1(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)};
Ui.prototype._bringOverlayAtIndexToFront=function(l){var D=this._overlays[l];if(D){var U=this._overlays.length-1,n=this._overlays[U];n&&this._shouldBeBehindOverlay(D,n)&&U--;if(!(l>=U)){n=Math.max(this._getZ(_.zL5(this)),this._minimumZ);for(this._getZ(D)<=n&&this._applyOverlayZ(D,n);l<U;)this._overlays[l]=this._overlays[l+1],l++;this._overlays[U]=D}}};
Ui.prototype.addOverlay=function(l){var D=this._overlays.indexOf(l);if(D>=0)this._bringOverlayAtIndexToFront(D);else{D=this._overlays.length;var U=this._overlays[D-1],n=Math.max(this._getZ(U),this._minimumZ),y=this._getZ(l);U&&this._shouldBeBehindOverlay(l,U)&&(this._applyOverlayZ(U,n),D--,n=Math.max(this._getZ(this._overlays[D-1]),this._minimumZ));y<=n&&this._applyOverlayZ(l,n);this._overlays.splice(D,0,l)}this.trackBackdrop()};
Ui.prototype.removeOverlay=function(l){l=this._overlays.indexOf(l);l!==-1&&(this._overlays.splice(l,1),this.trackBackdrop())};
_.zL5=function(l){return l._overlays[l._overlays.length-1]};
_.W=Ui.prototype;_.W.trackBackdrop=function(){var l=this._overlayWithBackdrop();if(l||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(l)-1,this.backdropElement.opened=!!l,this.backdropElement.prepare()};
_.W._overlayWithBackdrop=function(){for(var l=this._overlays.length-1;l>=0;l--)if(this._overlays[l].withBackdrop)return this._overlays[l]};
_.W._getZ=function(l){var D=this._minimumZ;if(l){var U,n,y=Number(((U=l.hostElement)!=null?U:l).style.zIndex||window.getComputedStyle((n=l.hostElement)!=null?n:l).zIndex);y===y&&(D=y)}return D};
_.W._setZ=function(l,D){var U;((U=l.hostElement)!=null?U:l).style.zIndex=D};
_.W._applyOverlayZ=function(l,D){this._setZ(l,D+2)};
_.W._overlayInPath=function(l){l=l||[];for(var D=0;D<l.length;D++){var U=void 0;if(((U=l[D].polymerController)!=null?U:l[D])._manager===this)return l[D]}};
_.W._onCaptureClick=function(l){var D=this._overlays.length-1;if(D!==-1)for(var U=_.Ga(l).path,n,y;(n=this._overlays[D])&&this._overlayInPath(U)!==((y=n.hostElement)!=null?y:n);)if(n._onCaptureClick(l),n.allowClickThrough)D--;else break};
_.W._onCaptureFocus=function(l){var D=_.zL5(this);D&&D._onCaptureFocus(l)};
_.W._onCaptureKeyDown=function(l){var D=_.zL5(this);D&&(_.pi.keyboardEventMatchesKeys(l,"esc")?D._onCaptureEsc(l):_.pi.keyboardEventMatchesKeys(l,"tab")&&D._onCaptureTab(l))};
_.W._shouldBeBehindOverlay=function(l,D){return!l.alwaysOnTop&&D.alwaysOnTop&&!D.contains(l)};
_.QP.Object.defineProperties(Ui.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 l=document.activeElement;l&&l instanceof Element!==!1||(l=document.body);for(;l.root&&_.Ga(l.root).activeElement;)l=_.Ga(l.root).activeElement;return l}}});
_.n5=new Ui;var GLC=0,JVc=0,Ll9=null,qIc=[],J6=["wheel","mousewheel","DOMMouseScroll"],MLN;_.q("web_no_lock_on_touchstart_killswitch")&&(J6.push("touchstart"),J6.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;_.yw={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:_.n5},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var l;return this._focusedChild||_.Ga((l=this.hostElement)!=null?l:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var l;return _.ohv((l=this.hostElement)!=null?l: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 l;this._observer=_.Ga((l=this.hostElement)!=null?l:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var l;_.Ga((l=this.hostElement)!=null?l:this).unobserveNodes(this._observer)}this._observer=null;for(var D in this.__rafs)this.__rafs[D]!==null&&cancelAnimationFrame(this.__rafs[D]);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(l){this.fire("iron-overlay-canceled",l,{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 l;((l=this.hostElement)!=null?l:this).style.outline="none";var D;((D=this.hostElement)!=null?D:this).style.display="none"}},
_openedChanged:function(l){if(l){var D;((D=this.hostElement)!=null?D:this).removeAttribute("aria-hidden")}else{var U;((U=this.hostElement)!=null?U: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 l;if(this.withBackdrop&&!((l=this.hostElement)!=null?l:this).hasAttribute("tabindex")){var D;((D=this.hostElement)!=null?D:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var U;((U=this.hostElement)!=null?U: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 l;((l=this.hostElement)!=null?l:this).style.display="none";var D;((D=this.hostElement)!=null?D:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var l,D;((l=this.hostElement)!=null?l:this).style.transition=((D=this.hostElement)!=null?D:this).style.webkitTransition="none";var U,n;((U=this.hostElement)!=null?U:this).style.transform=((n=this.hostElement)!=null?n:this).style.webkitTransform="none";var y;((y=this.hostElement)!=null?y:this).style.display=""},
_finishPositioning:function(){var l;((l=this.hostElement)!=null?l:this).style.display="none";this.scrollTop=this.scrollTop;var D,U;((D=this.hostElement)!=null?D:this).style.transition=((U=this.hostElement)!=null?U:this).style.webkitTransition="";var n,y;((n=this.hostElement)!=null?n:this).style.transform=((y=this.hostElement)!=null?y: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 l=this._manager.deepActiveElement,D;if(!(D=l===document.body))a:{for(;l;l=l.assignedSlot||l.parentNode||l.host)if(l===this){D=!0;break a}D=!1}D&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(l){this.noCancelOnOutsideClick||this.cancel(l)},
_onCaptureFocus:function(l){if(this.withBackdrop){var D=_.Ga(l).path;D.indexOf(this)===-1?(l.stopPropagation(),this._applyFocus()):this._focusedChild=D[0]}},
_onCaptureEsc:function(l){this.noCancelOnEscKey||this.cancel(l)},
_onCaptureTab:function(l){if(this.withBackdrop){this.__ensureFirstLastFocusables();var D=l.shiftKey,U=D?this.__firstFocusableNode:this.__lastFocusableNode;D=D?this.__lastFocusableNode:this.__firstFocusableNode;if(U===D)U=!0;else{var n=this._manager.deepActiveElement;U=n===U||n===this}U&&(l.preventDefault(),this._focusedChild=D,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 l=this._focusableNodes;this.__firstFocusableNode=l[0];this.__lastFocusableNode=l[l.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(l,D){var U=this.__rafs;U[l]!==null&&cancelAnimationFrame(U[l]);U[l]=requestAnimationFrame(function(){U[l]=null;D.call(this)}.bind(this))},
__updateScrollObservers:function(l,D,U){l&&D&&this.__isValidScrollAction(U)?(U==="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),MLN=_._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()):(l=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),l!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(l,1),MLN=_._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(l6)for(var l=this;l;)l.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&l.host&&this.__rootNodes.push(l),l=l.host||l.assignedSlot||l.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(D){D.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(l){l.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(l){return l==="lock"||l==="refit"||l==="cancel"},
__onCaptureScroll:function(l){if(!(this.__isAnimating||_.Ga(l).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(l)}},
__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)}};
_.AM=[plr,_.$s,_.yw];_.e0({_template:function(){if(Kb7!==void 0)return Kb7;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;dUy===void 0&&(dUy=document.createElement("template"));var n=dUy;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Kb7=l},
is:"tp-yt-iron-dropdown",behaviors:[_.xs,_.pi,_.AM,DFH],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 l=_.Ga(this.$.content).getDistributedNodes(),D=0,U=l.length;D<U;D++)if(l[D].nodeType===Node.ELEMENT_NODE)return l[D]},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(),_.yw._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.yw._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.yw._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var l=this.containedElement,D=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),U=0;U<D.length;U++)D[U].node=l;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(l){this._readied&&(l?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var l=this.focusTarget||this.containedElement;l&&this.opened&&!this.noAutoFocus?l.focus():_.yw._applyFocus.apply(this,arguments)}});var fR1;var $Uz;/*

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 NUh=new _.wD({type:"iconset"});
_.e0({_template:function(){if($Uz!==void 0)return $Uz;var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;fR1===void 0&&(fR1=document.createElement("template"));
var n=fR1;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return $Uz=l},
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(l){l=(l||"").split(":");this._iconName=l.pop();this._iconsetName=l.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&&_.Ga(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=NUh.byKey(this._iconsetName)){var l=this._iconset.applyIcon(this,this._iconName,this.theme);l&&l.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,_.Ga(this.root).appendChild(this._img)}});var sRh;var Ehz;_.e0({_template:function(){if(Ehz!==void 0)return Ehz;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
var D=l.content,U=D.insertBefore;sRh===void 0&&(sRh=document.createElement("template"));var n=sRh;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Ehz=l},
is:"tp-yt-iron-input",behaviors:[_.z2],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(){_.lv.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Ga(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Ga(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 l=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":l=/[0-9.,e-]/}return l},_bindValueChanged:function(l,D){D&&(l===void 0?D.value=null:l!==D.value&&(this.inputElement.value=l),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:l}))},
_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(l){var D=l.keyCode==19||l.keyCode==20||l.keyCode==45||l.keyCode==46||l.keyCode==144||l.keyCode==145||l.keyCode>32&&l.keyCode<41||l.keyCode>111&&l.keyCode<124;return!(l.keyCode==8||l.keyCode==9||l.keyCode==13||l.keyCode==27)&&!(l.charCode==0&&D)},
_onKeypress:function(l){if(this.allowedPattern||this.inputElement.type==="number"){var D=this._patternRegExp;if(D&&!(l.metaKey||l.ctrlKey||l.altKey)){this._patternAlreadyChecked=!0;var U=String.fromCharCode(l.charCode);this._isPrintable(l)&&!D.test(U)&&(l.preventDefault(),this._announceInvalidCharacter("Invalid character "+U+" not entered."))}}},
_checkPatternValidity:function(){var l=this._patternRegExp;if(!l)return!0;for(var D=0;D<this.inputElement.value.length;D++)if(!l.test(this.inputElement.value[D]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var l=this.inputElement.checkValidity();l&&(this.required&&this.bindValue===""?l=!1:this.hasValidator()&&(l=_.z2.validate.call(this,this.bindValue)));this.invalid=!l;this.fire("iron-input-validate");return l},
_announceInvalidCharacter:function(l){this.fire("iron-announce",{text:l})},
_computeValue:function(l){return l}});var TUh;var IR7;var HT5=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),YFh=HT5&&HT5[1]>=8;
_.e0({_template:function(){if(IR7!==void 0)return IR7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;TUh===void 0&&(TUh=document.createElement("template"));var n=TUh;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return IR7=l},
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:[Hxl,_.$s,_.lo_,jOy],_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 _.Ga(_.Ga(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var l=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,l-this._physicalCount)},set _virtualStart(l){l=this._clamp(l,0,this._maxVirtualStart);this.grid&&(l-=l%this._itemsPerRow);this._virtualStartVal=l},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(l){l%=this._physicalCount;l<0&&(l=this._physicalCount+l);this.grid&&(l-=l%this._itemsPerRow);this._physicalStartVal=l},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(l){this._physicalCountVal=l},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 l=this._firstVisibleIndexVal;if(l==null){var D=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
l=this._iterateItems(function(U,n){D+=this._getPhysicalSizeIncrement(U);if(D>this._scrollPosition)return this.grid?n-n%this._itemsPerRow:n;if(this.grid&&this._virtualCount-1===n)return n-n%this._itemsPerRow})||0}return l},
get lastVisibleIndex(){var l=this._lastVisibleIndexVal;if(l==null){if(this.grid)l=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var D=this._physicalTop+this._scrollOffset;this._iterateItems(function(U,n){D<this._scrollBottom&&(l=n);D+=this._getPhysicalSizeIncrement(U)})}this._lastVisibleIndexVal=l}return l},
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,_.Je);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(l){this.style.webkitOverflowScrolling=l===this?"touch":"";this.style.overflowY=l===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Je)},
updateViewportBoundaries:function(){var l=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(l["padding-top"],10);this._isRTL=l.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var l=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),D=l-this._scrollPosition,U=D>=0;this._scrollPosition=l;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(D)>this._physicalSize&&this._physicalSize>0?(D-=this._scrollOffset,U=Math.round(D/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=U,this._physicalStart+=U,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(l=this._getReusables(U),U?(this._physicalTop=l.physicalTop,this._virtualStart+=l.indexes.length,this._physicalStart+=l.indexes.length):(this._virtualStart=this._virtualStart-l.indexes.length,this._physicalStart=this._physicalStart-l.indexes.length),this._update(l.indexes,U?null:l.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),O1))},
_getReusables:function(l){var D=[],U=this._hiddenContentSize*this._ratio,n=this._virtualStart,y=this._virtualEnd,A=this._physicalCount,C=this._physicalTop+this._scrollOffset;var h=this._physicalBottom+this._scrollOffset;var b=this._scrollPosition,u=this._scrollBottom;if(l){var Q=this._physicalStart;h=b-C}else Q=this._physicalEnd,h-=u;for(;;){var G=this._getPhysicalSizeIncrement(Q);h-=G;if(D.length>=A||h<=U)break;if(l){if(y+D.length+1>=this._virtualCount)break;if(C+G>=b-this._scrollOffset)break;D.push(Q);
C+=G;Q=(Q+1)%A}else{if(n-D.length<=0)break;if(C+this._physicalSize-G<=u)break;D.push(Q);C-=G;Q=Q===0?A-1:Q-1}}return{indexes:D,physicalTop:C-this._scrollOffset}},
_update:function(l,D){if(!(l&&l.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(l);this._updateMetrics(l);if(D)for(;D.length;)l=D.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(l);this._positionItems();this._updateScrollerSize()}},
_createPool:function(l){this._ensureTemplatized();var D,U=Array(l);for(D=0;D<l;D++){var n=this.stamp(null);U[D]=n.root.querySelector("*");this._itemsParent.appendChild(n.root)}return U},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(l){l=this._clamp(this._physicalCount+l,3,this._virtualCount-this._virtualStart);l=this._convertIndexToCompleteRow(l);if(this.grid){var D=l%this._itemsPerRow;D&&l-D<=this._physicalCount&&(l+=this._itemsPerRow);l-=D}l-=this._physicalCount;D=Math.round(this._physicalCount*.5);if(!(l<0)){if(l>0){D=window.performance.now();[].push.apply(this._physicalItems,this._createPool(l));for(var U=0;U<l;U++)this._physicalSizes.push(0);this._physicalCount+=l;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=l);this._update();this._templateCost=(window.performance.now()-D)/l;D=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||D===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,D)),Jj1):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,D),O1))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var l=this._getReusables(!0);this._physicalTop=l.physicalTop;this._virtualStart+=l.indexes.length;this._physicalStart+=l.indexes.length;this._update(l.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 l={__key__:!0};l[this.as]=!0;l[this.indexAs]=!0;l[this.selectedAs]=!0;l.tabIndex=!0;this._instanceProps=l;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(l,D){typeof D!=="undefined"&&(this.notifyResize(),_.Mf(),l&&this._updateGridMetrics())},
_itemsChanged:function(l){if(l.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,
_.Je);else if(l.path==="items.splices"){this._adjustVirtualIndex(l.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(l.value.indexSplices.some(function(U){return U.addedCount>0||U.removed.length>0})){var D=this._getActiveElement();
this.contains(D)&&D.blur()}l=l.value.indexSplices.some(function(U){return U.index+U.addedCount>=this._virtualStart&&U.index<=this._virtualEnd},this);
this._isClientFull()&&!l||this._debounce("_render",this._render,_.Je)}else l.path!=="items.length"&&this._forwardItemPath(l.path,l.value)},
_forwardItemPath:function(l,D){l=l.slice(6);var U=l.indexOf(".");U===-1&&(U=l.length);var n,y=this.modelForElement(this._offscreenFocusedItem),A=parseInt(l.substring(0,U),10);if(n=this._isIndexRendered(A)){var C=this._getPhysicalIndex(A);var h=this.modelForElement(this._physicalItems[C])}else y&&(h=y);h&&h[this.indexAs]===A&&(l=l.substring(U+1),l=this.as+(l?"."+l:""),h._setPendingPropertyOrPath(l,D,!1,!0),h._flushProperties&&h._flushProperties(),n&&(this._updateMetrics([C]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(l){l.forEach(function(D){D.removed.forEach(this._removeItem,this);D.index<this._virtualStart&&(D=Math.max(D.addedCount-D.removed.length,D.index-this._virtualStart),this._virtualStart+=D,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=D))},this)},
_removeItem:function(l){this.$.selector.deselect(l);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===l&&this._removeFocusedItem()},
_iterateItems:function(l,D){var U,n;if(arguments.length===2&&D)for(n=0;n<D.length;n++){var y=D[n];var A=this._computeVidx(y);if((U=l.call(this,y,A))!=null)return U}else{y=this._physicalStart;for(A=this._virtualStart;y<this._physicalCount;y++,A++)if((U=l.call(this,y,A))!=null)return U;for(y=0;y<this._physicalStart;y++,A++)if((U=l.call(this,y,A))!=null)return U}},
_computeVidx:function(l){return l>=this._physicalStart?this._virtualStart+(l-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+l},
_assignModels:function(l){this._iterateItems(function(D,U){var n=this._physicalItems[D],y=this.items&&this.items[U];if(y!=null){var A=this.modelForElement(n);A.__key__=null;this._forwardProperty(A,this.as,y);this._forwardProperty(A,this.selectedAs,this.$.selector.isSelected(y));this._forwardProperty(A,this.indexAs,U);this._forwardProperty(A,"tabIndex",this._focusedVirtualIndex===U?0:-1);this._physicalIndexForKey[A.__key__]=D;A._flushProperties&&A._flushProperties(!0);n.removeAttribute("hidden")}else n.setAttribute("hidden",
"")},l)},
_updateMetrics:function(l){_.Mf();var D=0,U=0,n=this._physicalAverageCount,y=this._physicalAverage;this._iterateItems(function(A){U+=this._physicalSizes[A];this._physicalSizes[A]=this._physicalItems[A].offsetHeight;D+=this._physicalSizes[A];this._physicalAverageCount+=this._physicalSizes[A]?1:0},l);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(U=this._itemsPerRow===1?U:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+D-U,this._itemsPerRow=1);this._physicalAverageCount!==n&&(this._physicalAverage=Math.round((y*n+D)/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 l=this._physicalTop;if(this.grid){var D=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(U,n){var y=Math.floor(n%this._itemsPerRow*this._itemWidth+D);this._isRTL&&(y*=-1);this.translate3d(y+"px",l+"px",0,this._physicalItems[U]);this._shouldRenderNextRow(n)&&(l+=this._rowHeight)})}else this._iterateItems(function(U){this.translate3d(0,l+"px",0,this._physicalItems[U]);
l+=this._physicalSizes[U]})},
_getPhysicalSizeIncrement:function(l){return this.grid?this._computeVidx(l)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[l]},
_shouldRenderNextRow:function(l){return l%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var l=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(l!==0){this._physicalTop=this._physicalTop-l;var D=this._scrollPosition;!YFh&&D>0&&this._resetScrollPosition(D-l)}},
_resetScrollPosition:function(l){this.scrollTarget&&l>=0&&(this._scrollPosition=this._scrollTop=l)},
_updateScrollerSize:function(l){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((l=(l=(l=l||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(l){return this.scrollToIndex(this.items.indexOf(l))},
scrollToIndex:function(l){if(!(typeof l!=="number"||l<0||l>this.items.length-1)&&(_.Mf(),this._physicalCount!==0)){l=this._clamp(l,0,this._virtualCount-1);if(!this._isIndexRendered(l)||l>=this._maxVirtualStart)this._virtualStart=this.grid?l-this._itemsPerRow*2:l-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var D=this._physicalStart,U=this._virtualStart,n=0,y=this._hiddenContentSize;U<l&&
n<=y;)n+=this._getPhysicalSizeIncrement(D),D=(D+1)%this._physicalCount,U++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+n);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)},_.Je)},
selectItem:function(l){return this.selectIndex(this.items.indexOf(l))},
selectIndex:function(l){if(!(l<0||l>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(l)){var D=this.modelForElement(this._physicalItems[this._getPhysicalIndex(l)]);D&&(D[this.selectedAs]=!0);this.updateSizeForIndex(l)}this.$.selector.selectIndex(l)}},
deselectItem:function(l){return this.deselectIndex(this.items.indexOf(l))},
deselectIndex:function(l){l<0||l>=this._virtualCount||(this._isIndexRendered(l)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(l)])[this.selectedAs]=!1,this.updateSizeForIndex(l)),this.$.selector.deselectIndex(l))},
toggleSelectionForItem:function(l){return this.toggleSelectionForIndex(this.items.indexOf(l))},
toggleSelectionForIndex:function(l){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(l):this.$.selector.isSelected(this.items[l]))?this.deselectIndex(l):this.selectIndex(l)},
clearSelection:function(){this._iterateItems(function(l){this.modelForElement(this._physicalItems[l])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(l){(l?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(l){var D=this.modelForElement(l.target);if(D){var U=_.Ga(l).path[0];l=this._getActiveElement();var n=this._physicalItems[this._getPhysicalIndex(D[this.indexAs])];if(U.localName!=="input"&&U.localName!=="button"&&U.localName!=="select"){U=D.tabIndex;D.tabIndex=-100;var y=l?l.tabIndex:-1;D.tabIndex=U;l&&n!==l&&n.contains(l)&&y!==-100||this.toggleSelectionForItem(D[this.as])}}},
_multiSelectionChanged:function(l){this.clearSelection();this.$.selector.multi=l},
updateSizeForItem:function(l){return this.updateSizeForIndex(this.items.indexOf(l))},
updateSizeForIndex:function(l){if(!this._isIndexRendered(l))return null;this._updateMetrics([this._getPhysicalIndex(l)]);this._positionItems();return null},
_manageFocus:function(){var l=this._focusedVirtualIndex;l>=0&&l<this._virtualCount?this._isIndexRendered(l)?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(l){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(l/this._itemsPerRow)*this._itemsPerRow:l},
_isIndexRendered:function(l){return l>=this._virtualStart&&l<=this._virtualEnd},
_isIndexVisible:function(l){return l>=this.firstVisibleIndex&&l<=this.lastVisibleIndex},
_getPhysicalIndex:function(l){return(this._physicalStart+(l-this._virtualStart))%this._physicalCount},
focusItem:function(l){this._focusPhysicalItem(l)},
_focusPhysicalItem:function(l){if(!(l<0||l>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(l)||this.scrollToIndex(l);var D=this._physicalItems[this._getPhysicalIndex(l)],U=this.modelForElement(D),n;U.tabIndex=-100;D.tabIndex===-100&&(n=D);n||(n=_.Ga(D).querySelector('[tabindex="-100"]'));U.tabIndex=0;this._focusedVirtualIndex=l;n&&n.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 l=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var D=this.stamp(null);this._focusBackfillItem=D.root.querySelector("*");this._itemsParent.appendChild(D.root)}this._offscreenFocusedItem=this._physicalItems[l];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[l]=this._focusBackfillItem;this._focusedPhysicalIndex=l;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var l=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),D=this._physicalItems[l];if(D){var U=this.modelForElement(D),n=this.modelForElement(this._offscreenFocusedItem);U[this.as]===n[this.as]?(this._focusBackfillItem=D,U.tabIndex=-1,this._physicalItems[l]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(l){l=this.modelForElement(l.target);var D=this.modelForElement(this._focusedItem),U=this._offscreenFocusedItem!==null,n=this._focusedVirtualIndex;l&&(D===l?this._isIndexVisible(n)||this.scrollToIndex(n):(this._restoreFocusedItem(),D&&(D.tabIndex=-1),l.tabIndex=0,this._focusedVirtualIndex=n=l[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(n),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],U&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(l){switch(l.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&l.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&&l.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(l)}},
_clamp:function(l,D,U){return Math.min(U,Math.max(D,l))},
_debounce:function(l,D,U){this._debouncers=this._debouncers||{};this._debouncers[l]=_.Qb(this._debouncers[l],U,D.bind(this));_.GL(this._debouncers[l])},
_forwardProperty:function(l,D,U){l._setPendingProperty(D,U)},
_forwardHostPropV2:function(l,D){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(U){U&&this.modelForElement(U).forwardHostProp(l,D)},this)},
_notifyInstancePropV2:function(l,D,U){mdc(this.as,D)&&(l=l[this.indexAs],D==this.as&&(this.items[l]=U),this.notifyPath(kY(this.as,"items."+l,D),U))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(l,D,U){D.indexOf(this.as+".")===0&&this.notifyPath("items."+l.__key__+"."+D.slice(this.as.length+1),U)},
_forwardParentPath:function(l,D){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(U){U&&this.modelForElement(U).notifyPath(l,D)},this)},
_forwardParentProp:function(l,D){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(U){U&&(this.modelForElement(U)[l]=D)},this)},
_getActiveElement:function(){var l=this._itemsParent.node.domHost;return _.Ga(l?l.root:document).activeElement},
_scrollTargetChanged:function(l,D){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(D)if(l==="document")this.scrollTarget=this._doc;else if(typeof l==="string"){var U,n;this.scrollTarget=(D=(n=(U=this.domHost)==null?void 0:U.polymerController)!=null?n:this.domHost)&&D.$?D.$[l]:_.Ga(this.ownerDocument).querySelector("#"+l)}else this._isValidScrollTarget()&&(this._oldScrollTarget=l,this._toggleScrollListener(this._shouldHaveListener,l))}});var OTv;var V8k;var ibh=function(l,D,U,n){l-=U;D-=n;return Math.sqrt(l*l+D*D)},lzv=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
RVB.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Zns=function(l){l.maxRadius=0;l.mouseDownStart=0;l.mouseUpStart=0;l.xStart=0;l.yStart=0;l.xEnd=0;l.yEnd=0;l.containerMetrics=new RVB(l.element)};
eV3.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var l=lzv()-this.mouseDownStart;this.mouseUpStart&&(l-=this.mouseUpElapsed);return l},get mouseUpElapsed(){return this.mouseUpStart?lzv()-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 l=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(l*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-l/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var l=this.radius/(this.containerMetrics.size/2);var D=this.xNow-this.containerMetrics.width/2;var U=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+D+"px, "+U+"px)";this.waveContainer.style.transform="translate3d("+D+"px, "+U+"px, 0)";this.wave.style.webkitTransform="scale("+l+","+l+")";this.wave.style.transform="scale3d("+l+","+l+",1)"},
downAction:function(l){var D=this.containerMetrics.width/2,U=this.containerMetrics.height/2;Zns(this);this.mouseDownStart=lzv();this.center?(this.xStart=D,this.yStart=U):(this.xStart=l?l.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=l?l.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=D,this.yEnd=U);l=this.containerMetrics;D=this.xStart;U=this.yStart;this.maxRadius=Math.max(ibh(D,U,0,0),ibh(D,U,
l.width,0),ibh(D,U,0,l.height),ibh(D,U,l.width,l.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=lzv())},
remove:function(){_.Ga(_.Ga(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.e0({_template:function(){if(V8k!==void 0)return V8k;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;OTv===void 0&&(OTv=document.createElement("template"));var n=OTv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return V8k=l},
is:"tp-yt-paper-ripple",behaviors:[_.pi],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(){_.Ga(this).parentNode.nodeType==11?this.keyEventTarget=_.Ga(this).getOwnerRoot().host:this.keyEventTarget=_.Ga(this).parentNode;var l=this.keyEventTarget;this.listen(l,"up","uiUpAction");this.listen(l,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(l){l.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var l=0;l<this.ripples.length;++l)if(!this.ripples[l].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(l){this.noink||this.downAction(l)},
downAction:function(l){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(l),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(l){this.noink||this.upAction(l)},
upAction:function(l){this.holdDown||(this.ripples.forEach(function(D){D.upAction(l)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var l=0;l<this.ripples.length;++l){var D=this.ripples[l];D.isOpacityFullyDecayed&&!D.isRestingAtMaxRadius&&this.removeRipple(D)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var l=new eV3(this);_.Ga(this.$.waves).appendChild(l.waveContainer);this.$.background.style.backgroundColor=l.color;this.ripples.push(l);this._setAnimating(!0);return l},
removeRipple:function(l){var D=this.ripples.indexOf(l);D<0||(this.ripples.splice(D,1),l.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var l;for(l=0;l<this.ripples.length;++l){var D=this.ripples[l];D.draw();this.$.background.style.opacity=D.outerOpacity;D.isOpacityFullyDecayed&&!D.isRestingAtMaxRadius&&this.removeRipple(D)}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(l,D){D!==void 0&&(l?this.downAction():this.upAction())}});var WL={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(l){jf._downHandler.call(this,l);this.pressed&&this.ensureRipple(l)},
ensureRipple:function(l){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var D=this._rippleContainer||this.root;D&&_.Ga(D).appendChild(this._ripple);if(l){D=_.Ga(this._rippleContainer||this);var U=_.Ga(l).rootTarget;D.deepContains(U)&&this._ripple.uiDownAction(l)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(l){this.hasRipple()&&(this._ripple.noink=l)}};var DiH={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 l=1;this.disabled?l=0:this.active||this.pressed?l=4:this.receivedFocusFromKeyboard&&(l=3);this._setElevation(l)},
_computeKeyboardClass:function(l){this.toggleClass("keyboard-focus",l)},
_spaceKeyDownHandler:function(l){jf._spaceKeyDownHandler.call(this,l);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(l){jf._spaceKeyUpHandler.call(this,l);this.hasRipple()&&this._ripple.uiUpAction()}},Ui7=[$9_,
_.xs,WL,DiH];_.nN1={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(l){l&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=l)},
_createRipple:function(){var l=WL._createRipple();l.id="ink";l.setAttribute("center","");l.classList.add("circle");return l}};
_.yXz=[$9_,_.xs,WL,_.nN1];_.AXH=[_.yXz,Eq8,{_checkedChanged:function(){s7y._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){WL._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var WOz;var Bxh;var Cnr=function(){};
_.W=Cnr.prototype;_.W.registered=function(){};
_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W._tapHandler=function(){};
_.W._focusChanged=function(){};
_.W._detectKeyboardFocus=function(){};
_.W._userActivate=function(){};
_.W._upHandler=function(){};
_.W._asyncClick=function(){};
_.W._pressedChanged=function(){};
_.W._ariaActiveAttributeChanged=function(){};
_.W._activeChanged=function(){};
_.W._controlStateChanged=function(){};
_.W._changedButtonState=function(){};
_.W._focusBlurHandler=function(){};
_.W._disabledChanged=function(){};
_.W._changedControlState=function(){};
_.W._buttonStateChanged=function(){};
_.W._downHandler=function(){};
_.W.ensureRipple=function(){};
_.W.getRipple=function(){};
_.W.hasRipple=function(){};
_.W._createRipple=function(){};
_.W._noinkChanged=function(){};
_.W._computeKeyboardClass=function(){};
_.W._spaceKeyDownHandler=function(){};
_.W._spaceKeyUpHandler=function(){};
_.W._setPressed=function(){};
_.W._setPointerDown=function(){};
_.W._setReceivedFocusFromKeyboard=function(){};
_.W._setFocused=function(){};
_.W._setElevation=function(){};
Cnr=_.e0({_template:function(){if(Bxh!==void 0)return Bxh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
var D=l.content,U=D.insertBefore;WOz===void 0&&(WOz=document.createElement("template"));var n=WOz;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Bxh=l},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[Ui7],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?DiH._calculateElevation.apply(this):this._setElevation(0)}});var hmk;var Pn7;var bb5={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(l){_.q("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(l)},
_onDialogClickWrapped:function(l){_.q("dialog_behavior_no_tap_killswitch")||this._onDialogClick(l)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(l,D){D&&(l?(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(l){if(l){var D;((D=this.hostElement)!=null?D:this).setAttribute("aria-modal","true")}else{var U;((U=this.hostElement)!=null?U:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(l){this.closingReason=this.closingReason||{};this.closingReason.confirmed=l},
_onDialogClick:function(l){for(var D=_.Ga(l).path,U=0,n,y=D.indexOf((n=this.hostElement)!=null?n:this);U<y;U++)if(n=D[U],n.hasAttribute&&(n.hasAttribute("dialog-dismiss")||n.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(n.hasAttribute("dialog-confirm"));this.close();l.stopPropagation();break}}},gNy=[_.AM,
bb5];var uah=document.createElement("template");_.e(uah,'<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(uah.content);var vNm=document.createElement("template");_.e(vNm,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(vNm.content);_.e0({_template:function(){if(Pn7!==void 0)return Pn7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
var D=l.content,U=D.insertBefore;hmk===void 0&&(hmk=document.createElement("template"));var n=hmk;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Pn7=l},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[gNy,DFH],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 QPk;var Gm_;_.e0({_template:function(){if(Gm_!==void 0)return Gm_;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;QPk===void 0&&(QPk=document.createElement("template"));var n=QPk;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Gm_=l},
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 l,D,U;if(((l=window.ShadyDOM)==null?void 0:l.noPatch)!==!0&&((D=window.ShadyDOM)==null?void 0:D.noPatch)!=="on-demand"||((U=this.__shady_parentNode)==null?void 0:U.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(bb5)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var JXk=_.wL(['<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>']),LOh=_.zs7(JXk);LOh.setAttribute("style","display: none;");document.head.appendChild(LOh.content);var qYk;var Meh;var Rm_;var Zb8;_.e0({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[NT],configure:function(l){var D=l.node,U=D.getBoundingClientRect().height;return this._effect=new KeyframeEffect(D,[{height:U/2+"px"},{height:U+"px"}],this.timingFromConfig(l))}});
_.e0({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[NT],configure:function(l){var D=l.node,U=D.getBoundingClientRect().width;return this._effect=new KeyframeEffect(D,[{width:U/2+"px"},{width:U+"px"}],this.timingFromConfig(l))}});
_.e0({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[NT],configure:function(l){var D=l.node,U=D.getBoundingClientRect().width;return this._effect=new KeyframeEffect(D,[{width:U+"px"},{width:U-U/20+"px"}],this.timingFromConfig(l))}});
_.e0({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[NT],configure:function(l){var D=l.node,U=D.getBoundingClientRect().height;this.setPrefixedProperty(D,"transformOrigin","0 0");return this._effect=new KeyframeEffect(D,[{height:U+"px",transform:"translateY(0)"},{height:U/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(l))}});var BL={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},emk=function(){};
_.W=emk.prototype;_.W.registered=function(){};
_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W._focusBlurHandler=function(){};
_.W._changedControlState=function(){};
_.W._setFocused=function(){};
emk=_.e0({_template:function(){if(Zb8!==void 0)return Zb8;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Rm_===void 0&&(Rm_=document.createElement("template"));var n=Rm_;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Zb8=l},
is:"tp-yt-paper-menu-button",behaviors:[_.pi,_.xs],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:BL.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:BL.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:BL.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 l=_.Ga(this.$.content).getDistributedNodes(),D=0,U=l.length;D<U;D++)if(l[D].nodeType===Node.ELEMENT_NODE)return l[D]},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(l,D){l?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):D!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(l){_.xs._disabledChanged.apply(this,arguments);l&&this.opened&&this.close()},
__onIronOverlayCanceled:function(l){var D=this.$.trigger;_.Ga(l.detail).path.indexOf(D)>-1&&l.preventDefault()}});
Object.keys(BL).forEach(function(l){emk[l]=BL[l]});var mi7=_.FH.IronButtonState,azg=(0,_.Kn)(HTMLElement);
_.e0({_template:function(){if(Meh!==void 0)return Meh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;qYk===void 0&&(qYk=document.createElement("template"));var n=qYk;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Meh=l},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[mi7,_.xs,WL,_.ox,_.z2],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(l){var D=(0,_.xY)(this);D.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:l});D.shadowRoot.appendChild(l);return azg.prototype._attachDom.call(this,l)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var l=this.contentElement;l&&l.selectedItem&&this._setSelectedItem(l.selectedItem)},
get contentElement(){for(var l=_.Ga(this.$.content).getDistributedNodes(),D=0,U=l.length;D<U;D++)if(l[D].nodeType===Node.ELEMENT_NODE)return l[D]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(l){this._setSelectedItem(l.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(l){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l)===this&&this.open()},
_selectedItemChanged:function(l){var D="";l?D=l.label||l.getAttribute("label")||l.textContent.trim():D="";this.value=D;this._setSelectedItemLabel(D)},
_computeMenuVerticalOffset:function(l,D){return D?D:l?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var l=this.opened?"true":"false",D=this.contentElement;D&&D.setAttribute("aria-expanded",l)},
_computeLabelClass:function(l,D,U){var n="label";if(l)U&&(n+=" label-is-hidden");else if(U||D)n+=" label-is-floating";return n},
_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 te5;var Xb8;_.e0({is:"tp-yt-paper-icon-button",_template:function(){if(Xb8!==void 0)return Xb8;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;te5===void 0&&(te5=document.createElement("template"));var n=te5;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Xb8=l},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.yXz],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(l,D){var U=this.getAttribute("aria-label");U&&D!=U||this.setAttribute("aria-label",l)}});var SY7;var km_;_.C5=[$9_,_.xs,{hostAttributes:{role:"option",tabindex:"0"}}];_.e0({_template:function(){if(km_!==void 0)return km_;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;SY7===void 0&&(SY7=document.createElement("template"));var n=SY7;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return km_=l},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.C5]});var dih;var KO5;var cXg={attached:function(){this.fire("addon-attached")},
update:function(){}};var pbz=1,xiz=1,jPg=1,FOm=[_.xs,_.pi,{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();!Cn&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(l,D){l?l=l+" "+D:l=D;return l},
_onAddonAttached:function(l){l=_.Ga(l).rootTarget;if(l.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,l.id);else{var D="paper-input-add-on-"+xiz++;l.id=D;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,D)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(l){_.xs._focusBlurHandler.call(this,l);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var l=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",l);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(l){try{var D=this.inputElement.selectionStart;this.value=l;this.inputElement.selectionStart=D;this.inputElement.selectionEnd=D}catch(U){this.value=l}},
_computeAlwaysFloatLabel:function(l,D){return D||l},
_updateAriaLabelledBy:function(){var l=_.Ga(this.root).querySelector("label");if(l){if(l.id)var D=l.id;else D="paper-input-label-"+pbz++,l.id=D;this._ariaLabelledBy=D}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+jPg++)},
_onChange:function(l){this.shadowRoot&&this.fire(l.type,{sourceEvent:l},{node:this,bubbles:l.bubbles,cancelable:l.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var l=document.activeElement;l instanceof HTMLElement&&l!==document.body&&l!==document.documentElement||this._focusableElement.focus()}}}];var oNr;var wbk;_.e0({_template:function(){if(wbk!==void 0)return wbk;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;oNr===void 0&&(oNr=document.createElement("template"));var n=oNr;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return wbk=l},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[cXg],properties:{_charCounterStr:{type:String,value:"0"}},update:function(l){if(l.inputElement){l.value=l.value||"";var D=l.value.toString().length.toString();l.inputElement.hasAttribute("maxlength")&&(D+="/"+l.inputElement.getAttribute("maxlength"));this._charCounterStr=D}}});var rXg;var zmy;_.e0({_template:function(){if(zmy!==void 0)return zmy;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;rXg===void 0&&(rXg=document.createElement("template"));var n=rXg;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return zmy=l},
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 mE(this.attrForValue)},get _inputElement(){return _.Ga(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(l){this._addons||(this._addons=[]);l=l.target;this._addons.indexOf(l)===-1&&(this._addons.push(l),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(l){this._handleValueAndAutoValidate(l.target)},
_onValueChanged:function(l){var D=l.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,D.value===void 0||D.value===""))return;this._handleValueAndAutoValidate(l.target)},
_handleValue:function(l){var D=this._inputElementValue;D||D===0||l.type==="number"&&!l.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:l,value:D,invalid:this.invalid})},
_handleValueAndAutoValidate:function(l){this.autoValidate&&l&&(this.invalid=!(l.validate?l.validate(this._inputElementValue):l.checkValidity()));this._handleValue(l)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(l){if(this._addons)for(var D,U=0;D=this._addons[U];U++)D.update(l)},
_computeInputContentClass:function(l,D,U,n,y){var A="input-content";l?(y&&(A+=" label-is-hidden"),n&&!this.noUnfloatedLabelError&&(A+=" is-invalid")):(l=this.querySelector("label"),D||y?(A+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",n?A+=" is-invalid":U&&(A+=" label-is-highlighted")):(l&&(this.$.labelAndInputContainer.style.position="relative"),n&&!this.noUnfloatedLabelError&&(A+=" is-invalid")));U&&(A+=" focused");return A},
_computeUnderlineClass:function(l,D){var U="underline";D?U+=" is-invalid":l&&(U+=" is-highlighted");return U},
_computeAddOnContentClass:function(l,D){var U="add-on-content";D?U+=" is-invalid":l&&(U+=" is-highlighted");return U}});var fzg;var $iH;_.e0({_template:function(){if($iH!==void 0)return $iH;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;fzg===void 0&&(fzg=document.createElement("template"));var n=fzg;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return $iH=l},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[cXg],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(l){this._setInvalid(l.invalid)}});_.e0({is:"tp-yt-paper-input",_template:function(){if(KO5!==void 0)return KO5;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;dih===void 0&&(dih=document.createElement("template"));var n=dih;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return KO5=l},
behaviors:[FOm,_.ox],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 NxH;var sP1;_.e0({_template:function(){if(sP1!==void 0)return sP1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=
l.content,U=D.insertBefore;NxH===void 0&&(NxH=document.createElement("template"));var n=NxH;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return sP1=l},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.C5]});var ENH;var Txm;_.e0({_template:function(){if(Txm!==void 0)return Txm;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
var D=l.content,U=D.insertBefore;ENH===void 0&&(ENH=document.createElement("template"));var n=ENH;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Txm=l},
is:"tp-yt-paper-item-body"});var Izv;var Hbk;var YYy=function(){};
_.W=YYy.prototype;_.W.indexOf=function(){};
_.W.selectPrevious=function(){};
_.W.selectNext=function(){};
_.W.selectIndex=function(){};
_.W.forceSynchronousItemUpdate=function(){};
_.W._checkFallback=function(){};
_.W._addListener=function(){};
_.W._removeListener=function(){};
_.W._activateEventChanged=function(){};
_.W._updateItems=function(){};
_.W._selectSelected=function(){};
_.W._filterItem=function(){};
_.W._valueToItem=function(){};
_.W._valueToIndex=function(){};
_.W._indexToValue=function(){};
_.W._valueForItem=function(){};
_.W._observeItems=function(){};
_.W._itemActivate=function(){};
_.W.multiChanged=function(){};
_.W._updateAttrForSelected=function(){};
_.W._updateSelected=function(){};
_.W._selectMulti=function(){};
_.W._selectionChange=function(){};
_.W._toggleSelected=function(){};
_.W._valuesToItems=function(){};
_.W.registered=function(){};
_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W.select=function(){};
_.W._resetTabindices=function(){};
_.W._updateMultiselectable=function(){};
_.W._focusWithKeyboardEvent=function(){};
_.W._clearSearchText=function(){};
_.W._focusPrevious=function(){};
_.W._focusNext=function(){};
_.W._applySelection=function(){};
_.W._focusedItemChanged=function(){};
_.W._onIronItemsChanged=function(){};
_.W._onShiftTabDown=function(){};
_.W._onFocus=function(){};
_.W._onUpKey=function(){};
_.W._onDownKey=function(){};
_.W._onEscKey=function(){};
_.W._onKeydown=function(){};
_.W._activateHandler=function(){};
_.W._disabledChanged=function(){};
_.W._setSelectedItem=function(){};
_.W._setItems=function(){};
_.W._setSelectedItems=function(){};
_.W._setFocusedItem=function(){};
YYy=_.e0({_template:function(){if(Hbk!==void 0)return Hbk;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
var D=l.content,U=D.insertBefore;Izv===void 0&&(Izv=document.createElement("template"));var n=Izv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Hbk=l},
is:"tp-yt-paper-listbox",behaviors:[Y4g],hostAttributes:{role:"listbox"}});var Ob7;var Ve7;var iLH={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(l,D){return[l||D?"active":"",D?"cooldown":""].join(" ")},
__activeChanged:function(l,D){this.__setAriaHidden(!l);this.__coolingDown=!l&&D},
__altChanged:function(l){this.setAttribute("aria-label",l||"loading")},
__setAriaHidden:function(l){l?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.e0({_template:function(){if(Ve7!==void 0)return Ve7;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Ob7===void 0&&(Ob7=document.createElement("template"));var n=Ob7;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Ve7=l},
is:"tp-yt-paper-spinner",behaviors:[iLH]});var lr1;var DHm;_.e0({_template:function(){if(DHm!==void 0)return DHm;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;lr1===void 0&&(lr1=document.createElement("template"));var n=lr1;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return DHm=l},
is:"tp-yt-paper-spinner-lite",behaviors:[iLH]});var UHz;var nPh;_.e0({_template:function(){if(nPh!==void 0)return nPh;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;UHz===void 0&&(UHz=document.createElement("template"));var n=UHz;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return nPh=l},
is:"tp-yt-paper-tab",behaviors:[_.xs,_.FH.IronButtonState,WL],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 l=_.Ga(this).parentNode;return!!l&&!!l.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(l){if(this.link){var D=this.queryEffectiveChildren("a");D&&l.target!==D&&D.click()}}});var y87;var A8h;var WSg=_.wL(['<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>']),BI_=_.zs7(WSg);document.head.appendChild(BI_.content);_.e0({_template:function(){if(A8h!==void 0)return A8h;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;y87===void 0&&(y87=document.createElement("template"));var n=y87;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return A8h=l},
is:"tp-yt-paper-tabs",behaviors:[_.$s,_.VaH],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(l){_.Ga(this).querySelectorAll("tp-yt-paper-tab").forEach(l?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(l){l.setAttribute("noink","")},
_removeNoinkAttribute:function(l){l.removeAttribute("noink")},
_computeScrollButtonClass:function(l,D,U,n){return!D||U?"hidden":l?n?"hidden":"not-visible":""},
_computeTabsContentClass:function(l,D){var U="tabs-content";l&&(U+=" scrollable");if(!l||D)U+=" fit-container";return U},
_computeSelectionBarClass:function(l,D){var U="selection-bar";l?U+=" hidden":D&&(U+=" align-bottom");return U},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(l){return""+l},
_onIronSelect:function(l){this._tabChanged(l.detail.item,this._previousTab);this._previousTab=l.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();_.fi._activateHandler.apply(this,arguments)},
_scheduleActivation:function(l,D){this._pendingActivationItem=l;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,D)},
_delayedActivationHandler:function(){var l=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;l.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(l){l.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(l,D){this.scrollable&&this._affectScroll(D&&-D.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(l){this.$.tabsContainer.scrollLeft+=l;l=this.$.tabsContainer.scrollLeft;this._leftHidden=l===0||this.hideScrollButtons;this._rightHidden=l===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(l,D){if(l){var U=this.$.tabsContent.getBoundingClientRect(),n=U.width,y=l.getBoundingClientRect();U=y.left-U.left;this._pos={width:this._calcPercent(y.width,n),left:this._calcPercent(U,n)};if(this.noSlide||D==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var A=D.getBoundingClientRect();D=this.items.indexOf(D);l=this.items.indexOf(l);this.$.selectionBar.classList.add("expand");
l=D<l;this._isRTL&&(l=!l);l?this._positionBar(this._calcPercent(y.left+y.width-A.left,n)-5,this._left):this._positionBar(this._calcPercent(A.left+A.width-y.left,n)-5,this._calcPercent(U,n)+5);this.scrollable&&this._scrollToSelectedIfNeeded(y.width,U)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(l,D){D-=this.$.tabsContainer.scrollLeft;D<0?this.$.tabsContainer.scrollLeft+=D:(D+=l-this.$.tabsContainer.offsetWidth,D>0&&(this.$.tabsContainer.scrollLeft+=D))},
_calcPercent:function(l,D){return 100*l/D},
_positionBar:function(l,D){l=l||0;D=D||0;this._width=l;this._left=D;this.transform("translateX("+D+"%) scaleX("+l/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var l=this.$.selectionBar.classList;l.contains("expand")?(l.remove("expand"),l.add("contract"),this._positionBar(this._pos.width,this._pos.left)):l.contains("contract")&&l.remove("contract")}});var Coy;var hNm;_.e0({_template:function(){if(hNm!==void 0)return hNm;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Coy===void 0&&(Coy=document.createElement("template"));var n=Coy;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return hNm=l},
is:"tp-yt-paper-textarea",behaviors:[FOm,_.ox],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(l){this.$.input.textarea.selectionStart=l},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(l){this.$.input.textarea.selectionEnd=l},_ariaLabelledByChanged:function(l){this._focusableElement.setAttribute("aria-labelledby",l)},
_ariaDescribedByChanged:function(l){this._focusableElement.setAttribute("aria-describedby",l)},
get _focusableElement(){return this.inputElement.textarea}});var Po8;var bLk;/*

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 gPH=function(){};
_.W=gPH.prototype;_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W._tapHandler=function(){};
_.W._focusChanged=function(){};
_.W._detectKeyboardFocus=function(){};
_.W._userActivate=function(){};
_.W._upHandler=function(){};
_.W._spaceKeyDownHandler=function(){};
_.W._spaceKeyUpHandler=function(){};
_.W._asyncClick=function(){};
_.W._pressedChanged=function(){};
_.W._ariaActiveAttributeChanged=function(){};
_.W._activeChanged=function(){};
_.W._controlStateChanged=function(){};
_.W._changedButtonState=function(){};
_.W._focusBlurHandler=function(){};
_.W._disabledChanged=function(){};
_.W._changedControlState=function(){};
_.W._downHandler=function(){};
_.W.ensureRipple=function(){};
_.W.getRipple=function(){};
_.W.hasRipple=function(){};
_.W._noinkChanged=function(){};
_.W._focusedChanged=function(){};
_.W.registered=function(){};
_.W._invalidChanged=function(){};
_.W.hasValidator=function(){};
_.W.validate=function(){};
_.W._getValidity=function(){};
_.W._requiredChanged=function(){};
_.W._valueChanged=function(){};
_.W._checkedChanged=function(){};
_.W._buttonStateChanged=function(){};
_.W._setPressed=function(){};
_.W._setPointerDown=function(){};
_.W._setReceivedFocusFromKeyboard=function(){};
_.W._setFocused=function(){};
gPH=_.e0({is:"tp-yt-paper-toggle-button",_template:function(){if(bLk!==void 0)return bLk;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Po8===void 0&&(Po8=document.createElement("template"));var n=Po8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return bLk=l},
behaviors:[_.AXH],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");_.u6(this,function(){_.YY(this,"pan-y")})},
_ontrack:function(l){l=l.detail;l.state==="start"?this._trackStart(l):l.state==="track"?this._trackMove(l):l.state==="end"&&this._trackEnd(l)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(l){l=l.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+l:l)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+l:l));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 l=WL._createRipple();l.id="ink";l.setAttribute("recenters","");l.classList.add("circle","toggle-ink");return l}});var uCk;var vP_;_.e0({_template:function(){if(vP_!==void 0)return vP_;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;uCk===void 0&&(uCk=document.createElement("template"));var n=uCk;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return vP_=l},
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 l=_.Ga(this).parentNode,D=_.Ga(this).getOwnerRoot(),U;this.for?U=_.Ga(D).querySelector("#"+this.for):U=l.nodeType==Node.DOCUMENT_FRAGMENT_NODE?D.host:l;return U},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(l){l==="entry"?this.show():l==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Ga(this).textContent.trim()===""){for(var l=!0,D=_.Ga(this).getEffectiveChildNodes(),U=0;U<D.length;U++)if(D[U].textContent.trim()!==""){l=!1;break}if(l)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 l=this.offset;this.marginTop!=14&&this.offset==14&&(l=this.marginTop);var D=this.offsetParent.getBoundingClientRect(),U=this._target.getBoundingClientRect(),n=this.getBoundingClientRect(),y=(U.width-n.width)/2,A=(U.height-n.height)/2,C=U.left-D.left,h=U.top-D.top;switch(this.position){case "top":var b=C+y;var u=h-n.height-l;break;case "bottom":b=C+y;u=h+U.height+l;break;case "left":b=C-n.width-l;u=h+A;break;case "right":b=C+U.width+
l,u=h+A}this.fitToVisibleBounds?(D.left+b+n.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,b)+"px",this.style.right="auto"),D.top+u+n.height>window.innerHeight?(this.style.bottom=D.height+"px",this.style.top="auto"):(this.style.top=Math.max(-D.top,u)+"px",this.style.bottom="auto")):(this.style.left=b+"px",this.style.top=u+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(l){l!==500&&this.updateStyles({"--paper-tooltip-delay-in":l+"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(l){if(l==="entry"&&this.animationEntry!=="")return this.animationEntry;if(l==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[l]&&typeof this.animationConfig[l][0].name==="string"){if(this.animationConfig[l][0].timing&&this.animationConfig[l][0].timing.delay&&this.animationConfig[l][0].timing.delay!==0){var D=this.animationConfig[l][0].timing.delay;l==="entry"?this.updateStyles({"--paper-tooltip-delay-in":D+"ms"}):l==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":D+
"ms"})}return this.animationConfig[l][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 Q8H=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Q8H,_.Bh);var Gr7=_.qg(Q8H,[0,_.iW]);var hM=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(hM,_.Bh);var J8_=[3,4],LS7=[5,6];var qg7=[0,J8_,LS7,_.nb,-1,_.Yz,_.ym,-1,X2y,S51];var Ml8=_.qg(hM,qg7),RNv=_.Mg(qg7);var ZLy=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(ZLy,_.Bh);var eNm=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(eNm,_.Bh);var mH7=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(mH7,_.Bh);var arH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(arH,_.Bh);var tl7=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(tl7,_.Bh);var PL=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(PL,_.Bh);PL.prototype.getSource=function(){return _.eY(this,1)};
PL.prototype.getMessage=function(){return _.Zo(this,4)};
PL.prototype.getData=function(){return _.MZ(this,tl7,8)};var Xp8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Xp8,_.Bh);var bv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(bv,_.Bh);var gA=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(gA,_.Bh);var uv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(uv,_.Bh);uv.prototype.getUrl=function(){return _.Zo(this,1)};
uv.prototype.setUrl=function(l){return _.c7(this,1,l)};
uv.prototype.hasUrl=function(){return _.Zv(_.hU(this,1))!=null};var Sg1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Sg1,_.Bh);var kr5=[3];var dH_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(dH_,_.Bh);var vL=function(l){var D=new dH_;return _.R2(D,2,l)};
dH_.prototype.getLanguage=function(){return am(this,4,Qw)};
var KS7=function(l){var D=vL(1);return _.tk(D,6,Qw,l)},Qw=[3,
4,5,6];var c8k=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(c8k,_.Bh);var Gd=function(l){var D=new c8k;return _.R2(D,1,l)},JM=function(l,D){return _.tk(l,2,ppk,D)},ppk=[2,
3,4,5];var xHz=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(xHz,_.Bh);var L5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(L5,_.Bh);var j81=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(j81,_.Bh);var FS1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(FS1,_.Bh);var oP_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(oP_,_.Bh);var wp7=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(wp7,_.Bh);var r8m=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(r8m,_.Bh);var q$=function(l){return _.MZ(l,gA,5)};var zNv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(zNv,_.Bh);zNv.prototype.getValue=function(){return MF(this,1)};var frg=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(frg,_.Bh);var M$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(M$,_.Bh);M$.prototype.getMetadata=function(){return _.tU(this,oP_,7,R6)};
M$.prototype.hasMetadata=function(){return _.bB(this,oP_,7,R6)};
var $Hm=_.TTl(M$),R6=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Zx=function(l){this.JSC$12250_name_=l;this.files_=[];this.directories_=[];this.directoryMap_={}};
Zx.prototype.getName=function(){return this.JSC$12250_name_};var m5=function(l,D){this.callback_=D;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Zx("");NI_(this,l,this.rootDirectory_);ev(this)},NI_=function(l,D,U){for(var n=0;n<D.length;n++){var y=D[n];
y.isFile?(l.fileOps_++,y.file((0,_.jU)(l.handleFileSuccess_,l,U),(0,_.jU)(l.handleFileError_,l))):l.unscannedDirectories_.push(new s8y(y,U))}},ev=function(l){if(l.unscannedDirectories_.length>0&&l.directoryOps_<5&&!l.hasError_){l.directoryOps_++;
var D=l.unscannedDirectories_.shift(),U=D.entry,n=new Zx(U.name);D=D.parent;D.directoryMap_[n.getName()]=n;D.directories_.push(n);U=U.createReader();U.readEntries((0,_.jU)(l.handleDirectorySuccess_,l,U,n),(0,_.jU)(l.handleDirectoryError_,l))}l.directoryOps_!=0||l.fileOps_!=0||l.unscannedDirectories_.length!=0&&!l.hasError_||l.callback_(l.rootDirectory_.files_,l.rootDirectory_.directories_,l.hasError_)};
m5.prototype.handleDirectorySuccess_=function(l,D,U){NI_(this,U,D);U.length==0?(this.directoryOps_--,ev(this)):l.readEntries((0,_.jU)(this.handleDirectorySuccess_,this,l,D),(0,_.jU)(this.handleDirectoryError_,this))};
m5.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;ev(this)};
m5.prototype.handleFileSuccess_=function(l,D){l.files_.push(D);this.fileOps_--;ev(this)};
m5.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;ev(this)};
var s8y=function(l,D){this.entry=l;this.parent=D};var a6=function(l){_.Xa.call(this);_.Gt(l,"drop",this.onObjectsDropped_,!1,this);_.Gt(l,"dragenter",this.onFilesDragged_,!1,this);_.Gt(l,"dragover",this.onFilesDragged_,!1,this);_.Gt(l,"dragleave",this.onDragLeave_,!1,this);_.Gt(l,"dragend",this.onDragLeave_,!1,this)};
_.HI(a6,_.Xa);var EPg=function(l,D){_.Zz.call(this,"f");this.files=l;this.directories=D};
_.HI(EPg,_.Zz);var TI8=function(){_.Zz.call(this,"h")};
_.HI(TI8,_.Zz);var Irv=function(){_.Zz.call(this,"i")};
_.HI(Irv,_.Zz);var HL7=function(){_.Zz.call(this,"g")};
_.HI(HL7,_.Zz);a6.prototype.onObjectsDropped_=function(l){var D=this;l.preventDefault();var U=l.event_.dataTransfer;if((l=U&&U.items)&&l.length>0&&l[0].webkitGetAsEntry){U=[];for(var n=[],y=0;y<l.length;y++){var A=l[y].webkitGetAsEntry();A?U.push(A):n.push(l[y])}new m5(U,function(C,h,b){b?D.dispatchEvent(new HL7("Error occurred while reading from the file system.")):D.dispatchEvent(new EPg(C,h,n))})}else(l=U&&U.files)&&this.dispatchEvent(new EPg(Array.from(l),[]))};
a6.prototype.onFilesDragged_=function(l){l.type==="dragenter"&&this.dispatchEvent(new TI8);l.preventDefault()};
a6.prototype.onDragLeave_=function(){this.dispatchEvent(new Irv)};var Yg_=function(l,D){this.JSC$12273_name_=l;this.inputElement_=D};
Yg_.prototype.getName=function(){return this.JSC$12273_name_};
Yg_.prototype.getInputElement=function(){return this.inputElement_};var tM=function(l,D,U){D=D===void 0?"single_file":D;U=U===void 0?[]:U;_.Xa.call(this);this.overlayTarget_=l;this.parentOverlay_=l!=null?l.parentNode:_.SU("scotty-overlay-parent");this.selectorType_=D;this.acceptTypes_=U;this.overlay_=OLm(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.Z(tM,_.Xa);
var OLm=function(l,D,U,n){var y=document.createElement("input");y.setAttribute("type","file");y.setAttribute("name","Filedata");_.Gt(y,"change",l.onFilesSelected_,!1,l);U==="multiple_file"&&(y.multiple="true");U==="single_directory"&&(y.webkitdirectory="true");n.length>0&&y.setAttribute("accept",n.join(","));y.style.position="absolute";y.style.overflow="hidden";y.style.height="0px";y.style.width="0px";y.style.opacity="0";y.setAttribute("aria-hidden","true");y.setAttribute("tabIndex",-1);if(l.overlayTarget_!=
null)return y.style.height=D.offsetHeight+"px",y.style.width=D.offsetWidth+"px",l.parentOverlay_&&(l.parentOverlay_.style.position="relative"),_.xh(y,D),z5(y,new _.zP(D.offsetLeft,D.offsetTop)),y;l.parentOverlay_.appendChild(y);return y};
tM.prototype.click=function(){this.overlay_.click()};
tM.prototype.onFilesSelected_=function(l){a:{try{var D=(new XMLHttpRequest).upload!==void 0;break a}catch(u){}D=!1}if(D){var U;l=Array.from((U=l.target.files)!=null?U:[]);U=[];if(this.selectorType_==="single_directory"&&(_.Do||gb||_.lB)){U=new Zx("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(D=0;D<l.length;D++)for(var n=l[D],y=n.webkitRelativePath.split("/"),A=U,C=0;C<y.length;C++){var h=y[C];if(C==y.length-1){h!="."&&A.files_.push(n);break}var b=A.directoryMap_[h];b==void 0&&(h=
b=new Zx(h),A.directoryMap_[h.getName()]=h,A.directories_.push(h));A=b}U=U.directories_}this.dispatchEvent(new Vlh(l,U,null))}else l=l.target.value,l.match(/^c:\\fakepath\\/i)&&(l=l.substring(12)),this.dispatchEvent(new Vlh([],[],new Yg_(l,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=OLm(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Vlh=function(l,D){_.Zz.call(this,"j");this.files=l;this.directories=D};
_.Z(Vlh,_.Zz);var ipy=function(l){this.uploadUrl_=l};var lOz=function(){_.Xa.call(this)};
_.HI(lOz,_.Xa);var Xd=function(l){_.Zz.call(this,l)};
_.HI(Xd,_.Zz);var Sv=function(l){_.Zz.call(this,l)};
_.HI(Sv,_.Zz);var Dc7=function(l,D,U,n,y){_.Xa.call(this);U=document.createElement("form");U.setAttribute("method",D);U.setAttribute("enctype","multipart/form-data");U.setAttribute("encoding","multipart/form-data");D=document.createElement("input");D.setAttribute("type","hidden");D.setAttribute("name","metadata");D.setAttribute("value",y);U.appendChild(D);U.appendChild(n);this.JSC$12290_form_=U;l=new _.fI(l);_.ny(l,"upload_protocol","multipart");this.JSC$12290_url_=l.toString();this.JSC$12290_request_=new b3;this.state_=
"Ready";this.JSC$12290_errorDescription_=null;this.JSC$12290_eventHandler_=new _.ZB(this);_.m7(this,this.JSC$12290_eventHandler_);this.JSC$12290_eventHandler_.listen(this.JSC$12290_request_,"success",this.onTransferSuccess_);this.JSC$12290_eventHandler_.listen(this.JSC$12290_request_,"error",this.onTransferError_)};
_.Z(Dc7,lOz);_.W=Dc7.prototype;_.W.run=function(){this.state_="Transferring";var l=this.JSC$12290_request_,D=this.JSC$12290_form_;if(l.JSC$11558_active_)throw Error("te");var U=new _.fI(this.JSC$12290_url_||D.action);l.JSC$11558_form_=D;D=l.JSC$11558_form_;U=_.Tq(U.toString());U!==void 0&&(D.action=U);hWv(l)};
_.W.getResponseCode=function(){return null};
_.W.getResponseText=function(){return this.JSC$12290_request_&&this.JSC$12290_request_.getResponseText()||null};
_.W.JSC$29996_getErrorDescription=function(){return this.JSC$12290_errorDescription_};
_.W.cancel=function(){this.JSC$12290_request_&&this.JSC$12290_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Xd("o"))};
_.W.pause=function(){};
_.W.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Xd("l"))};
_.W.onTransferError_=function(){this.JSC$12290_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Xd("n"))};var k0=function(){_.je.call(this)};
_.Z(k0,_.je);k0.prototype.createXhr=function(){var l=_.je.prototype.createXhr.call(this);l.upload&&(l.upload.onprogress=(0,_.jU)(this.onProgress_,this));return l};
k0.prototype.onProgress_=function(l){this.dispatchEvent(l)};var Ucy=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},y7y=function(l,D){var U=l.attempt_+1;
if(l.maxAttempts_>0&&U>l.maxAttempts_)return!1;U==0?D():l.delayCallId_=cb(function(){l.delayCallId_=null;D()},nKr(l),l);
l.attempt_=U;return!0};
Ucy.prototype.reset=function(){this.delayCallId_&&_.nC.clearTimeout(this.delayCallId_);this.attempt_=-1};
var nKr=function(l){var D=250*Math.pow(2,l.attempt_);l.maxDelayMs_>=0&&(D=Math.min(D,l.maxDelayMs_));return D};var aWl=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var dA=function(){_.Xa.call(this);this.JSC$12300_request_=this.state_=null;this.JSC$12300_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12300_bytesTransferred_=0;this.retryIterator_=new Ucy;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12300_errorDescription_=null;this.JSC$12300_eventHandler_=new _.ZB(this);_.m7(this,this.JSC$12300_eventHandler_);this.JSC$12300_url_=this.blob_=null;this.JSC$12300_method_=void 0;this.chunkSize_=this.JSC$12300_metadata_=
this.JSC$12300_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12300_responseText_=this.JSC$12300_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.HI(dA,lOz);_.W=dA.prototype;_.W.run=function(){K5(this)};
_.W.getResponseCode=function(){return this.JSC$12300_responseCode_};
_.W.getResponseText=function(){return this.JSC$12300_responseText_};
_.W.JSC$29996_getErrorDescription=function(){return this.JSC$12300_errorDescription_};
_.W.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12300_eventHandler_.removeAll();this.JSC$12300_request_&&this.JSC$12300_request_.abort();this.retryIterator_.reset();var l=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(l==="Upload"||l==="Query")l=new k0,l.JSC$9877_withCredentials_=this.JSC$12300_withCredentials_,l.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12300_bytesTransferred_=
0;this.dispatchEvent(new Xd("o"))}};
_.W.pause=function(){this.pauseRequested_=!0};
var K5=function(l){var D=l.state_;l.pauseRequested_?(l.pauseRequested_=!1,l.stateAfterUnpausing_=D,l.state_="Paused"):y7y(l.retryIterator_,function(){switch(l.state_){case "Start":l.JSC$12300_request_=new k0;var U=_.we.clone(l.JSC$12300_headers_);l.blob_.size!=null&&(U["Content-Length"]=l.blob_.size);U=tLG(U);U["X-Goog-Upload-Protocol"]="resumable";U["X-Goog-Upload-Command"]="start";l.JSC$12300_eventHandler_.removeAll();l.JSC$12300_eventHandler_.listen(l.JSC$12300_request_,"complete",l.onStartComplete_);
l.JSC$12300_request_.JSC$9877_withCredentials_=l.JSC$12300_withCredentials_;l.JSC$12300_request_.send(l.JSC$12300_url_,l.JSC$12300_method_,l.JSC$12300_metadata_,U);l.lastCommandResponseCode_=null;l.dispatchEvent(new Sv("q"));break;case "Upload":U=l.transferHandle_.uploadUrl_;var n=l.blob_.size;if(o2_()){var y=l.chunkSize_;var A=l.offset_+y>=n;n=FQv(l.blob_,l.offset_,A?n:l.offset_+y)}else l.offset_=0,n=l.blob_,A=!0;l.JSC$12300_request_=new k0;l.JSC$12300_request_.JSC$9877_withCredentials_=l.JSC$12300_withCredentials_;
l.JSC$12300_eventHandler_.removeAll();l.JSC$12300_eventHandler_.listen(l.JSC$12300_request_,"progress",l.onUploadProgress_);y=(0,_.jU)(l.JSC$12302_onUploadComplete_,l,l.offset_+n.size,A);l.JSC$12300_eventHandler_.listen(l.JSC$12300_request_,"complete",y);l.lastCommandResponseCode_=null;l.dispatchEvent(new Sv("q"));A=Object.assign({},l.JSC$12300_headers_||{},{"X-Goog-Upload-Command":"upload"+(A?", finalize":""),"X-Goog-Upload-Offset":l.offset_});l.JSC$12300_request_.send(U,"POST",n,A);break;case "Query":l.JSC$12300_request_=
new k0;l.JSC$12300_eventHandler_.removeAll();l.JSC$12300_eventHandler_.listen(l.JSC$12300_request_,"complete",l.onQueryComplete_);U=Object.assign({},l.JSC$12300_headers_||{},{"X-Goog-Upload-Command":"query"});l.JSC$12300_request_.send(l.transferHandle_.uploadUrl_,"POST","",U);l.lastCommandResponseCode_=null;l.dispatchEvent(new Sv("q"));break;default:throw Error("lf");}})||cL(l,"Transfer encountered too many consecutive failures.")},cL=function(l,D){l.state_="Error";
l.JSC$12300_errorDescription_=D;l.dispatchEvent(new Xd("n"))};
dA.prototype.onStartComplete_=function(l){var D=l.target;this.lastCommandResponseCode_=D.getStatus();this.dispatchEvent(new Sv("r"));if(A7H(D))Wmk(this,D);else if(BC7(D)){l=Cy(l.target.getAllResponseHeaders());for(var U in l)_.Ad(U.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Xd("m"));U=LI(l,"X-Goog-Upload-URL");l=(l=LI(l,"X-Goog-Upload-Chunk-Granularity"))?parseInt(l,10):1;U===void 0||isNaN(l)||l<=0?cL(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
l)*l,this.transferHandle_=new ipy(U),this.dispatchEvent(new Xd("p")),this.state_="Upload",this.retryIterator_.reset(),K5(this))}else K5(this)};
dA.prototype.onUploadProgress_=function(l){this.JSC$12300_bytesTransferred_=this.offset_+l.loaded;this.dispatchEvent(new Xd("k"))};
dA.prototype.JSC$12302_onUploadComplete_=function(l,D,U){var n=this,y,A;return _.P(function(C){switch(C.nextAddress){case 1:y=U.target;n.lastCommandResponseCode_=y.getStatus();n.dispatchEvent(new Sv("r"));if(CLr(y)||y.getStatus()==404)return n.JSC$12300_bytesTransferred_=l,Wmk(n,y),C.return();if(BC7(y)){C.jumpTo(2);break}if(!(A=n.detectCorruptedBlobEnabled_)){C.jumpTo(3);break}return C.yield(hnh(n),4);case 4:A=C.yieldResult;case 3:if(A)return cL(n,"Blob has been modified or corrupted."),C.return();
n.requireUploadRequestModification_=y.getStatus()==400;n.state_="Query";K5(n);return C.return();case 2:if(D)return cL(n,"Got a non-final success response after issuing a finalize command."),C.return();n.JSC$12300_bytesTransferred_=l;n.offset_=l;n.retryIterator_.reset();K5(n);return C.return()}})};
dA.prototype.onQueryComplete_=function(l){var D=l.target;this.lastCommandResponseCode_=D.getStatus();this.dispatchEvent(new Sv("r"));A7H(D)?(D.getStatus()===200&&(this.JSC$12300_bytesTransferred_=this.blob_.size),Wmk(this,D)):BC7(D)?(l=Cy(l.target.getAllResponseHeaders()),l=parseInt(LI(l,"X-Goog-Upload-Size-Received"),10),isNaN(l)?cL(this,"Server did not respond with current offset."):l<this.offset_?cL(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
l+"."):this.requireUploadRequestModification_&&this.offset_===l?cL(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<l&&this.retryIterator_.reset(),this.offset_=this.JSC$12300_bytesTransferred_=l,this.state_="Upload",K5(this))):K5(this)};
var Wmk=function(l,D){l.JSC$12300_responseCode_=D.getStatus();var U=Cy(D.getAllResponseHeaders());Xz$(U);l.JSC$12300_responseText_=D.getResponseText();l.state_="Response received";l.dispatchEvent(new Xd("l"))},BC7=function(l){var D=l.getStatus();
l=Cy(l.getAllResponseHeaders());l=LI(l,"X-Goog-Upload-Status");return D===200&&l==="active"},CLr=function(l){l=Cy(l.getAllResponseHeaders());
return LI(l,"X-Goog-Upload-Status")==="final"},A7H=function(l){if(CLr(l))return!0;
l=l.getStatus();return l>=400&&l<500},hnh=function(l){var D;
return _.P(function(U){if(U.nextAddress==1){if(!l.blob_||l.originalBlobSize_<=0)return U.return(!1);if(l.blob_.size!==l.originalBlobSize_)return U.return(!0);_.ZY(U,2);if(D=FQv(l.blob_,0,1)){var n=U.yield,y=new Id,A=MZ7(y);y.reader_.readAsBinaryString(D);U=n.call(U,A,4)}else U=U.return(!0);return U}if(U.nextAddress!=2)return U.return(l.blob_.size!==l.originalBlobSize_);_.kF(U);return U.return(!0)})};var PLy=function(l,D,U,n,y,A){_.Xa.call(this);this.payload_=n;this.JSC$12303_url_=l;this.JSC$12303_method_=D;this.JSC$12303_headers_=U;this.JSC$12303_metadata_=y;this.encoding_=A||"binary";l=new _.pn;this.boundary_="uploader-"+lh()+"-"+l.JSC$11407_toIsoString();this.JSC$12303_responseText_=this.JSC$12303_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12303_errorDescription_=null;this.JSC$12303_eventHandler_=new _.ZB(this);_.m7(this,this.JSC$12303_eventHandler_)};
_.Z(PLy,lOz);_.W=PLy.prototype;
_.W.run=function(){var l=_.we.clone(this.JSC$12303_headers_);this.payload_.length!=null&&(l["Content-Length"]=this.payload_.length);l=tLG(l);l["X-Goog-Upload-Protocol"]="multipart";l["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new k0;this.JSC$12303_eventHandler_.removeAll();this.JSC$12303_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12303_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12303_url_,this.JSC$12303_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12303_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",l)};
_.W.getResponseCode=function(){return this.JSC$12303_responseCode_};
_.W.getResponseText=function(){return this.JSC$12303_responseText_};
_.W.JSC$29996_getErrorDescription=function(){return this.JSC$12303_errorDescription_};
_.W.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12303_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Xd("o")))};
_.W.pause=function(){};
_.W.onTransferProgress_=function(){this.dispatchEvent(new Xd("k"))};
_.W.onTransferComplete_=function(l){var D=l.target.getStatus();D===void 0||D===-1?(this.JSC$12303_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Xd("n"))):(this.JSC$12303_responseCode_=D,l=l.target,D=Cy(l.getAllResponseHeaders()),Xz$(D),this.JSC$12303_responseText_=l.getResponseText(),this.state_="Complete",this.dispatchEvent(new Xd("l")))};_.bpz=function(l,D,U,n){n=n===void 0?!1:n;if(U instanceof Yg_)return new Dc7(l,"POST",D,U.getInputElement(),"");if(typeof U==="string"||U instanceof String)return new PLy(l,"POST",D,U,"");var y=new dA(void 0);y.JSC$12300_url_=l;y.JSC$12300_method_="POST";y.JSC$12300_headers_=D;y.blob_=U;y.originalBlobSize_=U.size;y.JSC$12300_metadata_="";n&&(y.JSC$12300_withCredentials_=n);y.state_="Start";return y};var p5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(p5,_.Bh);_.W=p5.prototype;_.W.getEnableSsEngine=function(){return _.qF(this,2)};
_.W.getEnableAwr=function(){return _.qF(this,3)};
_.W.getAlohaAutoGaRollout=function(){return _.qF(this,5)};
_.W.getEnableConfigurator=function(){return _.qF(this,6)};
_.W.getEnableMweb=function(){return _.qF(this,7)};
var u6k=function(){var l=gKm();return _.RS(l,7,!0)};
p5.prototype.getEnableCtlConsentCheckbox=function(){return _.qF(this,8)};
p5.prototype.getEnableIframe=function(){return _.qF(this,9)};
var gKm=function(){var l=new p5;l=_.RS(l,5,!0);l=_.RS(l,2,!0);l=_.RS(l,4,!1);l=_.RS(l,8,!0);return _.RS(l,9,!0)};
p5.prototype.getEnableScreenshotNudge=function(){return _.qF(this,10)};
var vKv=function(){var l=u6k();return _.RS(l,10,!0)};
p5.prototype.getEnableWebStartupConfigEndpoint=function(){return _.qF(this,11)};
p5.prototype.getEnableJunkNudge=function(){return _.qF(this,12)};
var T7N=function(){var l=vKv();return _.RS(l,12,!0)};
_.W=p5.prototype;_.W.getEnableConfiguratorLocale=function(){return _.qF(this,13)};
_.W.getEnableTinyNoPointer=function(){return _.qF(this,14)};
_.W.getEnableSupportSessionLogging=function(){return _.qF(this,15)};
_.W.getEnableFileUploadForScreenshot=function(){return _.qF(this,16)};
_.W.getEnableDirectDeflectionForSingleCategory=function(){return _.qF(this,17)};
_.W.getEnableImageSanitization=function(){return _.qF(this,18)};
_.W.getEnableAlohaBinarySplit=function(){return _.qF(this,19)};
_.W.getEnableDbFeedbackIntents=function(){return _.qF(this,20)};
_.W.getEnableMarkMandatoryFieldsWithRequired=function(){return _.qF(this,21)};
_.W.getEnableFeedbackCategoryCustomUi=function(){return _.qF(this,22)};
_.W.getEnableRealtimeCtl=function(){return _.qF(this,23)};var EA_=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(EA_,_.Bh);var SIo=[/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 df9="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 Kld=_.wL(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),cVl=_.wL(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var qA=function(){var l=Error.call(this,"Form is either loading or already opened");this.message=l.message;"stack"in l&&(this.stack=l.stack);this.name="DuplicateFormError"};
_.Z(qA,Error);var xfB,oAC,jdG,wzl;var x0,Qph;
x0=function(l,D,U){l.timeOfStartCall=(new Date).getTime();var n=U||_.nC,y=n.document,A=l.nonce||_.US(n.document);A&&!l.nonce&&(l.nonce=A);if(l.flow=="help"){var C=_.UG("document.location.href",n);!l.helpCenterContext&&C&&(l.helpCenterContext=C.substring(0,1200));C=!0;if(D&&JSON&&JSON.stringify){var h=JSON.stringify(D);(C=h.length<=1200)&&(l.psdJson=h)}C||(D={invalidPsd:!0})}D=[l,D,U];n.GOOGLE_FEEDBACK_START_ARGUMENTS=D;U=l.feedbackServerUri||"//www.google.com/tools/feedback";if(C=n.GOOGLE_FEEDBACK_START)C.apply(n,D);
else{n=U+"/load.js?";for(var b in l)D=l[b],D==null||_.I_(D)||(n+=encodeURIComponent(b)+"="+encodeURIComponent(D)+"&");l=K2(y).createElement("SCRIPT");A&&l.setAttribute("nonce",A);_.BY(l,_.dT(n));y.body.appendChild(l)}};
Qph=function(l,D,U,n){var y,A;return _.P(function(C){y=U||_.nC;var h=l.serverEnvironment==="DEV",b=U||_.nC;b=l.nonce||_.US(b.document);h={integrationKeys:{productId:l.productId,feedbackBucket:l.bucket,triggerId:l.triggerId},callbacks:{onClose:l.callback,onLoad:l.onLoadCallback},formContent:{locale:l.locale,disableScreenshot:l.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:l.abuseLink,additionalDataConsent:l.additionalDataConsent},initializationData:{isLocalServer:h,nonce:b,useNightlyRelease:h,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:l.feedbackServerUri,colorScheme:l.colorScheme},extraData:{productVersion:l.productVersion,authUser:l.authuser,configuratorId:l.configuratorId,customZIndex:l.customZIndex,tinyNoPointer:l.tinyNoPointer,
allowNonLoggedInFeedback:l.allowNonLoggedInFeedback,enableAnonymousFeedback:l.enableAnonymousFeedback}};D&&(b=new Map(Object.entries(D)),h.extraData.productSpecificData=b);A=h;return C.yield($fd(A,n,y),0)})};
_.G_y=function(l,D,U){try{if(l.flow==="help"){var n=l.helpCenterPath.replace(/^\//,"");_.DY(U||window,"https://support.google.com/"+n)}else l.flow==="submit"?x0(l,D,U):IW9(l.productId,l.feedbackServerUri).then(function(y){y=_.MZ(y,p5,1);var A=!s_1||(y==null?void 0:y.getEnableMweb()),C=!l.tinyNoPointer||(y==null?void 0:y.getEnableTinyNoPointer());!y||y.getAlohaAutoGaRollout()&&A&&C?Qph(l,D,U,y).catch(function(h){!h||h instanceof qA||x0(l,D,U)}):x0(l,D,U)},function(y){!y||y instanceof qA||x0(l,D,U)})}catch(y){Qph(l,
D,U,null).catch(function(A){!A||A instanceof qA||x0(l,D,U)})}};
_.vG("userfeedback.api.startFeedback",_.G_y);var Hnl=/https?:\/\/\S+\.\S+/,YI9=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],OnC=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var o_$=function(l){var D=l.split(""),U=[-263237435,15,D,function(n,y,A){var C=y.length;A.forEach(function(h,b,u){this.push(u[b]=y[(y.indexOf(h)-y.indexOf(this[b])+b+C--)%y.length])},n.split(""))},
function(n,y){n=(n%y.length+y.length)%y.length;y.splice(-n).reverse().forEach(function(A){y.unshift(A)})},
"response",function(){for(var n=64,y=[];++n-y.length-32;){switch(n){case 58:n-=14;case 91:case 92:case 93:continue;case 123:n=47;case 94:case 95:case 96:continue;case 46:n=95}y.push(String.fromCharCode(n))}return y},
null,12,1540023973,65941107,null,D,function(n,y){for(n=(n%y.length+y.length)%y.length;n--;)y.unshift(y.pop())},
695603893,function(n){for(var y=n.length;y;)n.push(n.splice(--y,1)[0])},
"'[;'[(",function(n,y){n.push(y)},
null,function(n,y,A,C,h){return y(A,C,h)},
"continuation",D,function(n,y){if(n.length!=0){y=(y%n.length+n.length)%n.length;var A=n[0];n[0]=n[y];n[y]=A}},
function(){for(var n=64,y=[];++n-y.length-32;){switch(n){case 91:n=44;continue;case 123:n=65;break;case 65:n-=18;continue;case 58:n=96;continue;case 46:n=95}y.push(String.fromCharCode(n))}return y},
'"),/]];'];U[7]=U;U[11]=U;U[18]=U;try{(((0,U[15])(U[21]),U[22])(U[11],U[9]),U[22])(U[new Date("1970-01-01T04:30:12.000+04:30")/1E3],U[1]),((0,U[22])(U[11],U[23]),U[4])(U[10],U[18]),(0,U[20])(U[21],U[14])<<(0,U[17])(U[18],U[1]),(0,U[4])(U[8],U[21]),(0,U[19])((0,U[19])((0,U[17])(U[7],U[9]),U[3],U[20],(0,U[6])(),U[2]),U[3],U[5],(0,U[15])(),U[2])}catch(n){return"aTlOUOubTO4AP____8P_"+l}return D.join("")};_.J7r=new _.y4("runAttestationCommand");var Lmz=new _.y4("verifyCommand");_.vF=new _.y4("accessibilityContext");var qah=new _.y4("accessibilityData");var M5r=new _.y4("profileCardCommand");var Se9=new _.y4("signInEndpoint");var XV9=new _.y4("signOutEndpoint");var Zpm;_.Rny=new _.y4("accountItemSectionRenderer");Zpm=new _.y4("accountItemRenderer");_.eny=new _.y4("saveCommandToSessionStorageAction");var mcy=new _.y4("crossAccountChannelTransferEndpoint");var MXB=new _.y4("getAccountMenuEndpoint");_.R4s=new _.y4("getAccountSwitcherEndpoint");var qOs=new _.y4("getAccountsListEndpoint");var aO7=new _.y4("getAccountsListInnertubeEndpoint");_.t5r=new _.y4("addToToastAction");var XPy=new _.y4("hideEnclosingAction");_.jv=new _.y4("replaceEnclosingAction");var Saz=new _.y4("buttonRefreshAction");var k_y=new _.y4("adsControlFlowOpportunityReceivedCommand");var dcm=new _.y4("openAdAllowlistInstructionCommand");var Km7=new _.y4("videoMastheadAdPrimaryVideoRenderer");var c7y=new _.y4("displayAdRenderer");_.pP_=new _.y4("inFeedAdLayoutRenderer");var xcv=new _.y4("sequenceItemInPlayerAdLayoutRenderer");_.jpy=new _.y4("adSlotRenderer");var Fmk=new _.y4("adAvatarViewModel");var oKr=new _.y4("adBadgeViewModel");var wP7=new _.y4("adButtonViewModel");var r78=new _.y4("adImageViewModel");var N5_=new _.y4("reelsAdCardButtonedViewModel");var znm=new _.y4("reelsPlayerOverlayLayoutViewModel");var fO1=new _.y4("formDataDecoratorCommand");var $cH=new _.y4("updateConversationIdCommand");var NCm=new _.y4("showSchedulingPanelCommand");var sph=new _.y4("backstageCommentsRenderer");var EKg=new _.y4("backstageImageRenderer");var TCy=new _.y4("backstagePostRenderer");var IO7=new _.y4("backstageZeroStateRenderer");var Hpy=new _.y4("postRenderer");var Yah=new _.y4("sharedPostRenderer");var Opr=new _.y4("createBackstagePostEndpoint");var V58=new _.y4("getPostVideoPreviewEndpoint");var in7=new _.y4("updateBackstagePostEndpoint");var lWm=new _.y4("filterChipTransformCommand");var Dfk=new _.y4("insertRichSectionCommand");var vyK=new _.y4("talkToRecsDeselectCommand");var Uf5=new _.y4("talkToRecsNextCommand");var uUs=new _.y4("talkToRecsSelectCommand");var No_=new _.y4("talkToRecsUpdateTextCommand");_.Pk=new _.y4("browseEndpoint");_.nAH=new _.y4("confirmDialogEndpoint");var yVm=new _.y4("expandOnHoverCardRenderer");var AVv=new _.y4("lumiereShelfDetailsRenderer");var Wlm=new _.y4("revealBusinessEmailCommand");var B7v=new _.y4("validateChannelHandleCommand");var CKh=new _.y4("channelCreationFormEndpoint");var hVg=new _.y4("aboutChannelViewModel");var PK1=new _.y4("channelThumbnailWithLinkRenderer");var bn1=new _.y4("channelCreationServiceEndpoint");var gAr=new _.y4("updateChannelPageSettingsEndpoint");var Fd=function(l){this.delegate=l},o6=function(){Fd.apply(this,arguments)};
_.Z(o6,Fd);_.QP.Object.defineProperties(o6.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(l){this.delegate.entityMetadata=l}}});var uXv=function(){o6.apply(this,arguments)};
_.Z(uXv,o6);uXv.prototype.getAssociations=function(){return[]};
uXv.prototype.getTypeName=function(){return"channelHandle"};var eiC=new _.y4("webThumbnailDetailsExtensionData");_.ti=new _.y4("commandContext");var vA_=new _.y4("addVideoLinkAction");var Qdk=new _.y4("banAuthorAction");var GLm=new _.y4("createCommentAction");var JV7=new _.y4("createCommentReplyAction");var Ll1=new _.y4("createPollAction");var qI7=new _.y4("hideIdentityChipAction");var MLv=new _.y4("openUpdateCommentDialogAction");var RVk=new _.y4("pinCommentAction");var Znr=new _.y4("removeCommentAction");var eVh=new _.y4("unpinCommentAction");var wA=new _.y4("updateBackstagePollAction");var mfk=new _.y4("updateCommentVoteAction");var aWy=new _.y4("commentThreadRenderer");var tLH=function(){o6.apply(this,arguments)};
_.Z(tLH,o6);tLH.prototype.getAssociations=function(){return[]};
tLH.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var Xz8=function(){o6.apply(this,arguments)};
_.Z(Xz8,o6);Xz8.prototype.getAssociations=function(){return[]};
Xz8.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.SI5=new _.y4("commentDialogRenderer");var kLg=new _.y4("reloadCommentsCommand");var df1=new _.y4("updateCommentsSettingsEndpoint");var Kly=new _.y4("commentViewModel");var cVy=new _.y4("triStateButtonViewModel");var pz8=new _.y4("voiceReplyContainerViewModel");_.n3=new _.y4("commandExecutorCommand");var eQ=new _.y4("emoji");var xfk=new _.y4("updateCreatorChannelInnertubeCommand");_.jdH=new _.y4("appendContinuationItemsAction");_.FlH=new _.y4("changeEngagementPanelVisibilityAction");_.ko=new _.y4("continuationCommand");var oAm=new _.y4("hideReportedCommentAction");var wzy=new _.y4("listMutationCommand");_.rA=new _.y4("openPopupAction");var rV7=new _.y4("persistSubscriptionsDisplayPreferencesCommand");var IW7;_.zVr=new _.y4("playlistRemoveVideosAction");_.fWz=new _.y4("updatePlaylistAction");_.$fy=new _.y4("addToPlaylistCommand");_.N7k=new _.y4("endPlaylistCommand");_.sdy=new _.y4("recoverPlaylistCommand");_.EAg=new _.y4("refreshPlaylistCommand");_.T7v=new _.y4("refreshFormCommand");IW7=new _.y4("openOnePickAddVideoModalCommand");_.SO9=new _.y4("reloadContinuationItemsCommand");_.Hny=new _.y4("scrollToEngagementPanelCommand");var YI7=new _.y4("selectCountryCommand");var Onm=new _.y4("showReloadUiCommand");var VLz=new _.y4("undoFeedbackAction");var iiH=new _.y4("updateButtonAction");var lek=new _.y4("updateSubscribeButtonAction");var DT1=new _.y4("updateToggleAction");var UT7=new _.y4("webNativeShareCommand");_.W6=new _.y4("webCommandMetadata");_.zd=new _.y4("webHandleServiceEndpointExtension");var q8_=new _.y4("webNavigationEndpointData");var nsv=new _.y4("backgroundAudioPlaybackCommand");var yZ8=new _.y4("copyLinkCommand");var AZ5=new _.y4("playlistVotingRefreshPopupCommand");var WRH=new _.y4("selectChipCommand");var BD_=new _.y4("setCookieCommand");var C3y=new _.y4("setLocalStorageCommand");var hR_=new _.y4("setPrefStorageEntryCommand");var uHz;_.P37=new _.y4("settingsUpdateCheckboxCommand");_.bih=new _.y4("settingsUpdateTextCommand");_.gsk=new _.y4("settingsUpdateOptionsCommand");uHz=new _.y4("settingsUpdateSwitchCommand");_.vs_=new _.y4("settingsUpdateConnectedAppRendererCommand");var Qxz=new _.y4("showCreatorChatbotEngagementPanelCommand");var G27=new _.y4("updateTextInputFormFieldRendererCommand");var JZy=new _.y4("updateToggleButtonStateCommand");var LR1=new _.y4("updateUrlParamCommand");var qCy=new _.y4("webSubmitFormCommand");var Mfr=new _.y4("channelSwitcherPageRenderer"),RRy=new _.y4("updateChannelSwitcherPageAction");_.$X=new _.y4("continuationItemRenderer");_.f5=new _.y4("richItemRenderer");var ZiH=new _.y4("richSectionRenderer");_.eR5=new _.y4("richShelfRenderer");_.mTg=new _.y4("metadataBadgeRenderer");_.ae8=new _.y4("multiPageMenuNotificationSectionRenderer");_.tfr=new _.y4("playlistLoopButtonStateRenderer");var Xyh=new _.y4("claimLegacyYoutubeChannelEndpoint");var SCh=new _.y4("getNotificationMenuEndpoint");var k27=new _.y4("getSearchInVideoCommand");_.dTH=new _.y4("getTranscriptEndpoint");_.AJ=new _.y4("signalServiceEndpoint");var KRg=new _.y4("verifyAgeEndpoint");var zj9=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(zj9,_.Bh);zj9.prototype.getPath=function(){return _.Zo(this,1)};
zj9.prototype.getValue=function(){return _.Zo(this,2)};var cZk=[0,_.Ey,-1];var pym=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(pym,_.Bh);var rEB=_.qg(pym,[0,_.Hm,cZk]);var xTy=new _.y4("dismissalEndpoint");var jxk=new _.y4("elementsCommand");_.aO=new _.y4("innertubeCommand");var FRr=new _.y4("multipleInlinePlaybackCommand");var nj9=new _.y4("loggingDirectives");var osy=new _.y4("acknowledgeChannelTouStrikeCommand");var wy8=function(){o6.apply(this,arguments)};
_.Z(wy8,o6);wy8.prototype.getAssociations=function(){return[]};
wy8.prototype.getTypeName=function(){return"booleanEntity"};var rZ8=function(){o6.apply(this,arguments)};
_.Z(rZ8,o6);rZ8.prototype.getAssociations=function(){return[]};
rZ8.prototype.getTypeName=function(){return"stringEntity"};var rf=new _.y4("entityBatchUpdate");_.zR1=new _.y4("entityUpdateCommand");var fev=function(){o6.apply(this,arguments)};
_.Z(fev,o6);fev.prototype.getAssociations=function(){var l=[];this.delegate.alternateChannel&&l.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&l.push.apply(l,_.zz(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&l.push(this.delegate.oneofChannelEntity);return[].concat(_.zz(new Set(l)))};
fev.prototype.getTypeName=function(){return"fakeChannel"};var $Tv=function(){o6.apply(this,arguments)};
_.Z($Tv,o6);$Tv.prototype.getAssociations=function(){var l=[];this.delegate.entryCollection&&l.push(this.delegate.entryCollection);return[].concat(_.zz(new Set(l)))};
$Tv.prototype.getTypeName=function(){return"fakePlaylist"};
var NDk=function(){o6.apply(this,arguments)};
_.Z(NDk,o6);NDk.prototype.getAssociations=function(){var l=[];this.delegate.parentPlaylist&&l.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var D=_.B(this.delegate.entries),U=D.next();!U.done;U=D.next())l.push.apply(l,_.zz((new sxy(U.value)).getAssociations()));return[].concat(_.zz(new Set(l)))};
NDk.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var sxy=function(){Fd.apply(this,arguments)};
_.Z(sxy,Fd);sxy.prototype.getAssociations=function(){var l=[];this.delegate.video&&l.push(this.delegate.video);return[].concat(_.zz(new Set(l)))};var Es5=function(){o6.apply(this,arguments)};
_.Z(Es5,o6);Es5.prototype.getAssociations=function(){var l=[];this.delegate.descriptionEntity&&l.push(this.delegate.descriptionEntity);this.delegate.creators&&l.push.apply(l,_.zz(this.delegate.creators));this.delegate.theBiggestFan&&l.push(this.delegate.theBiggestFan);return[].concat(_.zz(new Set(l)))};
Es5.prototype.getTypeName=function(){return"fakeVideo"};
var TD7=function(){o6.apply(this,arguments)};
_.Z(TD7,o6);TD7.prototype.getAssociations=function(){return[]};
TD7.prototype.getTypeName=function(){return"fakeVideoDescription"};var Ie7=new _.y4("fantasyRosterViewModel");var Hi7=new _.y4("addFollowUpSurveyCommand");var YC7=new _.y4("getSurveyCommand");var OiH=new _.y4("ratingSurveyOptionRenderer");_.mC=new _.y4("feedbackEndpoint");var Vfy=new _.y4("reportHistoryTableCellRenderer"),i58=new _.y4("reportHistoryTableTextCellRenderer"),lx_=new _.y4("reportHistoryTableReasonCellRenderer");_.D$y=new _.y4("flagEndpoint");_.U$h=new _.y4("flowNextStepCommand");_.n0H=new _.y4("flowPrevStepCommand");var yMk=new _.y4("getFlowCommand");var AMH=new _.y4("submitFormWithValidationFlowCommand");_.W57=new _.y4("updateFlowCommand");var BAh=function(){o6.apply(this,arguments)};
_.Z(BAh,o6);BAh.prototype.getAssociations=function(){return[]};
BAh.prototype.getTypeName=function(){return"flowStateEntity"};var CvH=new _.y4("flowFormState");_.$0=new _.y4("flowStepRenderer");var hEk=new _.y4("gameCardRenderer");var Pvz=new _.y4("accountLinkingStateChangedCommand");var b5m=function(){o6.apply(this,arguments)};
_.Z(b5m,o6);b5m.prototype.getAssociations=function(){return[]};
b5m.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var g08=new _.y4("changeMiniAppPlayStateCommand");var ud5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(ud5,_.Bh);var N$=[1,2,3];var v07=[0,N$,mwy,_.Im,GTk];var Q6k=_.qg(ud5,v07),Gd5=_.Mg(v07);var JM1=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(JM1,_.Bh);var L5k=[0,_.om,_.Ey];var qiH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(qiH,_.Bh);var Mvk=[0,_.Ey,_.om,-1];var si=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(si,_.Bh);var REy=_.Mg([0,1,L5k,_.iW,Mvk]);var Z5g=new _.y4("miniAppScoreChallengeViewModel");var eEr=new _.y4("miniGameCardViewModel");var m$k=new _.y4("teaserCardViewModel");var ax_=function(){o6.apply(this,arguments)};
_.Z(ax_,o6);ax_.prototype.getAssociations=function(){return[]};
ax_.prototype.getTypeName=function(){return"logoEntity"};var tvy=new _.y4("feedbackItemRenderer");var XLk=function(){o6.apply(this,arguments)};
_.Z(XLk,o6);XLk.prototype.getAssociations=function(){return[]};
XLk.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.Si8=new _.y4("playerInterstitialRenderer");var kdh=new _.y4("getKidsBlocklistPickerCommand");_.d$k=new _.y4("updateKidsBlacklistEndpoint");_.kX=new _.y4("likeEndpoint");var K5h,cM7,pL_;K5h=new _.y4("addChatItemAction");cM7=new _.y4("removeChatItemAction");pL_=new _.y4("markChatItemAsDeletedAction");_.x$5=new _.y4("setLiveChatCollapsedStateAction");var j6H=function(){o6.apply(this,arguments)};
_.Z(j6H,o6);j6H.prototype.getAssociations=function(){return[]};
j6H.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var F5y=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(F5y,_.Bh);F5y.prototype.getPayloadCase=function(){return _.QJ(this,o0y)};
var o0y=[3,4];var wLh=[0,_.Hm,[0,[1,2],_.Im,_.Yz,[0,_.Tl,1,_.Tl]]];var rM7=[0,_.Ey,-1];var zEv=[0,[1],_.Im];var Ei=[0,[1,2],_.Im,_.Yz,[0,_.iW]];var Td=[0,_.Ey];var fx8=[0,[0,_.fh,_.zl,[0,_.Tl,_.lW,_.Tl]],1,[0,_.fh]];var $$1=[0,w6];var NA1=[0,w6];var s61=[0,NA1,$$1];var E08=[0,_.Hm,[0,[1,2],_.Im,-1],_.fh];var TA7=[0,[2],1,_.Yz,[0,_.Tl,-1,E08]];var Ix1=[0,[1],_.Yz,[0,_.Tl,_.Ey,_.lW,1,E08]];var H5H=[0,_.zl,-1,Q$1,_.iW];var Yi_=[0,[0,F9,-3],-4];var I6=[0,_.fh,-3,_.Ey,_.fh,_.nb,_.fh,wLh,_.fh,-2];var HL=[0,_.Hm,[0,[1,2],_.Im,-1],_.fh,_.Ey];var O5m=[0,[3],Ei,[0,[2,3,4],kTv,_.Im,-2],_.Yz,[0,_.Ey],_.om];var Vvm=[0,[3,5],_.Ey,_.r6,_.Yz,[0,1,_.om,_.iW],_.iW,_.Yz,[0,_.iW,_.om]];var iMH=[0,2,_.r6,_.Ey,-1];var lSy=[0,ZP_];var D37=[0,[3,4],2,LJz,_.Im,_.Ey];var U3m=[0,_.iW,-2,1,_.Ey];var nM7=[0,_.Ey,-1,_.iW];var yx8=[0,Td,function(){return Y0},
Td,_.Ey],Axh=[0,_.iW,Td,Ei,function(){return Y0},
_.Ey],Y0=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],Td,_.r6,[0,_.fh,1,_.fh,1,_.fh,1,_.iW,-1,Td],[0,1,_.fh,2,_.fh,_.iW,_.fh],1,_.r6,-1,_.Ey,_.r6,2,F9,[0,F9,_.r6],_.Ey,1,fx8,1,Ei,_.nb,1,[0,[0,_.Hm,[0,_.Ey,_.fh,_.iW]]],[0,_.fh,[0,_.om,[0,_.lW]],_.om,1,[0,MW7,-1]],_.Ey,[0,1,_.Ey],76,_.Yz,[0,Ei,HL,fx8,1,[0,_.Hm,HL]],1,_.Yz,[0,Ei,_.Ey,_.fh],
_.Yz,[0,Ei,zEv],_.Yz,[0,Ei,zEv,_.r6],_.Yz,[0,Ei,zEv],_.Yz,[0,Ei,_.Hm,Td,Ei,av5],_.Yz,[0,Ei,Td,_.Ey],_.Yz,[0,Ei,_.fh,I6,-1,_.fh],4,_.Yz,[0,Ei,_.fh,_.r6,I6,_.fh],_.Yz,[0,[4,9],Ei,_.iW,_.r6,_.Im,HL,1,fx8,_.Ey,_.Im,U3m],_.Yz,[0,Ei,Td,Ei,_.iW,_.Ey],_.Yz,[0,_.fh,Ei,I6,_.fh,_.Ey],_.Yz,[0,Ei,Td,Ei,_.iW,_.Ey],1,_.Yz,[0,Ei,_.iW,_.Ey,I6],_.Yz,[0,Ei,_.iW,[0,_.Ey,_.r6],_.Ey,_.r6,_.Ey,_.VJ,-2,3,nM7,_.Hm,nM7,nM7,U3m],_.Yz,[0,Ei,_.iW,Ix1,_.Hm,[0,NA1,TA7],Td,_.Hm,s61,_.Ey,1,_.iW,H5H,Yi_,v85,-1],_.Yz,[0,Ei,[0,_.lW,
-1,Ix1,_.Hm,[0,NA1,TA7,$$1],[0,_.ym],1,_.Tl],Td,_.Ey],_.Yz,[0,Ei,HL,_.Ey,[0,_.zl]],_.Yz,function(){return Axh},
_.Yz,[0,Ei,_.r6,_.Ey,-1,_.fh],_.Yz,[0,[6,7],Ei,_.Hm,iMH,_.iW,HL,1,_.Yz,D37,_.Yz,lSy],_.Yz,[0,_.Hm,iMH,_.iW,_.fh],_.Yz,[0,_.Ey,mZv,-1],_.Yz,[0,Td,_.Hm,s61,_.Ey],_.Yz,[0,Ei,Td,_.Ey],_.Yz,[0,_.VJ,_.Ey],_.Yz,[0,rM7],_.Yz,[0,rM7],_.Yz,[0,HL],_.Yz,[0,Td,HL],_.Yz,function(){return yx8},
_.Yz,[0,Td,_.Ey],_.Yz,[0,Td,_.Ey],1,_.Yz,[0,_.fh,Ei,I6,_.fh,I6],_.Yz,[0,_.ym],1,_.Yz,[0],1,_.Yz,[0,Td,_.iW,Ei,_.iW],_.Yz,[0,[1,2],_.Yz,D37,_.Yz,lSy,_.r6],_.Yz,[0,_.ym,HL,Vvm,_.Ey,_.r6],_.Yz,[0,Vvm,_.Ey,_.r6],_.Yz,[0,H5H,HL,_.fh,Yi_],_.Yz,O5m,_.Yz,[0],_.Yz,[0,_.Ey,-1,_.om],_.Yz,[0,Td,_.Ey],_.Yz,[0,O5m,_.om,_.Ey],_.Yz,[0,Ei,I6,_.fh],_.Yz,[0,Ei,I6,_.fh],_.Yz,[0,H5H,Yi_,HL,_.nb,_.fh,v85,-1],_.Yz,[0,Ei,I6,_.fh]];var Wzv=[0,_.Hm,Y0];var B3H=_.qg(F5y,[0,o0y,1,_.om,_.Yz,[0,[18,22,24],Wzv,3,[0,Wzv],1,_.om,[0,_.Hm,[0,_.r6,F9],_.r6],1,Y0,-1,[0,_.sy,-2,_.nb,_.sy,-1,_.nb,_.sy,wLh,_.sy,-2],g8h,[!0,_.Ey,[0,zEv,2,_.Ey,_.r6,_.fh,2,_.Ey,_.VJ]],[0,[1,2,3],[5,6],_.Yz,[0,_.Tl],_.Yz,[0,_.Tl,-1],_.Yz,[0,_.Tl],1,_.Yz,rM7,_.Yz,[0,_.Ey]],[0,Y0,-1],_.ym,Y0,_.Yz,Y0,[0,Wzv],_.om,Y0,_.Yz,Y0,_.Ey,_.Yz,Y0],_.Yz,Nh7,_.om]);var Cc8=new _.y4("liveChatEndpoint");var hr1=new _.y4("liveChatItemContextMenuEndpoint");var Pcy=new _.y4("liveChatReplayEndpoint");_.bMy=new _.y4("emojiPickerRenderer");var gMH=new _.y4("liveChatAuthorBadgeViewModel");var ur_=new _.y4("deleteLiveChatMessageCommand");var vMk=new _.y4("liveChatActionEndpoint");var QZ8=new _.y4("createLiveChatPollEndpoint");var GAk=new _.y4("manageLiveChatUserEndpoint");var Jxv=new _.y4("moderateLiveChatEndpoint");_.Lzr=new _.y4("sendLiveChatMessageEndpoint");var qQ_=new _.y4("sendLiveChatVoteEndpoint");var Mmg=new _.y4("clearLocationCommand");var Rry=new _.y4("resolveLocationCommand");var ZM_=new _.y4("interactionLoggingCommandMetadata");var er7=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(er7,_.Bh);var m37=function(l,D){return _.qx(l,1,D)};var aSz=[0,_.fh];var tmz=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(tmz,_.Bh);var Xq1=function(l,D){return KB(l,1,er7,D)};tmz.prototype.JSC$12399_serializeBinary=ECG([0,_.Hm,aSz]);var qCl={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 SQz={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"},
kAy={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 l7l={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT"};_.Nnd=new _.y4("logFlowLoggingEventCommand");_.P9=new _.y4("loggingContext");var d3_=new _.y4("audioTrackSelectActionCommand");var Kzg=new _.y4("captionLanguageSelectActionCommand");var cxz=new _.y4("showAudioTrackPickerActionCommand");var pqm=new _.y4("showCaptionLanguageSelectActionCommand");var x3v=new _.y4("dismissDialogEndpoint");var jZ_=new _.y4("dismissPlayerOverlayCommand");var Fzy=new _.y4("hideItemSectionVideosByIdCommand");var oM8=new _.y4("showMiniplayerCommand");var wqH=function(){o6.apply(this,arguments)};
_.Z(wqH,o6);wqH.prototype.getAssociations=function(){return[]};
wqH.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var rx1=function(){o6.apply(this,arguments)};
_.Z(rx1,o6);rx1.prototype.getAssociations=function(){return[]};
rx1.prototype.getTypeName=function(){return"downloadStatusEntity"};var zr8=function(){o6.apply(this,arguments)};
_.Z(zr8,o6);zr8.prototype.getAssociations=function(){return[]};
zr8.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var fS7=function(){o6.apply(this,arguments)};
_.Z(fS7,o6);fS7.prototype.getAssociations=function(){var l=[];this.delegate.downloadsList&&l.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&l.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&l.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&l.push(this.delegate.refresh);return[].concat(_.zz(new Set(l)))};
fS7.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var $3H=function(){o6.apply(this,arguments)};
_.Z($3H,o6);$3H.prototype.getAssociations=function(){var l=[];this.delegate.refresh&&l.push(this.delegate.refresh);if(this.delegate.downloads)for(var D=_.B(this.delegate.downloads),U=D.next();!U.done;U=D.next())l.push.apply(l,_.zz((new N3g(U.value)).getAssociations()));return[].concat(_.zz(new Set(l)))};
$3H.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var N3g=function(){Fd.apply(this,arguments)};
_.Z(N3g,Fd);N3g.prototype.getAssociations=function(){var l=[];this.delegate.video&&l.push(this.delegate.video);this.delegate.playlist&&l.push(this.delegate.playlist);this.delegate.videoItem&&l.push(this.delegate.videoItem);this.delegate.playlistItem&&l.push(this.delegate.playlistItem);return[].concat(_.zz(new Set(l)))};var sZH=function(){o6.apply(this,arguments)};
_.Z(sZH,o6);sZH.prototype.getAssociations=function(){var l=[];this.delegate.localImageEntities&&l.push.apply(l,_.zz(this.delegate.localImageEntities));return[].concat(_.zz(new Set(l)))};
sZH.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var EMz=function(){o6.apply(this,arguments)};
_.Z(EMz,o6);EMz.prototype.getAssociations=function(){var l=[];this.delegate.playbackData&&l.push(this.delegate.playbackData);this.delegate.localImageEntities&&l.push.apply(l,_.zz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&l.push(this.delegate.videoDownloadContextEntity);return[].concat(_.zz(new Set(l)))};
EMz.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var T38=function(){o6.apply(this,arguments)};
_.Z(T38,o6);T38.prototype.getAssociations=function(){return[]};
T38.prototype.getTypeName=function(){return"offlineabilityEntity"};var IS1=function(){o6.apply(this,arguments)};
_.Z(IS1,o6);IS1.prototype.getAssociations=function(){var l=[];this.delegate.fakeChildren&&l.push.apply(l,_.zz(this.delegate.fakeChildren));return[].concat(_.zz(new Set(l)))};
IS1.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var HMm=function(){o6.apply(this,arguments)};
_.Z(HMm,o6);HMm.prototype.getAssociations=function(){var l=[];this.delegate.video&&l.push(this.delegate.video);this.delegate.playbackData&&l.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&l.push(this.delegate.offlineVideoPolicy);return[].concat(_.zz(new Set(l)))};
HMm.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var YQ_=function(){o6.apply(this,arguments)};
_.Z(YQ_,o6);YQ_.prototype.getAssociations=function(){return[]};
YQ_.prototype.getTypeName=function(){return"continuationTokenEntity"};var OM_=function(){o6.apply(this,arguments)};
_.Z(OM_,o6);OM_.prototype.getAssociations=function(){var l=[];this.delegate.channelOwner&&l.push(this.delegate.channelOwner);this.delegate.videos&&l.push.apply(l,_.zz(this.delegate.videos));this.delegate.collaboratorChannels&&l.push.apply(l,_.zz(this.delegate.collaboratorChannels));this.delegate.downloadState&&l.push(this.delegate.downloadState);this.delegate.refresh&&l.push(this.delegate.refresh);return[].concat(_.zz(new Set(l)))};
OM_.prototype.getTypeName=function(){return"mainPlaylistEntity"};var Vmm=function(){o6.apply(this,arguments)};
_.Z(Vmm,o6);Vmm.prototype.getAssociations=function(){var l=[];this.delegate.video&&l.push(this.delegate.video);this.delegate.channelContributor&&l.push(this.delegate.channelContributor);return[].concat(_.zz(new Set(l)))};
Vmm.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var idm=function(){Fd.apply(this,arguments)};
_.Z(idm,Fd);idm.prototype.getAssociations=function(){var l=[];this.delegate.recommendedVideoMetadata&&l.push.apply(l,_.zz((new l2_(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.zz(new Set(l)))};
var l2_=function(){Fd.apply(this,arguments)};
_.Z(l2_,Fd);l2_.prototype.getAssociations=function(){var l=[];this.delegate.localImageEntities&&l.push.apply(l,_.zz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&l.push(this.delegate.videoDownloadContextEntity);return[].concat(_.zz(new Set(l)))};var Dj1=function(){Fd.apply(this,arguments)};
_.Z(Dj1,Fd);Dj1.prototype.getAssociations=function(){var l=[];this.delegate.playbackPosition&&l.push(this.delegate.playbackPosition);return[].concat(_.zz(new Set(l)))};var Uj7=function(){o6.apply(this,arguments)};
_.Z(Uj7,o6);Uj7.prototype.getAssociations=function(){var l=[];this.delegate.owner&&l.push(this.delegate.owner);this.delegate.downloadState&&l.push(this.delegate.downloadState);this.delegate.userState&&l.push.apply(l,_.zz((new Dj1(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&l.push.apply(l,_.zz((new idm(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.zz(new Set(l)))};
Uj7.prototype.getTypeName=function(){return"mainVideoEntity"};var np1=function(){o6.apply(this,arguments)};
_.Z(np1,o6);np1.prototype.getAssociations=function(){var l=[];this.delegate.userChannelDetails&&l.push(this.delegate.userChannelDetails);return[].concat(_.zz(new Set(l)))};
np1.prototype.getTypeName=function(){return"ytMainChannelEntity"};var yC8=function(){o6.apply(this,arguments)};
_.Z(yC8,o6);yC8.prototype.getAssociations=function(){var l=[];this.delegate.channelOwner&&l.push(this.delegate.channelOwner);this.delegate.playbackPosition&&l.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&l.push.apply(l,_.zz(this.delegate.localImageEntities));this.delegate.downloadStatus&&l.push(this.delegate.downloadStatus);return[].concat(_.zz(new Set(l)))};
yC8.prototype.getTypeName=function(){return"ytMainVideoEntity"};var q0N=new _.y4("downloadsPageSmartDownloadsOptInBannerParams");var eZC=new _.y4("downloadsPageUpsellBannerParams");var ACh=function(){o6.apply(this,arguments)};
_.Z(ACh,o6);ACh.prototype.getAssociations=function(){return[]};
ACh.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var Wty=function(){o6.apply(this,arguments)};
_.Z(Wty,o6);Wty.prototype.getAssociations=function(){return[]};
Wty.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var Bvm=function(){o6.apply(this,arguments)};
_.Z(Bvm,o6);Bvm.prototype.getAssociations=function(){return[]};
Bvm.prototype.getTypeName=function(){return"macroMarkerEntity"};var CNH=function(){o6.apply(this,arguments)};
_.Z(CNH,o6);CNH.prototype.getAssociations=function(){return[]};
CNH.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var h1H=function(){o6.apply(this,arguments)};
_.Z(h1H,o6);h1H.prototype.getAssociations=function(){return[]};
h1H.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var PNh=function(){o6.apply(this,arguments)};
_.Z(PNh,o6);PNh.prototype.getAssociations=function(){return[]};
PNh.prototype.getTypeName=function(){return"playerStateEntity"};var bd_=function(){o6.apply(this,arguments)};
_.Z(bd_,o6);bd_.prototype.getAssociations=function(){return[]};
bd_.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var gp7=function(){o6.apply(this,arguments)};
_.Z(gp7,o6);gp7.prototype.getAssociations=function(){return[]};
gp7.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var ucg=function(){o6.apply(this,arguments)};
_.Z(ucg,o6);ucg.prototype.getAssociations=function(){return[]};
ucg.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.Oi=new _.y4("dislikeButtonViewModel");_.Vw=new _.y4("likeButtonViewModel");var vp_=new _.y4("videoSummaryContentViewModel");var Qf7=new _.y4("videoSummaryParagraphViewModel");var Ge1=new _.y4("changeTimelyActionVisibilityCommand");var JC8=new _.y4("hideEngagementPanelEndpoint");var Lt7=new _.y4("refreshPanelEndpoint");var qpg=new _.y4("scrollToSectionEndpoint");var Mpg=new _.y4("seekToVideoTimestampCommand");_.ea=new _.y4("showEngagementPanelEndpoint");var R15=new _.y4("showTransientPlayerScrimOverlayCommand");var Zdy=new _.y4("toggleEngagementPanelCommand");_.e1g=new _.y4("createBroadcastCommand");var mjm=new _.y4("metadataUpdateCommand");var a21=function(){o6.apply(this,arguments)};
_.Z(a21,o6);a21.prototype.getAssociations=function(){return[]};
a21.prototype.getTypeName=function(){return"featuredProductsEntity"};var tpv=function(){o6.apply(this,arguments)};
_.Z(tpv,o6);tpv.prototype.getAssociations=function(){return[]};
tpv.prototype.getTypeName=function(){return"pinnedProductEntity"};var XNy=function(){o6.apply(this,arguments)};
_.Z(XNy,o6);XNy.prototype.getAssociations=function(){return[]};
XNy.prototype.getTypeName=function(){return"trendingOfferEntity"};_.Sp_=new _.y4("merchandiseShelfRenderer");var keH=new _.y4("shoppingContentLineItemViewModel");var djy=new _.y4("gridMovieRenderer");_.KtH=new _.y4("movieRenderer");var cCk=function(){o6.apply(this,arguments)};
_.Z(cCk,o6);cCk.prototype.getAssociations=function(){return[]};
cCk.prototype.getTypeName=function(){return"compositeSourceEntity"};var pNm=function(){o6.apply(this,arguments)};
_.Z(pNm,o6);pNm.prototype.getAssociations=function(){var l=[];this.delegate.compositeSourceKeys&&l.push.apply(l,_.zz(this.delegate.compositeSourceKeys));return[].concat(_.zz(new Set(l)))};
pNm.prototype.getTypeName=function(){return"multiviewStagingEntity"};var xj_=function(){o6.apply(this,arguments)};
_.Z(xj_,o6);xj_.prototype.getAssociations=function(){var l=[];this.delegate.trackDownloadMetadatas&&l.push.apply(l,_.zz(this.delegate.trackDownloadMetadatas));return[].concat(_.zz(new Set(l)))};
xj_.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var jf7=function(){o6.apply(this,arguments)};
_.Z(jf7,o6);
jf7.prototype.getAssociations=function(){var l=[];this.delegate.downloadedTracks&&l.push.apply(l,_.zz(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&l.push.apply(l,_.zz(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&l.push.apply(l,_.zz(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&l.push.apply(l,_.zz(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&l.push.apply(l,_.zz(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
l.push.apply(l,_.zz(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&l.push.apply(l,_.zz(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&l.push.apply(l,_.zz(this.delegate.metadataOnlyTracks));return[].concat(_.zz(new Set(l)))};
jf7.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var Ft8=function(){o6.apply(this,arguments)};
_.Z(Ft8,o6);Ft8.prototype.getAssociations=function(){var l=[];this.delegate.trackDownloadMetadatas&&l.push.apply(l,_.zz(this.delegate.trackDownloadMetadatas));return[].concat(_.zz(new Set(l)))};
Ft8.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var oph=function(){o6.apply(this,arguments)};
_.Z(oph,o6);oph.prototype.getAssociations=function(){var l=[];this.delegate.playbackData&&l.push(this.delegate.playbackData);this.delegate.localImageEntities&&l.push.apply(l,_.zz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&l.push(this.delegate.videoDownloadContextEntity);return[].concat(_.zz(new Set(l)))};
oph.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var wN1=function(){o6.apply(this,arguments)};
_.Z(wN1,o6);
wN1.prototype.getAssociations=function(){var l=[];this.delegate.musicLibraryStatusEntity&&l.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&l.push.apply(l,_.zz(this.delegate.primaryArtists));this.delegate.details&&l.push(this.delegate.details);this.delegate.userDetails&&l.push(this.delegate.userDetails);this.delegate.tracks&&l.push.apply(l,_.zz(this.delegate.tracks));this.delegate.share&&l.push(this.delegate.share);this.delegate.downloadMetadata&&l.push(this.delegate.downloadMetadata);this.delegate.refresh&&
l.push(this.delegate.refresh);return[].concat(_.zz(new Set(l)))};
wN1.prototype.getTypeName=function(){return"musicAlbumRelease"};
var rCk=function(){o6.apply(this,arguments)};
_.Z(rCk,o6);rCk.prototype.getAssociations=function(){var l=[];this.delegate.albumRelease&&l.push(this.delegate.albumRelease);this.delegate.tracks&&l.push.apply(l,_.zz(this.delegate.tracks));return[].concat(_.zz(new Set(l)))};
rCk.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var z1m=function(){o6.apply(this,arguments)};
_.Z(z1m,o6);z1m.prototype.getAssociations=function(){var l=[];this.delegate.albumRelease&&l.push(this.delegate.albumRelease);return[].concat(_.zz(new Set(l)))};
z1m.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var f2_=function(){o6.apply(this,arguments)};
_.Z(f2_,o6);f2_.prototype.getAssociations=function(){var l=[];this.delegate.details&&l.push(this.delegate.details);this.delegate.userDetails&&l.push(this.delegate.userDetails);return[].concat(_.zz(new Set(l)))};
f2_.prototype.getTypeName=function(){return"musicArtist"};
var $j5=function(){o6.apply(this,arguments)};
_.Z($j5,o6);$j5.prototype.getAssociations=function(){var l=[];this.delegate.parentArtist&&l.push(this.delegate.parentArtist);return[].concat(_.zz(new Set(l)))};
$j5.prototype.getTypeName=function(){return"musicArtistDetail"};
var Nv7=function(){o6.apply(this,arguments)};
_.Z(Nv7,o6);Nv7.prototype.getAssociations=function(){var l=[];this.delegate.parentArtist&&l.push(this.delegate.parentArtist);return[].concat(_.zz(new Set(l)))};
Nv7.prototype.getTypeName=function(){return"musicArtistUserDetail"};var sf1=function(){o6.apply(this,arguments)};
_.Z(sf1,o6);sf1.prototype.getAssociations=function(){return[]};
sf1.prototype.getTypeName=function(){return"musicLibraryEdit"};var Epz=function(){o6.apply(this,arguments)};
_.Z(Epz,o6);Epz.prototype.getAssociations=function(){return[]};
Epz.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var TvH=function(){o6.apply(this,arguments)};
_.Z(TvH,o6);
TvH.prototype.getAssociations=function(){var l=[];this.delegate.tracks&&l.push.apply(l,_.zz(this.delegate.tracks));this.delegate.refresh&&l.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&l.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&l.push(this.delegate.details);this.delegate.downloadMetadata&&l.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&l.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&l.push(this.delegate.userDetails);this.delegate.entryCollection&&
l.push(this.delegate.entryCollection);this.delegate.share&&l.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&l.push.apply(l,_.zz((new I25(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.zz(new Set(l)))};
TvH.prototype.getTypeName=function(){return"musicPlaylist"};
var I25=function(){Fd.apply(this,arguments)};
_.Z(I25,Fd);I25.prototype.getAssociations=function(){var l=[];this.delegate.creatorEntity&&l.push(this.delegate.creatorEntity);return[].concat(_.zz(new Set(l)))};var HdH=function(){o6.apply(this,arguments)};
_.Z(HdH,o6);HdH.prototype.getAssociations=function(){return[]};
HdH.prototype.getTypeName=function(){return"musicShare"};var Yp7=function(){o6.apply(this,arguments)};
_.Z(Yp7,o6);
Yp7.prototype.getAssociations=function(){var l=[];this.delegate.musicLibraryStatusEntity&&l.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&l.push.apply(l,_.zz(this.delegate.artists));this.delegate.audioModeVersion&&l.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&l.push(this.delegate.videoModeVersion);this.delegate.userDetails&&l.push(this.delegate.userDetails);this.delegate.details&&l.push(this.delegate.details);this.delegate.albumRelease&&l.push(this.delegate.albumRelease);this.delegate.share&&
l.push(this.delegate.share);this.delegate.libraryEdit&&l.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&l.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&l.push(this.delegate.playbackPosition);this.delegate.lyrics&&l.push(this.delegate.lyrics);return[].concat(_.zz(new Set(l)))};
Yp7.prototype.getTypeName=function(){return"musicTrack"};
var Od7=function(){o6.apply(this,arguments)};
_.Z(Od7,o6);Od7.prototype.getAssociations=function(){var l=[];this.delegate.parentTrack&&l.push(this.delegate.parentTrack);return[].concat(_.zz(new Set(l)))};
Od7.prototype.getTypeName=function(){return"musicTrackDetail"};
var Vpg=function(){o6.apply(this,arguments)};
_.Z(Vpg,o6);Vpg.prototype.getAssociations=function(){var l=[];this.delegate.parentTrack&&l.push(this.delegate.parentTrack);return[].concat(_.zz(new Set(l)))};
Vpg.prototype.getTypeName=function(){return"musicTrackUserDetail"};var rk=new _.y4("musicResponsiveListItemRenderer");var KI9=new _.y4("addToPlaylistEndpoint");var i$k=new _.y4("captionPickerEndpoint");var l8m=new _.y4("suggestStats");var DOr=new _.y4("backstageImageUploadEndpoint");var UOy=new _.y4("createBackstagePostDialogEndpoint");_.nky=new _.y4("createCommentReplyDialogEndpoint");_.y9m=new _.y4("updateCommentDialogEndpoint");_.A9k=new _.y4("updateCommentReplyDialogEndpoint");var WPg=new _.y4("menuEndpoint");var GHC=new _.y4("modalEndpoint");var B9v=new _.y4("playlistEditorEndpoint");var Cah=new _.y4("copyTextEndpoint");var hZy,PaH;hZy=new _.y4("shareEndpoint");PaH=new _.y4("shareEntityEndpoint");_.b$g=new _.y4("shareEntityServiceEndpoint");_.ea3=new _.y4("userFeedbackEndpoint");_.za=new _.y4("watchEndpoint");var Ag_=new _.y4("watchPlaylistEndpoint");var gkz=new _.y4("addUpcomingEventReminderEndpoint");_.ic=new _.y4("getCommentsFromInboxCommand");var uuv=new _.y4("notificationOptOutEndpoint");var vk7=new _.y4("recordNotificationInteractionsEndpoint");var Q4y=new _.y4("removeUpcomingEventReminderEndpoint");_.f0=new _.y4("getDownloadActionCommand");_.G97=new _.y4("offlineOrchestrationActionCommand");var J9v=function(){o6.apply(this,arguments)};
_.Z(J9v,o6);J9v.prototype.getAssociations=function(){return[]};
J9v.prototype.getTypeName=function(){return"captionTrack"};var LP5=function(){o6.apply(this,arguments)};
_.Z(LP5,o6);LP5.prototype.getAssociations=function(){return[]};
LP5.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var q0v=function(){o6.apply(this,arguments)};
_.Z(q0v,o6);q0v.prototype.getAssociations=function(){return[]};
q0v.prototype.getTypeName=function(){return"offlineVideoPolicy"};var MyH=function(){o6.apply(this,arguments)};
_.Z(MyH,o6);MyH.prototype.getAssociations=function(){return[]};
MyH.prototype.getTypeName=function(){return"offlineVideoStreams"};var RZ8=function(){o6.apply(this,arguments)};
_.Z(RZ8,o6);RZ8.prototype.getAssociations=function(){var l=[];this.delegate.transfer&&l.push(this.delegate.transfer);this.delegate.adsPlaybackData&&l.push.apply(l,_.zz(this.delegate.adsPlaybackData));this.delegate.drmLicense&&l.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&l.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&l.push(this.delegate.videoDownloadContextEntity);return[].concat(_.zz(new Set(l)))};
RZ8.prototype.getTypeName=function(){return"playbackData"};var Z$y=function(){o6.apply(this,arguments)};
_.Z(Z$y,o6);Z$y.prototype.getAssociations=function(){return[]};
Z$y.prototype.getTypeName=function(){return"refresh"};var eZm=function(){o6.apply(this,arguments)};
_.Z(eZm,o6);eZm.prototype.getAssociations=function(){var l=[];this.delegate.offlineVideoStreams&&l.push.apply(l,_.zz(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&l.push.apply(l,_.zz(this.delegate.captionTrack));return[].concat(_.zz(new Set(l)))};
eZm.prototype.getTypeName=function(){return"transfer"};var mOm=function(){o6.apply(this,arguments)};
_.Z(mOm,o6);mOm.prototype.getAssociations=function(){return[]};
mOm.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var a81=new _.y4("showMoreDrawerCommand");var ty1=new _.y4("updateEngagementPanelContentCommand");var XOv=new _.y4("getPdgBuyFlowCommand");var S07=new _.y4("liveChatPurchaseMessageEndpoint");var k9y=new _.y4("openSuperStickerBuyFlowCommand");var dO_=new _.y4("updatePdgFeatureEnablementCommand");var KP7=function(){o6.apply(this,arguments)};
_.Z(KP7,o6);KP7.prototype.getAssociations=function(){return[]};
KP7.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var c9z=function(){o6.apply(this,arguments)};
_.Z(c9z,o6);c9z.prototype.getAssociations=function(){return[]};
c9z.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.pOr=new _.y4("pdgCommentChipRenderer");_.xOy=new _.y4("permissionRoleBottomBarRenderer");_.j45=new _.y4("updatePermissionRoleCommand");var FP5=new _.y4("prefetchWatchCommand");var ok1=new _.y4("updatePlayerErrorMessageCommand");var Zo$=new _.y4("toggleCaptionsVisibilityCommand");var wO5=new _.y4("playerDisclosureViewModel");_.r9k=new _.y4("quickActionsViewModel");var zZ_=new _.y4("playerResponse");var f8g=new _.y4("playlistRenderer");_.$O5=new _.y4("playlistVideoListRenderer");_.lc=new _.y4("playlistEditEndpoint");var N9g=new _.y4("createImagePollCommand");var s4m=new _.y4("createQuizCommand");var Ekm=new _.y4("quizRenderer");var T97=new _.y4("uploadedVideoRenderer");var I8_=new _.y4("decorateMessageEndpoint");var H$8=new _.y4("lpOfferCardOptionViewModel");var Y0h=new _.y4("sfvAudioItemPlaybackCommand");var O$r=function(){o6.apply(this,arguments)};
_.Z(O$r,o6);O$r.prototype.getAssociations=function(){return[]};
O$r.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.DS=new _.y4("reelNonVideoContentEndpoint");_.vk=new _.y4("reelWatchEndpoint");_.UQ=new _.y4("reelItemRenderer");var Vyh=new _.y4("reelMetapanelViewModel");_.nM=new _.y4("reelNonVideoContentRenderer");_.iFh=new _.y4("reelPlayerOverlayRenderer");var lu7=new _.y4("shortsLockupViewModel");var D25=new _.y4("sponsorButtonViewModel");var U2r=new _.y4("reelItemWatchResponse");var nW1=new _.y4("textBadgeRenderer");_.yn=new _.y4("buttonRenderer");_.Ax=new _.y4("toggleButtonRenderer");var j0G=new _.y4("switchButtonViewModel");_.yKg=new _.y4("confirmDialogRenderer");var AKy;AKy=new _.y4("menuRenderer");_.W4h=new _.y4("menuFlexibleItemRenderer");var BS7=new _.y4("pollRenderer");_.Ct_=new _.y4("backgroundPromoRenderer");var Ptk;_.hcv=new _.y4("chipCloudRenderer");Ptk=new _.y4("chipCloudChipRenderer");var bF_=new _.y4("dropdownRenderer");var gWm=new _.y4("gridVideoRenderer");_.uL1=new _.y4("itemSectionRenderer");_.vW7=new _.y4("messageRenderer");var Qoz=new _.y4("sortFilterHeaderRenderer");_.Wq=new _.y4("videoRenderer");var GWv=new _.y4("resolveUrlCommandMetadata");var JK_=function(){o6.apply(this,arguments)};
_.Z(JK_,o6);JK_.prototype.getAssociations=function(){return[]};
JK_.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.L45=new _.y4("getAnswerCommand");_.bV=new _.y4("searchEndpoint");var qAm=new _.y4("genAiRichTextViewModel");var kUd=new _.y4("overviewAnswerViewModel");var MP7=new _.y4("videoOverviewViewModel");var Rcy=new _.y4("addToPlaylistServiceEndpoint");var ZFm=new _.y4("clearSearchHistoryEndpoint");var ec_=new _.y4("clearWatchHistoryEndpoint");var m2r=new _.y4("webSerializedServiceEndpointExtension");_.auh=new _.y4("createCommentEndpoint");var tPh=new _.y4("createCommentReplyEndpoint");var XRk=new _.y4("performCommentActionEndpoint");var SA7=new _.y4("updateCommentEndpoint");var kW7=new _.y4("updateCommentReplyEndpoint");_.Bq=new _.y4("createPlaylistServiceEndpoint");var d28=new _.y4("deletePlaylistEndpoint");var K4y=new _.y4("deleteVideoEndpoint");var dXK=new _.y4("getReportFormEndpoint");var cKz=new _.y4("modifyChannelNotificationPreferenceEndpoint");var fCc;_.hi=new _.y4("offlinePlaylistEndpoint");fCc={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 $7s;_.Cq=new _.y4("offlineVideoEndpoint");$7s={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 pRm=new _.y4("pingingEndpoint");_.x27=new _.y4("selectActiveIdentityEndpoint");var joy=new _.y4("setSettingEndpoint");var QUo=new _.y4("undoFeedbackEndpoint");var F4v=new _.y4("unsubscribeEndpoint");_.oW1=new _.y4("updatedMetadataEndpoint");var wRz=function(){o6.apply(this,arguments)};
_.Z(wRz,o6);wRz.prototype.getAssociations=function(){return[]};
wRz.prototype.getTypeName=function(){return"settingEntity"};_.rKy=new _.y4("updateLocalAppSettingCommand");var zcz=new _.y4("saveImageToDeviceEndpoint");var fu1=new _.y4("shareImageCommand");var $2y=new _.y4("sharingProviderDataCommand");var NSz=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(NSz,_.Bh);var sov=[0,_.Ey,-1];NSz.prototype.JSC$12606_serializeBinary=ECG(sov);var EW5=_.Mg(sov);var TS7=new _.y4("userMentionSuggestionRenderer");var Iug=new _.y4("liveChatTunnelCommand");var HF5=new _.y4("showSponsorshipsGiftOfferDialogCommand");var YA7=new _.y4("sponsorshipsScrollableShelfViewModel");var OFg=new _.y4("updateUpcomingEventReminderButtonStateCommand");var VPh=new _.y4("upcomingEventReminderButtonStateRenderer");var iuv=new _.y4("subscribeEndpoint");var lZy=new _.y4("registerTasksCommand");var Dnz=new _.y4("hideSheetCommand");var Un8=new _.y4("hideSnackbarCommand");var nOz=new _.y4("showDialogCommand");_.Qs=new _.y4("showSheetCommand");var yY7=new _.y4("showSnackbarCommand");var AYH=function(){o6.apply(this,arguments)};
_.Z(AYH,o6);AYH.prototype.getAssociations=function(){return[]};
AYH.prototype.getTypeName=function(){return"chipEntity"};var Wu5=function(){o6.apply(this,arguments)};
_.Z(Wu5,o6);Wu5.prototype.getAssociations=function(){return[]};
Wu5.prototype.getTypeName=function(){return"dismissState"};_.X7=new _.y4("avatarViewModel");var BZ8=new _.y4("badgeViewModel");_.CM=new _.y4("buttonViewModel");_.hx=new _.y4("chipViewModel");var h79=new _.y4("collectionThumbnailViewModel");var C5y=new _.y4("contentPreviewImageViewModel");var heg=new _.y4("decoratedAvatarViewModel");_.Ueg=new _.y4("engagementBarViewModel");_.P5H=new _.y4("imageBannerViewModel");var bu_=new _.y4("lockupContentMetadataRowExtension");_.gOg=new _.y4("lockupMetadataViewModel");_.uYH=new _.y4("lockupViewModel");var vO1=new _.y4("avatarStackViewModel");_.QH8=new _.y4("contentMetadataViewModel");var Gwh=function(){o6.apply(this,arguments)};
_.Z(Gwh,o6);Gwh.prototype.getAssociations=function(){return[]};
Gwh.prototype.getTypeName=function(){return"pageHeaderEntity"};_.JYv=new _.y4("pageHeaderViewModel");var R27=new _.y4("snackbarViewModel");var Z_g=new _.y4("thumbnailHoverOverlayToggleActionsViewModel");_.Pq=new _.y4("toggleButtonViewModel");var e2H=function(){o6.apply(this,arguments)};
_.Z(e2H,o6);e2H.prototype.getAssociations=function(){return[]};
e2H.prototype.getTypeName=function(){return"votingEntity"};_.nQc=new _.y4("votingViewModel");var mP1=new _.y4("sectionHeaderViewModel");var aq1=new _.y4("notifyDropdownOptionSelectedCommand");var hBB=new _.y4("listViewModel");_.Gy=new _.y4("listItemViewModel");var C1o=new _.y4("toggleableListItemViewModel");var twz=new _.y4("dialogHeaderViewModel");var XZH=function(){o6.apply(this,arguments)};
_.Z(XZH,o6);XZH.prototype.getAssociations=function(){return[]};
XZH.prototype.getTypeName=function(){return"dataFreshnessEntity"};var LY9=new _.y4("suspenseViewModel");var Shh=new _.y4("tooltipViewModel");var kOr=function(){o6.apply(this,arguments)};
_.Z(kOr,o6);kOr.prototype.getAssociations=function(){return[]};
kOr.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var dPH=function(){o6.apply(this,arguments)};
_.Z(dPH,o6);dPH.prototype.getAssociations=function(){return[]};
dPH.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var K$_=function(){o6.apply(this,arguments)};
_.Z(K$_,o6);K$_.prototype.getAssociations=function(){return[]};
K$_.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.cQ8=new _.y4("transcriptSubmitCaptionCorrectionCommand");var pZ7=function(){o6.apply(this,arguments)};
_.Z(pZ7,o6);pZ7.prototype.getAssociations=function(){return[]};
pZ7.prototype.getTypeName=function(){return"buttonEntity"};var yt$=new _.y4("unpluggedStringRunImage");var xP1=new _.y4("tabViewModel");var jY7=new _.y4("tabbedViewModel");var F$H=function(){o6.apply(this,arguments)};
_.Z(F$H,o6);F$H.prototype.getAssociations=function(){return[]};
F$H.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.oam=new _.y4("updateDescriptionAction");var wZg=new _.y4("updateToggleButtonTextAction");var rQh=new _.y4("showFullscreenPlayerControlsCommand");var z2z=new _.y4("updateVideoMetadataCommand");_.fq7=new _.y4("autoplaySwitchButtonRenderer");var Xw;_.$Py=new _.y4("multiMarkersPlayerBarRenderer");Xw=new _.y4("chapterRenderer");var Ng7=new _.y4("heatMarkerRenderer");var tC$=new _.y4("heatmapRenderer");var sYh=new _.y4("smartSkipPlayerScrimOverlayRenderer");var Eam=new _.y4("timedMarkerDecorationRenderer");var $u$=new _.y4("postWebToNativeMessageCommand");var az=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(az,_.Bh);az.prototype.getMethodName=function(){return _.Zo(this,1)};var Tgy=[0,_.Ey,-2];az.prototype.JSC$12628_serializeBinary=ECG(Tgy);var Iq_=_.qg(az,Tgy);var H_h=new _.y4("whitelistEditEndpoint");var Yhr=new _.y4("clearUrlParamCommand");var O_y=new _.y4("commerceActionCommand");_.Vwz=new _.y4("getPaymentInstrumentsParamsCommand");var iKh=new _.y4("getPaymentsClientTokenCommand");var lDH=new _.y4("googlePaymentBillingCommand");var DYy=new _.y4("googlePaymentPurchaseManagerCommand");_.UY8=new _.y4("logGtmCommand");var ndz=new _.y4("updateCardItemOnClickCommand");_.yg7=new _.y4("ypcPauseSubscriptionCommand");_.Agg=new _.y4("ypcResumeSubscriptionCommand");var WK7=function(){o6.apply(this,arguments)};
_.Z(WK7,o6);WK7.prototype.getAssociations=function(){return[]};
WK7.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var BRr=function(){o6.apply(this,arguments)};
_.Z(BRr,o6);BRr.prototype.getAssociations=function(){return[]};
BRr.prototype.getTypeName=function(){return"commerceCartListEntity"};var CX8=function(){o6.apply(this,arguments)};
_.Z(CX8,o6);CX8.prototype.getAssociations=function(){return[]};
CX8.prototype.getTypeName=function(){return"iconBadgeEntity"};var h5_=function(){o6.apply(this,arguments)};
_.Z(h5_,o6);h5_.prototype.getAssociations=function(){return[]};
h5_.prototype.getTypeName=function(){return"pdpStateEntity"};var PX7=function(){o6.apply(this,arguments)};
_.Z(PX7,o6);PX7.prototype.getAssociations=function(){return[]};
PX7.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var JGG=new _.y4("ypcOffersEndpoint");var bK5=new _.y4("cardItemRenderer"),gdm=new _.y4("cardItemTextRenderer");var uQ8=new _.y4("commerceCartItemQuantityPickerRenderer");var vdv=new _.y4("linkCardRenderer");var j9_=new _.y4("quantityIncrementerButtonViewModel");var Q5y=new _.y4("quantityIncrementerViewModel");var Gkr=new _.y4("themedImageViewModel");_.Jg7=new _.y4("ypcCancelRecurrenceEndpoint");var LKh=new _.y4("ypcCompleteTransactionEndpoint");_.qRy=new _.y4("ypcGetCartEndpoint");_.rN=new _.y4("ypcGetOffersEndpoint");_.bc=new _.y4("ypcHandleTransactionEndpoint");var MSz=new _.y4("ypcLogWalletAnalyticDataEndpoint");_.R5_=new _.y4("ypcRedeemCodeEndpoint");var ZK5=new _.y4("ypcUpdateFopEndpoint");JM(Gd(1),vL(4));yky((new MessageChannel).port2);var e5g=function(){this.register=new Map},RRl=function(l,D,U){l=l+"_"+D;
g3.register.has(l)?U=g3.register.get(l):(U=U(),g3.register.set(l,U));return U},mY7=function(l){l=_.B(l.register.values());
for(var D=l.next();!D.done;D=l.next())_.AS(D.value,"ABORTED")};
e5g.prototype.clear=function(){mY7(this);this.register.clear()};
var g3=new e5g;var DT9=Date.now().toString();var yZ$=nsN();var gsB={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 aDh,mQ;aDh=1;mQ=function(l){this.veData=l};
_.v9=function(l){return new mQ({trackingParams:l})};
_.UE=function(l,D,U,n,y,A){var C=aDh++;return new mQ({veType:l,veCounter:C,elementIndex:U,dataElement:D,youtubeData:n,jspbYoutubeData:y,loggingDirectives:A})};
_.W=mQ.prototype;
_.W.getAsJson=function(){var l={};this.veData.trackingParams!==void 0?l.trackingParams=this.veData.trackingParams:(l.veType=this.veData.veType,this.veData.veCounter!==void 0&&(l.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(l.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(l.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(l.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(l.isCounterfactual=!0);
return l};
_.W.getAsJspb=function(){var l=new Mzy;this.veData.trackingParams!==void 0?l.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.X9(l,2,this.veData.veType),this.veData.veCounter!==void 0&&_.X9(l,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.X9(l,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.qx(l,5,!0));if(this.veData.dataElement!==void 0){var D=this.veData.dataElement.getAsJspb();_.al(l,7,D)}this.veData.youtubeData!==void 0&&_.al(l,8,this.veData.jspbYoutubeData);
return l};
_.W.toString=function(){return JSON.stringify(this.getAsJson())};
_.W.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.W.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.vG("yt_logging_screen.getRootVeType",hRg);_.vG("yt_logging_screen.getCurrentCsn",_.t6);_.vG("yt_logging_screen.getCttAuthInfo",XG);_.vG("yt_logging_screen.setCurrentScreen",_.SG);var tS1=function(){this.events=new Map},Xwh=function(l){var D=[];
l=_.B(l.events.values());for(var U=l.next();!U.done;U=l.next())D.push(U.value);return D};
tS1.prototype.clear=function(){this.events.clear()};var kk7=function(){this.logTransport=new SRm;this.loggedEventRegister=new tS1;this.unloggedEventRegister=new tS1;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12665_flushTimer=new _.RA(this.flushInterval);this.JSC$12665_flushTimer.listen("tick",this.flush,!1,this)};
kk7.prototype.flush=function(){if(this.eventsCount){var l={loggedEvents:Xwh(this.loggedEventRegister),unloggedEvents:Xwh(this.unloggedEventRegister)};if(_.q("export_player_version_to_ytconfig")){var D;(D=_.H3("PLAYER_CLIENT_VERSION"))?(D=D.split("-")[0].replace(/\./g,""),D=isNaN(Number(D))?"0":D):D="";var U=_.H3("PLAYER_CLIENT_VERSION");if(U){U=U.split("-");var n="";U.length>1&&(n=U[U.length-1]);U=leB(n.startsWith("canary_experiment")?"canary":n.startsWith("canary_control")?"control":"none")}else U=
"CLIENT_CANARY_STATE_UNKNOWN";l.dimensions={playerClientVersion:D,playerCanaryState:U}}this.logTransport.flush(l);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12665_flushTimer.enabled&&this.JSC$12665_flushTimer.stop()}};
var dYz=function(l){uc==null&&(uc=new kk7);var D=uc;var U=D.loggedEventRegister;l.dimensions=l.dimensions||{};l.dimensions.csn=_.t6()||"";var n=QxK(l.dimensions).join(";");if(l.records!=null)if(U.events.has(n)){var y;(y=U.events.get(n).records)==null||y.push.apply(y,_.zz(l.records))}else U.events.set(n,l);D.JSC$12665_flushTimer.enabled||D.JSC$12665_flushTimer.start();D.eventsCount++;D.eventsCount>=100&&D.flush()};var SRm=function(){};
SRm.prototype.flush=function(l,D){_.q("enable_client_sli_logging")&&_.Na("sliEventBatch",l,{sendIsolatedPayload:!!D})};var uc;var cg8;cg8=function(l){var D=KKm;l=l===void 0?{}:l;D=D.name;var U=Mfs("SUCCESS");dYz({dimensions:l,records:[{name:D,state:"SLI_STATE_END",status:U}]})};
_.ZiG=function(l,D,U,n){this.name=l;this.sliId=D;this.timeoutMs=U;this.statusOnTimeout=n;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.ZiG.prototype.getId=function(){return this.sliId};
_.yI=function(l,D){D=D===void 0?{}:D;l.ongoing||(l.ongoing=!0,l.dimensions=D,l.logSliId=NU3(),dYz({dimensions:l.dimensions,records:[{name:l.name,state:"SLI_STATE_START",sliId:l.logSliId}]}),l.timeoutMs>0&&(l.timeoutHandle=setTimeout(function(){_.AS(l,l.statusOnTimeout)},l.timeoutMs)))};
_.AS=function(l,D){l.ongoing&&(l.timeoutMs>0&&clearTimeout(l.timeoutHandle),l.ongoing=!1,D={dimensions:l.dimensions,records:[{name:l.name,status:Mfs(D),state:"SLI_STATE_END",sliId:l.logSliId}]},g3.register.delete(l.name+"_"+l.sliId),dYz(D))};var KKm=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var pwg=function(){o6.apply(this,arguments)};
_.Z(pwg,o6);pwg.prototype.getAssociations=function(){return[]};
pwg.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var zS9=new _.y4("highlightTextDecoratorColorMapExtension");var w4l=new _.y4("styleRunColorMapExtension");var k2c=_.wL(["data-"]),cZB={};var xTl={};var vq=function(l){this.wrappedPromise_=l===void 0?null:l;this.state_=0;this.JSC$12696_value_=null};
vq.prototype.then=function(l,D,U){return this.wrappedPromise_?this.wrappedPromise_.then(l,D,U):this.state_===1&&l?(l=l.call(U,this.JSC$12696_value_))&&typeof l.then==="function"?l:_.Qn(l):this.state_===2&&D?(l=D.call(U,this.JSC$12696_value_))&&typeof l.then==="function"?l:_.xYv(l):this};
vq.prototype.getValue=function(){return this.JSC$12696_value_};
vq.prototype.isRejected=function(){return this.state_==2};
Jfv(vq);_.xYv=function(l){var D=new vq;l=l===void 0?null:l;D.state_=2;D.JSC$12696_value_=l===void 0?null:l;return D};
_.Qn=function(l){var D=new vq;l=l===void 0?null:l;D.state_=1;D.JSC$12696_value_=l===void 0?null:l;return D};var YCc="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var j5r=["load","abort","error"],GA=function(l,D,U){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12716_maxAspectRatio_=l;this.disableAnimation_=D===void 0?!1:D;this.disableExifRotation_=U===void 0?!1:U;this.JSC$12716_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12716_reject_=this.resolve_=null};
GA.prototype.transform=function(l){var D=this;this.mime_=l.type;io(Z07(l),this.dataUrlRead_,this.readError_,this);io(R0r(l.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(U,n){D.resolve_=U;D.JSC$12716_reject_=n})};
GA.prototype.dataUrlRead_=function(l){this.dataUrl_=l;this.angle_!=null&&FKg(this)};
GA.prototype.exifRead_=function(l){if(this.disableExifRotation_)this.angle_=0;else{a:if(l=new DataView(l),l.byteLength<2||l.getUint16(0)!==65496)l=-2;else{for(var D=2,U=l.byteLength;D<U;){var n=l.getUint16(D),y=l.getUint16(D+2);if(n===65505){D+=4;n=l.getUint32(D);y=l.getUint16(D+4);if(n!==1165519206||y!==0)break;D+=6;n=l.getUint16(D)===18761;D+=l.getUint32(D+4,n);y=l.getUint16(D,n);D+=2;for(var A=0;A<y;A++){if(l.getUint16(D,n)===274){D+=8;l=l.getUint16(D,n);break a}D+=12}}else if(n>>8!==255)break;
else D+=y+2}l=-1}switch(l){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&&FKg(this)};
GA.prototype.readError_=function(){this.JSC$12716_reject_()};
var FKg=function(l){gh(l.JSC$12716_image_,j5r,l.completeTransform_,!1,l);l.JSC$12716_image_.src=_.Ng(l.dataUrl_).toString();l.JSC$12716_image_.src!=zq.toString()&&l.JSC$12716_image_.src.substr(0,11)==="data:image/"||l.JSC$12716_reject_()};
GA.prototype.completeTransform_=function(){if(this.JSC$12716_image_.src!=zq.toString()){var l=_.Ng(this.dataUrl_),D=this.JSC$12716_image_.naturalHeight?this.JSC$12716_image_.naturalWidth/this.JSC$12716_image_.naturalHeight:null;this.invalidAspectRatio=D>this.JSC$12716_maxAspectRatio_||D<1/this.JSC$12716_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var U=this.JSC$12716_image_.naturalWidth,n=this.JSC$12716_image_.naturalHeight,y=D=0,A=this.JSC$12716_image_.naturalHeight?this.JSC$12716_image_.naturalWidth/
this.JSC$12716_image_.naturalHeight:null;A>this.JSC$12716_maxAspectRatio_?(U=this.JSC$12716_maxAspectRatio_*n,D=(U-this.JSC$12716_image_.naturalWidth)/2,this.cropped=!0):A<1/this.JSC$12716_maxAspectRatio_?(n=this.JSC$12716_maxAspectRatio_*U,y=(n-this.JSC$12716_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)A=U,U=n,n=A,A=D,D=y,y=A;switch(this.angle_){case 90:y-=U;break;case 180:D-=U;y-=n;break;case 270:D-=
n}this.cropped||this.angle_%360!==0?(l=document.createElement("canvas"),l.width=U||1,l.height=n||1,this.JSC$12716_image_.naturalWidth&&this.JSC$12716_image_.naturalHeight&&(U=l.getContext("2d"),U.rotate(Math.PI/180*this.angle_),U.drawImage(this.JSC$12716_image_,D,y,this.JSC$12716_image_.naturalWidth,this.JSC$12716_image_.naturalHeight)),this.transformedData=_.Ng(l.toDataURL(this.mime_))):this.transformedData=l}else this.transformedData=l;this.resolve_(this)}};var Jx=function(l,D){_.Zz.call(this,l);this.value=D};
_.Z(Jx,_.Zz);
var LM=function(l,D,U,n,y,A,C){C=C===void 0?!1:C;_.Xa.call(this);var h=this;this.JSC$12721_url_=l;this.channelId_=D;this.maxFileSizeMb_=U;this.JSC$12721_maxAspectRatio_=n;this.dropZoneEl_=y;this.rejectInvalidAspectRatio_=C;this.selectButtonEl_=A;this.JSC$12721_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new a6(this.dropZoneEl_);this.selectOverlay_=new tM(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12721_image_=this.transfer_=null;this.handler_=new _.ZB(this);_.m7(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(){h.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.Z(LM,_.Xa);LM.prototype.disposeInternal=function(){for(var l=this.selectButtonEl_.nextSibling;l&&l.parentNode&&l.tagName=="INPUT";)l.parentNode.removeChild(l),l=this.selectButtonEl_.nextSibling;this.cancel();_.Xa.prototype.disposeInternal.call(this)};
LM.prototype.uploadPromise=function(){if(this.JSC$12721_image_==null)return null;this.uploadPromise_||od5(this);return this.uploadPromise_};
LM.prototype.cancel=function(){wwk(this);this.JSC$12721_image_=null};
var wwk=function(l){l.transfer_&&l.transfer_.cancel();l.transfer_=null;l.uploadPromise_=null;l.resolve_=null;l.JSC$12721_reject_=null},od5=function(l){wwk(l);
l.transfer_=_.bpz(l.JSC$12721_url_,{"X-YouTube-ChannelId":l.channelId_},l.JSC$12721_image_);l.handler_.listenOnce(l.transfer_,"l",l.JSC$12723_onUploadComplete_);l.handler_.listenOnce(l.transfer_,"n",l.onUploadError_);l.transfer_.run();l.uploadPromise_=new Promise(function(D,U){l.resolve_=D;l.JSC$12721_reject_=U})};
_.W=LM.prototype;_.W.onChange_=function(l){l.files.length&&(this.JSC$12721_image_=l.files[0],this.JSC$12721_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12721_image_=null,this.dispatchEvent(new Jx("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(od5(this),(new GA(this.JSC$12721_maxAspectRatio_)).transform(this.JSC$12721_image_).then((0,_.jU)(this.onPreview_,this),(0,_.jU)(this.onPreviewError_,this))))};
_.W.onPreview_=function(l){if(l.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12721_image_=null),this.dispatchEvent(new Jx("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;l.cropped&&this.dispatchEvent(new Jx("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Jx("yt.comments.ImageUploadOverlay.CHANGE_EVENT",l.transformedData))};
_.W.onPreviewError_=function(){this.JSC$12721_image_=null;this.dispatchEvent(new Jx("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.W.onHover_=function(l){l.stopPropagation();l.preventDefault();if(l.type==="dragover")l=!0;else if(l.type==="dragleave")l=!1;else return;this.dispatchEvent(new Jx("yt.comments.ImageUploadOverlay.HOVER_EVENT",l))};
_.W.JSC$12723_onUploadComplete_=function(){var l=(0,_.fQ8)(this.transfer_.getResponseText());this.resolve_(l.encryptedBlobId)};
_.W.onUploadError_=function(){this.JSC$12721_reject_();wwk(this)};var rgh=function(l){l=l||{};var D={},U={};this.url=l.url||"";this.args=l.args||_.we.clone(D);this.assets=l.assets||{};this.attrs=l.attrs||_.we.clone(U);this.fallback=l.fallback||null;this.fallbackMessage=l.fallbackMessage||null;this.html5=!!l.html5;this.disable=l.disable||{};this.loaded=!!l.loaded;this.messages=l.messages||{}};
rgh.prototype.clone=function(){var l=new rgh,D;for(D in this)if(this.hasOwnProperty(D)){var U=this[D];_.i$(U)=="object"?l[D]=_.we.clone(U):l[D]=U}return l};var z51,fD7,$Y_,wk,s5h,Edy,TRm,ID8,HKy,YR7,OKm,VS8,iG_,lF_,Dk5,Uky,nRm,yR7,ARz,Wo8,Biy,CT7,hq8,PTH,bGg,gRv,uDH,vR7,Qb7,VoB,G61,JR7,Lok,qDk,Mug,Rq1,ZG5,eq7,mk8,aFv,Osd,tu7,Xfk,SDk,k67,dkm,Koh,cRv,pfg,xkm,jb1,FoH,oRm,wf1,rRy,zq7,q3,fFr,$kv,Nik,sby,ERk,Ti1,IF7,HGm,YD5,OGH,Vuv,ixy,lcy,D4y,U4H,nn7,yP_,AP1,Wh5,Hs$,Bpm,Civ,hly,Pi7,bxk,gn5,u5m,vnz,QWz,Giz,JPz,Lhm,qMz,Mkz,Rly,Zx_,el_,m45,acg,tk7,XQH,SMk,ki7,d48,Kh1;z51=["account/accounts_list"];fD7=["acknowledge_channel_tou_strike"];$Y_=["notification/add_upcoming_event_reminder"];
_.NR7=["att/get"];wk=["browse","music/browse","streaming_browse","unplugged/browse"];s5h=["channel/claim_legacy_youtube_channel"];Edy=["history/clear_search_history"];TRm=["history/clear_watch_history"];ID8=["comment/perform_comment_action"];HKy=["comment/get_comment_replies"];YR7=["ypc/commerce_action"];OKm=["backstage/create_post"];VS8=["live/create_broadcast"];iG_=["channel/create_channel"];lF_=["comment/create_comment_reply"];Dk5=["comment/create_comment"];Uky=["live_chat/create_poll"];nRm=["playlist/create"];
yR7=["decorate_message"];ARz=["live_chat/delete_message"];Wo8=["playlist/delete"];Biy=["video/delete"];CT7=["like/dislike"];hq8=["dismissal/dismiss"];PTH=["flag/flag"];bGg=["flow"];gRv=["account/account_menu"];uDH=["playlist/get_add_to_playlist"];vR7=["get_answer"];Qb7=["channel/get_channel_creation_form"];VoB=["offline/get_download_action"];G61=["kids/get_kids_blocklist_picker"];JR7=["live_chat/get_item_context_menu"];Lok=["live_chat/get_live_chat_message_buy_flow"];qDk=["live_chat/get_live_chat_replay"];
Mug=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Rq1=["live_chat/get_live_chat_super_sticker_buy_flow"];ZG5=["notification/get_notification_menu"];eq7=["playlist/get_settings_editor"];mk8=["backstage/get_post_video_preview"];aFv=["account/get_profile_card"];Osd=["share/get_share_panel"];tu7=["share/get_sharing_provider_data"];Xfk=["get_survey"];SDk=["notification/get_unseen_count"];k67=["get_user_mention_suggestions"];dkm=["get_watch"];Koh=["guide"];
cRv=["feedback"];pfg=["kids/update_blacklist"];xkm=["like/like"];jb1=["live_chat/live_chat_action"];FoH=["live_chat/manage_user"];oRm=["video_manager/metadata_update"];wf1=["live_chat/moderate"];rRy=["notification/modify_channel_preference"];zq7=["notification/opt_out"];q3=["get_panel","get_posts_by_host_panel"];fFr=["player"];$kv=["browse/edit_playlist"];Nik=["notification/record_interactions"];sby=["reel/reel_item_watch"];ERk=["reel/reel_watch_sequence"];Ti1=["like/removelike"];IF7=["notification/remove_upcoming_event_reminder"];
HGm=["flag/get_form"];YD5=["miniapp/report_value"];OGH=["navigation/resolve_url"];Vuv=["channel/reveal_business_email"];ixy=["in_video/search"];lcy=["search","sfv/search","unplugged/search"];D4y=["live_chat/send_message"];U4H=["live_chat/send_live_chat_vote"];nn7=["account/set_setting"];yP_=["submit_caption_correction"];AP1=["submit_form"];Wh5=["subscription/subscribe"];Hs$=["get_transcript"];Bpm=["resolve_location","unplugged/resolve_location"];Civ=["subscription/unsubscribe"];hly=["backstage/update_post"];
Pi7=["channel_edit/update_channel_page_settings"];bxk=["comment/update_comment_reply"];gn5=["comment/update_comment"];u5m=["comment/update_comments_settings"];vnz=["creator/update_creator_channel"];QWz=["pdg/update_enablement"];Giz=["updated_metadata"];JPz=["channel_edit/validate_channel_handle"];Lhm=["verify_age"];qMz=["next","unplugged/watch_next"];Mkz=["whitelist/edit"];Rly=["ypc/cancel_recurrence"];Zx_=["ypc/complete_transaction"];el_=["ypc/get_cart"];m45=["ypc/get_fix_instrument_params"];
acg=["ypc/get_offers"];tk7=["ypc/get_payment_instruments_params"];XQH=["ypc/handle_transaction"];SMk=["ypc/log_payment_server_analytics"];ki7=["ypc/pause_subscription"];d48=["ypc/redeem_code"];Kh1=["ypc/resume_subscription"];var cPv=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,
74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,
235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,
156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,
221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,
232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,
36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,
65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,277848,173191,
173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,
185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,
45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,
182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,
269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var B6=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.vG("yt.msgs_",B6);var M3=new _.A7("ACTION_ROUTER_TOKEN");_.RZ=function(){this.autonavState_=_.q("kevlar_is_pupi_enabled")?2:CvG()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.RZ.prototype.getState=function(){return this.autonavState_};
_.RZ.prototype.pause=function(l){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=l):this.autonavState_==1&&(this.disabledAutonavPauseReason_=l)};
_.RZ.prototype.setState=function(l,D,U){D&&(this.autoplayChangedByUser=!0);D=this.autonavState_===3||l===3;this.autonavState_!=l&&(this.autonavState_=l,l!=3&&_.hEB(l==2),l=_.q("kevlar_is_pupi_enabled")?U||D:!0,_.AH.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,l,U))};
_.RZ.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Th(_.RZ);var ZS=function(){this.hasRun=!1};var em={},MvB=(em.auto_search="LATENCY_ACTION_AUTO_SEARCH",em.ad_to_ad="LATENCY_ACTION_AD_TO_AD",em.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",em.app_startup="LATENCY_ACTION_APP_STARTUP",em.browse="LATENCY_ACTION_BROWSE",em.cast_splash="LATENCY_ACTION_CAST_SPLASH",em.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",em.channels="LATENCY_ACTION_CHANNELS",em.chips="LATENCY_ACTION_CHIPS",em.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",em.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
em.editor="LATENCY_ACTION_EDITOR",em.embed="LATENCY_ACTION_EMBED",em.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",em.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",em.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",em.explore="LATENCY_ACTION_EXPLORE",em.favorites="LATENCY_ACTION_FAVORITES",em.home="LATENCY_ACTION_HOME",em.inboarding="LATENCY_ACTION_INBOARDING",em.landing="LATENCY_ACTION_LANDING",em.learning="LATENCY_ACTION_LEARNING",
em.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",em.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",em.library="LATENCY_ACTION_LIBRARY",em.live="LATENCY_ACTION_LIVE",em.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",em.management="LATENCY_ACTION_MANAGEMENT",em.mini_app="LATENCY_ACTION_MINI_APP_PLAY",em.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",em.onboarding="LATENCY_ACTION_ONBOARDING",em.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
em.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",em.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",em.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",em.prebuffer="LATENCY_ACTION_PREBUFFER",em.prefetch="LATENCY_ACTION_PREFETCH",em.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",em.profile_switcher="LATENCY_ACTION_LOGIN",em.projects="LATENCY_ACTION_PROJECTS",em.reel_watch="LATENCY_ACTION_REEL_WATCH",em.results="LATENCY_ACTION_RESULTS",em.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
em.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",em.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",em.review="LATENCY_ACTION_REVIEW",em.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",em.search_ui="LATENCY_ACTION_SEARCH_UI",em.search_suggest="LATENCY_ACTION_SUGGEST",em.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",em.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",em.seek="LATENCY_ACTION_PLAYER_SEEK",em.settings="LATENCY_ACTION_SETTINGS",em.store="LATENCY_ACTION_STORE",
em.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",em.tenx="LATENCY_ACTION_TENX",em.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",em.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",em.watch="LATENCY_ACTION_WATCH",em.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",em["watch,watch7"]="LATENCY_ACTION_WATCH",em["watch,watch7_html5"]="LATENCY_ACTION_WATCH",em["watch,watch7ad"]="LATENCY_ACTION_WATCH",em["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",em.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
em.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",em.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",em.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",em.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",em.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",em.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",em.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",em),j6G=0;var fx$=function(l,D){dC.call(this,1,arguments);this.timer=D};
_.Z(fx$,dC);var zEN=new jnl("aft-recorded",fx$);var m$B=_.nC.ytLoggingGelSequenceIdObj_||{};_.vG("ytLoggingGelSequenceIdObj_",m$B);var mz=_.nC.ytLoggingLatencyUsageStats_||{};_.vG("ytLoggingLatencyUsageStats_",mz);var aZ=function(){this.cleanupJob=0},XLB=function(){aZ.instance||(aZ.instance=new aZ);
return aZ.instance};
_.W=aZ.prototype;_.W.baseline=function(l,D,U){tx(this,"baseline_"+l)||_.Na("latencyActionBaselined",{clientActionNonce:l},{timestamp:D,cttAuthInfo:U})};
_.W.tick=function(l,D,U,n){tx(this,"tick_"+l+"_"+D)||_.Na("latencyActionTicked",{tickName:l,clientActionNonce:D},{timestamp:U,cttAuthInfo:n})};
_.W.info=function(l,D,U){var n=Object.keys(l).join("");tx(this,"info_"+n+"_"+D)||(l=Object.assign({},l),l.clientActionNonce=D,_.Na("latencyActionInfo",l,{cttAuthInfo:U}))};
_.W.jspbInfo=function(l,D,U){for(var n="",y=0;y<pP(l).length;y++)pP(l)[y]!==void 0&&(n=y===0?n.concat(""+y):n.concat("_"+y));tx(this,"info_"+n+"_"+D)||(_.c7(l,2,D),D={cttAuthInfo:U},U=_.q("jspb_sparse_encoded_pivot")?new F0([{}]):new F0,_.tk(U,7,FFr,l),axg("latencyActionInfo",U,D))};
_.W.span=function(l,D,U){var n=Object.keys(l).join("");tx(this,"span_"+n+"_"+D)||(l.clientActionNonce=D,_.Na("latencyActionSpan",l,{cttAuthInfo:U}))};
var tx=function(l,D){mz[D]=mz[D]||{count:0};var U=mz[D];U.count++;U.time=(0,_.J3)();l.cleanupJob||(l.cleanupJob=_.oI(_.Tn,function(){var n=(0,_.J3)(),y;for(y in mz)mz[y]&&n-mz[y].time>6E4&&delete mz[y];l&&(l.cleanupJob=0)},5E3));
return U.count>5?(U.count===6&&Math.random()*1E5<1&&(U=new _.rc("CSI data exceeded logging limit with key",D.split("_")),D.indexOf("plev")>=0||_.II(U)),!0):!1};var pQ_,x4_;pQ_=window;x4_=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Go=pQ_.performance||pQ_.mozPerformance||pQ_.msPerformance||pQ_.webkitPerformance||new x4_;var rM9=!1,kd3=!1,$$9=(0,_.jU)(_.Go.clearResourceTimings||_.Go.webkitClearResourceTimings||_.Go.mozClearResourceTimings||_.Go.msClearResourceTimings||_.Go.oClearResourceTimings||_.RR,_.Go);var jWk=window;jWk.ytcsi&&(jWk.ytcsi.infoGel=_.ZP,jWk.ytcsi.tick=_.ae);var lSd=function(l){dC.call(this,1,arguments);this.csn=l};
_.Z(lSd,dC);var z9$=new jnl("screen-created",lSd),GAB=[],iMG=QZ$,JxN=0,c6=new Map,D39=new Map,U3C=new Map;var TOc=Symbol("Cf"),Nt=new WeakMap;var Xr=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},bm=function(){Xr.instance||(Xr.instance=new Xr);
return Xr.instance};
_.W=Xr.prototype;_.W.setClient=function(l){this.client=l};
_.W.JSC$12802_newScreen=function(){this.clear();this.csn=_.t6()};
_.W.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.W.reportShown=function(l,D,U){var n=this.JSC$12802_getTrackingParams(l),y=l.visualElement?l.visualElement:n;D=this.shownElements.has(y);var A=this.visibleState.get(y);this.shownElements.add(y);this.visibleState.set(y,!0);l.impressionLog&&!D&&l.impressionLog();if(n||l.visualElement)if(U=Fhr(this,l,U))if(y=ony(this,l),Sm(this,l)||y){n=l.visualElement?l.visualElement:_.v9(n);var C=l.interactionLoggingClientData;y||D?Sm(this,l)&4?A||Pcl(this.client,U,n,C):Sm(this,l)&1&&!D&&B3G(this.client,U,n,C):B3G(this.client,
U,n,C)}};
_.W.reportHidden=function(l,D,U){var n=this.JSC$12802_getTrackingParams(l),y=l.visualElement?l.visualElement:n;D=this.hiddenElements.has(y);var A=this.visibleState.get(y);this.hiddenElements.add(y);this.visibleState.set(y,!1);if(A===!1)return!0;if(!n&&!l.visualElement)return!1;U=Fhr(this,l,U);if(!U||!Sm(this,l)&&ony(this,l))return!1;n=l.visualElement?l.visualElement:_.v9(n);Sm(this,l)&8?bMl(this.client,U,n):Sm(this,l)&2&&!D&&(l=this.client,D=K3({cttAuthInfo:XG(U)||void 0},U),n={csn:U,ve:n.getAsJson(),
eventType:2},U==="UNDEFINED_CSN"?xS("visualElementHidden",D,n):l?fB("visualElementHidden",n,l,D):_.Na("visualElementHidden",n,D));return!0};
_.W.JSC$12802_getTrackingParams=function(l){var D=this.getData(l),U,n;if(_.q("il_use_view_model_logging_context")&&(D==null?0:(U=D.context)==null?0:(n=U.loggingContext)==null?0:n.loggingDirectives))return D.context.loggingContext.loggingDirectives.trackingParams||"";var y,A;if(D==null?0:(y=D.rendererContext)==null?0:(A=y.loggingContext)==null?0:A.loggingDirectives)return D.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(D==null?0:D.loggingDirectives)return D.loggingDirectives.trackingParams||
"";var C;return((C=l.veContainer)==null?0:C.trackingParams)?l.veContainer.trackingParams:(D==null?void 0:D.trackingParams)||""};
_.W.JSC$12802_elementShouldLogGesture=function(l,D){l=this.getData(l);return!!((Math.floor(Number(l&&l.loggingDirectives&&l.loggingDirectives.gestures&&l.loggingDirectives.gestures.types||""))||0)&D)};
_.W.JSC$12802_getNearestParentVe=function(l){var D=this.JSC$12802_getTrackingParams(l);return l.visualElement?l.visualElement:D?_.v9(D):l.parentElement?this.JSC$12802_getNearestParentVe(l.parentElement):null};
var Fhr=function(l,D,U){var n=_.t6(U);return l.csn===null||n===l.csn||U?n:(l=new _.rc("VisibilityLogger called before newScreen",{caller:D.tagName,previous_csn:l.csn,current_csn:n}),_.II(l),null)};
Xr.prototype.getData=function(l){var D,U=l.data||((D=l.props)==null?void 0:D.data);if(!U||l.isWebComponentWrapper){var n;U=(n=Nt.get(l))==null?void 0:n[TOc]}return U};
var ony=function(l,D){var U;return!((U=l.getData(D))==null||!U.loggingDirectives)},Sm=function(l,D){l=l.getData(D);
return Math.floor(Number(l&&l.loggingDirectives&&l.loggingDirectives.visibility&&l.loggingDirectives.visibility.types||""))||1};var kM;kM=function(){};
_.B9=function(){kM.instance||(kM.instance=new kM);return kM.instance};
kM.prototype.setClient=function(l){_.DJ(bm().setClient).bind(bm())(l)};
_.wQy=function(){_.B9();_.DJ(bm().JSC$12802_newScreen).bind(bm())()};
kM.prototype.clear=function(){_.DJ(bm().clear).bind(bm())()};
kM.prototype.reportShown=function(l,D,U){_.DJ(bm().reportShown).bind(bm())(l,D,U)};
kM.prototype.reportHidden=function(l,D,U){return _.DJ(bm().reportHidden).bind(bm())(l,D,U)};
var rTg=function(l,D){return _.DJ(bm().JSC$12802_getTrackingParams).bind(bm())(D)},IEK=function(l,D){return _.DJ(bm().JSC$12802_getNearestParentVe).bind(bm())(D)};var d3,rP8;d3=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};
_.he=function(){d3.instance||(d3.instance=new d3);return d3.instance};
d3.prototype.setClient=function(l){this.client=l};
rP8=function(l,D,U){U=U===void 0?{}:U;_.DJ(function(){var n,y,A,C=((n=_.M(D==null?void 0:D.commandMetadata,_.W6))==null?void 0:n.rootVe)||((y=_.M(D==null?void 0:D.commandMetadata,ZM_))==null?void 0:(A=y.screenVisualElement)==null?void 0:A.uiType);if(C){n=_.M(D==null?void 0:D.commandMetadata,GWv);if(n==null?0:n.parentTrackingParams){var h=_.v9(n.parentTrackingParams);if(n.parentCsn)var b=n.parentCsn}else U.clickedVisualElement?h=U.clickedVisualElement:D.clickTrackingParams&&(h=_.v9(D.clickTrackingParams));
a:{n=_.M(D,_.za);y=_.M(D,Ag_);if(n){if(y=PvK(n,"VIDEO")){n={token:y,videoId:n.videoId};break a}}else if(y&&(n=PvK(y,"PLAYLIST"))){n={token:n,playlistId:y.playlistId};break a}n=void 0}U=Object.assign({},{cttAuthInfo:n,parentCsn:b},U);if(_.q("expectation_logging")){var u;U.loggingExpectations=((u=_.M(D==null?void 0:D.commandMetadata,ZM_))==null?void 0:u.loggingExpectations)||void 0}_.KM(l,C,h,U)}else _.II(new _.rc("Error: Trying to create a new screen without a rootVeType",D))})()};
_.KM=function(l,D,U,n){n=n===void 0?{}:n;_.DJ(function(){cPv.includes(D)||(_.II(new _.rc("createClientScreen() called with a non-page VE",D)),D=83769);n.isHistoryNavigation||(l.forwardHistoryStack=[],l.backHistoryStack.push({rootVe:D,key:n.key||""}));l.graftQueue=[];l.stateChangedQueue=[];n.dataPromises?zly(l,D,U,n):fcm(l,D,U,n)})()};
_.$4r=function(l,D,U){U=U===void 0?0:U;_.DJ(function(){D.then(function(n){l.pendingScreenCreation.has(U)&&l.pendingScreenFn&&l.pendingScreenFn();var y=_.t6(U),A=_.aS(U);if(y&&A){var C={automatedLogEventSource:3},h;(n==null?0:(h=n.response)==null?0:h.trackingParams)&&p3(l.client,y,A,_.v9(n.response.trackingParams),!1,C);var b;(n==null?0:(b=n.playerResponse)==null?0:b.trackingParams)&&p3(l.client,y,A,_.v9(n.playerResponse.trackingParams),!1,C)}})})()};
d3.prototype.graftServerVe=function(l,D,U){var n=this;return _.DJ(function(){var y=_.v9(l);_.cq(n,y,D,U);return y})()};
_.HX9=function(l,D,U,n){return _.q("enable_client_ve_spec")&&D.clientVeSpec?(D=_.UE(D.clientVeSpec.uiType,void 0,D.clientVeSpec.elementIndex,D.clientVeSpec.clientYoutubeData,void 0,D),_.cq(l,D,U,n)?D:null):D.trackingParams?l.graftServerVe(D.trackingParams,U,n):null};
_.Ce=function(l,D,U,n){return _.DJ(function(){if(!D.veType)return _.Tj(new _.rc("Error: Trying to graft a client VE without a veType.")),null;if(D.visibilityTypes){var y=D.visibilityTypes.reduce(function(A,C){return A|C});
y={visibility:{types:String(y)}}}y=_.UE(D.veType,D.visualElement,D.elementIndex,D.clientYouTubeData,void 0,y);return _.cq(l,y,U,n)?y:null})()};
_.cq=function(l,D,U,n){n=n===void 0?0:n;return _.DJ(function(){if(l.pendingScreenCreation.has(n))return l.graftQueue.push([D,U]),!0;var y=_.t6(n),A=U||_.aS(n);if(y&&A){if(_.q("combine_ve_grafts")){var C=l.cachedVisualElements.get(A.toString());C?C.push(D):(l.cachedRootVisualElements.set(A.toString(),A),l.cachedVisualElements.set(A.toString(),[D]));l.attachTimeout||(l.attachTimeout=_.oI(_.Tn,function(){Np_(l,y)},1200))}else p3(l.client,y,A,D);
return!0}return!1})()};
_.pM=function(l,D,U){U=U===void 0?0:U;var n=l.recurringGrafts.get(U)||new Map;if(_.q("smarter_ve_dedupping"))for(var y=Array.from(n.keys()),A=0;A<y.length;A++){var C=void 0,h=void 0;var b=D;var u=y[A];u.isClientVe()&&b.isClientVe()?(C=b.getAsJson(),h=u.getAsJson(),b=C.veType!==h.veType||C.elementIndex!==h.elementIndex||C.dataElement!==h.dataElement||b.getLoggingDirectives()!==u.getLoggingDirectives()?!1:!0):b=u.veData.trackingParams!==void 0&&b.veData.trackingParams!==void 0?((h=b.veData)==null?void 0:
h.trackingParams)===((C=u.veData)==null?void 0:C.trackingParams):!1;if(b)return}else if(n.has(D))return;n.set(D,void 0);l.recurringGrafts.set(U,n);_.t6(U)==="UNDEFINED_CSN"||l.pendingScreenCreation.has(U)||_.cq(l,D,void 0,U)};
_.xM=function(l,D,U,n){n=_.t6(n===void 0?0:n);if(!n)return!1;urg(l.client,n,D,U);return!0};
_.jm=function(l,D,U,n){if(!D)return!1;n=_.t6(n===void 0?0:n);if(!n)return!1;urg(l.client,n,_.v9(D),U);return!0};
_.xo=function(l,D){var U=D.getScreenLayer&&D.getScreenLayer();if(D.visualElement)return _.xM(l,D.visualElement,void 0,U);D=rTg(_.B9(),D);return _.jm(l,D,void 0,U)};
d3.prototype.clickCommand=function(l,D,U){return _.jm(this,l.clickTrackingParams,D,U===void 0?0:U)};
d3.prototype.stateChanged=function(l,D,U){this.visualElementStateChanged(_.v9(l),D,U===void 0?0:U)};
d3.prototype.visualElementStateChanged=function(l,D,U){U=U===void 0?0:U;U===0&&this.pendingScreenCreation.has(U)?this.stateChangedQueue.push([l,D]):this.logStateChanged(l,D,U)};
d3.prototype.logStateChanged=function(l,D,U){U=U===void 0?0:U;var n=_.t6(U);l=l||_.aS(U);return n&&l?(vMB(this.client,n,l,D),!0):!1};
var zly=function(l,D,U,n){n=n===void 0?{}:n;l.pendingScreenCreation.add(n.layer||0);l.pendingScreenFn=function(){fcm(l,D,U,n);var C=_.aS(n.layer);if(C){for(var h=_.B(l.graftQueue),b=h.next();!b.done;b=h.next())b=b.value,_.cq(l,b[0],b[1]||C,n.layer);C=_.B(l.stateChangedQueue);for(h=C.next();!h.done;h=C.next())h=h.value,l.logStateChanged(h[0],h[1])}};
U||_.t6(n.layer)||l.pendingScreenFn();if(n.dataPromises)for(var y=_.B(n.dataPromises),A=y.next();!A.done;A=y.next())_.$4r(l,A.value,n.layer);else _.EU(Error("Df"))},fcm=function(l,D,U,n){n=n===void 0?{}:n;
var y=void 0;n.layer||(n.layer=0);y=n.parentLayer!==void 0?n.parentLayer:n.layer;var A=_.t6(y);y=_.aS(y);var C=U||y,h;C&&(n.parentCsn!==void 0?h={clientScreenNonce:n.parentCsn,visualElement:C}:A&&A!=="UNDEFINED_CSN"&&(h={clientScreenNonce:A,visualElement:C}));var b,u=_.H3("EVENT_ID");A==="UNDEFINED_CSN"&&u&&(b={servletData:{serializedServletEventId:u}});_.q("combine_ve_grafts")&&A&&Np_(l,A);_.q("no_client_ve_attach_unless_shown")&&C&&A&&WzN(C,A);try{var Q=_.nMc(l.client,D,h,n.csnToClone,n.cttAuthInfo,
b,n.implicitGestureType,void 0,n.loggingExpectations)}catch(L){_.HA(L,{rootVeType:D,rootVe:y,parentVisualElement:U,currentCsn:A,parentEl:h,csnToClone:n.csnToClone});_.EU(L);return}_.SG(Q,D,n.layer,n.cttAuthInfo);A&&A!=="UNDEFINED_CSN"&&y&&!uHK(A)&&bMl(l.client,A,y,!0);l.backHistoryStack[l.backHistoryStack.length-1]&&!l.backHistoryStack[l.backHistoryStack.length-1].csn&&(l.backHistoryStack[l.backHistoryStack.length-1].csn=Q||"");_.ZP({clientScreenNonce:Q});_.wQy();var G=_.aS(n.layer);A&&A!=="UNDEFINED_CSN"&&
G&&(_.q("web_mark_root_visible")||_.q("music_web_mark_root_visible"))&&_.oe(Q,G);l.pendingScreenCreation.delete(n.layer||0);l.pendingScreenFn=void 0;var J;(J=l.recurringGrafts.get(n.layer))==null||J.forEach(function(L,R){L?_.cq(l,R,L,n.layer):G&&_.cq(l,R,G,n.layer)});
sWv(l)},sWv=function(l){for(var D=0;D<l.afterNewScreenOneOffJobs.length;D++){var U=l.afterNewScreenOneOffJobs[D];
try{U()}catch(n){_.EU(n)}}for(D=l.afterNewScreenOneOffJobs.length=0;D<l.afterNewScreenRecurringJobs.length;D++){U=l.afterNewScreenRecurringJobs[D];try{U()}catch(n){_.EU(n)}}},Np_=function(l,D){if(D===void 0)for(var U=bi3(),n=0;n<U.length;n++)U[n]!==void 0&&Np_(l,U[n]);
else l.cachedVisualElements.forEach(function(y,A){(A=l.cachedRootVisualElements.get(A))&&yx$(l.client,D,A,y)}),l.cachedVisualElements.clear(),l.cachedRootVisualElements.clear(),l.attachTimeout=void 0};var Fr=function(l){l=l===void 0?{layer:0}:l;this.hasRun=!1;this.createScreenConfig=l;l={};this.luv=(l.response=!1,l.playerResponse=!1,l)};
_.Z(Fr,ZS);Fr.prototype.validate=function(l){return!(!l.data||!l.data.response&&!l.data.playerResponse)};
Fr.prototype.handle=function(l){var D=_.he(),U=this.createScreenConfig.layer;l.data.response&&l.data.response.trackingParams&&!this.luv.response&&(D.graftServerVe(l.data.response.trackingParams,void 0,U),this.luv.response=!0);l.data.playerResponse&&l.data.playerResponse.trackingParams&&!this.luv.playerResponse&&(D.graftServerVe(l.data.playerResponse.trackingParams,void 0,U),this.luv.playerResponse=!0)};var oZ=function(){this.uZ=_.wf();this.jG=[];this.nnv=0};
oZ.prototype.processChunk=function(l){if(l){for(var D=_.B(this.jG),U=D.next();!U.done;U=D.next())U=U.value,U.validate(l)&&(U.handle(l),U.hasRun=!0);_.ae("np"+this.nnv);this.nnv++}};var er9=function(l,D,U){U=U===void 0?{}:U;this.name=l;this.id=st.nextSpanId++;this.sessionId=st.sessionId;this.attributes=D;this.status=0;var n;this.startTime=(n=U.startTime)!=null?n:(0,_.J3)();this.isActiveSpan=U.active;if(l=st.stack[st.stack.length-1])this.parentId=l.id,l.children||(l.children=[]),l.children.push(this);l=_.B(st.processors);for(D=l.next();!D.done;D=l.next()){D=D.value;try{var y=n=void 0;(y=(n=D).onSpanStart)==null||y.call(n,this)}catch(A){_.II(A)}}U.endTime!=null&&(this.isActiveSpan=
!1,this.end(1,U.endTime))};
er9.prototype.end=function(l,D){l=l===void 0?1:l;this.endTime=D=D===void 0?(0,_.J3)():D;this.duration=this.endTime-this.startTime;this.status=l;this.isActiveSpan!==!1&&(st.stack[st.stack.length-1]===this?st.stack.pop():_.II(Error("Ef`"+String(this.name))));l=_.B(st.processors);for(D=l.next();!D.done;D=l.next()){D=D.value;try{var U=void 0,n=void 0;(n=(U=D).onSpanEnd)==null||n.call(U,this)}catch(y){_.II(y)}}};
er9.prototype.addAttributes=function(l){Object.assign(this.attributes,l)};
var m3c={end:function(){},
addAttributes:function(){}},st={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},ZMg={rootSpan:function(){return st.stack[0]}};var Xq9={};var nbG=function(l){this.observers=[];this.value=l};
_.W=nbG.prototype;_.W.subscribe=function(l){var D=this;if(l.idx!=null)throw Error("Gf");l.idx=this.observers.length;this.observers.push(l);try{l(this.value)}catch(U){}return function(){var U=D.observers[D.observers.length-1];D.observers[l.idx]=U;U.idx=l.idx;D.observers.pop()}};
_.W.update=function(l){this.value=l(this.value);this.notify()};
_.W.mutate=function(l){l(this.value);this.notify()};
_.W.set=function(l){this.value=l;this.notify()};
_.W.notify=function(){for(var l=_.B(this.observers),D=l.next();!D.done;D=l.next()){D=D.value;try{D(this.value)}catch(U){}}};var GE9,En1,Hxy;_.yu=function(l,D,U,n,y,A,C,h){C=C===void 0?[]:C;h=h===void 0?[]:h;this.buildCommandPayload=l;this.navigate=D;this.handleServiceRequest=U;this.sendAction=n;this.JSC$12852_screenManager=y;this.commandResolverMap=A;this.autoLogResolverAllowlist=C;this.metaCommandClickLoggingDenylist=h;this.pendingCommands=new Set;this.isTracingEnabled=!1;En1(this)};
GE9=function(l,D,U){var n=[_.zR1,Uf5],y=U0o,A=nyc,C=_.he(),h=Tpv;U=U===void 0?[]:U;n=n===void 0?[]:n;_.yu.instance=new _.yu(l,D,y,A,C,h,U,n)};
En1=function(l){if(!l.isTracingEnabled&&Rrd("command")){var D=l.resolveCommand;l.resolveCommand=function(U,n){a:{for(y in U)if(Object.prototype.hasOwnProperty.call(U,y)){var y={commandType:y};break a}y={}}return tmK("command",y,D.bind(this,U,n))};
l.isTracingEnabled=!0}};
Hxy=function(l,D,U){if(!l.commandResolverMap)return!1;var n=pqC(D,l.commandResolverMap);return n?((l.autoLogResolverAllowlist.some(function(y){return!!_.M(D,y)})||(U==null?0:U.forceClickLogging))&&Icy(l,D,U),n instanceof Promise?n.then(function(y){y.resolve(D,U)}):n.resolve(D,U),!0):!1};
_.yu.prototype.resolveCommand=function(l,D){var U=this,n=YMH(l);if(Hxy(this,l,D))return!0;if(n)return Oxv(this,l,D);if(!this.buildCommandPayload)return d3g(l,"Unhandled command by buildCommandPayload"),!1;var y=this.buildCommandPayload(l,D);if(D==null?0:D.commandController)y.commandController=D.commandController;if(y.type===0){if(!this.navigate)return Kz_(l,"navigate"),!1;if(!Vk7(y.command))return d3g(l,"Page requests need to specify a url"),!1;_.q("logging_avoid_blocking_during_navigation")&&_.mhc().transition("application_navigating");
l=this.navigate(y)||[];m1h(l).then(function(){U.pendingCommands.delete(y.command)});
return!0}if(y.type===1){if(!this.handleServiceRequest)return Kz_(l,"handleServiceRequest"),!1;(D==null?0:D.forceClickLogging)&&Icy(this,y.command,D);l=this.handleServiceRequest(y);m1h(l).then(function(){U.pendingCommands.delete(y.command)});
return!0}if(y.type===2){if(!this.sendAction)return Kz_(l,"sendAction"),!1;Icy(this,y.command,D);this.sendAction(y);return!0}return!1};
var Icy=function(l,D,U){if((U==null||!U.disableClickTracking)&&l.JSC$12852_screenManager)if(D.clickTrackingParams&&_.q("log_click_with_layer_from_element_in_command_handler")){var n;U=U==null?void 0:(n=U.form)==null?void 0:n.element;l.JSC$12852_screenManager.clickCommand(D,null,U&&U.getScreenLayer&&U.getScreenLayer())}else D.clickTrackingParams?l.JSC$12852_screenManager.clickCommand(D):!_.q("disable_clicked_visual_element_in_command_handler")&&(U==null?0:U.clickedVisualElement)&&_.xM(l.JSC$12852_screenManager,
U.clickedVisualElement)},YMH=function(l){var D=!!_.M(l,_.n3),U;
l=((U=_.M(l,_.AJ))==null?void 0:U.signal)==="CLIENT_SIGNAL";return D||l},Oxv=function(l,D,U){var n=_.M(D,_.n3);
if(n)var y=(n==null?void 0:n.commands)||[];else{var A;if(((A=_.M(D,_.AJ))==null?void 0:A.signal)==="CLIENT_SIGNAL"){var C;y=((C=_.M(D,_.AJ))==null?void 0:C.actions)||[]}}if(y){(n=iO7(l,y))&&Icy(l,D,U);D=_.B(y);for(y=D.next();!y.done;y=D.next()){y=y.value;try{var h=Object.assign({},U);n&&(h.disableClickTracking=!0);l.resolveCommand(y,h)}catch(b){b instanceof Error&&_.EU(b)}}return!0}d3g(D,"Could not handle the meta command");return!1},iO7=function(l,D){return D.every(function(U){return l.metaCommandClickLoggingDenylist.some(function(n){return!!_.M(U,
n)})})},Vk7=function(l){var D;
return!((D=_.M(l==null?void 0:l.commandMetadata,_.W6))==null||!D.url)};var w3=function(){ZS.apply(this,arguments)};
_.Z(w3,ZS);w3.prototype.validate=function(l){var D,U;return!this.hasRun&&!!((D=l.data.response)==null?0:(U=D.onResponseReceivedEndpoints)==null?0:U.length)};
w3.prototype.handle=function(l){var D=_.yu.instance;l=_.B(l.data.response.onResponseReceivedEndpoints);for(var U=l.next();!U.done;U=l.next())D.resolveCommand(U.value)};var l4_,DBr,UBv;
l4_=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Ut();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.r3=function(){DBr||(DBr=new l4_);return DBr};
UBv=function(){var l=_.r3();l.miniplayerButtonActivation=!1;l.userActivation=!1;l.playlistWatchPageActivation=!1;l.productDetailsPageActivation=!1;l.miniAppPageActivation=!1;l.playablesDestPageActivation=!1;l.lockupActivation=!1;l.showMiniplayerCommandActivation=!1;l.playlistSuggestionsShelfActivation=!1;l.mediaSessionPipActivation=!1;l.watchPipActivation=!1;l.watchWhileActivation=!1;l.shortsPipActivation=!1;l.companionCanvasActivation=!1};
_.nek=function(){var l=_.r3(),D=l.mediaSessionPipActivation,U=l.watchPipActivation,n=l.watchWhileActivation,y=l.playlistWatchPageActivation,A=l.lockupActivation,C=l.showMiniplayerCommandActivation,h=l.navigatingAwayFromWatchDeletedVideo,b=l.shortsPipActivation,u=l.playlistSuggestionsShelfActivation,Q=l.productDetailsPageActivation,G=l.miniAppPageActivation,J=l.playablesDestPageActivation,L=l.companionCanvasActivation;return!l.miniplayerButtonActivation&&!y&&!u&&!Q&&!G&&!J&&!A&&!C&&!D&&!U&&!n&&!b&&
!L||h};var EDg;_.zA=_.To("FEwhat_to_watch","/",3854);_.Tod=_.To("FEdownloads","/feed/downloads",42352);EDg=_.To("FEmusic_offline","browse/FEmusic_offline",42352);var sB=function(l,D){D=D===void 0?[]:D;var U=U===void 0?[]:U;D=sR3.apply(null,[EhK.apply(null,_.zz(D))].concat(_.zz(U)));this.store=YF3(l,void 0,D)};
sB.prototype.getState=function(){return this.store.getState()};
sB.prototype.dispatch=function(l){return this.store.dispatch(l)};
sB.prototype.subscribe=function(l){return this.store.subscribe(l)};
sB.prototype.replaceReducer=function(l){return this.store.replaceReducer(l)};
sB.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.fM=function(l,D,U){var n=D(l.getState());return l.subscribe(function(){var y=D(l.getState());if(y!==n){var A=n;n=y;U(y,A)}})};var mjC;_.vr=function(l,D,U){return _.V0({type:"REPLACE_ENTITY",payload:{entityPayload:U,entityType:l,key:D}})};
mjC=function(l){return _.V0({type:"REPLACE_ENTITIES",payload:l})};
_.et=function(l,D,U,n){return _.V0({type:"UPDATE_ENTITY",payload:{entityPayload:U,entityType:l,key:D,mergeOption:n}})};var T3$=function(l){var D=this;l=l===void 0?[]:l;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;l.forEach(function(U){D.append(U)})};
_.W=T3$.prototype;_.W.getLength=function(){return this.totalLength};
_.W.append=function(l){var D=this.arrays.length===0?!1:(D=this.arrays[this.arrays.length-1])&&D.buffer===l.buffer&&D.byteOffset+D.length===l.byteOffset;D?(D=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(D.buffer,D.byteOffset,D.length+l.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(l);this.totalLength+=l.length};
_.W.split=function(l){for(var D=new T3$,U=new T3$,n=_.B(this.arrays),y=n.next();!y.done;y=n.next())y=y.value,l>=y.length?(D.append(y),l-=y.length):l?(D.append(new Uint8Array(y.buffer,y.byteOffset,l)),U.append(new Uint8Array(y.buffer,y.byteOffset+l,y.length-l)),l=0):U.append(y);return{headView:D,tailView:U}};
_.W.isFocused=function(l){return l>=this.arrayPos&&l<this.arrayPos+this.arrays[this.arrayIdx].length};
_.W.focus=function(l){if(!this.isFocused(l))for(l<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=l&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var y5m=function(l,D){l.focus(D);return l.arrays[l.arrayIdx][D-l.arrayPos]};(function(){var l=function(n){return new Uint8Array(n)},D=function(n){for(var y=new Uint8Array(n.length),A=0;A<n.length;A++)y[A]=n[A];
return y},U=new Uint8Array([1]);
return U.length===1&&U[0]===1?l:D})();
var zr$=Array(1024),rx9=window.TextDecoder?new TextDecoder:void 0,$3G=window.TextEncoder?new TextEncoder:void 0;var EMK=function(l){this.arrayView=l;this.pos=0;this.pendingTagAndType=-1},iQ=function(l){var D=y5m(l.arrayView,l.pos);
++l.pos;if(D<128)return D;for(var U=D&127,n=1;D>=128;)D=y5m(l.arrayView,l.pos),++l.pos,n*=128,U+=(D&127)*n;return U},IS9=function(l,D){var U=l.pendingTagAndType;
for(l.pendingTagAndType=-1;l.pos+1<=l.arrayView.totalLength;){U<0&&(U=iQ(l));var n=U>>3,y=U&7;if(n===D)return!0;if(n>D){l.pendingTagAndType=U;break}U=-1;switch(y){case 0:iQ(l);break;case 1:l.pos+=8;break;case 2:n=iQ(l);l.pos+=n;break;case 5:l.pos+=4}}return!1};var YQg=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=sZG(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},UB=function(l,D){D=l.pos+D;
if(!(l.buf.length>=D)){for(var U=l.buf.length*2;U<D;)U*=2;l.buf=sZG(U,l.wasm,l.buf.subarray(0,l.pos));l.view=new DataView(l.buf.buffer,l.buf.byteOffset,l.buf.byteLength)}},D1=function(l,D){if(D>268435455){UB(l,4);
for(var U=D&1073741823,n=0;n<4;n++)l.view.setUint8(l.pos,U&127|128),U>>=7,l.pos+=1;D=Math.floor(D/268435456)}for(UB(l,4);D>127;)l.view.setUint8(l.pos,D&127|128),D>>=7,l.pos+=1;l.view.setUint8(l.pos,D);l.pos+=1};for(var OMg={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},HMC={},A5H=_.B(Object.entries(OMg)),W_g=A5H.next();!W_g.done;W_g=A5H.next()){var B_g=_.B(W_g.value),C9H=B_g.next().value,hAr=B_g.next().value,P9h=C9H,bOg=hAr;bOg&&(HMC[bOg]=P9h)};var idC=function(l,D){l=l===void 0?{}:l;switch(D.type){case "ENTITY_LOADED":return D.payload.reduce(function(n,y){var A,C=(A=y.options)==null?void 0:A.persistenceOption;if(C&&C!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&C!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return n;if(!y.entityKey)return _.EU(Error("If")),n;if(y.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!y.payload)return y=new _.rc("REPLACE entity mutation is missing a payload",{entityKey:y.entityKey}),_.EU(y),n;var h=(0,_.we.getAnyKey)(y.payload);
return Dj9(n,h,y.entityKey,y.payload[h])}if(y.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{y=y.entityKey;try{var b=_.lQ(y).entityType;h=Dj9(n,b,y);break a}catch(G){if(G instanceof Error){y=new _.rc("Failed to deserialize entity key",{entityKey:y,originalMessage:G.message});_.EU(y);h=n;break a}throw G;}h=void 0}return h}if(y.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!y.payload)return y=new _.rc("UPDATE entity mutation is missing a payload",{entityKey:y.entityKey}),_.EU(y),n;h=(0,_.we.getAnyKey)(y.payload);
var u,Q;return Ujc(n,h,y.entityKey,y.payload[h],(u=y.fieldMask)==null?void 0:(Q=u.mergeOptions)==null?void 0:Q.repeatedFieldsMergeOption)}return n},l);
case "REPLACE_ENTITY":var U=D.payload;return Dj9(l,U.entityType,U.key,U.entityPayload);case "REPLACE_ENTITIES":return Object.keys(D.payload).reduce(function(n,y){var A=D.payload[y];return Object.keys(A).reduce(function(C,h){return Dj9(C,y,h,A[h])},n)},l);
case "UPDATE_ENTITY":return U=D.payload,Ujc(l,U.entityType,U.key,U.entityPayload,U.mergeOption);default:return l}};var np9;var ge8=!1,$M,N3,sQ,EQ,TA,u3H=function(l){_.xT.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!ge8){var D,U=new Uint8Array(256),n=new Uint8Array(256);var y=1;for(D=0;D<256;D++)U[y]=D,n[D]=y,y^=y<<1^(y>>7&&283);$M=new Uint8Array(256);N3=A4(256);sQ=A4(256);EQ=A4(256);TA=A4(256);for(var A=0;A<256;A++){y=A?n[255^U[A]]:0;y^=y<<1^y<<2^y<<3^y<<4;y=y&255^y>>>8^99;$M[A]=y;D=y<<1^(y>>7&&283);var C=D^y;N3[A]=D<<24|y<<16|y<<8|C;sQ[A]=C<<24|N3[A]>>>8;EQ[A]=y<<24|sQ[A]>>>
8;TA[A]=y<<24|EQ[A]>>>8}ge8=!0}y=A4(44);for(U=0;U<4;U++)y[U]=l[4*U]<<24|l[4*U+1]<<16|l[4*U+2]<<8|l[4*U+3];for(n=1;U<44;U++)l=y[U-1],U%4||(l=($M[l>>16&255]^n)<<24|$M[l>>8&255]<<16|$M[l&255]<<8|$M[l>>>24],n=n<<1^(n>>7&&283)),y[U]=y[U-4]^l;this.key=y};
_.Z(u3H,_.xT);
u3H.prototype.encrypt=function(l){var D=l.length;l=new Uint8Array(l.buffer.slice(l.byteOffset,l.byteOffset+D));for(var U=this.cipherBlock,n=0;n<D&&this.blockOffset<16;)l[n++]^=U[this.blockOffset++];for(var y=D-(D-n)%16;n<y;)ver(this),l[n++]^=U[0],l[n++]^=U[1],l[n++]^=U[2],l[n++]^=U[3],l[n++]^=U[4],l[n++]^=U[5],l[n++]^=U[6],l[n++]^=U[7],l[n++]^=U[8],l[n++]^=U[9],l[n++]^=U[10],l[n++]^=U[11],l[n++]^=U[12],l[n++]^=U[13],l[n++]^=U[14],l[n++]^=U[15];if(n<D)for(ver(this),this.blockOffset=0;n<D;)l[n++]^=
U[this.blockOffset++];return l};
var ver=function(l){for(var D=l.key,U=l.counter[0]^D[0],n=l.counter[1]^D[1],y=l.counter[2]^D[2],A=l.counter[3]^D[3],C=3;C>=0&&!(l.counter[C]=-~l.counter[C]);C--);for(var h,b,u=4;u<40;)C=N3[U>>>24]^sQ[n>>16&255]^EQ[y>>8&255]^TA[A&255]^D[u++],h=N3[n>>>24]^sQ[y>>16&255]^EQ[A>>8&255]^TA[U&255]^D[u++],b=N3[y>>>24]^sQ[A>>16&255]^EQ[U>>8&255]^TA[n&255]^D[u++],A=N3[A>>>24]^sQ[U>>16&255]^EQ[n>>8&255]^TA[y&255]^D[u++],U=C,n=h,y=b;l=l.cipherBlock;C=D[40];l[0]=$M[U>>>24]^C>>>24;l[1]=$M[n>>16&255]^C>>16&255;l[2]=
$M[y>>8&255]^C>>8&255;l[3]=$M[A&255]^C&255;C=D[41];l[4]=$M[n>>>24]^C>>>24;l[5]=$M[y>>16&255]^C>>16&255;l[6]=$M[A>>8&255]^C>>8&255;l[7]=$M[U&255]^C&255;C=D[42];l[8]=$M[y>>>24]^C>>>24;l[9]=$M[A>>16&255]^C>>16&255;l[10]=$M[U>>8&255]^C>>8&255;l[11]=$M[n&255]^C&255;C=D[43];l[12]=$M[A>>>24]^C>>>24;l[13]=$M[U>>16&255]^C>>16&255;l[14]=$M[n>>8&255]^C>>8&255;l[15]=$M[y&255]^C&255};var QDk=!1;(function(){var l=function(n){return new Uint8Array(n)},D=function(n){for(var y=new Uint8Array(n.length),A=0;A<n.length;A++)y[A]=n[A];
return y},U=new Uint8Array([1]);
return U.length===1&&U[0]===1?l:D})();
var IZ;var L_r=function(l){a:{if(!QDk&&!gb){if(IZ){var D=IZ;break a}IZ=(D=window.crypto)==null?void 0:D.subtle;var U,n,y;if(((U=IZ)==null?0:U.importKey)&&((n=IZ)==null?0:n.sign)&&((y=IZ)==null?0:y.encrypt)){D=IZ;break a}IZ=void 0}D=void 0}D&&(this.nativeEncryptor=new GS7(l,D));this.encryptorPolyfill=new J5v(l)};
L_r.prototype.encrypt=function(l,D){var U=this,n;return _.P(function(y){switch(y.nextAddress){case 1:if(!U.nativeEncryptor){y.jumpTo(2);break}_.ZY(y,3);return y.yield(U.nativeEncryptor.encrypt(l,D),5);case 5:return y.return(y.yieldResult);case 3:n=_.kF(y),_.II(n),QDk=!0,U.nativeEncryptor=void 0;case 2:return y.return(U.encryptorPolyfill.encrypt(l,D))}})};
L_r.prototype.decrypt=function(l,D){return this.encrypt(l,D)};
var GS7=function(l,D){this.JSC$12925_aesKey=l;this.subtleCrypto=D};
GS7.prototype.encrypt=function(l,D){var U=this,n;return _.P(function(y){if(y.nextAddress==1)return _.ZY(y,2),y.yield(q_1(U,l,D),4);if(y.nextAddress!=2)return y.return(y.yieldResult);n=_.kF(y);_.II(n);QDk=!0;throw n;})};
var q_1=function(l,D,U){var n,y;return _.P(function(A){switch(A.nextAddress){case 1:if(l.cryptoKey){A.jumpTo(2);break}return A.yield(l.subtleCrypto.importKey("raw",l.JSC$12925_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:l.cryptoKey=A.yieldResult;case 2:return n={name:"AES-CTR",counter:U,length:128},A.yield(l.subtleCrypto.encrypt(n,l.cryptoKey,D),4);case 4:return y=A.yieldResult,A.return(new Uint8Array(y))}})},J5v=function(l){this.JSC$12928_aesKey=l};
J5v.prototype.encrypt=function(l,D){this.encryptor||(this.encryptor=new u3H(this.JSC$12928_aesKey));for(var U=this.encryptor,n=0;n<4;n++)U.counter[n]=D[n*4]<<24|D[n*4+1]<<16|D[n*4+2]<<8|D[n*4+3];U.blockOffset=16;return this.encryptor.encrypt(l)};
J5v.prototype.decrypt=function(l,D){return this.encrypt(l,D)};var Mgz={},Wtl=Gn("yt-idb-pref-storage",{objectStores:(Mgz.prefs={addedAtVersion:1},Mgz),shared:!1,upgrade:function(l,D){D(1)&&D0(ly(l,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Hq=function(l){this.token=l};
_.Hq.getInstance=function(){return _.P(function(l){return l.return(new Promise(function(D){_.Qo().then(function(U){U?(_.Hq.instance||(_.Hq.instance=new _.Hq(U)),D(_.Hq.instance)):D(void 0)})}))})};
_.Hq.prototype.get=function(l){var D=this,U,n,y;return _.P(function(A){if(A.nextAddress==1)return A.yield(BvC(D.token),2);if(A.nextAddress!=3)return U=A.yieldResult,A.yield(U.get("prefs",l),3);n=A.yieldResult;if(!n)return A.return();y=(0,_.J3)();return n.expirationTimestampMs<=y?A.return():A.return(n.value)})};
_.Hq.prototype.set=function(l,D,U){U=U===void 0?31536E3:U;var n=this,y,A,C;return _.P(function(h){if(h.nextAddress==1)return y=(0,_.J3)(),A={key:l,value:D,expirationTimestampMs:y+U*1E3},h.yield(BvC(n.token),2);C=h.yieldResult;return h.yield(C.put("prefs",A),0)})};
_.Hq.prototype.remove=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(BvC(D.token),2);U=n.yieldResult;return n.yield(U.delete("prefs",l),0)})};var YM={},RAk=(YM.INVALID_ENCODER_VERSION="Invalid encoder version",YM.KEY_CREATION_FAILED="Failed to create encoder key",YM.UNKNOWN_DECODE_ERROR="Failed to decode PES data",YM.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",YM.WRONG_DATA_TYPE="Encoder cannot process the data type",YM),Wc=function(l,D){D=D===void 0?{}:D;_.rc.call(this,RAk[l],Object.assign({},{name:"PESEncoderError",type:l},D));this.type=l;this.level="WARNING";Object.setPrototypeOf(this,Wc.prototype)};
_.Z(Wc,_.rc);var OQ=function(){};
OQ.prototype.encode=function(l,D){try{return this.encodeImpl(l,D)}catch(U){bdg(U,h1G)}};
OQ.prototype.decode=function(l,D){try{return this.decodeImpl(l,D)}catch(U){bdg(U,PN3)}};
var ZO7=function(l,D,U){var n;return _.P(function(y){if(y.nextAddress==1)return _.ZY(y,2),y.yield(l.decodeAsyncImpl(D,U),4);if(y.nextAddress!=2)return y.return(y.yieldResult);n=_.kF(y);bdg(n,PN3);_.Kz(y)})};
OQ.prototype.decodeAsyncImpl=function(l,D){return Promise.resolve(this.decodeImpl(l,D))};var Vn=function(l,D){this.aesEncryptor=l;this.aesEncryptorAsync=D};
_.Z(Vn,OQ);Vn.prototype.encodeImpl=function(l,D){D=gpc(D);l=(new TextEncoder).encode(JSON.stringify(l));return this.aesEncryptor.encrypt(l,D)};
Vn.prototype.decodeImpl=function(l,D){if(!(l instanceof Uint8Array))throw CNG(1);var U=new TextDecoder;D=gpc(D);l=this.aesEncryptor.decrypt(l,D);return JSON.parse(U.decode(l))};
Vn.prototype.decodeAsyncImpl=function(l,D){var U=this,n,y,A;return _.P(function(C){if(C.nextAddress==1){if(!(l instanceof Uint8Array))throw CNG(1);n=new TextDecoder;y=gpc(D);return C.yield(U.aesEncryptorAsync.decrypt(l,y),2)}A=C.yieldResult;return C.return(JSON.parse(n.decode(A)))})};var uc_={accountLinkStatusEntity:b5m,booleanEntity:wy8,buttonEntity:pZ7,captionTrack:J9v,channelHandle:uXv,chipEntity:AYH,commerceAcquisitionClientPayloadEntity:WK7,commerceCartListEntity:BRr,compositeSourceEntity:cCk,multiviewStagingEntity:pNm,contextNoteFeedEntityPayload:tLH,contextNoteUserRatingEntityPayload:Xz8,continuationTokenEntity:YQ_,downloadQualityPickerEntity:wqH,downloadsPageRefreshTokenEntity:zr8,downloadsPageViewConfigurationEntity:ACh,downloadStatusEntity:rx1,dismissState:Wu5,sfvAudioItemCurrentlyPlayingEntity:O$r,
emojiFountainDataEntity:dPH,emojiCustomizationSetEntity:kOr,fakeChannel:fev,fakePlaylist:$Tv,fakePlaylistEntryCollection:NDk,fakeVideo:Es5,fakeVideoDescription:TD7,featuredProductsEntity:a21,flowStateEntity:BAh,iconBadgeEntity:CX8,interstitialInteractionStateEntity:XLk,likeButtonAnimationEntity:Wty,liveChatPollStateEntity:j6H,dataFreshnessEntity:XZH,liveViewerLeaderboardChatEntryPointStateEntity:KP7,liveViewerLeaderboardPointsEntity:c9z,liveReactionsDataEntity:K$_,logoEntity:ax_,macroMarkerEntity:Bvm,
mainDownloadsLibraryEntity:fS7,mainDownloadsListEntity:$3H,mainPlaylistDownloadStateEntity:sZH,mainPlaylistEntity:OM_,mainPlaylistVideoEntity:Vmm,mainVideoDownloadStateEntity:EMz,mainVideoEntity:Uj7,markersEngagementPanelSyncEntity:CNH,markersVisibilityOverrideEntity:h1H,musicAlbumReleaseDetail:rCk,musicAlbumReleaseDownloadMetadataEntity:xj_,musicAlbumRelease:wN1,musicAlbumReleaseUserDetail:z1m,musicArtistDetail:$j5,musicArtist:f2_,musicArtistUserDetail:Nv7,musicDownloadsLibraryEntity:jf7,musicLibraryEdit:sf1,
musicLibraryStatusEntity:Epz,musicPlaylist:TvH,musicPlaylistDownloadMetadataEntity:Ft8,musicShare:HdH,musicTrackDetail:Od7,musicTrackDownloadMetadataEntity:oph,musicTrack:Yp7,musicTrackUserDetail:Vpg,offlineOrchestrationActionWrapperEntity:LP5,offlineVideoPolicy:q0v,offlineVideoStreams:MyH,offlineabilityEntity:T38,orchestrationWebSamplingEntity:IS1,pageHeaderEntity:Gwh,pdpStateEntity:h5_,pinnedProductEntity:tpv,playbackData:RZ8,playerStateEntity:PNh,quantityIncrementerEntity:PX7,refresh:Z$y,saveToPlaylistListEntity:JK_,
selectedChipIndexEntityPayload:bd_,settingEntity:wRz,stringEntity:rZ8,suggestedFeedbackChipStateEntity:gp7,transfer:eZm,trendingOfferEntity:XNy,videoDownloadContextEntity:mOm,videoOverviewAsyncDataEntity:pwg,videoPlaybackPositionEntity:F$H,votingEntity:e2H,ytMainChannelEntity:np1,youchatPendingResponseEntity:ucg,ytMainDownloadedVideoEntity:HMm,ytMainVideoEntity:yC8};var eA5,a4_,bQ,R1o,Zdl,S_5,dB8,kS_,Xxm;eA5=function(l,D){this.JSC$12947_wrapped=l;this.JSC$12947_encoderRegistry=D;this.changedKeys={}};
a4_=function(l,D){return mBv(l.JSC$12947_encoderRegistry,D.version).decode(D.data,D.key)};
_.tg8=function(l,D,U){return l.JSC$12947_wrapped.objectStore("EntityStore").get(D).then(function(n){if(n){if(U&&n.entityType!==U)throw Error("Jf");return a4_(l,n)}})};
bQ=function(l,D,U){return U?(U=U.map(function(n){return _.tg8(l,n,D)}),Dl.all(U)):l.JSC$12947_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(D)).then(function(n){return n.map(function(y){return a4_(l,y)})})};
_.Mp_=function(l,D,U){var n=VmC(D),y=mBv(l.JSC$12947_encoderRegistry,1),A=Object.assign({},D);return l.JSC$12947_wrapped.objectStore("EntityStore").get(n).then(function(C){if(C){if(C.entityType!==U)throw Error("Jf");A.entityMetadata||(C=a4_(l,C),A.entityMetadata=C.entityMetadata)}}).then(function(){var C={key:n,
entityType:U,data:y.encode(A,n),version:1};return Dl.all([l.JSC$12947_wrapped.objectStore("EntityStore").put(C),Xxm(l,A,U)])}).then(function(){S_5(l,n,U);
return n})};
R1o=function(l,D){var U=_.lQ(D).entityType;return Dl.all([l.JSC$12947_wrapped.objectStore("EntityStore").delete(D),kS_(l,D)]).then(function(){S_5(l,D,U)})};
Zdl=function(l,D,U,n){var y=mBv(l.JSC$12947_encoderRegistry,1);return _.tg8(l,D,n).then(function(A){if(A){A=wqG(A,U);var C={key:D,entityType:n,data:y.encode(A,D),version:1};return Dl.all([l.JSC$12947_wrapped.objectStore("EntityStore").put(C),Xxm(l,A,n)])}}).then(function(){S_5(l,D,n);
return D})};
S_5=function(l,D,U){var n=l.changedKeys[U];n||(n=new Set,l.changedKeys[U]=n);n.add(D)};
dB8=function(l,D,U){var n=VmC(D);U=vpg(U);if(!U)return Dl.resolve([]);U=new U(D);l=l.JSC$12947_wrapped.objectStore("EntityAssociationStore");D=[];U=_.B(U.getAssociations());for(var y=U.next();!y.done;y=U.next())D.push(l.put({parentEntityKey:n,childEntityKey:y.value}));return Dl.all(D).then(function(A){return A.map(function(C){return C[1]})})};
kS_=function(l,D){return l.JSC$12947_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(D))};
Xxm=function(l,D,U){var n=VmC(D);return kS_(l,n).then(function(){return dB8(l,D,U)})};var K_1=function(){};
_.Z(K_1,OQ);K_1.prototype.encodeImpl=function(l){return l};
K_1.prototype.decodeImpl=function(l){if(l instanceof Uint8Array)throw CNG(0);return l};var JC$=function(){this.cacheMap={};this.cacheMap[0]=new K_1;if(!_.q("aes_pes_encoder_killswitch")){var l=this.cacheMap;try{var D=_.oG();var U=gpc(D);var n=new Vn(new J5v(U),new L_r(U))}catch(y){throw l=y instanceof Error?new Wc("KEY_CREATION_FAILED",{originalMessage:y.message}):new Wc("KEY_CREATION_FAILED"),_.EU(l),l;}l[1]=n}},mBv=function(l,D){D=D===void 0?0:D;
l=l.cacheMap[D];if(!l)throw D=new Wc("INVALID_ENCODER_VERSION",{encoderVersion:D}),_.EU(D),D;return l};var C7=function(l,D){_.xT.call(this);this.token=l;this.JSC$12961_encoderRegistry=D;this.observers=[];l=new _.nC.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.oG());l.onmessage=this.JSC$12961_handleMessage.bind(this);this.channel=l};
_.Z(C7,_.xT);_.Pc=function(l,D,U){var n,y,A,C;return _.P(function(h){if(h.nextAddress==1)return h.yield(AC3(l.token),2);if(h.nextAddress!=3)return n=h.yieldResult,h.yield(_.h3(n,["EntityStore","EntityAssociationStore"],D,function(b){y=new eA5(b,l.JSC$12961_encoderRegistry);return U(y)}),3);
A=h.yieldResult;y&&(C=y.changedKeys,Object.keys(C).length>0&&(l.channel.postMessage(C),c55(l,C)));return h.return(A)})};
C7.prototype.observe=function(l){var D=this;this.observers.push(l);return function(){var U=D.observers.indexOf(l);U>=0&&D.observers.splice(U,1)}};
var JnB=function(l){var D;return _.P(function(U){if(U.nextAddress==1)return U.yield(_.Pc(l,{mode:"readonly",enableRetries:!0},function(n){return n.JSC$12947_wrapped.objectStore("EntityStore").getAll()}),2);
D=U.yieldResult;return U.return(Promise.all(D.filter(function(n){return!!n}).map(function(n){var y,A;
return _.P(function(C){if(C.nextAddress==1){y=n.key;A=n.entityType;var h=C.yield;var b=ZO7(mBv(l.JSC$12961_encoderRegistry,n.version),n.data,n.key);return h.call(C,b,2)}return C.return({key:y,entityType:A,data:C.yieldResult})})})))})};
C7.prototype.JSC$12961_handleMessage=function(l){c55(this,l.data)};
var c55=function(l,D){l=_.B(l.observers);for(var U=l.next();!U.done;U=l.next())U=U.value,U(D)};
C7.prototype.disposeInternal=function(){this.channel.close()};
var Qf9;var iN,xB8,f2g;iN={};_.pxr=(iN.mainVideoEntity="mainVideoEntityActionMetadata",iN.mainPlaylistEntity="mainPlaylistEntityActionMetadata",iN.musicTrack="musicTrackEntityActionMetadata",iN.musicPlaylist="musicPlaylistEntityActionMetadata",iN);xB8=new _.A7("DOWNLOADS_ENTITY_TYPE_MAP");_.RJ=_.n7("","downloadsPageViewConfigurationEntity");f2g=_.n7("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.RZ$=_.n7("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.n7("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.n7("SMART_DOWNLOADS_ENABLED","settingEntity");_.n7("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var XNd=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var xjg=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var jD1={isLeaderTab:!0};var hZl={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var lN=window,js=lN.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",Ctg=lN.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Fo,uL9=lN.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||WF,Ddk=lN.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||lf1,Vqz=lN.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||gv7,hjC=lN.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Lr7;var BS9;z3({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 tP3=vW9(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(l){return l}}}),SkC=vW9(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(l){return l}}}),L4o=new Map;var SA9=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],ecg;var F_h=function(l){return _.V0({type:"SET_EPHEMERAL_ACTION",payload:l})};var oem={ephemeralAction:null};var wx5=pS({ephemeralAction:function(l,D){l=l===void 0?oem.ephemeralAction:l;switch(D.type){case "SET_EPHEMERAL_ACTION":return D.payload;default:return l}}});var r5H=function(l){return _.V0({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:l})};var zA1={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var f41={sharedUi:zA1,a11y:oem,entities:{}},X0C={sharedUi:function(l,D){l=l===void 0?zA1:l;switch(D.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},l,{animatedThumbnailEnabled:D.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},l,{inlinePreviewEnabled:D.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},l,{currentPageType:D.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},l,{currentPageSubType:D.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},l,{persistentPanelVisible:D.payload});default:return l}},
a11y:wx5,entities:l2g};var x2c={playlistId:"",inviteLinkURL:""};var $By={continuationCommand:{}};var q3o=pS({continuationCommand:function(l,D){l=l===void 0?$By.continuationCommand:l;switch(D.type){case "SET_CONTINUATION_COMMAND":return D.payload.continuationCommand;default:return l}}});var F4N={currentFormId:"",commandsMap:{}};var MKg=pS({isLeaderTab:function(l,D){l=l===void 0?jD1.isLeaderTab:l;switch(D.type){case "SET_IS_LEADER_TAB":var U,n;return(n=D==null?void 0:(U=D.payload)==null?void 0:U.isLeaderTab)!=null?n:l;default:return l}}});var sDy;_.N_8=function(l){return _.V0({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:l}})};
sDy=function(l){return _.V0({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:l}})};var D2={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var tKK=pS({isDesktopSmallWidth:function(l,D){l=l===void 0?D2.isDesktopSmallWidth:l;switch(D.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return D.payload.isDesktopSmallWidth;default:return l}},
isShortsActive:function(l,D){l=l===void 0?D2.isShortsActive:l;switch(D.type){case "SET_IS_SHORTS_ACTIVE":return D.payload.isShortsActive;default:return l}},
isWatchWhileMode:function(l,D){l=l===void 0?D2.isWatchWhileMode:l;switch(D.type){case "SET_IS_WATCH_WHILE_MODE":return D.payload.isWatchWhileMode;default:return l}},
playerState:function(l,D){l=l===void 0?D2.playerState:l;switch(D.type){case "SET_PLAYER_STATE":return D.payload.playerState;default:return l}},
isFullscreen:function(l,D){l=l===void 0?D2.isFullscreen:l;switch(D.type){case "SET_IS_FULLSCREEN":return D.payload.isFullscreen;default:return l}},
isSmallScreenSqueezeback:function(l,D){l=l===void 0?D2.isSmallScreenSqueezeback:l;switch(D.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return D.payload.isSmallScreenSqueezeback;default:return l}},
isShortsPipActive:function(l,D){l=l===void 0?D2.isShortsPipActive:l;switch(D.type){case "SET_IS_SHORTS_PIP_ACTIVE":return D.payload.isShortsPipActive;default:return l}},
isPlaybackStarted:function(l,D){l=l===void 0?D2.isPlaybackStarted:l;switch(D.type){case "SET_IS_PLAYBACK_STARTED":return D.payload.isPlaybackStarted;default:return l}}});var gO_={currentMode:"canvas-hidden"};var kwc=function(){return function(l){return function(D){var U=l(D);_.Vh(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[D],!0);return U}}};var Eey,pVK;Eey=new _.Au;_.Vl=new _.A7("WATCH_PLAYER_PROMISE_TOKEN");_.T_g=new _.Au;_.I4k=new _.A7("SHORTS_PLAYER_PROMISE_TOKEN");pVK=new _.A7("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var dnB=function(){return function(l){return function(D){D.type==="ENTITY_LOADED"&&_.Jc().resolve(_.Vl).then(function(U){var n;(n=U.dispatchReduxAction)==null||n.call(U,D)});
return l(D)}}};var HOy={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Re$=pS({additionalContext:function(l,D){l=l===void 0?HOy.additionalContext:l;switch(D.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var U;return(U=D.payload)!=null?U:"";default:return l}},
impersonatedChannelUrl:function(l,D){l=l===void 0?HOy.impersonatedChannelUrl:l;switch(D.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var U;return(U=D.payload)!=null?U:"";default:return l}},
selectedVideoIds:function(l,D){l=l===void 0?HOy.selectedVideoIds:l;switch(D.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var U={};return Object.assign({},l,(U[D.payload]=!0,U));case "VIDEO_UNSELECTED":return D=D.payload,l=Object.assign({},l),delete l[D],l;default:return l}}});var Y_y={parentClickTrackingParams:""};var ZuC=pS({parentClickTrackingParams:function(l,D){l=l===void 0?Y_y.parentClickTrackingParams:l;switch(D.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return D.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return l}}});var OOm=function(l){return _.V0({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:l})},Vgr=function(l){return _.V0({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:l})};var iV1={stepStates:{}};var ee_=pS({stepStates:function(l,D){l=l===void 0?iV1.stepStates:l;switch(D.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var U=l,n=D.payload,y,A,C;l={};D={selectionStates:Object.assign({},(C=(y=U[n.stepId])==null?void 0:y.selectionStates)!=null?C:{},(l[n.token]={isSelected:n.isSelected},l)),userQuery:(A=U[n.stepId])==null?void 0:A.userQuery};y={};return Object.assign({},U,(y[n.stepId]=D,y));case "TALK_TO_RECS_UPDATE_USER_QUERY":return y=l,A=D.payload,C=
{selectionStates:Object.assign({},(n=(U=y[A.stepId])==null?void 0:U.selectionStates)!=null?n:{}),userQuery:{userQuery:A.userQuery,token:A.userQueryToken}},U={},Object.assign({},y,(U[A.stepId]=C,U));default:return l}}});var l$h,Dvy,n4m;l$h=function(l){return _.V0({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:l})};
Dvy=function(l){return _.V0({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:l})};
_.R7=function(l){return _.V0({type:"SET_CURRENT_PAGE_TYPE",payload:l})};
_.Uv1=function(l){return _.V0({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:l})};
n4m=function(l){return _.V0({type:"SET_CHIP_BAR_IS_STICKY",payload:l})};var vO9={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"};_.y2v=function(l){return _.V0({type:"SET_PLAYER_STATE",payload:{playerState:l}})};var Up={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:Gw3(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var mn$=pS({isTheaterMode:function(l,D){l=l===void 0?Gw3():l;switch(D.type){case "SET_IS_THEATER_MODE":return D.payload.isTheaterMode;default:return l}},
isWatchActive:function(l,D){l=l===void 0?Up.isWatchActive:l;switch(D.type){case "SET_IS_WATCH_ACTIVE":return D.payload.isWatchActive;default:return l}},
isLearningJourneyActive:function(l,D){l=l===void 0?Up.isLearningJourneyActive:l;switch(D.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return D.payload.isLearningJourneyActive;default:return l}},
isWatchFullscreen:function(l,D){l=l===void 0?Up.isWatchFullscreen:l;switch(D.type){case "SET_IS_WATCH_FULLSCREEN":return D.payload.isWatchFullscreen;default:return l}},
isWatchNarrowWidth:function(l,D){l=l===void 0?Up.isWatchNarrowWidth:l;switch(D.type){case "SET_IS_WATCH_NARROW_WIDTH":return D.payload.isWatchNarrowWidth;default:return l}},
isSwatcherooActive:function(l,D){l=l===void 0?Up.isSwatcherooActive:l;switch(D.type){case "SET_IS_SWATCHEROO_ACTIVE":return D.payload.isSwatcherooActive;default:return l}},
isWatchRetroMode:function(l,D){l=l===void 0?Up.isWatchRetroMode:l;switch(D.type){case "SET_IS_WATCH_RETRO_MODE":return D.payload.isWatchRetroMode;default:return l}},
isLiveChatCollapsed:function(l,D){l=l===void 0?Up.isLiveChatCollapsed:l;switch(D.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return D.payload.isLiveChatCollapsed;default:return l}},
openEngagementPanels:function(l,D){l=l===void 0?Up.openEngagementPanels:l;var U=[].concat(_.zz(l));switch(D.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return U.push(D.payload.panelToAdd),U;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return U.splice(U.indexOf(D.payload.panelToRemove),1),U;default:return l}},
playerState:function(l,D){l=l===void 0?Up.playerState:l;switch(D.type){case "SET_PLAYER_STATE":return D.payload.playerState;default:return l}},
watchScrollTop:function(l,D){l=l===void 0?Up.watchScrollTop:l;switch(D.type){case "SET_WATCH_SCROLL_TOP":return D.payload.watchScrollTop;default:return l}},
watchWindowSize:function(l,D){l=l===void 0?Up.watchWindowSize:l;switch(D.type){case "SET_WATCH_WINDOW_SIZE":return D.payload.watchWindowSize;default:return l}}});var A2y={surveyFeedbackData:{feedbackTokens:[]}};var aZG=pS({surveyFeedbackData:function(l,D){l=l===void 0?A2y.surveyFeedbackData:l;switch(D.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return D.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},l,D.payload);default:return l}}});var JYN={};var cYs=void 0;_.q("web_enable_redux_store_on_demand")||(cYs=Kug());var W1y=function(l,D,U){var n=this;this.listId=l;this.JSC$13105_updateCallback=D;this.isOfflineVideoCallback=U;_.EB().subscribe(function(){n.handleUpdate()})};
W1y.prototype.getPlaylistData=function(){var l=_.EB().getState().entities;if(this.listId&&this.listId!=="PPSV"){var D=Vp_(l,this.listId,!0),U=_.n7(this.listId,"mainPlaylistEntity"),n,y;l=l==null?void 0:(n=l.mainPlaylistEntity)==null?void 0:(y=n[U])==null?void 0:y.title;return p0N(D,l,this.listId)}D=_.jfc(XON(l));l=_.jfc(_.Z1(l));l=D.concat(l);return p0N(l)};
W1y.prototype.getPlaylistId=function(){return this.listId};
W1y.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13105_updateCallback(this.listId,this.getPlaylistData(),{})};var nd=function(l,D,U,n){n=n===void 0?[]:n;this.JSC$13108_playlistNetworkManager=l;this.listId=D;this.JSC$13108_updateCallback=U;this.videoIds=n;this.pendingUpdates=[];this.currentIndex=0};
nd.prototype.JSC$13108_setCurrentIndex=function(l){this.currentIndex=l};
nd.prototype.setListId=function(l){this.listId=l};
var Br8=function(l,D){l.currentCreateRequest&&l.currentCreateRequest.cancel(D);l.currentUpdateRequest&&l.currentUpdateRequest.cancel(D);l.currentRefreshRequest&&l.currentRefreshRequest.cancel(D)};
nd.prototype.delete=function(){Br8(this,"PROXY DELETED")};
nd.prototype.addVideos=function(l,D,U){var n=this;U!==void 0?this.videoIds.splice.apply(this.videoIds,[U,0].concat(_.zz(l))):this.videoIds.push.apply(this.videoIds,_.zz(l));this.listId||this.currentCreateRequest?(l.forEach(function(y,A){y={addedVideoId:y,action:"ACTION_ADD_VIDEO"};U&&(y.addedVideoPosition=U+A);n.pendingUpdates.push(y)}),yS(this)):C47(this,D.onCreateListCommand)};
var h_H=function(l,D,U,n,y){o9g(l.videoIds,D,U);D>l.currentIndex&&U<=l.currentIndex?l.JSC$13108_setCurrentIndex(l.currentIndex+1):D===l.currentIndex?l.JSC$13108_setCurrentIndex(U):D<l.currentIndex&&U>=l.currentIndex&&l.JSC$13108_setCurrentIndex(l.currentIndex-1);l.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:n,movedSetVideoIdPredecessor:y});yS(l)},C47=function(l,D){Br8(l,"OBSOLETE");
l.currentCreateRequest=P4z(l.JSC$13108_playlistNetworkManager,D,l.videoIds);_.Kb(l.currentCreateRequest,function(){l.currentCreateRequest=void 0}).then(function(U){l.setListId(U.playlistId);
l.pendingUpdates.length>0?yS(l):bVr(l)})},yS=function(l){if(l.pendingUpdates.length!==0&&(l.currentRefreshRequest&&l.currentRefreshRequest.cancel("OBSOLETE"),!l.currentUpdateRequest&&!l.currentCreateRequest)){var D=l.pendingUpdates.splice(0,l.pendingUpdates.length);
l.currentUpdateRequest=l.JSC$13108_playlistNetworkManager.updatePlaylist(l.listId,D);_.Kb(l.currentUpdateRequest,function(){l.currentUpdateRequest=void 0}).then(function(){l.pendingUpdates.length>0?yS(l):bVr(l)}).thenCatch(function(){l.pendingUpdates.unshift.apply(l.pendingUpdates,_.zz(D))})}},bVr=function(l){l.currentRefreshRequest=_.g4_(l.JSC$13108_playlistNetworkManager,l.listId,l.currentIndex,l.videoIds[l.currentIndex]);
_.Kb(l.currentRefreshRequest,function(){l.currentRefreshRequest=void 0}).then(function(D){l.JSC$13108_updateCallback(D.playlistId,D.playlistPanelRenderer,D.autoplayRenderer)})};
nd.prototype.size=function(){return this.videoIds.length};var unh=function(l,D,U,n){n=n===void 0?[]:n;nd.call(this,l,D,U,n);this.JSC$13108_playlistNetworkManager=l;this.listId=D;this.JSC$13108_updateCallback=U;this.videoIds=n};
_.Z(unh,nd);_.AC=function(l,D,U,n,y,A,C){y=y===void 0?[]:y;C=C===void 0?Pb:C;nd.call(this,l,D,U,y);this.JSC$13108_playlistNetworkManager=l;this.listId=D;this.JSC$13108_updateCallback=U;this.onAuthChange=n;this.videoIds=y;this.storage=A;this.cookieReader=C;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Vu(_.Tn,this.checkLoggedInStatusChange.bind(this),1E3)};
_.Z(_.AC,nd);_.W=_.AC.prototype;_.W.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Vu(_.Tn,this.checkLoggedInStatusChange.bind(this),1E3)};
_.W.JSC$13108_setCurrentIndex=function(l){nd.prototype.JSC$13108_setCurrentIndex.call(this,l);this.store()};
_.W.delete=function(){_.Tn.cancelJob(this.queueSapisIdJob);nd.prototype.delete.call(this)};
_.W.setListId=function(l){nd.prototype.setListId.call(this,l);this.store()};
_.W.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var v4H=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],QaH=["playerResponse","videoDetails"],Gcg=["response","currentVideoEndpoint","watchEndpoint","videoId"],J27=["response","currentVideoEndpoint","watchEndpoint","playlistId"],L1v=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],qny=["response","contents","twoColumnWatchNextResults","playlist","playlist"],MJr=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
R_z=["response","contents","twoColumnWatchNextResults"];var WN={},w0N=(WN.WEB_UNPLUGGED="^unplugged/",WN.WEB_UNPLUGGED_ONBOARDING="^unplugged/",WN.WEB_UNPLUGGED_OPS="^unplugged/",WN.WEB_UNPLUGGED_PUBLIC="^unplugged/",WN.WEB_CREATOR="^creator/",WN.WEB_KIDS="^kids/",WN.WEB_EXPERIMENTS="^experiments/",WN.WEB_MUSIC="^music/",WN.WEB_REMIX="^music/",WN.WEB_MUSIC_EMBEDDED_PLAYER="^music/",WN.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",WN);var PXc,P4z;PXc=function(l,D){this.networkManager=l;this.innertubeTransportService=D};
P4z=function(l,D,U){if(!_.M(D,_.Bq))return _.Le(Error("Nf"));_.M(D,_.Bq).videoIds=U;U={create_playlist_title:_.C3("QUEUE",void 0,"Queue")};return FuK(_.oL(l.innertubeTransportService,D,U),xng)};
_.g4_=function(l,D,U,n){D={videoId:n,playlistId:D,playlistIndex:U};U=_.T3(qMz);return FuK(_.BN(l.innertubeTransportService,D,U),oOG)};
PXc.prototype.updatePlaylist=function(l,D){return FuK(_.oL(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:l,actions:D}}),jHd)};var ZVy=function(l){this.storage=l},e_7;
ZVy.prototype.store=function(l,D){D=D===void 0?0:D;if(this.storage&&l.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",l),this.storage.set("TLPQindex",String(D)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(U){}};
ZVy.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
ZVy.prototype.getPlaylistId=function(){if(!this.storage)return null;var l=null;try{l=this.storage.get("TLPQplaylist")}catch(D){}return l};var $nN=["navigationEndpoint","watchEndpoint","videoId"],fZN=["nextButtonVideo","watchEndpoint","videoId"];_.GI=new _.A7("NETWORK_TOKEN");_.sm=new _.A7("PAGE_TOKEN");_.Cd=new _.A7("PLAYLIST_TOKEN");var mv_;mv_=new _.A7("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Ju=new _.A7("INNERTUBE_TRANSPORT_TOKEN");var a$r,hC,X$1,Sn_,dvr,K1h;a$r=new Set(["ci","cr","carml"]);hC=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13155_parkedJobs=new Map;this.parkedProcessors=new Map};
_.PN=function(){hC.instance||(hC.instance=new hC);return hC.instance};
hC.prototype.onAny=function(l){return _.tJk(this,l,2)};
hC.prototype.parkOrScheduleJob=function(l,D,U,n,y){_.bN(this,U)?_.M9().addJob(l,D,n):(y&&(l=X$1(l),Sn_(this,l,D,U,y)),y=this.JSC$13155_parkedJobs.get(U),y||(this.JSC$13155_parkedJobs.set(U,[]),y=this.JSC$13155_parkedJobs.get(U)),y.push({job:l,priority:D,delay:n}))};
hC.prototype.addListener=function(l,D,U){U&&(D=X$1(D),Sn_(this,D,0,l,U));U=this.parkedProcessors.get(l);U||(this.parkedProcessors.set(l,[]),U=this.parkedProcessors.get(l));U.push(D)};
hC.prototype.processSignal=function(l){if(!_.bN(this,l)){this.inProgressSignals.add(l);var D=this.JSC$13155_parkedJobs.get(l);if(D){D=_.B(D);for(var U=D.next();!U.done;U=D.next())U=U.value,_.M9().addJob(U.job,U.priority,U.delay);this.JSC$13155_parkedJobs.delete(l)}if(D=this.parkedProcessors.get(l)){D=_.B(D);for(U=D.next();!U.done;U=D.next())U=U.value,U();this.parkedProcessors.delete(l)}this.signals.push(l);this.inProgressSignals.delete(l)}};
_.bN=function(l,D){return a$r.has(D)||_.il("IS_HOMEPAGE_COLD")||_.il("IS_RESULTS_PAGE_COLD")||_.il("IS_WATCH_PAGE_COLD")?l.signals.indexOf(D)>=0:!0};
X$1=function(l){var D=!1;return function(){D||(D=!0,l())}};
Sn_=function(l,D,U,n,y){if(kc8.has(n))_.M9().addJob(D,U,y);else{var A=l.compoundSignals.get(n);A&&_.M9().addJob(function(){_.bN(l,n)||(A.isTimeoutConditionSatisfied?_.M9().addJob(D,U):A.timeoutConditionObservers.push(function(){_.M9().addJob(D,U)}))},U,y)}};
_.tJk=function(l,D,U){if(D.length>1){var n=[],y=Object.create(null);D=_.B(D);for(var A=D.next();!A.done;A=D.next())A=A.value,y[A]||(n.push(A),y[A]=!0);D=n}if(D.length===1)return D[0];A=D;n="";y=U===2?"|":"&";A.sort();A=_.B(A);for(var C=A.next();!C.done;C=A.next())n+=C.value+y;if(!l.compoundSignals.get(n)){y=0;A=[];C=_.B(D);for(var h=C.next();!h.done;h=C.next())h=h.value,y++,_.bN(l,h)||A.push(h);(U=U===2)&&y>A.length||!U&&!A.length?l.signals.push(n):dvr(l,n,U,D,A)}return n};
dvr=function(l,D,U,n,y){var A=y.length,C=function(){U||--A===0?l.processSignal(D):K1h(l,D)};
y=_.B(y);for(var h=y.next();!h.done;h=y.next())l.addListener(h.value,C);l.compoundSignals.set(D,{signals:n,isOnAny:U,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});K1h(l,D)};
K1h=function(l,D){if(!_.bN(l,D)){var U=l.compoundSignals.get(D);if(U&&!U.isTimeoutConditionSatisfied){for(var n=!1,y=0,A=0,C=_.B(U.signals),h=C.next();!h.done;h=C.next()){var b=h.value;h=!_.bN(l,b);kc8.has(b)?n=!0:(b=l.compoundSignals.get(b))?h&&!b.isTimeoutConditionSatisfied&&(A++,U.isInitialized||b.timeoutConditionObservers.push(function(){K1h(l,D)})):h&&y++}U.isInitialized=!0;
U.isOnAny?n&&(U.isTimeoutConditionSatisfied=!0):y===0&&A===0&&(U.isTimeoutConditionSatisfied=!0);if(U.isTimeoutConditionSatisfied)for(U=_.B(U.timeoutConditionObservers),n=U.next();!n.done;n=U.next())n=n.value,n()}}};
hC.prototype.processSignal=hC.prototype.processSignal;hC.prototype.parkOrScheduleJob=hC.prototype.parkOrScheduleJob;hC.prototype.onAny=hC.prototype.onAny;_.vG("ytsignals.getInstance",_.PN);hC.prototype.onAny=hC.prototype.onAny;hC.prototype.parkOrScheduleJob=hC.prototype.parkOrScheduleJob;hC.prototype.processSignal=hC.prototype.processSignal;var kc8=new Set(["eop","eocs","dl","pcl"]);_.kq=new _.A7("MINIPLAYER_SERVICE");var gv,c2h,p$h;gv=function(l,D,U){var n=_.AH.getInstance();if(!e_7){var y=new zQB;var A=void 0,C=_.H3("ID_TOKEN");C&&y.isAvailable()&&(A=new NK(y,"yt-queue"+C));e_7=new ZVy(A)}y=e_7;A=_.PN();this.JSC$13162_actionRouter=n;this.JSC$13162_pageManager=l;this.playlistManager=D;this.JSC$13162_playlistNetworkManager=U;this.storage=y;this.signals=A;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.uN=function(){if(!c2h){var l=_.Jc(),D=l.resolve(_.G8(_.sm)),U=l.resolve(_.G8(_.GI)),n=l.resolve(_.G8(_.Cd));l=l.resolve(_.Ju);c2h=new gv(D,n,new PXc(U,l))}return c2h};
p$h=function(l,D,U){if(U){var n;if(((n=l.responsePlaylistData)==null?void 0:n.playlistId)!==U)return}l.responsePlaylistData&&(U=HuN(D,l.responsePlaylistData),l.responsePlaylistData=(0,_.we.unsafeClone)(l.responsePlaylistData),Oul(l.responsePlaylistData,U));U=l.temporaryItems.findIndex(function(y){return y.videoId===D});
U>-1&&l.temporaryItems.splice(U,1);_.vN(l,_.QS(l,l.response?l.response.autoplayRenderer:void 0))};
_.xvh=function(l,D){if(l.responsePlaylistData){var U=Y3_(D,l.responsePlaylistData);Oul(l.responsePlaylistData,U);if(l.queueProxy){var n=l.queueProxy;U<0||(n.videoIds.splice(U,1),U<n.currentIndex&&n.JSC$13108_setCurrentIndex(n.currentIndex-1),n.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:D}),yS(n))}}_.vN(l,_.QS(l,l.response?l.response.autoplayRenderer:void 0))};
gv.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.vN(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
gv.prototype.setPlaylistData=function(l,D,U){this.temporaryItems=[];this.listId=l;this.responsePlaylistData=D;_.vN(this,_.QS(this,U))};
var ja7=function(l){return(l==null?0:l.playlistId)?l.playlistId:"PPSV"},F17=function(l){return l&&l.playlistId?l.playlistId==="PPSV"?!0:Ypc(_.EB().getState().entities,l.playlistId):!1};
gv.prototype.isPlayingOfflineVideo=function(){return this.response?F17(this.response):!1};
gv.prototype.closeMiniplayer=function(l){var D=this.queueProxy&&this.queueProxy.size()<=1,U=_.Jc().resolve(_.kq);if(!this.queueProxy||D)this.queueProxy&&this.clearQueue(),U.close(!0);else{U.pipController.getWindow()&&window.focus();D=this.responsePlaylistData;var n=this.temporaryItems.length+(D&&D.contents?D.contents.length:0);D=_.C3("QUEUE_CLEARED_UNPLURALIZED")||_.hJ("QUEUE_CLEARED",n);D=_.Hc(D);U=_.C3("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");n=_.C3("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.hJ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",n);var y=_.C3("MINIPLAYER_CLOSE",void 0,"Close"),A=_.C3("CANCEL",void 0,"Cancel");_.z_(this.JSC$13162_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.$B(U),dialogMessages:[_.$B(n)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.$B(y),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
D]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.$B(A)}}}}}}],l)}};
_.QS=function(l,D){var U={},n=l.response;U.autoplayRenderer=D;if(!l.responsePlaylistData&&!l.temporaryItems.length)return!n||!n.hasRelatedVideoData&&_.q("kevlar_prefetch_data_augments_network_data")||(U.playerData={rvs:n.relatedVideoArgs,endScreenRenderer:n.endScreenRenderer}),U;U.playerData={};if(l.index===void 0)return _.EU(Error("Pf")),U;U.panel=l.responsePlaylistData?(0,_.we.unsafeClone)(l.responsePlaylistData):{titleText:_.$B(_.C3("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
D=U.panel;if(D.contents)for(var y=_.B(l.temporaryItems),A=y.next();!A.done;A=y.next())D.contents.push({playlistPanelVideoRenderer:A.value});l.queueProxy&&n&&n.playingVideo&&n.playingVideoId&&!IZN(n.playingVideoId,U.panel)&&(D=n.playingVideo,y=U.panel,A=l.index,y.contents&&y.contents.splice(A===void 0?0:A,0,{playlistPanelVideoRenderer:D}));n&&n.playingVideoId&&(D=l.index,y=U.panel,D=!y.contents||D>=y.contents.length?void 0:y.contents[D].playlistPanelVideoRenderer,D&&D.videoId===n.playingVideoId||(D=
HuN(n.playingVideoId,U.panel),l.index=D!==-1?D:l.index?l.index-1:0));D=TZg(l.index+1,U.panel);y=void 0;l.index>0&&(y=TZg(l.index-1,U.panel));if(y||D)U.autoplayRenderer=NZd(D,y,U.autoplayRenderer);!D&&(n==null?0:n.relatedVideoArgs)&&(U.playerData.rvs=n.relatedVideoArgs);n=n?n.playlistIndexOffset:0;l.queueProxy?lqC(U.panel,l.index,n,EO$,!0,!0,!0):lqC(U.panel,l.index,n);U.playerData.playlistPanelRenderer=U.panel;return U};
gv.prototype.openToast=function(l){_.Jc().resolve(_.kq).openToast(l,_.C3("ADDED_TO_QUEUE",void 0,"Added to queue"))};
gv.prototype.isMiniplayerActive=function(){return _.Jc().resolve(_.kq).isMiniplayerActive()};
_.vN=function(l,D){l.playlistManager.setAutoplayRenderer(D.autoplayRenderer||null);l.playlistManager.setPlaylistData(D.panel||null);D.playerData&&l.playlistManager.setPlayerPlaybackControlData(D.playerData)};var UPo="#";var o4k={},w$v={},r2H={},z_m={},f$y={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:(o4k.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",o4k),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:(w$v.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",w$v),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:(r2H.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",r2H),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:(z_m.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",z_m),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 wZ_=[{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:f$y},{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:f$y}}];var Sh3;_.yf=[[["cWlheGNzN2U4aG85a2luZCM=","ejd6ZmoyZTV4MXZzdmFsdWUj"],"MmVicWczYzVnMG5lQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQj"]];
Sh3=[[["YnNhcnZ0Z292ZGZmcHJpbWFyeSM=",null,null],[null,["OWt3ZzFzMXo3OHZreXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIj","eDZuc2VsaXNxNW1qc3R5bGUtc2NvcGUj"],null],["Izc5ZWt4aHd5ZnhtbWFzdGhlYWQtYWQ=",["azczYjBxNTYxYmZ6eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM="],null],[null,["bWxmb2xiZjllZ3M2eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM=","eWt3cXZ3bm56dTc2c3R5bGUtc2NvcGUj"],null],[null,["anZudTloNWZtdGdmeXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM=","aG40eWtldGRrN2Jzc3R5bGUtc2NvcGUj"],null],[null,["c245bGNiYWhoY3F6eXRkLWFkLXNsb3QtcmVuZGVyZXIj"],
null]],[["M3k5eWdoM2hhZHBjcGxheWVyLWFkcyM=",null,null]]];_.nU=["NGVranR3YjBsNXg1Z2xvYmFsQ2FsbGJhY2tzIw==","Z3JoOWZsYTF5MzJ2b25BYm5vcm1hbGl0eURldGVjdGVkIw==","dzZpdTRlamF0bWJ4b25BZFNraXAj","OW9mb2NnbThscTg3cmF3X3BsYXllcl9yZXNwb25zZSM=","Z3FqcndzdmVueW43YWRTbG90cyM="];_.Ge="NGVranR3YjBsNXg1Z2xvYmFsQ2FsbGJhY2tzIw== Z3JoOWZsYTF5MzJ2b25BYm5vcm1hbGl0eURldGVjdGVkIw== dzZpdTRlamF0bWJ4b25BZFNraXAj OW9mb2NnbThscTg3cmF3X3BsYXllcl9yZXNwb25zZSM= I25qbXEwaHE0Mmljd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz amxvNTN6c3cxcnV6YWJfc2FfZWYj Z3FqcndzdmVueW43YWRTbG90cyM=".split(" ");var JC;JC=function(l,D,U){this.keX=l;this.agl=D;this.zqX=U};
_.O_l=[new JC("b.f_",!1,0),new JC("j.s_",!1,2),new JC("r.s_",!1,4),new JC("e.h_",!1,6),new JC("i.s_",!0,8),new JC("s.t_",!1,10),new JC("p.h_",!1,12),new JC("s.i_",!1,14),new JC("f.i_",!1,16),new JC("a.b_",!1,18),new JC("a.o_",!1),new JC("g.o_",!1,22),new JC("p.i_",!1,24),new JC("p.m_",!1),new JC("n.k_",!0,20),new JC("i.f_",!1),new JC("a.s_",!0),new JC("m.c_",!1),new JC("n.h_",!1,26),new JC("o.p_",!1),new JC("m.p_",!0,28),new JC("o.a_",!1),new JC("d.p_",!1),new JC("e.i_",!1)].reduce(function(l,D){l[D.keX]=
D;return l},{});var $v7=function(){};
$v7.prototype.flush=function(l,D){l=l===void 0?[]:l;D=D===void 0?!1:D;if(_.q("enable_client_streamz_web")){l=_.B(l);for(var U=l.next();!U.done;U=l.next())U=viy(U.value),this.rootSpec&&_.al(U,2,this.rootSpec),U={serializedIncrementBatch:_.c2(U.JSC$9688_serializeBinary())},_.Na("streamzIncremented",U,{sendIsolatedPayload:D})}};
var Bgl=function(){};
_.Z(Bgl,$v7);var Nr8=function(l){var D=new BM5;var U=new yq7;U=_.c7(U,1,"botguard");l=_.c7(U,2,l);this.rootSpec=_.tk(D,1,Ch7,l)};
_.Z(Nr8,$v7);var lV,say=new Map;var cQ$,h2B,L$9,ga9,QYK,twK,xP9,mP9;cQ$=2;h2B=2;L$9=2;ga9=2;QYK=2;twK=2;xP9=2;mP9=new Cd_;var Tr7,I$7;Tr7=function(){this.ongoingFlowNonces=new Map};
_.Bk=function(){I$7||(I$7=new Tr7);return I$7};
_.Wk=function(l,D,U){return{eventType:{flowEventNamespace:l,flowEventType:D},metadata:U,statusCode:void 0,csn:void 0,can:void 0}};
_.iK3=function(l,D){var U=_.Bk(),n=HVH(U,D,!0);U.logFlowEvent(l,D,n,void 0)};
Tr7.prototype.logFlowEvent=function(l,D,U,n){D={flowNonce:U||HVH(this,D),flowType:D,flowEventType:l.eventType};l.metadata&&(D.flowMetadata=l.metadata);l.statusCode!==void 0&&(D.flowEventStatus=l.statusCode);l.csn&&(D.csn=l.csn);l.can&&(D.can=l.can);_.Na("flowEvent",D,n)};
var HVH=function(l,D,U){U=U===void 0?!1:U;var n=l.ongoingFlowNonces.get(D);if(!n||U)n=eG(16),l.ongoingFlowNonces.set(D,n);return n};_.Ynz=new Bb8;var ygc={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var Ld=function(l,D,U,n,y,A,C){U=U===void 0?!1:U;n=n===void 0?!1:n;A=A===void 0?_.uN():A;this.hasRun=!1;this.nmv=l;this.kE7=D;this.sAa=U;this.fromHistory=n;this.previousVideoId=y;this.tbf=A;this.tempData=C;this.ycl=new _.hvy};
_.Z(Ld,ZS);Ld.prototype.validate=function(l){return!(!l.data.playerResponse||l.data.page!=="watch"&&l.data.page!=="learning_journey_watch"&&l.data.page!=="shorts"||this.hasRun)};
Ld.prototype.handle=function(l){var D=this,U=_.M(l.endpoint,_.za),n=_.M(l.endpoint,_.vk);if(_.q("kevlar_continue_playback_without_player_response")&&(U==null?0:U.videoId)&&this.previousVideoId&&(U==null?void 0:U.videoId)===this.previousVideoId&&(U==null?0:U.continuePlayback)&&!this.fromHistory)this.nmv.resolve();else{var y={};U?y.watch_endpoint=U:n&&(y.watch_endpoint=n,n.endTimeSeconds&&(y.end=n.endTimeSeconds));l.data.page==="watch"?(l.data.filler||this.sAa||(_.tJ("cfg"),_.AH.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(y,OVH(this,l.endpoint)),_.q("enable_masthead_quartile_ping_fix")&&Object.assign(y,VJr(this)),Object.assign(y,void 0),l.data.forceExternalPlaylist&&(y.external_list=!0)):l.data.page==="shorts"?_.AH.getInstance().triggerAction("yt-start-loading-shorts"):l.data.page==="learning_journey_watch"&&_.AH.getInstance().triggerAction("yt-start-loading-learning-journey");if(U=this.kE7()){try{U.loadVideoWithPlayerResponse(l.data.playerResponse,y),U.getPlayerPromise().then(this.nmv.resolve)}catch(A){_.EU(A),
this.nmv.resolve()}this.hasRun=!0;U.getPlayerPromise().then(function(A){A.addEventListener("onAbnormalityDetected",function(){var C=l.data.playerResponse,h=A.getVideoData().cpn;xP9=0;_.E4v=h;if(h=Yhs(C))D.ycl.increment("IN_PLAYER"),_.CU(5),_.q("ab_st_vid_ks")?A.pauseVideo(!0):A.stopVideo(),C.playabilityStatus=Object.assign({},C.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:h}}),C.videoDetails=void 0,_.AH.getInstance().triggerOptionalAction("yt-updated-playability-status",
C.playabilityStatus)})})}else _.II(Error("Sf"))}};
var OVH=function(l,D){var U=_.M(D,_.za);if(D&&U&&U.playlistId&&U.videoId&&(l=l.tbf,l.queueProxy?(l=l.queueProxy,U=l.listId===U.playlistId?l.attributionData.get(U.videoId):void 0):U=void 0,U))return{queue_info:U}},VJr=function(l){var D;
if((D=l.tempData)==null?0:D.adpings)return{adpings:l.tempData.adpings}};var qj=function(l,D,U){this.hasRun=!1;this.ws8=l;this.tAJ=D;this.qyd=U};
_.Z(qj,ZS);qj.prototype.validate=function(l){return!!_.we.getValueByKeys.apply(null,[l.data].concat(_.zz(R_z)))};
qj.prototype.handle=function(l){var D=this;this.ws8.promise.then(function(){var U=l.data;var n=_.we.getValueByKeys.apply(null,[U].concat(_.zz(v4H))),y=_.we.getValueByKeys.apply(null,[U].concat(_.zz(qny))),A=_.we.getValueByKeys.apply(null,[U].concat(_.zz(Gcg)));var C=(C=_.we.getValueByKeys.apply(null,[U].concat(_.zz(QaH))))?{videoId:C.videoId,thumbnail:C.thumbnail,title:C.title?_.$B(C.title):void 0,shortBylineText:C.author?_.$B(C.author):void 0}:void 0;var h=void 0;_.q("web_get_playlist_id_from_current_endpoint_ks")||
(h=_.we.getValueByKeys.apply(null,[U].concat(_.zz(J27))));var b=_.we.getValueByKeys.apply(null,[U].concat(_.zz(MJr))),u=_.we.getValueByKeys.apply(null,[U].concat(_.zz(L1v))),Q=!!b||!!u&&!!u.results&&u.results.length>0,G=0;y&&y.currentIndex&&y.localCurrentIndex&&(G=y.currentIndex-y.localCurrentIndex);y&&y.playlistId&&(h=y.playlistId);U={rawResponse:U,autoplayRenderer:n,hasRelatedVideoData:Q,playingVideo:C,playingVideoId:A,playlistPanelRenderer:y,playlistId:h,playlistIndex:y&&y.currentIndex,relatedVideoArgs:b,
endScreenRenderer:u,playlistIndexOffset:G};a:{n=D.qyd;y=D.tAJ;n.response=U;if(F17(U))n.downloadPlaylistProxy&&n.downloadPlaylistProxy.getPlaylistId()===ja7(U)||(n.downloadPlaylistProxy=new W1y(ja7(U),n.setPlaylistData.bind(n),n.isPlayingOfflineVideo.bind(n))),n.responsePlaylistData=n.downloadPlaylistProxy.getPlaylistData(),n.listId=ja7(U),n.index=0;else if(U.playlistPanelRenderer&&U.playlistId&&U.autoplayRenderer)U.playlistId.startsWith("TLPQ")?n.queueProxy?n.listId===U.playlistId?(n.index=U.playlistIndex,
n.responsePlaylistData=U.playlistPanelRenderer,n.queueProxy.JSC$13108_setCurrentIndex(n.index)):U.playingVideoId&&n.index!==void 0&&y.clientParams.autoSaveToQueue&&(n.index+=1,n.queueProxy.JSC$13108_setCurrentIndex(n.index),n.queueProxy.addVideos([U.playingVideoId],{},n.index)):(n.queueProxy=new _.AC(n.JSC$13162_playlistNetworkManager,U.playlistId,n.setPlaylistData.bind(n),n.clearQueue.bind(n),_.VKl(U.playlistPanelRenderer),n.storage),n.responsePlaylistData=U.playlistPanelRenderer,n.listId=U.playlistId,
n.index=U.playlistIndex):(n.index=U.playlistIndex,n.listId!==U.playlistId&&n.clearQueue(),n.responsePlaylistData=U.playlistPanelRenderer,n.listId=U.playlistId,n.playlistProxy=new unh(n.JSC$13162_playlistNetworkManager,U.playlistId,n.setPlaylistData.bind(n),_.VKl(U.playlistPanelRenderer)));else if(!n.queueProxy)n.responsePlaylistData=void 0;else if(U.playingVideoId&&y.clientParams.autoSaveToQueue){if(n.index===void 0){_.EU(Error("Of"));n.clearQueue();break a}n.queueProxy.videoIds.includes(U.playingVideoId)||
(n.index+=1,n.queueProxy.JSC$13108_setCurrentIndex(n.index),n.queueProxy.addVideos([U.playingVideoId],{},n.index))}_.vN(n,_.QS(n,n.response.autoplayRenderer))}})};var i9H=function(l,D){D=D===void 0?_.uN():D;oZ.call(this);this.jG.push(new qj(this.uZ,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},D));this.jG.push(new Ld(this.uZ,l,!1,!1));_.q("web_response_commands_chunk_processor")&&this.jG.push(new w3)};
_.Z(i9H,oZ);i9H.prototype.processChunk=function(l){l&&l.data.player===void 0&&this.uZ.resolve();oZ.prototype.processChunk.call(this,l)};var Mj=function(l,D){l=l===void 0?{layer:0}:l;this.hasRun=!1;this.createScreenConfig=l;this.v5s=D};
_.Z(Mj,ZS);Mj.prototype.validate=function(l){return!(this.hasRun||!l.endpoint)};
Mj.prototype.handle=function(l){var D=_.he(),U,n,y=(n=_.M((U=l.endpoint)==null?void 0:U.commandMetadata,_.W6))==null?void 0:n.rootVe;this.v5s&&y?_.KM(D,y,this.v5s,this.createScreenConfig):rP8(D,l.endpoint,this.createScreenConfig);this.hasRun=!0};var Rf=function(l,D){this.hasRun=!1;this.m5d=l;this.previousVideoId=D};
_.Z(Rf,ZS);Rf.prototype.validate=function(l){return _.q("kevlar_continue_playback_without_player_response")&&(l=_.M(l.endpoint,_.za),(l==null?0:l.videoId)&&this.previousVideoId&&(l==null?void 0:l.videoId)===this.previousVideoId&&(l==null?0:l.continuePlayback))?!1:this.m5d.nnv===0};
Rf.prototype.handle=function(l){_.AH.getInstance().triggerAction("yt-stop-old-player",l.data,!0)};var lak=function(l){l=l===void 0?{layer:0}:l;oZ.call(this);this.jG.push(new Rf(this));this.jG.push(new Mj(l));this.jG.push(new Fr(l))};
_.Z(lak,oZ);var mt=function(){ZS.apply(this,arguments)};
_.Z(mt,ZS);mt.prototype.validate=function(l){return!!l.data.preconnect};
mt.prototype.handle=function(l){_.ae("bc");l=_.B(l.data.preconnect);for(var D=l.next();!D.done;D=l.next())D=D.value,(new Image).src=D};var DWv=function(l,D,U,n,y,A,C){U=U===void 0?{layer:0}:U;A=A===void 0?_.uN():A;oZ.call(this);if(n)if(y){y=A;this.jG.push(new qj(this.uZ,D,y));this.jG.push(new mt);var h,b;this.jG.push(new Ld(this.uZ,l,!1,!((h=D.clientParams)==null||!h.fromHistory),(b=D.clientParams)==null?void 0:b.previousVideoId,y,D.tempData));var u;this.jG.push(new Rf(this,(u=D.clientParams)==null?void 0:u.previousVideoId));var Q;(Q=D.clientParams)!=null&&Q.fromHistory||(U.layer||(U=Object.assign({},U,{layer:0})),this.jG.push(new Mj(U,
C)),this.jG.push(new Fr(U)))}else this.jG.push(new qj(this.uZ,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},A)),this.jG.push(new Ld(this.uZ,l,!1,!1));else this.jG.push(new Rf(this)),this.jG.push(new Mj(U)),this.jG.push(new Fr(U));_.q("web_response_commands_chunk_processor")&&n&&this.jG.push(new w3)};
_.Z(DWv,oZ);DWv.prototype.processChunk=function(l){l&&l.data.player===void 0&&this.uZ.resolve();oZ.prototype.processChunk.call(this,l)};var UW8=function(){this.hasRun=this.hasRun=!1};
_.Z(UW8,ZS);UW8.prototype.validate=function(l){return!this.hasRun&&!(!l.data.csn||!l.data.rootVe)};
UW8.prototype.handle=function(l){this.hasRun=!0;_.SG(l.data.csn,l.data.rootVe,3)};var nwy=function(l,D,U){U=U===void 0?{layer:0}:U;oZ.call(this);this.jG.push(new Ld(this.uZ,l));this.jG.push(new Mj(U));this.jG.push(new Fr(U))};
_.Z(nwy,oZ);var ywk=function(l,D,U,n,y){U=U===void 0?{layer:0}:U;n=n===void 0?_.uN():n;oZ.call(this);var A=!!D&&!!D.clientParams&&!!D.clientParams.miniplayer;A&&this.jG.push(new UW8);this.jG.push(new qj(this.uZ,D,n));this.jG.push(new mt);var C,h;this.jG.push(new Ld(this.uZ,l,A,!((C=D.clientParams)==null||!C.fromHistory),(h=D.clientParams)==null?void 0:h.previousVideoId,n,D.tempData));var b;this.jG.push(new Rf(this,(b=D.clientParams)==null?void 0:b.previousVideoId));var u;(u=D.clientParams)!=null&&u.fromHistory||
(U.layer||(U=Object.assign({},U,{layer:A?3:0})),this.jG.push(new Mj(U,y)),this.jG.push(new Fr(U)));_.q("web_response_commands_chunk_processor")&&this.jG.push(new w3)};
_.Z(ywk,oZ);var af,B8r;af={};
_.Awh=(af["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},af["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},af["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},af["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},af["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},af["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},af["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},af);_.tC=new _.Vo("yt-edu");_.Wn7=function(){this.JSC$13260_eduDisplayedThisLoad_={}};
B8r=function(l){var D=_.Wn7.getInstance();var U=_.RG("kevlar_tooltip_impression_cap");D=U&&parseInt(_.tC.get(l+"-impression")||0,10)>=U||_.tC.get(l+"-dismissed")?!1:(U=_.Awh[l])&&!D.JSC$13260_eduDisplayedThisLoad_[U.setKey||l]&&(U.titleText&&_.C3(U.titleText)||U.bodyText&&_.C3(U.bodyText))?!0:!1;if(!D)return null;D=_.Awh[l];if(!D)return null;U=D.bodyText?_.C3(D.bodyText):void 0;var n=D.titleText?_.C3(D.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:D.position,popup:{bubbleHintRenderer:{text:n?
_.$B(n):void 0,detailsText:U?_.$B(U):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.$B(_.C3("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:l}}]}}}}}}}},{eduImpressionAction:{key:l}}]};
_.Th(_.Wn7);var lDG=!1;for(var CZ8="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),hP_=[],Xc=6;Xc>=1;Xc--)hP_.push({columnCount:Xc,query:Xc==1?0:Xc*2*107-4+32,className:"grid-"+Xc+"-columns",width:Xc*2*107+"px"});_.Sp=function(l){this.actionRouter_=l=l===void 0?_.AH.getInstance():l;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.PZ8(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.PZ8=function(l){var D=l.documentWidth_-(l.miniGuideVisible_?72:0)-(l.guidePersistentAndVisible_?240:0)-(l.persistentPanelVisible_?400:0);return hP_.find(function(U){return D>U.query})};
_.Th(_.Sp);var b91=function(){var l=this;this.JSC$13272_keyboardInUse=!1;document.addEventListener("keydown",function(){l.onKeydown()});
document.addEventListener("mousedown",function(){l.JSC$13272_keyboardInUse=!1})},gwh;
b91.prototype.isKeyBoardInUse=function(){return this.JSC$13272_keyboardInUse};
b91.prototype.onKeydown=function(){this.JSC$13272_keyboardInUse=!0};var uvz,Kd;_.kp=new _.Vo("yt-mentions");_.dv=function(){};
uvz=function(l,D){return Kd(D,"drag-to-reorder-edu-displayed")};
Kd=function(l,D,U,n,y,A){U=U===void 0?"OPEN_POPUP_POSITION_TOP":U;if(D){if(_.kp.get(D))return;_.kp.set(D,!0,n)}if(y&&A!==void 0){D=Number(_.kp.get(y)||0);if(D>=A)return;_.kp.set(y,D+1)}return[{openPopupAction:{popupType:"HINT",position:U,popup:{bubbleHintRenderer:{detailsText:l,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Th(_.dv);var vwz,Qtv,GDv;vwz=function(l,D,U,n){this.JSC$13282_taskManager_=l;this.onFulfilled_=typeof D==="function"?D:null;this.onRejected_=typeof U==="function"?U:null;this.JSC$13282_context_=n};
Qtv=function(l,D){l.onFulfilled_&&_.Ji(l.JSC$13282_taskManager_,function(){l.onFulfilled_.call(l.JSC$13282_context_,D)})};
GDv=function(l,D){l.onRejected_&&_.Ji(l.JSC$13282_taskManager_,function(){l.onRejected_.call(l.JSC$13282_context_,D)})};
_.cN=function(l){this.JSC$13285_taskManager_=l;this.callbacks_=[]};
_.cN.prototype.then=function(l,D,U){this.callbacks_.push(new vwz(this.JSC$13285_taskManager_,l,D,U));return this};
_.cN.prototype.onSuccess=function(l){this.callbacks_.forEach(function(D){Qtv(D,l)})};
_.cN.prototype.onFailure=function(l){this.callbacks_.forEach(function(D){GDv(D,l)})};
_.cN.prototype.cancel=function(){this.callbacks_.length=0};
Jfv(_.cN);_.WKc=null;_.vK=new _.A7("ACTIVITY_TOKEN");var Jwr;_.JS=new _.A7("PAGE_REQUEST_TOKEN");Jwr=new _.A7("FETCH_PBJ_TOKEN");_.Lnr=function(l){if(l.validatedFragments_.length==0)return null;if(!l.mergedPrefetchedData_){for(var D=[],U=_.B(l.validatedFragments_),n=U.next();!n.done;n=U.next()){n=_.B(l.fragmentConfiguration_[n.value].graftedKeys);for(var y=n.next();!y.done;y=n.next())(y=l.prefetchedData_[y.value].trackingParams)&&D.push(y)}l.mergedPrefetchedData_={};Object.assign(l.mergedPrefetchedData_,l.prefetchedData_,{clientSideGrafts:D})}return l.mergedPrefetchedData_};var qo1;_.pd=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
qo1=function(l,D,U){if(_.BRs(D))return l.prefetchCache_.get(_.CX$(D,U))};_.xp=new _.A7("NAVIGATION_TOKEN");var Mj5=function(l){var D=this;var U=U===void 0?bKo():U;var n=n===void 0?_.Jc().resolve(_.xp):n;this.onePickCommand=l;this.JSC$13357_playlistNetworkManager=U;this.navigationManager=n;this.videoPickerBuilder=_.h5g("yt-addtoplaylist");_.oYz(dA8(KQ1(kay(this.videoPickerBuilder.setTitle(l.modalTitle).setSize(1E3).addView(pd7()).addView(cH_())).addView("youtube"),l.selectButtonLabel)),function(y){D.handleAction(y)})};
Mj5.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
Mj5.prototype.handleAction=function(l){var D=this;if(l&&this.onePickCommand.listId&&l.action==="picked"&&l.docs){var U=[];l.docs.forEach(function(n){U.push({addedVideoId:n.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13357_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,U).then(function(){_.q("playlist_add_video_hard_reload_killswitch")?D.navigationManager.reload():RPy(D.navigationManager)})}};var Z9k=function(){if(this.constructor===Z9k)throw new TypeError("Uf");};
_.W=Z9k.prototype;_.W.dispose=function(){};
_.W.disconnect=function(){};
_.W.reconnect=function(){};
_.W.observe=function(l,D,U){return{element:l,option:U}};
_.W.unobserveByKey=function(){};var gdC=function(l,D){D=D===void 0?0:D;Z9k.call(this);this.viewroot=l;this.defaultPrescanHeight=D;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),l?{root:l,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.Z(gdC,Z9k);_.W=gdC.prototype;_.W.dispose=function(){this.disconnect();this.handlers.clear()};
_.W.disconnect=function(l){this.isConnected=!1;this.pauseObservingUntilReconnect=l===void 0?!1:l;this.observer.disconnect();l=_.B(this.prescanObservers.values());for(var D=l.next();!D.done;D=l.next())D.value.disconnect()};
_.W.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var l=_.B(this.handlers),D=l.next();!D.done;D=l.next()){var U=_.B(D.value);D=U.next().value;var n=U.next().value;U=!1;n=_.B(n.keys());for(var y=n.next();!y.done;y=n.next())if((y=y.value)&&y.state==="prescan"){U=!0;break}U&&ePr(this,D).observe(D);this.observer.observe(D)}}};
_.W.handleObserveEvent=function(l){l=_.B(l);for(var D=l.next();!D.done;D=l.next()){D=D.value;var U=this.handlers.get(D.target);if(U){var n=D.isIntersecting;U=_.B(U);for(var y=U.next();!y.done;y=U.next()){var A=_.B(y.value);y=A.next().value;A=A.next().value;y&&(y.state==="visible"&&n||y.state==="hidden"&&!n)&&(A(D.target,y.state),y.calledOnce&&this.unobserveByKey({element:D.target,option:y}))}}}};
_.W.handlePrescanEvent=function(l){l=_.B(l);for(var D=l.next();!D.done;D=l.next()){D=D.value;var U=this.handlers.get(D.target);if(U&&D.isIntersecting){U=_.B(U);for(var n=U.next();!n.done;n=U.next()){var y=_.B(n.value);n=y.next().value;y=y.next().value;n&&n.state==="prescan"&&(y(D.target,n.state),n.calledOnce&&this.unobserveByKey({element:D.target,option:n}))}}}};
_.W.observe=function(l,D,U){var n=(n=this.handlers.get(l))&&n.has(U)?{element:l,option:U}:void 0;if(n)return n;n={element:l,option:U};this.handlers.has(l)||this.handlers.set(l,new Map);var y=this.handlers.get(l);y&&!y.has(U)&&y.set(U,D);this.pauseObservingUntilReconnect||(U.state==="prescan"&&ePr(this,l).observe(l),this.observer.observe(l));return n};
_.W.unobserveByKey=function(l){var D=this.handlers.get(l.element);if(D&&D.has(l.option)){D.delete(l.option);if(l&&l.option.state==="prescan")for(var U=_.B(this.prescanObservers.values()),n=U.next();!n.done;n=U.next())n.value.unobserve(l.element);D.size===0&&(this.handlers.delete(l.element),this.observer.unobserve(l.element))}};
var ePr=function(l,D){var U=l.defaultPrescanHeight;D.hasAttribute("prescan-height")&&(D=Number(D.getAttribute("prescan-height")),isNaN(D)||(U=D));if(l.prescanObservers.has(U))return l.prescanObservers.get(U);D="-0.1px -0.1px "+U+"px -0.1px";D=new IntersectionObserver(l.handlePrescanEvent.bind(l),l.viewroot?{root:l.viewroot,rootMargin:D}:{rootMargin:D});l.prescanObservers.set(U,D);return D};var mW_=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],aaH=function(){var l,D=this;this.JSC$13374_actionRouter=l=l===void 0?_.AH.getInstance():l;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return D.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return D.visibilityObservedElementHandlerKeys}}},tjh,Sok,Knm;
aaH.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.q("kevlar_use_vimio_behavior")&&_.H3("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=uQ$())};
aaH.prototype.dispose=function(){this.visibilityMonitor&&_.tX(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
aaH.prototype.handleVisibilityRefreshed=function(){for(var l=_.B(this.targetMap.entries()),D=l.next();!D.done;D=l.next()){var U=_.B(D.value);D=U.next().value;U=U.next().value;_.Xvz(this,D,U)}};
_.dWz=function(l,D,U){Sok(l,U);var n=_.kDr(l,D);n.element=U;l.targetedElements.set(U,D);_.Xvz(l,D,n)};
Sok=function(l,D){var U=l.targetedElements.get(D);if(U){var n=l.targetMap.get(U);n&&(delete n.element,l.targetMap.set(U,n));l.targetedElements.delete(D);l.visibilityObserver&&l.visibilityObservedElementHandlerKeys&&(U=l.visibilityObservedElementHandlerKeys.get(D))&&(l.visibilityObserver.unobserveByKey(U),l.visibilityObservedElementHandlerKeys.delete(D))}};
_.Xvz=function(l,D,U){var n=U.action,y=U.element;y&&n&&(mW_.includes(D)||_.H3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||l.visibilityMonitor&&l.visibilityMonitor.isNodeVisible(y)?Knm(l,D,U):l.visibilityObserver&&(l.visibilityObservedElementHandlerKeys||(l.visibilityObservedElementHandlerKeys=new WeakMap),n=l.visibilityObserver.observe(y,function(){Knm(l,D,U);l.visibilityObservedElementHandlerKeys.delete(y)},{calledOnce:!0,
state:"visible"}),l.visibilityObservedElementHandlerKeys.set(y,n)))};
Knm=function(l,D,U){var n=U.action;(U=U.element)&&n&&(_.z_(l.JSC$13374_actionRouter,[n],U),l.targetMap.delete(D),l.targetedElements.delete(U),l.triggeredTargets.add(D))};
_.kDr=function(l,D){var U=l.targetMap.get(D);U||(U={},l.targetMap.set(D,U));return U};
_.jp=function(){tjh||(tjh=new aaH);return tjh};var cw5=document.createElement("div");cw5.style.touchAction="pan-down";var vdN=cw5.style.touchAction==="pan-down";var pvr,xWr;pvr=function(){this.hammerFn=FCr();this.JSC$13382_screenManager=_.he();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.UE(83615);_.pM(this.JSC$13382_screenManager,this.ve);Q5l()};
_.Fc=function(){xWr||(xWr=new pvr);return xWr};
pvr.prototype.registerTouchEvents=function(l,D,U){var n=_.EW.apply(3,arguments),y=this.hammerFn(l,{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}]]});U&&y.set({touchAction:U});this.nodeManagerMapping.set(l,y);var A=
Gks(D);n=_.B(n);for(var C=n.next();!C.done;C=n.next()){C=C.value;if(C.includes("swipe")||C.includes("pinch")||C.includes("pan"))C.includes("swipe")?y.get("swipe").set({enable:!0,direction:A,velocity:.2}):C.includes("pinch")?y.get("pinch").set({enable:!0}):C.includes("pan")&&(y.get("pan").set({enable:!0,direction:A}),y.get("swipe").set({enable:!0,direction:A,velocity:.2}),y.get("swipe").recognizeWith("pan"));jtr(this,l,y,C)}};
var jtr=function(l,D,U,n){U.on(n,function(y){if(n.includes("pinch"))l.lastPinchTime=Date.now();else if(n.includes("swipe")&&Date.now()-l.lastPinchTime<400)return;y.pointerType!=="mouse"&&(y=n==="doubletap"?{coordinates:y.center}:n.includes("pan")?y:n.includes("swipe")?{target:y.target}:{},D.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:y})))})};
pvr.prototype.unregisterTouchEvents=function(l){var D=_.EW.apply(1,arguments),U=this.nodeManagerMapping.get(l);if(U){D=_.B(D);for(var n=D.next();!n.done;n=D.next())U.off(n.value);this.nodeManagerMapping.delete(l);l.style.touchAction="unset"}};var Fn5=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Jgc=null;_.LU={getLocalStorage:_.ZR(function(){try{var l=new rJN;var D=l.isAvailable()?l:null}catch(U){return null}return D?new _.mw(D):null}),
getSessionStorage:_.ZR(function(){var l=new zQB;return l.isAvailable()?new _.mw(l):null})};var ow_=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},j5s=function(){ow_.instance||(ow_.instance=new ow_);
return ow_.instance},FK_=function(l){var D=l.networkEvents;
l.networkEvents=[];return _.q("enable_network_monitoring")?D:[]};var wv8;wv8={};_.rwg=Gn("yt-serviceworker-metadata",{objectStores:(wv8.auth={addedAtVersion:1},wv8["resource-manifest-assets"]={addedAtVersion:2},wv8),shared:!0,upgrade:function(l,D){D(1)&&ly(l,"resource-manifest-assets");D(2)&&ly(l,"auth")},
version:2});var e5_=self.location.origin+"/";mYc([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);mYc([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);mYc([/\.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\//]);mYc([/purge_shell=1/]);var zPh=void 0;zPh=zPh===void 0?[]:zPh;
for(var fay=[],$W7=_.B(vSm),N85=$W7.next();!N85.done;N85=$W7.next())fay.push({key:N85.value});for(var stH=_.B(zPh),Ewv=stH.next();!Ewv.done;Ewv=stH.next())fay.push(Ewv.value);var T88,Zs=_.nC==null?void 0:(T88=_.nC.performance)==null?void 0:T88.memory,Xw3=!1,odo={},dYK={},ed={},mX=navigator;var of=function(l){this.JSC$13427_expiringStorage=new ft(l)};
of.prototype.set=function(l,D,U){U=U!==void 0?Date.now()+U:void 0;this.JSC$13427_expiringStorage.set(l,D,U)};
of.prototype.get=function(l){return this.JSC$13427_expiringStorage.get(l)};
of.prototype.remove=function(l){this.JSC$13427_expiringStorage.remove(l)};var Edd=_.wL(["https://www.youtube.com/",""]),TRC=_.wL(["https://studio.youtube.com/",""]),VS$="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",HKd=null,nRC;var Ia1=_.wL(["https://www.youtube.com/iframe_api"]),wv=function(){this.playerResolver_=_.wf();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.RR;this.playbackDurationSeconds_=0},H9g=function(l){var D=function(){return window.YT&&typeof window.YT.ready==="function"};
if(D())return _.Ut(window.YT);var U=_.wf(),n=_.SU("SCRIPT");n.onload=n.onreadystatechange=function(){n.readyState&&n.readyState!="loaded"&&n.readyState!="complete"||(n.onload=_.RR,n.onreadystatechange=_.RR,n.onerror=_.RR,D()?U.resolve(window.YT):U.reject(new _.rc("Failed to load the iframe player library","script.onload",n.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
n.onerror=function(y){n.onload=_.RR;n.onreadystatechange=_.RR;n.onerror=_.RR;U.reject(new _.rc("Failed to load the iframe player library","script.onerror",y&&y.target&&y.target.src))};
_.BY(n,_.Ja(Ia1));l.insertBefore(n,l.firstChild);return U.promise},Yog=function(l,D,U){var n,y;
_.P(function(A){switch(A.nextAddress){case 1:return l.playbackEndedCallback_=U,_.ZY(A,2),A.yield(H9g(D.parentElement||null),4);case 4:n=A.yieldResult;_.WG(A,3);break;case 2:return y=_.kF(A),y instanceof _.rc&&y.args&&y.args[0]=="script.onerror"?_.II(y):_.EU(y),A.return();case 3:n.ready(function(){return new n.Player(D,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:l.onPlayerReady_.bind(l),onStateChange:l.onPlayerStateChange_.bind(l),
onCueRangeExit:l.onCueRangeExit_.bind(l)}})}),_.Kz(A)}})};
_.W=wv.prototype;_.W.getPlayerPromise=function(){return this.playerPromise_};
_.W.onPlayerReady_=function(l){this.playerResolver_.resolve(l.target)};
_.W.onPlayerStateChange_=function(l){if(l.data==YT.PlayerState.PLAYING){l=l.target;var D=l.getCurrentTime();l.addCueRange("playback",D,D+this.playbackDurationSeconds_)}};
_.W.onCueRangeExit_=function(l){l.data=="playback"&&(l.target.stopVideo(),this.playbackEndedCallback_())};
_.W.stopVideo=function(){this.playerPromise_.then(function(l){l.stopVideo()})};
var O9_=function(l){l.playerVars_&&l.playerPromise_.then(function(D){typeof D.cueVideoByPlayerVars!="function"?_.II(new _.rc("vmh: player API not ready","cueVideoByPlayerVars",typeof D.cueVideoByPlayerVars)):D.cueVideoByPlayerVars(l.playerVars_)})};
wv.prototype.playVideo=function(){var l=this;this.playerVars_&&this.playerPromise_.then(function(D){typeof D.loadVideoByPlayerVars!="function"?(D=new _.rc("vmh: player API not ready","loadVideoByPlayerVars",typeof D.loadVideoByPlayerVars),_.EU(D)):D.loadVideoByPlayerVars(l.playerVars_)})};
var Vjm=function(l,D,U,n,y){D&&(U===void 0&&(U=0),n===void 0&&(n=0),l.playbackDurationSeconds_=n/1E3,l.playerVars_={adformat:"17_8",videoId:D,suggestedQuality:"hd720",startSeconds:U/1E3,player_params:y})};
wv.prototype.mute=function(){this.playerPromise_.then(function(l){l.mute()})};
wv.prototype.unMute=function(){this.playerPromise_.then(function(l){l.unMute()})};var PTG=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var rv;rv=function(){this.tokenJars={};if(this.cookiesEnabled=_.Fi()){var l=_.xZ.get("CONSISTENCY",void 0);l&&ifg(this,{encryptedTokenJarContents:l})}};
_.gRN=function(){rv.instance||(rv.instance=new rv);return rv.instance};
rv.prototype.handleResponse=function(l,D){if(!D)throw Error("Zf");var U,n;D=((U=D.innerTubeRequest.context)==null?void 0:(n=U.request)==null?void 0:n.consistencyTokenJars)||[];var y;(l=(y=l.responseContext)==null?void 0:y.consistencyTokenJar)&&this.replace(D,l)};
rv.prototype.replace=function(l,D){l=_.B(l);for(var U=l.next();!U.done;U=l.next())delete this.tokenJars[U.value.encryptedTokenJarContents];ifg(this,D)};
var ifg=function(l,D){if(D.encryptedTokenJarContents&&(l.tokenJars[D.encryptedTokenJarContents]=D,typeof D.expirationSeconds==="string")){var U=Number(D.expirationSeconds);setTimeout(function(){delete l.tokenJars[D.encryptedTokenJarContents]},U*1E3);
l.cookiesEnabled&&_.j_("CONSISTENCY",D.encryptedTokenJarContents,U,void 0,!0)}};var ldv,ze;ldv=window.location.hostname.split(".").slice(-2).join(".");_.FP=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var l=_.H3("LOCATION_PLAYABILITY_TOKEN");_.H3("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=DI7(this))&&(l=this.localStorage.get("yt-location-playability-token"));l&&(this.locationPlayabilityToken=l,this.mostRecentPosition=void 0)};
_.FP.getInstance=function(){ze=_.UG("yt.clientLocationService.instance");ze||(ze=new _.FP,_.vG("yt.clientLocationService.instance",ze));return ze};
_.FP.prototype.setLocationOnInnerTubeContext=function(l){l.client||(l.client={});if(this.mostRecentPosition)l.client.locationInfo||(l.client.locationInfo={}),l.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),l.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),l.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),l.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)l.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.FP.prototype.handleResponse=function(l){var D;l=(D=l.responseContext)==null?void 0:D.locationPlayabilityToken;l!==void 0&&(this.locationPlayabilityToken=l,this.mostRecentPosition=void 0,_.H3("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=DI7(this))&&this.localStorage.set("yt-location-playability-token",l,15552E3):_.j_("YT_CL",JSON.stringify({loctok:l}),15552E3,ldv,!0))};
var DI7=function(l){return l.localStorage===void 0?new _.Vo("yt-client-location"):l.localStorage};
_.FP.prototype.clearLocationPlayabilityToken=function(l){l==="TVHTML5"?(this.localStorage=DI7(this))&&this.localStorage.remove("yt-location-playability-token"):_.cJo("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.FP.prototype.getCurrentPositionFromGeolocation=function(){var l=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var D=!1,U=1E4;_.H3("INNERTUBE_CLIENT_NAME")==="MWEB"&&(D=!0,U=15E3);return new Promise(function(n,y){navigator.geolocation.getCurrentPosition(function(A){l.mostRecentPosition=A;n(A)},function(A){y(A)},{enableHighAccuracy:D,
maximumAge:0,timeout:U})})};
_.FP.prototype.createUnpluggedLocationInfo=function(l){var D={};l=l.coords;if(l==null?0:l.latitude)D.latitudeE7=Math.floor(l.latitude*1E7);if(l==null?0:l.longitude)D.longitudeE7=Math.floor(l.longitude*1E7);if(l==null?0:l.accuracy)D.locationRadiusMeters=Math.round(l.accuracy);return D};
_.FP.prototype.createLocationInfo=function(l){var D={};l=l.coords;if(l==null?0:l.latitude)D.latitudeE7=Math.floor(l.latitude*1E7);if(l==null?0:l.longitude)D.longitudeE7=Math.floor(l.longitude*1E7);return D};var UI5=function(l,D){var U=cH();l||(l="unknown");D||(D="unknown");l="MAIN_APP_WEB_PAGE_TYPE_"+l.toUpperCase();l in SQz||(l="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");D="MAIN_APP_WEB_REQUEST_TYPE_"+D.toUpperCase();D in kAy||(D="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.yI(U,{mainAppWeb:{pageType:l,requestType:D,isShellLoad:_.il("IS_SHELL_LOAD",!1)}})},nE7={start:function(){_.yI(mT_(),{mainAppWeb:_.on()})},
success:function(){_.AS(mT_(),"SUCCESS")},
failure:function(){_.AS(mT_(),"FAILURE")},
cancelled:function(){_.AS(mT_(),"CANCELLED")}};var yT1,AT5,JR9;yT1=_.wL(["/sw.js"]);AT5=_.wL(["/sw.js?0"]);_.WqH=_.Ja(yT1);JR9=_.Ja(AT5);var Bn1=function(){var l=Error.apply(this,arguments);this.message=l.message;"stack"in l&&(this.stack=l.stack)};
_.Z(Bn1,Error);_.fU.prototype.load=function(l){this.megabloxUrl_=_.H3("YPC_MB_URL");_.pI(this.megabloxUrl_,(0,_.jU)(function(){l&&l()},this))};
_.zbl=function(l,D,U,n,y,A,C,h,b,u,Q){_.qDB(b);l.load((0,_.jU)(function(){try{var G=A?A:_.H3("HL"),J=_.H3("SESSION_INDEX");_.n0G("client",function(){Rv5("59",{helpCenterPath:"/youtube",locale:G,window:window}).JSC$10056_loadChatSupport({authuser:String(J)})})}catch(L){throw wX(10,Q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),y&&y(L),_.EU(L),L;
}CAv(this,D,U,n,y,A,C,h,b,u,Q)},l))};
_.fU.prototype.openFixFlowDialog=function(l,D,U,n){this.load((0,_.jU)(function(){try{hu7(this,_.UG("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(l).withIntegratorCallback(D).load(U,n)}catch(y){throw _.EU(y),y;}},this))};
var hu7=function(l,D,U,n){var y=D.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.q("enable_window_constrained_buy_flow_dialog")&&(y=y.usingPopupStyle(_.UG("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));n&&(y=y.usingCloseCallback(n));D.bootstrap.fromPaymentsUrl(l.megabloxUrl_);l=D.bootstrap.asMashupMode(y);U=U?U:_.H3("HL");l.usingGaiaIndex(_.H3("SESSION_INDEX")).usingLocale(U).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.q("enable_google_payments_buyflow_material2_style_web")?
l.usingStyle(":m2;pc=#444;ac=#065fd4"):l.usingStyle(":md;pc=#444;ac=#065fd4");return l},CAv=function(l,D,U,n,y,A,C,h,b,u,Q){try{var G=_.UG("payments.business.integration");
if(!G)throw new Bn1("payments.business.integration is undefined");var J=G.standaloneContextAuthId.forUserId(),L=hu7(l,G,A,function(){Rq9(!1);h&&h()});
C&&L.usingServerAnalyticsEventHandler(C);var R=L.inStandaloneContext(J).buyFlow(function(a){if(a&&(!a.integratorData||a.integratorData===""||a.error))if(a.error!=null)if(String(a.error)==="-1")_.Mu_(b);else{var S=String(a.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";wX(10,Q,S,a.debugCode);_.rX(S,b,a.debugCode);S=new _.rc("PAYMENT_ERROR_MESSAGE::"+a.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+a.internalErrorDetails);
_.EU(S)}else wX(10,Q,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.rX("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",b,"EMPTY_INTEGRATOR_DATA"),_.EU(Error("bg"));U&&(Rq9(!1),U(a))}).withEncryptedParameters(D);
u&&R.withClientParameters(eKz(_.w1B(u)));R.load(function(){wX(24,Q);_.XI("ttc",void 0,"commerce_transaction");ez("commerce_transaction");n&&(n(),Rq9(!0))},function(a){if(a==null?0:a.debugCode)var S=a==null?void 0:a.debugCode;
else if(!a||(a==null?0:a.debugCode))S="EMPTY_LOAD_FAILURE_ERROR",_.EU(Error(S));else{S="EMPTY_LOAD_FAILURE_DEBUG_CODE";var d=new _.rc("LOAD_FAILURE:"+a.message," DEBUG_CODE:"+S);_.EU(d)}wX(10,Q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",S);_.rX("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",b,S);_.EU(a);y&&y(a)})}catch(a){throw a instanceof Bn1&&(wX(10,Q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),y&&y(a)),_.EU(a),a;
}};var PAz;PAz=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.oQ9=function(l,D){D=D===void 0?!1:D;l=PAz.test(l)?_.dT(l):null;!D&&window.payments||!l?(l=_.wf(),D=l.promise,l.resolve()):D=_.C6h(l,{attributes:{"data-payments-main":"",id:"payment-lib"}});return D};var bfH;bfH=_.wL(["//www.googletagmanager.com/gtm.js?id=",""]);_.fd=function(l,D){_.HK(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:D}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.H3("GL")}),D=_.SU("SCRIPT"),D.async=!0,_.BY(D,_.Ja(bfH,l)),D.id="gtm",l=document.getElementsByTagName("script"),l.length==0?document.head.appendChild(D):(l=l[0],l.parentNode.insertBefore(D,l)))};
_.$p=function(l){if(l=JSON.parse(l))window.dataLayer=window.dataLayer||[],window.dataLayer.push(l)};var gE7,uSm;gE7=_.wL(["https://clients2.google.com/gr/gr_sync.js"]);_.jM$=function(){};
_.jM$.prototype.init=function(){if(uSm()){var l=_.wf();l.resolve();return l.promise}return _.C6h(_.Ja(gE7)).then(function(){if(!uSm())throw Error("cg");},function(){throw Error("dg");
})};
_.FMc=function(){if(!uSm())return"";var l=window.google.gr;l.init({async:{schedule:"sync"},merchantId:"youtube"});l.start();l=l.finish();return l==null?"":l};
uSm=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.p=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Z(_.p,PolymerFakeBaseClassWithoutHtml);_.vg=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Z(_.vg,PolymerFakeBaseClassWithoutHtml);var ZGo=window.ShadyDOM;var Who,yPg,CiN,hld,bxB,gno,Nj,Vf;Who=_.q("enable_shadydom_free_scoped_query_methods");yPg=_.q("enable_shadydom_free_scoped_node_methods");CiN=_.q("enable_shadydom_free_scoped_readonly_properties_batch_one");hld=_.q("enable_shadydom_free_parent_node");bxB=_.q("enable_shadydom_free_children");gno=_.q("enable_shadydom_free_last_child");Nj=window.ShadyDOM;_.Aj=Nj&&Nj.noPatch&&Nj.wrap?Nj.wrap:Nj?function(l){return Nj.patch(l)}:function(l){return l};
Vf=function(l){if(l instanceof ShadowRoot)this.host=(0,_.Aj)(l.host),this.root=l;else if(l.$$){this.host=(0,_.Aj)(l);var D;this.root=(D=l.root)!=null?D:this.host}else if(l.polymerController){this.host=(0,_.Aj)(l);var U;this.root=(U=this.host.shadowRoot)!=null?U:this.host}else this.root=this.host=(0,_.Aj)(l)};
AP9();BpC();u5C();vnK();Pi9();var vE8={querySelector:function(l,D){D=jb9(D,TI(l));return _.q("sunnydom_native_scoped_query_selectors")?mk$(l,D):mk$(_.In(l),D)},
querySelectorAll:function(l,D){D=jb9(D,TI(l));return _.q("sunnydom_native_scoped_query_selectors")?Array.from(aFN(l,D)):aFN(_.In(l),D)}},QKH={appendChild:function(l,D){var U=TI(l),n=_.EJ(D);
return _.U4G(_.In(l),U?_.Yf(D,U,n):D)},
cloneNode:function(l,D){var U=_.EJ(l);l=_.In(l);D=sJ(l).prototype.cloneNode.call(l,D);return U?OJ(D,U):D},
contains:function(l,D){var U=TI(l),n=_.EJ(D);return U!==n?!1:nn9(l,D)},
insertBefore:function(l,D,U){var n=TI(l),y=_.EJ(D);l=_.In(l);D=n?_.Yf(D,n,y):D;return sJ(l).prototype.insertBefore.call(l,D,U)},
removeChild:function(l,D){var U=TI(l);l=_.In(l);D=U?OJ(D,U):D;return sJ(l).prototype.removeChild.call(l,D)},
replaceChild:function(l,D,U){var n=TI(l),y=_.EJ(D);D=n?_.Yf(D,n,y):y?OJ(D,y):D;U=n?OJ(U,n):U;l=_.In(l);return sJ(l).prototype.replaceChild.call(l,D,U)},
getRootNode:function(l,D){D=D===void 0?{composed:!0}:D;var U;if(((U=D)!=null?U:{}).composed)l=D4d(l);else{D=l;for(l=XfB(l);l;)D=l,l=oRC(l);l=D}return l}},GiK=CiN?{firstChild:HGC,
nextSibling:ERB,previousSibling:IFc,firstElementChild:YDo,lastElementChild:VuN,nextElementSibling:sbl,previousElementSibling:Ti9,childNodes:ixl}:{};hld&&(GiK.parentNode=NiB);bxB&&(GiK.children=lcl);gno&&(GiK.lastChild=OGG);Who&&QWK(vE8);yPg&&QWK(QKH);JPK();var LhC=function(l){this.node=l instanceof ShadowRoot?l.host:l};
qMK();MkK();var elg=new WeakMap;var ac_=Symbol("Bd");var d4$=new Set(["tap","track","down","up"]),Kh9=_.q("pbcm_fi_query_decorators");var sp=function(){return _.vg.apply(this,arguments)||this};
_.Z(sp,_.vg);_.W=sp.prototype;_.W.getState=function(){return this.store.getState()};
_.W.dispatch=function(l){this.store.dispatch(l)};
_.W.beforeRegister=function(){if(this&&typeof this==="object"){var l;var D=!!this.useSignals||!((l=this.polymerController)==null||!l.useSignals)}else D=!1;if(!D&&this.properties)for(D=_.B(Object.keys(this.properties)),l=D.next();!l.done;l=D.next()){var U=l.value;l=this.properties[U];if(l.selector){if(l.computed)throw Error("kg");U=["reduxPropertiesRecomputeTrigger",'"'+U+'"'].concat(_.zz(l.selectorArgs||[])).join(",");l.computed="recomputeReduxSelector("+U+")"}}};
_.W.attached=function(){var l=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){l.reduxPropertiesRecomputeTrigger++}));
_.q("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.W.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.W.recomputeReduxSelector=function(l,D){var U=_.EW.apply(2,arguments),n=this.properties[D].selector;if(!n)throw Error("ig`"+D);return n.apply(null,[this.store.getState()].concat(_.zz(U)))};
_.W.select=function(l){var D=_.EW.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return l.apply(null,[this.store.getState()].concat(_.zz(D)))};
_.QP.Object.defineProperties(sp.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
sp.prototype.recomputeReduxSelector=sp.prototype.recomputeReduxSelector;_.E([_.K(),_.T("design:type",Number)],sp.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.E([_.Qj()],sp);var Ep=[],jWB={},Xs=function(){return JO.apply(this,arguments)||this};
_.Z(Xs,JO);Xs.prototype._addPropertyEffect=function(l,D,U){if(D==="__observeEffects"&&U){var n,y=(n=U.info.method)!=null?n:U.info.methodName;if(y){var A=this[y];this[y]=function(){Ep.push(y);try{A==null||A.apply(this,arguments)}finally{Ep.pop()}}}}_.cz._addPropertyEffect.apply(this,[l,
D,U])};
Xs.prototype._setPendingProperty=function(l,D,U){if(Ep.length){var n=Ep[Ep.length-1],y;(y=jWB[this.is])!=null&&y.has(n)||(Fhs(this.is,n),_.Na("polymerPropertyChangedInObserver",{componentName:this.is,observerName:n}))}return _.cz._setPendingProperty.apply(this,[l,D,U])};
_.E([UUN()],Xs);var onl=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),rP$,LY={};_.q("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=LY);var Rr=function(){return _.vg.apply(this,arguments)||this};
_.Z(Rr,_.vg);Rr.prototype._setUnmanagedPropertyToNode=function(l,D,U){l.loggingStatus&&(l.loggingStatus.isDeclarativeExternal=!0);if(U!==l[D]||typeof U==="object")l[D]=U;l.is&&l.polymerController&&l.polymerController!==l&&qQ(l.is,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");l.loggingStatus&&(l.loggingStatus.isDeclarativeExternal=!1)};
_.E([_.Qj()],Rr);wQl()&&(nS.prototype._setUnmanagedPropertyToNode=(new Rr)._setUnmanagedPropertyToNode);_.l4g={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(l){},set polymerController(l){}}]};var tj=function(){var l=JO.apply(this,arguments)||this;l.json=function(){};
return l};
_.Z(tj,JO);tj.prototype.equals=function(l,D){return l===D};
tj.prototype.isEmpty=function(l){var D;(D=!l)||(D=_.Ns(l)&&l.length===0);return D};
_.E([UUN()],tj);var GGH=function(l){l=Ufo(l);Vi.call(this,l)};
_.Z(GGH,Vi);GGH.prototype.addProvider=function(l){l=l.key?l:Ufo([l])[0];var D=this.keyIdToIndex.get(l.key.id);if(D){if(sWN(l,this.providers[D]))throw Error("lg`"+l.key.displayName);}else Vi.prototype.addProvider.call(this,l)};
var JTH=new GGH([]);var Lqg=!1;var OxN={};Lqg||(YMG(),Lqg=!0);
OxN.InjectBehavior={initializeInjection:function(){var l=this.provide;try{if((l=l!=null?l:[])&&l.length>0)for(var D=Ufo(l),U=_.B(D),n=U.next();!n.done;n=U.next())JTH.addProvider(n.value);var y=new Set;En9(this.behaviors||[],y);D={};for(var A=_.B(y),C=A.next();!C.done;C=A.next()){var h=C.value;h.inject&&Object.assign(D,h.inject)}this.inject&&Object.assign(D,this.inject);for(var b=_.B(Object.keys(D)),u=b.next();!u.done;u=b.next()){var Q=u.value,G=D[Q];try{this[Q]=JTH.resolve(G)}catch(J){throw J;}}}catch(J){throw Error(J.message);
}}};var iO9;var DBs=/\bclass\b/.test(function(){}.toString()),y5C=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var qN5=function(l){this.wasDefined=!0;Array.isArray(l)||l instanceof Array?(this.JSC$13585_getImpl=l[0],this.JSC$13585_setImpl=l[1]):this.JSC$13585_getImpl=l};
_.W=qN5.prototype;_.W.getWithPath=function(l){return B__(this.JSC$13585_getImpl(),l)};
_.W.setWithPath=function(l,D){var U=this;if(l.length)throw Error("mg");if(!this.JSC$13585_setImpl)throw Error("ng");Ky(function(){U.JSC$13585_setImpl(D)})};
_.W.notifyPath=function(){throw Error("og");};
_.W.notifySplices=function(){throw Error("pg");};
_.W.getChangeRecordSignal=function(l,D){var U=this;if(l.length)throw Error("qg");return function(){var n=U.getWithPath(l);return{path:D!=null?D:"",base:n,value:n}}};
_.W.getSplicesSignal=function(){throw Error("rg");};
_.W.getPathMutationSignal=function(){throw Error("sg");};
_.W.pop=function(){throw Error("tg");};
_.W.push=function(){throw Error("ug");};
_.W.splice=function(){throw Error("vg");};
_.W.unshift=function(){throw Error("wg");};var Te=function(l){var D=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(l)||l instanceof Array?(this.JSC$13590_getImpl=l[0],this.JSC$13590_setImpl=l[1]):this.JSC$13590_getImpl=l;this.wasDefined=!1;_.mU(function(){D.wasDefined=D.JSC$13590_getImpl()!==void 0})};
Te.prototype.getWithPath=function(l){return B__(this.JSC$13590_getImpl(),l)};
Te.prototype.setWithPath=function(l,D){var U=this;if(l[l.length-1]!=="*"&&l[l.length-1]!=="splices"){var n=_.mU(function(){return U.getWithPath([])});
if(l.length===0){if(!this.JSC$13590_setImpl)throw Error("xg");if(n===D)return;this.wasDefined||(this.wasDefined=D!==void 0);Ky(function(){U.JSC$13590_setImpl(D)})}else{for(var y=0;y<l.length-1;y++){if(!n)return;
n=n[l[y]]}y=l[l.length-1];n&&(n[y]=D);this.wasDefined||(this.wasDefined=l.length>1||D!==void 0)}MIH(this,l,{pathComponents:l,value:D})}};
Te.prototype.notifyPath=function(l,D){l.length===0?D&&this.setWithPath(l,D.value):MIH(this,l,{pathComponents:l,value:D==null?void 0:D.value,fallbackWhenUndefined:D==null?void 0:D.value})};
var MIH=function(l,D,U,n){if(l.setMutationSignal){var y=++l.mutationIndex,A=[l.observedPath],C=l.observedPath,h;D.length===0&&(h=C);for(var b=0;b<D.length;b++){var u=C.subPaths[D[b]];if(!u)break;A.push(u);C=u;b===D.length-1&&(h=u)}for(D=!1;A.length;)C=A.shift(),C.data={index:y,mutation:U,spliceMutationIndex:n},D||(D=C===h),D&&A.push.apply(A,_.zz(Object.values(C.subPaths)));Ky(function(){l.setMutationSignal(y)})}};
Te.prototype.notifySplices=function(l,D){var U=this,n=_.mU(function(){return U.getWithPath(l)}),y=[].concat(_.zz(l),["splices"]);
MIH(this,y,{pathComponents:y,value:{indexSplices:D}});if(n==null?0:n.length)D=this.mutationIndex,y=[].concat(_.zz(l),["length"]),MIH(this,y,{pathComponents:y,value:n.length},D)};
var Rum=function(l,D,U,n,y,A){l.notifySplices(U,[{index:n,addedCount:y,removed:A,object:D,type:"splice"}])},Zf7=function(l,D){l=l.observedPath;
for(var U=0;U<D.length;U++){var n=D[U],y=l.subPaths[n];y||(y={pathComponents:D.slice(0,U+1),subPaths:{}},l.subPaths[n]=y);l=y}},mIv=function(l,D,U){Zf7(l,D);
if(!l.getMutationSignal){var n=_.B(_.aw(l.mutationIndex,void 0,"sNBMCd"));l.getMutationSignal=n.next().value;l.setMutationSignal=n.next().value}var y=l.getMutationSignal;return _.dM(function(){y();return U(eu1(l,D))},void 0,"zvsXEd")};
Te.prototype.getChangeRecordSignal=function(l,D){var U=this,n=this.mutationIndex,y;return mIv(this,l,function(A){if(A&&A.index>n){var C=A.mutation;n=A.index;y=void 0}A=_.mU(function(){return U.getWithPath(l)});
if(C){var h=C.pathComponents[C.pathComponents.length-1],b=[].concat(_.zz(C.pathComponents));if(h==="splices"||h==="length")return{base:A,path:(D?[D].concat(_.zz(b)):b).join("."),value:C.value};var u=l.length>b.length?l:b,Q;return{base:A!=null?A:C.fallbackWhenUndefined,path:(D?[D].concat(_.zz(u)):u).join("."),value:(Q=_.mU(function(){return U.getWithPath(u)}))!=null?Q:C.fallbackWhenUndefined}}y||(y={base:A,
path:(D?[D].concat(_.zz(l)):l).join("."),value:A});return y})};
Te.prototype.getSplicesSignal=function(l){var D=this.mutationIndex,U;return mIv(this,l,function(n){if(n&&n.index>D&&n.spliceMutationIndex!==D){var y=n.mutation;D=n.index;U=void 0}return y&&y.pathComponents[y.pathComponents.length-1]==="splices"?U=n=y.value:U})};
Te.prototype.getPathMutationSignal=function(l){var D=this;Zf7(this,l);if(!this.getMutationSignal){var U=_.B(_.aw(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=U.next().value;this.setMutationSignal=U.next().value}var n=this.getMutationSignal,y=this.mutationIndex,A;return _.dM(function(){n();var C=eu1(D,l);if(C&&C.index>y&&C.mutation&&C9G(C.mutation.pathComponents,l)){var h=C.mutation;y=C.index}if(!A||y!==A.index){var b,u;C=(u=_.mU(function(){return D.getWithPath(l)}))!=null?u:(b=h)==null?
void 0:b.fallbackWhenUndefined;
A={index:y,value:C}}return A},void 0,"RXYC9b")};
var eu1=function(l,D){l=l.observedPath;D=_.B(D);for(var U=D.next();!U.done;U=D.next())l=l.subPaths[U.value];return l.data};
Te.prototype.pop=function(l){var D=this,U=_.mU(function(){return D.getWithPath(l)});
if(!(U instanceof Array))throw Error("yg");var n=U.length>0,y=U.pop();n&&Rum(this,U,l,U.length,0,[y]);return y};
Te.prototype.push=function(l){var D=_.EW.apply(1,arguments),U=this,n=_.mU(function(){return U.getWithPath(l)});
if(!(n instanceof Array))throw Error("zg");var y=n.length,A=n.push.apply(n,_.zz(D));D.length&&Rum(this,n,l,y,D.length,[]);return A};
Te.prototype.splice=function(l,D,U){var n=_.EW.apply(3,arguments),y=this,A=_.mU(function(){return y.getWithPath(l)});
if(!(A instanceof Array))throw Error("Ag");D<0?D=A.length-Math.floor(-D):D&&(D=Math.floor(D));var C=A.splice.apply(A,[D,U].concat(_.zz(n)));(n.length||C.length)&&Rum(this,A,l,D,n.length,C);return C};
Te.prototype.unshift=function(l){var D=_.EW.apply(1,arguments),U=this,n=_.mU(function(){return U.getWithPath(l)});
if(!(n instanceof Array))throw Error("Bg");var y=n.unshift.apply(n,_.zz(D));D.length&&Rum(this,n,l,0,D.length,[]);return y};var If=function(l,D,U){this.model=l;this.unknownSignalResolver=D;this.options=U;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];D=_.B(J5N());l=D.next().value;D=D.next().value;this.owner=l;this.disposeImpl=D};
If.prototype.dispose=function(){if(!this.isDisposed){for(var l=_.B(this.childSignalProxies),D=l.next();!D.done;D=l.next())D.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var ad7=function(l,D){l=_.P_(l.owner);try{D()}finally{_.P_(l)}};
If.prototype.effect=function(l){ad7(this,function(){_.fy(l,"h")})};
var tIm=function(l,D){l.options!=null||(l.options={});var U;(U=l.options).immutableProps!=null||(U.immutableProps=new Set);l.options.immutableProps.add(D)},$Bd=function(l,D){D=""+D;
Xiy(l,D);var U,n;if((U=l.options)==null?0:(n=U.immutableProps)==null?0:n.has(D))return!0;var y;if((y=l.model.__signalCache)==null?0:y.has(D))U=l.model.__signalCache.get(D),Array.isArray(U)&&tIm(l,D);var A,C,h;return(h=(A=l.options)==null?void 0:(C=A.immutableProps)==null?void 0:C.has(D))!=null?h:!1},SNH=function(l,D){var U;
l.unknownSignalResolver&&(U=l.unknownSignalResolver(D));var n,y;((n=l.options)==null?0:(y=n.immutableProps)==null?0:y.has(D))?U!=null||(U=new qN5(_.aw(l.model[D],void 0,"By5iP"))):U!=null||(U=new Te(_.aw(l.model[D],void 0,"CXghNc")));var A=l.model.hostElement;Object.defineProperty(l.model,D,{get:function(){fcC(A,D);return U.getWithPath([])},
set:function(C){MQ(A,D);l.setWithPath([D],C)},
configurable:!0});return U},Xiy=function(l,D){var U,n,y;
((U=l.model.__signalCache)==null||!U.has(D))&&((n=l.options)==null?0:(y=n.externalSignalProps)==null?0:y.has(D))&&l.model[D]},KY=function(l,D){D=""+D;
var U=l.signalCache[D];if(U!==void 0)return U;U=!1;Xiy(l,D);var n;if((n=l.model.__signalCache)==null?0:n.has(D))if(U=l.model.__signalCache.get(D),Array.isArray(U))U=!0,tIm(l,D);else return l.signalCache[D]=l.model.__signalCache.get(D).signal,l.signalCache[D];var y,A;n=(A=(y=l.options)==null?void 0:y.reactivityMode)!=null?A:0;var C,h;if(!((C=l.options)==null?0:(h=C.reactiveProps)==null?0:h.has(D))&&!U&&n===1)throw Error("Cg`"+D);y=U?kG8(l,D):SNH(l,D);return l.signalCache[D]=y},kG8=function(l,D){var U=
Object.getOwnPropertyDescriptor(l.model.constructor.prototype,D),n=function(){return l.model[D]};
return new qN5(U&&U.get&&!U.set?n:[n,function(y){l.model[D]=y}])};
If.prototype.getWithPath=function(l){var D=_.B(l);l=D.next().value;D=B_(D);fcC(this.model.hostElement,""+l);return KY(this,l).getWithPath(D)};
If.prototype.setWithPath=function(l,D){if(l.length){MQ(this.model.hostElement,l.join("."));var U=_.B(l);l=U.next().value;U=B_(U);KY(this,l).setWithPath(U,D)}};
If.prototype.getPathMutationSignal=function(l){var D=_.B(l);l=D.next().value;D=B_(D);return KY(this,l).getPathMutationSignal(D)};
If.prototype.notifyPath=function(l,D){var U=_.B(l);l=U.next().value;U=B_(U);KY(this,l).notifyPath(U,D)};
var dIH=function(l,D){if(D.type==="literal")return function(){return{rootWasDefined:!0,value:D.value}};
var U=ku(D.path),n=_.B(U),y=n.next().value;n=B_(n);var A,C;if(D.type==="path"&&(U.length===1||((A=l.options)==null?0:(C=A.immutableProps)==null?0:C.has(y))))return function(){var G=l.getWithPath(U.slice(0,1));G=B__(G,U.slice(1));return{rootWasDefined:KY(l,U[0]).wasDefined,value:G}};
var h=KY(l,y);if(D.type==="path"){var b=h.getPathMutationSignal(n);return function(){var G,J=(G=b())==null?void 0:G.value;return{rootWasDefined:h.wasDefined,value:J}}}if(D.type==="splices"){var u=h.getSplicesSignal(n);
return function(){var G=u();return{rootWasDefined:h.wasDefined,value:G}}}var Q=h.getChangeRecordSignal(n,""+y);
return function(){var G=Q();return{rootWasDefined:h.wasDefined,value:G}}},ves=function(l,D,U){var n=U.map(function(h){return dIH(l,h)}),y=U.length===0,A=[],C=U.length!==1||U[0].type!=="path"?!1:!0;
l.effect(function(){for(var h=n.length,b=[],u=!!A.length,Q=0;Q<h;Q++){var G=n[Q](),J=G.rootWasDefined;G=G.value;y||(y=J);b[Q]=G;C&&(b[Q+h]=u?A[Q]:b[Q],A[Q]=G)}y&&Tp(l.owner,function(){return void D.apply(null,_.zz(b))})})},hAs=function(l,D,U,n,y){var A=KY(l,D);
y!==void 0&&A.setWithPath([],y);ves(l,function(){var C=_.EW.apply(0,arguments);MQ(l.model.hostElement,D,!0);A.setWithPath([],U.apply(null,_.zz(C)))},n)};
If.prototype.arrayPush=function(l){var D=_.EW.apply(1,arguments),U=_.B(l),n=U.next().value;U=B_(U);n=KY(this,n);return n.push.apply(n,[U].concat(_.zz(D)))};
If.prototype.arraySplice=function(l,D,U){var n=_.EW.apply(3,arguments),y=_.B(l),A=y.next().value;y=B_(y);A=KY(this,A);return A.splice.apply(A,[y,D,U].concat(_.zz(n)))};
If.prototype.arrayUnshift=function(l){var D=_.EW.apply(1,arguments),U=_.B(l),n=U.next().value;U=B_(U);n=KY(this,n);return n.unshift.apply(n,[U].concat(_.zz(D)))};
If.prototype.notifySplices=function(l,D){var U=_.B(l);l=U.next().value;U=B_(U);KY(this,l).notifySplices(U,D)};var Kqy=!0,cT1=!1,Nr$=!1,pi5=!1,xI5=0;pi5=!1;xI5=0;Kqy=!0;cT1=Nr$=!1;var eAo=/([^\s]+?)\(([\s\S]*)\)/,MgK=/\.([^.]+)$/,a4g=/\\,/g,L_s=/&comma;/g,q_9=/\\(.)/g,mBN=[],RAB={"*":"wildcard",splices:"splices"};var jD9=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"),K_9=/[A-Z]/,jK7=["class","hidden","id","on-dom-change"],oeC=new Set([].concat(_.zz(jK7),
["if","notify-dom-change","restamp"])),wxo=new Set([].concat(_.zz(jK7),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),r5G=new Set(["restamp"]);var owg=new Set(["className","id"]);var sDd=Symbol(),Vgs=window;var W1d=window;var un3=0,h_G=0,cg=[],g4g=0,C4c=!1,bVs=document.createTextNode("");(new window.MutationObserver(P4K)).observe(bVs,{characterData:!0});var xu=new Map,pY=0,Fqz=function(l){this.mappedHandleId=l},QaG=function(l,D,U,n){this.mappedHandleId=l;
var y=this;this.mappedHandleId=l;this.callback=D;this.waitTime=U;this.schedulerPriority=n;this.handleId=_.Tn.addJob(function(){y.callback();xu.delete(y.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.Z(QaG,Fqz);QaG.prototype.cancel=function(){_.Tn.cancelJob(this.handleId);xu.delete(this.mappedHandleId)};
var Gc_=function(l,D){this.mappedHandleId=l;var U=this;this.mappedHandleId=l;this.callback=D;this.handleId=v4G(function(){U.callback();xu.delete(U.mappedHandleId)})};
_.Z(Gc_,Fqz);Gc_.prototype.cancel=function(){var l=this.handleId-h_G;l<0||cg.length<=l||(cg[l]=null);xu.delete(this.mappedHandleId)};var MJs=function(){};
MJs.prototype.cancel=function(){this.jobHandle!==void 0&&(J2c(this.jobHandle),this.jobHandle=void 0)};
MJs.prototype.run=function(l,D,U){var n=this;this.cancel();this.callback=l;this.jobHandle=_.j0(function(){l();n.callback=void 0},D,U)};
MJs.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var L1N=new WeakMap;var oEy=yb(function(l){for(var D=l,U=0;U<3;U++)D=Object.getPrototypeOf(D);delete D.prototype.connectedCallback;var n=function(){return l.apply(this,arguments)||this};
_.Z(n,l);n.prototype._attachDom=function(y){if(!y)return null;var A=(0,_.Aj)(this.hostElement);A.attachShadow({mode:"open",shadyUpgradeFragment:y});A.shadowRoot.appendChild(y);return A.shadowRoot};
n.prototype._takeAttributes=function(){for(var y=this.hostElement.attributes,A=0;A<y.length;A++){var C=y[A],h=void 0,b=void 0;(b=(h=this).__attributeReaction)==null||b.call(h,C.name,null,C.value)}};
n.prototype._readyClients=function(){l.prototype._readyClients.call(this);this.root=this};
n.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);l.prototype.connectedCallback.call(this)};
_.QP.Object.defineProperties(n,{template:{configurable:!0,enumerable:!0,get:function(){return n.prototype._template}}});
return n}),wi1=yb(function(l){var D=function(){return l.apply(this,arguments)||this};
_.Z(D,l);D.prototype.created=function(){if(this.__notifyEffects)for(var U=_.B(Object.values(this.__notifyEffects)),n=U.next();!n.done;n=U.next()){n=_.B(n.value);for(var y=n.next();!y.done;y=n.next())y.value.fn=mvg}if(this.__reflectEffects)for(U=_.B(Object.values(this.__reflectEffects)),n=U.next();!n.done;n=U.next())for(n=_.B(n.value),y=n.next();!y.done;y=n.next())y.value.fn=a$s};
D.prototype._addEventListenerToNode=function(U,n,y){U=or(U);I1(U,n,y)||l.prototype._addEventListenerToNode.call(this,U,n,y)};
D.prototype._removeEventListenerFromNode=function(U,n,y){U=or(U);Hd(U,n,y)||l.prototype._removeEventListenerFromNode.call(this,U,n,y)};
D.prototype._propertiesChanged=function(U,n,y){if(this.__dataToNotify&&this.__notifyEffects)for(var A=_.B(Object.keys(this.__dataToNotify)),C=A.next();!C.done;C=A.next()){C=C.value;var h=e_c(C);this.__notifyEffects[h]||delete this.__dataToNotify[C]}else this.__dataToNotify=null;l.prototype._propertiesChanged.call(this,U,n,y)};
D.prototype.fire=function(U,n,y){n=n===void 0?{}:n;var A;return _.O9(or((A=y==null?void 0:y.node)!=null?A:this),U,n,y)};
D.prototype._ensureAttribute=function(U,n){var y=or(this);y.hasAttribute(U)||dP(y,n,U)};
D.prototype.isLightDescendant=function(U){var n=or(this);return or(n)!==U&&_.iJ(n).contains(U)&&_.iJ(n).getRootNode()===_.iJ(U).getRootNode()};
return D});
_.xs.ready=function(){var l;((l=this.hostElement)!=null?l:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var D;((D=this.hostElement)!=null?D:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.$s._subscribeIronResize=function(l){var D;((D=l.hostElement)!=null?D:l).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.$s._unsubscribeIronResize=function(l){var D;((D=l.hostElement)!=null?D:l).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Sng=[Array,Boolean,Date,Number,Object,String],rP=function(l,D,U,n){this.polySiInfo=l;this.polySiParams=D;this.polySiContext=U;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;n||this instanceof HTMLElement&&(n=this);if(!n)throw Error("Jg");this.allowedProps=D.allowedProps;this.hostElement=n;this.is=l.is;this.upgradeDisabled=!!D.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");l=new Set(D.reactiveSchemas.filter(function(y){return y.type!==
"observe"}).map(function(y){return y.propertyKey}));
this.signalProxy=new If(this,void 0,{reactiveProps:l,reactivityMode:D.reactivityMode});this.__dataHasAccessor={};D=_.B(D.reactiveSchemas);for(l=D.next();!l.done;l=D.next())l=l.value,l.type==="signal"&&(this.__dataHasAccessor[l.propertyKey]=!0);this.upgradeDisabled||rT_(this)};
rP.prototype.getExtraMethodsToForward=function(){return[]};
var rT_=function(l){l.polySiContext.didRegister||(l.registered(),l.polySiContext.didRegister=!0);l.polySiContext.finalizedTemplate||(l.polySiContext.finalizedTemplate={},l.polySiParams.templateGetter&&(l.polySiContext.finalizedTemplate.processedTemplate=Br$(l.polySiParams.templateGetter,l.polySiParams.is)));zuH(l);var D=l.hostElement;D.loggingStatus!=null||(D.loggingStatus={});D.loggingStatus.isInitializing=!0;_.mU(function(){return void l.created()});
D.loggingStatus.isInitializing=!1;l.isPolySiElementConnected&&fdv(l)},fdv=function(l){l.didCallReady||(_.mU(function(){return void l.ready()}),l.didCallReady=!0);
l.isAttached=!0;l.attached()};
_.W=rP.prototype;_.W.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||fdv(this)};
_.W.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.W.attributeChangedCallback=function(l,D,U){if(this.upgradeDisabled)l==="disable-upgrade"&&U===null&&(this.upgradeDisabled=!1,rT_(this));else if(D!==U){var n=_.h6(l),y=this.polySiContext.typesForSignals[n];if(y&&(!this.reflecting||_.q("polysi_attribute_changed_serializing_killswitch"))){switch(y){case Object:try{var A=JSON.parse(U)}catch(h){A=U}break;case Array:try{A=JSON.parse(U)}catch(h){A=null}break;case Date:A=isNaN(U)?String(U):Number(U);A=new Date(A);break;case Boolean:A=U!==null;break;case Number:A=
Number(U);break;default:A=U}this[n]=A}n=_.B(this.polySiParams.behaviors);for(y=n.next();!y.done;y=n.next())A=void 0,(A=y.value.attributeChanged)==null||A.call(this,l,D,U);var C;(C=this.attributeChanged)==null||C.call(this,l,D,U)}};
_.W.attributeChangedCallbackWrapper=function(l,D,U){this.attributeChangedCallback(l,D,U)};
_.W.setPropertiesFromInitialAttributeValues=function(){for(var l=0;l<this.hostElement.attributes.length;l++){var D=this.hostElement.attributes[l];(D.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(D.name))&&this.attributeChangedCallback(D.name,null,D.value)}};
_.W.created=function(){this.provide=this.polySiParams.provide;var l;(l=this.initializeInjection)==null||l.call(this);l=_.B(this.polySiParams.reactiveSchemas);for(var D=l.next();!D.done;D=l.next())D=D.value,D.type==="signal"&&(this.mutablePropNames.add(D.propertyKey),KY(this.signalProxy,D.propertyKey));X$9(this,this.polySiInfo,this.polySiParams.behaviors);l=_.B(this.polySiParams.reactiveSchemas);for(D=l.next();!D.done;D=l.next())D=D.value,D.type==="signal"&&D.value!==void 0&&(this.signalProxy.model[D.propertyKey]=
typeof D.value==="function"?D.value.call(this):D.value);if(this.polySiParams.signalProperties)for(l=_.B(this.polySiParams.signalProperties),D=l.next();!D.done;D=l.next()){D=D.value;var U=void 0;((U=this.__signalCache)==null?0:U.has(D))||(this.signalProxy.model[D]=void 0)}pi5||$Iz(this);tJB(this);l=_.B(this.polySiParams.behaviors);for(D=l.next();!D.done;D=l.next())U=void 0,(U=D.value.created)==null||U.call(this);var n;(n=this.polySiInfo.created)==null||n.call(this)};
_.W.registered=function(){var l=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var D=Object.getPrototypeOf(this);D.addReactiveSchema=function(h){l.polySiParams.reactiveSchemas.push(h)};
for(var U=_.B(this.polySiParams.behaviors),n=U.next();!n.done;n=U.next()){var y=void 0;(y=n.value.beforeRegister)==null||y.call(D)}var A;(A=this.polySiInfo.beforeRegister)==null||A.call(D);D.addReactiveSchema=dvs;U=_.B(this.polySiParams.behaviors);for(n=U.next();!n.done;n=U.next())y=void 0,(y=n.value.registered)==null||y.call(D);var C;(C=this.polySiInfo.registered)==null||C.call(D)};
_.W.ready=function(){var l;(l=this.beforeReady)==null||l.call(this);pi5&&$Iz(this);var D;if(l=(D=this.polySiContext.finalizedTemplate)==null?void 0:D.processedTemplate){l=A2l(l.template,l.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:l.hasInsertionPoint,thisCtx:this});D=l.nodesById;l=l.root;var U=this.hostElement;var n=n===void 0?!1:n;U=(0,_.Aj)(U);if(!U.attachShadow)throw Error("Hd");if(!U.shadowRoot||n)U.attachShadow({mode:"open",shadyUpgradeFragment:l}),U.shadowRoot.appendChild(l);
this.root=U.shadowRoot;this.$=D}Nny(this);n=_.B(this.polySiParams.behaviors);for(D=n.next();!D.done;D=n.next())l=void 0,(l=D.value.ready)==null||l.call(this);var y;(y=this.polySiInfo.ready)==null||y.call(this)};
_.W.attached=function(){for(var l=_.B(this.polySiParams.behaviors),D=l.next();!D.done;D=l.next()){var U=void 0;(U=D.value.attached)==null||U.call(this)}var n;(n=this.polySiInfo.attached)==null||n.call(this)};
_.W.detached=function(){for(var l=_.B(this.polySiParams.behaviors),D=l.next();!D.done;D=l.next()){var U=void 0;(U=D.value.detached)==null||U.call(this)}var n;(n=this.polySiInfo.detached)==null||n.call(this)};
var zuH=function(l){for(var D=_.B(l.polySiParams.behaviors),U=D.next();!U.done;U=D.next())if(U=U.value,U.listeners)for(var n in U.listeners)y2N(l,l.hostElement,n,U.listeners[n]);if(l.polySiInfo.listeners)for(var y in l.polySiInfo.listeners)y2N(l,l.hostElement,y,l.polySiInfo.listeners[y])},y2N=function(l,D,U,n,y){l=W__(l,n,y);
I1(D,U,l)||D.addEventListener(U,l);return l},$Iz=function(l){for(var D=_.B(l.polySiParams.reactiveSchemas),U=D.next();!U.done;U=D.next())U=U.value,U.type==="compute"||U.type==="computeWithMethod"?P93(l.signalProxy,U,l):U.type==="redux"?u3G(l.signalProxy,U,l.store):U.type==="signal"&&U.readOnly&&ge$(l.signalProxy,U)},Nny=function(l){for(var D=_.B(l.polySiParams.reactiveSchemas),U=D.next(),n={};!U.done;n={schema$jscomp$12:void 0},U=D.next())n.schema$jscomp$12=U.value,n.schema$jscomp$12.type==="notify"?
QDB(l.signalProxy,n.schema$jscomp$12,l.hostElement):n.schema$jscomp$12.type==="observe"?GSc(l.signalProxy,n.schema$jscomp$12,l):n.schema$jscomp$12.type==="reflect"&&l.signalProxy.effect(function(A){return function(){var C=l.signalProxy.getWithPath([A.schema$jscomp$12.propertyKey]);
l.reflecting=!0;XxC(l.hostElement,A.schema$jscomp$12.propertyKey,C,!0);l.reflecting=!1}}(n));
if(l.reflectedAttributes)for(D=_.B(Object.entries(l.reflectedAttributes)),n=D.next(),U={};!n.done;U={key$jscomp$938:void 0,value$jscomp$10180:void 0},n=D.next()){var y=_.B(n.value);n=y.next().value;y=y.next().value;U.key$jscomp$938=n;U.value$jscomp$10180=y;l.signalProxy.effect(function(A){return function(){l.reflecting=!0;XxC(l.hostElement,A.key$jscomp$938,(0,A.value$jscomp$10180)(),!0);l.reflecting=!1}}(U))}};
_.W=rP.prototype;_.W._setPendingProperty=function(l,D){this.set(l,D);return!1};
_.W._enableProperties=function(){};
_.W._setPendingPropertyOrPath=function(l,D){this.notifyPath(l,D);return!1};
_.W._addPropertyEffect=function(){};
_.W._stampTemplate=function(){throw Error("Kg");};
_.W.fire=function(l,D,U){D=D===void 0?{}:D;U=U===void 0?{}:U;var n,y,A={bubbles:(n=U.bubbles)!=null?n:!0,cancelable:!!U.cancelable,composed:(y=U.composed)!=null?y:!0},C;return _.O9(K13((C=U.node)!=null?C:this.hostElement),l,D,A)};
_.W.get=function(l,D){var U=ku(l);return D?B__(D,U):l==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(U)};
_.W.linkPaths=function(){};
_.W.listen=function(l,D,U){l=K13(l);this.boundListeners!=null||(this.boundListeners=new WeakMap);var n=this.boundListeners.get(l);n||(n={},this.boundListeners.set(l,n));var y=D+U;n[y]||(n[y]=y2N(this,l,D,U))};
_.W.notifyPath=function(l,D){this.signalProxy.notifyPath(ku(l),arguments.length===2?{value:D}:void 0)};
_.W.canNotifyPath=function(l){return this.mutablePropNames.has(l)&&!$Bd(this.signalProxy,l)};
_.W.notifySplices=function(l,D){this.signalProxy.notifySplices(ku(l),D)};
_.W.pop=function(l){var D=this.signalProxy;l=ku(l);var U=_.B(l);l=U.next().value;U=B_(U);return KY(D,l).pop(U)};
_.W.push=function(l){var D=_.EW.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[ku(l)].concat(_.zz(D)))};
_.W.set=function(l,D,U){if(U)throw Error("Lg");l==="hidden"?this.hostElement.hidden=!!D:this.signalProxy.setWithPath(ku(l),D)};
_.W.setProperties=function(l){l=_.B(Object.entries(l));for(var D=l.next();!D.done;D=l.next()){var U=_.B(D.value);D=U.next().value;U=U.next().value;this[D]=U}};
_.W.splice=function(l,D,U){var n=_.EW.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[ku(l),D,U].concat(_.zz(n)))};
_.W.unlinkPaths=function(){};
_.W.unlisten=function(l,D,U){l=K13(l);if(this.boundListeners){var n=this.boundListeners.get(l);if(n){U=D+U;var y=n[U];y&&(Hd(l,D,y)||l.removeEventListener(D,y),delete n[U])}}};
_.W.unshift=function(l){var D=_.EW.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[ku(l)].concat(_.zz(D)))};
_.QP.Object.defineProperties(rP.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 $v9=[Array,Boolean,Date,Number,Object,String];var E4N=!1;var HN=function(){var l=HTMLElement.apply(this,arguments)||this;l.restamp=!1;l.notifyDomChange=!1;l.JSC$13698_didCallConnected=!1;l.JSC$13698_renderDebouncer=null;l.disableTemplateUpdateSignalImpl=zY()?void 0:_.aw(!1,void 0,"Ofhkwb");var D;l.getDisableTemplateUpdate=(D=l.disableTemplateUpdateSignalImpl)==null?void 0:D[0];var U;l.setDisableTemplateUpdate=(U=l.disableTemplateUpdateSignalImpl)==null?void 0:U[1];return l};
_.Z(HN,HTMLElement);var sKy=function(l){l.conditionSignalImpl!=null||(l.conditionSignalImpl=new Te(_.aw(!1,void 0,"gE52Fb")));return l.conditionSignalImpl};
_.W=HN.prototype;_.W.showHideChildren=function(l){EE5(this,l,this.if)};
_.W.attributeChangedCallback=function(l,D,U){if(this.JSC$13698_didCallConnected)throw Error("Pg`"+l);l==="notify-dom-change"?this.notifyDomChange=U!==null:l==="restamp"&&(this.restamp=U!==null)};
_.W.debounceRender=function(){this.JSC$13698_renderDebouncer=_.Qb(this.JSC$13698_renderDebouncer,O1,this.JSC$13698_renderImpl.bind(this));_.GL(this.JSC$13698_renderDebouncer)};
_.W.disconnectedCallback=function(){var l=(0,_.Aj)(this).parentNode;(!l||l.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in l&&!l.host)&&Tnr(this)};
_.W.connectedCallback=function(){var l=this;this.JSC$13698_didCallConnected=!0;Kqy?Trc():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.q("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){sKy(l).getWithPath([]);l.debounceRender()})};
_.W.render=function(){_.Mf()};
_.W.JSC$13698_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var l=this.if,D=!1;if(l){this.hasInstance()||(Id1(this),D=!0);a:{var U=(0,_.Aj)(this).parentNode;if(this.hasInstance()){var n=this.instance.children;if((n==null?0:n.length)&&(0,_.Aj)(this).previousSibling!==n[n.length-1])for(var y=0;y<n.length;y++)(0,_.Aj)(U).insertBefore(n[y],this)}else{if(!U){U=!1;break a}HfH(this,U)}U=!0}if(!U)return}else this.restamp&&Tnr(this);EE5(this,!1,l);l&&!D&&Id1(this);cT1&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.W.hasInstance=function(){return!!this.instance};
var HfH=function(l,D){var U=l.parentSignalProxy;if(zY()){var n=_.B(_.aw(!0,void 0,"dkzufd"));var y=n.next().value;n=n.next().value;U=l.parentSignalProxy}else{var A;var C=new If((A=YN5(l))!=null?A:{},function(b){var u=KY(l.parentSignalProxy,b).getChangeRecordSignal([]);b=_.aw(void 0,void 0,"iG8Uwe");var Q=new Te(b);C.effect(function(){if(l.getDisableTemplateUpdate&&!l.getDisableTemplateUpdate()){var G=u();Q.notifyPath(ku(G.path),{value:G.value})}});
return Q});
l.parentSignalProxy.childSignalProxies.push(C);var h=U=C}U=A2l(l.templateInfo,l.templateInfo.nodeInfoList,U,{eventListenerHost:l.eventListenerHost,hasInsertionPoint:l.templateInfo.hasInsertionPoint,thisCtx:l.eventListenerHost,enabledSignal:zY()?y:void 0,getModel:function(){return YN5(l)}}).root;
l.instance={root:U,children:[],hidden:!1,signalProxy:h,getTemplateUpdatesEnabled:y,setTemplateUpdatesEnabled:n};h=_.B(U.childNodes);for(y=h.next();!y.done;y=h.next())l.instance.children.push(y.value);(0,_.Aj)(D).insertBefore(l.instance.root,l)},YN5=function(l){if((l=l.parentSignalProxy.model)&&!l.hostElement){var D={},U;
for(U in l)l.hasOwnProperty(U)&&(D[U]=l[U]);return D}},Tnr=function(l){if(l.instance){var D=l.instance.children;
if(D.length){var U=(0,_.Aj)(D[0]).parentNode;if(U){U=(0,_.Aj)(U);for(var n=0;n<D.length;n++)U.removeChild(D[n])}}zY()?l.instance.setTemplateUpdatesEnabled(!1):l.instance.signalProxy.dispose();l.instance=void 0}},EE5=function(l,D,U){D=D||!U;
l.instance&&l.instance.hidden!==D&&(l.instance.hidden=D,sad(D,l.instance.children))},Id1=function(l){if(zY()){var D=l.instance;
D&&Tp(l.parentSignalProxy.owner,function(){return!D.getTemplateUpdatesEnabled()})&&D.setTemplateUpdatesEnabled(!0)}else l.setDisableTemplateUpdate(!1)};
_.QP.Object.defineProperties(HN.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var l=this;return Tp(this.parentSignalProxy.owner,function(){return sKy(l).getWithPath([])})},
set:function(l){l||(zY()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));sKy(this).setWithPath([],!!l)}}});
_.QP.Object.defineProperties(HN,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",HN);var Ofm=[],Yp=function(){var l=HTMLElement.apply(this,arguments)||this;l.as="item";l.indexAs="index";l.itemsIndexAs="itemsIndex";l.targetFramerate=20;l.notifyDomChange=!1;l.isDetached=!1;l.JSC$13705_renderDebouncer=null;l.instances=[];l.chunkingId=null;l.chunkCount=null;l.shouldMeasureChunk=!1;l.shouldContinueChunking=!1;l.renderStartTime=null;l.JSC$13705_didCallConnected=!1;return l};
_.Z(Yp,HTMLElement);var VI_=function(l){l.itemSignalImpl!=null||(l.itemSignalImpl=new Te(_.aw(Ofm,void 0,"YBrqgf")));return l.itemSignalImpl},iv7=function(l,D){Array.isArray(D)||(D=Ofm);
VI_(l).setWithPath([],D)};
_.W=Yp.prototype;_.W.showHideChildren=function(l){for(var D=_.B(this.instances),U=D.next();!U.done;U=D.next())sad(l,U.value.children)};
_.W.notifyPath=function(l,D){l=ku(l);l[0]==="items"&&(l.length===1?iv7(this,D):VI_(this).setWithPath(l.slice(1),D))};
_.W.canNotifyPath=function(l){return l==="items"};
_.W.attributeChangedCallback=function(l,D,U){if(this.JSC$13705_didCallConnected)throw Error("Qg`"+l);l==="as"?this.as=U:l==="index-as"?this.indexAs=U:l==="items-index-as"?this.itemsIndexAs=U:l==="initial-count"?this.initialCount=Number(U):l==="notify-dom-change"?this.notifyDomChange=U!==null:l==="target-framerate"&&(this.targetFramerate=Number(U))};
_.W.disconnectedCallback=function(){this.isDetached=!0;for(var l=0;l<this.instances.length;l++)l6g(this,l);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.W.connectedCallback=function(){var l=this,D=VI_(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var y=D(),A=ku(y.path);if(A[0]===void 0||A[0]==="splices"||A[0]==="length")l.debounceRender();else{var C=A[0];if(C=l.instances[typeof C==="string"?Math.floor(Number(C)):C])A=[l.as].concat(_.zz(A.slice(1))),C.signalProxy.notifyPath(A,y)}});
this.JSC$13705_didCallConnected=!0;Kqy?Trc():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var U=(0,_.Aj)((0,_.Aj)(this).parentNode),n=0;n<this.instances.length;n++)U.insertBefore(this.instances[n].root,this);this.chunkingId&&this.render()}};
_.W.debounceRender=function(){this.JSC$13705_renderDebouncer=_.Qb(this.JSC$13705_renderDebouncer,O1,this.JSC$13705_renderImpl.bind(this));_.GL(this.JSC$13705_renderDebouncer)};
_.W.render=function(){this.debounceRender();_.Mf()};
_.W.JSC$13705_renderImpl=function(){var l=this;if(!this.parentSignalProxy.isDisposed){var D=this.items,U=Dpv(this,D.length);Up5(this,D,U);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){l.chunkingId=null;if(l.shouldMeasureChunk){var n=performance.now()-l.renderStartTime;l.chunkCount=Math.round(Math.ceil(1E3/l.targetFramerate)/n*l.chunkCount)||1}l.shouldContinueChunking&&l.debounceRender()}));
cT1&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var Dpv=function(l,D){var U=D,n=l.instances.length;if(l.initialCount){if(l.chunkCount){var y=Math.min(Math.max(D-n,0),l.chunkCount);U=Math.min(n+y,D)}else U=Math.min(D,l.initialCount),y=Math.max(U-n,0),l.chunkCount=y||1;l.shouldMeasureChunk=y===l.chunkCount;l.shouldContinueChunking=U<D;l.renderStartTime=performance.now()}return U},Up5=function(l,D,U){for(var n=0;n<U;n++){var y=l.instances[n],A=D[n];
y?(y.signalProxy.setWithPath([l.as],A),y.signalProxy.setWithPath([l.indexAs],n)):nj7(l,A,n)}for(D=l.instances.length-1;D>=n;D--)U=l,y=D,l6g(U,y),_.B(U.instances.splice(y,1)).next().value.signalProxy.dispose()},l6g=function(l,D){l=l.instances[D];
D=(0,_.Aj)(l.root);for(var U=0;U<l.children.length;U++)D.appendChild(l.children[U])},nj7=function(l,D,U){var n={};
D=Object.assign({},yt8(l),(n[l.as]=D,n[l.indexAs]=U,n[l.itemsIndexAs]=U,n));var y=new If(D,function(C){if(C!==l.as&&C!==l.indexAs){if(C===l.itemsIndexAs)return KY(y,l.indexAs);var h=KY(l.parentSignalProxy,C).getChangeRecordSignal([]);C=_.aw(void 0,void 0,"T21Pqc");var b=new Te(C);y.effect(function(){var u=h();b.notifyPath(ku(u.path),{value:u.value})});
return b}});
l.parentSignalProxy.childSignalProxies.push(y);n=A2l(l.templateInfo,l.templateInfo.nodeInfoList,y,{eventListenerHost:l.eventListenerHost,getModel:function(){var C={};return Object.assign({},yt8(l),(C[l.as]=y.model[l.as],C[l.indexAs]=y.model[l.indexAs],C[l.itemsIndexAs]=y.model[l.indexAs],C))},
hasInsertionPoint:l.templateInfo.hasInsertionPoint,thisCtx:l.eventListenerHost,methodInvocationRequirement:xI5,enabledSignal:l.stampingEnabled}).root;D={root:n,children:[],signalProxy:y};n=_.B(n.childNodes);for(var A=n.next();!A.done;A=n.next())D.children.push(A.value);n=(n=l.instances[U+1])?n.children[0]:l;(0,_.Aj)((0,_.Aj)(l).parentNode).insertBefore(D.root,n);l.instances[U]=D},yt8=function(l){if((l=l.parentSignalProxy.model)&&!l.hostElement){var D={},U;
for(U in l)l.hasOwnProperty(U)&&(D[U]=l[U]);return D}};
Yp.prototype.itemForElement=function(l){var D=this,U=this.instances.find(function(n){return n.children.includes(l)});
if(U)return Tp(this.parentSignalProxy.owner,function(){return U.signalProxy.getWithPath([D.as])})};
Yp.prototype.indexForElement=function(l){var D=this.instances.findIndex(function(U){return U.children.includes(l)});
return D>=0?D:void 0};
_.QP.Object.defineProperties(Yp.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var l=this;return Tp(this.parentSignalProxy.owner,function(){return VI_(l).getWithPath([])})},
set:function(l){iv7(this,l)}},
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}}});
_.QP.Object.defineProperties(Yp,{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",Yp);var Atz,Wy_;_.Op=new _.A7("STATE_STORE_TOKEN");Atz=new _.A7("SELECT_TOKEN");Wy_=new _.A7("DISPATCH_TOKEN");var i9G={getSelectFn:function(){var l;return(l=_.Jc().resolve(_.G8(Atz)))!=null?l:I$c},
getDispatchFn:function(){var l;return(l=_.Jc().resolve(_.G8(Wy_)))!=null?l:_.fY().dispatch.bind(_.fY())},
getAppStore:function(){return _.Jc().resolve(_.Op)}},HVG,VJs=!1;var Wnc=function(){};var nwl=void 0;var B2_=function(){};
B2_.prototype.hasAttribute=function(l){if(l==="dir")return!1;if(l==="disable-upgrade"){var D,U;return(U=(D=this.hostElement)==null?void 0:D.hasAttribute("disable-upgrade"))!=null?U:!1}throw Error("Rg`"+l);};
B2_.prototype.attributeChangedCallbackWrapper=function(l,D,U){if(l==="disable-upgrade"&&this.__isUpgradeDisabled&&U===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var n;((n=this.hostElement)!=null?n:this).isConnected&&this.connectedCallback()}else D===U||this.__isReflecting||this.attributeChangedCallback(l,D,U)};
B2_.prototype.getExtraMethodsToForward=function(){for(var l=this,D=[],U=_.B(Cj1),n=U.next(),y={};!n.done;y={tagName$jscomp$67:void 0,name$jscomp$629:void 0},n=U.next())y.name$jscomp$629=n.value,n=void 0,y.name$jscomp$629==="_setPendingProperty"?(y.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),n=function(A){return function(C,h,b){qQ(A.tagName$jscomp$67,C,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return l._setPendingProperty(C,h,b)}}(y)):n=function(A){return function(){return l[A.name$jscomp$629].apply(l,
_.zz(_.EW.apply(0,arguments)))}}(y),D.push([y.name$jscomp$629,
n]);return D};
for(var hPg=wi1(oEy((0,_.Kn)(B2_))),uvK=["disabled","disable-upgrade"],hS7=(0,_.Kn)(function(){}),Pjh=new Set(Object.getOwnPropertyNames(hS7.prototype)),Lns=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.zz(Pjh))),QtN=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),Cj1=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),bv_=new Set([].concat(_.zz(QtN),_.zz(Cj1),_.zz(Pjh))),gj7=_.B(bv_),ufz=gj7.next();!ufz.done;ufz=gj7.next())onl.add(ufz.value);var Jws={created:function(){tJB(this);this.initializeInjection()}};var XvK=!1,Hg=window.ShadyDOM,jts=["appendChild","insertBefore","removeChild","replaceChild"],xWs=[Node];Hg&&xWs.push(Hg.Wrapper);var $W9,N8o,T8$={};var Yu,VjC=new WeakMap,H9_=new Set;var nEc=new Set("context didCallReady is info params signalProxy".split(" ")),ATo="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),WqG="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var vj7=pS({entities:l2g}),Qcv=new sB(vj7);var GHm=function(){return _.vg.apply(this,arguments)||this};
_.Z(GHm,_.vg);_.QP.Object.defineProperties(GHm.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Qcv}}});
_.E([_.Qj()],GHm);_.VS=[sp.prototype,GHm.prototype];_.ia={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var l=this,D={};setTimeout(function(){var U;return _.O9((U=l.hostElement)!=null?U:l,"yt-live-chat-add-tooltip-target",D)},0);
this.handler_=D.handler},
detached:function(){if(this.handler_){var l;this.handler_.removeElementFromSupportingTooltips((l=this.hostElement)!=null?l:this)}this.handler_=null}}};_.ne=new _.A7("ICON_MANAGER_TOKEN");var Jt_=[48,20,18,16,15,13,12],tIC=new Map,Zfc=new Set,qNo=new Set,RuC=new Set,Lq_=new Set,MIG=new Set,mIN=new Promise(function(l){var D=!1,U=!1,n=!1,y=[],A=function(C){if("detail"in C)if(C=C.detail,C.name==="yt-icons")eu9(C),D=!0;else if(C.name==="yt-sys-icons")eu9(C),U=!0;else{var h;((h=C.name)==null?0:h.includes("yt-sys-icons"))&&C.size!==24&&(eu9(C,!0),y.push(C.size),y.length===Jt_.length&&(n=!0))}D&&U&&n&&(window.removeEventListener("iron-iconset-added",A),l())};
window.addEventListener("iron-iconset-added",A)}),Lyy=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"]]);_.la={};_.la.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Nl,computeHref_:function(l,D){D=D===void 0?!1:D;if(!l||l.commandExecutorCommand)return null;var U=PI_(l,D);return D||U!==null?U?_.q("enable_polymer_resin")?_.Ng(U).toString():U:null:(_.II(new _.rc("computeHref was null",this.is,l)),null)},
computeOptionalHref_:function(l){return this.computeHref_(l,!0)},
computeNofollow_:function(l){return l?DJc(l)?"nofollow":null:null},
computeIcon_:function(l){return l&&l.iconType?_.UV(l.iconType):""},
resolveCommand:function(l,D,U){D=D===void 0?{}:D;return _.Ae(l,this.hostElement,D,U===void 0?!1:U)}};var Mbh,D8;_.q8g={};Mbh=null;
D8={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_=uQ$(this.viewroot));_.j0(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var l=this;this.unobserve_();if(_.q("kevlar_vimio_use_shared_monitor"))Kql(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 D=[];this.visibilityOptionVisible_&&D.push(this.visibilityObserver.observe(this.hostElement,function(){return l.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&D.push(this.visibilityObserver.observe(this.hostElement,function(){return l.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&D.push(this.visibilityObserver.observe(this.hostElement,function(){return l.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=D}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Xid(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 l=_.sj(this.parentNode,function(U){var n,y=(n=U.polymerController)!=null?n:U;return!!y.getVisibilityObserverForChild&&y.getVisibilityObserverForChild()},!0);
if(l){var D;this.localVisibilityObserver_=((D=l.polymerController)!=null?D:l).getVisibilityObserverForChild()}else Mbh||(Mbh=uQ$()),this.localVisibilityObserver_=Mbh;return this.localVisibilityObserver_},visibilityCallback:function(l){l?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.q("kevlar_use_vimio_behavior")||(D8={});D8&&!_.q("kevlar_use_vimio_behavior")&&(delete D8.attached,delete D8.detached);_.q8g.YtVisibilityObserverBehavior=[D8];var RSg={};RSg.YtVisualElementBehavior=[_.q8g.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.q("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.q("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var l=this.getScreenLayer&&this.getScreenLayer(),D=this.getVisibilityLogger();D&&D.reportShown(this,void 0,l)}},
onHidden:function(){if(_.q("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.q("kevlar_vimio_use_shared_monitor")){var l=this.getScreenLayer&&this.getScreenLayer(),D=this.getVisibilityLogger();D&&D.reportHidden(this,void 0,l)}},
getVisibilityLogger:function(){return _.q("kevlar_use_vimio_behavior")?_.B9():null},
shouldSkipLogging:function(){if(_.H3("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var l=this.getParentRenderer&&this.getParentRenderer();if(!l)return!1;var D,U=(D=l.polymerController)!=null?D:l;if(!U.data)return!1;l=this.data.trackingParams;l=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:l;var n;D=(n=U.data)==null?void 0:n.trackingParams;var y,A;D=((y=U.data)==null?0:y.loggingDirectives)?(A=U.data)==null?void 0:A.loggingDirectives.trackingParams:D;return l&&D&&l===
D}}];var xIo=new Map,Qu;var Eb9=function(l){this.layer=l},WI=function(l){return l.layer!==void 0?l.layer:l.parent?WI(l.parent):l.layer=0};var zuG;_.Y={};zuG=0;_.Y.YtRendererBehavior=[_.la.YtComponentBehavior,RSg.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_:_.q("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var l,D;(D=(l=this.monitorScrollElement)!=null?l:this.hostElement)==null||D.removeEventListener("scroll",_.CY(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();cT9(this.hostElement);Sok(_.jp(),this.hostElement);Nt.delete(this.hostElement)},
registerRenderer:function(l){var D;((D=l.polymerController)!=null?D:l).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(l),this.markDirty())},
unregisterRenderer_:function(l){this.useVimio_||(this.childCache_.delete(l),this.markDirty())},
attached:function(){var l=this,D=this.getParentRenderer();if(D){var U,n,y;(n=(U=(y=D.polymerController)!=null?y:D).registerRenderer)==null||n.call(U,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var A,C;(C=(A=this.monitorScrollElement)!=null?A:this.hostElement)==null||C.addEventListener("scroll",_.CY(this,this.onScroll))}_.Tn.addJob(function(){jK9(l.hostElement)},8);
U=new Eb9(this.screenLayer||void 0);(D=Nt.get(D))&&D.layerNode&&(U.parent=D.layerNode);D={};Lzs(this.hostElement,(D.isRenderer=!0,D.layerNode=U,D[TOc]=this.data,D))},
getParentRenderer:function(){for(var l=this.hostElement.parentNode,D,U;l&&((D=Nt.get(l))==null||!D.isRenderer)&&!((U=l.polymerController)!=null?U:l).isRenderer_;)l=l.parentNode||l.host;return l},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.q("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.il("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.q("debug_web_ve_data")&&this.data.trackingParams){var l="";try{l=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(U){_.EU(U)}if(l){var D=StK(l,1);D!==void 0&&(this.hostElement.dataset.veIndex=String(D));l=StK(l,2);
l!==void 0&&(this.hostElement.dataset.ve=String(l))}}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,_.q("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.v9(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Ce(_.he(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var l=this.data.targetId;_.dWz(_.jp(),l,this.hostElement)}else Sok(_.jp(),this.hostElement)},
onScroll:function(){var l=Date.now();l-this.lastHandledScroll_<50||(this.lastHandledScroll_=l,this.markDirty())},
markDirty:function(){_.q("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():fdN(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var l=this.getParentRenderer();if(l&&(l=Nt.get(l))&&l.layerNode)return WI(l.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.zz(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var l=0;l<this.data.impressionEndpoints.length;l++)this.sendImpression(this.data.impressionEndpoints[l]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(l){l.clickTrackingParams&&delete l.clickTrackingParams;var D,U;(l==null?0:(D=l.commandMetadata)==null?0:(U=D.webCommandMetadata)==null?0:U.sendPost)?_.lu(this.hostElement,[l,{impression:!0}]):_.DP(this.hostElement,[l],this.hostElement)},
logExplicitClick:function(l){var D=_.t6(this.getScreenLayer());if(D){var U,n=(U=l.polymerController)!=null?U:l;l=n.visualElement;n=n.trackingParams||n.clickTrackingParams;!l&&n&&(l=_.v9(n));l&&_.zo(D,l)}}}];var Zv8={},U0=function(){return _.vg.apply(this,arguments)||this};
_.Z(U0,_.vg);U0.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
U0.prototype.onPdgItemBehaviorClick=U0.prototype.onPdgItemBehaviorClick;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],U0.prototype,"data",void 0);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],U0.prototype,"onPdgItemBehaviorClick",null);_.E([_.Qj()],U0);Zv8.YtPdgLiveChatItemBehavior=[U0.prototype,_.Y.YtRendererBehavior];var eS_;var mp_;_.n$={};_.n$.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var y6=function(){var l=JO.apply(this,arguments)||this;l.switchTemplateAtRegistration=!1;return l};
_.Z(y6,JO);y6.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||EEo(this),_.R_K(this,"doRender"),this.doRender())};
y6.prototype.debounceRender=function(){this.templatingFn&&_.Fs(this,"doRender",this.doRender)};
y6.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.EU(Error("ah"))};
y6.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.E([UUN()],y6);var a67=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,A9={},YNo=(A9[1]={filterString:null,isUnwrappable:null,unwrap:null},A9[2]={filterString:function(l,D,U){return DX(U)},
isUnwrappable:function(l){return l instanceof Hh},
unwrap:function(l){return V1(l)}},A9[3]={filterString:function(l,D,U){return a67.test(U)?U:zq.toString()},
isUnwrappable:function(l){return FO(l)},
unwrap:function(l){return _.ol(l)}},A9[4]={filterString:function(){return zq.toString()},
isUnwrappable:function(l){return l instanceof kC},
unwrap:function(l){return _.Kc(l).toString()}},A9[5]={filterString:function(l,D,U){return U},
isUnwrappable:function(l){return typeof l==="string"},
unwrap:function(l){return l.toString()}},A9[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(l){return l instanceof _.nz},
unwrap:function(l){return Av(l)}},A9[8]={filterString:function(l,D,U){U=String(U).toLowerCase();
return S1K(l,D,U)?U:"zClosurez"},
isUnwrappable:null,unwrap:null},A9[10]={filterString:null,isUnwrappable:null,unwrap:null},A9);vd[VH["default"]]=VIg;var iv9=[];(function(){var l=P3;P3=function(D){l==null||l(D);qD(function(){for(var U=0;U<D.length;U++)l6_(D[U])})}})();var tb5=function(){var l=_.vg.apply(this,arguments)||this;l.hasUnmounted=!1;return l};
_.Z(tb5,_.vg);_.W=tb5.prototype;_.W.beforeRegister=function(){var l=this.doIdomRender;this.templatingFn?_.EU(Error("$g")):(this.templatingFn=l,this.switchTemplateAtRegistration=!0,HfG(this))};
_.W.attached=function(){};
_.W.detached=function(){l6_(this.hostElement)};
_.W.renderIdom=function(){throw Error("ch");};
_.W.doIdomRender=function(){var l=this;edB(this.hostElement,function(){l.renderIdom()})};
_.E([_.Qj()],tb5);var X45=[y6.prototype,tb5.prototype];var S8r,kHy=function(){return S8r!==void 0?S8r:S8r=document.createElement("template")};
document.head.appendChild(kHy().content);var dp_;var Kyy,ct5=function(){return Kyy!==void 0?Kyy:Kyy=document.createElement("template")};
document.head.appendChild(ct5().content);var p4y;var xp7=document.head,jcy=xp7.appendChild,Fy8;if(p4y===void 0){var oj7=document.createElement("template");_.e(oj7,"\x3c!--css-build:shady--\x3e");oj7.content.insertBefore(ct5().content.cloneNode(!0),oj7.content.firstChild);p4y=oj7}Fy8=p4y;jcy.call(xp7,Fy8.content);var w4y,rth=function(){return w4y!==void 0?w4y:w4y=document.createElement("template")};
document.head.appendChild(rth().content);var zS1;var f68=document.head,$pH=f68.appendChild,N2k;if(zS1===void 0){var sc_=document.createElement("template");_.e(sc_,"\x3c!--css-build:shady--\x3e");sc_.content.insertBefore(rth().content.cloneNode(!0),sc_.content.firstChild);zS1=sc_}N2k=zS1;$pH.call(f68,N2k.content);var Ej5=document.head,T2y=Ej5.appendChild,I65;if(dp_===void 0){var Hv7=document.createElement("template");_.e(Hv7,"\x3c!--css-build:shady--\x3e");Hv7.content.insertBefore(kHy().content.cloneNode(!0),Hv7.content.firstChild);dp_=Hv7}I65=dp_;T2y.call(Ej5,I65.content);var Y81,Ov_=function(){return Y81!==void 0?Y81:Y81=document.createElement("template")};
document.head.appendChild(Ov_().content);var Vb8;_.jQ=new _.A7("DARK_THEME_TOKEN");var $pG=new _.y4("accessibilityProperties");var f6$=new _.y4("layoutProperties");var N2B=new _.y4("imageType");var iR5={};if("ytAttributedStringLinkHoverColor"in iR5)throw Error("fh`ytAttributedStringLinkHoverColor");(function(l,D){iR5[l]="value"in D&&"unit"in D?Wyg(l,D):function(U){try{return D(U)}catch(n){throw Error("dh`"+l+"`"+n.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var lMh=function(l){var D=this;this.holdTime=l===void 0?500:l;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(U){var n=new CustomEvent("LONG_PRESS"),y;(y=U.changedTouches[0].target)==null||y.dispatchEvent(n)};
this.ontouchstart=function(U){D.longPressTimeout=_.BI(_.Tn,function(){D.onlongpress(U);D.longPressOccurred=!0},D.holdTime)};
this.ontouchmove=function(){_.Tn.cancelJob(D.longPressTimeout);D.longPressTimeout=NaN;D.longPressOccurred=!1;D.moveOccurred=!0};
this.ontouchend=function(U){if(D.longPressTimeout&&!D.longPressOccurred&&!D.moveOccurred){var n;(n=U.changedTouches[0].target)==null||n.dispatchEvent(new Event("click"))}_.Tn.cancelJob(D.longPressTimeout);D.longPressTimeout=NaN;D.longPressOccurred=!1;D.moveOccurred=!1}};var mpg=function(l,D){lMh.call(this,D);var U=this;this.callback=l;this.onlongpress=function(n){var y;(y=U.callback)==null||y.call(U,n)}};
_.Z(mpg,lMh);var a6c=function(l,D){var U=Object.assign({},D);l=_.B(new Map([["ontouchstart",l.ontouchstart],["ontouchend",l.ontouchend],["ontouchmove",l.ontouchmove]]));for(var n=l.next(),y={};!n.done;y={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},n=l.next()){var A=_.B(n.value);n=A.next().value;A=A.next().value;y.eventName$jscomp$103=n;y.eventHandler$jscomp$2=A;D[y.eventName$jscomp$103]=function(C){return function(h){var b;(b=U[C.eventName$jscomp$103])==null||b.call(U,h);(0,C.eventHandler$jscomp$2)(h)}}(y)}};_.qK=new _.A7("COMMAND_HANDLER_TOKEN");var Cj9=new _.y4("parallelCommand");var bvg=new _.y4("performOnceCommand");var Pj3=new _.y4("serialCommand");var gj9=void 0;var Dmg=function(){this.data=[];this.consumer=null};
Dmg.prototype.push=function(l){this.consumer?this.consumer(l):this.data.push(l)};var wN={};_.aw(wN,void 0,"sgPmTd");_.aw(null,void 0,"jypsq");_.aw(null,void 0,"mWiOof");var r_g=new Dmg;var Mb3=[TTy,Ijy,Hcm,Ocv,YWg,ECH,VDz,izk];var rt3=new _.y4("bracketTextDecorator");var pe=new _.y4("highlightTextDecorator");_.oO=new _.A7("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var xpc=function(){},UmH;
(UmH=window.requestIdleCallback)==null||UmH.bind(window);var Fy$={calledOnce:!1,state:"visible"},jcd={calledOnce:!1,state:"hidden"};var nU7=new _.A7("ICON_WIZ_COMPONENT_TOKEN");_.C0=_.w(function(l){var D=l.icon;var U=l.active;var n=l.className;var y=l.style;var A=l.dataSelected;var C=l.dataDisabled;var h=l.role;var b=l.animateIcon;var u=l.themeOverride;var Q=l.ariaHidden;var G=l.ariaExpanded;var J=l.ariaLabel;var L=l.tabindex;var R=l.id;var a=l.size;var S=l.iconFilter;var d=l.gradientColor;var c=l.onKeydown;var N=l.title;return _.g(_.v,{cond:D,then:function(){var z=_.Jc().resolve(nU7);return _.g(z,{icon:D,dataSelected:A,dataDisabled:C,animateIcon:b,themeOverride:u,ariaExpanded:G,
tabindex:L,id:R,active:U,size:a,role:h,className:n,ariaHidden:Q,ariaLabel:J,style:function(){return y!=null&&y()||a==null||!a()?y==null?void 0:y():"width: "+(a==null?void 0:a())+"px;height: "+((a==null?void 0:a())+"px;")},
title:N,iconFilter:S,gradientColor:d,onKeydown:c})}})},"l");
_.C0.idomCompat={callbacks:{onKeydown:!0}};var WN3=window.devicePixelRatio||1;var Pf9=new Map([["yt_outline_bag_black_24","bag"]]);var WO=function(l){var D=this;this.margin=.1;this.whenInViewportWithMargin=l;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){D.requestScan()});
window.addEventListener("touchend",function(){D.requestScan()});
window.addEventListener("updateui",function(){D.requestScan()});
var U=new _.A1((0,_.jU)(this.requestScan,this),100);window.addEventListener("scroll",function(){U.fire()},!0);
window.addEventListener("resize",(0,_.jU)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){D.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.jU)(this.requestScan,this))};
WO.prototype.observe=function(l){this.observationTargets.includes(l)||this.observationTargets.push(l)};
WO.prototype.unobserve=function(l){this.observationTargets=this.observationTargets.filter(function(D){return D!==l})};
WO.prototype.requestScan=function(){var l=this;this.scanRequested||(qD(function(){y08(l)}),this.scanRequested=!0)};
var y08=function(l){var D=(1+l.margin)*(document.documentElement.clientHeight||window.innerHeight);l.observationTargets=l.observationTargets.filter(function(U){var n=U.getBoundingClientRect();(n=D>n.top&&!!n.height)&&l.whenInViewportWithMargin(U);return!n&&U.parentNode});
l.scanRequested=!1};
WO.prototype.disconnect=function(){this.observationTargets=[]};var A0_,BJm;A0_=_.B(_.aw(Q39(),void 0,"O3X2wd"));_.WNh=A0_.next().value;BJm=A0_.next().value;window.addEventListener("resize",function(){BJm(Q39())});var Cf7={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},hiy=void 0,Pf1=window.innerWidth,bR7=window.innerHeight;window.addEventListener("resize",function(){hiy=void 0});var gUy;if("IntersectionObserver"in window)gUy=LN_();else{if(hiy===void 0){var ulg;ulg="matchMedia"in window?window.matchMedia(Cf7.landscape+","+Cf7.portrait).matches:void 0;hiy=ulg!==void 0?ulg:Pf1>=930&&bR7>=550||Pf1>=550&&bR7>=930}gUy=hiy?{observe:function(l){qD(function(){var D;(D=l.onViewportEntered)==null||D.call(l)})},
unobserve:function(){}}:new WO(function(l){qD(function(){var D;
(D=l.onViewportEntered)==null||D.call(l)})})}var GR_=gUy;var vU7=_.w(function(l){var D=!1,U=_.bP("img",function(n){_.NV(function(){D=!0;n.onload=null})});
_.$i(function(){var n,y=(n=l.data)==null?void 0:n.call(l),A,C=(A=l.getSrc)==null?void 0:A.call(l).cb,h;n=(h=l.config)==null?void 0:h.call(l);if(h=U.value)if(A=function(u,Q){if(!D)return C?C(u,Q):u},Ri3(h,n),_.q("web_image_dont_reload_same_src")&&MEc(h,y,A))_.q("web_image_dont_reload_same_src_simulate_load")&&h.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var b;qqo(h,y||null,A,n,(b=l.lazy)==null?void 0:b.call(l))}},"zS0jKb");
return _.g("img",{el:U})},"n");
vU7.idomCompat=!0;_.rh=_.w(function(l){var D=function(){var U,n=l.data(),y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I,iG,CC,vo,td,GN,Ms,j3,wl,zN,Z7;var Lm={contentMode:(y=l.contentMode)==null?void 0:y.call(l),loadedClass:(A=l.loadedClass)==null?void 0:A.call(l),isPreloaded:(C=l.isPreloaded)==null?void 0:C.call(l),notifyOnLoaded:(h=l.notifyOnLoaded)==null?void 0:h.call(l),notifyOnUnloaded:(b=l.notifyOnUnloaded)==null?void 0:b.call(l),preferredThumbnail:(u=l.preferredThumbnail)==null?void 0:u.call(l),preserveHeight:(Q=l.preserveHeight)==
null?void 0:Q.call(l),preserveWidth:(G=l.preserveWidth)==null?void 0:G.call(l),objectPosition:(J=l.objectPosition)==null?void 0:J.call(l),targetWidth:(L=l.targetWidth)==null?void 0:L.call(l),targetHeight:(R=l.targetHeight)==null?void 0:R.call(l),shouldShowPlaceholder:(a=l.shouldShowPlaceholder)==null?void 0:a.call(l),useWidth:(S=l.useWidth)==null?void 0:S.call(l),isToggled:(d=l.isToggled)==null?void 0:d.call(l),alt:(c=l.alt)==null?void 0:c.call(l),className:(N=l.className)==null?void 0:N.call(l),
onerror:l.onerror,onload:l.onload,style$:((z=l.style$)==null?void 0:z.call(l))||((f=l.style)==null?void 0:f.call(l)),color:(I=l.color)==null?void 0:I.call(l),width:(iG=l.width)==null?void 0:iG.call(l),height:(CC=l.height)==null?void 0:CC.call(l),"aria-hidden$":(zN=(vo=l["aria-hidden$"])==null?void 0:vo.call(l))!=null?zN:(td=l.ariaHidden)==null?void 0:td.call(l),draggable:(GN=l.draggable)==null?void 0:GN.call(l),"data-disabled$":(Z7=(Ms=l["data-disabled$"])==null?void 0:Ms.call(l))!=null?Z7:(j3=l.dataDisabled)==
null?void 0:j3.call(l),size:(wl=l.size)==null?void 0:wl.call(l)};return mm3(n,Lm,(U=l.hideOn404)==null?void 0:U.call(l))};
return _.g(_.rt,null,_.g(_.F2,{when:function(){var U;return((U=D())==null?void 0:U.type)==="image"}},function(){return _.g(vU7,{data:function(){return D().image},
getSrc:{cb:function(U,n){var y=D().image.sources,A=D().config.isPreloaded,C=D().config.useWidth,h=D().config.targetWidth,b=D().config.targetHeight,u=D().config.preferredThumbnail;return _.BJC(n,y,A,C,h,b,u)||""}},
config:function(){var U=D().config,n;for(n in U)U[n]===void 0&&delete U[n];return U},
lazy:l.renderLazy})}),_.g(_.F2,{when:function(){var U;
return((U=D())==null?void 0:U.type)==="icon"}},function(){return _.g(_.C0,{icon:function(){return D().iconName},
role:function(){return D().config.role},
className:function(){return D().config.className},
style:function(){return D().config.style$+";width: "+(D().config.width+"px;height: ")+(D().config.height+"px;color: ")+(D().config.color+";")},
ariaLabel:function(){return D().config["aria-label$"]},
ariaHidden:function(){return D().config["aria-hidden$"]},
dataDisabled:function(){return D().config["data-disabled$"]},
active:function(){return D().config.isToggled},
size:function(){return D().config.size}})}))},"o");
_.rh.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Q37=function(l){return function(D){return _.g(zd3,null,function(){var U=D.data(),n=_.EP(D.config);return _.g(Jio,null,function(){return void l(U,n)})})}}(kRB),XJd=_.w(function(l){var D=function(y){var A=_.q("web_wiz_attributed_string_skip_empty")?y:$t(function(){return Ejo(y())},{isEqual:tEG});
var C,h,b=_.fe(function(R){C=A();h=sP(function(){for(var a=_.B(J()),S=a.next();!S.done;S=a.next()){S=dm$(S.value);S=typeof S==="string"?document.createTextNode(S):S;if(!(S instanceof Node)){a=new _.rc("Part is not a node",S,typeof S);_.EU(a);break}R.appendChild(S)}})}),u=_.NQ(l.config),Q=function(){var R,a=A();
return!((R=u())==null||!R.ariaLabel)||!(a.commandRuns&&a.commandRuns.length!==0||a.paragraphStyleRuns&&a.paragraphStyleRuns.length!==0)},G=$t(u,{isEqual:c0N}),J=function(){var R=scg(A(),G());
I6o(R,G());return A().content?lM3(A().content,R).parts:[]},L=!0;
_.$i(function(){A();G();if(L){L=!1;var R=tEG(A(),C);if(!_.q("web_attributed_string_race_fix")||R)return}var a=J();Promise.resolve().then(function(){var S=b.value;if(S){S.innerText="";var d;(d=h)==null||d();h=_.fk(S,function(){return _.g(KNC,{parts:a})},"p")}})},"I0a5Qb");
return _.g("span",{el:b,class:function(){return A()&&dpg(A(),u())},
dir:function(){var R;return((R=u())==null?0:R.userInput)?"auto":void 0},
"aria-label":function(){var R;return Q()?(R=u())==null?void 0:R.ariaLabel:void 0},
role:function(){return Q()?"text":void 0}})},U=_.q("web_wiz_attributed_string_skip_empty")?$t(function(){var y,A=(y=l.text)==null?void 0:y.call(l);
if(A)return y=Ejo(A),(y==null?0:y.content)?y:void 0},{isEqual:tEG}):l.text,n;
return((n=l.config)==null?0:n.renderedFromFormattedString)?D(U):_.g(_.v,{cond:U,then:D})},"r");
XJd.idomCompat=!0;_.BO=_.w(function(l){var D=_.NQ(l.text),U=pJN(l);l.renderedFromFormattedString!==void 0&&(U.renderedFromFormattedString=!0);return _.q("attr_string_reactive")?_.g(XJd,{text:D,config:U}):_.g(_.v,{cond:function(){var n;return D()&&((n=Ejo(D()))==null?void 0:n.content)},
then:function(){return _.g(Q37,{data:l.text,config:U})},
debugInstance:"Apcuac"})},"s");
_.BO.idomCompat=!0;var xm9=function(l,D,U){D=D===void 0?"unknown":D;U=U===void 0?{}:U;_.rc.call(this,l+" ("+D+")",Object.assign({},{name:"YtWcwError",tagName:D},U));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(xm9,_.rc);_.EV=new WeakMap;_.sV=!1;var r09,zi_,wJG;_.C$=Symbol("hh");_.ND=Symbol("ih");r09=Symbol("jh");zi_=new Set(Object.getOwnPropertyNames(Element.prototype));wJG=Symbol("kh");var GRg=_.w(function(l){return _.g("yt-attributed-string",{"aria-label":l.ariaLabel,hidden:l.hidden,id:l.id,class:l.className,"force-default-style":l.forceDefaultStyle},_.g(_.BO,{text:l.data,ariaLabel:l.ariaLabel,ellipsisTruncate:l.ellipsisTruncate,isOverlay:l.isOverlay,linkInheritColor:l.linkInheritColor,noPreWrap:l.noPreWrap,noWrap:l.noWrap,userInput:l.userInput,noEndpoints:l.noEndpoints,headerRuns:l.headerRuns,isHeadline:l.isHeadline}))},"t");
_.q("web_wiz_attributed_string")&&_.Tt(GRg,"yt-attributed-string",{props:{ariaHidden:_.C$,ariaLabel:_.C$,className:_.C$,ellipsisTruncate:_.C$,isOverlay:_.C$,linkInheritColor:_.C$,noEndpoints:_.C$,noStyleRuns:_.C$,noLinkColor:_.C$,noPreWrap:_.C$,noWrap:_.C$,skipOnClick:_.C$,userInput:_.C$,headerRuns:_.C$,isHeadline:_.C$,id:_.C$,data:_.C$,hidden:_.C$,forceDefaultStyle:_.C$,text:_.ND,disableUpgrade:_.ND,disable:_.ND,slot:_.ND}});var h9=function(){return _.p.apply(this,arguments)||this};
_.Z(h9,_.p);h9.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},kRB(this.data,this.config))};
_.E([_.m(X45),_.T("design:type",Object)],h9.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],h9.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],h9.prototype,"ariaLabel",void 0);_.E([_.K(),_.T("design:type",Boolean)],h9.prototype,"disable",void 0);_.E([_.K(),_.T("design:type",Boolean)],h9.prototype,"ellipsisTruncate",void 0);_.E([_.K(),_.T("design:type",Boolean)],h9.prototype,"isOverlay",void 0);
_.E([_.K(),_.T("design:type",Boolean)],h9.prototype,"linkInheritColor",void 0);_.E([_.K(),_.T("design:type",Boolean)],h9.prototype,"noPreWrap",void 0);_.E([_.K(),_.T("design:type",Boolean)],h9.prototype,"noWrap",void 0);_.E([_.K(),_.T("design:type",Boolean)],h9.prototype,"userInput",void 0);_.E([_.K(),_.T("design:type",Boolean)],h9.prototype,"noEndpoints",void 0);_.E([_.K(),_.T("design:type",Array)],h9.prototype,"headerRuns",void 0);
_.E([_.S0({is:"yt-attributed-string",disableElementRegistration:!0})],h9);
_.q("web_wiz_attributed_string")||_.r(h9,"yt-attributed-string",function(){if(Vb8===void 0){var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
l.content.insertBefore(Ov_().content.cloneNode(!0),l.content.firstChild);Vb8=l}l=Vb8;return l},{mode:2});var J0g,LNg,IM9;J0g=function(){this.firstThumbnailLoaded=!1};
_.qq5=function(){LNg||(LNg=new J0g);return LNg};
IM9=function(l){var D=_.qq5();D.firstThumbnailLoaded||(D.firstThumbnailLoaded=!0,_.ae("ftl",l))};
J0g.prototype.reset=function(){this.firstThumbnailLoaded=!1};var $m9=0,TJN=new WeakMap,s3C=0,Yt=new Set;var ME7,Rih=function(){return ME7!==void 0?ME7:ME7=document.createElement("template")};
document.head.appendChild(Rih().content);var ZRH;var VE9,lwo,PO;_.i_=_.nC.caches;PO=function(){};
PO.prototype.open=function(l){return _.i_.open(eim(l))};
PO.prototype.has=function(l){return _.i_.has(eim(l))};
PO.prototype.delete=function(l){return _.i_.delete(eim(l))};
PO.prototype.match=function(l,D){var U=this,n,y,A,C,h,b;return _.P(function(u){switch(u.nextAddress){case 1:return u.yield(U.keys(),2);case 2:n=u.yieldResult,y=_.B(n),A=y.next();case 3:if(A.done){u.jumpTo(5);break}C=A.value;return u.yield(U.open(C),6);case 6:return h=u.yieldResult,u.yield(h.match(l,D),7);case 7:if(b=u.yieldResult)return u.return(b);A=y.next();u.jumpTo(3);break;case 5:return u.return()}})};
var D_c=function(){};
_.Z(D_c,PO);var eim=function(l){if(l.includes(":"))throw Error("nh`"+l);return l+":"+_.oG("CacheStorage get")};
D_c.prototype.keys=function(){var l,D,U,n,y,A,C,h,b;return _.P(function(u){if(u.nextAddress==1)return l=[],D=_.oG("CacheStorage keys"),u.yield(_.i_.keys(),2);U=u.yieldResult;n=_.B(U);for(y=n.next();!y.done;y=n.next())A=y.value,C=_.OR3(A),h=C.originalName,b=C.datasyncId,b===D&&l.push(h);return u.return(l)})};var ba=function(){var l=_.p.apply(this,arguments)||this;l.objectURL=null;l.loadTime=Infinity;return l};
_.Z(ba,_.p);_.W=ba.prototype;_.W.renderIdom=function(){Yqg(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&ZRG(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.W.objectFitToContentMode=function(l){switch(l){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.W.logThumbnailFailureVe=function(){var l=_.UE(197497);_.cq(_.he(),l);var D=_.t6();D&&l&&D&&_.wj(D,[l])};
_.W.loadImageFromCacheIfExists=function(l){var D=this,U=l.target;(U==null?0:U.src)&&ncg(U.src).then(function(n){D.objectURL=_.sW(n).toString();D.setSrc(U,D.objectURL)}).catch(function(){})};
_.W.onError=function(l){var D=this;if(_.q("web_use_cache_for_image_fallback")){var U=l.target;U&&ncg(U.src).then(function(n){D.objectURL=_.sW(n).toString();D.setSrc(U,D.objectURL)}).catch(function(){_.q("kevlar_woffle_log_thumbnail_failure_ve")&&D.logThumbnailFailureVe();
_.q("kevlar_woffle_fallback_image")&&D.setSrc(U,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.W.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.W.setConfig=function(){var l=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(D){l.loadImageFromCacheIfExists(D);l.revokeObjectURL();HRl(l.hostElement)},
onerror:function(D){l.onError(D)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.q("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.W.setSrc=function(l,D){D&&(l.src=D)};
_.E([_.m(X45),_.T("design:type",Object)],ba.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ba.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],ba.prototype,"alt",void 0);_.E([_.K(),_.T("design:type",Boolean)],ba.prototype,"ftlEligible",void 0);_.E([_.K(),_.T("design:type",Number)],ba.prototype,"height",void 0);_.E([_.K(),_.T("design:type",Boolean)],ba.prototype,"notifyOnLoaded",void 0);
_.E([_.K(),_.T("design:type",Boolean)],ba.prototype,"notifyOnUnloaded",void 0);_.E([_.K(),_.T("design:type",String)],ba.prototype,"objectFit",void 0);_.E([_.K(),_.T("design:type",String)],ba.prototype,"objectPosition",void 0);_.E([_.K(),_.T("design:type",String)],ba.prototype,"preferredThumbnail",void 0);_.E([_.K(),_.T("design:type",Boolean)],ba.prototype,"preserveHeight",void 0);_.E([_.K(),_.T("design:type",Boolean)],ba.prototype,"preserveWidth",void 0);
_.E([_.K({value:!0}),_.T("design:type",Boolean)],ba.prototype,"useWidth",void 0);_.E([_.K({value:function(){return!_.il("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.T("design:type",Boolean)],ba.prototype,"shouldRenderLazy",void 0);_.E([_.K(),_.T("design:type",Number)],ba.prototype,"width",void 0);_.E([_.S0({is:"yt-image",disableElementRegistration:!0})],ba);
_.r(ba,"yt-image",function(){if(ZRH===void 0){var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);l.content.insertBefore(Rih().content.cloneNode(!0),l.content.firstChild);
ZRH=l}l=ZRH;return l},{mode:2});var g9=function(){return _.p.apply(this,arguments)||this};
_.Z(g9,_.p);g9.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var l=_.te(this.data.onVisibleCommand);l&&this.ytComponentBehavior.resolveCommand(l)}};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],g9.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.n$.YtVisibilityBehavior),_.T("design:type",Object)],g9.prototype,"ytVisibilityBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],g9.prototype,"data",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],g9);
_.r(g9,"yt-bumper-user-edu-content-view-model",function(){if(mp_===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;eS_===void 0&&(eS_=document.createElement("template"));var n=eS_;U.call(D,n.content.cloneNode(!0),l.content.firstChild);mp_=l}l=mp_;return l},{mode:0});var mmh;var aMh,tEH=function(){if(aMh!==void 0)return aMh;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;mmh===void 0&&(mmh=document.createElement("template"));var n=mmh;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return aMh=l};var XJy;_.ua={};XJy=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"]);_.ua.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var l=this.getContext_();return l?l.getTaskManager():_.Tn},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var l=_.O9(this.hostElement,"yt-get-context-provider",{});l.detail&&l.detail.contextProvider?this.cachedProviderNode_=l.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return XJy.has(this.hostElement.localName)},
getNetworkManager:function(){var l=this.getContext_();if(l)return l.getNetworkManager()}};var hOC,Sqz,dm8,kRk;_.vO=function(l){var D=Sqz.get(l);if(D&&(D=D.pop()))return kRk++,D;dm8++;try{var U=document.createElement(l)}catch(n){throw new _.rc("ElementPool failed to create element",l,n.message);}return U};
hOC=function(l){var D=l.is;if(D){var U=Sqz.get(D);U||(U=[],Sqz.set(D,U));var n=_.H3("ELEMENT_POOL_CONFIG")||{};U.length>=(n[D]!==void 0?n[D]:_.H3("ELEMENT_POOL_DEFAULT_CAP",0))||U.push(l)}else _.II(new _.rc("Element pool should only handle custom elements:",l.nodeName))};
Sqz=new Map;dm8=0;kRk=0;var l_=new WeakMap,CEK=new WeakMap;var c0v;_.Q6=function(l,D,U){U=U===void 0?_.M9():U;this.JSC$13969_defaultPriority=l;this.signal=D;this.scheduler=U;this.nextJobDescriptor=0;this.JSC$13969_parkedJobs=[];this.scheduledJobs=new Map};
_.G9=function(l,D){if(D){var U=_.PN();l.signal&&!_.bN(U,l.signal)?(U.addListener(l.signal,function(){l.processSignal()}),l.JSC$13969_parkedJobs.push({job:D,
priority:void 0})):KNm(l,D)}};
c0v=function(l,D){if(D!==l.JSC$13969_defaultPriority){l.JSC$13969_defaultPriority=D;for(var U=_.B(l.scheduledJobs.values()),n=U.next();!n.done;n=U.next())n=n.value,l.scheduler.cancelJob(n.jobId),n.jobId=l.scheduler.addJob(n.jobWrapper,D)}};
_.Q6.prototype.flushJobs=function(){c0v(this,10);this.processSignal()};
_.Q6.prototype.cancel=function(){for(var l=_.B(this.scheduledJobs),D=l.next();!D.done;D=l.next()){var U=_.B(D.value);D=U.next().value;U=U.next().value;this.scheduler.cancelJob(U.jobId);this.scheduledJobs.delete(D)}this.JSC$13969_parkedJobs=[]};
_.Q6.prototype.processSignal=function(){for(var l=_.B(this.JSC$13969_parkedJobs),D=l.next();!D.done;D=l.next())D=D.value,KNm(this,D.job,D.priority);this.JSC$13969_parkedJobs=[]};
var KNm=function(l,D,U){U=U||l.JSC$13969_defaultPriority;if(U===10)OV(D);else{var n=l.nextJobDescriptor++,y=function(){D();l.scheduledJobs.delete(n)},A=l.scheduler.addJob(y,U);
l.scheduledJobs.set(n,{jobWrapper:y,jobId:A,priority:U})}};var pJv;_.J9={};pJv={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.J9.YtRendererstamperBehavior=[_.ua.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 l in this.stampDom){var D=this.stampDom[l];D&&D.id&&this.addReactiveSchema({type:"observe",method:{methodName:A$s(D.id),args:[{type:"wildcard",path:l}]}})}else{(l=(this.constructor.generatedFrom||this).observers)||(l=[]);for(D in this.stampDom){var U=this.stampDom[D];U&&U.id&&l.push(A$s(U.id)+"("+D+".*)")}this.constructor.generatedFrom.observers=l}},
addStampDomObserverFns_:function(){for(var l in this.stampDom){var D=this.stampDom[l];D.id?(this[A$s(D.id)]=this.rendererStamperObserver_.bind(this,l,D.id),this.hasDataPath_[l]=!1):(D=new _.rc("Bad rendererstamper config",this.is+":"+l),_.EU(D))}},
rendererStamperObserver_:function(l,D,U){if(U.path==l){if(U.value===void 0&&!this.hasDataPath_[l])return;this.hasDataPath_[l]=U.value!==void 0}this.rendererStamperApplyChangeRecord_(l,D,U)},
rendererStamperApplyChangeRecord_:function(l,D,U){var n=this.renderJobsMap_[D],y=null;l==U.path?(U=U.value,_.Ns(U)||(U=U===void 0||U===null?[]:[U]),l=this.stampDom[l],l.mapping&&(y=this.stampDomArray_.bind(this,U,D,l.mapping,l.reuseComponents,l.events,l.stamperStableList)),n&&n.cancel(),U=l.usePageScheduler?this.getTaskManager():void 0,n||l.initialRenderPriority==void 0)?l.renderPriority==void 0||n||(n=new _.Q6(l.renderPriority,l.waitForSignal,U),this.renderJobsMap_[D]=n):(n=new _.Q6(l.initialRenderPriority,
l.waitForSignal,U),this.renderJobsMap_[D]=n,y=function(A,C){A();c0v(C,10)}.bind(this,y,n)):y=l+".splices"==U.path?this.stampDomArraySplices_.bind(this,l,D,U.value):this.forwardRendererStamperChanges_.bind(this,l,D,U);
n?_.G9(n,y):y()},
forwardRendererStamperChanges_:function(l,D,U){var n=U.path.slice(l.length+1),y=this.getStampContainer_(D),A=n.indexOf("."),C=n.substring(0,A),h=!1,b=0,u=parseInt(C,0);if(C[0]=="#"){h=parseInt(C.substring(1),0);u=this.get(l);var Q=this.get([l,C]);u[h]==Q?b=h:b=u.indexOf(Q);h=!0}else isNaN(u)||(b=u,h=!0);h&&(n=n.substring(C.length+1),A=n.indexOf("."));C=this.polymerDom(y).children[b];var G;if(y=(G=C==null?void 0:C.polymerController)!=null?G:C)n="data"+n.slice(A),typeof y.notifyPath!=="function"?_.II(new _.rc("notifyPath missing",
this.is+": "+l+", "+D)):U.value?y.notifyPath(n,U.value):y.notifyPath(n)},
stampDomArraySplices_:function(l,D,U){if(U&&U.indexSplices){var n=this.getStampContainer_(D);if(n){for(var y=this.polymerDom(n),A=Bas(this.stampDom[l].reuseComponents),C=U.indexSplices.length,h=0;h<C;h++){for(var b=U.indexSplices[h],u=y.children[b.index],Q=b.removed.length;Q>0;Q--)u&&u.parentElement&&(this.polymerDom(u.parentElement).removeChild(u),A&&hOC(u),u=y.children[b.index]);Q=this.stampDom[l].mapping;for(var G=b.index+b.addedCount,J=document.createDocumentFragment(),L=A,R=b.index;R<G;R++){var a=
b.object[R],S=y$g(Q,a);if(S){var d=Q[S];a=a[S];S=this.getComponentName_(d,a);var c=u?l_.has(u):!1;L&&u&&u.is==S&&c?(S=u,this.telemetry_.reuse++,u=u.nextElementSibling):L&&u&&c?(S=this.createComponent_(d,a,A),c=this.polymerDom(u).nextElementSibling,y.insertBefore(S,c),bHd(this.is,y,u,A),u=c):(L=!1,S=this.createComponent_(d,a,A),J.appendChild(S));this.deferRenderStamperBinding_(S,d,a)}else d=new _.rc("Unimplemented type",l,D,n.tagName,Object.keys(a)[0]),_.EU(d)}y.insertBefore(J,u)}this.flushRenderStamperComponentBindings_();
this.stampDom[l].events&&_.O9(this.hostElement,"yt-rendererstamper-finished",{container:n})}else l=new _.rc("Container object not found",D,this.hostElement?this.hostElement.is:""),_.EU(l)}},
stampDomArray_:function(l,D,U,n,y,A){var C=this.getStampContainer_(D);if(C)if(D=this.polymerDom(C),n=Bas(n),l){var h=0,b=0,u;if(A=A===void 0?_.il("STAMPER_STABLE_LIST",!1):A||!1)for(u=D.firstElementChild;u&&!l_.has(u)&&l.length>b;){A=l[b];var Q=y$g(U,A);if(Q){if(this.getComponentName_(U[Q],A[Q])!=u.is){var G=this.createComponent_(U[Q],A[Q],n),J=_.Ga(u).nextElementSibling;J?D.insertBefore(G,J):D.appendChild(G);bHd(this.is,D,u,n);u=G}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(u,U[Q],
A[Q]);h++;b++;u=this.polymerDom(u).nextElementSibling}else b++}gcC(this.is,D,h,n);h=u;if(l.length>b){A=document.createDocumentFragment();for(Q=l.length;b<Q;b++)if(G=l[b],J=y$g(U,G))u=this.createComponent_(U[J],G[J],n),this.deferRenderStamperBinding_(u,U[J],G[J]),A.appendChild(u);if(h&&this.polymerDom(h).parentNode&&u&&!l_.has(u))D.insertBefore(A,h);else try{D.appendChild(A)}catch(L){_.II(new _.rc("Error in RendererStamperBehavior: appendChild failed.",{componentName:this.hostElement.is}))}}this.flushRenderStamperComponentBindings_();
this.markDirty&&this.markDirty();y&&_.O9(this.hostElement,"yt-rendererstamper-finished",{container:C})}else gcC(this.is,D,0,n);else l=new _.rc("Container object not found",D,this.hostElement?this.hostElement.is:""),_.EU(l)},
polymerDom:function(l){return this.minimizePipBreakages?l:_.Ga(l)},
getStampContainer_:function(l){return this.$&&this.$[l]||_.iJ(this.hostElement).querySelector("#"+l)},
getComponentName_:function(l,D){return typeof l==="string"?l:l.matcher?l.matcher.call(this,D):l.component},
createComponent_:function(l,D,U){l=this.getComponentName_(l,D);try{var n=H9_.has(l);if(U&&!n){var y=_.vO(l);try{_.Wg(y)}catch(A){U="Failed to clear styles for "+l+".",A.message&&(U+=" Original error: "+A.message),_.II(new _.rc(U))}}else y=document.createElement(l)}catch(A){return y="YtRendererStamperBehavior failed to create "+l+".",A.message&&(y+=" Original description: "+A.message),A.message="YtRendererStamperBehavior failed to create element",_.HA(A,y),pJv.hasOwnProperty(l)?_.II(A):_.EU(A),document.createElement("SPAN")}this.telemetry_.create++;
return y},
deferRenderStamperBinding_:function(l,D,U){this.deferredBindingTasks_.push({component:l,typeOrConfig:D,data:U})},
flushRenderStamperComponentBindings_:function(){for(var l=0,D=this.deferredBindingTasks_.length;l<D;l++){var U=this.deferredBindingTasks_[l];if(!U)break;var n=void 0,y=void 0,A=void 0,C=void 0,h=U.component,b=U.typeOrConfig;U=U.data;var u=(C=h.polymerController)!=null?C:h;C=h.loggingStatus;try{C&&(C.isRendererStamper=!0);if(typeof b!=="string"){for(A in b.attributes)b.attributes[A]===!0?h.setAttribute(A,""):b.attributes[A]===!1?h.removeAttribute(A):h.setAttribute(A,b.attributes[A]);for(y in b.params)u[y]=
b.params[y],h!==u&&qQ(h.localName,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(n in b.properties){var Q=b.properties[n];if(Q){var G=Wcl(Q);u[n]=this.get(G);h!==u&&qQ(h.localName,n,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(n==="on-tap"||n==="on-click"){var J=this.get(G);h.addEventListener("click",J);CEK.set(h,{property:n,listener:{type:"element",eventName:"click",handler:J}})}}else{var L=new _.rc("Undefined property binding",n);_.EU(L)}}}if(b.classListBinding){var R=Wcl(b.classListBinding),
a=R?this[R]:null;if(a)for(n=0;n<a.length;n++)_.nY(h,a[n],!0)}u.data=U}finally{C&&(C.isRendererStamper=!1)}if(n=l_.get(h))h.hidden=!1,l_.delete(h),_.Tn.cancelJob(n)}this.deferredBindingTasks_.length=0}}];_.Tt(_.w(function(l){function D(){U().seconds&&A(yK_({seconds:Number(U().seconds)-Date.now()/1E3}))}
var U=l.targetTimestamp;l=l.className;var n=_.B(_.aw("",void 0,"U1Q8Ae")),y=n.next().value,A=n.next().value;_.$g(function(){D();var C=setInterval(function(){D()},1E3);
_.NV(function(){clearInterval(C)})});
return _.g("yt-countdown",{class:_.DV("ytCountDownHost",l)},_.g("div",null,y))},"v"),"yt-countdown",{props:{targetTimestamp:_.C$,
className:_.ND}});_.L$=new _.A7("KEY_MANAGER_TOKEN");var MBc={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"};_.qO=_.w(function(l){var D=_.bP("a",l.ref),U=l.aTagConfig?l.aTagConfig:_.dM(function(){var n,y,A,C,h;var b=(h=_.te((A=l.command)==null?void 0:A.call(l)))!=null?h:(C=l.command)==null?void 0:C.call(l);return _.SQ({innertubeCommand:b,skipOnClick:(n=l.skipOnClick)==null?void 0:n.call(l),defaultTarget:(y=l.target)==null?void 0:y.call(l)})||{}},void 0,"TAvz0");
_.$i(function(){_.q("mweb_get_endpoint_from_atag_command")||(D.value._data=U()._data,D.value.params=U().params)},"dcjvAe");
return _.g("a",{el:D,href:function(){return U().href$},
rel:function(){return U().rel$},
class:function(){var n,y;return(y=U().className)!=null?y:(n=l.className)==null?void 0:n.call(l)},
style:function(){var n;if((n=l.style)==null?0:n.call(l))return l.style();var y;return((y=l.disabled)==null?0:y.call(l))?"pointer-events:none":""},
"aria-haspopup":function(){return!!U()["aria-haspopup$"]},
"force-new-state":yl(function(){return U()["force-new-state$"]}),
title:yl(function(){var n,y;return(y=U().title$)!=null?y:(n=l.title)==null?void 0:n.call(l)}),
role:yl(function(){var n;return((n=l.role)==null?void 0:n.call(l))||U().role$}),
target:yl(function(){return U().target$}),
dir:yl(function(){var n;return((n=l.dir)==null?void 0:n.call(l))||U().dir}),
tabindex:function(){var n;return U().tabindex$?Number(U().tabindex$):(n=l.tabIndex)==null?void 0:n.call(l)},
"aria-hidden":function(){var n,y;return(y=U()["aria-hidden$"])!=null?y:(n=l.ariaHidden)==null?void 0:n.call(l)},
"aria-label":function(){var n,y;return(y=U()["aria-label$"])!=null?y:(n=l.ariaLabel)==null?void 0:n.call(l)},
"aria-current":l.ariaCurrent,"aria-disabled":l.disabled,"aria-labelledby":l.ariaLabelledby,"aria-describedby":l.ariaDescribedby,"aria-selected":l.ariaSelected,"tab-identifier":l.tabIdentifier,"on:pointerdown":_.n0(function(n){var y,A;return void((A=(y=U()).onpointerdown)==null?void 0:A.call(y,n))}),
"on:click":_.n0(function(n){var y,A;(A=(y=U()).onclick)==null||A.call(y,n);var C;(C=l.onClick)==null||C.call(l,n)}),
"on:focusin":_.n0(function(n){var y;(y=l.onFocusin)==null||y.call(l,n)}),
"on:focusout":_.n0(function(n){var y;(y=l.onFocusout)==null||y.call(l,n)})},l.children)},"x");var S63={duration:1E3,easing:"ease",fill:"forwards"};X89.componentType=py;var Kc$={duration:1E3,easing:"ease",fill:"forwards"},FNH=_.w(function(l){var D=_.bP("animated-rolling-character"),U=void 0,n=function(){var h,b;return $2((h=l.character)==null?void 0:h.call(l))||$2((b=l.previousCharacter)==null?void 0:b.call(l))},y=_.B(_.aw(0,void 0,"CYT8Ob")),A=y.next().value,C=y.next().value;
_.$g(function(){if(window.ResizeObserver&&_.q("web_fix_rolling_numbers_zoom_safari")){var h=new _.A1(function(){var u,Q,G=Math.round(((Q=(u=D.value.querySelector("div"))==null?void 0:u.getBoundingClientRect().height)!=null?Q:0)*100)/100;G&&C(G)},500),b=new ResizeObserver(function(){h.fire()});
b.observe(D.value);_.NV(function(){b.disconnect();h.dispose()})}});
_.$i(function(){var h=_.q("web_fix_rolling_numbers_zoom_safari")?A:l.marginMultiplier;if(h()){var b;(b=U)==null||b.cancel();if(n()){var u;b=((u=l.previousCharacter)==null?0:u.call(l))?Number(l.previousCharacter())+10:l.rollUp()?0:30;var Q;if((Q=l.shouldAnimate)==null||!Q.call(l)){var G,J;b-=d_K((G=l.character)==null?void 0:G.call(l),(J=l.previousCharacter)==null?void 0:J.call(l),l.rollUp(),b)}}else{b=l.rollUp()?0:2;var L;(L=l.shouldAnimate)!=null&&L.call(l)||(u=b,Q=l.rollUp()?-1:1,b=u-Q)}D.value.style.marginTop=
"-"+b*h()+"px";var R;if((R=l.shouldAnimate)==null?0:R.call(l)){var a,S;U=c$C(D.value,(a=l.character)==null?void 0:a.call(l),(S=l.previousCharacter)==null?void 0:S.call(l),l.rollUp(),b,n(),h())}else{var d;D.value.style.display=((d=l.character)==null?0:d.call(l))?"":"none"}}},"CA6Pmf");
return _.g("animated-rolling-character",{el:D,class:"animatedRollingCharacterHost"},_.g(_.v,{cond:n,then:function(){return _.g(xm1,null)},
else:function(){return _.g(j3y,{character:l.character})}}))},"A");
FNH.idomCompat=!0;var p8c=_.q("web_enable_sink_animated_rolling_character_and_number")?FNH:X89,oU_=_.q("web_enable_sink_animated_rolling_character_and_number")?FNH:kJs(X89),xm1=_.w(function(){for(var l=[],D=1;D<30;D++)l.push(_.g("div",null,D%10));return _.g(_.GZ,null,_.g("div",null,"\u00a0"),l,_.g("div",null,"\u00a0"))},"B"),j3y=_.w(function(l){var D=l.character;
return _.g(_.GZ,null,_.g("div",null,"\u00a0"),_.g(_.v,{cond:function(){return!(D==null?0:D())||_.hd(D==null?void 0:D())},
then:function(){return _.g("div",null,"\u00a0")},
else:function(){return _.g("div",null,D)}}),_.g("div",null,"\u00a0"))},"C");x__.componentType=py;var wJH=_.w(function(l){var D=void 0,U=void 0,n=function(){var A;return((A=l.fontSizeMultiplier)==null?0:A.call(l))?l.heightPx()*l.fontSizeMultiplier():l.heightPx()},y=_.dM(function(){if(!l.numberText())return[];
var A,C,h=((A=l.forceRollUp)==null?void 0:A.call(l))||!U||!((C=l.numberValue)==null?0:C.call(l))||U<l.numberValue(),b,u=l.numberText();A=n();C=!((b=l.shouldAnimate)==null||!b.call(l));b=[];var Q=0,G=0,J=(D?D.replace(/\D/g,"").length:0)-(u?u.replace(/\D/g,"").length:0),L=D?D.split(/(\d)/).filter(Boolean):[];for(u=u.split(/(\d)/).filter(Boolean);J<0;){var R=u[G];b.push({character:R,rollUp:h,marginMultiplier:A,shouldAnimate:C});G++;$2(R)&&J++}for(;Q<J;)R=L[Q],b.push({previousCharacter:R,rollUp:h,marginMultiplier:A,
shouldAnimate:C}),Q++,$2(R)||J++;for(;G<u.length;)J=u[G],R=L[Q],$2(J)===$2(R)?(G++,Q++):$2(J)?(Q++,J=void 0):$2(R)&&(G++,R=void 0),b.push({character:J,previousCharacter:R,rollUp:h,marginMultiplier:A,shouldAnimate:C});D=l.numberText();var a;U=(a=l.numberValue)==null?void 0:a.call(l);return b},void 0,"kWiBv");
return _.g("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return l.numberText()?["height: "+n()+"px;","line-height: "+l.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.g(_.wt,{each:y,keyBy:"INDEX"},function(A){return _.g(oU_,{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}})}))},"D");
wJH.idomCompat=!0;_.r01=_.q("web_enable_sink_animated_rolling_character_and_number")?wJH:kJs(x__);var zig=function(l,D){this.fillAnimation=new Animation(w8_(l),document.timeline);this.strokeAnimation=new Animation(r$G(D),document.timeline)};
zig.prototype.play=function(){var l,D;(D=(l=this.fillAnimation).play)==null||D.call(l);var U,n;(n=(U=this.strokeAnimation).play)==null||n.call(U)};
zig.prototype.cancel=function(){var l,D;(D=(l=this.fillAnimation).cancel)==null||D.call(l);var U,n;(n=(U=this.strokeAnimation).cancel)==null||n.call(U)};_.MO=_.w(function(l){var D=l.model;var U=l.pointerDownEvent;var n=l.pointerUpEvent;var y=l.pointerLeaveEvent;var A=l.hovered;l=_.bP("yt-touch-feedback-shape");var C=_.bP("div"),h=_.bP("div"),b=_.B(_.WK(function(){return(n==null?0:n())||(y==null?0:y())?!1:!(U==null||!U())||!1})),u=b.next().value,Q=b.next().value,G=void 0,J=function(){!G&&h.value&&C.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(G=new zig(h.value,C.value));
var c;(c=G)==null||c.play()},L=function(){var c;
(c=G)==null||c.cancel()},R=function(){var c;
(c=G)==null||c.cancel()};
_.$i(function(){(n==null?0:n())&&J()},"bg756c");
_.$i(function(){(U==null?0:U())&&L()},"QAes8c");
_.$i(function(){(y==null?0:y())&&R()},"YaFbrc");
b=_.n0(function(){J();Q(!1)});
var a=_.n0(function(){L();Q(!0)}),S=_.n0(function(){R();
Q(!1)});
_.NV(function(){if(G){var c;(c=G)==null||c.cancel();G=void 0}});
var d={};u=_.DV("yt-spec-touch-feedback-shape",function(){return zOc(D().color)},function(){return fwg(D().thumbnailSize,!!D().isExtended)},(d["yt-spec-touch-feedback-shape--focused"]=function(){return!!D().focused&&!D().disabled},d["yt-spec-touch-feedback-shape--circular"]=function(){return!!D().circular},d["yt-spec-touch-feedback-shape--down"]=u,d["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!D().triggerEvents},d["yt-spec-touch-feedback-shape--hovered"]=function(){return A==
null?void 0:A()},d));
return _.g("yt-touch-feedback-shape",{el:l,class:u,style:_.BK({"margin-top":function(){return D().customTopExtend?"-"+D().customTopExtend+"px":void 0}}),
"on:mousedown":a,"on:mouseup":b,"on:pointerleave":S,"on:touchstart":a,"on:touchend":b,"aria-hidden":!0},_.g(_.v,{cond:function(){return!!D().hoverEffect},
then:function(){return _.g("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.BK({"border-radius":function(){return D().borderRadius},
background:function(){var c;if(c=D().hoverEffect){for(var N=[],z=_.B((c==null?void 0:c.lightingTechniques)||[]),f=z.next();!f.done;f=z.next())switch(f.value){case 2:var I=f=void 0,iG=void 0,CC=void 0;N.push("linear-gradient(180deg, "+((f=c)==null?void 0:(I=f.palette)==null?void 0:I.keyLight)+", "+((iG=c)==null?void 0:(CC=iG.palette)==null?void 0:CC.background)+")")}var vo,td;N.push((vo=D().hoverEffect)==null?void 0:(td=vo.palette)==null?void 0:td.background);c=N.join(", ")}else c=void 0;return c}})})}}),
_.g("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.BK({"border-radius":function(){return D().borderRadius},
"border-color":function(){var c,N;return(c=D().touchEffect)==null?void 0:(N=c.palette)==null?void 0:N.background}}),
el:C}),_.g("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.BK({"border-radius":function(){return D().borderRadius},
"background-color":function(){var c,N;return(c=D().touchEffect)==null?void 0:(N=c.palette)==null?void 0:N.background}}),
el:h}))},"J");
_.MO.idomCompat=!0;var fM7={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 R4=_.LC();R4=R4.toLowerCase();if(_.bG(R4,"android")){var $m7=R4.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);$m7&&parseFloat($m7[1])<100||R4.match("("+Object.keys(fM7).join("|")+")")};var NJy=_.w(function(l){return _.g(_.v,{cond:l.aTagConfig,then:function(D){return _.g(_.qO,{aTagConfig:D,disabled:l.disabled,className:l.className,style:l.style,title:l.title,ariaLabel:l.ariaLabel,ariaCurrent:function(){var U,n;return((U=l.toggleable)==null?void 0:U.call(l))&&((n=l.toggled)==null?void 0:n.call(l))},
ref:l.ref},l.children)},
else:function(){return _.g("button",{el:_.fe(l.ref),"on:click":_.n0(function(D){var U;return(U=l.onClick)==null?void 0:U.call(l,D)}),
class:l.className,title:l.title,style:l.style,disabled:l.disabled,"aria-pressed":function(){var D,U;return((D=l.toggleable)==null?0:D.call(l))?!((U=l.toggled)==null||!U.call(l)):void 0},
"aria-label":l.ariaLabel,"aria-disabled":l.visiblyDisabled,"aria-hidden":l.ariaHidden,tabindex:l.tabIndex},l.children)}})},"K"),EUk=_.w(function(l){var D=l.data;
var U=l.hasIconLeading;var n=l.hasIconLeadingTrailing;var y=l.hasIconTrailing;var A=l.iconButton;var C=l.iconClassName;var h=l.secondaryIconClassName;var b=l.icon;var u=l.secondaryIcon;var Q=l.textContentClassName;return _.g(Z8,{className:"",style:"display: inherit; justify-content: center"},_.g(_.v,{debugInstance:"V4z1Uc",cond:function(){return b&&(U()||n()||(A==null?void 0:A()))},
then:function(){return _.g(Z8,null,_.g("div",{class:C,"aria-hidden":"true"},b==null?void 0:b()))}}),_.g(_.v,{debugInstance:"ok3btb",
cond:function(){return(D().buttonText||D().animatedTextProps||D().formattedButtonText)&&!(A==null?0:A())},
then:function(){return _.g(Z8,null,_.g(s3m,{className:Q,iconPosition:function(){return D().iconPosition},
text:function(){return D().buttonText},
oneOffCustomTextWrap:function(){return D().oneOffCustomTextWrap},
formattedButtonText:function(){return D().formattedButtonText},
animatedTextProps:function(){return D().animatedTextProps}}))}}),_.g(_.v,{debugInstance:"DO5Rz",
cond:y,then:function(){return _.g(Z8,null,_.g("div",{class:C},b==null?void 0:b()))}}),_.g(_.v,{debugInstance:"bnojSc",
cond:n,then:function(){return _.g(Z8,null,_.g("div",{class:h},u==null?void 0:u()))}}),_.g(_.v,{debugInstance:"HN3kad",
cond:function(){return!D().disabled&&!0},
then:function(){return _.g(_.MO,{model:function(){var G=D();return{color:G.style==="overlay-dark"?4:G.style==="overlay"?G.type==="filled"?4:3:G.type==="filled"||G.style==="call-to-action-inverse"||G.style==="mono-inverse"?2:1}}})}}))},"L"),s3m=_.w(function(l){var D=function(){var U,n;
return((U=l.iconPosition)==null?void 0:U.call(l))==="icon-with-label"||((n=l.oneOffCustomTextWrap)==null?void 0:n.call(l))};
return _.g("div",{class:l.className,"aria-hidden":function(){var U,n,y;return((U=l.ariaHidden)==null?void 0:U.call(l))&&(!((n=l.animatedTextProps)==null||!n.call(l))||!((y=l.formattedButtonText)==null||!y.call(l)))}},_.g(_.rt,null,_.g(_.F2,{when:function(){var U;
return(U=l.animatedTextProps)==null?void 0:U.call(l)}},function(){return _.g(_.r01,{numberText:function(){return l.animatedTextProps().numberText},
numberValue:function(){return l.animatedTextProps().numberValue},
heightPx:function(){return l.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return l.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return l.animatedTextProps().shouldAnimate},
forceRollUp:function(){return l.animatedTextProps().forceRollUp}})}),_.g(_.F2,{when:function(){var U;
return(U=l.formattedButtonText)==null?void 0:U.call(l)}},function(){return _.g(_.BO,{text:function(){return Object.assign({},l.formattedButtonText(),{lineBreakMode:D()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":l.formattedButtonText().lineBreakMode,
alignment:D()?"TEXT_ALIGNMENT_CENTER":l.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!D()}})}),_.g(_.F2,{when:function(){var U,n;
return((U=l.iconPosition)==null?void 0:U.call(l))==="icon-with-label"&&((n=l.text)==null?void 0:n.call(l))}},function(){return _.g(_.BO,{text:function(){return{content:l.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.g(_.oN,null,function(){return l.text})))},"M"),TJv=_.w(function(l){return _.g(_.v,{debugInstance:"kM7Sgc",
cond:l.hasLabel,then:function(){var D;return _.g("label",{class:l.className},l.children,(D=l.textContent)==null?void 0:D.call(l))},
else:function(){return l.children}})},"N"),Z8=_.w(function(l){return l.children},"O");var IM1=_.w(function(l){function D(){A(void 0);h(void 0);u(void 0)}
var U=_.fe(),n=_.B(_.aw(void 0,void 0,"Ug77pc")),y=n.next().value,A=n.next().value;n=_.B(_.aw(void 0,void 0,"XGf7Zb"));var C=n.next().value,h=n.next().value,b=_.B(_.aw(void 0,void 0,"w55oqd"));n=b.next().value;var u=b.next().value;b=_.B(_.aw(0,void 0,"rBgpzc"));var Q=b.next().value,G=b.next().value;b=_.n0(function(){switch(Q()){case 1:G(2);break;case 3:var L,R;(R=(L=U.value).hidePopover)==null||R.call(L);G(0);D()}});
_.$i(function(){if(l.show()){var L;A((L=l.children)==null?void 0:L.call(l));var R;h((R=l.location)==null?void 0:R.call(l));var a;u((a=l.classNames)==null?void 0:a.call(l));switch(Q()){case 0:var S,d;(d=(S=U.value).showPopover)==null||d.call(S);G(1);break;case 3:G(1);var c,N;(N=(c=U.value).hidePopover)==null||N.call(c);var z,f;(f=(z=U.value).showPopover)==null||f.call(z)}}else switch(Q()){case 2:G(3);break;case 1:var I,iG;(iG=(I=U.value).hidePopover)==null||iG.call(I);D();G(0)}},"Z8V4Qb");
_.N1(function(){});
var J={};return _.g("yt-popover",{popover:"manual",el:U,style:_.BK({left:function(){var L;return(L=C())==null?void 0:L.left},
top:function(){var L;return(L=C())==null?void 0:L.top},
bottom:function(){var L;return(L=C())==null?void 0:L.bottom},
right:function(){var L;return(L=C())==null?void 0:L.right}}),
class:_.DV("ytPopoverComponentHost",n,(J.ytPopoverComponentHostClosing=function(){return Q()===3},J.ytPopoverComponentHostSeeThrough=function(){var L;
return((L=l.seeThrough)==null?void 0:L.call(l))===!0},J)),
"on:animationend":b},y)},"Q");var HRy={left:"0px",right:"auto",top:"0px",bottom:"auto"},Yq_=function(){var l=this;this.registerTooltipElement=function(U){var n;l.tooltipElement=(n=U.querySelector("yt-popover"))!=null?n:void 0};
var D=_.B(_.aw(void 0,void 0,"EIh5sc"));this.state=D.next().value;this.setState=D.next().value;D=_.B(_.aw(void 0,void 0,"PC1M0b"));this.schedulerJobID=D.next().value;this.setSchedulerJobID=D.next().value},VBg=function(l,D){var U=PK,n=_.Tn.addJob(function(){var y=ORh(U,l,D);
U.currentConfig=D;U.setState({text:D.text,location:_.q("web_tooltip_location_fix")?void 0:y,anchor:l,offset:D.offset,style:D.style})},4,D.delay);
U.setSchedulerJobID(n)},i1d=function(){var l=PK,D=l.schedulerJobID();
D&&(_.Tn.cancelJob(D),l.setSchedulerJobID(void 0));l.setState(void 0);l.currentConfig=void 0};
Yq_.prototype.notify=function(l,D){var U;((U=this.state())==null?void 0:U.anchor)===l&&(U=ORh(this,l,D),this.currentConfig=D,this.setState({text:D.text,location:_.q("web_tooltip_location_fix")?void 0:U,anchor:l,offset:D.offset,style:D.style}))};
var ORh=function(l,D,U){var n=D.getBoundingClientRect();D=window.innerWidth;var y=window.innerHeight,A=U.location,C=U.offset;U=U.text;if(l=l.tooltipElement){var h=getComputedStyle(l);l=h.font;var b=h1(h.lineHeight),u=h1(h.paddingLeft),Q=h1(h.paddingRight),G=h1(h.paddingTop);h=h1(h.paddingBottom);var J=document.createElement("canvas").getContext("2d");J.font=l;U={width:J.measureText(U).width+u+Q,height:b+G+h}}else U=void 0;l=U;if(!l)return HRy;U=l.width;l=l.height;u=C+l;G=C+U;b=n.top>=u;u=y-n.bottom>=
u;Q=n.left>=G;G=D-n.right>=G;h=A;switch(A){case "top":!b&&u&&(h="bottom");break;case "bottom":!u&&b&&(h="top");break;case "left":!Q&&G&&(h="right");break;case "right":!G&&Q&&(h="left")}switch(h){case "top":A=n.left+n.width/2-U/2;n=n.top-l-C;break;case "bottom":A=n.left+n.width/2-U/2;n=n.bottom+C;break;case "left":A=n.left-U-C;n=n.top+n.height/2-l/2;break;case "right":A=n.right+C;n=n.top+n.height/2-l/2;break;default:A=n.left+n.width/2-U/2,n=n.bottom+C}C=Object.assign({},HRy);A+U>D?(C.right="0px",C.left=
"auto"):(C.left=Math.round(Math.max(0,A)+window.scrollX)+"px",C.right="auto");n+l>y?(C.bottom="0px",C.top="auto"):(C.top=Math.round(Math.max(0,n)+window.scrollY)+"px",C.bottom="auto");return C};var PK;PK=new Yq_;_.VE1=_.w(function(){var l=_.dM(function(){var y;return(y=PK.state())==null?void 0:y.anchor},void 0,"tiGUn"),D=_.dM(function(){var y;
return(y=PK.state())==null?void 0:y.text},void 0,"TA2GQe"),U=_.dM(function(){var y;
return(y=PK.state())==null?void 0:y.style},void 0,"ucvFsf"),n=_.q("web_tooltip_location_fix")?_.dM(function(){var y=l();
var A=PK.currentConfig;if(y&&A)return ORh(PK,y,A)},void 0,"EpDz6"):_.dM(function(){var y;
return(y=PK.state())==null?void 0:y.location},void 0,"aRJtfd");
return _.g("yt-tooltip",{class:"ytTooltipContainerHost",el:_.fe(PK.registerTooltipElement),"aria-hidden":"true"},_.g(IM1,{classNames:function(){switch(U()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:n,show:function(){return!!D()&&!!n()},
seeThrough:!0},D))},"R");var jTB=gM("stamper-context");_.ey=_.w(function(l){var D=l.data;var U=l.icon;var n=l.iconName;var y=l.animateIcon;var A=l.secondaryIcon;var C=l.secondaryIconName;var h=l.focusedOverride;var b=l.clientOnlyWizTooltipsEnabled;Do9();var u=$_K(D),Q=u.size,G=u.style;l=u.disabled;var J=u.onTap,L=u.alignByText,R=u.aTagConfig,a=u.customColors,S=u.segmentedPosition,d=u.toggled,c=u.toggleable,N=u.accessibilityLabel,z=u.onToggle,f=u.iconPosition,I=u.oneOffCustomTextWrap,iG=u.disableTextEllipsis,CC=u.disableBackdropFilter,vo=u.tooltipText,
td=u.ariaHidden,GN=u.tabIndex,Ms=u.buttonText,j3=u.formattedButtonText,wl=u.animatedTextProps,zN=u.onClickRateLimitMs,Z7=IwG(D,U,A,n,C,h,y),Lm=Z7.type;U=Z7.shouldFocus;n=Z7.hasIconLeading;y=Z7.hasIconTrailing;var Vg=Z7.hasIconLeadingTrailing,v5=Z7.hasIconOnly;A=Z7.hasIconOnly40;var mk=Z7.hasIconWithLabel;C=Z7.iconButton;var dy=Z7.visiblyDisabled;h=Z7.overrideSmallSizeIcon;var eW=Z7.iconToRender;Z7=Z7.secondaryIconToRender;var Qq=_.B(l_o(vo,u.tooltipShape)).next().value,Bo=function(Mr){J==null||J(Mr);
c()&&(z==null||z(Mr))},D7=_.dM(function(){return zN==null?void 0:zN()},void 0,"siKywb"),qr=_.dM(function(){return D7()?rv8(Bo,D7()):Bo},void 0,"wDTcN");
u={};var H5={};return _.g(TJv,{className:_.DV("yt-spec-button-shape-with-label",(u["yt-spec-button-shape-with-label--is-overlay"]=function(){return G()==="overlay"||G()==="overlay-dark"},u)),
hasLabel:mk,textContent:function(){return _.g(s3m,{text:Ms,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:I,iconPosition:f,formattedButtonText:j3,animatedTextProps:wl})}},_.g(NJy,{aTagConfig:R,
className:_.DV("yt-spec-button-shape-next",function(){return HHN(Lm())},function(){return dy()?void 0:Y69(G())},function(){return OHc(Q())},(H5["yt-spec-button-shape-next--disabled"]=dy,H5["yt-spec-button-shape-next--focused"]=U,H5["yt-spec-button-shape-next--icon-trailing"]=y,H5["yt-spec-button-shape-next--icon-leading"]=n,H5["yt-spec-button-shape-next--icon-leading-trailing"]=Vg,H5["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Vg()&&!(Ms()||j3())},H5["yt-spec-button-shape-next--icon-button"]=
function(){return v5()||mk()},H5["yt-spec-button-shape-next--icon-only-default"]=A,H5["yt-spec-button-shape-next--align-by-text"]=L,H5["yt-spec-button-shape-next--segmented-start"]=function(){return S()==="start"},H5["yt-spec-button-shape-next--segmented-end"]=function(){return S()==="end"},H5["yt-spec-button-shape-next--override-small-size-icon"]=h,H5["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=I,H5["yt-spec-button-shape-next--disable-text-ellipsis"]=iG,H5["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!CC()&&!_.q("web_disable_backdrop_filter")},H5)),
style:function(){var Mr=a();if(Mr){var V_=Mr.color;var ec=Mr.backgroundColor;Mr=Mr.borderColor;var Nr="";V_&&(Nr+="color: "+V_+";");ec&&(Nr+="background-color: "+ec+";");Mr&&(Nr+="border-color: "+Mr+";");V_={style:Nr}}else V_={};return V_.style},
onClick:function(Mr){qr()(Mr)},
disabled:l,ariaLabel:N,toggleable:c,toggled:d,title:function(){return(b==null?0:b())||!vo()?"":vo()},
visiblyDisabled:dy,ariaHidden:td,tabIndex:GN,ref:function(Mr){(b==null?0:b())&&Qq(Mr)}},_.g(EUk,{data:D,
hasIconLeading:n,hasIconLeadingTrailing:Vg,hasIconTrailing:y,iconButton:C,icon:eW,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:Z7})))},"T");
_.ey.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.t9=_.w(function(l){var D=l.data;var U=l.className;var n=l.style;var y=l.useOutlinedIcon;var A=l.buttonOverrides;var C=l.animatedTextProps;var h=l.onClick;var b=l.target;var u=_.bP("button-view-model",function(z){z.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var f=D().targetId;f&&_.dWz(_.jp(),f,z);return function(){Sok(_.jp(),z)}}),Q=function(){return D().iconName},G=_.gf(function(z){a:{var f=D().entityKey,I=D().buttonEntitySelectorType;
if(I&&f)switch(I){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":z=(z=_.Um(z,f))?{isHidden:z.adsState==="ADS_STATE_NONE"||z.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:z={isHidden:!1};break a}z=void 0}return z}),J,L=(J=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:J(),R=function(){var z=D();
var f=A==null?void 0:A(),I=C==null?void 0:C(),iG=b==null?void 0:b();if(z){var CC=hac(z.type);var vo=!!z.title||!!z.titleFormatted;var td=!(!z.iconName&&!z.iconImage);vo=td&&!vo?"icon-only":td?z.iconTrailing||z.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;vo==="icon-only-40"&&(CC="text");var GN;td=(GN=f==null?void 0:f.state)!=null?GN:PMg(z.state);var Ms,j3=(Ms=f==null?void 0:f.disabled)!=null?Ms:z.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||z.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.q("web_button_vm_refactor_disabled")){var wl;j3=(wl=f==null?void 0:f.disabled)!=null?wl:td==="disabled"}I=I&&I.numberText&&!isNaN(Number(I.numberValue))?I:void 0;Ms=Object;wl=Ms.assign;GN=z.title;var zN=z.titleFormatted,Z7=z.accessibilityText,Lm=CMG(z.style),Vg=b1N(z.buttonSize);iG=BdC(z,u,j3,h,iG);j3=j3&&!z.onDisabledTap;var v5=Apg(z,u),mk=z.customFontColor,dy=z.customBackgroundColor;var eW=z.customBorderColor;var Qq=z.customDarkThemeFontColor,Bo=z.customDarkThemeBackgroundColor,D7=z.customDarkThemeBorderColor;
mk=L&&Qq?Qq:mk;dy=L&&Bo?Bo:dy;eW=L&&D7?D7:eW;eW={color:mk?_.tu(mk):void 0,backgroundColor:dy?_.tu(dy):void 0,borderColor:eW?_.tu(eW):void 0};if(D7=_.M(z.tooltipData,Shh)){var qr;dy={text:(qr=D7.tooltipText)!=null?qr:"",location:nl9(D7.placement),style:D7.style}}else dy=void 0;z=wl.call(Ms,{},{buttonText:GN,formattedButtonText:zN,animatedTextProps:I,accessibilityLabel:Z7,style:Lm,type:CC,state:td,size:Vg,iconPosition:vo,onTap:iG,disabled:j3,aTagConfig:v5,customColors:eW,tooltipText:z.tooltip,tooltipShape:dy},
f)}else z={style:"mono",type:"text",state:"active",size:"M"};z.focused=d();return z},a=function(){return EcK(R(),!!D().iconName)};
l=_.B(_.aw(!1,void 0,"yZ8hab"));J=l.next().value;var S=l.next().value,d=J;l=_.n0(function(){var z=_.Jc().resolve(_.G8(_.L$));z&&S(z.isKeyBoardInUse());return!1});
J=_.n0(function(){S(!1);return!1});
_.$i(function(){var z,f=_.M(D==null?void 0:(z=D())==null?void 0:z.onVisible,_.aO);f&&_.Xk(f,{disableClickTracking:!0})},"G9MlKd");
var c=function(){var z;return(D==null?0:(z=D())==null?0:z.iconImage)?{sources:[D().iconImage]}:void 0},N=_.q("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.g("button-view-model",{el:u,class:_.DV("ytSpecButtonViewModelHost",U),"on:focusin":l,"on:focusout":J},_.g(_.v,{cond:function(){var z,f;return!((f=D().entityKey&&D().buttonEntitySelectorType&&((z=G())==null?void 0:z.isHidden))!=null&&f)},
then:function(){return _.g(_.v,{cond:c,then:function(z){return _.g(_.ey,{data:R,icon:function(){return _.g(_.rh,{data:z,alt:"",targetWidth:a,targetHeight:a,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:N})},
else:function(){return _.g(_.ey,{data:R,icon:function(){return _.g(_.C0,{icon:Q,active:function(){return(y==null?0:y())?!1:R().toggled},
animateIcon:function(){var z;return!!(n==null?0:(z=n())==null?0:z.animateIcon)},
size:a})},
clientOnlyWizTooltipsEnabled:N})}})}}))},"V");
_.t9.idomCompat={callbacks:{onClick:!0}};_.Tt(_.w(function(l){return _.g("yt-button-view-model",{id:l.id,class:_.DV(l.scopingClassName,l.classes),icon:function(){var D;return(D=l.icon)==null?void 0:D.call(l)},
"dialog-dismiss":function(){var D;return((D=l.dialogDismiss)==null?0:D.call(l))?"":void 0}},_.g(_.t9,{data:function(){var D;
return(D=l.data)==null?void 0:D.call(l)},
className:function(){var D;return(D=l.className)==null?void 0:D.call(l)},
style:function(){var D;return(D=l.style)==null?void 0:D.call(l)},
useOutlinedIcon:function(){var D;return(D=l.useOutlinedIcon)==null?void 0:D.call(l)},
buttonOverrides:function(){var D;return(D=l.buttonOverrides)==null?void 0:D.call(l)},
animatedTextProps:function(){var D;return(D=l.animatedTextProps)==null?void 0:D.call(l)},
onClick:function(D){var U;return(U=l.onClick)==null?void 0:U.call(l,D)}}))},"W"),"yt-button-view-model",{props:{data:_.C$,
className:_.C$,style:_.C$,useOutlinedIcon:_.C$,buttonOverrides:_.C$,animatedTextProps:_.C$,onClick:_.ND,scopingClassName:_.C$,id:_.C$,icon:_.C$,dialogDismiss:_.C$,classes:_.C$,target:_.ND}});_.Tt(_.w(function(l){var D=l.data;var U=l.id;var n=l.className;var y=l.iconName;var A=l.animateIcon;var C=l.secondaryIconName;l=_.B(_.aw(!1,void 0,"TtJl8"));var h=l.next().value,b=l.next().value,u=function(){var G=_.Jc().resolve(_.G8(_.L$));G&&b(G.isKeyBoardInUse())},Q=function(){b(!1)};
l=_.bP("yt-button-shape",function(G){if(_.Jc().resolve(_.G8(_.L$)))return G.addEventListener("focusin",u),G.addEventListener("focusout",Q),function(){G.removeEventListener("focusin",u);G.removeEventListener("focusout",Q)}});
return _.g("yt-button-shape",{el:l,id:U,class:n},_.g(_.v,{cond:D,then:function(){return _.g(_.ey,{data:D,iconName:y,secondaryIconName:C,focusedOverride:h,animateIcon:A})}}))},"X"),"yt-button-shape",{props:{data:_.C$,
id:_.C$,className:_.C$,iconName:_.C$,animateIcon:_.C$,secondaryIconName:_.C$,clientOnlyWizTooltipsEnabled:_.C$,disableUpgrade:_.C$},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Xu=function(){var l=_.p.apply(this,arguments)||this;l.isGoalActive=!0;return l};
_.Z(Xu,_.p);Xu.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Xu.prototype.progressBarChanged=function(){var l=_.iJ(this.hostElement).querySelector("#progress-bar-progress"),D,U,n,y=(n=Number((D=this.creatorGoalState)==null?void 0:D.currentGoalCount)/Number((U=this.creatorGoalState)==null?void 0:U.totalGoalCount)*100)!=null?n:0,A;l.style.width=((A=Math.min(y,100))!=null?A:0)+"%"};
Xu.prototype.goalStateChanged=function(){var l;this.isGoalActive=((l=this.creatorGoalState)==null?void 0:l.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var D;l={"--yt-progress-bar-color":$IK((D=this.creatorGoalState)==null?void 0:D.progressBarColor)};_.Wg(this.hostElement,l)};
Xu.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.QP.Object.defineProperties(Xu.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var l;return this.isGoalActive&&!((l=this.creatorGoalState)==null||!l.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.creatorGoalState)==null?0:l.endTimestampMs){var D;l=Number((D=this.creatorGoalState)==null?void 0:D.endTimestampMs)/1E3;return{seconds:String(l)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.creatorGoalState)==null?0:l.themedTargetImage){var D;l=_.M((D=this.creatorGoalState)==null?void 0:D.themedTargetImage,Gkr);return this.isAppDarkTheme()?l==null?void 0:l.imageDark:l==null?void 0:l.imageLight}}}});
_.QP.Object.defineProperties(Xu,{template:{configurable:!0,enumerable:!0,get:function(){return tEH()}}});
Xu.prototype.goalStateChanged=Xu.prototype.goalStateChanged;Xu.prototype.progressBarChanged=Xu.prototype.progressBarChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Xu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],Xu.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);
_.E([_.K({selectorArgs:["data.creatorGoalEntityKey"],selector:function(l,D){return _.yT(l.entities,"creatorGoalEntity",D)}}),
_.T("design:type",Object)],Xu.prototype,"creatorGoalState",void 0);_.E([_.K(),_.T("design:type",Object)],Xu.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Xu.prototype,"isGoalActive",void 0);_.E([_.t("creatorGoalState","isGoalActive"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Xu.prototype,"shouldShowCountdown",null);_.E([_.t("creatorGoalState"),_.T("design:type",Object),_.T("design:paramtypes",[])],Xu.prototype,"endTimestamp",null);
_.E([_.t("creatorGoalState"),_.T("design:type",Object),_.T("design:paramtypes",[])],Xu.prototype,"targetIconThemedImage",null);_.E([_.Pg("creatorGoalState.currentGoalCount"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Xu.prototype,"progressBarChanged",null);_.E([_.Pg("creatorGoalState.creatorGoalState"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Xu.prototype,"goalStateChanged",null);
_.E([_.S0({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Xu);_.r(Xu,"yt-creator-goal-progress-flow-view-model",function(){return tEH()},{mode:0});var iHy;var lw5;var Sy=function(){return _.p.apply(this,arguments)||this};
_.Z(Sy,_.p);Sy.prototype.attached=function(){var l,D,U;if(this==null?0:(l=this.data)==null?0:(D=l.pdgPurchasedBumperLoggingDirectives)==null?0:(U=D.loggingDirectives)==null?0:U.trackingParams){var n,y,A;vll(this==null?void 0:(n=this.data)==null?void 0:(y=n.pdgPurchasedBumperLoggingDirectives)==null?void 0:(A=y.loggingDirectives)==null?void 0:A.trackingParams)}};
Sy.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Sy.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Sy.prototype,"data",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Sy);
_.r(Sy,"yt-live-chat-item-bumper-view-model",function(){if(lw5===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;iHy===void 0&&(iHy=document.createElement("template"));var n=iHy;U.call(D,n.content.cloneNode(!0),l.content.firstChild);lw5=l}l=lw5;return l},{mode:0});var D_7;var U_H;_.z4=function(l,D){this.data=l;this.actions=D;this.data=l;this.actions=D};
_.p0=function(){};_.kk={};_.kk.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(l,D){QEc(this.hostElement,l,D)},
getNavigationEndpointPopupAction:function(l){return G0g(l,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(l,D){Jp3(this.hostElement,l,D,this.openPopupConfig)}};var XaB=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.d9={};
_.d9.YtEndpointBehavior=[_.kk.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.H3("openPopupConfig");(this.useClickHandler=_.il("useClickHandler",!1))?this.hostElement.addEventListener("click",Bg(this,this.onEndpointClick_)):(I1(this.hostElement,"tap",Bg(this,this.onEndpointTap_)),I1(this.hostElement,"touchend",Bg(this,this.onEndpointTouchEnd_)));I1(this.hostElement,"touchstart",Bg(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Bg(this,this.onEndpointTapStart_))},
onEndpointClick_:function(l){Mis(this.hostElement,l,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(l){var D=this.hostElement,U=this.openPopupConfig,n=this.disableCommandHandlerOverride;n=n===void 0?!1:n;var y=Lxs(l);if(y){y.href&&dX(y.href);var A=l.detail;var C=A.sourceEvent;A=A.preventer;C=C.button!==void 0?C.button===0&&!u_(C):A?!u_(A):!0;y.data&&C&&qH9(D,y,l,U,n)}},
onEndpointTouchEnd_:function(l){u_(l)||Lxs(l)&&l.preventDefault()},
onEndpointTapStart_:function(l){a_g(l)}}];_.K$={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(l){for(var D=_.AH.getInstance(),U=_.B(Object.keys(l)),n=U.next();!n.done;n=U.next()){var y=n.value;n=l[y];if(this&&this[n]){var A=D.actionRoutingMap.get(y);A||(A=new Map,D.actionRoutingMap.set(y,A));D.registerActionHandler(this,y,this[n].bind(this),A)}else y=Error("ld"),y.params=n,_.ll(y)}},
unregisterActionMap:function(l){_.Bd(_.AH.getInstance(),l,this)}}]};var G4=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_"+(_.q("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.q("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.q("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.q("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.q("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.q("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Ql;var J1=new Map;var paK=window.matchMedia("(forced-colors: active)").matches;var nc_;var y$_;var A$r=new _.A7("LOTTIE_LOADER_TOKEN");_.cO=_.w(function(l){var D=l.data;var U=l.className;var n=l.animationName;var y=l.animationRef;var A=l.elRefForInterop;var C=_.gm("lottie-component"),h;_.NV(function(){var u;return void((u=h)==null?void 0:u.destroy())});
var b;_.$i(function(){var u=_.EP(n);if(u!==b){b=u;var Q=Object.assign({},{animationName:u,animationRef:_.EP(y)},_.EP(D));try{_.Jc().resolve(A$r)().then(function(L){var R;(R=h)==null||R.destroy();var a,S;R=(S=A==null?void 0:(a=A())==null?void 0:a.value)!=null?S:C.value;a=Q.animationRef;S=Q.listeners;L=L.loadAnimation(Object.assign({},{container:R},Q.animationConfig));a&&(a.lottieEl=L);if(S)for(R=_.B(Object.entries(S)),a=R.next();!a.done;a=R.next())S=_.B(a.value),a=S.next().value,(S=S.next().value)&&
L.addEventListener(a,S);h=L})}catch(L){u=L;
var G="LottieComponent error.";u.message&&(G+=" Original description: "+u.message);_.HA(u,G);_.II(u);var J;((J=Q.listeners)==null?0:J.error)&&Q.listeners.error(u)}}},"nrJISd");
return _.g(CU9,{cond:function(){return!(A==null?0:A())},
then:function(){return _.g("lottie-component",{class:_.DV("ytLottieComponentHost",U),el:C})}})},"Z");_.Tt(_.w(function(l){return _.g("ytd-lottie-player",{id:l.id,hidden:l.hidden,class:l.className,"aria-label":l.ariaLabel,style:"display: block;"},_.g(_.cO,{data:l.data,animationName:function(){var D;return((D=l.data().animationConfig)==null?void 0:D.name)||""},
animationRef:function(){return l.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.C$,
id:_.C$,hidden:_.C$,className:_.C$,ariaLabel:_.C$}});var p$=function(){var l=_.p.apply(this,arguments)||this;l.animationRef={};l.delhiIconsEnabled=_.q("enable_web_delhi_icons");return l};
_.Z(p$,_.p);_.W=p$.prototype;
_.W.handlePropertyChange=function(){var l=this.animatedIcon,D=this.active,U=this.isDarkTheme;if(l){var n=this.previousActive!==D;this.previousActive=D;this.animationRef.lottieEl?n&&this.toggleAnimation(D,l.totalFrames):D?this.initializeAnimationAsToggled(l.lottiePlayerProps,l.totalFrames):this.initializeAnimationAsUntoggled(l.lottiePlayerProps);l.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=l.type;this.lottiePlayerProps=this.computeLottiePlayerProps(l,U)}};
_.W.computeLottiePlayerProps=function(l,D){var U=this.deepCloneLottiePlayerProps(l);D?(D=l.nameDarkTheme,l=l.pathDarkTheme):(D=l.name,l=l.path);U.animationConfig.name=D;(D=J1.get(l))?U.animationConfig.animationData=D:U.animationConfig.path=l;return U};
_.W.initializeAnimationAsToggled=function(l,D){l.animationConfig.initialSegment=[D-1,D]};
_.W.initializeAnimationAsUntoggled=function(l){l.animationConfig.initialSegment=void 0};
_.W.toggleAnimation=function(l,D){if(l){var U;(U=this.animationRef.lottieEl)==null||U.playSegments([0,D],!0)}else{var n;(n=this.animationRef.lottieEl)==null||n.playSegments([0,1],!0)}};
_.W.deepCloneLottiePlayerProps=function(l){var D=Object.assign({},l.lottiePlayerProps.animationConfig);l=Object.assign({},l.lottiePlayerProps);l.animationConfig=D;return l};
p$.prototype.handlePropertyChange=p$.prototype.handlePropertyChange;_.E([_.K(),_.T("design:type",Object)],p$.prototype,"animatedIcon",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],p$.prototype,"active",void 0);_.E([_.K(),_.T("design:type",Boolean)],p$.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],p$.prototype,"animatedIconType",void 0);_.E([_.K(),_.T("design:type",Boolean)],p$.prototype,"previousActive",void 0);
_.E([_.K(),_.T("design:type",Object)],p$.prototype,"lottiePlayerProps",void 0);_.E([_.K(),_.T("design:type",Object)],p$.prototype,"animationRef",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],p$.prototype,"delhiIconsEnabled",void 0);_.E([_.Pg("animatedIcon","active","isDarkTheme"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],p$.prototype,"handlePropertyChange",null);_.E([_.S0({is:"yt-animated-icon",disableElementRegistration:!0})],p$);
_.r(p$,"yt-animated-icon",function(){if(y$_===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;nc_===void 0&&(nc_=document.createElement("template"));var n=nc_;U.call(D,n.content.cloneNode(!0),l.content.firstChild);y$_=l}l=y$_;return l},{mode:2});var Wcy;var Bar;_.L0=_.w(function(l){var D={value:null,cancelled:!1};_.NV(function(){D.cancelled=!0});
var U=_.dM(l.data,{equals:function(n,y){return n.iconName===y.iconName&&n.iconStyle===y.iconStyle&&n.iconSize===y.iconSize&&n.iconSetName===y.iconSetName&&n.iconSelected===y.iconSelected}},"ck24jb");
return _.g("span",{class:"yt-icon-shape",el:_.fe(function(n){_.$i(function(){var y,A=(y=l.options)==null?void 0:y.call(l);y=U();waB(n,D,y,A)},"v878Je")})})},"ba");
_.L0.idomCompat=!0;var WMo=["youtube_fill","youtube_outline"];var CEz=new _.wD({type:"iconset",value:void 0}),xk=function(){var l=_.p.apply(this,arguments)||this;l.isDarkTheme=document.documentElement.hasAttribute("dark");l.iconName="";l.iconsetName="yt-icons";l.iconset=null;l.missingIconSet=!1;l.iconType=null;l.iconShapeDataSignal=_.aw(void 0,void 0,"TaEgXd");l.renderingOptionsSignal=_.aw({iconWidth:"100%",iconHeight:"100%",iconFilter:l.iconFilter,iconColor:l.gradientColor},void 0,"a1vqYe");l.wizHasRendered=!1;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return l};
_.Z(xk,_.p);xk.prototype.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.isDarkTheme=l)};
xk.prototype.handlePropertyChange=function(){var l=this,D,U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d;return _.P(function(c){switch(c.nextAddress){case 1:if(D=!l.icon&&!l.iconName||!l.isAttached)return c.return();U=l;n=U.icon;y=U.size;A=U.defaultToFilled;C=U.active;h=U.targetContainer;l.toggleContainerClass(h);_.q("kevlar_use_wil_icons")&&n&&(b=JTG(n),l.iconType=b.length?b[1]:null);if(n){c.jumpTo(2);break}l.iconsetName="";l.iconName="";return c.yield(l.renderIcon(h,n),3);case 3:return c.return();case 2:u=hOm(n);
Q=JTG(u);Q.length&&(l.iconsetName=Q[0],l.iconName=Q[1]);if(!_.q("kevlar_use_wil_icons")){c.jumpTo(4);break}G=xk;J=PEm;L=l.iconType;R=l.active;a=l.defaultToFilled;S=l.size;d=l.iconsetName;return c.yield(bHy(),6);case 6:return c.yield(J.call(G,L,R,a,S,d,c.yieldResult),5);case 5:l.iconShapeData=c.yieldResult;case 4:if(l.shouldRenderIconShape(h)){c.jumpTo(7);break}return c.yield(l.determineIconSet(u,C,A,y,h),7);case 7:return c.yield(l.renderIcon(h,n),0)}})};
xk.prototype.toggleContainerClass=function(l){l?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var hOm=function(l){return!_.q("default_to_innertube_icon")||l.indexOf(":")>0?l:_.UV(l)};
_.W=xk.prototype;_.W.determineIconSet=function(l,D,U,n){var y=this;return _.P(function(A){return A.nextAddress==1?_.q("kevlar_system_icons")||_.H3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.H3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?A.yield(y.switchToYtSysIconset(l,D,U,n),3):A.jumpTo(2):A.nextAddress!=2?A.return():A.yield(y.useYtSysIconsetForMissingIcons(l,D,U,n),0)})};
_.W.switchToYtSysIconset=function(l,D,U,n){var y=this,A,C,h,b,u,Q,G;return _.P(function(J){switch(J.nextAddress){case 1:if(!l||y.iconsetName!=="yt-icons"&&y.iconsetName!=="yt-sys-icons"){J.jumpTo(0);break}A=JTG(l);C=A[1];var L=C;if(ad9(L))C=L;else{var R=L=L.toLowerCase();(L=Lyy.get(L))&&(R=L);C=R}_.q("enable_polymer_icons_replace_underscores_dash")&&C.includes("_filled")&&(C=C.replace(/_filled/g,"-filled"));return J.yield(Dk(C,!0),3);case 3:return h=J.yieldResult,J.yield(Dk(C,!1),4);case 4:if((b=
J.yieldResult)||D&&h)y.iconsetName="yt-sys-icons";y.iconName=y.getIconName(C,D,U,b,h);if(n===24){J.jumpTo(0);break}u="yt-sys-icons"+n+":"+y.iconName;return J.yield(Dk(u,!1,!0),6);case 6:return Q=J.yieldResult,J.yield(Dk(u,!0,!0),7);case 7:G=J.yieldResult;y.iconName=y.getIconName(C,D,U,Q,G);if(!D&&Q||D&&G)y.iconsetName="yt-sys-icons"+n;_.Kz(J)}})};
_.W.getIconName=function(l,D,U,n,y){l.includes("-filled")&&(l=l.replace("-filled",""));return y&&(D||U)?l+"-filled":l};
_.W.useYtSysIconsetForMissingIcons=function(l,D,U,n){var y=this,A,C;return _.P(function(h){if(h.nextAddress==1)return y.iconsetName!=="yt-icons"?h.jumpTo(0):h.yield(Dk(y.iconName,!1,!1,!0),3);if(h.nextAddress!=4)return A=h.yieldResult,h.yield(Dk(y.iconName,!1),4);C=h.yieldResult;if(A||!C)return h.jumpTo(0);y.iconsetName="yt-sys-icons";return h.yield(y.switchToYtSysIconset(l,D,U,n),0)})};
_.W.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var bHy=function(){return _.P(function(l){try{return l.return(_.Jc().resolve(_.ne))}catch(D){return l.return(new Promise(function(U){_.PN().parkOrScheduleJob(function(){U(_.Jc().resolve(_.ne))},2,"ci")}))}})},PEm=function(l,D,U,n,y,A){n=n===void 0?24:n;
if(l){l=l.toLowerCase();var C=l.endsWith("_filled")||l.endsWith("-filled");D={iconName:l,iconStyle:(D===void 0?0:D)||(U===void 0?0:U)||C?"youtube_fill":"youtube_outline",iconSize:n,iconSetName:y===void 0?"yt-icons":y};U=!!A.resolveIcon(D);U||(D.iconSize=void 0,U=!!A.resolveIcon(D));!U&&C&&(D.iconName=l.substring(0,l.length-7),D.iconSize=n,U=!!A.resolveIcon(D),U||(D.iconSize=void 0,U=!!A.resolveIcon(D)));U||(D.iconStyle=void 0,U=!!A.resolveIcon(D));U||_.II(new _.rc("Icon not supported",{iconName:D.iconName,
iconStyle:D.iconStyle,iconSize:D.iconSize,iconType:l}));return U?D:void 0}};
_.W=xk.prototype;_.W.shouldRenderIconShape=function(l){if(!_.q("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;l=this.getContainer(l);return!xoB(l,this.icon)};
_.W.renderIcon=function(l,D){var U=this,n,y,A,C,h,b,u,Q;return _.P(function(G){switch(G.nextAddress){case 1:if(D&&U.icon!==D)return G.return();n=U.getContainer(l);y=xoB(n,U.icon);if(U.shouldRenderIconShape(l)&&U.iconType)return U.applyIconShape(y,n),G.return();U.removeIconShape();if(!n)return G.return();U.iconName===""&&U.iconset&&n&&(U.removeStaticIcon(U.iconset,n),y&&U.removeAnimatedIcon(n));if(U.iconName===""&&U.iconset||!U.iconsetName||!CEz)return G.return();U.iconset=CEz.byKey(U.iconsetName);
if(!U.iconset)return U.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.CY(U,U.onIconsetAdded)),G.return();U.missingIconSet&&(U.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.CY(U,U.onIconsetAdded)));C=(A=y||U.isAnimatedIcon?Kx3(U.icon):void 0)&&!A.lazyLoad;b=A&&((h=A)==null?void 0:h.lazyLoad)&&(A.lottiePlayerProps.animationConfig.animationData?!0:J1.get(U.isDarkTheme?A.pathDarkTheme:A.path)?!0:!1);if(C||b)return U.applyAnimatedIcon(n,A,U.iconset),G.return();if(b||
(u=A)==null||!u.lazyLoad){G.jumpTo(2);break}Q=Fx9(A,U.isDarkTheme);U.applyStaticIcon(U.iconset,n,U.iconName,l,y);return G.yield(Q,3);case 3:return G.yield(U.renderIcon(U.targetContainer,U.icon),4);case 4:return G.return();case 2:U.applyStaticIcon(U.iconset,n,U.iconName,l,y),_.Kz(G)}})};
_.W.getContainer=function(l){var D,U=(D=D4d(this.hostElement))==null?void 0:D.host;D=!!U&&!!U.polymerController;if(!l||D)return l?this.getTargetContainer(l,U):this.hostElement};
_.W.getTargetContainer=function(l,D){var U=_.iJ(D).querySelector("#"+l);U||(l=new _.rc("yt-icon container missing",D.is,l),_.EU(l));return U};
_.W.applyStaticIcon=function(l,D,U,n,y){y&&this.removeAnimatedIcon(D);this.removeIconShape();y=y&&!!this.iconType&&!!this.iconShapeData&&_.q("kevlar_use_wil_icons");try{y?this.applyIconShape(!1,D):l.applyIcon(D,U)}catch(A){this.handleError(A,n,D)}};
_.W.applyIconShape=function(l,D){this.iconset&&D&&(this.removeStaticIcon(this.iconset,D),l&&this.removeAnimatedIcon(D));l={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var U=_.B(this.iconShapeDataSignal);D=U.next().value;U=U.next().value;var n=_.B(this.renderingOptionsSignal),y=n.next().value;n=n.next().value;U(this.iconShapeData);n(l);if(!this.wizHasRendered)for(this.wizHasRendered=!0,l=_.B(rpC(D,y)).next().value;l.firstChild;)_.iJ(this.hostElement).appendChild(l.firstChild)};
_.W.removeIconShape=function(){if(_.q("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.W.removeStaticIcon=function(l,D){l.removeIcon(D)};
_.W.applyAnimatedIcon=function(l,D,U){this.removeStaticIcon(U,l);this.removeIconShape();var n;U=this.animatedIconElement&&((n=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:n.type)===D.type;if(this.animatedIconElement&&U){this.animatedIconElement.polymerController.animatedIcon=D;var y;((y=this.animatedIconElement)==null?void 0:y.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(l),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=D,this.animatedIconElement.polymerController.active=this.active,_.q("delhi_modern_web_player_icons")?(D=cpC(l,this.icon)&&l.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=D?D.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.q("kevlar_use_wil_icons")?
l.insertBefore(this.animatedIconElement,l.childNodes[0]):(l=_.iJ(l),l.insertBefore(this.animatedIconElement,l.childNodes[0]))};
_.W.removeAnimatedIcon=function(l){_.q("kevlar_use_wil_icons")?this.animatedIconElement&&l.contains(this.animatedIconElement)&&l.removeChild(this.animatedIconElement):(l=_.iJ(l),this.animatedIconElement&&l.contains(this.animatedIconElement)&&l.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.W.handleError=function(l,D,U){_.HA(l,this.iconName,D,U);D=xoB(U,this.icon);var n=!1;window.location.href.includes("JpymaW6Lh2w")?n=!0:U._svgIcon&&(U=(U=U._svgIcon.parentNode)?U.tagName:"unknown",_.HA(l,U),U==="YT-ICON"&&l.name==="NotFoundError"?n=!0:l.name==="NotFoundError"&&D&&(n=!0));n?_.II(l):_.EU(l)};
_.QP.Object.defineProperties(xk,{template:{configurable:!0,enumerable:!0,get:function(){if(Bar===void 0){var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;
Wcy===void 0&&(Wcy=document.createElement("template"));var n=Wcy;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Bar=l}l=Bar;return l}}});
xk.prototype.handlePropertyChange=xk.prototype.handlePropertyChange;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],xk.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",String)],xk.prototype,"icon",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],xk.prototype,"active",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],xk.prototype,"defaultToFilled",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],xk.prototype,"isAnimatedIcon",void 0);
_.E([_.K({value:24}),_.T("design:type",Number)],xk.prototype,"size",void 0);_.E([_.K({value:""}),_.T("design:type",String)],xk.prototype,"targetContainer",void 0);_.E([_.K(),_.T("design:type",Object)],xk.prototype,"animatedIconElement",void 0);_.E([_.K(),_.T("design:type",Object)],xk.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],xk.prototype,"ariaHidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],xk.prototype,"ariaLabel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],xk.prototype,"role",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],xk.prototype,"tabindex",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],xk.prototype,"title",void 0);_.E([_.K(),_.T("design:type",String)],xk.prototype,"style",void 0);_.E([_.K(),_.T("design:type",String)],xk.prototype,"iconFilter",void 0);_.E([_.K(),_.T("design:type",String)],xk.prototype,"gradientColor",void 0);
_.E([_.Pg("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype",Promise)],xk.prototype,"handlePropertyChange",null);_.E([_.S0({is:"yt-icon",noInjection:!0})],xk);var zad="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),$oC=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var gcm={};gcm.YtPlaintextBehavior=[_.pi,{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(l){l.preventDefault();l=l.clipboardData.getData("text/plain");document.execCommand("insertText",!1,l)},
preventRichTextFormatting_:function(l){_.yJ&&(l=l.detail.keyboardEvent,l.stopImmediatePropagation(),l.preventDefault())}}];var uBy;var vck;var jy=function(){var l=_.p.apply(this,arguments)||this;l.ignoreShadyDom=!1;l.hasChange_=!1;l.hasSetTitle_=!1;l.useIOObserverForVisibilityLogging_=_.q("kevlar_use_vimio_behavior")&&_.H3("INNERTUBE_CLIENT_NAME")==="WEB";l.ytFormattedStringObserverHandlerKeys_=void 0;return l};
_.Z(jy,_.p);_.W=jy.prototype;_.W.created=function(){this.useIOObserverForVisibilityLogging_=_.q("kevlar_use_vimio_behavior")&&_.H3("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.W.ready=function(){_.H3("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_()};
_.W.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.W.detached=function(){this.unobserveIOObservers_()};
_.W.clearContents_=function(){for(var l=this.getRoot(),D=l.lastChild;D&&D.tagName!=="STYLE";){try{l.removeChild(D)}catch(U){break}D=l.lastChild}};
_.W.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var l=_.B(this.ytFormattedStringObserverHandlerKeys_),D=l.next();!D.done;D=l.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(D.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.W.resetForAttributedString=function(){var l=this.getRoot();!l.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),l.appendChild(this.ytAttributedStringElementRef))};
_.W.resetForFormattedString=function(){var l=this.getRoot(),D=l.querySelector("yt-attributed-string");D&&(this.ytAttributedStringElementRef=l.removeChild(D))};
_.W.textChanged=function(){this.textChanged_(this.text)};
_.W.textChanged_=function(l){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!l||!l.runs&&!l.simpleText;if(_.q("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var D=this.hostElement.firstChild;D&&D.nodeName==="FONT";){var U=D;D=D.nextSibling;this.hostElement.removeChild(U)}D=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
U=l.simpleText;var n;!U&&((n=l.runs)==null?void 0:n.length)===1&&this.isSimpleString_(l.runs[0])&&(U=l.runs[0].text);U!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.H3("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(U!==void 0){try{D.textContent=U}catch(y){}D.textContent||(this.isEmpty=!0)}else l=l.runs,U!==void 0&&(l=[{text:U}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),l&&this.updateText_(l),
D.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.W.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)};
_.W.computeAriaLabel_=function(l){return l};
_.W.computeEllipsisTruncateStyling=function(l,D){return l&&!D};
_.W.computeUseAttributedString=function(l){return _.q("web_replace_formatted_with_attributed_string")&&AtK(l)&&!this.disableAttributedString&&!this.enableContentEditable};
_.W.setNodeStyle_=function(l,D){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.q("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?D.removeAttribute("dir"):D.setAttribute("dir","auto");D.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");D.style.color="";var U=null;this.noStyles||(l.bold&&(D.classList.add("bold"),U="bold"),l.deemphasize&&(D.classList.add("deemphasize"),U="deemphasize"),l.italics&&D.classList.add("italic"),
l.strikethrough&&D.classList.add("strikethrough"),l.errorUnderline&&(D.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),l.bracket&&D.classList.add("bracket"),l.textColor&&(D.style.color=_.an(l.textColor)));U!==D.getAttribute("style-target")&&(U?D.setAttribute("style-target",U):D.removeAttribute("style-target"))};
_.W.setUpVisibilityLogging_=function(l,D){var U=this;this.setNodeTrackingParams_(l,D);var n;((n=D.data)==null?0:n.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(l=this.ytRendererBehavior.visibilityObserver.observe(D,function(y){var A=U.ytRendererBehavior.getVisibilityLogger();A&&A.reportShown(y)},this.ytRendererBehavior.visibilityOptionVisible_),D=this.ytRendererBehavior.visibilityObserver.observe(D,function(y){var A=U.ytRendererBehavior.getVisibilityLogger();
A&&A.reportHidden(y)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(l),this.ytFormattedStringObserverHandlerKeys_.push(D))};
_.W.setNodeTrackingParams_=function(l,D){D.data||(D.data={});if((l=l.loggingDirectives?l.loggingDirectives.trackingParams:null)||D.data.trackingParams)D.data.trackingParams=l};
_.W.computeHasLinkOnly_=function(l){return!(!l||l.length!==1||this.noEndpoints||!l[0].navigationEndpoint)};
_.W.getRoot=function(){var l=this.buildScopeDomOptions();return this.enableContentEditable?_.iJ(_.iJ(this.hostElement,l).querySelector("[contenteditable]")):_.iJ(this.hostElement,l)};
_.W.fixContenteditableScope=function(){var l=function(D){D&&(D.nodeType===1&&D.classList&&(D.classList.add("style-scope"),D.classList.add("yt-formatted-string")),D.childNodes&&D.childNodes.forEach(function(U){l(U)}))};
l(this.getRoot())};
_.W.updateText_=function(l){for(var D=l.length,U=this.getRoot(),n=U.firstChild;n&&n.nodeName==="STYLE";)n=n.nextSibling;for(var y=0;y<D&&n;){var A=l[y],C=_.q("remove_cr_char")&&A.text?A.text.replace("\r",""):A.text;if(this.isSimpleString_(A)&&!this.useMixedDirectionFormattedStrings)if(n.nodeName==="#text"){n.textContent!=C&&(n.textContent=C);y++;n=n.nextSibling;continue}else break;if(_.M(A,eQ))break;else if(!this.noEndpoints&&A.navigationEndpoint){if(n.nodeName!=="A")break;this.setDataOnAnchor_(n,
A.navigationEndpoint)}else if(n.nodeName!=="SPAN")break;this.setNodeStyle_(A,n);this.setUpVisibilityLogging_(A,n);n.textContent!=C&&(n.textContent=C);y++;n=n.nextSibling}if(n)for(A=U.lastChild,n=y?n.previousSibling:null;A&&A!=n;){try{U.removeChild(A)}catch(h){break}A=U.lastChild}y!==D&&this.addTextNodes_(l,y)};
_.W.addTextNodes_=function(l,D){for(var U=document.createDocumentFragment(),n=l.length;D<n;D++){var y=l[D],A=_.q("remove_cr_char")&&y.text?y.text.replace("\r",""):y.text;if(this.isSimpleString_(y)&&!this.useMixedDirectionFormattedStrings)U.appendChild(document.createTextNode(A));else{var C=_.M(y,eQ);if(C){if(C.image){var h=document.createElement("img");C.isCustomEmoji||h.classList.add("small-emoji");h.classList.add("emoji");C.isCustomEmoji&&(h.dataset.emojiId=C.emojiId);h.src=_.IO(C.image.thumbnails,
this.emojiSize);(y=this.get("image.accessibility.accessibilityData.label",C))?h.alt=y:C.shortcuts&&C.shortcuts.length>0?h.alt=C.shortcuts[0]:C.emojiId&&(h.alt=C.emojiId);U.appendChild(h);this.hasEmoji=!0}}else!this.noEndpoints&&y.navigationEndpoint?(h=document.createElement("a"),h.classList.add("yt-simple-endpoint"),h.setAttribute("spellcheck","false"),this.setDataOnAnchor_(h,y.navigationEndpoint)):h=document.createElement("span"),this.setNodeStyle_(y,h),this.setUpVisibilityLogging_(y,h),h.appendChild(document.createTextNode(A)),
U.appendChild(h)}}this.getRoot().appendChild(U)};
_.W.isSimpleString_=function(l){return(this.noEndpoints||!l.navigationEndpoint)&&!_.M(l,eQ)&&(this.noStyles||!(l.bold||l.deemphasize||l.italics||l.strikethrough||l.errorUnderline||l.bracket||l.textColor))&&!l.loggingDirectives};
_.W.getRawText=function(){return _.Nl(this.text)};
_.W.getFirstRunText=function(){var l;if(((l=this.text)==null?0:l.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.W.setFirstRunText=function(l){var D;((D=this.text)==null?0:D.runs)&&this.text.runs[0]&&(this.text.runs[0].text=l,this.textChanged_(this.text))};
_.W.setDataOnAnchor_=function(l,D){var U=this;!_.q("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(D)||this.isSignalServiceEndpoint_(D)?(l.onclick=this.serviceEndpointHandler_(D),Il(l,"#")):iqC({text:this.text,command:D},function(){bq3(l,D,U.target)})};
_.W.isServiceEndpoint_=function(l){var D;return!((D=_.M(l==null?void 0:l.commandMetadata,_.W6))==null||!D.sendPost)};
_.W.isSignalServiceEndpoint_=function(l){return!!_.M(l,_.AJ)};
_.W.serviceEndpointHandler_=function(l){var D=this;return function(U){_.lu(D.hostElement,[l]);U.preventDefault()}};
_.W.overrideAriaLabelChanged_=function(){var l=this.getRoot();this.enableContentEditable&&l&&l.setAttribute("aria-label",this.overrideAriaLabel)};
_.W.enableContentEditableChanged_=function(){var l=this,D=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),D=_.iJ(this.hostElement,D),!D.lastChild||D.lastChild instanceof HTMLElement&&D.lastChild.id!=="contenteditable-root"){var U=document.createElement("div");U.id="contenteditable-root";U.setAttribute("contenteditable","true");U.setAttribute("dir","auto");U.onfocus=function(){l.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
D.appendChild(U);this.overrideAriaLabel&&U.setAttribute("aria-label",this.overrideAriaLabel)}}else U=_.lJ(this.hostElement).firstChild,U instanceof HTMLElement&&U.id==="contenteditable-root"&&_.iJ(this.hostElement,D).removeChild(U)};
_.W.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.W.getNodesForVisibilityLogging_=function(){return _.O4(this.getRoot().childNodes,function(l){var D;return!((D=l.data)==null||!D.trackingParams)})};
_.W.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.W.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var l=this.ytRendererBehavior.getVisibilityLogger();l&&this.getNodesForVisibilityLogging_().forEach(function(D){l.reportShown(D)})}};
_.W.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var l=this.ytRendererBehavior.getVisibilityLogger();l&&this.getNodesForVisibilityLogging_().forEach(function(D){l.reportHidden(D)})}};
_.QP.Object.defineProperties(jy.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.q("enable_mixed_direction_formatted_strings")}}});
jy.prototype.enableContentEditableChanged_=jy.prototype.enableContentEditableChanged_;jy.prototype.overrideAriaLabelChanged_=jy.prototype.overrideAriaLabelChanged_;jy.prototype.ellipsisTruncateChanged_=jy.prototype.ellipsisTruncateChanged_;jy.prototype.textChanged=jy.prototype.textChanged;_.E([_.m(gcm.YtPlaintextBehavior),_.T("design:type",Object)],jy.prototype,"ytPlaintextBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],jy.prototype,"ytComponentBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jy.prototype,"text",void 0);_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"noEndpoints",void 0);_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"noStyles",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],jy.prototype,"isDarkTheme",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],jy.prototype,"splitLines",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],jy.prototype,"forceDefaultStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],jy.prototype,"ellipsisTruncate",void 0);_.E([_.K(),_.T("design:type",Object)],jy.prototype,"ignoreShadyDom",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.T("design:type",Boolean)],jy.prototype,"ellipsisTruncateStyling",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.T("design:type",String)],jy.prototype,"ariaLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],jy.prototype,"isEmpty",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.T("design:type",Boolean)],jy.prototype,"hasLinkOnly_",void 0);_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"hasEmoji",void 0);_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"disableAttributedString",void 0);_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"isOverlay",void 0);_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"linkInheritColor",void 0);
_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"noPreWrap",void 0);_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"userInput",void 0);_.E([_.K({value:16}),_.T("design:type",Number)],jy.prototype,"emojiSize",void 0);_.E([_.K(),_.T("design:type",String)],jy.prototype,"target",void 0);_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"enableContentEditable",void 0);_.E([_.K(),_.T("design:type",String)],jy.prototype,"overrideAriaLabel",void 0);
_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"respectHtmlDir",void 0);_.E([_.K(),_.T("design:type",Boolean)],jy.prototype,"respectLangDir",void 0);_.E([_.t("plaintextOnly"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],jy.prototype,"useMixedDirectionFormattedStrings",null);_.E([_.K({computed:"computeUseAttributedString(text)"}),_.T("design:type",Boolean)],jy.prototype,"useYtAttributedString",void 0);
_.E([_.Pg("text"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jy.prototype,"textChanged",null);_.E([_.Pg("ellipsisTruncate"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jy.prototype,"ellipsisTruncateChanged_",null);_.E([_.Pg("overrideAriaLabel"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jy.prototype,"overrideAriaLabelChanged_",null);
_.E([_.Pg("enableContentEditable"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jy.prototype,"enableContentEditableChanged_",null);_.E([_.S0({is:"yt-formatted-string",disableElementRegistration:!0})],jy);
_.r(jy,"yt-formatted-string",function(){if(vck===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;uBy===void 0&&(uBy=document.createElement("template"));var n=uBy;U.call(D,n.content.cloneNode(!0),l.content.firstChild);vck=l}l=vck;return l});var Qkv;var GJr;var J$h;var Lcm;var Fu=function(){var l=_.p.apply(this,arguments)||this;l.focused=!1;l.disabled=!1;l.isOverlay=!1;return l};
_.Z(Fu,_.p);Fu.prototype.triggerDown=function(){if(!this.disabled){_.nY(this.hostElement,"down",!0);var l;(l=this.currentAnimation)==null||l.cancel()}};
Fu.prototype.triggerUp=function(){if(!this.disabled){_.nY(this.hostElement,"down",!1);var l=this.fillElement;var D=this.strokeElement;typeof GroupEffect==="function"?(l=new GroupEffect([w8_(l),r$G(D)]),l=new Animation(l,document.timeline)):l=new zig(l,D);this.currentAnimation=l;var U;(U=this.currentAnimation)==null||U.play()}};
_.E([_.gP(".stroke"),_.T("design:type",HTMLElement)],Fu.prototype,"strokeElement",void 0);_.E([_.gP(".fill"),_.T("design:type",HTMLElement)],Fu.prototype,"fillElement",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Fu.prototype,"focused",void 0);_.E([_.K(),_.T("design:type",Object)],Fu.prototype,"disabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Fu.prototype,"isOverlay",void 0);_.E([_.S0({is:"yt-interaction",disableElementRegistration:!0})],Fu);
_.r(Fu,"yt-interaction",function(){if(Lcm===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;J$h===void 0&&(J$h=document.createElement("template"));var n=J$h;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Lcm=l}l=Lcm;return l},{mode:2});var o4=function(){return _.p.apply(this,arguments)||this};
_.Z(o4,_.p);_.W=o4.prototype;_.W.ready=function(){var l=this,D=_.iJ(this.hostElement).querySelector("#button");D.addEventListener("focus",function(){gwh||(gwh=new b91);l.keyboardFocused=gwh.isKeyBoardInUse()});
D.addEventListener("blur",function(){l.keyboardFocused=!1;l.rippleUp_()})};
_.W.computeTabIndex_=function(l){return l?-1:0};
_.W.computeButtonAriaPressed_=function(l){if(this.toggleable)return l?"true":"false"};
_.W.rippleDown_=function(){_.iJ(this.hostElement).querySelector("#interaction").triggerDown()};
_.W.rippleUp_=function(){_.iJ(this.hostElement).querySelector("#interaction").triggerUp()};
_.W.onPressedChanged_=function(){var l=_.lJ(_.iJ(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.lJ(_.iJ(this.hostElement).querySelector("#button")).children[0];l&&(l.active=this.pressed)};
o4.prototype.onPressedChanged_=o4.prototype.onPressedChanged_;o4.prototype.rippleUp_=o4.prototype.rippleUp_;o4.prototype.rippleDown_=o4.prototype.rippleDown_;_.E([_.K(),_.T("design:type",String)],o4.prototype,"label",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],o4.prototype,"disabled",void 0);_.E([_.K(),_.T("design:type",Boolean)],o4.prototype,"pressed",void 0);_.E([_.K(),_.T("design:type",Object)],o4.prototype,"toggleable",void 0);
_.E([_.K(),_.T("design:type",Boolean)],o4.prototype,"untabbable",void 0);_.E([_.K(),_.T("design:type",Boolean)],o4.prototype,"keyboardFocused",void 0);_.E([_.hj("down"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],o4.prototype,"rippleDown_",null);_.E([_.hj("up"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],o4.prototype,"rippleUp_",null);
_.E([_.Pg("pressed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],o4.prototype,"onPressedChanged_",null);_.E([_.S0({is:"yt-icon-button",disableElementRegistration:!0})],o4);
_.r(o4,"yt-icon-button",function(){if(GJr===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Qkv===void 0&&(Qkv=document.createElement("template"));var n=Qkv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);GJr=l}l=GJr;return l},{mode:2});var q6H;var MB7=function(){var l=document.body,D=l.appendChild;if(q6H===void 0){var U=document.createElement("template");_.e(U,'\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>');
q6H=U}U=q6H;D.call(l,U.content)};
document.body?MB7():window.addEventListener("DOMContentLoaded",MB7);var RO7=_.wL(["aria-"]),w9={};w9.YtRenderButtonBehavior=[_.Y.YtRendererBehavior,_.d9.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!!_.Jc().resolve(_.G8(_.L$))&&_.q("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 l=this.computeHref_(this.endpoint,!0);l?Il(this.elements_.endpoint,l):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){l=this.buttonClass.split(" ");l=_.B(l);for(var D=l.next();!D.done;D=l.next())D=D.value,_.nY(this.hostElement,D,!0),this.elements_.button&&_.nY(this.elements_.button,D,!0),this.elements_.text&&_.nY(this.elements_.text,D,!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&&(l=null,this.buttonAccessibility&&(l=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=l:l?_.hv([_.QK(RO7)],this.elements_.button,"aria-label",l):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var l=_.Jc().resolve(_.G8(_.L$));l&&(this.keyboardFocused=l.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.vO("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,_.Ga(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Ga(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(l,D){if(D)for(l=D.split(" "),l=_.B(l),D=l.next();!D.done;D=l.next())D=D.value,_.nY(this.hostElement,D,!1),this.elements_.button&&_.nY(this.elements_.button,D,!1),this.elements_.text&&_.nY(this.elements_.text,D,!1)},
buttonIconChanged_:function(l){this.elements_.icon?l?(this.elements_.icon.icon=l,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Ga(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.yj(this.hostElement,"is-paper-button-with-icon",!1)):l&&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"&&_.Ga(this.elements_.button).appendChild(this.elements_.icon):_.Ga(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.yj(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(l){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,l){var D=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(l){case "yt_icon_button_with_label":D=!0;_.nY(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();l=_.Ga(this.elements_.button).firstElementChild;
this.elements_.icon=l;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Ga(this.elements_.endpoint).appendChild(this.elements_.button);_.Ga(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.vO("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;_.Ga(this.elements_.button).appendChild(this.elements_.text);_.Ga(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":D=!0,this.elements_.button=this.getYtIconButton_(),l=_.Ga(this.elements_.button).firstElementChild,this.elements_.icon=l,this.setIconActive_(this.elements_.icon),
_.Ga(this.elements_.endpoint).appendChild(this.elements_.button)}_.yj(this.hostElement,"is-icon-button",D);_.yj(this.hostElement,"is-paper-button",!D);_.yj(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 U;_.iJ((U=this.container.hostElement)!=null?U:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Ga(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(l){if(l!=void 0||this.disabled)this.disabled=l,this.elements_.button&&(this.elements_.button.disabled=l)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(l){_.q("kevlar_system_icons")&&l&&this.data&&(this.data.isSelected!==void 0?l.active=this.data.isSelected:this.data.isToggled!==void 0&&(l.active=this.data.isToggled))},
observeBasicPalette_:function(l){_.qh(this.hostElement,l)},
disabledChanged_:function(l){this.data&&this.set("data.isDisabled",l)},
onYtButtonTap_:function(l){if(this.disabled)l.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.lu(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(l=this.disableCommandHandlerOverride,!this.data||!this.data.command||l||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.q("handle_service_request_actions")||_.lu(this.hostElement,[this.serviceEndpoint]),
_.O9(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.q("handle_service_request_actions")?(l=[],this.serviceEndpoint&&l.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&l.push(this.data.command),l.length&&_.DP(this.hostElement,l,this.hostElement)):this.data&&this.data.command&&(l=this.data.command,l.accountUnlinkCommand||l.accountLinkCommand||l.insertAdCommand||l.insertHighlightMarkerCommand||
l.createLivestreamHighlightClipCommand||l.getVideoUploadFeedbackCommand||l.musicDeletePrivatelyOwnedEntityCommand||l.ypcCancelRecurrenceEndpoint||l.getMultiSelectCommandEndpoint?_.lu(this.hostElement,[l]):_.DP(this.hostElement,[l],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 l,D=_.iJ((l=this.container.hostElement)!=null?l:this.container);D.lastChild&&D.lastChild.tagName!="STYLE";)try{D.removeChild(D.lastChild)}catch(U){break}},
getYtIconButton_:function(){var l=this.reuseEnabled_()?_.vO("yt-icon-button"):document.createElement("yt-icon-button"),D=_.Ga(l).firstElementChild;if(D&&D.is!="yt-icon"){for(D=_.Ga(l);D.lastChild;)D.removeChild(D.lastChild);D=null}D||(D=this.getIcon_(),this.setIconActive_(D),_.Ga(l).appendChild(D));return l},
reuseEnabled_:function(){return _.q("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.vO("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.vO("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.ZHv={};
_.ZHv.YtButtonBehavior=[w9.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var l=this.data;l&&(this._setEndpoint(this.computeEndpoint_(l)),this._setServiceEndpoint(this.computeServiceEndpoint_(l)),this._setCommand(this.computeCommand_(l)),this._setButtonIcon(this.computeButtonIcon_(l)),this._setButtonText(this.computeButtonText_(l,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(l)),this._setButtonTooltip(this.computeTooltip_(l)),this._setButtonClass(this.computeButtonClass_(l)),this._setIconPositionType(this.computeIconPositionType_(l)),this.updateRenderedElements())},
setPressedState:function(l){var D;if((D=this.elements_)==null?0:D.button)this.elements_.button.pressed=!!l},
computeIconPositionType_:function(l){return l&&l.iconPosition||null},
computeEndpoint_:function(l){var D=l&&l.navigationEndpoint,U=this.get("data.command.commandMetadata.webCommandMetadata.url"),n=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return D?D:l&&l.command&&l.command.modalEndpoint?l.command:U&&!n&&l.command?l.command:null},
computeServiceEndpoint_:function(l){var D=l&&l.serviceEndpoint,U=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return D?D:U&&l.command?l.command:null},
computeCommand_:function(l){return l&&l.command||null},
computeButtonIcon_:function(l){return l&&l.icon&&l.icon.iconType?_.UV(l.icon.iconType):null},
computeButtonText_:function(l,D){return!D&&l&&l.text||null},
computeAccessibility_:function(l){return this.get("accessibilityData.accessibilityData",l)||l&&l.accessibility||(l&&l.text?{label:this.getSimpleString(l.text)}:null)},
computeTooltip_:function(l){return l?l.isDisabled&&l.disabledTooltip||l.tooltip||null:null},
computeButtonClass_:function(l){var D=l&&l.style?l.style.toLowerCase().replace(/_/g,"-")+" ":"";D+=l&&l.size?l.size.toLowerCase().replace(/_/g,"-")+" ":"";l.colorData&&l.colorData.basicColorPaletteData&&l.colorData.basicColorPaletteData.borderColor&&(D+="palette-with-border");return D.trim()}}];var Mh={};var eOy;var m_y;var awk,tBy=function(){return awk!==void 0?awk:awk=document.createElement("template")};
document.head.appendChild(tBy().content);var X81;var S6h,kJr=function(){return S6h!==void 0?S6h:S6h=document.createElement("template")};
document.head.appendChild(kJr().content);var d_z;var Kc8,c$m=function(){return Kc8!==void 0?Kc8:Kc8=document.createElement("template")};
document.head.appendChild(c$m().content);var p87;var x_g=document.head,jk8=x_g.appendChild,Fcv;if(p87===void 0){var och=document.createElement("template");_.e(och,"\x3c!--css-build:shady--\x3e");och.content.insertBefore(c$m().content.cloneNode(!0),och.content.firstChild);p87=och}Fcv=p87;jk8.call(x_g,Fcv.content);var w8g=document.head,r$H=w8g.appendChild,zO7;if(d_z===void 0){var fw_=document.createElement("template");_.e(fw_,"\x3c!--css-build:shady--\x3e");fw_.content.insertBefore(kJr().content.cloneNode(!0),fw_.content.firstChild);d_z=fw_}zO7=d_z;r$H.call(w8g,zO7.content);var $_z=document.head,Nav=$_z.appendChild,sk7;if(X81===void 0){var Ecz=document.createElement("template");_.e(Ecz,"\x3c!--css-build:shady--\x3e");Ecz.content.insertBefore(tBy().content.cloneNode(!0),Ecz.content.firstChild);X81=Ecz}sk7=X81;Nav.call($_z,sk7.content);var TaH;_.RL("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");TaH=_.q("web_button_rework")&&_.il("BUTTON_REWORK")||_.q("web_button_rework_with_live");_.r9=function(){return _.p.apply(this,arguments)||this};
_.Z(_.r9,_.p);_.r9.prototype.created=function(){this.openPopupConfig=_.H3("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.r9.prototype.onYtNavigate_=function(l){var D=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(l.detail.endpoint);D&&(this.ytOpenPopupBehavior.openPopup(D),l.stopPropagation(),l.preventDefault())};
_.QP.Object.defineProperties(_.r9,{template:{configurable:!0,enumerable:!0,get:function(){if(m_y===void 0){var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
var D=l.content,U=D.insertBefore;eOy===void 0&&(eOy=document.createElement("template"));var n=eOy;U.call(D,n.content.cloneNode(!0),l.content.firstChild);m_y=l}l=m_y;return l}}});
_.r9.prototype.onYtNavigate_=_.r9.prototype.onYtNavigate_;_.E([_.m(_.kk.YtOpenPopupBehavior),_.T("design:type",Object)],_.r9.prototype,"ytOpenPopupBehavior",void 0);_.E([_.m(_.ZHv.YtButtonBehavior),_.T("design:type",Object)],_.r9.prototype,"ytButtonBehavior",void 0);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],_.r9.prototype,"onYtNavigate_",null);
_.E([_.S0({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:TaH})],_.r9);var IwH;var HHv=_.q("web_button_rework")&&_.il("BUTTON_REWORK")||_.q("web_button_rework_with_live"),z9=function(){var l=_.p.apply(this,arguments)||this;l.isPressed=!1;l.forceIconButton=!1;l.forceIconOnly=!1;l.forceModernIconButton=!1;l.skipCommandHandling=!1;l.alignByText=!1;l.fitToVisibleBounds=!0;l.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};l.onTap=function(D){_.O9(l.hostElement,"yt-service-request-sent-button-renderer",D)};
return l};
_.Z(z9,_.p);_.W=z9.prototype;_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.W.onClick=function(l){var D,U=this.disabled||((D=this.data)==null?void 0:D.isDisabled);D=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");U&&D&&l.stopPropagation()};
_.W.computeIcon=function(){var l,D,U=(l=this.data)==null?void 0:(D=l.icon)==null?void 0:D.iconType;if(U)return _.UV(U)};
_.W.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.W.handleUpdateButtonAction=function(l){l=_.M(l,iiH);var D=_.M(l==null?void 0:l.updatedButton,_.yn);if(this.data&&l&&D){var U=this.data;U.targetId&&l.targetId&&U.targetId===l.targetId&&(this.data=D)}};
_.QP.Object.defineProperties(z9.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var l=this;if(this.data){var D=H1_({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.O9(l.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.O9(l.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});D.alignByText=this.alignByText;return D}}}});
_.QP.Object.defineProperties(z9,{template:{configurable:!0,enumerable:!0,get:function(){if(IwH===void 0){var l=document.createElement("template");_.e(l,'\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>');IwH=l}l=IwH;return l}}});
z9.prototype.onClick=z9.prototype.onClick;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],z9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],z9.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],z9.prototype,"isPressed",void 0);
_.E([_.K(),_.T("design:type",Object)],z9.prototype,"forceIconButton",void 0);_.E([_.K(),_.T("design:type",Object)],z9.prototype,"forceIconOnly",void 0);_.E([_.K(),_.T("design:type",Object)],z9.prototype,"forceModernIconButton",void 0);_.E([_.K(),_.T("design:type",Object)],z9.prototype,"skipCommandHandling",void 0);_.E([_.K(),_.T("design:type",Object)],z9.prototype,"alignByText",void 0);_.E([_.K(),_.T("design:type",Object)],z9.prototype,"buttonTooltipPosition",void 0);
_.E([_.K(),_.T("design:type",Object)],z9.prototype,"fitToVisibleBounds",void 0);_.E([_.K({computed:"computeTooltip(data)"}),_.T("design:type",Object)],z9.prototype,"tooltip",void 0);_.E([_.K(),_.T("design:type",Object)],z9.prototype,"overrides",void 0);_.E([_.K(),_.T("design:type",Boolean)],z9.prototype,"disabled",void 0);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],z9.prototype,"onClick",null);
_.E([_.t("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.T("design:type",Object),_.T("design:paramtypes",[])],z9.prototype,"computedButtonShape",null);_.E([_.S0({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!HHv,cssBuildOptOut:!0}),_.S0({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!HHv,cssBuildOptOut:!0})],z9);var Y61;var OH7;var f$=function(){var l=_.p.apply(this,arguments)||this;l.empty_=!0;l.loadTime=Infinity;l.pendingPaint=!1;l.hasChange_=!1;l.oldThumbnail_=null;l.oldDelayedSrc_="";l.objectURL_=null;return l};
_.Z(f$,_.p);_.W=f$.prototype;_.W.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.W.ready=function(){var l=this.shouldShowPlaceholder_();_.nY(this.hostElement,"no-transition",!0);l&&this.hostElement.classList.add("with-placeholder")};
_.W.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.W.isThumbPreloaded_=function(l){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",l)};
_.W.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||VB_};
_.W.computeThumbnailSrc_=function(l){return l&&l.thumbnails?_.IO(l.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.W.computeAlt_=function(){var l=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&l||""};
_.W.thumbnailChanged_=function(){var l=_.B([this.thumbnail,this.oldThumbnail_]),D=l.next().value;l=l.next().value;this.oldThumbnail_=D;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(l=this.computeThumbnailSrc_(l),this.computeThumbnailSrc_(D)===l))return;_.q("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(D)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):D&&_.il("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.u6(this,this.onReload_):_.u6(this,this.onShow_):this.resetImage_();D&&(this.hostElement.style.opacity=""+D.opacity)}};
_.W.delayedSrcChanged_=function(){var l=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===l||this.resetImage_()};
_.W.setSrc_=function(l){l?(_.iJ(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.iJ(this.hostElement).querySelector("#img").src=l):(_.iJ(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.W.resetImage_=function(){Yqg(this.hostElement);this.empty_=!0;this.setSrc_(VB_);this.ytRendererBehavior.invalidate(!1)};
_.W.observePlaceholderColor_=function(){var l=this.thumbnail&&this.thumbnail.placeholderColor;l?this.hostElement.style.backgroundColor=_.an(l):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.W.onLoad_=function(){_.iJ(this.hostElement).querySelector("#img").src&&_.iJ(this.hostElement).querySelector("#img").src!==VB_&&(HRl(this.hostElement),this.notifyOnLoaded&&_.O9(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.W.onError_=function(){var l=this;if(_.q("web_use_cache_for_image_fallback"))ncg(_.iJ(this.hostElement).querySelector("#img").src).then(function(D){l.objectURL_=_.sW(D).toString();l.setSrc_(l.objectURL_)}).catch(function(){_.q("kevlar_woffle_fallback_image")&&l.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.W.onPrescanVisible=function(){this.onShow_()};
_.W.onVisible=function(){if(_.q("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.W.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var l=this.computeSrc_();l!==_.iJ(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(l))}};
_.W.onReload_=function(){this.empty_=!1;var l=this.computeSrc_();l!==_.iJ(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(l))};
_.W.shouldShowPlaceholder_=function(){return _.q("kevlar_thumbnail_bg")};
f$.prototype.observePlaceholderColor_=f$.prototype.observePlaceholderColor_;f$.prototype.delayedSrcChanged_=f$.prototype.delayedSrcChanged_;f$.prototype.thumbnailChanged_=f$.prototype.thumbnailChanged_;_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],f$.prototype,"alt",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],f$.prototype,"ariaHidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],f$.prototype,"ariaLabel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],f$.prototype,"hidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],f$.prototype,"id",void 0);_.E([_.m(_.n$.YtVisibilityBehavior),_.T("design:type",Object)],f$.prototype,"ytVisibilityBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",String)],f$.prototype,"delayedSrc",void 0);
_.E([_.K(),_.T("design:type",Object)],f$.prototype,"thumbnail",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],f$.prototype,"loaded",void 0);_.E([_.K(),_.T("design:type",Boolean)],f$.prototype,"notifyOnLoaded",void 0);_.E([_.K(),_.T("design:type",Number)],f$.prototype,"height",void 0);_.E([_.K(),_.T("design:type",Number)],f$.prototype,"width",void 0);_.E([_.K({value:function(){return"width"}}),
_.T("design:type",String)],f$.prototype,"dimension",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],f$.prototype,"fit",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],f$.prototype,"fitHeight",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],f$.prototype,"fitWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],f$.prototype,"objectFit",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],f$.prototype,"objectPosition",void 0);_.E([_.K(),_.T("design:type",String)],f$.prototype,"preferredThumbnail",void 0);_.E([_.K({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.T("design:type",String)],f$.prototype,"alt_",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],f$.prototype,"sharedTooltipText",void 0);
_.E([_.K(),_.T("design:type",Boolean)],f$.prototype,"ftlEligible",void 0);_.E([_.K({value:void 0}),_.T("design:type",String)],f$.prototype,"observeHiddenOption",void 0);_.E([_.K({value:"observe_once"}),_.T("design:type",String)],f$.prototype,"observePrescanOption",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],f$.prototype,"roundedContainer",void 0);
_.E([_.GY("thumbnail"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],f$.prototype,"thumbnailChanged_",null);_.E([_.GY("delayedSrc"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],f$.prototype,"delayedSrcChanged_",null);_.E([_.Pg("thumbnail.placeholderColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],f$.prototype,"observePlaceholderColor_",null);
_.E([_.S0({is:"yt-img-shadow",disableElementRegistration:!0})],f$);var VB_=_.il("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Ol()(f$,"yt-img-shadow",function(){if(OH7===void 0){var l=document.createElement("template");_.e(l,'\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">');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Y61===void 0&&(Y61=document.createElement("template"));var n=Y61;U.call(D,n.content.cloneNode(!0),l.content.firstChild);OH7=l}l=OH7;return l},{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 CgC;_.$k=new _.A7("SCREEN_MANAGER_TOKEN");CgC=new _.A7("LOG_INITIAL_SCREEN_TOKEN");var i1y=eZ({entities:{}});_.NO=m8(i1y)(i1y.entities,{selectSfvAudioItemPlaybackState:function(l,D){var U,n;l=(n=_.yT(l,"sfvAudioItemCurrentlyPlayingEntity",D))!=null?n:void 0;return(U=l==null?void 0:l.sfvAudioItemPlaybackState)!=null?U:void 0},
playlistLoopStateEntitySelector:ViN,toggleMenuServiceItemEntitySelector:ioK});_.s0=_.w(function(l){function D(iG){return _.M(iG,_.CM)}
function U(){var iG=n().isTogglingDisabled||a()&&n().toggledIsTogglingDisabled,CC=iG||J()?a():!a();S(CC);c(!1);if(!iG){var vo;(vo=C)==null||vo(!!CC)}var td;((td=A)==null?0:td())||_.jm(_.Jc().resolve(_.$k),n().trackingParams);var GN;if(!CC||!D(n().defaultButtonViewModel)||(GN=A)!=null&&GN()){var Ms;!D(n().toggledButtonViewModel)||((Ms=A)==null?0:Ms())||_.jm(_.Jc().resolve(_.$k),D(n().toggledButtonViewModel).trackingParams)}else _.jm(_.Jc().resolve(_.$k),D(n().defaultButtonViewModel).trackingParams)}
var n=l.data,y=l.buttonShapeOverrides,A=l.disableExplicitClickLogging,C=l.onToggle,h=l.style,b=l.useOutlinedIcon,u=l.className,Q=function(){var iG,CC;return a()?(iG=l.animatedTextPropsToggled)==null?void 0:iG.call(l):(CC=l.animatedTextPropsDefault)==null?void 0:CC.call(l)},G=_.dM(function(){return Q()?Object.assign({},Q(),{shouldAnimate:d()}):void 0},void 0,"Zp4uoe"),J=function(){var iG;
return((iG=f())==null?void 0:iG.isToggled)!==void 0},L=_.B(_.WK(function(){var iG,CC,vo;
return J()?(iG=f())==null?void 0:iG.isToggled:(vo=y==null?void 0:(CC=y())==null?void 0:CC.toggled)!=null?vo:n().isToggled})),R=L.next().value;
L=L.next().value;var a=R,S=L;L=_.B(_.WK(function(){var iG,CC;return(iG=l.animatedTextPropsToggled)==null?void 0:(CC=iG.call(l))==null?void 0:CC.shouldAnimate}));
R=L.next().value;L=L.next().value;var d=R,c=L;R=_.B(_.aw(!1,void 0,"mq3Zfe"));var N=R.next().value,z=R.next().value,f=_.gf(function(iG){a:{var CC=n().entityKey,vo=n().toggledStateEntitySelectorType;if(vo)switch(vo){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!CC)break;iG=_.NO.selectSfvAudioItemPlaybackState(iG,CC);if(iG==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){iG={isToggled:!0};break a}if(iG){iG={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":iG=
{isToggled:_.UXo(iG).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":iG={isToggled:_.UXo(iG).includes("engagement-panel-live-chat-item-section")};break a;default:_.II(new _.rc("Error: entitySelectorType defined but not matched in selector.",iG,vo))}iG=void 0}return iG}),I=function(){return Object.assign({},y==null?void 0:y(),{onToggle:U,
toggleable:!0,toggled:a(),focused:N()})};
return _.g("toggle-button-view-model",{"on:focusin":_.n0(function(){var iG=_.Jc().resolve(_.G8(_.L$));iG&&z(iG.isKeyBoardInUse());return!1}),
"on:focusout":_.n0(function(){z(!1);return!1})},_.g(_.v,{cond:function(){return a()?D(n().toggledButtonViewModel):D(n().defaultButtonViewModel)},
then:function(iG){return _.g(_.t9,{data:iG,className:u,style:h,useOutlinedIcon:b,buttonOverrides:I,animatedTextProps:G})}}))},"da");
_.s0.idomCompat={callbacks:{onToggle:!0}};_.Tt(_.w(function(l){return _.g("yt-toggle-button-view-model",{class:function(){var D;return(D=l.scopingClassName)==null?void 0:D.call(l)}},_.g(_.s0,{data:function(){var D;
return(D=l.data)==null?void 0:D.call(l)},
buttonShapeOverrides:function(){var D;return(D=l.overrides)==null?void 0:D.call(l)},
animatedTextPropsDefault:function(){var D;return(D=l.animatedTextPropsDefault)==null?void 0:D.call(l)},
animatedTextPropsToggled:function(){var D;return(D=l.animatedTextPropsToggled)==null?void 0:D.call(l)},
disableExplicitClickLogging:function(){var D;return(D=l.disableExplicitClickLogging)==null?void 0:D.call(l)},
onToggle:function(D){var U;return(U=l.onToggle)==null?void 0:U.call(l,D)},
style:function(){var D;return(D=l.style)==null?void 0:D.call(l)},
useOutlinedIcon:function(){var D;return(D=l.useOutlinedIcon)==null?void 0:D.call(l)},
className:function(){var D;return(D=l.className)==null?void 0:D.call(l)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.C$,
buttonShapeOverrides:_.C$,overrides:_.C$,animatedTextPropsDefault:_.C$,animatedTextPropsToggled:_.C$,disableExplicitClickLogging:_.C$,onToggle:_.ND,style:_.C$,useOutlinedIcon:_.C$,className:_.C$,scopingClassName:_.C$}});var E0=function(){return _.p.apply(this,arguments)||this};
_.Z(E0,_.p);E0.prototype.onTap=function(l){l.stopPropagation();l=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.et("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:l})):this.ytLiveChatReduxBehavior.dispatch(_.vr("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:l}))};
_.QP.Object.defineProperties(E0.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.engagementState)==null?void 0:l.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l=_.M(this.data.toggleButton,_.Pq),D;if(Number(((D=this.likeCountState)==null?void 0:D.likeCountIfIndifferentNumber)||"0")===0){var U;D=((U=this.data.likeCountPlaceholder)==null?void 0:U.content)||""}else{var n,y,A;D=((n=this.likeCountState)==null?void 0:(y=n.likeCountIfIndifferent)==null?void 0:y.content)||((A=this.data.likeCountPlaceholder)==null?void 0:A.content)||""}var C,h;U=((C=this.likeCountState)==null?void 0:(h=
C.likeCountIfLiked)==null?void 0:h.content)||"1";C=_.M(l.toggledButtonViewModel,_.CM);return Object.assign({},l,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.M(l.defaultButtonViewModel,_.CM),{title:D})},toggledButtonViewModel:{buttonViewModel:Object.assign({},C,{title:U})}})}}}});
E0.prototype.onTap=E0.prototype.onTap;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],E0.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],E0.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],E0.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.likeCountEntityKey"],selector:nVl}),_.T("design:type",Object)],E0.prototype,"likeCountState",void 0);_.E([_.K({selectorArgs:["data.engagementStateKey"],selector:gl$}),_.T("design:type",Object)],E0.prototype,"engagementState",void 0);_.E([_.t("data","engagementState"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],E0.prototype,"isLiked",null);
_.E([_.t("data","likeCountState","isLiked"),_.T("design:type",Object),_.T("design:paramtypes",[])],E0.prototype,"toggleButton",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],E0.prototype,"onTap",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],E0);
_.r(E0,"yt-live-chat-like-button-view-model",function(){if(U_H===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;D_7===void 0&&(D_7=document.createElement("template"));var n=D_7;U.call(D,n.content.cloneNode(!0),l.content.firstChild);U_H=l}l=U_H;return l},{mode:0});var l_5;var Do1;var T9=function(){return _.p.apply(this,arguments)||this};
_.Z(T9,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],T9.prototype,"data",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],T9);
_.r(T9,"yt-live-chat-paid-message-footer-renderer",function(){if(Do1===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;l_5===void 0&&(l_5=document.createElement("template"));var n=l_5;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Do1=l}l=Do1;return l},{mode:0});var Uor;var nl7;var ypv;var Ap_,Wx8=function(){if(Ap_!==void 0)return Ap_;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;ypv===void 0&&(ypv=document.createElement("template"));var n=ypv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Ap_=l};var I4=function(){return _.p.apply(this,arguments)||this};
_.Z(I4,_.p);I4.prototype.onTap=function(l){l.stopPropagation()};
_.QP.Object.defineProperties(I4.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l=_.M(this.data.replyButton,_.CM),D,U,n,y,A,C,h,b=Number(((D=this.replyCountState)==null?void 0:D.replyCountNumber)||"0")===0?(U=this.data)==null?void 0:(n=U.replyCountPlaceholder)==null?void 0:n.content:((y=this.replyCountState)==null?void 0:(A=y.replyCount)==null?void 0:A.content)||((C=this.data)==null?void 0:(h=C.replyCountPlaceholder)==null?void 0:h.content)||"",u;return Object.assign({},
l,{title:b,accessibilityText:(u=this.replyCountState)==null?void 0:u.replyButtonAccessibilityText})}}}});
_.QP.Object.defineProperties(I4,{template:{configurable:!0,enumerable:!0,get:function(){return Wx8()}}});
I4.prototype.onTap=I4.prototype.onTap;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],I4.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],I4.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],I4.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.replyCountEntityKey"],selector:function(l,D){return _.yT(l.entities,"replyCountEntity",D)}}),
_.T("design:type",Object)],I4.prototype,"replyCountState",void 0);_.E([_.t("data","replyCountState"),_.T("design:type",Object),_.T("design:paramtypes",[])],I4.prototype,"buttonViewModel",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],I4.prototype,"onTap",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],I4);_.r(I4,"yt-live-chat-reply-button-view-model",function(){return Wx8()},{mode:0});var Bdm;var CMH;var HO=function(){var l=_.p.apply(this,arguments)||this;l.ariaLabel="";return l};
_.Z(HO,_.p);
HO.prototype.dataChanged=function(){for(var l=(0,_.Aj)(_.iJ(this.hostElement).querySelector("#image"));l.firstChild;)l.removeChild(l.firstChild);if(this.data)if(this.data.icon){var D=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(D.polymerController.icon="yt-sys-icons:shield-filled",D.polymerController.defaultToFilled=!0):D.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();l.appendChild(D)}else if(this.data.customThumbnail){D=document.createElement("img");
var U=_.fM9(this.data.customThumbnail.thumbnails,16);U?(D.src=U,l.appendChild(D),D.setAttribute("alt",this.hostElement.ariaLabel||"")):_.II(new _.rc("Could not compute URL for thumbnail",this.data.customThumbnail))}};
HO.prototype.identity=function(l){return l};
HO.prototype.computeType=function(l){return im(l||void 0)};
HO.prototype.dataChanged=HO.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],HO.prototype,"data",void 0);_.E([_.K({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.T("design:type",Object)],HO.prototype,"ariaLabel",void 0);_.E([_.K({computed:"computeType(data)",reflectToAttribute:!0}),_.T("design:type",String)],HO.prototype,"type",void 0);
_.E([_.K({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.T("design:type",String)],HO.prototype,"sharedTooltipText",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("live_chat_enable_new_moderator_badge")}}),
_.T("design:type",Boolean)],HO.prototype,"enableNewModeratorBadge",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HO.prototype,"dataChanged",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],HO);
_.r(HO,"yt-live-chat-author-badge-renderer",function(){if(CMH===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Bdm===void 0&&(Bdm=document.createElement("template"));var n=Bdm;U.call(D,n.content.cloneNode(!0),l.content.firstChild);CMH=l}l=CMH;return l},{mode:0});var ha7;var PM_;var Yk=function(){return _.p.apply(this,arguments)||this};
_.Z(Yk,_.p);_.W=Yk.prototype;_.W.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"}}}}};
_.W.computeBadgesInsideChip=function(l){return l?l.filter(function(D){return im(D.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.W.computeBadgesOutsideChip=function(l){return this.prependChatBadges||!l?[]:l.filter(function(D){D=im(D.liveChatAuthorBadgeRenderer);return D!=="verified"&&D!=="owner"})};
_.W.computeBadgesBeforeChip=function(l){return this.prependChatBadges&&l?l.filter(function(D){D=im(D.liveChatAuthorBadgeRenderer);return D!=="verified"&&D!=="owner"}):[]};
_.W.computeIsHighlighted=function(l,D){var U=!!huc(l,"owner"),n=!!huc(l,"verified");l=!!huc(l,"moderator");return(U||n&&!l)&&!D};
_.W.computeAuthorType=function(l){return CAN(l)};
_.W.computeAuthorClass=function(l,D){return D?(l?l+" ":"")+"single-line":l};
_.W.onSeedColorChanged=function(){_.q("live_chat_author_name_color_usernames")||_.q("live_chat_seed_color_usernames")||_.q("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):_.q("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Yk.prototype.onSeedColorChanged=Yk.prototype.onSeedColorChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Yk.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Yk.prototype,"authorName",void 0);_.E([_.K(),_.T("design:type",Array)],Yk.prototype,"authorBadges",void 0);
_.E([_.K({computed:"computeAuthorType(authorBadges)"}),_.T("design:type",String)],Yk.prototype,"authorType",void 0);_.E([_.K({computed:"computeAuthorClass(authorType, singleLine)"}),_.T("design:type",String)],Yk.prototype,"authorClass",void 0);_.E([_.K({computed:"computeBadgesInsideChip(authorBadges)"}),_.T("design:type",Array)],Yk.prototype,"badgesInsideChip",void 0);_.E([_.K({computed:"computeBadgesOutsideChip(authorBadges)"}),_.T("design:type",Array)],Yk.prototype,"badgesOutsideChip",void 0);
_.E([_.K({computed:"computeBadgesBeforeChip(authorBadges)"}),_.T("design:type",Array)],Yk.prototype,"badgesBeforeChip",void 0);_.E([_.K({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.T("design:type",Boolean)],Yk.prototype,"isHighlighted",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],Yk.prototype,"singleLine",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],Yk.prototype,"disableHighlighting",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Yk.prototype,"dashboardMoneyFeed",void 0);_.E([_.K({value:_.q("live_chat_prepend_badges"),reflectToAttribute:!0}),_.T("design:type",Boolean)],Yk.prototype,"prependChatBadges",void 0);_.E([_.K(),_.T("design:type",String)],Yk.prototype,"authorNameColor",void 0);_.E([_.gP("#author-name"),_.T("design:type",HTMLDivElement)],Yk.prototype,"username",void 0);
_.E([_.Pg("authorNameColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Yk.prototype,"onSeedColorChanged",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Yk);
_.r(Yk,"yt-live-chat-author-chip",function(){if(PM_===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;ha7===void 0&&(ha7=document.createElement("template"));var n=ha7;U.call(D,n.content.cloneNode(!0),l.content.firstChild);PM_=l}l=PM_;return l},{mode:0});var b1v;var gl8;var O0=function(){var l=_.p.apply(this,arguments)||this;l.debounceCommand=_.e8(function(D){l.ytComponentBehavior.resolveCommand(D)},1500);
return l};
_.Z(O0,_.p);O0.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var l=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",D,U,n=this.isHearted?(D=this.data)==null?void 0:D.unheartCommand:(U=this.data)==null?void 0:U.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.et("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:l}));(l=_.te(n))&&this.debounceCommand(l)}};
_.QP.Object.defineProperties(O0.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var l,D;if(!((l=this.data)==null?0:(D=l.creatorThumbnail)==null?0:D.sources))return{};l={thumbnails:[]};D={};D.url=this.data.creatorThumbnail.sources[0].url;l.thumbnails.push(D);return l}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((U=this.engagementState)==null?void 0:U.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}}});
O0.prototype.onTap=O0.prototype.onTap;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],O0.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],O0.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],O0.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.engagementStateKey"],selector:gl$}),_.T("design:type",Object)],O0.prototype,"engagementState",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],O0.prototype,"thumbnailDetails",null);_.E([_.t("data","engagementState"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],O0.prototype,"isHearted",null);_.E([_.t("data","engagementState"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],O0.prototype,"isEditable",null);
_.E([_.t("data","engagementState"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],O0.prototype,"showCreatorView",null);_.E([_.t("data","engagementState"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],O0.prototype,"showButton",null);_.E([_.t("data","isHearted"),_.T("design:type",String),_.T("design:paramtypes",[])],O0.prototype,"label",null);_.E([_.t("data","isHearted"),_.T("design:type",Object),_.T("design:paramtypes",[])],O0.prototype,"heartHoverText",null);
_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],O0.prototype,"onTap",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],O0);
_.r(O0,"yt-live-chat-creator-heart-view-model",function(){if(gl8===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;b1v===void 0&&(b1v=document.createElement("template"));var n=b1v;U.call(D,n.content.cloneNode(!0),l.content.firstChild);gl8=l}l=gl8;return l},{mode:0});var V6=function(l,D){this.serviceId=new JHy(l,D)};
V6.prototype.toString=function(){return this.serviceId.toString()};var uqm=function(){this.internalMap={}};
_.W=uqm.prototype;_.W.contains=function(l){return Object.prototype.hasOwnProperty.call(this.internalMap,l)};
_.W.get=function(l){if(this.contains(l))return this.internalMap[l]};
_.W.set=function(l,D){this.internalMap[l]=D};
_.W.getKeys=function(){return Object.keys(this.internalMap)};
_.W.remove=function(l){delete this.internalMap[l]};var lt=function(){this.mappings=new uqm;this.errorCallbacks=new Set};
lt.prototype.getModuleId=function(l){return l.serviceId.getModuleId()};
lt.prototype.get=function(l){var D=this.mappings.get(l.toString());return vly(this,D,l)};
lt.prototype.getMultipleAsync=function(){var l=_.EW.apply(0,arguments),D=this,U=l.map(function(b){return D.getModuleId(b)}),n=l.map(function(b){return D.mappings.get(b.toString())}).filter(function(b){return b});
if(n.length===l.length)return _.Ut(n.map(function(b,u){return vly(D,b,l[u])}));
var y=$T().loadMultiple(U);n=_.dx(U.map(function(b){return y[b]}));
var A=document.hidden,C=-1,h=_.RG("get_async_timeout_ms",-1);h>-1&&(C=setTimeout(function(){_.II(new _.rc("Module timeout.",U,A,document.hidden))},h));
return _.Kb(n.then(function(){return l.map(function(b){return vly(D,D.mappings.get(b.toString()),b)})}).thenCatch(function(b){for(var u=_.B(D.errorCallbacks),Q=u.next();!Q.done;Q=u.next())Q=Q.value,Q(b);
throw b;}),function(){clearTimeout(C)})};
lt.prototype.registerService=function(l,D){this.mappings.set(l.toString(),{type:"mapping",value:D});return l};
var vly=function(l,D,U){switch(D.type){case "mapping":return D.value;case "factory":return D=D.value(),l.mappings.set(U.toString(),{type:"mapping",value:D}),D;default:return _.Tv(D)}};
lt.prototype.onLoadError=function(l){var D=this;this.errorCallbacks.add(l);return function(){D.errorCallbacks.delete(l)}};
_.Du=new lt;var QE7=function(){};
_.W=QE7.prototype;
_.W.JSC$14246_getRequest=function(l,D,U){D=D===void 0?{}:D;U=U===void 0?RQh:U;var n=D;if(this.isNavigationCommand()){var y,A=(y=_.M(l==null?void 0:l.commandMetadata,_.W6))==null?void 0:y.url;n=_.uDG(l.clickTrackingParams,!0,!1,A,this.JSC$14246_getClientScreen(n))}else n=_.uDG(l.clickTrackingParams,!1,this.includeCsn);n={context:n};if(y=this.getExtension(l))return this.JSC$14246_buildRequest(n,y,D),y=this.getApiUrl(l),A=Object.assign({},{command:l},this.getRequestConfig(l,D)),n={input:y,requestShell:wV(y),
innerTubeRequest:n,config:A},n.config.authStrategy?n.config.authStrategy.identity=U:n.config.authStrategy={identity:U},(l=this.JSC$14246_getRequestKey(l,D))&&!n.config.requestKey&&(n.config.requestKey=l),n;l=new _.rc("Error: Failed to create Request from Command.",l);_.EU(l)};
_.W.getApiUrl=function(l){var D=_.T3(this.getApiPaths(l)),U;(l=(U=_.M(l.commandMetadata,_.W6))==null?void 0:U.apiUrl)&&(D=l);return rZ$(wy$(D))};
_.W.isNavigationCommand=function(){return!1};
_.W.JSC$14246_getClientScreen=function(){};
_.W.JSC$14246_getRequestKey=function(){};
_.W.getRequestConfig=function(){};
_.QP.Object.defineProperties(QE7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var UA=function(){};
_.Z(UA,QE7);UA.prototype.JSC$14253_getStoreKey=function(){};
UA.prototype.JSC$14246_getRequestKey=function(l,D){D=D===void 0?{}:D;return this.JSC$14253_getStoreKey(l,D)};var nF=function(){};
_.Z(nF,UA);nF.prototype.JSC$14246_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:wV("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
nF.prototype.getApiPaths=function(){return[]};
nF.prototype.getExtension=function(){};
nF.prototype.JSC$14246_buildRequest=function(){};var G0_={},Jph=(G0_.GET_DATASYNC_IDS=df(nF),G0_);var Lxr,qH7,Mir,tik,yk,mog,Rak,eah,Z1_;Lxr="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");qH7=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.jZ=function(l,D,U,n,y,A,C,h,b){this.endpointMap=l;this.networkManager=D;this.authService=U;this.responseProcessorMap=n;this.innertubeResponseStore=y;this.contextProcessors=A;this.asyncContextProcessors=C;this.localInnertubeRouter=h;this.requestSequencer=b;this.inflightRequests=new Map;l.signalEndpointMap||(l.signalEndpointMap={});l.signalEndpointMap=Object.assign({},Jph,l.signalEndpointMap)};
Mir=function(l,D,U,n,y,A,C,h,b){if(_.jZ.instance!==void 0){if(n=_.jZ.instance,l=[l!==n.endpointMap,D!==n.networkManager,U!==n.authService,y!==n.innertubeResponseStore,A!==n.contextProcessors,C!==n.asyncContextProcessors,h!==n.localInnertubeRouter],l.some(function(u){return u}))throw new _.rc("InnerTubeTransportService is already initialized",l);
}else _.jZ.instance=new _.jZ(l,D,U,n,y,A,C,h,b)};
_.oL=function(l,D,U){var n=n===void 0?RQh:n;var y=Rak(l,D);return y?new _.X0(function(A,C){var h,b,u,Q,G;return _.P(function(J){switch(J.nextAddress){case 1:return J.yield(y,2);case 2:h=J.yieldResult;b=h.JSC$14246_getRequest(D,U,n);if(!b){C(new _.rc("Error: Failed to build request for command.",D));J.jumpTo(0);break}dX(b.input);Q=((u=b.requestShell)==null?void 0:u.mode)==="cors"?"cors":void 0;if(l.authService.syncHeaders){G=Z1_(b.config,Q);J.jumpTo(4);break}return J.yield(eah(b.config,Q),5);case 5:G=
J.yieldResult;case 4:A(mog(l,b,G)),_.Kz(J)}})}):_.Le(new _.rc("Error: No request builder found for command.",D))};
tik=function(l,D,U,n){var y=y===void 0?RQh:y;var A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I;return _.P(function(iG){switch(iG.nextAddress){case 1:A=Bw_(D,l.endpointMap);if(!A)throw new _.rc("Error: No streaming request builder found for command",D);C=A.JSC$14246_getRequest(D,U,y);if(!C)throw new _.rc("Failed to build YtRequest for streaming Command",D);if((h=l.localInnertubeRouter)==null||!h.shouldPreferLocalResponse(C.input,C.innerTubeRequest)){iG.jumpTo(2);break}return iG.yield(l.localInnertubeRouter.localInnertubeResponse(C.input,
C.innerTubeRequest),3);case 3:return b=iG.yieldResult,u={},b.playerResponse&&(yk(l,b.playerResponse,C),u.player=b.playerResponse,(Q=n)==null||Q(u,b)),b.watchNextResponse&&(yk(l,b.watchNextResponse,C),u.content=b.watchNextResponse,(G=n)==null||G(u,b)),iG.return(u);case 2:L=((J=C.requestShell)==null?void 0:J.mode)==="cors"?"cors":void 0;if(l.authService.syncHeaders){R=Z1_(C.config,L);iG.jumpTo(4);break}return iG.yield(eah(C.config,L),5);case 5:R=iG.yieldResult;case 4:return d=(S=(a=C.requestShell)==
null?void 0:a.headers)!=null?S:{},C.requestShell=Object.assign({},C.requestShell,{headers:Object.assign({},d,R)}),c=Object.assign({},C.requestShell),N=JSON.stringify(C.innerTubeRequest),C.requestShell.method==="POST"&&(c=Object.assign({},c,{body:N})),z=function(CC,vo){yk(l,vo.playerResponse||vo.watchNextResponse||vo.reelItemWatchResponse||vo.reelWatchSequenceResponse,C);n==null||n(CC,vo);_.q("web_watch_stop_scheduler_on_player_response")&&vo.playerResponse&&tzm()},f={},iG.yield(a__(l.networkManager,
C.input,c,z),6);
case 6:return f=iG.yieldResult,((I=C.config)==null?0:I.responseTick)&&_.ae(C.config.responseTick),iG.return(f)}})};
_.BN=function(l,D,U,n,y){y=y===void 0?{authStrategy:{identity:RQh}}:y;var A=A===void 0?!0:A;var C=function(){};
C=VvC(Yig(U));D.context||(D.context=_.uDG(n,A));return new _.X0(function(h){var b,u,Q,G,J;return _.P(function(L){if(L.nextAddress==1)return b=wy$(U),u=_.oS(b),l.authService.syncHeaders?(Q=Z1_(y,u),L.jumpTo(2)):L.yield(eah(y,u),3);L.nextAddress!=2&&(Q=L.yieldResult);G=rZ$(wy$(U));J={input:G,requestShell:wV(G),innerTubeRequest:D,config:y};h(mog(l,J,Q,C));_.Kz(L)})})};
yk=function(l,D,U){var n;if(D&&!(D==null?0:(n=D.sequenceMetaData)==null?0:n.skipProcessing)&&l.responseProcessorMap){n=_.B(Lxr);for(var y=n.next();!y.done;y=n.next())y=y.value,l.responseProcessorMap[y]&&l.responseProcessorMap[y].handleResponse(D,U)}};
mog=function(l,D,U,n){n=n===void 0?function(){}:n;
var y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I,iG,CC,vo,td,GN,Ms,j3,wl,zN,Z7,Lm,Vg,v5,mk,dy,eW,Qq,Bo,D7,qr,H5;return _.P(function(Mr){switch(Mr.nextAddress){case 1:C=(y=D.config)==null?void 0:(A=y.storeStrategy)==null?void 0:A.storeKey;if(!(C&&l.innertubeResponseStore&&l.innertubeResponseStore.has(C))||((h=D.config)==null?0:(b=h.storeStrategy)==null?0:b.disableCache)){Mr.jumpTo(2);break}return Mr.yield(l.innertubeResponseStore.get(C),3);case 3:if((u=Mr.yieldResult)&&!u.isExpired())return Mr.return(Promise.resolve(_.TM(u)));
case 2:if(!((Q=D)==null?0:(G=Q.innerTubeRequest)==null?0:G.context)){Mr.jumpTo(4);break}J=D.innerTubeRequest.context;if(!(l.asyncContextProcessors&&l.asyncContextProcessors.length>0)){Mr.jumpTo(5);break}L=[];R=_.B(l.asyncContextProcessors);for(a=R.next();!a.done;a=R.next())S=a.value,d=S.processContext(D),d.wrappedPromise_&&L.push(d.wrappedPromise_);if(!(L.length>0)){Mr.jumpTo(5);break}return Mr.yield(Promise.all(L),5);case 5:c=_.B(l.contextProcessors||[]),N=c.next();case 8:if(N.done){Mr.jumpTo(4);
break}z=N.value;return Mr.yield(z.processContext(J),9);case 9:N=c.next();Mr.jumpTo(8);break;case 4:if((f=l.localInnertubeRouter)==null||!f.shouldPreferLocalResponse(D.input,D.innerTubeRequest)){Mr.jumpTo(12);break}return Mr.yield(l.localInnertubeRouter.localInnertubeResponse(D.input,D.innerTubeRequest),13);case 13:return I=Mr.yieldResult,yk(l,I,D),Mr.return(I);case 12:return(vo=(CC=D.config)==null?void 0:CC.requestKey)&&l.inflightRequests.has(vo)?iG=l.inflightRequests.get(vo):(td=JSON.stringify(D.innerTubeRequest),
j3=(Ms=(GN=D.requestShell)==null?void 0:GN.headers)!=null?Ms:{},D.requestShell=Object.assign({},D.requestShell,{headers:Object.assign({},j3,U)}),wl=Object.assign({},D.requestShell),D.requestShell.method==="POST"&&(wl=Object.assign({},wl,{body:td})),((zN=D.config)==null?0:zN.requestTick)&&_.ae(D.config.requestTick),Z7=function(){return l.networkManager.fetch(D.input,wl,D.config)},iG=l.requestSequencer?Xak(l.requestSequencer,D,Z7):Z7(),vo&&l.inflightRequests.set(vo,iG)),Mr.yield(iG,14);
case 14:(Lm=Mr.yieldResult)&&_.q("web_streaming_player")&&Array.isArray(Lm)&&(Lm=Lm[0].playerResponse);if(Lm&&"error"in Lm&&((Vg=Lm)==null?0:(v5=Vg.error)==null?0:v5.details))for(mk=Lm.error.details,dy=_.B(mk),eW=dy.next();!eW.done;eW=dy.next())Qq=eW.value,(Bo=Qq["@type"])&&qH7.indexOf(Bo)>-1&&(delete Qq["@type"],Lm=Qq);vo&&l.inflightRequests.has(vo)&&l.inflightRequests.delete(vo);((D7=D.config)==null?0:D7.responseTick)&&_.ae(D.config.responseTick);if(Lm||(qr=l.localInnertubeRouter)==null||!qr.canProvideFallbackResponse(D.input,
D.innerTubeRequest)){Mr.jumpTo(15);break}return Mr.yield(l.localInnertubeRouter.localFallbackInnertubeResponse(D.input,D.innerTubeRequest),16);case 16:Lm=Mr.yieldResult;case 15:return yk(l,Lm,D),((H5=D.config)==null?0:H5.processorTick)&&_.ae(D.config.processorTick),n(),Mr.return(Lm||void 0)}})};
_.FE=function(l,D){return WIK(D,l.endpointMap)};
Rak=function(l,D){l=CYd(D,l.endpointMap);if(l!==void 0)return Promise.resolve(l)};
eah=function(l,D){var U,n,y,A;return _.P(function(C){if(C.nextAddress==1){y=(U=l)==null?void 0:(n=U.authStrategy)==null?void 0:n.sessionIndex;var h=C.yield;var b=_.Ut(Tu9({sessionIndex:y}));return h.call(C,b,2)}A=C.yieldResult;return C.return(Promise.resolve(Object.assign({},h4g(D),A)))})};
Z1_=function(l,D){var U;l=l==null?void 0:(U=l.authStrategy)==null?void 0:U.sessionIndex;U=Tu9({sessionIndex:l});return Object.assign({},h4g(D),U)};var SHr,k0_,dov,Kxh,cpm,paz,Fx7,ol7,BR,wak,rpm,jEm,zay;SHr=0;k0_=/tone[1-5]/;dov=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Kxh="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
cpm=Number.MAX_SAFE_INTEGER;paz=RegExp("\ufe0f","g");_.AK=function(l){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;l&&_.xok(this,l)};
_.xok=function(l,D){try{_.dc(D,{context:l,onSuccess:function(n,y){Array.isArray(y)?l.load(y):(n=new _.rc("Emoji manager JSON response was not an array!",{response:y}),_.EU(n))},
onError:function(n){n=new _.rc("Failed to retrieve emoji manager initial JSON data!",{url:D,statusCode:_.aG(n).toString()});_.II(n)}})}catch(n){var U=new _.rc("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:D});
_.II(U)}};
_.AK.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.AK.prototype.load=function(l,D){if(D)if(l.length)l=l.concat(D.emojis);else{this.emojis=D.emojis;this.emojiMap=D.emojiMap;this.emojiShortcutMap=D.emojiShortcutMap;this.emojiShortcutCharMap=jEm(D);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=D.emojiRegex;return}this.emojis=[].concat(_.zz(new Set(this.emojis.concat(l))));this.hasInitializedShortcutCharMap=!1;l=Array(this.emojis.length);for(D=0;D<this.emojis.length;D++){var U=this.emojis[D];if(U.emojiId){this.emojiMap[U.emojiId]=U;this.emojiMap[U.emojiId].index=
D;for(var n=0;U.shortcuts&&n<U.shortcuts.length;n++)this.emojiShortcutMap[U.shortcuts[n].toLocaleLowerCase()]=U;l[D]=U.isCustomEmoji&&U.shortcuts?U.shortcuts[0]:U.emojiId}}l.sort(function(y,A){return A.length-y.length});
if(l.length)try{this.emojiRegex=new RegExp(l.join("|").replace("*","\\*"),"gi")}catch(y){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Fx7=function(l,D){D=_.B(D);for(var U=D.next();!U.done;U=D.next()){var n=U.value;if(n.emojiId&&l.emojiMap[n.emojiId]){U=Object.assign({},l.emojiMap[n.emojiId],n);l.emojiMap[n.emojiId]=U;var y=void 0;U.index&&((y=l.emojis[U.index])==null?void 0:y.emojiId)===n.emojiId&&(l.emojis[U.index]=U);n=void 0;if((n=U.shortcuts)==null?0:n.length)for(l.hasInitializedShortcutCharMap=!1,n=_.B(U.shortcuts),y=n.next();!y.done;y=n.next())l.emojiShortcutMap[y.value.toLocaleLowerCase()]=U}}};
ol7=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return n.yield(_.Hq.getInstance(),2);if(n.nextAddress!=3)return(D=n.yieldResult)?n.yield(D.get("ytlc-emoji-pref"),3):n.return();(U=n.yieldResult)&&Fx7(l,Object.keys(U).map(function(y){return{emojiId:y,stickyPrefId:U[y]}}).filter(function(y){return!!y.emojiId&&!!y.stickyPrefId}));
_.Kz(n)})};
_.WR=function(l,D,U){return(l=l.emojiMap[D])&&(!l.isLocked||U!==void 0&&U)?l:void 0};
BR=function(l,D,U){U=_.WR(l,D,U===void 0?!1:U);var n=D.match("\u200d");U&&l.skinTone!==0&&(l=(n==null?void 0:n.length)===1?_.WR(l,D.replace("\u200d",dov[l.skinTone]+"\u200d")):_.WR(l,D+dov[l.skinTone]))&&(U=l);return U};
wak=function(l,D){var U=l.emojiMap[D];return(U==null?0:U.stickyPrefId)?l.emojiMap[U.stickyPrefId]:BR(l,D)};
_.iq=function(l,D){l=l.emojiShortcutMap[D.toLocaleLowerCase()];return!l||l.isLocked?null:l};
rpm=function(l,D,U){return jEm(l,U===void 0?!1:U)[D]||{}};
jEm=function(l,D){D=D===void 0?!1:D;if(!l.hasInitializedShortcutCharMap){l.hasInitializedShortcutCharMap=!0;for(var U=0;U<l.emojis.length;U++){var n=l.emojis[U];if(!(n.isLocked||D&&n.isCustomEmoji&&n.emojiId&&!l.pickerCustomEmojiIds.includes(n.emojiId)))for(var y=0;n.shortcuts&&y<n.shortcuts.length;y++){var A=n.shortcuts[y];A.startsWith(":_")&&n.isCustomEmoji&&(l.emojiShortcutCharMap[":_"]==null&&(l.emojiShortcutCharMap[":_"]=Object.create(null)),l.emojiShortcutCharMap[":_"][A]=n);if(!(A.length<3||
!n.isCustomEmoji&&k0_.test(A))){var C=A.substr(0,3).toLocaleLowerCase();l.emojiShortcutCharMap[C]==null&&(l.emojiShortcutCharMap[C]=Object.create(null));l.emojiShortcutCharMap[C][A]=n}}}}return l.emojiShortcutCharMap};
_.AK.prototype.createEmoji=function(l,D){D=D===void 0?!0:D;var U=document.createElement("img");l.isCustomEmoji||U.classList.add("small-emoji");U.classList.add("emoji");U.classList.add("yt-formatted-string");U.src=l.image?_.IO(l.image.thumbnails,this.emojiSize)||"":"";var n=void 0;l.image&&l.image.accessibility&&l.image.accessibility.accessibilityData&&(n=l.image.accessibility.accessibilityData.label);U.alt=n?n:(l.isCustomEmoji&&l.shortcuts?l.shortcuts[0]:l.emojiId)||"";l.isCustomEmoji&&(U.dataset.emojiId=
l.emojiId);_.iB&&(U.setAttribute("contenteditable","false"),U.setAttribute("unselectable","on"));D&&(l.shortcuts&&l.shortcuts.length&&U.setAttribute("shared-tooltip-text",l.shortcuts[0]),U.id="emoji-"+SHr++);return U};
_.AK.prototype.createDocumentFragment=function(l,D,U,n){D=D===void 0?!1:D;U=U===void 0?!0:U;n=n===void 0?!1:n;l=l.replace(paz,"");for(var y=document.createDocumentFragment(),A=0,C,h=0;(C=this.emojiRegex.exec(l))!=null;){var b=_.WR(this,C[0])||_.iq(this,C[0]);!b||b.isCustomEmoji&&!D||(b=this.createEmoji(b,U),A!==C.index&&y.appendChild(document.createTextNode(l.substring(A,C.index))),y.appendChild(b),A=C.index+C[0].length,h++)}if(!n||h)return y.appendChild(document.createTextNode(l.substr(A))),y};
zay=function(l,D,U){var n,y,A,C,h,b,u,Q,G;return _.P(function(J){if(J.nextAddress==1){if(!D.emojiId||!l.emojiMap[D.emojiId])return J.return();n=Object.assign({},l.emojiMap[D.emojiId],{stickyPrefId:U});l.emojiMap[D.emojiId]=n;D.index&&((y=l.emojis[D.index])==null?void 0:y.emojiId)===D.emojiId&&(l.emojis[D.index]=n);if((A=D.shortcuts)==null?0:A.length)for(l.hasInitializedShortcutCharMap=!1,C=_.B(D.shortcuts),h=C.next();!h.done;h=C.next())b=h.value,l.emojiShortcutMap[b.toLocaleLowerCase()]=n;return J.yield(_.Hq.getInstance(),
2)}if(J.nextAddress!=4)return(u=J.yieldResult)?J.yield(u.get("ytlc-emoji-pref"),4):J.jumpTo(0);G=(Q=J.yieldResult)!=null?Q:{};G[D.emojiId]=U;return J.yield(u.set("ytlc-emoji-pref",G,cpm),0)})};
_.CF=new _.AK;var Ndk;_.hK={};
Ndk={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.q("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:_.q("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 f7(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 l=_.iJ(this.hostElement||this).querySelector("#inline-action-button-container");l&&l.setAttribute("aria-hidden","true");this.menuButton=_.iJ(this.hostElement).querySelector("#menu-button")},
attached:function(){var l=this.menuButton;l&&(l.addEventListener("focusin",_.CY(this,this.onMenuButtonFocus_)),l.addEventListener("focusout",_.CY(this,this.onMenuButtonBlur_)))},
detached:function(){var l=this.menuButton;l&&(l.removeEventListener("focusin",_.CY(this,this.onMenuButtonFocus_)),l.removeEventListener("focusout",_.CY(this,this.onMenuButtonBlur_)))},
identity:_.x9,truthy:function(l){return!!l},
computeTimestampString:function(l){return l?l.timestampText?this.getSimpleString(l.timestampText):this.TIME_FORMATTER.format(new Date(l.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(l){return l},
computeMenuVisible_:function(l,D){return l||D},
computeHasInlineActionButtons:function(l){if(!l)return!1;var D,U;return!((D=l.inlineActionButtons)==null||!D.length)||!((U=l.additionalInlineActionButtons)==null||!U.length)},
createDocumentFragmentFromString:function(l){var D=_.CF.createDocumentFragment.bind(_.CF),U;if((U=this.participantsManager)==null||!U.viewerRegex)return D(l);U=document.createDocumentFragment();for(var n=0,y;(y=this.participantsManager.viewerRegex.exec(l))!=null;){if(y.index>0){var A=":"+y[0]+":";if((_.WR(_.CF,A)||_.iq(_.CF,A))&&l.indexOf(A)===y.index-1)continue}U.appendChild(D(l.substring(n,y.index)));n=document.createElement("span");n.appendChild(D(y[0]));n.classList.add("mention");U.appendChild(n);
n=y.index+y[0].length}U.appendChild(D(l.substring(n)));return U},
createDocumentFragment:function(l){var D=document.createDocumentFragment();if(l.simpleText)return D.appendChild(this.createDocumentFragmentFromString(l.simpleText)),D;if(!l.runs)return D;for(var U=0;U<l.runs.length;U++){var n=l.runs[U];if(n.emoji)D.appendChild(_.CF.createEmoji(n.emoji));else if(n.text)if(n.navigationEndpoint){var y=document.createElement("a");y.classList.add("yt-simple-endpoint");bq3(y,n.navigationEndpoint);_.iJ(y).appendChild(this.createDocumentFragmentFromString(n.text));D.appendChild(y)}else D.appendChild(this.createDocumentFragmentFromString(n.text))}return D},
hasModerationOverlayVisible:function(){var l;return((l=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:l.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(l){l.composedPath().some(function(D){return(D=D instanceof Element?D:null)?D.tagName&&(D.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||D.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.q("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(l)},
colorFromDecimal:function(l){return $IK(l)},
markAsDeleted:function(l,D){this.set("data.deletedStateMessage",l);this.set("data.showOriginalContentMessage",D)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(l){if(this.data.contextMenuEndpoint){var D=_.Jc().resolve(_.GI),U=this.data.contextMenuEndpoint,n;(n=_.jZ.instance)&&_.FE(n,U)?(D=f_H(D,U),n=_.BN(n,{},D)):n=_.$om(D,U);n.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);l&&l.stopPropagation()}},
handleGetContextMenuResponse_:function(l){var D=_.jZ.instance;D&&_.FE(D,{liveChatEndpoint:{}})||(l=l.response);l.liveChatItemContextMenuSupportedRenderers&&l.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(l.liveChatItemContextMenuSupportedRenderers.menuRenderer);l.actions&&_.Vh(this.hostElement,"yt-live-chat-actions",[l.actions])},
handleGetContextMenuError:function(l){if(l instanceof Error||l instanceof Object||l instanceof String)var D=l;_.EU(new _.rc("Error encountered calling GetLiveChatItemContextMenu",D))},
showContextMenu_:function(l){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:l}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.O9(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.O9(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.hK.YtLiveChatItemBehavior=[Ndk,_.la.YtComponentBehavior,_.kk.YtOpenPopupBehavior];_.PR=function(){};var sE5;var Ely;var Td_;var I_7;var bt=function(){var l=_.p.apply(this,arguments)||this;l.active=!1;l.identity=_.x9;return l};
_.Z(bt,_.p);bt.prototype.dataChanged=function(){this.active=!1};
bt.prototype.onClick=function(){_.O9(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
bt.prototype.dataChanged=bt.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],bt.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],bt.prototype,"active",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bt.prototype,"dataChanged",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],bt);
_.r(bt,"yt-live-chat-text-input-field-suggestion",function(){if(I_7===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Td_===void 0&&(Td_=document.createElement("template"));var n=Td_;U.call(D,n.content.cloneNode(!0),l.content.firstChild);I_7=l}l=I_7;return l},{mode:0});_.gS=function(l,D,U){return CustomEvent.call(this,l,{detail:{value:D,path:U}})||this};
_.Z(_.gS,CustomEvent);_.ut=function(){var l=_.p.apply(this,arguments)||this;l.viewerName=null;l.actionMap={"yt-live-chat-actions":"onChatMessage_"};l.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];l.PARTICIPANT_TIME_USEC_=3E8;return l};
_.Z(_.ut,_.p);_.W=_.ut.prototype;_.W.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.W.addParticipant=function(l){var D=_.j_3(this.participants,l,function(n,y){n=n[Object.keys(n)[0]];y=y[Object.keys(y)[0]];n=String(_.Nl(n.authorName)).toLowerCase();y=String(_.Nl(y.authorName)).toLowerCase();return n<y?-1:n==y?0:1}.bind(this));
if(D>=0){var U=this.participants[D];U[Object.keys(U)[0]].timestampUsec&&this.splice("participants",D,1,l)}else this.splice("participants",-D-1,0,l);l=l[Object.keys(l)[0]];D=_.Nl(l.authorName).toLocaleLowerCase();U=D.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(U)||(this.allParticipantsCharMap_[U]={});this.allParticipantsCharMap_[U][D]=l};
_.W.getAuthorsFromPrefix=function(l){return this.allParticipantsCharMap_.hasOwnProperty(l)?this.allParticipantsCharMap_[l]:null};
_.W.computeViewerRegex_=function(l){if(!l)return null;l=l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var D=l.indexOf("@")===0&&_.q("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(D+l.replace(/ /g,"\\s*")+"|^"+l.replace(/ /g,"\\s*")+"$|^"+l.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+l.replace(/ /g,"\\s*")+"$|(?<=\\s)"+l.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.W.checkForStaleParticipants_=function(){var l=this;this.trimOldParticipants_();this.asyncHandle_&&J2c(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.j0(function(){l.checkForStaleParticipants_()},3E4))};
_.W.onChatMessage_=function(l){var D=this,U=Date.now()*1E3;l.forEach(function(n){if(n=_.M(n,K5h)){n=n.item;var y=Object.keys(n)[0];D.SUPPORTED_ITEM_TYPES_.indexOf(y)!=-1&&n[y].timestampUsec>=U-D.PARTICIPANT_TIME_USEC_&&D.addParticipant(n)}},this);
this.checkForStaleParticipants_()};
_.W.trimOldParticipants_=function(){for(var l=Date.now()*1E3,D=this.participants.length-1;D>=0;D--){var U=this.participants[D];U=U[Object.keys(U)[0]];U.timestampUsec&&U.timestampUsec<l-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",D,1)}};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],_.ut.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],_.ut.prototype,"viewerName",void 0);_.E([_.K({computed:"computeViewerRegex_(viewerName)"}),_.T("design:type",Object)],_.ut.prototype,"viewerRegex",void 0);_.E([_.K({value:function(){return[]},
notify:!0}),_.T("design:type",Array)],_.ut.prototype,"participants",void 0);_.E([_.S0({is:"yt-live-chat-participants-manager",noInjection:!0})],_.ut);var H1g=/.*([:@#].*?)$/,vR=/\u00a0/g,YHr=String.fromCharCode(160),O1y={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"},Qk=function(){var l=_.p.apply(this,arguments)||this;l.disabled=!1;l.liveChatRichMessageInput=null;l.messageInput=null;l.isValidWithNoInputText=!1;l.suggestions=[];l.emojiManager=_.CF;l.inputMethodEditorActive=
!1;l.suggestionIndex=-1;l.JSC$14304_lastSuggestionRange=null;return l};
_.Z(Qk,_.p);_.W=Qk.prototype;_.W.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.W.attached=function(){_.lB&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.W.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.W.dataChanged=function(){if(!this.ignoreColorMapping){var l=!1,D={},U;for(U in O1y)this.data&&this.data.hasOwnProperty(U)&&(D[O1y[U]]=this.colorFromDecimal(this.data[U]),l=!0);l&&_.Wg(this.hostElement,D)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.W.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.W.colorFromDecimal=function(l){l=Math.floor(Number(l));return"rgba("+[l>>16&255,l>>8&255,l&255,(l>>24&255)/255].join()+")"};
_.W.preventDrag=function(l){l.dataTransfer&&(l.dataTransfer.dropEffect="none");l.preventDefault()};
_.W.preventResize=function(l){l.returnValue=!1};
_.W.onInputChange=function(){var l=this.characterCount,D=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&D&&D.remove();if(!D&&this.characterCount>this.maxCharacterLimit){var U=window.getSelection();if(U){var n=U.getRangeAt(0);U.removeAllRanges();U.addRange(n)}}if(U=this.getCurrentRange())n=this.calculateTextBeforeRange(U),this.completeEmojisInRange(U,n,!0)||this.updateSuggestions(U,n);n=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(n);
_.O9(this.hostElement,"yt-live-chat-message-input-change",n);D&&this.characterCount===0&&D.remove();U&&U.commonAncestorContainer.parentElement.id==="input"&&U.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>l):U&&!U.collapsed&&U.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(l=this.input.childNodes.length-1;l>=0;l--)this.input.childNodes[l].nodeName==="BR"&&this.input.childNodes[l].remove()};
_.W.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.W.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var l=this.getCurrentRange();l&&l.commonAncestorContainer.parentElement.id==="input"&&l.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.W.mergeOverflowText=function(l){if(l){var D=document.createRange();D.selectNodeContents(l);D=D.extractContents();this.input.insertBefore(D,l)}};
_.W.checkRangeAtEndOfInput=function(){var l=this.getCurrentRange();if(l){var D=_.iJ(this.hostElement).querySelector("#overflow-text"),U=document.createRange();D&&D.previousSibling?D.previousSibling instanceof HTMLImageElement?U.selectNode(D.previousSibling):U.selectNodeContents(D.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?U.selectNode(this.input.lastChild):U.selectNodeContents(this.input.lastChild));U.collapse(!1);return U.isPointInRange(l.startContainer,
l.startOffset)}return!1};
_.W.handleOverflowText=function(l){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var D=_.iJ(this.hostElement).querySelector("#overflow-text"),U=this.getCurrentRange();this.input.normalize();l=this.checkRangeAtEndOfInput()&&l;this.mergeOverflowText(D);for(var n,y=0,A=0,C,h=this.input.childNodes,b=0;b<h.length;b++){var u=h[b];u instanceof Text?(A+=u.textContent.length,A>this.maxCharacterLimit&&(n=u,y=this.maxCharacterLimit+u.textContent.length-A)):u instanceof HTMLImageElement&&
(n=void 0,A=u.dataset.emojiId&&((n=this.data)==null?0:n.emojiCharacterCount)?A+this.data.emojiCharacterCount:A+u.alt.length,n=this.input,y=b);if(A>this.maxCharacterLimit&&n){C=document.createRange();C.collapse(!1);D?(A=this.input.lastChild.previousSibling,A instanceof Text?C.setEnd(this.input.lastChild.previousSibling,A.textContent.length):A instanceof HTMLImageElement&&C.setEnd(this.input,this.input.childNodes.length-1)):C.selectNodeContents(this.input);C.setStart(n,y);break}}C&&(n=!1,U&&(l=C.isPointInRange(U.startContainer,
U.startOffset-1)),D||(D=document.createElement("span"),D.id="overflow-text",D.textContent="",D.setAttribute("contenteditable","true"),_.iJ(_.iJ(this.hostElement).querySelector("#input")).appendChild(D),n=!0),D&&(U=C.extractContents(),D.insertBefore(U,D.firstChild),l&&D.firstChild&&(U=document.createRange(),n?U.setStartAfter(D.lastChild):U.setStartAfter(D.firstChild),U.collapse(!0),D=window.getSelection(),D.removeAllRanges(),D.addRange(U))))}};
_.W.checkForDuplicateSpans=function(){for(var l=0;l<this.input.childNodes.length;l++){var D=this.input.childNodes[l];if(D.nodeName==="SPAN"){var U=document.createRange();U.selectNodeContents(D);U=U.extractContents();this.input.insertBefore(U,D);D.remove()}}this.handleOverflowText(!0)};
_.W.getCurrentRange=function(){var l=window.getSelection();return l&&l.rangeCount?l.getRangeAt(0).cloneRange():null};
_.W.getInputRange=function(){var l=this.getCurrentRange();if(l){for(var D=l.commonAncestorContainer,U=!1,n=_.iJ(this.hostElement).querySelector("#input");D;){if(D===n){U=!0;break}D=D.parentNode}U||(l=null)}l||(l=this.getRangeAtEnd());return l};
_.W.getRangeAtEnd=function(){var l=document.createRange(),D=_.iJ(this.hostElement).querySelector("#input").lastChild;!D||D.nodeName!=="#text"&&D.nodeName!=="SPAN"?(l.selectNodeContents(_.iJ(this.hostElement).querySelector("#input")),l.collapse(!1)):D.nodeName==="#text"?l.setStart(D,D.textContent.length):l.setStart(D,D.childNodes.length);return l};
_.W.getChatParticipantSuggestions=function(l,D,U,n){var y=_.q("live_chat_enable_handles_web_text_input_update");if(D)for(var A in D)if(A.indexOf(l)===0||y&&A.indexOf(U+l)===0){var C=D[A],h=_.Nl(C.authorName);n.push({suggestion:{author:!0,authorType:U,image:C.authorPhoto,alt:h,text:h}});if(n.length>=64)break}};
_.W.getSuggestions=function(l){var D=[],U=l.substring(0,3),n=rpm(_.CF,U,!0);if(n)for(var y in n)if(y.toLocaleLowerCase().indexOf(l)===0){var A=n[y];if(A&&A.emojiId){if(A=wak(_.CF,A.emojiId)){var C=void 0,h=void 0,b=void 0,u=void 0,Q=((C=A.image)==null?0:(h=C.accessibility)==null?0:(b=h.accessibilityData)==null?0:b.label)||A.isCustomEmoji?(u=A.shortcuts)==null?void 0:u[0]:A.emojiId;D.push({suggestion:{emoji:!0,image:A.image,alt:Q,text:y,textToInsertWhenSelected:A.isCustomEmoji?y:Q}})}if(D.length>=
64)break}}if(!this.participantsManager)return null;if(U.indexOf("@")===0||U.indexOf("#")===0)n=U.charAt(0),l=l.substring(1),y=_.q("live_chat_enable_handles_web_text_input_update"),U.indexOf("@")===0&&y&&(y=this.participantsManager.getAuthorsFromPrefix(U.substring(0,2)),this.getChatParticipantSuggestions(l,y,n,D)),U=U.substring(1),U=this.participantsManager.getAuthorsFromPrefix(U),this.getChatParticipantSuggestions(l,U,n,D);return D?D.sort(function(G,J){return J.suggestion.text<G.suggestion.text?-1:
J.suggestion.text===G.suggestion.text?0:1}):null};
_.W.insertSuggestion=function(l){var D=_.q("live_chat_enable_handles_web_text_input_update"),U=l.authorType;D=l.text.indexOf(U)===0&&D?l.text+YHr:U+l.text+YHr;l.emoji?this.insertTextAtRange(this.JSC$14304_lastSuggestionRange,l.textToInsertWhenSelected||""):l.author&&this.insertTextAtRange(this.JSC$14304_lastSuggestionRange,D)};
_.W.updateSuggestionsAtCaret=function(){var l=this.getCurrentRange();l&&this.updateSuggestions(l,this.calculateTextBeforeRange(l))};
_.W.offsetStartOfRangeBy=function(l,D){for(;D>0;)if(l.startOffset-D>=0){l.setStart(l.startContainer,l.startOffset-D);break}else{D=l.startContainer instanceof HTMLImageElement?D-l.startContainer.alt.length:D-l.startOffset;var U=l.startContainer.previousSibling;if(!U){l.setStart(l.startContainer,0);break}if(_.q("live_chat_require_space_for_autocomplete_emoji")){var n=void 0,y=void 0;l.setStart(U,((n=U)==null?void 0:(y=n.textContent)==null?void 0:y.length)||0)}else l.setStart(U,U.childNodes.length||
0)}};
_.W.updateSuggestions=function(l,D){var U=this;this.JSC$14304_lastSuggestionRange&&(this.JSC$14304_lastSuggestionRange.detach(),this.JSC$14304_lastSuggestionRange=null);if((D=H1g.exec(D))&&D.length&&(D=D[D.length-1].toLocaleLowerCase(),D.length>2&&(this.offsetStartOfRangeBy(l,D.length),this.JSC$14304_lastSuggestionRange=l,(l=this.getSuggestions(D))&&l.length))){this.suggestions=l;_.u6(this,function(){_.iJ(U.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(l.length-1);return}this.dropdown.opened=!1};
_.W.completeEmojisInRange=function(l,D,U){var n=D.replace(/[\s\xa0]+$/,"");D=D.length-n.length;n=n.split(" ");n=n[n.length-1].trim().toLocaleLowerCase();var y=n.lastIndexOf(":");if(U&&!D&&y!==n.length-1)return!1;y!==-1&&(U=n.lastIndexOf(":",y-1),U!==-1&&(n=n.substring(U)));if((U=_.iq(_.CF,n))&&U.emojiId){U=wak(_.CF,U.emojiId)||null;this.offsetStartOfRangeBy(l,n.length+D);var A,C,h,b;n=(((A=U)==null?0:A.isCustomEmoji)?(C=U)==null?void 0:(h=C.shortcuts)==null?void 0:h[0]:(b=U)==null?void 0:b.emojiId)||
"";D&&(n+=YHr);this.insertTextAtRange(l,n);this.dropdown.opened=!1;return!0}return!1};
_.W.onSuggestion=function(l){this.insertSuggestion(l.detail);this.dropdown.opened=!1};
_.W.onKeyPress=function(l){l.keyCode===13&&(l.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.O9(this.hostElement,"yt-live-chat-send-message"))};
_.W.completeEmojis=function(){var l=document.createRange(),D=_.iJ(this.hostElement).querySelector("#input").lastChild;D?l.setStart(D,D.childNodes.length):(l.selectNodeContents(_.iJ(this.hostElement).querySelector("#input")),l.collapse(!1));this.completeEmojisInRange(l,this.calculateTextBeforeRange(l),_.q("live_chat_require_space_for_autocomplete_emoji"))};
_.W.maybePreventTextFormatting=function(l){!_.yJ||!l.ctrlKey&&!l.metaKey||l.keyCode!==66&&l.keyCode!==73||(l.stopImmediatePropagation(),l.preventDefault())};
_.W.onKeyDown=function(l){this.maybePreventTextFormatting(l);if(this.dropdown.opened)switch(l.keyCode){case 27:this.dropdown.opened=!1;l.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;l.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);l.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),l.preventDefault()}};
_.W.onKeyUp=function(l){switch(l.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.iB)this.onInputChange()};
_.W.changeSuggestionIndex=function(l){if(this.dropdown.opened){var D=_.iJ(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<D.children.length&&(D.children[this.suggestionIndex].active=!1);var U=this.suggestions.length;this.suggestionIndex=(l+U)%U;l=D.children[this.suggestionIndex];l.active=!0;D.scrollTop=l.offsetTop}};
_.W.onInputPaste=function(l){l.preventDefault();(l=l.clipboardData)&&l.types&&(l=l.getData("text/plain")||"",l=l.replace(/\n/g,""),this.insertText(l));(l=this.getCurrentRange())&&l.commonAncestorContainer.parentElement.id==="input"&&l.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.W.onFocus=function(){this._setFocused(!0)};
_.W.onBlur=function(){this._setFocused(!1)};
_.W.insertText=function(l){this.insertTextAtRange(this.getInputRange(),l)};
_.W.insertTextAtRange=function(l,D){if(l&&(l.collapsed||l.deleteContents(),D=_.CF.createDocumentFragment(D,!0,!1))){for(var U=_.B((D==null?void 0:D.childNodes)||[]),n=U.next();!n.done;n=U.next()){n=n.value;var y=void 0,A=void 0,C=void 0,h=void 0,b=void 0;(C=(y=window)==null?void 0:(A=y.ShadyCSS)==null?void 0:A.ScopingShim)==null||(b=(h=C).scopeNode)==null||b.call(h,n,this.hostElement.localName)}U=D.lastChild;l.insertNode(D);this.focused||this.input.focus();if(this.focused){l=l.cloneRange();l.selectNodeContents(U);
l.collapse(!1);if(D=window.getSelection())D.removeAllRanges(),D.addRange(l);l.commonAncestorContainer.parentElement.id==="input"&&l.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}l=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(l);_.O9(this.hostElement,"yt-live-chat-message-input-change",l)}};
_.W.setLiveChatRichMessageInput=function(l){_.iJ(_.iJ(this.hostElement).querySelector("#input")).textContent="";if(l&&l.textSegments){for(var D=0;D<l.textSegments.length;D++){var U=l.textSegments[D];U.text?_.iJ(_.iJ(this.hostElement).querySelector("#input")).appendChild(_.CF.createDocumentFragment(U.text,!0,!1)):U.emojiId&&(U=_.WR(_.CF,U.emojiId))&&_.iJ(_.iJ(this.hostElement).querySelector("#input")).appendChild(_.CF.createEmoji(U,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.W.setText=function(l){this.setLiveChatRichMessageInput(l?{textSegments:[{text:l}]}:null)};
_.W.calculateTextBeforeRange=function(l){var D="",U=l.startContainer;if(U&&U instanceof Text){var n;D=((n=U.textContent)==null?void 0:n.substring(0,l.startOffset))||"";U=U.previousSibling}for(;U&&U instanceof Text;)D=U.textContent+D,U=U.previousSibling;return D.replace(vR," ")};
_.W.calculateLiveChatRichMessageInput=function(){for(var l=[],D="",U=_.iJ(_.iJ(this.hostElement).querySelector("#input")).childNodes,n=0;n<U.length;n++){var y=U[n];y instanceof Text?D+=y.textContent:y instanceof HTMLImageElement&&(y.dataset.emojiId?(D&&(l.push({text:D.replace(vR," ")}),D=""),l.push({emojiId:y.dataset.emojiId})):D+=y.alt)}D&&l.push({text:D.replace(vR," ")});if(U=_.iJ(this.hostElement).querySelector("#overflow-text")){D="";U=U.childNodes;for(n=0;n<U.length;n++)y=U[n],y instanceof Text?
D+=y.textContent:y instanceof HTMLImageElement&&(y.dataset.emojiId?(D&&(l.push({text:D.replace(vR," ")}),D=""),l.push({emojiId:y.dataset.emojiId})):D+=y.alt);D&&l.push({text:D.replace(vR," ")})}return{textSegments:l}};
_.W.computeCharacterCount=function(l){if(!l||!l.textSegments)return 0;for(var D=0,U=0;U<l.textSegments.length;U++){var n=l.textSegments[U];if(n.text)D+=n.text.length;else if(n.emojiId){var y=void 0;if((y=this.data)==null?0:y.emojiCharacterCount)D+=this.data.emojiCharacterCount;else{var A=y=void 0,C=void 0;D+=((A=_.WR(_.CF,(y=n)==null?void 0:y.emojiId))==null?void 0:(C=A.shortcuts)==null?void 0:C[0].length)||0}}}return D};
_.W.characterCountChanged=function(){_.O9(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.W.focusedChanged=function(){this.hostElement.dispatchEvent(new _.gS("focused-changed",this.focused))};
_.W.focus=function(){this.setFocus(!1)};
_.W.focusAtEnd=function(){this.setFocus(!0)};
_.W.setFocus=function(l){l=l?this.getRangeAtEnd():this.getInputRange();_.iJ(this.hostElement).querySelector("#input").focus();var D=window.getSelection();D&&(D.removeAllRanges(),D.addRange(l))};
_.W.insertEmoji=function(l){var D,U=((l==null?0:l.isCustomEmoji)?(D=l.shortcuts)==null?void 0:D[0]:l==null?void 0:l.emojiId)||"";this.insertText(U)};
_.W.computeText=function(l){if(!l||!l.textSegments)return"";for(var D="",U=0;U<l.textSegments.length;U++){var n=l.textSegments[U];if(n.text)D+=n.text;else if(n.emojiId){var y=void 0,A=void 0,C=void 0;D+=((A=_.WR(_.CF,(y=n)==null?void 0:y.emojiId))==null?void 0:(C=A.shortcuts)==null?void 0:C[0])||""}}return D};
_.W.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.QP.Object.defineProperties(Qk.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.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}}});
Qk.prototype.focusedChanged=Qk.prototype.focusedChanged;Qk.prototype.characterCountChanged=Qk.prototype.characterCountChanged;Qk.prototype.onSuggestion=Qk.prototype.onSuggestion;Qk.prototype.onMessageSet=Qk.prototype.onMessageSet;Qk.prototype.dataChanged=Qk.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],Qk.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Qk.prototype,"disabled",void 0);_.E([_.t("disabled"),_.T("design:type",Number),_.T("design:paramtypes",[])],Qk.prototype,"inputTabIndex",null);_.E([_.t("data.maxCharacterLimit"),_.K({readOnly:!0,notify:!0}),_.T("design:type",Number),_.T("design:paramtypes",[])],Qk.prototype,"maxCharacterLimit",null);
_.E([_.t("liveChatRichMessageInput"),_.K({readOnly:!0,notify:!0}),_.T("design:type",Number),_.T("design:paramtypes",[])],Qk.prototype,"characterCount",null);_.E([_.t("maxCharacterLimit, characterCount"),_.K({readOnly:!0,notify:!0}),_.T("design:type",Number),_.T("design:paramtypes",[])],Qk.prototype,"remainingCharacterCount",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Qk.prototype,"isChatMessageInput",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Qk.prototype,"inputExpanded",void 0);_.E([_.K({readOnly:!0,notify:!0}),_.T("design:type",Object)],Qk.prototype,"liveChatRichMessageInput",void 0);_.E([_.K(),_.T("design:type",Object)],Qk.prototype,"messageInput",void 0);_.E([_.K(),_.T("design:type",Boolean)],Qk.prototype,"ignoreColorMapping",void 0);_.E([_.t("characterCount"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Qk.prototype,"hasText",null);
_.E([_.K(),_.T("design:type",Object)],Qk.prototype,"isValidWithNoInputText",void 0);_.E([_.t("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.K(),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Qk.prototype,"isInputValid",null);_.E([_.K({readOnly:!0,value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],Qk.prototype,"focused",void 0);_.E([_.K(),_.T("design:type",Array)],Qk.prototype,"suggestions",void 0);
_.E([_.K(),_.T("design:type",_.AK)],Qk.prototype,"emojiManager",void 0);_.E([_.K(),_.T("design:type",_.ut)],Qk.prototype,"participantsManager",void 0);_.E([_.K(),_.T("design:type",Boolean)],Qk.prototype,"noUnderline",void 0);_.E([_.K(),_.T("design:type",Object)],Qk.prototype,"inputMethodEditorActive",void 0);_.E([_.gP("#dropdown"),_.T("design:type",Object)],Qk.prototype,"dropdown",void 0);_.E([_.gP("#input"),_.T("design:type",HTMLElement)],Qk.prototype,"input",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Qk.prototype,"dataChanged",null);_.E([_.Pg("messageInput"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Qk.prototype,"onMessageSet",null);_.E([_.hj("yt-live-chat-select-suggestion"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Qk.prototype,"onSuggestion",null);
_.E([_.Pg("characterCount"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Qk.prototype,"characterCountChanged",null);_.E([_.Pg("focused"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Qk.prototype,"focusedChanged",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Qk);
_.Viv=_.r(Qk,"yt-live-chat-text-input-field-renderer",function(){if(Ely===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;sE5===void 0&&(sE5=document.createElement("template"));var n=sE5;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Ely=l}l=Ely;return l},{mode:0});var GW=function(){var l=_.p.apply(this,arguments)||this;l.buttonOverrides={style:"overlay",type:"filled"};l.allowAnimations=!1;l.modern=_.q("web_button_rework_with_live");l.noPadding=!1;return l};
_.Z(GW,_.p);_.W=GW.prototype;_.W.shouldSupportInlineActionButtons=function(){return!0};
_.W.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"}}}}};
_.W.ready=function(){var l=document.querySelector("yt-live-chat-app");l&&l.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.W.attached=function(){this.allowAnimations=!1};
_.W.dataChanged=function(){if(this.data){var l={"--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)};_.Wg(this.hostElement,l);this.allowAnimations=!0}};
_.W.messageChanged=function(){var l,D=(l=this.data)==null?void 0:l.message;l=_.iJ(_.iJ(this.hostElement).querySelector("#message"));l.textContent="";D&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D))};
_.W.computeShowOnlyHeader=function(l,D){return!l||l.pdgLikeButton||l.replyButton||l.buyFlowButton?!1:this.isEmpty(l,D)&&!l.footer};
_.W.computeShowFooterDivider=function(l,D,U){return l?!!l.footer&&!this.isEmpty(l,D)&&!U:!1};
_.W.computeIsUserEditable=function(l){return!!l.inputField};
_.W.computeHasHeartButton=function(l){return(l==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(l==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(l==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.W.computeNoveltyImage=function(l){if(l.headerOverlayImage&&l.headerOverlayImage.thumbnails.length){var D=l.headerOverlayImage.thumbnails[0],U,n;if((U=l.pdgPurchasedNoveltyLoggingDirectives)==null?0:(n=U.loggingDirectives)==null?0:n.trackingParams){var y,A;vll((y=l.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(A=y.loggingDirectives)==null?void 0:A.trackingParams)}return D.width||0}return 0};
_.W.computeAuthorPhotoSize=function(l){return(l==null?0:l.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.W.inputFocus=function(){var l=_.iJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");l&&l.focus()};
_.W.inputInsertEmoji=function(l){var D=_.iJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");D&&D.insertEmoji(l)};
_.W.inputMessage=function(){var l=_.iJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),D;return l&&((D=this.data)==null?0:D.inputField)?(l.completeEmojis(),_.cK(l.liveChatRichMessageInput)):null};
_.W.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.W.isEmpty=function(l,D){return l?l.empty||!(l.message||l.inputField||D):!0};
_.W.onLowerBuyButtonClick=function(){var l,D=_.M((l=this.data)==null?void 0:l.buyButton,_.yn);D&&D.trackingParams&&!sKd(D.command)&&(l=_.v9(D.trackingParams))&&(D=_.t6())&&_.zo(D,l)};
_.W.shouldSupportWholeItemClick=function(){return!0};
_.QP.Object.defineProperties(GW.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
GW.prototype.isDeletedChanged=GW.prototype.isDeletedChanged;GW.prototype.messageChanged=GW.prototype.messageChanged;GW.prototype.dataChanged=GW.prototype.dataChanged;_.E([_.m(Zv8.YtPdgLiveChatItemBehavior),_.T("design:type",Object)],GW.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],GW.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],GW.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],GW.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:gl$}),_.T("design:type",Object)],GW.prototype,"engagementState",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.T("design:type",Boolean)],GW.prototype,"isUserEditable",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.T("design:type",Boolean)],GW.prototype,"hasHeartButton",void 0);_.E([_.K({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.T("design:type",Boolean)],GW.prototype,"showOnlyHeader",void 0);
_.E([_.K({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.T("design:type",Boolean)],GW.prototype,"showFooterDivider",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Object)],GW.prototype,"allowAnimations",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],GW.prototype,"dashboardMoneyFeed",void 0);_.E([_.K({computed:"computeNoveltyImage(data)"}),_.T("design:type",Number)],GW.prototype,"noveltyWidth",void 0);
_.E([_.K({computed:"computeAuthorPhotoSize(data)"}),_.T("design:type",Number)],GW.prototype,"authorPhotoSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],GW.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],GW.prototype,"noPadding",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],GW.prototype,"dataChanged",null);
_.E([_.Pg("data.message"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],GW.prototype,"messageChanged",null);_.E([_.t("data","dashboardMoneyFeed"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],GW.prototype,"hideLowerBumper",null);_.E([_.Pg("isDeleted"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],GW.prototype,"isDeletedChanged",null);
_.E([_.x({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],GW);
_.r(GW,"yt-live-chat-paid-message-renderer",function(){if(nl7===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Uor===void 0&&(Uor=document.createElement("template"));var n=Uor;U.call(D,n.content.cloneNode(!0),l.content.firstChild);nl7=l}l=nl7;return l},{mode:0});var ioz;var lH8;var JK=function(){var l=_.vg.apply(this,arguments)||this;l._noAccessors=!0;return l};
_.Z(JK,_.vg);JK.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.H3("openPopupConfig")};
_.E([_.m(_.kk.YtOpenPopupBehavior),_.T("design:type",Object)],JK.prototype,"ytOpenPopupBehavior",void 0);_.E([_.Qj()],JK);_.LF=[_.kk.YtOpenPopupBehavior,JK.prototype];var DX1;var tX3=[_.Pk,CKh,_.lc,_.bV,_.za,_.dTH,_.vk,_.L45,_.mC,_.f0,_.oW1];_.q("web_continuation_response_processing")&&tX3.push(_.ko);var cmN=new _.A7("RESPONSE_RECEIVED_COMMANDS"),aH3=new _.A7("RESPONSE_RECEIVED_COMMANDS");var LI_="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Jl_=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],GU9=["GET_UNSEEN_NOTIFICATION_COUNT"];var q2=function(){var l=_.vg.apply(this,arguments)||this;l._noAccessors=!0;l.serviceEndpointHandlers=[];return l};
_.Z(q2,_.vg);q2.prototype.created=function(){var l=this;this.endpointHandlerActionMap={"yt-service-request":function(D,U,n,y){var A;return QsB(l.hostElement,D,U,n,y,l.serviceEndpointHandlers,(A=l.onEntitiesUpdated)==null?void 0:A.bind(l))}}};
q2.prototype.attached=function(){_.Wd(_.AH.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
q2.prototype.detached=function(){_.Bd(_.AH.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.E([_.Qj()],q2);_.UX5=[q2.prototype];var nVy,yly=function(){return nVy!==void 0?nVy:nVy=document.createElement("template")};
document.head.appendChild(yly().content);var Al5;var WIz=document.head,Bwg=WIz.appendChild,CYy;if(Al5===void 0){var h4_=document.createElement("template");_.e(h4_,"\x3c!--css-build:shady--\x3e");h4_.content.insertBefore(yly().content.cloneNode(!0),h4_.content.firstChild);Al5=h4_}CYy=Al5;Bwg.call(WIz,CYy.content);var PYh,bo8=function(){return PYh!==void 0?PYh:PYh=document.createElement("template")};
document.head.appendChild(bo8().content);var gV8;var u1y=document.head,vV1=u1y.appendChild,Qsk;if(gV8===void 0){var GU7=document.createElement("template");_.e(GU7,"\x3c!--css-build:shady--\x3e");GU7.content.insertBefore(bo8().content.cloneNode(!0),GU7.content.firstChild);gV8=GU7}Qsk=gV8;vV1.call(u1y,Qsk.content);var Jlg;_.RL("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.RL("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Jlg=_.q("web_button_rework")&&_.il("BUTTON_REWORK")||_.q("web_button_rework_with_live");_.M2=function(){var l=_.p.apply(this,arguments)||this;l.isPressed=!1;l.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return l};
_.Z(_.M2,_.p);_.W=_.M2.prototype;_.W.created=function(){this.showTooltips=!0};
_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.onHintIdChanged=function(){var l=this,D,U,n=(D=this.ytButtonBehavior.data)==null?void 0:(U=D.hint)==null?void 0:U.hintRenderer;if(n&&n.hintId){D=_.iu(this.hostElement,"yt-get-opened-popups-action");D=(D&&D.length===1?D[0]:[]).length>0;var y=null;n.hintId!=="sponsor-pre-purchase"||D?n.hintId.startsWith("sponsor-post-purchase")&&!D?y=B8r("membership-manage"):n.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!D&&(y=B8r("membership-freebie-join")):y=B8r("membership-join");y&&_.Tn.addLowPriorityJob(function(){for(var A=
_.B(y),C=A.next();!C.done;C=A.next())l.ytComponentBehavior.resolveCommand(C.value)})}};
_.W.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.W.onYtNavigate=function(l){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(l.detail.endpoint);D&&(l.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(D))};
_.W.onYtServiceRequestSent=function(l,D){this.handleServiceRequestActions(D);_.O9(this.hostElement,"yt-service-request-sent-button-renderer")};
_.W.onServiceRequestCompleted=function(l,D){this.handleServiceRequestActions(D);_.O9(this.hostElement,"yt-service-request-completed-button-renderer")};
_.W.updateButton=function(l){var D;if(l=(D=_.M(l,iiH))==null?void 0:D.updatedButton)this.ytButtonBehavior.data=_.M(l,_.yn)};
_.W.handleUpdateButtonAction=function(l){var D=this.ytButtonBehavior.data;D.targetId&&l.updateButtonAction.targetId&&D.targetId===l.updateButtonAction.targetId&&this.updateButton(l)};
_.W.handleServiceRequestActions=function(l){if(l=l.actions)for(var D=0;D<l.length;D++)this.updateButton(l[D])};
_.QP.Object.defineProperties(_.M2,{template:{configurable:!0,enumerable:!0,get:function(){if(DX1===void 0){var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);DX1=l}l=DX1;return l}}});
_.M2.prototype.onServiceRequestCompleted=_.M2.prototype.onServiceRequestCompleted;_.M2.prototype.onYtServiceRequestSent=_.M2.prototype.onYtServiceRequestSent;_.M2.prototype.onYtNavigate=_.M2.prototype.onYtNavigate;_.M2.prototype.onPressedStateChanged=_.M2.prototype.onPressedStateChanged;_.M2.prototype.onHintIdChanged=_.M2.prototype.onHintIdChanged;_.E([_.K(),_.T("design:type",Object)],_.M2.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],_.M2.prototype,"isPressed",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],_.M2.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.ZHv.YtButtonBehavior),_.T("design:type",Object)],_.M2.prototype,"ytButtonBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],_.M2.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],_.M2.prototype,"ytComponentBehavior",void 0);
_.E([_.m(w9.YtRenderButtonBehavior),_.T("design:type",Object)],_.M2.prototype,"ytRenderButtonBehavior",void 0);_.E([_.Pg("data.hint.hintRenderer"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],_.M2.prototype,"onHintIdChanged",null);_.E([_.Pg("isPressed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],_.M2.prototype,"onPressedStateChanged",null);
_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],_.M2.prototype,"onYtNavigate",null);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],_.M2.prototype,"onYtServiceRequestSent",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],_.M2.prototype,"onServiceRequestCompleted",null);_.E([_.x({is:"ytd-button-renderer",disableElementRegistration:Jlg})],_.M2);var Ro=function(){var l=_.p.apply(this,arguments)||this;l.modern=_.q("web_button_rework_with_live");l.buttonOverrides={style:"overlay",type:"filled"};return l};
_.Z(Ro,_.p);_.W=Ro.prototype;_.W.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"}}}}};
_.W.ready=function(){var l=document.querySelector("yt-live-chat-app");l&&l.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.W.dataChanged=function(){if(this.data&&this.data.sticker){var l=_.IO(this.data.sticker.thumbnails,this.stickerWidth);l||_.clg(l).thenCatch(function(){_.II(new _.rc("Failed to load Super Sticker with url",l))})}};
_.W.computeAuthorPhotoSize=function(l){return(l==null?0:l.isV2Style)?32:40};
_.W.computeIsV2Style=function(l){return(l==null?0:l.isV2Style)?!0:!1};
_.W.onStickerLoaded=function(l){var D,U,n;(D=_.NN(l))==null||(U=D.parentNode)==null||(n=U.classList)==null||n.add("sticker-loaded")};
_.W.computeNoveltyImageWidth=function(l){var D,U;if(l==null?0:(D=l.headerOverlayImage)==null?0:(U=D.thumbnails)==null?0:U.length){D=l.headerOverlayImage.thumbnails[0];var n,y;if((n=l.pdgPurchasedNoveltyLoggingDirectives)==null?0:(y=n.loggingDirectives)==null?0:y.trackingParams){var A,C;vll((A=l.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(C=A.loggingDirectives)==null?void 0:C.trackingParams)}return D.width||0}return 0};
_.W.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.W.updateStickerStyles=function(){var l=this.data;l&&(l={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(l.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(l.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(l.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(l.authorNameTextColor)},
_.Wg(this.hostElement,l))};
_.W.onBuyButtonClick=function(){var l,D=_.M((l=this.data)==null?void 0:l.buyButton,_.yn);D&&!sKd(D.command)&&this.ytRendererBehavior.logExplicitClick(D)};
_.W.shouldSupportWholeItemClick=function(){return!0};
_.QP.Object.defineProperties(Ro.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 l;return((l=this.data)==null?0:l.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Ro.prototype.updateStickerStyles=Ro.prototype.updateStickerStyles;Ro.prototype.isDeletedChanged=Ro.prototype.isDeletedChanged;Ro.prototype.onStickerLoaded=Ro.prototype.onStickerLoaded;Ro.prototype.dataChanged=Ro.prototype.dataChanged;_.E([_.m(Zv8.YtPdgLiveChatItemBehavior),_.T("design:type",Object)],Ro.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Ro.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],Ro.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ro.prototype,"data",void 0);
_.E([_.K({computed:"computeAuthorPhotoSize(data)"}),_.T("design:type",Number)],Ro.prototype,"authorPhotoSize",void 0);_.E([_.K(),_.T("design:type",Boolean)],Ro.prototype,"isDeleted",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Ro.prototype,"dashboardMoneyFeed",void 0);_.E([_.K({computed:"computeNoveltyImageWidth(data)"}),_.T("design:type",Number)],Ro.prototype,"noveltyWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ro.prototype,"modern",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.T("design:type",Boolean)],Ro.prototype,"isV2Style",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ro.prototype,"dataChanged",null);_.E([_.hj("yt-img-shadow-loaded"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Ro.prototype,"onStickerLoaded",null);
_.E([_.t("data"),_.T("design:type",Number),_.T("design:paramtypes",[])],Ro.prototype,"stickerWidth",null);_.E([_.t("data"),_.T("design:type",Number),_.T("design:paramtypes",[])],Ro.prototype,"stickerHeight",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ro.prototype,"hasHeartButton",null);_.E([_.t("data","dashboardMoneyFeed"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ro.prototype,"hideLowerBumper",null);
_.E([_.Pg("isDeleted"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ro.prototype,"isDeletedChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ro.prototype,"updateStickerStyles",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Ro);
_.r(Ro,"yt-live-chat-paid-sticker-renderer",function(){if(lH8===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;ioz===void 0&&(ioz=document.createElement("template"));var n=ioz;U.call(D,n.content.cloneNode(!0),l.content.firstChild);lH8=l}l=lH8;return l},{mode:0});var LIg;var qOr;var MXk,R4r=function(){return MXk!==void 0?MXk:MXk=document.createElement("template")};
document.head.appendChild(R4r().content);var Zo8,e47=function(){return Zo8!==void 0?Zo8:Zo8=document.createElement("template")};
document.head.appendChild(e47().content);var mXv;var aHh,tXh=function(){return aHh!==void 0?aHh:aHh=document.createElement("template")};
document.head.appendChild(tXh().content);var XX8;var SO1=document.head,kUy=SO1.appendChild,dXz;if(XX8===void 0){var KI7=document.createElement("template");_.e(KI7,"\x3c!--css-build:shady--\x3e");KI7.content.insertBefore(tXh().content.cloneNode(!0),KI7.content.firstChild);XX8=KI7}dXz=XX8;kUy.call(SO1,dXz.content);var cl_=document.head,pXy=cl_.appendChild,xXg;if(mXv===void 0){var Zu=document.createElement("template");_.e(Zu,"\x3c!--css-build:shady--\x3e");Zu.content.insertBefore(e47().content.cloneNode(!0),Zu.content.firstChild);Zu.content.insertBefore(R4r().content.cloneNode(!0),Zu.content.firstChild);mXv=Zu}xXg=mXv;pXy.call(cl_,xXg.content);var eP=function(){var l=_.vg.apply(this,arguments)||this;l.focusedIndex=0;l.verticalOffset=0;l.verticalAlign="top";l.dynamicAlign=!0;return l};
_.Z(eP,_.vg);eP.prototype.emojiUrl=function(l){l=_.WR(this.emojiManager,l);if(!l)return"";var D;l=(D=l.image)==null?void 0:D.thumbnails;return _.IO(l,24)||""};
var js5=function(l){var D;l.emojiVariants&&(D=l.data)!=null&&D.target&&_.u6(l,function(){l.set("verticalOffset",-1*l.hostElement.clientHeight);var U=_.iJ(l.hostElement).querySelector("img");U&&U.focus()})};
_.W=eP.prototype;_.W.onKeyboardEnter=function(){};
_.W.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.W.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.W.onKeyDown=function(l){switch(l.keyCode){case 13:this.onKeyboardEnter();l.preventDefault();break;case 40:this.changeFocus(1);l.preventDefault();break;case 38:this.changeFocus(-1);l.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.W.onYtEmojiSelect=function(l){var D=this,U,n,y,A,C,h,b,u;return _.P(function(Q){if(Q.nextAddress==1)return n=(U=D.data)==null?void 0:U.emoji,C=((y=n)==null?void 0:y.stickyPrefId)||((A=n)==null?void 0:A.emojiId),b=(h=l.detail)==null?void 0:h.emojiId,C&&b&&C!==b?Q.yield((u=D.emojiManager)==null?void 0:zay(u,n,b),2):Q.return();_.Vh(D.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[n,b]);_.Kz(Q)})};
_.W.changeFocus=function(l){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+l+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(l=_.iJ(this.hostElement).querySelector("#variants"))&&l.children[this.focusedIndex].focus())};
_.QP.Object.defineProperties(eP.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
eP.prototype.onYtEmojiSelect=eP.prototype.onYtEmojiSelect;eP.prototype.onKeyDown=eP.prototype.onKeyDown;eP.prototype.onEmojiVariantsChanged=eP.prototype.onEmojiVariantsChanged;eP.prototype.onVerticalOffsetOrPositionTargetChanged=eP.prototype.onVerticalOffsetOrPositionTargetChanged;_.E([_.m(_.AM),_.T("design:type",Object)],eP.prototype,"ironOverlayBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],eP.prototype,"data",void 0);_.E([_.K(),_.T("design:type",_.AK)],eP.prototype,"emojiManager",void 0);
_.E([_.K(),_.T("design:type",Object)],eP.prototype,"emojiVariants",void 0);_.E([_.K(),_.T("design:type",Object)],eP.prototype,"focusedIndex",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],eP.prototype,"positionTarget",null);_.E([_.K({reflectToAttribute:!0}),_.t("verticalOffset","data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],eP.prototype,"isPositioned",null);_.E([_.K(),_.T("design:type",Object)],eP.prototype,"verticalOffset",void 0);
_.E([_.K(),_.T("design:type",Object)],eP.prototype,"verticalAlign",void 0);_.E([_.K(),_.T("design:type",Object)],eP.prototype,"dynamicAlign",void 0);_.E([_.Pg("verticalOffset","positionTarget"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],eP.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.E([_.Pg("emojiVariants"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],eP.prototype,"onEmojiVariantsChanged",null);
_.E([_.hj("keydown"),_.T("design:type",Function),_.T("design:paramtypes",[KeyboardEvent]),_.T("design:returntype")],eP.prototype,"onKeyDown",null);_.E([_.hj("yt-emoji-select"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype",Promise)],eP.prototype,"onYtEmojiSelect",null);_.E([_.Qj()],eP);var FI7=[eP.prototype];var oV1;var wXz;var rl1=/medium-light|medium-dark|light|medium|dark/,z47=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,fHv=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),m4=function(){var l=_.p.apply(this,arguments)||this;l.userSelection={left:null,right:null};l.scrollAction="lock";l.isEmojiDraftInProgress=!1;return l};
_.Z(m4,_.p);_.W=m4.prototype;_.W.onClick=function(l){l=_.NN(l);l instanceof HTMLImageElement&&this.selectOrUpdateEmoji(l)};
_.W.selectOrUpdateEmoji=function(l){var D=l.getAttribute("selection");D&&(D==="default"?_.O9(this.hostElement,"yt-emoji-select",_.WR(this.emojiManager,l.id)):D==="left"?this.userSelection=Object.assign({},this.userSelection,{left:l.src}):D==="right"?this.userSelection=Object.assign({},this.userSelection,{right:l.src}):D==="user"&&this.userSelection.left&&this.userSelection.right&&_.O9(this.hostElement,"yt-emoji-select",_.WR(this.emojiManager,l.id)))};
_.W.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.W.onMultiSelectorThumbnailRowChanged=function(){var l,D,U;((l=this.data)==null?0:(D=l.emoji)==null?0:(U=D.multiSelectorThumbnailRow)==null?0:U.length)&&this.openSelector()};
_.W.getThumbnailFromEmojiRow=function(l){var D,U;return(l==null?void 0:(D=l.thumbnails)==null?void 0:(U=D[0])==null?void 0:U.url)||""};
_.W.getEmojiAltTextForPartialSelector=function(l){var D;return((D=this.getThumbnailFromEmojiRow(l).match(z47))==null?void 0:D[0])||""};
_.W.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.W.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.W.getRowSelection=function(l){return["left","right"][l]};
_.W.getIdFromComposedEmoji=function(l){return(l==null?void 0:l.emojiId)||""};
_.W.getEmojiFromPartialSelections=function(l,D){if(!l&&!D)return null;var U,n,y=(U=this.data)==null?void 0:(n=U.emoji)==null?void 0:n.variantIds;if(!y||!y.length)return null;var A;l=(A=l.match(rl1))==null?void 0:A[0];var C;D=(C=D.match(rl1))==null?void 0:C[0];if(!l||!D)return null;var h=fHv.get(l);C=fHv.get(D);if(h===C){C=Array.from(fHv.values()).filter(function(u){return u!==h}).join("|");
var b=new RegExp("^((?!("+C+")).)*"+h+"$")}else b=new RegExp(h+".*"+C);return(y=y.find(function(u){return b.test(u)}))&&_.WR(this.emojiManager,y)||null};
_.W.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var l,D=this.ytEmojiSelectorBehavior.emojiUrl(((l=this.data.emoji)==null?void 0:l.emojiId)||"");_.iJ(this.hostElement).querySelector('[selection="user"]').src.includes(D)||(this.isEmojiDraftInProgress=!0)}};
_.W.onDomChange=function(){js5(this.ytEmojiSelectorBehavior)};
_.W.getFocusableElements=function(){return _.iJ(this.hostElement).querySelectorAll("img").filter(function(l){return l.getAttribute("role")==="option"})};
_.W.changeFocus=function(l){var D=this.getFocusableElements();D!=null&&D.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+l+D.length)%D.length,this.ytEmojiSelectorBehavior.focusedIndex<D.length&&(l=D[this.ytEmojiSelectorBehavior.focusedIndex])&&l.focus())};
_.W.onKeyboardEnter=function(){var l=this.getFocusableElements();l!=null&&l.length&&(l=l[this.ytEmojiSelectorBehavior.focusedIndex])&&l instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(l),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.QP.Object.defineProperties(m4.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var l=this,D,U,n;return this.emojiManager&&((D=this.data)==null?0:(U=D.emoji)==null?0:(n=U.variantIds)==null?0:n.length)?this.data.emoji.variantIds.map(function(y){return!!y&&_.WR(l.emojiManager,y)}).filter(function(y){return!!y}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var l,D=(l=this.userSelection)==null?void 0:l.left,U;l=(U=this.userSelection)==null?void 0:U.right;return D&&l?this.getEmojiFromPartialSelections(D,l):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.composedEmojiSelection)==null?0:l.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var D;l=(D=this.userSelection)==null?void 0:D.left;var U;D=(U=this.userSelection)==null?void 0:U.right;if(!l&&!D){var n;return this.ytEmojiSelectorBehavior.emojiUrl(((n=this.data.emoji)==null?void 0:n.emojiId)||"")}return l&&!D?l:!l&&D?D:""}}});
m4.prototype.onMultiSelectorThumbnailRowChanged=m4.prototype.onMultiSelectorThumbnailRowChanged;m4.prototype.onClick=m4.prototype.onClick;_.E([_.m(_.AM),_.T("design:type",Object)],m4.prototype,"ironOverlayBehavior",void 0);_.E([_.m(FI7),_.T("design:type",Object)],m4.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],m4.prototype,"data",void 0);_.E([_.K(),_.T("design:type",_.AK)],m4.prototype,"emojiManager",void 0);
_.E([_.K(),_.T("design:type",Object)],m4.prototype,"userSelection",void 0);_.E([_.K(),_.T("design:type",Object)],m4.prototype,"scrollAction",void 0);_.E([_.K(),_.T("design:type",Object)],m4.prototype,"isEmojiDraftInProgress",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],m4.prototype,"emojiVariants",null);_.E([_.t("data","userSelection"),_.T("design:type",Object),_.T("design:paramtypes",[])],m4.prototype,"composedEmojiSelection",null);
_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[MouseEvent]),_.T("design:returntype")],m4.prototype,"onClick",null);_.E([_.Pg("data.emoji.multiSelectorThumbnailRow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],m4.prototype,"onMultiSelectorThumbnailRowChanged",null);_.E([_.t("data","userSelection","composedEmojiSelection"),_.T("design:type",String),_.T("design:paramtypes",[])],m4.prototype,"draftEmojiUrl",null);
_.E([_.S0({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],m4);
_.r(m4,"yt-emoji-multi-person-selector",function(){if(wXz===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;oV1===void 0&&(oV1=document.createElement("template"));var n=oV1;U.call(D,n.content.cloneNode(!0),l.content.firstChild);wXz=l}l=wXz;return l},{mode:2});var $X7;var Nw_;var ao=function(){var l=_.p.apply(this,arguments)||this;l.tooltip_=null;return l};
_.Z(ao,_.p);_.W=ao.prototype;_.W.dataChanged_=function(){var l;if((l=this.data)==null?0:l.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.iJ(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Aj)(this.tooltip_).textContent=this.data.tooltip};
_.W.computeTargetId=function(){var l;return((l=this.data)==null?void 0:l.targetId)||""};
_.W.computeId_=function(l){return l};
_.W.computeIcon_=function(l){return _.UV(l)};
_.W.onTap_=function(){this.active=!this.active;_.O9(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.W.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("active-changed",this.active))};
_.QP.Object.defineProperties(ao.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var l,D;if((l=this.data)==null?0:(D=l.icon)==null?0:D.iconType)return this.data.icon.iconType==="SUPER_STICKER";var U,n;return((U=this.data)==null?void 0:(n=U.icon)==null?void 0:n.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
ao.prototype.activeChangedForBinding=ao.prototype.activeChangedForBinding;ao.prototype.dataChanged_=ao.prototype.dataChanged_;_.E([_.m(_.ia.YtLiveChatTooltipTargetingBehavior),_.T("design:type",Object)],ao.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ao.prototype,"data",void 0);_.E([_.K({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.T("design:type",String)],ao.prototype,"id",void 0);
_.E([_.K({computed:"computeTargetId(data.targetId)"}),_.T("design:type",String)],ao.prototype,"targetId",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],ao.prototype,"active",void 0);_.E([_.K({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.T("design:type",String)],ao.prototype,"icon",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ao.prototype,"dataChanged_",null);
_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ao.prototype,"iconFilled",null);_.E([_.Pg("active"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ao.prototype,"activeChangedForBinding",null);_.E([_.S0({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],ao);
_.r(ao,"yt-emoji-picker-category-button-renderer",function(){if(Nw_===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;$X7===void 0&&($X7=document.createElement("template"));var n=$X7;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Nw_=l}l=Nw_;return l},{mode:2});var ssg;var EVv;var tK=function(){var l=_.p.apply(this,arguments)||this;l.ariaLabel=null;l.ariaActivedescendant=null;l.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};l.JSC$14369_ignoreNextFocus_=!1;l.longPressTimeoutId=-1;return l};
_.Z(tK,_.p);_.W=tK.prototype;_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.W.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.W.emojiChanged_=function(){this.changeFocus_(0,!1);for(var l=_.he(),D=0;D<this.emoji.length;D++){var U={veType:88013,elementIndex:D},n=this.emoji[D];n.isCustomEmoji&&(n=document.querySelector(("#"+n.emojiId).replace("/","\\/")))&&(U=_.Ce(l,U))&&(n.visualElement=U)}};
_.W.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.W.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.W.emojiSkinToneChanged_=function(l){this.skinTone=l};
_.W.dataChanged=function(){this.data&&this.data.emojiData&&Fx7(this.emojiManager,this.data.emojiData)};
_.W.emojiUrl=function(l){l=this.getEmoji(l);if(!l)return"";var D;l=(D=l.image)==null?void 0:D.thumbnails;return _.IO(l,24)||""};
_.W.emojiAlt=function(l){var D=this.get("image.accessibility.accessibilityData.label",l);return D?D:l.isCustomEmoji?l.shortcuts[0]:l.emojiId};
_.W.emojiAriaLabel=function(l){return l.shortcuts?l.shortcuts[0]:""};
_.W.emojiAriaSelected=function(l,D,U){return l&&U==D?"true":"false"};
_.W.getEmoji=function(l){if(this.emojiManager)return this.shouldUseStickyPreferences?wak(this.emojiManager,l):BR(this.emojiManager,l)};
_.W.computeId_=function(l){return l.categoryId||""};
_.W.computeEmoji=function(l){var D=this;return this.emojiManager?l.emojiIds?l.emojiIds.map(function(U){return U?_.WR(D.emojiManager,U):null}).filter(pXl):l.emojiData?l.emojiData.map(function(U){var n=!!U.emojiId&&_.WR(D.emojiManager,U.emojiId);
return n?Object.assign({},n,U):null}).filter(pXl):[]:[]};
_.W.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.W.computeAriaLabel_=function(l){return _.Nl(l)};
_.W.computeAriaActivedescendant_=function(l,D){return l&&l[D]?l[D].emojiId||"":""};
_.W.handleLongPressEmojiWithVariants=function(l,D){this.changeFocusToEmoji(l.emojiId,!1);this.openVariantSelector(l,D)};
_.W.onMouseDown=function(l){var D=this;this.hostElement!==document.activeElement&&(this.JSC$14369_ignoreNextFocus_=!0);if(l.button===0){var U=_.NN(l);if(U instanceof HTMLImageElement){var n=_.iJ(this.hostElement).querySelector("#repeat").itemForElement(U);this.emojiContainsVariants(n)&&(this.longPressTimeoutId=setTimeout(function(){D.handleLongPressEmojiWithVariants(n,U)},500))}}};
_.W.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.W.onFocus=function(){this.JSC$14369_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14369_ignoreNextFocus_=!1};
_.W.onBlur_=function(){this.showFocus=!1};
_.W.emojiContainsVariants=function(l){return!!(l&&l.variantIds&&l.variantIds.length)};
_.W.onClick=function(l){clearTimeout(this.longPressTimeoutId);l=_.NN(l);if(l instanceof HTMLImageElement){var D=l.id;this.changeFocusToEmoji(D,!1);var U=this.getEmoji(D),n;if(n=this.shouldUseStickyPreferences&&this.emojiContainsVariants(U)){var y;n=!((y=this.emojiManager.emojiMap[D])!=null&&y.stickyPrefId)}n?(y=_.iJ(this.hostElement).querySelector("#repeat").itemForElement(l),this.openVariantSelector(y,l)):_.O9(this.hostElement,"yt-emoji-select",U)}};
_.W.isActiveEmojiWithVariants=function(l,D){return l&&D?D.stickyPrefId?l===D.stickyPrefId:l===D.emojiId:!1};
_.W.onCloseEmojiVariantSelector=function(l){this.activeEmojiWithVariantsId===l&&(this.activeEmojiWithVariantsId="")};
_.W.onMouseOver_=function(l){l=_.NN(l);l instanceof HTMLImageElement&&_.O9(this.hostElement,"yt-emoji-hover",_.WR(this.emojiManager,l.id))};
_.W.changeFocus_=function(l,D){this.focusedIndex=(this.focusedIndex+l+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(l=this.emoji[this.focusedIndex],D&&(this.showFocus=!0,_.iJ(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.O9(this.hostElement,"yt-emoji-hover",l)))};
_.W.changeFocusToEmoji=function(l,D){if(l){var U=this.emoji.findIndex(function(n){return n.emojiId===l});
U!==-1&&this.changeFocus_(U-this.focusedIndex,D)}};
_.W.onKeyDown_=function(l){switch(l.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var D=this.emoji[this.focusedIndex];if(D&&D.emojiId){if(this.emojiContainsVariants(D)){var U=_.iJ(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(D,U)}else _.O9(this.hostElement,"yt-emoji-select",BR(this.emojiManager,D.emojiId)),this.hostElement.focus();l.preventDefault()}}break;case 40:this.changeFocus_(1,!0);l.preventDefault();break;case 38:this.changeFocus_(-1,!0),
l.preventDefault()}};
_.W.onEmojiStickyPreferenceChanged=function(l,D){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&l.emojiId&&l.variantIds&&l.variantIds.includes(D)&&this.activeEmojiWithVariantsId!==D&&this.setStickyEmojiPreference(l.emojiId,D)};
_.W.openVariantSelector=function(l,D){this.activeEmojiWithVariantsId=l.stickyPrefId||l.emojiId||"";_.O9(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:l,target:D})};
_.W.setStickyEmojiPreference=function(l,D){if(this.data){var U=this.emoji.findIndex(function(y){return y.emojiId===l});
if(U!==-1){var n=this.emoji[U];n.stickyPrefId=D;this.set("emoji."+U,Object.assign({},n));this.activeEmojiWithVariantsId=D}}};
tK.prototype.onKeyDown_=tK.prototype.onKeyDown_;tK.prototype.onMouseOver_=tK.prototype.onMouseOver_;tK.prototype.onClick=tK.prototype.onClick;tK.prototype.onBlur_=tK.prototype.onBlur_;tK.prototype.onFocus=tK.prototype.onFocus;tK.prototype.onMouseUp=tK.prototype.onMouseUp;tK.prototype.onMouseDown=tK.prototype.onMouseDown;tK.prototype.dataChanged=tK.prototype.dataChanged;tK.prototype.disableIncrementalLoadingChanged_=tK.prototype.disableIncrementalLoadingChanged_;tK.prototype.emojiManagerChanged_=tK.prototype.emojiManagerChanged_;
tK.prototype.emojiChanged_=tK.prototype.emojiChanged_;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],tK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],tK.prototype,"data",void 0);_.E([_.K({computed:"computeId_(data)"}),_.T("design:type",String)],tK.prototype,"id",void 0);_.E([_.K({computed:"computeEmoji(data)"}),_.T("design:type",Array)],tK.prototype,"emoji",void 0);_.E([_.K(),_.T("design:type",Number)],tK.prototype,"skinTone",void 0);
_.E([_.K(),_.T("design:type",_.AK)],tK.prototype,"emojiManager",void 0);_.E([_.K(),_.T("design:type",Boolean)],tK.prototype,"disableIncrementalLoading",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],tK.prototype,"focusedIndex",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],tK.prototype,"showFocus",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.T("design:type",Object)],tK.prototype,"ariaLabel",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.T("design:type",Object)],tK.prototype,"ariaActivedescendant",void 0);_.E([_.K({value:60}),_.T("design:type",Number)],tK.prototype,"domRepeatTargetFramerate",void 0);_.E([_.K({value:1}),_.T("design:type",Number)],tK.prototype,"domRepeatInitialCount",void 0);_.E([_.K({value:""}),_.T("design:type",String)],tK.prototype,"activeEmojiWithVariantsId",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],tK.prototype,"shouldUseStickyPreferences",void 0);_.E([_.Pg("emoji"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tK.prototype,"emojiChanged_",null);_.E([_.Pg("emojiManager"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tK.prototype,"emojiManagerChanged_",null);
_.E([_.Pg("disableIncrementalLoading"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tK.prototype,"disableIncrementalLoadingChanged_",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tK.prototype,"dataChanged",null);_.E([_.hj("mousedown"),_.T("design:type",Function),_.T("design:paramtypes",[Object]),_.T("design:returntype")],tK.prototype,"onMouseDown",null);
_.E([_.hj("mouseup"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tK.prototype,"onMouseUp",null);_.E([_.hj("focus"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tK.prototype,"onFocus",null);_.E([_.hj("blur"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tK.prototype,"onBlur_",null);
_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],tK.prototype,"onClick",null);_.E([_.hj("mouseover"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],tK.prototype,"onMouseOver_",null);_.E([_.hj("keydown"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],tK.prototype,"onKeyDown_",null);
_.E([_.S0({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],tK);
_.r(tK,"yt-emoji-picker-category-renderer",function(){if(EVv===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;ssg===void 0&&(ssg=document.createElement("template"));var n=ssg;U.call(D,n.content.cloneNode(!0),l.content.firstChild);EVv=l}l=EVv;return l},{mode:2});var Twr;var IHy;var Hok;var YOH;var XL=function(){var l=_.p.apply(this,arguments)||this;l.ariaLabel=null;l.ariaActivedescendant=null;l.getFormattedStringRawText=_.Nl;l.JSC$14375_ignoreNextFocus_=!1;return l};
_.Z(XL,_.p);_.W=XL.prototype;_.W.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")};
_.W.emojiUrl=function(l){var D,U;l=(D=BR(this.emojiManager,l,!0))==null?void 0:(U=D.image)==null?void 0:U.thumbnails;return _.IO(l,24)||""};
_.W.emojiAlt=function(l){var D=this.get("image.accessibility.accessibilityData.label",l);return D?D:l.isCustomEmoji?l.shortcuts[0]:l.emojiId};
_.W.emojiId=function(l){return"emoji"+l};
_.W.computeId_=function(l){return l.categoryId||""};
_.W.computeAriaActivedescendant_=function(l){return this.emoji&&l<this.emoji.length?this.emojiId(l):""};
_.W.emojiChanged_=function(){this.changeFocus_(0,!1);for(var l=_.he(),D=0;D<this.emoji.length;D++){var U={veType:88013,elementIndex:D},n=this.emoji[D];n.isCustomEmoji&&(n=document.querySelector(("#"+n.emojiId).replace("/","\\/")))&&(U=_.Ce(l,U))&&(n.visualElement=U)}};
_.W.computeEmoji_=function(l){var D=this;return this.emojiManager?l.emojiIds.map(function(U){return _.WR(D.emojiManager,U,!0)}).filter(xX_):[]};
_.W.titleOffsetChanged_=function(){var l=this.hostElement.getBoundingClientRect(),D=_.iJ(this.hostElement).querySelector("#title").getBoundingClientRect();l=Math.max(0,Math.min(this.titleOffset,l.height-D.height));_.iJ(this.hostElement).querySelector("#title").style.top=l+"px"};
_.W.onEmojiMouseOver_=function(l){_.O9(this.hostElement,"yt-emoji-hover",l.model.item)};
_.W.onEmojiTap_=function(l){this.data.command&&(l=Z1g(_.Jc().resolve(_.G8(Dm)),this.data.command,l),_.O9(this.hostElement,"yt-navigate",l))};
_.W.emojiAriaLabel=function(l){return l.shortcuts[0]};
_.W.emojiAriaSelected=function(l,D,U){return l&&U==D?"true":"false"};
_.W.changeFocus_=function(l,D){var U=this.emoji.length;this.focusedIndex=(this.focusedIndex+l+U)%U;l=this.emoji[this.focusedIndex];if(D){var n;(n=_.iJ(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||n.scrollIntoView(!1);_.O9(this.hostElement,"yt-emoji-hover",l)}};
_.W.onMouseDown_=function(){this.JSC$14375_ignoreNextFocus_=!0};
_.W.onFocus_=function(){this.JSC$14375_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14375_ignoreNextFocus_=!1};
_.W.onBlur_=function(){this.showFocus=!1};
_.W.onKeyDown_=function(l){switch(l.keyCode){case 13:this.onEmojiTap_(l);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);l.preventDefault();break;case 38:this.changeFocus_(-1,!0),l.preventDefault()}};
XL.prototype.onKeyDown_=XL.prototype.onKeyDown_;XL.prototype.onBlur_=XL.prototype.onBlur_;XL.prototype.onFocus_=XL.prototype.onFocus_;XL.prototype.onMouseDown_=XL.prototype.onMouseDown_;XL.prototype.onEmojiTap_=XL.prototype.onEmojiTap_;XL.prototype.titleOffsetChanged_=XL.prototype.titleOffsetChanged_;XL.prototype.emojiChanged_=XL.prototype.emojiChanged_;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],XL.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],XL.prototype,"data",void 0);_.E([_.K({computed:"computeId_(data)"}),_.T("design:type",String)],XL.prototype,"id",void 0);_.E([_.K({computed:"computeEmoji_(data)"}),_.T("design:type",Array)],XL.prototype,"emoji",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],XL.prototype,"titleOffset",void 0);_.E([_.K({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.T("design:type",Object)],XL.prototype,"ariaLabel",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.T("design:type",Object)],XL.prototype,"ariaActivedescendant",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],XL.prototype,"showFocus",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],XL.prototype,"focusedIndex",void 0);_.E([_.K(),_.T("design:type",_.AK)],XL.prototype,"emojiManager",void 0);
_.E([_.Pg("emoji"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],XL.prototype,"emojiChanged_",null);_.E([_.Pg("titleOffset"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],XL.prototype,"titleOffsetChanged_",null);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],XL.prototype,"onEmojiTap_",null);
_.E([_.hj("mousedown"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],XL.prototype,"onMouseDown_",null);_.E([_.hj("focus"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],XL.prototype,"onFocus_",null);_.E([_.hj("blur"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],XL.prototype,"onBlur_",null);
_.E([_.hj("keydown"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],XL.prototype,"onKeyDown_",null);_.E([_.S0({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],XL);
_.r(XL,"yt-emoji-picker-upsell-category-renderer",function(){if(YOH===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Hok===void 0&&(Hok=document.createElement("template"));var n=Hok;U.call(D,n.content.cloneNode(!0),l.content.firstChild);YOH=l}l=YOH;return l},{mode:2});var Oog;var VX1;var SP=function(){var l=_.p.apply(this,arguments)||this;l.scrollAction="lock";l.verticalAlign="top";return l};
_.Z(SP,_.p);_.W=SP.prototype;_.W.onClick=function(l){l=_.NN(l);l instanceof HTMLImageElement&&_.O9(this.hostElement,"yt-emoji-select",_.WR(this.emojiManager,l.id))};
_.W.openSelector=function(){this.ironOverlayBehavior.open()};
_.W.onDomChange=function(){js5(this.ytEmojiSelectorBehavior)};
_.W.computeIsFamilySelector=function(l){var D;return(l==null?void 0:(D=l.emoji)==null?void 0:D.emojiId)==="\ud83d\udc6a"};
_.W.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var l=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];l&&l.emojiId&&(_.O9(this.hostElement,"yt-emoji-select",_.WR(this.emojiManager,l.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.QP.Object.defineProperties(SP.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var l=this,D,U,n;return this.emojiManager&&((D=this.data)==null?0:(U=D.emoji)==null?0:(n=U.variantIds)==null?0:n.length)?this.data.emoji.variantIds.map(function(y){return!!y&&_.WR(l.emojiManager,y)}).filter(function(y){return!!y}):[]}}});
SP.prototype.onClick=SP.prototype.onClick;_.E([_.m(_.AM),_.T("design:type",Object)],SP.prototype,"ironOverlayBehavior",void 0);_.E([_.m(FI7),_.T("design:type",Object)],SP.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],SP.prototype,"data",void 0);_.E([_.K(),_.T("design:type",_.AK)],SP.prototype,"emojiManager",void 0);_.E([_.K(),_.T("design:type",Object)],SP.prototype,"scrollAction",void 0);_.E([_.K(),_.T("design:type",Object)],SP.prototype,"verticalAlign",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.T("design:type",Boolean)],SP.prototype,"isFamilySelector",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],SP.prototype,"emojiVariants",null);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[MouseEvent]),_.T("design:returntype")],SP.prototype,"onClick",null);_.E([_.S0({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],SP);
_.r(SP,"yt-emoji-variant-selector",function(){if(VX1===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Oog===void 0&&(Oog=document.createElement("template"));var n=Oog;U.call(D,n.content.cloneNode(!0),l.content.firstChild);VX1=l}l=VX1;return l},{mode:2});var iJg=/:/g,lCh=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],kW=function(){var l=_.p.apply(this,arguments)||this;l.emojiVariantSelector=null;l.emojiMultiPersonSelector=null;l.identity=_.x9;l.lastAnimationTime_=0;l.animationStart_=null;l.animationEnd_=null;return l};
_.Z(kW,_.p);_.W=kW.prototype;
_.W.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}}};
_.W.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.CF)};
_.W.attached=function(){_.iB&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&ol7(this.emojiManager)};
_.W.dataChanged=function(){var l;if((l=this.data)==null?0:l.categories){l=this.emojiManager;var D=this.getCustomEmojiIds();l.pickerCustomEmojiIds=[].concat(_.zz(Kxh),_.zz(D))}};
_.W.getCustomEmojiIds=function(){var l,D=(l=this.data.categories)==null?void 0:l.find(function(A){var C;return((C=A.emojiPickerCategoryRenderer)==null?void 0:C.categoryId)&&lCh.includes(A.emojiPickerCategoryRenderer.categoryId)}),U;
l=(U=this.data.categories)==null?void 0:U.find(function(A){return A.emojiPickerUpsellCategoryRenderer});
var n,y;return[D==null?void 0:(n=D.emojiPickerCategoryRenderer)==null?void 0:n.emojiIds,l==null?void 0:(y=l.emojiPickerUpsellCategoryRenderer)==null?void 0:y.emojiIds].flat().filter(function(A){return!!A})};
_.W.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.W.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.W.updateCategoriesAndPlaceholderInternal=function(l,D){var U=this;l&&D&&(this.categories=l.categories||[],this.categoryButtons=l.categoryButtons||[],this.resetPlaceholder(),this.search="",_.j0(function(){U.updateButtons_()}))};
_.W.computeId_=function(l){return l.id||""};
_.W.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(l){return l.emojiPickerCategoryRenderer&&l.emojiPickerCategoryRenderer.emojiData}):!1};
_.W.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.W.onShowEmojiVariantSelector=function(l){var D=l.detail.emojiData;D.variantIds&&D.variantIds.length&&(D.multiSelectorThumbnailRow&&D.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:D,target:l.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:D,target:l.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.W.onIronOverlayClosed=function(l){var D=wak(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");D&&l.composedPath&&(l.composedPath().includes(_.iJ(this.hostElement).querySelector("#emoji-variant-selector"))||l.composedPath().includes(_.iJ(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Vh(this.hostElement,"yt-close-emoji-variant-selector",[D.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.W.onEmojiVariantSelectorMouseup=function(l){var D=l.target.firstChild;this.variantSelectorOpened&&D&&_.j0(function(){D.noCancelOnOutsideClick=!1},100)};
_.W.onEmojiVariantSelectorMousedown=function(l){l=l.target.firstChild;this.variantSelectorOpened&&l&&(l.noCancelOnOutsideClick=!1)};
_.W.onSelectCategory_=function(l){var D=this.search!="";this.search="";for(var U=_.iJ(this.hostElement).querySelector("#categories").children,n=0;n<U.length;n++){var y=U[n];if(y.id==l.detail.categoryId){D?(_.iJ(this.hostElement).querySelector("#categories").scrollTop=y.offsetTop,this.updateButtons_()):(this.animationStart_=_.iJ(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=y.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.W.onEmojiHover_=function(l){this.placeholder=l.detail.shortcuts?l.detail.shortcuts[0]:""};
_.W.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.W.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.W.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.W.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.W.computeSearchCategory_=function(l){l=l.replace(iJg,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();l=l.split(" ");for(var D=[],U=this.emojiManager.emojis,n=0;n<U.length;n++){var y=U[n];if(y.searchTerms)for(var A=0;A<y.searchTerms.length;A++){for(var C=y.searchTerms[A].toLocaleLowerCase(),h=!1,b=0;b<l.length;b++)if(C.indexOf(l[b])!=-1){h=!0;break}if(h&&(!y.isCustomEmoji||!y.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(y.emojiId))){D.push(y.emojiId);
break}}}return{categoryId:-1,emojiIds:D}};
_.W.computeSearchEmptyMessage_=function(l,D){return l&&D&&D.emojiIds&&D.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.W.computeSearching_=function(l){return this.emojiManager&&l.replace(iJg,"").length>1};
_.W.computeSkinToneHidden=function(){var l;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((l=this.data)==null||!l.hideSkinTonePicker)};
_.W.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.W.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.W.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.W.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.W.selectSkinTone_=function(l){l=Number(l.target.getAttribute("tone"));this.set("emojiManager.skinTone",l);_.Vh(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[l]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.W.skinToneChanged_=function(){_.iJ(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var l=_.iJ(this.hostElement).querySelector("#dropdown-content").children,D=0;D<l.length;D++)D===this.skinTone?l[D].setAttribute("selected",""):l[D].removeAttribute("selected")};
_.W.animateScroll_=function(l){this.lastAnimationTime_||(this.lastAnimationTime_=l);l-=this.lastAnimationTime_;l<200?(_.iJ(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*l/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.iJ(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.W.searchChanged_=function(){this.updateButtons_()};
_.W.updateButtons_=function(){var l=null;if(!this.search)for(var D=_.iJ(this.hostElement).querySelector("#categories").scrollTop,U=_.iJ(this.hostElement).querySelector("#categories").children,n=0;n<U.length;n++){var y=U[n];y.offsetTop<=D&&(l=y.id)}D=_.iJ(this.hostElement).querySelector("#category-buttons").children;for(U=0;U<D.length;U++)n=D[U],n.active=n.id===l};
kW.prototype.searchChanged_=kW.prototype.searchChanged_;kW.prototype.skinToneChanged_=kW.prototype.skinToneChanged_;kW.prototype.onEmojiHover_=kW.prototype.onEmojiHover_;kW.prototype.onSelectCategory_=kW.prototype.onSelectCategory_;kW.prototype.onShowEmojiVariantSelector=kW.prototype.onShowEmojiVariantSelector;kW.prototype.updateCategoriesAndPlaceholder_=kW.prototype.updateCategoriesAndPlaceholder_;kW.prototype.dataChanged=kW.prototype.dataChanged;
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],kW.prototype,"data",void 0);_.E([_.K({value:function(){return[]}}),
_.T("design:type",Array)],kW.prototype,"categories",void 0);_.E([_.K({value:function(){return[]}}),
_.T("design:type",Array)],kW.prototype,"categoryButtons",void 0);_.E([_.K({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.T("design:type",Boolean)],kW.prototype,"disableScroll",void 0);_.E([_.K({computed:"computeId_(data)",reflectToAttribute:!0}),_.T("design:type",String)],kW.prototype,"id",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],kW.prototype,"selected",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],kW.prototype,"disableIncrementalLoading",void 0);_.E([_.K(),_.T("design:type",String)],kW.prototype,"placeholder",void 0);_.E([_.K({value:""}),_.T("design:type",String)],kW.prototype,"search",void 0);_.E([_.K({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.T("design:type",Boolean)],kW.prototype,"searching",void 0);_.E([_.K({computed:"computeSearchCategory_(search)"}),_.T("design:type",Object)],kW.prototype,"searchCategory",void 0);
_.E([_.K({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.T("design:type",Object)],kW.prototype,"searchEmptyMessage",void 0);_.E([_.K({computed:"identity(emojiManager.skinTone)"}),_.T("design:type",Number)],kW.prototype,"skinTone",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],kW.prototype,"skinToneOpened",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],kW.prototype,"variantSelectorOpened",void 0);
_.E([_.K({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.T("design:type",Boolean)],kW.prototype,"skinToneHidden",void 0);_.E([_.K(),_.T("design:type",_.AK)],kW.prototype,"emojiManager",void 0);_.E([_.K(),_.T("design:type",Object)],kW.prototype,"emojiVariantSelector",void 0);_.E([_.K(),_.T("design:type",Object)],kW.prototype,"emojiMultiPersonSelector",void 0);
_.E([_.K({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.T("design:type",Boolean)],kW.prototype,"shouldUseStickyPreferences",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kW.prototype,"dataChanged",null);_.E([_.Pg("data","selected"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kW.prototype,"updateCategoriesAndPlaceholder_",null);
_.E([_.hj("yt-show-emoji-variant-selector"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],kW.prototype,"onShowEmojiVariantSelector",null);_.E([_.hj("yt-emoji-picker-select-category"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],kW.prototype,"onSelectCategory_",null);_.E([_.hj("yt-emoji-hover"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],kW.prototype,"onEmojiHover_",null);
_.E([_.Pg("skinTone"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kW.prototype,"skinToneChanged_",null);_.E([_.Pg("search"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kW.prototype,"searchChanged_",null);_.E([_.S0({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],kW);
_.r(kW,"yt-emoji-picker-renderer",function(){if(IHy===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Twr===void 0&&(Twr=document.createElement("template"));var n=Twr;U.call(D,n.content.cloneNode(!0),l.content.firstChild);IHy=l}l=IHy;return l},{mode:2});var dS=function(){var l=_.p.apply(this,arguments)||this;l.emojiManager=_.CF;l.isDarkTheme=document.documentElement.hasAttribute("dark");l.selectedIndex=1;l.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return l};
_.Z(dS,_.p);_.W=dS.prototype;_.W.handleEmojiCustomizationVisible=function(l){this.emojiPickerRenderer.selected=l;this.selectedIndex=1;l?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.W.emojiCustomizationSetChanged=function(){var l;(l=this.data)!=null&&l.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Y9(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.W.updateSaveButtonState=function(l){var D;(D=this.data)!=null&&D.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.vr("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:l}))};
_.W.emojiUrl=function(l){l=_.WR(this.emojiManager,l);if(!l)return"";var D;l=(D=l.image)==null?void 0:D.thumbnails;return _.IO(l,24)||""};
_.W.emojiAlt=function(l){var D=_.WR(this.emojiManager,l);if(!D)return l;var U,n,y,A=(D==null?void 0:(U=D.image)==null?void 0:(n=U.accessibility)==null?void 0:(y=n.accessibilityData)==null?void 0:y.label)||"";return A?A:D.isCustomEmoji?D.shortcuts[0]:D.emojiId||l};
_.W.emojiAriaLabel=function(l){var D,U;return((D=_.WR(this.emojiManager,l))==null?void 0:(U=D.shortcuts)==null?void 0:U[0])||l};
_.W.onEmojiClick=function(l){l.model.index!==0&&(this.selectedIndex=l.model.index)};
_.W.onEmojiSelect=function(l){l=l.detail;var D,U;((D=this.data)==null?0:D.emojiCustomizationSetEntityKey)&&((U=this.emojiCustomizationSet)==null?0:U.emojiId)&&l.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,l.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.vr("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,l.emojiId,this.selectedIndex)}))};
_.W.canEditEmoji=function(l,D,U){l=l.indexOf(D);return l===U||l===0||U===0?!1:!0};
_.W.getUpdatedEmojiIdList=function(l,D,U){var n=l.indexOf(D);l=[].concat(_.zz(l));n>=0&&(l[n]=l[U]);l[U]=D;return l};
_.QP.Object.defineProperties(dS,{template:{configurable:!0,enumerable:!0,get:function(){if(qOr===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;LIg===void 0&&(LIg=document.createElement("template"));var n=LIg;U.call(D,n.content.cloneNode(!0),l.content.firstChild);qOr=l}l=qOr;return l}}});
dS.prototype.onEmojiSelect=dS.prototype.onEmojiSelect;_.E([_.m(_.VS),_.T("design:type",Object)],dS.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],dS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.gP("yt-emoji-picker-renderer"),_.T("design:type",Object)],dS.prototype,"emojiPickerRenderer",void 0);
_.E([_.K({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(l,D){return _.yT(l.entities,"emojiCustomizationSetEntity",D)},
observer:"emojiCustomizationSetChanged"}),_.T("design:type",Object)],dS.prototype,"emojiCustomizationSet",void 0);_.E([_.K(),_.T("design:type",Object)],dS.prototype,"originalEmojiSet",void 0);_.E([_.K(),_.T("design:type",_.AK)],dS.prototype,"emojiManager",void 0);_.E([_.K(),_.T("design:type",Object)],dS.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],dS.prototype,"isDarkTheme",void 0);_.E([_.K(),_.T("design:type",Object)],dS.prototype,"selectedIndex",void 0);
_.E([_.hj("yt-emoji-select"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],dS.prototype,"onEmojiSelect",null);_.E([_.S0({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],dS);var D7r;var U7k;var nrg;var yhy;var KF=function(){var l=_.p.apply(this,arguments)||this;l.authorBadges=[];return l};
_.Z(KF,_.p);_.W=KF.prototype;_.W.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.W.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]]"}}}}}};
_.W.dataChanged=function(){var l=CAN(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",l)};
_.W.updateMessage=function(){var l=this.data.message,D=_.iJ(_.iJ(this.hostElement).querySelector("#message"));D.textContent="";l&&D.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(l))};
_.W.shouldSupportWholeItemClick=function(){return!0};
_.W.onShowOriginalClick=function(l){l.preventDefault();this.showOriginal=!0};
_.W.computeShowBar=function(l,D,U){return l&&D||U};
_.W.computeAuthorBadges=function(l){return l.authorBadges||[]};
_.W.computeAuthorIsOwner=function(l){return!!huc(l.authorBadges,"owner")};
_.W.computeAuthorNameColor=function(l){var D;if(_.q("live_chat_author_name_color_usernames")&&(l==null?0:(D=l.authorName)==null?0:D.simpleText))return _.QKG(_.GGG(l.authorName.simpleText));if(_.q("live_chat_seed_color_usernames")&&(l==null?0:l.authorSeedColorArgb))return _.QKG(_.lm(l.authorSeedColorArgb));if(_.q("live_chat_colored_usernames"))return"#cc0000";var U;return _.q("live_chat_simple_color_usernames")&&(l==null?0:(U=l.authorName)==null?0:U.simpleText)&&(l==null?0:l.authorUsernameColorLight)&&
(l==null?0:l.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.lm(l.authorUsernameColorDark):_.lm(l.authorUsernameColorLight):""};
KF.prototype.updateMessage=KF.prototype.updateMessage;KF.prototype.dataChanged=KF.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],KF.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],KF.prototype,"data",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],KF.prototype,"showOriginal",void 0);_.E([_.K({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.T("design:type",Boolean)],KF.prototype,"isDimmed",void 0);_.E([_.K({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.T("design:type",Boolean)],KF.prototype,"showBar",void 0);
_.E([_.K({computed:"computeAuthorBadges(data)"}),_.T("design:type",Array)],KF.prototype,"authorBadges",void 0);_.E([_.K({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],KF.prototype,"authorIsOwner",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],KF.prototype,"inCollapsedBanner",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],KF.prototype,"inBanner",void 0);
_.E([_.K({value:_.q("live_chat_hide_avatars"),reflectToAttribute:!0}),_.T("design:type",Boolean)],KF.prototype,"avatarHidden",void 0);_.E([_.K({computed:"computeAuthorNameColor(data)"}),_.T("design:type",String)],KF.prototype,"authorNameColor",void 0);_.E([_.K(),_.T("design:type",_.ut)],KF.prototype,"participantsManager",void 0);_.E([_.K({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.T("design:type",Object)],KF.prototype,"filledButtonOverrides",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],KF.prototype,"dataChanged",null);_.E([_.Pg("data.message"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],KF.prototype,"updateMessage",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],KF);
_.r(KF,"yt-live-chat-text-message-renderer",function(){if(yhy===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;nrg===void 0&&(nrg=document.createElement("template"));var n=nrg;U.call(D,n.content.cloneNode(!0),l.content.firstChild);yhy=l}l=yhy;return l},{mode:0});var cR=function(){var l=_.p.apply(this,arguments)||this;l.tonalButtonOverrides={type:"tonal",style:"overlay"};return l};
_.Z(cR,_.p);
cR.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]]"}}}}}};
cR.prototype.shouldSupportInlineActionButtons=function(){return!0};
cR.prototype.shouldSupportWholeItemClick=function(){return!0};
_.QP.Object.defineProperties(cR.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],cR.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],cR.prototype,"data",void 0);_.E([_.K(),_.T("design:type",_.ut)],cR.prototype,"participantsManager",void 0);
_.E([_.K(),_.T("design:type",Object)],cR.prototype,"tonalButtonOverrides",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.infoDialogButton"),_.T("design:type",Object),_.T("design:paramtypes",[])],cR.prototype,"hasInfoDialogButton",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],cR);
_.r(cR,"yt-live-chat-auto-mod-message-renderer",function(){if(U7k===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;D7r===void 0&&(D7r=document.createElement("template"));var n=D7r;U.call(D,n.content.cloneNode(!0),l.content.firstChild);U7k=l}l=U7k;return l},{mode:0});var Ah_;var WVy;var B11;var Csg=function(){return _.p.apply(this,arguments)||this};
_.Z(Csg,_.p);_.E([_.K(),_.T("design:type",Object)],Csg.prototype,"data",void 0);_.E([_.x({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Csg);
_.r(Csg,"ytd-factoid-renderer",function(){if(B11!==void 0)return B11;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return B11=l},{mode:1});var pF=function(){return _.p.apply(this,arguments)||this};
_.Z(pF,_.p);pF.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.E([_.K(),_.T("design:type",Object)],pF.prototype,"data",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],pF);
_.r(pF,"yt-live-chat-channel-activity-reputation-renderer",function(){if(WVy===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Ah_===void 0&&(Ah_=document.createElement("template"));var n=Ah_;U.call(D,n.content.cloneNode(!0),l.content.firstChild);WVy=l}l=WVy;return l},{mode:0});var hw7;var Psz;var xW=function(){return _.p.apply(this,arguments)||this};
_.Z(xW,_.p);xW.prototype.ready=function(){var l=document.querySelector("yt-live-chat-app");l&&l.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Boolean)],xW.prototype,"menuFocused",void 0);_.E([_.K(),_.T("design:type",Object)],xW.prototype,"data",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],xW.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],xW);
_.r(xW,"yt-live-chat-donation-announcement-renderer",function(){if(Psz===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;hw7===void 0&&(hw7=document.createElement("template"));var n=hw7;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Psz=l}l=Psz;return l},{mode:0});var bJ_;var grg,ujH=function(){if(grg!==void 0)return grg;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;bJ_===void 0&&(bJ_=document.createElement("template"));var n=bJ_;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return grg=l};var jP=function(){return _.p.apply(this,arguments)||this};
_.Z(jP,_.p);_.QP.Object.defineProperties(jP,{template:{configurable:!0,enumerable:!0,get:function(){return ujH()}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jP.prototype,"data",void 0);_.E([_.S0({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],jP);_.r(jP,"yt-live-chat-empty-feed-view-model",function(){return ujH()},{mode:0});var vrk;var Qh7;var FL=function(){return _.p.apply(this,arguments)||this};
_.Z(FL,_.p);FL.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"}}}}}};
_.QP.Object.defineProperties(FL.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var l,D;return{runs:[{text:(l=this.data)==null?void 0:(D=l.channelName)==null?void 0:D.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var l=[],D;if((D=this.data)==null||!D.channelBadges)return l;var U;D=_.B((U=this.data)==null?void 0:U.channelBadges);for(U=D.next();!U.done;U=D.next()){U=_.M(U.value,gMH);var n=void 0,y=void 0;if((n=U)==null?0:(y=n.badgeImage)==null?0:y.sources)n=void 0,y={liveChatAuthorBadgeRenderer:{tooltip:U.tooltip,accessibility:{accessibilityData:{label:(n=_.M(U.rendererContext,_.vF))==null?void 0:n.label}}}},U.badgeImage.sources[0].clientResource?y.liveChatAuthorBadgeRenderer.icon=
{iconType:U.badgeImage.sources[0].clientResource.imageName}:y.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:U.badgeImage.sources},l.push(y)}return l}}});
_.E([_.K(),_.T("design:type",Object)],FL.prototype,"data",void 0);_.E([_.t("data.channelName"),_.T("design:type",Object),_.T("design:paramtypes",[])],FL.prototype,"channelName",null);_.E([_.t("data.channelBadges"),_.T("design:type",Array),_.T("design:paramtypes",[])],FL.prototype,"channelBadges",null);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],FL);
_.r(FL,"yt-live-chat-identity-view-model",function(){if(Qh7===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;vrk===void 0&&(vrk=document.createElement("template"));var n=vrk;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Qh7=l}l=Qh7;return l},{mode:0});var G1k;var Jhy;var LV8;var qer;var oo=function(){var l=_.p.apply(this,arguments)||this;l.hidden=!1;l.supportsInlineActionButtons=!0;return l};
_.Z(oo,_.p);oo.prototype.ready=function(){var l;((l=document.querySelector("yt-live-chat-app"))==null?0:l.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
oo.prototype.dataChanged=function(l){var D=(0,_.Aj)(_.iJ(this.hostElement).querySelector("#detail-text"));D.textContent="";(l==null?0:l.detailText)&&D.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(l.detailText))};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],oo.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({observer:"dataChanged"}),_.T("design:type",Object)],oo.prototype,"data",void 0);
_.E([_.K({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.T("design:type",Object)],oo.prototype,"hidden",void 0);_.E([_.x({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],oo);
_.r(oo,"yt-live-chat-legacy-paid-message-renderer",function(){if(qer===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;LV8===void 0&&(LV8=document.createElement("template"));var n=LV8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);qer=l}l=qer;return l},{mode:0});var Mxk;var Rwr;var ZJr={},wS=function(){return _.vg.apply(this,arguments)||this};
_.Z(wS,_.vg);wS.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
wS.prototype.onLiveChatMembershipItemBehaviorClick=wS.prototype.onLiveChatMembershipItemBehaviorClick;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],wS.prototype,"data",void 0);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],wS.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.E([_.Qj()],wS);
ZJr.YtLiveChatMembershipItemBehavior=[wS.prototype,_.Y.YtRendererBehavior];var rS=function(){var l=_.p.apply(this,arguments)||this;l.supportsInlineActionButtons=!0;l.hasPrimaryHeaderText=!1;l.showOnlyHeader=!1;l.authorBadges=[];l.modern=_.q("web_button_rework_with_live");l.buttonOverrides={style:"overlay",type:"filled"};return l};
_.Z(rS,_.p);_.W=rS.prototype;_.W.shouldSupportInlineActionButtons=function(){return!0};
_.W.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.W.ready=function(){var l=document.querySelector("yt-live-chat-app");l&&l.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.W.messageChanged=function(){var l=this.data.message,D=(0,_.Aj)(_.iJ(this.hostElement).querySelector("#message"));D.textContent="";l&&D.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(l))};
_.W.computeHasPrimaryHeaderText=function(l){return!(!l||!l.headerPrimaryText)};
_.W.computeShowOnlyHeader=function(l,D){return this.isMessageEmpty(l,D)};
_.W.computeAuthorBadges=function(l){return l.authorBadges||[]};
_.W.isMessageEmpty=function(l,D){return!l||l.empty?!0:!l.message&&!l.inputField&&!D};
_.W.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.W.getInputElement=function(){return _.iJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.W.inputFocus=function(){var l=this.getInputElement();l&&l.focus()};
_.W.inputInsertEmoji=function(l){var D=this.getInputElement();D&&D.insertEmoji(l)};
_.W.inputMessage=function(){var l=this.getInputElement();return l&&this.data.inputField?(l.completeEmojis(),_.cK(l.liveChatRichMessageInput)):null};
_.W.onFooterButtonClick=function(){this.data.footerButton&&_.O9(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.W.shouldSupportWholeItemClick=function(){return!0};
rS.prototype.isDeletedChanged=rS.prototype.isDeletedChanged;rS.prototype.messageChanged=rS.prototype.messageChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],rS.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.m(ZJr.YtLiveChatMembershipItemBehavior),_.T("design:type",Object)],rS.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],rS.prototype,"data",void 0);_.E([_.K({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.T("design:type",Object)],rS.prototype,"hasPrimaryHeaderText",void 0);_.E([_.K({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.T("design:type",Object)],rS.prototype,"showOnlyHeader",void 0);
_.E([_.K({computed:"computeAuthorBadges(data)"}),_.T("design:type",Array)],rS.prototype,"authorBadges",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],rS.prototype,"modern",void 0);_.E([_.Pg("data.message"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rS.prototype,"messageChanged",null);_.E([_.Pg("isDeleted"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rS.prototype,"isDeletedChanged",null);
_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],rS);
_.r(rS,"yt-live-chat-membership-item-renderer",function(){if(Rwr===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Mxk===void 0&&(Mxk=document.createElement("template"));var n=Mxk;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Rwr=l}l=Rwr;return l},{mode:0});var ewm;var m7g;var zW=function(){return _.p.apply(this,arguments)||this};
_.Z(zW,_.p);zW.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],zW.prototype,"data",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],zW);
_.r(zW,"yt-live-chat-mode-change-message-renderer",function(){if(m7g===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;ewm===void 0&&(ewm=document.createElement("template"));var n=ewm;U.call(D,n.content.cloneNode(!0),l.content.firstChild);m7g=l}l=m7g;return l},{mode:0});var aC_;var tx_;var fF=function(){return _.p.apply(this,arguments)||this};
_.Z(fF,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],fF.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fF.prototype,"data",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],fF);
_.r(fF,"yt-live-chat-moderation-message-renderer",function(){if(tx_===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;aC_===void 0&&(aC_=document.createElement("template"));var n=aC_;U.call(D,n.content.cloneNode(!0),l.content.firstChild);tx_=l}l=tx_;return l},{mode:0});var XV7;var Se7;var $W=function(){return _.p.apply(this,arguments)||this};
_.Z($W,_.p);$W.prototype.onClick=function(){var l;if((l=this.data)!=null&&l.onClickCommand){var D;_.yu.instance.resolveCommand((D=this.data)==null?void 0:D.onClickCommand)}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],$W.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],$W.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],$W.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$W.prototype,"data",void 0);
_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],$W);
_.r($W,"yt-live-chat-offer-click-count-message-renderer",function(){if(Se7===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;XV7===void 0&&(XV7=document.createElement("template"));var n=XV7;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Se7=l}l=Se7;return l},{mode:0});var k1y;var d7H=function(){return _.p.apply(this,arguments)||this};
_.Z(d7H,_.p);_.E([_.K(),_.T("design:type",Object)],d7H.prototype,"data",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],d7H);
_.r(d7H,"yt-live-chat-placeholder-item-renderer",function(){if(k1y===void 0){var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);k1y=l}l=k1y;return l},{mode:0});var KV_;var chy;var pVz=new f7(7),N2=function(){var l=_.p.apply(this,arguments)||this;l.data={};return l};
_.Z(N2,_.p);N2.prototype.dataChanged=function(){var l;((l=this.data)==null?0:l.class)&&_.nY(this.hostElement,this.data.class,!0);var D;((D=this.oldData)==null?0:D.class)&&_.nY(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
N2.prototype.computeTimestampString=function(l){return pVz.format(new Date(l/1E3))};
N2.prototype.dataChanged=N2.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],N2.prototype,"data",void 0);_.E([_.K({computed:"computeTimestampString(data.timestampUsec)"}),_.T("design:type",String)],N2.prototype,"timestampString",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],N2.prototype,"dataChanged",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],N2);
_.r(N2,"yt-live-chat-server-error-message",function(){if(chy===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;KV_===void 0&&(KV_=document.createElement("template"));var n=KV_;U.call(D,n.content.cloneNode(!0),l.content.firstChild);chy=l}l=chy;return l},{mode:0});var x7m;var jhz;var sA=function(){var l=_.p.apply(this,arguments)||this;l.defaultToFilledIcon=!1;return l};
_.Z(sA,_.p);sA.prototype.computeHasPrimaryColorIcon=function(l){return l==="SPARK"||l==="SPONSORSHIP_STAR"};
sA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],sA.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],sA.prototype,"defaultToFilledIcon",void 0);_.E([_.K(),_.T("design:type",Object)],sA.prototype,"data",void 0);
_.E([_.K({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.T("design:type",Boolean)],sA.prototype,"hasPrimaryColorIcon",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],sA);
_.r(sA,"yt-live-chat-viewer-engagement-message-renderer",function(){if(jhz===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;x7m===void 0&&(x7m=document.createElement("template"));var n=x7m;U.call(D,n.content.cloneNode(!0),l.content.firstChild);jhz=l}l=jhz;return l},{mode:0});var FVh;var EA=function(){var l=_.p.apply(this,arguments)||this;l.modernUpdate=!1;l.buttonStyle="overlay";l.buttonType="filled";return l};
_.Z(EA,_.p);EA.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
EA.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],EA.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],EA.prototype,"modernUpdate",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],EA.prototype,"buttonStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],EA.prototype,"buttonType",void 0);
_.E([_.x({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],EA);
_.r(EA,"ytd-ad-hover-text-button-renderer",function(){if(FVh!==void 0)return FVh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return FVh=l},{mode:1});var ory;var TW=function(){var l=_.p.apply(this,arguments)||this;l.buttonOverrides={size:"XS"};return l};
_.Z(TW,_.p);TW.prototype.onHelpTap=function(l){this.data&&this.data.informationDialog&&(_.O9(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),l.preventDefault(),l.stopPropagation())};
_.E([_.K(),_.T("design:type",Object)],TW.prototype,"buttonOverrides",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],TW.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],TW);
_.r(TW,"ytd-live-chat-purchased-product-message-renderer",function(){if(ory!==void 0)return ory;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ory=l},{mode:1});var wV5;var rhz;var Io=function(){var l=_.p.apply(this,arguments)||this;l.isContainerDeleted=!1;return l};
_.Z(Io,_.p);Io.prototype.onContextMenuClick=function(l){this.ytLiveChatItemBehavior.showContextMenu(l)};
Io.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))};
Io.prototype.isContainerDeletedChanged=Io.prototype.isContainerDeletedChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],Io.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Io.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Io.prototype,"isContainerDeleted",void 0);
_.E([_.K(),_.T("design:type",String)],Io.prototype,"deletedStateMessage",void 0);_.E([_.Pg("isContainerDeleted"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Io.prototype,"isContainerDeletedChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Io);
_.r(Io,"ytd-sponsorships-live-chat-header-renderer",function(){if(rhz!==void 0)return rhz;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return rhz=l},{mode:1});var HR=function(){var l=_.p.apply(this,arguments)||this;l.modern=_.q("web_button_rework_with_live");l.buttonOverrides={style:"overlay",type:"filled"};return l};
_.Z(HR,_.p);HR.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]]"}}}}}};
HR.prototype.onCtaButtonClick=function(){var l,D=_.M((l=this.data)==null?void 0:l.optInPrompt,_.yn);if(l=this.maybeGetButtonCommand(D)){var U;(U=_.he())==null||U.clickCommand(l)}};
HR.prototype.maybeGetButtonCommand=function(l){return!l||!l.command||_.M(l.command,HF5)===void 0&&_.M(l.command,Iug)===void 0?null:l.command};
HR.prototype.shouldHideOptinPrompt=function(l,D){return!l||D};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],HR.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],HR.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],HR.prototype,"modern",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],HR);
_.r(HR,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(wV5!==void 0)return wV5;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return wV5=l},{mode:1});var zwz;var YW=function(){return _.p.apply(this,arguments)||this};
_.Z(YW,_.p);YW.prototype.onContextMenuClick=function(l){this.ytLiveChatItemBehavior.showContextMenu(l)};
YW.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))};
YW.prototype.isDeletedChanged=YW.prototype.isDeletedChanged;_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],YW.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],YW.prototype,"data",void 0);_.E([_.Pg("isDeleted"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],YW.prototype,"isDeletedChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],YW);
_.r(YW,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(zwz!==void 0)return zwz;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return zwz=l},{mode:1});var OA=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return l};
_.Z(OA,_.p);_.W=OA.prototype;
_.W.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"}}}};
_.W.handleLiveChatAction=function(l){_.M(l,pL_)?this.handleMarkChatItemAsDeletedAction(_.M(l,pL_)):_.M(l,cM7)&&this.handleRemoveChatItemAction(_.M(l,cM7))};
_.W.handleLiveChatActions=function(l){l.forEach(this.handleLiveChatAction,this)};
_.W.handleMarkChatItemAsDeletedAction=function(l){var D=this,U;((U=this.data)==null?0:U.items)&&this.data.items.forEach(function(n,y){var A=Object.keys(n)[0];Object.values(n)[0].id===l.targetItemId&&D.markAsDeleted("data.items",y,A,l.deletedStateMessage,l.showOriginalContentMessage)})};
_.W.handleRemoveChatItemAction=function(l){var D=this,U;((U=this.data)==null?0:U.items)&&this.data.items.forEach(function(n,y){Object.values(n)[0].id===l.targetItemId&&D.splice("data.items",y,1)})};
_.W.markAsDeleted=function(l,D,U,n,y){l=[l,D,U].join(".");this.set(l+".deletedStateMessage",n);this.set(l+".showOriginalContentMessage",y)};
_.E([_.K(),_.T("design:type",Object)],OA.prototype,"data",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],OA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],OA.prototype,"ytActionHandlerBehavior",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],OA);
_.r(OA,"yt-live-chat-item-display-list-renderer",function(){if(Jhy===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;G1k===void 0&&(G1k=document.createElement("template"));var n=G1k;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Jhy=l}l=Jhy;return l},{mode:0});var fC7;var $7r,N1v=function(){if($7r!==void 0)return $7r;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;fC7===void 0&&(fC7=document.createElement("template"));var n=fC7;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return $7r=l};var Vk=function(){var l=_.p.apply(this,arguments)||this;l.isHeader=!1;return l};
_.Z(Vk,_.p);Vk.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.QP.Object.defineProperties(Vk,{template:{configurable:!0,enumerable:!0,get:function(){return N1v()}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Vk.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Vk.prototype,"isHeader",void 0);_.E([_.S0({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Vk);_.r(Vk,"yt-live-chat-item-display-renderer",function(){return N1v()},{mode:0});var sh5,Ery,OJ1,Yey;
sh5={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}};Ery={home:"eohps",search:"eosps",watch:"eowps"};_.T15=["watch","search","home"];
_.i5=function(){this.JSC$14486_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14486_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.H3("PRECONSTRUCTION_DELAY",0);this.signals_=_.PN();this.targetPage_=""};
_.i5.prototype.init=function(l,D){l=l===void 0?"":l;D=D===void 0?null:D;if(this.JSC$14486_isInitialized_)this.abort();else if(this.JSC$14486_isInitialized_=!0,l&&_.IC8(this,l),D){var U=_.bN(this.signals_,"pcl")?0:10,n=function(){for(var y=0,A;A=_.T15[y++];)A!=l&&A!=D&&this.pendingPages_.push(A);_.HJ5(this)}.bind(this);
this.signals_.parkOrScheduleJob(n,U,"pcl")}};
_.i5.prototype.abort=function(){this.fragmentJobId_&&(_.Tn.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Yey(this)};
_.IC8=function(l,D){l.JSC$14486_isInitialized_&&!l.targetPage_&&(l.targetPage_=D,OJ1(l,D),l.isInitialPass_=!1,OJ1(l,D),l.signals_.processSignal(Ery[l.targetPage_]),Yey(l),_.HJ5(l))};
_.HJ5=function(l){l.pendingPages_.length&&!l.pagePreparerJobId_&&(l.pagePreparerJobId_=_.oI(_.Tn,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.IC8(this,this.pendingPages_.shift())}.bind(l),l.DEFAULT_DELAY_))};
OJ1=function(l,D){if(D=sh5[D])for(var U in D){var n=!1,y=U;U.charAt(0)=="~"&&(n=!0,y=U.substring(1));var A=D[U];A=typeof A=="object"?A:{count:A};D[U]=A;A.componentName=y;A.count>0&&(l.isInitialPass_?n||l.isSeenDuringInitialPass_[y]||(l.JSC$14486_queue_.push({componentName:y,count:1,signals:A.signals}),l.isSeenDuringInitialPass_[y]=!0,A.count--):l.JSC$14486_queue_.push(A))}};
Yey=function(l){l.JSC$14486_queue_.length=0;l.targetPage_="";l.isInitialPass_=!0;l.signals_.processSignal("eop")};
_.i5.getInstance=function(){return _.sr(_.i5)};var Vxv=function(){this.signals=_.PN();this.init()};
Vxv.prototype.startPreconstruction=function(){_.i5.getInstance().init(_.il("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Vxv.prototype.init=function(){iZH(this);window.Polymer&&W07&&DYl();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var l=_.nC.ytcsi;if(l&&l.gt&&(l=l.gt())&&l.tick&&(l.tick.aft>0||l.tick.pbs>0)&&(_.il("IS_HOMEPAGE_COLD")||_.il("IS_RESULTS_PAGE_COLD")||_.il("IS_WATCH_PAGE_COLD"))){lbk(this);break a}wkC(zEN,this.onNotifications,this)}};
var iZH=function(l){var D=function(){l.signals.processSignal("dl")};
document.readyState==="complete"?(_.nt(Error("th"),"WARNING"),D()):_.vt_(window,"load",D)};
Vxv.prototype.onNotifications=function(l){l.timer||(_.il("IS_HOMEPAGE_COLD")||_.il("IS_RESULTS_PAGE_COLD")||_.il("IS_WATCH_PAGE_COLD"))&&lbk(this)};
var lbk=function(l){l.signals.parkOrScheduleJob(function(){l.signals.processSignal("eocs")},10,"eor")};
new Vxv;var D6H=function(){return _.vg.apply(this,arguments)||this};
_.Z(D6H,_.vg);_.QP.Object.defineProperties(D6H.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_entity_store_from_dependency_injection")?_.fY():_.EB()}}});
_.E([_.Qj()],D6H);_.l5=[sp.prototype,D6H.prototype];var U6g=["ytd-rich-shelf-renderer"],DZ=function(){var l=_.vg.apply(this,arguments)||this;l._noAccessors=!0;l.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";l.followUpDialogPromise=null;l.followUpDialogPromiseResolve=null;l.followUpDialogPromiseReject=null;return l};
_.Z(DZ,_.vg);_.W=DZ.prototype;_.W.dismissibleItemIsDismissedChanged_=function(l){_.q("kevlar_fluid_dismiss")&&(l?_.O9(this.hostElement,"yt-dismissible-item-dismissed"):_.O9(this.hostElement,"yt-dismissible-item-undismissed"))};
_.W.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.W.dismissibleItemReset_=function(){var l=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 _.X0(function(D,U){l.followUpDialogPromiseResolve=D;l.followUpDialogPromiseReject=U});
_.O9(this.hostElement,"yt-enable-lockup-interaction")};
_.W.dismissibleItemOnYtServiceRequestSent_=function(l,D){D.actions&&this.dismissibleItemProcessActions(D.actions,l)};
_.W.dismissibleItemOnRequestSent=function(l){for(var D=_.B(l.detail),U=D.next();!U.done;U=D.next()){var n=void 0;(U=(n=_.M(U.value,_.AJ))==null?void 0:n.actions)&&this.dismissibleItemProcessActions(U,l)}};
_.W.dismissibleItemOnCommandSent=function(l,D){D&&this.dismissibleItemProcessActions(D,l)};
_.W.setAndGetDismissedContentId=function(l){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+l};
_.W.replayDismissAction=function(l){this.dismissibleItemProcessActions([l])};
_.W.dismissibleItemProcessActions=function(l,D){for(var U=0;U<l.length;U++){var n=l[U],y=void 0;((y=_.M(n,_.n3))==null?0:y.commands)&&this.dismissibleItemProcessActions(_.M(n,_.n3).commands,D);if(_.M(n,_.jv)){if(y=_.M(n,_.jv),!y.replaceParentSection||U6g.includes(this.hostElement.nodeName.toLowerCase()))y.groupDismissal&&jso(this,y.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(y),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.vr("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:n})),n=void 0,(n=D)==null||n.stopPropagation()}else if(_.M(n,XPy))this.dismissibleItemHandleHideEnclosingAction_(),n=void 0,(n=D)==null||n.stopPropagation();else if(_.M(n,VLz))n=_.M(n,VLz),y=void 0,((y=n)==null?0:y.targetGroupId)&&jso(this,{targetGroupId:n.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.vr("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
n=void 0,(n=D)==null||n.stopPropagation();else if(_.M(n,_.AJ))(n=_.M(n,_.AJ).actions)&&_.DP(this.hostElement,n,this.hostElement),n=void 0,(n=D)==null||n.stopPropagation();else{var A=y=void 0;((y=_.M(n,_.lP))==null?void 0:y.signal)!=="TELL_US_WHY"||((A=_.M(n,_.lP))==null?0:A.targetId)&&_.q("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),n=void 0,(n=D)==null||n.stopPropagation())}}};
_.W.dismissibleItemOnYtServiceRequestCompleted_=function(l,D){var U=this.get("feedbackResponses.0.followUpDialog",D.data);U?this.followUpDialogPromiseResolve(U):D.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(D.actions,l)};
_.W.dismissibleItemHandleReplaceEnclosingAction_=function(l){this.dismissedRenderer=l.item;this.isDismissed=!0;var D=null;(D=_.iJ(this.hostElement).querySelector("#dismissed"))&&_.u6(this,function(){_.hL(D)});
_.O9(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.W.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.W.dismissibleItemHandleUndoFeedbackAction_=function(){_.O9(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.W.dismissibleItemHandleTellUsWhySignalAction_=function(){var l=this;this.followUpDialogPromise.then(function(D){l.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:D}})})};
DZ.prototype.dismissibleItemOnYtServiceRequestCompleted_=DZ.prototype.dismissibleItemOnYtServiceRequestCompleted_;DZ.prototype.dismissibleItemOnCommandSent=DZ.prototype.dismissibleItemOnCommandSent;DZ.prototype.dismissibleItemOnRequestSent=DZ.prototype.dismissibleItemOnRequestSent;DZ.prototype.dismissibleItemOnYtServiceRequestSent_=DZ.prototype.dismissibleItemOnYtServiceRequestSent_;DZ.prototype.dismissibleItemDataChanged_=DZ.prototype.dismissibleItemDataChanged_;
DZ.prototype.dismissibleItemIsDismissedChanged_=DZ.prototype.dismissibleItemIsDismissedChanged_;_.E([_.m(_.LF),_.T("design:type",Object)],DZ.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],DZ.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],DZ.prototype,"isDismissed",void 0);_.E([_.K(),_.T("design:type",Object)],DZ.prototype,"dismissedRenderer",void 0);
_.E([_.Pg("isDismissed"),_.T("design:type",Function),_.T("design:paramtypes",[Boolean]),_.T("design:returntype")],DZ.prototype,"dismissibleItemIsDismissedChanged_",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],DZ.prototype,"dismissibleItemDataChanged_",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],DZ.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.E([_.hj("yt-service-request-sent-button-renderer"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],DZ.prototype,"dismissibleItemOnRequestSent",null);
_.E([_.hj("yt-dismissible-item-action"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Array]),_.T("design:returntype")],DZ.prototype,"dismissibleItemOnCommandSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],DZ.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.E([_.Qj()],DZ);_.U3=[_.LF,_.l5,DZ.prototype];var nu=function(){var l=_.vg.apply(this,arguments)||this;l.disableGridStateAware=!1;l.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};l.currentGridClass="";return l};
_.Z(nu,_.vg);nu.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.u6(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var l=this.gridStateAwareGetElement();_.nY(l,"grid",!0)}};
nu.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
nu.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.iJ(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
nu.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var l="grid-disabled";else{l=_.Sp.getInstance();var D=this.get("pageSubtype");l=D&&CZ8.includes(D)?"grid-disabled":l.currentSnapState_?l.currentSnapState_.className:null}(D=this.gridStateAwareGetElement())&&l!==this.currentGridClass&&(l&&_.nY(D,l,!0),this.currentGridClass&&_.nY(D,this.currentGridClass,!1),this.currentGridClass=l)};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],nu.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",String)],nu.prototype,"gridStateAwareSizingElementSelector",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],nu.prototype,"disableGridStateAware",void 0);_.E([_.Qj()],nu);_.yC=[nu.prototype,_.K$.YtActionHandlerBehavior];_.AY=new _.A7("GUIDE_TOKEN");var B0;_.W0={};B0=function(){var l=_.vg.apply(this,arguments)||this;l.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 l};
_.Z(B0,_.vg);_.W=B0.prototype;_.W.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.W.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var l=_.Jc().resolve(_.G8(_.AY));l&&(this.guidePersistentAndVisible=l.getGuidePersistentAndVisible(),this.activeEndpoint=l.getActiveEndpoint(),this.guideOpened=l.getGuideOpened(),this.miniGuideVisible=l.getMiniGuideVisible())};
_.W.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.W.handleGuideStateAction=function(l){this.guidePersistentAndVisible=l};
_.W.handleMiniGuideStateAction=function(l){this.miniGuideVisible=l};
_.W.handleGuideOpenedAction=function(l){this.guideOpened=l};
_.W.handleActiveEndpointAction=function(l){this.activeEndpoint=l};
B0.prototype.onActiveEndpointChange=B0.prototype.onActiveEndpointChange;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],B0.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],B0.prototype,"guidePersistentAndVisible",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],B0.prototype,"miniGuideVisible",void 0);_.E([_.K(),_.T("design:type",Object)],B0.prototype,"activeEndpoint",void 0);
_.E([_.Pg("activeEndpoint"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],B0.prototype,"onActiveEndpointChange",null);_.E([_.K(),_.T("design:type",Boolean)],B0.prototype,"guideOpened",void 0);_.E([_.Qj()],B0);_.W0.YtdGuideStateAwareBehavior=[];_.W0.YtdGuideStateAwareBehavior.push(B0.prototype,_.K$.YtActionHandlerBehavior);var n31=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Cu=function(){var l=_.vg.apply(this,arguments)||this;l.hoverJobId=0;l.JSC$14513_touched=!1;return l};
_.Z(Cu,_.vg);_.W=Cu.prototype;_.W.created=function(){this.useExpandableTooltip=!n31.includes(this.is)};
_.W.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.W.detached=function(){this.useExpandableTooltip=!1};
_.W.lockupOnDown=function(l){this.interactionElement&&!_.$o(_.$f(l),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.W.lockupOnUp=function(l){this.interactionElement&&!_.$o(_.$f(l),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.W.onTouchStart=function(){this.JSC$14513_touched=!0};
_.W.lockupOnMouseEnter=function(){var l=this,D=_.RG("kevlar_lockup_hover_delay",-1);this.JSC$14513_touched&&D>=0?(_.Tn.cancelJob(this.hoverJobId),this.hoverJobId=_.Tn.addJob(function(){l.lockupIsHovered=!0},8,D),this.JSC$14513_touched=!1):this.lockupIsHovered=!0};
_.W.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Tn.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.W.lockupOnPopupClosed=function(l,D){var U;((U=D.popupRenderer)==null?void 0:U.is)==="ytd-menu-popup-renderer"&&(l=D.popupRenderer.veData,D=_.t6(),l&&D&&_.rj(D,[l]))};
_.W.lockupOnLockupRequested=function(l){var D=l.detail.videoIds[0],U;l.detail&&D===((U=this.data)==null?void 0:U.videoId)&&(l.detail.returnValue=[this.data])};
_.W.lockupOnYtServiceRequestSent=function(l,D){if(l=D.actions)for(var U=0;U<l.length;U++){var n=l[U];if(n.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&D.ajaxPromise){var y=void 0,A=(y=_.M(D.endpoint,_.lc))==null?void 0:y.playlistId;y=void 0;n=(y=n.removedVideoId)!=null?y:"";p$h(_.uN(),n,A)}else n.action==="ACTION_REMOVE_VIDEO"&&D.ajaxPromise&&(A=void 0,n=(A=n.setVideoId)!=null?A:"",_.xvh(_.uN(),n))}};
_.W.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.W.lockupOnLockupEnabled=function(){if(!this.$){var l=_.Jc().resolve(_.sm).getCurrentPage(),D=this.getParentRenderer?this.getParentRenderer():void 0;_.II(new _.rc("component not ready",this.is,this.isAttached,l==null?void 0:l.is,D==null?void 0:D.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Cu.prototype.lockupOnLockupEnabled=Cu.prototype.lockupOnLockupEnabled;Cu.prototype.lockupOnLockupDisabled=Cu.prototype.lockupOnLockupDisabled;Cu.prototype.lockupOnYtServiceRequestSent=Cu.prototype.lockupOnYtServiceRequestSent;Cu.prototype.lockupOnLockupRequested=Cu.prototype.lockupOnLockupRequested;Cu.prototype.lockupOnPopupClosed=Cu.prototype.lockupOnPopupClosed;Cu.prototype.lockupOnMouseLeave=Cu.prototype.lockupOnMouseLeave;Cu.prototype.lockupOnMouseEnter=Cu.prototype.lockupOnMouseEnter;
Cu.prototype.onTouchStart=Cu.prototype.onTouchStart;Cu.prototype.lockupOnUp=Cu.prototype.lockupOnUp;Cu.prototype.lockupOnDown=Cu.prototype.lockupOnDown;_.E([_.K(),_.T("design:type",Object)],Cu.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],Cu.prototype,"lockupIsHovered",void 0);_.E([_.K(),_.T("design:type",Boolean)],Cu.prototype,"lockupTouchTriggered",void 0);_.E([_.K(),_.T("design:type",Boolean)],Cu.prototype,"useExpandableTooltip",void 0);
_.E([_.gP("#interaction"),_.T("design:type",Object)],Cu.prototype,"interactionElement",void 0);_.E([_.hj("down"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Cu.prototype,"lockupOnDown",null);_.E([_.hj("up"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Cu.prototype,"lockupOnUp",null);
_.E([_.hj("touchstart"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Cu.prototype,"onTouchStart",null);_.E([_.hj("mouseenter"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Cu.prototype,"lockupOnMouseEnter",null);_.E([_.hj("mouseleave"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Cu.prototype,"lockupOnMouseLeave",null);
_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],Cu.prototype,"lockupOnPopupClosed",null);_.E([_.hj("yt-lockup-requested"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Cu.prototype,"lockupOnLockupRequested",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],Cu.prototype,"lockupOnYtServiceRequestSent",null);_.E([_.hj("yt-disable-lockup-interaction"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Cu.prototype,"lockupOnLockupDisabled",null);
_.E([_.hj("yt-enable-lockup-interaction"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Cu.prototype,"lockupOnLockupEnabled",null);_.E([_.Qj()],Cu);_.hY=[Cu.prototype];_.yF5={YtdReduxBehavior:[]};_.yF5.YtdReduxBehavior.push.apply(_.yF5.YtdReduxBehavior,_.l5);var P0=function(){var l=_.vg.apply(this,arguments)||this;l._noAccessors=!0;l.disableNowPlaying=!1;l.disableTooltips=!1;l.useHoveredProperty=!1;l.hovered=!1;l.isThumbnailHovered_=!1;l.addBackground=_.q("kevlar_thumbnail_bg");l.nowPlaying=!1;l.disableRounding=!1;l.size="small";return l};
_.Z(P0,_.vg);_.W=P0.prototype;_.W.computeThumbnailOverlaySidePanelWidth_=function(l,D){return l-D};
_.W.computeSize=function(l,D){if(!this.disableRounding){if(!l&&!D)return"small";l=Math.max(l||0,D||0);return l>=256?"large":l>=96?"medium":"small"}};
_.W.computeFinalHoveredState_=function(l,D,U){return this.nowPlaying?!1:_.q("kevlar_thumbnail_fluid")&&l?D:U};
_.W.computeHoverOverlays_=function(l,D){return l&&D?D:void 0};
_.W.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.W.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.W.checkMiniplayer_=function(){var l;if(((l=this.data)==null?0:l.playlistSetVideoId)&&_.q("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{l=_.r3();var D=l.currentEndpoint;!this.disableNowPlaying&&D&&_.M(D,_.za)&&this.data?(D=_.M(D,_.za),this.nowPlaying=this.data.playlistId?D.playlistId===this.data.playlistId:D.videoId===this.data.videoId,this.isVideoPlaying=l==null?void 0:l.isVideoPlaying):this.nowPlaying=!1}};
P0.prototype.checkMiniplayer_=P0.prototype.checkMiniplayer_;P0.prototype.onMouseLeave_=P0.prototype.onMouseLeave_;P0.prototype.onMouseEnter_=P0.prototype.onMouseEnter_;P0.prototype.computeHoverOverlays_=P0.prototype.computeHoverOverlays_;P0.prototype.computeFinalHoveredState_=P0.prototype.computeFinalHoveredState_;P0.prototype.computeSize=P0.prototype.computeSize;P0.prototype.computeThumbnailOverlaySidePanelWidth_=P0.prototype.computeThumbnailOverlaySidePanelWidth_;
_.E([_.m(_.l5),_.T("design:type",Object)],P0.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],P0.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],P0.prototype,"height",void 0);_.E([_.K(),_.T("design:type",Boolean)],P0.prototype,"bottomSidePanel",void 0);_.E([_.K(),_.T("design:type",Number)],P0.prototype,"width",void 0);_.E([_.K(),_.T("design:type",Object)],P0.prototype,"disableNowPlaying",void 0);
_.E([_.K({selector:_.Xo}),_.T("design:type",Boolean)],P0.prototype,"miniplayerIsActive",void 0);_.E([_.K(),_.T("design:type",Object)],P0.prototype,"disableTooltips",void 0);_.E([_.K(),_.T("design:type",Object)],P0.prototype,"useHoveredProperty",void 0);_.E([_.K(),_.T("design:type",Object)],P0.prototype,"hovered",void 0);_.E([_.K(),_.T("design:type",Object)],P0.prototype,"isThumbnailHovered_",void 0);
_.E([_.K({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.T("design:type",Boolean)],P0.prototype,"finalHoveredState_",void 0);_.E([_.K({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.T("design:type",Number)],P0.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],P0.prototype,"addBackground",void 0);
_.E([_.K({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.T("design:type",Object)],P0.prototype,"hoverOverlays_",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],P0.prototype,"nowPlaying",void 0);_.E([_.K(),_.T("design:type",Boolean)],P0.prototype,"isVideoPlaying",void 0);_.E([_.K(),_.T("design:type",Object)],P0.prototype,"disableRounding",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.T("design:type",Object)],P0.prototype,"size",void 0);_.E([_.hj("mouseenter"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],P0.prototype,"onMouseEnter_",null);_.E([_.hj("mouseleave"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],P0.prototype,"onMouseLeave_",null);
_.E([_.Pg("data","disableNowPlaying","miniplayerIsActive"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],P0.prototype,"checkMiniplayer_",null);_.E([_.Qj()],P0);var AF5=[P0.prototype];_.b5={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(l,D){return l+":"+_.Ho(D)},
getPlayerListener_:function(l,D,U){l=this.getPlayerListenerKey_(l,D);D=this.playerListeners_.get(l);U&&this.playerListeners_.delete(l);return D},
savePlayerListener_:function(l,D){var U=D.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(l,D),U);return U},
listenToPlayerEvent:function(l,D,U){U=this.savePlayerListener_(D,U);l.addEventListener(D,U)},
listenToPlayerEvents:function(l,D){D.forEach(function(U,n){this.listenToPlayerEvent(l,n,U)}.bind(this))},
unlistenFromPlayerEvent:function(l,D,U){U=this.getPlayerListener_(D,U,!0);l.removeEventListener(D,U)},
unlistenFromPlayerEvents:function(l,D){D.forEach(function(U,n){this.unlistenFromPlayerEvent(l,n,U)}.bind(this))}}};
_.gZ=function(){};_.Wa7=new _.A7("PLAYER_API_TOKEN");var rl9=!1,Nwg,fHN=!1,EVN;var Yo=function(l,D,U,n,y){_.xT.call(this);var A=this;this.playerId=D;this.webPlayerContextConfig=n;this.fdV=y;this.dCc=!1;this.api={};this.hBO=this.c8O=null;this.jIW=new _.cS;this.fZ={};this.n7O=this.urW=this.elementId=this.lqh=this.config=null;this.qe6=!1;this.eQ=this.tSI=null;this.qWO={};this.hCE=["onReady"];this.lastError=null;this.srl=NaN;this.lJI={};this.o8i=0;this.ws=this.targetElement=l;_.m7(this,this.jIW);B4h(this);U?this.o8i=setTimeout(function(){A.loadNewVideoConfig(U)},0):n&&(C7z(this),
hJm(this))};
_.Z(Yo,_.xT);Yo.prototype.getId=function(){return this.playerId};
Yo.prototype.loadNewVideoConfig=function(l){if(!this.isDisposed()){this.o8i&&(clearTimeout(this.o8i),this.o8i=0);var D=l||{};D instanceof rgh||(D=new rgh(D));this.config=D;this.setConfig(l);hJm(this);this.isReady()&&P77(this)}};
var C7z=function(l){var D;l.webPlayerContextConfig?D=l.webPlayerContextConfig.rootElementId:D=l.config.attrs.id;l.elementId=D||l.elementId;l.elementId==="video-player"&&(l.elementId=l.playerId,l.webPlayerContextConfig?l.webPlayerContextConfig.rootElementId=l.playerId:l.config.attrs.id=l.playerId);var U;((U=l.ws)==null?void 0:U.id)===l.elementId&&(l.elementId+="-player",l.webPlayerContextConfig?l.webPlayerContextConfig.rootElementId=l.elementId:l.config.attrs.id=l.elementId)};
Yo.prototype.setConfig=function(l){this.lqh=l;this.config=bZ7(l);C7z(this);if(!this.urW){var D;this.urW=g3h(this,((D=this.config.args)==null?void 0:D.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var U;if((U=this.config)==null?0:U.attrs)l=this.config.attrs,(D=l.width)&&this.ws&&(this.ws.style.width=rU(Number(D)||D,!0)),(l=l.height)&&this.ws&&(this.ws.style.height=rU(Number(l)||l,!0))};
Yo.prototype.getConfig=function(){return this.lqh};
var P77=function(l){if(l.config&&l.config.loaded!==!0)if(l.config.loaded=!0,!l.config.args||l.config.args.autoplay!=="0"&&l.config.args.autoplay!==0&&l.config.args.autoplay!==!1){var D;l.api.loadVideoByPlayerVars((D=l.config.args)!=null?D:null)}else l.api.cueVideoByPlayerVars(l.config.args)},v3y=function(l){var D=!0,U=l.getPlayerElement();
U&&l.config&&(D=U.dataset.version===ugz(l));return D&&!!_.UG("yt.player.Application.create")},hJm=function(l){if(!l.isDisposed()&&!l.qe6){var D=v3y(l);
if(D&&(l.getPlayerElement()?"html5":null)==="html5")l.n7O="html5",l.isReady()||QCr(l);else if(Gfh(l),l.n7O="html5",D&&l.eQ&&l.targetElement)l.targetElement.appendChild(l.eQ),QCr(l);else{l.config&&(l.config.loaded=!0);var U=!1;l.tSI=function(){U=!0;var n=JF5(l,"player_bootstrap_method")?_.UG("yt.player.Application.createAlternate")||_.UG("yt.player.Application.create"):_.UG("yt.player.Application.create");var y=l.config?bZ7(l.config):void 0;n&&n(l.targetElement,y,l.webPlayerContextConfig,l.fdV);QCr(l)};
l.qe6=!0;D?l.tSI():(_.pI(ugz(l),l.tSI),(D=LaH(l))&&BA3(D||""),qfk(l)&&!U&&_.vG("yt.player.Application.create",null))}}};
Yo.prototype.getPlayerElement=function(){var l=_.HK(document,this.elementId);!l&&this.ws&&this.ws.querySelector&&(l=this.ws.querySelector("#"+this.elementId));return l};
var QCr=function(l){if(!l.isDisposed()){var D=l.getPlayerElement(),U=!1;D&&D.getApiInterface&&D.getApiInterface()&&(U=!0);if(U){l.qe6=!1;if(!JF5(l,"html5_remove_not_servable_check_killswitch")){var n;if((D==null?0:D.isNotServable)&&l.config&&(D==null?0:D.isNotServable((n=l.config.args)==null?void 0:n.video_id)))return}M$5(l)}else l.srl=setTimeout(function(){QCr(l)},50)}},M$5=function(l){B4h(l);
l.dCc=!0;var D=l.getPlayerElement();if(D){l.c8O=RJg(l,D,"addEventListener");l.hBO=RJg(l,D,"removeEventListener");var U=D.getApiInterface();U=U.concat(D.getInternalApiInterface());for(var n=l.api,y=0;y<U.length;y++){var A=U[y];n[A]||(n[A]=RJg(l,D,A))}}for(var C in l.fZ)l.fZ.hasOwnProperty(C)&&l.c8O&&l.c8O(C,l.fZ[C]);P77(l);l.urW&&l.urW(l.api);l.jIW.publish("onReady",l.api)},RJg=function(l,D,U){var n=D[U];
return function(){var y=_.EW.apply(0,arguments);try{return l.lastError=null,n.apply(D,y)}catch(A){if(U!=="sendAbandonmentPing")throw A.params=U,l.lastError=A,y=new _.rc("PlayerProxy error in method call",{error:A,method:U,playerId:l.playerId}),y.level="WARNING",y;}}},B4h=function(l){l.dCc=!1;
if(l.hBO)for(var D in l.fZ)l.fZ.hasOwnProperty(D)&&l.hBO(D,l.fZ[D]);for(var U in l.lJI)l.lJI.hasOwnProperty(U)&&clearTimeout(Number(U));l.lJI={};l.c8O=null;l.hBO=null;D=l.api;for(var n in D)D.hasOwnProperty(n)&&(D[n]=null);D.addEventListener=function(y,A){l.addEventListener(y,A)};
D.removeEventListener=function(y,A){l.removeEventListener(y,A)};
D.destroy=function(){l.dispose()};
D.getLastError=function(){return l.getLastError()};
D.getPlayerType=function(){return l.getPlayerType()};
D.getCurrentVideoConfig=function(){return l.getConfig()};
D.loadNewVideoConfig=function(y){l.loadNewVideoConfig(y)};
D.isReady=function(){return l.isReady()}};
Yo.prototype.isReady=function(){return this.dCc};
Yo.prototype.addEventListener=function(l,D){var U=this;this.isDisposed();var n=g3h(this,D);n&&(_.rl(this.hCE,l)||this.fZ[l]||(D=ZZy(this,l),this.c8O&&this.c8O(l,D)),this.jIW.subscribe(l,n),l==="onReady"&&this.isReady()&&setTimeout(function(){n(U.api)},0))};
Yo.prototype.removeEventListener=function(l,D){this.isDisposed()||(D=g3h(this,D))&&this.jIW.unsubscribe(l,D)};
var g3h=function(l,D){var U=D;if(typeof D==="string"){if(l.qWO[D])return l.qWO[D];U=function(){var n=_.EW.apply(0,arguments),y=_.UG(D);if(y)try{y.apply(_.nC,n)}catch(A){throw n=new _.rc("PlayerProxy error when executing callback",{error:A}),n.level="ERROR",n;}};
l.qWO[D]=U}return U?U:null},ZZy=function(l,D){var U=function(n){var y=function(){l.isDisposed();
if(!l.isDisposed())try{l.jIW.publish(D,n!=null?n:void 0)}catch(h){var C=new _.rc("PlayerProxy error when creating global callback",{error:h.message,event:D,playerId:l.playerId,data:n,originalStack:h.stack,componentStack:h.componentStack});C.level="WARNING";throw C;}};
if(JF5(l,"web_player_publish_events_immediately"))y();else{var A=setTimeout(function(){y();_.we.remove(l.lJI,String(A))},0);
_.we.add(l.lJI,String(A),!0)}};
return l.fZ[D]=U};
Yo.prototype.getPlayerType=function(){return this.n7O||(this.getPlayerElement()?"html5":null)};
Yo.prototype.getLastError=function(){return this.lastError};
var Gfh=function(l){l.cancel();B4h(l);l.n7O=null;l.config&&(l.config.loaded=!1);var D=l.getPlayerElement();D&&(v3y(l)||!qfk(l)?l.eQ=D:(D&&D.destroy&&D.destroy(),l.eQ=null));l.targetElement&&_.cl(l.targetElement)};
Yo.prototype.cancel=function(){this.tSI&&_.jxB(ugz(this),this.tSI);clearTimeout(this.srl);this.qe6=!1};
Yo.prototype.disposeInternal=function(){Gfh(this);if(this.eQ&&this.config&&this.eQ.destroy)try{this.eQ.destroy()}catch(D){var l=new _.rc("PlayerProxy error during disposal",{error:D});l.level="ERROR";throw l;}this.qWO=null;for(l in this.fZ)this.fZ.hasOwnProperty(l)&&delete this.fZ[l];this.lqh=this.config=this.api=null;delete this.targetElement;delete this.ws;_.xT.prototype.disposeInternal.call(this)};
var qfk=function(l){var D,U;l=(D=l.config)==null?void 0:(U=D.args)==null?void 0:U.fflags;return!!l&&l.indexOf("player_destroy_old_version=true")!==-1},ugz=function(l){return l.webPlayerContextConfig?l.webPlayerContextConfig.jsUrl:(l=l.config.assets)?l.js:""},LaH=function(l){return l.webPlayerContextConfig?l.webPlayerContextConfig.cssUrl:(l=l.config.assets)?l.css:""},JF5=function(l,D){if(l.webPlayerContextConfig)var U=l.webPlayerContextConfig.serializedExperimentFlags;
else{var n;if((n=l.config)==null?0:n.args)U=l.config.args.fflags}return(U||"").split("&").includes(D+"=true")},bZ7=function(l){for(var D={},U=_.B(Object.keys(l)),n=U.next();!n.done;n=U.next()){n=n.value;
var y=l[n];D[n]=typeof y==="object"?_.we.clone(y):y}return D};var Oo_={},YOG="player_uid_"+(Math.random()*1E9>>>0);var u5=function(l,D,U,n,y,A){D=D===void 0?document.createElement("div"):D;this.webPlayerContextConfig=l;this.container=D;this.commandResolver=U;this.apiResolver=lC3();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Au;n||A?eJ8(this):m67(this);this.pendingPlayerResponse=n;this.pendingWatchNextResponse=y;this.pendingPlayerVars=A;abk(this)};
u5.prototype.loadVideoWithPlayerResponse=function(l,D,U){this.loadVideo(l,D,U)};
u5.prototype.loadVideoWithPlayerVars=function(l){return this.loadVideo(void 0,void 0,l)};
u5.prototype.destroy=function(l){if(l=_.HK(document,l))l=YOG+"_"+_.Ho(l),(l=Oo_[l])&&l.dispose()};
var Xsr=function(l,D){var U;_.P(function(n){if(n.nextAddress==1)return l.pendingWatchNextResponse=D,l.synchronousApi?(U=l.synchronousApi,n.jumpTo(2)):n.yield(l.api,3);n.nextAddress!=2&&(U=n.yieldResult);if(!t$v(l,U))return n.return();l.pendingWatchNextResponse&&(U.updateVideoData({raw_watch_next_response:l.pendingWatchNextResponse}),l.pendingWatchNextResponse=void 0);_.Kz(n)})},t$v=function(l,D){var U;
if(!(D==null?0:(U=D.isReady)==null?0:U.call(D))){var n;_.II(new _.rc("playerApi is falsey",{synchronousApi:l.synchronousApi,apiResolved:l.apiResolver.resolved,playerApiUndefined:D===void 0,playerApiNull:D===null,playerApiReady:(D==null?void 0:(n=D.isReady)==null?void 0:n.call(D))===!0,playerApiMethods:D?Object.keys(D):[]}));return!1}return!0},Sf_=function(l,D){if(typeof l[D]==="function")return l[D]()},kf7=function(l){var D=window,U,n=(U=D.ytplayer)==null?void 0:U.bootstrapPlayerContainer;
if((U=n==null?void 0:n.firstElementChild)&&_.IP(U,"html5-video-player")){var y,A,C=(y=D.ytplayer)==null?void 0:(A=y.bootstrapWebPlayerContextConfig)==null?void 0:A.contextId;y=l.webPlayerContextConfig.contextId;if(C&&C===y){n!==l.container&&(n=!1,Sf_(U,"getPlayerState")===2&&(n=!0),l.container.appendChild(U),n||Sf_(U,"playVideo"));var h;if((h=D.ytplayer)==null?0:h.bootstrapPlayerResponse)l.bootstrapPlayerResponse=D.ytplayer.bootstrapPlayerResponse}}},abk=function(l){var D,U,n,y,A;
_.P(function(C){if(C.nextAddress==1)return l.pageReadyOrDataAvailable?C.jumpTo(2):C.yield(l.pageReadyOrDataAvailableResolver.promise,2);if(C.nextAddress!=4)return!_.q("kevlar_player_unified_player_loading")||z4c()&&$X9()?C.jumpTo(4):C.yield(IHd(),4);kf7(l);if(l.pendingPlayerResponse||l.pendingPlayerVars)D=HoB(l.pendingPlayerResponse,l.pendingWatchNextResponse,l.pendingPlayerVars),l.pendingPlayerResponse&&l.pendingPlayerResponse===l.bootstrapPlayerResponse&&(D.loaded=!0),l.bootstrapPlayerResponse=
void 0;U=iJ_(l.container,D,l.webPlayerContextConfig);((n=D)==null?0:n.loaded)&&l.pendingWatchNextResponse?(Xsr(l,l.pendingWatchNextResponse),l.pendingPlayerResponse=void 0,l.pendingPlayerVars=void 0):d6y(l);y=function(h){U.removeEventListener("onReady",y);l.synchronousApi=h;l.apiResolver.resolve(h)};
U.addEventListener("onReady",y);l.commandResolver!==void 0&&(A=l.commandResolver,U.addEventListener("innertubeCommand",function(h){A(h)}));
_.Kz(C)})};
u5.prototype.loadVideo=function(l,D,U){var n=this,y,A,C,h,b,u,Q,G,J;return _.P(function(L){if(L.nextAddress==1)return n.pendingPlayerResponse=l,n.pendingWatchNextResponse=D,n.pendingPlayerVars=U,eJ8(n),n.synchronousApi?(y=n.synchronousApi,L.jumpTo(2)):L.yield(n.api,3);L.nextAddress!=2&&(y=L.yieldResult);if(!t$v(n,y))return L.return(new Promise(function(){}));
C=new Promise(function(R){A=R});
h=function(){var R=y.getPlayerResponse();R&&(y.removeEventListener("onVideoDataChange",h),A(R))};
y.addEventListener("onVideoDataChange",h);if(n.pendingPlayerResponse||n.pendingPlayerVars)n.pendingPlayerResponse&&n.pendingPlayerResponse===n.bootstrapPlayerResponse?(A(n.pendingPlayerResponse),n.pendingWatchNextResponse&&Xsr(n,n.pendingWatchNextResponse)):(b=HoB(n.pendingPlayerResponse,n.pendingWatchNextResponse,n.pendingPlayerVars),(J=(u=n.pendingPlayerResponse)==null?void 0:(Q=u.playerConfig)==null?void 0:(G=Q.playbackStartConfig)==null?void 0:G.startPaused)?y.cueVideoByPlayerVars(b.args):y.loadVideoByPlayerVars(b.args)),
d6y(n),n.bootstrapPlayerResponse=void 0;return L.return(C)})};
var m67=function(l){if(document.readyState==="complete"||document.readyState==="interactive")eJ8(l);else{var D=function(){document.removeEventListener("DOMContentLoaded",D);eJ8(l)};
document.addEventListener("DOMContentLoaded",D)}},eJ8=function(l){l.pageReadyOrDataAvailable=!0;
l.pageReadyOrDataAvailableResolver.resolve()},d6y=function(l){l.pendingPlayerResponse=void 0;
l.pendingWatchNextResponse=void 0;l.pendingPlayerVars=void 0};
_.QP.Object.defineProperties(u5.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var v0=function(l){wC.call(this,l===void 0?"document_active":l);var D=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(U){D.transition("document_disposed",{event:U})});
window.addEventListener("beforeunload",function(U){D.transition("document_disposed_preventable",{event:U})});
window.addEventListener("unload",function(U){D.transition("document_disposed",{event:U});D.hasRun=new Map})};
_.Z(v0,wC);
v0.prototype.runPreventableDispose=function(l,D){if(!this.hasRun.get("document_disposed_preventable")){l(D==null?void 0:D.event);var U,n;if((D==null?0:(U=D.event)==null?0:U.defaultPrevented)||(D==null?0:(n=D.event)==null?0:n.returnValue)){D.event.returnValue||(D.event.returnValue=!0);D.event.defaultPrevented||D.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")};
v0.prototype.runDispose=function(l,D){this.hasRun.get("document_disposed")?this.transition("document_active"):(l(D==null?void 0:D.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
v0.prototype.runFlush=function(l,D){l(D==null?void 0:D.event);this.transition("document_active")};
v0.prototype.runActive=function(){};var QC=function(l){wC.call(this,l===void 0?"document_visibility_unknown":l);var D=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(U){document.visibilityState==="visible"?D.transition("document_visible",{event:U}):D.transition("document_hidden",
{event:U})});
_.q("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(U){D.transition("document_backgrounded",{event:U})}),window.addEventListener("focus",function(U){D.transition("document_foregrounded",{event:U})}))};
_.Z(QC,wC);QC.prototype.runVisible=function(l,D){l(D==null?void 0:D.event);_.q("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
QC.prototype.runHidden=function(l,D){l(D==null?void 0:D.event);_.q("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
QC.prototype.runBackgrounded=function(l,D){l(D==null?void 0:D.event)};
QC.prototype.runForegrounded=function(l,D){l(D==null?void 0:D.event)};var Gw=function(){this.teardownLifecycle=new v0;this.visibilityLifecycle=new QC};
Gw.prototype.install=function(){var l=_.EW.apply(0,arguments),D=this;l.forEach(function(U){D.teardownLifecycle.install(U)});
l.forEach(function(U){D.visibilityLifecycle.install(U)})};var JY=function(){Gw.call(this);var l={};this.install((l.document_disposed={callback:this.abortSlisAndFlush},l));_.q("combine_ve_grafts")&&(l={},this.install((l.document_disposed={callback:this.flushInteractionLoggingAttachVes},l)));l={};this.install((l.flush_logs={callback:this.logFinalPayload},l));_.q("web_log_cfg_cee_ks")||_.oI(_.Tn,Ka1)};
_.Z(JY,Gw);var D7s=function(){JY.loggingInstance||(JY.loggingInstance=new JY);return JY.loggingInstance};
JY.prototype.logFinalPayload=function(){if(_.q("web_fp_via_jspb")){var l=new jJ5,D=_.t6();D&&_.c7(l,1,D);D=_.q("jspb_sparse_encoded_pivot")?new F0([{}]):new F0;_.tk(D,380,FFr,l);axg("finalPayload",D);_.q("web_fp_via_jspb_and_json")&&_.Na("finalPayload",{csn:_.t6()})}else _.Na("finalPayload",{csn:_.t6()})};
JY.prototype.abortSlisAndFlush=function(){mY7(g3);uc!=null&&uc.flush()};
JY.prototype.flushInteractionLoggingAttachVes=function(){Np_(_.he())};
var Ka1=function(){var l=_.H3("CLIENT_EXPERIMENT_EVENTS");if(l){var D=Dro();l=_.B(l);for(var U=l.next();!U.done;U=l.next())U=U.value,D(U)&&_.Na("genericClientExperimentEvent",{eventType:U});delete _.TZ.CLIENT_EXPERIMENT_EVENTS}};var cF5={};
cF5.YtPlayerBehavior=[_.b5.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 l=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Au;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;U7B(function(){l.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.YY(this,"pan-down"),_.q("kevlar_pinch_fullscreen")&&_.Fc().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.q("kevlar_pinch_fullscreen")&&_.Fc().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(l,D,U){var n=this;Om(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Om(!1,"MainAppPlayer already created.");else{var y=_.q("kevlar_player_container_query_killswitch")?this.$.container:_.iJ(this.hostElement).querySelector("#container");this.mainAppPlayer_=new u5(this.getWebPlayerContextConfig_(),y,function(A){return _.Ae(A,n.hostElement)},l,D,U);
this.mainAppPlayer_.api.then(function(A){n.player_=A;n.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Eey.resolve(A)})}},
loadVideoWithPlayerResponse:function(l,D){var U=this;if(this.useUnifiedPlayer_()){var n=this.watchNextData,y,A=(y=l.videoDetails)==null?void 0:y.videoId,C,h,b;(y=(C=this.watchNextData)==null?void 0:(h=C.currentVideoEndpoint)==null?void 0:(b=h.watchEndpoint)==null?void 0:b.videoId)&&A!=y&&(n=void 0,_.q("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(l,n,D):this.createMainAppPlayer_(l,n,D);this.mainAppPlayer_.api.then(function(){_.O9(U.hostElement,
"yt-player-updated")})}else this.update(FI9(l,D))},
loadVideoWithPlayerVars:function(l){var D=this;this.useUnifiedPlayer_()?(_.q("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(l):this.createMainAppPlayer_(void 0,void 0,l),this.mainAppPlayer_.api.then(function(){_.O9(D.hostElement,"yt-player-updated")})):this.update({args:l})},
update:function(l){var D=this;if(this.useUnifiedPlayer_())Om(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(l);var U=sxl(l.args);U&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==U&&Object.assign(l.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(l).then(function(n){_.O9(D.hostElement,"yt-player-updated",_.q("kevlar_player_updated_obsolete_player_killswitch")?
n:void 0)})}_.Tj(new _.rc("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(D.getPlayerPromise(),2);U=n.yieldResult;if(!U)throw Error("vh");l&&D.updatePlayerPlaylist_(l);_.Kz(n)})},
acquireApi_:function(l){var D=this;if(this.useUnifiedPlayer_())Om(!1,"Invalid method call in kevlar_unified_player.");else return _.Tn.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Om(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(U){D.shouldAutoplay_(l)?U.loadVideoByPlayerVars(l.args):U.cueVideoByPlayerVars(l.args)})):this.initPlayerPromise_=this.initPlayerContainer_(l),this.initPlayerPromise_},
initPlayerContainer_:function(l){var D=this;if(this.useUnifiedPlayer_())Om(!1,"Invalid method call in kevlar_unified_player.");else return Om(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.II(Error("wh")),Om(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.q("kevlar_player_container_query_killswitch")?this.$.container:_.iJ(this.hostElement).querySelector("#container"),IHd().then(function(){var U=D.initPlayer_(l);D.playerResolver_.resolve(U);
return U})},
onPlayerReady_:function(l,D){this.useUnifiedPlayer_()?Om(!1,"Invalid method call in kevlar_unified_player."):(l.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Eey.resolve(l),D(l))},
maybeCallApiMethodOnElement_:function(l,D){if(typeof l[D]==="function")return l[D]()},
maybeAdoptBootstrapPlayer_:function(){var l=window,D,U=(D=l.ytplayer)==null?void 0:D.bootstrapPlayerContainer;if((D=U==null?void 0:U.firstElementChild)&&D.classList.contains("html5-video-player")){var n,y,A=(n=l.ytplayer)==null?void 0:(y=n.bootstrapWebPlayerContextConfig)==null?void 0:y.contextId;n=this.getWebPlayerContextConfig_().contextId;if(A&&A===n){U!==this.playerContainer_&&(U=!1,this.maybeCallApiMethodOnElement_(D,"getPlayerState")===2&&(U=!0),this.playerContainer_.appendChild(D),U||this.maybeCallApiMethodOnElement_(D,
"playVideo"));var C;if((C=l.ytplayer)==null?0:C.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=l.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(l){var D=this;if(this.useUnifiedPlayer_())Om(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(U){D.maybeAdoptBootstrapPlayer_();var n=l?oV9(l):void 0;n&&n==D.bootstrapPlayerResponse_&&(l.loaded=!0);n=D.playerContainer_;var y=D.getWebPlayerContextConfig_();n=iJ_(n,l,y);D.player_=n;D.onPlayerReadyEvent_=D.onPlayerReady_.bind(D,D.player_,U);D.player_.addEventListener("onReady",D.onPlayerReadyEvent_);D.player_.addEventListener("innertubeCommand",
D.onPlayerInnerTubeCommand_.bind(D))})},
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(l){l.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(l){l.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var l=_.Jc().resolve(_.sm).getCurrentPage();l&&l.getScrollTop()<=0?_.YY(this,"pan-down"):_.YY(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(l){l.isFullscreen()||l.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(l){l.isFullscreen()&&l.toggleFullscreen()})},
updatePlayerPlaylist_:function(l){var D=this,U,n,y;return _.P(function(A){if(A.nextAddress==1)return U=_.Jc().resolve(_.G8(_.Cd)),n=!!(U&&U.playlistComponent&&U.playlistComponent.loopOn),A.yield(D.getPlayerPromise(),2);var C=y=A.yieldResult,h=C.updatePlaylist,b=[];if(_.q("kevlar_player_playlist_use_local_index")){var u,Q;var G=(Q=(u=l.localCurrentIndex)!=null?u:l.currentIndex)!=null?Q:0}else{var J;G=(J=l.currentIndex)!=null?J:0}if(l.contents)for(u=0;u<l.contents.length;u++)if((Q=l.contents[u])&&Q.playlistPanelVideoRenderer)if(sH$(Q)){Q=
Q.playlistPanelVideoRenderer;J="";Q.shortBylineText&&(J=_.Nl(Q.shortBylineText));var L="";Q.title?L=_.Nl(Q.title):Q.unplayableText&&(L=_.Nl(Q.unplayableText));b.push({author:J,title:L,encrypted_id:Q.videoId})}else u<G&&--G;h.call(C,{index:G,list:l.playlistId?l.playlistId:"",loop:n,playlist_title:l.title,playlist_length:b.length,video:b,fetch:0,external_list:"1",title:l.title?l.title:"",playlist_author:l.ownerName?_.Nl(l.ownerName):void 0});_.Kz(A)})},
focusOnPlayer:function(){_.u6(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var l=this.playerContainer_.querySelector(".html5-video-player");l&&(_.Lu(_.Jc().resolve(_.vK)),l.focus())}})},
preparePlayer:function(){var l=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(D){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")D();else{var U=function(){document.removeEventListener("DOMContentLoaded",U);D()};
document.addEventListener("DOMContentLoaded",U)}})).then(function(){return IHd()}).then(function(){l.initPlayerPromise_||l.preparePlayerJobId_||(l.preparePlayerJobId_=_.oI(_.Tn,function(){l.initPlayerPromise_||(l.initPlayerPromise_=l.initPlayerContainer_())}))}):_.Tj(new _.rc("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(l){this.useUnifiedPlayer_()?Om(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(l)||(l.args.autoplay="0")},
shouldAutoplay_:function(l){if(this.useUnifiedPlayer_())Om(!1,"Invalid method call in kevlar_unified_player.");else{var D=this.get("args.el",l);return D&&D!="detailpage"&&this.isMiniplayerActive_()||D&&(D=="sponsorshipsoffer"||D=="handlesclaiming")&&this.get("args.autoplay",l)=="0"?!1:(l=oV9(l))&&this.get("playerConfig.playbackStartConfig.startPaused",l)?!1:!0}},
isMiniplayerActive_:function(){return _.Jc().resolve(_.kq).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var l=this.getPlayer();if(l){var D=l.getPlayerState();_.q("kevlar_player_check_ad_state_on_stop")&&(D=l.getPlayerState(l.getPresentingPlayerType()));D!=5&&l.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(l,D,U){U=U===void 0?!1:U;var n=this,y,A,C,h;return _.P(function(b){if(b.nextAddress==1)return D||(D=n.hostElement),y=n.useUnifiedPlayer_()?!!n.mainAppPlayer_:!!n.initPlayerPromise_,y?b.yield(n.getPlayerPromise(),2):(U?l.insertBefore(D,l.firstChild):l.appendChild(D),b.return());A=b.yieldResult;C=A.getPlayerState(A.getPresentingPlayerType());h=!1;if(C==-1||C==1||C==3)h=!0;U?l.insertBefore(D,l.firstChild):l.appendChild(D);h&&A.playVideo();A.setSize(NaN,NaN);_.Kz(b)})},
watchNextDataChanged_:function(l){var D=this;l&&(this.useUnifiedPlayer_()&&_.q("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Xsr(this.mainAppPlayer_,l):this.getPlayerPromise().then(function(U){U.updateVideoData(D.computeWatchNextPlayerVars_(l))}))},
computeWatchNextPlayerVars_:function(l){if(this.useUnifiedPlayer_()&&_.q("kevlar_unified_player_update_watch_next_killswitch"))Om(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:l}},
maybeSendAbandonmentPing_:function(){var l=this.getPlayer();l&&l.getPlayerState()!=5&&l.getPlayerState()!=0&&l.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var l=_.H3("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(l=Object.assign({},l),l.rootElementId=this.playerId);l.serializedExperimentIds&&l.serializedExperimentFlags||_.II(Error("xh"));return l},
hasWebPlayerContextConfig_:function(){return!!_.H3("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(l){this.useUnifiedPlayer_()?Om(!1,"Invalid method call in kevlar_unified_player."):_.Ae(l,this.hostElement)},
useUnifiedPlayer_:function(){var l=_.q("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.q("kevlar_unified_player")||l}}];var psy={};psy.YtPlaylistPanelBehavior=[_.Y.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(l){l=l.detail;if(l.actions.loop!=void 0||l.actions["yt-icons:loop"]!=void 0)this.loopOn=l.actions.loop||l.actions["yt-icons:loop"];if(l.actions.shuffle!=void 0||l.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=l.actions.shuffle||l.actions["yt-icons:shuffle"]},
setMenuData_:function(l){if(!l||!l.playlistButtons||l.isInfinite)return null;for(var D=l.playlistButtons.menuRenderer.topLevelButtons,U=D.length,n=0;n<U;n++)if(D[n].toggleButtonRenderer){var y=D[n].toggleButtonRenderer;y.defaultIcon.iconType=="LOOP"&&this.loopOn?y.isToggled=this.loopOn:y.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(y.isToggled=this.shuffleOn)}return l.playlistButtons}}];_.qn={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(l,D,U){var n=this.getClickTarget_(D);if(n&&this.isClickAllowed_(n)){D.preventDefault();l=(0,_.we.unsafeClone)(l);var y=this.getContainerBoundingRect();D=this.getRelativeClickXy_(D,y);this.expandEndpointUrlMacros_(l,{NX:D[0],NY:D[1],NB:n.code});U&&this.truncateWebCommendMetadataUrl_(l);_.O9(this.hostElement,"yt-navigate",{endpoint:l})}},
getClickTarget_:function(l){if(!this.clickTargetMap)return null;l=_.$f(l)||[];l=_.B(l);for(var D=l.next();!D.done;D=l.next()){D=D.value;if(D===_.iJ(this.hostElement).querySelector("#menu"))break;if(D=this.clickTargetMap.get(D.id))return D}return null},
getRelativeClickXy_:function(l,D){var U=Math.round(l.detail.x-D.left);l=Math.round(l.detail.y-D.top);return U<0||l<0?[null,null]:[U,l]},
getContainerBoundingRect:function(){return _.iJ(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(l,D){for(var U=_.B(l.loggingUrls||[]),n=U.next();!n.done;n=U.next())n=n.value,n.baseUrl&&(n.baseUrl=byo(n.baseUrl,D));l.urlEndpoint&&l.urlEndpoint.url&&(l.urlEndpoint.url=byo(l.urlEndpoint.url,D));l.commandMetadata&&l.commandMetadata.webCommandMetadata&&l.commandMetadata.webCommandMetadata.url&&(l.commandMetadata.webCommandMetadata.url=byo(l.commandMetadata.webCommandMetadata.url,D))},
truncateWebCommendMetadataUrl_:function(l){if(l.commandMetadata&&l.commandMetadata.webCommandMetadata&&l.commandMetadata.webCommandMetadata.url){var D=l.commandMetadata.webCommandMetadata.url,U=D.indexOf("&pp=");if(U>0){var n=D.indexOf("&",U+1);l.commandMetadata.webCommandMetadata.url=n>U&&n<D.length?D.slice(0,U)+D.slice(n):D.slice(0,U)}}},
configureClickTargets:function(l,D,U){this.containerId=l;this.clickTargetMap=new Map;l=_.B(D);for(D=l.next();!D.done;D=l.next())if(D=D.value,D.location){var n=U.get(D.location);n&&(_.nY(_.iJ(this.hostElement).querySelector("#"+n),"yt-simple-endpoint",this.isClickAllowed_(D)),this.clickTargetMap.set(n,D))}},
isClickAllowed_:function(l){return l.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||l.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||l.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||l.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Mn={};
_.Mn.YtLazyListBehavior=[_.ua.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 l=(this.constructor.generatedFrom||this).observers;l||(l=[]);l.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
l}},
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 l=this.renderElementsOutsideVisibleArea_;l&&(c0v(l,4),l.processSignal())},
deepLazyListObserver_:function(l){var D=this;if(l){var U=l.value||[];if(this.itemsPath==l.path){var n=this.nonDeferredItemCount;l=0;n>-1&&U.length>n&&(l=_.H3("REMAINING_DOVA_DEFERRED_CHUNKS",-1));l>0?(n>0&&(n=U.slice(0,n),this.setInitialItemsOnDataChanged(n)),(n=this.renderElementsOutsideVisibleArea_)?n.cancel():(n=this.renderElementsOutsideVisibleArea_=new _.Q6(2,"eocs"),_.vt_(window,"scroll",function(){return D.renderDeferredElements()})),_.G9(n,function(){D.setInitialItemsOnDataChanged(U)}),_.IN("REMAINING_DOVA_DEFERRED_CHUNKS",
l-1)):this.setInitialItemsOnDataChanged(U)}else if(this.itemsPath+".splices"==l.path)this.onItemsUpdated_(U);
else n="shownItems"+l.path.substr(this.itemsPath.length),this.useSignals&&n==="shownItems.length"||this.notifyPath(n,l.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(l){l&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(l),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(l){l=l.indexSplices;for(var D=0,U=l.length;D<U;D++){var n=l[D];if(n.index<this.shownCount&&(n.removed&&this.splice("shownItems",n.index,n.removed.length),n.addedCount)){var y=n.object.slice(n.index,n.index+n.addedCount);n=["shownItems",n.index,0];n.push.apply(n,y);this.splice.apply(this,n)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(l){this.cancelPendingTasks_();l||(l=[]);this.items_=l;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&&(_.il("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.u6(this,this.tryRenderChunk_)))},
fillRange_:function(l,D){this.canShowMore&&this.items_&&(l=this.items_.slice(l,D),l.unshift("shownItems"),this.push.apply(this,l),this.shownCount=D,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var l=this;this.canShowMore&&_.Fs(this,"renderChunk",function(){l.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.il("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Ji(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var l=this.renderElementsOutsideVisibleArea_;l&&(l.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var l=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(l-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=l;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(l){return Math.ceil(1E3/l)},
onCanShowMoreUpdated_:function(l){this.data&&this.items_!==null&&(l?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(l){!this.shouldUseTaskManager()&&this.data&&(!l&&this.canShowMore?(_.R_K(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):l&&this.partiallyRenderedItems_.has(this.items_)&&(_.q("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var eK;_.RH={};
eK=function(){var l=_.vg.apply(this,arguments)||this;l.atStart=!0;l.atEnd=!0;l.startIndex=0;l.endIndex=0;l.scrollCount=0;l.initialStartIndex=0;l.disableScrollEventListener=!1;l.useFloorScrolling=!1;l.isSearch=!1;l.dragging=!1;l.dragMouseStart=0;l.dragOffsetStart=0;l.disableWheelScroll=!1;l.centerListItems=!1;l.offset=0;l.minComponentWidth=0;l.marginWidthRight=0;l.marginWidthLeft=0;l.setButtonsStateRequested=!1;l.itemsVisibilityObserver=null;l.fullyVisibleItemsIndices=[];l.JSC$14575_onWheelScroll=function(D){if(l.isSearch&&
!l.disableWheelScroll&&_.q("desktop_enable_dmpanel_wheel_scroll")){var U=D.shiftKey?Math.abs(D.deltaY)>Math.abs(D.deltaX)?D.deltaY:D.deltaX:D.deltaX;U!==0&&(D.preventDefault(),l.ytLazyListBehavior.fillRemainingListItems(),l.offset+=U,ZZ(l),l.reposition_())}};
l.onPointerDown=function(D){x67(l)&&(l.dragMouseStart=D.clientX,l.dragOffsetStart=l.offset,l.dragging=!0)};
l.onPointerMove=function(D){x67(l)&&l.dragging&&(l.ytLazyListBehavior.fillRemainingListItems(),l.offset=l.dragOffsetStart-(D.clientX-l.dragMouseStart),ZZ(l),l.reposition_())};
l.onPointerUp=function(){x67(l)&&(l.dragging=!1)};
return l};
_.Z(eK,_.vg);var jC8=function(l){var D=_.iJ(l.hostElement).querySelector("#items").children;if(!D)return 0;var U=0;l=_.B(l.fullyVisibleItemsIndices);for(var n=l.next();!n.done;n=l.next())U+=D[n.value].clientWidth;return U},x67=function(l){return l.isSearch&&_.q("desktop_enable_dmpanel_click_drag_scroll")};
eK.prototype.created=function(){this.cachedViewportWidth=_.H3("initialInnerWidth")||window.innerWidth;this.JSC$14575_cachedViewportHeight=_.H3("initialInnerHeight")||window.innerHeight;_.H3("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.IN("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
eK.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.q("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();Faz(this)};
eK.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.q("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var l;(l=this.itemsVisibilityObserver)==null||l.disconnect();this.itemsVisibilityObserver=null;var D;(D=this.itemsObserver)==null||D.disconnect()};
var Faz=function(l){var D=_.iJ(l.hostElement).querySelector("#scroll-container");if(D){if(!l.itemsVisibilityObserver){var U=window.getComputedStyle(D).marginRight;l.itemsVisibilityObserver=new IntersectionObserver(function(n){o3v(l,n)},{root:D,
rootMargin:U,threshold:.98})}if(D=_.iJ(l.hostElement).querySelector("#items"))l.itemsObserver=new Pmh(D,function(n){wsy(l,n)})}},wsy=function(l,D){rFm(l)&&(Array.from(D.addedNodes).filter(function(U){return U.nodeType===Node.ELEMENT_NODE}).forEach(function(U){l.itemsVisibilityObserver&&l.itemsVisibilityObserver.observe(U)}),Array.from(D.removedNodes).filter(function(U){return U.nodeType===Node.ELEMENT_NODE}).forEach(function(U){l.itemsVisibilityObserver&&l.itemsVisibilityObserver.unobserve(U)}))},
o3v=function(l,D){var U=new Set(l.fullyVisibleItemsIndices);
D=_.B(D);for(var n=D.next();!n.done;n=D.next()){n=n.value;var y=n.target.parentElement;y?(y=Array.from(y.children).indexOf(n.target),n.isIntersecting?U.add(y):U.has(y)&&U.delete(y)):_.II(new _.rc("Parent element not found",n.target.nodeName))}l.fullyVisibleItemsIndices=Array.from(U).sort(function(A,C){return A-C});
U.size===0?_.II(new _.rc("No visible entries in horizontal list")):(l.startIndex=l.fullyVisibleItemsIndices[0],l.endIndex=l.fullyVisibleItemsIndices[l.fullyVisibleItemsIndices.length-1])},rFm=function(l){l.data?l=(l=l.data)&&l.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===l.itemSizeConstraint:!1:l=!1;
return l};
_.W=eK.prototype;_.W.addScrollEventListeners=function(){var l=_.iJ(this.hostElement).querySelector("#scroll-container");l.style.touchAction="pan-y";l.addEventListener("wheel",this.JSC$14575_onWheelScroll);l.addEventListener("pointerdown",this.onPointerDown);l.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.W.removeScrollEventListeners=function(){var l=_.iJ(this.hostElement).querySelector("#scroll-container");l.removeEventListener("wheel",this.JSC$14575_onWheelScroll);l.removeEventListener("pointerdown",this.onPointerDown);l.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.W.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.u6(this,this.setStartIndex,[this.initialStartIndex])};
_.W.reposition_=function(){var l=_.H3("HTML_DIR")=="rtl"?"":"-",D=_.iJ(this.hostElement).querySelector("#items");D&&(D.style.transform="translateX("+l+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.W.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.u6(this,this.setButtonsState_))};
_.W.setButtonsState_=function(){this.setButtonsStateRequested=!1;var l=_.iJ(this.hostElement).querySelector("#items").firstElementChild;if(l){this.minComponentWidth||(this.minComponentWidth=zJv(this,l));l=_.iJ(this.hostElement).querySelector("#scroll-container").clientWidth;var D=_.iJ(this.hostElement).querySelector("#items");D=_.q("kevlar_horizontal_list_scroll_width_killswitch")?D.clientWidth:D.scrollWidth;var U=this.get(this.ytLazyListBehavior.itemsPath,this);if(U){var n=Math.round(l/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+n,U.length)-1)}this.ytLazyListBehavior.canShowMore?D+this.minComponentWidth>=this.offset+l&&(this.atEnd=!1):this.atEnd=this.offset+l>=D-20?!0:!1;this.atStart=this.offset<=20}};
_.W.setStartIndex=function(l){if(!this.minComponentWidth){var D=_.iJ(this.hostElement).querySelector("#items").firstElementChild;if(!D)return;this.minComponentWidth=zJv(this,D)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*l;ZZ(this);this.reposition_()};
_.W.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Mf();var l=_.iJ(this.hostElement).querySelector("#scroll-container").clientWidth;_.q("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=zJv(this,_.iJ(this.hostElement).querySelector("#items").firstElementChild));l=this.useFloorScrolling?Math.floor(l/this.minComponentWidth)||1:Math.round(l/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&fb7(this);this.offset+=rFm(this)?
jC8(this):l*this.minComponentWidth;ZZ(this);this.reposition_();this.scrollCount++};
_.W.prevClick_=function(){var l=_.iJ(this.hostElement).querySelector("#scroll-container").clientWidth;l=this.useFloorScrolling?Math.floor(l/this.minComponentWidth)||1:Math.round(l/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=rFm(this)?jC8(this):this.minComponentWidth*this.scrollCount-1):this.offset-=rFm(this)?jC8(this):l*this.minComponentWidth;this.centerListItems&&fb7(this);ZZ(this);this.reposition_()};
_.W.onIronResize_=function(){this.resizeSupportEnabled&&_.u6(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.W.onItemsTransitionEnd_=function(l){_.NN(l)===_.iJ(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.W.onChildElementFocus_=function(l){l=l.target.closest("#items > *");var D=_.iJ(this.hostElement).querySelector("#scroll-container");if(D.contains(l)){if(_.q("web_horizontal_list_behavior_focus_killswitch"))if(l.offsetLeft<this.offset)this.offset=Math.abs(l.offsetLeft)<l.clientWidth?0:l.offsetLeft;else if(l.offsetLeft+l.clientWidth>this.offset+D.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Mf(),this.offset=l.offsetLeft+l.clientWidth-D.clientWidth;else return;else{var U=_.iJ(this.hostElement).querySelector("#items"),
n=_.H3("HTML_DIR")==="rtl",y=n?U.clientWidth-l.offsetLeft:l.offsetLeft;U=n?U.clientWidth-(l.offsetLeft+l.clientWidth):l.offsetLeft+l.clientWidth;var A=n?y>this.offset+D.clientWidth:y<this.offset,C=n?U<this.offset:U>this.offset+D.clientWidth,h=n?A:C;if(n?C:A)D=n?U:y,this.offset=Math.abs(D)<l.clientWidth?0:D;else if(h)this.ytLazyListBehavior.fillRemainingListItems(),_.Mf(),this.offset=(n?y:U)-D.clientWidth;else return}ZZ(this);this.reposition_()}};
_.W.observeShownItems_=function(){this.reset()};
_.W.checkComponentWidthResize=function(){var l=_.iJ(this.hostElement).querySelector("#items").firstElementChild;l&&(l=zJv(this,l),this.centerListItems||l!==this.minComponentWidth)&&(this.minComponentWidth=l,this.offset=l*this.scrollCount,this.centerListItems&&fb7(this),ZZ(this),this.reposition_())};
var zJv=function(l,D){var U=window.getComputedStyle(D).marginRight;U=Math.floor(Number(U.replace("px","")));var n=window.getComputedStyle(D).marginLeft;n=Math.floor(Number(n.replace("px","")));l.centerListItems&&!l.marginWidthRight&&(l.marginWidthRight=U,l.marginWidthLeft=n);return l.resizeSupportEnabled?D.getBoundingClientRect().width+U:D.offsetWidth+U},ZZ=function(l){var D=_.iJ(l.hostElement).querySelector("#scroll-container").clientWidth,U=_.iJ(l.hostElement).querySelector("#items").clientWidth;
l.offset<0?l.offset=0:l.offset+D>=U&&(l.offset=U-D)},fb7=function(l){l.offset-=(_.iJ(l.hostElement).querySelector("#scroll-container").clientWidth+l.marginWidthRight-l.minComponentWidth)/2-l.marginWidthLeft};
_.QP.Object.defineProperties(eK.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var l=_.H3("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(l==-1)l=this.JSC$14575_cachedViewportHeight,l=l>1320?5:l>1020?4:l>730?3:l>430?2:1;else if(l==0)return 0;_.IN("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",l-1);l=_.H3("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(l>-1)return l;l=this.cachedViewportWidth;l=l>1600?6:l>1400?5:l>1300?4:l>1090?5:l>870?4:l>660?3:2;_.IN("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
l);return l},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.q("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
eK.prototype.observeShownItems_=eK.prototype.observeShownItems_;eK.prototype.onChildElementFocus_=eK.prototype.onChildElementFocus_;eK.prototype.onItemsTransitionEnd_=eK.prototype.onItemsTransitionEnd_;eK.prototype.onIronResize_=eK.prototype.onIronResize_;eK.prototype.prevClick_=eK.prototype.prevClick_;eK.prototype.nextClick_=eK.prototype.nextClick_;eK.prototype.setButtonsState_=eK.prototype.setButtonsState_;eK.prototype.requestButtonsStateUpdate_=eK.prototype.requestButtonsStateUpdate_;
eK.prototype.reposition_=eK.prototype.reposition_;eK.prototype.reset=eK.prototype.reset;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.Mn.YtLazyListBehavior),_.T("design:type",Object)],eK.prototype,"ytLazyListBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eK.prototype,"atStart",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eK.prototype,"atEnd",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"startIndex",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"endIndex",void 0);_.E([_.K({value:6}),_.T("design:type",Number)],eK.prototype,"initialCount",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"scrollCount",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"initialStartIndex",void 0);
_.E([_.K(),_.T("design:type",Object)],eK.prototype,"disableScrollEventListener",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"supportComponentResize",void 0);_.E([_.K({value:function(){var l=this;return function(){return l.prevClick_()}}}),
_.T("design:type",Function)],eK.prototype,"boundPrevClick",void 0);_.E([_.K({value:function(){var l=this;return function(){return l.nextClick_()}}}),
_.T("design:type",Function)],eK.prototype,"boundNextClick",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"useFloorScrolling",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"isSearch",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"dragging",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"dragMouseStart",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"dragOffsetStart",void 0);
_.E([_.K(),_.T("design:type",Object)],eK.prototype,"disableWheelScroll",void 0);_.E([_.K(),_.T("design:type",Object)],eK.prototype,"centerListItems",void 0);_.E([_.hj("iron-resize"),_.Pg("guideOpened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],eK.prototype,"onIronResize_",null);_.E([_.hj("transitionend"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],eK.prototype,"onItemsTransitionEnd_",null);
_.E([_.hj("focusin"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],eK.prototype,"onChildElementFocus_",null);_.E([_.Pg("shownItems"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],eK.prototype,"observeShownItems_",null);_.E([_.Qj()],eK);_.RH.YtdHorizontalListBehavior=[];_.RH.YtdHorizontalListBehavior.push(_.$s,_.Y.YtRendererBehavior,_.Mn.YtLazyListBehavior,_.W0.YtdGuideStateAwareBehavior,eK.prototype);var yhd=["APP_STATE","PI"];var mu,aH=function(l){this.hostElement=l},tY=function(l,D){if(D&&(Cs_(D.viewableCommands)||Cs_(D.endOfSessionCommands))){var U=PsK(D.viewableCommands);
D=PsK(D.endOfSessionCommands);if(!mu){var n=_.RG("custom_active_view_tos_timeout_ms");mu=n>0&&n!==36E5?new pUg(hwc(),n):new pUg(hwc())}jyN(mu,l.hostElement);FY_(mu,l.hostElement,U,D)}},XY=function(l){mu&&jyN(mu,l.hostElement)};var $68=_.wL(["about:blank"]),N48={pushState:window.history.pushState,replaceState:window.history.replaceState};var SK=function(l){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=l;this.internalPushState=l.pushState.bind(l);this.internalReplaceState=l.replaceState.bind(l)};
SK.prototype.init=function(){this.initialized=!0};
SK.prototype.pushState=function(l,D){this.initialized||this.init();this.internalPushState&&this.internalPushState(l,"",D)};
SK.prototype.replaceState=function(l,D){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(l,"",D)};
SK.prototype.getState=function(){return this.history&&this.history.state};var sC8=function(l){var D=function(){var U=l.apply(this,arguments)||this;U.boundHistoryPushState=!1;U.boundHistoryReplaceState=!1;U.debugInfo={};return U};
_.Z(D,l);D.prototype.init=function(){var U=_.SU("IFRAME");_.i8(U,_.Ja($68));U.sandbox="allow-same-origin";U.style.display="none";this.iframe=U;document.body.appendChild(U);this.bindHistoryStateFunctions();l.prototype.init.call(this)};
D.prototype.bindHistoryStateFunctions=function(){var U=this,n=[],y;this.iframe&&((y=this.iframe.contentWindow)==null?0:y.history)&&(y=this.iframe.contentWindow.history)&&(n.push(y),Object.getPrototypeOf(y)&&n.push(Object.getPrototypeOf(y)));window.history&&n.push(window.history);y=window.history;Object.getPrototypeOf(y)&&n.push(Object.getPrototypeOf(y));n.push(N48);y=function(C){for(var h=null,b=0;b<n.length;b++){var u=n[b][C];if(typeof u==="function"){h=u.bind(window.history);U.debugInfo[C]=b;break}}return h};
if(!this.boundHistoryReplaceState){var A=y("replaceState");A&&(this.internalReplaceState=A,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(y=y("pushState"))&&(this.internalPushState=y,this.boundHistoryPushState=!0)};
return D}(SK),E3m=function(){return sC8.call(this,window.history)||this};
_.Z(E3m,sC8);E3m.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var kO=function(l){this.browserHistory=l;this.initialized=!1};
kO.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
kO.prototype.pushState=function(l,D){this.initialized||this.init();this.browserHistory.pushState(l,D)};
kO.prototype.replaceState=function(l,D){this.initialized||this.init();this.browserHistory.replaceState(l,D)};
kO.prototype.handlePopstate=function(l){return l.state};_.T41=function(l,D,U,n,y){this.endpoint=l;this.forward=D;this.historyEntry=U;this.JSC$30689_savedComponentState=n;this.legacyBorder=y===void 0?!1:y};var Ibm=function(l,D){this.rootData=l;this.scrollTop=D};_.dZ=new _.A7("EPHEMERAL_STORE_TOKEN");_.Ku=function(l){this.data=Object.assign({},l);var D;(D=this.data.innertubeResponse)==null||delete D.frameworkUpdates};
_.Ku.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.J3)()};
_.TM=function(l){return Object.assign({},l.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var HZ8=function(){this.maxSize=100;this.timeToDataCache=new Map};
HZ8.prototype.get=function(l){var D=this.timeToDataCache.get(l);D&&(this.timeToDataCache.delete(l),this.timeToDataCache.set(l,D));if(D&&D.rootData&&(_.q("web_use_response_store_for_history_cache")||_.q("mweb_use_new_history_manager"))){var U=_.Jc().resolve(_.dZ),n=Yfy(D),y=!!n;if(n){if(n.content){var A=c0(U,n.content);y&&A?D.rootData.response=_.TM(A):y=!1}n.player&&(A=c0(U,n.player),y&&A?D.rootData.playerResponse=_.TM(A):y=!1);n.reelSequence&&(U=c0(U,n.reelSequence),y&&U?D.rootData.reelWatchSequenceResponse=
_.TM(U):y=!1)}y||(this.timeToDataCache.delete(l),D=void 0)}return D};
HZ8.prototype.set=function(l,D){if(D.rootData&&(_.q("web_use_response_store_for_history_cache")||_.q("mweb_use_new_history_manager"))){var U=Yfy(D),n=Object.assign({},D.rootData);U&&(U.content&&D.rootData.response&&(OZ_(this,U.content,D.rootData.response),n.response=null),U.player&&D.rootData.playerResponse&&(OZ_(this,U.player,D.rootData.playerResponse),n.playerResponse=null),U.reelSequence&&D.rootData.reelWatchSequenceResponse&&(OZ_(this,U.reelSequence,D.rootData.reelWatchSequenceResponse),n.reelWatchSequenceResponse=
null));D=new Ibm(n,D.scrollTop)}this.timeToDataCache.has(l)?this.timeToDataCache.delete(l):this.timeToDataCache.size>=this.maxSize&&(U=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(U.value));this.maxSize!==0&&this.timeToDataCache.set(l,D)};
HZ8.prototype.clear=function(){this.timeToDataCache.clear()};
var Yfy=function(l){var D=_.Jc().resolve(_.G8(_.JS)),U;if((U=l.rootData)==null?0:U.endpoint)return D==null?void 0:t7B(D,l.rootData.endpoint);var n;_.II(new _.rc("History snapshot response data does not contain endpoint",(n=l.rootData)==null?void 0:n.url));return null},OZ_=function(l,D,U){if(l.maxSize>0){var n;
(l=(n=U.responseContext)==null?void 0:n.maxAgeSeconds)&&Number(l)>0&&(n=_.Jc().resolve(_.dZ),U=lI(U,l),n.put(D,new _.Ku(U)))}};var V$_=function(l,D,U){this.endpoint=D;this.JSC$30695_savedComponentState=U===void 0?null:U;this.entryTime=l};var ujG=1;var pu=function(l){var D=function(){var U=l.apply(this,[].concat(_.zz(_.EW.apply(0,arguments))))||this;U.historyEntryTime=0;U.historySnapshotCache=U.createHistoryCache();return U};
_.Z(D,l);D.prototype.createHistoryCache=function(){return new HZ8};
D.prototype.saveAndReplace=function(U,n,y){var A=window.location.href;var C=C===void 0?{}:C;var h=(h=this.browserHistory.getState())&&h.entryTime?h.entryTime:vrB();U=this.createNewHistoryEntry(U,C,h);this.saveSnapshot(h,n,y);this.replaceState(U,A||window.location.href)};
D.prototype.saveAndPush=function(U,n,y,A,C){C=C===void 0?{}:C;this.saveSnapshot(this.historyEntryTime,y,A);y=this.historySnapshotCache;A=this.historyEntryTime;var h=y.timeToDataCache.keys();h=_.B(h);for(var b=h.next();!b.done;b=h.next())b=b.value,b>A&&y.timeToDataCache.delete(b);n=this.createNewHistoryEntry(n,C);this.pushState(n,U)};
D.prototype.saveSnapshot=function(U,n,y){this.historySnapshotCache.set(U,new Ibm(n,y))};
D.prototype.createNewHistoryEntry=function(U,n,y){y=y===void 0?vrB():y;return new V$_(y,U,n)};
D.prototype.handlePopstate=function(U){var n=l.prototype.handlePopstate.call(this,U),y=null,A=null,C=!1,h=null;n&&n.entryTime&&(h=this.historySnapshotCache.get(n.entryTime)||null,C=n.entryTime>this.historyEntryTime,this.historyEntryTime=n.entryTime,y=n.endpoint,A=n.JSC$30695_savedComponentState);this.handleHistoryCacheLoad(new _.T41(y,C,h,A),U);return n};
D.prototype.pushState=function(U,n){Number(U==null?void 0:U.entryTime)>=0&&(this.historyEntryTime=U.entryTime);l.prototype.pushState.call(this,U,n)};
D.prototype.replaceState=function(U,n){Number(U==null?void 0:U.entryTime)>=0&&(this.historyEntryTime=U.entryTime);l.prototype.replaceState.call(this,U,n)};
D.prototype.handleHistoryCacheLoad=function(){};
return D}(kO),i8h=function(){var l=pu.call(this,new E3m)||this;
l.dispatchElement=null;l.entryIndex=0;return l};
_.Z(i8h,pu);_.W=i8h.prototype;_.W.init=function(l){l=l===void 0?!0:l;pu.prototype.init.call(this);this.initialized||(l||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.W.handlePopstate=function(l){var D=null;l.state||(D="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return pu.prototype.handlePopstate.call(this,l);var U=new CustomEvent("yt-history-pop",{cancelable:!0});_.Vh(this.dispatchElement,"yt-history-pop",[U,{errorMsg:D}]);_.iu(this.dispatchElement,"yt-close-all-popups-action");if(!U.defaultPrevented){U=_.Jc().resolve(_.sm);D=U.getCurrentData();var n=U.getCurrentPage();U=0;n?(n=_.Vh(this.dispatchElement,"yt-get-page-offset",
[n]),n.length>0&&(U=n[0])):_.II(new _.rc("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:D?D.page:"undefined"}));D&&(D.csn=_.t6());this.saveSnapshot(this.historyEntryTime,D,U)}return pu.prototype.handlePopstate.call(this,l)};
_.W.handleHistoryCacheLoad=function(l,D){l.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.B(_.iu(this.dispatchElement,"yt-history-will-navigate",[D])).next().value||_.Vh(this.dispatchElement,"yt-history-load",[D,l]))};
_.W.pushState=function(l,D){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var U=new _.rc("history.pushState is not a function",this.getDebugString());_.EU(U)}pu.prototype.pushState.call(this,l,D)};
_.W.replaceState=function(l,D){if(!this.browserHistory.boundHistoryReplaceState){var U=new _.rc("history.replaceState is not a function",this.getDebugString());_.EU(U)}pu.prototype.replaceState.call(this,l,D)};
_.W.saveAndPush=function(l,D,U,n,y){y=y===void 0?{}:y;U&&(U.csn=_.t6());pu.prototype.saveAndPush.call(this,l,D,U,n,y)};
_.W.getDebugString=function(){var l=[];this.initialized&&l.push("i");this.browserHistory.boundHistoryReplaceState&&l.push("bhr");this.browserHistory.boundHistoryPushState&&l.push("bhs");"replaceState"in this.browserHistory.debugInfo&&l.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&l.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&l.push("ei:"+String(this.entryIndex));return l.join(",")};
_.xO=function(l,D){l.init(!0);var U=l.browserHistory.getState();l.replaceState(U,iI(D))};
i8h.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.jK=new _.A7("DESKTOP_HISTORY_MANAGER_TOKEN");var lKy=[10,20,30,40,50,60],FY=function(){this.currentPartitionIndex=0},D81=function(l){cg8({mainAppWeb:_.on(),
survivalSli:{partitionMinute:l,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},U85=function(l){cg8({mainAppWeb:_.on(),
survivalSli:{partitionMinute:l,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},n68=function(l){return l.currentPartitionIndex>=0&&l.currentPartitionIndex<lKy.length?lKy[l.currentPartitionIndex]:-1},yNh=function(l){return l.currentPartitionIndex>0&&l.currentPartitionIndex-1<lKy.length?lKy[l.currentPartitionIndex-1]:-1};
FY.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var l=yNh(this);l>0&&U85(l);l=n68(this);l>0&&D81(l);ANg(this)}};
var ANg=function(l){var D=n68(l);if(D>0){var U=yNh(l);U<0&&(U=0);l.intervalId=_.Tn.addJob(function(){var n=yNh(l);n>0&&U85(n);n=n68(l);n>0&&D81(n);ANg(l)},3,(D-U)*6E4);
l.currentPartitionIndex+=1}else l.currentPartitionIndex=-1};var Wfk=function(l){eV.call(this,l,132);this.isDocument=l===document.documentElement};
_.Z(Wfk,eV);Wfk.prototype.calculateScrollDelta=function(l,D,U){var n=0;l<D?n=l<D-100?-48:-8:l>D+U&&(n=l>D+U+100?48:8);return n};
Wfk.prototype.JSC$11472_onMouseMove=function(l){this.isDocument||(l.clientX=l.event_.pageX,l.clientY=l.event_.pageY);eV.prototype.JSC$11472_onMouseMove.call(this,l)};_.Bzy=function(l,D){var U=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14629_dragListGroup=null;this.onDraggerCreated=function(n){var y=n.JSC$11468_dragger;y.scrollTarget_=U.scrollElement;n=n.draggerEl;y&&n.menuOpened&&y.setEnabled(!1)};
this.onDragStart=function(n){var y=n.draggerEl;n=n.currDragItem;var A=Object.assign({},n==null?void 0:n.data);A.trackingParams=void 0;y.data=A;y.style.position="absolute";y.style.width=(n==null?void 0:n.clientWidth)+"px";y.style.zIndex="2030";y.onDrag&&y.onDrag();n=_.$m(y);(A=n.querySelector("ytd-app"))?_.iJ(A).appendChild(y):n.body.appendChild(y);U.dragScrollSupport=new Wfk(U.scrollElement);U.dragScrollSupport.horizontalScrolling_=!1;y=U.dragScrollSupport;y.constrainScroll_=!!y.margin_&&!1};
this.onDrop=function(n){U.handleDrop(n);U.dragScrollSupport&&(_.WE(U.dragScrollSupport),U.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(U.JSC$14629_dragListGroup){var n=U.JSC$14629_dragListGroup;xhv(n,n.currDragItem_)}};
this.handleDrop=D};
_.oH=function(l){l.JSC$14629_dragListGroup&&(_.tX(l.JSC$14629_dragListGroup,aVz,l.onDragStart),_.tX(l.JSC$14629_dragListGroup,k41,l.onDragStart),l.JSC$14629_dragListGroup.dispose(),l.JSC$14629_dragListGroup=null);l.dragScrollSupport&&(_.WE(l.dragScrollSupport),l.dragScrollSupport=null);l.scrollElement.removeEventListener("scroll",l.onReorderableScroll)};
_.CS_=function(l,D,U,n){n=n===void 0?"":n;_.oH(l);U&&(l.scrollElement=U);l.JSC$14629_dragListGroup=new Hz;l.JSC$14629_dragListGroup.hysteresisDistance_=2;K87(l.JSC$14629_dragListGroup,D);l.JSC$14629_dragListGroup.draggerElClasses_=uG("dragging").split(" ");n&&c1g(l.JSC$14629_dragListGroup,function(y){var A=y||document,C=null;A.getElementsByClassName?C=A.getElementsByClassName(n)[0]:C=b2y("*",n,y);return C||y});
_.Gt(l.JSC$14629_dragListGroup,e0g,l.onDraggerCreated);_.Gt(l.JSC$14629_dragListGroup,aVz,l.onDragStart);_.Gt(l.JSC$14629_dragListGroup,k41,l.onDrop);l.JSC$14629_dragListGroup.init();l.scrollElement.addEventListener("scroll",l.onReorderableScroll,{passive:!0})};
_.QP.Object.defineProperties(_.Bzy.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var hBk=function(){this.skipNextNavigation=!1},PS1=function(l,D,U){if(!D)return!1;
if(l.skipNextNavigation)return l.skipNextNavigation=!1;if(_.M(U,_.yE))return!1;var n,y,A;if((n=_.M(U,_.Pk))==null?0:(y=n.browseEndpointContextSupportedConfigs)==null?0:(A=y.browseEndpointContextMainConfig)==null?0:A.skipConfirmation)return!1;var C;return((C=_.M(D.commandMetadata,_.W6))==null?void 0:C.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
hBk.prototype.showConfirmationDialog=function(l,D){this.navigateParams=D;this.customConfirmationCommand?_.Jc().resolve(_.qK).resolveCommand(this.customConfirmationCommand):(D={openPopupAction:{popup:{confirmDialogRenderer:{title:_.$B(_.C3("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.$B(_.C3("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.$B(_.C3("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.$B(_.C3("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.AH.getInstance().triggerAction("yt-open-popup-action",D,l))};
hBk.prototype.cancelPendingNavigation=function(){var l;((l=this.navigateParams)==null?void 0:l.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var b8v=function(){},uM5=function(l,D,U,n,y,A,C){U=U===void 0?{}:U;
C=C===void 0?{}:C;var h=_.Jc().resolve(_.JS),b,u=(b=_.M(D,_.yE))==null?void 0:b.url;return u?Wjo(h,u,U,window.location.href,function(Q,G){g6h(l,Q,G,!1,!0,U,A,n)},function(){return!1}):cI(h,D,U,window.location.href,gX(D),function(Q,G){g6h(l,Q,G,!1,!0,U,A,n)},y,C)},g6h=function(l,D,U,n,y,A,C,h){if(!l.JSC$14644_chunkHandler)if(U.page==="learning_journey_watch"&&_.q("web_enable_canvas_on_learning_journey")){var b=!_.M(h,_.Pk);
y=y||n;if(b)if(y){if(_.q("kevlar_continue_playback_without_player_response")){var u;var Q=(u=_.M(h,_.za))==null?void 0:u.videoId}n={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:n,previousVideoId:Q},tempData:A}}else n={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else n={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};l.JSC$14644_chunkHandler=new DWv(_.T4,n,C,b,y)}else if(U.page==="watch"||U.page==="learning_journey_watch")if(y||n){if(_.q("kevlar_continue_playback_without_player_response")){var G;
b=(G=_.M(h,_.za))==null?void 0:G.videoId}l.JSC$14644_chunkHandler=new ywk(_.T4,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:n,previousVideoId:b},tempData:A},C)}else l.JSC$14644_chunkHandler=new i9H(_.T4);else U.page==="shorts"&&y&&!n?l.JSC$14644_chunkHandler=new nwy(_.T4,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:A},C):l.JSC$14644_chunkHandler=new lak(C);l.JSC$14644_chunkHandler.processChunk({endpoint:D,data:U});return l.JSC$14644_chunkHandler.uZ.promise},
v6k=function(l,D,U,n,y){(U=_.Lnr(U))&&g6h(l,D,U,!1,!0,n,void 0,y)};_.Qvy=new _.A7("NAVIGATION_SERVICE_TOKEN");var GQv=function(){this.pendingNavigationPromise=null};
_.W=GQv.prototype;_.W.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.W.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.W.addEventListener=function(){throw Error("yh");};
_.W.dispatchEvent=function(){throw Error("yh");};
_.W.removeEventListener=function(){throw Error("yh");};var JNH=new _.A7("APP_ROOT");var G1B=null;var LfH=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],wZ=function(){_.Xa.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];qky(this)};
_.Z(wZ,_.Xa);wZ.prototype.verifyUser=function(){var l=qky(this),D=l.logout;if(!l.sessionChange)return!0;this.dispatchEvent("ytsessionchange");D&&this.dispatchEvent("ytuserinvalid");return!1};
var qky=function(l){var D=LfH.map(function(y){var A;return(A=_.xZ.get(y))!=null?A:""}),U=D.some(function(y,A){return l.sessionCookies&&l.sessionCookies[A]!==""&&y===""}),n=D.some(function(y,A){return l.sessionCookies&&l.sessionCookies[A]!==y});
l.sessionCookies=D;return{logout:U,sessionChange:n}};
wZ.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Tn.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var ZJs=new _.A7("POSTMESSAGE_TUNNEL_TOKEN");var qes=["/parent_tools","/file_download","/artist_roster"],aCg=[TTy,Ijy,Hcm,Ocv,YWg,ECH,VDz,izk];var rZ=new _.A7("NAVIGATION_CONFIRMATION_SERVICE");var MTH="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),RBv=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],zw=function(l,D){this.pendingNavigationPromise=null;this.JSC$14667_clientRoot=l;this.historyManager=D;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 b8v;this.debugString=l.is;l={"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};_.Wd(_.AH.getInstance(),l,this.JSC$14667_clientRoot)},tT7,XB7,Skm,kQ7,aKh;
_.Z(zw,GQv);zw.prototype.reload=function(){_.KU(window.location.href)};
var RPy=function(l){l.currentEndpoint&&_.M(l.currentEndpoint,_.vk)?l.reload():l.currentEndpoint&&l.navigate(l.currentEndpoint,!0,void 0,{disableCache:!0})};
zw.prototype.navigate=function(l,D,U,n,y,A,C,h){D=D===void 0?!1:D;U=U===void 0?{}:U;n=n===void 0?{}:n;var b=_.Jc().resolve(rZ),u;if(!C&&PS1(b,(u=this.currentEndpoint)!=null?u:void 0,l))return b.showConfirmationDialog(this.JSC$14667_clientRoot.parentElement,{endpoint:l,reload:D,params:U,tempData:n,requestType:y,createScreenConfig:A}),!1;var Q=_.PN();_.bN(Q,"eocs")||Q.parkOrScheduleJob(function(){Q.processSignal("eocs")},10,"eor");
Jhl();C=gX(l);b=n.autonav==="1";u=_.t6();wZ.instance||(wZ.instance=new wZ);var G=wZ.instance.verifyUser(),J;if(_.q("enable_dark_theme_only_on_shorts")){var L=document.documentElement.hasAttribute("dark"),R=_.pU(!0)==="USER_INTERFACE_THEME_DARK";if(C==="shorts"){if(!L)if(_.q("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var a;_.KU((a=_.M(l==null?void 0:l.commandMetadata,_.W6))==null?void 0:a.url,void 0,void 0,window.top)}}else{var S;_.KU(_.Ct((S=_.M(l==
null?void 0:l.commandMetadata,_.W6))==null?void 0:S.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.q("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!L){var d;_.KU(_.Ct((d=_.M(l==null?void 0:l.commandMetadata,_.W6))==null?void 0:d.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(R!==L){var c;_.KU(_.Ct((c=_.M(l==null?void 0:l.commandMetadata,_.W6))==null?void 0:c.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(C==="watch"){if(Z87(_.Jc().resolve(_.kq),
l)&&(G||_.q("fix_miniplayer_navigation_killswitch")))return!1;_.q("block_all_player_prefetch_requests")||(J=qo1(_.sr(_.pd),l,b))}else{var N,z=(N=_.M(this.currentEndpoint,_.za))==null?void 0:N.videoId;z&&_.Hq.getInstance().then(function(j3){j3&&j3.set("yt-miniplayer-shown-video-id",z)})}J&&(U.frags=J.missingFragments_.join(","));
a=null;var f;S=(f=_.M(l==null?void 0:l.commandMetadata,_.W6))==null?void 0:f.ignoreNavigation;if(!S)if(_.q("kevlar_command_url")){var I;a=(I=_.M(l==null?void 0:l.commandMetadata,_.W6))==null?void 0:I.url}else a=_.lXl(l,U);if(a&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&a==this.lastNavigationUrl)return _.ZP({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.AS(cH(),"CANCELLED")}a&&(this.lastNavigationUrl=a);VwK();_.IN("IS_HOMEPAGE_COLD",
!1);_.IN("IS_RESULTS_PAGE_COLD",!1);_.IN("IS_WATCH_PAGE_COLD",!1);l.loggingUrls&&l.loggingUrls.forEach(function(j3){j3.baseUrl&&_.nB(j3.baseUrl)});
_.k1d(l,A?A.layer:0)&&_.q("kevlar_flush_logs_on_away_navigation")&&_.sU();if(txg(l))return!1;UI5(C,y);if(!a)return S||_.II(new _.rc("Can't construct url for endpoint",l)),_.AS(cH(),"FAILURE"),!1;_.LV$();f=l&&_.M(l,_.Pk)&&_.M(l,_.Pk).browseId.startsWith("UC");U=(I=_.q("enable_dark_theme_only_on_shorts")&&C==="shorts"?!1:_.xf()&&document.documentElement.hasAttribute("dark")!==_.ck())?{themeRefresh:1}:{};I&&!_.Fi()&&_.pU()==="USER_INTERFACE_THEME_DARK"&&(U.theme="dark");f=I||eBm(a)&&!f&&!_.q("kevlar_disable_url_allowlist");
G||(f=!0);if(f||_.H3("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var iG;var CC=(iG=window.top)==null?void 0:iG.location.href}catch(j3){var vo;CC=(vo=j3)==null?void 0:vo.message}_.II(new _.rc("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:CC}))}l=_.q("kevlar_redirect_on_window_killswitch")?window.top:window;dX(a);_.KU(_.Ct(a,U),void 0,void 0,l);_.AS(cH(),"ABORTED");return!1}_.q("kevlar_early_popup_close")&&_.Vh(this.JSC$14667_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14644_chunkHandler=void 0;var td;CC=gX((td=this.currentEndpoint)!=null?td:void 0);(td=C==="shorts"&&CC==="shorts")||_.s69();_.DJ(d$B)("nr",void 0);b&&_.ZP({webInfo:{navigationReason:"an"}});l.clickTrackingParams&&(n.itct=l.clickTrackingParams,n.csn=u);OKC(n);n.endpoint=JSON.stringify(l);_.q("enable_unknown_lact_fix_on_html5")&&(_.Jc().resolve(_.vK),n.lact=_.Gj());_.we.isEmpty(n)||_.s9(a,n);!_.q("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(A=Object.assign({},{layer:0},A,{parentLayer:3}));this.pendingNavigationPromise=A=uM5(this.pageFetcher,l,n,this.currentEndpoint,this.JSC$14667_isNetworkPromiseStale.bind(this),A,h);A=A.then(this.handleNavigateSuccess.bind(this,A,l,J,n),this.handleNavigateFail.bind(this,A,l));_.r3().navigationFinishPromise=A;D={endpoint:l,pageType:C,url:iI(a),reload:!!D,noProgressBar:td};y&&(D.type=y);var GN;y=_.hu((GN=this.currentEndpoint)!=null?GN:null);GN=_.hu(l!=null?l:null);this.fireEvent("yt-navigate-start",
D);var Ms;(Ms=_.Jc().resolve(_.G8(_.Qvy)))==null||Ms.publish("navigation-start",{sourcePageSubtype:y,destinationPageSubtype:GN});J&&v6k(this.pageFetcher,l,J,n,this.currentEndpoint);return!0};
zw.prototype.JSC$14667_isNetworkPromiseStale=function(l){return l!=this.pendingNavigationPromise};
var m8m=function(l,D,U,n,y){var A=gX(D);D={endpoint:D,pageType:A};y&&(D.errorMessage=y);_.II(U);D.navigationDoneMs=_.ae("nd");D.navigationErrorReason=n;l.fireEvent("yt-navigate-error",D)};
zw.prototype.handleNavigateFail=function(l,D,U){var n=void 0;U instanceof _.dk&&(n=U,VZd(U));if(this.JSC$14667_isNetworkPromiseStale(l))return _.Le(n);_.AS(cH(),"FAILURE");m8m(this,D,U,"101");return _.Le(U)};
zw.prototype.handleNavigateSuccess=function(l,D,U,n,y){if(this.JSC$14667_isNetworkPromiseStale(l))return _.Ut();this.pendingNavigationPromise=null;if(!y)return D=new _.rc("Missing data in response for navigation endpoint",D),_.Le(D);if(y.reload)return window.location.reload(!0),_.Ut();U&&(l={},_.we.extend(l,_.Lnr(U),y),y=l);var A,C;U=(A=y)==null?void 0:(C=A.timing)==null?void 0:C.responseStart;U!=null&&_.ae("srt",U);_.ae("pdc");var h,b;A=(h=y)==null?void 0:(b=h.timing)==null?void 0:b.info;A!=null&&
(h=_.DJ(_.x$o)(A),_.ZP(h));_.AS(cH(),"SUCCESS");aKh(this,D,y,1,n);return _.Ut()};
var eBm=function(l){var D=l;_.q("kevlar_no_redirect_to_classic_2_ks")||(D=(new _.fI(l)).getPath());if(D==="/"||D==="/red")return!1;var U=!0;MTH.forEach(function(n){l.indexOf(n)===0&&(U=!1)});
RBv.forEach(function(n){var y=n.url;_.q(n.expFlag)&&l.indexOf(y)===0&&(U=!1)});
return U};
zw.prototype.publishPageData=function(l){this.fireEvent("yt-page-data-fetched",{pageData:l})};
tT7=function(l,D,U,n,y,A){var C=null;D.page!=="watch"&&D.page!=="learning_journey_watch"||n?D.filler||_.Vh(l.JSC$14667_clientRoot,"yt-stop-old-player",[D]):C=g6h(l.pageFetcher,y,D,U,!1,A,void 0,l.currentEndpoint);if(C)return C.then(l.publishPageData.bind(l,D));l.publishPageData(D);return _.Ut()};
XB7=function(l,D,U){var n=null;if(!U)return n=new _.rc("Empty data",l.debugString,D);var y=U.response;if(!y)return n;var A={endpointType:gX(D)||"unknown"};y.responseContext?(y=y.responseContext.errors)&&(n=new _.rc("Errors in response context",l.debugString,D,y,A)):n=y.error||y.errorMetadata?new _.rc("Errors in response",l.debugString,D,y.error,y.errorMetadata,A):new _.rc("responseContext missing",l.debugString,D,Object.keys(y).sort().join(","),A);var C,h,b,u;if(l=U==null?void 0:(C=U.response)==null?
void 0:(h=C.responseContext)==null?void 0:(b=h.webResponseContextExtensionData)==null?void 0:(u=b.webResponseContextDebugData)==null?void 0:u.debugErrorMessages)for(C=0;C<l.length;C++);return n};
Skm=function(l){var D,U,n,y;return l==null?void 0:(D=l.response)==null?void 0:(U=D.responseContext)==null?void 0:(n=U.errors)==null?void 0:(y=n.error)==null?void 0:y["0"]};
kQ7=function(l,D){var U;if(U=D.url&&!D.url.startsWith("/clip"))U=D.url,U=!_.q("webfe_parse_debug_param_in_resolveurl_service")&&l.searchDebugUrlMatcher.test(U)||Bj3(U)?!0:!1;if(U)Bj3(D.url)&&_.BS(window.location.href).themeRefresh?(D=_.E9(D.url,"themeRefresh"),_.xO(l.historyManager,D)):D.url&&!bJg(D.url)&&_.xO(l.historyManager,D.url);else if(D.endpoint){var n,y,A;(U=(n=D.endpoint)==null?void 0:(y=n.commandMetadata)==null?void 0:(A=y.webCommandMetadata)==null?void 0:A.url)&&!bJg(U)&&_.xO(l.historyManager,
U);U&&D.url&&U!=D.url&&!D.url.match("playnext=1")&&new _.rc("Response url mismatch in response data",l.debugString,U,D.url)}};
_.d8y=function(l,D,U,n,y,A,C,h){A=A===void 0?!1:A;var b=_.Jc().resolve(rZ),u;if(!h&&PS1(b,(u=l.currentEndpoint)!=null?u:void 0,D))return b.showConfirmationDialog(l.JSC$14667_clientRoot.parentElement,{endpoint:D,data:U,navigationType:n,tempData:y,isMiniplayer:A,isForwardHistoryNavigation:C==null?void 0:C.forward}),_.Ut();l.pageFetcher.JSC$14644_chunkHandler=void 0;return aKh(l,D,U,n,y,A)};
aKh=function(l,D,U,n,y,A){A=A===void 0?!1:A;l.isMiniplayerExpansion=A;var C=n===2;l.currentEndpoint=D;l.numNavigations++;l.numNavigations&&(odo.navigationCount=l.numNavigations);_.IN("NUM_NAV",l.numNavigations);var h=XB7(l,D,U);if(h)return m8m(l,D,h,"102",Skm(U)),_.Le(h);var b,u,Q,G;h=U.rootVe||(U==null?void 0:(b=U.response)==null?void 0:(u=b.responseContext)==null?void 0:(Q=u.webResponseContextExtensionData)==null?void 0:(G=Q.ytConfigData)==null?void 0:G.rootVisualElementType);!C&&U&&kQ7(l,U);var J,
L;b=U==null?void 0:(J=U.response)==null?void 0:(L=J.responseContext)==null?void 0:L.maxAgeSeconds;if(!C&&!isNaN(b)){var R;_.q("kevlar_use_response_ttl_to_invalidate_cache")?R=(0,_.J3)()+1E3*b:_.q("kevlar_always_invalidate_cache")&&(R=0);isNaN(R)||(U.expirationTime=R)}_.sr(_.pd).prefetchCache_.clear();C||U.page!=="watch"||U.type!=="reduced"&&n!==1?n=tT7(l,U,C,!!A,D,y):(l.publishPageData(U),n=_.Ut());y=n.then(function(){var a=gX(D);a={endpoint:D,pageType:a,fromHistory:C,response:U};a.navigationDoneMs=
_.ae("nd");l.fireEvent("yt-navigate-finish",a);var S;(S=_.Jc().resolve(_.G8(_.Qvy)))==null||S.publish("navigation-end")});
U.csn&&h&&U.clientSideGrafts&&n.then(l.attachClientSideGrafts.bind(l,U,_.aS()));return y};
_.W=zw.prototype;_.W.attachClientSideGrafts=function(l,D){l.clientSideGrafts&&D&&l.clientSideGrafts.forEach(function(U){if(D&&U){var n=_.v9(U);_.q("combine_ve_grafts")?_.he().graftServerVe(U,D):_.jz(l.csn,D,n)}})};
_.W.handleSignalActionHistoryBack=function(){window.history.back()};
_.W.handleSignalActionCloseWindow=function(){window.close()};
_.W.handleSignalActionReloadPage=function(){this.reload()};
_.W.handleSignalActionSoftReloadPage=function(){RPy(this)};
_.W.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.W.fireEvent=function(l,D){l=new CustomEvent(l,{bubbles:!0,cancelable:!1,composed:!0,detail:D});this.dispatchEvent(l)};
_.W.addEventListener=function(l,D){this.JSC$14667_clientRoot.addEventListener(l,D)};
_.W.dispatchEvent=function(l){return this.JSC$14667_clientRoot.dispatchEvent(l)};
_.W.removeEventListener=function(l,D){this.JSC$14667_clientRoot.removeEventListener(l,D)};
zw[Lt]=[JNH,_.jK];_.bN3=new V6("browse","h8y2qb");_.g7G=new V6("search","JzFVk");_.uh$=new V6("shorts","xwEKAe");_.v73=new V6("watchFixie","nmfa2d");_.QqK=new V6("watchFlexy","CF909");_.GxC=new V6("watchGrid","Tm0L3c");_.JmG=new V6("watchLearningJourney","L3n37");var Kfz;var cNv=function(){return _.p.apply(this,arguments)||this};
_.Z(cNv,_.p);_.QP.Object.defineProperties(cNv,{template:{configurable:!0,enumerable:!0,get:function(){if(Kfz===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);Kfz=l}l=Kfz;return l}}});
_.E([_.m(cF5.YtPlayerBehavior),_.T("design:type",Object)],cNv.prototype,"ytPlayerBehavior",void 0);_.E([_.x({is:"ytd-player"})],cNv);var pBH;var x8_;var jvz;var fu=function(){var l=_.p.apply(this,arguments)||this;l.forceModernIconButton=!1;l.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return l};
_.Z(fu,_.p);fu.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]]"}}}}}};
fu.prototype.handleAccountLinkingStateChangedCommand=function(l){if(l=_.M(l,Pvz)){var D,U=(D=this.data)==null?void 0:D.providerKey;D=l.providerKey;U&&D&&U.id===D.id&&U.subject===D.subject&&(l=l.linked,l!==void 0&&(this.set("data.linked",l),this.notifyPath("data.linked"),_.q("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(l)))}};
fu.prototype.setPlayerAccountLinkState=function(l){var D=new tmz;Xq1(D,m37(new er7,l));var U=_.T4();U&&U.getPlayerPromise().then(function(n){n.setAccountLinkState(_.c2(D.JSC$12399_serializeBinary(),4));n.updateAccountLinkingConfig(l)})};
fu.prototype.handleShowAccountLinkDialog=function(){var l=this.get("button.buttonRenderer.command");l&&_.y0([l],this.hostElement)};
_.QP.Object.defineProperties(fu.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.E([_.m([_.K$.YtActionHandlerBehavior]),_.T("design:type",Object)],fu.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fu.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],fu.prototype,"overrides",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fu.prototype,"forceModernIconButton",void 0);_.E([_.K({value:"bottom"}),_.T("design:type",String)],fu.prototype,"buttonTooltipPosition",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],fu.prototype,"forceIconButton",void 0);_.E([_.K(),_.T("design:type",Boolean)],fu.prototype,"disableTextTransform",void 0);
_.E([_.t("data","data.linked","data.isWarning"),_.T("design:type",Object),_.T("design:paramtypes",[])],fu.prototype,"button",null);_.E([_.x({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],fu);
_.r(fu,"ytd-account-link-button-renderer",function(){if(jvz!==void 0)return jvz;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return jvz=l},{mode:1});var Ffg;var o67=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],$O=function(){return _.p.apply(this,arguments)||this};
_.Z($O,_.p);$O.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
$O.prototype.updateButtonActiveState=function(){var l=this,D=!!o67.find(function(U){return l.currentState===U});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.q("enable_web_delhi_icons")&&(D=!1);this.button&&(this.button.isPressed=D)};
_.QP.Object.defineProperties($O.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.playlistLoopStateEntity)==null?void 0:l.state)||((D=this.data)==null?void 0:D.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var l=void 0,D;if(this.currentState&&((D=this.data)==null?0:D.states)){D=_.B(this.data.states);for(var U=D.next();!U.done;U=D.next()){U=_.M(U.value,_.tfr);var n=void 0;if(((n=U)==null?void 0:n.state)===this.currentState){l=U;break}}}return l}}});
$O.prototype.updateButtonActiveState=$O.prototype.updateButtonActiveState;_.E([_.m(_.l5),_.T("design:type",Object)],$O.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.NO.playlistLoopStateEntitySelector}),_.T("design:type",Object)],$O.prototype,"playlistLoopStateEntity",void 0);_.E([_.K(),_.T("design:type",Object)],$O.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],$O.prototype,"forceIconOnly",void 0);_.E([_.gP("ytd-button-renderer"),_.T("design:type",_.M2)],$O.prototype,"button",void 0);
_.E([_.t("data","playlistLoopStateEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],$O.prototype,"currentState",null);_.E([_.Pg("currentButtonStateRenderer"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$O.prototype,"updateButtonActiveState",null);_.E([_.t("currentState"),_.T("design:type",Object),_.T("design:paramtypes",[])],$O.prototype,"currentButtonStateRenderer",null);
_.E([_.x({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],$O);
_.r($O,"ytd-playlist-loop-button-renderer",function(){if(Ffg!==void 0)return Ffg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Ffg=l},
{mode:1});var wBH;var rNH=_.C3("DOWNLOAD",{},"Download"),zBm=_.C3("DOWNLOADING",{},"Downloading"),fKr=_.C3("DOWNLOADED",{},"Downloaded"),$8H=_.C3("RETRY",{},"Retry"),Nn=function(){var l=_.p.apply(this,arguments)||this;l.forceIconButton=!1;l.forceIconOnly=!1;l.overrides=!1;l.buttonTooltipPosition=!1;l.styleActionButton=!1;l.disableTextTransform=!1;l.downloadProgress=0;l.isDownloadComplete=!1;l.isHidden=!0;l.transferState="TRANSFER_STATE_UNKNOWN";l.isVideoDeletedByUser=!1;l.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return l};
_.Z(Nn,_.p);_.W=Nn.prototype;_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.dataChanged=function(){var l;(l=this.data)!=null&&l.text||(l=_.du(_.EB().getState(),this.videoId),this.updateButtonState(l))};
_.W.computeVideoId=function(l){return l};
_.W.computePlayerStateEntityKey=function(l){return l};
_.W.showHideButton=function(){this.updateButtonVisibility()};
_.W.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var l;((l=this.playerStateEntity)==null?void 0:l.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.W.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.W.updateButtonState=function(l){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==zBm||!_.uQ(l))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(l){case "TRANSFER_STATE_UNKNOWN":l=rNH;var D="OFFLINE_DOWNLOAD";var U="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":l=$8H;D="OFFLINE_DOWNLOAD";U="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":l=fKr;D="OFFLINE_PIN";U="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":l=
zBm;D="OFFLINE_DOWNLOADING_ZERO";U="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":l=$8H;D="OFFLINE_DOWNLOAD";U="ACTION_RETRY";break;default:l=rNH,D="OFFLINE_DOWNLOAD",U="ACTION_ADD"}this.isVideoDeletedByUser&&(l=rNH,D="OFFLINE_DOWNLOAD",U="ACTION_ADD");var n=Object.assign({},this.data);n.text=_.$B(l);n.tooltip=l;n.icon={iconType:D};n.size="SIZE_DEFAULT";n.style="STYLE_DEFAULT";_.M(n.command,_.Cq)&&(_.M(n.command,_.Cq).action=U);this.set("data",n)}};
_.W.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var l="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?l="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?l="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?l="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?l="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?l="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(l="OFFLINE_PIN",this.isDownloadComplete=!0);var D;l!==((D=this.data.icon)==null?void 0:D.iconType)&&(D=Object.assign({},this.data),D.text=_.$B(zBm),D.tooltip=zBm,D.icon={iconType:l},_.M(D.command,_.Cq)&&(_.M(D.command,_.Cq).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",D))}};
Nn.prototype.updateProgress=Nn.prototype.updateProgress;Nn.prototype.onTransferStateChanged=Nn.prototype.onTransferStateChanged;Nn.prototype.showHideButton=Nn.prototype.showHideButton;Nn.prototype.dataChanged=Nn.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Nn.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Nn.prototype,"forceIconButton",void 0);
_.E([_.K(),_.T("design:type",Object)],Nn.prototype,"forceIconOnly",void 0);_.E([_.K(),_.T("design:type",Object)],Nn.prototype,"overrides",void 0);_.E([_.K(),_.T("design:type",Object)],Nn.prototype,"buttonTooltipPosition",void 0);_.E([_.K(),_.T("design:type",Object)],Nn.prototype,"styleActionButton",void 0);_.E([_.K(),_.T("design:type",Object)],Nn.prototype,"disableTextTransform",void 0);
_.E([_.K({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.T("design:type",String)],Nn.prototype,"videoId",void 0);_.E([_.K({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.T("design:type",String)],Nn.prototype,"playerStateEntityKey",void 0);_.E([_.K(),_.T("design:type",Object)],Nn.prototype,"data",void 0);_.E([_.K({selector:cc,selectorArgs:["videoId"]}),_.T("design:type",Object)],Nn.prototype,"downloadProgress",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Nn.prototype,"isDownloadComplete",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Nn.prototype,"isHidden",void 0);_.E([_.K({selector:_.du,selectorArgs:["videoId"]}),_.T("design:type",String)],Nn.prototype,"transferState",void 0);_.E([_.K({selector:_.iF3,selectorArgs:["videoId"]}),_.T("design:type",Object)],Nn.prototype,"isVideoDeletedByUser",void 0);
_.E([_.K({selector:T9c,selectorArgs:["videoId"]}),_.T("design:type",Object)],Nn.prototype,"offlineabilityState",void 0);_.E([_.K({selector:_.Um,selectorArgs:["playerStateEntityKey"]}),_.T("design:type",Object)],Nn.prototype,"playerStateEntity",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],Nn.prototype,"showTooltips",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],Nn.prototype,"sendCommandWhenDisabled",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],Nn.prototype,"disabled",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Nn.prototype,"dataChanged",null);_.E([_.GY("offlineabilityState","playerStateEntity"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Nn.prototype,"showHideButton",null);
_.E([_.GY("transferState","isVideoDeletedByUser"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Nn.prototype,"onTransferStateChanged",null);_.E([_.GY("downloadProgress"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Nn.prototype,"updateProgress",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Nn);
_.r(Nn,"ytd-download-button-renderer",function(){if(wBH!==void 0)return wBH;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return wBH=l},{mode:2});var Nzy;var sv1,E6y=function(){if(sv1!==void 0)return sv1;var l=document.createElement("template");_.e(l,'\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 sv1=l};var Tzy=_.q("web_button_rework")&&_.il("BUTTON_REWORK")||_.q("web_button_rework_with_live"),IK1=_.RG("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,s3=function(){var l=_.p.apply(this,arguments)||this;l.isPressed=!1;l.forceIconButton=!1;l.forceIconOnly=!1;l.forceModernIconButton=!1;l.alignByText=!1;l.isShorts=!1;l.animatedText=!1;l.shouldAnimate=!1;l.JSC$14705_browserSupportsAnimation=_.q("web_supports_animations_api");l.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};l.onTap=function(){var D;if((D=l.data)==null||!D.defaultNavigationEndpoint){var U;D=!((U=l.data)==null?0:U.isToggled);var n;if((n=l.data)==null||!n.preventAutoToggle){l.shouldAnimate=!1;l.disableTextUpdateJobId&&_.Tn.cancelJob(l.disableTextUpdateJobId);l.disableTextUpdateJobId=_.Tn.addLowPriorityJob(function(){l.disableTextUpdateJobId=void 0},IK1);
var y;l.set("data.isToggled",!((y=l.data)==null?0:y.isToggled));U=l.getInnertubeIcon();n={toggled:D,actions:{}};U&&(n.actions[U.toLowerCase()]=D);_.O9(l.hostElement,"yt-toggle-button",n)}}};
return l};
_.Z(s3,_.p);_.W=s3.prototype;_.W.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Tn.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.toggle=function(l){var D;this.set("data.isToggled",l!==void 0?l:!((D=this.data)==null?0:D.isToggled))};
_.W.handleUpdateToggleButtonStateCommand=function(l){if(this.data){l=_.M(l,JZy);var D,U,n,y=(D=this.data)==null?void 0:(U=D.toggleButtonSupportedData)==null?void 0:(n=U.toggleButtonIdData)==null?void 0:n.id;y&&l&&y===(l==null?void 0:l.buttonId)&&this.set("data.isToggled",l.toggled)}};
_.W.handleUpdateToggleButtonTextAction=function(l){if(this.data){l=_.M(l,wZg);var D,U,n,y=(D=this.data)==null?void 0:(U=D.toggleButtonSupportedData)==null?void 0:(n=U.toggleButtonIdData)==null?void 0:n.id;y&&l&&y===(l==null?void 0:l.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=l.defaultNumericalValue,this.set("data.defaultText",l.defaultText),this.set("data.toggledText",l.toggledText),this.shouldAnimate=!1)}};
_.W.getInnertubeIcon=function(){var l=this.data;if(l){var D,U,n=((D=l.defaultIcon)==null?0:D.iconType)?(U=l.defaultIcon)==null?void 0:U.iconType:null,y,A;D=((y=l.toggledIcon)==null?0:y.iconType)?(A=l.toggledIcon)==null?void 0:A.iconType:n;return l.isToggled?D:n}};
_.W.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.QP.Object.defineProperties(s3.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l={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$14705_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var D=l.renderer;var U=l.element;var n=l.toggled;var y=l.onTapCallback;var A=l.commandClientArgs;var C=l.overrides;var h=l.forceIcon;var b=l.forceModernIconButton;var u=l.forceDisabled;var Q=l.useAnimatedText;var G=l.animatedTextProps;l=chd(D,n);h=!D.defaultIcon||!h&&D.defaultText?D.defaultIcon?"leading":void 0:b?"icon-only":"icon-only-40";h==="icon-only-40"&&(l.type="text");var J;b=Object;var L=b.assign,R;a:switch((R=
D.style)==null?void 0:R.styleType){case "STYLE_COMPACT_GRAY":R={size:"S"};break a;default:R={size:"M"}}var a=!!n;var S=(S=n&&D.toggledText||D.defaultText)?_.Zk(S):void 0;Q?(Q=_.Nl(n&&D.toggledText||D.defaultText))&&G&&!isNaN(Number(G.numberValue))?(G.numberText=Q,n&&(G.numberValue+=1),Q=G):Q=void 0:Q=void 0;var d,c,N,z;var f=(G=((c=n?D.toggledAccessibilityData||((f=D.toggledText)==null?void 0:f.accessibility):D.accessibilityData||((d=D.defaultText)==null?void 0:d.accessibility))==null?void 0:(N=c.accessibilityData)==
null?void 0:N.label)||((z=D.accessibility)==null?void 0:z.label))?G:_.Nl(n&&D.toggledText||D.defaultText);u=u===void 0?D.isDisabled:u;U=KVg(D,n,y,U,A);n=d7G(D,n);n!=null&&n.length?(n=_.SQ({innertubeCommand:Lyd(n),forceNewState:!0}),n=kt(n)?n:void 0):n=void 0;D=L.call(b,{},l,R,{iconPosition:h},C,{focused:!1,toggled:a,toggleable:!0,formattedButtonText:S,animatedTextProps:Q,accessibilityLabel:f,disabled:u,onTap:U,aTagConfig:n},NdB((J=D.colorData)==null?void 0:J.basicColorPaletteData));D.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(D.type="filled");return D}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var l=this.getInnertubeIcon();if(l)return _.UV(l)}}});
s3.prototype.resetAnimation=s3.prototype.resetAnimation;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],s3.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],s3.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],s3.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],s3.prototype,"isPressed",void 0);_.E([_.K(),_.T("design:type",Object)],s3.prototype,"forceIconButton",void 0);_.E([_.K(),_.T("design:type",Object)],s3.prototype,"forceIconOnly",void 0);_.E([_.K(),_.T("design:type",Object)],s3.prototype,"forceModernIconButton",void 0);_.E([_.K(),_.T("design:type",Object)],s3.prototype,"alignByText",void 0);_.E([_.K(),_.T("design:type",Object)],s3.prototype,"overrides",void 0);
_.E([_.K(),_.T("design:type",Boolean)],s3.prototype,"disabled",void 0);_.E([_.K(),_.T("design:type",Object)],s3.prototype,"isShorts",void 0);_.E([_.K(),_.T("design:type",Object)],s3.prototype,"buttonTooltipPosition",void 0);_.E([_.K(),_.T("design:type",Object)],s3.prototype,"animatedText",void 0);_.E([_.K(),_.T("design:type",String)],s3.prototype,"textNumberValue",void 0);_.E([_.K({computed:"computeTooltip(data, data.isToggled)"}),_.T("design:type",Object)],s3.prototype,"tooltip",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],s3.prototype,"resetAnimation",null);_.E([_.t("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.T("design:type",Object),_.T("design:paramtypes",[])],s3.prototype,"computedButtonShape",null);_.E([_.t("data.*"),_.T("design:type",Object),_.T("design:paramtypes",[])],s3.prototype,"computedIcon",null);
_.E([_.x({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],s3);Tzy&&_.r(s3,"ytd-toggle-button-renderer",E6y,{mode:_.Vj("kevlar_poly_si_batch_j081")?1:2});var H8y=_.w(function(l){function D(u){var Q;return _.P(function(G){if(G.nextAddress==1)return(Q=!x7C(u,h())||!h().enabled)?G.jumpTo(2):G.yield(rhK(),3);G.nextAddress!=2&&(Q=G.yieldResult);if(Q)return G.return();U();setTimeout(function(){C(!1)},1500);
_.Kz(G)})}
function U(){setTimeout(function(){C(!0);var u;(u=n.lottieEl)==null||u.goToAndPlay(0)},150)}
var n=_.Wr(),y=_.B(_.aw(!1,void 0,"UfUosc")),A=y.next().value,C=y.next().value,h=_.NQ(l.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.N1(function(){var u,Q;((u=l.settings)==null?void 0:(Q=u.call(l))==null?void 0:Q.uniqueId)==="this is not intended behavior"&&_.II(new _.rc("Smartimation Settings is undefined"))});
_.$i(function(){h().experimentEnabled&&(h().enabled?jhK(D):(C(!1),FV3(D)),_.NV(function(){FV3(D)}))},"IHhVmc");
_.$i(function(){h().timings.join("");h().experimentEnabled&&(orl(h()),_.NV(function(){wVo(h())}))},"fsfhOe");
var b=_.dM(function(){var u=n,Q=h().uniqueId+"-border",G,J;var L="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((J=(G=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:G())!=null&&J?"dark":"light")+"_v2.json";return{animationRef:u,animationConfig:{name:Q,autoplay:!1,loop:!1,path:L}}},void 0,"UWvUGe");
y={};return _.g("yt-smartimation",{class:_.DV(l.className,"smartimation",(y["smartimation--experiment-enabled"]=function(){return h().experimentEnabled},y["smartimation--active-border"]=A,y["smartimation--enable-masking"]=zwK(),y))},_.g(_.v,{cond:function(){return h().experimentEnabled},
then:function(){return _.g("div",{class:"smartimation__border"},_.g(_.cO,{className:"smartimation__border-gradient",data:b,animationName:function(){return b().animationConfig.name}}))}}),_.g("div",{class:"smartimation__content"},l.children))},"ha");
H8y.idomCompat=!0;_.Tt(H8y,"yt-smartimation",{props:{className:_.C$,settings:_.C$}});var E3=function(){var l=_.p.apply(this,arguments)||this;l.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};l.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};l.shouldEnableSmartimation=!1;return l};
_.Z(E3,_.p);E3.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
E3.prototype.onDataChanged=function(){var l,D;this.shouldEnableSmartimation=(((l=this.data)==null?void 0:(D=l.timedAnimationData)==null?void 0:D.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
E3.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var l=_.M(this.data.likeButton,_.Ax),D=_.M(this.data.dislikeButton,_.Ax);return!!((l==null?0:l.isToggled)||(D==null?0:D.isToggled))};
E3.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]]"}}}}}};
_.QP.Object.defineProperties(E3.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var l,D,U=((l=this.data)==null?void 0:(D=l.timedAnimationData)==null?void 0:D.animationTiming)||[];return{uniqueId:"like-dislike",timings:U,enabled:this.shouldEnableSmartimation,experimentEnabled:U.length>0}}}});
E3.prototype.onDataChanged=E3.prototype.onDataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],E3.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],E3.prototype,"likeButtonOverride",void 0);_.E([_.K(),_.T("design:type",Object)],E3.prototype,"dislikeButtonOverride",void 0);
_.E([_.t("shouldEnableSmartimation"),_.T("design:type",Object),_.T("design:paramtypes",[])],E3.prototype,"smartimationSettings",null);_.E([_.Pg("data"),_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],E3.prototype,"onDataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],E3);
_.r(E3,"ytd-segmented-like-dislike-button-renderer",function(){if(Nzy!==void 0)return Nzy;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Nzy=l},{mode:1});var Ykk;var O8z;(O8z=document.body)==null||O8z.setAttribute("rounded-container","");var VTg={};VTg.YtToggleButtonBehavior=[_.K$.YtActionHandlerBehavior,w9.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 l=this.data.isToggled;if(!this.isModal_(l)){if(!this.data.preventAutoToggle){this.toggle();var D={toggled:this.data.isToggled,actions:{}};D.actions[this.buttonIcon]=this.data.isToggled;_.O9(this.hostElement,"yt-toggle-button",D)}D=this.data.defaultServiceEndpoint||null;var U=this.data.toggledServiceEndpoint||null;if(D&&U||D&&this.data.preventAutoToggle)l=l?U:D,D=this.disableCommandHandlerOverride,_.q("killswitch_toggle_button_behavior_resolve_command")||D?_.lu(this.hostElement,
[l]):_.Ae(l,this.hostElement),_.O9(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:l})}},
stateChanged_:function(){var l=this.data;if(l){var D=l.isToggled;this._setEndpoint(this.computeEndpoint_(l));this._setServiceEndpoint(this.computeServiceEndpoint_(l));this._setButtonIcon(this.computeButtonIcon_(l,D));this._setButtonText(this.computeButtonText_(l,D));this._setButtonAccessibility(this.computeAccessibility_(l,D));this._setButtonTooltip(this.computeTooltip_(l,D));this._setButtonClass(this.computeButtonClass_(l,D));this._setIconPositionType(this.computeIconPositionType_(l));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=D):this.elements_.button.setAttribute("aria-pressed",D));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=D)}},
shouldSetIconActiveState_:function(){return _.q("kevlar_system_icons")},
toggle:function(l){this.set("data.isToggled",l!==void 0?l:!this.data.isToggled);_.q("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(l){if(l){var D,U;return!!((D=this.data)==null?0:(U=D.toggledServiceEndpoint)==null?0:U.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(l){return l&&l.defaultNavigationEndpoint||null},
computeButtonIcon_:function(l,D){var U=l&&l.defaultIcon?_.UV(l.defaultIcon.iconType):null;l=l&&l.toggledIcon?_.UV(l.toggledIcon.iconType):U;return D?l:U},
handleUpdateToggleButtonStateCommand_:function(l){l=l.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==l.buttonId&&this.toggle(l.toggled)},
computeButtonText_:function(l,D){return l?D&&l.toggledText||l.defaultText||null:null},
computeAccessibility_:function(l,D){return l?(D?this.get("toggledAccessibilityData.accessibilityData",l):this.get("accessibilityData.accessibilityData",l))||l.accessibility||null:null},
computeTooltip_:function(l,D){return l?D&&l.toggledTooltip||l.defaultTooltip||null:null},
computeButtonClass_:function(l,D){if(!l)return"";var U="",n=l.toggledStyle||l.style;if(D=D?n:l.style){D.styleType&&(D=D.styleType);try{U+=D.toLowerCase().replace(/_/g,"-")+" "}catch(y){_.HA(y,D,typeof D),_.II(y)}}if(l=l.size){l.sizeType&&(l=l.sizeType);try{U+=l.toLowerCase().replace(/_/g,"-")+" "}catch(y){_.HA(y,l,typeof l),_.II(y)}}return U.trim()},
computeIconPositionType_:function(l){return l&&l.iconPosition||null},
computeServiceEndpoint_:function(l){var D=l&&l.serviceEndpoint,U=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return D?D:U&&l.command?l.command:null},
handleUpdateToggleButtonTextAction_:function(l){l=l.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==l.buttonId&&(this.set("data.defaultText",l.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",l.toggledText),this.notifyPath("data.toggledText"))}}];_.RL("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var irh=_.q("web_button_rework")&&_.il("BUTTON_REWORK")||_.q("web_button_rework_with_live"),Tw=function(){var l=_.p.apply(this,arguments)||this;l.systemIcons=_.q("kevlar_system_icons");l.roundedContainer=!0;return l};
_.Z(Tw,_.p);Tw.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Tw.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var l=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var D={toggled:!!this.data.isToggled,actions:{}};D.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var U,n;D.actions.playlistId=(U=this.data.defaultServiceEndpoint)==null?void 0:(n=U.playlistEditEndpoint)==null?void 0:n.playlistId;_.O9(this.hostElement,"yt-toggle-button",D)}(l=l?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(l)}};
Tw.prototype.onYtNavigate=function(l){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(l.detail.endpoint);D&&(l.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(D))};
_.QP.Object.defineProperties(Tw,{template:{configurable:!0,enumerable:!0,get:function(){if(Ykk===void 0){var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);Ykk=l}l=Ykk;return l}}});
Tw.prototype.onYtNavigate=Tw.prototype.onYtNavigate;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],Tw.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(VTg.YtToggleButtonBehavior),_.T("design:type",Object)],Tw.prototype,"ytToggleButtonBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],Tw.prototype,"data",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],Tw.prototype,"showTooltips",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Tw.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Tw.prototype,"roundedContainer",void 0);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Tw.prototype,"onYtNavigate",null);
_.E([_.x({is:"ytd-toggle-button-renderer",disableElementRegistration:irh})],Tw);var lT_,Dz7;_.IH=new _.A7("PANEL_CONTROLLER_TOKEN");_.H0=new _.A7("SHEET_CONTROLLER_TOKEN");_.YO=new _.A7("DIALOG_CONTROLLER_TOKEN");lT_=new _.A7("DIALOG_CONTAINER_TOKEN");Dz7=new _.A7("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.O3=new _.A7("PERSISTENT_PANEL_CONTROLLER_TOKEN");var Yed=_.C3("DOWNLOAD",{},"Download"),OJ9=_.C3("DOWNLOADING",{},"Downloading"),VxN=_.C3("DOWNLOADED",{},"Downloaded"),iZG=_.C3("RETRY",{},"Retry");var UzH=_.w(function(l){var D=yFo,U=function(){return""},n=lbB(l.data),y=D6G(l.data),A=U6_(l.data),C=n39(l.data);
D=function(){var h=l.data(),b=IC$(h,n(),y(),A(),C()),u=!!h.videoId,Q=b.text;return{title:u?Q:void 0,tooltip:u?void 0:Q,accessibilityText:Q,onTap:b.onTap,iconName:b.iconType,style:h.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:b.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:h.buttonSize}};
U={};U=_.DV("ytDownloadButtonViewModelHost",(U.ytDownloadButtonViewModelIsHidden=function(){var h=l.data(),b=C();return h.playlistId||b()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||b()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},U));
return _.g("download-button-view-model",{class:U},_.g(_.t9,{data:D}))},"ia");
UzH.idomCompat=!0;var ugK=new _.A7("SUBMIT_API_SERVICE_TOKEN");var P7c,bZc,v3d={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var Ka9=new _.A7("RENDERER_LOGGER_TOKEN");var Xss=new _.A7("RENDERER_STAMPER_OPTIONS_TOKEN");var Gf3;_.gN=new GMm;Gf3=new Map;var Sfg="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),d6l=["notificationTextRenderer","notificationMultiActionRenderer"],
kfc="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),t$N=JFo(function(l){return _.EP(l==null?void 0:l.targetId)}).useUpdatableData;var abB=0;_.uI.debugName="EjJbCe";var n$z=_.w(function(l){var D=l.data;l=l.className;_.$g(function(){D().formId||_.EU(Error("Ch"))});
var U=_.hJC(function(){return D().formId},function(){return D().beforeSubmitCommand},function(){return D().afterSubmitCommand}),n=U.submitForm,y=U.isValid,A=U.isSubmitting,C=function(){return{state:D().isDisabled||!y()||A()?"disabled":"active"}};
return _.g("yt-submit-button-view-model",{class:_.DV("ytSubmitButtonViewModelHost",l)},_.g(_.uI,{data:function(){return D().button}},{buttonViewModel:function(h){return _.g(_.t9,{data:h.data,
buttonOverrides:C,onClick:n})}}))},"la");var Aom=_.w(function(l){var D=l.backgroundLottieRef;var U=l.foregroundLottieRef;var n=l.children;var y=l.wrapperClass;var A=l.disableAnimation;l=function(){return(_.q("web_animated_actions")||_.q("web_animated_actions_v2"))&&!(A==null?0:A())};
return _.g("yt-animated-action",{class:_.DV("ytAnimatedActionHost",y)},_.g("div",{class:"ytAnimatedActionContentWithBackground"},_.g(_.v,{cond:l,then:function(){return _.g(yom,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:D==null?void 0:D(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(cFo()?"dark":"light")+"_v5.json"}}}})}}),n),_.g(_.v,{cond:l,
then:function(){return _.g(yom,{lottiePlayerProps:function(){return{animationRef:U==null?void 0:U(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(cFo()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
Aom.idomCompat=!0;var yom=_.w(function(l){var D=l.wrapperClass;var U=l.lottieClass;var n=l.lottiePlayerProps;return _.g("div",{class:_.DV("ytAnimatedActionLottie",D),"aria-hidden":"true"},_.g(_.cO,{className:U,data:n,animationName:function(){return n().animationConfig.name}}))},"na");var psl={isOpen:!1};var jC$={isAllowed:!1};var o3N={errorMessage:"",title:"",privacy:"",isDisabled:!0};var rFC={isOpen:!1};var fbc={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var WDg={response:void 0};var N4$=function(l,D){l=l===void 0?WDg:l;switch(D.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},l,{response:D.payload});default:return l}};var BBm={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var sC$=function(l,D){l=l===void 0?BBm:l;switch(D.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},l,{nextDisabled:D.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},l,{nextCommand:D.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},l,{footerSubmissionData:D.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},l,{isImpersonationValid:D.payload});default:return l}};var CCz={reportFormData:void 0,reportDetailsFormData:void 0};var E3C=function(l,D){l=l===void 0?CCz:l;switch(D.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},l,{reportFormData:D.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},l,{reportDetailsFormData:D.payload});default:return l}};var hx7=void 0;_.q("mweb_enable_redux_store_on_demand")||(hx7=new sB(T49()));var VC=_.q("enable_web_delhi_icons");var PC1=_.w(function(l){l=_.sl(l,{themeOverride:void 0,animationRef:{}});var D=l.animatedIconType,U=l.active,n=l.themeOverride,y=l.animationRef;l=l.staticIconFn;var A=_.B(_.aw(void 0,void 0,"l48agc")),C=A.next().value,h=A.next().value,b=function(){a:{var S=D();var d=n==null?void 0:n();var c;d=(d==null?void 0:d.useDarkTheme)||((c=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:c());switch(S){case "LIKE":hx7||(hx7=new sB(T49()));S=(S=q6G(hx7.getState()))&&S.animationLightUrl&&S.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:d?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:d?S.animationDarkUrl:S.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(S){d=S;break a}d="animated_like_icon_"+(d?"dark":"light")+"_"+(VC?"v5":"v4");d={lottiePlayerProps:{animationConfig:{name:d,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+d+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(VC?" animated-like-icon-delhi":"")}}},totalFrames:VC?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":d={lottiePlayerProps:{animationConfig:{name:d?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(d?"dark":"light")+(VC?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(VC?" animated-subscribe-icon-delhi":"")}}},totalFrames:VC?120:79,lazyLoad:!1};break a}d=
void 0}return d},u=function(){var S,d;
return(d=(S=b())==null?void 0:S.lottiePlayerProps.animationConfig.name)!=null?d:""},Q=function(){if(b()){var S=b().lottiePlayerProps.animationConfig.path;
return J1.get(S)||C()}};
A=_.B(_.aw(!1,void 0,"sDrGId"));var G=A.next().value;A=A.next().value;var J=HZ$(A),L=function(){var S=b(),d,c,N;return(N=S==null?void 0:(d=S.lottiePlayerProps.animationConfig)==null?void 0:(c=d.rendererSettings)==null?void 0:c.className)!=null?N:""},R=void 0,a=void 0;
_.$i(function(){var S=b(),d=u(),c=Q(),N=G(),z=U();if(S&&(a!==d&&(a=d,R=z,d=y(),J.animationConfig=S.lottiePlayerProps.animationConfig,J.animationRef=d,c&&(J.animationConfig.animationData=c,J.animationConfig.path=void 0),d=S.lottiePlayerProps.animationConfig.path,!J1.get(d)&&S.lazyLoad&&d&&IbC(d,h)),!(N||S.lazyLoad&&!c))){if(c=!y().lottieEl)z?(N=S.totalFrames,J.animationConfig.initialSegment=[N-1,N]):J.animationConfig.initialSegment=void 0;if(R!==z&&!c)if(c=y(),z){var f;(f=c.lottieEl)==null||f.playSegments([0,
S.totalFrames],!0)}else{var I;(I=c.lottieEl)==null||I.playSegments([0,1],!0)}R=z}},"RQVZ1d");
return _.g("animated-icon",{class:"ytAnimatedIconHost"},_.g(_.v,{cond:function(){var S,d;return!((S=b())==null||!S.lottiePlayerProps.animationConfig.path||((d=b())==null?0:d.lazyLoad)&&!Q()||G())},
then:function(){return _.g(_.cO,{data:J,animationName:u,className:L,animationRef:y})},
else:l}))},"pa");_.iz=_.w(function(l){var D=_.bP("yt-subscribe-button-view-model"),U=_.bP("div"),n=_.bP("div"),y=_.Wr(),A=_.Wr(),C=_.Wr(),h=_.Pr(i83,function(){return l.data().stateEntityStoreKey}),b=_.Pr(lKl,function(){var Vg,v5;
return(v5=(Vg=l.data().notificationStateEntityStoreKeys)==null?void 0:Vg.subsNotificationStateKey)!=null?v5:""}),u=function(){return!l.data().enableSubscribeButtonPostClickAnimation},Q=_.B(_.aw(0,void 0,"YtsSKb")),G=Q.next().value,J=Q.next().value;
Q=_.B(_.aw(0,void 0,"V6JxRe"));var L=Q.next().value,R=Q.next().value;Q=_.B(_.aw(!1,void 0,"JUCSZ"));var a=Q.next().value,S=Q.next().value;Q=_.B(_.aw(!1,void 0,"oV6jwf"));var d=Q.next().value,c=Q.next().value;Q=_.B(_.aw(!1,void 0,"hK1Whe"));var N=Q.next().value,z=Q.next().value,f;Q=_.B(_.aw(!1,void 0,"Asaolf"));var I=Q.next().value,iG=Q.next().value,CC=function(){c(!0);_.Ji(_.Tn,function(){c(!1)},1500)};
_.$i(function(){var Vg=d();_.mU(function(){Vg&&!u()&&h()&&uMo(y,A,C)})},"Qq6Hsf");
_.$i(function(){var Vg=h();_.mU(function(){if(!u()&&Vg){var v5;((v5=l.animateWidth)==null?0:v5.call(l))&&g63(D.value,!!Vg.subscribed,G(),L());var mk,dy;((mk=f)==null?0:mk.subscribed)||!Vg.subscribed||Vg.key!==((dy=f)==null?void 0:dy.key)||CC();f=Vg}})},"hog8te");
Q=_.dM(function(){var Vg,v5,mk,dy=l.data(),eW=!((Vg=h())==null||!Vg.subscribed);Vg=!((v5=l.isOverlay)==null||!v5.call(l));v5=a()?D:void 0;var Qq=(mk=b())==null?void 0:mk.state;mk=I();b8N(dy,Qq);return V$g({model:dy,subscribed:eW,isOverlay:Vg,element:v5,notificationState:Qq,disableTextEllipsis:!0,focused:mk})},void 0,"hc1PRd");
var vo=function(){var Vg;if(!u()&&((Vg=l.animateWidth)==null?0:Vg.call(l))&&(U==null?0:U.value)&&(n==null?0:n.value)&&!N()){Vg=h();var v5=_.B((Vg==null?0:Vg.subscribed)?[U,n]:[n,U]),mk=v5.next().value;v5=v5.next().value;mk=Math.ceil(mk.value.getBoundingClientRect().width);v5=Math.ceil(v5.value.getBoundingClientRect().width);J(mk);R(v5);g63(D.value,!(Vg==null||!Vg.subscribed),mk,v5);z(!0)}},td=_.n0(function(Vg){vo();
var v5=h();v5&&(Vg.detail.endpoint.subscribeEndpoint||Vg.detail.endpoint.unsubscribeEndpoint)&&CSg(D.value,!v5.subscribed,v5)}),GN=function(){var Vg=_.Jc().resolve(_.G8(_.L$));
Vg&&iG(Vg.isKeyBoardInUse())},Ms=function(){iG(!1)};
_.Pd("yt-player-subscribe",function(Vg){var v5=h();v5&&Vg===l.data().channelId&&CSg(D.value,!0,v5)});
_.Pd("yt-player-unsubscribe",function(Vg){var v5=h();v5&&Vg===l.data().channelId&&CSg(D.value,!1,v5)});
_.Pd("yt-update-subscribe-button-action",function(Vg){Vg=_.M(Vg,lek);var v5=h();v5&&Vg&&Vg.channelId===l.data().channelId&&CSg(D.value,!!Vg.subscribed,v5)});
_.N1(function(){D.value&&(D.value.addEventListener("focusin",GN),D.value.addEventListener("focusout",Ms));var Vg=_.oI(_.Tn,function(){vo()});
S(!0);_.NV(function(){_.Tn.cancelJob(Vg);D.value&&(D.value.removeEventListener("focusin",GN),D.value.removeEventListener("focusout",Ms))})});
var j3=function(){var Vg,v5,mk;if(mk=!((Vg=h())==null||!Vg.subscribed))Vg=!!l.data().disableNotificationBell,mk=(v5=b())==null?void 0:v5.state,mk=!Vg&&!!mk;return mk},wl=function(){var Vg;
return!((Vg=h())==null?0:Vg.subscribed)},zN=function(){var Vg,v5;
if(v5=wl()){v5=!!l.data().disableNotificationBell;var mk=(Vg=b())==null?void 0:Vg.state;v5=!v5&&!!mk}return v5},Z7={},Lm={};
return _.g("yt-subscribe-button-view-model",{class:_.DV(l.className,"ytSubscribeButtonViewModelHost",(Z7.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var Vg,v5;return!((Vg=h())==null||!Vg.subscribed)&&((v5=l.animateWidth)==null?void 0:v5.call(l))&&d()},Z7.ytSubscribeButtonViewModelHostHidden=function(){var Vg;
return!((Vg=h())==null?0:Vg.subscribed)&&l.data().hideWhenUnsubscribed},Z7)),
el:D,"on:yt-service-request-sent":td},_.g(Aom,{backgroundLottieRef:y,foregroundLottieRef:A,wrapperClass:_.DV("ytSubscribeButtonViewModelAnimatedActionWrapper",(Lm.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var Vg;return((Vg=l.animateWidth)==null?void 0:Vg.call(l))&&d()},Lm.ytSubscribeButtonViewModelStaticWidth=function(){var Vg;
return!((Vg=l.animateWidth)==null?0:Vg.call(l))},Lm)),
disableAnimation:u},_.g("div",{el:U,class:"ytSubscribeButtonViewModelContainer"},_.g(_.ey,{data:Q,icon:function(){return _.g(_.v,{cond:j3,then:function(){var Vg=function(){var v5;return Bzd((v5=b())==null?void 0:v5.state)};
return _.g(_.v,{cond:function(){return u()||Vg()!=="NOTIFICATIONS_NONE"},
then:function(){return _.g(_.C0,{icon:Vg})},
else:function(){return _.g(PC1,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:C})}})}})},
secondaryIconName:function(){return j3()?"EXPAND":void 0}}))),_.g("div",{el:n,
class:"ytSubscribeButtonViewModelInvisible"},_.g(_.v,{cond:function(){var Vg;return((Vg=l.animateWidth)==null?void 0:Vg.call(l))&&!u()&&!N()},
then:function(){return _.g(_.ey,{data:_.dM(function(){var Vg;return V$g({model:l.data(),subscribed:wl(),isOverlay:!((Vg=l.isOverlay)==null||!Vg.call(l)),element:D,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var Vg;return zN()?Bzd((Vg=b())==null?void 0:Vg.state):void 0},
secondaryIconName:function(){return zN()?"EXPAND":void 0}})}})))},"sa");
_.iz.idomCompat=!0;var brz=_.w(function(l){var D=l.data;var U=_.Pr(i83,function(){return D().subscriptionStateEntityKey});
return _.g(_.v,{cond:function(){var n=D(),y=U();return!n.hideWhenUnsubscribed||(y==null?0:y.subscribed)?_.M(D().button,_.CM):void 0},
then:function(n){return _.g("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.g(_.t9,{data:n,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
brz.idomCompat=!0;var g$k,lz;g$k=_.w(function(l){return _.g(_.uI,{data:function(){return l.actionRow().actions}},{buttonViewModel:function(D){var U=D.data;
return _.g(lz,{isRow:l.isRow,isIconOnlyButton:function(){return v6B(U())},
useIntrinsicWidth:l.useIntrinsicWidth},_.g(_.t9,{data:U}))},
subscribeButtonViewModel:function(D){return _.g(lz,{isRow:l.isRow},_.g(_.iz,{data:D.data,isOverlay:!1,animateWidth:function(){return!l.isRow()}}))},
downloadButtonViewModel:function(D){var U=D.data;return _.g(lz,{isRow:l.isRow,isIconOnlyButton:function(){return!!U().playlistId}},_.g(UzH,{data:U}))},
submitButtonViewModel:function(D){var U=D.data;return _.g(lz,{isRow:l.isRow,isIconOnlyButton:function(){var n=U();return v6B(_.M(n==null?void 0:n.button,_.CM))}},_.g(n$z,{data:U}))},
toggleButtonViewModel:function(D){var U=D.data;return _.g(lz,{isRow:l.isRow,isIconOnlyButton:function(){var n=U();return v6B(_.M(n.isToggled?n.toggledButtonViewModel:n.defaultButtonViewModel,_.CM))}},_.g(_.s0,{data:U}))},
subscribePlusButtonViewModel:function(D){return _.g(lz,{isRow:l.isRow},_.g(brz,{data:D.data}))}})},"ua");
lz=_.w(function(l){var D={};return _.g("div",{class:_.DV("ytFlexibleActionsViewModelAction",(D.ytFlexibleActionsViewModelActionRowAction=l.isRow,D.ytFlexibleActionsViewModelActionIntrinsicWidth=l.useIntrinsicWidth,D.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,D.ytFlexibleActionsViewModelActionIconOnlyButton=l.isIconOnlyButton,D))},l.children)},"va");
_.Dq=_.w(function(l){var D=function(){var n;return((n=l.layout)==null?void 0:n.call(l))===1},U={};
return _.g("yt-flexible-actions-view-model",{class:_.DV("ytFlexibleActionsViewModelHost",l.className,(U.ytFlexibleActionsViewModelInline=function(){return!D()},U.ytFlexibleActionsViewModelScrollable=function(){return l.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},U))},_.g(_.wt,{each:function(){return l.data().actionsRows||[]}},function(n){return _.g(_.v,{cond:D,
then:function(){return _.g("div",{class:"ytFlexibleActionsViewModelActionRow"},_.g(g$k,{actionRow:n,isRow:D,useIntrinsicWidth:function(){return!!l.data().respectActionIntrinsicWidth}}))},
else:function(){return _.g(g$k,{actionRow:n,isRow:D})}})}))},"wa");_.Tt(_.Dq,"yt-flexible-actions-view-model",{props:{data:_.C$,layout:_.C$,justifyContentOverride:_.C$,className:_.C$}});_.Uh=_.w(function(l){var D=_.Pr(SZ,function(){var y;return(y=l.data().dislikeEntityKey)!=null?y:""}),U=_.dM(function(){var y=D();
return y?y.likeStatus==="DISLIKE":_.M(l.data().toggleButtonViewModel,_.Pq).isToggled},void 0,"fNr9he"),n=_.dM(function(){return Object.assign({},_.M(l.data().toggleButtonViewModel,_.Pq),{isToggled:U()})},void 0,"AezoCc");
return _.g("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.g(_.s0,{data:n,buttonShapeOverrides:l.buttonShapeOverrideables,onToggle:function(y){var A=D();A&&y!==(A.likeStatus==="DISLIKE")&&A.key&&_.$u(_.et("likeStatusEntity",A.key,{likeStatus:y?"DISLIKE":"INDIFFERENT",hadUserInteraction:y}))}}))},"xa");
_.Uh.idomCompat=!0;_.n_=_.w(function(l){var D=_.q("web_supports_animations_api"),U=$t(function(J){var L=u();if(!J){var R,a;return{numberText:(a=L==null?void 0:(R=L.likeCountIfIndifferent)==null?void 0:R.content)!=null?a:"",numberValue:Number(L==null?void 0:L.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var S;R=(L==null?void 0:(S=L.likeCountIfIndifferent)==null?void 0:S.content)!==J.numberText;if(h()||!R)return J;var d;return{numberText:(L==null?void 0:(d=L.likeCountIfIndifferent)==null?void 0:d.content)||
"",numberValue:Number(L==null?void 0:L.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!L}}),n=$t(function(J){var L=u();
if(!J){var R,a;return{numberText:(a=L==null?void 0:(R=L.likeCountIfLiked)==null?void 0:R.content)!=null?a:"",numberValue:Number(L==null?void 0:L.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var S;R=(L==null?void 0:(S=L.likeCountIfIndifferent)==null?void 0:S.content)!==J.numberText;if(h()||!R)return J;var d;return{numberText:(L==null?void 0:(d=L.likeCountIfLiked)==null?void 0:d.content)||"",numberValue:Number(L==null?void 0:L.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!L}}),y=_.B(_.aw(void 0,
void 0,"xYSlUe")),A=y.next().value,C=y.next().value,h=A,b=_.Pr(SZ,function(){var J,L;
return(L=(J=l.data())==null?void 0:J.likeStatusEntityKey)!=null?L:""}),u=_.Pr(nVl,function(){var J,L;
return((J=l.likeCountEntity)==null?void 0:(L=J.call(l))==null?void 0:L.key)||""}),Q=_.dM(function(){var J;
return((J=b())==null?void 0:J.likeStatus)==="LIKE"},void 0,"DG5Osd"),G=function(){var J;
return D&&!((J=l.likeCountEntity)==null||!J.call(l))};
return _.g("like-button-view-model",{class:_.DV("ytLikeButtonViewModelHost",l.className)},_.g(_.s0,{data:function(){var J=Object,L=J.assign,R;var a=_.M((R=l.data())==null?void 0:R.toggleButtonViewModel,_.Pq);return L.call(J,{},a||{},{isToggled:Q()})},
buttonShapeOverrides:l.buttonShapeOverrideables,animatedTextPropsDefault:function(){return G()?U():void 0},
animatedTextPropsToggled:function(){return G()?n():void 0},
onToggle:function(J){Qvd(J,b(),h(),C)},
style:function(){var J;return((J=l.disableIconAnimation)==null?0:J.call(l))?void 0:{animateIcon:"true"}}}))},"ya");
_.n_.idomCompat=!0;var uKy=_.w(function(l){var D=function(){return _.M(l.data().likeButtonViewModel,_.Vw)},U=function(){var y;
return((y=D())==null?void 0:y.likeStatusEntityKey)||""},n=_.dM(function(){var y,A;
var C=(A=_.Pr(SZ,U)())!=null?A:(y=D())==null?void 0:y.likeStatusEntity;y=l.data();var h;y=(y==null?void 0:(h=y.timedAnimationData)==null?void 0:h.animationTiming)||[];return{uniqueId:"like-dislike",timings:y,enabled:(C==null?void 0:C.likeStatus)==="INDIFFERENT"&&y.length>0,experimentEnabled:y.length>0}},void 0,"zZ3GQb");
return _.g("segmented-like-dislike-button-view-model",{class:_.DV("ytSegmentedLikeDislikeButtonViewModelHost",l.className),"button-renderer":!0},_.g(H8y,{settings:n},_.g("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.g(_.v,{cond:D,then:function(y){return _.g(_.n_,{data:y,likeCountEntity:function(){return l.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.q("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.g(_.v,{cond:function(){return _.M(l.data().dislikeButtonViewModel,_.Oi)},
then:function(y){return _.g(_.Uh,{data:y,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
uKy.idomCompat=!0;_.Tt(uKy,"segmented-like-dislike-button-view-model",{props:{data:_.C$,className:_.C$}});var v$8=_.w(function(l){var D=l.data;var U=l.className;var n=l.setMinWidth;var y=l.forceIconOnly;var A=_.bP("account-link-button-view-model"),C=_.Pr(_.GQN,function(){var J;return(J=D().accountLinkStatusEntityKey)!=null?J:""}),h=_.Pr(_.GQN,function(){var J;
return(J=D().accountLinkStatusSecondaryEntityKey)!=null?J:""}),b=function(){if(!_.q("web_account_link_secondary_killswitch")){var J,L;
return((J=C())==null?void 0:J.linked)||((L=h())==null?void 0:L.linked)}var R;return(R=C())==null?void 0:R.linked};
_.$i(function(){var J=C();if(J){var L=Xq1(new tmz,m37(new er7,!!J.linked));_.nq().then(function(R){R&&(R.setAccountLinkState(_.c2(L.JSC$12399_serializeBinary(),4)),R.updateAccountLinkingConfig(!!J.linked))})}},"IvZF7");
var u=function(){return _.M(D().toggleButtonViewModel,_.Pq)};
_.Pd("yt-signal-action-show-account-link-dialog",function(){if(u()){var J=b()?u().toggledButtonViewModel:u().defaultButtonViewModel;J=_.M(J,_.CM);var L;if((L=C())==null?0:L.isWarning){L=_.M(D().warningButtonViewModel,_.CM);if(!L){_.nt(Error("Dh"));return}J=L}var R;(L=_.te((R=J)==null?void 0:R.onTap))&&_.y0([L],A.value)}else _.nt(Error("Eh"))});
var Q=function(){var J=u();return Object.assign({},J,{isToggled:b()})},G=function(){return(y==null?0:y())?{iconPosition:"icon-only"}:{}};
return _.g("account-link-button-view-model",{class:_.DV("ytwAccountLinkButtonViewModelHost",U,function(){return(n==null?0:n())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:A,"button-renderer":!0},_.g("div",null,_.g(_.v,{cond:function(){var J;if((J=C())==null?0:J.isWarning)return(J=_.M(D().warningButtonViewModel,_.CM))||_.nt(Error("Dh")),J},
then:function(J){return _.g(_.t9,{data:J,buttonOverrides:G})},
else:function(){return _.g(_.s0,{data:Q,buttonShapeOverrides:G})}})))},"Ba");_.Tt(v$8,"account-link-button-view-model",{props:{data:_.C$,className:_.ND,setMinWidth:_.ND,forceIconOnly:_.ND}});_.RL("menuRenderer","menuRenderer","ytd-menu-renderer");
var Qu_={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"}},
Gby=_.q("web_fix_missing_action_buttons")?100:200,yW=function(){var l=_.p.apply(this,arguments)||this;l.safeArea=!_.q("kevlar_flex_menu_safe_area_killswitch");l.tonalOverride=!1;l.threeDotSize="M";l.isOverlay=!1;l.useOverlayDark=!1;l.topLevelIconsOnly=!1;l.JSC$14838_lastWidth=0;l.maybeUpdateFlexibleMenu=function(){_.q("web_fix_missing_action_buttons")?requestAnimationFrame(l.maybeUpdateFlexibleMenuImpl):l.maybeUpdateFlexibleMenuImpl()};
l.maybeUpdateFlexibleMenuImpl=function(){var D;if((D=l.data)!=null&&D.flexibleItems){l.maybeFlushDebouncer();D=l.hostElement.clientWidth;var U=D>l.JSC$14838_lastWidth,n,y=((n=l.topLevelButtonsContainer)==null?void 0:n.scrollHeight)||0,A;n=((A=l.flexibleItemButtonsContainer)==null?void 0:A.scrollHeight)||0;A=l.hostElement.scrollHeight>Math.max(y,n)+8;U?(l.resetFlexibleItems(),l.JSC$14838_lastWidth=l.hostElement.clientWidth,l.maybeUpdateFlexibleMenu()):A&&(l.shrinkFlexibleMenu(),l.JSC$14838_lastWidth=
D)}};
l.computeThreeDotButtonShape=function(){if(l.tonalOverride)return Object.assign({},{onTap:function(){l.onOverflowTap()},
iconPosition:"icon-only",style:l.isOverlay?l.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:l.threeDotSize,state:"active",accessibilityLabel:l.computeAccessibilityLabel(l.data)},l.threeDotButtonOverride)};
l.onOverflowTap=function(){if(l.data.fetchMenuCommand)_.Jc().resolve(_.qK).resolveCommand(l.data.fetchMenuCommand,{form:{element:l.hostElement}});else if(l.data.isDisabled&&l.data.disabledCommand)_.Ae(l.data.disabledCommand,l.hostElement);else{var D=l.createMenuRendererVe(),U={items:l.items};l.data.menuPopupAccessibility&&(U.menuPopupAccessibility=l.data.menuPopupAccessibility);l.data.footer&&(U.footer=l.data.footer);D={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:U},veData:D}};
_.Jc().resolve(_.H0).openSheet({openPopupActionCommand:D},l.hostElement)}};
return l};
_.Z(yW,_.p);_.W=yW.prototype;_.W.updateButtonOverrides=function(){if(!_.q("menu_renderer_label_update_upkillswitch")){var l=_.iJ(this.hostElement).querySelector("yt-button-view-model");l&&(l.buttonOverrides=this.buttonOverrides)}};
_.W.computeHasItems=function(){var l;return((l=this.topLevelButtonData)==null?void 0:l.length)||this.hasFlexibleItems};
_.W.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.W.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Wg(this.hostElement,{"--ytd-menu-renderer-button-color":_.an(this.data.iconColor)}))};
_.W.onStamperFinished=function(){this.JSC$14838_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.W.setupFlexibleMenu=function(){var l=this,D;(D=this.data)!=null&&D.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.A1(this.maybeUpdateFlexibleMenu,Gby,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){l.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))};
_.W.maybeFlushDebouncer=function(){if(_.q("web_replace_formatted_with_attributed_string")){var l;(l=this.topLevelButtons)==null||l.forEach(function(U){var n;(U=(n=U.getElementsByTagName("yt-attributed-string"))==null?void 0:n[0])&&ZVd(U)});
var D;(D=this.flexibleItemButtons)==null||D.forEach(function(U){var n;(U=(n=U.getElementsByTagName("yt-attributed-string"))==null?void 0:n[0])&&ZVd(U)})}};
_.W.resetFlexibleItems=function(){var l;if((l=this.data)!=null&&l.flexibleItems){_.q("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var D;this.flexAsTopLevelButtons=(D=this.data.flexibleItems)==null?void 0:D.map(function(U){return _.M(U,_.W4h).topLevelButton});
_.q("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.W.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.W.shrinkFlexibleMenu=function(){var l;(l=this.flexAsTopLevelButtons)!=null&&l.length&&(this.flexAsTopLevelButtons=[].concat(_.zz(this.flexAsTopLevelButtons.slice(0,-1))))};
_.W.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Qu_,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Qu_,events:!0}}};
_.W.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.W.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.W.detached=function(){this.icon="MORE_VERT"};
_.W.computeTopLevelButtonData=function(l){if(!l)return[];var D;l=(D=l==null?void 0:l.topLevelButtons)!=null?D:[];return _.we.unsafeClone([].concat(_.zz(l)))};
_.W.computeItems=function(l,D){if(!l)return[];var U=[];if(D){var n=(l.flexibleItems||[]).map(function(C){return _.M(C,_.W4h)});
n=_.B(n);for(var y=n.next();!y.done;y=n.next())y=y.value,D.includes(y.topLevelButton)||(y=y.menuItem)&&U.push(y)}var A;l=(A=l==null?void 0:l.items)!=null?A:[];return[].concat(_.zz(U),_.zz(l))};
_.W.computeMenuActive=function(l,D){return l||D};
_.W.onPopupOpened=function(){this.overlayOpen=!0;_.O9(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.W.onPopupClosed=function(){this.overlayOpen=!1;_.O9(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.W.onPopupCanceled=function(){this.overlayOpen=!1;_.O9(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.W.computeAccessibilityLabel=function(l){return this.get("accessibility.accessibilityData.label",l)};
_.W.isHidden=function(l,D){return this.tonalOverride||!l?!0:l.fetchMenuCommand||l.isDisabled&&l.disabledCommand?!1:!(D==null?0:D.length)};
_.W.isModernOverflowHidden=function(l,D){return this.tonalOverride&&l?l.fetchMenuCommand?!1:!(D==null?0:D.length):!0};
_.W.createMenuRendererVe=function(){var l=this.data.trackingParams,D=_.t6(),U=_.aS();return l&&D&&U?(l=_.v9(l),U=_.UE(7591),_.q("combine_ve_grafts")?_.cq(_.he(),U,l):_.jz(D,l,U),U):null};
_.QP.Object.defineProperties(yW.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.flexAsTopLevelButtons)==null||!l.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
yW.prototype.onPopupCanceled=yW.prototype.onPopupCanceled;yW.prototype.onPopupClosed=yW.prototype.onPopupClosed;yW.prototype.onPopupOpened=yW.prototype.onPopupOpened;yW.prototype.tonalOverrideChanged=yW.prototype.tonalOverrideChanged;yW.prototype.resetFlexibleItems=yW.prototype.resetFlexibleItems;yW.prototype.setupFlexibleMenu=yW.prototype.setupFlexibleMenu;yW.prototype.iconButtonColorChanged=yW.prototype.iconButtonColorChanged;yW.prototype.updateButtonOverrides=yW.prototype.updateButtonOverrides;
_.E([_.m(_.LF),_.T("design:type",Object)],yW.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.gP("#button-shape"),_.T("design:type",HTMLElement)],yW.prototype,"buttonShape",void 0);_.E([_.gP("#button"),_.T("design:type",Object)],yW.prototype,"button",void 0);
_.E([_.K(),_.T("design:type",Object)],yW.prototype,"data",void 0);_.E([_.K({computed:"computeTopLevelButtonData(data)"}),_.T("design:type",Array)],yW.prototype,"topLevelButtonData",void 0);_.E([_.K(),_.T("design:type",Array)],yW.prototype,"flexAsTopLevelButtons",void 0);_.E([_.K({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.T("design:type",Array)],yW.prototype,"items",void 0);_.E([_.K({value:"MORE_VERT"}),_.T("design:type",String)],yW.prototype,"icon",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yW.prototype,"safeArea",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.T("design:type",Boolean)],yW.prototype,"menuActive",void 0);_.E([_.K(),_.T("design:type",Boolean)],yW.prototype,"menuFocused",void 0);_.E([_.K({value:"bottom"}),_.T("design:type",String)],yW.prototype,"buttonTooltipPosition",void 0);_.E([_.K(),_.T("design:type",Boolean)],yW.prototype,"overlayOpen",void 0);
_.E([_.K({value:!0}),_.T("design:type",Boolean)],yW.prototype,"forceIconButton",void 0);_.E([_.K(),_.T("design:type",Boolean)],yW.prototype,"styleActionButton",void 0);_.E([_.K(),_.T("design:type",Boolean)],yW.prototype,"disableTextTransformOnButtons",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yW.prototype,"tonalOverride",void 0);_.E([_.K(),_.T("design:type",Object)],yW.prototype,"threeDotSize",void 0);
_.E([_.K(),_.T("design:type",Object)],yW.prototype,"threeDotButtonOverride",void 0);_.E([_.K(),_.T("design:type",Object)],yW.prototype,"isOverlay",void 0);_.E([_.K(),_.T("design:type",Object)],yW.prototype,"useOverlayDark",void 0);_.E([_.K({computed:"computeButtonOverride(tonalOverride)"}),_.T("design:type",Object)],yW.prototype,"buttonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],yW.prototype,"hasCustomIconColor",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("flexAsTopLevelButtons"),_.T("design:type",Object),_.T("design:paramtypes",[])],yW.prototype,"hasFlexibleItems",null);_.E([_.K({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.T("design:type",Boolean)],yW.prototype,"hasItems",void 0);_.E([_.K(),_.T("design:type",Object)],yW.prototype,"topLevelIconsOnly",void 0);
_.E([_.Pg("topLevelIconsOnly"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yW.prototype,"updateButtonOverrides",null);_.E([_.t("topLevelIconsOnly"),_.T("design:type",Object),_.T("design:paramtypes",[])],yW.prototype,"buttonOverrides",null);_.E([_.gP("#top-level-buttons-computed"),_.T("design:type",HTMLElement)],yW.prototype,"topLevelButtonsContainer",void 0);_.E([_.uJ(".top-level-buttons > *"),_.T("design:type",Array)],yW.prototype,"topLevelButtons",void 0);
_.E([_.gP("#flexible-item-buttons"),_.T("design:type",HTMLElement)],yW.prototype,"flexibleItemButtonsContainer",void 0);_.E([_.uJ("#flexible-item-buttons > *"),_.T("design:type",Array)],yW.prototype,"flexibleItemButtons",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yW.prototype,"iconButtonColorChanged",null);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yW.prototype,"setupFlexibleMenu",null);_.E([_.GY("topLevelIconsOnly"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yW.prototype,"resetFlexibleItems",null);_.E([_.Pg("tonalOverride"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yW.prototype,"tonalOverrideChanged",null);
_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yW.prototype,"onPopupOpened",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yW.prototype,"onPopupClosed",null);_.E([_.hj("yt-popup-canceled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yW.prototype,"onPopupCanceled",null);
_.r(yW,"ytd-menu-renderer",function(){if(x8_===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);x8_=l}l=x8_;return l},{mode:2});var Jo7;var LD5;_.AQ=_.w(function(l){var D=l.data;var U=function(){if(D().icon)a:{var y={iconName:D().icon};for(var A=_.Jc().resolve(_.ne),C=_.B([12,24]),h=C.next();!h.done;h=C.next()){var b=h.value;h=Object.assign({},y,{iconStyle:"youtube_fill",iconSize:b});b=Object.assign({},y,{iconStyle:"youtube_outline",iconSize:b});if(A.resolveIcon(h)){y=h;break a}if(A.resolveIcon(b)){y=b;break a}}y=void 0}else y=void 0;return y};
l={};var n={};return _.g("badge-shape",{class:_.DV("yt-badge-shape",function(){return Z89(D().type)},(l["yt-badge-shape--overlay"]=function(){return D().isOverlay},l["yt-badge-shape--ads-include-dot"]=function(){return D().adsIncludeDot},l["yt-badge-shape--thumbnail-badge"]=function(){a:switch(D().type){case 17:case 18:case 19:var y=!0;
break a;default:y=!1}return y},l["yt-badge-shape--status-badge"]=function(){a:switch(D().type){case 12:case 13:case 14:case 15:case 16:var y=!0;
break a;default:y=!1}return y},l["yt-badge-shape--no-text"]=function(){return!D().text},l["yt-badge-shape--modern"]=function(){return D().modern||_.q("web_modern_badge_shape")},l)),
style:_.BK({"background-color":function(){var y;return(y=D().customColors)==null?void 0:y.backgroundColor}}),
role:function(){return D().accessibilityText?"img":void 0},
"aria-label":function(){return D().accessibilityText}},_.g(_.v,{cond:function(){return D().animation},
then:function(y){return _.g(_.cO,{className:"yt-badge-shape__icon",data:y,animationName:function(){return y().animationConfig.name||""}})}}),_.g(_.v,{cond:function(){var y;
return U()&&!((y=D())==null?0:y.animation)},
then:function(){return _.g("div",{class:"yt-badge-shape__icon"},_.g(_.L0,{data:function(){return U()}}))}}),_.g("div",{class:_.DV("yt-badge-shape__text",(n["yt-badge-shape__text--clip-text-overflow"]=function(){return D().clipTextOverflow},n["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(D().numBadgesInRow||0)>1},n))},function(){var y;
return(y=D())==null?void 0:y.text}))},"Ca");
_.AQ.idomCompat=!0;_.Tt(_.AQ,"badge-shape",{props:{data:_.C$}});var WZ=function(){var l=_.p.apply(this,arguments)||this;l.systemIcons=_.q("kevlar_system_icons");l.animated=_.q("animated_live_badge_icon");l.useBadgeShape=_.q("web_badge_shape_defrag");return l};
_.Z(WZ,_.p);_.W=WZ.prototype;_.W.addTooltips=function(){for(var l=_.iJ(this.hostElement).querySelectorAll(".badge"),D=0,U;U=l[D++];){var n=this.repeatElement.itemForElement(U);U=_.iJ(U);U.lastChild&&U.lastChild.is==="tp-yt-paper-tooltip"&&U.removeChild(U.lastChild);if(n=n.metadataBadgeRenderer&&n.metadataBadgeRenderer.tooltip){var y=_.vO("tp-yt-paper-tooltip");(0,_.Aj)(y).textContent=n;y.setAttribute("position","top");y.setAttribute("aria-hidden","true");U.appendChild(y)}}};
_.W.badgesChanged=function(){var l=this;_.PN().parkOrScheduleJob(function(){l.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.W.standaloneRoundedBadgeChanged=function(){var l=this.useRoundedBadge?this.useRoundedBadge:void 0;l&&(this.useRoundedBadge=l)};
_.W.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.W.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.W.computeStyle=function(l){_.q("enable_html5_teal_ad_badge")&&l==="BADGE_STYLE_TYPE_AD"&&(l="badge-style-type-ad-alternate");_.q("kevlar_ytb_live_badges")&&l==="BADGE_STYLE_TYPE_LIVE_NOW"&&(l="badge-style-type-live-now-alternate");return l?l.toLowerCase().replace(/_/g,"-"):""};
_.W.computeRole=function(l){return this.computeAriaLabel(l)?"img":"status"};
_.W.computeAriaLabel=function(l){var D;return(l==null?void 0:(D=l.accessibilityData)==null?void 0:D.label)||(l==null?void 0:l.label)};
_.W.computeBadgeShape=function(l){if(l){var D,U;var n=MTG(l.style);var y=RBN(l.style),A=l.label,C=((D=l.accessibilityData)==null?void 0:D.label)||l.label;a:switch(l.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":D=!0;break a;default:D=!1}var h=(U=l.icon)==null?void 0:U.iconType;a:switch(l.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":l=!0;break a;default:l=!1}n={type:n,brNzRatingBadgeType:y,text:A,accessibilityText:C,
isOverlay:D,icon:h!=="PREMIUM"?h:void 0,modern:_.q("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:l}}else n={};return n};
_.W.updateComputedBadges=function(l,D,U){var n=this;(D=D?[D]:U?[U]:void 0)?this.computedBadges=D:this.computedBadges=l==null?void 0:l.filter(function(y){var A;if((A=y.metadataBadgeRenderer)==null?0:A.groups){A=!1;y=_.B(y.metadataBadgeRenderer.groups);for(var C=y.next();!C.done;C=y.next()){C=C.value;var h=void 0;A=A||((h=n.hiddenBadgeGroups)==null?void 0:h.includes(C))}return!A}return!0})};
_.W.useFilledIcons=function(l){return _.q("kevlar_system_icons")&&(l==="AUDIO_BADGE"||l==="CHECK_CIRCLE_THICK"||l==="OFFICIAL_ARTIST_BADGE"||l==="SPONSORSHIP_STAR"||l==="PERSON_RADAR_FILLED"||l==="PERSON_RADAR")};
_.W.computeBadgeShapeStyle=function(l){return this.useBadgeShape?l==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||l==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":l==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.W.computeIcon=function(l){var D,U;l=l==null?void 0:(D=l.metadataBadgeRenderer)==null?void 0:(U=D.icon)==null?void 0:U.iconType;if(l!=="PREMIUM"&&l)return _.UV(l)};
_.W.computeStandaloneBadge=function(l){var D;l=l==null?void 0:(D=l.icon)==null?void 0:D.iconType;return l==="PREMIUM_STANDALONE"||l==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
WZ.prototype.hiddenBadgeGroupsChanged=WZ.prototype.hiddenBadgeGroupsChanged;WZ.prototype.standaloneBadgeChanged=WZ.prototype.standaloneBadgeChanged;WZ.prototype.standaloneRoundedBadgeChanged=WZ.prototype.standaloneRoundedBadgeChanged;WZ.prototype.badgesChanged=WZ.prototype.badgesChanged;_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],WZ.prototype,"hidden",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],WZ.prototype,"componentBehavior",void 0);
_.E([_.K(),_.T("design:type",Array)],WZ.prototype,"badges",void 0);_.E([_.K(),_.T("design:type",Object)],WZ.prototype,"topStandaloneBadge",void 0);_.E([_.K(),_.T("design:type",Object)],WZ.prototype,"bottomStandaloneBadge",void 0);_.E([_.K(),_.T("design:type",Object)],WZ.prototype,"computedBadges",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],WZ.prototype,"mediumFontAdBadge",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],WZ.prototype,"useRoundedBadge",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],WZ.prototype,"largeFontAdBadge",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],WZ.prototype,"overlayAd",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],WZ.prototype,"overlayPremium",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],WZ.prototype,"noDotAdBadge",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],WZ.prototype,"collectionTruncate",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],WZ.prototype,"isThumbnailBadge",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],WZ.prototype,"wrapBadges",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Number)],WZ.prototype,"numBadgesInRow",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],WZ.prototype,"systemIcons",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],WZ.prototype,"animated",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],WZ.prototype,"useBadgeShape",void 0);_.E([_.K({value:[]}),_.T("design:type",Array)],WZ.prototype,"hiddenBadgeGroups",void 0);_.E([_.gP("#repeat"),_.T("design:type",m2)],WZ.prototype,"repeatElement",void 0);_.E([_.GY("badges"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],WZ.prototype,"badgesChanged",null);
_.E([_.GY("useRoundedBadge"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],WZ.prototype,"standaloneRoundedBadgeChanged",null);_.E([_.GY("topStandaloneBadge","bottomStandaloneBadge"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],WZ.prototype,"standaloneBadgeChanged",null);_.E([_.GY("hiddenBadgeGroups"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],WZ.prototype,"hiddenBadgeGroupsChanged",null);
_.E([_.x({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],WZ);
var qXk=_.Ol()(WZ,"ytd-badge-supported-renderer",function(){if(LD5===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);LD5=l}l=LD5;return l},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Vj("kevlar_poly_si_batch_j053")?1:2});var BZ=function(){var l=_.p.apply(this,arguments)||this;l.iconType="STAR";l.standardizeIconSize=_.q("kevlar_system_icons");l.mediaHoverOverlayInitialVisibility=_.q("enable_top_landscape_image_button_command_web");l.noBottomMargin=!1;l.thumbnailObjectFit="CONTAIN";l.thumbnailFitHeight=!0;l.actionMap={"yt-mute-ad-action":"handleMuteAd"};return l};
_.Z(BZ,_.p);_.W=BZ.prototype;_.W.created=function(){this.activeView=new aH(this.hostElement)};
_.W.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"}}}};
_.W.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",BZ.JSC$14850_DEFAULT_CLICK_LOCATION_BEHAVIOR,BZ.JSC$14850_CLICK_LOCATION_ID_MAP))};
_.W.onTap=function(l){this.onTapOrClick(l)};
_.W.onTapOrClick=function(l){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,l,!1)};
_.W.updateMediaBackgroundImage=function(){var l=this.get("data.image.thumbnail.thumbnails");l&&(l=_.IO(l,0))&&_.Wg(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+l+")"})};
_.W.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var l=0;l<this.data.impressionEndpoints.length;l++){var D=this.data.impressionEndpoints[l];D.clickTrackingParams&&delete D.clickTrackingParams;_.Jc().resolve(_.qK).resolveCommand(D,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var U;((U=this.data)==null?0:U.activeView)&&tY(this.activeView,this.data.activeView)}};
_.W.handleMuteAd=function(){};
_.W.attached=function(){var l=this;_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&XY(l.activeView)})};
_.W.detached=function(){_.q("stop_av_measurement_on_detach")&&XY(this.activeView)};
_.QP.Object.defineProperties(BZ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.titleText)return"";var D;return _.C3("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((D=this.data)==null?void 0:D.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.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 l;return!((l=this.data)==null||!l.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"}}});
BZ.prototype.onTap=BZ.prototype.onTap;BZ.prototype.dataChanged=BZ.prototype.dataChanged;
BZ.JSC$14850_CLICK_LOCATION_ID_MAP=_.q("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"]]);
BZ.JSC$14850_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.q("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.U3),_.T("design:type",Object)],BZ.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],BZ.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.qn.YtSparklesClickLocationBehavior),_.T("design:type",Object)],BZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.m([_.K$.YtActionHandlerBehavior]),_.T("design:type",Object)],BZ.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],BZ.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],BZ.prototype,"clickCommand",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],BZ.prototype,"miniMode",void 0);_.E([_.K(),_.T("design:type",String)],BZ.prototype,"iconType",void 0);_.E([_.t("data.titleText"),_.T("design:type",String),_.T("design:paramtypes",[])],BZ.prototype,"titleAriaLabel",null);_.E([_.t("data.rating"),_.T("design:type",Object),_.T("design:paramtypes",[])],BZ.prototype,"getRating",null);
_.E([_.t("data.price"),_.T("design:type",Object),_.T("design:paramtypes",[])],BZ.prototype,"getPrice",null);_.E([_.t("data.thirdLine"),_.T("design:type",Object),_.T("design:paramtypes",[])],BZ.prototype,"getThirdLine",null);_.E([_.t("data.fourthLine"),_.T("design:type",Object),_.T("design:paramtypes",[])],BZ.prototype,"getFourthLine",null);_.E([_.t("data.fifthLine"),_.T("design:type",Object),_.T("design:paramtypes",[])],BZ.prototype,"getFifthLine",null);
_.E([_.t("getRating"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BZ.prototype,"computeRatingHidden",null);_.E([_.t("getPrice"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BZ.prototype,"computePriceHidden",null);_.E([_.t("getThirdLine"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BZ.prototype,"computeThirdLineHidden",null);_.E([_.t("getFourthLine"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BZ.prototype,"computeFourthLineHidden",null);
_.E([_.t("getFifthLine"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BZ.prototype,"computeFifthLineHidden",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.energyIcon"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BZ.prototype,"hasEnergyIcon",null);_.E([_.t("computePriceHidden","computeRatingHidden"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BZ.prototype,"computeSecondaryTextHidden",null);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],BZ.prototype,"standardizeIconSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],BZ.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],BZ.prototype,"noBottomMargin",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.layout"),_.T("design:type",String),_.T("design:paramtypes",[])],BZ.prototype,"layout",null);
_.E([_.t("data.layout"),_.T("design:type",Object),_.T("design:paramtypes",[])],BZ.prototype,"mediaThumbnailWidth",null);_.E([_.t("layout"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BZ.prototype,"useRoundedBadge",null);_.E([_.K(),_.T("design:type",String)],BZ.prototype,"thumbnailObjectFit",void 0);_.E([_.K(),_.T("design:type",Object)],BZ.prototype,"thumbnailFitHeight",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],BZ.prototype,"dataChanged",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],BZ.prototype,"onTap",null);_.E([_.x({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],BZ);
_.r(BZ,"ytd-display-ad-renderer",function(){if(Jo7!==void 0)return Jo7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Jo7=l},{mode:1});var M4k;var Rx_;var Zrk;var eBC=new Map;var exH=!1;var C_=function(){var l=_.p.apply(this,arguments)||this;l.DEFAULT_TOOLTIP_OFFSET="10";l.TOOLTIP_OFFSET_NO_BANNER="-8";l.badges=null;l.noEndpoints=!1;l.wrapText=!1;l.forceVerified=!1;l.tooltipPosition="top";l.compactStyle=!1;l.height=0;l.lineHeight=0;return l};
_.Z(C_,_.p);_.W=C_.prototype;_.W.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.W.attached=function(){var l=this;this.observer=new MutationObserver(function(D,U){l.handleResized();U.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.W.detached=function(){this.observer&&this.observer.disconnect()};
_.W.logTooltipEvent=function(){_.q("kevlar_wiz_tooltip_event_killswitch")||exH||(_.m8C("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),exH=!0)};
_.W.handleWindowResized=function(){this.handleResized()};
_.W.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")))};
_.W.onHeightChanged=function(){if(this.verified){var l=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.H3("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=l:this.textContainerEl.style.marginRight=l}};
_.W.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.H3("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.W.handleResized=function(){var l=this;this.verified&&_.Tn.addLowPriorityJob(function(){l.fitBackgroundToText();var D=getComputedStyle(l.hostElement).lineHeight;D&&(D=D.match(/\d+/))&&D.length&&(l.lineHeight=Number(D[0]));l.height=l.lineHeight&&!l.wrapText?l.lineHeight:l.textEl.offsetHeight})};
_.W.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var l=document.createRange(),D=_.iJ(this.textEl).children;D.length>0?l.selectNodeContents(D[0]):l.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(l.getBoundingClientRect().width)+"px"}};
_.W.computeChannelBadgeStyle=function(l){var D;if((l==null?0:(D=l.runs)==null?0:D.length)&&l.runs[0].textColor)return"--ytd-badge-icon-color:"+_.an(l.runs[0].textColor)+";"};
_.QP.Object.defineProperties(C_.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"?_.$B(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var l=this.get("badges.0.metadataBadgeRenderer.tooltip");if(l)return l}return _.Nl(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
C_.prototype.onLineHeightChanged=C_.prototype.onLineHeightChanged;C_.prototype.onHeightChanged=C_.prototype.onHeightChanged;C_.prototype.onChannelNameChanged=C_.prototype.onChannelNameChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],C_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],C_.prototype,"badges",void 0);_.E([_.K(),_.T("design:type",Object)],C_.prototype,"channelName",void 0);
_.E([_.K(),_.T("design:type",Object)],C_.prototype,"noEndpoints",void 0);_.E([_.K(),_.T("design:type",Object)],C_.prototype,"wrapText",void 0);_.E([_.K(),_.T("design:type",Object)],C_.prototype,"forceVerified",void 0);_.E([_.K(),_.T("design:type",Object)],C_.prototype,"tooltipPosition",void 0);_.E([_.K(),_.T("design:type",String)],C_.prototype,"tooltip",void 0);_.E([_.K(),_.T("design:type",Boolean)],C_.prototype,"hasChannelArt",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],C_.prototype,"compactStyle",void 0);_.E([_.gP("#text-container"),_.T("design:type",HTMLElement)],C_.prototype,"textContainerEl",void 0);_.E([_.gP("#text"),_.T("design:type",Object)],C_.prototype,"textEl",void 0);_.E([_.gP("#verified-tooltip"),_.T("design:type",HTMLElement)],C_.prototype,"verifiedTooltip",void 0);_.E([_.K(),_.T("design:type",Object)],C_.prototype,"height",void 0);
_.E([_.K(),_.T("design:type",Object)],C_.prototype,"lineHeight",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("badges","forceVerified"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],C_.prototype,"verified",null);_.E([_.t("badges","verified"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],C_.prototype,"hideBadges",null);_.E([_.t("channelName"),_.T("design:type",Object),_.T("design:paramtypes",[])],C_.prototype,"formattedName",null);
_.E([_.t("badges","verified","formattedName"),_.T("design:type",String),_.T("design:paramtypes",[])],C_.prototype,"tooltipText",null);_.E([_.t("hasChannelArt"),_.T("design:type",String),_.T("design:paramtypes",[])],C_.prototype,"tooltipOffset",null);_.E([_.Pg("channelName"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],C_.prototype,"onChannelNameChanged",null);
_.E([_.Pg("height"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],C_.prototype,"onHeightChanged",null);_.E([_.Pg("lineHeight","height"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],C_.prototype,"onLineHeightChanged",null);_.E([_.x({is:"ytd-channel-name",disableElementRegistration:!0})],C_);
_.r(C_,"ytd-channel-name",function(){if(Zrk!==void 0)return Zrk;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Zrk=l},{mode:_.Vj("kevlar_poly_si_batch_j036")?1:2});var hQ=function(){var l=_.p.apply(this,arguments)||this;l.standardizeIconSize=_.q("kevlar_system_icons");return l};
_.Z(hQ,_.p);hQ.prototype.basicPaletteChanged=function(){var l;(l=this.data.color)!=null&&l.basicColorPaletteData&&_.qh(this.hostElement,this.data.color.basicColorPaletteData)};
hQ.prototype.useFilledIcons=function(l){return _.q("kevlar_system_icons")&&(l==="CHECK_CIRCLE_THICK"||l==="OFFICIAL_ARTIST_BADGE")};
_.QP.Object.defineProperties(hQ.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return this.data.authorCreator||((l=this.data)==null?void 0:(D=l.color)==null?void 0:(U=D.basicColorPaletteData)==null?void 0:U.backgroundColor)}}});
hQ.prototype.basicPaletteChanged=hQ.prototype.basicPaletteChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hQ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],hQ.prototype,"standardizeIconSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.authorUnifiedVerified"),_.T("design:type",Object),_.T("design:paramtypes",[])],hQ.prototype,"verified",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],hQ.prototype,"creator",null);_.E([_.Pg("data.color.basicColorPaletteData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hQ.prototype,"basicPaletteChanged",null);_.E([_.x({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],hQ);
_.r(hQ,"ytd-author-comment-badge-renderer",function(){if(Rx_!==void 0)return Rx_;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Rx_=l},{mode:1});var mzv;var PZ=function(){return _.p.apply(this,arguments)||this};
_.Z(PZ,_.p);PZ.prototype.computeThumbnailWidth=function(l){if(l==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],PZ.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.T("design:type",String)],PZ.prototype,"icon",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],PZ.prototype,"surface",void 0);
_.E([_.K({reflectToAttribute:!0,value:_.q("enable_shrink_image_size_on_web_posts_singleton")}),_.T("design:type",Boolean)],PZ.prototype,"searchSxsUx",void 0);_.E([_.K({reflectToAttribute:!0,value:_.q("enable_community_page_on_desktop")}),_.T("design:type",Boolean)],PZ.prototype,"useSmallerPostImageAttachments",void 0);_.E([_.x({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],PZ);
_.r(PZ,"ytd-backstage-image-renderer",function(){if(mzv!==void 0)return mzv;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return mzv=l},{mode:1});var aT1;var bz=function(){var l=_.p.apply(this,arguments)||this;l.isLoading=!1;l.selectedItemIndex=-1;return l};
_.Z(bz,_.p);_.W=bz.prototype;_.W.computeIsChannelOwner=function(l){if(!l)return!0;l=l[0];return!(l&&(l.signinEndpoint||l.selectServiceEndpoint))};
_.W.computeIsImagePoll=function(l){return(l==null?void 0:l.type)==="POLL_TYPE_IMAGE"};
_.W.computeIsTotalVotesDisabled=function(l){return!(l==null?0:l.totalVotes)};
_.W.thumbnailSrc=function(l){var D,U,n,y;return(l==null?0:(D=l.thumbnails)==null?0:(U=D[0])==null?0:U.url)?_.Ng((n=l.thumbnails)==null?void 0:(y=n[0])==null?void 0:y.url):void 0};
_.W.progressWidth=function(l){return"width:"+(l?l*100:0)+"%;"};
_.W.textAreaWidth=function(l){return this.isImagePoll?null:"width:"+(l?l*100:0)+"%;"};
_.W.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.W.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var l=this.data.choices,D=0;D<l.length;D++)if(l[D].selected){this.selectedItemIndex=D;break}};
_.W.onPopupClosed=function(l,D){l=Number(this.pollVotes.selected);D.confirmed&&(this.selectChoice(l,!1),_.Vh(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.W.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.W.onYtCommentPollRevert=function(l,D){D&&(this.selectChoice(D.selectedChoiceIndex,!0),this.set("data.totalVotes",D.totalVotes))};
_.W.onYtServiceRequestSent=function(l,D){if(D.actions)for(l=0;l<D.actions.length;l++){var U=D.actions[l];_.M(U,wA)&&this.set("data.totalVotes",_.M(U,wA).totalVotes)}};
_.W.onYtServiceRequestCompleted=function(l){var D=this.get("detail.data.actionResults.0.feedback",l);l=this.get("detail.data.actionResults.0.status",l);if(D==="FEEDBACK_DESELECT"||D==="FEEDBACK_SELECT")this.isLoading=!1,l==="STATUS_FAILED"?_.O9(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.W.getEndpoint=function(l,D){return D===l?this.data.choices[D].deselectServiceEndpoint||null:this.data.choices[l].selectServiceEndpoint||null};
_.W.selectChoice=function(l,D){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var U=0;U<this.data.choices.length;U++){var n;if(l===this.selectedItemIndex){var y=!1;var A=n=null}else n=(y=U===l)?this.data.choices[U].voteRatioIfSelected:this.data.choices[U].voteRatioIfNotSelected,A=y?this.data.choices[U].votePercentageIfSelected:this.data.choices[U].votePercentageIfNotSelected;this.set("data.choices."+U+".voteRatio",n);
this.set("data.choices."+U+".votePercentage",A);this.set("data.choices."+U+".selected",y)}D||(this.isLoading=!0,(D=this.getEndpoint(l,this.selectedItemIndex))&&_.Jc().resolve(_.qK).resolveCommand(D,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===l?-1:l};
_.QP.Object.defineProperties(bz.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
bz.prototype.onYtServiceRequestCompleted=bz.prototype.onYtServiceRequestCompleted;bz.prototype.onYtServiceRequestSent=bz.prototype.onYtServiceRequestSent;bz.prototype.onYtCommentPollRevert=bz.prototype.onYtCommentPollRevert;bz.prototype.onPopupClosed=bz.prototype.onPopupClosed;bz.prototype.dataChanged=bz.prototype.dataChanged;_.E([_.m(_.C5),_.T("design:type",Object)],bz.prototype,"paperItemBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],bz.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],bz.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],bz.prototype,"isLoading",void 0);_.E([_.K({computed:"computeIsChannelOwner(data.choices)"}),_.T("design:type",Boolean)],bz.prototype,"isChannelOwner",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.T("design:type",Boolean)],bz.prototype,"isImagePoll",void 0);_.E([_.K({computed:"computeIsTotalVotesDisabled(data)"}),_.T("design:type",Boolean)],bz.prototype,"isTotalVotesDisabled",void 0);_.E([_.K(),_.T("design:type",Object)],bz.prototype,"previousPollInfo",void 0);_.E([_.K(),_.T("design:type",Object)],bz.prototype,"selectedItemIndex",void 0);_.E([_.gP("#poll-votes"),_.T("design:type",Object)],bz.prototype,"pollVotes",void 0);
_.E([_.t("isChannelOwner"),_.T("design:type",Object),_.T("design:paramtypes",[])],bz.prototype,"endpointStyle",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bz.prototype,"dataChanged",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],bz.prototype,"onPopupClosed",null);
_.E([_.hj("yt-comment-poll-revert"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],bz.prototype,"onYtCommentPollRevert",null);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],bz.prototype,"onYtServiceRequestSent",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],bz.prototype,"onYtServiceRequestCompleted",null);_.E([_.x({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],bz);
_.r(bz,"ytd-backstage-poll-renderer",function(){if(aT1!==void 0)return aT1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return aT1=l},{mode:2});var t4z;var XjH={autoplay:!1,loop:!1},SX7={simpleText:""},gg=function(){var l=_.p.apply(this,arguments)||this;l.isLoading=!1;l.usesPanelLockup=!1;l.selectedItemIndex=-1;l.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},XjH,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});l.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},XjH,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});l.correctnessAnimationProps=[];l.correctnessAnimationRefs=[];return l};
_.Z(gg,_.p);_.W=gg.prototype;_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.W.computeIsChannelOwner=function(l){if(!l)return!0;l=l[0];return!(l&&(l.signinEndpoint||l.selectServiceEndpoint))};
_.W.computeIsTotalVotesDisabled=function(l){return!(l==null?0:l.totalVotes)};
_.W.computeIsImageQuiz=function(l){return(l==null?void 0:l.type)==="POLL_TYPE_IMAGE"};
_.W.onExplanationChanged=function(){this.expander.reset()};
_.W.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var l=this.data.choices;if(l){this.maybeInitializeQuizLotties(l);for(var D=0;D<l.length;D++)if(l[D].isSelected||this.isChannelOwner&&l[D].isCorrect){this.selectedItemIndex=D;return}this.selectedItemIndex=-1}}};
_.W.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var l=this.selectedItemIndex,D=Number(this.quizVotes.selected);this.selectChoice(D);this.sendVoteAction(D,l);this.quizVotes.selected=-1;var U;l=!((U=this.data)==null?0:U.enableAnimation);this.maybePlayAnswerAnimations(l)}};
_.W.onYtCommentPollRevert=function(l,D){D&&(this.selectChoice(D.selectedChoiceIndex),this.set("data.totalVotes",D.totalVotes))};
_.W.onYtServiceRequestSent=function(l,D){if(D.actions)for(l=_.B(D.actions),D=l.next();!D.done;D=l.next())(D=_.M(D.value,wA))&&this.set("data.totalVotes",D.totalVotes)};
_.W.onYtServiceRequestCompleted=function(l){var D=this.get("detail.data.actionResults.0.feedback",l);l=this.get("detail.data.actionResults.0.status",l);if(D==="FEEDBACK_DESELECT"||D==="FEEDBACK_SELECT")this.isLoading=!1,l==="STATUS_FAILED"?_.O9(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.W.getAnimationPropsForChoiceIndex=function(l,D){return D[l]};
_.W.maybePlayAnswerAnimations=function(l){l=l===void 0?!1:l;var D;if((D=this.data)!=null&&D.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){D=_.B(this.correctnessAnimationRefs);for(var U=D.next();!U.done;U=D.next()){var n=void 0,y=void 0;(n=U.value)==null||(y=n.lottieEl)==null||y.stop()}if(!(this.selectedItemIndex<0)){D=0;l&&(D=this.isCorrect?37:25);var A,C;(A=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(C=A.lottieEl)==null||C.goToAndPlay(l?D:0,!0);if(!(this.isCorrect||
(A=this.data.choices.findIndex(function(Q){return Q.isCorrect}),A<0))){var h,b;
(b=(h=this.correctnessAnimationRefs[A])==null?void 0:h.lottieEl)==null||b.goToAndPlay(37,!0);var u;h=(u=this.fadeContainers)==null?void 0:u.item(A);!l&&h&&this.fadeIn(h)}}}};
_.W.thumbnailSrc=function(l){var D,U,n,y;return(l==null?0:(D=l.thumbnails)==null?0:(U=D[0])==null?0:U.url)?_.Ng((n=l.thumbnails)==null?void 0:(y=n[0])==null?void 0:y.url):void 0};
_.W.a11yVotedText=function(l,D){var U,n,y=((U=this.data)==null?void 0:(n=U.correctVotedText)==null?void 0:n.simpleText)||"",A,C;U=((A=this.data)==null?void 0:(C=A.votedText)==null?void 0:C.simpleText)||"";if(!D)return"";var h,b;if((h=this.data)==null?0:(b=h.choices)==null?0:b[l].isCorrect)return y;var u,Q;return((u=this.data)==null?0:(Q=u.choices)==null?0:Q[l].isSelected)?U:""};
_.W.getEndpoint=function(l,D){return D===l?this.data.choices[l].deselectServiceEndpoint||null:this.data.choices[l].selectServiceEndpoint||null};
_.W.sendVoteAction=function(l,D){if(l=this.getEndpoint(l,D))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(l)};
_.W.selectChoice=function(l){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var D=0;D<this.data.choices.length;D++)this.set("data.choices."+D+".isSelected",l===this.selectedItemIndex?!1:D===l);this.selectedItemIndex=this.selectedItemIndex===l?-1:l};
_.W.maybeInitializeQuizLotties=function(l){var D=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=l.map(function(U){return{animationConfig:U.isCorrect?D.baseCorrectLottiePlayerAnimationConfig:D.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){D.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(U){return U.animationRef||{}})};
_.W.fadeIn=function(l){l.classList.add("fade-in");_.Vu(_.Tn,function(){l.classList.remove("fade-in")},900)};
_.QP.Object.defineProperties(gg.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Nl(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 l,D;return((l=this.data)==null?void 0:(D=l.choices)==null?void 0:D.some(function(U){return U.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null||!l.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?SX7:this.data.choices[this.selectedItemIndex].explanation||SX7}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null||!l.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
gg.prototype.onYtServiceRequestCompleted=gg.prototype.onYtServiceRequestCompleted;gg.prototype.onYtServiceRequestSent=gg.prototype.onYtServiceRequestSent;gg.prototype.onYtCommentPollRevert=gg.prototype.onYtCommentPollRevert;gg.prototype.dataChanged=gg.prototype.dataChanged;gg.prototype.onExplanationChanged=gg.prototype.onExplanationChanged;_.E([_.m(_.C5),_.T("design:type",Object)],gg.prototype,"paperItemBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],gg.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.ua.YtTaskEmitterBehavior),_.T("design:type",Object)],gg.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],gg.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],gg.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],gg.prototype,"isLoading",void 0);_.E([_.K(),_.T("design:type",Object)],gg.prototype,"usesPanelLockup",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.T("design:type",Boolean)],gg.prototype,"isChannelOwner",void 0);_.E([_.K({computed:"computeIsTotalVotesDisabled(data)"}),_.T("design:type",Boolean)],gg.prototype,"isTotalVotesDisabled",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.T("design:type",Boolean)],gg.prototype,"isImageQuiz",void 0);_.E([_.K(),_.T("design:type",Object)],gg.prototype,"previousQuizInfo",void 0);_.E([_.K(),_.T("design:type",Object)],gg.prototype,"selectedItemIndex",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data","usesPanelLockup"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gg.prototype,"shouldUseModernUi",null);
_.E([_.uJ(".fade-container"),_.T("design:type",Object)],gg.prototype,"fadeContainers",void 0);_.E([_.K(),_.T("design:type",Array)],gg.prototype,"correctnessAnimationProps",void 0);_.E([_.t("explanation","showCorrectAnswer"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gg.prototype,"showExplanation",null);_.E([_.t("isChannelOwner","isAttempted"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gg.prototype,"showCorrectAnswer",null);
_.E([_.t("isChannelOwner","isAttempted","data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gg.prototype,"isQuizAnsweringDisabled",null);_.E([_.t("isQuizAnsweringDisabled"),_.T("design:type",Object),_.T("design:paramtypes",[])],gg.prototype,"endpointStyle",null);_.E([_.t("data","selectedItemIndex"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gg.prototype,"isAttempted",null);
_.E([_.t("data","selectedItemIndex"),_.T("design:type",Object),_.T("design:paramtypes",[])],gg.prototype,"explanation",null);_.E([_.t("data","selectedItemIndex"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gg.prototype,"isCorrect",null);_.E([_.gP("ytd-expander"),_.T("design:type",Object)],gg.prototype,"expander",void 0);_.E([_.gP("#quiz-votes"),_.T("design:type",Object)],gg.prototype,"quizVotes",void 0);
_.E([_.Pg("explanation"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gg.prototype,"onExplanationChanged",null);_.E([_.Pg("data","isChannelOwner"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gg.prototype,"dataChanged",null);_.E([_.hj("yt-comment-quiz-revert"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],gg.prototype,"onYtCommentPollRevert",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],gg.prototype,"onYtServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],gg.prototype,"onYtServiceRequestCompleted",null);_.E([_.x({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],gg);
_.r(gg,"ytd-backstage-quiz-renderer",function(){if(t4z!==void 0)return t4z;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return t4z=l},{mode:1});var kbm;var uz=function(){return _.p.apply(this,arguments)||this};
_.Z(uz,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],uz.prototype,"data",void 0);_.E([_.x({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],uz);
_.r(uz,"ytd-post-uploaded-video-renderer",function(){if(kbm!==void 0)return kbm;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return kbm=l},{mode:1});var dzy;var vZ=function(){return _.p.apply(this,arguments)||this};
_.Z(vZ,_.p);vZ.prototype.useFilledIcons=function(l){return l==="SPONSORSHIP_STAR"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vZ.prototype,"data",void 0);_.E([_.x({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],vZ);
var KD7=_.Ol()(vZ,"ytd-sponsors-only-badge-renderer",function(){if(dzy===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);dzy=l}l=dzy;return l},{allowedProps:["data"],
mode:1});var co5;var QW=function(){return _.p.apply(this,arguments)||this};
_.Z(QW,_.p);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],QW.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],QW.prototype,"data",void 0);_.E([_.x({is:"ytd-child-video-renderer",disableElementRegistration:!0})],QW);
_.r(QW,"ytd-child-video-renderer",function(){if(co5!==void 0)return co5;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return co5=l},{mode:1});var pj5;var xzy;var GO=function(){var l=_.p.apply(this,arguments)||this;l.size=0;l.fallbackImageSize={height:void 0,width:9999};l.webModernCollections=!1;return l};
_.Z(GO,_.p);_.W=GO.prototype;_.W.computeBlurredImageSize=function(l){return l?{height:l*2,width:l*2}:this.fallbackImageSize};
_.W.computeImageSize=function(l){return l?{height:l,width:l}:this.fallbackImageSize};
_.W.computeObjectFit=function(l){return l?"FILL":"CONTAIN"};
_.W.computePreserve=function(l){return l?!0:!1};
_.W.setBackground=function(){var l,D;if((l=this.data)==null?0:(D=l.thumbnail)==null?0:D.sampledThumbnailColor)l=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+l.red+","+l.green+","+l.blue+",1)"};
GO.prototype.setBackground=GO.prototype.setBackground;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],GO.prototype,"watchFeedThumbnail",void 0);_.E([_.K(),_.T("design:type",Object)],GO.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],GO.prototype,"size",void 0);
_.E([_.K({computed:"computeBlurredImageSize(size)"}),_.T("design:type",Object)],GO.prototype,"blurredImageSize",void 0);_.E([_.K({computed:"computeImageSize(size)"}),_.T("design:type",Object)],GO.prototype,"imageSize",void 0);_.E([_.K({computed:"computePreserve(size)"}),_.T("design:type",String)],GO.prototype,"preserve",void 0);_.E([_.K({computed:"computeObjectFit(size)"}),_.T("design:type",String)],GO.prototype,"objectFit",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],GO.prototype,"webModernCollections",void 0);_.E([_.Pg("data.thumbnail.sampledThumbnailColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],GO.prototype,"setBackground",null);_.E([_.x({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],GO);
_.r(GO,"ytd-playlist-custom-thumbnail-renderer",function(){if(xzy!==void 0)return xzy;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return xzy=l},{mode:1});var juk;var JQ=function(){return _.p.apply(this,arguments)||this};
_.Z(JQ,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],JQ.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],JQ.prototype,"width",void 0);_.E([_.x({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],JQ);
_.r(JQ,"ytd-playlist-video-thumbnail-renderer",function(){if(juk!==void 0)return juk;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return juk=l},{mode:1});var FDv;var L_=function(){return _.p.apply(this,arguments)||this};
_.Z(L_,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],L_.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],L_.prototype,"width",void 0);_.E([_.x({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],L_);
_.r(L_,"ytd-show-custom-thumbnail-renderer",function(){if(FDv!==void 0)return FDv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return FDv=l},{mode:1});var o$h;var qP=function(){return _.p.apply(this,arguments)||this};
_.Z(qP,_.p);qP.prototype.useFilledIcons=function(l){return l==="MUSIC"||l==="COURSE"};
qP.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=XP(this.overlayColor,"0.8");else if(this.overlayColor){var l=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+l.red+","+l.green+","+l.blue+",0.8)"}};
_.QP.Object.defineProperties(qP.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)}}});
qP.prototype.overlayColorChanged=qP.prototype.overlayColorChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],qP.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],qP.prototype,"overlayColor",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.icon","data.text"),_.T("design:type",Object),_.T("design:paramtypes",[])],qP.prototype,"overlayStyle",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data.icon","data.text"),_.T("design:type",Object),_.T("design:paramtypes",[])],qP.prototype,"overlayTextStyle",null);_.E([_.Pg("overlayColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],qP.prototype,"overlayColorChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],qP);
_.r(qP,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(o$h!==void 0)return o$h;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return o$h=l},{mode:1});var wjz;var MP=function(){var l=_.p.apply(this,arguments)||this;l.active=!1;return l};
_.Z(MP,_.p);MP.prototype.computeIsSpinnerHidden=function(l){return(l==null?void 0:l.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
MP.prototype.computeOverlayIcon=function(l){return(l==null?void 0:l.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(l==null?void 0:l.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],MP.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],MP.prototype,"active",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],MP);
_.r(MP,"ytd-thumbnail-overlay-downloading-renderer",function(){if(wjz!==void 0)return wjz;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return wjz=l},{mode:1});var roy;var RY=function(){return _.p.apply(this,arguments)||this};
_.Z(RY,_.p);_.QP.Object.defineProperties(RY.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],RY.prototype,"data",void 0);_.E([_.t("data.text"),_.T("design:type",Object),_.T("design:paramtypes",[])],RY.prototype,"text",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],RY);
_.r(RY,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(roy!==void 0)return roy;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return roy=l},{mode:1});var zxk,fTm=function(){if(zxk!==void 0)return zxk;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return zxk=l};var Zq=function(){return _.p.apply(this,arguments)||this};
_.Z(Zq,_.p);_.QP.Object.defineProperties(Zq,{template:{configurable:!0,enumerable:!0,get:function(){return fTm()}}});
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Zq.prototype,"animateEqualizer",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Zq);_.Ol()(Zq,"ytd-thumbnail-overlay-equalizer",function(){return fTm()},{allowedProps:["animateEqualizer"],
mode:1});var $z1;var ew=function(){var l=_.p.apply(this,arguments)||this;l.nowPlayingBadge=_.q("web_now_playing_badge");l.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return l};
_.Z(ew,_.p);ew.prototype.activeChanged=function(){var l=this;_.q("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.u6(this,function(){_.O9(l.hostElement,"yt-playlist-lockup-now-playing-active",l)})};
ew.prototype.onMiniplayerPlayStateChanged=function(l){var D,U=(D=_.M(_.r3().currentEndpoint,_.za))==null?void 0:D.videoId;this.isVideoPlaying=l&&(_.q("web_limit_now_playing_animation_killswitch")||this.videoId===U)};
ew.prototype.activeChanged=ew.prototype.activeChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],ew.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ew.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],ew.prototype,"isVideoPlaying",void 0);_.E([_.K(),_.T("design:type",String)],ew.prototype,"videoId",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],ew.prototype,"equalizerOnly",void 0);_.E([_.K(),_.T("design:type",Boolean)],ew.prototype,"isActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ew.prototype,"nowPlayingBadge",void 0);_.E([_.Pg("isActive"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ew.prototype,"activeChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],ew);
_.r(ew,"ytd-thumbnail-overlay-now-playing-renderer",function(){if($z1!==void 0)return $z1;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return $z1=l},{mode:1});var NB8;var m$=function(){return _.p.apply(this,arguments)||this};
_.Z(m$,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],m$.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],m$);
_.r(m$,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(NB8!==void 0)return NB8;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return NB8=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var sug;var aY=function(){return _.p.apply(this,arguments)||this};
_.Z(aY,_.p);aY.prototype.onDurationChanged=function(){var l,D;_.iJ(this.hostElement).querySelector("#progress").style.width=((D=(l=this.data)==null?void 0:l.percentDurationWatched)!=null?D:0)+"%"};
aY.prototype.onDurationChanged=aY.prototype.onDurationChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],aY.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],aY.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aY.prototype,"isLive",void 0);_.E([_.Pg("data.percentDurationWatched"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aY.prototype,"onDurationChanged",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],aY);
_.r(aY,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(sug!==void 0)return sug;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return sug=l},{mode:1});var E$z;var tQ=function(){var l=_.p.apply(this,arguments)||this;l.bottomPanel=!1;l.richGridOverlay=!1;l.watchFeedOverlay=!1;l.isCompact=!1;return l};
_.Z(tQ,_.p);tQ.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.QP.Object.defineProperties(tQ.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:(D=l.icon)==null?void 0:D.iconType)==="PLAY_ALL"&&_.q("kevlar_system_icons")}}});
tQ.prototype.widthChanged=tQ.prototype.widthChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],tQ.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],tQ.prototype,"width",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tQ.prototype,"bottomPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tQ.prototype,"richGridOverlay",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tQ.prototype,"watchFeedOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tQ.prototype,"isCompact",void 0);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tQ.prototype,"isIconFilled",null);_.E([_.Pg("width","watchFeedOverlay"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tQ.prototype,"widthChanged",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],tQ);
_.r(tQ,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(E$z!==void 0)return E$z;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return E$z=l},{mode:1});var TBH;var ITm=["CLIP","SHORTS"],X_=function(){var l=_.p.apply(this,arguments)||this;l.animated=_.q("animated_live_badge_icon");l.hasIcon=!1;l.updateTimerIntervalId=0;l.timeSinceLive=0;return l};
_.Z(X_,_.p);_.W=X_.prototype;_.W.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.W.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.W.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.W.hasIconOrText=function(){var l,D;return!!(((l=this.data)==null?0:l.icon)||((D=this.data)==null?0:D.text))};
_.W.initializeLiveBadgeTimer=function(){var l=this,D,U=(D=this.liveBadgeData)==null?void 0:D.startTimestampSec;if(U&&this.canShowLiveBadgeTimer()){var n;D=Number((n=this.liveBadgeData)==null?void 0:n.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(U);this.updateTimerIntervalId=_.Xi(function(){l.canShowLiveBadgeTimer()?l.timeSinceLive++:(l.timeSinceLive=0,window.clearInterval(l.updateTimerIntervalId))},D)}else this.timeSinceLive=0};
_.W.canShowLiveBadgeTimer=function(){var l=Date.now(),D,U;return l<(Number((D=this.liveBadgeData)==null?void 0:D.endTimestampSec)-1)*1E3&&l>Number((U=this.liveBadgeData)==null?void 0:U.startTimestampSec)*1E3};
_.QP.Object.defineProperties(X_.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.aK3(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.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 ITm.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
X_.prototype.initializeLiveBadgeTimer=X_.prototype.initializeLiveBadgeTimer;X_.prototype.dataChanged=X_.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],X_.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],X_.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.T("design:type",String)],X_.prototype,"icon",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],X_.prototype,"animated",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.T("design:type",Boolean)],X_.prototype,"hideTimeStatus",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],X_.prototype,"hasIcon",void 0);_.E([_.K(),_.T("design:type",Object)],X_.prototype,"timeSinceLive",void 0);_.E([_.t("data","timeSinceLive"),_.T("design:type",Object),_.T("design:paramtypes",[])],X_.prototype,"badgeShapeData",null);
_.E([_.t("data","overlayType"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],X_.prototype,"hideBadgeShape",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],X_.prototype,"dataChanged",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.style"),_.T("design:type",Object),_.T("design:paramtypes",[])],X_.prototype,"overlayStyle",null);
_.E([_.t("data.liveBadgeData"),_.T("design:type",Object),_.T("design:paramtypes",[])],X_.prototype,"liveBadgeData",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.type"),_.T("design:type",Object),_.T("design:paramtypes",[])],X_.prototype,"overlayType",null);_.E([_.t("overlayType","overlayStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],X_.prototype,"useFilledIcon",null);
_.E([_.GY("liveBadgeData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],X_.prototype,"initializeLiveBadgeTimer",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],X_);
_.r(X_,"ytd-thumbnail-overlay-time-status-renderer",function(){if(TBH!==void 0)return TBH;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return TBH=l},{mode:_.Vj("kevlar_poly_si_batch_j035")?1:2});var Hr_;var Sw=function(){return _.p.apply(this,arguments)||this};
_.Z(Sw,_.p);Sw.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"}}}}};
Sw.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(l){if(this.hasPlaybackProgressBar)return{percentDurationWatched:l.percentDurationWatched}};
Sw.prototype.computeHasPlaybackProgressBar=function(l){return!!l.percentDurationWatched&&l.percentDurationWatched>0};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Sw.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.T("design:type",Boolean)],Sw.prototype,"hasPlaybackProgressBar",void 0);
_.E([_.x({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Sw);
_.r(Sw,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Hr_!==void 0)return Hr_;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Hr_=l},{mode:1});var YXz;var OrH=_.w(function(l){var D=l.data;var U=l.children;var n=function(){return!!D().doubleStack},y=function(){return!!D().includeStackHeight};
return _.g("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!D().experimentEnabled}},_.g(_.v,{cond:D,
then:function(){var A={};return _.g(_.GZ,null,_.g(_.v,{cond:y,then:function(){var C={};return _.g("div",{class:_.DV("ytCollectionsStackSpacer",(C.ytCollectionsStackSpacerDoubleStack=n,C))})}}),_.g("div",{class:_.DV((A.ytCollectionsStackRelativeStack=y,A))},_.g(_.v,{cond:n,
then:function(){var C={};return _.g("div",{class:_.DV("ytCollectionsStackCollectionStack2",function(){return D().customClassName2ndStack},(C.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return D().enableResponsiveMode},C)),
style:_.BK({"background-color":function(){return XBc(D())}})})}}),_.g("div",{class:_.DV("ytCollectionsStackCollectionStack1",function(){return D().customClassName1stStack},function(){return tTc(D().thumbnailSize?D().thumbnailSize:"medium")}),
style:_.BK({"background-color":function(){return XBc(D())}})}),U))}}))},"Da");_.Tt(OrH,"yt-collections-stack",{props:{data:_.C$}});var ka=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};l.webModernCollections=!1;l.isSearch=!1;l.isDoubleStack=!1;l.thumbnailSize="medium";return l};
_.Z(ka,_.p);_.W=ka.prototype;
_.W.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]]"}}}}}};
_.W.getThumbnailDetails=function(l){if(l!=null&&l.thumbnailRenderer){var D=l.thumbnailRenderer,U;if((U=D.playlistVideoThumbnailRenderer)==null?0:U.thumbnail)return D.playlistVideoThumbnailRenderer.thumbnail;var n;if((n=D.playlistCustomThumbnailRenderer)==null?0:n.thumbnail)return D.playlistCustomThumbnailRenderer.thumbnail;l=l.thumbnailRenderer;var y;if((y=l.showCustomThumbnailRenderer)==null?0:y.thumbnail)return l.showCustomThumbnailRenderer.thumbnail}};
_.W.computeOverlayColor=function(l){var D,U;if((D=this.getThumbnailDetails(l))==null?0:(U=D.darkColorPalette)==null?0:U.section2Color)return this.getThumbnailDetails(l).darkColorPalette.section2Color;var n;return(n=this.getThumbnailDetails(l))==null?void 0:n.sampledThumbnailColor};
_.W.computeWebModernCollections=function(l){if(l==null||!l.thumbnailOverlays)return!1;l=_.B(l.thumbnailOverlays);for(var D=l.next();!D.done;D=l.next()){var U=void 0;if((U=D.value)==null?0:U.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.W.computeNavigationEndpoint=function(l){return Fzl(l==null?void 0:l.navigationEndpoint)};
_.QP.Object.defineProperties(ka.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var l=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:l==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:l==null?void 0:l.vibrantColorPalette,darkColorPalette:l==null?void 0:l.darkColorPalette,experimentEnabled:!0}}}});
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],ka.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(AF5),_.T("design:type",Object)],ka.prototype,"ytdThumbnailBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ka.prototype,"componentBehavior",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],ka.prototype,"watchFeedThumbnail",void 0);_.E([_.K(),_.T("design:type",Number)],ka.prototype,"customThumbnailSize",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],ka.prototype,"hideAria",void 0);_.E([_.K(),_.T("design:type",Object)],ka.prototype,"data",void 0);_.E([_.K({computed:"computeOverlayColor(data)"}),_.T("design:type",Object)],ka.prototype,"overlayColor",void 0);
_.E([_.K({computed:"computeWebModernCollections(data)"}),_.T("design:type",Object)],ka.prototype,"webModernCollections",void 0);_.E([_.K({computed:"computeNavigationEndpoint(data)"}),_.T("design:type",Object)],ka.prototype,"computedNavigationEndpoint",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ka.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ka.prototype,"isDoubleStack",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],ka.prototype,"thumbnailSize",void 0);_.E([_.t("data","isDoubleStack","thumbnailSize"),_.T("design:type",Object),_.T("design:paramtypes",[])],ka.prototype,"collectionStack",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],ka);
_.r(ka,"ytd-playlist-thumbnail",function(){if(YXz!==void 0)return YXz;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return YXz=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var V4r;_.Tt(_.w(function(l){return _.g("yt-text-view-model",{class:_.DV("ytTextViewModelHost")},_.g(_.BO,{text:function(){return l.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.C$}});var dg=function(){var l=_.p.apply(this,arguments)||this;l.noEndpoints=!1;l.amsterdamPostMvp=_.q("web_amsterdam_post_mvp_playlists");l.badges=[];l.transferState="TRANSFER_STATE_UNKNOWN";return l};
_.Z(dg,_.p);_.W=dg.prototype;_.W.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.W.getMetadata=function(l){if(!l)return[];var D=[],U=l.shortViewCountText||l.viewCountText;U&&D.push(_.Nl(U));l.publishedTimeText&&D.push(_.Nl(l.publishedTimeText));l.upcomingEventData&&l.upcomingEventData.upcomingEventText&&D.push(_.Lq(_.Nl(l.upcomingEventData.upcomingEventText),Number(l.upcomingEventData.startTime)));return D};
_.W.observeDataForBylineSeparator=function(){this.data&&_.nY(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.W.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.an(this.metadataColor)};
_.W.getSimpleString=function(l){return _.Nl(l)};
_.W.isBylineHidden=function(l){return this.noByline||!((l==null?0:l.longBylineText)||(l==null?0:l.shortBylineText))};
_.W.isMetadataHidden=function(l){var D;return((D=this.getMetadata(l))==null?void 0:D.length)===0};
_.W.isBylineMetadataSeparatorHidden=function(l){return this.isMetadataHidden(l)||!this.shouldShowVideoInfo};
_.W.isLongByline=function(l,D){return D&&!(l==null||!l.longBylineText)};
_.QP.Object.defineProperties(dg.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var l;return this.amsterdamPostMvp&&!((l=this.data)==null||!l.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
dg.prototype.metadataColorChanged=dg.prototype.metadataColorChanged;dg.prototype.observeDataForBylineSeparator=dg.prototype.observeDataForBylineSeparator;_.E([_.m(_.l5),_.T("design:type",Object)],dg.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],dg.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],dg.prototype,"noEndpoints",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],dg.prototype,"isSlimShort",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],dg.prototype,"radioMeta",void 0);_.E([_.K({selector:_.XE}),_.T("design:type",Object)],dg.prototype,"isGridViewEnabled",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],dg.prototype,"richMeta",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],dg.prototype,"amsterdamPostMvp",void 0);
_.E([_.K(),_.T("design:type",Boolean)],dg.prototype,"noByline",void 0);_.E([_.K({computed:"isLongByline(data, radioMeta)"}),_.T("design:type",Boolean)],dg.prototype,"longByline",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],dg.prototype,"truncateMetadataLine",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],dg.prototype,"miniMode",void 0);_.E([_.K(),_.T("design:type",Number)],dg.prototype,"metadataColor",void 0);
_.E([_.K(),_.T("design:type",Array)],dg.prototype,"badges",void 0);_.E([_.K({selector:_.du,selectorArgs:["data.videoId"]}),_.T("design:type",String)],dg.prototype,"transferState",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],dg.prototype,"isDownloading",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],dg.prototype,"typographyBump",void 0);_.E([_.gP("#metadata-line"),_.T("design:type",HTMLElement)],dg.prototype,"metadataLine",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],dg.prototype,"observeDataForBylineSeparator",null);_.E([_.Pg("metadataColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],dg.prototype,"metadataColorChanged",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],dg.prototype,"shouldShowVideoInfo",null);
_.E([_.t("badges"),_.T("design:type",String),_.T("design:paramtypes",[])],dg.prototype,"inlineBadgeClass",null);_.E([_.t("longByline"),_.T("design:type",String),_.T("design:paramtypes",[])],dg.prototype,"longBylineClass",null);_.E([_.t("data","longByline"),_.T("design:type",Object),_.T("design:paramtypes",[])],dg.prototype,"bylineText",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],dg.prototype,"hasAttributedBylineText",null);
_.E([_.t("isGridViewEnabled","data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],dg.prototype,"watchFeedBigThumbs",null);_.E([_.x({is:"ytd-video-meta-block",disableElementRegistration:!0})],dg);
_.r(dg,"ytd-video-meta-block",function(){if(V4r!==void 0)return V4r;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return V4r=l},{mode:_.Vj("kevlar_poly_si_batch_j080")?1:2});_.RL("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var K_=function(){var l=_.p.apply(this,arguments)||this;l.displayItemCount=2;l.isBackstagePlaylist=!1;l.isPostCompactPlaylist=!1;l.shouldShowChannelThumbnail=!1;return l};
_.Z(K_,_.p);_.W=K_.prototype;_.W.computeFirstVideos=function(l,D){return l===void 0||D===void 0?[]:l.slice(0,D)};
_.W.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var l=this.data.thumbnailRenderer;l.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",l.playlistVideoThumbnailRenderer.thumbnail);l.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",l.playlistCustomThumbnailRenderer.thumbnail)}};
_.W.computeThumbnailHeight=function(l,D,U,n,y){return n?y==="BIG"?280:y==="MASSIVE"?337:234:U?240:D?72:l?118:138};
_.W.computeThumbnailWidth=function(l,D,U,n,y){return n?y==="MEDIUM"?450:y==="BIG"?500:y==="MASSIVE"?600:420:U?360:D?128:l?210:246};
_.W.computeUseBiggerThumbs=function(l){return l&&_.q("enable_desktop_search_bigger_thumbs")};
_.W.computeShouldShowChannelThumbnail=function(l,D){return l&&!(D==null||!D.channelThumbnail)};
_.QP.Object.defineProperties(K_.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
K_.prototype.dataChanged=K_.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],K_.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],K_.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],K_.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],K_.prototype,"displayItemCount",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],K_.prototype,"isBackstagePlaylist",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],K_.prototype,"isPostCompactPlaylist",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],K_.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.T("design:type",Boolean)],K_.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.e_("desktop_search_bigger_thumbs_style")}}),
_.T("design:type",String)],K_.prototype,"biggerThumbsStyle",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],K_.prototype,"isDownloads",void 0);_.E([_.K({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.T("design:type",Object)],K_.prototype,"shouldShowChannelThumbnail",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],K_.prototype,"dataChanged",null);
_.E([_.t("isSearch"),_.T("design:type",String),_.T("design:paramtypes",[])],K_.prototype,"stackThumbnailSize",null);_.E([_.x({is:"ytd-playlist-renderer",disableElementRegistration:!0})],K_);
_.r(K_,"ytd-playlist-renderer",function(){if(pj5===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);pj5=l}l=pj5;return l},{mode:1});var ily;var lgv;var cZ=function(){var l=_.p.apply(this,arguments)||this;l.startX=0;return l};
_.Z(cZ,_.p);cZ.prototype.onEndpointMouseDown=function(l){this.startX=l.clientX};
cZ.prototype.onEndpointClick=function(l){this.startX!==l.clientX&&(l.preventDefault(),l.stopPropagation())};
cZ.prototype.computeObjectFit=function(l){return l==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||l==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||l==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
cZ.prototype.computeCardStyle=function(l){return l?l.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.QP.Object.defineProperties(cZ.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:(D=l.searchRefinementCardRendererStyle)==null?void 0:D.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],cZ.prototype,"data",void 0);_.E([_.K({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.T("design:type",Number)],cZ.prototype,"objectFit",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.T("design:type",String)],cZ.prototype,"cardStyle",void 0);
_.E([_.K({reflectToAttribute:!0,value:!0}),_.T("design:type",Boolean)],cZ.prototype,"roundContainer",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],cZ.prototype,"isAlbumCard",null);_.E([_.t("data","isAlbumCard"),_.T("design:type",Object),_.T("design:paramtypes",[])],cZ.prototype,"collectionStack",null);_.E([_.x({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],cZ);
_.r(cZ,"ytd-search-refinement-card-renderer",function(){if(lgv!==void 0)return lgv;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return lgv=l},{mode:1});var Dyy;var p_=function(){var l=_.p.apply(this,arguments)||this;l.isRichGrid=!1;return l};
_.Z(p_,_.p);_.E([_.K(),_.T("design:type",Object)],p_.prototype,"data",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],p_.prototype,"componentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],p_.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],p_.prototype,"isRichGrid",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],p_.prototype,"miniMode",void 0);
_.E([_.x({is:"ytd-game-details-renderer",disableElementRegistration:!0})],p_);
_.r(p_,"ytd-game-details-renderer",function(){if(Dyy!==void 0)return Dyy;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Dyy=l},{mode:1});var Uyv;var nJy;var xa=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return l};
_.Z(xa,_.p);_.W=xa.prototype;_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.currentStateData=function(l){var D=l||this.data;return D&&D.states&&D.currentStateId!=null?D.states.find(function(U){return U.stateId===D.currentStateId})||null:null};
_.W.currentStateRendererData=function(l){return(l=this.currentStateData(l))&&l.state&&l.state.buttonRenderer?l.state.buttonRenderer:null};
_.W.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())};
_.W.computeButtonIcon=function(l){l=this.currentStateRendererData(l);var D;return(l==null?0:(D=l.icon)==null?0:D.iconType)?l.icon.iconType.toLowerCase():null};
_.W.computeAccessibility=function(l){return(l=this.currentStateRendererData(l))&&l.accessibilityData?l.accessibilityData.accessibilityData||null:null};
_.W.computeButtonClass=function(l){var D=this.currentStateRendererData(l);if(!D)return"";l="";var U=D.style;U&&(l+=U.toLowerCase().replace(/_/g,"-")+" ");(D=D.size)&&(l+=D.toLowerCase().replace(/_/g,"-")+" ");return l.trim()};
_.W.computeServiceEndpoint=function(l){if(!l)return null;var D=l&&l.serviceEndpoint,U=this.get("command.commandMetadata.webCommandMetadata.sendPost",l);return D?D:U&&l.command?l.command:null};
_.W.computeBellMenuItemParams=function(l){var D;l=(D=_.M(l==null?void 0:l.command,_.n3))==null?void 0:D.commands;if(!l||l.length===0)return null;D=_.M(l[0],_.rA);var U,n;return(D==null?0:(U=D.popup)==null?0:(n=U.menuPopupRenderer)==null?0:n.items)?D.popup.menuPopupRenderer.items.map(function(y){return y.menuServiceItemRenderer.trackingParams}):null};
_.W.handleBellMenuOpenSelectedAction=function(l){var D=l.trackingParams,U=this.computeBellMenuItemParams(this.data);this.data&&D&&U&&U.includes(D)&&this.ytRenderButtonBehavior._setButtonIcon(l.icon.iconType.toLowerCase())};
_.W.onYtServiceRequestCompleted=function(l,D){(l=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",D))&&this.set("data",l)};
_.W.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.W.resetState=function(){this.set("data.currentStateId",3)};
_.W.onYtButtonTapHandler=function(){if(this.data){var l=this.currentStateRendererData(this.data);l&&this.ytRendererBehavior.logExplicitClick(l)}};
xa.prototype.onYtServiceRequestError=xa.prototype.onYtServiceRequestError;xa.prototype.onYtServiceRequestCompleted=xa.prototype.onYtServiceRequestCompleted;xa.prototype.stateChanged=xa.prototype.stateChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],xa.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(w9.YtRenderButtonBehavior),_.T("design:type",Object)],xa.prototype,"ytRenderButtonBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],xa.prototype,"data",void 0);_.E([_.GY("data","data.currentStateId"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xa.prototype,"stateChanged",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],xa.prototype,"onYtServiceRequestCompleted",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],xa.prototype,"onYtServiceRequestError",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],xa);
_.r(xa,"ytd-subscription-notification-toggle-button-renderer",function(){if(nJy!==void 0)return nJy;var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return nJy=l},{mode:1});var yGg;var jw=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};l.tapHandler=function(){if(l.data){var D=l.currentStateRendererData();D&&l.ytRendererBehavior.logExplicitClick(D)}};
return l};
_.Z(jw,_.p);_.W=jw.prototype;_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.currentStateData=function(){var l=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(D){return D.stateId===l.data.currentStateId})||null:null};
_.W.currentStateRendererData=function(){var l=this.currentStateData();return l&&l.state&&l.state.buttonRenderer?l.state.buttonRenderer:null};
_.W.computeAccessibilityLabel=function(){var l,D,U;return(l=this.currentStateRendererData())==null?void 0:(D=l.accessibilityData)==null?void 0:(U=D.accessibilityData)==null?void 0:U.label};
_.W.computeBellMenuItemParams=function(){var l,D,U=(D=_.M((l=this.data)==null?void 0:l.command,_.n3))==null?void 0:D.commands;if(!U||U.length===0)return null;l=_.M(U[0],_.rA);var n,y;return(l==null?0:(n=l.popup)==null?0:(y=n.menuPopupRenderer)==null?0:y.items)?l.popup.menuPopupRenderer.items.map(function(A){return A.menuServiceItemRenderer.trackingParams}):null};
_.W.handleBellMenuOpenSelectedAction=function(l){var D=l.trackingParams,U=this.computeBellMenuItemParams();if(this.data&&D&&U&&U.includes(D)&&(l==null||!l.isDisabled)){var n;((n=_.M(l.serviceEndpoint,_.AJ))==null?void 0:n.signal)!=="CLIENT_SIGNAL"&&(this.icon=l.icon.iconType)}};
_.W.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.W.onYtServiceRequestCompleted=function(l,D){if(l=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",D))this.icon=void 0,this.set("data",l)};
_.W.onYtServiceRequestError=function(){this.icon=void 0};
_.QP.Object.defineProperties(jw.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l=this.data,D=this.textLabel,U=this.hostElement,n=this.computeAccessibilityLabel(),y=this.tapHandler,A=this.isOverlay?"overlay":"mono",C=(l==null?0:l.disableButton)?"disabled":"active";D=D?_.Zk(D):void 0;return{style:A,type:"tonal",state:C,size:"M",focused:!1,formattedButtonText:D,iconPosition:"leading-trailing",onTap:kQc(l,y,U),accessibilityLabel:n}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var l=this.currentStateRendererData(),D,U,n=(U=this.icon)!=null?U:l==null?void 0:(D=l.icon)==null?void 0:D.iconType;if(n)return _.UV(n)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(l=this.data)==null?void 0:(D=l.secondaryIcon)==null?void 0:D.iconType;if(U)return _.UV(U)}}});
jw.prototype.onYtServiceRequestError=jw.prototype.onYtServiceRequestError;jw.prototype.onYtServiceRequestCompleted=jw.prototype.onYtServiceRequestCompleted;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],jw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jw.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],jw.prototype,"textLabel",void 0);
_.E([_.K(),_.T("design:type",String)],jw.prototype,"icon",void 0);_.E([_.K(),_.T("design:type",Boolean)],jw.prototype,"isOverlay",void 0);_.E([_.t("data.*","textLabel"),_.T("design:type",Object),_.T("design:paramtypes",[])],jw.prototype,"computedButtonShape",null);_.E([_.t("data.*","icon"),_.T("design:type",Object),_.T("design:paramtypes",[])],jw.prototype,"computedIcon",null);_.E([_.t("computedIcon"),_.T("design:type",Object),_.T("design:paramtypes",[])],jw.prototype,"computedAnimateIcon",null);
_.E([_.t("data.*"),_.T("design:type",Object),_.T("design:paramtypes",[])],jw.prototype,"computedSecondaryIcon",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],jw.prototype,"onYtServiceRequestCompleted",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],jw.prototype,"onYtServiceRequestError",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],jw);
_.r(jw,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(yGg!==void 0)return yGg;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return yGg=l},{mode:_.Vj("kevlar_poly_si_batch_j081")?1:2});var AG8;_.Tt(Aom,"yt-animated-action",{props:{backgroundLottieRef:_.C$,foregroundLottieRef:_.C$,wrapperClass:_.C$,disableAnimation:_.C$},unsafeExternallySettableAttributes:new Set(["key"])});var F_=function(){var l=_.p.apply(this,arguments)||this;l.animatedActionEnabled=_.q("web_animated_actions");l.foregroundLottieRef={};l.backgroundLottieRef={};l.forceIconOnly=!1;l.showTextWhileAnimating=!1;l.keyboardFocused=!1;l.isAnimating=!1;l.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return l};
_.Z(F_,_.p);_.W=F_.prototype;_.W.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.W.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]]"}}}}}};
_.W.attached=function(){this.keyboardFocused=!1};
_.W.onYtServiceRequestSent=function(l,D){(this.get("endpoint.subscribeEndpoint",D)||this.get("endpoint.unsubscribeEndpoint",D))&&this.updateSubscriptionState(!this.subscribed)};
_.W.onYtServiceRequestCompleted=function(l,D){(l=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",D.data))&&this.bellButton&&(this.bellButton.data=l)};
_.W.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Wg(this.hostElement)};
_.W.onPlayerSubscribe=function(l){this.isCompactRed()||l!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.W.onPlayerUnsubscribe=function(l){this.isCompactRed()||l!==this.data.channelId||this.updateSubscriptionState(!1)};
_.W.handleUpdateSubscribeButtonAction=function(l){l=_.M(l,lek);var D;l&&l.channelId===((D=this.data)==null?void 0:D.channelId)&&this.updateSubscriptionState(!!l.subscribed)};
_.W.computeButtonStyle=function(l){return this.get("style.styleType",l)||null};
_.W.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.W.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.W.updateSubscriptionState=function(l){if(l!==this.subscribed){this.set("data.subscribed",l);var D,U=(D=this.data)==null?void 0:D.subscribedEntityKey;U&&this.ytdReduxBehavior.dispatch(_.vr("subscriptionStateEntity",U,{key:U,subscribed:l}));this.isCompactRed()||_.O9(this.hostElement,"yt-subscription-changed",l);l||(_.Vh(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!l),l&&this.hasBellButton&&this.startAnimation())}};
_.W.startAnimation=function(){var l=this;if(!this.isAnimating){var D=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var U;(U=this.backgroundLottieRef.lottieEl)==null||U.goToAndPlay(0);var n;(n=this.foregroundLottieRef.lottieEl)==null||n.goToAndPlay(0);_.Tn.addJob(function(){l.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Tn.addJob(function(){l.updateContainerToFitContent(!!l.subscribed,!0)},2,1500);
_.Tn.addJob(function(){l.isAnimating=!1},2,D)}};
_.W.maybeAnimateBellIcon=function(){var l=_.lJ(this.hostElement).querySelector("yt-animated-icon");if(l){var D;(D=l.animationRef.lottieEl)==null||D.goToAndPlay(0)}};
_.W.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.W.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.W.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var l;this.unsubscribedWidth=(l=this.subscribeButtonShape)==null?void 0:l.getBoundingClientRect().width}var D;this.subscribedWidth=(D=this.bellButton)==null?void 0:D.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.W.updateContainerToFitContent=function(l,D){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(l?(l=this.subscribedWidth,D=this.isAnimating&&!D,this.subscribedIconOnlyWidth===void 0||D||(l=this.subscribedIconOnlyWidth),this.hostElement.style.width=l+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.W.clearContainerSize=function(){this.hostElement.style.width=""};
_.W.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.W.maybeSetSubscribedButtonIconOnlyWidth=function(){var l=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 D;l.subscribedIconOnlyWidth=(D=l.bellButton)==null?void 0:D.getBoundingClientRect().width;requestAnimationFrame(function(){if(l.bellButton){var U;l.bellButton.textLabel=
(U=l.data)==null?void 0:U.subscribedButtonText}})})))};
_.QP.Object.defineProperties(F_.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 l;return(l=this.data)==null?void 0:l.subscribedButtonText}var D;return this.forceIconOnly?void 0:(D=this.data)==null?void 0:D.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var l,D,U=((l=this.data)==null?void 0:(D=l.timedAnimationData)==null?void 0:D.animationTiming)||[];return{uniqueId:"subscribe",timings:U,enabled:U.length>0&&!this.subscribed,experimentEnabled:U.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var l;return!this.subscribed&&((l=this.data)==null?void 0:l.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 l={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var D=l.renderer;var U=l.element;var n=l.subscribed;var y=l.commandController;var A=l.isOverlay;l=l.stopPropagation;var C=pBG(D,n);A&&(C.style="overlay");A=Object;var h=A.assign,b;a:switch((b=D.style)==null?void 0:b.styleType){case "COMPACT_GRAY":case "COMPACT_RED":b={size:"S"};break a;default:b={size:"M"}}var u=cNN(D,
n);var Q=(Q=n?D.subscribedButtonText:D.unsubscribedButtonText)?_.Zk(Q):void 0;return h.call(A,{},C,b,{focused:!1,toggled:n,accessibilityLabel:u,formattedButtonText:Q,onTap:KfK(D,n,U,y,l)})}}}});
F_.prototype.onMouseDown=F_.prototype.onMouseDown;F_.prototype.onDataChanged=F_.prototype.onDataChanged;F_.prototype.observedSubscribed=F_.prototype.observedSubscribed;F_.prototype.onYtServiceRequestCompleted=F_.prototype.onYtServiceRequestCompleted;F_.prototype.onYtServiceRequestSent=F_.prototype.onYtServiceRequestSent;F_.prototype.maybeUpdateBellButtonText=F_.prototype.maybeUpdateBellButtonText;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],F_.prototype,"ytComponentBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],F_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],F_.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],F_.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.subscribedEntityKey"],selector:i83}),_.T("design:type",Object)],F_.prototype,"subscriptionStateEntity",void 0);_.E([_.K({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.T("design:type",Boolean)],F_.prototype,"subscribed",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],F_.prototype,"branded",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],F_.prototype,"animatedActionEnabled",void 0);
_.E([_.K(),_.T("design:type",Object)],F_.prototype,"foregroundLottieRef",void 0);_.E([_.K(),_.T("design:type",Object)],F_.prototype,"backgroundLottieRef",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],F_.prototype,"overlayButton",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.T("design:type",Object)],F_.prototype,"buttonStyle",void 0);_.E([_.K(),_.T("design:type",Object)],F_.prototype,"forceIconOnly",void 0);
_.E([_.K(),_.T("design:type",Object)],F_.prototype,"showTextWhileAnimating",void 0);_.E([_.K({value:function(){return!!_.Jc().resolve(_.G8(_.L$))&&_.q("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.T("design:type",Boolean)],F_.prototype,"useKeyboardFocused",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],F_.prototype,"keyboardFocused",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],F_.prototype,"isAnimating",void 0);_.E([_.t("data.notificationPreferenceButton.*"),_.T("design:type",Object),_.T("design:paramtypes",[])],F_.prototype,"hasBellButton",null);
_.E([_.Pg("subscribedButtonText"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],F_.prototype,"maybeUpdateBellButtonText",null);_.E([_.t("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.T("design:type",Object),_.T("design:paramtypes",[])],F_.prototype,"subscribedButtonText",null);_.E([_.t("data.timedAnimationData.animationTiming","subscribed"),_.T("design:type",Object),_.T("design:paramtypes",[])],F_.prototype,"smartimationSettings",null);
_.E([_.K({reflectToAttribute:!0}),_.t("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.T("design:type",Object),_.T("design:paramtypes",[])],F_.prototype,"subscribeButtonHidden",null);_.E([_.K({reflectToAttribute:!0}),_.t("subscribed","hasBellButton"),_.T("design:type",Object),_.T("design:paramtypes",[])],F_.prototype,"subscribeButtonInvisible",null);
_.E([_.K({reflectToAttribute:!0}),_.t("subscribed"),_.T("design:type",Object),_.T("design:paramtypes",[])],F_.prototype,"unsubscribeButtonHidden",null);_.E([_.gP("ytd-subscription-notification-toggle-button-renderer-next"),_.T("design:type",Object)],F_.prototype,"bellButton",void 0);_.E([_.gP("#subscribe-button-shape"),_.T("design:type",HTMLElement)],F_.prototype,"subscribeButtonShape",void 0);
_.E([_.t("overlayButton","subscribed","data"),_.T("design:type",Object),_.T("design:paramtypes",[])],F_.prototype,"buttonShape",null);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],F_.prototype,"onYtServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],F_.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Pg("subscribed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],F_.prototype,"observedSubscribed",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],F_.prototype,"onDataChanged",null);_.E([_.hj("mousedown"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],F_.prototype,"onMouseDown",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],F_);
_.r(F_,"ytd-subscribe-button-renderer",function(){if(AG8!==void 0)return AG8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return AG8=l},{mode:1});var oY=function(){var l=_.p.apply(this,arguments)||this;l.isRichGrid=!1;return l};
_.Z(oY,_.p);oY.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],oY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],oY.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],oY.prototype,"isRichGrid",void 0);_.E([_.x({is:"ytd-game-card-renderer",disableElementRegistration:!0})],oY);
_.r(oY,"ytd-game-card-renderer",function(){if(Uyv!==void 0)return Uyv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Uyv=l},{mode:1});var wg={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.q("defer_menus")&&!Fn5?0:void 0,waitForSignal:"eocs"};var WY8;var B5k;var rg=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return l};
_.Z(rg,_.p);_.W=rg.prototype;_.W.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.W.onSeriesReminderStateEntityChange=function(){var l,D,U;((l=this.eventReminderStateEntity)==null?0:l.key)&&((D=this.seriesReminderStateEntity)==null?void 0:D.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((U=this.eventReminderStateEntity)==null?void 0:U.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.vr("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.W.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.W.onYtServiceRequestError=function(){var l;this.updateReminderStateEntitiesFromButtonState((l=this.data)==null?void 0:l.currentState)};
_.W.handleUpdateUpcomingEventReminderButtonStateCommand=function(l){if(l=_.M(l,OFg)){var D,U=(D=this.data)==null?void 0:D.targetId;U&&l.targetId===U&&_.j0(this.updateReminderStateEntitiesFromButtonState.bind(this,l.state))}};
_.W.getButtonStateFromReminderState=function(){var l;if(((l=this.seriesReminderStateEntity)==null?void 0:l.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var D;if(((D=this.eventReminderStateEntity)==null?void 0:D.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var U,n;if(((U=this.seriesReminderStateEntity)==null?void 0:U.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((n=this.eventReminderStateEntity)==
null?void 0:n.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var y;return(y=this.data)==null?void 0:y.currentState};
_.W.updateReminderStateEntitiesFromButtonState=function(l){if(l){switch(l){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":l="UPCOMING_EVENT_REMINDER_STATE_NONE";var D="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":l="UPCOMING_EVENT_REMINDER_STATE_SINGLE";D="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":l="UPCOMING_EVENT_REMINDER_STATE_NONE";D="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var U;
((U=this.eventReminderStateEntity)==null?0:U.key)&&this.ytdReduxBehavior.dispatch(_.vr("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:l})));var n;((n=this.seriesReminderStateEntity)==null?0:n.key)&&this.ytdReduxBehavior.dispatch(_.vr("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:D})))}};
_.QP.Object.defineProperties(rg.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var l=this.getButtonStateFromReminderState(),D,U;if(l&&((D=this.data)==null?0:(U=D.states)==null?0:U.length))for(D=_.B(this.data.states),U=D.next();!U.done;U=D.next()){U=U.value;var n=void 0;if(((n=_.M(U,VPh))==null?void 0:n.state)===l)return _.M(U,VPh)}}}});
rg.prototype.onYtServiceRequestError=rg.prototype.onYtServiceRequestError;rg.prototype.onYtServiceRequestCompleted=rg.prototype.onYtServiceRequestCompleted;rg.prototype.onSeriesReminderStateEntityChange=rg.prototype.onSeriesReminderStateEntityChange;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],rg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],rg.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],rg.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:D89}),_.T("design:type",Object)],rg.prototype,"eventReminderStateEntity",void 0);
_.E([_.K({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(l,D){return _.yT(l.entities,"sportsSeriesReminderStateEntity",D)}}),
_.T("design:type",Object)],rg.prototype,"seriesReminderStateEntity",void 0);_.E([_.t("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],rg.prototype,"currentButtonStateRenderer",null);_.E([_.Pg("seriesReminderStateEntity"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rg.prototype,"onSeriesReminderStateEntityChange",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rg.prototype,"onYtServiceRequestCompleted",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rg.prototype,"onYtServiceRequestError",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],rg);
_.r(rg,"ytd-upcoming-event-reminder-button-renderer",function(){if(B5k!==void 0)return B5k;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
return B5k=l},{mode:1});var CRy;var zO=function(){return _.p.apply(this,arguments)||this};
_.Z(zO,_.p);zO.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.QP.Object.defineProperties(zO.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(_.q("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],zO.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],zO.prototype,"shelfDismissal",void 0);_.E([_.t("data.responseText"),_.T("design:type",Object),_.T("design:paramtypes",[])],zO.prototype,"text",null);
_.E([_.t("data.responseText"),_.T("design:type",Object),_.T("design:paramtypes",[])],zO.prototype,"textAriaLabel",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],zO);
_.r(zO,"ytd-notification-multi-action-renderer",function(){if(CRy!==void 0)return CRy;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return CRy=l},{mode:1});var hCH;var f_=function(){return _.p.apply(this,arguments)||this};
_.Z(f_,_.p);f_.prototype.ready=function(){var l=this;_.iJ(this.hostElement).querySelector("#undo").addEventListener("tap",function(){l.onUndoTap()})};
f_.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.Jc().resolve(_.qK).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],f_.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],f_);
_.r(f_,"ytd-notification-text-renderer",function(){if(hCH!==void 0)return hCH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return hCH=l},{mode:1});var PRv;var $a=function(){var l=_.p.apply(this,arguments)||this;l.mouseOverDelayJobId=0;l.fadeInImageDelayJobId=0;l.startTimeMs=-1;l.loadingStartTimeMs=-1;l.loadingEndTimeMs=-1;l.hasVideoPreview=!1;return l};
_.Z($a,_.p);_.W=$a.prototype;_.W.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.W.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.W.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.W.showThumbnail=function(){var l=this;this.csn=_.t6();_.tJ("fmth");_.Tn.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Vu(_.Tn,function(){l.loadingStartTimeMs=(0,_.J3)();var D=_.iJ(l.hostElement).querySelector("#thumbnail");D.complete?l.displayMouseOverImage():D.addEventListener("load",_.CY(l,l.displayMouseOverImage))},150):_.nY(_.iJ(this.hostElement).querySelector("#play"),"show",!0)};
_.W.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.W.onTap=function(){this.removeVideoPreview()};
_.W.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var l=this.videoId,D=this.csn,U=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,n=this.startTimeMs,y=this.hasVideoPreview,A=_.v9(this.trackingParams),C={isMovingThumbnail:y};y&&n>0&&(U>0&&(C.movingThumbnailLoadingDurationMs=Math.round(U)),C.durationHoveredMs=Math.round((0,_.J3)()-n));l&&(C.videoId=l);_.f3(D,A,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:C});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.W.removeVideoPreview=function(){_.Tn.cancelJob(this.mouseOverDelayJobId);_.Tn.cancelJob(this.fadeInImageDelayJobId);var l=_.iJ(this.hostElement).querySelector("#thumbnail");_.nY(l,"fade-in",!1);l.removeEventListener("load",_.CY(this,this.displayMouseOverImage));l=_.iJ(this.hostElement).querySelector("#play");_.nY(l,"fade-in",!1);_.nY(l,"show",!1)};
_.W.displayMouseOverImage=function(){var l=_.iJ(this.hostElement).querySelector("#thumbnail"),D=_.iJ(this.hostElement).querySelector("#play");this.isImageAvailable(l)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.J3)(),this.startTimeMs=(0,_.J3)(),this.fadeInImageDelayJobId=_.Vu(_.Tn,function(){_.nY(l,"fade-in",!0)},50)):_.nY(D,"fade-in",!0)};
_.W.computeThumbnail=function(l,D){var U;l&&l.movingThumbnailDetails&&l.movingThumbnailDetails.thumbnails&&D?U=_.IO(l.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):U=D?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(U)return _.Ng(U)};
_.W.isImageAvailable=function(l){return!(!l.src||l.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||l.naturalWidth===120)};
$a.prototype.onTap=$a.prototype.onTap;$a.prototype.dataChanged=$a.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],$a.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$a.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],$a.prototype,"csn",void 0);_.E([_.K(),_.T("design:type",Object)],$a.prototype,"trackingParams",void 0);
_.E([_.K(),_.T("design:type",String)],$a.prototype,"videoId",void 0);_.E([_.K(),_.T("design:type",Boolean)],$a.prototype,"isAttachedAndDataSet",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$a.prototype,"dataChanged",null);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$a.prototype,"onTap",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],$a);
_.r($a,"ytd-moving-thumbnail-renderer",function(){if(PRv!==void 0)return PRv;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return PRv=l},{mode:1});var bl5;_.DL=function(l){this.hostElement=l;this.eventSink=null;this.eventList=[]};
_.DL.prototype.shouldForward=function(){var l,D;return(D=(l=this.eventSink)==null?void 0:l.isConnected)!=null?D:document.body.contains(this.eventSink)};
_.DL.prototype.start=function(l,D){this.eventSink&&this.stop();for(var U=0;U<l.length;U++)this.hostElement.addEventListener(l[U],_.CY(this,this.forwardEvent));var n;this.eventSink=(n=D.hostElement)!=null?n:D;this.eventList=l};
_.DL.prototype.stop=function(){for(var l=0;l<this.eventList.length;l++)this.hostElement.removeEventListener(this.eventList[l],_.CY(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.DL.prototype.forwardEvent=function(l,D){this.shouldForward()&&(l.stopPropagation(),this.eventSink instanceof Element?_.O9(this.eventSink,l.type,D):_.II(new _.rc("eventSink is not an element")))};_.NP={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.DL(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(l,D){this.forwarder_.start(l,D)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var sh=function(){return _.p.apply(this,arguments)||this};
_.Z(sh,_.p);_.W=sh.prototype;_.W.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=_.H3("HTML_DIR")==="rtl"?"right":"left"};
_.W.dataChanged=function(){this.popupOpen=!1};
_.W.computeAriaLabel=function(l){return _.M(l,qah).label};
_.W.onTap=function(l){l.stopPropagation();l.preventDefault();this.data.command&&_.Jc().resolve(_.qK).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.W.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.W.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
sh.prototype.onPopupClosed=sh.prototype.onPopupClosed;sh.prototype.onPopupOpened=sh.prototype.onPopupOpened;sh.prototype.onTap=sh.prototype.onTap;sh.prototype.dataChanged=sh.prototype.dataChanged;_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],sh.prototype,"eventForwardingBehavior",void 0);_.E([_.m(_.sC),_.T("design:type",Object)],sh.prototype,"ironButtonState",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],sh.prototype,"componentBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],sh.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:-1}),_.T("design:type",Number)],sh.prototype,"tabindex",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.T("design:type",Object)],sh.prototype,"ariaLabel",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],sh.prototype,"disableTooltips",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],sh.prototype,"popupOpen",void 0);
_.E([_.K(),_.T("design:type",Element)],sh.prototype,"eventSink",void 0);_.E([_.gP("#tooltip"),_.T("design:type",Object)],sh.prototype,"tooltip",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sh.prototype,"dataChanged",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],sh.prototype,"onTap",null);
_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sh.prototype,"onPopupOpened",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sh.prototype,"onPopupClosed",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],sh);
_.r(sh,"ytd-thumbnail-overlay-button-renderer",function(){if(bl5!==void 0)return bl5;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return bl5=l},{mode:1});var gJ7;var Eh=function(){return _.p.apply(this,arguments)||this};
_.Z(Eh,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Eh.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Eh.prototype,"disableAnimation",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Eh.prototype,"rounded",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Eh.prototype,"transparentBackground",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Eh.prototype,"noPadding",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Eh);
_.r(Eh,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(gJ7!==void 0)return gJ7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return gJ7=l},{mode:1});var uWy;var TO=function(){return _.p.apply(this,arguments)||this};
_.Z(TO,_.p);TO.prototype.computeIconPosition=function(l){return this.get("iconPosition",l)||null};
TO.prototype.computeIconStyle=function(l){return this.get("iconStyle",l)||null};
TO.prototype.computeIsIconStyleFilled=function(l){if(!l)return!1;var D;return l.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((D=l.icon)==null?void 0:D.iconType)==="ERROR_BLACK"};
_.E([_.K(),_.T("design:type",Object)],TO.prototype,"data",void 0);_.E([_.K({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.T("design:type",Object)],TO.prototype,"iconPosition",void 0);_.E([_.K({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.T("design:type",Object)],TO.prototype,"iconStyle",void 0);_.E([_.K({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],TO.prototype,"iconStyleFilled",void 0);
_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],TO);
_.r(TO,"ytd-thumbnail-overlay-icon-renderer",function(){if(uWy!==void 0)return uWy;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return uWy=l},{mode:1});var vJg;var IY=function(){return _.p.apply(this,arguments)||this};
_.Z(IY,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],IY.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],IY);
_.r(IY,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(vJg!==void 0)return vJg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vJg=l},{mode:1});var Qyh;var HZ=function(){var l=_.p.apply(this,arguments)||this;l.isPreviewLoading=!1;return l};
_.Z(HZ,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],HZ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],HZ.prototype,"isPreviewLoading",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],HZ);
_.r(HZ,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Qyh!==void 0)return Qyh;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Qyh=l},{mode:1});var GFg;var Ya=function(){return _.p.apply(this,arguments)||this};
_.Z(Ya,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ya.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Ya);
_.r(Ya,"ytd-thumbnail-overlay-pinking-renderer",function(){if(GFg!==void 0)return GFg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return GFg=l},{mode:1});var JGH;var Oh=function(){var l=_.p.apply(this,arguments)||this;l.disableTooltips=!1;l.isLoading=!1;l.useExpandableTooltip=!1;l.toggled=!1;l.hovered=!1;l.mouseoverDelayJobId=0;l.toggleDelayJobId=0;l.expandAnimationDelayJobId=0;return l};
_.Z(Oh,_.p);_.W=Oh.prototype;_.W.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");_.iJ(this.hostElement).querySelector("#tooltip").position=_.H3("HTML_DIR")==="rtl"?"right":"left"};
_.W.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Tn.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Tn.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Tn.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.W.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Tn.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Tn.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Tn.cancelJob(this.expandAnimationDelayJobId)};
_.W.computeIcon=function(l,D,U){return(l=U?D:l)&&l.iconType?_.UV(l.iconType):void 0};
_.W.computeAriaLabel=function(l,D,U){return _.M(U?D:l,qah).label};
_.W.computeTooltip=function(l,D,U){return U?D:l};
_.W.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.W.computeIconOnHover=function(l,D){if((l==null?0:l.iconType)&&!D)return _.UV(l.iconType)};
_.W.onTap=function(l){var D=this;l.stopPropagation();l.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(l=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(l),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Vu(_.Tn,function(){D.hovered=!1;D.data&&!D.data.toggledServiceEndpoint&&(D.expandAnimationDelayJobId=_.Vu(_.Tn,function(){D.set("data.isToggled",
!1)},200))},2E3))};
_.W.onMouseenter=function(){var l=this;this.mouseoverDelayJobId=_.Vu(_.Tn,function(){l.hovered=!0},300)};
_.W.onMouseleave=function(){_.Tn.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.W.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.W.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.W.onServiceRequestCompleted=function(l,D){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(D)||this.set("data.isToggled",!this.data.isToggled)};
_.W.serviceRequestWasSuccessful=function(l){return _.M(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.lc)?l.data.status==="STATUS_SUCCEEDED":!0};
Oh.prototype.onServiceRequestCompleted=Oh.prototype.onServiceRequestCompleted;Oh.prototype.onPopupClosed=Oh.prototype.onPopupClosed;Oh.prototype.onPopupOpened=Oh.prototype.onPopupOpened;Oh.prototype.onMouseleave=Oh.prototype.onMouseleave;Oh.prototype.dataChanged=Oh.prototype.dataChanged;_.E([_.m(_.sC),_.T("design:type",Object)],Oh.prototype,"ironButtonState",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Oh.prototype,"ytComponentBehavior",void 0);
_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],Oh.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Oh.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.T("design:type",Object)],Oh.prototype,"ariaLabel",void 0);_.E([_.K(),_.T("design:type",Object)],Oh.prototype,"disableTooltips",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Oh.prototype,"popupOpen",void 0);_.E([_.K(),_.T("design:type",Object)],Oh.prototype,"isLoading",void 0);_.E([_.K(),_.T("design:type",Element)],Oh.prototype,"eventSink",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Oh.prototype,"useExpandableTooltip",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.T("design:type",Object)],Oh.prototype,"toggled",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Oh.prototype,"hovered",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.T("design:type",Object)],Oh.prototype,"iconOnHover",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Oh.prototype,"dataChanged",null);
_.E([_.hj("mouseleave"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Oh.prototype,"onMouseleave",null);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Oh.prototype,"onPopupOpened",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Oh.prototype,"onPopupClosed",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],Oh.prototype,"onServiceRequestCompleted",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Oh);
_.r(Oh,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(JGH!==void 0)return JGH;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return JGH=l},{mode:_.Vj("kevlar_poly_si_batch_j053")?1:2});var LY1;var qu_=_.w(function(l){var D=l.data;var U=l.thumbnailSize;var n=function(){return D().enableSegmentView};
return _.g("yt-thumbnail-overlay-progress-bar-view-model",{class:_.DV("ytThumbnailOverlayProgressBarHost",function(){return x8g(U==null?void 0:U())})},_.g(_.v,{cond:n,
then:function(){return _.g("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.g("div",{class:_.MJ("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+D().startPercent+"%"}}),_.g("div",{class:_.MJ("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+D().segmentDurationPercent+"%"}},_.g("div",{class:_.MJ("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.g("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.g("div",null," ",function(){return D().segmentLabel})),_.g("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.g("div",{class:_.MJ("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.g(_.v,{cond:function(){return!n()&&D().startPercent},
then:function(){var y={};return _.g("div",{class:_.MJ("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(y.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.q("web_enable_modern_progress_bar_overlay"),y))},_.g("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+D().startPercent+"%"}}))}}))},"Fa");
qu_.idomCompat=!0;var MH5=_.w(function(l){var D=_.Wr(),U=_.gf(function(y){var A,C,h;a:{var b=(A=l.data())==null?void 0:A.animationActivationTargetId;A=((C=l.data())==null?void 0:C.animationActivationEntityKey)||"";C=(h=l.data())==null?void 0:h.animationActivationEntitySelectorType;if(A&&b)switch(C){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":y=_.Um(y,A);h=_.Jc().resolve(_.G8(_.kq));b=!!(y&&y.videoId===b&&(h==null?0:h.isMiniplayerActive()));b={activated:b,playAnimation:b&&y.playerState==="PLAYER_STATE_PLAYING"};
break a}b=void 0}return b});
_.$i(function(){var y;if((y=U())==null?0:y.activated){var A;if((A=U())==null?0:A.playAnimation){var C;(C=D.lottieEl)==null||C.goToAndPlay(0)}else{var h;(h=D.lottieEl)==null||h.goToAndStop(0)}}},"DbQiXd");
var n=function(){var y,A=!((y=U())==null||!y.activated);if(l.data()){y=l.data();var C=void 0;y.icon&&(C=_.y0$(y.icon),C=bRc(C));var h=void 0,b;if((b=y.backgroundColor)==null?0:b.lightTheme){var u;h={backgroundColor:XP((u=y.backgroundColor)==null?void 0:u.lightTheme,"0.8")}}if(y.text||C||A){if(A&&y.lottieData&&D){u=y.lottieData;var Q,G,J;b={animationConfig:{name:u.url,path:u.url,autoplay:(Q=u.settings)==null?void 0:Q.autoplay,loop:(J=(G=u.settings)==null?void 0:G.loop)!=null?J:!0},animationRef:D}}else b=
void 0;if(A)Q=17;else b:switch(y.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":Q=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":Q=19;break b;default:Q=17}A={type:Q,text:A&&y.animatedText?y.animatedText:y.text,icon:C,customColors:h,animation:b}}else A=void 0}else A=void 0;return A};
return _.g("yt-thumbnail-badge-view-model",{class:_.DV("ytThumbnailBadgeViewModelHost",l.class)},_.g(_.v,{cond:n,then:function(){return _.g(_.AQ,{data:function(){return n()}})}}))},"Ha");var RCh=_.w(function(l){var D={},U={};return _.g("yt-thumbnail-bottom-overlay-view-model",{class:_.DV("ytThumbnailBottomOverlayViewModelHost",(D.ytThumbnailBottomOverlayViewModelHostBackground=function(){return l.data().enableGradientBackground},D))},_.g(_.uI,{data:function(){return l.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(n){return _.g(qu_,{data:n.data,
thumbnailSize:l.thumbnailSize})}}),_.g("div",{class:_.DV("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var n;
return jvK((n=l.thumbnailSize)==null?void 0:n.call(l))},(U.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var n;
return(n=l.isClip)==null?void 0:n.call(l)},U.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var n;
return!_.q("web_enable_modern_progress_bar_overlay")&&((n=l.thumbnailSize)==null?void 0:n.call(l))==="small"},U))},_.g(_.uI,{data:function(){return l.data().badge}},{thumbnailBadgeViewModel:function(n){return _.g(MH5,{data:n.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.g(_.uI,{data:function(){return l.data().badges}},{thumbnailBadgeViewModel:function(n){return _.g(MH5,{data:n.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
RCh.idomCompat=!0;_.Tt(RCh,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.ND,thumbnailSize:_.ND,isClip:_.ND}});var E6d={calledOnce:!1,state:"visible"},Tzl={calledOnce:!1,state:"hidden"};var VW=_.w(function(l){var D=l.data;var U=l.className;l=l.alwaysShow;var n=_.wBG(),y={};return _.g("thumbnail-hover-overlay-view-model",{el:_.fe(_.aT(function(){return D().rendererContext})),
class:_.DV("ytThumbnailHoverOverlayViewModelHost",U,(y.ytThumbnailHoverOverlayViewModelHostForceHover=l,y)),"aria-label":function(){var A;return(A=_.M(D().rendererContext,_.vF))==null?void 0:A.label},
role:function(){return _.eq(D().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.eq(D().rendererContext)!==void 0?0:void 0},
"on:keypress":n},_.g("div",{class:_.DV("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(D().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var A="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:A="ytThumbnailHoverOverlayViewModelStyleCover"}return A})},_.g(_.v,{cond:function(){return D().icon},
then:function(A){return _.g(_.rh,{data:A,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.g(_.v,{cond:function(){return D().text},
then:function(A){return _.g(_.BO,{text:A,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
VW.idomCompat=!0;var Zly=_.w(function(l){var D=l.data;return _.g(_.uI,{data:function(){return D==null?void 0:D().overlays}},{thumbnailHoverOverlayViewModel:VW})},"La");
Zly.idomCompat=!0;var eCh={};var myz=_.w(function(l){var D=l.data;var U=l.image;var n=l.state;var y=l.iconType;var A=l.overlays;var C=l.isOverlay;var h=_.gm("div");l=_.B(_.aw(!0,void 0,"AA4e7b"));var b=l.next().value,u=l.next().value,Q=function(){return!!D().onTap},G=_.NQ(y,"LIVE");
_.$i(function(){var L=D();requestAnimationFrame(function(){if(h.value===null)var R=!0;else{var a=h.value;R=L.badgeText;var S=H8l(L.size);R in eCh?a=eCh[R]:(a=a.clientWidth,eCh[R]=a);(R=a>S)?h.value.style.display="none":h.value.style.visibility="visible"}u(R)})},"vNdN8b");
var J=function(){var L={};return L["yt-spec-avatar-shape__image"]=!0,L["yt-spec-avatar-shape__image--ads-app"]=D().type===1,L["yt-spec-avatar-shape__image--inscribed-square"]=D().type===2,L};
return _.g("yt-avatar-shape",null,_.g("div",{el:_.fe(O8K(Q,{keydown:function(L){if(L.key==="Enter"){var R;(R=L.currentTarget)==null||R.click()}},
click:function(L){var R,a;return void((a=(R=D()).onTap)==null?void 0:a.call(R,L))}})),
class:function(){var L={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},R=D();L=(L[R.clusterLayoutConfig?lTg(R.clusterLayoutConfig):Dz9(R.size)]=!0,L["yt-spec-avatar-shape__button--tappable"]=Q(),L);(R=D().avatarButtonCustomClassName)&&(L[R]=!0);return _.MJ(L)},
"aria-label":function(){return Q()?D().accessibilityText:""},
role:function(){return Q()?"button":void 0},
tabindex:function(){return Q()?0:void 0}},_.g("div",{class:function(){var L,R=D(),a=n==null?void 0:n(),S=C==null?void 0:C(),d=!((L=R.decorations)==null||!L.includes(2)||R.size!=="medium"&&R.size!=="large"),c=R.size==="tiny"||R.size==="extra-small",N,z,f,I,iG={};
L=(iG["yt-spec-avatar-shape--live-ring"]=!!(((N=R.decorations)==null?0:N.includes(0))&&n$K(R.size)),iG["yt-spec-avatar-shape--stories-watched"]=d&&!(a==null||!a.storiesWatched),iG["yt-spec-avatar-shape--stories-unwatched"]=d&&!(a==null?0:a.storiesWatched),iG["yt-spec-avatar-shape--background-border"]=yoC(R.decorations)&&!c,iG["yt-spec-avatar-shape--background-border-thin"]=yoC(R.decorations)&&c,iG["yt-spec-avatar-shape__on-select-border"]=!((z=R.decorations)==null||!z.includes(4)),iG["yt-spec-avatar-shape__white-border"]=
!((f=R.decorations)==null||!f.includes(5)),iG["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((I=R.decorations)==null?0:I.includes(5))&&c),iG["yt-spec-avatar-shape--is-overlay"]=!!S,iG);return _.MJ(L)},
style:function(){a:{var L=D().clusterLayoutConfig;if(L){b:{var R=L.numAvatarsInCluster;var a=L.avatarIndex;if(a!==R-1){switch(L.clusterSize){case "small":L="32";break;case "medium":L="36";break;case "40":L="40";break;default:R=void 0;break b}R="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+L+"x"+L+"_avatars_"+R+"_index_"+a+".svg"}else R=void 0}if(R){R=_.BK({"-webkit-mask-image":"url("+R+")","mask-image":"url("+R+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}R=void 0}return R}},_.g("div",{class:function(){var L={};
var R=D();L=(L[R.clusterLayoutConfig?VT_(R.clusterLayoutConfig):ir3(R.size)]=!0,L["yt-spec-avatar-shape--no-margin"]=yoC(D().decorations),L["yt-spec-avatar-shape--square"]=D().type===2,L);return _.MJ(L)}},_.g(_.rh,{data:U,
alt:function(){return!Q()&&D().accessibilityText?D().accessibilityText:""},
targetWidth:function(){return UzG(D().size)},
targetHeight:function(){return UzG(D().size)},
className:function(){return _.MJ(J())}}),_.g(_.v,{cond:function(){var L;
return((L=D().decorations)==null?void 0:L.includes(0))&&n$K(D().size)},
then:function(){return _.g("div",{class:function(){var L={};L=(L["yt-spec-avatar-shape__live-badge"]=!0,L["yt-spec-avatar-shape__live-badge--badge-small"]=D().size==="small",L["yt-spec-avatar-shape__live-badge--badge-medium"]=D().size==="medium"||D().size==="48",L["yt-spec-avatar-shape__live-badge--badge-large"]=D().size==="large",L["yt-spec-avatar-shape__live-badge--badge-extra-large"]=D().size==="extra-large"||D().size==="extra-extra-large"||D().size==="giant",L);return _.MJ(L)}},_.g(_.v,{cond:function(){return D().badgeText},
then:function(L){return _.g("div",{class:"yt-spec-avatar-shape__badge-text",el:h},L)}}),_.g(_.v,{cond:b,
then:function(){return _.g("div",{class:"yt-spec-avatar-shape__badge-icon"},_.g(_.C0,{icon:G,size:function(){a:switch(D().size){case "extra-large":var L=16;break a;default:L=13}return L}}))}}))}}),_.g(_.v,{cond:function(){var L,R;
return((L=D().decorations)==null?void 0:L.includes(1))||((R=D().decorations)==null?void 0:R.includes(0))&&!n$K(D().size)},
then:function(){return _.g("div",{class:function(){var L=D(),R,a,S={};var d=(S["yt-spec-avatar-shape__live-dot"]=!((R=L.decorations)==null||!R.includes(0)||n$K(L.size)),S["yt-spec-avatar-shape__new-content"]=!((a=L.decorations)==null||!a.includes(1)),S);return _.MJ(d)}})}}),_.g(_.v,{cond:function(){return!!A},
then:function(){return _.g("div",{class:function(){var L={};L=Object.assign((L["yt-spec-avatar-shape__image-overlays"]=!0,L),J());return _.MJ(L)}},A==null?void 0:A())}})))))},"Oa");
myz.idomCompat={callbacks:{overlays:!0}};_.iX=_.w(function(l){function D(){U().endpoint&&_.dh(U().endpoint)}
var U=l.data;var n=l.decorations;var y=l.avatarButtonCustomClassName;var A=l.isOverlay;var C=l.clusterLayoutConfig;return _.g("avatar-view-model",null,_.g(_.v,{cond:function(){return U().image},
then:function(h){return _.g(myz,{data:function(){return WD_({data:U(),onTap:U().endpoint?D:void 0,decorations:n==null?void 0:n(),badgeText:void 0,accessibilityText:U().accessibilityText,avatarButtonCustomClassName:y==null?void 0:y(),clusterLayoutConfig:C==null?void 0:C()})},
image:h,iconType:"RADAR_LIVE",overlays:function(){return _.g(Zly,{data:U})},
isOverlay:A})}}))},"Pa");
_.iX.idomCompat=!0;_.lX=_.w(function(l){var D=l.data;l=l.className;var U=_.gm("yt-decorated-avatar-view-model"),n=function(){return _.M(D().avatar,_.X7)},y=_.dM(function(){var A,C=D(),h=n(),b=_.eq(D().rendererContext),u=(A=U.value)!=null?A:void 0,Q;
if(h){u={data:C,avatar:h,onTap:b,element:u};A=u.data;C=u.avatar;h=u.onTap;b=u.element;u=u.commandController;h=h?PC9(h,b,u):void 0;b=[];A.liveData&&b.push(0);var G;u=(G=A.liveData)==null?void 0:G.liveBadgeText;G=(Q=_.M(A.rendererContext,_.vF))==null?void 0:Q.label;Q=WD_({data:C,onTap:h,decorations:b,badgeText:u,accessibilityText:G?G:A.a11yLabel})}else Q={size:"medium"};return Q},void 0,"c00kWd");
return _.g("yt-decorated-avatar-view-model",{class:_.DV("ytDecoratedAvatarViewModelHost",l),el:U},_.g(_.v,{cond:function(){var A;return(A=n())==null?void 0:A.image},
then:function(A){return _.g(myz,{data:y,image:A,iconType:"RADAR_LIVE",overlays:function(){return _.g(Zly,{data:n})}})}}))},"Qa");
_.lX.idomCompat=!0;_.DD=_.w(function(l){var D=function(){var h;return Object.assign({},l.data(),(h=l.overrides)==null?void 0:h.call(l))},U=function(){return _.mr(D().rendererContext)},n=function(){var h=D().avatars,b,u;
return(u=(b=(h==null?0:h[0])?_.M(h[0],_.X7):void 0)==null?void 0:b.avatarImageSize)!=null?u:"AVATAR_SIZE_UNKNOWN"},y=function(){return hxc(D())},A=function(){if(D().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var h=void 0;
else if((h=l.decorations)==null?0:h.call(l))h=l.decorations();else{h=D();var b=0;h.avatars&&(b+=h.avatars.length);h.decoratedText&&(b+=1);h=b>1?[3]:[]}return h},C={};
return _.g("yt-avatar-stack-view-model",{el:_.fe(_.aT(function(){return D().rendererContext})),
class:_.DV("yt-avatar-stack-view-model",l.className,(C["yt-avatar-stack-view-model--tappable"]=U,C["yt-avatar-stack-view-model--is-overlay"]=l.isOverlay,C["yt-avatar-stack-view-model--medium-text"]=l.useMediumText,C)),tabindex:function(){return U()?0:void 0},
role:function(){return U()?"link":void 0},
"aria-label":function(){var h,b;return(b=(h=_.M(D().rendererContext,_.vF))==null?void 0:h.label)!=null?b:""}},_.g(_.v,{cond:function(){var h;
return D().avatars&&!((h=l.hideAvatar)==null?0:h.call(l))},
then:function(){return _.g("div",{class:"yt-avatar-stack-view-model__avatars"},_.g(_.v,{cond:function(){return D().decoratedText},
then:function(h){var b={};return _.g("div",{class:_.DV("yt-avatar-stack-view-model__text-container",(b["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return n()==="AVATAR_SIZE_XXS"||n()==="AVATAR_SIZE_XS"},b["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var u;
return((u=l.isOverlay)==null?void 0:u.call(l))&&(n()==="AVATAR_SIZE_XXS"||n()==="AVATAR_SIZE_XS")},b)),
style:_.BK({width:function(){return y().avatarSizeInPx+"px"},
height:function(){return y().avatarSizeInPx+"px"}})},_.g(_.BO,{text:h,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.g("div",{style:function(){return _.BK(y().avatarStackStyle)()},
class:function(){return y().avatarStackClass}},_.g(_.uI,{data:function(){return y().avatars.reverse()}},{avatarViewModel:function(h,b){return _.g("div",{style:function(){var u,Q;
return _.BK((Q=(u=y()).avatarStyle)==null?void 0:Q.call(u,b()))()},
class:function(){return y().avatarClass}},_.g(_.iX,{data:h.data,
decorations:A,avatarButtonCustomClassName:function(){return y().avatarButtonCustomClassName},
isOverlay:l.isOverlay,clusterLayoutConfig:function(){var u,Q;return(Q=(u=y()).clusterLayoutConfig)==null?void 0:Q.call(u,b())}}))},
decoratedAvatarViewModel:function(h,b){return _.g("div",{style:function(){var u,Q;return _.BK((Q=(u=y()).avatarStyle)==null?void 0:Q.call(u,b()))()},
class:function(){return y().avatarClass}},_.g(_.lX,{data:h.data}))}})))}}),_.g(_.v,{cond:function(){return D().text},
then:function(h){return _.g(_.BO,{text:h,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.DD.idomCompat=!0;_.Tt(_.w(function(l){var D=l.data;var U=l.thumbnailSize;return _.g("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.g("div",{class:_.DV("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return brK(U==null?void 0:U())})},_.g(_.uI,{data:function(){return D().avatarStack}},{avatarStackViewModel:function(n){return _.g(_.DD,{data:n.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.C$,
thumbnailSize:_.C$}});var ag1=_.w(function(l){l=_.sl(l,{hidden:!1});var D=l.data;l=l.hidden;return _.g("yt-thumbnail-overlay-title-view-model",{class:_.DV("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(D().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var U="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:U="ytThumbnailOverlayTitleViewModelPositionTop"}return U}),
hidden:l},_.g(_.v,{cond:function(){return D().leadingContent},
then:function(U){return _.g("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.g(_.uI,{data:U},{decoratedAvatarViewModel:_.lX}))}}),_.g("div",null,_.g(_.BO,{text:function(){return D().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.g(_.v,{cond:function(){return D().subtitle},
then:function(){return _.g(_.BO,{text:function(){return D().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
ag1.idomCompat=!0;_.Tt(ag1,"yt-thumbnail-overlay-title-view-model",{props:{data:_.C$,hidden:_.C$}});_.tH8=_.w(function(l){l=_.sl(l,{isClip:!1});var D=l.data,U=l.thumbnailSize,n={};return _.g("yt-thumbnail-overlay-badge-view-model",{class:_.DV("yt-thumbnail-overlay-badge-view-model",function(){a:switch(D().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var y="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:y="yt-thumbnail-overlay-badge-view-model--bottom-end"}return y},function(){return g$B(U==null?void 0:U())},(n["yt-thumbnail-overlay-badge-view-model--clip"]=l.isClip,
n))},_.g(_.uI,{data:function(){return D().thumbnailBadges}},{thumbnailBadgeViewModel:function(y){return _.g(MH5,{data:y.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.tH8.idomCompat=!0;_.Tt(_.tH8,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.C$,thumbnailSize:_.C$,isClip:_.C$}});var XUk=_.w(function(l){var D=l.data;l=l.hidden;var U=_.dM(function(){return D().indicatorCount||0},void 0,"AbKnMc"),n={};
return _.g("yt-page-indicator-view-model",{class:_.DV("ytPageIndicatorViewModelHost",(n.ytPageIndicatorViewModelIndicatorHidden=function(){return!D().indicatorCount},n)),
hidden:l},_.g(_.wt,{each:function(){return Array(U())}},function(y,A){var C={};
return _.g("div",{class:_.DV("ytPageIndicatorViewModelIndicator",(C.ytPageIndicatorViewModelIndicatorSelected=function(){return D().selectedIndex===A()},C))})}))},"Va");
XUk.idomCompat=!0;_.Tt(XUk,"yt-page-indicator-view-model",{props:{data:_.C$,hidden:_.C$}});var UR=function(){var l=_.p.apply(this,arguments)||this;l.eventSink=function(){return l};
l.disableInteraction=!1;l.noRoundedCorners=!1;l.isPreviewLoading=!1;l.isOriginalAspectRatio=!1;l.computedObjectFit=!1;l.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return l};
_.Z(UR,_.p);_.W=UR.prototype;
_.W.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:_.q("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"}}};
_.W.onImageLoaded=function(){this.loaded=!0};
_.W.onImageUnloaded=function(){this.loaded=!1};
_.W.computeRichThumbnail=function(l,D,U,n){if(l&&D&&!n&&!_.q("disable_moving_thumbs_handling")&&!U)return D};
_.W.computeImageWidth=function(l,D){return D||9999};
_.W.computeIsOriginalAspectRatio=function(l){return l};
_.W.computeIsLive=function(l){if(l==null?0:l.badges)for(var D=0;D<l.badges.length;D++){var U=l.badges[D];if(U.metadataBadgeRenderer&&U.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(l==null?0:l.thumbnailOverlays)for(D=0;D<l.thumbnailOverlays.length;D++)if(U=l.thumbnailOverlays[D],U.thumbnailOverlayTimeStatusRenderer&&U.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.W.computeObjectFit=function(l,D){return D||(l?"CONTAIN":"")};
_.W.computeNavigationEndpoint=function(l,D,U){return l?D:U};
_.W.computeHasClip=function(l){l=_.B(l||[]);for(var D=l.next();!D.done;D=l.next())if(D.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.W.computeOverlayColor=function(l){var D;return(l==null?0:(D=l.darkColorPalette)==null?0:D.section2Color)?l.darkColorPalette.section2Color:l==null?void 0:l.sampledThumbnailColor};
_.QP.Object.defineProperties(UR.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.FcN(this.width)}}});
UR.prototype.onImageUnloaded=UR.prototype.onImageUnloaded;UR.prototype.onImageLoaded=UR.prototype.onImageLoaded;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],UR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(AF5),_.T("design:type",Object)],UR.prototype,"ytdThumbnailBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],UR.prototype,"componentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],UR.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],UR.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],UR.prototype,"circular",void 0);
_.E([_.K({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.T("design:type",Object)],UR.prototype,"richThumbnail",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.T("design:type",Boolean)],UR.prototype,"hasClip",void 0);_.E([_.K(),_.T("design:type",Object)],UR.prototype,"eventSink",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],UR.prototype,"queued",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],UR.prototype,"richGridThumbnail",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],UR.prototype,"useExpandableTooltip",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],UR.prototype,"useUntranslatedNavigationEndpoint",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],UR.prototype,"disableInteraction",void 0);
_.E([_.K({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.T("design:type",Object)],UR.prototype,"computedNavigationEndpoint",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],UR.prototype,"nowPlayingEqualizerOnly",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],UR.prototype,"hidePlaybackStatus",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],UR.prototype,"objectFit",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],UR.prototype,"noRoundedCorners",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],UR.prototype,"watchFeedThumbnail",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],UR.prototype,"isPreviewLoading",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.T("design:type",Object)],UR.prototype,"isOriginalAspectRatio",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.T("design:type",Object)],UR.prototype,"computedObjectFit",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.T("design:type",Boolean)],UR.prototype,"isLiveVideo",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],UR.prototype,"loaded",void 0);_.E([_.K({computed:"computeOverlayColor(data.thumbnail)"}),_.T("design:type",Object)],UR.prototype,"overlayColor",void 0);_.E([_.K(),_.T("design:type",Boolean)],UR.prototype,"minimizePipBreakages",void 0);_.E([_.K({selector:_.j4o}),_.T("design:type",Boolean)],UR.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.K(),_.T("design:type",Number)],UR.prototype,"width",void 0);
_.E([_.t("inlinePreviewIsEnabled"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],UR.prototype,"isPreviewDisabled",null);_.E([_.t("width"),_.T("design:type",String),_.T("design:paramtypes",[])],UR.prototype,"thumbnailSize",null);_.E([_.hj("image-loaded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],UR.prototype,"onImageLoaded",null);
_.E([_.hj("image-unloaded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],UR.prototype,"onImageUnloaded",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-thumbnail"})],UR);
var SuH=_.Ol()(UR,"ytd-thumbnail",function(){if(LY1===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);LY1=l}l=LY1;return l},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying minimizePipBreakages".split(" "),mode:2});var Qug=function(l){var D=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15110_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15110_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(U){kF7(D,U)};
this.onLockupMouseLeaveFn=function(U){U=U.relatedTarget;var n,y;((n=document.getElementsByTagName("ytd-video-preview"))==null?0:(y=n.item(0))==null?0:y.contains(U))||(D.terminateVideoPreview(),nK(D))};
this.onThumbnailMouseDownFn=function(){D.terminateVideoPreview();nK(D)};
this.onTouchStart=function(){D.JSC$15110_touched=!0};
this.mediaRenderer=l.mediaRenderer;this.thumbnailElement=l.thumbnailElement;this.lockupElement=l.lockupElement;this.videoPreviewOptsInput=l.videoPreviewOpts;dyr(this);yc(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)):
_.II(Error("Fh")):_.II(Error("Gh")):KYH(this)},f4=function(l){KYH(l);
var D;(D=l.lockupElement)==null||D.removeEventListener("mouseenter",l.onMouseMoveFn);var U;(U=l.lockupElement)==null||U.removeEventListener("mouseleave",l.onLockupMouseLeaveFn);var n;(n=l.lockupElement)==null||n.removeEventListener("touchstart",l.onTouchStart);var y;(y=l.thumbnailElement)==null||y.removeEventListener("mousedown",l.onThumbnailMouseDownFn);nK(l)},dyr=function(l){l.inlinePreviewIsEnabledForUser=_.EB().getState().ui.inlinePreviewIsEnabled;
l.unsubscribeFromInlinePreviewIsEnabled=_.fM(_.EB(),_.j4o,function(D){(l.inlinePreviewIsEnabledForUser=D)||nK(l)});
l.JSC$15110_unsubscribeFromInlinePreviewIsActive=_.fM(_.EB(),_.xOd,function(D){(l.inlinePreviewIsActive=D)||nK(l)})},KYH=function(l){l.unsubscribeFromInlinePreviewIsEnabled();
l.unsubscribeFromInlinePreviewIsEnabled=function(){};
l.JSC$15110_unsubscribeFromInlinePreviewIsActive();l.JSC$15110_unsubscribeFromInlinePreviewIsActive=function(){}},kF7=function(l,D){D.buttons>0||(D=_.RG("kevlar_lockup_hover_delay",-1),l.JSC$15110_touched&&D>=0?(_.Tn.cancelJob(l.videoPreviewJobId),l.videoPreviewJobId=_.Vu(_.Tn,function(){cGz(l)},D),l.JSC$15110_touched=!1):cGz(l))},uNN=function(l){l.videoPreviewJobId=_.Vu(_.Tn,function(){return _.P(function(D){return D.yield(pU_(l,{isAutoplay:!0}),0)})})},cGz=function(l){!l.previewTriggered&&yc(l)&&
(l.inlinePreviewIsActive&&l.terminateVideoPreview(),l.previewTriggered=!0,l.mediaRenderer.isInlinePreviewTriggered=!0,_.Tn.cancelJob(l.videoPreviewJobId),l.videoPreviewJobId=_.Vu(_.Tn,function(){return _.P(function(D){return D.yield(pU_(l),0)})}))},pU_=function(l,D){D=D===void 0?{}:D;
var U=D.isAutoplay===void 0?!1:D.isAutoplay;var n,y,A,C;return _.P(function(h){if(h.nextAddress==1){if(!yc(l))return h.return();n=l.getVideoPreviewOpts();if(!n)return h.return();U&&(n.isAutoplay=!0);return(A=(y=_.iu(l.mediaRenderer.hostElement,"yt-open-video-preview-action",[n]))&&y[0])?h.yield(y[0],3):h.jumpTo(2)}h.nextAddress!=2&&(A=h.yieldResult===1);if(A){var b=(C=l.mediaRenderer)==null?void 0:C.data;b&&(v$$(b)?delete b.inlinePlayerData:"inlinePlaybackEndpoint"in b&&delete b.inlinePlaybackEndpoint)}_.Kz(h)})};
Qug.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var l,D;if((D=(l=this.videoPreviewOptsInput)==null?void 0:l.videoPreviewData)!=null)l=D;else if(l=this.mediaRenderer.data)if(v$$(l))l={inlinePlaybackEndpoint:_.te(l.inlinePlayerData.onVisible),navigationEndpoint:_.te(l.onTap),thumbnail:"image"in l?l.image:l.thumbnail,thumbnailOverlays:void 0,accessibilityText:uKd(l)};else if("multipleInlinePlaybackEndpoint"in l){var U=_.M(_.M(l.multipleInlinePlaybackEndpoint,jxk),FRr);if(U!=
null&&U.playerDescriptors){D=[];U=_.B(U.playerDescriptors);for(var n=U.next();!n.done;n=U.next())n=n.value,D.push({inlinePlaybackEndpoint:n.inlinePlaybackEndpoint,navigationEndpoint:n.navigationEndpoint,thumbnail:n.thumbnail,thumbnailOverlays:n.thumbnailOverlays,accessibilityText:uKd(l)});l=D}else l=void 0}else l={inlinePlaybackEndpoint:l.inlinePlaybackEndpoint,navigationEndpoint:l.navigationEndpoint,thumbnail:l.thumbnail,thumbnailOverlays:l.thumbnailOverlays,accessibilityText:uKd(l)};else l=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:l,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var yc=function(l){var D;if(D=l.inlinePreviewIsEnabledForUser)D=(l=l.mediaRenderer.data)?"inlinePlaybackEndpoint"in l&&l.inlinePlaybackEndpoint||v$$(l)&&l.inlinePlayerData||"multipleInlinePlaybackEndpoint"in l&&l.multipleInlinePlaybackEndpoint?!0:!1:!1;return D};
Qug.prototype.terminateVideoPreview=function(){_.Vh(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var nK=function(l){_.Tn.cancelJob(l.videoPreviewJobId);l.inlinePreviewIsActive=!1;l.previewTriggered=!1;l.mediaRenderer.isInlinePreviewTriggered=!1};var xyg=_.wL(["#"]),Ag=function(){var l=_.p.apply(this,arguments)||this;l.isDisabled=!1;return l};
_.Z(Ag,_.p);_.W=Ag.prototype;
_.W.configureRendererStamper=function(){return{"data.menu":wg,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.W.attached=function(){this.updateInlinePreviewHoverListeners()};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.getMetadata=function(l){var D=[];if(l.metadataText&&Object.keys(l.metadataText).length>0){var U=this.ytRendererBehavior.getSimpleString(l.metadataText);l.upcomingEventData&&l.upcomingEventData.upcomingEventText&&(U=_.Lq(U,Number(l.upcomingEventData.startTime)));D.push(U)}else l.shortViewCountText&&D.push(this.ytRendererBehavior.getSimpleString(l.shortViewCountText)),l.publishedTimeText&&D.push(this.ytRendererBehavior.getSimpleString(l.publishedTimeText)),l.upcomingEventData&&l.upcomingEventData.upcomingEventText&&
(U=this.ytRendererBehavior.getSimpleString(l.upcomingEventData.upcomingEventText),D.push(_.Lq(U,Number(l.upcomingEventData.startTime))));return D};
_.W.calculateBylineText=function(l){return l.shortBylineText?l.shortBylineText:l.bylineText?l.bylineText:null};
_.W.calculateIsDisabled=function(l){return!!l.isDisabled};
_.W.computeHrefWithDefault=function(l){return this.ytComponentBehavior.computeHref_(l)||_.BEN(xyg)};
_.W.onDetailsTap=function(l){var D=this.data&&this.data.navigationEndpoint;D&&!_.$o(_.$f(l)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.q("kevlar_grid_video_renderer_killswitch")?_.O9(this.hostElement,"yt-navigate",{endpoint:D}):this.ytComponentBehavior.resolveCommand(D))};
_.W.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15117_inlinePreviewHoverListener=Sq({mediaRenderer:this,lockupElement:_.iJ(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.iJ(this.hostElement).querySelector("ytd-thumbnail")})};
_.W.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$15117_inlinePreviewHoverListener)==null||f4(l)};
_.W.computeThumbnailWidth=function(l,D){return D&&D>0?D:l?360:210};
_.W.computeNumBadgesInRow=function(l){var D;return((D=l.badges)==null?void 0:D.length)||0};
_.W.computeShowChannelThumbnail=function(l,D){var U;return D&&!!(l==null?0:(U=l.channelThumbnailSupportedRenderers)==null?0:U.channelThumbnailWithLinkRenderer)};
_.QP.Object.defineProperties(Ag.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$15117_inlinePreviewHoverListener)==null?0:yc(l))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
Ag.prototype.dataChanged=Ag.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Ag.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],Ag.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.m(_.hY),_.T("design:type",Object)],Ag.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Ag.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ag.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],Ag.prototype,"noEndpoints",void 0);_.E([_.K({computed:"calculateBylineText(data)"}),_.T("design:type",Object)],Ag.prototype,"bylineText",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],Ag.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],Ag.prototype,"isDownloading",void 0);_.E([_.K({reflectToAttribute:!0,value:0}),_.T("design:type",Number)],Ag.prototype,"width",void 0);_.E([_.K({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.T("design:type",Object)],Ag.prototype,"isDisabled",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ag.prototype,"dataChanged",null);_.E([_.t("lockupIsHovered"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ag.prototype,"isHovered",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ag.prototype,"hasAttributedBylineText",null);
_.E([_.t("bylineText","hasAttributedBylineText"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ag.prototype,"showBylineText",null);_.E([_.x({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Ag);
_.r(Ag,"ytd-grid-video-renderer",function(){if(WY8!==void 0)return WY8;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return WY8=l},{mode:_.Vj("kevlar_poly_si_batch_j047")?1:2});var jyv;var Ww=function(){var l=_.p.apply(this,arguments)||this;l.roundedContainer=!0;l.skipRoundingTop=!1;l.disableTopPadding=!1;l.amsterdamEnabled=_.q("enable_desktop_amsterdam_info_panels");l.extractOverlay=!1;return l};
_.Z(Ww,_.p);Ww.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ww.prototype.onClick=function(l){var D,U=(D=this.data)==null?void 0:D.sourceEndpoint;!_.$o(_.$f(l),this.hostElement,["A".toString()])&&U&&_.O9(this.hostElement,"yt-navigate",{endpoint:U})};
_.QP.Object.defineProperties(Ww.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 l;return!((l=this.data)==null||!l.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=(l=this.data)==null?void 0:l.paragraphMaxLines)!=null?D:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ww.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ww.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ww.prototype,"showVerticalDividers",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ww.prototype,"roundedContainer",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ww.prototype,"skipRoundingTop",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ww.prototype,"disableTopPadding",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Ww.prototype,"amsterdamEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ww.prototype,"extractOverlay",void 0);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ww.prototype,"showMetadataAtTop",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ww.prototype,"showMetadataBelowTitle",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.menu"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ww.prototype,"hasMenu",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data.truncateParagraphs"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ww.prototype,"truncateParagraphs",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.paragraphMaxLines"),_.T("design:type",Number),_.T("design:paramtypes",[])],Ww.prototype,"paragraphMaxLines",null);
_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.background"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ww.prototype,"background",null);_.E([_.x({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Ww);
_.r(Ww,"ytd-info-panel-content-renderer",function(){if(jyv!==void 0)return jyv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return jyv=l},{mode:_.Vj("kevlar_poly_si_batch_j076")?1:2});var FYg;var oJh;var wUz;var rG1;var Bw=function(){return _.p.apply(this,arguments)||this};
_.Z(Bw,_.p);Bw.prototype.computeStyle=function(l){return l};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Bw.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.T("design:type",String)],Bw.prototype,"style_",void 0);_.E([_.S0({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Bw);
_.r(Bw,"yt-channel-thumbnail-with-link-renderer",function(){if(rG1===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;wUz===void 0&&(wUz=document.createElement("template"));var n=wUz;U.call(D,n.content.cloneNode(!0),l.content.firstChild);rG1=l}l=rG1;return l},{mode:2});var CK=function(){return _.p.apply(this,arguments)||this};
_.Z(CK,_.p);CK.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"}}}};
CK.prototype.computeTitleStyle=function(l){return l||null};
CK.prototype.computeAvatarStyle=function(l){return l||null};
CK.prototype.computeShowNavigationButton=function(l,D){return!(l==null||!l.navigationButton||D)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],CK.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.T("design:type",String)],CK.prototype,"titleStyle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.T("design:type",String)],CK.prototype,"avatarStyle",void 0);_.E([_.K(),_.T("design:type",Boolean)],CK.prototype,"hideNavigationButton",void 0);_.E([_.x({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],CK);
_.r(CK,"ytd-rich-list-header-renderer",function(){if(oJh!==void 0)return oJh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return oJh=l},{mode:_.Vj("kevlar_poly_si_batch_j058")?1:2});var hg=function(){return _.p.apply(this,arguments)||this};
_.Z(hg,_.p);hg.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hg.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],hg.prototype,"isSearch",void 0);_.E([_.x({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],hg);
_.r(hg,"ytd-preview-card-renderer",function(){if(FYg!==void 0)return FYg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return FYg=l},{mode:1});var zC7;var Pw=function(){return _.p.apply(this,arguments)||this};
_.Z(Pw,_.p);Pw.prototype.configureRendererStamper=function(){return{"data.menu":wg}};
Pw.prototype.dataChanged=function(){var l=this.get("colorExtractionPalette.section1Color",this.data);l=_.an(l);_.Wg(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":l})};
Pw.prototype.computeCardStyle=function(l){return this.get("style.value",l)||null};
Pw.prototype.dataChanged=Pw.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],Pw.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Pw.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.T("design:type",String)],Pw.prototype,"cardStyle",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Pw.prototype,"dataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Pw);
_.r(Pw,"ytd-compact-channel-recommendation-card-renderer",function(){if(zC7!==void 0)return zC7;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return zC7=l},{mode:1});var fg5;var $yk;var bX=function(){var l=_.p.apply(this,arguments)||this;l.alignAuto=!1;l.collapsed=!0;l.isToggled=!1;l.alwaysCollapsed=!1;l.canToggle=!0;l.collapsedHeight=80;l.disableToggle=!1;l.alwaysToggleable=!1;l.reversed=!1;l.shouldUseNumberOfLines=!1;l.recomputeOnResize=!1;l.canToggleJobId=0;l.lastReversed=!1;return l};
_.Z(bX,_.p);_.W=bX.prototype;_.W.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.W.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.W.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var l=_.iJ(this.hostElement),D=l.childNodes,U=document.createDocumentFragment(),n=l.childNodes.length-1;n>=0;n--)_.iJ(U).appendChild(D[n]);_.q("enable_shadydom_free_scoped_node_methods")?_.lJ(this.hostElement).appendChild(U):l.appendChild(U)}};
_.W.ready=function(){var l=this;_.j0(function(){l.initChildrenObserver()},1)};
_.W.attached=function(){var l;(l=this.resizeObserver)==null||l.observe(this.content)};
_.W.detached=function(){this.detachObserver()};
_.W.toggle=function(l,D){this.canToggle&&(this.isToggled=D,_.O9(this.hostElement,"yt-refit"),l&&l.stopPropagation())};
_.W.reset=function(){this.childrenChanged()};
_.W.onIronResize=function(){this.recomputeOnResize&&!_.q("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.W.computeIsMoreVisible=function(l,D){return l&&!D};
_.W.computeShouldUseNumberOfLines=function(l){try{return!!l&&window.CSS.supports("-webkit-line-clamp","1")}catch(D){}return!1};
_.W.computeIsLessVisible=function(l,D){return l&&D};
_.W.observeCollapsedHeightAndMaxLines=function(){var l=this.collapsedHeight,D=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Wg(this.hostElement,{"--ytd-expander-max-lines":""+D,"--ytd-expander-collapsed-height":""}):_.Wg(this.hostElement,{"--ytd-expander-collapsed-height":l+"px","--ytd-expander-max-lines":""})};
_.W.handleMoreTap=function(l){this.disableToggle||(_.O9(this.hostElement,"yt-expander-more-tapped"),this.toggle(l,!0))};
_.W.handleLessTap=function(l){_.O9(this.hostElement,"yt-expander-less-tapped");this.toggle(l,!1)};
_.W.initChildrenObserver=function(){var l=this;this.observer=new MutationObserver(function(){l.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.q("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.A1(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var D;(D=l.resizeThrottle)==null||D.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.W.childrenChanged=function(){var l=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){OV(function(){l.canToggleJobId=0;l.calculateCanCollapse()})}))};
_.W.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};
_.W.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.W.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("collapsed-changed",this.collapsed))};
_.W.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("is-toggled-changed",this.isToggled))};
_.W.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("can-toggle-changed",this.canToggle))};
_.QP.Object.defineProperties(bX.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
bX.prototype.canToggleChangedForBinding=bX.prototype.canToggleChangedForBinding;bX.prototype.isToggledChangedForBinding=bX.prototype.isToggledChangedForBinding;bX.prototype.collapsedChangedForBinding=bX.prototype.collapsedChangedForBinding;bX.prototype.observeCollapsedHeightAndMaxLines=bX.prototype.observeCollapsedHeightAndMaxLines;bX.prototype.onIronResize=bX.prototype.onIronResize;bX.prototype.reversedChanged=bX.prototype.reversedChanged;bX.prototype.toggledChanged=bX.prototype.toggledChanged;
bX.prototype.alwaysToggleableChanged=bX.prototype.alwaysToggleableChanged;_.E([_.m(_.$s),_.T("design:type",Object)],bX.prototype,"ironResizableBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],bX.prototype,"alignAuto",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],bX.prototype,"collapsed",void 0);_.E([_.K(),_.T("design:type",Object)],bX.prototype,"isToggled",void 0);_.E([_.K(),_.T("design:type",Object)],bX.prototype,"alwaysCollapsed",void 0);
_.E([_.K(),_.T("design:type",Object)],bX.prototype,"canToggle",void 0);_.E([_.K(),_.T("design:type",Object)],bX.prototype,"collapsedHeight",void 0);_.E([_.K(),_.T("design:type",Object)],bX.prototype,"disableToggle",void 0);_.E([_.K(),_.T("design:type",Object)],bX.prototype,"alwaysToggleable",void 0);_.E([_.K(),_.T("design:type",Object)],bX.prototype,"reversed",void 0);_.E([_.K(),_.T("design:type",Number)],bX.prototype,"maxNumberOfLines",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.T("design:type",Object)],bX.prototype,"shouldUseNumberOfLines",void 0);_.E([_.K(),_.T("design:type",Object)],bX.prototype,"recomputeOnResize",void 0);_.E([_.gP("#content"),_.T("design:type",HTMLDivElement)],bX.prototype,"content",void 0);_.E([_.GY("alwaysToggleable"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bX.prototype,"alwaysToggleableChanged",null);
_.E([_.GY("isToggled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bX.prototype,"toggledChanged",null);_.E([_.t("canToggleJobId"),_.T("design:type",Object),_.T("design:paramtypes",[])],bX.prototype,"isResetting",null);_.E([_.Pg("reversed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bX.prototype,"reversedChanged",null);
_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bX.prototype,"onIronResize",null);_.E([_.Pg("maxNumberOfLines","collapsedHeight"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bX.prototype,"observeCollapsedHeightAndMaxLines",null);_.E([_.Pg("collapsed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bX.prototype,"collapsedChangedForBinding",null);
_.E([_.Pg("isToggled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bX.prototype,"isToggledChangedForBinding",null);_.E([_.Pg("canToggle"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bX.prototype,"canToggleChangedForBinding",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-expander"})],bX);
_.r(bX,"ytd-expander",function(){if($yk!==void 0)return $yk;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return $yk=l},{mode:1});var gR=function(){return _.p.apply(this,arguments)||this};
_.Z(gR,_.p);gR.prototype.computeIsCarousel=function(l){return!!l.isCarousel};
gR.prototype.observeLightsourcePalette=function(){var l,D=(l=this.data)==null?void 0:l.vibrantsourceColorPaletteData;D&&_.qh(this.hostElement,D)};
gR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
gR.prototype.observeLightsourcePalette=gR.prototype.observeLightsourcePalette;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],gR.prototype,"data",void 0);_.E([_.K({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],gR.prototype,"isCarousel",void 0);
_.E([_.Pg("data.vibrantsourceColorPaletteData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gR.prototype,"observeLightsourcePalette",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],gR);
_.r(gR,"ytd-media-upsell-renderer",function(){if(fg5!==void 0)return fg5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return fg5=l},{mode:2});var N5g;var Qc=function(){var l=_.p.apply(this,arguments)||this;l.JSC$15144_playerEvents=new Map;l.listeningToPlayer=!1;l.startX=0;l.active=!1;l.shouldShowButtons=_.q("web_buttons_hidden_killswitch");l.isHighlighted=!1;l.useHighlightStyling=_.q("web_enable_deeper_metadata_highlight_styling");l.enableProblemWalkthrough=_.q("problem_walkthrough_sd");return l};
_.Z(Qc,_.p);_.W=Qc.prototype;
_.W.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}}}}}};
_.W.created=function(){this.JSC$15144_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.W.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.CY(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.CY(this,this.onActiveUpdate))};
_.W.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.CY(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.CY(this,this.onActiveUpdate))};
_.W.onDataChanged=function(){this.removePlayerListeners()};
_.W.onColorPaletteChange=function(){var l={},D;if(_.pU()==="USER_INTERFACE_THEME_DARK"&&((D=this.data)==null?0:D.darkColorPalette)){var U=this.data.darkColorPalette;l["--ytd-macro-markers-list-item-background-color"]=_.tu(this.get("section2Color",U))}else{var n;_.pU()==="USER_INTERFACE_THEME_LIGHT"&&((n=this.data)==null?0:n.lightColorPalette)&&(U=this.data.lightColorPalette,l["--ytd-macro-markers-list-item-background-color"]=_.tu(this.get("section3Color",U)))}U?(l["--ytd-macro-markers-list-item-title-color"]=
_.tu(this.get("primaryTitleColor",U)),l["--ytd-macro-markers-list-item-secondary-color"]=_.tu(this.get("secondaryTitleColor",U)),l["--ytd-macro-markers-list-item-timestamp-background-color"]=_.tu(this.get("section1Color",U)),this.customButtonProperties={customColors:{color:_.tu(this.get("primaryTitleColor",U))}},this.useColorSampling=!0):(l["--ytd-macro-markers-list-item-background-color"]="initial",l["--ytd-macro-markers-list-item-title-color"]="initial",l["--ytd-macro-markers-list-item-secondary-color"]=
"initial",l["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Wg(this.hostElement,l)};
_.W.onEndpointMouseDown=function(l){this.startX=l.clientX};
_.W.onEndpointClick=function(l){var D=this,U,n,y;return _.P(function(A){if(A.nextAddress==1){if(D.startX!==l.clientX)return l.preventDefault(),A.return();D.data&&D.ytRendererBehavior.logExplicitClick(D.data);if(!D.seekWithAnimationOnClick)return A.jumpTo(0);if(l.button!==0||l.shiftKey||l.altKey||l.metaKey||l.ctrlKey||_.$o(_.$f(l),D.hostElement,["BUTTON".toString()]))return A.return();l.stopPropagation();l.preventDefault();return D.data?A.yield(_.IL().getPlayerPromise(),3):A.return()}U=A.yieldResult;
y=(n=_.M(D.data.onTap,_.za))==null?void 0:n.startTimeSeconds;y!==void 0&&U.seekToTimeWithAnimation(y*1E3,_.Nl(D.data.title));_.Kz(A)})};
_.W.computeLayout=function(l){return l};
_.W.computeIsHighlighted=function(l){return!!l};
_.W.computeCarouselType=function(l){return l};
_.W.hideCarousel=function(l){return this.hideThumbnail(l)};
_.W.hideThumbnail=function(l){return this.enableProblemWalkthrough&&l!==null&&l==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.W.onRepeatButtonToggle=function(l){var D=this;l.detail.toggled&&_.IL().getPlayerPromise().then(function(U){D.ytPlayerListenerBehavior.listenToPlayerEvents(U,D.JSC$15144_playerEvents);D.listeningToPlayer=!0})};
_.W.onLoopRangeChange=function(l){var D=_.iJ(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(D){var U=D.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",D.polymerController.data);if(U){var n=Number(U.endTimeMs);if(Number(U.startTimeMs)!==(l==null?void 0:l.startTimeMs)||n!==(l==null?void 0:l.endTimeMs))D.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.W.removePlayerListeners=function(){var l=this;this.listeningToPlayer&&_.IL().getPlayerPromise().then(function(D){l.ytPlayerListenerBehavior.unlistenFromPlayerEvents(D,l.JSC$15144_playerEvents);l.listeningToPlayer=!1})};
_.W.onActiveUpdate=function(l){this.active=l.detail.active};
Qc.prototype.onColorPaletteChange=Qc.prototype.onColorPaletteChange;Qc.prototype.onDataChanged=Qc.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],Qc.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],Qc.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],Qc.prototype,"useCustomColors",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Qc.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Qc.prototype,"shouldShowButtons",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.T("design:type",String)],Qc.prototype,"layout",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.T("design:type",Object)],Qc.prototype,"isHighlighted",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Qc.prototype,"useHighlightStyling",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Qc.prototype,"enableProblemWalkthrough",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.T("design:type",String)],Qc.prototype,"carouselType",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Qc.prototype,"useColorSampling",void 0);_.E([_.K(),_.T("design:type",Boolean)],Qc.prototype,"seekWithAnimationOnClick",void 0);_.E([_.K(),_.T("design:type",Object)],Qc.prototype,"customButtonProperties",void 0);
_.E([_.gP("#repeat-button"),_.T("design:type",HTMLElement)],Qc.prototype,"repeatButton",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Qc.prototype,"onDataChanged",null);_.E([_.Pg("data.lightColorPalette","data.darkColorPalette"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Qc.prototype,"onColorPaletteChange",null);_.E([_.x({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Qc);
_.r(Qc,"ytd-macro-markers-list-item-renderer",function(){if(N5g!==void 0)return N5g;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return N5g=l},{mode:1});var syy;var EJz;var Gk=function(){return _.p.apply(this,arguments)||this};
_.Z(Gk,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Gk.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Gk);
_.r(Gk,"ytd-title-and-button-list-header-renderer",function(){if(EJz!==void 0)return EJz;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return EJz=l},{mode:1});var T5_;var Ig7=new _.A7("BUTTON_RENDERER_TOKEN");_.Jg=_.w(function(l){var D=_.Jc().resolve(Ig7);return _.g(D,Object.assign({},l,{overrides:l.buttonOverrides}))},"Wa");var Hlg=_.w(function(l){var D=l.data,U=_.NQ(l.useSquareAspectRatio,!1);return _.g("dismissed-mini-game-card-view-model",null,_.g(_.v,{cond:function(){var n,y;return(n=D().responseText)==null?void 0:(y=n.runs)==null?void 0:y.length},
then:function(){var n={};return _.g("div",{class:_.DV("yt-mini-game-card-view-model__dismissed-card",(n["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!U()},n["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.q("web_game_card_force_2_by_3")},n["yt-mini-game-card-view-model--dismissed-square-card"]=U,n))},_.g("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.g(_.v,{cond:function(){return D().responseText.runs[0].text},
then:function(y){return _.g("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:y},y)}}),_.g(_.uI,{data:function(){return D().buttons}},{buttonRenderer:_.Jg,
buttonViewModel:_.t9})))}}))},"Xa");var Yu8=_.w(function(l){var D=l.data;return _.g("br-nz-badge-shape",{class:_.DV(function(){return Gbd(D().brNzRatingBadgeType)}),
role:function(){return D().accessibilityText?"img":void 0},
"aria-label":function(){return D().accessibilityText}},function(){var U;
return(U=D())==null?void 0:U.text})},"Ya");_.LK=_.w(function(l){var D=function(){var U=l.data(),n,y,A,C;if(U){var h=!((n=l.workaroundShortsIsThumbnailBadge)==null||!n.call(l));n=(y=l.modern)==null?void 0:y.call(l);y=(A=l.numBadgesInRow)==null?void 0:A.call(l);A=(C=l.clipTextOverflow)==null?void 0:C.call(l);var b;a:switch(U.badgeStyle){case "BADGE_OVERLAY":C=!0;break a;default:C=!1}U={type:h?17:Jo9(U.badgeStyle),brNzRatingBadgeType:LDo(U.badgeStyle),text:U.badgeText,icon:U.iconName,isOverlay:C,modern:n||_.q("web_modern_badge_view_model"),accessibilityText:U.accessibilityLabel||
((b=_.M(U.rendererContext,_.vF))==null?void 0:b.label),numBadgesInRow:y,clipTextOverflow:A}}else U=void 0;return U};
return _.g("yt-badge-view-model",{class:_.DV("ytBadgeViewModelHost",l.class)},_.g(_.rt,null,_.g(_.F2,{when:function(){var U;return!((U=D())==null||!U.brNzRatingBadgeType)}},function(){return _.g(Yu8,{data:function(){return D()}})}),_.g(_.F2,{when:function(){return!!D()&&!D().brNzRatingBadgeType}},function(){return _.g(_.AQ,{data:function(){return D()}})})))},"Za");
_.LK.idomCompat=!0;var yDm=_.w(function(l){l=_.sl(l,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var D=l.data,U=l.useFullWidth,n=l.isDesktopWeb,y=l.addSearchResultTopMargin,A=function(){return D().layout},C=function(){return D().title},h=function(){return D().metadataText?D().metadataText:D().genre},b=function(){return D().channelName},u=function(){return D().image},Q=function(){return D().colorPalette},G=function(){return D().actionButton},J=function(){return D().overflowButton},
L=function(){return D().avatar},R=function(){return D().ageRating},a=function(){var N={};
N=_.DV("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(N["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return n()},N));
return _.g("div",{class:N},_.g(Olz,{imageData:u,colorPalette:Q}),_.g(VHH,{onTap:function(){return D().onTap},
imageData:u,accessibilityText:function(){return D().accessibilityText},
overlayBadgeText:function(){return D().overlayBadgeText},
iconName:function(){return D().iconName},
unplayableInlinePlaybackIconName:function(){return D().unplayableInlinePlaybackIconName},
isDesktopWeb:n}),_.g(_.v,{cond:function(){return!n()},
then:function(){return _.g(_.GZ,null,_.g(iQ1,{layout:A,colorPalette:Q,isDesktopWeb:n,overflowButton:J,avatar:L,onTap:function(){return D().onTap},
genre:h,title:C,channelName:b}),_.g(lG7,{actionButton:G}))}}))},S=function(){var N={};
N=_.DV((N["yt-mini-game-card-view-model--search-result-desktop"]=function(){return n()},N["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!n()},N["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return y()},N));
return _.g("div",{class:N},a(),_.g(D5h,{description:function(){return D().description},
isDesktopWeb:n,title:C,genre:h,onTap:function(){return D().onTap},
actionButton:G,overflowButton:J,avatar:L,channelName:b}))},d=function(){var N={};
N=_.DV("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(N["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return n()},N["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return n()&&D().width===135},N["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return n()},N["yt-mini-game-card-view-model--big-metadata-font"]=function(){return D().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},N["yt-mini-game-card-view-model--use-full-width"]=
function(){return U()},N["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.q("web_game_card_force_2_by_3")},N));
return _.g("div",{class:N},_.g(U55,{colorPalette:Q,isDesktopWeb:n,onTap:function(){return D().onTap},
accessibilityText:function(){return D().accessibilityText},
overlayBadgeText:function(){return D().overlayBadgeText},
iconName:function(){return D().iconName},
unplayableInlinePlaybackIconName:function(){return D().unplayableInlinePlaybackIconName},
actionButton:G,imageData:u}),_.g(iQ1,{layout:A,colorPalette:Q,isDesktopWeb:n,overflowButton:J,avatar:L,onTap:function(){return D().onTap},
genre:h,title:C,channelName:b}),_.g(_.v,{cond:R,then:function(z){return _.g(nD_,{ageRating:z})}}))},c=function(){var N={};
N=_.DV("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(N["yt-mini-game-card-view-model--square-card-desktop"]=function(){return n()},N["yt-mini-game-card-view-model--use-full-width"]=function(){return U()},N));
return _.g("div",{class:N},_.g(VHH,{onTap:function(){return D().onTap},
imageData:u,accessibilityText:function(){return D().accessibilityText},
overlayBadgeText:function(){return D().overlayBadgeText},
iconName:function(){return D().iconName},
unplayableInlinePlaybackIconName:function(){return D().unplayableInlinePlaybackIconName},
isDesktopWeb:n}),_.g(iQ1,{layout:A,colorPalette:Q,isDesktopWeb:n,overflowButton:J,avatar:L,onTap:function(){return D().onTap},
genre:h,title:C,channelName:b}),_.g(_.v,{cond:R,then:function(z){return _.g(nD_,{ageRating:z})}}))};
return _.g("mini-game-card-view-model",{class:l.className},_.g(_.rt,null,_.g(_.F2,{when:function(){return A()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return d()}),_.g(_.F2,{when:function(){return A()==="MINI_APP_LAYOUT_SQUARE"}},function(){return c()}),_.g(_.F2,{when:function(){return A()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return S()})))},"$a");
yDm.idomCompat=!0;var lG7=_.w(function(l){var D=_.NQ(l.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.g(_.uI,{data:l.actionButton},{buttonViewModel:function(U){return _.g("div",{class:D},_.g(_.t9,{data:U.data}))}})},"ab"),VHH=_.w(function(l){var D=l.onTap;
var U=l.imageData;var n=l.accessibilityText;var y=l.overlayBadgeText;var A=l.iconName;var C=l.unplayableInlinePlaybackIconName;l=l.isDesktopWeb;return _.g(_.qO,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:D},_.g(_.rh,{data:U,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(n==null?void 0:n())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.g(ADg,{overlayBadgeText:y,iconName:A,unplayableInlinePlaybackIconName:C,isDesktopWeb:l}))},"bb"),ADg=_.w(function(l){var D=l.overlayBadgeText;
var U=l.iconName;var n=l.unplayableInlinePlaybackIconName;var y=l.isDesktopWeb;return _.g("div",{class:"yt-mini-game-card-view-model__badge-container"},_.g(_.v,{cond:U,then:function(A){return _.g("div",{class:"yt-mini-game-card-view-model__badge"},_.g("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.g(_.C0,{icon:A,className:"yt-mini-game-card-view-model__icon",size:12}),_.g("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},D)))}}),_.g(_.v,{cond:function(){return!U()&&
D()},
then:function(){return _.g("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},D)}}),_.g(_.v,{cond:function(){return n()&&y()},
then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.g(_.C0,{icon:n,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),Olz=_.w(function(l){var D=l.colorPalette;
var U=l.imageData;var n=function(){return D().vibrantColorPalette?D().vibrantColorPalette.section2Color:D().sectionTwoColor};
return _.g(_.GZ,null,_.g("div",{class:"yt-mini-game-card-view-model__background-base",style:_.BK({"background-color":function(){return XP(n(),"1")}})}),_.g("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.BK({"background-image":function(){return"url("+U().sources[0].url+")"}})}),_.g("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.BK({background:function(){return"linear-gradient(180deg,\n    "+XP(n(),".8")+" 0%,\n    "+XP(n(),".4")+" 25%,\n    "+XP(D().vibrantColorPalette?D().vibrantColorPalette.section4Color:D().sectionFourColor,".8")+" 100%)"}})}))},"db"),iQ1=_.w(function(l){var D=l.layout;
var U=l.colorPalette;var n=l.overflowButton;var y=l.avatar;var A=l.onTap;var C=l.title;var h=l.channelName;var b=l.genre;var u=function(){var Q;return D()!=="MINI_APP_LAYOUT_SQUARE"&&((Q=U())==null?0:Q.textPrimaryColor)?"color: "+XP(U().textPrimaryColor,".7"):""};
return _.g("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.g(_.v,{cond:y,then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__avatar"},_.g(_.uI,{data:y},{avatarViewModel:_.iX}))}}),_.g(_.qO,{command:A,
className:"yt-mini-game-card-view-model__metadata-details"},_.g("h3",{class:"yt-mini-game-card-view-model__title",title:C},C),_.g(_.v,{cond:y,then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.g("span",{class:"yt-mini-game-card-view-model__genre",title:h,style:u},h),_.g("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:u},b))},
else:function(){return _.g("span",{class:"yt-mini-game-card-view-model__genre",title:b},b)}})),_.g("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.g(_.uI,{data:n},{buttonViewModel:function(Q){var G=Q.data;
return _.g(_.t9,{data:function(){return Object.assign({},G(),{customFontColor:D()==="MINI_APP_LAYOUT_SINGLETON"?G().customFontColor:void 0})}})}})))},"eb"),U55=_.w(function(l){var D=l.colorPalette;
var U=l.isDesktopWeb;var n=l.onTap;var y=l.accessibilityText;var A=l.overlayBadgeText;var C=l.iconName;var h=l.unplayableInlinePlaybackIconName;var b=l.actionButton;l=l.imageData;return _.g("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.g(Olz,{imageData:l,colorPalette:D}),_.g(VHH,{onTap:n,imageData:l,accessibilityText:y,overlayBadgeText:A,iconName:C,unplayableInlinePlaybackIconName:h,isDesktopWeb:U}),_.g(_.v,{cond:function(){return b==null?void 0:b()},
then:function(){return _.g(lG7,{actionButton:b})}}))},"fb"),D5h=_.w(function(l){var D=l.description;
var U=l.isDesktopWeb;var n=l.title;var y=l.genre;var A=l.onTap;var C=l.actionButton;var h=l.overflowButton;var b=l.avatar;l=l.channelName;var u={};u=_.DV("yt-mini-game-card-view-model--search-result-metadata-wrapper",(u["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=U,u["yt-mini-game-card-view-model--show-unplayable-on-hover"]=U,u["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!U()},u));
var Q={};Q=_.DV("yt-mini-game-card-view-model__search-result-info-row",(Q["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!U()},Q));
return _.g("div",{class:u},_.g("div",{class:Q},_.g(_.qO,{command:A,className:"yt-mini-game-card-view-model__metadata-details"},_.g("h3",{class:"yt-mini-game-card-view-model__title",title:n},n),_.g("span",{class:"yt-mini-game-card-view-model__genre",title:y},y)),_.g(lG7,{actionButton:C,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.g("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.g(_.uI,{data:h},{buttonViewModel:_.t9}))),_.g("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.g("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.g("div",{class:"yt-mini-game-card-view-model__avatar"},_.g(_.uI,{data:b},{avatarViewModel:function(G){var J=G.data;return _.g(_.iX,{data:function(){return Object.assign({},J(),{avatarImageSize:U()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.g(_.qO,{command:A,
className:"yt-mini-game-card-view-model__description"},_.g("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},l)),_.g(_.qO,{command:A,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.g("div",null)))),_.g(_.v,{cond:U,then:function(){return _.g(_.qO,{command:A,className:"yt-mini-game-card-view-model__description"},D)}}))},"gb"),nD_=_.w(function(l){var D=l.ageRating;
return _.g("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.g(_.rh,{data:function(){return{sources:[{url:D().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.g(_.LK,{data:function(){return{badgeText:D().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.Tt(yDm,"mini-game-card-view-model",{props:{data:_.C$,className:_.C$,useFullWidth:_.C$,isDesktopWeb:_.C$,addSearchResultTopMargin:_.C$}});_.Tt(Hlg,"dismissed-mini-game-card-view-model",{props:{data:_.C$,useSquareAspectRatio:_.C$}});var qY=function(){var l=_.p.apply(this,arguments)||this;l.isSearch=!1;l.isRichGrid=!1;return l};
_.Z(qY,_.p);_.W=qY.prototype;_.W.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.W.dismissibleItemOnYtServiceRequestSent=function(l,D){D.actions&&this.dismissibleItemProcessActions(l,D.actions)};
_.W.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.W.dataChanged=function(){this.dismissibleItemReset()};
_.W.dismissibleItemProcessActions=function(l,D){for(var U=0;U<D.length;U++){var n=D[U];_.M(n,_.jv)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.M(n,_.jv)),l.stopPropagation())}};
_.W.dismissibleItemHandleReplaceEnclosingAction=function(l){this.dismissedRenderer=l.item;this.isDismissed=!0};
_.QP.Object.defineProperties(qY.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var l;return!!this.data&&!((l=this.dismissedRenderer)==null?0:l.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.dismissedRenderer)==null||!l.notificationMultiActionRenderer)}}});
qY.prototype.dataChanged=qY.prototype.dataChanged;qY.prototype.dismissibleItemOnRequestSent=qY.prototype.dismissibleItemOnRequestSent;qY.prototype.dismissibleItemOnYtServiceRequestSent=qY.prototype.dismissibleItemOnYtServiceRequestSent;_.E([_.K(),_.T("design:type",Object)],qY.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],qY.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],qY.prototype,"isDismissed",void 0);
_.E([_.K(),_.T("design:type",Object)],qY.prototype,"dismissedRenderer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],qY.prototype,"isRichGrid",void 0);_.E([_.t("data.layout"),_.T("design:type",Object),_.T("design:paramtypes",[])],qY.prototype,"useSquareAspectRatio",null);_.E([_.t("data","dismissedRenderer"),_.T("design:type",Object),_.T("design:paramtypes",[])],qY.prototype,"showCard",null);
_.E([_.t("data","dismissedRenderer"),_.T("design:type",Object),_.T("design:paramtypes",[])],qY.prototype,"showDismissed",null);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],qY.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.E([_.hj("yt-service-request-sent-button-renderer"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],qY.prototype,"dismissibleItemOnRequestSent",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],qY.prototype,"dataChanged",null);_.E([_.S0({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],qY);
_.r(qY,"ytd-mini-game-card-view-model",function(){if(T5_!==void 0)return T5_;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return T5_=l},{mode:_.Vj("kevlar_poly_si_batch_j081")?1:2});var WAv;var Bom;var MY=function(){return _.Gs.apply(this,arguments)||this};
_.Z(MY,_.Gs);MY.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
MY.prototype.getContinuationUrl=function(l){var D={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(D.itct=this.data.clickTrackingParams);return _.hc(l,D)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],MY.prototype,"data",void 0);_.E([_.S0({is:"yt-reload-continuation",noInjection:!0})],MY);var CF5;var hTk;var R5=function(){var l=_.p.apply(this,arguments)||this;l.notificationData={};return l};
_.Z(R5,_.p);_.W=R5.prototype;_.W.isMenuExpanded=function(l){return l&&l.length<=1?"undefined":"false"};
_.W.dataChanged_=function(){this.selected=void 0;var l=this.computeSelectedIndex_(this.data);l>=0&&(this.selected=l);l=this.data&&this.data.length>1;_.nY(this.hostElement,"has-items",l);_.iJ(this.hostElement).querySelector("#label").tabIndex=l?0:-1};
_.W.onDropdownOpen=function(){var l=_.t6();if(this.parentTrackingParams&&this.data){var D=_.v9(this.parentTrackingParams);this.data.forEach(function(U){l&&D&&U.trackingParams&&(U=_.v9(U.trackingParams),_.jz(l,D,U),_.wj(l,[U]))})}else this.parentTrackingParams||_.II(new _.rc("No parent tracking params passed in for yt-dropdown-menu."))};
_.W.hasNotification=function(l){var D;if(l.targetId&&((D=this.notificationData)==null?0:D.targetId)){var U;return l.targetId===((U=this.notificationData)==null?void 0:U.targetId)}};
_.W.computeSelectedIndex_=function(l){if(l)for(var D=0,U=l.length;D<U;D++)if(l[D].selected)return D;return-1};
_.W.computeLabel_=function(l){return this.data&&l!=void 0?this.data[l].title:""};
_.W.computeShowIcon_=function(l,D){return!D&&!!l};
_.W.computeVerticalOffset_=function(l){return l?36:0};
_.W.computeEndpoint_=function(l){return l.endpoint||l.navigationEndpoint};
_.W.onLabelClick_=function(l){this.data&&this.data.length<=1?l.stopPropagation():this.menuExpanded="true"};
_.W.onIronActivate_=function(l){l=l.detail.item;var D=_.iJ(this.hostElement).querySelector("#repeat").itemForElement(l);if(D&&D.trackingParams){var U=_.t6(),n=_.v9(D.trackingParams);U&&_.zo(U,n)}if(D&&D.serviceEndpoint)_.q("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(D.serviceEndpoint):_.lu(this.hostElement,[D.serviceEndpoint]),_.O9(this.hostElement,"yt-playlist-reloading");else a:{if((D=l.querySelector("yt-supported-renderers"))&&
(D=D.rendererElement)&&D.is=="yt-reload-continuation"){D.trigger();break a}(l=l.querySelector("yt-reload-continuation"))&&l.trigger()}};
_.W.onTap_=function(l){l.preventDefault()};
_.W.onItemTap_=function(l){this.ytEndpointBehavior.onEndpointTap_(l)};
_.W.onLinkFocus_=function(l){try{var D=l.target}catch(n){}if(D){var U=D.querySelector("tp-yt-paper-item");U&&_.Fs(this,"focus",function(){U.focus()})}};
_.W.onMenuClose_=function(){this.menuExpanded="false"};
_.W.isLabelIconActive_=function(l){return l==="true"};
_.W.computeHasSubtitle_=function(l){return!!l};
_.W.computeHrefForItem_=function(l){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(l))};
_.W.updateSelectedFromBinding=function(l){this.selected=l.detail.value};
_.QP.Object.defineProperties(R5.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
R5.prototype.onMenuClose_=R5.prototype.onMenuClose_;R5.prototype.onTap_=R5.prototype.onTap_;R5.prototype.onIronActivate_=R5.prototype.onIronActivate_;R5.prototype.onDropdownOpen=R5.prototype.onDropdownOpen;R5.prototype.dataChanged_=R5.prototype.dataChanged_;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],R5.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.d9.YtEndpointBehavior),_.T("design:type",Object)],R5.prototype,"ytEndpointBehavior",void 0);
_.E([_.K(),_.T("design:type",Array)],R5.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],R5.prototype,"parentTrackingParams",void 0);_.E([_.K(),_.T("design:type",Object)],R5.prototype,"selected",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],R5.prototype,"useLabel",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],R5.prototype,"useComputedAriaLabel",void 0);_.E([_.K(),_.T("design:type",String)],R5.prototype,"icon",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],R5.prototype,"iconLabel",void 0);_.E([_.K(),_.T("design:type",String)],R5.prototype,"ariaLabel",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],R5.prototype,"disabled",void 0);_.E([_.K({computed:"isMenuExpanded(data)"}),_.T("design:type",String)],R5.prototype,"menuExpanded",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],R5.prototype,"closeOnActivate",void 0);
_.E([_.K({reflectToAttribute:!0,value:_.q("web_modern_buttons")}),_.T("design:type",Boolean)],R5.prototype,"modernButtons",void 0);_.E([_.K(),_.T("design:type",Object)],R5.prototype,"notificationData",void 0);_.E([_.t("ariaLabel, selected"),_.K(),_.T("design:type",String),_.T("design:paramtypes",[])],R5.prototype,"computedAriaLabel",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],R5.prototype,"dataChanged_",null);
_.E([_.hj("paper-dropdown-open"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],R5.prototype,"onDropdownOpen",null);_.E([_.hj("iron-activate"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],R5.prototype,"onIronActivate_",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],R5.prototype,"onTap_",null);
_.E([_.hj("iron-overlay-closed"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],R5.prototype,"onMenuClose_",null);_.E([_.S0({is:"yt-dropdown-menu",disableElementRegistration:!0})],R5);
_.r(R5,"yt-dropdown-menu",function(){if(hTk===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;CF5===void 0&&(CF5=document.createElement("template"));var n=CF5;U.call(D,n.content.cloneNode(!0),l.content.firstChild);hTk=l}l=hTk;return l},{mode:2});var ZD=function(){var l=_.p.apply(this,arguments)||this;l.hasNotification=!1;return l};
_.Z(ZD,_.p);ZD.prototype.computeId=function(l){return l};
ZD.prototype.computeHorizontalAlign=function(l){return l?"right":"left"};
ZD.prototype.computeAccessibilityLabel=function(l){var D,U;return((D=l.accessibility)==null?void 0:(U=D.accessibilityData)==null?void 0:U.label)||null};
ZD.prototype.notificationDataChanged=function(){var l;this.hasNotification=!!this.notificationData&&!((l=this.data)==null?0:l.icon)};
ZD.prototype.notificationDataChanged=ZD.prototype.notificationDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.ia.YtLiveChatTooltipTargetingBehavior),_.T("design:type",Object)],ZD.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ZD.prototype,"data",void 0);_.E([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.T("design:type",String)],ZD.prototype,"id",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],ZD.prototype,"isRightAligned",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],ZD.prototype,"disabled",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],ZD.prototype,"closeOnActivate",void 0);_.E([_.K(),_.T("design:type",Object)],ZD.prototype,"notificationData",void 0);_.E([_.K(),_.T("design:type",Object)],ZD.prototype,"hasNotification",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],ZD.prototype,"useComputedAriaLabel",void 0);_.E([_.Pg("notificationData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ZD.prototype,"notificationDataChanged",null);_.E([_.S0({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],ZD);
_.r(ZD,"yt-sort-filter-sub-menu-renderer",function(){if(Bom===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;WAv===void 0&&(WAv=document.createElement("template"));var n=WAv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Bom=l}l=Bom;return l},{mode:2});var PF8=_.w(function(l){var D=l.data;var U=_.n0(function(){var A=D().onTap;(A=_.M(A,_.aO))&&_.Jc().resolve(_.qK).resolveCommand(A);return!1}),n=function(){return{sources:[{url:D().thumbnailUrl,
width:120,height:90}]}},y=function(){return D().rating&&D().ratingA11yLabel&&D().reviewsCount&&D().reviewsCountA11yLabel};
return _.g("place-data-view-model",null,_.g(_.v,{cond:function(){return D().placeName&&D().placeCategory},
then:function(){return _.g("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":U},_.g(_.rh,{data:n,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.g(_.qO,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return D().onTap}},_.g("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return D().placeName}},function(){return D().placeName})),_.g("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.g(_.v,{cond:y,
then:function(){return _.g("div",{class:_.DV("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.g("span",{class:"score",title:function(){return D().ratingA11yLabel}},function(){return D().rating}),_.g("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.g(_.C0,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.g("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return D().reviewsCountA11yLabel}},function(){return D().reviewsCount}))},
else:function(){return _.g("div",{class:_.DV("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.g("div",{class:_.DV("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.g("span",{class:"category",
title:function(){return D().placeCategory}},function(){return D().placeCategory}))))}}))},"ib");
PF8.idomCompat=!0;_.Tt(PF8,"place-data-view-model",{props:{data:_.C$}});var bQr=new _.A7("INLINE_PLAYBACK_HOOK_TOKEN");var gDH=eZ({sharedUi:zA1});_.xv=m8(gDH)(gDH.sharedUi,{animatedThumbnailEnabledSelector:function(l){return l.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(l){return l.inlinePreviewEnabled},
currentPageTypeSelector:function(l){return l.currentPageType},
currentPageSubTypeSelector:function(l){return l.currentPageSubType},
persistentPanelVisibleSelector:function(l){return l.persistentPanelVisible}});var uVy=function(l){this.setActiveSlideIndex=l;this.jobIds=[];this.isSlideshowPlaying=!1},GKm=function(l,D){l.isSlideshowPlaying||(l.isSlideshowPlaying=!0,vD7(l),QXk(l,D,0))},vD7=function(l){_.Vu(_.Tn,function(){l.setActiveSlideIndex(0)},1)},QXk=function(l,D,U){l.jobIds.push(_.Vu(_.Tn,function(){var n=U<D-1?U+1:0;
l.setActiveSlideIndex(n);QXk(l,D,n)},1800))};var JDh;JDh=new _.A7("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.LA5=new _.A7("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");var qvg=new _.A7("IMAGE_ON_LOAD_HANDLER_TOKEN");var M1v=_.w(function(l){return _.g("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.g(_.v,{cond:function(){var D;return(D=l.data())==null?void 0:D.thumbnail},
then:function(D){return _.g(_.rh,{data:D,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.RT8=_.w(function(l){var D=l.data;var U=l.lockupExperiments;l={};return _.g("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.g("div",{class:_.DV("ytThumbnailOverlayButtonViewModelButton",(l.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var n;return U&&((n=U())==null?void 0:n.useLegacySizedIconButton)},l))},_.g(_.uI,{data:function(){return D().overlayButton}},{buttonViewModel:function(n){return _.g(_.t9,{data:n.data,
buttonOverrides:function(){var y;return U&&((y=U())==null?0:y.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.RT8.idomCompat=!0;var ZQm=_.w(function(l){return _.g("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.n0(function(D){D.preventDefault();return!1})},_.g(_.uI,{data:function(){return l.data().buttons}},{toggleButtonViewModel:function(D){return _.g("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.g(_.s0,{data:D.data}))}}))},"lb");
ZQm.idomCompat=!0;var eT8=_.w(function(l){var D=function(){var U;return((U=_.M(l.data().rendererContext,_.vF))==null?void 0:U.label)||""};
return _.g("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.g(_.v,{cond:function(){return l.data().image},
then:function(){return _.g("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.g(_.rh,{data:function(){return l.data().image},
alt:D}))}}),_.g(_.v,{cond:function(){return l.data().text},
then:function(){return _.g("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return l.data().text})}}))},"mb");var m5_;m5_=_.xv.animatedThumbnailEnabledSelector;_.eS=_.w(function(l){var D=[],U=function(){var J,L;return _.FcN((J=l.width)==null?void 0:J.call(l),(L=l.height)==null?void 0:L.call(l))},n=_.Jc().resolve(_.G8(qvg)),y=_.bP("yt-thumbnail-view-model",function(){D.push("elRef.value set");
var J;(J=l.playbackRef)==null||J.call(l,{thumbnailElRef:y,thumbnail:l.data().image,thumbnailOverlays:l.data().overlays,thumbnailSize:U()})});
_.N1(function(){D.push("onInit");_.NV(function(){D.push("onCleanup")})});
var A=_.gf(m5_),C=function(){var J,L;return(L=(J=l.aspectRatio)==null?void 0:J.call(l))!=null?L:0},h=function(){return(l.data().image?_.nUc(l.data().image):C())<=1&&C()===0},b=function(){return h()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},u=function(){y.value||_.II(new _.rc("Thumbnail elRef.value is null",D.join("\n")));
n&&y.value&&n(y.value)},Q=function(){var J,L;
return((J=l.hovered)==null?void 0:J.call(l))&&U()!=="large"&&((L=l.data().overlays)==null?void 0:L.some(function(R){return _.M(R,Z_g)}))},G={};
return _.g("yt-thumbnail-view-model",{class:_.DV("ytThumbnailViewModelHost",l.className,function(){return M4B(C())},function(){var J,L;
a:{var R=U(),a=(J=l.disableRounding)==null?void 0:J.call(l);J=(L=l.isClip)==null?void 0:L.call(l);if(!a&&!J)switch(R){case "large":L="ytThumbnailViewModelLarge";break a;case "small":L="ytThumbnailViewModelSmall";break a;default:L="ytThumbnailViewModelMedium";break a}L=void 0}return L},(G.ytThumbnailViewModelCinematic=h,G)),
style:_.BK({"background-color":function(){var J,L=h()?(J=l.data().backgroundColor)==null?void 0:J.lightTheme:void 0;return L?XP(L,"1"):void 0}}),
el:y},_.g(_.v,{cond:h,then:function(){return _.g("div",{class:"ytThumbnailViewModelBlurredImage"},_.g(_.rh,{data:function(){return l.data().image},
alt:"",contentMode:b,targetWidth:l.width,onload:u}))}}),_.g("div",{class:"ytThumbnailViewModelImage"},_.g(_.rh,{data:function(){return l.data().image},
alt:"",contentMode:b,targetWidth:l.width,onload:u}),null),_.g(_.uI,{data:function(){return Q()?void 0:l.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:ag1,thumbnailOverlayBadgeViewModel:function(J){return _.g(_.tH8,{data:J.data,thumbnailSize:U,isClip:l.isClip})},
thumbnailBottomOverlayViewModel:function(J){return _.g(RCh,{data:J.data,thumbnailSize:U,isClip:l.isClip})},
thumbnailOverlayFullViewModel:eT8,thumbnailOverlayButtonViewModel:function(J){return _.g(_.RT8,{data:J.data,lockupExperiments:l.lockupExperiments})},
channelDisclosureViewModel:function(J){J=J.data;var L;return _.g("div",null,(L=_.Jc().resolve(_.G8(JDh)))==null?void 0:L({data:J}))}}),_.g(_.uI,{data:function(){var J;
return((J=l.hovered)==null?0:J.call(l))?l.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(J){return _.g(VW,{data:J.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:ZQm}),_.g(_.uI,{data:function(){var J;return((J=l.hovered)==null?0:J.call(l))&&A()?l.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:M1v}),_.g(_.v,{cond:l.isClip,then:function(){return _.g("div",{class:"ytPinkingNsHost"},_.g("svg",{class:"ytPinkingNsPinkingLeft"},_.g("defs",null,_.g("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.g("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.g("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.g("svg",{class:"ytPinkingNsPinkingRight"},_.g("defs",null,_.g("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.g("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.g("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.eS.idomCompat={callbacks:{playbackRef:!0}};var aG7=_.w(function(l){var D=_.B(_.aw(-1,void 0,"RW2Ole")),U=D.next().value,n=D.next().value;_.N1(function(){var y=new uVy(n);GKm(y,l.data().thumbnails.length);_.NV(function(){if(y.isSlideshowPlaying){y.isSlideshowPlaying=!1;for(var A=y.jobIds,C=0,h=A.length;C<h;C++)_.Tn.cancelJob(A[C]);y.jobIds.length=0}})});
return _.g("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.g(_.uI,{data:function(){return l.data().thumbnails}},{thumbnailViewModel:function(y,A){return _.g("div",{class:function(){var C=!l.data().primaryThumbnail,h=A(),b=U(),u=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
C&&h===0&&u.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");h<=b&&u.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return u.join(" ")}},_.g(_.eS,{data:y.data,
disableRounding:l.disableRounding}))}}))},"ob");
aG7.idomCompat=!0;var Rxg=new _.A7("DWELL_DETECTOR_REGISTRY_TOKEN");var XW_=_.w(function(l){var D=ZrB(l.triggeringElement),U=function(){return!!l.data().primaryThumbnail},n=function(){var A,C=(A=l.data())==null?void 0:A.maxHeight,h;
A=(h=l.maxHeight)==null?void 0:h.call(l);return C!=null&&A!=null?Math.min(C,A):A!=null?A:C},y=function(){var A=n();
if(A){var C;if(U()&&(C=l.includeStackHeight)!=null&&C.call(l)){var h;C=((h=l.doubleStack)==null?0:h.call(l))?8:4}else C=0;A=A-C-1;if(!(A<0)){h=Math;C=h.ceil;var b,u;var Q=jk$((u=(b=l.aspectRatio)==null?void 0:b.call(l))!=null?u:0);return C.call(h,A*Q)}}};
return _.g("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.BK({height:function(){return n()?n()+"px":void 0},
width:function(){return y()?y()+"px":void 0}})},_.g(t1h,{stackEnabled:U,
thumbnailSize:function(){var A,C;return _.FcN((A=l.width)==null?void 0:A.call(l),(C=l.height)==null?void 0:C.call(l))},
doubleStack:l.doubleStack,stackColor:function(){return l.data().stackColor},
includeStackHeight:l.includeStackHeight},_.g(_.uI,{data:function(){return l.data().primaryThumbnail}},{thumbnailViewModel:function(A){var C={};
return _.g(_.eS,{data:A.data,width:l.width,height:l.height,aspectRatio:l.aspectRatio,disableRounding:l.disableRounding,className:_.DV((C.ytCollectionThumbnailViewModelHostHasStacks=U,C)),hovered:l.hovered,playbackRef:l.playbackRef})}}),_.g(_.v,{cond:function(){var A;
return D()&&((A=l.data().thumbnails)==null?void 0:A.length)},
then:function(){return _.g("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.g(aG7,{data:l.data,disableRounding:function(){return!U()}}))}})))},"pb");
XW_.idomCompat={callbacks:{playbackRef:!0}};
var t1h=_.w(function(l){var D=l.children;var U=l.stackEnabled;var n=l.thumbnailSize;var y=l.doubleStack;var A=l.stackColor;var C=l.includeStackHeight;var h,b=(h=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:h();return _.g(_.v,{cond:U,then:function(){return _.g(OrH,{data:function(){var u,Q;return{experimentEnabled:!0,thumbnailSize:n(),doubleStack:y==null?void 0:y(),color:b?A==null?void 0:(u=A())==null?void 0:u.darkTheme:A==null?void 0:(Q=A())==null?void 0:Q.lightTheme,enableResponsiveMode:!1,includeStackHeight:C==
null?void 0:C()}}},D)},
else:function(){return D}})},"qb");var Sv5=new _.A7("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var a5;_.mK={calledOnce:!0,state:"visible"};a5={calledOnce:!0,state:"hidden"};_.tg=_.w(function(l){var D=l.data;var U=l.customCommandResolver;var n=l.className;var y=l.delayedClassName;var A=l.animationEntityKey;var C=l.isCompactWidth;var h=l.isContentWidth;l=_.B(_.aw(!1,void 0,"pC3tUb"));var b=l.next().value,u=l.next().value,Q=_.NQ(A,""),G=_.Pr(J$3,Q),J=function(){var GN,Ms;return(Ms=(GN=G())==null?void 0:GN.value)!=null?Ms:!1},L=function(){_.$u(_.vr("booleanEntity",Q(),{key:Q(),
value:!0}));f=void 0};
A=_.B(_.WK(J));var R=A.next().value,a=A.next().value;A=_.B(_.WK(J));var S=A.next().value,d=A.next().value;A=_.B(_.WK(function(){var GN;return J()?(GN=D().styleTransitionConfig)==null?void 0:GN.destinationStyle:void 0}));
var c=A.next().value,N=A.next().value,z=function(){var GN=Object.assign({},D(),c()&&{style:c()});var Ms,j3,wl=GN.label,zN=(Ms=GN.interaction)==null?void 0:(j3=Ms.accessibility)==null?void 0:j3.label;Ms=GN.iconImage?GN.label&&GN.label.content?GN.iconLeading?"leading":"trailing":"icon-only":void 0;GN={formattedButtonText:wl,accessibilityLabel:zN,style:t4K(GN.style),type:XjG(GN.style),state:"active",size:aT9(GN.size),iconPosition:Ms,disabled:!1,aTagConfig:mzN(GN,U)};_.q("enable_desktop_vdcbg_components")&&
(GN.focused=b());return GN},f;
A=_.JH({visibilityCallback:function(GN){var Ms,j3=(Ms=D().interaction)==null?void 0:Ms.onFirstVisible;GN&&j3&&_.dh(j3)},
showOption:_.mK});var I=function(){return EcK(z(),!!D().iconImage)};
l={};var iG={};n=_.DV(function(){return"ytwAdButtonViewModelHost"},function(){return D().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var GN=!!D().delayedAppearanceConfig,Ms=R();
return GN?Ms?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var GN=!!D().delayedAppearanceConfig,Ms=S();
return GN?Ms?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!D().delayedAppearanceConfig||R()?y==null?void 0:y():""},(l.ytwAdButtonViewModelHostCompactWidth=function(){return C==null?void 0:C()},l),(iG.ytwAdButtonViewModelHostContentWidth=function(){return h==null?void 0:h()},iG),n!=null?n:"");
var CC=function(){var GN,Ms=(GN=D().delayedAppearanceConfig)==null?void 0:GN.delayedInvisibleSeconds;Ms&&(f=_.Ji(_.Tn,function(){a(!0);vo()},Ms*1E3))},vo=function(){var GN,Ms=(GN=D().delayedAppearanceConfig)==null?void 0:GN.delayedVisibleSeconds;
Ms&&(f=_.Ji(_.Tn,function(){d(!0);td()},Ms*1E3))},td=function(){var GN,Ms=(GN=D().styleTransitionConfig)==null?void 0:GN.styleTransitionSeconds,j3,wl=(j3=D().styleTransitionConfig)==null?void 0:j3.destinationStyle;
Ms&&wl?f=_.Ji(_.Tn,function(){N(wl);L()},Ms*1E3):L()};
_.N1(function(){CC()});
_.NV(function(){f&&_.Tn.cancelJob(f)});
return _.g("ad-button-view-model",{"on:focusin":_.n0(_.q("enable_desktop_vdcbg_components")?function(){var GN=_.Jc().resolve(_.G8(_.L$));GN&&u(GN.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.n0(_.q("enable_desktop_vdcbg_components")?function(){u(!1);return!1}:void 0),
class:n,el:_.fe(A),style:_.BK({"transition-duration":"0.3s"})},_.g(_.v,{cond:z,then:function(){return _.g(_.ey,{data:z,icon:function(){return _.g(_.v,{cond:function(){return D().iconImage},
then:function(GN){return _.g(_.rh,{data:GN,alt:"",targetWidth:I,targetHeight:I,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var kKH=_.w(function(l){var D=l.data;l=function(){return D().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var U=_.JH({visibilityCallback:function(A){var C,h=(C=D().interaction)==null?void 0:C.onFirstVisible;A&&h&&_.dh(h)},
showOption:_.mK}),n={},y={};return _.g("ad-button-group-view-model",{class:_.DV("ytwAdButtonGroupViewModelHost",(n.ytwAdButtonGroupViewModelHostCompactWidth=l,n)),el:_.fe(U)},_.g("div",{class:_.DV("ytwAdButtonGroupViewModelHostSecondaryButton",(y.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=l,y))},_.g(_.uI,{data:function(){return D().secondaryAdButton}},{adButtonViewModel:function(A){return _.g(_.tg,{data:A.data})}})),_.g("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.g(_.uI,
{data:function(){return D().primaryAdButton}},{adButtonViewModel:function(A){return _.g(_.tg,{data:A.data})}})))},"tb");var d57=_.w(function(l){var D=function(){var U;return((U=l.data())==null?void 0:U.answers)||[]};
return _.g("yt-survey-icons",{class:"ytSurveyIconsHost"},_.g("div",{class:"ytSurveyIconsHeader"},_.g("div",{class:"ytSurveyIconsTitle"},function(){var U;return(U=l.data())==null?void 0:U.text}),_.g("div",null,_.g(_.ey,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var U;(U=l.onDismiss)==null||U.call(l)}}},
iconName:"DISMISSAL"}))),_.g("div",null,_.g("div",{class:"ytSurveyIconsAnswers"},_.g(_.wt,{each:function(){return D()},
keyBy:"INDEX"},function(U,n){return _.g("div",null,_.g(_.ey,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var y;(y=l.onSelect)==null||y.call(l,U(),n)}}},
icon:function(){return _.g(_.C0,{icon:function(){var y,A;return(y=U())==null?void 0:(A=y.icon)==null?void 0:A.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.g("div",{class:"ytSurveyIconsAnswersText"},_.g("div",null,function(){return D().length?D()[0].text:""}),_.g("div",null,function(){return D().length?D()[D().length-1].text:""}))))},"ub");var KAr=_.w(function(l){var D=_.fe(_.aT(function(){var b;return(b=l.data())==null?void 0:b.rendererContext},void 0,void 0,void 0,!0)),U=_.B(_.aw(!1,void 0,"GW0yjf")),n=U.next().value,y=U.next().value,A=_.Pr(JNG,function(){var b;
return(b=l.data().keys)==null?void 0:b.surveyEntityKey}),C=_.Pr(LfG,function(){var b;
return(b=l.data().keys)==null?void 0:b.surveyStateEntityKey});
_.Pd("ytd-slimline-survey-show-action",function(){y(!1)});
var h=function(){var b,u;var Q=(b=C())==null?void 0:(u=b.questionStack)==null?void 0:u[0];if(Q!==void 0){var G,J;return(G=A())==null?void 0:(J=G.questions)==null?void 0:J[Q]}};
U={};return _.g("yt-slimline-survey-view-model",{el:D,class:_.DV("ytSlimlineSurveyViewModelHost",(U.ytSlimlineSurveyViewModelCollapsed=function(){return n()},U))},_.g("div",{class:"ytSlimlineSurveyViewModelContainer"},_.g(_.v,{cond:function(){var b;
return((b=h())==null?void 0:b.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.g(d57,{data:function(){return h()},
onSelect:function(b,u){var Q,G;return _.P(function(J){y(!0);if(G=(Q=l.data())==null?void 0:Q.onSelectRating)_.dh(G),_.$u(l$h(u));_.Kz(J)})},
onDismiss:function(){y(!0);var b;var u=(b=A())==null?void 0:b.dismissalFeedbackToken;b=u?{feedbackEndpoint:{feedbackToken:u}}:void 0;b&&_.Xk(b,{form:{element:D.value}})}})}})))},"vb");var cD7=_.w(function(l){return _.g("yt-table-view-model",{class:_.DV("ytTableViewModelHost",l.className)},_.g(_.wt,{each:function(){return l.data().rows||[]}},function(D){var U={};
return _.g("div",{class:_.DV("ytTableViewModelRow",(U.ytTableViewModelRowBottomBorder=function(){return l.data().showSeparators},U))},_.g(_.wt,{each:function(){return(D==null?void 0:D.cells)||[]}},function(n,y){var A,C={};
return _.g("span",{class:_.DV((C.ytTableViewModelRowLabel=function(){return y()===0&&l.data().showHorizontalHeaders},C.ytTableViewModelCell=function(){return!l.data().showHorizontalHeaders||y()>0},C))},(A=n.text)==null?void 0:A.content)}))}))},"wb");var pWz=_.w(function(l){return _.g("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.g(_.uI,{data:function(){var D;return(D=l.data())==null?void 0:D.attachments}},{flexibleActionsViewModel:function(D){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(_.Dq,{data:D.data,
layout:function(){var U;return((U=l.lockupStyle())==null?void 0:U.arrangement)===1?0:1},
justifyContentOverride:function(){var U;return((U=l.lockupStyle())==null?void 0:U.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(D){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(KAr,{data:D.data}))},
expandableMetadataViewModel:function(D){D=D.data;var U;return _.g("div",{class:_.DV("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(U=_.Jc().resolve(_.G8(Sv5)))==null?void 0:U({data:D}))},
adButtonGroupViewModel:function(D){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(kKH,{data:D.data}))},
adButtonViewModel:function(D){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(_.tg,{data:D.data,isCompactWidth:!0}))},
tableViewModel:function(D){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(cD7,{data:D.data}))},
aiCompanionAttachmentViewModel:function(D){D=D.data;var U;return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},(U=_.Jc().resolve(_.G8(_.LA5)))==null?void 0:U({data:D}))}}))},"xb");var pjo=_.RG("rich_grid_min_item_width",310),KD9=_.RG("rich_grid_max_item_width",500);var $z9,fTC;$z9=16/9;fTC=2/3;_.XQ=_.w(function(l){var D=l.data;var U=l.className;var n=l.imageSizeConfig;var y=l.notifyOnLoaded;var A=function(){return D().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},C=function(){var J;
return _.mr((J=D())==null?void 0:J.rendererContext)};
l={};l=(l.ytContentPreviewImageViewModelHost=!0,l.ytContentPreviewImageViewModelCircleImage=function(){return A()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},l.ytContentPreviewImageViewModelTappable=function(){return C()},l);
var h=function(){var J,L;return(L=(J=_.M(D().rendererContext,_.vF))==null?void 0:J.label)!=null?L:""},b=function(){return su_(D())},u=function(){var J=NB$(A(),D().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",n==null?void 0:n(),E$K(b()),D().layoutWidth,D().layoutHeight),L=Object.assign({},J);
J.width&&(L.width=Math.round(J.width));J.height&&(L.height=Math.round(J.height));J.maxWidth&&(L.maxWidth=Math.round(J.maxWidth));J.maxHeight&&(L.maxHeight=Math.round(J.maxHeight));return L},Q=_.dM(function(){return u().height},void 0,"CxFlJb"),G=_.dM(function(){return u().width},void 0,"lb8Jhd");
return _.g("yt-content-preview-image-view-model",{el:_.fe(_.aT(function(){var J;return(J=D())==null?void 0:J.rendererContext})),
role:function(){return C()?"link":void 0},
tabindex:function(){return C()?0:void 0},
class:_.DV(U,l,function(){var J=A();var L=n==null?void 0:n();J=J==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||J==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||J==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||J==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(L==null?void 0:L.size)!=null&&L.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(L==null?void 0:L.size)!=null&&L.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return J}),
style:function(){var J=u(),L=[];J.width&&L.push("width: "+J.width+"px");J.height&&L.push("height: "+J.height+"px");J.maxWidth&&L.push("max-width: "+J.maxWidth+"px");J.maxHeight&&L.push("max-height: "+J.maxHeight+"px");J.fullWidth&&L.push("width: 100%");return L.join(";")}},_.g(_.v,{cond:b,
then:function(J){return _.g(_.rh,{data:J,alt:h,"data-disabled$":function(){return!h()},
notifyOnLoaded:y,targetWidth:G,targetHeight:Q,preserveWidth:function(){return!!G()},
preserveHeight:function(){return!!Q()}})}}),_.g(_.uI,{data:function(){var J;
return(J=D())==null?void 0:J.overlays}},{thumbnailHoverOverlayViewModel:VW,
thumbnailOverlayButtonViewModel:_.RT8}))},"yb");
_.XQ.idomCompat=!0;var SS=_.w(function(l){var D=l.data;var U=l.className;var n=l.useSmallLayout;var y=l.useMediumText;l=l.useHeavyText;var A={};return _.g("yt-attribution-view-model",{el:_.fe(_.aT(function(){var C;return(C=D())==null?void 0:C.rendererContext})),
class:_.DV(U,(A.ytAttributionViewModelHost=!0,A.ytAttributionViewModelMediumText=y,A.ytAttributionViewModelHeavyText=l,A))},_.g(_.v,{cond:function(){return _.mr(D().rendererContext)},
then:function(){return _.g("button",{class:"ytAttributionViewModelTappable"},_.g(x5y,{data:D,useSmallLayout:n}))},
else:function(){return _.g(x5y,{data:D,useSmallLayout:n})}}))},"zb"),x5y=_.w(function(l){var D=l.data;
var U=l.useSmallLayout;var n=function(){return{size:(U==null?0:U())?16:24}};
return _.g(_.GZ,null,_.g(_.uI,{data:function(){return D().contentPreviewImage}},{contentPreviewImageViewModel:function(y){return _.g(_.XQ,{data:y.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:n})}}),_.g(_.uI,{data:function(){return D().badge}},{badgeViewModel:function(y){return _.g(_.LK,{data:y.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.g(_.v,{cond:function(){return D().text},
then:function(){return _.g(_.BO,{text:function(){return D().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.g(_.v,{cond:function(){return D().suffix},
then:function(){return _.g(_.BO,{text:function(){return D().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
SS.idomCompat=!0;var jXg,FA7,oDv,wW_,rD5;jXg=_.w(function(l){var D=l.delimiter;var U=l.max;var n=l.index;var y=l.isStandalone;return _.g(_.v,{cond:function(){return U()-1>n()},
then:function(){var A={};return _.g("span",{class:_.DV("yt-content-metadata-view-model__delimiter",(A["yt-content-metadata-view-model__delimiter--standalone"]=y,A)),"aria-hidden":!0},D)}})},"Bb");
FA7=_.w(function(l){var D=l.metadataPart;var U=l.maxLines;return _.g(_.BO,{text:function(){return D().text},
linkInheritColor:!0,className:function(){return TBG(U())},
userInput:!0})},"Cb");
oDv=_.w(function(l){var D=l.metadataPart;var U=l.maxLines;return _.g(_.v,{cond:function(){return D().tooltip},
then:function(n){return _.g("span",{title:n,role:"tooltip"},_.g(FA7,{metadataPart:D,maxLines:U}))},
else:function(){return _.g(FA7,{metadataPart:D,maxLines:U})}})},"Db");
wW_=_.w(function(l){var D=l.metadataPart;var U=l.isOverlay;var n=l.useMediumText;var y=l.hideAvatar;var A=function(){return D().maxLines!==void 0?D().maxLines:1};
return _.g(_.GZ,null,_.g(_.uI,{data:function(){return D().avatarStack}},{avatarStackViewModel:function(C){return _.g(_.DD,{data:C.data,
isOverlay:U,useMediumText:n,hideAvatar:y})},
badgeViewModel:_.LK}),_.g(_.v,{cond:function(){return D().leadingIcon},
then:function(C){return _.g(_.C0,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return C().name},
size:function(){return C().width}})}}),_.g(_.v,{cond:function(){return D().text},
then:function(){return _.g(oDv,{metadataPart:D,maxLines:A})}}),_.g(_.v,{cond:function(){return D().icon},
then:function(C){return _.g(_.C0,{className:"yt-content-metadata-view-model__icon",icon:function(){return C().name},
size:function(){return C().width}})}}))},"Eb");
rD5=_.w(function(l){var D=l.metadataRow;var U=l.isInline;var n=l.delimiter;var y=l.isOverlay;var A=l.useMediumText;var C=l.extensions;var h=function(){var u,Q=C==null?void 0:(u=C())==null?void 0:u.lockupMetadata;u=D();var G,J;return!!((Q==null?0:(G=Q.byline)==null?0:G.hideAvatar)&&((J=_.M(u,bu_))==null?void 0:J.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},b=function(){return D().metadataParts||[]};
l={};return _.g("div",{class:_.DV("yt-content-metadata-view-model__metadata-row",(l["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=U,l["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var u,Q=C==null?void 0:(u=C())==null?void 0:u.lockupMetadata;u=D();var G,J;return!!((Q==null?0:(G=Q.byline)==null?0:G.addPadding)&&((J=_.M(u,bu_))==null?void 0:J.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},l["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var u;
return!!(C==null?0:(u=C())==null?0:u.lockupMetadata)&&D().badges&&!D().metadataParts},l))},_.g(_.uI,{data:function(){return D().badges}},{badgeViewModel:function(u){return _.g("div",{class:"yt-content-metadata-view-model__badge"},_.g(_.LK,{data:u.data,
numBadgesInRow:function(){var Q,G;return((Q=D())==null?void 0:(G=Q.badges)==null?void 0:G.length)||0}}))}}),_.g(_.wt,{each:b},function(u,Q){return _.g(_.GZ,null,_.g(wW_,{metadataPart:u,
isOverlay:y,useMediumText:A,hideAvatar:h}),_.g(jXg,{delimiter:n,max:function(){return b().length},
index:Q,isStandalone:!1}))}),_.g(_.v,{cond:function(){return D().isSpacerRow&&!U()},
then:function(){return _.g("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.kd=_.w(function(l){l=_.sl(l,{layout:0,isOverlay:!1});var D=l.data,U=l.layout,n=l.isOverlay,y=l.useMediumText,A=l.extensions,C=function(){return U()===0},h=function(){var u;
return((u=D().metadataRows)==null?void 0:u.filter(function(Q){var G,J=A==null?void 0:(G=A())==null?void 0:G.lockupMetadata,L,R;G=!!((J==null?0:(L=J.description)==null?0:L.hideDescription)&&((R=_.M(Q,bu_))==null?void 0:R.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var a,S;return!((J==null?0:(a=J.spacer)==null?0:a.hideSpacer)&&((S=_.M(Q,bu_))==null?void 0:S.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||G)}))||[]},b={};
return _.g("yt-content-metadata-view-model",{class:_.DV(l.className,"yt-content-metadata-view-model",(b["yt-content-metadata-view-model--inline"]=C,b["yt-content-metadata-view-model--tappable"]=function(){return _.mr(D().rendererContext)},b["yt-content-metadata-view-model--medium-text"]=y,b)),
el:_.fe(_.aT(function(){return D().rendererContext}))},_.g(_.wt,{each:h},function(u,Q){return _.g(_.GZ,null,_.g(rD5,{metadataRow:u,
isInline:C,delimiter:function(){return D().delimiter},
isOverlay:n,useMediumText:y,extensions:A}),_.g(_.v,{cond:function(){return C()&&!u.isSpacerRow},
then:function(){return _.g(jXg,{delimiter:function(){return D().delimiter},
max:function(){return h().length},
index:Q,isStandalone:!0})}}))}))},"Gb");
_.kd.idomCompat=!0;var zT_=_.w(function(l){var D=_.Jc().resolve(_.G8(_.jQ)),U={};return _.g("yt-lockup-metadata-view-model",{class:_.DV("yt-lockup-metadata-view-model",function(){a:{var n=l.lockupStyle();if(n==null?0:n.isOverlay)n="yt-lockup-metadata-view-model--overlay";else switch(n==null?void 0:n.arrangement){case 1:n="yt-lockup-metadata-view-model--horizontal";break a;default:n="yt-lockup-metadata-view-model--vertical"}}return n},function(){a:{var n=l.lockupStyle();
switch(n==null?void 0:n.titleMaxLines){case 1:n="yt-lockup-metadata-view-model--title-max-lines-1";break a}n=void 0}return n},function(){a:{var n=l.lockupStyle();
if(n==null?0:n.isTiny)n="yt-lockup-metadata-view-model--tiny";else switch(n==null?void 0:n.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":n="yt-lockup-metadata-view-model--compact";break a;default:n="yt-lockup-metadata-view-model--standard"}}return n},(U["yt-lockup-metadata-view-model--overlay"]=function(){var n;
return(n=l.lockupStyle())==null?void 0:n.isOverlay},U["yt-lockup-metadata-view-model--card"]=function(){var n;
return(n=l.lockupStyle())==null?void 0:n.isCard},U["yt-lockup-metadata-view-model--centered"]=function(){var n;
return(n=l.lockupStyle())==null?void 0:n.isCentered},U["yt-lockup-metadata-view-model--typography-bump"]=function(){var n;
return(n=l.lockupStyle())==null?void 0:n.typographyBump},U["yt-lockup-metadata-view-model--legacy-typography"]=function(){var n;
return(n=l.lockupStyle())==null?void 0:n.useLegacyTypography},U["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var n;
return(n=l.lockupStyle())==null?void 0:n.useRichGridLegacyTypography},U))},_.g(_.uI,{data:function(){return l.data().image}},{avatarStackViewModel:function(n){return _.g("div",{class:"yt-lockup-metadata-view-model__avatar"},_.g(_.DD,{data:n.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(n){return _.g("div",{class:"yt-lockup-metadata-view-model__avatar"},_.g(_.iX,{data:n.data}))},
decoratedAvatarViewModel:function(n){return _.g("div",{class:"yt-lockup-metadata-view-model__avatar"},_.g(_.lX,{data:n.data}))}}),_.g("div",{class:"yt-lockup-metadata-view-model__text-container"},_.g("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var n;return(n=l.data().title)==null?void 0:n.content}},_.g(_.v,{cond:function(){return l.data().title},
then:function(n){return _.g(_.qO,{command:l.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.BK({color:function(){var y;a:{var A=l.lockupStyle();var C=(y=l.hovered)==null?void 0:y.call(l);y=!(D==null||!D());var h;if((A==null?0:(h=A.onFocusEffect)==null?0:h.textPrimaryColor)&&C&&(A=y?A.onFocusEffect.textPrimaryColor.darkTheme:A.onFocusEffect.textPrimaryColor.lightTheme)){A=Sd(A);break a}A=void 0}return A}}),
ariaLabel:l.lockupAccessibilityLabel},_.g(_.BO,{text:n,userInput:!0}))}})),_.g("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.BK({color:function(){var n;a:{var y=l.lockupStyle();var A=(n=l.hovered)==null?void 0:n.call(l);n=!(D==null||!D());var C;if((y==null?0:(C=y.onFocusEffect)==null?0:C.textSecondaryColor)&&A&&(y=n?y.onFocusEffect.textSecondaryColor.darkTheme:y.onFocusEffect.textSecondaryColor.lightTheme)){y=Sd(y);break a}y=void 0}return y}})},_.g(_.uI,{data:function(){return l.data().metadata}},{contentMetadataViewModel:function(n){return _.g(_.kd,{data:n.data,
layout:function(){var y,A;return(A=(y=l.layout)==null?void 0:y.call(l))!=null?A:1},
useMediumText:function(){var y,A;return((y=l.lockupStyle())==null?void 0:y.typographyBump)||((A=l.lockupStyle())==null?void 0:A.useRichGridLegacyTypography)},
extensions:function(){var y,A,C,h;return{lockupMetadata:{byline:{hideAvatar:((y=l.lockupStyle())==null?void 0:y.arrangement)===0,addPadding:((A=l.lockupStyle())==null?void 0:A.arrangement)===1},description:{hideDescription:!((C=l.lockupStyle())==null||!C.compactMetadata)},spacer:{hideSpacer:!((h=l.lockupStyle())==null||!h.compactMetadata)}}}}})}})),_.g(_.uI,{data:function(){return l.data().attribution}},{attributionViewModel:function(n){return _.g("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.g(SS,{data:n.data,
useSmallLayout:!0}))}})),_.g("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.g(_.uI,{data:function(){return l.data().menuButton}},{buttonViewModel:function(n){return _.g(_.t9,{data:n.data,
buttonOverrides:function(){var y;return((y=l.lockupStyle())==null?0:y.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
zT_.idomCompat=!0;var fGk=_.w(function(l){var D=_.bP("notification-multi-action-renderer");_.$g(function(){requestAnimationFrame(function(){_.hL(D.value)})});
var U={},n={},y={};return _.g("notification-multi-action-renderer",{class:_.DV("ytNotificationMultiActionRendererHost",(U.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var A;return(A=l.useLegacyShelfStyle)==null?void 0:A.call(l)},U)),
el:D},_.g("span",{"aria-live":"polite",class:_.DV("ytNotificationMultiActionRendererTextContainer",(n.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var A;return(A=l.useLegacyShelfStyle)==null?void 0:A.call(l)},n))},_.g(_.BO,{text:function(){return l.data().responseText}})),_.g("div",{class:_.DV("ytNotificationMultiActionRendererButtonContainer",(y.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var A;
return(A=l.useLegacyShelfStyle)==null?void 0:A.call(l)},y))},_.g(_.uI,{data:function(){var A;
return(A=l.data().buttons)==null?void 0:A.map(function(C){if(C=C.buttonRenderer){var h,b=Object,u=b.assign,Q=(h=C.icon)==null?void 0:h.iconType;h=(h=C.command||C.serviceEndpoint||C.navigationEndpoint)?{innertubeCommand:h}:void 0;C={buttonViewModel:u.call(b,{},{iconName:Q,onTap:h,trackingParams:C.trackingParams,titleFormatted:C.text?_.Zk(C.text):void 0},Hrg(C))}}else C=void 0;return C}).filter(function(C){return!!C})}},{buttonViewModel:function(A,C){return _.g("div",null,_.g(_.t9,{data:A.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var h;return((h=l.useModernStyles)==null?0:h.call(l))?{type:C()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var $5y=_.w(function(l){var D=_.bP("notification-text-renderer");_.$g(function(){requestAnimationFrame(function(){_.hL(D.value)})});
return _.g("notification-text-renderer",{el:D,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.g(_.BO,{text:function(){return l.data().successResponseText}}))},"Lb");_.dR=_.w(function(l){var D=_.Pr(WfB,function(){var n;return YXK((n=l.contentId)==null?void 0:n.call(l))}),U=function(){var n;
return _.M((n=D())==null?void 0:n.command,_.jv)};
return _.g(_.v,{cond:function(){var n;if(!(n=U())){var y;n=_.M((y=D())==null?void 0:y.command,XPy)}return n},
then:function(){return _.g(_.v,{cond:U,then:function(){var n={};return _.g("div",{class:_.DV("ytDismissibleItemReplacedContent",function(){var y;return OrG((y=l.aspectRatio)==null?void 0:y.call(l))})},_.g("div",{class:_.DV((n.ytDismissibleItemAspectRatioContainer=function(){var y;
return((y=l.aspectRatio)==null?void 0:y.call(l))!==void 0},n))},_.g(_.uI,{data:function(){var y;
return(y=U())==null?void 0:y.item}},{notificationMultiActionRenderer:function(y){return _.g(fGk,{data:y.data,
useModernStyles:l.useModernStyle,useLegacyShelfStyle:l.useLegacyShelfStyle})},
notificationTextRenderer:$5y})))}})},
else:l.children})},"Mb");_.Nog=_.w(function(l){var D=l.data;var U=l.customCommandResolver;l=_.fe(_.JH({visibilityCallback:function(A){var C,h=(C=D().interaction)==null?void 0:C.onFirstVisible;A&&h&&_.dh(h)},
showOption:_.mK}));var n=function(){var A;return((A=D().interaction)==null?0:A.onTap)?function(C){var h;exG(C,(h=D().interaction)==null?void 0:h.onTap,U)}:void 0},y=function(){var A,C=D(),h=n(),b=(A=_.M(D().rendererContext,_.vF))==null?void 0:A.label;
a:switch(C.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":A=1;break a;default:A=0}return{size:lgN(C.size),type:A,onTap:h,accessibilityText:b}};
return _.g("ad-avatar-view-model",{class:function(){var A;return((A=D().interaction)==null?0:A.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:l},_.g(_.v,{cond:function(){return D().image},
then:function(A){return _.g(myz,{data:y,image:A})}}))},"Nb");_.KK=_.w(function(l){var D=_.sl(l,{hasDot:!1,usedInMasthead:!1}),U=Object.assign({},D),n=D.data,y=D.hasDot;l=D.customCommandResolver;var A=D.usedInMasthead,C=(delete U.data,delete U.hasDot,delete U.customCommandResolver,delete U.usedInMasthead,U);D=function(){return n().style};
D!==void 0&&D!==null||_.nt(Error("Hh"));l=_.dN(function(){return n().interaction},l);
return _.g("ad-badge-view-model",{class:_.DV(function(){var h;return((h=n().interaction)==null?0:h.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var h=C.adRenderingContextType(),b=A();
n();return h!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||b?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.fe(l)},_.g(_.AQ,{data:function(){var h;n();return{type:2,text:(h=n().label)==null?void 0:h.content,adsIncludeDot:y(),isOverlay:n().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var sX7;_.cw=_.w(function(l){var D=l.data;var U=l.customCommandResolver;var n=l.adRenderingContextType;return _.g("ad-details-line-view-model",{class:function(){var y;return((y=D().interaction)==null?0:y.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.fe(_.JH({visibilityCallback:function(y){var A,C=(A=D().interaction)==null?void 0:A.onFirstVisible;y&&C&&_.dh(C)},
showOption:_.mK}),_.dN(function(){return D().interaction},U))},_.g(_.v,{cond:function(){return D().style},
then:function(y){return _.g(_.wt,{each:function(){var A;return((A=D())==null?void 0:A.attributes)||[]},
keyBy:"INDEX"},function(A){return _.g(sX7,{attribute:A,style:y,adRenderingContextType:function(){return n()}})})}}))},"Pb");
sX7=_.w(function(l){var D=l.attribute;var U=l.style;var n=l.adRenderingContextType;return _.g(_.v,{cond:function(){return D().text},
then:function(y){return _.g(_.BO,{text:y,className:function(){var A=n();U();return A==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var ED_=_.w(function(l){var D=l.data;var U=l.typographyBump;var n=function(){return D().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},y=function(){return{size:"M"}};
l={};return _.g(_.GZ,null,_.g("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.g(_.BO,{text:function(){return D().headline},
className:_.DV("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(l.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return n==null?void 0:n()},l.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(U==null?void 0:U())&&!(n==null?0:n())},l)),
linkInheritColor:!0}),_.g(_.v,{cond:function(){return D().description},
then:function(A){var C={};return _.g(_.BO,{text:A,className:_.DV("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(C.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return n==null?void 0:n()},C.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(U==null?void 0:U())&&!(n==null?0:n())},C)),
linkInheritColor:!0})}}),_.g(_.v,{cond:function(){return D().secondaryDescription},
then:function(A){var C={};return _.g(_.BO,{text:A,className:_.DV("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(C.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return U==null?void 0:U()},C)),
linkInheritColor:!0})}}),_.g("div",{class:function(){return n()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.g(_.v,{cond:function(){return D().adAvatar},
then:function(){return _.g("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.g(_.uI,{data:function(){return D().adAvatar}},{adAvatarViewModel:_.Nog}))}}),_.g(_.uI,{data:function(){return D().adBadge}},{adBadgeViewModel:function(A){return _.g(_.KK,{data:A.data,
hasDot:function(){return!!D().adDetailsLine},
adRenderingContextType:function(){return D().adRenderingContextType}})}}),_.g(_.uI,{data:function(){return D().adDetailsLine}},{adDetailsLineViewModel:function(A){return _.g(_.cw,{data:A.data,
adRenderingContextType:function(){return D().adRenderingContextType}})}}))),_.g("div",{class:function(){return _.q("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":n()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.g(_.uI,{data:function(){return D().menu}},{buttonViewModel:function(A){return _.g(_.t9,{data:A.data,
buttonOverrides:_.q("enable_desktop_vdc_components")?y:function(){a:switch(D().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var C="S";break a;default:C="M"}return{size:C}}})}})))},"Rb"),Toy=_.w(function(l){var D=l.data;
var U=l.noBottomMargin;var n=l.useVideoLockupTopPadding;var y=l.typographyBump;l={};l=_.DV("ytwFeedAdMetadataViewModelHostMetadata",(l.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return U==null?void 0:U()},l.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return n==null?void 0:n()},l));
var A=function(){return D().adBadge};
A!==void 0&&A!==null||_.nt(Error("Ih"));A={};var C={};return _.g(_.GZ,null,_.g(_.v,{cond:function(){return D().adAvatar},
then:function(){return _.g("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.g(_.uI,{data:function(){return D().adAvatar}},{adAvatarViewModel:function(h){return _.g(_.Nog,{data:h.data})}}))}}),_.g("div",{class:l},_.g("div",{class:_.DV("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(A.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return y==null?void 0:y()},A.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(y==
null?void 0:y())&&_.q("web_enable_typography_bump_v2")},A))},_.g(_.BO,{text:function(){return D().headline},
linkInheritColor:!0})),_.g(_.v,{cond:function(){return D().description},
then:function(h){return _.g(_.BO,{text:h,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.g("div",{class:function(){return D().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.q("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.g(_.uI,{data:function(){return D().adBadge}},
{adBadgeViewModel:function(h){return _.g(_.KK,{data:h.data,
hasDot:function(){return!!D().adDetailsLine},
adRenderingContextType:function(){return D().adRenderingContextType}})}}),_.g(_.uI,{data:function(){return D().adDetailsLine}},{adDetailsLineViewModel:function(h){return _.g(_.cw,{data:h.data,
adRenderingContextType:function(){return D().adRenderingContextType}})}})),_.g(_.v,{cond:function(){return D().secondaryDescription},
then:function(h){return _.g(_.BO,{text:h,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.g("div",{class:_.DV("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(C.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return n==null?void 0:n()},C))},_.g(_.uI,{data:function(){return D().menu}},{buttonViewModel:_.t9})))},"Sb"),pK=_.w(function(l){var D=l.data;
var U=l.noBottomMargin;var n=l.listenToTapEvent;var y=l.setTouchEndHandler;var A=l.useVideoLockupTopPadding;var C=l.typographyBump;l=_.JH({visibilityCallback:function(G){var J,L=(J=D().interaction)==null?void 0:J.onFirstVisible;G&&L&&_.dh(L)},
showOption:_.mK});var h=_.dN(function(){return D().interaction},void 0,function(){return n==null?void 0:n()}),b=_.B(_.aw(!1,void 0,"N3Oquc")),u=b.next().value,Q=b.next().value;
b=_.n0(function(G){(y==null?0:y())&&!u()&&(G.currentTarget.click(),Q(!0),setTimeout(function(){Q(!1)},100));
return!1});
return _.g("feed-ad-metadata-view-model",{class:function(){var G;return((G=D().interaction)==null?0:G.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.fe(l,h),"on:touchend":b},_.g(_.rt,null,_.g(_.F2,{when:function(){return D().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.g(ED_,{data:D,
typographyBump:C})}),_.g(_.F2,{when:function(){return D().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.g(Toy,{data:D,
noBottomMargin:U,useVideoLockupTopPadding:A,typographyBump:C})})))},"Tb");var IG7,HQ7;IG7=_.xv.inlinePreviewEnabledSelector;_.xd=_.w(function(l){return _.g("yt-lockup-view-model",{class:_.DV(l.className,"yt-lockup-view-model--wrapper")},_.g(_.dR,{contentId:function(){return l.data().contentId},
useModernStyle:!0,aspectRatio:function(){var D,U;return((D=l.containerType)==null?void 0:D.call(l))!==3?rol(l.data().contentType,(U=l.force16By9ThumbnailAspectRatio)==null?void 0:U.call(l)):void 0}},function(){return _.g(HQ7,Object.assign({},l))}))},"Ub");
HQ7=_.w(function(l){l=_.sl(l,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,useOverlayStyling:void 0});var D=l.data,U=l.containerLayoutConfig,n=l.containerType,y=l.sizing,A=l.protectBackground,C=l.typographyBump,h=l.force16By9ThumbnailAspectRatio,b=l.thumbnailFixedWidth,u=l.thumbnailTargetWidth,Q=l.lockupExperiments,
G=l.elementsPerRow,J=l.useOverlayStyling,L=_.Jc().resolve(_.G8(_.jQ));l=_.fe(_.aT(function(){var zN;return(zN=D())==null?void 0:zN.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var R=_.gf(IG7),a=_.Jc().resolve(_.G8(bQr)),S=a?{}:void 0,d=function(){var zN,Z7,Lm;return(Lm=(Z7=_.M((zN=D())==null?void 0:zN.rendererContext,_.vF))==null?void 0:Z7.label)!=null?Lm:void 0},c=function(){var zN;
return(zN=_.M(D().metadata,_.gOg))==null?void 0:zN.endorsement},N=function(){var zN=U==null?void 0:U(),Z7;
if(zN==null?0:zN.containerType){var Lm=(Z7=D())==null?void 0:Z7.contentType;Z7=Q();var Vg=C(),v5=u(),mk=A();zN=Object.assign({},zxB(juB(zN),cr(zN.responsiveSize),Vg,Lm,zN.force16By9ThumbnailAspectRatio,v5,mk,void 0,Z7),{thumbnailFixedWidth:zN.contentPreviewWidth})}else zN=zxB(n(),y(),C(),(Lm=D())==null?void 0:Lm.contentType,h(),u(),A(),J(),Q());return zN};
a&&S&&a({enabled:function(){return R()},
itemPlaybackModel:function(){return D().itemPlayback},
thumbnailElRef:function(){return S.thumbnailElRef},
containerElRef:l,options:function(){var zN=S.thumbnailOverlays||[],Z7=c(),Lm;!Z7||((Lm=Q())==null?0:Lm.onFocusEffect)||zN.push(Z7);var Vg,v5;return{thumbnail:S.thumbnail,thumbnailOverlays:zN,accessibilityText:d(),thumbnailSize:S.thumbnailSize,enableRounding:N().isCollection,containPlayerWithinThumbnail:N().isCollection,mouseleaveCallback:function(){I(!1)},
trackingParams:(Vg=_.M(D().rendererContext,_.P9))==null?void 0:(v5=Vg.loggingDirectives)==null?void 0:v5.trackingParams}}});
var z=0;a=_.B(_.aw(!1,void 0,"v0iGab"));var f=a.next().value,I=a.next().value;a=_.B(_.aw(!1,void 0,"PVKcBd"));var iG=a.next().value,CC=a.next().value;a=_.n0(function(){iG()?(_.Tn.cancelJob(z),z=_.Tn.addJob(function(){I(!0)},8,32)):I(!0);
return!0});
var vo=_.n0(function(zN){zN=zN.relatedTarget;var Z7=document.querySelector("ytd-video-preview");zN&&Z7&&Z7.contains(zN)||(z&&(_.Tn.cancelJob(z),z=0),I(!1))});
_.NV(function(){z&&(_.Tn.cancelJob(z),z=0)});
var td=ild(function(){CC(!0)}),GN=td.touchFeedbackEvents,Ms=td.touchFeedbackOnPointerUp,j3=td.touchFeedbackOnPointerDown;
td=td.touchFeedbackOnPointerLeave;var wl={};return _.g(_.GZ,null,_.g("div",{el:l,class:_.DV("yt-lockup-view-model",function(){a:{var zN=N();if(zN.metadataOnThumbnail)zN="yt-lockup-view-model--metadata-on-thumbnail";else switch(zN.arrangement){case 1:zN="yt-lockup-view-model--horizontal";break a;default:zN="yt-lockup-view-model--vertical"}}return zN},function(){a:{var zN=N();
if(zN.metadataOnThumbnail)zN="yt-lockup-view-model--metadata-on-thumbnail";else{switch(zN.collectionStackNumber){case 1:zN="yt-lockup-view-model--collection-stack-1";break a;case 2:zN="yt-lockup-view-model--collection-stack-2";break a}zN=void 0}}return zN},function(){var zN;
return _.ITC((zN=D())==null?void 0:zN.contentId)},(wl["yt-lockup-view-model--card"]=function(){return N().isCard},wl["yt-lockup-view-model--compact"]=function(){return N().isTiny||N().sizing!=="STANDARD"},wl["yt-lockup-view-model--protect-background"]=A,wl["yt-lockup-view-model--add-margins"]=function(){return N().addMarginForFullbleed},wl["yt-lockup-view-model--centered"]=function(){return N().isCentered},wl["yt-lockup-view-model--fullbleed"]=function(){return N().fullbleed},wl["yt-lockup-view-model--single-column-grid"]=
function(){return G()===1&&n()===2},wl["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var zN;
return(zN=Q())==null?void 0:zN.useRichGridLegacyMargin},wl["yt-lockup-view-model--flex-none"]=function(){return!_.q("lockup_flex_none_killswitch")},wl)),
"on:mousedown":j3,"on:mouseleave":vo,"on:mouseup":Ms,"on:mouseover":a,"on:touchstart":j3,"on:touchend":Ms,"on:pointerleave":td},_.g(_.MO,{model:function(){var zN,Z7,Lm=Object,Vg=Lm.assign,v5=(S==null?void 0:S.thumbnailSize)||"small";a:{var mk=N();var dy=!!(c()&&((zN=Q())==null?0:zN.onFocusEffect));switch((S==null?void 0:S.thumbnailSize)||"small"){case "small":zN=4;break;case "large":zN=12;break;default:zN=8}if(dy)mk=zN+12;else{switch(mk.collectionStackNumber){case 1:mk=zN+8;break a;case 2:mk=zN+12;
break a}mk=void 0}}v5={thumbnailSize:v5,triggerEvents:!0,customTopExtend:mk};var eW;mk=(Z7=Q())==null?void 0:Z7.onFocusEffect;dy=!(L==null||!L());if(mk){var Qq,Bo;Z7=dy?(Qq=mk.onFocusColor)==null?void 0:Qq.darkTheme:(Bo=mk.onFocusColor)==null?void 0:Bo.lightTheme;var D7,qr;Qq=dy?(D7=mk.keyLightColor)==null?void 0:D7.darkTheme:(qr=mk.keyLightColor)==null?void 0:qr.lightTheme;var H5;D7=dy?(eW=mk.touchResponseColor)==null?void 0:eW.darkTheme:(H5=mk.touchResponseColor)==null?void 0:H5.lightTheme;eW={background:Z7!==
void 0?Sd(Z7):void 0,keyLight:Qq!==void 0?Sd(Qq):void 0};H5=[];qr=_.B(mk.lightingTechniques||[]);for(Qq=qr.next();!Qq.done;Qq=qr.next())switch(Qq.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":H5.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":H5.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":H5.push(3)}eW={hoverEffect:{palette:eW,lightingTechniques:H5},touchEffect:{palette:{background:D7!==void 0?Sd(D7):void 0}}}}else eW={};return Vg.call(Lm,{},v5,eW)},
hovered:function(){return f()},
pointerDownEvent:GN.pointerDownEvent,pointerUpEvent:GN.pointerUpEvent,pointerLeaveEvent:GN.pointerLeaveEvent}),_.g(_.v,{cond:function(){var zN;return c()&&f()&&((zN=Q())==null?void 0:zN.onFocusEffect)},
then:function(){return _.g("div",{class:"yt-lockup-view-model__endorsement"},_.g(_.uI,{data:function(){return c()}},{attributionViewModel:function(zN){return _.g(SS,{data:zN.data,
useHeavyText:!0})}}))}}),_.g(_.qO,{command:function(){var zN;
return _.eq((zN=D())==null?void 0:zN.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(b()||N().thumbnailFixedWidth)&&N().arrangement===1?"width: "+(b()||N().thumbnailFixedWidth):""}},_.g(_.uI,{data:function(){var zN;
return(zN=D())==null?void 0:zN.contentImage}},{thumbnailViewModel:function(zN){return _.g(_.eS,{data:zN.data,
aspectRatio:function(){return N().aspectRatio},
disableRounding:function(){return N().disableRounding},
width:u,hovered:function(){return f()&&!(R()&&D().itemPlayback)},
isClip:function(){var Z7;return((Z7=D())==null?void 0:Z7.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:qXB(S),lockupExperiments:function(){return Q()}})},
collectionThumbnailViewModel:function(zN){return _.g(XW_,{data:zN.data,aspectRatio:function(){return N().aspectRatio},
disableRounding:function(){return N().disableRounding},
width:u,doubleStack:function(){return N().collectionStackNumber===2},
hovered:function(){return f()&&!(R()&&D().itemPlayback)},
playbackRef:qXB(S)})},
decoratedAvatarViewModel:_.lX})),_.g("div",{class:"yt-lockup-view-model__metadata"},_.g(_.uI,{data:function(){var zN;return(zN=D())==null?void 0:zN.metadata}},{lockupMetadataViewModel:function(zN){return _.g(zT_,{data:zN.data,
hovered:f,lockupStyle:N,lockupCommand:function(){var Z7;return _.eq((Z7=D())==null?void 0:Z7.rendererContext)},
lockupAccessibilityLabel:function(){return d()},
layout:function(){var Z7;return((Z7=Q())==null?0:Z7.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(zN){return _.g(pK,{data:zN.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:C})}}),_.g(_.uI,{data:function(){var zN;
return(zN=D())==null?void 0:zN.attachmentSlot}},{lockupAttachmentsViewModel:function(zN){return _.g(pWz,{data:zN.data,
lockupStyle:N})}}))),_.g(_.uI,{data:function(){var zN;
return(zN=D())==null?void 0:zN.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(zN){return _.g(pWz,{data:zN.data,
lockupStyle:N})}}))},"Vb");
_.xd.idomCompat=!0;_.Tt(_.xd,"yt-lockup-view-model",{props:{data:_.C$,containerLayoutConfig:_.C$,containerType:_.C$,sizing:_.C$,protectBackground:_.C$,typographyBump:_.C$,thumbnailFixedWidth:_.C$,thumbnailTargetWidth:_.C$,force16By9ThumbnailAspectRatio:_.C$,className:_.C$,lockupExperiments:_.C$,elementsPerRow:_.C$,useOverlayStyling:_.C$}});var yG_,Yvm=_.w(function(l){var D=_.sl(l,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),U=D.text,n=D.alwaysShowTruncationText;l=D.truncationText;var y=D.onTextClick,A=D.maxLines,C=D.disableTextMask,h=D.textStyle,b=D.accessibilityLabel,u=D.textSize,Q=D.alwaysTruncateAtMaxLines,G=D.expandOnClick;D=_.B(_.aw(!1,void 0,"EzA1q"));var J=D.next().value,L=D.next().value;D=_.n0(function(){G()&&L(!J());y==null||y()});
var R=function(){a:switch(u()){case "medium":var iG=2;break a;case "large":iG=2.2;break a;default:iG=1.8}return iG},a=B5B(U,function(){return J()?Infinity:A()},R,C,Q,J),S=a.isTruncated;
U=a.displayText;Q=a.contentRef;var d=a.hiddenRef,c=a.placeholderTruncationTextRef,N=a.hiddenTruncationTextRef;a=a.truncationTextRef;var z={},f={},I={};return _.g("truncated-text",{class:_.DV((z["yt-truncated-text"]=!0,z["yt-truncated-text--overlay"]=function(){return h()==="overlay"},z["yt-truncated-text--medium-text"]=function(){return u()==="medium"},z["yt-truncated-text--large-text"]=function(){return u()==="large"},z["yt-truncated-text--primary-text"]=function(){return h()==="primary-text"},z)),
"on:click":D,style:function(){return"line-height: "+R()+"rem;"}},_.g("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:Q,style:function(){return J()?"":"max-height: "+A()*R()+"rem;"}},_.g(_.BO,{text:U}),_.g("button",{"aria-disabled":!0,
disabled:!0,class:_.DV((f["yt-truncated-text__inline-button"]=!0,f["yt-truncated-text--hidden"]=function(){return!(!J()&&(n!=null&&n()||S()))},f)),
el:c,style:function(){return"line-height: "+R()+"rem;"}},_.g(_.BO,{text:l}))),_.g("truncated-text-content",{class:_.DV("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:d,style:function(){return J()?"":"max-height: "+A()*R()+"rem;"},
"aria-hidden":"true"},_.g(_.BO,{text:U}),_.g("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:N,style:function(){return"line-height: "+R()+"rem;"}},_.g(_.BO,{text:l}))),_.g("button",{"aria-label":b,
class:_.DV((I["yt-truncated-text__absolute-button"]=function(){return!C()},I["yt-truncated-text__bottom-button"]=function(){return C()},I["yt-truncated-text--hidden"]=function(){return!(!J()&&(n!=null&&n()||S()))},I)),
el:a,style:function(){return"line-height: "+R()+"rem;"}},_.g(_.BO,{text:l})))},"Xb");
Yvm.idomCompat={callbacks:{onTextClick:!0}};var iWk=_.w(function(l){var D=l.data;l=l.className;var U=_.dM(function(){return hCG(D())},void 0,"uDhDke"),n=_.g(_.GZ,null,_.g(_.v,{cond:function(){return D().heroText||D().image},
then:function(){return _.g(OQg,{data:D})}}),_.g(V1h,{data:D,
sizeSmall:function(){return D().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.g("yt-video-attribute-view-model",{class:l},_.g("div",{class:function(){var y=D();a:switch(y.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var A="yt-video-attribute-view-model--vertical";break a;default:A="yt-video-attribute-view-model--horizontal"}a:switch(y.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var C="yt-video-attribute-view-model--image-small";break a;default:C="yt-video-attribute-view-model--image-large"}a:switch(y.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var h=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":h="yt-video-attribute-view-model--image-avatar";break a;default:h=""}a:switch(y.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var b="yt-video-attribute-view-model--metadata-header";break a;default:b=""}a:switch(y.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var u="yt-video-attribute-view-model--container-card";break a;default:u=""}return["yt-video-attribute-view-model",A,C,
h,b,u,hCG(y)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.BK({"background-color":function(){var y=D();if(y.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var A="";else{A=y.lightColorPalette;y=y.darkColorPalette;var C,h=((C=_.Jc().resolve(_.G8(_.jQ)))==null?0:C())&&y?y:A;A=(A=h==null?void 0:h.section2Color)?_.tu(A):""}return A}})},_.g(_.v,{cond:U,
then:function(){return _.g(_.qO,{className:"yt-video-attribute-view-model__content-container",command:U,role:"group",ariaLabel:function(){return D().title}},n)},
else:function(){return _.g("div",{class:"yt-video-attribute-view-model__content-container"},n)}})))},"Yb");
iWk.idomCompat=!0;var OQg=_.w(function(l){var D=l.data;var U,n=(U=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:U(),y=function(){return n&&D().darkThemeImage?D().darkThemeImage:D().image},A=_.dM(function(){return PRN(D())},void 0,"UDqj0b");
return _.g("div",{class:"yt-video-attribute-view-model__hero-section"},_.g(_.rt,null,_.g(_.F2,{when:y},function(){return _.g(_.rh,{data:function(){return y()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.g(_.F2,{when:function(){return D().heroText}},function(){return _.g("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.g("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return D().heroText}))})),_.g(_.v,{cond:function(){return D().overflowMenuOnTap},
then:function(){return _.g("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.g(_.ey,{data:A,iconName:"MORE_VERT"}))}}))},"Zb");
OQg.idomCompat=!0;var V1h=_.w(function(l){var D=l.data;l=l.sizeSmall;var U=function(){return D().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},n=_.dM(function(){return kt(_.SQ({innertubeCommand:hCG(D())}))?"link":hCG(D())?"button":"group"},void 0,"e2MmYe"),y={};
return _.g("div",{class:_.DV("yt-video-attribute-view-model__metadata",(y["yt-video-attribute-view-model--small-font"]=l,y)),role:n},_.g("h1",{class:"yt-video-attribute-view-model__title"},function(){return D().title}),_.g(_.v,{cond:function(){return D().subtitle},
then:function(){return _.g("h4",{class:"yt-video-attribute-view-model__subtitle"},_.g(_.v,{cond:U,then:function(){return _.g(Yvm,{text:function(){return CRd(D().subtitle)},
truncationText:function(){return CRd(D().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.g("span",null,function(){return D().subtitle})}}))}}),_.g(_.v,{cond:function(){return D().secondarySubtitle},
then:function(A){return _.g("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.g(_.BO,{text:function(){var C=A();if(C!=null&&C.attachmentRuns){for(var h=[],b=_.B(C.attachmentRuns),u=b.next();!u.done;u=b.next())u=u.value,u.element&&h.push(Object.assign({},u,{element:Object.assign({},u.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));C=Object.assign({},C,{attachmentRuns:h})}return C}}))}}),_.g(_.uI,
{data:function(){return D().buttonViewModel}},{buttonViewModel:function(A){return _.g(_.t9,{data:A.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
V1h.idomCompat=!0;_.Tt(iWk,"yt-video-attribute-view-model",{props:{data:_.C$,className:_.C$}});var jS=function(){var l=_.p.apply(this,arguments)||this;l.useHighlightStyling=_.q("web_enable_deeper_metadata_highlight_styling");l.isSearch=!1;l.JSC$15360_lastScrollContainerWidth=NaN;l.pageLoadingFromNavigation=!1;l.currentIndex=0;l.supportComponentResize=!1;return l};
_.Z(jS,_.p);_.W=jS.prototype;
_.W.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}}}}}};
_.W.attached=function(){document.addEventListener("yt-page-type-changed",_.CY(this,this.onPageChange))};
_.W.detached=function(){document.removeEventListener("yt-page-type-changed",_.CY(this,this.onPageChange))};
_.W.getItemsPath=function(){return"data.cards"};
_.W.onIronResize=function(){this.updateListStyles()};
_.W.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var l;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(l=this.data)==null?void 0:l.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.q("problem_walkthrough_sd")&&!!this.centerItems};
_.W.computeCardListStyle=function(l){return l||null};
_.W.computeEmpty=function(l){return!this.get("cards.length",l)};
_.W.computeThumbnailStyle=function(l){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",l)||null};
_.W.computeHasSubtitle=function(l){return!!this.get("header.richListHeaderRenderer.subtitle",l)};
_.W.computeInitialCountNumber=function(l){return this.hasSquareMiniApp&&l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.W.computeUseFloorScrolling=function(l){return l==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.W.computeHasGameCard=function(l){return(l=this.get("cards",l))?l.some(function(D){return D.gameCardRenderer}):!1};
_.W.computeCenterHeaderTitle=function(l){return!(l==null||!l.centerHeaderTitle)};
_.W.computeHasPortraitMiniApp=function(l){return(l=l==null?void 0:l.cards)?l.some(function(D){return D.miniGameCardViewModel&&D.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.W.computeHasSquareMiniApp=function(l){return(l=l==null?void 0:l.cards)?l.some(function(D){return D.miniGameCardViewModel&&D.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.W.computeHasSkinnyWidthPortraitMiniApp=function(l){return(l=l==null?void 0:l.cards)?l.some(function(D){return D.miniGameCardViewModel&&D.miniGameCardViewModel.width===135}):!1};
_.W.computeCenterItems=function(l){return!!l};
_.W.computeHasInfoPanel=function(l){var D;return l==null?void 0:(D=l.cards)==null?void 0:D.some(function(U){return U.infoPanelContentRenderer})};
_.W.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.W.getItemByIndex=function(l){var D=this.items.children;return D&&D.length>l?D[l]:void 0};
_.W.onPageChange=function(){var l=this;this.pageLoadingFromNavigation=!0;_.Tn.addJob(function(){l.pageLoadingFromNavigation=!1;_.iu(l.hostElement,"yt-terminate-video-preview-action")},8)};
_.W.updateListStyles=function(){if(_.q("problem_walkthrough_sd")&&this.JSC$15360_scrollContainer!==void 0){var l=this.JSC$15360_scrollContainer.clientWidth;l!==this.JSC$15360_lastScrollContainerWidth&&(this.JSC$15360_lastScrollContainerWidth=l,_.Wg(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(l*.8,415)+"px"}),_.O9(this.hostElement,"iron-resize"))}};
_.QP.Object.defineProperties(jS.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.q("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return!!((l=this.data)==null?0:(D=l.cards)==null?0:(U=D[0])==null?0:U.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return!!((l=this.data)==null?0:(D=l.cards)==null?0:(U=D[0])==null?0:U.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return _.q("enable_desktop_amsterdam_info_panels")&&!!((l=this.data)==null?0:(D=l.cards)==null?0:(U=D[0])==null?0:U.infoPanelContentRenderer)}}});
jS.prototype.dataChanged=jS.prototype.dataChanged;jS.prototype.onIronResize=jS.prototype.onIronResize;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.RH.YtdHorizontalListBehavior),_.T("design:type",Object)],jS.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.m(_.U3),_.T("design:type",Object)],jS.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jS.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],jS.prototype,"useCustomColors",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],jS.prototype,"useHighlightStyling",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.T("design:type",Object)],jS.prototype,"cardListStyle",void 0);_.E([_.K({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.T("design:type",Boolean)],jS.prototype,"empty",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.T("design:type",Boolean)],jS.prototype,"hasSubtitle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.T("design:type",Boolean)],jS.prototype,"thumbnailStyle",void 0);_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.T("design:type",Boolean)],jS.prototype,"hasGameCard",void 0);_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.T("design:type",Boolean)],jS.prototype,"centerHeaderTitle",void 0);
_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.T("design:type",Boolean)],jS.prototype,"hasPortraitMiniApp",void 0);_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.T("design:type",Boolean)],jS.prototype,"hasSquareMiniApp",void 0);_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.T("design:type",Boolean)],jS.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.E([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.T("design:type",Boolean)],jS.prototype,"hasInfoPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],jS.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],jS.prototype,"inlineStructuredDescription",void 0);_.E([_.gP("#scroll-container"),_.T("design:type",HTMLDivElement)],jS.prototype,"JSC$15360_scrollContainer",void 0);
_.E([_.K({computed:"computeInitialCountNumber(data.style.type)"}),_.T("design:type",Number)],jS.prototype,"initialCount",void 0);_.E([_.K({computed:"computeUseFloorScrolling(data.style.type)"}),_.T("design:type",Boolean)],jS.prototype,"useFloorScrolling",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.T("design:type",Boolean)],jS.prototype,"centerItems",void 0);_.E([_.K(),_.T("design:type",Object)],jS.prototype,"pageLoadingFromNavigation",void 0);
_.E([_.K(),_.T("design:type",Object)],jS.prototype,"currentIndex",void 0);_.E([_.K(),_.T("design:type",Number)],jS.prototype,"scrollCount",void 0);_.E([_.K(),_.T("design:type",Object)],jS.prototype,"supportComponentResize",void 0);_.E([_.gP("#items"),_.T("design:type",HTMLDivElement)],jS.prototype,"items",void 0);_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jS.prototype,"onIronResize",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jS.prototype,"dataChanged",null);_.E([_.K({reflectToAttribute:!0}),_.t("inlineStructuredDescription"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],jS.prototype,"hideNavigationButton",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],jS.prototype,"modernChapters",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],jS.prototype,"hasVideoAttributeViewModels",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],jS.prototype,"modernInfoPanels",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],jS);
_.r(jS,"ytd-horizontal-card-list-renderer",function(){if(syy!==void 0)return syy;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return syy=l},{mode:_.Vj("kevlar_poly_si_batch_j072")?1:2});var lIv=_.w(function(l){var D=l.data;var U={};return _.g("video-summary-content-view-model",{class:_.DV("videoSummaryContentViewModelHost",l.className,(U.videoSummaryContentViewModelHostIsSearch=l.isSearch,U))},_.g(_.wt,{each:function(){var n=[],y=D().paragraphs;if(y==null||!y.length)return[];for(var A=0;A<y.length;A++){var C=_.M(y[A],Qf7),h=void 0;A>0&&(h=_.M(y[A-1],Qf7));h&&!!h.marker===!!C.marker?n[n.length-1].paragraphs.push(C):n.push({isList:!!C.marker,paragraphs:[C]})}return n},
keyBy:"INDEX"},function(n){return _.g(_.v,{cond:function(){return n().isList},
then:function(){return _.g("ul",{class:"videoSummaryContentViewModelList"},_.g(_.wt,{each:function(){return n().paragraphs},
keyBy:"INDEX"},function(y){return _.g("li",{class:"videoSummaryContentViewModelListItem"},_.g(_.BO,{text:function(){return y().text}}))}))},
else:function(){return _.g("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.g(_.wt,{each:function(){return n().paragraphs},
keyBy:"INDEX"},function(y){return _.g("p",{class:"videoSummaryContentViewModelParagraph"},_.g(_.BO,{text:function(){return y().text}}))}))}})}),_.g(_.v,{cond:function(){return!!_.M(D().likeButtonViewModel,_.Vw)&&!!_.M(D().dislikeButtonViewModel,_.Oi)},
then:function(){return _.g("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.g("div",{class:"videoSummaryContentViewModelLikeButton"},_.g(_.n_,{data:function(){return _.M(D().likeButtonViewModel,_.Vw)},
disableIconAnimation:!0})),_.g(_.Uh,{data:function(){return _.M(D().dislikeButtonViewModel,_.Oi)}}))}}))},"ac");
lIv.idomCompat=!0;_.Tt(lIv,"video-summary-content-view-model",{props:{data:_.C$,isSearch:_.C$,className:_.C$}});var FQ=function(){var l=_.p.apply(this,arguments)||this;var D,U;l.isExpanded=(U=(D=l.data)==null?void 0:D.isExpanded)!=null?U:!1;l.disableExpand=!1;l.showProminentLabel=!1;l.showRightSideLabel=!0;l.toggleExpandableContent=function(n){l.disableExpand||(n.stopPropagation(),_.Nh(_.$f(n),l.hostElement,["info","expanded-subtitle"])||(l.isExpanded=!l.isExpanded,l.ytRendererBehavior.logExplicitClick(l.data),l.JSC$15371_cardList&&!_.q("expandable_metadata_a11y_fix_ks")&&_.u6(l,function(){_.CB(l.hostElement)})))};
l.useSquareThumbnail=!1;l.startX=0;return l};
_.Z(FQ,_.p);_.W=FQ.prototype;_.W.computeUseSquareThumbnail=function(){var l;return(l=this.data)==null?void 0:l.useSquareThumbnail};
_.W.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"}}}}};
_.W.dataChanged=function(){if(this.data){var l,D;this.isExpanded=(D=(l=this.data)==null?void 0:l.isExpanded)!=null?D:!1;var U,n,y,A;if(l=this.isDarkTheme()?(U=this.data)==null?void 0:(n=U.colorData)==null?void 0:n.darkColorPalette:(y=this.data)==null?void 0:(A=y.colorData)==null?void 0:A.lightColorPalette){var C,h;if((C=this.data)==null?0:(h=C.colorData)==null?0:h.vibrantColorPalette)l.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.qh(this.hostElement,l)}}};
_.W.isExpandedChanged=function(){this.isExpanded&&this.JSC$15371_cardList&&_.O9(this.JSC$15371_cardList,"iron-resize")};
_.W.computeIsExpanded=function(l){return!!l.isExpanded};
_.W.computeShowProminentLabel=function(l,D){var U;return!!(l==null?0:(U=l.header)==null?0:U.showLeadingCollapsedLabel)&&!D};
_.W.computeShowRightSideLabel=function(l,D){var U;return!(l==null?0:(U=l.header)==null?0:U.showLeadingCollapsedLabel)&&!D};
_.W.captureContentClick=function(l){if(!this.disableExpand)if(_.q("expandable_metadata_fix_killswitch")){var D=l.target;_.jBy(D,"ytd-macro-markers-list-item-renderer")||l.stopPropagation();(D==null?void 0:D.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Nh(_.$f(l),this.hostElement,["items"])||_.$o(_.$f(l),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.W.timestampClick=function(l){l.stopPropagation();var D,U;(l=(D=this.data)==null?void 0:(U=D.header)==null?void 0:U.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(l)};
_.W.onDown=function(l){l.stopPropagation();this.startX=l.detail?l.detail.x:0};
_.W.onUp=function(l){this.skipKeyInteraction(l)&&l.stopPropagation()};
_.W.skipKeyInteraction=function(l){var D=l.target;if((D==null?void 0:D.id)==="scroll-container"||(D==null?void 0:D.id)==="items"||l.detail&&l.detail.x!==this.startX)return!0;l=_.$f(l);l=_.B(l);for(D=l.next();!D.done;D=l.next()){D=D.value;if(D===this.hostElement)break;if(D.hasAttribute&&D.hasAttribute("skip-key-interaction"))return!0}return!1};
_.W.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.QP.Object.defineProperties(FQ.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var l;return!!_.M((l=this.data)==null?void 0:l.expandedContent,vp_)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var l;return!!_.M((l=this.data)==null?void 0:l.expandedContent,_.uYH)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var l,D;return!((l=this.data)==null||!l.useCustomColors)&&!((D=this.data)==null||!D.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var l,D;return!!((l=this.data)==null?0:(D=l.header)==null?0:D.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var l,D;return!!((l=this.data)==null?0:(D=l.header)==null?0:D.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var l,D;return!!((l=this.data)==null?0:(D=l.header)==null?0:D.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
FQ.prototype.onUp=FQ.prototype.onUp;FQ.prototype.onDown=FQ.prototype.onDown;FQ.prototype.isExpandedChanged=FQ.prototype.isExpandedChanged;FQ.prototype.dataChanged=FQ.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],FQ.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],FQ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],FQ.prototype,"isExpanded",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],FQ.prototype,"disableExpand",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],FQ.prototype,"isSearch",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],FQ.prototype,"isWatch",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.T("design:type",Object)],FQ.prototype,"showProminentLabel",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.T("design:type",Object)],FQ.prototype,"showRightSideLabel",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],FQ.prototype,"hasVideoSummary",null);_.E([_.K({value:!1,reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],FQ.prototype,"hasLockupViewModel",null);_.E([_.K({reflectToAttribute:!0}),_.t("data","isWatch"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],FQ.prototype,"useCustomColors",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data","isExpanded"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],FQ.prototype,"showInfoButton",null);_.E([_.t("data","isExpanded"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],FQ.prototype,"showTimestamp",null);_.E([_.t("data","isExpanded"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],FQ.prototype,"showExpandedSubtitle",null);
_.E([_.t("data","isExpanded"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],FQ.prototype,"showThumbnail",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],FQ.prototype,"useVppShoppingDestinationStyle",null);_.E([_.K(),_.T("design:type",Object)],FQ.prototype,"toggleExpandableContent",void 0);_.E([_.gP("ytd-horizontal-card-list-renderer"),_.T("design:type",Object)],FQ.prototype,"JSC$15371_cardList",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.T("design:type",Object)],FQ.prototype,"useSquareThumbnail",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],FQ.prototype,"dataChanged",null);_.E([_.Pg("isExpanded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],FQ.prototype,"isExpandedChanged",null);
_.E([_.hj("down"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],FQ.prototype,"onDown",null);_.E([_.hj("up"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],FQ.prototype,"onUp",null);_.E([_.x({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],FQ);
_.r(FQ,"ytd-expandable-metadata-renderer",function(){if(ily!==void 0)return ily;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ily=l},{mode:1});var DR5,UR5=function(){if(DR5!==void 0)return DR5;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return DR5=l};_.Tt(_.DD,"yt-avatar-stack-view-model",{props:{className:_.C$,data:_.C$,overrides:_.C$,isOverlay:_.C$,useMediumText:_.C$,decorations:_.C$,hideAvatar:_.C$}});_.RL("itemSectionRenderer","videoRenderer","ytd-video-renderer");var o5=function(){var l=_.p.apply(this,arguments)||this;l.disableExpand=!1;l.shouldShowChannelInfo=!1;l.hasAttributedBylineText=!1;l.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return l};
_.Z(o5,_.p);_.W=o5.prototype;_.W.computeUseSearchUi=function(){var l,D;return this.isSearch||((l=this.data)==null?void 0:(D=l.style)==null?void 0:D.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.W.computeUseThreeLineTitle=function(){var l;return((l=this.data)==null?void 0:l.maxTitleLines)===3};
_.W.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.q("polymer_video_renderer_defer_menu")&&!Fn5?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.W.attached=function(){_.nY(this.hostElement,"blue-links",_.q("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.yj(_.iJ(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var l=this.get("data.buttons.buttonRenderer.serviceEndpoint"),D;l&&((D=_.M(l.commandMetadata,_.zd))==null?0:D.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(l);this.updateInlinePreviewHoverListeners()};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15376_inlinePreviewHoverListener=Sq({mediaRenderer:this,lockupElement:this.JSC$15376_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.W.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$15376_inlinePreviewHoverListener)==null||f4(l)};
_.W.onTextWrapperClick=function(l){var D,U,n=this.hideTranslation?(D=this.data)==null?void 0:D.untranslatedNavigationEndpoint:(U=this.data)==null?void 0:U.navigationEndpoint;D=_.Nh(_.$f(l),this.hostElement,["expandable-metadata"]);!n||D&&!_.q("expandable_metadata_fix_killswitch")||_.$o(_.$f(l),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.O9(this.hostElement,"yt-navigate",{endpoint:n})};
_.W.computeThumbnailWidth=function(l,D,U,n,y){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:n?y==="MASSIVE"?600:y==="BIG"?500:y==="MEDIUM"?450:420:U?360:D?128:l?210:246};
_.W.computeUseBiggerThumbs=function(l){return l&&_.q("enable_desktop_search_bigger_thumbs")};
_.W.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.W.computeHasAttributedBylineText=function(){var l;return!((l=this.data)==null||!l.attributedBylineText)};
_.W.computeVideoStyle=function(){if(_.q("enable_video_style")){var l,D;return(l=this.data)==null?void 0:(D=l.style)==null?void 0:D.value}};
_.W.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.W.handleHideItemSectionVideosByIdCommand=function(l){var D;l=(D=_.M(l,Fzy))==null?void 0:D.videoId;this.data&&this.data.videoId===l&&(this.isHidden=!0)};
_.W.getMetadataSnippetContainerClass=function(l){return l?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.W.computeTitleText=function(l,D,U){return l?U:D};
_.W.computeDescriptionSnippet=function(l,D,U){return l?U:D};
_.W.computeSnippetText=function(l,D,U){return l?U:D};
_.W.computeNavigationEndpoint=function(l,D){return l?D==null?void 0:D.untranslatedNavigationEndpoint:D==null?void 0:D.navigationEndpoint};
_.W.hideInlineTitleIcon=function(l,D){return l||!D};
_.QP.Object.defineProperties(o5.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 l;return(l=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?l:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return!!(this==null?0:(l=this.data)==null?0:(D=l.channelThumbnailSupportedRenderers)==null?0:(U=D.channelThumbnailWithLinkRenderer)==null?0:U.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var l;return!!_.M((l=this.data)==null?void 0:l.avatar,vO1)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$15376_inlinePreviewHoverListener)==null?0:yc(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.QP.Object.defineProperties(o5,{template:{configurable:!0,enumerable:!0,get:function(){return UR5()}}});
o5.prototype.dataChanged=o5.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],o5.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],o5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],o5.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.m(_.hY),_.T("design:type",Object)],o5.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],o5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],o5.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],o5.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],o5.prototype,"isBackstageVideo",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],o5.prototype,"isPostCompactVideo",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],o5.prototype,"isHistory",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],o5.prototype,"isRichGridVideoPost",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],o5.prototype,"isHidden",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],o5.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.T("design:type",Boolean)],o5.prototype,"useSearchUi",void 0);_.E([_.K({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.T("design:type",Boolean)],o5.prototype,"useThreeLineTitle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.T("design:type",Boolean)],o5.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.T("design:type",Object)],o5.prototype,"videoStyle",void 0);_.E([_.K({computed:"computeDisableExpand(videoStyle)"}),_.T("design:type",Object)],o5.prototype,"disableExpand",void 0);
_.E([_.K({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.T("design:type",Object)],o5.prototype,"shouldShowChannelInfo",void 0);_.E([_.K({computed:"computeHasAttributedBylineText(data)"}),_.T("design:type",Object)],o5.prototype,"hasAttributedBylineText",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.e_("desktop_search_bigger_thumbs_style")}}),
_.T("design:type",String)],o5.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.T("design:type",String)],o5.prototype,"inlineTitleIcon",void 0);_.E([_.K({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.T("design:type",Object)],o5.prototype,"computedNavigationEndpoint",void 0);_.E([_.K({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(l,D){return _.yT(l.entities,"searchVideoResultEntity",D)}}),
_.T("design:type",Object)],o5.prototype,"searchVideoResultEntity",void 0);_.E([_.gP("ytd-thumbnail"),_.T("design:type",HTMLElement)],o5.prototype,"thumbnail",void 0);_.E([_.gP("#dismissible"),_.T("design:type",HTMLElement)],o5.prototype,"JSC$15376_dismissibleMedia",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],o5.prototype,"dataChanged",null);
_.E([_.t("searchVideoResultEntity"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],o5.prototype,"hideTranslation",null);_.E([_.t("searchVideoResultEntity"),_.T("design:type",Array),_.T("design:paramtypes",[])],o5.prototype,"hiddenBadgeGroups",null);_.E([_.t("data","useAvatar"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],o5.prototype,"shouldShowChannelThumbnail",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],o5.prototype,"useAvatar",null);
_.E([_.t("lockupIsHovered"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],o5.prototype,"isHovered",null);_.E([_.x({is:"ytd-video-renderer",disableElementRegistration:!0})],o5);_.r(o5,"ytd-video-renderer",function(){return UR5()},{mode:_.Vj("kevlar_poly_si_batch_j047")?1:2});var wR=function(){var l=_.p.apply(this,arguments)||this;l.editDialog=null;l.roundedContainer=!0;l.isLoading=!1;l.isRichGrid=!1;l.isRichGridRepost=!1;l.reduceSidePaddings=_.q("reduce_side_paddings_in_shelf");l.JSC$15383_spinnerEl=null;return l};
_.Z(wR,_.p);_.W=wR.prototype;
_.W.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"}}}};
_.W.contentTextChanged=function(){this.expander.reset()};
_.W.dataChanged=function(){var l=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var D=0,U=this.data.actions&&this.data.actions.length;D<U;D++)this.openEditDialog(_.M(this.data.actions[D],MLv));if((D=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(D=this.get("buttonRenderer.hint.hintRenderer.hintId",D))&&D.startsWith("share-post-hint")){var n=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(n){_.dv.getInstance();var y=Kd(_.$B(_.C3("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Tn.addLowPriorityJob(function(){_.DP(l.hostElement,y,n)})}}}};
_.W.updatePoll=function(l){l>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.W.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15383_spinnerEl||(this.JSC$15383_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.iJ(this.hostElement).appendChild(this.JSC$15383_spinnerEl));this.JSC$15383_spinnerEl&&(this.JSC$15383_spinnerEl.active=this.isLoading)};
_.W.onYtNavigate=function(l){var D=this.get("updateCommentDialogEndpoint",l.detail.endpoint);D&&(this.openEditDialog(D),l.stopPropagation())};
_.W.onYtCommentboxDismiss=function(){this.editDialog=null};
_.W.onYtCommentPollRevert=function(l,D){D&&this.updatePoll(D.selectedChoiceIndex)};
_.W.onYtServiceRequestSent=function(l,D){var U;D.endpoint&&(_.M(D.endpoint,SA7)||_.M(D.endpoint,XRk)&&((U=_.M(D.endpoint,XRk))==null||!U.clientActions))&&(this.isLoading=!0);if(D.actions)for(l=0;l<D.actions.length;l++)U=D.actions[l],_.M(U,wA)&&(U=this.get("updateBackstagePollAction.selectedChoiceIndex",U),U==void 0&&(U=-1),this.updatePoll(U))};
_.W.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.W.openEditDialog=function(l){l&&l.dialog&&(this.editDialog=l.dialog,l=this.editDialogEl.firstElementChild)&&(l.focus(),l.openDialog&&l.openDialog())};
_.W.computeIsPostHidden=function(l,D){return!!l||D};
_.W.computeSurfaceType=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.W.computeUsesCompactLockup=function(l){return l==="BACKSTAGE_SURFACE_TYPE_HOME"||l==="BACKSTAGE_SURFACE_TYPE_SEARCH"||l==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||l==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||l==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||l==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.W.computeShowWithoutToolbar=function(l){return!l.actionButtons&&!l.actionMenu};
_.W.computePostAttachment=function(l){if(l.backstageAttachment){if(_.M(l.backstageAttachment,BS7))return"poll";if(_.M(l.backstageAttachment,Ekm))return"quiz";if(_.M(l.backstageAttachment,_.Wq))return"video";if(_.M(l.backstageAttachment,T97))return"uploaded-videos";if(_.M(l.backstageAttachment,EKg))return l.contentText?"image":"image-only";if(_.M(l.backstageAttachment,f8g))return"playlist"}return"none"};
_.W.computePostTabIndex=function(l){return l?0:-1};
_.W.computeButtonTooltipPosition=function(l){return this.computeUsesCompactLockup(l)?"top":"bottom"};
_.W.computeHasText=function(l){return!(l==null||!l.contentText)};
_.W.onTap=function(l){var D,U;if(((D=this.data)==null?0:D.navigationEndpoint)&&((U=this.data)==null?void 0:U.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var n;((n=this.data)==null?0:n.navigationEndpoint)&&!_.$o(_.$f(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.QP.Object.defineProperties(wR.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.voteCount)||_.$B("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,BS7))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,T97))}}});
wR.prototype.onYtServiceRequestCompleted=wR.prototype.onYtServiceRequestCompleted;wR.prototype.onYtServiceRequestSent=wR.prototype.onYtServiceRequestSent;wR.prototype.onYtCommentPollRevert=wR.prototype.onYtCommentPollRevert;wR.prototype.onYtCommentboxDismiss=wR.prototype.onYtCommentboxDismiss;wR.prototype.onYtNavigate=wR.prototype.onYtNavigate;wR.prototype.isLoadingChanged=wR.prototype.isLoadingChanged;wR.prototype.dataChanged=wR.prototype.dataChanged;wR.prototype.contentTextChanged=wR.prototype.contentTextChanged;
_.E([_.m(_.U3),_.T("design:type",Object)],wR.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],wR.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],wR.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],wR.prototype,"editDialog",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],wR.prototype,"roundedContainer",void 0);_.E([_.K(),_.T("design:type",Object)],wR.prototype,"isLoading",void 0);_.E([_.K({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.T("design:type",String)],wR.prototype,"surface",void 0);
_.E([_.K({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.T("design:type",Boolean)],wR.prototype,"usesCompactLockup",void 0);_.E([_.K({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],wR.prototype,"showWithoutToolbar",void 0);_.E([_.K({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.T("design:type",String)],wR.prototype,"attachment",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],wR.prototype,"isRichGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],wR.prototype,"isRichGridRepost",void 0);_.E([_.K({reflectToAttribute:!0,value:_.q("use_better_post_dismissals")}),_.T("design:type",Boolean)],wR.prototype,"useBetterPostDismissals",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],wR.prototype,"reduceSidePaddings",void 0);
_.E([_.K({computed:"computeHasText(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],wR.prototype,"hasText",void 0);_.E([_.gP("#expander"),_.T("design:type",Object)],wR.prototype,"expander",void 0);_.E([_.gP("#action-buttons"),_.T("design:type",Object)],wR.prototype,"actionButtons",void 0);_.E([_.gP("#edit-dialog"),_.T("design:type",HTMLElement)],wR.prototype,"editDialogEl",void 0);
_.E([_.Pg("data.contentText"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wR.prototype,"contentTextChanged",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wR.prototype,"dataChanged",null);_.E([_.Pg("isLoading"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wR.prototype,"isLoadingChanged",null);
_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],wR.prototype,"onYtNavigate",null);_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wR.prototype,"onYtCommentboxDismiss",null);_.E([_.hj("yt-comment-poll-revert"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],wR.prototype,"onYtCommentPollRevert",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],wR.prototype,"onYtServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],wR.prototype,"onYtServiceRequestCompleted",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],wR.prototype,"voteCount",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],wR.prototype,"commentCount",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],wR.prototype,"hasPoll",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],wR.prototype,"hasUploadedVideo",null);_.E([_.x({is:"ytd-post-renderer",disableElementRegistration:!0})],wR);
_.r(wR,"ytd-post-renderer",function(){if(M4k!==void 0)return M4k;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return M4k=l},{mode:1});var nIh;var ysH;var rR=function(){return _.p.apply(this,arguments)||this};
_.Z(rR,_.p);rR.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.RH.YtdHorizontalListBehavior),_.T("design:type",Object)],rR.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],rR.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],rR.prototype,"data",void 0);
_.E([_.K({value:"$.items.children"}),_.T("design:type",String)],rR.prototype,"itemsPath",void 0);_.E([_.K({value:1}),_.T("design:type",Number)],rR.prototype,"initialCount",void 0);_.E([_.K({reflectToAttribute:!0,value:_.q("enable_community_page_on_desktop")}),_.T("design:type",Boolean)],rR.prototype,"useSmallerPostImageAttachments",void 0);_.E([_.K(),_.T("design:type",String)],rR.prototype,"surface",void 0);_.E([_.x({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],rR);
_.r(rR,"ytd-post-multi-image-renderer",function(){if(ysH!==void 0)return ysH;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return ysH=l},{mode:_.Vj("kevlar_poly_si_batch_j079")?1:2});var Ash={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
zk=function(){var l=_.p.apply(this,arguments)||this;l.hasInlineCommentSection=!1;l.editDialog=null;l.isLoading=!1;l.shouldHideAuthor=!1;l.shouldShowVideoTime=!1;l.isInEngagementPanel=!1;l.hideBorder=!1;l.usesFullLockup=!1;l.shouldShowMenuInCompactView=!1;l.JSC$15398_spinnerEl=null;l.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return l};
_.Z(zk,_.p);_.W=zk.prototype;_.W.configureRendererStamper=function(){return Ash};
_.W.computeIsPollHeaderEnabled=function(l){return(l==null?void 0:l.pollMetadataIcon)!=null};
_.W.getPublishTimeStampString=function(l,D){D=new Date((Number(D)-60*((new Date).getTimezoneOffset()-(new Date(Number(D)*1E3)).getTimezoneOffset()))*1E3);D=(new f7(10)).format(D);if(l&&l.runs&&l.runs.length)for(var U=0;U<l.runs.length;U++)l.runs[U].text&&(l.runs[U].text=l.runs[U].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",D));return l};
_.W.created=function(){this.JSC$15398_spinnerEl=null};
_.W.contentTextChanged=function(){this.expander.reset()};
_.W.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var l;if((l=this.data)==null?0:l.actions){l=_.B(this.data.actions);for(var D=l.next();!D.done;D=l.next())this.openEditDialog(_.M(D.value,MLv))}};
_.W.handleSignalActionOpenPostCommentDialogAction=function(){_.iJ(this.hostElement).querySelector("#action-buttons").reply()};
_.W.updatePoll=function(l,D){D&&this.set("data.pollMetadataVoteCountText",D);this.hasInlineCommentSection&&(l=l>=0,D=_.iJ(this.hostElement).querySelector("#action-buttons"),l?D.reply():D.hideReplyDialog())};
_.W.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15398_spinnerEl||(this.JSC$15398_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.iJ(this.hostElement).appendChild(this.JSC$15398_spinnerEl));this.JSC$15398_spinnerEl&&(this.JSC$15398_spinnerEl.active=this.isLoading)};
_.W.onYtNavigate=function(l){var D=this.get("updateCommentDialogEndpoint",l.detail.endpoint);D&&(this.openEditDialog(D),l.stopPropagation())};
_.W.onYtCommentboxDismiss=function(){this.editDialog=null};
_.W.onYtCommentPollRevert=function(l,D){D&&this.updatePoll(D.selectedChoiceIndex,D.totalVotes)};
_.W.onYtServiceRequestSent=function(l,D){l.stopPropagation();l=_.M(D.endpoint,XRk);if(_.M(D.endpoint,SA7)||l&&!l.clientActions)this.isLoading=!0;if(D.actions)for(l=0;l<D.actions.length;l++){var U=D.actions[l],n=_.M(U,wA);n&&(U=this.get("updateBackstagePollAction.selectedChoiceIndex",U),U===void 0&&(U=-1),this.updatePoll(U,n.totalVotes))}};
_.W.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.W.openEditDialog=function(l){l&&l.dialog&&(this.editDialog=l.dialog,l=this.editDialogElement.firstElementChild)&&(l.focus(),l.openDialog&&l.openDialog())};
_.W.computeIsBodyHidden=function(l,D){return!!l||D};
_.QP.Object.defineProperties(zk.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var l=this.data,D=l.showPostAuthorBackgroundHighlight,U=l.postAuthorBadgeType,n=l.authorEndpoint;if(!D&&U!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&U!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var y,A,C;l=_.$B(((y=l.authorText)==null?void 0:(A=y.runs)==null?void 0:(C=A[0])==null?void 0:C.text)||"");y=void 0;switch(U){case "POST_AUTHOR_BADGE_TYPE_ARTIST":y={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":y={iconType:D?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:l,authorEndpoint:n,authorCreator:D,icon:y}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var l,D;if((l=this.data)==null?0:(D=l.pollMetadataIcon)==null?0:D.iconType)return _.UV(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.voteCount)||_.$B("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,BS7))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,Ekm))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,T97))}}});
zk.prototype.onYtServiceRequestCompleted=zk.prototype.onYtServiceRequestCompleted;zk.prototype.onYtServiceRequestSent=zk.prototype.onYtServiceRequestSent;zk.prototype.onYtCommentPollRevert=zk.prototype.onYtCommentPollRevert;zk.prototype.onYtCommentboxDismiss=zk.prototype.onYtCommentboxDismiss;zk.prototype.onYtNavigate=zk.prototype.onYtNavigate;zk.prototype.isLoadingChanged=zk.prototype.isLoadingChanged;zk.prototype.dataChanged=zk.prototype.dataChanged;zk.prototype.contentTextChanged=zk.prototype.contentTextChanged;
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],zk.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zk.prototype,"rendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zk.prototype,"rendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],zk.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.gP("#contentTextExpander"),_.T("design:type",Object)],zk.prototype,"expander",void 0);_.E([_.gP("#edit-dialog"),_.T("design:type",Element)],zk.prototype,"editDialogElement",void 0);_.E([_.K(),_.T("design:type",Object)],zk.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],zk.prototype,"hasInlineCommentSection",void 0);_.E([_.K(),_.T("design:type",Object)],zk.prototype,"editDialog",void 0);_.E([_.K(),_.T("design:type",Object)],zk.prototype,"isLoading",void 0);
_.E([_.K({computed:"computeIsPollHeaderEnabled(data)"}),_.T("design:type",Boolean)],zk.prototype,"isPollHeaderEnabled",void 0);_.E([_.K(),_.T("design:type",Object)],zk.prototype,"shouldHideAuthor",void 0);_.E([_.K(),_.T("design:type",Object)],zk.prototype,"shouldShowVideoTime",void 0);_.E([_.K(),_.T("design:type",Object)],zk.prototype,"isInEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],zk.prototype,"hideBorder",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],zk.prototype,"usesFullLockup",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],zk.prototype,"shouldShowMenuInCompactView",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],zk.prototype,"authorCommentBadge",null);_.E([_.t("isInEngagementPanel"),_.T("design:type",Number),_.T("design:paramtypes",[])],zk.prototype,"postTextMaxLines",null);
_.E([_.t("data.icon.iconType"),_.T("design:type",Object),_.T("design:paramtypes",[])],zk.prototype,"pollIcon",null);_.E([_.Pg("data.contentText"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zk.prototype,"contentTextChanged",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zk.prototype,"dataChanged",null);
_.E([_.Pg("isLoading"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zk.prototype,"isLoadingChanged",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],zk.prototype,"onYtNavigate",null);_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zk.prototype,"onYtCommentboxDismiss",null);
_.E([_.hj("yt-comment-poll-revert"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],zk.prototype,"onYtCommentPollRevert",null);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],zk.prototype,"onYtServiceRequestSent",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],zk.prototype,"onYtServiceRequestCompleted",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],zk.prototype,"voteCount",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],zk.prototype,"commentCount",null);
_.E([_.t("data.backstageAttachment"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],zk.prototype,"hasPoll",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],zk.prototype,"hasQuiz",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],zk.prototype,"hasUploadedVideo",null);_.E([_.x({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],zk);
_.r(zk,"ytd-backstage-post-renderer",function(){if(nIh!==void 0)return nIh;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return nIh=l},{mode:1});var WT8;var fK=function(){var l=_.p.apply(this,arguments)||this;l.editDialog=null;l.showExpandButton=!1;l.isRichGrid=!1;l.usesFullLockup=!1;return l};
_.Z(fK,_.p);_.W=fK.prototype;_.W.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"}}}};
_.W.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.W.computeShowExpandButton=function(l){return this.usesCompactLockup||l&&l.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.W.computeUsesCompactLockup=function(l){return!!l.condensedContent};
_.W.computeShowFullContentText=function(l){return!l};
_.W.onYtNavigate=function(l){l=this.get("updateCommentDialogEndpoint",l.detail.endpoint);this.openEditDialog(l)};
_.W.onYtCommentboxDismiss=function(){this.editDialog=null};
_.W.openEditDialog=function(l){l&&l.dialog&&(this.editDialog=l.dialog,l=this.repostEditDialogEl.firstElementChild)&&(l.focus(),l.openDialog&&l.openDialog())};
_.W.onTap=function(l){if(this.data){var D=null;this.usesCompactLockup&&!_.$o(_.$f(l)||[],this.hostElement,["YT-IMG-SHADOW"])?D=this.get("navigationEndpoint",this.data):l.target===this.moreButtonEl&&(D=this.get("navigationEndpoint",l.target.data));D&&_.O9(this.hostElement,"yt-navigate",{endpoint:D})}};
fK.prototype.onYtCommentboxDismiss=fK.prototype.onYtCommentboxDismiss;fK.prototype.onYtNavigate=fK.prototype.onYtNavigate;fK.prototype.dataChanged=fK.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fK.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],fK.prototype,"editDialog",void 0);_.E([_.K({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],fK.prototype,"usesCompactLockup",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fK.prototype,"showExpandButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fK.prototype,"isRichGrid",void 0);
_.E([_.K({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.T("design:type",Boolean)],fK.prototype,"showFullContentText",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fK.prototype,"usesFullLockup",void 0);_.E([_.gP("#more"),_.T("design:type",Object)],fK.prototype,"moreButtonEl",void 0);_.E([_.gP("#repost-content-text"),_.T("design:type",HTMLElement)],fK.prototype,"repostContentTextEl",void 0);
_.E([_.gP("#repost-edit-dialog"),_.T("design:type",HTMLElement)],fK.prototype,"repostEditDialogEl",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fK.prototype,"dataChanged",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],fK.prototype,"onYtNavigate",null);
_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fK.prototype,"onYtCommentboxDismiss",null);_.E([_.x({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],fK);
_.r(fK,"ytd-shared-post-renderer",function(){if(WT8!==void 0)return WT8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return WT8=l},{mode:1});var Bqy;var CkH;var $d=function(){return _.p.apply(this,arguments)||this};
_.Z($d,_.p);$d.prototype.attached=function(){var l=this;this.networkStatusManager||(this.networkStatusManager=new _.AL,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){l.onlineHandler()}))};
$d.prototype.detached=function(){var l=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){l.onlineHandler()}),delete this.networkStatusManager)};
$d.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],$d.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$d.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],$d);
_.r($d,"ytd-reload-page-button-renderer",function(){if(CkH!==void 0)return CkH;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
return CkH=l},{mode:1});var hD7={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"},NY=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(NY,_.p);_.W=NY.prototype;_.W.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.W.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.W.computeHasBodyText=function(l){return!!l.bodyText};
_.W.computeButtons=function(l){var D=[];l.ctaButton&&D.push(l.ctaButton);l.secondaryButton&&D.push(l.secondaryButton);return D};
_.W.computeRendererStyle=function(l){return l.style?l.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():l.icon?"":"no-icon"};
_.W.getIconName=function(l,D){D=D===void 0?!1:D;if(l===void 0)return"";l=this.get("icon.iconType",l);var U;_.q("enable_hlp_client_icon_pick")?U=this.getThemedIcon(l,D):U=l;(D=hD7[U])||(D="yt-icons");return[D,U].join(":")};
_.W.getThemedIcon=function(l,D){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(l)?D?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(l)?D?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":l};
_.W.isThumbnail=function(l){return!!l.thumbnail};
_.W.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.W.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],NY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],NY.prototype,"data",void 0);
_.E([_.K({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.T("design:type",String)],NY.prototype,"rendererStyle",void 0);_.E([_.K({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.T("design:type",String)],NY.prototype,"iconName",void 0);_.E([_.K({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],NY.prototype,"thumbnail",void 0);_.E([_.K({computed:"computeButtons(data)"}),_.T("design:type",Array)],NY.prototype,"buttons",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],NY.prototype,"isDarkTheme",void 0);_.E([_.K({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],NY.prototype,"hasBodyText",void 0);_.E([_.x({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],NY);
_.Ol()(NY,"ytd-background-promo-renderer",function(){if(Bqy===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);Bqy=l}l=Bqy;return l},{allowedProps:["data"],
mode:1});var Pkg;var sR=function(){return _.p.apply(this,arguments)||this};
_.Z(sR,_.p);_.QP.Object.defineProperties(sR.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n,y,A;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(l=this.data)==null?void 0:(D=l.thumbnail)==null?void 0:D.sampledThumbnailColor,vibrantColorPalette:(U=this.data)==null?void 0:(n=U.thumbnail)==null?void 0:n.vibrantColorPalette,darkColorPalette:(y=this.data)==null?void 0:(A=y.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],sR.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],sR.prototype,"collectionStack",null);_.E([_.x({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],sR);
_.r(sR,"ytd-compact-station-renderer",function(){if(Pkg!==void 0)return Pkg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Pkg=l},{mode:1});var bW5;var ER=function(){var l=_.p.apply(this,arguments)||this;l.isRichGrid=!1;return l};
_.Z(ER,_.p);ER.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ER.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ER.prototype,"isRichGrid",void 0);_.E([_.x({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],ER);
_.r(ER,"ytd-grid-channel-renderer",function(){if(bW5!==void 0)return bW5;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return bW5=l},{mode:1});var gI1;var Tk=function(){return _.p.apply(this,arguments)||this};
_.Z(Tk,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Tk.prototype,"data",void 0);_.E([_.x({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Tk);
_.r(Tk,"ytd-grid-movie-playlist-renderer",function(){if(gI1!==void 0)return gI1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return gI1=l},{mode:1});var uF1;var I5=function(){var l=_.p.apply(this,arguments)||this;l.downloadProgress=0;l.transferState="TRANSFER_STATE_UNKNOWN";l.modernButtons=_.q("web_modern_buttons");return l};
_.Z(I5,_.p);I5.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
I5.prototype.configureRendererStamper=function(){return{"data.menu":wg}};
I5.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
I5.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.q("woffle_playlist_renderer_killswitch")){var l,D=cKK(this.entityInfo,this.transferState,this.downloadProgress,(l=this.data)==null?void 0:l.playlistId,this.isOnline);l=D.viewPlaylistText;var U=D.badges;D=D.thumbnailOverlays;this.isDownloads=!!l||!!U;this.set("data.viewPlaylistText",l);U&&U.length>0&&this.set("data.badges",U);D&&D.length>0&&this.set("data.thumbnailOverlays",
D)}};
_.QP.Object.defineProperties(I5.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 l;return!((l=this.data)==null?0:l.menu)}}});
I5.prototype.transferStateChanged=I5.prototype.transferStateChanged;I5.prototype.dataChanged=I5.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],I5.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],I5.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K({selector:_.N9_,selectorArgs:["data.playlistId"]}),_.T("design:type",Object)],I5.prototype,"downloadProgress",void 0);_.E([_.K({selector:_.K7,selectorArgs:["data.playlistId"]}),_.T("design:type",Object)],I5.prototype,"transferState",void 0);_.E([_.K({selector:$Oo,selectorArgs:["data.playlistId"]}),_.T("design:type",Object)],I5.prototype,"entityInfo",void 0);_.E([_.K({selector:_.kB}),_.T("design:type",Boolean)],I5.prototype,"isOnline",void 0);
_.E([_.K(),_.T("design:type",Object)],I5.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],I5.prototype,"downloadRenderData",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],I5.prototype,"modernButtons",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],I5.prototype,"isDownloads",void 0);_.E([_.t("transferState"),_.K({reflectToAttribute:!0}),_.T("design:type",String),_.T("design:paramtypes",[])],I5.prototype,"downloadState",null);
_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],I5.prototype,"menuHidden",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],I5.prototype,"dataChanged",null);_.E([_.GY("transferState","downloadProgress","isOnline"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],I5.prototype,"transferStateChanged",null);
_.E([_.x({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],I5);
_.r(I5,"ytd-grid-playlist-renderer",function(){if(uF1!==void 0)return uF1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return uF1=l},{mode:1});var vIv;var Hw=function(){return _.p.apply(this,arguments)||this};
_.Z(Hw,_.p);Hw.prototype.configureRendererStamper=function(){return{"data.menu":wg,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.QP.Object.defineProperties(Hw.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n,y,A;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(l=this.data)==null?void 0:(D=l.thumbnail)==null?void 0:D.sampledThumbnailColor,vibrantColorPalette:(U=this.data)==null?void 0:(n=U.thumbnail)==null?void 0:n.vibrantColorPalette,darkColorPalette:(y=this.data)==null?void 0:(A=y.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],Hw.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],Hw.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Hw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Hw.prototype,"data",void 0);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Hw.prototype,"collectionStack",null);_.E([_.x({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Hw);
_.r(Hw,"ytd-grid-radio-renderer",function(){if(vIv!==void 0)return vIv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vIv=l},{mode:1});var Q0k;var Yd=function(){return _.p.apply(this,arguments)||this};
_.Z(Yd,_.p);Yd.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Yd.prototype.computeNavigationEndpoint=function(l){return Fzl(l==null?void 0:l.navigationEndpoint)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Yd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],Yd.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Yd.prototype,"data",void 0);_.E([_.K({computed:"computeNavigationEndpoint(data)"}),_.T("design:type",Object)],Yd.prototype,"computedNavigationEndpoint",void 0);
_.E([_.x({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Yd);
_.r(Yd,"ytd-grid-show-renderer",function(){if(Q0k!==void 0)return Q0k;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Q0k=l},{mode:1});var Gu5;_.OR=function(l){this.playerClient=l};
_.Js_=function(l,D,U){U=U===void 0?{}:U;return l.playerClient.setOption("ad",D,U)};
_.OR.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.OR.prototype.executeCommand=function(l,D){this.getOptions().includes("executeCommand")?_.Js_(this,"executeCommand",{command:l,layoutId:D}):_.jq("Calling executeCommand when adModule is not loaded")};var Vc=function(){return _.p.apply(this,arguments)||this};
_.Z(Vc,_.p);Vc.prototype.getLayoutId=function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.layoutId:null};
Vc.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var l=_.T4(),D=this.getLayoutId(),U=this.data.clickthroughEndpoint;l&&D&&_.q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?l.getPlayerPromise().then(function(n){(new _.OR(n)).executeCommand(U,D)}):_.O9(this.hostElement,"yt-navigate",{endpoint:U})}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Vc.prototype,"data",void 0);_.E([_.x({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Vc);
_.r(Vc,"ytd-shopping-companion-item-renderer",function(){if(Gu5!==void 0)return Gu5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Gu5=l},{mode:1});var LTv;var iT=function(){var l=_.p.apply(this,arguments)||this;l.isExpandableContent=!1;return l};
_.Z(iT,_.p);_.QP.Object.defineProperties(iT.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((l=this.data)==null?void 0:l.price)||((D=this.data)==null?void 0:(U=D.dealsData)==null?void 0:U.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var l,D;if((l=this.data)!=null&&l.dealsData&&((D=this.data)==null||!D.priceReplacementText)){l=this.data.dealsData;var U,n,y;return((U=l.salesData)==null?void 0:U.originalPrice)||((n=l.priceDropData)==null?void 0:n.referencePrice)||((y=l.promotionData)==null?void 0:y.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var l,D;return(l=this.data)==null?void 0:(D=l.dealsData)==null?void 0:D.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],iT.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],iT.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],iT.prototype,"isExpandableContent",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"showCta",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"ctaText",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"hasPriceTopPosition",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"hasPriceBottomPosition",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"useNewStyle",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"showPriceReplacementText",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"priceValue",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"showDeal",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"showAffiliateDisclaimer",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"useSaleStyle",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"useFromBrandCtaStyle",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"useFromVendorCtaStyle",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],iT.prototype,"useShoppingCollectionCtaStyle",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],iT);
_.r(iT,"ytd-vertical-product-card-renderer",function(){if(LTv!==void 0)return LTv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return LTv=l},{mode:1});var qK7;var lT=function(){return _.p.apply(this,arguments)||this};
_.Z(lT,_.p);lT.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],lT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],lT.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],lT.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],lT);
_.r(lT,"ytd-grid-movie-renderer",function(){if(qK7!==void 0)return qK7;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return qK7=l},{mode:1});var MFH;var DF=function(){var l=_.p.apply(this,arguments)||this;l.roundedFix=_.q("web_enable_merch_item_rounding_fix");l.itemStyle="small-item";return l};
_.Z(DF,_.p);DF.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var l,D,U,n,y=(D=_.M((l=this.data)==null?void 0:l.buttonCommand,_.t5r))==null?void 0:(U=D.item)==null?void 0:(n=U.notificationTextRenderer)==null?void 0:n.successResponseText;y&&_.blo(this.hostElement,y)}};
_.QP.Object.defineProperties(DF.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:l.isProductPlaceholder)!==void 0&&((D=this.data)==null?void 0:D.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],DF.prototype,"roundedFix",void 0);_.E([_.K(),_.T("design:type",Object)],DF.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],DF.prototype,"itemStyle",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],DF.prototype,"hasPrice",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],DF.prototype,"hasPriceReplacementText",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],DF.prototype,"hasAdditionalFeesText",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],DF.prototype,"hasAffiliateDisclaimer",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],DF.prototype,"isProductPlaceholder",null);
_.E([_.K(),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],DF.prototype,"hideOpenInNewIcon",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],DF.prototype,"ariaLabel",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],DF);
_.r(DF,"ytd-merch-shelf-item-renderer",function(){if(MFH!==void 0)return MFH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return MFH=l},{mode:1});_.Tt(_.w(function(l){return _.g("button-card-view-model",{el:_.fe(_.aT(function(){return l.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return l.data().title},
role:"button"},_.g(_.MO,{model:{}}),_.g("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.g("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.g(_.v,{cond:function(){return l.data().image},
then:function(D){return _.g(_.rh,{data:D,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.g("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return l.data().title})))},"bc"),"button-card-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){l=_.sl(l,{className:void 0});var D=l.data;l=l.className;var U=_.dM(function(){return D().onTapCommand},void 0,"SXkP9e");
return _.g("ytd-shopping-item-card",{class:_.DV("ytdShoppingItemCardHost",l)},_.g(_.qO,{command:U,className:"ytdShoppingItemCardHostLink"},_.g("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.g(_.uI,{data:function(){return D().thumbnailViewModel}},{thumbnailViewModel:function(n){return _.g(_.eS,{data:n.data,
aspectRatio:3})}})),_.g("div",null,_.g("p",{class:"ytdShoppingItemCardHostItemTitle"},_.g(_.BO,{text:function(){return D().itemTitle}})),_.g("p",{class:"ytdShoppingItemCardHostPrice"},_.g(_.BO,{text:function(){return D().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.C$,
className:_.C$}});var RD_={isAdsVideo:!0},ZWk={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},eDv={showPlayerControls:!1,videoPreviewDurationMs:15E3},mRy={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},aI5={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,
hideScrubber:!0};var oT=null,gJ9={};var Qy3="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(" "),UD={},GF_=(UD.FEwhat_to_watch="home",UD.FEhashtag="hashtag",UD.FEtrending="trending",UD.FEhistory="history",UD.SPunlimited="premium",UD.FEmemberships_and_purchases="paid_memberships",UD.SPredeem_code="redeem",UD.SPverify_location="locate",UD.SPminor_moment="minor_moment",
UD.FEmini_app_container="mini_app",UD.FEnews_destination="news",UD.SPopen_in_app="open_in_app",UD.FEexplore="explore",UD.FEsubscriptions="subscriptions",UD.FEsfv_audio_pivot="sfv_audio_pivot",UD.FEplaylist_aggregation="playlist_aggregation",UD);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");_.Ut("init");var tFH=function(){},dR_=_.w(function(l){var D=l.data;
var U=l.inlineMetadata;var n=l.aspectRatio;var y=l.scrimStyle;var A=l.className;var C=l.useDefaultStyle;var h=l.titleStyle;var b=new tFH,u=_.q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Q=_.dM(function(){return(C==null?0:C())?u==="SHORTS_LOCKUP_STYLE_SLIM":D().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),G=_.dM(function(){return _.EP(U)||Q()||!1},void 0,"SEL6Qd"),J=function(){return(y==null?void 0:y())!==void 0?y==null?void 0:y():1},
L=_.dM(function(){return D().belowThumbnailMetadata||!G()},void 0,"KAqk1b");
l=_.JH({visibilityCallback:function(CC){var vo=D().onFirstVisible;CC&&vo&&_.dh(vo)},
showOption:{calledOnce:!0,state:"visible"}});var R=_.fe(),a={},S=_.DV(function(){return Q(),"shortsLockupViewModelHostThumbnailContainer"},(a.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.EP(n)===1},a.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.EP(n)===2},a.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.q("web_shorts_2_by_3_lockups_study")&&!_.q("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
a)),d=_.dM(function(){if(_.EP(n)===1)return 1;
_.EP(n);return 2},void 0,"Bg5Es"),c,N=function(){if(b){var CC;
(CC=c)==null||f4(CC);var vo;if(b.hostElement&&((vo=b.data)==null?0:vo.inlinePlayerData)){var td,GN;CC=((td=b.data)==null?0:(GN=td.inlinePlayerData)==null?0:GN.enableAudioControl)?Object.assign({},aI5):Object.assign({},mRy);var Ms,j3;((Ms=b.data)==null?void 0:(j3=Ms.inlinePlayerData)==null?void 0:j3.maxPlaybackLengthSec)!==void 0&&(CC.videoPreviewDurationMs=b.data.inlinePlayerData.maxPlaybackLengthSec*1E3);c=Sq({mediaRenderer:b,lockupElement:b.hostElement,thumbnailElement:R.value,videoPreviewOpts:CC})}}};
_.$i(function(){b&&(b.data=D(),N())},"wo9C7e");
var z=_.dM(function(){return D().thumbnail},void 0,"haijYd");
a=_.dM(function(){return D().badge},void 0,"RpDeSe");
var f=_.dM(function(){return D().onTap},void 0,"hOfuOb"),I={},iG={};
return _.g("ytm-shorts-lockup-view-model",{el:_.fe(function(CC){b&&(b.hostElement=CC)},N,l),
class:_.DV("shortsLockupViewModelHost",A)},_.g(_.GZ,null,_.g(_.qO,{command:f,className:_.DV("shortsLockupViewModelHostEndpoint",(I.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!L()},I),"reel-item-endpoint",""),
ariaHidden:function(){return!G()},
tabIndex:function(){return G()?0:-1}},_.g("div",{el:R,
class:_.DV("shortsLockupViewModelHostThumbnailParentContainer",(iG.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!Q()},iG))},_.g(_.v,{cond:z,
then:function(){return _.g("div",{class:S},_.g(_.rh,{data:function(){var CC;return(CC=z==null?void 0:z())!=null?CC:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.g(_.uI,{data:function(){return D().thumbnailViewModel}},{thumbnailViewModel:function(CC){return _.g(_.eS,{data:CC.data,
aspectRatio:function(){return d()},
disableRounding:function(){return Q()}})}}),null),_.g(_.v,{cond:G,
then:function(){return _.g(Xth,{data:D,scrimStyle:J,useDefaultStyle:C,titleStyle:h})}}),_.g(_.uI,{data:a},{badgeViewModel:function(CC){return _.g(_.LK,{data:CC.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.g(_.v,{cond:function(){return G()&&D().menuOnTap},
then:function(){return _.g(SKg,{data:D,inlineMetadata:!0})}}),_.g(_.v,{cond:L,
then:function(){return _.g(kuH,{data:D,useDefaultStyle:C,inlineMetadata:G})}})))},"ec"),Xth=_.w(function(l){var D=l.data;
var U=l.scrimStyle;var n=l.useDefaultStyle;var y=l.titleStyle;var A=_.q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",C=n&&_.q("web_hide_primary_text_for_pivot_panel"),h=_.dM(function(){return(n==null?0:n())?A==="SHORTS_LOCKUP_STYLE_SLIM":D().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
l={};l=_.DV("shortsLockupViewModelHostInlineMetadata",(l.shortsLockupViewModelHostMetadataRounded=function(){return!h()},l.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(U==null?void 0:U())===3&&!_.q("enable_shorts_lockup_new_scrim")},l.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(U==null?void 0:U())===3&&_.q("enable_shorts_lockup_new_scrim")},l.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(U==null?void 0:U())===2||(U==null?void 0:
U())===4},l.shortsLockupViewModelHostShowOverPlayer=function(){return!0},l),"image-overlay-text");
var b={};return _.g("div",{class:l},_.g("h3",{class:_.DV("shortsLockupViewModelHostMetadataTitle",(b.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(U==null?void 0:U())===4},b.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return D().belowThumbnailMetadata},b.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(y==null?void 0:y())===1},b.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(y==null?void 0:y())===2},b)),
"aria-label":function(){return D().accessibilityText}},_.g(_.v,{cond:function(){var u;
return!((u=D().overlayMetadata)==null||!u.primaryText)&&!C},
then:function(){return _.g(_.BO,{text:function(){var u;return(u=D().overlayMetadata)==null?void 0:u.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.g(_.v,{cond:function(){var u;
return(u=D().overlayMetadata)==null?void 0:u.secondaryText},
then:function(){return _.g(KTr,{data:D,scrimStyle:U,className:void 0})}}))},"fc"),kuH=_.w(function(l){var D=l.data;
var U=l.useDefaultStyle;var n=l.inlineMetadata;var y=_.q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",A=_.dM(function(){return(U==null?0:U())?y==="SHORTS_LOCKUP_STYLE_SLIM":D().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),C=_.fe(),h;
l=_.n0(function(L){if(_.ZX(_.RT(L),C.value,["AVATAR-VIEW-MODEL"]))return!1;var R;(R=h)==null||R.click();return!1});
var b=_.dM(function(){return D().belowThumbnailMetadata||D().overlayMetadata},void 0,"GwezKf"),u=function(){return D().menuOnTap&&!n()},Q=function(){var L;
return(L=b())==null?void 0:L.avatar},G={},J={};
return _.g("div",{class:_.DV(function(){return A()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(G.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!Q()},G.shortsLockupViewModelHostOutsideMetadataHasMenu=u,G)),
"on:click":l,el:C,role:"presentation"},_.g(_.uI,{data:Q},{avatarViewModel:function(L){return _.g(_.iX,{data:L.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.g("div",null,_.g("h3",{class:_.DV("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(J.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var L,R;
return!((L=b())==null?0:(R=L.primaryText)==null?0:R.content)},J.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=n,J)),
role:"presentation"},_.g(_.qO,{ref:function(L){return void(h=L)},
command:function(){return D().onTap},
className:_.DV("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var L,R;return(L=b())==null?void 0:(R=L.primaryText)==null?void 0:R.content},
"aria-label":function(){return D().accessibilityText}},_.g(_.v,{cond:function(){var L;
return(L=b())==null?void 0:L.primaryText},
then:function(L){return _.g(_.BO,{text:L,noEndpoints:!0,noStyleRuns:!0})}}))),_.g(_.v,{cond:function(){var L;
return(L=b())==null?void 0:L.secondaryText},
then:function(L){return _.g("div",{class:_.DV("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.g(_.BO,{text:L,noStyleRuns:!0}))}})),_.g(_.v,{cond:u,
then:function(){return _.g(SKg,{data:D,inlineMetadata:!1})}}))},"gc"),KTr=_.w(function(l){var D=l.data;
var U=l.scrimStyle;l=l.className;var n={};return _.g("div",{class:_.DV((n.shortsLockupViewModelHostMetadataSubhead=function(){return(U==null?void 0:U())!==4},n.shortsLockupViewModelHostMetadataSubheadNew=_.q("enable_shorts_lockup_new_scrim"),n.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(U==null?void 0:U())===4},n),l),
"aria-hidden":"true"},_.g(_.BO,{text:function(){var y;return(y=D().overlayMetadata)==null?void 0:y.secondaryText},
noStyleRuns:!0}))},"hc"),SKg=_.w(function(l){var D=l.data;
var U=l.inlineMetadata;l={};l=_.DV((l.shortsLockupViewModelHostInlineMetadataMenu=function(){return U()},l.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!U()},l.shortsLockupViewModelHostShowOverPlayer=function(){return!0},l),"image-overlay-text");
return _.g("div",{class:l},_.g(_.ey,{data:function(){return{style:U()?"overlay":"mono",accessibilityLabel:D().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(n){n.preventDefault();n.stopPropagation();var y=_.SQ({elementsCommand:D().menuOnTap,forceNewState:!0});if(y==null?0:y.onclick)y.onclick(n)}}},
iconName:"MORE_VERT"}))},"ic");var csy=_.w(function(l){var D=l.data;var U=l.inlineMetadata;var n=l.aspectRatio;var y=l.scrimStyle;var A=l.className;var C=l.useDefaultStyle;l=_.dM(function(){var h=D().entityId;return h?h.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.g("ytm-shorts-lockup-view-model-v2",{class:_.DV("shortsLockupViewModelHost",A)},_.g(_.dR,{contentId:l,aspectRatio:function(){return(n==null?void 0:n())===1?1:(n==null?void 0:n())===2?2:4}},function(){return _.g(dR_,{data:D,
inlineMetadata:U,aspectRatio:n,scrimStyle:y,className:A,useDefaultStyle:C})}))},"jc");_.Tt(csy,"ytm-shorts-lockup-view-model-v2",{props:{data:_.ND,inlineMetadata:_.ND,aspectRatio:_.ND,scrimStyle:_.ND,className:_.ND,useDefaultStyle:_.ND,titleStyle:_.ND}});var pt1=16/9*210,nG=function(){var l=_.p.apply(this,arguments)||this;l.isExpandableContent=!1;l.hideShelfHeader=!1;l.engagementPanel=!1;l.buttonClasses=["arrow"];l.isSearch=!1;l.disableScrollEventListener=!1;l.containsLockup=!1;l.overrideArrowPositionForProductCard=!1;l.overrideArrowPositionForShoppingItemCard=!1;l.overrideArrowPositionForReelItems=!1;l.overrideArrowPositionForGridMovie=!1;l.overrideArrowPositionToCenter=!1;l.isSearchPostShelf=!1;l.overrideArrowPositionForMixedShelf=!1;l.overrideArrowPositionForMixedShelfShortsOnly=
!1;l.hasBigThumbsReelItems=!1;l.shouldUseMixedListHeight=!1;l.shouldUseShortsListHeight=!1;l.gridVideoWidth=0;l.isSearchVodShelf=!1;l.disableWheelScroll=!1;l.sizing="COMPACT";l.shortsLockupAspectRatio=0;return l};
_.Z(nG,_.p);_.W=nG.prototype;
_.W.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]]"}}}}};
_.W.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.q("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.W.computeInitialCountNumber=function(l){if(!l)return 6;var D=l.items.some(function(A){return!!A.topicRecommendationsChipRenderer}),U=l.items.some(function(A){return!!A.displayAdRenderer}),n=this.computeShouldListItemsHaveEqualHeight(l),y=l.items.some(function(A){return!!A.gridPlaylistRenderer});
l=l.items.some(function(A){return!!A.shoppingItemCardViewModel});
return D?9:U?8:y||n?10:l?7:6};
_.W.computeContainsPost=function(l){return!!l&&!!l.items&&l.items.some(function(D){return!!D.postRenderer})};
_.W.computeContainsLockup=function(){if(_.q("web_horizontal_list_lockup_arrow_killswitch"))return!1;var l,D;return(l=this.data)==null?void 0:(D=l.items)==null?void 0:D.some(function(U){return!!U.lockupViewModel})};
_.W.maybeUpdateLockupAspectRatio=function(){var l,D;if(this.computeContainsLockup()&&((l=this.data)==null?0:(D=l.items)==null?0:D.length)){var U;l=rol((U=this.data.items[0].lockupViewModel)==null?void 0:U.contentType,this.data.force16By9ThumbnailAspectRatio);U=oc3(l);U=this.computeLockupWidth()/U;_.Wg(this.hostElement,{"--yt-horizontal-list-content-height":U+"px"})}};
_.W.computeOverrideArrowPositionForProductCard=function(l){if(this.isExpandableContent)return!1;var D;return!!(l==null?0:(D=l.items)==null?0:D.some(function(U){return!!U.verticalProductCardRenderer}))};
_.W.computeOverrideArrowPositionForShoppingItemCard=function(l){var D;return!!(l==null?0:(D=l.items)==null?0:D.some(function(U){return!!U.shoppingItemCardViewModel}))};
_.W.computeOverrideArrowPositionForReelItemRenderer=function(l){return this.containsReelItemRenderer(l)};
_.W.computeHasBigThumbsReelItems=function(l,D){return l&&this.containsReelItemRenderer(D)};
_.W.computeShouldListItemsHaveEqualHeight=function(l){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(l==null?void 0:l.itemSizeConstraint)};
_.W.computeShouldListItemsHaveShortsHeight=function(l){return this.computeShouldListItemsHaveEqualHeight(l)&&!this.containsGridVideoRenderer(l)};
_.W.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.W.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.W.containsReelItemRenderer=function(l){var D;return!!(l==null?0:(D=l.items)==null?0:D.some(function(U){return!(!U.reelItemRenderer&&!U.shortsLockupViewModel)}))};
_.W.containsGridVideoRenderer=function(l){var D;return!!(l==null?0:(D=l.items)==null?0:D.some(function(U){return!!U.gridVideoRenderer||!!U.lockupViewModel}))};
_.W.computeContainsGridMovieRenderer=function(l){var D;return!!(l==null?0:(D=l.items)==null?0:D.some(function(U){return!!U.gridMovieRenderer}))};
_.W.computeOverrideArrowPositionToCenter=function(l){return this.computeIsSearchPostShelf(l)};
_.W.computeIsSearchPostShelf=function(l){var D;return!!(l==null?0:(D=l.items)==null?0:D.some(function(U){var n,y;return((y=(n=U.postRenderer)==null?void 0:n.surface)!=null?y:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.W.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(l){var D;return!!(l==null?0:(D=l.items)==null?0:D.some(function(U){var n,y,A;return((A=(n=U.backgroundPromoRenderer)==null?void 0:(y=n.style)==null?void 0:y.value)!=null?A:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.W.computeIsSearchVodShelf=function(l,D){return l&&this.containsGridVideoRenderer(D)};
_.W.computeDisableWheelScroll=function(l,D){return this.computeIsSearchVodShelf(l,D)};
_.W.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.W.computeShortsLockupAspectRatio=function(){return 1};
_.W.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Wg(this.hostElement,{"--ytd-reel-item-thumbnail-height":pt1+"px"})};
nG.prototype.dataChanged=nG.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],nG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.RH.YtdHorizontalListBehavior),_.T("design:type",Object)],nG.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],nG.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],nG.prototype,"isExpandableContent",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"hideShelfHeader",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"engagementPanel",void 0);_.E([_.K(),_.T("design:type",Array)],nG.prototype,"buttonClasses",void 0);_.E([_.K(),_.T("design:type",Object)],nG.prototype,"isSearch",void 0);
_.E([_.K(),_.T("design:type",Object)],nG.prototype,"disableScrollEventListener",void 0);_.E([_.K({computed:"computeInitialCountNumber(data)"}),_.T("design:type",Number)],nG.prototype,"initialCount",void 0);_.E([_.K({computed:"computeContainsPost(data)"}),_.T("design:type",Boolean)],nG.prototype,"supportComponentResize",void 0);_.E([_.K({computed:"computeContainsPost(data)"}),_.T("design:type",Boolean)],nG.prototype,"containsPost",void 0);
_.E([_.K({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"containsLockup",void 0);_.E([_.K({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],nG.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.E([_.K({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"overrideArrowPositionForProductCard",void 0);_.E([_.K({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.E([_.K({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"overrideArrowPositionForReelItems",void 0);_.E([_.K({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"overrideArrowPositionForGridMovie",void 0);
_.E([_.K({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"overrideArrowPositionToCenter",void 0);_.E([_.K({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"isSearchPostShelf",void 0);_.E([_.K({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.E([_.K({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.E([_.K({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"hasBigThumbsReelItems",void 0);
_.E([_.K({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"shouldUseMixedListHeight",void 0);_.E([_.K({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"shouldUseShortsListHeight",void 0);_.E([_.K({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"gridVideoWidth",void 0);
_.E([_.K({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"isSearchVodShelf",void 0);_.E([_.K({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.T("design:type",Object)],nG.prototype,"disableWheelScroll",void 0);_.E([_.K({computed:"computeSizing(isSearch)"}),_.T("design:type",Object)],nG.prototype,"sizing",void 0);
_.E([_.K({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.T("design:type",Object)],nG.prototype,"shortsLockupAspectRatio",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],nG.prototype,"dataChanged",null);
_.r(nG,"yt-horizontal-list-renderer",function(){if(pBH===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);pBH=l}l=pBH;return l},{mode:1});var xRk=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
xRk.prototype.subscribe=function(l,D){var U=this.subscriptions.get(l);if(!U)return function(){};
U.add(D);return function(){U.delete(D)}};
xRk.prototype.unsubscribe=function(l,D){(l=this.subscriptions.get(l))&&l.delete(D)};
xRk.prototype.publish=function(l,D){D=D===void 0?{}:D;(l=this.subscriptions.get(l))&&l.forEach(function(U){U(D)})};var j0H;var FTm=[10,12,14,16,18,20,24,28,32,36],oIH=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],ya=function(){var l=_.p.apply(this,arguments)||this;l.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";l.hideOverflow=!1;l.useRoboto=!1;l.fontClass="";l.overflown=!1;l.actionMap={"yt-window-resized":"resize"};return l};
_.Z(ya,_.p);_.W=ya.prototype;
_.W.attached=function(){var l=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();_.u6(this,function(){l.resize()});
if(!_.iB){var D,U,n;(D=document)==null||(U=D.fonts)==null||(n=U.ready)==null||n.then(function(){l.resize()})}};
_.W.dataChanged=function(){this.resize()};
_.W.guideIsExpandedChanged=function(){this.resize()};
_.W.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 l=this.getMaxNumLines(),D=this.getMinFont(),U=this.getMaxFont(),n=this.useRoboto?FTm:oIH;for(n=n.filter(function(A){return A<=U&&A>=D});n.length>1;){var y=Math.floor(n.length/2);
this.updateFontSize(n[y]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=l)n=n.slice(y,n.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>l)n=n.slice(0,y);else break}this.updateFontSize(n[n.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(l)}};
_.W.handleOverflow=function(l){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>l&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",l.toString()))};
_.W.updateFontSize=function(l){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+l;this.textNode.classList.add(this.fontClass)};
_.W.getMaxFont=function(){var l=this.useRoboto?FTm:oIH;l=l[l.length-1];return this.maxFontSize&&this.maxFontSize<=l?this.maxFontSize:l};
_.W.getMinFont=function(){var l=(this.useRoboto?FTm:oIH)[0];return this.minFontSize&&this.minFontSize>=l?this.minFontSize:l};
_.W.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.W.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.W.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Nl(this.text).split("\n").length-1:Infinity};
_.W.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("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
ya.prototype.guideIsExpandedChanged=ya.prototype.guideIsExpandedChanged;ya.prototype.dataChanged=ya.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ya.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],ya.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],ya.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ya.prototype,"text",void 0);
_.E([_.K(),_.T("design:type",String)],ya.prototype,"fontFamily",void 0);_.E([_.K(),_.T("design:type",Number)],ya.prototype,"maxWidth",void 0);_.E([_.K(),_.T("design:type",Number)],ya.prototype,"maxHeight",void 0);_.E([_.K(),_.T("design:type",Number)],ya.prototype,"maxFontSize",void 0);_.E([_.K(),_.T("design:type",Number)],ya.prototype,"minFontSize",void 0);_.E([_.K(),_.T("design:type",Number)],ya.prototype,"maxLines",void 0);_.E([_.K(),_.T("design:type",Object)],ya.prototype,"hideOverflow",void 0);
_.E([_.K({selector:_.dOg}),_.T("design:type",Boolean)],ya.prototype,"guideIsExpanded",void 0);_.E([_.gP("#container"),_.T("design:type",HTMLElement)],ya.prototype,"containerNode",void 0);_.E([_.gP("#text"),_.T("design:type",HTMLElement)],ya.prototype,"textNode",void 0);_.E([_.GY("text"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ya.prototype,"dataChanged",null);
_.E([_.GY("guideIsExpanded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ya.prototype,"guideIsExpandedChanged",null);_.E([_.x({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],ya);
_.r(ya,"yt-dynamic-sizing-formatted-string",function(){if(j0H!==void 0)return j0H;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return j0H=l},{mode:1});var wtv;_.rs7=function(l){_.D9.call(this,l)};
_.Z(_.rs7,_.D9);var zD5=function(l){_.D9.call(this,l)};
_.Z(zD5,_.rs7);var AR=function(){return _.p.apply(this,arguments)||this};
_.Z(AR,_.p);AR.prototype.onTapSuspendedChannel=function(){var l;if((l=this.data)!=null&&l.serviceEndpoint){var D,U;(l=(U=_.M((D=this.data)==null?void 0:D.serviceEndpoint,_.yE))==null?void 0:U.url)?_.KU(l,void 0,void 0,window.top):(D=new zD5("Did not handle suspended account tap. No appealUrl."),_.EU(D))}else D=new zD5("Did not handle suspended account tap. No serviceEndpoint."),_.EU(D)};
AR.prototype.onTap=function(){var l=this,D=_.he(),U,n=(U=_.Ce(D,{veType:7116}))!=null?U:void 0;_.xo(D,{visualElement:n});_.kf();this.saveRoleText();var y;if((y=this.data)==null?0:y.youtubeSuspended)this.onTapSuspendedChannel();else{var A=!1,C,h;(D=(h=_.M((C=this.data)==null?void 0:C.serviceEndpoint,_.x27))==null?void 0:h.supportedTokens)&&D.forEach(function(b){if(b.accountSigninToken)if(A=!0,l.onAccountItemTap)l.onAccountItemTap(b.accountSigninToken.signinUrl);else _.KU(b.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!A){if(C=this.get("serviceEndpoint",this.data))A=!0,this.ytComponentBehavior.resolveCommand(C);A||_.Tj(new zD5("Did not handle account switch tap. No token."))}}};
AR.prototype.saveRoleText=function(){if(this.data){var l=this.data,D=l.channelDelegationRole;if(D){var U,n=(U=_.M(l==null?void 0:l.serviceEndpoint,_.x27))==null?void 0:U.supportedTokens;if(!n){var y,A,C,h;n=(y=_.M(l==null?void 0:l.serviceEndpoint,_.rA))==null?void 0:(A=y.popup)==null?void 0:(C=A.confirmDialogRenderer)==null?void 0:(h=C.confirmButton)==null?void 0:h.buttonRenderer;var b;n=(b=_.M(n==null?void 0:n.command,_.n3))==null?void 0:b.commands;if(!n)return;var u;n=(u=_.M(n[1],_.x27))==null?
void 0:u.supportedTokens}if(n){b=void 0;u=_.B(n);for(n=u.next();!n.done;n=u.next())if(n=n.value,n.datasyncIdToken){b=n.datasyncIdToken.datasyncIdToken;break}if(b){var Q;a:{if(_.NR9()&&(u=_.fPK(b+"::pom"))){u=new of(u);break a}u=void 0}(Q=u)==null||Q.set("role_text",D);if((nRC?nRC:window.location).href.indexOf("studio")!==-1&&(Q=s53())){u=Q.src?(new URL(Q.src)).origin:"*";var G;(G=Q.contentWindow)==null||G.postMessage({action:"save_pom_role",datasyncId:b,roleText:D},u)}}}}}};
_.QP.Object.defineProperties(AR.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(l=this.data)==null?void 0:(D=l.accountPhoto)==null?void 0:D.thumbnails;return U&&U.length>0&&(U[0].height===36||U[0].height===48)?U[0].height:40}}});
AR.prototype.onTap=AR.prototype.onTap;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],AR.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],AR.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!1}),_.T("design:type",Function)],AR.prototype,"onAccountItemTap",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],AR.prototype,"enableRingForActiveAccount",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Number),_.T("design:paramtypes",[])],AR.prototype,"thumbnailSize",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],AR.prototype,"onTap",null);_.E([_.x({is:"ytd-account-item-renderer",disableElementRegistration:!0})],AR);
_.r(AR,"ytd-account-item-renderer",function(){if(wtv!==void 0)return wtv;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return wtv=l},{mode:1});var fIm;var Wf=function(){return _.p.apply(this,arguments)||this};
_.Z(Wf,_.p);Wf.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.Jc().resolve(_.qK).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Wf.prototype,"data",void 0);_.E([_.x({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Wf);
_.r(Wf,"ytd-identity-chip-renderer",function(){if(fIm!==void 0)return fIm;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return fIm=l},{mode:1});var $Ry;var Nqg;var s0y;var EI7;var Bf=function(){var l=_.p.apply(this,arguments)||this;l.richItemMinWidth=_.RG("wn_grid_min_item_width",310);l.isShorts=!1;l.isWatchNext=!1;l.isExploreHub=!1;return l};
_.Z(Bf,_.p);_.QP.Object.defineProperties(Bf.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var l=[],D=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Wg(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var U;if(((U=this.data)==null?0:U.rows)&&D)for(D*=this.data.rows,U=0;U<D;U++)l.push({});return l}}});
_.E([_.m(_.l5),_.T("design:type",Object)],Bf.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Bf.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.t4,value:3}),_.T("design:type",Number)],Bf.prototype,"itemsPerRow",void 0);_.E([_.K({selector:_.k9d,value:6}),_.T("design:type",Number)],Bf.prototype,"slimItemsPerRow",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Number)],Bf.prototype,"richItemMinWidth",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],Bf.prototype,"miniMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Bf.prototype,"isShorts",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Bf.prototype,"isWatchNext",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Bf.prototype,"isExploreHub",void 0);
_.E([_.t("isExploreHub"),_.K({reflectToAttribute:!0}),_.T("design:type",Object),_.T("design:paramtypes",[])],Bf.prototype,"shimmerAnimation",null);_.E([_.t("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.T("design:type",Array),_.T("design:paramtypes",[])],Bf.prototype,"cardItems",null);_.E([_.x({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Bf);
_.Tq5=_.Ol()(Bf,"ytd-ghost-grid-renderer",function(){if(EI7===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);EI7=l}l=EI7;return l},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Tt(_.w(function(l){var D=_.sl(l,{numberOfComments:3}).numberOfComments,U=_.sl(l,{isInitialLoad:!1}).isInitialLoad,n=_.sl(l,{engagementPanel:!1}).engagementPanel,y=function(){return Math.min(Number(D==null?void 0:D())||20,20)};
return _.g("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.g(_.v,{cond:function(){return!(n==null?0:n())&&(U==null?void 0:U())},
then:function(){return _.g("div",{class:"ytGhostCommentsComments"},_.g("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.g("div",{class:_.DV("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.g("div",{class:_.DV("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.g("div",{class:"ytGhostCommentsGhostCard"},_.g("div",{class:"ytGhostCommentsAvatar"},_.g("div",{class:"ytGhostCommentsCircle"})),_.g("div",{class:"ytGhostCommentsComments"},_.g("div",{class:"ytGhostCommentsMeta"},
_.g("div",{class:_.DV("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.g("div",{class:_.DV("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.g("div",{class:"ytGhostCommentsComments"},_.g(_.wt,{each:function(){return Array((y==null?void 0:y())||3)}},function(){return _.g("div",{class:"ytGhostCommentsGhostCard"},_.g("div",{class:"ytGhostCommentsAvatar"},_.g("div",{class:"ytGhostCommentsCircle"})),_.g("div",{class:"ytGhostCommentsHost"},_.g("div",{class:"ytGhostCommentsMeta"},
_.g("div",{class:_.DV("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.g("div",{class:_.DV("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:_.DV("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:"ytGhostCommentsGhostLikeDislike"},_.g("div",{class:_.DV("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:_.DV("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.C$,
isInitialLoad:_.C$,engagementPanel:_.C$},unsafeExternallySettableAttributes:new Set(["hidden"])});_.RL("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var CG=function(){var l=_.p.apply(this,arguments)||this;l.isOverridable=!1;l.spinnerActive=!1;l.showButton=!1;l.isCommentsSection=!1;l.engagementPanel=!0;l.isShortsGrid=!1;l.isShortsPage=!1;l.isWatchPage=!1;l.originalShowButton=!1;l.endOfList=!1;return l};
_.Z(CG,_.p);_.W=CG.prototype;_.W.resetIntersectionObserver=function(){var l;(l=this.observer)==null||l.disconnect();this.observer=void 0};
_.W.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var l,D;((l=this.data)==null?void 0:l.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((D=this.data)==null?0:D.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.W.initializeIntersectionObserver=function(){var l=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(D){D=_.B(D);for(var U=D.next();!U.done;U=D.next())U.value.isIntersecting&&(l.triggerContinuation(),l.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.W.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.W.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var l;((l=this.data)==null?0:l.continuationEndpoint)&&(l=_.M(this.data.continuationEndpoint,_.ko))&&this.ytdReduxBehavior.dispatch(_.V0({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:l}}))};
_.W.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.W.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.W.onServiceRequestCompleted=function(l,D){if(!_.q("kevlar_hide_spinner_on_empty_continuation_killswitch")){var U;(U=D.actions)!=null&&U.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.W.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.W.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.W.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.W.numberOfGhostCommentsChanged=function(){var l=3;if(this.engagementPanel){var D,U,n;l=Math.floor(((((D=this.hostElement)==null?void 0:(U=D.parentElement)==null?void 0:(n=U.parentElement)==null?void 0:n.scrollHeight)||108)-108)/108);l=this.isInitialLoad?Math.max(l,3):3}D=[].concat(_.zz(this.hostElement.querySelectorAll("yt-ghost-comments")));D=_.B(D);for(U=D.next();!U.done;U=D.next())U=U.value,U.numberOfComments=l,U.isInitialLoad=this.isInitialLoad,U.engagementPanel=this.engagementPanel};
_.W.detached=function(){this.resetIntersectionObserver()};
_.QP.Object.defineProperties(CG.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
CG.prototype.numberOfGhostCommentsChanged=CG.prototype.numberOfGhostCommentsChanged;CG.prototype.continuationTriggerOffsetChanged=CG.prototype.continuationTriggerOffsetChanged;CG.prototype.showButtonChanged=CG.prototype.showButtonChanged;CG.prototype.onYtServiceRequestCompletedForButtonRenderer=CG.prototype.onYtServiceRequestCompletedForButtonRenderer;CG.prototype.onServiceRequestCompleted=CG.prototype.onServiceRequestCompleted;CG.prototype.onYtServiceRequestSentForButtonRenderer=CG.prototype.onYtServiceRequestSentForButtonRenderer;
CG.prototype.observeData=CG.prototype.observeData;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],CG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.n$.YtVisibilityBehavior),_.T("design:type",Object)],CG.prototype,"ytVisibilityBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],CG.prototype,"ytComponentBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],CG.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],CG.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],CG.prototype,"isOverridable",void 0);_.E([_.K(),_.T("design:type",Object)],CG.prototype,"spinnerActive",void 0);_.E([_.K(),_.T("design:type",Object)],CG.prototype,"showButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],CG.prototype,"isCommentsSection",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],CG.prototype,"engagementPanel",void 0);_.E([_.K(),_.T("design:type",Object)],CG.prototype,"isShortsGrid",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.pOs}),_.T("design:type",Object)],CG.prototype,"isShortsPage",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.c9K}),_.T("design:type",Object)],CG.prototype,"isWatchPage",void 0);_.E([_.K(),_.T("design:type",Number)],CG.prototype,"continuationTriggerOffset",void 0);
_.E([_.K(),_.T("design:type",Object)],CG.prototype,"endOfList",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],CG.prototype,"isInitialLoad",void 0);_.E([_.gP("ytd-button-renderer"),_.T("design:type",_.M2)],CG.prototype,"buttonRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],CG.prototype,"buttonOverrides",void 0);
_.E([_.K(),_.t("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.T("design:type",Object),_.T("design:paramtypes",[])],CG.prototype,"showGhostCardComments",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],CG.prototype,"observeData",null);
_.E([_.hj("yt-service-request-sent-button-renderer"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],CG.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],CG.prototype,"onServiceRequestCompleted",null);
_.E([_.hj("yt-service-request-completed-button-renderer"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],CG.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.E([_.GY("showButton"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],CG.prototype,"showButtonChanged",null);
_.E([_.GY("continuationTriggerOffset"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],CG.prototype,"continuationTriggerOffsetChanged",null);_.E([_.Pg("isInitialLoad","engagementPanel"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],CG.prototype,"numberOfGhostCommentsChanged",null);_.E([_.x({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],CG);
_.r(CG,"ytd-continuation-item-renderer",function(){if(s0y!==void 0)return s0y;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return s0y=l},{mode:1});var IIv;var hR=function(){var l=_.p.apply(this,arguments)||this;l.downloadProgress=0;l.transferState="TRANSFER_STATE_UNKNOWN";l.downloadState="DOWNLOAD_STATE_UNKNOWN";l.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";l.offlineVideoPolicyExpirationTimestamp=0;l.downloadedVideoPlaybackPosition=0;return l};
_.Z(hR,_.p);hR.prototype.dataChanged=function(){var l;this.videoData=_.M((l=this.data)==null?void 0:l.renderer,gWm);this.transferStateChanged()};
hR.prototype.downloadProgressChanged=function(){if(this.entityInfo){var l=Object.assign({},this.videoData),D=pRC(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),U=D.publishedTimeText,n=D.badges;l.shortViewCountText=D.shortViewCountText;l.publishedTimeText=U;l.badges=n;this.set("videoData",l)}};
hR.prototype.transferStateChanged=function(){if(this.entityInfo){var l=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",D=_.uQ(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!gu(this.entityInfo.policyEntity),U=Object.assign({},this.videoData),n=pRC(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),y=n.publishedTimeText,A=n.badges;U.shortViewCountText=
n.shortViewCountText;U.publishedTimeText=y;U.badges=A;U.isDisabled=D;U.isWatched=this.downloadedVideoPlaybackPosition>0;U.navigationEndpoint=D?void 0:x3N(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var C;l&&((C=this.videoData)==null?0:C.videoId)&&!_.q("dl_resume_click_killswitch")&&(U.isDisabled=!1,U.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});U.thumbnailOverlays=K4d(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",U)}};
hR.prototype.transferStateChanged=hR.prototype.transferStateChanged;hR.prototype.downloadProgressChanged=hR.prototype.downloadProgressChanged;hR.prototype.dataChanged=hR.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],hR.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hR.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],hR.prototype,"videoData",void 0);_.E([_.K({selector:cc,selectorArgs:["videoData.videoId"]}),_.T("design:type",Object)],hR.prototype,"downloadProgress",void 0);_.E([_.K(),_.T("design:type",Number)],hR.prototype,"relativeDateReference",void 0);_.E([_.K({selector:_.du,selectorArgs:["videoData.videoId"]}),_.T("design:type",Object)],hR.prototype,"transferState",void 0);
_.E([_.K({selector:lu9,selectorArgs:["videoData.videoId"]}),_.T("design:type",Object)],hR.prototype,"downloadState",void 0);_.E([_.K({selector:wOo,selectorArgs:["videoData.videoId"]}),_.T("design:type",Object)],hR.prototype,"offlinePolicyAction",void 0);_.E([_.K({selector:r9B,selectorArgs:["videoData.videoId"]}),_.T("design:type",Object)],hR.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.E([_.K({selector:p7,selectorArgs:["videoData.videoId"]}),_.T("design:type",Object)],hR.prototype,"downloadedVideoPlaybackPosition",void 0);_.E([_.K({selector:f8_,selectorArgs:["videoData.videoId"]}),_.T("design:type",Object)],hR.prototype,"entityInfo",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],hR.prototype,"isDownloading",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hR.prototype,"dataChanged",null);
_.E([_.GY("downloadProgress"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hR.prototype,"downloadProgressChanged",null);_.E([_.GY("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hR.prototype,"transferStateChanged",null);
_.E([_.x({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],hR);
_.r(hR,"ytd-downloaded-video-grid-video-renderer",function(){if(IIv!==void 0)return IIv;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return IIv=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var HWm;var Pf=function(){};
Pf.prototype.resolve=function(l,D){var U=this;return _.P(function(n){return n.yield(U.resolveCommand(l,D),0)})};var YK_,bT;YK_=JFo(function(l){return l.targetId},{shouldPersist:!1});
bT=YK_.updateData;_.OWm=YK_.useUpdatableData;var VFk,ijg;VFk=JFo(function(l){return l.targetId});
ijg=VFk.updateData;_.lAm=VFk.useUpdatableData;var Du8=qug.bind(null,bT),Uu8=qug.bind(null,ijg);(function(l,D,U){var n=_.M(U==null?void 0:U.updatedRenderer,_.$O5);return n?l({targetId:D},function(){return n}):!1}).bind(null,bT);var gi=function(){};
_.Z(gi,Pf);gi.prototype.resolveCommand=function(l){var D;return _.P(function(U){D=_.M(l,_.SO9);if(!D)return U.return();Du8(D.targetId,D);_.Kz(U)})};var uT=function(){var l=_.vg.apply(this,arguments)||this;l.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return l};
_.Z(uT,_.vg);_.W=uT.prototype;_.W.configureContinuationPathMap=function(){return{}};
_.W.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.W.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.W.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.W.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.W.handleAppendContinuationItemsAction=function(l){var D=_.M(l,_.jdH);if(this.data&&this.data.targetId&&D&&this.continuationPathMap&&D.targetId===this.data.targetId){var U=yiC(l),n=U&&this.continuationPathMap[U];if(n&&U)if(l=this.get(n,this.data)){a:{for(U=0;U<l.length;U++){var y=l[U],A=void 0,C=!!_.M((A=_.M(y,ZiH))==null?void 0:A.content,_.Ct_);if(_.M(y,_.$X)||C)break a}U=l.length}n="data."+n;D.continuationItems?U===l.length-1?(this.pop(n),this.push.apply(this,[n].concat(_.zz(D.continuationItems)))):
U===l.length?this.push.apply(this,[n].concat(_.zz(D.continuationItems))):this.splice.apply(this,[n,U,1].concat(_.zz(D.continuationItems))):this.splice(n,U,1);(_.q("web_enable_voting_animation")||_.q("enable_music_web_cairo_voting_animation"))&&_.O9(this.hostElement,"yt-append-continuation-items-action-finished");_.O9(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.II(new _.rc("append continuation items does not exist",U));else _.II(new _.rc("append continuation path does not exist",
U))}};
_.W.handleReloadContinuationItemsCommand=function(l){var D=_.M(l,_.SO9);if(this.data&&D){if(_.q("web_client_explore_hub")||_.q("web_explore_hub_on_hover")||_.q("web_client_explore_hub_on_hover"))try{_.Jc().resolve(gi).resolveCommand(l)}catch(A){}if(this.data.targetId&&this.continuationPathMap&&D.targetId===this.data.targetId&&(!_.q("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||D.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var U,n=(U=D.slot)==null?void 0:
U.replace("RELOAD_CONTINUATION_SLOT_","");U=(l=yiC(l)+"-"+(n==null?void 0:n.toLowerCase()))&&this.continuationPathMap[l];if(!U||!l||!n)_.II(new _.rc("reload continuation path does not exist",l));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(D)){if(D.replaceWithFirstItem){var y;this.set("data."+U,((y=D.continuationItems)==null?0:y.length)?D.continuationItems[0]:{})}else this.set("data."+U,D.continuationItems?D.continuationItems:[]);this.continuationIsReloading=
!1;_.O9(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.W.handleShowReloadUiCommand=function(l){l=_.M(l,Onm);var D;((D=this.data)==null?0:D.targetId)&&(l==null?0:l.targetId)&&l.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
uT.prototype.observeData=uT.prototype.observeData;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],uT.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],uT.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],uT.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],uT.prototype,"continuationIsReloading",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],uT.prototype,"observeData",null);_.E([_.Qj()],uT);_.vf=[_.la.YtComponentBehavior,_.K$.YtActionHandlerBehavior,uT.prototype];_.Qa={};_.Qa.YtNextContinuationBehavior=[_.ua.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",_.CY(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.CY(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(l,D){l.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,D,{}):(l={locationRetrieved:function(U){this.makeNextContinuationRequest_(U,D,{})}.bind(this)},_.O9(this.hostElement,"yt-retrieve-location",l))},
makeNextContinuationRequest_:function(l,D,U){_.tJ("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();l=D(l);var n;this.canUseContextualNetworkManager_()&&(n=this.getNetworkManager());n||(n=_.Jc().resolve(_.GI));D=_.jZ.instance;if(_.H3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&D){n=_.T3([l.startsWith("/")?l.substr(1):l]);var y,A;U=_.BN(D,{},n,U==null?void 0:(y=U.context)==null?void 0:(A=y.clickTracking)==null?void 0:A.clickTrackingParams).then(function(C){return{response:C}})}else U=
this.nextContinuation.usePost?n.postData(l,U):n.fetchData(l);
U.then(this.updateNextContinuationData_.bind(this,l));this.pendingContinuationRequest_=U;this.startListeningForNavigate_()},
updateNextContinuationData_:function(l,D){var U=this;_.tJ("ncl");this.pendingContinuationRequest_=void 0;if(D){var n={};this.nextContinuation&&(n=this.nextContinuation);if(D.response&&D.response.continuationContents&&D.response.continuationContents[n.continuationType]){l=D.response.continuationContents[n.continuationType];var y=n.header||"data.header",A=l[n.responseHeaderKey||"header"];A&&this.set(y,A);y=n.contentsArray||"data.contents";A=this.getContents_(l,n.responseContentsKey||"contents")||[];
this.pathExists_(y)?(A.unshift(y),this.push.apply(this,A)):this.set(y,A);A&&(MHo(_.he(),D.response,this.hostElement,function(C){_.Vh(U.hostElement,"yt-store-grafted-ve-action",[C])}),_.O9(this.hostElement,"yt-next-continuation-data-updated",{continuationData:D,
page:this,contentsArray:y}));this.set(n.continuationsArray||"data.continuations",l[n.responseContinuationsKey||"continuations"]||[])}else D.reload?_.II(new _.rc("Reloading from continuation is unsupported")):D.responseContext&&D.responseContext.errors||(delete D.xsrf_token,delete D.timing,delete D.endpoint,delete D.csn,D.responseContext&&delete D.responseContext.serviceTrackingParams,y={request:_.Ct(l,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(D).sort()},D.response&&(y.responseContentKeys=
Object.keys(D.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(y.continuationType=this.nextContinuation.continuationType.substr(0,256)),D=new _.rc("Malformed continuation",y),l.indexOf("/comment_service_ajax")==0?_.II(D):_.EU(D)),this.set(n.continuationsArray||"data.continuations",[])}else _.Tj(new _.rc("Missing continuation response",l))},
getContents_:function(l,D){D=D.split(".");return _.we.getValueByKeys(l,D)},
pathExists_:function(l){var D=this;l=l.toString().split(".");for(var U=0;U<l.length;U++)if(D=D[l[U]],D===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var nLy;var y_y;var G6=function(){var l=_.p.apply(this,arguments)||this;l.triggered_=!1;return l};
_.Z(G6,_.p);_.W=G6.prototype;_.W.attached=function(){this.maybeTriggerAutoload()};
_.W.detached=function(){this.hasBeenTriggered_=!1};
_.W.onPrescanVisible=function(){this.onShow()};
_.W.onShow=function(){this.showButton||this.trigger()};
_.W.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.O9(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.W.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.W.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.W.computeLabel_=function(l,D){return l===void 0?null:l.label||!D?l.label:this.showMoreText_};
_.W.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.W.getContinuationUrl=function(l){var D={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(D.itct=this.data.clickTrackingParams);return _.hc(l,D)};
_.W.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
G6.prototype.showButtonChanged_=G6.prototype.showButtonChanged_;G6.prototype.observeData_=G6.prototype.observeData_;_.E([_.m(_.n$.YtVisibilityBehavior),_.T("design:type",Object)],G6.prototype,"ytVisibilityBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],G6.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],G6.prototype,"showButton",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],G6.prototype,"showIcon",void 0);_.E([_.K({computed:"computeLabel_(data, showButton)"}),_.T("design:type",Object)],G6.prototype,"label",void 0);_.E([_.K({value:_.$B(_.C3("SHOW_MORE",void 0,"Show More"))}),_.T("design:type",Object)],G6.prototype,"showMoreText_",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],G6.prototype,"spinnerActive_",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],G6.prototype,"hasBeenTriggered_",void 0);
_.E([_.K({value:void 0}),_.T("design:type",String)],G6.prototype,"observeVisibleOption",void 0);_.E([_.K({value:void 0}),_.T("design:type",String)],G6.prototype,"observeHiddenOption",void 0);_.E([_.K({value:"observe_once"}),_.T("design:type",Object)],G6.prototype,"observePrescanOption",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],G6.prototype,"observeData_",null);
_.E([_.Pg("showButton"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],G6.prototype,"showButtonChanged_",null);_.E([_.S0({is:"yt-next-continuation",disableElementRegistration:!0})],G6);
_.r(G6,"yt-next-continuation",function(){if(y_y===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;nLy===void 0&&(nLy=document.createElement("template"));var n=nLy;U.call(D,n.content.cloneNode(!0),l.content.firstChild);y_y=l}l=y_y;return l},{mode:2});var A_y;var W35;var JR=function(){return _.p.apply(this,arguments)||this};
_.Z(JR,_.p);JR.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],JR.prototype,"data",void 0);_.E([_.S0({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],JR);
_.r(JR,"yt-music-pass-small-feature-info-renderer",function(){if(W35===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;A_y===void 0&&(A_y=document.createElement("template"));var n=A_y;U.call(D,n.content.cloneNode(!0),l.content.firstChild);W35=l}l=W35;return l},{mode:2});_.RL("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var LG=function(){var l=_.p.apply(this,arguments)||this;l.isCollapsible=!1;l.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return l};
_.Z(LG,_.p);_.W=LG.prototype;_.W.computeIsCollapsible=function(l){return!!(((l==null?0:l.showMoreText)||(l==null?0:l.visibleRowCount))&&(l==null?0:l.isCollapsible))};
_.W.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"}}}};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.W.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.W.onIronResize=function(){var l=this;_.Fs(this,"updateGridInitItems",function(){l.maybeUpdateInitialItemsDisplayed()})};
_.W.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var l=this.getVisibleWidth();l!==0&&(l=Math.floor(l/214)*(this.data.visibleRowCount||2),l!==this.initialCount&&(this.initialCount=l,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.W.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.W.computeExpandVisible=function(l,D,U,n){return l&&D&&U&&!!n&&!!n.showMoreText};
_.W.computeShowMoreButton=function(l){return{text:l,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.W.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.W.initCollapsed=function(){var l=this;this.ytLazyListBehavior.canShowMore=!1;var D;(this.collapsed=!((D=this.data)==null||!D.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.u6(this,function(){_.iu(l.hostElement,"yt-refit-popups-action")})};
_.W.fillRestIfNotCollapsible=function(){var l=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!l||this.ytLazyListBehavior.fillRemainingListItems()};
_.W.computeViewAllHidden=function(l,D){return l||!D.viewAllEndpoint};
LG.prototype.fillRestIfNotCollapsible=LG.prototype.fillRestIfNotCollapsible;LG.prototype.initCollapsed=LG.prototype.initCollapsed;LG.prototype.onIronResize=LG.prototype.onIronResize;LG.prototype.persistentGuideChanged=LG.prototype.persistentGuideChanged;_.E([_.m(_.$s),_.T("design:type",Object)],LG.prototype,"ironResizableBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],LG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Mn.YtLazyListBehavior),_.T("design:type",Object)],LG.prototype,"ytLazyListBehavior",void 0);_.E([_.m(_.Qa.YtNextContinuationBehavior),_.T("design:type",Object)],LG.prototype,"ytNextContinuationBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],LG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.m(_.vf),_.T("design:type",Object)],LG.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],LG.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],LG.prototype,"collapsed",void 0);_.E([_.K(),_.T("design:type",Number)],LG.prototype,"initialCount",void 0);_.E([_.K({computed:"computeShowMoreButton(data.showMoreText)"}),_.T("design:type",Object)],LG.prototype,"showMoreButton",void 0);
_.E([_.K({computed:"computeIsCollapsible(data)"}),_.T("design:type",Object)],LG.prototype,"isCollapsible",void 0);_.E([_.gP("#items"),_.T("design:type",HTMLElement)],LG.prototype,"items",void 0);_.E([_.GY("guidePersistentAndVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],LG.prototype,"persistentGuideChanged",null);_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],LG.prototype,"onIronResize",null);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],LG.prototype,"initCollapsed",null);_.E([_.GY("canShowMore"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],LG.prototype,"fillRestIfNotCollapsible",null);_.E([_.x({is:"ytd-grid-renderer",disableElementRegistration:!0})],LG);
_.r(LG,"ytd-grid-renderer",function(){if(HWm!==void 0)return HWm;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return HWm=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var qk=function(){return _.p.apply(this,arguments)||this};
_.Z(qk,_.p);
qk.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],qk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],qk.prototype,"data",void 0);_.E([_.x({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],qk);
_.r(qk,"ytd-carousel-ad-renderer",function(){if(Nqg!==void 0)return Nqg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Nqg=l},{mode:1});var BYr;var Mk=function(){return _.p.apply(this,arguments)||this};
_.Z(Mk,_.p);_.W=Mk.prototype;_.W.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"}}}};
_.W.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Mk.JSC$15581_CLICK_LOCATION_ID_MAP))};
_.W.onSitelinkTap=function(l){l.stopPropagation();var D,U,n=l==null?void 0:(D=l.model)==null?void 0:(U=D.item)==null?void 0:U.onTap;n&&this.ytSparklesClickLocationBehavior.handleClick(n,l,!1)};
_.W.onTap=function(l){var D=this.data&&this.data.content&&this.data.content.navigationEndpoint;D&&this.ytSparklesClickLocationBehavior.handleClick(D,l,!1)};
_.W.sendImpression=function(){if(this.data&&this.data.content)for(var l=_.B(this.data.content.impressionEndpoints||[]),D=l.next();!D.done;D=l.next()){D=_.B(D.value.loggingUrls||[]);for(var U=D.next();!U.done;U=D.next())U=U.value,U.baseUrl&&yX(U.baseUrl,U.attributionSrcMode)}};
Mk.prototype.onTap=Mk.prototype.onTap;Mk.prototype.dataChanged=Mk.prototype.dataChanged;Mk.JSC$15581_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.qn.YtSparklesClickLocationBehavior),_.T("design:type",Object)],Mk.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Mk.prototype,"data",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Mk.prototype,"dataChanged",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Mk.prototype,"onTap",null);_.E([_.x({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Mk);
_.r(Mk,"ytd-promoted-sparkles-text-search-renderer",function(){if(BYr!==void 0)return BYr;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return BYr=l},{mode:1});var C15;var Rb=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-mute-ad-action":"handleMuteAd"};return l};
_.Z(Rb,_.p);_.W=Rb.prototype;_.W.created=function(){this.activeView=new aH(this.hostElement)};
_.W.configureRendererStamper=function(){return{"data.menu":{id:_.q("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]]"}}}}}};
_.W.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.W.computeHasAdBadge=function(l){return!(l==null||!l.adBadge)};
_.W.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Rb.JSC$15590_DEFAULT_AD_BADGE_RENDERER),_.nY(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&tY(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Rb.JSC$15590_CLICK_LOCATION_ID_MAP))};
_.W.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var l;(((l=this.data)==null?void 0:l.impressionCommands)||[]).forEach(function(D){D=_.B(D.loggingUrls||[]);for(var U=D.next();!U.done;U=D.next())U=U.value,U.baseUrl&&yX(U.baseUrl,U.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.W.onTap=function(l){var D,U=(D=this.data)==null?void 0:D.navigationEndpoint,n;(D=(n=this.data)==null?void 0:n.thumbnailNavigationEndpoint)&&_.Nh(_.$f(l),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(D,l,!1):U&&this.ytSparklesClickLocationBehavior.handleClick(U,l,!1)};
_.W.handleMuteAd=function(){this.collapsed=!0};
_.W.attached=function(){var l=this;_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&XY(l.activeView)})};
_.W.detached=function(){_.q("stop_av_measurement_on_detach")&&XY(this.activeView)};
_.QP.Object.defineProperties(Rb.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var l;return!(((l=this.data)==null?void 0:l.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var l;return!(((l=this.data)==null?void 0:l.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.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}}});
Rb.prototype.dataChanged=Rb.prototype.dataChanged;
Rb.JSC$15590_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"]]);
Rb.JSC$15590_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.C3("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Rb.prototype,"actionHandlerBehavior",void 0);
_.E([_.m(_.qn.YtSparklesClickLocationBehavior),_.T("design:type",Object)],Rb.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Rb.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Rb.prototype,"collapsed",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.T("design:type",Boolean)],Rb.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.e_("desktop_search_bigger_thumbs_style")}}),
_.T("design:type",String)],Rb.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.T("design:type",Boolean)],Rb.prototype,"fixAlignmentSmallScreens",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs_square")}}),
_.T("design:type",Boolean)],Rb.prototype,"useBiggerThumbsSquare",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.mediaHoverOverlay"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Rb.prototype,"hideHoverOverlay",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Rb.prototype,"webSearchLayout",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Rb.prototype,"webSearchLayoutLandscape",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Rb.prototype,"webSearchLayoutSquare",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Rb.prototype,"sparklesCtaNoBackground",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.actionButton"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Rb.prototype,"hideActionButton",null);_.E([_.K({computed:"computeButtonOverride(uiUpdate)"}),_.T("design:type",Object)],Rb.prototype,"buttonOverride",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.T("design:type",Boolean)],Rb.prototype,"hasNewAdBadge",void 0);_.E([_.t("data.promotedSparklesWebStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Rb.prototype,"useRoundedBadge",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Rb.prototype,"dataChanged",null);_.E([_.x({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Rb);
_.r(Rb,"ytd-promoted-sparkles-web-renderer",function(){if(C15!==void 0)return C15;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return C15=l},{mode:1});var h71;var ZF=function(){var l=_.p.apply(this,arguments)||this;l.isInlinePreviewTriggered=!1;l.enableMonoStyle=_.q("enable_default_mono_cta_migration_web_client");return l};
_.Z(ZF,_.p);_.W=ZF.prototype;_.W.created=function(){this.activeView=new aH(this.hostElement)};
_.W.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]]"}}}}}};
_.W.computeShowCta=function(l){return!(l==null||!l.ctaRenderer)};
_.W.onCtaClick=function(){var l,D,U,n=(l=this.data)==null?void 0:(D=l.ctaRenderer)==null?void 0:(U=D.buttonRenderer)==null?void 0:U.command;n&&this.ytComponentBehavior.resolveCommand(n)};
_.W.onWatchButtonClick=function(){var l,D,U,n=(l=this.data)==null?void 0:(D=l.watchButtonRenderer)==null?void 0:(U=D.buttonRenderer)==null?void 0:U.command;n&&this.ytComponentBehavior.resolveCommand(n)};
_.W.onTap=function(){};
_.W.dataChanged=function(){if(this.data){var l;_.q("enable_inline_muted_playback_on_web_search")&&((l=this.data)==null?0:l.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",ZF.JSC$15594_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&tY(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",ZF.JSC$15594_DEFAULT_CLICK_LOCATION_BEHAVIOR,ZF.JSC$15594_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(l=this.thumbnail.getElementsByTagName("a"),l.length>0&&(l=l.namedItem("thumbnail"))&&l.removeAttribute("href"));var D;if(((D=this.data)==null?0:D.forceImpAutoplay)&&_.q("enable_force_imp_autoplay_on_desktop_search")){var U;(U=this.JSC$15595_inlinePreviewHoverListener)==null||uNN(U)}}};
_.W.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var l=_.B(this.data.impressionUrls),D=l.next();!D.done;D=l.next())D=D.value,$QG(D,sr9(D));this.data.impressionsFired=!0}};
_.W.maybeComputeHref=function(){return null};
_.W.computeIsShortDR=function(l){return!(l==null||!l.watchButtonRenderer)&&!(l==null||!l.ctaRenderer)&&!!this.enableShortDR};
_.W.computeIsNewUiOrShortDr=function(l){return!!this.enableUiUpdate||this.computeIsShortDR(l)};
_.W.computeIsNewUiAndNotShortDr=function(l){return!!this.enableUiUpdate&&!this.computeIsShortDR(l)};
_.W.computeHideAvatar=function(l){return!((l==null?0:l.channelThumbnail)&&this.computeIsNewUiOrShortDr(l))};
_.W.onClick=function(l){var D,U=(D=this.data)==null?void 0:D.navigationEndpoint;if(this.enableShortDR&&U&&(_.M(U,_.za)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(U,l,!!_.M(U,_.za)),l.stopPropagation();else if(U&&_.M(U,_.za))this.ytSparklesClickLocationBehavior.handleClick(U,l,!0),l.stopPropagation();else if(U){var n,y;((n=this.data)==null?0:n.navigationEndpoint)&&((y=this.data)==null?0:y.adPlaybackContextParams)&&(D=this.data.navigationEndpoint,l=this.data.adPlaybackContextParams,
D.commandMetadata&&_.M(D.commandMetadata,_.W6)&&_.M(D.commandMetadata,_.W6).url&&(D=_.BS(_.M(D.commandMetadata,_.W6).url).adurl)&&_.sSc(D)&&_.s9(_.jG(D),{encoded_ad_playback_context:l}));this.ytComponentBehavior.resolveCommand(U)}};
_.W.computeButtonOverride=function(l){if(this.computeIsNewUiOrShortDr(l))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.W.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.W.onThumbnailContainerClick=function(l){this.onClick(l)};
_.W.computeThumbnailWidth=function(l,D){return l?D==="MASSIVE"?600:D==="BIG"?500:D==="MEDIUM"?450:420:360};
_.W.attached=function(){var l=this,D;_.q("enable_inline_muted_playback_on_web_search")&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&XY(l.activeView)})};
_.W.detached=function(){var l;_.q("enable_inline_muted_playback_on_web_search")&&((l=this.data)==null?0:l.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.q("stop_av_measurement_on_detach")&&XY(this.activeView)};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15595_inlinePreviewHoverListener=Sq({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:RD_})};
_.W.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$15595_inlinePreviewHoverListener)==null||f4(l)};
ZF.prototype.dataChanged=ZF.prototype.dataChanged;ZF.prototype.onTap=ZF.prototype.onTap;ZF.JSC$15594_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.C3("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};ZF.JSC$15594_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
ZF.JSC$15594_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ZF.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.qn.YtSparklesClickLocationBehavior),_.T("design:type",Object)],ZF.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.gP("#main-container"),_.T("design:type",HTMLElement)],ZF.prototype,"mainContainer",void 0);
_.E([_.K(),_.T("design:type",Object)],ZF.prototype,"isInlinePreviewTriggered",void 0);_.E([_.K(),_.T("design:type",Object)],ZF.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.T("design:type",Boolean)],ZF.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_video_display_compact_button_group_for_desktop_search")}}),
_.T("design:type",Boolean)],ZF.prototype,"enableShortDR",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_vac_ui_update_for_desktop_search")}}),
_.T("design:type",Boolean)],ZF.prototype,"enableUiUpdate",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.e_("desktop_search_bigger_thumbs_style")}}),
_.T("design:type",String)],ZF.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.T("design:type",Boolean)],ZF.prototype,"showCta",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.T("design:type",Boolean)],ZF.prototype,"isShortDr",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.T("design:type",Boolean)],ZF.prototype,"isShortDrOrNewUi",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.T("design:type",Boolean)],ZF.prototype,"isNewUiAndNotShortDr",void 0);_.E([_.K({computed:"computeButtonOverride(data)"}),_.T("design:type",Object)],ZF.prototype,"buttonOverride",void 0);_.E([_.K({computed:"computeSecondaryButtonOverride(data)"}),_.T("design:type",Object)],ZF.prototype,"secondaryButtonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ZF.prototype,"enableMonoStyle",void 0);
_.E([_.gP("ytd-thumbnail"),_.T("design:type",HTMLElement)],ZF.prototype,"thumbnail",void 0);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ZF.prototype,"onTap",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ZF.prototype,"dataChanged",null);_.E([_.x({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],ZF);
_.r(ZF,"ytd-promoted-video-renderer",function(){if(h71!==void 0)return h71;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return h71=l},{mode:1});var P1H;var eu=function(){var l=_.p.apply(this,arguments)||this;l.useRoundedBadge=!0;l.sitelinkIds=[];return l};
_.Z(eu,_.p);_.W=eu.prototype;
_.W.configureRendererStamper=function(){return{"data.menu":{id:_.q("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]]"}}}}}};
_.W.dataChanged=function(){var l;(l=this.data)!=null&&l.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,eu.JSC$15600_CLICK_LOCATION_ID_MAP)};
_.W.onTap=function(l){var D,U=(D=this.data)==null?void 0:D.navigationCommand;U&&!_.Nh(_.$f(l),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(U,l,!1)};
_.W.onSitelinkTap=function(l){var D,U,n=l==null?void 0:(D=l.model)==null?void 0:(U=D.item)==null?void 0:U.onTap;n&&this.ytSparklesClickLocationBehavior.handleClick(n,l,!1)};
_.W.configureSitelinkClickTargets=function(){var l=this,D,U,n=(D=this.data)==null?void 0:(U=D.clickLocationTargets)==null?void 0:U.find(function(y){return y.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
n&&_.iJ(this.hostElement).querySelectorAll(".sitelink").forEach(function(y){_.nY(y,"yt-simple-endpoint",!0);l.sitelinkIds.push(y.id);var A,C;(A=l.ytSparklesClickLocationBehavior)==null||(C=A.clickTargetMap)==null||C.set(y.id,n)})};
_.W.sendImpression=function(){var l,D,U=((l=this.data)==null?void 0:(D=l.impressionCommand)==null?void 0:D.loggingUrls)||[];l=_.B(U);for(D=l.next();!D.done;D=l.next())D=D.value,D.baseUrl&&yX(D.baseUrl,D.attributionSrcMode)};
_.W.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.QP.Object.defineProperties(eu.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
eu.prototype.onTap=eu.prototype.onTap;eu.prototype.dataChanged=eu.prototype.dataChanged;eu.JSC$15600_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.qn.YtSparklesClickLocationBehavior),_.T("design:type",Object)],eu.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],eu.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],eu.prototype,"showFavicon",null);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.T("design:type",Boolean)],eu.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.e_("desktop_search_bigger_thumbs_style")}}),
_.T("design:type",String)],eu.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.T("design:type",Boolean)],eu.prototype,"enableThumbnailScalingFix",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],eu.prototype,"dataChanged",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],eu.prototype,"onTap",null);_.E([_.x({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],eu);
_.r(eu,"ytd-text-image-no-button-layout-renderer",function(){if(P1H!==void 0)return P1H;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return P1H=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var bjy;var mo=function(){var l=_.p.apply(this,arguments)||this;l.isInlinePlaybackState=!1;l.uiUpdate=_.q("web_modern_buttons");l.hideCta=_.q("hide_cta_for_home_web_video_ads");l.noBottomMargin=!1;l.animateInTimeStamp=_.RG("hide_cta_for_home_web_video_ads_animate_in_time");l.animateInCta=!1;l.isHovered=!1;l.enableMonoStyle=_.q("enable_default_mono_cta_migration_web_client");l.player=null;l.JSC$15607_playerEvents=new Map;l.JSC$15607_preventProgressSaveTimer=null;l.delayedCtaJobId=null;return l};
_.Z(mo,_.p);_.W=mo.prototype;_.W.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]]"}}}}}};
_.W.attached=function(){this.JSC$15607_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15607_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.q("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.W.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15607_playerEvents)};
_.W.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",mo.JSC$15606_DEFAULT_CLICK_LOCATION_BEHAVIOR,mo.JSC$15606_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.W.hoverChanged=function(){var l=this;this.delayedCtaJobId&&(_.Tn.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.q("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Ji(_.Tn,function(){l.buttonContainer.classList.add("show-delayed-buttons")},_.RG("delayed_cta_on_web_delay_milliseconds")))};
_.W.setPlayer=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return(D=_.iu(l.hostElement,"yt-get-inline-preview-player-action"))&&D[0]?U.yield(D[0].getPlayerPromise(),3):U.jumpTo(0);l.player=U.yieldResult;l.ytPlayerListenerBehavior.listenToPlayerEvents(l.player,l.JSC$15607_playerEvents);_.Kz(U)})};
_.W.onPlaybackStart=function(){var l=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15607_preventProgressSaveTimer=_.Vu(_.Tn,function(){l.JSC$15607_preventProgressSaveTimer=null},1E4))};
_.W.onVideoProgress=function(l){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&l>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.W.resetPreventProgressSaveTimer=function(){_.Tn.cancelJob(this.JSC$15607_preventProgressSaveTimer);this.JSC$15607_preventProgressSaveTimer=null};
_.W.getSimpleString=function(l){return _.Nl(l)};
_.W.onClick=function(l){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var D,U=(D=this.data)==null?void 0:D.navigationEndpoint,n;D=(n=this.data)==null?void 0:n.channelEndpoint;var y,A;((A=_.M((y=this.data)==null?void 0:y.adCtaButton,_.yn))==null?0:A.command)&&_.Nh(_.$f(l),this.hostElement,["call-to-action"])||(D&&_.Nh(_.$f(l),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(D,l,!1):!_.Nh(_.$f(l),this.hostElement,
["secondary-button"])&&U&&(_.q("enable_short_dr_for_desktop_launchable")?(n=!!_.M(U,_.za),this.isInlinePlaybackState&&n&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(U,l,n)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(U,l,!0))))}};
_.W.updateWatchEndpointStartTime=function(){var l,D;this.player&&((l=this.data)==null?0:l.inlinePlaybackEndpoint)&&((D=this.data)==null?0:D.navigationEndpoint)&&!this.JSC$15607_preventProgressSaveTimer&&(l=Math.floor(this.player.getCurrentTime()),_.M(this.data.navigationEndpoint,_.za).startTimeSeconds=l,_.M(this.data.inlinePlaybackEndpoint,_.za).startTimeSeconds=l)};
_.W.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.W.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.QP.Object.defineProperties(mo.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.q("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var l,D;return!((l=this.data)==null||!l.watchButton)&&!((D=this.data)==null||!D.adCtaButton)}}});
mo.prototype.hoverChanged=mo.prototype.hoverChanged;mo.prototype.dataChanged=mo.prototype.dataChanged;
mo.JSC$15606_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"]]);
mo.JSC$15606_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],mo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],mo.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.qn.YtSparklesClickLocationBehavior),_.T("design:type",Object)],mo.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],mo.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],mo.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],mo.prototype,"isInlinePlaybackState",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],mo.prototype,"miniMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],mo.prototype,"uiUpdate",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],mo.prototype,"hideCta",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],mo.prototype,"noBottomMargin",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],mo.prototype,"animateInCta",void 0);_.E([_.K({computed:"computeButtonOverride(uiUpdate)"}),_.T("design:type",Object)],mo.prototype,"buttonOverride",void 0);
_.E([_.K({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.T("design:type",Object)],mo.prototype,"secondaryButtonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],mo.prototype,"isHovered",void 0);_.E([_.gP("#button-container"),_.T("design:type",HTMLElement)],mo.prototype,"buttonContainer",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],mo.prototype,"typographyBump",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("typographyBump"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],mo.prototype,"typographyBumpV2",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],mo.prototype,"enableMonoStyle",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],mo.prototype,"dataChanged",null);
_.E([_.Pg("isHovered"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],mo.prototype,"hoverChanged",null);_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],mo.prototype,"isButtonGroup",null);_.E([_.x({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],mo);
_.r(mo,"ytd-ad-inline-playback-meta-block",function(){if(bjy!==void 0)return bjy;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return bjy=l},{mode:_.Vj("kevlar_poly_si_batch_j065")?1:2});var gL5;var ab=function(){var l=_.p.apply(this,arguments)||this;l.noBottomMargin=!1;l.isInlinePreviewTriggered=!1;l.JSC$15612_activeViewMeasurementDataResolver=_.wf();return l};
_.Z(ab,_.p);_.W=ab.prototype;_.W.created=function(){this.activeView=new aH(this.hostElement)};
_.W.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.W.attached=function(){var l=this;this.updateInlinePreviewHoverListeners();this.JSC$15612_activeViewMeasurementDataResolver.promise.then(function(D){tY(l.activeView,D)});
_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&XY(l.activeView)})};
_.W.detached=function(){this.clearInlinePreviewHoverListeners();_.q("stop_av_measurement_on_detach")&&XY(this.activeView)};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15612_inlinePreviewHoverListener=Sq({mediaRenderer:this,lockupElement:this.JSC$15612_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:RD_})};
_.W.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$15612_inlinePreviewHoverListener)==null||f4(l)};
_.W.onDataChanged=function(){var l;((l=this.data)==null?0:l.activeView)&&this.JSC$15612_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ab.JSC$15611_DEFAULT_CLICK_LOCATION_BEHAVIOR,ab.JSC$15611_CLICK_LOCATION_ID_MAP);this.thumbnail&&(l=this.thumbnail.getElementsByTagName("a"),l.length>0&&(l=l.namedItem("thumbnail"))&&l.removeAttribute("href"));var D;if((D=this.data)==
null?0:D.forceImpAutoplay){var U;(U=this.JSC$15612_inlinePreviewHoverListener)==null||uNN(U)}};
_.W.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.W.onThumbnailContainerClick=function(l){if(this.data&&this.data.navigationEndpoint){var D,U=(D=this.data)==null?void 0:D.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(U,l,!!_.M(U,_.za));l.stopPropagation()}};
_.W.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.W.impressionLog=function(){var l=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var D,U,n=(U=_.M((D=this.data)==null?void 0:D.onImpression,_.n3))==null?void 0:U.commands;n&&(n.forEach(function(y){y.clickTrackingParams&&delete y.clickTrackingParams;l.ytComponentBehavior.resolveCommand(y)}),this.data.impressionsFired=!0)}};
_.QP.Object.defineProperties(ab.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$15612_inlinePreviewHoverListener)==null?0:yc(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ab.prototype.onTypographyBumpChanged=ab.prototype.onTypographyBumpChanged;ab.prototype.onDataChanged=ab.prototype.onDataChanged;ab.JSC$15611_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ab.JSC$15611_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ab.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],ab.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],ab.prototype,"ytdLockupBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],ab.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.qn.YtSparklesClickLocationBehavior),_.T("design:type",Object)],ab.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ab.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],ab.prototype,"noBottomMargin",void 0);_.E([_.K(),_.T("design:type",Object)],ab.prototype,"isInlinePreviewTriggered",void 0);
_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],ab.prototype,"miniMode",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],ab.prototype,"typographyBump",void 0);_.E([_.gP("ytd-thumbnail"),_.T("design:type",HTMLElement)],ab.prototype,"thumbnail",void 0);_.E([_.gP("#dismissible"),_.T("design:type",HTMLElement)],ab.prototype,"JSC$15612_dismissibleMedia",void 0);
_.E([_.gP("ytd-ad-inline-playback-meta-block"),_.T("design:type",HTMLElement)],ab.prototype,"adInlinePlaybackMetaBlock",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ab.prototype,"onDataChanged",null);_.E([_.GY("typographyBump"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ab.prototype,"onTypographyBumpChanged",null);
_.E([_.t("lockupIsHovered"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ab.prototype,"isHovered",null);_.E([_.x({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],ab);
_.r(ab,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(gL5!==void 0)return gL5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return gL5=l},{mode:1});var uAm;var tR=function(){var l=_.p.apply(this,arguments)||this;l.isInlinePreviewTriggered=!1;l.JSC$15615_activeViewMeasurementDataResolver=_.wf();return l};
_.Z(tR,_.p);_.W=tR.prototype;_.W.created=function(){this.activeView=new aH(this.hostElement)};
_.W.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.W.attached=function(){var l=this;this.updateInlinePreviewHoverListeners();this.JSC$15615_activeViewMeasurementDataResolver.promise.then(function(D){tY(l.activeView,D)})};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15615_inlinePreviewHoverListener=Sq({mediaRenderer:this,lockupElement:this.JSC$15615_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:RD_})};
_.W.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$15615_inlinePreviewHoverListener)==null||f4(l)};
_.W.onDataChanged=function(){var l;((l=this.data)==null?0:l.activeView)&&this.JSC$15615_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",tR.JSC$15614_DEFAULT_CLICK_LOCATION_BEHAVIOR,tR.JSC$15614_CLICK_LOCATION_ID_MAP);this.thumbnail&&(l=this.thumbnail.getElementsByTagName("a"),l.length>0&&(l=l.namedItem("thumbnail"))&&l.removeAttribute("href"))};
_.W.onThumbnailContainerClick=function(l){if(this.data&&this.data.navigationEndpoint){var D,U=(D=this.data)==null?void 0:D.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(U,l,!0);l.stopPropagation()}};
_.W.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.W.impressionLog=function(){var l=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var D,U,n=(U=_.M((D=this.data)==null?void 0:D.onImpression,_.n3))==null?void 0:U.commands;n&&(n.forEach(function(y){y.clickTrackingParams&&delete y.clickTrackingParams;_.Jc().resolve(_.qK).resolveCommand(y,{form:{element:l.hostElement}})}),this.data.impressionsFired=!0)}};
_.QP.Object.defineProperties(tR.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$15615_inlinePreviewHoverListener)==null?0:yc(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tR.prototype.onDataChanged=tR.prototype.onDataChanged;tR.JSC$15614_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);tR.JSC$15614_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],tR.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],tR.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],tR.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.qn.YtSparklesClickLocationBehavior),_.T("design:type",Object)],tR.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],tR.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],tR.prototype,"isInlinePreviewTriggered",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],tR.prototype,"miniMode",void 0);_.E([_.gP("ytd-thumbnail"),_.T("design:type",HTMLElement)],tR.prototype,"thumbnail",void 0);_.E([_.gP("#dismissible"),_.T("design:type",HTMLElement)],tR.prototype,"JSC$15615_dismissibleMedia",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tR.prototype,"onDataChanged",null);_.E([_.t("lockupIsHovered"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tR.prototype,"isHovered",null);_.E([_.x({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],tR);
_.r(tR,"ytd-video-display-full-buttoned-renderer",function(){if(uAm!==void 0)return uAm;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return uAm=l},{mode:1});var EE=function(l,D,U,n){n=n===void 0?!1:n;_.D9.call(this,l);this.adsClientErrorMessage=U;this.aggressivelySample=n;this.args=[];D&&this.args.push(D)};
_.Z(EE,_.D9);var NJ=function(l,D,U,n){n=n===void 0?!1:n;_.D9.call(this,l);this.adsClientErrorMessage=U;this.aggressivelySample=n;this.args=[];D&&this.args.push(D)};
_.Z(NJ,_.D9);var vLk=function(l){_.xT.call(this);var D=this;this.initializationFunction=l;this.instance=null;this.addOnDisposeCallback(function(){_.WE(D.instance);D.instance=null})};
_.Z(vLk,_.xT);vLk.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.jq("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var SuG=function(){var l=new Map;[].forEach(function(D){l.set(D.JSC$31002_getType(),D)});
this.getters=l};new Promise(function(){});var eC3=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"]]),RC3=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"}]]),Q9v=function(l){this.experimentApiProvider=l;l=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=l<.1};var XD=function(l,D,U,n){_.xT.call(this);this.adsControlFlowEventListeners=D;this.adEventLogger=U;this.experimentApiProvider=n;this.adsControlFlowManagerHelper=l(this,this,this,this,this);_.m7(this,this.adsControlFlowManagerHelper);l=_.B(D);for(D=l.next();!D.done;D=l.next())_.m7(this,D.value)};
_.Z(XD,_.xT);var Ggz=function(l,D,U,n){Su(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",D,U,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n);l=_.B(l.adsControlFlowEventListeners);for(n=l.next();!n.done;n=l.next())Ggz(n.value,D,U)};
_.W=XD.prototype;_.W.onOpportunityProcessedExternallyManaged=function(l,D,U,n){Su(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",l,U,D,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n)};
_.W.onSlotReceivedExternallyManaged=function(l,D){kR(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",l,D)};
_.W.onSlotEntered=function(l){if(di(this.adsControlFlowManagerHelper,l)!=null){kR(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",l);this.adsControlFlowManagerHelper.onSlotEntered(l);for(var D=_.B(this.adsControlFlowEventListeners),U=D.next();!U.done;U=D.next())U.value.onSlotEntered(l);if(di(this.adsControlFlowManagerHelper,l)!=null&&di(this.adsControlFlowManagerHelper,l).isOccupyingSlotType()&&KG(this.adsControlFlowManagerHelper,l)&&!J_1(this.adsControlFlowManagerHelper,l)){var n;cf(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",l,(n=KG(this.adsControlFlowManagerHelper,l))!=null?n:void 0);l=di(this.adsControlFlowManagerHelper,l);l.slotLifecycleStage!=="entered"&&pG(l.slot,l.slotLifecycleStage,"enterLayoutForSlot");l.slotLifecycleStage="rendering";l.registeredLayoutRenderingAdapter.startRendering(l.layout)}}};
_.W.onSlotExited=function(l){if(di(this.adsControlFlowManagerHelper,l)!=null){kR(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",l);this.adsControlFlowManagerHelper.onSlotExited(l);for(var D=_.B(this.adsControlFlowEventListeners),U=D.next();!U.done;U=D.next())U.value.onSlotExited(l);di(this.adsControlFlowManagerHelper,l)!=null&&di(this.adsControlFlowManagerHelper,l).markedForUnscheduleAfterOutboundAdapterRequests&&L3H(this,l)}};
_.W.onLayoutReceivedExternallyManaged=function(l,D,U){l.managerLayer!=="core"&&cf(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",l,D,U)};
var qTk=function(l,D,U){if(di(l.adsControlFlowManagerHelper,D)!=null){cf(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",D,U);l=_.B(l.adsControlFlowEventListeners);for(var n=l.next();!n.done;n=l.next())qTk(n.value,D,U)}};
XD.prototype.onLayoutExited=function(l,D,U){if(di(this.adsControlFlowManagerHelper,l)!=null){cf(this.adEventLogger,Zld(U),l,D);this.adsControlFlowManagerHelper.onLayoutExited(l,D);for(var n=_.B(this.adsControlFlowEventListeners),y=n.next();!y.done;y=n.next())y.value.onLayoutExited(l,D,U);(U=KG(this.adsControlFlowManagerHelper,l))&&D.layoutId===U.layoutId&&MRm(this,l)}};
XD.prototype.disposeInternal=function(){var l=R7h(this.adsControlFlowManagerHelper);l=_.B(l);for(var D=l.next();!D.done;D=l.next())L3H(this,D.value);_.xT.prototype.disposeInternal.call(this)};
var L3H=function(l,D){if(di(l.adsControlFlowManagerHelper,D)!=null)if(di(l.adsControlFlowManagerHelper,D).JSC$31032_isSlotExitRequested()||di(l.adsControlFlowManagerHelper,D).JSC$31032_isLayoutExitRequested())di(l.adsControlFlowManagerHelper,D).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(di(l.adsControlFlowManagerHelper,D).isOccupyingSlotType())di(l.adsControlFlowManagerHelper,D).markedForUnscheduleAfterOutboundAdapterRequests=!0,MRm(l,D);else if(di(l.adsControlFlowManagerHelper,D).JSC$31032_isSlotFillRequested())di(l.adsControlFlowManagerHelper,
D).markedForUnscheduleAfterOutboundAdapterRequests=!0,di(l.adsControlFlowManagerHelper,D)!=null&&(kR(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",D),D=di(l.adsControlFlowManagerHelper,D),D.fulfillmentLifecycleStage="fill_cancel_requested",D.registeredFulfillmentAdapter.cancelSlotFilling());else{var U=KG(l.adsControlFlowManagerHelper,D),n;l.experimentApiProvider.get();(n=_.q("h5_enable_layout_unscheduling_events"))&&(U?Zj8(l,D,U):_.jq(Error("Lh"),D,U,void 0,!1));kR(l.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",D);var y=di(l.adsControlFlowManagerHelper,D),A=D.slotEntryTrigger,C=y.registeredSlotEntryTriggerAdapters.get(A.triggerId);C&&(C.unregisterTrigger(A),y.registeredSlotEntryTriggerAdapters.delete(A.triggerId));A=_.B(D.slotFulfillmentTriggers);for(C=A.next();!C.done;C=A.next()){C=C.value;var h=y.registeredFulfillmentTriggerAdapters.get(C.triggerId);h&&(h.unregisterTrigger(C),y.registeredFulfillmentTriggerAdapters.delete(C.triggerId))}A=_.B(D.slotExpirationTriggers);
for(C=A.next();!C.done;C=A.next())if(C=C.value,h=y.registeredExpirationTriggerAdapters.get(C.triggerId))h.unregisterTrigger(C),y.registeredExpirationTriggerAdapters.delete(C.triggerId);y.hasLayout()&&(A=y.layout,xR(y,A.layoutExitNormalTriggers),xR(y,A.layoutExitSkipTriggers),xR(y,A.layoutExitMuteTriggers),xR(y,A.layoutExitUserInputSubmittedTriggers),xR(y,A.layoutExitUserCancelledTriggers));y.registeredFulfillmentAdapter=void 0;y.registeredSlotAdapter!=null&&(y.registeredSlotAdapter.release(),y.registeredSlotAdapter=
void 0);y.registeredLayoutRenderingAdapter!=null&&(y.registeredLayoutRenderingAdapter.release(),y.registeredLayoutRenderingAdapter=void 0);y=l.adsControlFlowManagerHelper;di(y,D)&&(y=e7v(y,D.slotType+"_"+D.slotPhysicalPosition))&&y.delete(D.slotId);kR(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",D);l=_.B(l.adsControlFlowEventListeners);for(y=l.next();!y.done;y=l.next())y=y.value,y.onSlotUnscheduled(D),U&&!n&&Zj8(y,D,U)}},Zj8=function(l,D,U){cf(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
D,U);
cf(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",D,U);l=_.B(l.adsControlFlowEventListeners);for(var n=l.next();!n.done;n=l.next())n=n.value,U&&Zj8(n,D,U)},MRm=function(l,D){if(di(l.adsControlFlowManagerHelper,D)!=null&&di(l.adsControlFlowManagerHelper,D).isOccupyingSlotType()){var U=KG(l.adsControlFlowManagerHelper,D);
if(U&&J_1(l.adsControlFlowManagerHelper,D)){if(di(l.adsControlFlowManagerHelper,D)!=null){var n=l.adEventLogger,y;var A=((y=RC3.get("abandoned"))==null?void 0:y.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";cf(n,A,D,U);l=di(l.adsControlFlowManagerHelper,D);l.slotLifecycleStage!=="rendering"&&pG(l.slot,l.slotLifecycleStage,"exitLayout");l.slotLifecycleStage="rendering_stop_requested";l.registeredLayoutRenderingAdapter.stopRendering(U,"abandoned")}}else{kR(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
D);try{n=di(l.adsControlFlowManagerHelper,D);if(!n)throw new NJ("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");n.slotLifecycleStage!=="enter_requested"&&n.slotLifecycleStage!=="entered"&&n.slotLifecycleStage!=="rendering"&&pG(n.slot,n.slotLifecycleStage,"exitSlot");n.slotLifecycleStage="exit_requested";if(n.registeredSlotAdapter===void 0)throw n.slotLifecycleStage="scheduled",new NJ("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
n.registeredSlotAdapter.exit()}catch(C){C instanceof NJ&&C.adsClientErrorMessage?(mug(l.adEventLogger,C.adsClientErrorMessage,D),_.jq(C,D,void 0,void 0,C.aggressivelySample)):(mug(l.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",D),_.jq(C,D))}}}};var ju=function(l,D,U,n,y,A){_.xT.call(this);this.registry=l;this.experimentApiProvider=A;this.slotMap=new Map};
_.Z(ju,_.xT);var e7v=function(l,D){return(l=l.slotMap.get(D))?l:new Map},di=function(l,D){return e7v(l,D.slotType+"_"+D.slotPhysicalPosition).get(D.slotId)},R7h=function(l){var D=[];
l.slotMap.forEach(function(U){U=_.B(U.values());for(var n=U.next();!n.done;n=U.next())D.push(n.value.slot)});
return D};
ju.prototype.onSlotEntered=function(l){l=di(this,l);l.slotLifecycleStage!=="enter_requested"&&pG(l.slot,l.slotLifecycleStage,"onSlotEntered");l.slotLifecycleStage="entered"};
var J_1=function(l,D){l=di(l,D);return l.hasLayout()&&l.isRendering()},KG=function(l,D){(l=di(l,D))?l.hasLayout()&&!l.layout&&_.jq("Unexpected empty layout",D):_.jq("Unexpected undefined slotState",D);
return(l==null?void 0:l.layout)||null};
ju.prototype.onSlotExited=function(l){l=di(this,l);l.slotLifecycleStage!=="exit_requested"&&pG(l.slot,l.slotLifecycleStage,"onSlotExited");l.slotLifecycleStage="scheduled"};
ju.prototype.onLayoutExited=function(l,D){l=di(this,l);l.isPrimaryLayout(D)&&(l.slotLifecycleStage!=="rendering_stop_requested"&&pG(l.slot,l.slotLifecycleStage,"onLayoutExited"),l.slotLifecycleStage="entered")};
var xR=function(l,D){D=_.B(D);for(var U=D.next();!U.done;U=D.next()){U=U.value;var n=l.registeredLayoutExitTriggerAdapters.get(U.triggerId);n&&(n.unregisterTrigger(U),l.registeredLayoutExitTriggerAdapters.delete(U.triggerId))}},pG=function(l,D,U){_.jq("Slot stage was "+D+" when calling method "+U,l)};var tRv=function(l){_.xT.call(this);this.deps=l;this.JSC$15668_adsControlFlowManager=aA7(this)};
_.Z(tRv,_.xT);var aA7=function(l){var D=new XD(function(U,n,y,A){return new ju(l.deps.registry,U,n,y,A,l.deps.experimentApiProvider)},new Set(XUB(l.deps.registry).concat(l.deps.listeners)),l.deps.adEventLogger,l.deps.experimentApiProvider);
_.m7(l,D);return D};var Y9B=function(){};var XCk=function(l,D){_.xT.call(this);this.experimentApiProvider=l;this.eventLoggingSettingsProvider=D;this.eventCount=0;this.premiumAdSeenEventLogger=OIg()()};
_.Z(XCk,_.xT);XCk.prototype.logEvent=function(l){Su(this,l)};
var kR=function(l,D,U,n){Su(l,D,void 0,void 0,void 0,U,void 0,void 0,void 0,U.adSlotLoggingData,void 0,void 0,n)},cf=function(l,D,U,n,y){Su(l,D,void 0,void 0,void 0,U,n?n:void 0,void 0,void 0,U.adSlotLoggingData,n?n.adLayoutLoggingData:void 0,void 0,y);
U=_.Jc().resolve(_.G8(w$))==null?void 0:r$();D=U==null?void 0:U.adsSeenHotConfig;U=U==null?void 0:U.adsHotConfig;(D==null?0:D.logOnAdsSeen)&&(U==null?0:U.webEnablePremiumAdsSeenLogging)&&STy(l,n?n:void 0,y)},mug=function(l,D,U){Su(l,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,U,void 0,void 0,void 0,U.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:D})},Su=function(l,D,U,n,y,A,C,h,b,u,Q,G,J){J=J===void 0?0:J;
kgv(l.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+D,"slot:",A,"layout:",C,"ping:",h,"Opportunity:",{opportunityType:U,associatedSlotId:n,slotsFromOpportunity:y,triggerBundle:b,adSlotLoggingData:u,adLayoutLoggingData:Q});try{var L=function(){l.experimentApiProvider.get();if(D!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){D||_.jq("Empty PACF event type",A,C);var R=l.eventLoggingSettingsProvider.get();var a;(a=R.alwaysIncludeDebugData)||(R.experimentApiProvider.get(),a=
!1);R=a;a={eventType:D,eventOrder:++l.eventCount};var S={};A&&(S.slotData=ag9(R,A));if(C){var d={type:C.layoutType,controlFlowManagerLayer:eC3.get(C.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R&&(d.debugData={layoutId:C.layoutId});S.layoutData=d}h&&(S.pingData={pingDispatchStatus:h.dispatchStatus,serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});b&&(S.triggerData=myK(b.trigger,b.category));U&&(S.opportunityData=tH$(R,U,n,y));a.adClientData=S;u&&(a.serializedSlotAdServingData=
u.serializedSlotAdServingDataEntry);Q&&(a.serializedAdServingData=Q.serializedAdServingDataEntry);G&&(a.errorInfo=G);_.Na("adsClientStateChange",{adsClientEvent:a})}};
J&&J>0?_.oI(_.M9(),function(){return L()},J):L()}catch(R){kgv(l.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.oI(_.M9(),function(){_.jq(R instanceof Error?R:String(R),A,C,{pacf_message:"exception during pacf logging"})})}},STy=function(l,D,U){if(D){var n=D.adLayoutLoggingData;
_.oI(_.M9(),function(){l.premiumAdSeenEventLogger!=null&&n&&_.Na("adsSeenClientLogging",{serializedAdServingDataEntry:n.serializedAdServingDataEntry})},U!=null?U:0)}};var duH=function(l,D){XCk.call(this,l,D)};
_.Z(duH,XCk);var K3h=function(){},kgv=function(l,D){return _.q(D)};var pCv=function(){var l=new c_5;this.JSC$15693_adsControlFlowManager=(new tRv(l)).JSC$15668_adsControlFlowManager},c_5=function(){_.xT.call(this);
var l=this;this.experimentApiProvider=new vLk(function(){return new K3h});
var D=new vLk(function(){return new Q9v(l.experimentApiProvider)});
this.adEventLogger=new duH(this.experimentApiProvider,D);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.Z(c_5,_.xT);var xur=function(){},j9g,FD=function(){j9g||(j9g=new xur);
return j9g},ob=function(l){if(!l.JSC$15704_externallyManagedSlotAdapterCallback){var D=(new pCv).JSC$15693_adsControlFlowManager;
l.JSC$15704_externallyManagedSlotAdapterCallback=D}return l.JSC$15704_externallyManagedSlotAdapterCallback},F3v=function(l,D,U){var n=D.opportunityType,y=Error("Mh");
if(n!==void 0){var A=ob(l);Ggz(A,n,void 0,U)}else _.jq(y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});A=[];if(D.adSlotAndLayoutMetadata!==void 0){D=_.B(D.adSlotAndLayoutMetadata);for(var C=D.next();!C.done;C=D.next()){var h=C.value;if(C=h.adSlotMetadata)if(A.push(C),l.onSlotReceivedExternallyManaged(C,U),h.adLayoutMetadata){h=_.B(h.adLayoutMetadata);for(var b=h.next();!b.done;b=h.next())l.onLayoutReceivedExternallyManaged(C,b.value,U)}else U>0&&_.jq("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
n,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else U>0&&_.jq("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+n,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else U>0&&_.jq("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+n,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(n!==void 0)l.onOpportunityProcessedExternallyManaged(n,A,void 0,U);else _.jq(y,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
xur.prototype.onSlotReceivedExternallyManaged=function(l,D){l=sE(l);if(l instanceof NJ)_.jq(l,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else ob(this).onSlotReceivedExternallyManaged(l,D)};
xur.prototype.onLayoutReceivedExternallyManaged=function(l,D,U){l=sE(l);D=kFc(D);if(l instanceof NJ)_.jq(l,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(D instanceof EE)_.jq(D,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else ob(this).onLayoutReceivedExternallyManaged(l,D,U)};
xur.prototype.onOpportunityProcessedExternallyManaged=function(l,D,U,n){var y=[];D=_.B(D);for(var A=D.next();!A.done;A=D.next())A=sE(A.value),A instanceof NJ?_.jq(A,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):y.push(A);ob(this).onOpportunityProcessedExternallyManaged(l,y,U,n)};
var oLg=function(l,D){D=sE(D);if(D instanceof NJ)_.jq(D,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var U=ob(l);kR(U.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",D);U=_.B(U.adsControlFlowEventListeners);for(var n=U.next();!n.done;n=U.next())n=di(n.value,D),n.slotLifecycleStage!=="not_scheduled"&&pG(n.slot,n.slotLifecycleStage,"onSlotScheduled"),n.slotLifecycleStage="scheduled";l=ob(l);kR(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",D);l=_.B(l.adsControlFlowEventListeners);
for(U=l.next();!U.done;U=l.next())U.value.onSlotEntered(D)}},wCy=function(l,D){D=sE(D);
if(D instanceof NJ)_.jq(D,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var U=ob(l);kR(U.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",D);U=_.B(U.adsControlFlowEventListeners);for(var n=U.next();!n.done;n=U.next())n.value.onSlotExited(D);l=ob(l);kR(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",D);l=_.B(l.adsControlFlowEventListeners);for(U=l.next();!U.done;U=l.next())U.value.onSlotUnscheduled(D)}},r__=function(l,D,U){D=sE(D);
U=kFc(U);if(D instanceof NJ)_.jq(D,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(U instanceof EE)_.jq(U,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var n=ob(l);cf(n.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",D,U);n=_.B(n.adsControlFlowEventListeners);for(var y=n.next();!y.done;y=n.next())y.value.onLayoutScheduled(D,U);l=ob(l);cf(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",D,U);l=_.B(l.adsControlFlowEventListeners);
for(n=l.next();!n.done;n=l.next())qTk(n.value,D,U)}},$R=function(l,D,U){D=sE(D);
U=kFc(U);if(D instanceof NJ)_.jq(D,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(U instanceof EE)_.jq(U,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var n=ob(l);cf(n.adEventLogger,Zld("normal"),D,U);n=_.B(n.adsControlFlowEventListeners);for(var y=n.next();!y.done;y=n.next())y.value.onLayoutExited(D,U,"normal");l=ob(l);l=_.B(l.adsControlFlowEventListeners);for(n=l.next();!n.done;n=l.next())Zj8(n.value,D,U)}};_.Nk=_.w(function(l){var D=_.sl(l,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});l=Object.assign({},D);var U=D.data;D=D.customCommandResolver;var n=(delete l.data,delete l.customCommandResolver,l);l=_.JH({visibilityCallback:function(h,b){var u,Q=(u=U().interaction)==null?void 0:u.onFirstVisible;h&&(Q&&_.dh(Q),n.setOnErrorHandler()&&dys(b))},
showOption:_.mK});D=_.dN(function(){return U().interaction},D,function(){var h;
return(h=n.listenToTapEvent)==null?void 0:h.call(n)});
var y=_.B(_.aw(!1,void 0,"wAC0Lc")),A=y.next().value,C=y.next().value;y=_.n0(function(h){var b;((b=n.setTouchEndHandler)==null?0:b.call(n))&&!A()&&(h.currentTarget.click(),C(!0),setTimeout(function(){C(!1)},100));
return!1});
return _.g("ad-image-view-model",{class:function(){var h,b=[((h=U().interaction)==null?0:h.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],u;((u=n.isGridViewEnabled)==null?0:u.call(n))&&b.push("ytwAdImageViewModelHostInGridView");return b.join(" ")},
el:_.fe(l,D),"on:touchend":y},_.g("div",{class:"ytwAdImageViewModelHostImageContainer"},_.g(_.rh,{data:function(){var h;return{sources:U().imageSources,contentMode:(h=U().imageProperties)==null?void 0:h.contentMode}},
alt:function(){var h,b;return((h=U().interaction)==null?void 0:(b=h.accessibility)==null?void 0:b.label)||""},
targetHeight:n.targetHeight,targetWidth:n.targetWidth,preserveHeight:n.preserveHeight,preserveWidth:n.preserveWidth,useWidth:n.useWidth,style:function(){var h,b;return"vertical-align: bottom;"+(((h=U().background)==null?0:h.color)?"background-color:"+_.an((b=U().background)==null?void 0:b.color)+";":"")},
className:function(){return n.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var h,b;return(b=(h=n.setDraggable)==null?void 0:h.call(n))!=null?b:void 0}})))},"lc");var z7h=_.w(function(l){var D=l.data,U=l.listenToTapEvent,n=function(){};
return _.g("ad-button-hover-overlay-view-model",{"on:click":_.n0(function(y){if(_.q("enable_web_home_top_landscape_image_layout_legacy_click_command")){var A,C=(A=D().interaction)==null?void 0:A.onTap;C&&_.O9(y.currentTarget,"yt-navigate",{endpoint:_.te(C)})}}),
class:function(){var y;return((y=D().interaction)==null?0:y.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.fe(_.JH({visibilityCallback:function(y){var A,C=(A=D().interaction)==null?void 0:A.onFirstVisible;y&&C&&_.dh(C)},
showOption:_.mK}),_.dN(function(){return D().interaction},void 0,function(){return!_.q("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(U==null?void 0:U())}))},function(){return _.q("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.g(_.uI,{data:function(){return D().button}},{adButtonViewModel:function(y){return _.g(_.tg,{data:y.data,
customCommandResolver:n})}}):_.g(_.uI,{data:function(){return D().button}},{adButtonViewModel:_.tg})}())},"mc");var Ty;_.Tt(_.w(function(l){var D=l.data;l=_.JH({visibilityCallback:function(h,b){if(h){var u;(h=(u=D().interaction)==null?void 0:u.onFirstVisible)&&_.dh(h);var Q;if(u=(Q=D().adLayoutData)==null?void 0:Q.activeViewData)IT(b,u),_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Hr(b)})}else _.q("stop_av_measurement_on_detach")&&Hr(b)},
showOption:_.mK,hideOption:a5});var U=_.dN(function(){return D().interaction},void 0,function(){return!0}),n=_.B(_.aw(!1,void 0,"VNDDT")),y=n.next().value,A=n.next().value;
n=_.n0(function(){A(!0)});
var C=_.n0(function(){A(!1)});
return _.g("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.fe(l,oJ3,U),"on:mouseenter":n,"on:mouseleave":C},_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.BK({"max-width":function(){return _.q("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.g("div",{class:function(){var h;
a:{var b;switch((h=_.M(D().thumbnailImage,r78))==null?void 0:(b=h.imageProperties)==null?void 0:b.renderingAspect){case "RENDERING_ASPECT_SQUARE":h="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":h="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}h=void 0}return h}},_.g(_.uI,{data:function(){return D().thumbnailImage}},{adImageViewModel:function(h){return _.g(_.Nk,
{data:h.data,
listenToTapEvent:!0,setTouchEndHandler:_.q("enable_top_landscape_image_experiment_dom_id_web")})}})),_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.g(_.v,{cond:function(){var h,b,u;
return(h=_.M(D().thumbnailImage,r78))==null?void 0:(b=h.imageProperties)==null?void 0:(u=b.overlayIcon)==null?void 0:u.iconImage},
then:function(h){return _.g(_.rh,{data:h,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.g("div",{class:function(){return y()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.g(_.uI,{data:function(){return D().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(h){return _.g(z7h,
{data:h.data,
listenToTapEvent:!0})}}))),_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.g(_.uI,{data:function(){return D().feedAdMetadata}},{feedAdMetadataViewModel:function(h){return _.g(pK,{data:h.data,
listenToTapEvent:!0,setTouchEndHandler:_.q("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;l=_.JH({visibilityCallback:function(h,b){if(h){var u;(h=(u=D().interaction)==null?void 0:u.onFirstVisible)&&_.dh(h);var Q;if(u=(Q=D().adLayoutData)==null?void 0:Q.activeViewData)IT(b,u),_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Hr(b)})}else _.q("stop_av_measurement_on_detach")&&Hr(b)},
showOption:_.mK,hideOption:a5});var U=_.gf(_.XE),n=_.dN(function(){return D().interaction}),y={},A={},C={};
return _.g("square-image-layout-view-model",{class:_.DV("ytwSquareImageLayoutViewModelHost",(y.ytwSquareImageLayoutViewModelHostColumn=U,y)),el:_.fe(l,wUK,n)},_.g("div",{class:_.DV("ytwSquareImageLayoutViewModelHostImage",(A.ytwSquareImageLayoutViewModelHostColumnImage=U,A))},function(){return _.g(_.uI,{data:function(){return D().adImage}},{adImageViewModel:function(h){return _.g(_.Nk,{data:h.data,
isGridViewEnabled:U,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.g("div",{class:_.DV("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(C.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=U,C))},_.g(_.uI,{data:function(){return D().feedAdMetadata}},{feedAdMetadataViewModel:pK}),function(){return _.g(_.uI,{data:function(){return D().adButton}},{adButtonViewModel:function(h){var b={};
return _.g(_.tg,{data:h.data,className:_.DV((b.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,b.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=U,b))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;var U=l.noBottomMargin;var n=l.typographyBump;l=_.JH({visibilityCallback:function(G,J){if(G){var L;(G=(L=D().interaction)==null?void 0:L.onFirstVisible)&&_.dh(G);var R;if(L=(R=D().adLayoutData)==null?void 0:R.activeViewData)IT(J,L),_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Hr(J)})}else _.q("stop_av_measurement_on_detach")&&Hr(J)},
showOption:_.mK,hideOption:a5});var y=_.dN(function(){return D().interaction},void 0,function(){return _.q("enable_web_home_top_landscape_image_layout_level_click")}),A=function(){return D().interaction};
A!==void 0&&A!==null||_.nt(Error("Nh"));var C=function(){var G,J,L;return(G=_.M(D().thumbnailImage,r78))==null?void 0:(J=G.background)==null?void 0:(L=J.backgroundImageSource)==null?void 0:L.imageSources};
A=_.B(_.aw(!1,void 0,"NFjwje"));var h=A.next().value,b=A.next().value;A=_.n0(function(){b(!0)});
var u=_.n0(function(){b(!1)}),Q=function(){return h()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.g("top-landscape-image-layout-view-model",{class:function(){var G;return((G=D().interaction)==null?0:G.onTap)&&_.q("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.fe(l,rG9,y),"on:mouseenter":A,"on:mouseleave":u},_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.g(_.v,{cond:function(){return C()&&C().length>0},
then:function(){return _.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.BK({top:"0","background-image":function(){return"url("+String(C()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.g(_.v,{cond:function(){return!!D().adButtonHoverOverlay},
then:function(){return _.g("div",{class:Q},_.g(_.uI,{data:function(){return D().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:z7h}))}}),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.g(_.uI,{data:function(){return D().thumbnailImage}},{adImageViewModel:function(G){return _.g(_.Nk,{data:G.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.q("enable_web_home_top_landscape_image_layout_level_click")})}})),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.g(_.rh,{data:{sources:[{clientResource:{imageName:_.q("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.g(_.uI,{data:function(){return D().feedAdMetadata}},{feedAdMetadataViewModel:function(G){return _.g(pK,{data:G.data,
noBottomMargin:function(){return U==null?void 0:U()},
listenToTapEvent:function(){return _.q("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return n==null?void 0:n()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.C$,
noBottomMargin:_.C$,typographyBump:_.C$}});var fAm=_.w(function(l){var D=l.data,U=_.JH({visibilityCallback:function(y){var A,C=(A=D().interaction)==null?void 0:A.onFirstVisible;y&&C&&_.dh(C)},
showOption:_.mK});l=_.dN(function(){return D().interaction},l.customCommandResolver);
var n={};return _.g("ad-text-image-view-model",{class:_.DV("ytwAdTextImageViewModelHost",(n.ytwAdTextImageViewModelHostDarkBackground=function(){return D().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},n)),
el:_.fe(U,l),"aria-label":function(){var y,A;return(y=D().interaction)==null?void 0:(A=y.accessibility)==null?void 0:A.label}},_.g("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.g(_.BO,{text:function(){return D().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.g(_.v,{cond:function(){return D().overlayIcon},
then:function(y){return _.g("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.g(_.rh,{data:y,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var $u8=_.w(function(l){var D=l.data;return _.g("feed-ad-sitelink-view-model",{class:function(){var U;return((U=D().interaction)==null?0:U.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.fe(_.dN(function(){return D().interaction},l.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var U,n;return(U=D().interaction)==null?void 0:(n=U.accessibility)==null?void 0:n.label},
role:"link",tabindex:0},_.g(_.BO,{text:function(){return D().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var NY1=_.w(function(l){var D=l.data;l={};return _.g("feed-ad-sitelinks-carousel-view-model",{el:_.fe(_.JH({visibilityCallback:function(U){var n,y=(n=D().interaction)==null?void 0:n.onFirstVisible;U&&y&&_.dh(y)},
showOption:_.mK})),class:_.DV("ytwFeedAdSitelinksCarouselViewModelHost",(l.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return D().style==="FEED_AD_SITELINKS_STYLE_NONE"},l))},_.g(_.uI,{data:function(){return D().sitelinks}},{feedAdSitelinkViewModel:$u8}))},"sc");_.Tt(_.w(function(l){var D=l.data;l=_.JH({visibilityCallback:function(C,h){if(C){var b;(C=(b=D().interaction)==null?void 0:b.onFirstVisible)&&_.dh(C);var u;(b=(u=D().adLayoutData)==null?void 0:u.activeViewData)&&IT(h,b)}},
showOption:_.mK});var U=_.B(_.aw(!1,void 0,"BzPhl")),n=U.next().value,y=U.next().value;U=_.n0(function(){y(!0)});
var A=_.n0(function(){y(!1)});
return _.g("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.fe(l),"on:mouseenter":U,"on:mouseleave":A},_.g("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.g("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.g(_.uI,{data:function(){return D().textImage}},{adTextImageViewModel:fAm})),_.g("div",{class:function(){return n()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.g(_.uI,{data:function(){return D().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(C){return _.g(z7h,{data:C.data,
listenToTapEvent:!0})}}))),_.g("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.g(_.uI,{data:function(){return D().feedAdMetadata}},{feedAdMetadataViewModel:function(C){return _.g(pK,{data:C.data,
listenToTapEvent:!0})}}),_.g(_.uI,{data:function(){return D().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:NY1})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;var U=l.typographyBump;return _.g("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.fe(_.JH({visibilityCallback:function(n,y){if(n){var A;(n=(A=D().interaction)==null?void 0:A.onFirstVisible)&&_.dh(n);var C;(A=(C=D().adLayoutData)==null?void 0:C.activeViewData)&&IT(y,A)}},
showOption:_.mK,hideOption:a5}))},_.g("div",null,_.g(_.uI,{data:function(){return D().videoLockup}},{lockupViewModel:function(n){return _.g(_.xd,{data:n.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:U})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.C$,
noBottomMargin:_.C$,typographyBump:_.C$}});_.Tt(_.w(function(l){var D=l.data;var U=l.className;var n=l.typographyBump;return _.g("video-display-compact-button-group-layout-view-model",{el:_.fe(_.JH({visibilityCallback:function(y,A){if(y){var C;(y=(C=D().interaction)==null?void 0:C.onFirstVisible)&&_.dh(y);var h;(C=(h=D().adLayoutData)==null?void 0:h.activeViewData)&&IT(A,C)}},
showOption:_.mK})),class:_.DV("videoDisplayCompactButtonGroupLayoutViewModelHost",U)},_.g(_.uI,{data:function(){return D().videoLockup}},{lockupViewModel:function(y){return _.g(_.xd,{data:y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:n})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.C$,
className:_.C$,typographyBump:_.C$}});_.Tt(_.w(function(l){var D=l.data;var U=l.className;var n=l.typographyBump;return _.g("video-display-compact-buttoned-layout-view-model",{el:_.fe(_.JH({visibilityCallback:function(y,A){if(y){var C;(y=(C=D().interaction)==null?void 0:C.onFirstVisible)&&_.dh(y);var h;(C=(h=D().adLayoutData)==null?void 0:h.activeViewData)&&IT(A,C)}},
showOption:_.mK})),class:_.DV("videoDisplayCompactButtonedLayoutViewModelHost",U)},_.g(_.uI,{data:function(){return D().videoLockup}},{lockupViewModel:function(y){return _.g(_.xd,{data:y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:n})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.C$,
className:_.C$,typographyBump:_.C$}});_.Tt(_.w(function(l){var D=l.data;var U=l.className;var n=l.typographyBump;var y=function(){return D().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},A=_.gf(_.XE);
l=_.JH({visibilityCallback:function(u,Q){if(u){var G=D();u=G.adLayoutData;var J;(G=(J=G.interaction)==null?void 0:J.onFirstVisible)&&_.dh(G);(J=u==null?void 0:u.activeViewData)&&IT(Q,J)}},
showOption:_.mK});var C=_.dM(function(){return{containerType:y()&&A()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:y()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),h=_.dM(function(){return y()&&A()?"":y()?"168px":"50%"},void 0,"Om6kNe"),b=_.dM(function(){return y()&&A()?9999:void 0},void 0,"S71lKd");
return _.g("video-display-compact-layout-view-model",{el:_.fe(l),class:_.DV("videoDisplayCompactLayoutViewModelHost",U)},_.g(_.uI,{data:function(){return D().videoLockup}},{lockupViewModel:function(u){return _.g(_.xd,{data:u.data,
containerLayoutConfig:C,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:h,thumbnailTargetWidth:b,typographyBump:n})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.C$,
className:_.C$,typographyBump:_.C$}});_.Tt(_.w(function(l){var D=l.data;var U=l.typographyBump;return _.g("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.fe(_.JH({visibilityCallback:function(n,y){if(n){var A;(n=(A=D().interaction)==null?void 0:A.onFirstVisible)&&_.dh(n);var C;(A=(C=D().adLayoutData)==null?void 0:C.activeViewData)&&IT(y,A)}},
showOption:_.mK,hideOption:a5}))},_.g("div",null,_.g(_.uI,{data:function(){return D().videoLockup}},{lockupViewModel:function(n){return _.g(_.xd,{data:n.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:U})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.C$,
noBottomMargin:_.C$,typographyBump:_.C$}});_.s9g=_.w(function(l){var D=l.data;l=_.bP("ad-card-badge-view-model");return _.g("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:l},_.g(_.v,{cond:function(){return D().imageBadge},
then:function(U){return _.g(_.rh,{data:U,alt:""})}}))},"zc");var EL8=_.w(function(l){var D=l.data;var U=l.customCommandResolver;return _.g("carousel-ad-card-image-view-model",{class:function(){var n;return((n=D().interaction)==null?0:n.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.fe(_.JH({visibilityCallback:function(n){var y,A=(y=D().interaction)==null?void 0:y.onFirstVisible;n&&A&&_.dh(A)},
showOption:_.mK}),_.dN(function(){return D().interaction},U)),
"aria-label":function(){var n,y;return(n=D().interaction)==null?void 0:(y=n.accessibility)==null?void 0:y.label}},_.g(_.uI,{data:function(){return D().adImage}},{adImageViewModel:function(n){return _.g(_.Nk,{data:n.data,
customCommandResolver:U})}}),_.g("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.g(_.uI,{data:function(){return D().badge}},{adCardBadgeViewModel:_.s9g})),_.g(_.MO,{model:{color:4}}))},"Ac");var TYy=_.w(function(l){var D=_.B(_.aw(0,void 0,"JJ0QQc")),U=D.next().value;D.next();var n=D.next().value,y=_.B(_.aw(!1,void 0,"f6YICe"));D=y.next().value;var A=y.next().value,C;_.NV(function(){clearTimeout(C)});
y=_.n0(function(){var u;((u=l.animate)==null?0:u.call(l))?(A(!0),C=setTimeout(function(){A(!1);h()},200)):h();
return!1});
var h=function(){n(function(u){return(u+l.numShownItems())%l.data().length})},b={};
return _.g("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.g("div",{class:_.DV("ytwHorizontalCarouselCarouselWrapper")},_.g("div",{class:_.DV("ytwHorizontalCarouselCarouselInnerWrapper",(b.ytwHorizontalCarouselAnimating=D,b))},_.g(_.wt,{each:l.data,keyBy:"INDEX"},function(u,Q){return _.g("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.BK({"flex-basis":function(){return"calc((100% - (8px * "+(l.numShownItems()-1)+")) / "+l.numShownItems()+")"},
order:function(){var G=Q-U();G<0&&(G+=l.data().length);return G}})},l.children(u,Q))}))),_.g("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":y},l.nextButton()))},"Bc");var IA8=_.w(function(l){var D=l.data;var U=l.customCommandResolver;var n=l.expansive;return _.g("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.fe(_.JH({visibilityCallback:function(y){var A,C=(A=D().interaction)==null?void 0:A.onFirstVisible;y&&C&&_.dh(C)},
showOption:_.mK}))},_.g(TYy,{data:function(){var y;return((y=D())==null?void 0:y.carouselAdCards)||[]},
nextButton:function(){return _.g(_.uI,{data:function(){return D().nextButton}},{buttonViewModel:function(y){var A=y.data;
return _.g(_.t9,{data:function(){return(n==null?0:n())?Object.assign({},A(),{style:"mono"}):A()},
className:_.q("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(y){return _.g(_.uI,{data:y},{carouselAdCardImageViewModel:function(A){return _.g(EL8,{data:A.data,customCommandResolver:U})}})}))},"Cc");var Hjy=_.w(function(l){var D=l.data;var U=l.customCommandResolver;var n=l.className;var y=l.buttonClassName;var A=l.animationEntityKey;var C=l.expansive;return _.g("carousel-button-view-model",{class:_.DV("ytwCarouselButtonViewModelHost",n)},_.g(_.uI,{data:function(){return D().carousel}},{carouselAdCardCollectionViewModel:function(h){return _.g(IA8,{data:h.data,
customCommandResolver:U,expansive:C})}}),_.g(_.uI,{data:function(){return D().button}},{adButtonViewModel:function(h){var b=h.data;
return _.g(_.tg,{data:function(){return(C==null?0:C())?Object.assign({},b(),{style:"AD_BUTTON_STYLE_TONAL"}):b()},
className:y,customCommandResolver:U,animationEntityKey:A})}}))},"Dc");_.YTh=_.w(function(l){var D=l.data;l=l.className;var U=_.bP("pivot-button-view-model");_.N1(function(){var n;((n=D())==null?0:n.backgroundColor)&&U.value.setAttribute("data-background-color",String(D().backgroundColor))});
return _.g("pivot-button-view-model",{el:U,class:_.DV("ytwPivotButtonViewModelHost",l)},_.g(_.qO,{command:function(){var n=D();n=n.onClickCommand?_.te(n.onClickCommand):n.contentDescription?_.Hc(n.contentDescription):void 0;return n},
ariaLabel:function(){return D().contentDescription}},_.g(_.v,{cond:function(){return D().thumbnail},
then:function(n){return _.g(_.rh,{data:n,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.g(_.v,{cond:function(){return D().icon},
then:function(n){return _.g(_.C0,{icon:function(){return n().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.Ojy=_.w(function(l){var D=l.data;var U=l.buttonShapeOverrideables;return _.g("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.g(_.uI,{data:function(){return D().buttonViewModels}},{buttonViewModel:function(n){return _.g(_.t9,{data:n.data,
buttonOverrides:U})},
likeButtonViewModel:function(n){return _.g(_.n_,{data:n.data,buttonShapeOverrideables:U})},
dislikeButtonViewModel:function(n){return _.g(_.Uh,{data:n.data,buttonShapeOverrideables:U})},
toggleButtonViewModel:function(n){return _.g(_.s0,{data:n.data,buttonShapeOverrides:U})}}))},"Fc");var VR_=_.w(function(l){var D=l.avatar;var U=l.headline;var n=l.badge;var y=l.description;var A=l.expansive;l={};return _.g("yt-ad-metadata-shape",{class:_.DV("ytAdMetadataShapeHost",(l.ytAdMetadataShapeHostLarge=A,l))},_.g("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.g(_.v,{cond:D,then:function(C){return _.g(_.Nog,{data:function(){return(A==null?0:A())?Object.assign({},C(),{size:"AD_AVATAR_SIZE_M"}):C()}})}}),_.g("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.g(_.BO,{text:U,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.g(_.v,{cond:n,then:function(C){return _.g(_.KK,{data:function(){return(A==null?0:A())?Object.assign({},C(),{style:"AD_BADGE_STYLE_STARK"}):C()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.g("h2",{class:"ytAdMetadataShapeHostDescription"},_.g(_.BO,{text:y,
linkInheritColor:!0,isHeadline:function(){return A==null?void 0:A()}})))},"Gc");var is5=_.w(function(l){var D=l.data;var U=l.onShow;var n=l.expansive;l=_.dN(function(){return D().interaction});
_.N1(function(){var A,C=(A=D().animatedRenderingConfig)==null?void 0:A.delayedSecondsToVisible;if(C){var h=setTimeout(U,C*1E3);_.NV(function(){clearTimeout(h)})}});
var y={};return _.g("reels-ad-card-buttoned-view-model",{class:_.DV(function(){var A;return((A=D().interaction)==null?0:A.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(y.ytwReelsAdCardButtonedViewModelHostExpansive=n,y)),
el:_.fe(l)},_.g(VR_,{avatar:function(){return _.M(D().avatar,Fmk)},
headline:function(){return D().headline},
badge:function(){return _.M(D().adBadge,oKr)},
description:function(){return D().description},
expansive:n}),_.g(_.uI,{data:function(){return D().ctaButton}},{adButtonViewModel:function(A){var C=A.data;
return _.g(_.tg,{data:function(){return(n==null?0:n())?Object.assign({},C(),{style:"AD_BUTTON_STYLE_FILLED"}):C()}})}}))},"Hc");var lhy=_.w(function(l){var D=l.data;l=l.expansive;var U=_.q("web_ad_metadata_clickable")?_.dN(function(){return D().interaction},void 0,function(){return _.q("web_ad_metadata_clickable")}):void 0,n={};
n=_.MJ("ytwReelsAdMetadataViewModelHost",(n.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.q("web_ad_metadata_clickable"),n));return _.g("reels-ad-metadata-view-model",{class:n,el:_.fe(U)},_.g(VR_,{avatar:function(){return _.M(D().avatar,Fmk)},
headline:function(){return D().headline},
badge:function(){return _.M(D().adBadge,oKr)},
description:function(){return D().description},
expansive:l}))},"Ic");var DLv={iconPosition:"icon-with-label",size:"L"},UL1=_.w(function(l){var D=l.data;var U=l.overlayDensity;var n=l.extractOverlay;var y=l.extractActionBar;l=_.bP("reels-player-overlay-layout-view-model");var A=_.NQ(U,0),C=function(){var L;return(L=D().reelsAdCardButtonedEntityKey)!=null?L:""},h=function(){return C()+"/ad_button"},b=_.Pr(J$3,C),u=function(){var L,R;
return(R=(L=b())==null?void 0:L.value)!=null?R:!1},Q=_.gf(zCc),G=function(){var L;
return Object.assign({},DLv,(Q()||!((L=y==null?void 0:y())!=null&&L))&&{style:"overlay-dark"})};
U={};var J={};return _.g("reels-player-overlay-layout-view-model",{class:_.DV("ytwReelsPlayerOverlayLayoutViewModelHost",(U.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!D().extension},U.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},U.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return A()===1&&!(n==null?0:n())},U.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var L;
return(L=n==null?void 0:n())!=null?L:!1},U.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var L;
return(L=y==null?void 0:y())!=null?L:!1},U)),
"overlay-density":function(){return String(A())},
el:l},_.g("div",{class:_.DV("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(J.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},J))},_.g("div",{"aria-hidden":function(){return u()},
class:_.DV("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.BK({"transition-duration":function(){return syl(D())}})},_.g(_.uI,{data:function(){return D().adMetadata}},{reelsAdMetadataViewModel:function(L){return _.g(lhy,{data:L.data,
expansive:function(){return A()===1}})}}),_.g(_.v,{cond:function(){return D().extension},
then:function(L){return _.g("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.g(_.uI,{data:L},{adButtonViewModel:function(R){return _.g(_.tg,{data:R.data,animationEntityKey:h,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(R){return _.g(Hjy,{data:R.data,animationEntityKey:h,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return A()===1}})}}))}})),_.g("div",{"aria-hidden":function(){return!u()},
class:_.DV("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.BK({"transition-duration":function(){return syl(D())}})},_.g(_.uI,{data:function(){return D().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(L){return _.g(is5,{data:L.data,
onShow:function(){_.$u(_.vr("booleanEntity",C(),{key:C(),value:!0}))},
expansive:function(){return A()===1}})}}))),_.g("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.g(_.uI,{data:function(){return D().actions}},{reelActionBarViewModel:function(L){return _.g(_.Ojy,{data:L.data,
buttonShapeOverrideables:G})}}),_.g(_.uI,{data:function(){return D().menu}},{buttonViewModel:function(L){return _.g(_.t9,{data:L.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},G(),{type:"tonal"})}})}}),_.g(_.uI,{data:function(){return D().pivotButton}},{pivotButtonViewModel:function(L){return _.g(_.YTh,{data:L.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.Tt(UL1,"reels-player-overlay-layout-view-model",{props:{data:_.C$,overlayDensity:_.C$,extractOverlay:_.C$,extractActionBar:_.C$}});var sD=function(){var l=_.p.apply(this,arguments)||this;l.noBottomMargin=!1;l.overlayDensity=0;l.extractOverlay=!1;l.extractActionBar=!1;return l};
_.Z(sD,_.p);_.W=sD.prototype;
_.W.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.q("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.W.ready=function(){var l=this;U7B(function(){l.isAttached&&fq(l.JSC$15750_storedAdSlotMetadata,l.JSC$15750_storedAdLayoutMetadata,l.adSlotMetadata,l.adLayoutMetadata)&&$R(FD(),l.JSC$15750_storedAdSlotMetadata,l.JSC$15750_storedAdLayoutMetadata)})};
_.W.attached=function(){fq(this.JSC$15750_storedAdSlotMetadata,this.JSC$15750_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&r__(FD(),this.JSC$15750_storedAdSlotMetadata,this.JSC$15750_storedAdLayoutMetadata)};
_.W.detached=function(){fq(this.JSC$15750_storedAdSlotMetadata,this.JSC$15750_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&$R(FD(),this.JSC$15750_storedAdSlotMetadata,this.JSC$15750_storedAdLayoutMetadata)};
_.W.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.W.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15750_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15750_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15750_storedAdLayoutMetadata!==void 0&&this.JSC$15750_storedAdSlotMetadata!==void 0&&$R(FD(),this.JSC$15750_storedAdSlotMetadata,this.JSC$15750_storedAdLayoutMetadata),r__(FD(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15750_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15750_storedAdSlotMetadata=this.adSlotMetadata)};
_.QP.Object.defineProperties(sD.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.adLayoutMetadata}}});
sD.prototype.onAdMetadataChanged=sD.prototype.onAdMetadataChanged;sD.prototype.onTypographyBumpChanged=sD.prototype.onTypographyBumpChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],sD.prototype,"rendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],sD.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],sD.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],sD.prototype,"noBottomMargin",void 0);_.E([_.K(),_.T("design:type",Object)],sD.prototype,"overlayDensity",void 0);_.E([_.K(),_.T("design:type",Object)],sD.prototype,"extractOverlay",void 0);_.E([_.K(),_.T("design:type",Object)],sD.prototype,"extractActionBar",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],sD.prototype,"typographyBump",void 0);
_.E([_.t("data.adLayoutMetadata"),_.T("design:type",Object),_.T("design:paramtypes",[])],sD.prototype,"adLayoutMetadata",null);_.E([_.K(),_.T("design:type",Object)],sD.prototype,"adSlotMetadata",void 0);_.E([_.gP("ytd-video-display-full-buttoned-and-button-group-renderer"),_.T("design:type",HTMLElement)],sD.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.E([_.Pg("typographyBump"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sD.prototype,"onTypographyBumpChanged",null);_.E([_.Pg("adLayoutMetadata","adSlotMetadata"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sD.prototype,"onAdMetadataChanged",null);_.E([_.x({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],sD);
_.r(sD,"ytd-in-feed-ad-layout-renderer",function(){if($Ry!==void 0)return $Ry;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return $Ry=l},
{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var n__;var yE1;_.Tt(_.KK,"ad-badge-view-model",{props:{data:_.C$,hasDot:_.C$,customCommandResolver:_.ND,adRenderingContextType:_.ND,usedInMasthead:_.ND}});_.Tt(_.tg,"ad-button-view-model",{props:{data:_.C$,customCommandResolver:_.ND,className:_.ND,delayedClassName:_.ND,animationEntityKey:_.ND,isCompactWidth:_.ND,isContentWidth:_.ND}});var ED=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return l};
_.Z(ED,_.p);_.W=ED.prototype;_.W.computeHasLiveDescription=function(l){return!(l==null||!l.liveDescription)};
_.W.computeHasByline=function(l){return!(l==null||!l.byline)};
_.W.computeUsesAdButtonViewModel=function(l){return!!_.M(l==null?void 0:l.cta,wP7)};
_.W.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.W.onYtToggleButton=function(l){var D,U=(D=this.data)==null?void 0:D.videoReminderEntityKey;U&&this.ytdReduxBehavior.dispatch(_.vr("upcomingEventReminderStateEntity",U,{key:U,state:l.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.W.attached=function(){this.updateChannelBanner()};
_.W.dataChanged=function(){this.updateChannelBanner()};
_.W.videoReminderStateChanged=function(){var l;this.videoReminderState&&_.M((l=this.data)==null?void 0:l.cta,_.Ax)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.W.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var l=_.IO(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);l&&(l.startsWith("//")&&(l="https:"+l),this.hostElement.classList.add("channel-banner"),_.Wg(this.hostElement,{"--ytvmh-channel-banner":"url("+l+")"}))}else _.q("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.W.onPlayerReady=function(){this.onIronResize()};
_.W.maybeFlushDebouncer=function(){_.q("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(l){var D;l=(D=l.getElementsByTagName("yt-attributed-string"))==null?void 0:D[0];ZVd(l==null?void 0:l.polymerController)})};
_.W.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var l=_.iJ(this.hostElement).querySelector("#live-description"),D;l&&((D=this.data)==null?0:D.shortLiveDescription)&&l.clientWidth<l.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
ED.prototype.onIronResize=ED.prototype.onIronResize;ED.prototype.videoReminderStateChanged=ED.prototype.videoReminderStateChanged;ED.prototype.dataChanged=ED.prototype.dataChanged;ED.prototype.onYtToggleButton=ED.prototype.onYtToggleButton;_.E([_.m(_.$s),_.T("design:type",Object)],ED.prototype,"ironResizableBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],ED.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],ED.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ED.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.videoReminderEntityKey"],selector:D89}),_.T("design:type",Object)],ED.prototype,"videoReminderState",void 0);
_.E([_.K({reflectToAttribute:!0,value:_.q("web_modern_buttons")}),_.T("design:type",Boolean)],ED.prototype,"rounded",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.T("design:type",Boolean)],ED.prototype,"hasLiveDescription",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.T("design:type",Boolean)],ED.prototype,"hasByline",void 0);
_.E([_.K({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.T("design:type",String)],ED.prototype,"adRenderingContextType",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],ED.prototype,"isMasthead",void 0);_.E([_.K({computed:"computeUsesAdButtonViewModel(data)"}),_.T("design:type",Boolean)],ED.prototype,"usesAdButtonViewModel",void 0);
_.E([_.K({reflectToAttribute:!0,value:_.q("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.T("design:type",Boolean)],ED.prototype,"resizableAdBannerSafariFix",void 0);_.E([_.uJ("yt-formatted-string"),_.T("design:type",Array)],ED.prototype,"formattedStrings",void 0);_.E([_.gP("#cta-button"),_.T("design:type",HTMLElement)],ED.prototype,"ctaButton",void 0);
_.E([_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],ED.prototype,"onYtToggleButton",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ED.prototype,"dataChanged",null);_.E([_.Pg("videoReminderState"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ED.prototype,"videoReminderStateChanged",null);
_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ED.prototype,"onIronResize",null);_.E([_.x({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],ED);
_.r(ED,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(yE1!==void 0)return yE1;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return yE1=l},{mode:1});var AEr;var T6=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};l.isLocked=!1;return l};
_.Z(T6,_.p);_.W=T6.prototype;_.W.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.W.onExpandedChanged=function(){this.expanded&&_.iu(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.W.onMouseOver=function(){this.maybeExpand()};
_.W.onTap=function(){this.maybeExpand()};
_.W.onExpandableTileExpanding=function(l){l!==this&&(this.expanded=!1)};
_.W.onExpandableTileLockAndCollapse=function(l){this.isLocked=!0;l!==this&&(this.expanded=!1)};
_.W.onExpandableTileUnlock=function(){this.isLocked=!1};
T6.prototype.onTap=T6.prototype.onTap;T6.prototype.onMouseOver=T6.prototype.onMouseOver;T6.prototype.onExpandedChanged=T6.prototype.onExpandedChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],T6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],T6.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],T6.prototype,"expanded",void 0);_.E([_.GY("expanded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],T6.prototype,"onExpandedChanged",null);_.E([_.hj("mouseover"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],T6.prototype,"onMouseOver",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],T6.prototype,"onTap",null);
_.E([_.x({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],T6);
_.r(T6,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(AEr!==void 0)return AEr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return AEr=l},{mode:1});var W95;var Ib=function(){var l=_.p.apply(this,arguments)||this;l.buttonOverrides={style:"overlay"};l.useYtdPlayer=_.q("use_ytd_player_for_desktop_masthead");l.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};l.playbackFinished=!1;l.JSC$15764_playerManager=null;l.JSC$15764_mastheadCounter=new A3_;return l};
_.Z(Ib,_.p);_.W=Ib.prototype;_.W.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"}}}};
_.W.created=function(){this.JSC$15764_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15764_playerManager=new wv)};
_.W.ready=function(){var l=this;this.JSC$15764_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var D=_.iJ(this.hostElement).querySelector("#player");this.useYtdPlayer?D.style.display="none":(this.ytdPlayer.style.display="none",Yog(this.JSC$15764_playerManager,D,function(){l.onPlaybackEnded()}),_.iJ(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var U;
((U=l.data)==null?0:U.navigationEndpoint)&&_.O9(l.hostElement,"yt-navigate",{endpoint:l.data.navigationEndpoint})}))};
_.W.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15764_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.W.attached=function(){var l=this;_.j0(function(){l.maybePlayVideo()})};
_.W.maybePlayVideo=function(){var l=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$15764_playerManager.playVideo(),this.getPlayerPromise().then(function(){l.JSC$15764_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.W.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15764_playerManager.stopVideo()};
_.W.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var l,D={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((l=this.data.playbackStartMs)!=null?l:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(D);this.setupYtdPlayer()}else Vjm(this.JSC$15764_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(O9_(this.JSC$15764_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.W.getPlayerPromise=function(){return this.JSC$15764_playerManager.getPlayerPromise()};
_.W.onYtToggleButton=function(l){this.useYtdPlayer?this.toggleMute(l.detail.toggled):l.detail.toggled?this.JSC$15764_playerManager.mute():this.JSC$15764_playerManager.unMute()};
_.W.onYtNavigate=function(l){var D=ARK(l.detail.endpoint),U=Wo$(this.data.clickthroughReportingData);D&&U&&(l.detail.endpoint.watchEndpoint?l.detail.tempData=U:_.s9(D,U,30))};
_.W.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.W.onExpandedChanged=function(){this.expanded?(_.iu(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.W.onMouseOver=function(){this.maybeExpand()};
_.W.onTap=function(){this.maybeExpand()};
_.W.onExpandableTileExpanding=function(l){l!==this&&(this.stopVideo(),this.expanded=!1)};
_.W.onExpandableTileLockAndCollapse=function(l){l!==this&&(this.isLocked=!0,this.expanded=!1)};
_.W.onExpandableTileUnlock=function(){this.isLocked=!1};
_.W.lockAndCollapseExpandableTiles=function(){_.Vh(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.W.unlockExpandableTiles=function(){_.Vh(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.W.setupYtdPlayer=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return U.yield(l.ytdPlayer.getPlayerPromise(),2);D=U.yieldResult;D.addEventListener("onStateChange",function(n){l.onPlayerStateChange(n)});
D.addEventListener("onCueRangeExit",function(n){l.onCueRangeExit(n)});
_.Kz(U)})};
_.W.onPlayerStateChange=function(l){if(l===1&&(l=this.ytdPlayer.getPlayer())){var D=l.getCurrentTime(),U,n,y=D+((n=(U=this.data)==null?void 0:U.playbackDurationMs)!=null?n:0)/1E3;l.addCueRange("playback",D,y);this.JSC$15764_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.W.onCueRangeExit=function(l){l==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.W.toggleMute=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(D.ytdPlayer.getPlayerPromise(),2);U=n.yieldResult;l?U.mute():U.unMute();_.Kz(n)})};
Ib.prototype.onTap=Ib.prototype.onTap;Ib.prototype.onMouseOver=Ib.prototype.onMouseOver;Ib.prototype.onExpandedChanged=Ib.prototype.onExpandedChanged;Ib.prototype.onYtNavigate=Ib.prototype.onYtNavigate;Ib.prototype.onYtToggleButton=Ib.prototype.onYtToggleButton;Ib.prototype.dataChanged=Ib.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Ib.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ib.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Ib.prototype,"expanded",void 0);_.E([_.K(),_.T("design:type",Object)],Ib.prototype,"buttonOverrides",void 0);
_.E([_.K(),_.T("design:type",Object)],Ib.prototype,"useYtdPlayer",void 0);_.E([_.gP("#ytd-player"),_.T("design:type",Object)],Ib.prototype,"ytdPlayer",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ib.prototype,"dataChanged",null);_.E([_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Ib.prototype,"onYtToggleButton",null);
_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Ib.prototype,"onYtNavigate",null);_.E([_.GY("expanded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ib.prototype,"onExpandedChanged",null);_.E([_.hj("mouseover"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ib.prototype,"onMouseOver",null);
_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ib.prototype,"onTap",null);_.E([_.x({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Ib);
_.r(Ib,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(W95!==void 0)return W95;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return W95=l},{mode:1});var BKg;var Hf=function(){return _.p.apply(this,arguments)||this};
_.Z(Hf,_.p);Hf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Hf.prototype.onShow=function(){var l=_.iJ(this.hostElement).querySelector("#live-description"),D;l&&((D=this.data)==null?0:D.shortLiveDescription)&&l.clientWidth<l.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Hf.prototype.onYtToggleButton=function(l){var D,U=(D=this.data)==null?void 0:D.videoReminderEntityKey;U&&this.ytdReduxBehavior.dispatch(_.vr("upcomingEventReminderStateEntity",U,{key:U,state:l.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Hf.prototype.videoReminderStateChanged=function(){var l;this.videoReminderState&&_.M((l=this.data)==null?void 0:l.cta,_.Ax)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Hf.prototype.videoReminderStateChanged=Hf.prototype.videoReminderStateChanged;Hf.prototype.onYtToggleButton=Hf.prototype.onYtToggleButton;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Hf.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Hf.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.videoReminderEntityKey"],selector:D89}),_.T("design:type",Object)],Hf.prototype,"videoReminderState",void 0);_.E([_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Hf.prototype,"onYtToggleButton",null);_.E([_.Pg("videoReminderState"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Hf.prototype,"videoReminderStateChanged",null);
_.E([_.x({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Hf);
_.r(Hf,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(BKg!==void 0)return BKg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return BKg=l},{mode:_.Vj("kevlar_poly_si_batch_j065")?1:2});var Crv;var YR=function(){var l=_.p.apply(this,arguments)||this;l.useYtdPlayer=_.q("use_ytd_player_for_desktop_masthead");l.buttonOverrides={style:"overlay"};l.JSC$15772_playerManager=null;l.JSC$15772_mastheadCounter=new A3_;l.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return l};
_.Z(YR,_.p);_.W=YR.prototype;_.W.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"}}}};
_.W.created=function(){this.JSC$15772_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15772_playerManager=new wv)};
_.W.ready=function(){var l=this;this.JSC$15772_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var D;(D=this.embeddedPlayer)==null||D.remove()}else{var U;(U=this.ytdPlayer)==null||U.remove();Yog(this.JSC$15772_playerManager,this.embeddedPlayer,function(){l.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){l.data&&l.data.navigationEndpoint&&_.O9(l.hostElement,"yt-navigate",{endpoint:l.data.navigationEndpoint})})}};
_.W.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15772_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.W.dataChanged=function(){var l=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var D=!this.data.disableAutoPlayback,U,n={autoplay:D,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((U=this.data.playbackStartMs)!=null?U:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(D?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(n);this.setupYtdPlayer()}else Vjm(this.JSC$15772_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(O9_(this.JSC$15772_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15772_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Vh(l.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");l.JSC$15772_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.W.getPlayerPromise=function(){return this.JSC$15772_playerManager.getPlayerPromise()};
_.W.onYtToggleButton=function(l){this.useYtdPlayer?this.toggleMute(l.detail.toggled):l.detail.toggled?this.JSC$15772_playerManager.mute():this.JSC$15772_playerManager.unMute()};
_.W.onYtNavigate=function(l){var D=ARK(l.detail.endpoint),U=Wo$(this.data.clickthroughReportingData);D&&U&&(l.detail.endpoint.watchEndpoint?l.detail.tempData=U:_.s9(D,U,30))};
_.W.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15772_playerManager.stopVideo()};
_.W.setupYtdPlayer=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return U.yield(l.ytdPlayer.getPlayerPromise(),2);D=U.yieldResult;D.addEventListener("onStateChange",function(n){l.onPlayerStateChange(n)});
D.addEventListener("onCueRangeExit",function(n){l.onCueRangeExit(n)});
_.Kz(U)})};
_.W.onPlayerStateChange=function(l){if(l===1&&(l=this.ytdPlayer.getPlayer())){var D=l.getCurrentTime(),U,n,y=D+((n=(U=this.data)==null?void 0:U.playbackDurationMs)!=null?n:0)/1E3;l.addCueRange("playback",D,y);_.Vh(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15772_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.W.onCueRangeExit=function(l){l==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.W.toggleMute=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(D.ytdPlayer.getPlayerPromise(),2);U=n.yieldResult;l?U.mute():U.unMute();_.Kz(n)})};
_.QP.Object.defineProperties(YR.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var l,D;if(!((l=this.data)==null?0:(D=l.accessibilityData)==null?0:D.label))return"Ad primary link";var U,n;return _.C3("AD_TITLE",{title:(U=this.data)==null?void 0:(n=U.accessibilityData)==null?void 0:n.label})}}});
YR.prototype.onYtMastheadHidden=YR.prototype.onYtMastheadHidden;YR.prototype.onYtNavigate=YR.prototype.onYtNavigate;YR.prototype.onYtToggleButton=YR.prototype.onYtToggleButton;YR.prototype.dataChanged=YR.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],YR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],YR.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],YR.prototype,"useYtdPlayer",void 0);_.E([_.gP("ytd-toggle-button-renderer"),_.T("design:type",Object)],YR.prototype,"muteButton",void 0);_.E([_.K(),_.T("design:type",Object)],YR.prototype,"buttonOverrides",void 0);
_.E([_.t("data.accessibilityData.label"),_.T("design:type",String),_.T("design:paramtypes",[])],YR.prototype,"titleAriaLabel",null);_.E([_.gP("#replay-button"),_.T("design:type",Object)],YR.prototype,"replayButton",void 0);_.E([_.gP("#player-container"),_.T("design:type",Object)],YR.prototype,"playerContainer",void 0);_.E([_.gP("#player"),_.T("design:type",Object)],YR.prototype,"embeddedPlayer",void 0);_.E([_.gP("#ytd-player"),_.T("design:type",Object)],YR.prototype,"ytdPlayer",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],YR.prototype,"dataChanged",null);_.E([_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],YR.prototype,"onYtToggleButton",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],YR.prototype,"onYtNavigate",null);
_.E([_.hj("yt-masthead-hidden"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],YR.prototype,"onYtMastheadHidden",null);_.E([_.x({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],YR);
_.r(YR,"ytd-video-masthead-ad-primary-video-renderer",function(){if(Crv!==void 0)return Crv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Crv=l},{mode:2});var hjm;var OD=function(){var l=_.p.apply(this,arguments)||this;l.collapsed=!1;l.impressionResolver=_.wf();l.JSC$15776_activeViewMeasurementDataResolver=_.wf();l.actionMap={"yt-mute-ad-action":"handleMuteAd"};return l};
_.Z(OD,_.p);_.W=OD.prototype;_.W.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"}}}};
_.W.created=function(){this.activeView=new aH(this.hostElement)};
_.W.ready=function(){var l=this;_.iJ(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){l.expandAd()});
this.hostElement.addEventListener("yt-action",function(D){if(D.detail.actionName==="yt-service-request"){var U=D.detail.args[1];U.videoMastheadAdMuteCommand&&(l.collapseAd(U.videoMastheadAdMuteCommand.encryptedMastheadId),D.stopPropagation())}})};
_.W.attached=function(){var l=this;_.j0(function(){l.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(D){if(!l.collapsed){D=_.B(D);for(var U=D.next();!U.done;U=D.next())U=U.value,yX(U.baseUrl,U.attributionSrcMode);l.data.impressionCommand=void 0}});
this.JSC$15776_activeViewMeasurementDataResolver.promise.then(function(D){tY(l.activeView,D)});
_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&XY(l.activeView)})};
_.W.dataChanged=function(){var l;((l=this.data.impressionCommand)==null?0:l.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var D;((D=this.data)==null?0:D.activeView)&&this.JSC$15776_activeViewMeasurementDataResolver.resolve(this.data.activeView);(l=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(l.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.W.computeWidescreen=function(l){var D;return!!(l&&((D=_.M(l,Km7))==null?0:D.isWidescreen))};
_.W.computeExpandable=function(l){return!!(l&&l.length>0)};
_.W.onIronResize=function(){if(this.expandable){var l=_.iJ(this.hostElement).querySelector("#expandable-tile-container :first-child");l&&!l.expanded&&(l.expanded=!0)}};
_.W.handleMuteAd=function(){this.collapseAd(null)};
_.W.restoreCollapsedState=function(l){this.collapsed=_.bu().get("HIDDEN_MASTHEAD_ID")===l};
_.W.collapseAd=function(l){if(l){var D=_.bu();D.set("HIDDEN_MASTHEAD_ID",l);D.save()}(l=_.iJ(this.hostElement).querySelector("#video"))&&_.O9(l,"yt-masthead-hidden");this.collapsed=!0};
_.W.expandAd=function(){var l=_.bu();l.set("HIDDEN_MASTHEAD_ID",!1);l.save();location.reload()};
_.W.detached=function(){_.q("stop_av_measurement_on_detach")&&XY(this.activeView)};
OD.prototype.onIronResize=OD.prototype.onIronResize;OD.prototype.dataChanged=OD.prototype.dataChanged;_.E([_.m(_.$s),_.T("design:type",Object)],OD.prototype,"ironResizableBehavior",void 0);_.E([_.m(_.yC),_.T("design:type",Object)],OD.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],OD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],OD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.T("design:type",Boolean)],OD.prototype,"widescreen",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.T("design:type",Boolean)],OD.prototype,"expandable",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],OD.prototype,"collapsed",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],OD.prototype,"dataChanged",null);_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],OD.prototype,"onIronResize",null);_.E([_.x({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],OD);
_.r(OD,"ytd-video-masthead-ad-v3-renderer",function(){if(hjm!==void 0)return hjm;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return hjm=l},{mode:2});var Va=function(){return _.p.apply(this,arguments)||this};
_.Z(Va,_.p);_.W=Va.prototype;_.W.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.W.ready=function(){var l=this;U7B(function(){l.isAttached&&fq(l.JSC$15781_storedAdSlotMetadata,l.JSC$15781_storedAdLayoutMetadata,l.adSlotMetadata,l.adLayoutMetadata)&&$R(FD(),l.JSC$15781_storedAdSlotMetadata,l.JSC$15781_storedAdLayoutMetadata)})};
_.W.attached=function(){fq(this.JSC$15781_storedAdSlotMetadata,this.JSC$15781_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&r__(FD(),this.JSC$15781_storedAdSlotMetadata,this.JSC$15781_storedAdLayoutMetadata)};
_.W.detached=function(){fq(this.JSC$15781_storedAdSlotMetadata,this.JSC$15781_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&$R(FD(),this.JSC$15781_storedAdSlotMetadata,this.JSC$15781_storedAdLayoutMetadata)};
_.W.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15781_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15781_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15781_storedAdLayoutMetadata!==void 0&&this.JSC$15781_storedAdSlotMetadata!==void 0&&$R(FD(),this.JSC$15781_storedAdSlotMetadata,this.JSC$15781_storedAdLayoutMetadata),r__(FD(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15781_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15781_storedAdSlotMetadata=this.adSlotMetadata)};
_.QP.Object.defineProperties(Va.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.adLayoutMetadata}}});
Va.prototype.onAdMetadataChanged=Va.prototype.onAdMetadataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Va.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Va.prototype,"data",void 0);_.E([_.t("data.adLayoutMetadata"),_.T("design:type",Object),_.T("design:paramtypes",[])],Va.prototype,"adLayoutMetadata",null);
_.E([_.K(),_.T("design:type",Object)],Va.prototype,"adSlotMetadata",void 0);_.E([_.Pg("adLayoutMetadata","adSlotMetadata"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Va.prototype,"onAdMetadataChanged",null);_.E([_.x({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Va);
_.r(Va,"ytd-page-top-ad-layout-renderer",function(){if(n__!==void 0)return n__;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return n__=
l},{mode:_.Vj("kevlar_poly_si_batch_j070")?1:2});var Pry;var ii=function(){var l=_.p.apply(this,arguments)||this;l.noBottomMargin=!1;l.overlayDensity=0;l.typographyBump=!1;l.extractOverlay=!1;l.extractActionBar=!1;return l};
_.Z(ii,_.p);_.W=ii.prototype;
_.W.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.W.ready=function(){var l=this;U7B(function(){l.isAttached&&l.adSlotMetadata&&wCy(FD(),l.adSlotMetadata)})};
_.W.attached=function(){if(this.adSlotMetadata){var l;if(this.adSlotMetadata===((l=this.data)==null?void 0:l.adSlotMetadata))oLg(FD(),this.adSlotMetadata);else{var D;_.II(Error("Oh`"+this.adSlotMetadata+"`"+((D=this.data)==null?void 0:D.adSlotMetadata)))}}};
_.W.detached=function(){this.adSlotMetadata&&wCy(FD(),this.adSlotMetadata)};
_.W.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.W.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&wCy(FD(),this.adSlotMetadata),oLg(FD(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.QP.Object.defineProperties(ii.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var l,D,U=_.M((l=this.data)==null?void 0:(D=l.fulfillmentContent)==null?void 0:D.fulfilledLayout,_.pP_),n;return(l=(n=_.M(U==null?void 0:U.renderingContent,c7y))==null?void 0:n.layout)?l.toLowerCase().replace(/_/g,"-"):""}}});
ii.prototype.onAdSlotMetadataChanged=ii.prototype.onAdSlotMetadataChanged;ii.prototype.onTypographyBumpChanged=ii.prototype.onTypographyBumpChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ii.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ii.prototype,"rendererBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],ii.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],ii.prototype,"noBottomMargin",void 0);_.E([_.K(),_.T("design:type",Object)],ii.prototype,"overlayDensity",void 0);_.E([_.K(),_.T("design:type",Object)],ii.prototype,"typographyBump",void 0);_.E([_.K(),_.T("design:type",Object)],ii.prototype,"extractOverlay",void 0);_.E([_.K(),_.T("design:type",Object)],ii.prototype,"extractActionBar",void 0);
_.E([_.gP("ytd-in-feed-ad-layout-renderer"),_.T("design:type",HTMLElement)],ii.prototype,"inFeedAdLayoutRenderer",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",String),_.T("design:paramtypes",[])],ii.prototype,"layout",null);_.E([_.Pg("typographyBump"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ii.prototype,"onTypographyBumpChanged",null);
_.E([_.Pg("data.adSlotMetadata"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ii.prototype,"onAdSlotMetadataChanged",null);_.E([_.x({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],ii);
_.r(ii,"ytd-ad-slot-renderer",function(){if(Pry!==void 0)return Pry;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Pry=l},{mode:_.Vj("kevlar_poly_si_batch_j077")?
1:2});var bsm;var li=function(){return _.p.apply(this,arguments)||this};
_.Z(li,_.p);_.W=li.prototype;_.W.created=function(){this.activeView=new aH(this.hostElement)};
_.W.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"}}}};
_.W.maybeComputeHref=function(){return null};
_.W.onTap=function(){};
_.W.onThumbnailContainerClick=function(l){this.onClick(l)};
_.W.onClick=function(l){var D,U=(D=this.data)==null?void 0:D.navigationEndpoint;U&&_.M(U,_.za)&&(this.ytSparklesClickLocationBehavior.handleClick(U,l,!1),l.stopPropagation())};
_.W.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var l=_.B(this.data.impressionUrls),D=l.next();!D.done;D=l.next())D=D.value,$QG(D,sr9(D));this.data.activeView&&tY(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",li.JSC$15789_DEFAULT_CLICK_LOCATION_BEHAVIOR,li.JSC$15789_CLICK_LOCATION_ID_MAP);this.thumbnail&&(l=this.thumbnail.getElementsByTagName("a"),l.length>0&&(l=l.namedItem("thumbnail"))&&l.removeAttribute("href"))}};
_.W.attached=function(){var l=this;_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&XY(l.activeView)})};
_.W.detached=function(){_.q("stop_av_measurement_on_detach")&&XY(this.activeView)};
_.QP.Object.defineProperties(li.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
li.prototype.dataChanged=li.prototype.dataChanged;li.prototype.onTap=li.prototype.onTap;li.JSC$15789_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
li.JSC$15789_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],li.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],li.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],li.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.qn.YtSparklesClickLocationBehavior),_.T("design:type",Object)],li.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.K({selector:_.XE}),_.T("design:type",Object)],li.prototype,"isGridViewEnabled",void 0);_.E([_.t("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],li.prototype,"watchFeedBigThumbs",null);_.E([_.t("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.T("design:type",String),_.T("design:paramtypes",[])],li.prototype,"thumbnailWidth",null);_.E([_.K(),_.T("design:type",Object)],li.prototype,"data",void 0);
_.E([_.gP("ytd-thumbnail"),_.T("design:type",HTMLElement)],li.prototype,"thumbnail",void 0);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],li.prototype,"onTap",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],li.prototype,"dataChanged",null);_.E([_.x({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],li);
_.r(li,"ytd-compact-promoted-video-renderer",function(){if(bsm!==void 0)return bsm;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return bsm=l},{mode:1});var g_8;_.RL("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Dc=function(){return _.p.apply(this,arguments)||this};
_.Z(Dc,_.p);Dc.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Dc.prototype,"data",void 0);_.E([_.x({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Dc);
_.r(Dc,"ytd-search-pyv-renderer",function(){if(g_8!==void 0)return g_8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return g_8=l},{mode:1});var uTy;_.RL("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var UM=function(){var l=_.p.apply(this,arguments)||this;l.roundedContainer=!0;l.JSC$15797_handleOpenPostCommentDialogActionAfterStamp=!1;l.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return l};
_.Z(UM,_.p);_.W=UM.prototype;
_.W.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}}};
_.W.onStampFinished=function(){this.JSC$15797_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.W.handleSignalActionOpenPostCommentDialogAction=function(){var l=_.iJ(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");l?l.openDialog():this.JSC$15797_handleOpenPostCommentDialogActionAfterStamp=!0};
_.W.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.W.computeHideBorder=function(){return this.isInEngagementPanel};
_.W.computeIsCompact=function(){return this.isInEngagementPanel};
_.W.computeUsesCompactLockup=function(l){return l==="BACKSTAGE_SURFACE_TYPE_HOME"||l==="BACKSTAGE_SURFACE_TYPE_SEARCH"||l==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||l==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||l==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||l==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.W.computeUsesFullLockup=function(){var l,D=(l=this.data)==null?void 0:l.post,U;l=(U=_.M(D,TCy))==null?void 0:U.surface;var n;U=(n=_.M(D,Yah))==null?void 0:n.originalPost;var y;if(n=l||((y=_.M(U,TCy))==null?void 0:y.surface))return!this.computeUsesCompactLockup(n)&&this.useUpdatedRepostUi;var A;return((A=_.M(D,Yah))==null?void 0:A.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.QP.Object.defineProperties(UM.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var l,D;return((D=_.M((l=this.data)==null?void 0:l.post,TCy))==null?void 0:D.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.useUpdatedRepostUi}}});
UM.prototype.onYtCommentModerationPanelEmpty=UM.prototype.onYtCommentModerationPanelEmpty;UM.prototype.onStampFinished=UM.prototype.onStampFinished;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],UM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],UM.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],UM.prototype,"roundedContainer",void 0);_.E([_.K({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.T("design:type",Boolean)],UM.prototype,"hideBorder",void 0);_.E([_.K({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.T("design:type",Boolean)],UM.prototype,"isCompact",void 0);
_.E([_.K({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.T("design:type",Boolean)],UM.prototype,"usesFullLockup",void 0);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],UM.prototype,"onStampFinished",null);
_.E([_.hj("ytd-comment-moderation-panel-empty"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],UM.prototype,"onYtCommentModerationPanelEmpty",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],UM.prototype,"isInEngagementPanel",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],UM.prototype,"useUpdatedRepostUi",null);
_.E([_.x({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],UM);
_.r(UM,"ytd-backstage-post-thread-renderer",function(){if(uTy!==void 0)return uTy;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return uTy=l},{mode:1});var v_7;var nx=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(nx,_.p);nx.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
nx.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var l=this.data.thumbnail.thumbnails;this.isDarkTheme&&(l=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(l=_.IO(l,24,void 0,"height"))?l:void 0}};
nx.prototype.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
nx.prototype.computeHasText=function(){var l;return!((l=this.data)==null||!l.text)};
_.QP.Object.defineProperties(nx.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Ng(this.bannerImageUrl))+'");'}}});
nx.prototype.computeHasText=nx.prototype.computeHasText;nx.prototype.computeBannerImageUrl=nx.prototype.computeBannerImageUrl;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],nx.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],nx.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],nx.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],nx.prototype,"isDarkTheme",void 0);_.E([_.K(),_.T("design:type",String)],nx.prototype,"bannerImageUrl",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.T("design:type",Boolean)],nx.prototype,"hasText",void 0);_.E([_.Pg("data","isDarkTheme"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],nx.prototype,"computeBannerImageUrl",null);
_.E([_.Pg("data.text"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],nx.prototype,"computeHasText",null);_.E([_.t("bannerImageUrl"),_.T("design:type",Object),_.T("design:paramtypes",[])],nx.prototype,"bannerStyle",null);_.E([_.x({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],nx);
_.r(nx,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(v_7!==void 0)return v_7;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return v_7=l},{mode:1});var QF7;var yZ=function(){return _.p.apply(this,arguments)||this};
_.Z(yZ,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],yZ.prototype,"data",void 0);_.E([_.x({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],yZ);
_.r(yZ,"ytd-backstage-zero-state-renderer",function(){if(QF7!==void 0)return QF7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return QF7=l},{mode:1});var GBv;var AP=function(){return _.p.apply(this,arguments)||this};
_.Z(AP,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],AP.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.T("design:type",String)],AP.prototype,"icon",void 0);_.E([_.x({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],AP);
_.r(AP,"ytd-post-filter-zero-state-renderer",function(){if(GBv!==void 0)return GBv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return GBv=l},{mode:1});var JEv;var L9H={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},WQ=function(){return _.p.apply(this,arguments)||this};
_.Z(WQ,_.p);WQ.prototype.configureRendererStamper=function(){return L9H};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],WQ.prototype,"rendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],WQ.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.T("design:type",String)],WQ.prototype,"icon",void 0);_.E([_.x({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],WQ);
_.r(WQ,"ytd-post-scheduling-zero-state-renderer",function(){if(JEv!==void 0)return JEv;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return JEv=l},{mode:1});var qsh;var BQ=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return l};
_.Z(BQ,_.p);BQ.prototype.onTabsActivate=function(l){this.data&&this.data.tabs&&_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[l.detail.selected].navigationEndpoint})};
BQ.prototype.shouldShowTotalCount=function(l){return l&&l.totalCount!==void 0};
BQ.prototype.handleUpdatePostsTotalCountAction=function(l){var D=this.get(["data.tabs",1,"totalCount"]),U=this.get("updatePostsTotalCountAction.updateType",l);l=this.get("updatePostsTotalCountAction.number",l);D!==void 0&&U!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&l&&(U==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(D)+l):U==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(D)-l))};
_.QP.Object.defineProperties(BQ.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var l=0,D=this.data.tabs.length;l<D;l++)if(this.data.tabs[l].selected)return l;return 0}}});
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],BQ.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],BQ.prototype,"rendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],BQ.prototype,"data",void 0);_.E([_.t("data.tabs"),_.T("design:type",Number),_.T("design:paramtypes",[])],BQ.prototype,"selected",null);_.E([_.x({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],BQ);
_.r(BQ,"ytd-post-stream-filter-renderer",function(){if(qsh!==void 0)return qsh;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return qsh=l},{mode:1});var Moz;var Cx=function(){return _.p.apply(this,arguments)||this};
_.Z(Cx,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Cx.prototype,"kevlarBehaviors",void 0);_.E([_.K(),_.T("design:type",Object)],Cx.prototype,"data",void 0);_.E([_.x({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Cx);
_.r(Cx,"ytd-channel-age-gate-renderer",function(){if(Moz!==void 0)return Moz;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Moz=l},{mode:1});var Rjh;_.RL("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var hP=function(){var l=_.p.apply(this,arguments)||this;l.data=null;return l};
_.Z(hP,_.p);hP.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.QP.Object.defineProperties(hP.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((l=this.data)==null?0:(D=l.title)==null?0:(U=D.runs)==null?0:U.length)?147:160}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hP.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Number),_.T("design:paramtypes",[])],hP.prototype,"imageSizePx",null);_.E([_.x({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],hP);
_.r(hP,"ytd-channel-owner-empty-state-renderer",function(){if(Rjh!==void 0)return Rjh;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Rjh=l},{mode:1});var Zsy;var ej7;var PQ=function(){var l=_.p.apply(this,arguments)||this;l.boundSubmitSearch=function(){l.submitSearch()};
l.boundClearSearch=function(){l.clearSearch()};
return l};
_.Z(PQ,_.p);_.W=PQ.prototype;_.W.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]]"}}}}}};
_.W.toggleClearButton=function(){this.hideClearButton=Nl8||!this.input.value};
_.W.submitOnEnterKeyUp=function(l){l.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.W.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.W.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.W.submit=function(){_.O9(this.hostElement,"search-query-changed",this.input.value)};
PQ.prototype.toggleClearButton=PQ.prototype.toggleClearButton;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],PQ.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],PQ.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],PQ.prototype,"hideClearButton",void 0);_.E([_.K(),_.T("design:type",Object)],PQ.prototype,"boundSubmitSearch",void 0);_.E([_.K(),_.T("design:type",Object)],PQ.prototype,"boundClearSearch",void 0);_.E([_.gP("#input"),_.T("design:type",Object)],PQ.prototype,"input",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],PQ.prototype,"toggleClearButton",null);
_.E([_.x({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],PQ);
_.r(PQ,"ytd-channel-switcher-search-box-renderer",function(){if(ej7!==void 0)return ej7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ej7=l},{mode:1});var mL1;var bi=function(){var l=_.p.apply(this,arguments)||this;l.boundSubmit=function(){l.submit()};
return l};
_.Z(bi,_.p);_.W=bi.prototype;_.W.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"}}}}};
_.W.ready=function(){var l=this;this.form.addEventListener("submit",function(D){return l.onSubmit(D)})};
_.W.onSubmit=function(l){l.preventDefault();return!1};
_.W.toggleClearButton=function(){this.hideClearButton=Nl8||!this.input.value};
_.W.submitOnEnterKeyUp=function(l){l.keyCode===13&&this.submit()};
_.W.submit=function(){var l=this.data.endpoint,D=(0,_.we.unsafeClone)(l);_.M(D,_.Pk)?_.M(D,_.Pk).query=this.input.value:_.M(D,_.bV)&&(_.M(D,_.bV).query=this.input.value);var U=_.M(D.commandMetadata,_.W6);(U==null?0:U.url)?(U.url=_.VX(U.url,"query",this.input.value),_.O9(this.hostElement,"yt-navigate",{endpoint:D})):_.M(D,aO7)?(_.M(D,aO7).channelSwitcherQuery=this.input.value,_.Jc().resolve(_.qK).resolveCommand(D,{form:{element:this.hostElement}})):(l=Error("Ph`"+JSON.stringify(l)),_.EU(l))};
_.W.getUrl=function(l){return this.get("commandMetadata.webCommandMetadata.url",l)};
bi.prototype.toggleClearButton=bi.prototype.toggleClearButton;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],bi.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],bi.prototype,"hideClearButton",void 0);
_.E([_.K(),_.T("design:type",Object)],bi.prototype,"boundSubmit",void 0);_.E([_.gP("#form"),_.T("design:type",HTMLFormElement)],bi.prototype,"form",void 0);_.E([_.gP("#input"),_.T("design:type",Object)],bi.prototype,"input",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bi.prototype,"toggleClearButton",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],bi);
_.r(bi,"ytd-search-box-renderer",function(){if(mL1!==void 0)return mL1;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return mL1=l},{mode:2});var gp=function(){var l=_.p.apply(this,arguments)||this;l.showSearchBox=!0;return l};
_.Z(gp,_.p);gp.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],gp.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],gp.prototype,"showSearchBox",void 0);_.E([_.x({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],gp);
_.r(gp,"ytd-channel-switcher-header-renderer",function(){if(Zsy!==void 0)return Zsy;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Zsy=l},{mode:1});var ah1;var to5;var ui=function(){var l=_.p.apply(this,arguments)||this;l.isDisplayed=!0;return l};
_.Z(ui,_.p);_.W=ui.prototype;_.W.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.dataChanged=function(){this.isDisplayed=!0};
_.W.computeType=function(l){return l||"UNKNOWN"};
_.W.onYtServiceRequestCompleted=function(l){l.stopPropagation();this.isDisplayed=!1};
_.W.onClose=function(){this.isDisplayed=!1};
ui.prototype.onYtServiceRequestCompleted=ui.prototype.onYtServiceRequestCompleted;ui.prototype.dataChanged=ui.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ui.prototype,"data",void 0);
_.E([_.K({computed:"computeType(data.type)",reflectToAttribute:!0}),_.T("design:type",String)],ui.prototype,"type",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ui.prototype,"isDisplayed",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ui.prototype,"dataChanged",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],ui.prototype,"onYtServiceRequestCompleted",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],ui);
_.r(ui,"ytd-alert-with-button-renderer",function(){if(to5!==void 0)return to5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return to5=l},{mode:1});var vQ=function(){var l=_.p.apply(this,arguments)||this;l.noResult=!1;l.enableAlertBanner=!1;l.dismissedAlertBanner=!1;l.hideCreateChannelButton=!1;l.boundDismissAlertBanner=function(){l.dismissAlertBanner()};
l.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return l};
_.Z(vQ,_.p);_.W=vQ.prototype;_.W.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.W.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.W.updateChannelSwitcherAction=function(l){var D;l=(D=_.M(l,RRy))==null?void 0:D.page;_.M(l,Mfr)!==void 0&&(this.data=_.M(l,Mfr))};
_.W.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]]"}}}}}};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.W.searchQueryChanged=function(l,D){if(this.data&&this.data.contents&&this.data.contents.length){l=[];var U=[];this.hideCreateChannelButton=this.noResult=!1;for(var n=document.querySelectorAll("ytd-account-item-renderer"),y=_.B(n),A=y.next();!A.done;A=y.next())A=A.value,U.push(A),A.style.display="block";this.resetRightBorder(U);if(D){this.hideCreateChannelButton=!0;for(U=1;U<this.data.contents.length;U++)if(A=this.data.contents[U],_.M(A,Zpm)){var C=void 0,h=void 0;y=(C=_.M(A,Zpm))==null?void 0:(h=
C.accountName)==null?void 0:h.simpleText;h=C=void 0;A=(C=_.M(A,Zpm))==null?void 0:(h=C.channelHandle)==null?void 0:h.simpleText;(C=n[U-1])&&y&&_.gl(y,D)?l.push(C):_.q("enable_handle_search_on_channel_switcher")&&C&&A&&_.gl(A.toString(),D.toString())?l.push(C):C.style.display="none"}l.length===0&&(this.noResult=!0);this.resetRightBorder(l)}}};
_.W.resetRightBorder=function(l){for(var D=0;D<l.length;D++)l[D].style.borderRight=!this.hideCreateChannelButton&&(D+2)%3===0||this.hideCreateChannelButton&&(D+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.W.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.W.setShowSearchBox=function(l){if(l&&l.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var D=0;D<l.contents.length;D++)_.M(l.contents[D],_.$X)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.W.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.QP.Object.defineProperties(vQ.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null?0:l.contents)}}});
vQ.prototype.onContinuationItemsUpdated=vQ.prototype.onContinuationItemsUpdated;vQ.prototype.searchQueryChanged=vQ.prototype.searchQueryChanged;vQ.prototype.onDataChanged=vQ.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],vQ.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.vf),_.T("design:type",Object)],vQ.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vQ.prototype,"data",void 0);_.E([_.gP("ytd-channel-switcher-header-renderer"),_.T("design:type",Object)],vQ.prototype,"channelSwitcherHeaderRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],vQ.prototype,"noResult",void 0);
_.E([_.K(),_.T("design:type",Object)],vQ.prototype,"enableAlertBanner",void 0);_.E([_.K(),_.T("design:type",Object)],vQ.prototype,"dismissedAlertBanner",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vQ.prototype,"hideCreateChannelButton",void 0);_.E([_.t("data.contents"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],vQ.prototype,"isLoading",null);_.E([_.K(),_.T("design:type",Object)],vQ.prototype,"boundDismissAlertBanner",void 0);
_.E([_.K({computed:"computeButtonOverride()"}),_.T("design:type",Object)],vQ.prototype,"buttonOverride",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vQ.prototype,"onDataChanged",null);_.E([_.hj("search-query-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,String]),_.T("design:returntype")],vQ.prototype,"searchQueryChanged",null);
_.E([_.hj("yt-next-continuation-data-updated"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],vQ.prototype,"onContinuationItemsUpdated",null);_.E([_.x({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],vQ);
_.r(vQ,"ytd-channel-switcher-page-renderer",function(){if(ah1!==void 0)return ah1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ah1=l},{mode:1});var X1r;var Ss5;var QZ=function(){var l=_.p.apply(this,arguments)||this;l.images=[];l.selectedImageIndex=0;return l};
_.Z(QZ,_.p);_.W=QZ.prototype;
_.W.ready=function(){_.Gt(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Gt(this.JSC$15842_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Gt(this.JSC$15842_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Gt(this.JSC$15842_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.W.onThumbnailClick=function(l){if(l=l.event_.detail)this.selectedImageIndex=this.images.indexOf(l)};
_.W.updateImageThumbnails=function(l){l=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:l.event_.detail});this.images.splice(this.selectedImageIndex,1,l);this.images=[].concat(_.zz(this.images))};
_.W.cancelImageRepositions=function(){this.selectedImageIndex=0;_.O9(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.W.saveImageRepositions=function(){this.selectedImageIndex=0;_.O9(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.QP.Object.defineProperties(QZ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var l=this;return(this.images||[]).map(function(D,U){return{image:D,selected:U===l.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.gP("ytd-backstage-image-preview-renderer"),_.T("design:type",Object)],QZ.prototype,"JSC$15842_imagePreviewContainer",void 0);_.E([_.gP(".thumbnail-images-container"),_.T("design:type",HTMLElement)],QZ.prototype,"thumbnailImagesContainer",void 0);_.E([_.K(),_.T("design:type",Array)],QZ.prototype,"images",void 0);
_.E([_.K(),_.T("design:type",Object)],QZ.prototype,"repositionInstructions",void 0);_.E([_.K(),_.T("design:type",Object)],QZ.prototype,"selectedImageIndex",void 0);_.E([_.t("images","selectedImageIndex"),_.T("design:type",Array),_.T("design:paramtypes",[])],QZ.prototype,"thumbnailRendererDatas",null);_.E([_.t("images","selectedImageIndex"),_.T("design:type",Object),_.T("design:paramtypes",[])],QZ.prototype,"selectedImageData",null);
_.E([_.x({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],QZ);
_.r(QZ,"ytd-backstage-multi-image-reposition-renderer",function(){if(Ss5!==void 0)return Ss5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Ss5=l},{mode:1});var Gi=function(l,D){_.Xa.call(this);this.uploadUrl=l;this.channelId=D;this.imagesUploadData=[]};
_.Z(Gi,_.Xa);Gi.prototype.getAllUploadStatuses=function(){var l=this,D,U,n;return _.P(function(y){if(y.nextAddress==1)return y.yield(kB8(l),2);D=y.yieldResult;U=D.get("succeed");n=D.get("failed");return y.return(U.concat(n))})};
var K9y=function(l){var D,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(kB8(l),2);D=n.yieldResult;U=D.get("failed");U.length>0&&dLy(l,U);return n.return(l.getAllUploadStatuses())})},kB8=function(l){var D,U,n,y,A,C,h;
return _.P(function(b){if(b.nextAddress==1)return D=new Map,b.yield(Promise.allSettled(l.imagesUploadData.map(function(u){return u.uploadPromise})),2);
U=b.yieldResult;n=[];y=_.B(U);for(A=y.next();!A.done;A=y.next())C=A.value,C.status==="fulfilled"&&n.push(C.value);h=l.imagesUploadData.map(function(u){return u.image}).filter(function(u){return n.every(function(Q){return Q.id!==u.id})});
D.set("succeed",n);D.set("failed",h);return b.return(D)})},dLy=function(l,D){D=_.B(D);
for(var U=D.next();!U.done;U=D.next()){var n=l;U=U.value;cEy(n,U.id)>=0&&n.cancel(U.id);var y=new p1r(U),A=_.bpz(n.uploadUrl,{"X-YouTube-ChannelId":n.channelId},U.imageBlob);y.transfer=A;y.uploadPromise=xLm(A,U);n.imagesUploadData.push(y);A.run()}};
Gi.prototype.cancel=function(l){var D=cEy(this,l);D!==-1&&((D=this.imagesUploadData[D].transfer)&&D.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(U){return U.image.id!==l}))};
var cEy=function(l,D){return l.imagesUploadData.findIndex(function(U){return U.image.id===D})},xLm=function(l,D){return new Promise(function(U,n){l.listen("l",function(){var y=l.getResponseText();
y?(y=JSON.parse(y).encryptedBlobId,D.encryptedBlobId=y,U(D)):n("upload failed")});
l.listen("n",function(){n("upload failed")})})},p1r=function(l){this.image=l};var EJK=function(l,D,U,n,y){this.id=l;this.imageBlob=D;this.localImageSrc=U;this.naturalWidth=n;this.naturalHeight=y;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 jFz=[".jpeg",".jpg",".png"],JP=function(){var l=_.p.apply(this,arguments)||this;l.showImagesPreview=!1;l.pollOptions=[];l.errorMessage="";l.optionPlaceholderText="";l.optionDefaultText="";l.JSC$15853_imageId=0;l.maxFileSizeMb=0;l.maxAspectRatio=0;l.invalidFileSizeError="";l.invalidAspectRatioError="";l.invalidFileTypeError="";l.imageSelector=new tM(null,"single_file",jFz);return l};
_.Z(JP,_.p);_.W=JP.prototype;_.W.ready=function(){_.Gt(this.imageSelector,"j",this.onImageSelect,!1,this);_.Gt(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Gt(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.W.dataChanged=function(){var l,D,U=_.M((l=this.data)==null?void 0:(D=l.cellTemplate)==null?void 0:D.onEmptyCellTap,DOr);if(U&&U.uploadUrl&&U.channelId){var n;this.maxFileSizeMb=((n=U.imageValidationInfo)==null?void 0:n.maxFileSizeMb)||0;var y;this.maxAspectRatio=((y=U.imageValidationInfo)==null?void 0:y.allowedMaxAspectRatio)||0;var A;this.invalidFileSizeError=this.getSimpleString((A=this.data)==null?void 0:A.invalidFileSizeError);var C;this.invalidAspectRatioError=this.getSimpleString((C=this.data)==
null?void 0:C.invalidAspectRatioError);var h;this.invalidFileTypeError=this.getSimpleString((h=this.data)==null?void 0:h.invalidFileTypeError);this.uploadManager=new Gi(U.uploadUrl,U.channelId)}};
_.W.onEditorInfoChange=function(){this.optionPlaceholderText=_.Nl(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Nl(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.W.observeAddImageError=function(){this.errorMessage!==""&&_.O9(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.W.onPollOptionsChange=function(){for(var l=!1,D=[],U=0;U<this.pollOptions.length;U++){var n=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(U+1);this.pollOptions[U].placeholderText!==n?(l=!0,D.push(Object.assign({},this.pollOptions[U],{placeholderText:n}))):D.push(this.pollOptions[U])}l&&(this.pollOptions=D);this.isValid()?_.O9(this.hostElement,"yt-commentbox-post-enable"):_.O9(this.hostElement,"yt-commentbox-post-disable")};
_.W.createPollOptions=function(l){var D=[],U;l=(U=l==null?void 0:l.minPollOptions)!=null?U:0;for(U=0;U<l;U++)D.push(this.createPollOption());return D};
_.W.onImageSelect=function(l){var D=this,U,n,y,A,C,h;return _.P(function(b){if(b.nextAddress==1){if(D.selectedImageIndex===void 0)return b.jumpTo(0);U=l.files[0];D.errorMessage="";n=D.validateImage(U);if(n!=="")return D.errorMessage=n,b.return();y=new GA(D.maxAspectRatio,!1,!0);return b.yield(y.transform(U),3)}if(b.nextAddress!=4)return A=b.yieldResult,A.transformedData?A.invalidAspectRatio?(D.errorMessage=D.invalidAspectRatioError,b.return()):b.yield(T5g(D.JSC$15853_imageId,l.files[0],A.transformedData),
4):(D.errorMessage=D.invalidFileTypeError,b.return());C=b.yieldResult;D.JSC$15853_imageId++;dLy(D.uploadManager,[C]);h=Object.assign({},D.pollOptions[D.selectedImageIndex],{image:C});D.pollOptions.splice(D.selectedImageIndex,1,h);D.refreshPollOptions();_.O9(D.hostElement,"yt-backstage-poll-image-select");_.Kz(b)})};
_.W.validateImage=function(l){return l.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.W.refreshPollOptions=function(){this.pollOptions=[].concat(_.zz(this.pollOptions))};
_.W.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.zz(this.pollOptions),[this.createPollOption()]))};
_.W.onRemovePollOption=function(l){var D=this.pollOptions[l.model.index];D&&D.image&&this.uploadManager.cancel(D.image.id);this.pollOptions.splice(l.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.O9(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.W.onTextInput=function(){this.refreshPollOptions()};
_.W.onImageButtonClick=function(l){this.selectedImageIndex=l.model.index;this.imageSelector.click()};
_.W.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.W.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.W.saveImageRepositions=function(l){l=l.event_.detail;for(var D=0,U=[],n=_.B(this.pollOptions),y=n.next();!y.done;y=n.next())y=y.value,y.image!==void 0?(y=Object.assign({},y,{image:l[D]}),U.push(y),D++):U.push(y);this.showImagesPreview=!1;this.pollOptions=[].concat(_.zz(U))};
_.W.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 l=0,D=_.B(this.pollOptions),U=D.next();!U.done;U=D.next())if(U=U.value,U.optionText.trim()!==""||U.image!==void 0){if(!U.image||this.hasCustomOptionText&&U.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;l++}return l>=Number(this.editorInfo.minPollOptions)};
_.W.getAllUploadStatuses=function(){var l=this,D,U,n,y;return _.P(function(A){if(A.nextAddress==1)return A.yield(l.uploadManager.getAllUploadStatuses(),2);D=A.yieldResult;U=_.B(D);for(n=U.next();!n.done;n=U.next())if(y=n.value,y.encryptedBlobId===void 0)return A.return(K9y(l.uploadManager));return A.return(D)})};
_.W.getPostCreateOptions=function(){for(var l=[],D=_.B(this.pollOptions),U=D.next();!U.done;U=D.next())U=U.value,U.image!==void 0&&l.push({text:this.hasCustomOptionText?U.optionText:U.placeholderText,image:U.image});return l};
_.W.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.W.createButtonRenderer=function(l,D){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleString(l)}},isDisabled:D}};
_.W.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.W.computeThumbnailRendererData=function(l){return l?{image:l,selected:!1}:void 0};
_.W.getSimpleString=function(l){return _.Nl(l)};
_.W.updateOptionTextFromBinding=function(l){if(l.target){var D=Array.from(_.iJ(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(l.target);if(D>=0){var U;this.pollOptions[D].optionText=(U=l.detail.value)!=null?U:""}}};
_.QP.Object.defineProperties(JP.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var l,D;return this.pollOptions.length<((D=(l=this.editorInfo)==null?void 0:l.maxPollOptions)!=null?D:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(l){return l.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(l){return l.image}).map(function(l){return l.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(l){return l.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var l,D=(l=this.data)==null?void 0:l.addOptionButtonText;return D?this.createButtonRenderer(D,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var l,D=(l=this.data)==null?void 0:l.repositionImagesButtonLabel;return D?this.createButtonRenderer(D,!this.hasImages):void 0}}});
JP.prototype.onPollOptionsChange=JP.prototype.onPollOptionsChange;JP.prototype.observeAddImageError=JP.prototype.observeAddImageError;JP.prototype.onEditorInfoChange=JP.prototype.onEditorInfoChange;JP.prototype.dataChanged=JP.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.gP("ytd-backstage-multi-image-reposition-renderer"),_.T("design:type",Object)],JP.prototype,"imageRepositionContainer",void 0);
_.E([_.K(),_.T("design:type",Object)],JP.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],JP.prototype,"editorInfo",void 0);_.E([_.K(),_.T("design:type",Gi)],JP.prototype,"uploadManager",void 0);_.E([_.K(),_.T("design:type",Object)],JP.prototype,"showImagesPreview",void 0);_.E([_.K(),_.T("design:type",Array)],JP.prototype,"pollOptions",void 0);_.E([_.K(),_.T("design:type",Object)],JP.prototype,"errorMessage",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],JP.prototype,"dataChanged",null);_.E([_.GY("editorInfo"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],JP.prototype,"onEditorInfoChange",null);_.E([_.Pg("errorMessage"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],JP.prototype,"observeAddImageError",null);
_.E([_.GY("pollOptions"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],JP.prototype,"onPollOptionsChange",null);_.E([_.t("pollOptions","editorInfo"),_.T("design:type",Object),_.T("design:paramtypes",[])],JP.prototype,"isAllowedToAddOption",null);_.E([_.t("pollOptions"),_.T("design:type",Object),_.T("design:paramtypes",[])],JP.prototype,"hasImages",null);
_.E([_.t("pollOptions"),_.T("design:type",Object),_.T("design:paramtypes",[])],JP.prototype,"imagesToReposition",null);_.E([_.t("pollOptions"),_.T("design:type",Object),_.T("design:paramtypes",[])],JP.prototype,"hasCustomOptionText",null);_.E([_.t("data","isAllowedToAddOption"),_.T("design:type",Object),_.T("design:paramtypes",[])],JP.prototype,"addOptionButton",null);_.E([_.t("data","hasImages"),_.T("design:type",Object),_.T("design:paramtypes",[])],JP.prototype,"repositionImagesButton",null);
_.E([_.x({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],JP);
_.r(JP,"ytd-backstage-image-poll-editor-renderer",function(){if(X1r!==void 0)return X1r;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return X1r=l},{mode:2});var F9h={imageHorizontalPosition:"IMAGE_HORIZONTAL_POSITION_LABEL",imageVerticalPosition:"IMAGE_VERTICAL_POSITION_LABEL",horizontalRepositionInstruction:"REPOSITION_IMAGE_HORIZONTALLY_LABEL",verticalRepositionInstruction:"REPOSITION_IMAGE_VERTICALLY_LABEL",reachTopOfImage:"REACH_TOP_OF_IMAGE_TEXT",reachBottomOfImage:"REACH_BOTTOM_OF_IMAGE_TEXT",reachLeftOfImage:"REACH_LEFT_OF_IMAGE_TEXT",reachRightOfImage:"REACH_RIGHT_OF_IMAGE_TEXT"};var o_8;var Lx=function(){var l=_.p.apply(this,arguments)||this;l.a11yConfig=F9h;l.imageDisplayOffsetTop=0;l.imageDisplayOffsetLeft=0;l.pickerDisplayOffsetTop=0;l.pickerDisplayOffsetLeft=0;l.showPreviewContainer=!0;l.startPicker=!1;l.repositionOptional=!1;l.editOnlyMode=!1;l.savedImageDisplayOffsetTop=0;l.savedImageDisplayOffsetLeft=0;return l};
_.Z(Lx,_.p);_.W=Lx.prototype;_.W.created=function(){_.lv.requestAvailability()};
_.W.ready=function(){};
_.W.onArrowKeysDown=function(l){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){l.detail.keyboardEvent.preventDefault();var D=0,U=0,n="";switch(l.detail.keyboardEvent.key){case "ArrowUp":Ig9(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?n=this.a11yConfig.reachBottomOfImage:D=this.imageHeight*.05*-1;break;case "ArrowDown":Ig9(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?n=this.a11yConfig.reachTopOfImage:
D=this.imageHeight*.05;break;case "ArrowLeft":Ig9(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?n=this.a11yConfig.reachRightOfImage:U=this.imageWidth*.05*-1;break;case "ArrowRight":Ig9(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?n=this.a11yConfig.reachLeftOfImage:U=this.imageWidth*.05}n&&_.C3(n)&&_.O9(this.hostElement,"iron-announce",{text:_.C3(n)});if(U||D)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+D)),l=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),l=_.C3(this.a11yConfig.imageVerticalPosition,{x_percent:""+l,y_percent:""+(100-l)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+U)),l=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),l=_.C3(this.a11yConfig.imageHorizontalPosition,{x_percent:""+l,y_percent:""+(100-l)})),l&&_.O9(this.hostElement,"iron-announce",{text:l})}};
_.W.getPreviewPosition=function(l,D,U,n){return Math.round(100*(l+D*.5-U)/n)};
_.W.calculateDisplayPosition=function(){var l=this.imageData.naturalWidth,D=this.imageData.naturalHeight;this.displayScale=Math.max(200/l,200/D);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var U=l*this.displayScale*this.imageData.previewCoordinates.left,n=D*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=D>l?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-U;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=l>D?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-n;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=l*this.displayScale;this.imageHeight=D*this.displayScale};
_.W.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.W.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.W.getSignedPosition=function(l,D,U){return D==="X"&&_.H3("HTML_DIR")==="rtl"?U==="-"?l+"px":l*-1+"px":U==="-"?l*-1+"px":l+"px"};
_.W.pickerMove=function(l){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var D=this.pickerOffsetX-l.clientX,U=this.pickerOffsetY-l.clientY;this.pickerOffsetX=l.clientX;this.pickerOffsetY=l.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
U)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-D))}};
_.W.pickerMoveStart=function(l){this.startPicker=!0;this.pickerOffsetX=l.clientX;this.pickerOffsetY=l.clientY};
_.W.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var l=this.generateCropPreview();l&&_.O9(this.hostElement,"ytd-backstage-image-preview-coordinates-update",l)};
_.W.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.O9(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.W.deleteImage=function(){_.O9(this.hostElement,"ytd-backstage-image-preview-delete")};
_.W.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.W.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var l=this.generateCropPreview();l&&_.O9(this.hostElement,"ytd-backstage-image-preview-coordinates-save",l)};
_.W.getPreviewOffset=function(l,D,U){return D&&l?(U==="X"&&_.H3("HTML_DIR")==="rtl"?300/D*l:300/D*l*-1)+"px":"0px"};
_.W.getSimpleText=function(l){return l?_.Nl(l):""};
_.W.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}};
_.QP.Object.defineProperties(Lx.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var l=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.C3(this.a11yConfig.imageVerticalPosition,{x_percent:""+l,y_percent:""+(100-l)})+"\n"+_.C3(this.a11yConfig.verticalRepositionInstruction)}l=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.C3(this.a11yConfig.imageHorizontalPosition,{x_percent:""+l,y_percent:""+(100-l)})+"\n"+_.C3(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 l,D,U=(l=this.instruction)==null?void 0:(D=l.previewInstruction)==null?void 0:D.editButtonLabel;return U?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:U,accessibilityData:{accessibilityData:{label:this.getSimpleText(U)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n,y=this.editOnlyMode?(l=this.instruction)==null?void 0:(D=l.editInstruction)==null?void 0:D.saveImagesButtonLabel:(U=this.instruction)==null?void 0:(n=U.editInstruction)==null?void 0:n.saveButtonLabel;return y?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleText(y)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(l=this.instruction)==null?void 0:(D=l.previewInstruction)==null?void 0:D.deleteButtonLabel;return U?{size:"SIZE_SMALL",text:U,accessibilityData:{accessibilityData:{label:this.getSimpleText(U)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(l=this.instruction)==null?void 0:(D=l.editInstruction)==null?void 0:D.cancelButtonLabel;l=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return U?{style:l,size:"SIZE_SMALL",text:U,accessibilityData:{accessibilityData:{label:this.getSimpleText(U)}}}: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"}}});
Lx.prototype.onEditOnlyModeUpdate=Lx.prototype.onEditOnlyModeUpdate;Lx.prototype.onImageChange=Lx.prototype.onImageChange;_.E([_.K(),_.T("design:type",EJK)],Lx.prototype,"imageData",void 0);_.E([_.K(),_.T("design:type",Object)],Lx.prototype,"instruction",void 0);_.E([_.K(),_.T("design:type",Object)],Lx.prototype,"a11yConfig",void 0);_.E([_.K(),_.T("design:type",Number)],Lx.prototype,"imageWidth",void 0);_.E([_.K(),_.T("design:type",Number)],Lx.prototype,"imageHeight",void 0);
_.E([_.K(),_.T("design:type",Number)],Lx.prototype,"displayScale",void 0);_.E([_.K(),_.T("design:type",Object)],Lx.prototype,"imageDisplayOffsetTop",void 0);_.E([_.K(),_.T("design:type",Object)],Lx.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.K(),_.T("design:type",Object)],Lx.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.K(),_.T("design:type",Object)],Lx.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.K(),_.T("design:type",Object)],Lx.prototype,"showPreviewContainer",void 0);
_.E([_.K(),_.T("design:type",Object)],Lx.prototype,"startPicker",void 0);_.E([_.K(),_.T("design:type",Number)],Lx.prototype,"pickerOffsetX",void 0);_.E([_.K(),_.T("design:type",Number)],Lx.prototype,"pickerOffsetY",void 0);_.E([_.K(),_.T("design:type",Object)],Lx.prototype,"repositionOptional",void 0);_.E([_.K(),_.T("design:type",Object)],Lx.prototype,"editOnlyMode",void 0);_.E([_.gP("#picker-container"),_.T("design:type",HTMLElement)],Lx.prototype,"JSC$15866_pickerContainer",void 0);
_.E([_.gP("#picker"),_.T("design:type",HTMLElement)],Lx.prototype,"picker",void 0);_.E([_.gP("#preview-clipper"),_.T("design:type",HTMLElement)],Lx.prototype,"previewClipper",void 0);_.E([_.gP("#image-in-picker-background"),_.T("design:type",HTMLImageElement)],Lx.prototype,"JSC$15866_imageInBackground",void 0);_.E([_.gP("#image-in-picker"),_.T("design:type",HTMLImageElement)],Lx.prototype,"JSC$15866_imageInPicker",void 0);
_.E([_.gP("#image-in-preview-clipper"),_.T("design:type",HTMLImageElement)],Lx.prototype,"JSC$15866_imageInPreviewClipper",void 0);_.E([_.t("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.T("design:type",String),_.T("design:paramtypes",[])],Lx.prototype,"altLabelForImage",null);_.E([_.t("imageHeight","imageWidth"),_.T("design:type",Number),_.T("design:paramtypes",[])],Lx.prototype,"pickerSize",null);
_.E([_.t("imageHeight","imageWidth"),_.T("design:type",Object),_.T("design:paramtypes",[])],Lx.prototype,"imageOrientationStyle",null);_.E([_.t("instruction"),_.T("design:type",Object),_.T("design:paramtypes",[])],Lx.prototype,"editButton",null);_.E([_.t("instruction","editOnlyMode"),_.T("design:type",Object),_.T("design:paramtypes",[])],Lx.prototype,"saveButton",null);_.E([_.t("instruction"),_.T("design:type",Object),_.T("design:paramtypes",[])],Lx.prototype,"deleteButton",null);
_.E([_.t("instruction","editOnlyMode"),_.T("design:type",Object),_.T("design:paramtypes",[])],Lx.prototype,"cancelButton",null);_.E([_.t("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.T("design:type",Number),_.T("design:paramtypes",[])],Lx.prototype,"cropOffsetTop",null);_.E([_.t("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.T("design:type",Number),_.T("design:paramtypes",[])],Lx.prototype,"cropOffsetLeft",null);
_.E([_.t("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.T("design:type",String),_.T("design:paramtypes",[])],Lx.prototype,"pickerBackgroundStyle",null);_.E([_.t("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.T("design:type",String),_.T("design:paramtypes",[])],Lx.prototype,"pickerDisplayStyle",null);_.E([_.t("cropOffsetLeft","cropOffsetTop"),_.T("design:type",String),_.T("design:paramtypes",[])],Lx.prototype,"imageInPickerStyle",null);
_.E([_.t("cropOffsetLeft","cropOffsetTop","pickerSize"),_.T("design:type",String),_.T("design:paramtypes",[])],Lx.prototype,"previewClipperStyle",null);_.E([_.GY("imageData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Lx.prototype,"onImageChange",null);_.E([_.GY("editOnlyMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Lx.prototype,"onEditOnlyModeUpdate",null);
_.E([_.t("showPreviewContainer"),_.T("design:type",String),_.T("design:paramtypes",[])],Lx.prototype,"pickerModeStyle",null);_.E([_.x({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Lx);
_.r(Lx,"ytd-backstage-image-preview-renderer",function(){if(o_8!==void 0)return o_8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return o_8=l},{mode:1});var w1k;var rEk={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 zj7;var fh5;var q4=function(){var l=_.p.apply(this,arguments)||this;l.a11yConfig=rEk;l.imageDisplayOffsetTop=0;l.imageDisplayOffsetLeft=0;l.pickerDisplayOffsetTop=0;l.pickerDisplayOffsetLeft=0;l.cropCoordinatesSaved=!1;l.previewSize=0;l.startPicker=!1;l.repositionOptional=!1;return l};
_.Z(q4,_.p);_.W=q4.prototype;_.W.created=function(){_.lv.requestAvailability()};
_.W.ready=function(){};
_.W.onArrowKeysDown=function(l){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){l.detail.keyboardEvent.preventDefault();var D=0,U=0,n="";switch(l.detail.keyboardEvent.key){case "ArrowUp":Hl_(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?n=this.a11yConfig.reachBottomOfImage:D=this.imageHeight*.05*-1;break;case "ArrowDown":Hl_(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?n=this.a11yConfig.reachTopOfImage:
D=this.imageHeight*.05;break;case "ArrowLeft":Hl_(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?n=this.a11yConfig.reachRightOfImage:U=this.imageWidth*.05*-1;break;case "ArrowRight":Hl_(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?n=this.a11yConfig.reachLeftOfImage:U=this.imageWidth*.05}n&&_.C3(n)&&_.O9(this.hostElement,"iron-announce",{text:_.C3(n)});if(U||D)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+D)),l=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),l=_.C3(this.a11yConfig.imageVerticalPosition,{x_percent:""+l,y_percent:""+(100-l)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+U)),l=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),l=_.C3(this.a11yConfig.imageHorizontalPosition,{x_percent:""+l,y_percent:""+(100-l)})),l&&_.O9(this.hostElement,"iron-announce",{text:l})}};
_.W.getPreviewPosition=function(l,D,U,n){return Math.round(100*(l+D*.5-U)/n)};
_.W.displayImage=function(){var l=this.JSC$15877_pickerContainer.getBoundingClientRect().width,D=this.JSC$15877_pickerContainer.getBoundingClientRect().height,U=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),n=this.JSC$15877_imageInBackground.naturalWidth,y=this.JSC$15877_imageInBackground.naturalHeight;this.displayScale=Math.max(U/n,U/y);this.imageWidth=n*this.displayScale;this.imageHeight=y*this.displayScale;this.pickerDisplayOffsetLeft=(l-U)/2;this.pickerDisplayOffsetTop=
(D-U)/2;this.imageDisplayOffsetLeft=y>n?this.pickerDisplayOffsetLeft:(l-this.imageWidth)/2;this.imageDisplayOffsetTop=n>y?this.pickerDisplayOffsetTop:(D-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.W.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15877_imageInBackground.src=this.imageData.toString(),this.JSC$15877_imageInPicker.src=this.imageData.toString(),this.JSC$15877_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.W.getSignedPosition=function(l,D,U){return D==="X"&&_.H3("HTML_DIR")==="rtl"?U==="-"?l+"px":l*-1+"px":U==="-"?l*-1+"px":l+"px"};
_.W.pickerMove=function(l){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var D=this.pickerOffsetX-l.clientX,U=this.pickerOffsetY-l.clientY;this.pickerOffsetX=l.clientX;this.pickerOffsetY=l.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
U)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-D))}};
_.W.pickerMoveStart=function(l){this.startPicker=!0;this.pickerOffsetX=l.clientX;this.pickerOffsetY=l.clientY};
_.W.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.W.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.O9(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.W.getPreviewOffset=function(l,D,U,n){return D&&l&&U?(n==="X"&&_.H3("HTML_DIR")==="rtl"?U/D*l:U/D*l*-1)+"px":"0px"};
_.W.getSimpleText=function(l){return l?_.Nl(l):""};
_.W.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var l=this.cropOffsetTop/this.imageHeight,D=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,U=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,n=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.iJ(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.O9(this.hostElement,"yt-img-crop-coordinates-update",{top:l,right:D,bottom:U,left:n})}};
_.QP.Object.defineProperties(q4.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var l=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.C3(this.a11yConfig.imageVerticalPosition,{x_percent:""+l,y_percent:""+(100-l)})+"\n"+_.C3(this.a11yConfig.verticalRepositionInstruction)}l=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.C3(this.a11yConfig.imageHorizontalPosition,{x_percent:""+l,y_percent:""+(100-l)})+"\n"+_.C3(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 l,D=(l=this.learnMore.runs[0])==null?void 0:l.navigationEndpoint,U;return((U=_.M(D,_.yE))==null?void 0:U.url)||void 0}}}});
q4.prototype.onImageDataChange=q4.prototype.onImageDataChange;_.E([_.K(),_.T("design:type",Object)],q4.prototype,"imageData",void 0);_.E([_.K(),_.T("design:type",Object)],q4.prototype,"instruction",void 0);_.E([_.K(),_.T("design:type",Object)],q4.prototype,"a11yConfig",void 0);_.E([_.K(),_.T("design:type",Number)],q4.prototype,"imageWidth",void 0);_.E([_.K(),_.T("design:type",Number)],q4.prototype,"imageHeight",void 0);_.E([_.K(),_.T("design:type",Number)],q4.prototype,"displayScale",void 0);
_.E([_.K(),_.T("design:type",Object)],q4.prototype,"imageDisplayOffsetTop",void 0);_.E([_.K(),_.T("design:type",Object)],q4.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.K(),_.T("design:type",Object)],q4.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.K(),_.T("design:type",Object)],q4.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.K(),_.T("design:type",Object)],q4.prototype,"cropCoordinatesSaved",void 0);_.E([_.K(),_.T("design:type",Object)],q4.prototype,"previewSize",void 0);
_.E([_.K(),_.T("design:type",Object)],q4.prototype,"startPicker",void 0);_.E([_.K(),_.T("design:type",Number)],q4.prototype,"pickerOffsetX",void 0);_.E([_.K(),_.T("design:type",Number)],q4.prototype,"pickerOffsetY",void 0);_.E([_.K(),_.T("design:type",Object)],q4.prototype,"repositionOptional",void 0);_.E([_.gP("#picker-container"),_.T("design:type",HTMLElement)],q4.prototype,"JSC$15877_pickerContainer",void 0);_.E([_.gP("#picker"),_.T("design:type",HTMLElement)],q4.prototype,"picker",void 0);
_.E([_.gP("#image-in-picker-background"),_.T("design:type",HTMLImageElement)],q4.prototype,"JSC$15877_imageInBackground",void 0);_.E([_.gP("#image-in-picker"),_.T("design:type",HTMLImageElement)],q4.prototype,"JSC$15877_imageInPicker",void 0);_.E([_.gP("#image-in-preview-clipper"),_.T("design:type",HTMLImageElement)],q4.prototype,"JSC$15877_imageInPreviewClipper",void 0);_.E([_.gP("#full-image-as-preview"),_.T("design:type",HTMLImageElement)],q4.prototype,"imageAsPreview",void 0);
_.E([_.t("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.T("design:type",String),_.T("design:paramtypes",[])],q4.prototype,"altLabelForImage",null);_.E([_.t("imageHeight","imageWidth"),_.T("design:type",Number),_.T("design:paramtypes",[])],q4.prototype,"pickerSize",null);_.E([_.t("imageHeight","imageWidth"),_.T("design:type",Object),_.T("design:paramtypes",[])],q4.prototype,"imageOrientationStyle",null);
_.E([_.t("instruction.previewInstruction.editButtonLabel"),_.T("design:type",Object),_.T("design:paramtypes",[])],q4.prototype,"editButton",null);_.E([_.t("instruction.editInstruction.saveButtonLabel"),_.T("design:type",Object),_.T("design:paramtypes",[])],q4.prototype,"saveButton",null);_.E([_.t("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.T("design:type",Number),_.T("design:paramtypes",[])],q4.prototype,"cropOffsetTop",null);
_.E([_.t("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.T("design:type",Number),_.T("design:paramtypes",[])],q4.prototype,"cropOffsetLeft",null);_.E([_.t("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.T("design:type",String),_.T("design:paramtypes",[])],q4.prototype,"pickerBackgroundStyle",null);_.E([_.t("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.T("design:type",String),_.T("design:paramtypes",[])],q4.prototype,"pickerDisplayStyle",null);
_.E([_.t("cropOffsetLeft","cropOffsetTop"),_.T("design:type",String),_.T("design:paramtypes",[])],q4.prototype,"imageInPickerStyle",null);_.E([_.t("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.T("design:type",String),_.T("design:paramtypes",[])],q4.prototype,"previewClipperStyle",null);_.E([_.Pg("imageData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],q4.prototype,"onImageDataChange",null);
_.E([_.t("cropCoordinatesSaved"),_.T("design:type",String),_.T("design:paramtypes",[])],q4.prototype,"pickerModeStyle",null);_.E([_.t("instruction.editInstruction.learnMore"),_.T("design:type",Object),_.T("design:paramtypes",[])],q4.prototype,"learnMore",null);_.E([_.t("learnMore"),_.T("design:type",Object),_.T("design:paramtypes",[])],q4.prototype,"learnMoreUrl",null);_.E([_.S0({is:"yt-img-crop-picker",disableElementRegistration:!0})],q4);
_.r(q4,"yt-img-crop-picker",function(){if(fh5===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;zj7===void 0&&(zj7=document.createElement("template"));var n=zj7;U.call(D,n.content.cloneNode(!0),l.content.firstChild);fh5=l}l=fh5;return l},{mode:2});var M4=function(){var l=_.p.apply(this,arguments)||this;l.errorMessage="";l.hasPreview=!1;l.isBackstagePost=!1;l.dismissButtonOverrides={size:"XS"};return l};
_.Z(M4,_.p);_.W=M4.prototype;_.W.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"}}}};
_.W.detached=function(){this.removeOverlay()};
_.W.setPreview=function(l){_.iJ(this.hostElement).querySelector("#preview-picker").imageData=l;this.hasPreview=!0;_.O9(this.hostElement,"yt-backstage-image-select-preview")};
_.W.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var l=_.iJ(this.hostElement).querySelector("#dropzone");l.classList.remove("dragover");l.classList.remove("error");_.O9(this.hostElement,"yt-backstage-image-select-cancel")};
_.W.setupOverlay=function(){var l=this.imageUploadEndpoint;this.removeOverlay();if(l&&l.imageValidationInfo){var D=_.iJ(this.hostElement).querySelector("#dropzone"),U=_.iJ(this.hostElement).querySelector("#select");this.overlay=new LM(l.uploadUrl,l.channelId,l.imageValidationInfo.maxFileSizeMb,l.imageValidationInfo.allowedMaxAspectRatio,D,U,!0);_.Gt(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Gt(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Gt(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Gt(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Gt(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.W.removeOverlay=function(){this.overlay&&(_.tX(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.tX(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.tX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.tX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.tX(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.W.onDragOver=function(l){var D=_.iJ(this.hostElement).querySelector("#dropzone");_.nY(D,"dragover",l.value)};
_.W.onPreview=function(l){this.setPreview(l.value)};
_.W.onImageError=function(l){if(l.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var D;l=(D=this.data)==null?void 0:D.fileSizeError}else if(l.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var U;l=(U=this.data)==null?void 0:U.invalidError}else if(l.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var n;l=(n=this.data)==null?void 0:n.invalidAspectRatioError}else return;this.errorMessage=_.Nl(l);_.iJ(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.W.onImageAlert=function(l){this.onImageError(l)};
_.W.uploadPromise=function(){var l=this,D=this.overlay&&this.overlay.uploadPromise();if(D)return D.catch(function(){throw Error(l.data?_.Nl(l.data.uploadFailureError):"");})};
_.QP.Object.defineProperties(M4.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var l,D;if((l=this.data)==null?0:(D=l.icon)==null?0:D.iconType)return _.UV(this.data.icon.iconType)}}});
M4.prototype.setupOverlay=M4.prototype.setupOverlay;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],M4.prototype,"rendererStamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],M4.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],M4.prototype,"imageUploadEndpoint",void 0);_.E([_.K(),_.T("design:type",Object)],M4.prototype,"errorMessage",void 0);
_.E([_.K(),_.T("design:type",LM)],M4.prototype,"overlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],M4.prototype,"hasPreview",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],M4.prototype,"isBackstagePost",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],M4.prototype,"selectionCancel",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],M4.prototype,"previewCancel",null);
_.E([_.t("data.icon.iconType"),_.T("design:type",Object),_.T("design:paramtypes",[])],M4.prototype,"icon",null);_.E([_.K(),_.T("design:type",Object)],M4.prototype,"dismissButtonOverrides",void 0);_.E([_.Pg("imageUploadEndpoint"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],M4.prototype,"setupOverlay",null);_.E([_.x({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],M4);
_.r(M4,"ytd-backstage-image-select-renderer",function(){if(w1k!==void 0)return w1k;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return w1k=l},{mode:1});var $Lg;var NKH;var RW=function(){var l=_.p.apply(this,arguments)||this;l.selected=!1;return l};
_.Z(RW,_.p);_.W=RW.prototype;_.W.computeSelected=function(l){return l==null?void 0:l.selected};
_.W.computeTransform=function(l,D,U){var n,y,A=(y=(n=this.imageContainer)==null?void 0:n.getBoundingClientRect())!=null?y:{width:0,height:0};n=Math.max(A.width/D,A.height/U);U=U*n*l.top;return"translateX("+this.getSignedPosition(D*n*l.left,"X","-")+") translateY("+this.getSignedPosition(U,"Y","-")+")"};
_.W.getSignedPosition=function(l,D,U){return D==="X"&&_.H3("HTML_DIR")==="rtl"?U==="-"?l+"px":l*-1+"px":U==="-"?l*-1+"px":l+"px"};
_.W.onClick=function(){var l;_.O9(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(l=this.data)==null?void 0:l.image)};
_.W.onKeyPress=function(l){if(l.keyCode===13)this.onClick()};
_.QP.Object.defineProperties(RW.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:(D=l.image)==null?void 0:D.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)!=null&&l.image){var D;l=(D=this.data)==null?void 0:D.image;return l.previewCoordinates.top!==0||l.previewCoordinates.left!==0?(D=this.computeTransform(l.previewCoordinates,l.naturalWidth,l.naturalHeight),l.naturalHeight>=l.naturalWidth?"width:inherit;transform:"+D+";":"height:inherit;transform:"+D+";"):l.naturalHeight>=l.naturalWidth?"width:inherit;":"height:inherit;"}}}});
RW.prototype.onKeyPress=RW.prototype.onKeyPress;_.E([_.gP(".image-container"),_.T("design:type",HTMLElement)],RW.prototype,"imageContainer",void 0);_.E([_.K(),_.T("design:type",Object)],RW.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.T("design:type",Object)],RW.prototype,"selected",void 0);_.E([_.t("data.image"),_.T("design:type",Object),_.T("design:paramtypes",[])],RW.prototype,"thumbnailUrl",null);
_.E([_.t("data.image","data.image.previewCoordinates"),_.T("design:type",Object),_.T("design:paramtypes",[])],RW.prototype,"thumbnailStyle",null);_.E([_.hj("keypress"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],RW.prototype,"onKeyPress",null);_.E([_.x({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],RW);
_.r(RW,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(NKH!==void 0)return NKH;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return NKH=l},{mode:2});var Zc=function(l,D,U){U=U===void 0?!1:U;_.Xa.call(this);var n=this;this.dropZoneOverlay=new a6(l);this.selectOverlay=U?new tM(D,"multiple_file",["image/*"]):new tM(D,"single_file",["image/*"]);this.handler=new _.ZB(this);_.m7(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(D,"click",function(){n.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.Z(Zc,_.Xa);Zc.prototype.onChange=function(l){var D;(D=l.files)!=null&&D.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:l.files}))};var ek=function(){var l=_.p.apply(this,arguments)||this;l.addImageErrorMessage="";l.errorMessage="";l.images=[];l.selectedImageIndex=0;l.modern=_.q("web_modern_buttons");l.maxNumImagesPerPost=_.RG("max_num_images_per_post_web_ui");l.JSC$15892_imageId=0;return l};
_.Z(ek,_.p);_.W=ek.prototype;_.W.created=function(){var l=this;this.JSC$15892_ytReorderableController=new _.Bzy(100,function(D){l.handleDrop(D)})};
_.W.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.O9(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.W.observeDragToReorder=function(){var l=this;if(this.showImagesPreview){var D,U=uvz(_.dv.getInstance(),(D=this.data)==null?void 0:D.dragToReorderTooltip);_.Tn.addLowPriorityJob(function(){_.DP(l.hostElement,U,l.thumbnailDragDropArea)})}};
_.W.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}}};
_.W.computeThumbnail=function(l){return(l==null?void 0:l.localImageSrc)||void 0};
_.W.onRendererstamperFinished=function(){_.CS_(this.JSC$15892_ytReorderableController,_.iJ(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.iJ(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.W.handleDrop=function(l){var D=l.currDragItem;if(D!=null&&D.data){l=this.images[this.selectedImageIndex];var U=D.data.image,n=this.images.indexOf(U)||0;D=_.o_(D.parentNode.children,D);this.images.splice(n,1);this.images.splice(D,0,U);this.images=[].concat(_.zz(this.images));this.selectedImageIndex=this.images.indexOf(l)}};
_.W.setUpImagePicker=function(){var l=this.imageUploadEndpoint;l&&l.imageValidationInfo&&(this.uploadManager=new Gi(l.uploadUrl,l.channelId),this.initialPicker||(this.initialPicker=new Zc(this.dropzone,this.selectLink,!0),_.Gt(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Zc(this.addImageButtonContainer,this.addImageSelectButton),_.Gt(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Gt(this.JSC$15892_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Gt(this.JSC$15892_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Gt(_.iJ(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.W.detached=function(){this.initialPicker&&(_.tX(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.tX(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.oH(this.JSC$15892_ytReorderableController)};
_.W.onInitialSelectImages=function(l){var D=this;return _.P(function(U){return U.yield(D.onSelectImages(l,!1),0)})};
_.W.onAddImage=function(l){var D=this;return _.P(function(U){return U.yield(D.onSelectImages(l,!0),0)})};
_.W.onSelectImages=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I;return _.P(function(iG){switch(iG.nextAddress){case 1:D?U.addImageErrorMessage="":(U.images=[],U.errorMessage="");n=l.detail;y=U.validateImages([].concat(_.zz(n)));if(y!=="")return D?U.addImageErrorMessage=y:U.errorMessage=y,iG.return();A=[].concat(_.zz(n)).map(function(CC){return(new GA(U.maxAspectRatio,!1,!0)).transform(CC)});
return iG.yield(Promise.allSettled(A),2);case 2:C=iG.yieldResult,h=_.B(C.entries()),b=h.next();case 3:if(b.done){iG.jumpTo(5);break}u=b.value;Q=_.B(u);G=Q.next().value;J=Q.next().value;L=G;R=J;if(R.status!=="fulfilled"){d=S=a=void 0;D?U.addImageErrorMessage=_.Nl((a=U.data)==null?void 0:a.invalidError):U.errorMessage=U.errorMessage===""?_.Nl((S=U.data)==null?void 0:S.invalidError):_.Nl((d=U.data)==null?void 0:d.multiFileError);iG.jumpTo(4);break}c=R.value;c.cropped&&_.O9(U.hostElement,"yt-backstage-multi-image-cropped");
if(c.invalidAspectRatio){f=z=N=void 0;D?U.addImageErrorMessage=_.Nl((N=U.data)==null?void 0:N.invalidAspectRatioError):U.errorMessage=U.errorMessage===""?_.Nl((z=U.data)==null?void 0:z.invalidAspectRatioError):_.Nl((f=U.data)==null?void 0:f.multiFileError);iG.jumpTo(4);break}return iG.yield(T5g(U.JSC$15892_imageId,l.detail[L],c.transformedData),8);case 8:I=iG.yieldResult,U.images.push(I),U.JSC$15892_imageId++;case 4:b=h.next();iG.jumpTo(3);break;case 5:if(U.errorMessage!==""||U.addImageErrorMessage!==
"")return iG.return();D?dLy(U.uploadManager,[U.images[U.images.length-1]]):dLy(U.uploadManager,U.images);U.images=[].concat(_.zz(U.images));U.selectedImageIndex=D?Math.max(U.images.length-1,0):0;_.O9(U.hostElement,"yt-backstage-multi-image-select");_.Kz(iG)}})};
_.W.onThumbnailClick=function(l){if(l=l.event_.detail)this.selectedImageIndex=this.images.indexOf(l)};
_.W.validateImages=function(l){if(l.length>this.maxNumImagesPerPost){var D;return _.Nl((D=this.data)==null?void 0:D.multiImageExceedMaxImageCountError)}var U=1048576*this.maxFileSizeMb;l=l.filter(function(A){return A.size>U}).length;
if(l===0)return"";var n,y;l=l>1?(n=this.data)==null?void 0:n.multiFileError:(y=this.data)==null?void 0:y.fileSizeError;return _.Nl(l)};
_.W.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.zz(this.images));this.selectedImageIndex=0};
_.W.repositionImage=function(l){this.images[this.selectedImageIndex].previewCoordinates=l.event_.detail;this.images=[].concat(_.zz(this.images))};
_.W.getAllUploadStatuses=function(){var l=this,D,U,n,y;return _.P(function(A){if(A.nextAddress==1)return A.yield(l.uploadManager.getAllUploadStatuses(),2);D=A.yieldResult;U=_.B(D);for(n=U.next();!n.done;n=U.next())if(y=n.value,y.encryptedBlobId===void 0)return A.return(K9y(l.uploadManager));return A.return(D)})};
_.W.hasImages=function(){return this.images.length>0};
_.W.cancel=function(){for(var l=this.uploadManager,D=_.B(l.imagesUploadData),U=D.next();!U.done;U=D.next())l.cancel(U.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.O9(this.hostElement,"yt-backstage-multi-image-cancel")};
_.QP.Object.defineProperties(ek.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.imageUploadEndpoint)==null?void 0:(D=l.imageValidationInfo)==null?void 0:D.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.imageUploadEndpoint)==null?void 0:(D=l.imageValidationInfo)==null?void 0:D.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var l,D;if((l=this.data)==null?0:(D=l.icon)==null?0:D.iconType)return _.UV(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.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 l=this;return(this.images||[]).map(function(D,U){return{renderer:{image:D,selected:U===l.selectedImageIndex}}})}}});
ek.prototype.setUpImagePicker=ek.prototype.setUpImagePicker;ek.prototype.onRendererstamperFinished=ek.prototype.onRendererstamperFinished;ek.prototype.observeDragToReorder=ek.prototype.observeDragToReorder;ek.prototype.observeAddImageError=ek.prototype.observeAddImageError;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ek.prototype,"rendererStamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);
_.E([_.gP("#dropzone"),_.T("design:type",HTMLElement)],ek.prototype,"dropzone",void 0);_.E([_.gP("#select-link"),_.T("design:type",HTMLElement)],ek.prototype,"selectLink",void 0);_.E([_.gP("#thumbnail-drag-drop-area"),_.T("design:type",HTMLElement)],ek.prototype,"thumbnailDragDropArea",void 0);_.E([_.gP("#add-image-button-container"),_.T("design:type",HTMLElement)],ek.prototype,"addImageButtonContainer",void 0);
_.E([_.gP("#add-image-button"),_.T("design:type",HTMLElement)],ek.prototype,"addImageSelectButton",void 0);_.E([_.gP("#image-preview-container"),_.T("design:type",Object)],ek.prototype,"JSC$15892_imagePreviewContainer",void 0);_.E([_.K(),_.T("design:type",Object)],ek.prototype,"addImageErrorMessage",void 0);_.E([_.K(),_.T("design:type",Object)],ek.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],ek.prototype,"errorMessage",void 0);
_.E([_.K(),_.T("design:type",Object)],ek.prototype,"imageUploadEndpoint",void 0);_.E([_.K(),_.T("design:type",Array)],ek.prototype,"images",void 0);_.E([_.K(),_.T("design:type",Zc)],ek.prototype,"initialPicker",void 0);_.E([_.K(),_.T("design:type",Zc)],ek.prototype,"addImagePicker",void 0);_.E([_.K(),_.T("design:type",Gi)],ek.prototype,"uploadManager",void 0);_.E([_.K(),_.T("design:type",Object)],ek.prototype,"selectedImageIndex",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ek.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ek.prototype,"maxNumImagesPerPost",void 0);_.E([_.t("imageUploadEndpoint"),_.T("design:type",Number),_.T("design:paramtypes",[])],ek.prototype,"maxAspectRatio",null);_.E([_.t("imageUploadEndpoint"),_.T("design:type",Number),_.T("design:paramtypes",[])],ek.prototype,"maxFileSizeMb",null);
_.E([_.t("data.icon.iconType"),_.T("design:type",Object),_.T("design:paramtypes",[])],ek.prototype,"dropIcon",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ek.prototype,"selectionCancel",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ek.prototype,"previewCancel",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ek.prototype,"dataForAddImageButton",null);
_.E([_.t("errorMessage"),_.T("design:type",String),_.T("design:paramtypes",[])],ek.prototype,"dropzoneClass",null);_.E([_.t("images"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ek.prototype,"showImagesPreview",null);_.E([_.t("images"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ek.prototype,"containMaxImages",null);_.E([_.Pg("addImageErrorMessage"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ek.prototype,"observeAddImageError",null);
_.E([_.Pg("showImagesPreview"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ek.prototype,"observeDragToReorder",null);_.E([_.t("images","selectedImageIndex"),_.T("design:type",Object),_.T("design:paramtypes",[])],ek.prototype,"selectedImageData",null);_.E([_.t("images","selectedImageIndex"),_.T("design:type",Array),_.T("design:paramtypes",[])],ek.prototype,"thumbnailRenderers",null);
_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ek.prototype,"onRendererstamperFinished",null);_.E([_.Pg("imageUploadEndpoint"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ek.prototype,"setUpImagePicker",null);_.E([_.x({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],ek);
_.r(ek,"ytd-backstage-multi-image-select-renderer",function(){if($Lg!==void 0)return $Lg;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return $Lg=l},{mode:1});var sFz;var E_h;var TK7;var mh=function(){var l=_.p.apply(this,arguments)||this;l.boundCaptureFocus=function(D){l.onCaptureFocus(D)};
return l};
_.Z(mh,_.p);_.W=mh.prototype;_.W.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.W.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.W.onCaptureFocus=function(l){_.$f(l).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.W.getIconType=function(l){return l?"yt-icons:"+l.toLowerCase():null};
_.W.onSelect=function(){var l;if((l=this.data)==null?0:l.onSelectCommand)if(_.q("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var D;((D=_.M(this.data.onSelectCommand.commandMetadata,_.W6))==null?0:D.url)?_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.Jc().resolve(_.qK).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.QP.Object.defineProperties(mh.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Nl(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],mh.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],mh.prototype,"data",void 0);_.E([_.gP("#item"),_.T("design:type",HTMLElement)],mh.prototype,"item",void 0);_.E([_.t("data.label"),_.T("design:type",String),_.T("design:paramtypes",[])],mh.prototype,"label",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],mh.prototype,"value",null);_.E([_.x({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],mh);
_.r(mh,"ytd-privacy-dropdown-item-renderer",function(){if(TK7!==void 0)return TK7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return TK7=l},{mode:1});var aW=function(){var l=_.p.apply(this,arguments)||this;l.value="";l.label="";l.disabled=!1;return l};
_.Z(aW,_.p);_.W=aW.prototype;_.W.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"}}}};
_.W.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.W.dataChanged=function(){this.reset()};
_.W.valueChanged=function(){var l;if(this.value&&(l=this.data)!=null&&l.entries){l=_.B(this.data.entries);for(var D=l.next();!D.done;D=l.next())if((D=this.getRendererForEntry(D.value))&&this.getItemRendererValue(D)===this.value){this.label=this.ytComponentBehavior.getSimpleString(D.label);break}}};
_.W.setInitialLabel=function(){if(this.data&&this.data.entries)for(var l=_.B(this.data.entries),D=l.next();!D.done;D=l.next())if(D=this.getRendererForEntry(D.value)){if(D.isSelected){this.label=this.ytComponentBehavior.getSimpleString(D.label);break}this.data.label&&(this.label=this.data.label)}};
_.W.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var l=_.B(this.data.entries),D=l.next();!D.done;D=l.next()){D=this.getRendererForEntry(D.value);var U=void 0;if((U=D)==null?0:U.isSelected)return this.getItemRendererValue(D)||-1}return-1};
_.W.getItemRendererValue=function(l){return"stringValue"in l||"int32Value"in l?l.stringValue||l.int32Value||null:null};
_.W.getRendererForEntry=function(l){return l.dropdownItemRenderer||l.privacyDropdownItemRenderer||l.navigationDropdownItemRenderer||null};
_.W.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("value-changed",this.value))};
_.W.updateValueFromBinding=function(l){this.value=l.detail.value};
aW.prototype.valueChangedForBinding=aW.prototype.valueChangedForBinding;aW.prototype.valueChanged=aW.prototype.valueChanged;aW.prototype.dataChanged=aW.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],aW.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],aW.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],aW.prototype,"value",void 0);_.E([_.K(),_.T("design:type",Object)],aW.prototype,"label",void 0);_.E([_.gP("#entries"),_.T("design:type",Object)],aW.prototype,"entries",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aW.prototype,"disabled",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aW.prototype,"dataChanged",null);
_.E([_.GY("value"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aW.prototype,"valueChanged",null);_.E([_.Pg("value"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aW.prototype,"valueChangedForBinding",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],aW);
_.r(aW,"ytd-flat-dropdown-renderer",function(){if(E_h!==void 0)return E_h;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return E_h=l},{mode:1});var Ihk;var tP=function(){var l=_.p.apply(this,arguments)||this;l.quizOptions=[];l.explanationPlaceholderText="";l.optionPlaceholderText="";l.correctAnswerIndex=-1;l.isMarkAnswerTooltipShown=!1;l.timer=0;return l};
_.Z(tP,_.p);_.W=tP.prototype;_.W.dataChanged=function(){this.optionPlaceholderText=_.Nl(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Nl(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.W.onMarkCorrectAnswer=function(l){var D,U=((D=this.quizOptions[this.correctAnswerIndex])==null?void 0:D.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[l.model.index]=Object.assign({},this.quizOptions[l.model.index],{explanationText:U,isCorrect:!0});this.correctAnswerIndex=l.model.index;this.quizOptions=[].concat(_.zz(this.quizOptions))};
_.W.updatePlaceholderTexts=function(){for(var l=!1,D=[],U=0;U<this.quizOptions.length;U++){var n=this.optionPlaceholderText+" "+(U+1),y=void 0;((y=this.quizOptions[U])==null?void 0:y.placeholderText)!==n?(l=!0,D.push(Object.assign({},this.quizOptions[U],{placeholderText:n}))):D.push(this.quizOptions[U])}l&&(this.quizOptions=D);this.isValid()?_.O9(this.hostElement,"yt-commentbox-post-enable"):_.O9(this.hostElement,"yt-commentbox-post-disable")};
_.W.getSimpleString=function(l){return _.Nl(l)};
_.W.createQuizOptions=function(l){var D=[],U;l=(U=l==null?void 0:l.minQuizOptions)!=null?U:0;for(U=0;U<l;U++)D.push(this.createQuizOption());return D};
_.W.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.zz(this.quizOptions),[this.createQuizOption()]))};
_.W.onInput=function(){this.quizOptions=[].concat(_.zz(this.quizOptions))};
_.W.onExplanationInput=function(){_.O9(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.W.onRemoveQuizOption=function(l){this.quizOptions.splice(l.model.index,1);l.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:l.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.zz(this.quizOptions));this.quizOptions.length===0&&_.O9(this.hostElement,"yt-quiz-attachment-dismiss")};
_.W.updateHintRenderer=function(){var l=this;clearTimeout(this.timer);this.timer=setTimeout(function(){l.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.W.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var l=0,D=0,U=_.B(this.quizOptions),n=U.next();!n.done;n=U.next()){n=n.value;var y=void 0;if(((y=n.optionText)==null?void 0:y.trim())!==""||n.isCorrect){n.isCorrect&&D++;y=void 0;if(this.hasCustomOptionText&&((y=n.optionText)==null?void 0:y.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;l++}}return l>=
Number(this.editorInfo.minQuizOptions)&&D===1};
_.W.getPostCreateOptions=function(){for(var l=[],D=_.B(this.quizOptions),U=D.next();!U.done;U=D.next()){U=U.value;var n=void 0;((n=U.optionText)==null?void 0:n.trim())!==""&&l.push({pollOption:{text:U.optionText,explanation:U.explanationText},isCorrect:U.isCorrect})}return l};
_.W.getExplanationText=function(){var l;return((l=this.quizOptions[this.correctAnswerIndex])==null?void 0:l.explanationText)||""};
_.W.maybeDisplayMarkAnswerEduToolTip=function(){var l,D,U,n,y,A,C;this.shouldShowMarkAnswerTooltip()&&((l=this.editorInfo)==null?0:(D=l.markAnswerButton)==null?0:(U=D.buttonRenderer)==null?0:(n=U.hint)==null?0:(y=n.hintRenderer)==null?0:(A=y.content)==null?0:(C=A.bubbleHintRenderer)==null?0:C.text)&&(_.dv.getInstance(),l=Kd(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,(l==null?void 0:l.length)>0&&this.optionSelectors&&_.Ae(l[0],this.optionSelectors[0]))};
_.W.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var l=0,D=_.B(this.quizOptions),U=D.next();!U.done;U=D.next()){U=U.value;var n=void 0;((n=U.optionText)==null?void 0:n.trim())!==""&&l++;if(U.isCorrect)return!1}return l<2?!1:!0};
_.W.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.W.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.W.updateOptionTextFromBinding=function(l){if(l.target){var D=Array.from(_.iJ(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(l.target);if(D>=0){var U;this.quizOptions[D].optionText=(U=l.detail.value)!=null?U:""}}};
_.QP.Object.defineProperties(tP.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(l=this.editorInfo)==null?void 0:(D=l.addOptionButton)==null?void 0:D.buttonRenderer;U&&(U.style="STYLE_SUGGESTIVE",U.size="SIZE_SMALL",U.isDisabled=!this.isAllowedToAddOption);return(U==null?0:U.text)?U:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var l,D;return this.quizOptions.length<((D=(l=this.editorInfo)==null?void 0:l.maxQuizOptions)!=null?D:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(l){var D;return(D=l.optionText)==null?void 0:D.trim()})}}});
tP.prototype.updatePlaceholderTexts=tP.prototype.updatePlaceholderTexts;tP.prototype.dataChanged=tP.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],tP.prototype,"editorInfo",void 0);_.E([_.K(),_.T("design:type",Array)],tP.prototype,"quizOptions",void 0);_.E([_.K(),_.T("design:type",Object)],tP.prototype,"explanationPlaceholderText",void 0);_.E([_.uJ(".option-selector-button"),_.T("design:type",Array)],tP.prototype,"optionSelectors",void 0);
_.E([_.GY("editorInfo"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tP.prototype,"dataChanged",null);_.E([_.t("editorInfo","isAllowedToAddOption","quizOptions"),_.T("design:type",Object),_.T("design:paramtypes",[])],tP.prototype,"addAnswerButton",null);_.E([_.t("editorInfo","quizOptions"),_.T("design:type",Object),_.T("design:paramtypes",[])],tP.prototype,"isAllowedToAddOption",null);
_.E([_.GY("quizOptions"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tP.prototype,"updatePlaceholderTexts",null);_.E([_.t("quizOptions"),_.T("design:type",Object),_.T("design:paramtypes",[])],tP.prototype,"hasCustomOptionText",null);_.E([_.x({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],tP);
_.r(tP,"ytd-backstage-quiz-editor-renderer",function(){if(Ihk!==void 0)return Ihk;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Ihk=l},{mode:2});var Hs8;var Ysz=(WF.FIRSTDAYOFWEEK+1)%7;var Osy;var Vok=[],iDk=0,lnm=0;iDk=0;lnm=24;if(.25*(lnm-iDk)<0)Osy=[];else{for(var Dev=iDk;Dev<lnm;Dev+=.25)Vok.push(Dev);Osy=Vok}var Ue_=Osy.map(function(l){l=l*60*60;return{secondsSinceMidnight:l,text:(new f7(7)).format(new Date(0,0,0,0,0,l))}});var nQ7;var X5=function(){var l=_.p.apply(this,arguments)||this;l.skipNextOpenDialog=!1;l.errorMessage="";l.previousMonthLabel=_.C3("PREVIOUS_MONTH_LABEL");l.nextMonthLabel=_.C3("NEXT_MONTH_LABEL");return l};
_.Z(X5,_.p);_.W=X5.prototype;_.W.attached=function(){var l=this,D=new MutationObserver(function(){l.JSC$15934_calendarMain.scrollHeight>0&&(D.disconnect(),l.calendarConfig&&l.calendarConfig.selectedDate&&l.scrollToDate())});
D.observe(this.JSC$15934_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){D.disconnect()},1E3)};
_.W.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.W.onDateTextChange=function(){if(this.calendarConfig){var l=this.validateDateText();l.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(l.details)):this.textbox.setAttribute("invalid","")}};
_.W.handleDayClick=function(l){l.model.day.date&&(this.commitDate(l.model.day.date),this.dialog.close())};
_.W.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var l=yDC(this.calendarConfig.selectedDate,this.renderData);l!==void 0&&this.JSC$15934_calendarMain.scrollToIndex(l)}};
_.W.scrollToNextMonth=function(){this.JSC$15934_calendarMain.scrollToIndex(this.JSC$15934_calendarMain.firstVisibleIndex+1)};
_.W.scrollToPrevMonth=function(){this.JSC$15934_calendarMain.firstVisibleIndex===0&&this.JSC$15934_calendarMain.scrollTo(0,0);this.JSC$15934_calendarMain.scrollToIndex(this.JSC$15934_calendarMain.firstVisibleIndex-1)};
_.W.onFormSubmit=function(l){l.preventDefault();this.calendarConfig&&(l=this.validateDateText(),l.isValid&&(this.commitDate(l.details),this.dialog.close()))};
_.W.onEscOrClickingOutside=function(l){l=l.detail.path&&!!l.detail.path.length&&l.detail.path[0];if(l.classList.contains("ytd-calendar-date-picker")){l===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var D=0;D<this.dropdownButton.children.length;D++)this.dropdownButton.children[D]===l&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}l=this.textbox.value!==this.dateText;D=this.validateDateText();l&&D.isValid&&this.commitDate(D.details);this.dialog.close();this.textbox.value=
this.dateText};
_.W.commitDate=function(l){this.calendarConfig&&(this.set("calendarConfig.selectedDate",l),_.O9(this.hostElement,"ytd-calendar-date-selected",l))};
_.W.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var l=this.textbox.value;var D=new Date;l=(new eT$(2)).parse(l,D,{validate:!0})===l.length?U5o(D):void 0;if(!l)return this.errorMessage=_.C3("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};D=this.calendarConfig.start;var U=this.calendarConfig.end;if(OlK(l,D))return this.errorMessage=_.C3("ENTER_DATE_OR_LATER",{allowed_date:D53(D)}),{isValid:!1,details:void 0};if(OlK(U,l))return this.errorMessage=
_.C3("ENTER_DATE_OR_EARLIER",{allowed_date:D53(U)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:l}};
_.QP.Object.defineProperties(X5.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?D53(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var l=this.calendarConfig,D=[],U=0;U<7;U++)D.push(WF.NARROWWEEKDAYS[(U+Ysz)%7]);U=[];for(var n=new Date(l.start.year,l.start.month);n.getFullYear()<l.end.year||n.getFullYear()===l.end.year&&n.getMonth()<=l.end.month;){var y=U,A=y.push,C=n.getFullYear(),h=n.getMonth(),b=l,u=void 0,Q=[],G=Object.freeze({extraCssClass:"invisible",debugClass:""}),J=new Date(C,h),L=U5o(J);J=J.getDay();for(var R=U5o(new Date);L.month===
h;){J!==Ysz&&u||(u=Array.from({length:7}).fill(G),Q.push(u));var a={date:{year:C,month:h,day:L.day},extraCssClass:"",debugClass:""};b.selectedDate&&a.date&&Yu$(a.date,b.selectedDate)&&(a.extraCssClass+=" selected");if(OlK(L,b.start)||OlK(b.end,L))a.extraCssClass+=" disabled";Yu$(L,R)&&(a.extraCssClass+=" today");a.extraCssClass=a.extraCssClass.trim();u[(J-Ysz+7)%7]=a;L=iQ9(L);J=(J+1)%7}A.call(y,{weeks:Q,monthLabel:WF.SHORTMONTHS[h]+" "+C,year:C,month:h,monthLabelExtraCssClass:Q[0][2]===G?"shift-down-label":
""});n.setMonth(n.getMonth()+1)}return{months:U,daysOfWeekLabel:D}}}}});
X5.prototype.onEscOrClickingOutside=X5.prototype.onEscOrClickingOutside;X5.prototype.scrollToDate=X5.prototype.scrollToDate;_.E([_.K(),_.T("design:type",Object)],X5.prototype,"calendarConfig",void 0);_.E([_.K(),_.T("design:type",Object)],X5.prototype,"skipNextOpenDialog",void 0);_.E([_.K(),_.T("design:type",Object)],X5.prototype,"errorMessage",void 0);_.E([_.K(),_.T("design:type",Object)],X5.prototype,"previousMonthLabel",void 0);
_.E([_.K(),_.T("design:type",Object)],X5.prototype,"nextMonthLabel",void 0);_.E([_.gP("#textbox"),_.T("design:type",HTMLInputElement)],X5.prototype,"textbox",void 0);_.E([_.gP("#calendar-dialog"),_.T("design:type",Object)],X5.prototype,"dialog",void 0);_.E([_.gP("#calendar-main"),_.T("design:type",Object)],X5.prototype,"JSC$15934_calendarMain",void 0);_.E([_.gP("#date-picker"),_.T("design:type",HTMLElement)],X5.prototype,"dropdownButton",void 0);
_.E([_.t("calendarConfig.selectedDate"),_.T("design:type",String),_.T("design:paramtypes",[])],X5.prototype,"dateText",null);_.E([_.t("calendarConfig","calendarConfig.selectedDate"),_.T("design:type",Object),_.T("design:paramtypes",[])],X5.prototype,"renderData",null);_.E([_.Pg("renderData","calendarConfig.selectedDate"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],X5.prototype,"scrollToDate",null);
_.E([_.hj("iron-overlay-canceled"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],X5.prototype,"onEscOrClickingOutside",null);_.E([_.S0({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],X5);
_.r(X5,"ytd-calendar-date-picker",function(){if(nQ7!==void 0)return nQ7;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return nQ7=l},{mode:2});var yIy=_.C3("UTC_OFFSET_FORMAT",{utc_offset:(new f7("Z")).format(new Date)}),AIz=(new Date).getTimezoneOffset()*-60,WM5=new Date,BGz,Cbm=z3(WM5.getTimezoneOffset());BGz=Eor(IV7(Cbm,WM5));var hb_=_.C3("LOCAL_TIME_GMT_LABEL",{gmt_text:BGz.replace("+0","+").replace("-0","-").replace(":00","")}),Sk=function(){var l=_.p.apply(this,arguments)||this;l.selectedTimeIndex=0;l.selectedTimezoneIndex=0;l.timeOfDayOptions=Ue_;return l};
_.Z(Sk,_.p);_.W=Sk.prototype;_.W.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var l=lGc();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=l,this.selectedTimeIndex=0;else{var D=nDg(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},l,{selectedDate:D.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(U){return U.secondsSinceMidnight===D.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.W.onDatePicked=function(l){this.selectedDate=l.detail};
_.W.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.O9(this.hostElement,"ytd-date-time-selection-cancelled")};
_.W.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var l=this.selectedDate;l=new Date(l.year,l.month,l.day);_.O9(this.hostElement,"ytd-date-time-selection-update",Math.floor(l.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+l.getTimezoneOffset()*60))}};
_.W.getTimezoneFormat=function(l){return l.localizedDisplayText?l.localizedDisplayText:_.C3("TIMEZONE_FORMAT",{utc_offset_text:""+l.localizedUtcOffset,city_name:""+l.localizedName})};
_.W.updateSelectedTimeIndexFromBinding=function(l){this.selectedTimeIndex=l.detail.value};
_.W.updateSelectedTimezoneIndexFromBinding=function(l){this.selectedTimezoneIndex=l.detail.value};
_.QP.Object.defineProperties(Sk.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var l=this.data.timezoneOptions;var D={name:"Etc/Unknown",localizedName:_.C3("LOCAL_TIME_LABEL"),localizedUtcOffset:yIy,utcOffsetSec:""+AIz,localizedDisplayText:hb_};l?l.length&&l[0].name!==D.name&&(l[0].localizedDisplayText||(D.localizedDisplayText=""),l.unshift(D)):l=[D];return l}}},
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]}}});
Sk.prototype.onDateTimeTimezoneChange=Sk.prototype.onDateTimeTimezoneChange;Sk.prototype.onDatePicked=Sk.prototype.onDatePicked;Sk.prototype.updateDefaultSelectedValue=Sk.prototype.updateDefaultSelectedValue;_.E([_.K(),_.T("design:type",Object)],Sk.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Sk.prototype,"calendarConfig",void 0);_.E([_.K(),_.T("design:type",Object)],Sk.prototype,"selectedDate",void 0);_.E([_.K(),_.T("design:type",Object)],Sk.prototype,"selectedTimeIndex",void 0);
_.E([_.K(),_.T("design:type",Object)],Sk.prototype,"selectedTimezoneIndex",void 0);_.E([_.gP("#time-listbox"),_.T("design:type",Object)],Sk.prototype,"timeListBox",void 0);_.E([_.gP("#timezone-listbox"),_.T("design:type",Object)],Sk.prototype,"timezoneListBox",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Sk.prototype,"rendererStamperBehavior",void 0);_.E([_.t("data.timezoneOptions"),_.T("design:type",Object),_.T("design:paramtypes",[])],Sk.prototype,"timeZones",null);
_.E([_.GY("data","timeZones"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Sk.prototype,"updateDefaultSelectedValue",null);_.E([_.t("selectedTimezoneIndex","timeZones"),_.T("design:type",Object),_.T("design:paramtypes",[])],Sk.prototype,"selectedTimezone",null);_.E([_.t("selectedTimeIndex"),_.T("design:type",Object),_.T("design:paramtypes",[])],Sk.prototype,"selectedTime",null);
_.E([_.hj("ytd-calendar-date-selected"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Sk.prototype,"onDatePicked",null);_.E([_.Pg("selectedTimezone","selectedTime","selectedDate"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Sk.prototype,"onDateTimeTimezoneChange",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Sk);
_.r(Sk,"ytd-date-time-picker-renderer",function(){if(Hs8!==void 0)return Hs8;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Hs8=l},{mode:1});var Pbh;var kn=function(){var l=_.p.apply(this,arguments)||this;l.boundOnTapDismissButton=function(){l.dismissTapHandler()};
l.dismissButtonOverrides={size:"XS"};return l};
_.Z(kn,_.p);kn.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}}}}}};
kn.prototype.dismissTapHandler=function(){_.O9(this.hostElement,"yt-backstage-attachment-dismissed")};
kn.prototype.computeAttachmentType=function(l){return l?l.backstageImageRenderer?"image":l.videoRenderer?"video":"none":"none"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],kn.prototype,"attachmentPreview",void 0);_.E([_.K(),_.T("design:type",Object)],kn.prototype,"dismissButton",void 0);_.E([_.K(),_.T("design:type",Object)],kn.prototype,"boundOnTapDismissButton",void 0);
_.E([_.K(),_.T("design:type",Object)],kn.prototype,"dismissButtonOverrides",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.T("design:type",String)],kn.prototype,"attachmentType",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],kn);
_.r(kn,"ytd-backstage-dismissable-attachment",function(){if(Pbh!==void 0)return Pbh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Pbh=l},{mode:1});var bDg;var dp=function(){var l=_.p.apply(this,arguments)||this;l.selectedVideoId=void 0;l.picker=void 0;l.dismissButtonOverrides={size:"XS"};l.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return l};
_.Z(dp,_.p);_.W=dp.prototype;_.W.onServiceRequestCompleted=function(l){l.stopPropagation()};
_.W.handleAddVideoPreviewAction=function(l){l=this.get("addVideoPreviewAction",l);this.onGetVideoPreviewSuccess(l)};
_.W.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}}}}}};
_.W.onLaunchVideoPicker=function(l){var D=this,U=_.Nl(this.get("addVideoLinkAction.title",l)),n=this.get("addVideoLinkAction.onePickHostId",l);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",l);n&&(this.picker||(U=_.oYz(_.h5g(n).setTitle(U).addView(pd7()).addView(cH_()),function(y){D.onPickVideo(y)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",l)||U.addView("youtube"),this.picker=U.build()),this.picker.setVisible(!0))};
_.W.onPickVideo=function(l){if(l)if(l.action==="cancel")_.O9(this.hostElement,"yt-video-link-button-cancel");else if(l.action==="picked"){l=l.docs;if(!l||l.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(l=(l==null?0:l.length)?l[0]:void 0)?l.id:void 0;this.setVideoPreview()}};
_.W.setVideoPreview=function(){var l=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){l.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.W.onGetVideoPreviewSuccess=function(l){if(l&&l.videoPreview&&l.cancelButton)this.videoPreview=l.videoPreview,this.cancelButton=l.cancelButton,_.O9(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.W.onGetVideoPreviewError=function(){this.cancel()};
_.W.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.O9(this.hostElement,"yt-video-link-cancel")};
_.W.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
dp.prototype.onServiceRequestCompleted=dp.prototype.onServiceRequestCompleted;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],dp.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],dp.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],dp.prototype,"videoPreview",void 0);_.E([_.K(),_.T("design:type",Object)],dp.prototype,"cancelButton",void 0);_.E([_.K(),_.T("design:type",Object)],dp.prototype,"getVideoPreviewCommand",void 0);_.E([_.K(),_.T("design:type",Object)],dp.prototype,"dismissButtonOverrides",void 0);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],dp.prototype,"onServiceRequestCompleted",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],dp);
_.r(dp,"ytd-backstage-video-link-attachment",function(){if(bDg!==void 0)return bDg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return bDg=l},{mode:1});var gQ7;var uNv;var vQg;var Kx=function(){return _.p.apply(this,arguments)||this};
_.Z(Kx,_.p);Kx.prototype.dataChanged=function(){this.active=!1};
Kx.prototype.onTap=function(){_.O9(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Kx.prototype.identity=function(l){return l};
_.QP.Object.defineProperties(Kx.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n;if((l=this.data)==null?0:(D=l.image)==null?0:(U=D.thumbnails)==null?0:(n=U[0])==null?0:n.url)return l=this.data.image.thumbnails[0].url,l.startsWith("data:image/svg+xml")?jD(l):_.Ng(l)}}});
Kx.prototype.dataChanged=Kx.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],Kx.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Kx.prototype,"active",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Kx.prototype,"dataChanged",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Kx.prototype,"imageSrc",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Kx);
_.r(Kx,"ytd-emoji-suggestion",function(){if(vQg!==void 0)return vQg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vQg=l},{mode:1});var QMh=/.*([:@#].*?)$/,cQ=function(){var l=_.p.apply(this,arguments)||this;l.suggestions=[];l.suggestionIndex=-1;l.JSC$15962_lastSuggestionRange=null;return l};
_.Z(cQ,_.p);_.W=cQ.prototype;_.W.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.W.getSuggestions=function(l){var D=[],U=rpm(this.emojiManager,l.substr(0,3));if(U)for(var n in U)if(n.toLocaleLowerCase().indexOf(l)===0){var y=U[n];if(y&&y.emojiId){y=BR(this.emojiManager,y.emojiId);var A=void 0,C=void 0,h=void 0,b=void 0,u=((A=y)==null?0:A.isCustomEmoji)?(C=y)==null?void 0:(h=C.shortcuts)==null?void 0:h[0]:(b=y)==null?void 0:b.emojiId;A=void 0;D.push({suggestion:{image:(A=y)==null?void 0:A.image,alt:u,text:n}});if(D.length>=64)break}}return D?D.sort(function(Q,G){return G.suggestion.text<
Q.suggestion.text?-1:G.suggestion.text===Q.suggestion.text?0:1}):null};
_.W.insertSuggestion=function(l){_.O9(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15962_lastSuggestionRange,text:l.alt});this.dropdown.opened=!1};
_.W.updateSuggestionsAtCaret=function(l){this.updateSuggestions(l,this.retrieveTextBeforeRange(l))};
_.W.offsetStartOfRangeBy=function(l,D){l.startOffset>=D&&l.setStart(l.startContainer,l.startOffset-D)};
_.W.updateSuggestions=function(l,D){var U=this;this.JSC$15962_lastSuggestionRange&&(this.JSC$15962_lastSuggestionRange.detach(),this.JSC$15962_lastSuggestionRange=null);if((D=QMh.exec(D))&&D.length&&(D=D[D.length-1].toLocaleLowerCase(),D.length>2||D===":_")&&(this.offsetStartOfRangeBy(l,D.length),this.JSC$15962_lastSuggestionRange=l,(l=this.getSuggestions(D))&&l.length)){this.suggestions=l;_.u6(this,function(){U.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(l.length-1);return}this.dropdown.opened=!1};
_.W.onKeyDown=function(l){if(this.dropdown.opened)switch(l.key){case "Escape":this.dropdown.opened=!1;l.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);l.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);l.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),l.preventDefault()}};
_.W.onKeyUp=function(l,D){switch(l.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(D);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(D)}};
_.W.onKeyPress=function(l){l.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),l.preventDefault())};
_.W.changeSuggestionIndex=function(l){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(l+this.suggestions.length)%this.suggestions.length,l=this.dropdownContent.children[this.suggestionIndex],l.active=!0,this.dropdownContent.scrollTop=l.offsetTop)};
_.W.retrieveTextBeforeRange=function(l){var D=l.startContainer;return D&&D.nodeType===Node.TEXT_NODE?D.textContent.substr(0,l.startOffset):""};
cQ.prototype.onKeyPress=cQ.prototype.onKeyPress;cQ.prototype.onKeyUp=cQ.prototype.onKeyUp;cQ.prototype.onKeyDown=cQ.prototype.onKeyDown;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Array)],cQ.prototype,"suggestions",void 0);_.E([_.K(),_.T("design:type",_.AK)],cQ.prototype,"emojiManager",void 0);_.E([_.K(),_.T("design:type",Number)],cQ.prototype,"verticalSuggestionsOffset",void 0);
_.E([_.gP("#dropdown"),_.T("design:type",Object)],cQ.prototype,"dropdown",void 0);_.E([_.gP("#dropdown-content"),_.T("design:type",HTMLDivElement)],cQ.prototype,"dropdownContent",void 0);_.E([_.hj("keydown"),_.T("design:type",Function),_.T("design:paramtypes",[KeyboardEvent]),_.T("design:returntype")],cQ.prototype,"onKeyDown",null);_.E([_.hj("keyup"),_.T("design:type",Function),_.T("design:paramtypes",[KeyboardEvent,Range]),_.T("design:returntype")],cQ.prototype,"onKeyUp",null);
_.E([_.hj("keypress"),_.T("design:type",Function),_.T("design:paramtypes",[KeyboardEvent]),_.T("design:returntype")],cQ.prototype,"onKeyPress",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-emoji-input"})],cQ);
_.r(cQ,"ytd-emoji-input",function(){if(uNv!==void 0)return uNv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return uNv=l},{mode:2});var GVr;var px=function(){var l=_.p.apply(this,arguments)||this;l.hasMaxOptions=!1;return l};
_.Z(px,_.p);_.W=px.prototype;_.W.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.W.setPrefilledChoices=function(l){var D=this;this.set("pollOptions",[]);var U;for(U=0;U<Math.min(l.length,this.data.maxPollOptions);U++)this.push("pollOptions",l[U].substring(0,this.data.maxPollOptionChars));for(;U<this.data.minPollOptions;U++)this.push("pollOptions","");this.hasMaxOptions=U>=this.data.maxPollOptions;_.u6(this,function(){for(var n=D.pollOptions,y=_.iJ(D.hostElement).querySelectorAll(".poll-option-input"),A=0;A<y.length;A++)y[A].value=n[A]})};
_.W.focusChanged=function(){_.Wg(this.hostElement)};
_.W.onInput=function(){var l=this;_.Fs(this,"onInput",function(){l.isValid()?_.O9(l.hostElement,"yt-commentbox-post-enable"):_.O9(l.hostElement,"yt-commentbox-post-disable")},300)};
_.W.setPollOptions=function(){var l=[],D,U=((D=this.data)==null?0:D.minPollOptions)?this.data.minPollOptions:0;for(D=0;D<U;D++)l.push("");return l};
_.W.addPollOption=function(){var l=this;_.O9(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Tn.addLowPriorityJob(function(){var D;(D=_.iJ(l.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||D.focus()})};
_.W.onRemovePollOption=function(l){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.O9(this.hostElement,"yt-poll-attachment-dismiss")):(l=this.repeat.indexForElement(l.target.parentNode),l!==null&&(this.splice("pollOptions",l,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.O9(this.hostElement,"yt-commentbox-post-enable"))))};
_.W.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.W.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var l=0,D=this.pollOptions.length;l<D;l++)if(this.pollOptions[l].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.W.getPollOptions=function(){return this.pollOptions};
_.W.setPollOptionsFromInputs=function(){for(var l=_.iJ(this.hostElement).querySelectorAll(".poll-option-input"),D=0;D<l.length;D++)this.pollOptions[D]=l[D].value.trim()};
_.W.clearPollOptions=function(){var l=_.iJ(this.hostElement).querySelectorAll(".poll-option-input");l=_.B(l);for(var D=l.next();!D.done;D=l.next())D.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.W.getSimpleString=function(l){return _.Nl(l)};
_.W.updateValueFromBinding=function(l){if(l.target&&this.pollOptions){var D=Array.from(_.iJ(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(l.target);if(D>=0){var U;this.pollOptions[D]=(U=l.detail.value)!=null?U:"";this.notifyPath("pollOptions."+D)}}};
px.prototype.dataChanged=px.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],px.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],px.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Array)],px.prototype,"pollOptions",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],px.prototype,"hasMaxOptions",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],px.prototype,"enableCreationBox",void 0);
_.E([_.gP("#repeat"),_.T("design:type",m2)],px.prototype,"repeat",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],px.prototype,"dataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-poll-attachment"})],px);
_.r(px,"ytd-poll-attachment",function(){if(GVr!==void 0)return GVr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return GVr=l},{mode:2});var JIv;var LM7;var qz8;var M6h;var xn=function(){return _.p.apply(this,arguments)||this};
_.Z(xn,_.p);_.QP.Object.defineProperties(xn.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],xn.prototype,"rendererBehaviors",void 0);_.E([_.K(),_.T("design:type",Object)],xn.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],xn.prototype,"focused",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("focused"),_.T("design:type",Object),_.T("design:paramtypes",[])],xn.prototype,"ariaSelected",null);_.E([_.S0({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],xn);
_.r(xn,"yt-user-mention-suggestion-renderer",function(){if(M6h===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;qz8===void 0&&(qz8=document.createElement("template"));var n=qz8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);M6h=l}l=M6h;return l},{mode:2});var RbH;var ZDz;var jk=function(){var l=_.p.apply(this,arguments)||this;l.focusedSuggestionIndex=-1;return l};
_.Z(jk,_.p);_.W=jk.prototype;_.W.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.W.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.W.setFocusedSuggestionIndex=function(l){!this.data||!this.data.suggestions||l<0||l>=this.data.suggestions.length||(this.focusedSuggestionIndex=l,l=this.getSuggestionId(l),this._setFocusedSuggestionId(l))};
_.W.advanceSuggestion=function(l){this.focusedSuggestionIndex===-1||l!==-1&&l!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+l),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.W.ensureSuggestionVisible=function(l){l=this.getSuggestionId(l);l=_.iJ(this.hostElement).querySelector("[id="+l+"]");l!=null&&(l.offsetTop<this.hostElement.scrollTop?l.scrollIntoView(!0):l.offsetTop+l.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&l.scrollIntoView(!1))};
_.W.getSuggestionId=function(l){return"user-mention-suggestion-"+l};
_.W.onSuggestionTap=function(l){var D=_.M(l.model.item,TS7);this.ytRendererBehavior.logExplicitClick(D);_.O9(this.hostElement,"yt-user-mention-suggestion-selected",{data:D,index:l.model.index})};
_.W.onSuggestionMouseMove=function(l){l.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(l.model.index)};
_.W.isSuggestionFocused=function(l,D){return l===D};
_.W.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.W.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("focused-suggestion-id-changed",this.focusedSuggestionId))};
jk.prototype.focusedSuggestionIdChangedForBinding=jk.prototype.focusedSuggestionIdChangedForBinding;jk.prototype.onDomChange=jk.prototype.onDomChange;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jk.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],jk.prototype,"focusedSuggestionIndex",void 0);_.E([_.K({readOnly:!0}),_.T("design:type",String)],jk.prototype,"focusedSuggestionId",void 0);
_.E([_.hj("dom-change"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],jk.prototype,"onDomChange",null);_.E([_.Pg("focusedSuggestionId"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jk.prototype,"focusedSuggestionIdChangedForBinding",null);_.E([_.S0({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],jk);
_.r(jk,"yt-user-mention-suggestions-dropdown",function(){if(ZDz===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;RbH===void 0&&(RbH=document.createElement("template"));var n=RbH;U.call(D,n.content.cloneNode(!0),l.content.firstChild);ZDz=l}l=ZDz;return l},{mode:2});var F5=function(){var l=_.p.apply(this,arguments)||this;l.suggestionsResponse=null;l.activeMention=null;l.selectionChangeListener=l.onSelectionChange.bind(l);l.handlesEnabled=_.q("enable_handles_in_mention_suggest_posts");l.handlesInMentionSuggestionsEnabled=_.q("handles_in_mention_suggest_posts");l.zeroPrefixMentionSuggestionEnabled=_.q("enable_zero_prefix_mention_suggestion_web");l.pendingQuery=null;l.flowNonce=null;return l};
_.Z(F5,_.p);_.W=F5.prototype;_.W.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.W.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.W.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.W.hasSuggestions=function(l){return!!(l&&l.suggestions&&l.suggestions.length>0)};
_.W.onInput=function(){var l=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var D=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),U=this.activeMention.JSC$11424_getText().slice(-1)===" ",n=this.activeMention.JSC$11424_getText().slice(-2,-1)===" ",y="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11424_getText().slice(-2,
-1))>=0;y=this.zeroPrefixMentionSuggestionEnabled&&y;if(this.activeMention.isCollapsed()||(D||n||y)&&U)this.cancelActiveMention();else{var A=this.activeMention.JSC$11424_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Fs(this,"requestSuggestions",function(){l.requestSuggestions(A)},100)}}}};
_.W.onServiceRequestSent=function(l){l.stopPropagation()};
_.W.onServiceRequestCompleted=function(l){l.stopPropagation();l=l.detail.data;l.query&&(!this.pendingQuery||this.pendingQuery!==l.query)||!this.zeroPrefixMentionSuggestionEnabled&&l.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=l,this.hasSuggestions(l)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.W.onServiceRequestError=function(l){l.stopPropagation()};
_.W.onUserMentionSuggestionSelected=function(l){this.selectSuggestion(l.detail.data,l.detail.index)};
_.W.onSelectionChange=function(){if(this.activeMention){var l=_.Df(),D=this.activeMention.JSC$11424_containsRange(l);l=l&&this.containsHelper(this.dropdown,l.getContainer());D||l||this.cancelActiveMention()}};
_.W.containsHelper=function(l,D){var U;if(((U=window.ShadyDOM)==null?void 0:U.noPatch)===!0)return l.contains(D);for(;D;){if(D===l)return!0;D=D instanceof ShadowRoot?D.host:D.parentNode}return!1};
_.W.maybeStartSuggest=function(){var l=_.Df();if(l&&l.isCollapsed()){var D=l.JSC$11424_getStartNode(),U=l.JSC$11424_getStartOffset();if(D instanceof Text&&!(U<1)){var n=D.textContent;!(n=n&&n.charAt(U-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(n)<0||(this.activeMention=_.TL(D,U-1,l.JSC$11424_getEndNode(),l.JSC$11424_getEndOffset()),this.flowNonce=eG(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.W.updateActiveMention=function(){if(this.activeMention){var l=_.Df();l&&l.isCollapsed()&&(this.activeMention=_.TL(this.activeMention.JSC$11424_getStartNode(),this.activeMention.JSC$11424_getStartOffset(),l.JSC$11424_getEndNode(),l.JSC$11424_getEndOffset()))}};
_.W.requestSuggestions=function(l){if(this.activeMention){var D={suggestions_query:l};this.pendingQuery=l;_.lu(this.hostElement,[this.suggestionsEndpoint,D])}};
_.W.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()};
_.W.focusPreviousSuggestion=function(l){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),l.preventDefault())};
_.W.focusNextSuggestion=function(l){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),l.preventDefault())};
_.W.selectFocusedSuggestion=function(l){if(this.hasSuggestions(this.suggestionsResponse)){var D=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.M(D,TS7)&&(this.selectSuggestion(_.M(D,TS7),this.dropdown.focusedSuggestionIndex),l.preventDefault())}};
_.W.selectSuggestion=function(l,D){if(l){var U=this.activeMention;if(U){var n=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&l.handle?_.Fp(n,"\u00a0\u2068@"+l.handle+"\u2069\u00a0"):this.handlesEnabled?_.Fp(n,"\u00a0"+l.displayName+"\u00a0"):_.Fp(n,"\u00a0@"+l.displayName+"\u00a0");Il(n,"/channel/"+l.channelId);n.classList.add("yt-formatted-string","yt-simple-endpoint");n.setAttribute("spellcheck","false");U.isCollapsed()||U.JSC$11424_removeContents();U.insertNode(n,!0);l=document.createTextNode(" ");
n.parentNode.insertBefore(l,n.nextSibling);window.getSelection().collapse(l,1);D={suggestionSelected:{suggestionIndex:D}};if(this.zeroPrefixMentionSuggestionEnabled){var y;D.suggestionSelected.isZeroPrefix=((y=this.suggestionsResponse)==null?void 0:y.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",D);this.cancelActiveMention();_.O9(this.hostElement,"yt-mention-inserted")}}};
_.W.getPositionTarget=function(l){return l&&l.getBrowserRangeObject()};
_.W.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.W.onFocusedSuggestionIdChanged=function(l){var D=_.Zxg(this.hostElement)[0];D&&(l.detail.value?D.setAttribute("aria-activedescendant",l.detail.value):D.removeAttribute("aria-activedescendant"))};
_.W.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.W.logGELEvent=function(l,D){l={eventType:l,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};D&&(l=Object.assign(l,D));_.Na("userMentionAutoCompleteBoxEvent",l)};
F5.prototype.onDomChange=F5.prototype.onDomChange;F5.prototype.onUserMentionSuggestionSelected=F5.prototype.onUserMentionSuggestionSelected;F5.prototype.onServiceRequestError=F5.prototype.onServiceRequestError;F5.prototype.onServiceRequestCompleted=F5.prototype.onServiceRequestCompleted;F5.prototype.onServiceRequestSent=F5.prototype.onServiceRequestSent;F5.prototype.onInput=F5.prototype.onInput;_.E([_.m(_.pi),_.T("design:type",Object)],F5.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],F5.prototype,"suggestionsEndpoint",void 0);_.E([_.K(),_.T("design:type",Object)],F5.prototype,"suggestionsResponse",void 0);_.E([_.K(),_.T("design:type",Object)],F5.prototype,"activeMention",void 0);_.E([_.gP("#dropdown"),_.T("design:type",Object)],F5.prototype,"dropdown",void 0);_.E([_.gP("#iron-dropdown"),_.T("design:type",Object)],F5.prototype,"ironDropdown",void 0);
_.E([_.hj("input"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],F5.prototype,"onInput",null);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],F5.prototype,"onServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],F5.prototype,"onServiceRequestCompleted",null);
_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],F5.prototype,"onServiceRequestError",null);_.E([_.hj("yt-user-mention-suggestion-selected"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],F5.prototype,"onUserMentionSuggestionSelected",null);
_.E([_.hj("dom-change"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],F5.prototype,"onDomChange",null);_.E([_.S0({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],F5);
_.r(F5,"yt-user-mention-autosuggest-input",function(){if(LM7===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;JIv===void 0&&(JIv=document.createElement("template"));var n=JIv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);LM7=l}l=LM7;return l},{mode:2});var oW=null;
_.e0({is:"ytd-commentbox",_template:function(){if(gQ7!==void 0)return gQ7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return gQ7=l},
behaviors:[_.l4g.YtHostElementBehavior,_.pi,_.K$.YtActionHandlerBehavior,_.la.YtComponentBehavior,_.J9.YtRendererstamperBehavior,_.yF5.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(l,D){return _.yT(l.entities,"aadcGuidelinesStateEntityPayload",D)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(l,D){return _.yT(l.entities,"commentboxStateEntity",D)},
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 _.CF}},
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:_.q("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.q("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",_.CY(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(l){this.fire(l?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(l){this.set("submitButtonDisabled",void 0);this.clear();l&&this.computeIsEmojiButtonDisplayed_(l)&&(l=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&l.updateEmojiCategories()},
observePrefilledImage_:function(l,D,U){this.isValidPrefilledImage_(l,D,U)&&(this.prefilledAttachment_="image",this.prefilledImageData_=D,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(l,D){this.isValidPrefilledVideo_(l,D)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(l){l&&l.pollData&&l.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(l.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Mf();this.focus()},
detached:function(){document.removeEventListener("tap",_.CY(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(l){l=l.detail;l=l.isCustomEmoji?l.shortcuts[0]:l.emojiId;var D=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(D,l);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var l=_.Df();if(l){l=l.getBrowserRangeObject();for(var D=l.commonAncestorContainer;D;){if(D===this.getEditableTextArea_())return l;D=D.parentNode}}l=this.getEditableTextArea_();l=_.EI(l,l.childNodes.length);l.select();return l.getBrowserRangeObject()},
insertTextWithEmojis_:function(l,D,U){(D=this.emojiManager.createDocumentFragment(D,!0,!1,U===void 0?!0:U))&&D.childNodes.length!==0&&(l.collapsed||l.deleteContents(),U=D.lastChild,l.insertNode(D),_.uE7(U).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var l=_.Df();if(l){var D=l.JSC$11424_getStartNode(),U=l.JSC$11424_getEndNode();if(AD_(D)&&AD_(U)){var n=l.JSC$11424_getStartOffset(),y;if(_.nh&&D.nodeType===Node.ELEMENT_NODE&&(y=_.gm1(D)))_.EI(y,0).select();else{y=Vs(D)?D:_.sj(D,Vs);var A=Vs(U)?U:_.sj(U,Vs);if(y||A)if(l.isCollapsed()){if(D.nodeType===Node.TEXT_NODE){l=!0;n===D.length&&(l=!1);if(oW==="end"||oW==="right")l=!1;D=D.parentNode;l=[].concat(_.zz(D.parentNode.childNodes)).indexOf(D)+(l?0:1);_.EI(D.parentNode,
l).select()}}else y?y.previousSibling&&y.previousSibling.length>0?_.TL(U,l.JSC$11424_getEndOffset(),y.previousSibling,y.previousSibling.length-1).select():(D=document.createTextNode("\u200b"),y.parentNode.insertBefore(D,y),_.TL(U,l.JSC$11424_getEndOffset(),D,0).select()):A&&(A.nextSibling&&A.nextSibling.length>0?_.TL(D,l.JSC$11424_getStartOffset(),A.nextSibling,1).select():(U=document.createTextNode("\u200b"),A.parentNode.insertBefore(U,A.nextSibling),_.TL(D,l.JSC$11424_getStartOffset(),U,U.length).select()));
oW=null}}else oW=null}else oW=null},
leftKeyPressed_:function(){oW="left"},
rightKeyPressed_:function(){oW="right"},
endKeyPressed_:function(){oW="end"},
maybeDeleteChip_:function(){var l=bQs(!0);if(l){var D=_.Df(),U=D.JSC$11424_getStartNode();D=D.JSC$11424_getStartOffset();_.zL(U,D,l,l.childNodes.length).select()}},
maybeBackspaceChip_:function(){var l=bQs(!1);if(l){var D=_.Df(),U=D.JSC$11424_getStartNode();D=D.JSC$11424_getStartOffset();_.zL(U,D,l,0).select()}},
maybeBackspaceChipWordMode_:function(l){var D=_.Df();if(D.isCollapsed()){var U=D.JSC$11424_getStartNode();D=D.JSC$11424_getStartOffset();var n=gDG(U,D,!0);n&&(_.zL(U,D,n,0).select(),document.execCommand("delete"),l.preventDefault(),l.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(l){var D=_.Df();if(D.isCollapsed()){var U=D.JSC$11424_getStartNode();D=D.JSC$11424_getStartOffset();var n=gDG(U,D,!1);n&&(_.zL(U,D,n,n.childNodes.length).select(),document.execCommand("delete"),l.preventDefault(),l.stopImmediatePropagation())}},
onTap_:function(l){if(!l.defaultPrevented&&(l.currentTarget.tagName==="YTD-COMMENTBOX"&&Vs(l.target)&&l.preventDefault(),this.isEmojiPickerDisplayed)){var D=this.$$("#emojis"),U=this.$$("#emoji-button"),n=this.getEditableTextArea_();if((l=l.path?l.path:l.composedPath&&l.composedPath())&&!l.includes(D)&&!l.includes(n)&&!l.includes(U))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(l,D,U){return l==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&D!==void 0&&D.encryptedBlobId!==null&&D.sourceExternalVideoId!==null&&U!==void 0&&U.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(l,D){return l==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!D&&!!D.videoRenderer&&!!D.videoRenderer.videoId},
isValidPrefilledAttachment_:function(l,D,U){return this.isValidPrefilledImage_(l,D,U)||this.isValidPrefilledVideo_(l,U)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.q("enable_multi_image_post_creation")){var l=this.$$("ytd-backstage-multi-image-select-renderer");l&&l.hasImages()&&l.cancel()}else(l=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&l.cancel();(l=this.$["poll-attachment"])&&this.hasPoll_&&l.clearPollOptions();(l=this.$["image-poll-attachment"])&&this.hasImagePoll_&&l.resetPollOptions();(l=this.$["quiz-attachment"])&&this.hasQuiz_&&l.resetQuizOptions();
(l=this.$["video-link-attachment"])&&this.hasVideo_&&l.cancel();(l=this.$["access-restrictions-selector"].firstElementChild)&&l.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 _.iJ(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.iJ(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(l,D){l=BoC(l,this.emojiManager,D).cloneNode(!0);for(D=l.firstChild;D;)if(D.nodeType!==1)D=D.nextSibling;else switch(D.tagName){case "BR":var U=_.dU();_.Mrr(U,D);D=U.nextSibling;break;case "DIV":(U=D.lastChild)&&D.nextSibling&&_.xh(_.dU(),U);D.previousSibling&&(D.previousSibling.nodeType===1||D.previousSibling.nodeType===3&&!D.previousSibling.textContent.endsWith("\n"))&&_.pT(_.dU(),D);U&&U.nodeName==="BR"&&_.kT(U);U=D;D.hasChildNodes()?(D=D.firstChild,
_.Rhz(U)):(D=D.nextSibling,_.kT(U));break;default:D=D.nextSibling}return uVl(l)},
onAddImageError_:function(l){l.stopPropagation();this.errorMessage_=_.$B(l.detail)},
setTextAreaValue_:function(l){l||(l="");var D=this.getEditableFormattedString_();D.text="";this.getEditableTextArea_().innerText="";typeof l==="string"&&(l={runs:[{text:l}]});D.text=l},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();oW=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var l=this.getEditableTextArea_();l&&(_.EI(l,l.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.H3("HTML_DIR")==="rtl"){var l=this.getEditableTextArea_(),D=this.getTextAreaValue()!==""?"auto":"rtl";l.setAttribute("dir",D)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var l;return VLK((l=this.$["quiz-attachment"])==null?void 0:l.getExplanationText())||VLK(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var l=null;if(this.isEmojiButtonDisplayed){var D=this.getInputRange_();D&&(l=this.emojiInput.retrieveTextBeforeRange(D))}this.insertText_(l,!0);this.updateCharCount_();this.setSubmitButton_();l=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=l.scrollHeight>l.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var l=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:l})},
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(l){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(l)},
onPasteEmoji_:function(l){l.preventDefault();l.stopImmediatePropagation();l=l.clipboardData.getData("text/plain");this.insertText_(l,!1,!1)},
insertText_:function(l,D,U){D=D===void 0?!1:D;U=U===void 0?!0:U;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&l){var n=this.getInputRange_().cloneRange();this.emojiManager&&n&&(D&&this.emojiInput.offsetStartOfRangeBy(n,l.length),this.insertTextWithEmojis_(n,l,U),WAN(this.getEditableTextArea_().lastChild)||(n=this.getInputRange_().cloneRange()),n&&(this.emojiInput.updateSuggestions(n,l),this.updateSuggestionOffset_(n)))}},
setSubmitButton_:function(){if(this.data){var l=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",D=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(l||D){var U=this.getTextAreaValue().trim();D=U===this.previousText_;U=!U||this.aboveCharLimit_;l&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(U=this.aboveCharLimit_);this.submitButtonDisabled=
D||U||!this.getTextLength();l&&_.q("enable_post_scheduling")&&(this.submitButtonDisabled=D&&!this.scheduledPublishTimeSec_||U)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Nl,computeCreationBoxClass_:function(l){return l?"focused":"not-focused"},
computeFooterMessageClass_:function(l,D){return D?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(l,D){return D?D:l},
computeFooterMessageHidden_:function(l,D){return!D&&!l},
computePlaceholderText_:function(l,D,U){return(U==="video"||U==="image")&&(l==null?0:l.prefilledPlaceholderText)?l==null?void 0:l.prefilledPlaceholderText:D==="poll"||D==="image-poll"?l==null?void 0:l.pollPostPlaceholderText:D==="quiz"?l==null?void 0:l.quizPostPlaceholderText:D==="image"?l==null?void 0:l.imagePostPlaceholderText:l==null?void 0:l.placeholderText},
computeHideAttachmentButtons_:function(l,D,U,n){return l===void 0?!1:n&&this.getSimpleString(n)===this.getSimpleString(l.rateLimitErrorMessage)?!0:D!=="none"||U!=="none"||!l.videoLinkButton&&!l.pollButton&&!l.imagePollButton&&!l.quizButton&&!l.imageButton},
computeHideDismissableAttachment_:function(l){return l!=="image"&&l!=="video"},
computeHasVideo_:function(l){return l==="video"},
computeHasImage_:function(l){return l==="image"},
computeHasPoll_:function(l){return l==="poll"},
computeHasImagePoll_:function(l){return l==="image-poll"},
computeHasQuiz_:function(l){return l==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(l){return l&&l.backstageAttachment?l.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!l.backstageAttachment.quizRenderer&&!l.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(l){if(this.isValidPrefilledAttachment_(l.purpose,l.prefilledImageData,l.backstageAttachment))return l.backstageAttachment},
computeEditAttachment_:function(l){if(this.computePrefilledContent_(l)===void 0)return l.backstageAttachment},
computeAuthorThumbnailDimension_:function(l,D){return l&&!D?24:40},
computeImageUploadEndpoint_:function(l){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",l)},
computeRateLimitErrorCommands_:function(l){var D,U;return l==null?void 0:(D=l.advancedTierFeatures)==null?void 0:(U=D.rateLimit)==null?void 0:U.rateLimitCommands},
computeIsBackstageComment_:function(l){return!(!l||l!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(l){return this.get("submitButton.buttonRenderer.serviceEndpoint",l)||this.get("replyButton.buttonRenderer.serviceEndpoint",l)||this.get("postButton.buttonRenderer.serviceEndpoint",l)},
computeSubmitButtonOverride:function(){if(_.q("web_modern_buttons")){var l,D;return{segmentedPosition:this.dropdownSchedulePanel_||!((l=this.data)==null?0:(D=l.postOptionsMenu)==null?0:D.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.q("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(l,D){l=this.get("submitButton.buttonRenderer",l)||this.get("replyButton.buttonRenderer",l)||this.get("postButton.buttonRenderer",l);D&&(l=D);l&&(l=Object.assign({},l),l.serviceEndpoint=void 0,l.isDisabled=this.submitButtonDisabled);return l},
computeHasExternalLinksAccess_:function(l){if(_.q("enable_rfa_external_links")){var D,U,n;return(n=l==null?void 0:(D=l.advancedTierFeatures)==null?void 0:(U=D.externalLinks)==null?void 0:U.allowExternalLinks)!=null?n:!0}return!0},
computeIsEmojiButtonDisplayed_:function(l){return l.emojiButton&&l.emojiPicker&&l.emojiPicker.emojiPickerRenderer&&l.emojiPicker.emojiPickerRenderer.categories?l.emojiPicker.emojiPickerRenderer.categories.find(function(D){return D.emojiPickerCategoryRenderer?D.emojiPickerCategoryRenderer.emojiIds&&D.emojiPickerCategoryRenderer.emojiIds.length>0:D.emojiPickerUpsellCategoryRenderer?D.emojiPickerUpsellCategoryRenderer.emojis&&D.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(l){return l.charLimit?l.charLimit:null},
computeDropdownSchedulingPanel_:function(l,D){if(l==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&D)return D},
computeInlineSchedulingPanel_:function(l,D){if(l==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&D)return D},
computeHideAuthorThumbnail_:function(l,D){return l||this.computeUseIdentityChip_(D)},
computeHideIdentityChipRenderer_:function(l,D){return l||!this.computeUseIdentityChip_(D)},
computeUseIdentityChip_:function(l){return!!l&&!!l.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(l){var D,U,n,y;(l==null?0:(D=l.detail)==null?0:(U=D.endpoint)==null?0:U.ypcGetOffersEndpoint)||(l==null?0:(n=l.detail)==null?0:(y=n.endpoint)==null?0:y.ypcOffersEndpoint)?(l.stopPropagation(),_.lu(this,[l.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",l)&&(l.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(l){this.addedAttachment="video";this.selectedVideoId_=l.detail.videoId},
commentboxStateEntityChanged_:function(l){var D=this;(l==null?void 0:l.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(l==null?void 0:l.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){D.focus()})},
onYtServiceRequestSent_:function(l,D){if(D.actions)for(l=_.B(D.actions),D=l.next();!D.done;D=l.next())D.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(l){this.isLoading=!1;var D=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",l),U,n,y,A=l==null?void 0:(U=l.detail)==null?void 0:(n=U.data)==null?void 0:(y=n.actionResult)==null?void 0:y.commentboxStateEntityKey;if(D)this.errorMessage_=D;else if(A){var C;this.dismissData_=l==null?void 0:(C=l.detail)==null?void 0:C.data;this.commentboxStateKey_=A}else{this.clear();var h;this.fire("yt-commentbox-dismiss",l==null?void 0:(h=l.detail)==
null?void 0:h.data)}},
onYtServiceRequestError_:function(l){l.stopPropagation();this.isLoading=!1;var D,U;if(((D=this.data)==null?void 0:D.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((U=this.data)==null?void 0:U.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(D=this.get("detail.error.args",l)||[],D.length>1&&D[1].message){this.handlePostsServiceRequestError_(D[1].message);return}(l=this.get("detail.error.message",l))?this.errorMessage_=this.data.errorMessage||_.$B(l):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(l){if(_.q("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var D=_.B(this.rateLimitErrorCommands),U=D.next();!U.done;U=D.next())if(U=U.value,U.errorLabel===l){_.Ae(U.command,this.hostElement);return}this.errorMessage_=_.$B(l)},
submitIfNotBackstagePost_:function(l){if(!this.isBackstagePost)this.onSubmit_(l)},
onSubmit_:function(l){var D=this,U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S;return _.P(function(d){switch(d.nextAddress){case 1:l.stopPropagation();if(!D.serviceEndpoint||!D.isValidInput_())return d.return();if(D.shouldShowPostAadcNotice_())return D.showPostAadcNotice_(),d.return();if(D.shouldShowCommentAadcNotice_())return D.showCommentAadcNotice_(),d.return();if(!(D.$$("ytd-backstage-multi-image-select-renderer")&&D.hasImage_&&_.q("enable_multi_image_post_creation"))){d.jumpTo(2);break}U=D.$$("ytd-backstage-multi-image-select-renderer");
return d.yield(U.getAllUploadStatuses(),3);case 3:n=d.yieldResult;if(!n)return d.return();y=_.B(n);for(A=y.next();!A.done;A=y.next())if(C=A.value,C.encryptedBlobId===void 0)return D.isLoading=!1,b=h=void 0,D.errorMessage_=(b=(h=D.imageUploadEndpoint_)==null?void 0:h.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?b:null,d.return();return d.return(D.submitForm_(void 0,void 0,void 0,void 0,U.images,D.taggedVideoId_));case 2:if(!D.hasImagePoll_||!D.$["image-poll-attachment"]){d.jumpTo(4);
break}return d.yield(D.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:u=d.yieldResult;if(!u)return d.return();Q=_.B(u);for(G=Q.next();!G.done;G=Q.next())if(J=G.value,!J.encryptedBlobId)return D.isLoading=!1,L=void 0,D.errorMessage_=(L=D.data.errorMessage)!=null?L:null,d.return();case 4:a=(R=D.$$("ytd-backstage-image-select-renderer"))&&R.uploadPromise(),S=D.getSharedPostId_(),a?a.then(function(){D.submitForm_.apply(D,_.zz(_.EW.apply(0,arguments)))}).catch(function(c){D.isLoading=!1;
D.errorMessage_=_.$B(c.message)}):D.selectedVideoId_?D.submitForm_(void 0,D.selectedVideoId_):D.prefilledAttachment_==="image"?D.submitForm_(D.prefilledImageData_.encryptedBlobId,void 0,void 0,D.prefilledImageData_.sourceExternalVideoId,void 0,D.taggedVideoId_):D.prefilledAttachment_==="video"?D.submitForm_(void 0,D.data.backstageAttachment.videoRenderer.videoId):S?D.submitForm_(void 0,void 0,S):D.taggedVideoId_!==void 0?D.submitForm_(void 0,void 0,void 0,void 0,void 0,D.taggedVideoId_):D.submitForm_(),
_.Kz(d)}})},
openSchedulingPanel:function(l){l&&l.scheduleButton&&l.scheduleButton.buttonRenderer&&(this.scheduleButton_=l.scheduleButton.buttonRenderer);l&&l.dateTimePicker&&this.set("data.schedulingDateTimePicker",l.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(l){l.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(l){l.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(l){l.stopPropagation();l.detail.alertMessage&&(this.alertMessage_=l.detail.alertMessage)},
onImageSelected_:function(l){l.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(l){l.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(l){l.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(l.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(l){l.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(l){var D=this.$["video-link-attachment"];D&&D.onLaunchVideoPicker(l)},
onAttachmentDismiss_:function(l){l.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"&&_.q("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.q("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 l;if(this.addedAttachment==="image-poll"&&((l=this.$["image-poll-attachment"])==null||!l.isValid()))return!1;var D;if(this.addedAttachment==="quiz"&&((D=this.$["quiz-attachment"])==null||!D.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;l=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(l=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")l=!0;return l||!!this.getTextAreaValue().trim()},
submitForm_:function(l,D,U,n,y,A){var C=this.getTextAreaValue().trim(),h={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&C===this.previousText_&&(C=void 0);C!==void 0&&(h.comment_text=C);this.isLoading=!0;A!=void 0&&(h.tagged_video_id=A);l?(h.image_blob_id=l,this.imagePreviewCoordinates_&&(h.image_preview_coordinates=this.imagePreviewCoordinates_)):D?h.attached_video_id=D:U?h.shared_post_id=U:y&&y.length>0&&(h.images_data=y.map(function(b){return{encryptedBlobId:b.encryptedBlobId,
previewCoordinates:b.previewCoordinates}}));
n&&(h.source_video_id=n);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(h.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(h.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(h.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(h.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.q("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(h.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.lu(this,[this.serviceEndpoint,h])},
onIsInputFocusChanged_:function(l,D){l?this.fire("yt-autonav-pause-focus"):D!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(l){var D=this.getEditableTextArea_();[].concat(_.zz(l.dataTransfer.items)).forEach(function(U){U.kind==="string"&&U.type.match("^text/plain")&&U.getAsString(function(n){D.appendChild(document.createTextNode(n))})});
l.preventDefault()},
preventDefault_:function(l){l.preventDefault()},
onSuggestionInsert_:function(l){this.insertTextWithEmojis_(l.detail.range,l.detail.text)},
onEmojiSuggestionClick_:function(l){this.emojiInput.insertSuggestion(l.detail)},
computeSubmitButtonClass_:function(l,D){return!D||l?"":"with-options"},
updateSuggestionOffset_:function(l){if(this.emojiInput&&_.iJ(this.emojiInput).querySelector("#dropdown")){var D=this.getEditableTextArea_().getBoundingClientRect().bottom,U=l.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(D-U)+5;D=this.getEditableTextArea_().getBoundingClientRect().left;l=l.getBoundingClientRect().left-D;_.iJ(this.emojiInput).querySelector("#dropdown").style.marginLeft=l+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(l){if(_.q("enable_post_scheduling")&&this.data&&this.data.purpose){l=l.detail;if(Math.floor(Date.now()/1E3)>=l)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var D=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(D)||D!==l?this.scheduledPublishTimeSec_=l:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=l;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var l=["image-button","image-poll-button","poll-button","quiz-button"];_.q("auto_convert_posts_video_tag")||l.push("video-link-button");return l},
getButtonRenderer:function(l,D){if(l)switch(D){case "video-link-button":var U;return((U=l.videoLinkButton)==null?void 0:U.buttonRenderer)||void 0;case "image-button":var n;return((n=l.imageButton)==null?void 0:n.buttonRenderer)||void 0;case "poll-button":var y;return((y=l.pollButton)==null?void 0:y.buttonRenderer)||void 0;case "image-poll-button":var A;return((A=l.imagePollButton)==null?void 0:A.buttonRenderer)||void 0;case "quiz-button":var C;return((C=l.quizButton)==null?void 0:C.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var l;return(l=this.data)==null||!l.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var l,D;return!((l=this.data)==null||!l.openAadcDialog)&&!((D=this.aadcGuidelinesState_)==null||!D.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.H3("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var l;((l=this.data)==null?0:l.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Vo("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(l){l.clickTrackingParams&&_.he().clickCommand(l);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Vh(this,"yt-close-popup-action")},
onHideIdentityChip:function(l){var D;this.set("data.placeholderText",(D=l.hideIdentityChipAction)==null?void 0:D.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var wp=function(){var l=_.p.apply(this,arguments)||this;l.isOpen=!1;l.modern=_.q("web_modern_buttons");l.roundedContainer=!0;l.dropdownButtonOverride=_.q("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;l.inPopupContainer=!1;l.isCommentboxLoading=!1;var D=["image-button","image-poll-button","poll-button"];_.q("enable_quiz_creation")&&D.push("quiz-button");_.q("auto_convert_posts_video_tag")||D.push("video-link-button");l.attachmentButtonIds=D;l.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 l};
_.Z(wp,_.p);_.W=wp.prototype;_.W.computeButtonOverride=function(){var l;return((l=this.data)==null?0:l.postOptionsMenu)&&_.q("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.W.configureRendererStamper=function(){var l={"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]]"}}}}};_.q("auto_convert_posts_video_tag")||(l["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return l};
_.W.ready=function(){var l=this,D=_.iJ(this.hostElement).querySelector("#placeholder-area"),U=function(n){l.onOpen(n)};
D.addEventListener("tap",U);D.addEventListener("keypress",U)};
_.W.showButtonEduTooltip=function(){var l,D,U,n,y,A,C;if(_.q("enable_quiz_creation")&&((l=this.data)==null?0:(D=l.quizButton)==null?0:(U=D.buttonRenderer)==null?0:(n=U.hint)==null?0:(y=n.hintRenderer)==null?0:(A=y.content)==null?0:(C=A.bubbleHintRenderer)==null?0:C.text)&&(_.dv.getInstance(),l=Kd(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(l==null?void 0:
l.length)>0)){this.ytComponentBehavior.resolveCommand(l[0],{form:{element:this.quizButton}});return}var h;if((h=this.data)==null?0:h.imagePollButtonTooltip)if(_.dv.getInstance(),h=Kd(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(h==null?void 0:h.length)>0){this.ytComponentBehavior.resolveCommand(h[0],{form:{element:this.imagePollButton}});return}var b;_.q("enable_multi_image_post_creation")&&
((b=this.data)==null?0:b.multiImageButtonTooltip)&&(_.dv.getInstance(),b=Kd(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(b==null?void 0:b.length)>0&&this.ytComponentBehavior.resolveCommand(b[0],{form:{element:this.imageButton}}))};
_.W.onCreatePollAction=function(l){_.M(l,Ll1)&&(this.JSC$16017_commentbox.addedAttachment="poll",this.openDialog())};
_.W.onAddVideoLinkAction=function(l){if(_.M(l,vA_))this.JSC$16017_commentbox.onAddVideoLink(l)};
_.W.onShowSchedulingPanelCommand=function(l){(l=_.M(l,NCm))&&this.openSchedulingPanel(l)};
_.W.onCreateImagePollCommand=function(l){_.M(l,N9g)&&(this.JSC$16017_commentbox.openImagePollComponent(),this.openDialog())};
_.W.onCreateQuizCommand=function(l){_.M(l,s4m)&&(this.JSC$16017_commentbox.openQuizComponent(),this.openDialog())};
_.W.openSchedulingPanel=function(l){_.q("enable_post_scheduling")&&(this.openDialog(),this.JSC$16017_commentbox.openSchedulingPanel(l))};
_.W.onCreateCommentAction=function(l){this.get("createCommentAction.contents",l)&&(this.JSC$16017_commentbox.clear(),this.closeDialog())};
_.W.onOpen=function(l){l instanceof KeyboardEvent&&l.type==="keypress"&&l.keyCode!==13&&l.keyCode!==32||(this.data.prepareAccountEndpoint?_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.W.onYtCommentboxDismiss=function(){this.closeDialog()};
_.W.onYtCommentboxLoadingStart=function(l){l.stopPropagation();this.isCommentboxLoading=!0};
_.W.onYtCommentboxLoadingEnd=function(l){l.stopPropagation();this.isCommentboxLoading=!1};
_.W.onYtVideoLinkButtonCancel=function(l){l.stopPropagation();this.onOpen(l)};
_.W.onYtVideoLinkSelected=function(l){l.stopPropagation();this.onOpen(l)};
_.W.onIronSelect=function(l){l.stopPropagation();l.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=l.detail.item.value&&(this.accessRestriction?(this.accessRestriction=l.detail.item.value,this.onOpen(l)):this.accessRestriction=l.detail.item.value)};
_.W.onYtNavigate=function(l){this.get("detail.endpoint.backstageImageUploadEndpoint",l)&&(this.JSC$16017_commentbox.addedAttachment="image",this.JSC$16017_commentbox.submitButtonDisabled=!0,this.onOpen(l))};
_.W.onRequestSent=function(l){for(var D=_.B(l.detail),U=D.next();!U.done;U=D.next())_.M(U.value,DOr)&&(this.JSC$16017_commentbox.addedAttachment="image",this.JSC$16017_commentbox.submitButtonDisabled=!0,this.onOpen(l))};
_.W.openDialog=function(){var l;(l=this.data)!=null&&l.isIneligibleForCommunityPagePostCreation||(this.JSC$16017_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16017_commentbox.focus())};
_.W.onPopupClosed=function(){_.dv.getInstance()};
_.W.computeCreationDisabled=function(l){return!!l};
_.W.computeIsCreationDialog=function(l){return!!l&&l==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.W.computeDisabledPostButton=function(l){if(!l)return null;l.isDisabled=!0;return l};
_.W.computeIsCreationDialogWithHeader=function(l){return!this.inPopupContainer&&!!l&&!!l.authorText&&l.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.W.computeIsHeaderHidden=function(l,D){return!l||D};
_.W.computeDropdownRendererClasses=function(l){return l?["text-secondary-style"]:[]};
_.W.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var l=_.iJ(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;l&&l.reset()};
wp.prototype.onPopupClosed=wp.prototype.onPopupClosed;wp.prototype.onRequestSent=wp.prototype.onRequestSent;wp.prototype.onYtNavigate=wp.prototype.onYtNavigate;wp.prototype.onIronSelect=wp.prototype.onIronSelect;wp.prototype.onYtVideoLinkSelected=wp.prototype.onYtVideoLinkSelected;wp.prototype.onYtVideoLinkButtonCancel=wp.prototype.onYtVideoLinkButtonCancel;wp.prototype.onYtCommentboxLoadingEnd=wp.prototype.onYtCommentboxLoadingEnd;wp.prototype.onYtCommentboxLoadingStart=wp.prototype.onYtCommentboxLoadingStart;
wp.prototype.onYtCommentboxDismiss=wp.prototype.onYtCommentboxDismiss;wp.prototype.showButtonEduTooltip=wp.prototype.showButtonEduTooltip;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],wp.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],wp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],wp.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],wp.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],wp.prototype,"isOpen",void 0);_.E([_.K({computed:"computeButtonOverride(data)"}),_.T("design:type",Object)],wp.prototype,"buttonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],wp.prototype,"modern",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],wp.prototype,"roundedContainer",void 0);_.E([_.K(),_.T("design:type",Object)],wp.prototype,"dropdownButtonOverride",void 0);_.E([_.K({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.T("design:type",Boolean)],wp.prototype,"creationDisabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],wp.prototype,"enableCreationBox",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.T("design:type",Boolean)],wp.prototype,"isCreationDialog",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],wp.prototype,"inPopupContainer",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.T("design:type",Boolean)],wp.prototype,"isCreationDialogWithHeader",void 0);_.E([_.K(),_.T("design:type",Object)],wp.prototype,"accessRestriction",void 0);
_.E([_.K({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.T("design:type",Array)],wp.prototype,"dropdownRendererClasses",void 0);_.E([_.K(),_.T("design:type",Object)],wp.prototype,"isCommentboxLoading",void 0);_.E([_.K(),_.T("design:type",Array)],wp.prototype,"attachmentButtonIds",void 0);_.E([_.gP("#image-button"),_.T("design:type",HTMLElement)],wp.prototype,"imageButton",void 0);
_.E([_.gP("#image-poll-button"),_.T("design:type",HTMLElement)],wp.prototype,"imagePollButton",void 0);_.E([_.gP("#quiz-button"),_.T("design:type",HTMLElement)],wp.prototype,"quizButton",void 0);_.E([_.gP("#commentbox"),_.T("design:type",Object)],wp.prototype,"JSC$16017_commentbox",void 0);_.E([_.Pg("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wp.prototype,"showButtonEduTooltip",null);
_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],wp.prototype,"onYtCommentboxDismiss",null);_.E([_.hj("yt-commentbox-loading-start"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],wp.prototype,"onYtCommentboxLoadingStart",null);
_.E([_.hj("yt-commentbox-loading-end"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],wp.prototype,"onYtCommentboxLoadingEnd",null);_.E([_.hj("yt-video-link-button-cancel"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],wp.prototype,"onYtVideoLinkButtonCancel",null);
_.E([_.hj("yt-video-link-selected"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],wp.prototype,"onYtVideoLinkSelected",null);_.E([_.hj("iron-select"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],wp.prototype,"onIronSelect",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],wp.prototype,"onYtNavigate",null);
_.E([_.hj("yt-service-request-sent-button-renderer"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],wp.prototype,"onRequestSent",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wp.prototype,"onPopupClosed",null);_.E([_.x({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],wp);
_.r(wp,"ytd-backstage-post-dialog-renderer",function(){if(sFz!==void 0)return sFz;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return sFz=l},{mode:1});var eby;var meh;var rp=function(){return _.p.apply(this,arguments)||this};
_.Z(rp,_.p);_.W=rp.prototype;_.W.computeHeartButtonStyle=function(l){return(l==null?0:l.styleType)?l.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.W.onYtButtonTap=function(){if(this.data.isEnabled){var l=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(l=this.getEndpoint(l))&&_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}})}else(l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(l)};
_.W.toggle=function(l){this.set("data.isHearted",l!==void 0?l:!this.data.isHearted)};
_.W.getEndpoint=function(l){var D,U=(D=this.data)==null?void 0:D.heartEndpoint,n;D=(n=this.data)==null?void 0:n.unheartEndpoint;if(U&&D)return l?D:U};
_.W.computeButtonAccessibility=function(l,D){var U,n,y=l==null?void 0:(U=l.heartedAccessibility)==null?void 0:(n=U.accessibilityData)==null?void 0:n.label,A,C;l=l==null?void 0:(A=l.unheartedAccessibility)==null?void 0:(C=A.accessibilityData)==null?void 0:C.label;return D?y:l};
_.QP.Object.defineProperties(rp.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 l;return _.q("kevlar_system_icons")&&!((l=this.data)==null||!l.isHearted)}}});
rp.prototype.onYtButtonTap=rp.prototype.onYtButtonTap;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],rp.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],rp.prototype,"data",void 0);_.E([_.t("data.isHearted"),_.T("design:type",Object),_.T("design:paramtypes",[])],rp.prototype,"heartTooltip",null);
_.E([_.t("data.isHearted"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],rp.prototype,"iconFilled",null);_.E([_.K({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.T("design:type",String)],rp.prototype,"buttonAccessibility",void 0);_.E([_.K({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.T("design:type",String)],rp.prototype,"heartButtonStyle",void 0);
_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rp.prototype,"onYtButtonTap",null);_.E([_.x({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],rp);
_.r(rp,"ytd-creator-heart-renderer",function(){if(meh!==void 0)return meh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return meh=l},{mode:1});var zi=function(){var l=_.p.apply(this,arguments)||this;l.hasCreatorReply=!1;l.buttonOverrides={size:"S",iconPosition:"icon-only"};l.replyButtonOverrides={size:"S",type:"text"};l.forceIconButton=!_.q("web_modern_buttons");l.modern=_.q("web_modern_buttons");l.buttonTooltipPosition="bottom";l.systemIcons=_.q("kevlar_system_icons");l.replyDialog=null;return l};
_.Z(zi,_.p);_.W=zi.prototype;
_.W.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]]"}}}}}};
_.W.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.W.dataChange=function(){this.replyDialog&&_.iJ(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var l,D,U;this.isLiked=this.systemIcons&&!!((l=this.data)==null?0:(D=l.likeButton)==null?0:(U=D.toggleButtonRenderer)==null?0:U.isToggled)};
_.W.computeShowVoteCountBeginning=function(l,D){return l===void 0||D===void 0?!0:l.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!D&&this.ytRendererBehavior.getSimpleString(D)!=="0"};
_.W.computeShowVoteCountEnd=function(l,D){return l===void 0||D===void 0?!0:l.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!D&&this.ytRendererBehavior.getSimpleString(D)!=="0"};
_.W.computeShowCommentCount=function(l,D){return l===void 0||D===void 0?!0:l.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!D&&this.ytRendererBehavior.getSimpleString(D)!=="0"};
_.W.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.W.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.W.showReplyDialog=function(l){l&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.iJ(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=l,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.W.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.W.onRequestSent=function(l){l=_.B(l.detail);for(var D=l.next();!D.done;D=l.next())(D=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",D.value))&&this.showReplyDialog(D)};
_.W.onYtNavigate=function(l){var D,U;(l=(D=_.M(l.detail.endpoint,_.nky))==null?void 0:(U=D.dialog)==null?void 0:U.commentReplyDialogRenderer)&&this.showReplyDialog(l)};
_.W.onYtServiceRequestSent=function(l,D){l.stopPropagation();if(D.actions)for(l=0;l<D.actions.length;l++){var U=_.M(D.actions[l],mfk);U&&this.handleUpdateCommentVoteAction(U)}};
_.W.handleUpdateCommentVoteAction=function(l){this.voteCount=l.voteCount||_.$B("0");l.voteStatus==="LIKE"?this.JSC$16029_ytdDislikeToggleButtonRenderer.toggle(!1):l.voteStatus==="DISLIKE"?this.JSC$16029_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16029_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16029_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.W.computeReplyButtonHidden=function(l){return l};
_.W.computeReplyButtonBeginning=function(l){return(l==null?0:l.replyButton)&&l.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?l.replyButton:void 0};
_.W.computeReplyButtonEnd=function(l){return(l==null?0:l.replyButton)&&l.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?l.replyButton:void 0};
_.W.computeActionButtonStyle=function(l){return(l==null?0:l.style)?l.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.W.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.W.onYtToggleButton=function(l){var D,U;this.isLiked=this.systemIcons&&!!((D=l.detail)==null?0:(U=D.actions)==null?0:U.like)};
zi.prototype.onYtToggleButton=zi.prototype.onYtToggleButton;zi.prototype.onButtonTooltipPositionChanged=zi.prototype.onButtonTooltipPositionChanged;zi.prototype.onYtServiceRequestSent=zi.prototype.onYtServiceRequestSent;zi.prototype.onYtNavigate=zi.prototype.onYtNavigate;zi.prototype.onRequestSent=zi.prototype.onRequestSent;zi.prototype.onYtCommentboxDismiss=zi.prototype.onYtCommentboxDismiss;zi.prototype.dataChange=zi.prototype.dataChange;
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],zi.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],zi.prototype,"voteCount",void 0);_.E([_.K(),_.T("design:type",Object)],zi.prototype,"commentCount",void 0);_.E([_.K(),_.T("design:type",Object)],zi.prototype,"replyThumbnail",void 0);
_.E([_.K(),_.T("design:type",Object)],zi.prototype,"hasCreatorReply",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],zi.prototype,"enableCreationBox",void 0);_.E([_.K({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.T("design:type",String)],zi.prototype,"actionButtonsStyle",void 0);_.E([_.K({computed:"computeReplyButtonBeginning(data)"}),_.T("design:type",Object)],zi.prototype,"replyButtonBeginning",void 0);
_.E([_.K({computed:"computeReplyButtonEnd(data)"}),_.T("design:type",Object)],zi.prototype,"replyButtonEnd",void 0);_.E([_.K(),_.T("design:type",Object)],zi.prototype,"buttonOverrides",void 0);_.E([_.K(),_.T("design:type",Object)],zi.prototype,"replyButtonOverrides",void 0);_.E([_.K(),_.T("design:type",Object)],zi.prototype,"forceIconButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],zi.prototype,"useCommentIcon",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],zi.prototype,"modern",void 0);_.E([_.K(),_.T("design:type",Object)],zi.prototype,"buttonTooltipPosition",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],zi.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],zi.prototype,"isLiked",void 0);_.E([_.gP("ytd-button-renderer"),_.T("design:type",Object)],zi.prototype,"ytdReplyButtonRenderer",void 0);
_.E([_.gP("#like-button"),_.T("design:type",Object)],zi.prototype,"JSC$16029_ytdLikeToggleButtonRenderer",void 0);_.E([_.gP("#dislike-button"),_.T("design:type",Object)],zi.prototype,"JSC$16029_ytdDislikeToggleButtonRenderer",void 0);_.E([_.gP("#reply-dialog"),_.T("design:type",HTMLElement)],zi.prototype,"replyDialogElement",void 0);_.E([_.gP("#reply-button"),_.T("design:type",HTMLElement)],zi.prototype,"replyButtonElement",void 0);
_.E([_.gP("#reply-button-end"),_.T("design:type",HTMLElement)],zi.prototype,"replyButtonEndElement",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zi.prototype,"dataChange",null);_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],zi.prototype,"onYtCommentboxDismiss",null);
_.E([_.hj("yt-service-request-sent-button-renderer"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],zi.prototype,"onRequestSent",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],zi.prototype,"onYtNavigate",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],zi.prototype,"onYtServiceRequestSent",null);_.E([_.Pg("buttonTooltipPosition"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zi.prototype,"onButtonTooltipPositionChanged",null);
_.E([_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],zi.prototype,"onYtToggleButton",null);_.E([_.x({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],zi);
_.r(zi,"ytd-comment-action-buttons-renderer",function(){if(eby!==void 0)return eby;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return eby=l},{mode:1});var anr;var fx=function(){return _.p.apply(this,arguments)||this};
_.Z(fx,_.p);fx.prototype.focus=function(){_.iJ(this.hostElement).querySelector("#commentbox").focus()};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fx.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],fx.prototype,"zeroStepChannelCreationRenderer",void 0);_.E([_.x({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],fx);
_.r(fx,"ytd-comment-dialog-renderer",function(){if(anr!==void 0)return anr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return anr=l},{mode:1});var t6g;var $n=function(){var l=_.p.apply(this,arguments)||this;l.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.q("enable_web_delhi_icons")};l.replyButtonOverrides={size:"S",type:"text"};return l};
_.Z($n,_.p);_.W=$n.prototype;_.W.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.W.detached=function(){this.replyBox&&this.replyBox.remove()};
_.W.showReplyDialog=function(l){if(l){var D=this.replyBox;D||(D=document.createElement("ytd-comment-reply-dialog-renderer"),D.id="replybox",_.iJ(this.replyDialogDiv).appendChild(D));D.data=l;this.replyDialogDiv.hidden=!1;D.openDialog()}};
_.W.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.W.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var l,D=_.M((l=this.toolbarSurface)==null?void 0:l.subscribersOnlyDisclaimerSnackbarCommand,_.aO);D&&_.O9(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:D})}};
_.W.onYtServiceRequestSent=function(l,D){l.stopPropagation();if(D.actions)for(var U=0;U<D.actions.length;U++){var n=_.M(D.actions[U],mfk);n?this.handleUpdateCommentVoteAction(n):l.target===this.heartButton&&this.toggleHeartState()}};
_.W.handleUpdateCommentVoteAction=function(l){var D;(D=this.toolbarState)!=null&&D.key&&this.ytdReduxBehavior.dispatch(_.et("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:l.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":l.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.W.toggleHeartState=function(){var l;(l=this.toolbarState)!=null&&l.key&&this.ytdReduxBehavior.dispatch(_.et("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.QP.Object.defineProperties($n.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return(((l=this.toolbarState)==null?void 0:l.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(D=this.toolbarData)==null?void 0:D.likeCountLiked:(U=this.toolbarData)==null?void 0:U.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.toolbarSurface)==null?void 0:l.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.toolbarSurface)==null?void 0:l.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.toolbarSurface)==null?void 0:l.prepareAccountCommand)!==void 0&&!_.q("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var l,D=_.M((l=this.toolbarSurface)==null?void 0:l.prepareAccountCommand,_.aO),U,n,y,A,C,h,b,u,Q;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((U=this.toolbarSharedData)==null||!U.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((n=this.toolbarState)==null?void 0:n.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:D!=null?D:_.M((y=this.toolbarSurface)==null?void 0:y.likeCommand,_.aO),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:D!=null?D:_.M((A=this.toolbarSurface)==null?void 0:A.unlikeCommand,_.aO),defaultCommand:this.isVisiblyDisabled?_.M((C=this.toolbarSurface)==null?void 0:C.commentDisabledActionCommand,_.aO):void 0,defaultTooltip:(h=this.toolbarData)==null?void 0:h.likeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:b.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(u=this.toolbarData)==null?void 0:u.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(Q=this.toolbarSharedData)==null?void 0:Q.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var l,D=_.M((l=this.toolbarSurface)==null?void 0:l.prepareAccountCommand,_.aO),U,n,y,A,C,h,b,u,Q,G;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((U=this.toolbarSharedData)==null||!U.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((n=this.toolbarState)==null?void 0:n.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:D!=null?D:_.M((y=this.toolbarSurface)==null?void 0:y.dislikeCommand,_.aO),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:D!=null?D:_.M((A=this.toolbarSurface)==null?void 0:A.undislikeCommand,_.aO),defaultCommand:this.isVisiblyDisabled?_.M((C=this.toolbarSurface)==null?void 0:C.commentDisabledActionCommand,_.aO):void 0,defaultTooltip:(h=this.toolbarData)==null?void 0:h.dislikeInactiveTooltip,toggledTooltip:(b=this.toolbarData)==null?void 0:
b.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(u=this.toolbarSharedData)==null?void 0:u.dislikeReplyButtonA11y:(Q=this.toolbarSharedData)==null?void 0:Q.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(G=this.toolbarSharedData)==null?void 0:G.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var l,D,U;if(((l=this.toolbarState)==null?void 0:l.heartState)!==void 0&&((D=this.toolbarState)==null?void 0:D.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((U=this.toolbarState)==null?void 0:U.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var n,y,A,C,h,b,u,Q,G,J,L,R,a,S;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(n=this.toolbarData)==null?void 0:n.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((y=this.toolbarState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((A=this.toolbarState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((C=this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((h=this.toolbarState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.M((b=this.toolbarSurface)==null?void 0:b.heartCommand,
_.aO),unheartEndpoint:this.isVisiblyDisabled?void 0:_.M((u=this.toolbarSurface)==null?void 0:u.unheartCommand,_.aO),disabledEndpoint:this.isVisiblyDisabled?_.M((Q=this.toolbarSurface)==null?void 0:Q.commentDisabledActionCommand,_.aO):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(G=this.toolbarData)==null?void 0:G.heartActiveTooltip,unheartedTooltip:(J=this.toolbarData)==null?void 0:J.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((L=
this.toolbarState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(R=this.toolbarSharedData)==null?void 0:R.unheartButtonA11y:(a=this.toolbarSharedData)==null?void 0:a.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(S=this.toolbarSharedData)==null?void 0:S.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.toolbarSurface)==null||!l.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.commentStrings)!=null&&l.replyButtonText){var D,U,n,y;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(D=this.commentStrings)==null?void 0:D.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.M((U=this.toolbarSurface)==null?void 0:U.replyCommand,_.aO),command:this.isVisiblyDisabled?
_.M((n=this.toolbarSurface)==null?void 0:n.commentDisabledActionCommand,_.aO):this.isSubsOnlyCommentsIneligibleUser?_.M((y=this.toolbarSurface)==null?void 0:y.subscribersOnlySnackbarCommand,_.aO):void 0}}}}});
$n.prototype.onYtServiceRequestSent=$n.prototype.onYtServiceRequestSent;$n.prototype.hideReplyDialogDiv=$n.prototype.hideReplyDialogDiv;_.E([_.K(),_.T("design:type",Object)],$n.prototype,"commentStrings",void 0);_.E([_.K(),_.T("design:type",Boolean)],$n.prototype,"isReply",void 0);_.E([_.K(),_.T("design:type",Object)],$n.prototype,"toolbarData",void 0);_.E([_.K(),_.T("design:type",Object)],$n.prototype,"toolbarSharedData",void 0);
_.E([_.K(),_.T("design:type",String)],$n.prototype,"toolbarStateKey",void 0);_.E([_.K(),_.T("design:type",String)],$n.prototype,"toolbarSurfaceKey",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],$n.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],$n.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.LF),_.T("design:type",Object)],$n.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.gP("#reply-dialog"),_.T("design:type",HTMLElement)],$n.prototype,"replyDialogDiv",void 0);_.E([_.gP("#replybox"),_.T("design:type",Object)],$n.prototype,"replyBox",void 0);_.E([_.gP("ytd-creator-heart-renderer"),_.T("design:type",Object)],$n.prototype,"heartButton",void 0);_.E([_.K({selector:function(l,D){return _.yT(l.entities,"engagementToolbarStateEntityPayload",D)},
selectorArgs:["toolbarStateKey"]}),_.T("design:type",Object)],$n.prototype,"toolbarState",void 0);_.E([_.K({selector:n6$,selectorArgs:["toolbarSurfaceKey"]}),_.T("design:type",Object)],$n.prototype,"toolbarSurface",void 0);_.E([_.K(),_.T("design:type",Object)],$n.prototype,"buttonOverrides",void 0);_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$n.prototype,"hideReplyDialogDiv",null);
_.E([_.t("toolbarData","toolbarState"),_.T("design:type",String),_.T("design:paramtypes",[])],$n.prototype,"likeCount",null);_.E([_.t("likeCount"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],$n.prototype,"showLikeCount",null);_.E([_.t("toolbarSurface"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],$n.prototype,"isVisiblyDisabled",null);_.E([_.t("toolbarSurface"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],$n.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.E([_.t("toolbarSurface"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],$n.prototype,"isSubsOnlyCommentsEligibleUser",null);_.E([_.t("toolbarSurface"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],$n.prototype,"hasPrepareAccountCommand",null);_.E([_.t("toolbarData","toolbarState","toolbarSurface"),_.T("design:type",Object),_.T("design:paramtypes",[])],$n.prototype,"likeToggleButtonRenderer",null);
_.E([_.t("isReply","toolbarData","toolbarState","toolbarSurface"),_.T("design:type",Object),_.T("design:paramtypes",[])],$n.prototype,"dislikeToggleButtonRenderer",null);_.E([_.t("toolbarData","toolbarState","toolbarSurface"),_.T("design:type",Object),_.T("design:paramtypes",[])],$n.prototype,"creatorHeartSupportedRenderer",null);_.E([_.t("toolbarSurface"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],$n.prototype,"hasReplyCommand",null);
_.E([_.t("toolbarSurface","commentStrings","isVisiblyDisabled"),_.T("design:type",Object),_.T("design:paramtypes",[])],$n.prototype,"replyButtonRenderer",null);_.E([_.K(),_.T("design:type",Object)],$n.prototype,"replyButtonOverrides",void 0);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],$n.prototype,"onYtServiceRequestSent",null);_.E([_.x({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],$n);
_.r($n,"ytd-comment-engagement-bar",function(){if(t6g!==void 0)return t6g;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return t6g=l},{mode:1});var Xe_;var N4=function(){return _.p.apply(this,arguments)||this};
_.Z(N4,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],N4.prototype,"data",void 0);_.E([_.x({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],N4);
_.r(N4,"ytd-comment-inline-thumbnail-renderer",function(){if(Xe_!==void 0)return Xe_;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Xe_=l},{mode:1});var Szz;var sM=function(){return _.p.apply(this,arguments)||this};
_.Z(sM,_.p);sM.prototype.onMessageTap=function(){if(this.onTapCommand){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);l&&this.ytdOpenPopupBehavior.openPopup(l)}};
_.QP.Object.defineProperties(sM.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return(l=this.data)==null?void 0:(D=l.button)==null?void 0:(U=D.buttonRenderer)==null?void 0:U.command}}});
_.E([_.m(_.LF),_.T("design:type",Object)],sM.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],sM.prototype,"data",void 0);_.E([_.t("data.button.buttonRenderer.command"),_.T("design:type",Object),_.T("design:paramtypes",[])],sM.prototype,"onTapCommand",null);_.E([_.x({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],sM);
_.r(sM,"ytd-comment-pause-composer-renderer",function(){if(Szz!==void 0)return Szz;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Szz=l},{mode:1});var kV8;var deH;var EM=function(){var l=_.p.apply(this,arguments)||this;l.isOpen=!1;return l};
_.Z(EM,_.p);_.W=EM.prototype;_.W.dataChanged=function(){this.isOpen=!1};
_.W.onTap=function(){this.data&&(this.data.navigationEndpoint?_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.W.focus=function(){this.JSC$16058_commentbox.focus()};
_.W.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.W.openDialog=function(){this.isOpen=!0;this.JSC$16058_commentbox.focus();this.JSC$16058_commentbox.maybeHeightChanged()};
EM.prototype.onYtCommentboxDismiss=EM.prototype.onYtCommentboxDismiss;EM.prototype.dataChanged=EM.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],EM.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],EM.prototype,"isOpen",void 0);_.E([_.gP("#commentbox"),_.T("design:type",Object)],EM.prototype,"JSC$16058_commentbox",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],EM.prototype,"dataChanged",null);_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],EM.prototype,"onYtCommentboxDismiss",null);_.E([_.x({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],EM);
_.r(EM,"ytd-comment-reply-dialog-renderer",function(){if(deH!==void 0)return deH;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return deH=l},{mode:1});var KM7;var Ti=function(){return _.p.apply(this,arguments)||this};
_.Z(Ti,_.p);_.QP.Object.defineProperties(Ti.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(l=this.data)==null?void 0:(D=l.icon)==null?void 0:D.iconType;return U?"yt-icons:"+U.toLowerCase():null}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ti.prototype,"data",void 0);_.E([_.K(),_.t("data.icon"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ti.prototype,"icon",null);_.E([_.x({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Ti);
_.r(Ti,"ytd-pinned-comment-badge-renderer",function(){if(KM7!==void 0)return KM7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return KM7=l},{mode:1});var cI_;var peh={},xey={input:!0,meta:!0,br:!0,link:!0,img:!0},IW=null;peh.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(){IW==null&&(IW=document.createElement("tp-yt-paper-tooltip"),IW.offset=8,IW.fitToVisibleBounds=!0)},
onMouseOver_:function(l){if(l=_.sj(l.target,function(y){return y==this||y.getAttribute&&y.getAttribute("shared-tooltip-text")}.bind(this),!0)){var D=l.getAttribute("shared-tooltip-text");
if(D){var U=this,n=null;l!=this&&(l.tagName.toLowerCase()in xey?U=l.parentElement:U=l,l.id&&(n=l.id));this.polymerController.createTooltipIfRequired_();if(IW.parentElement!=U||IW.for!=n)(0,_.Aj)(IW).textContent=D,_.iJ(U).appendChild(IW),IW.for=n,IW.animationDelay=this.polymerController.sharedTooltipAnimationDelay,IW.position=this.polymerController.sharedTooltipPosition}}}};var HQ=function(){return _.p.apply(this,arguments)||this};
_.Z(HQ,_.p);HQ.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]]"}}}}}};
HQ.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var l;((l=this.data)==null?0:l.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var D;((D=this.data)==null?0:D.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
HQ.prototype.colorChanged=function(){var l,D,U,n=(l=this.data)==null?void 0:(D=l.color)==null?void 0:(U=D.basicColorPaletteData)==null?void 0:U.foregroundBodyColor;n&&(this.rgbBadgeColor=_.an(n));_.iJ(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
HQ.prototype.tooltipChanged=function(){var l;((l=this.data)==null?0:l.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
HQ.prototype.tooltipChanged=HQ.prototype.tooltipChanged;HQ.prototype.colorChanged=HQ.prototype.colorChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(peh.YtSharedTooltipBehavior),_.T("design:type",Object)],HQ.prototype,"ytSharedTooltipBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],HQ.prototype,"data",void 0);
_.E([_.K({value:"#4285F4"}),_.T("design:type",String)],HQ.prototype,"rgbBadgeColor",void 0);_.E([_.Pg("data.color"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HQ.prototype,"colorChanged",null);_.E([_.Pg("data.tooltip"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HQ.prototype,"tooltipChanged",null);_.E([_.x({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],HQ);
_.r(HQ,"ytd-sponsor-comment-badge-renderer",function(){if(cI_!==void 0)return cI_;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return cI_=l},{mode:1});var jM8;var FM7;var Yn=function(){return _.p.apply(this,arguments)||this};
_.Z(Yn,_.p);Yn.prototype.computeState=function(l){switch(l==null?void 0:l.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"}};
Yn.prototype.updateStateIdentifier=function(l){if(this.viewModel.triStateKey){var D=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.et("triStateButtonStateEntityPayload",D,{key:D,stateIdentifier:l}))}};
Yn.prototype.onClick=function(){var l=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(){l.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){l.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.QP.Object.defineProperties(Yn.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 l;return((l=this.data)==null?void 0:l.buttonText)||""}}});
_.E([_.K(),_.T("design:type",Object)],Yn.prototype,"viewModel",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Yn.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Yn.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.E([_.K({selector:yN3,selectorArgs:["viewModel.triStateKey"]}),_.T("design:type",Object)],Yn.prototype,"triStateButtonStateEntity",void 0);
_.E([_.K({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.T("design:type",String)],Yn.prototype,"state",void 0);_.E([_.t("viewModel","state"),_.T("design:type",Object),_.T("design:paramtypes",[])],Yn.prototype,"data",null);_.E([_.t("data"),_.T("design:type",String),_.T("design:paramtypes",[])],Yn.prototype,"buttonText",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Yn);
_.r(Yn,"ytd-tri-state-button-view-model",function(){if(FM7!==void 0)return FM7;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return FM7=l},{mode:1});var oQ1;var weh;var OM=function(){var l=_.p.apply(this,arguments)||this;l.defaultIconToFilled=!_.q("kevlar_fill_comment_chip_icon_killswitch");return l};
_.Z(OM,_.p);OM.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
OM.prototype.dataChanged=function(){if(this.data){var l,D;((l=this.data.chipColorPalette)==null?0:l.backgroundColor)&&((D=this.data.chipColorPalette)==null?0:D.foregroundTitleColor)&&_.Wg(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.tu(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.tu(this.data.chipColorPalette.foregroundTitleColor)});var U;((U=this.data)==null?0:U.command)?(_.Wg(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Wg(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}};
OM.prototype.onTap=function(){var l;if(this.data&&(l=this.data)!=null&&l.command){var D;this.ytComponentBehavior.resolveCommand((D=this.data)==null?void 0:D.command)}};
OM.prototype.getIconSize=function(){return _.q("kevlar_fill_comment_chip_icon_killswitch")?24:12};
OM.prototype.onTap=OM.prototype.onTap;OM.prototype.dataChanged=OM.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],OM.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.pi),_.T("design:type",Object)],OM.prototype,"ironA11yKeysBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],OM.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],OM.prototype,"basePriceText",void 0);_.E([_.K(),_.T("design:type",Object)],OM.prototype,"chipIcon",void 0);_.E([_.K(),_.T("design:type",Object)],OM.prototype,"defaultIconToFilled",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],OM.prototype,"dataChanged",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],OM.prototype,"onTap",null);
_.E([_.S0({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],OM);
_.r(OM,"yt-pdg-comment-chip-renderer",function(){if(weh===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;oQ1===void 0&&(oQ1=document.createElement("template"));var n=oQ1;U.call(D,n.content.cloneNode(!0),l.content.firstChild);weh=l}l=weh;return l},{mode:2});var VZ=function(){var l=_.p.apply(this,arguments)||this;l.useSmallAvatars=_.q("small_avatars_for_comments");l.commentThreadingEnabled=_.q("web_delhi_comment_threads");l.webWatchCompactComments=_.q("web_watch_compact_comments");l.editDialog=null;return l};
_.Z(VZ,_.p);_.W=VZ.prototype;_.W.onShow=function(){_.tJ("cmv",void 0,"wn_comments")};
_.W.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"}}}};
_.W.detached=function(){this.editDialog=null;this.expander.reset()};
_.W.updateBackgroundColor=function(){if(this.backgroundColor){var l={"--ytd-comment-paid-background-color":_.tu(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Wg(this.hostElement,l)}else _.Wg(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.W.resetExpander=function(){var l;(l=this.expander)==null||l.reset()};
_.W.openEditDialog=function(l){l.dialog&&(this.editDialog=l.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.W.onYtNavigate=function(l){var D=l.detail.endpoint;if(D=_.M(D,_.y9m)||_.M(D,_.A9k))l.stopPropagation(),this.openEditDialog(D)};
_.W.onYtCommentboxDismiss=function(){this.editDialog=null;_.Wg(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.W.onAuthorThumbnailClicked=function(){_.q("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.W.onYtCommentboxResize=function(l){var D;(l==null?0:(D=l.detail)==null?0:D.height)&&_.Wg(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":l.detail.height+"px"})};
_.QP.Object.defineProperties(VZ.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 l,D=(l=this.commentEntity)==null?void 0:l.author;return D&&(D.isCreator||D.isVerified||D.isArtist)?{renderer:{authorEndpoint:D.channelPageEndpoint?_.M(D.channelPageEndpoint,_.aO):_.M(D.channelCommand,_.aO),authorText:{runs:[{text:D.displayName}]},color:D.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:D.isArtist?{iconType:"AUDIO_BADGE"}:
D.isVerified?{iconType:D.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:D.isArtist||D.isVerified?D.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var l,D=(l=this.commentEntity)==null?void 0:l.author;return D!=null&&D.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:D.sponsorBadgeUrl}]},tooltip:D.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var l;return _.M((l=this.commentSurfaceEntity)==null?void 0:l.pdgCommentChip,_.pOr)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var l;return this.voiceReplyContainerViewModel&&((l=this.voiceReplyContainerViewModel)==null?void 0:l.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var l;return _.M((l=this.commentSurfaceEntity)==null?void 0:l.voiceReplyContainerViewModel,pz8)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var l;return this.voiceReplyContainerViewModel&&(l=this.voiceReplyContainerViewModel)!=null&&l.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=(l=this.commentSurfaceEntity)==null?void 0:l.commentBackgroundColor)!=null?D:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.q("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var l,D;return(((l=this.commentEntity)==null?void 0:(D=l.properties)==null?void 0:D.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var l,D;if(_.q("enable_profile_cards_on_comments")&&((l=this.commentEntity)==null?0:(D=l.author)==null?0:D.profileCardEndpoint)&&this.viewModel.allowProfileCard){var U,n;return _.M((U=this.commentEntity)==null?void 0:(n=U.author)==null?void 0:n.profileCardEndpoint,_.aO)}var y,A;return _.M((y=this.commentEntity)==null?void 0:(A=y.avatar)==null?void 0:A.endpoint,_.aO)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var l,D;if(_.q("enable_profile_cards_on_comments")&&((l=this.commentEntity)==null?0:(D=l.author)==null?0:D.channelPageEndpoint)){var U,n;return _.M((U=this.commentEntity)==null?void 0:(n=U.author)==null?void 0:n.channelPageEndpoint,_.aO)}var y,A;return _.M((y=this.commentEntity)==null?void 0:(A=y.avatar)==null?void 0:A.endpoint,_.aO)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n,y=(l=this.commentEntity)==null?void 0:(D=l.avatar)==null?void 0:(U=D.image)==null?void 0:(n=U.sources)==null?void 0:n[0];return y?{thumbnails:[{url:y.url,width:y.width,height:y.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.commentEntity)==null?0:(D=l.author)==null?0:D.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.commentEntity)==null?void 0:(D=l.author)==null?void 0:D.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.commentEntity)==null?void 0:(D=l.properties)==null?void 0:D.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var l;return _.M((l=this.commentSurfaceEntity)==null?void 0:l.publishedTimeCommand,_.aO)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var l,D;if(((l=this.commentEntity)==null?0:l.translatedContent)&&((D=this.translateButtonState)==null?void 0:D.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var U;if((U=this.voiceReplyContainerViewModel)==null?0:U.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var n,y;return((n=this.commentEntity)==null?void 0:(y=n.properties)==null?void 0:y.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.commentSharedEntity)==null?void 0:(D=l.strings)==null?void 0:D.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.commentSharedEntity)==null?void 0:(D=l.strings)==null?void 0:D.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.commentEntity)==null||!l.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var l,D,U=(D=_.M((l=this.viewModel)==null?void 0:l.translateButton,cVy))!=null?D:{},n,y,A,C,h,b,u,Q,G,J,L;return Object.assign({},U,{untoggledStateData:Object.assign({},U.untoggledStateData,{buttonText:(n=this.commentEntity)==null?void 0:(y=n.translateData)==null?void 0:y.text}),togglingStateData:Object.assign({},U.togglingStateData,{buttonText:(A=this.commentSharedEntity)==null?
void 0:(C=A.strings)==null?void 0:C.translatingText}),toggledStateData:Object.assign({},U.toggledStateData,{buttonText:(h=this.commentSharedEntity)==null?void 0:(b=h.strings)==null?void 0:b.seeOriginalText}),transitionCommand:((u=this.commentEntity)==null?0:u.translatedContent)?void 0:_.M((Q=this.commentEntity)==null?void 0:(G=Q.translateData)==null?void 0:G.translateComment,_.aO),triStateKey:(J=this.commentEntity)==null?void 0:(L=J.properties)==null?void 0:L.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((D=_.M(_.M((l=this.toolbarSurface)==null?void 0:l.menuCommand,_.aO),WPg))==null?void 0:(U=D.menu)==null?void 0:U.menuRenderer)||null}}});
VZ.prototype.onYtCommentboxResize=VZ.prototype.onYtCommentboxResize;VZ.prototype.onYtCommentboxDismiss=VZ.prototype.onYtCommentboxDismiss;VZ.prototype.onYtNavigate=VZ.prototype.onYtNavigate;VZ.prototype.resetExpander=VZ.prototype.resetExpander;VZ.prototype.updateBackgroundColor=VZ.prototype.updateBackgroundColor;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],VZ.prototype,"ytdReduxBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],VZ.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.gP("#author-thumbnail > button"),_.T("design:type",HTMLElement)],VZ.prototype,"authorThumbnailAnchor",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("viewModel"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],VZ.prototype,"linked",null);
_.E([_.t("viewModel","linked"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"linkedCommentBadge",null);_.E([_.K({reflectToAttribute:!0}),_.t("viewModel"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],VZ.prototype,"pinned",null);_.E([_.t("viewModel","pinned"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"pinnedCommentBadge",null);
_.E([_.t("commentEntity","commentSharedEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"authorCommentBadge",null);_.E([_.K({reflectToAttribute:!0}),_.t("authorCommentBadge"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"hasAuthorBadge",null);_.E([_.t("commentEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"sponsorCommentBadge",null);
_.E([_.K({reflectToAttribute:!0}),_.t("sponsorCommentBadge"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"hasSponsorBadge",null);_.E([_.t("commentSurfaceEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"pdgCommentChipRenderer",null);_.E([_.K({reflectToAttribute:!0}),_.t("voiceReplyContainerViewModel"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"hasVoiceReply",null);
_.E([_.t("commentSurfaceEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"voiceReplyContainerViewModel",null);_.E([_.t("voiceReplyContainerViewModel"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"voiceReplyUnavailableText",null);_.E([_.K(),_.T("design:type",Object)],VZ.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"viewModel",null);
_.E([_.K({selector:function(l,D){return _.yT(l.entities,"commentSharedEntityPayload",D)},
selectorArgs:["viewModel.sharedKey"]}),_.T("design:type",Object)],VZ.prototype,"commentSharedEntity",void 0);_.E([_.K({selector:U8o,selectorArgs:["viewModel.commentKey"]}),_.T("design:type",Object)],VZ.prototype,"commentEntity",void 0);_.E([_.K({selector:function(l,D){return _.yT(l.entities,"commentSurfaceEntityPayload",D)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.T("design:type",Object)],VZ.prototype,"commentSurfaceEntity",void 0);_.E([_.K({selector:n6$,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.T("design:type",Object)],VZ.prototype,"toolbarSurface",void 0);_.E([_.K({selector:yN3,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.T("design:type",Object)],VZ.prototype,"translateButtonState",void 0);
_.E([_.t("commentSurfaceEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"backgroundColor",null);_.E([_.K({reflectToAttribute:!0}),_.t("viewModel"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],VZ.prototype,"optimalReadingWidthComments",null);_.E([_.gP("ytd-expander"),_.T("design:type",Object)],VZ.prototype,"expander",void 0);
_.E([_.Pg("backgroundColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VZ.prototype,"updateBackgroundColor",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VZ.prototype,"useSmallAvatars",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],VZ.prototype,"engagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VZ.prototype,"commentThreadingEnabled",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VZ.prototype,"webWatchCompactComments",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("commentEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"isReply",null);_.E([_.t("commentEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"authorThumbnailEndpoint",null);_.E([_.t("commentEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"authorNameEndpoint",null);
_.E([_.t("commentEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"authorThumbnail",null);_.E([_.t("commentEntity"),_.T("design:type",String),_.T("design:paramtypes",[])],VZ.prototype,"authorTextClass",null);_.E([_.t("commentEntity"),_.T("design:type",String),_.T("design:paramtypes",[])],VZ.prototype,"authorChannelName",null);_.E([_.t("commentEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"publishedTime",null);
_.E([_.t("commentSurfaceEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"publishedTimeCommand",null);_.E([_.t("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"contentText",null);_.E([_.Pg("contentText"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VZ.prototype,"resetExpander",null);
_.E([_.t("commentEntity"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],VZ.prototype,"shouldShowReadMoreInitially",null);_.E([_.t("commentSharedEntity"),_.T("design:type",String),_.T("design:paramtypes",[])],VZ.prototype,"expandText",null);_.E([_.t("commentSharedEntity"),_.T("design:type",String),_.T("design:paramtypes",[])],VZ.prototype,"collapseText",null);_.E([_.t("commentEntity"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],VZ.prototype,"shouldShowTranslateButton",null);
_.E([_.t("commentEntity","commentSharedEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"translateButton",null);_.E([_.t("toolbarSurface"),_.T("design:type",Object),_.T("design:paramtypes",[])],VZ.prototype,"overflowMenuRenderer",null);_.E([_.K(),_.T("design:type",Object)],VZ.prototype,"editDialog",void 0);_.E([_.gP("ytd-comment-dialog-renderer"),_.T("design:type",Object)],VZ.prototype,"editCommentDialogContainer",void 0);
_.E([_.gP("ytd-comment-reply-dialog-renderer"),_.T("design:type",Object)],VZ.prototype,"editReplyDialogContainer",void 0);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],VZ.prototype,"onYtNavigate",null);_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],VZ.prototype,"onYtCommentboxDismiss",null);
_.E([_.hj("yt-commentbox-resize"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],VZ.prototype,"onYtCommentboxResize",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-comment-view-model"})],VZ);
_.r(VZ,"ytd-comment-view-model",function(){if(jM8!==void 0)return jM8;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return jM8=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});_.Tt(_.w(function(l){var D={};return _.g("yt-sub-thread",{class:_.DV("ytSubThreadHost",(D.ytSubThreadHasButton=l.isButton,D.ytSubThreadHovered=l.hovered,D.ytSubThreadTopLevelThread=function(){var U,n;return((U=l.topLevelThread)==null?void 0:U.call(l))&&!(_.q("small_avatars_for_comments")&&((n=l.engagementPanel)==null?0:n.call(l)))},D))},_.g("div",{class:"ytSubThreadThreadline"},_.g(_.v,{cond:function(){var U;
return!((U=l.isTeaser)==null?0:U.call(l))},
then:function(){return _.g("div",{class:"ytSubThreadConnection"})}}),_.g("div",{class:"ytSubThreadContinuation"}),_.g("div",{class:"ytSubThreadShadow"})),_.g("div",{class:"ytSubThreadSubThreadContent"},l.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.C$,
isTeaser:_.C$,hovered:_.C$,topLevelThread:_.C$,engagementPanel:_.C$}});var i9=function(){var l=_.p.apply(this,arguments)||this;l.modern=_.q("web_modern_buttons");l.commentThreadingEnabled=_.q("web_delhi_comment_threads");l.isWatchGrid=_.q("kevlar_watch_grid");l.buttonOverrides=l.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};l.JSC$16104_spinnerEl=null;return l};
_.Z(i9,_.p);_.W=i9.prototype;_.W.configureContinuationPathMap=function(){return _.q("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.W.shouldShowLegacyTeasers=function(l,D){return l&&!D};
_.W.shouldShowExpandedThreads=function(l,D){return this.commentThreadingEnabled&&D&&(l==null?void 0:l.length)>0};
_.W.shouldShowCollapsedThreads=function(l,D){return this.commentThreadingEnabled&&!D&&l};
_.W.computeCommentViewModel=function(l){return _.M(l,Kly)};
_.W.computeThreadRenderer=function(l){return _.M(l,aWy)};
_.W.computeIsContinuationItem=function(l){return!!this.computeContinuationItemRenderer(l)};
_.W.computeButtonRenderer=function(l){return _.M(l,_.yn)};
_.W.computeContinuationItemRenderer=function(l){return _.M(l,_.$X)};
_.W.computeShowButton=function(l){var D;return!((D=this.computeContinuationItemRenderer(l))==null||!D.button)};
_.W.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]]"}}}}}};
_.W.attached=function(){this.isShowRepliesVisible=!0};
_.W.dataChanged=function(){var l=this.expanderContents;l&&(l.hidden=!0);this.isLoading=!1};
_.W.endsInContinuation=function(l){return!!l&&l.length>0&&!!this.computeContinuationItemRenderer(l[l.length-1])};
_.W.computeShouldShowHideRepliesButton=function(l,D){return!l&&D};
_.W.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.W.isLoadingChanged=function(){this.isLoading&&!this.JSC$16104_spinnerEl&&(this.JSC$16104_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.iJ(this.expanderContents).appendChild(this.JSC$16104_spinnerEl));this.JSC$16104_spinnerEl&&(this.JSC$16104_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var l;(l=this.contents)==null||l.classList.remove("reloading")}};
_.W.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var l=_.M(this.data.viewReplies,_.yn);l&&this.ytRendererBehavior.logExplicitClick(l);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.W.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var l=_.M(this.data.hideReplies,_.yn);l&&this.ytRendererBehavior.logExplicitClick(l);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.W.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var l=_.iJ(this.hostElement).querySelector("#expander-contents");l&&(l.hidden=this.isShowRepliesVisible)}};
_.W.computeAlign=function(){if(this.modern){var l;return!((l=this.data)==null?0:l.viewRepliesCreatorThumbnail)}};
_.QP.Object.defineProperties(i9.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var l,D;return this.endsInContinuation((l=this.data)==null?void 0:l.contents)||this.commentThreadingEnabled&&this.endsInContinuation((D=this.data)==null?void 0:D.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var l;return(l=this.data)==null?void 0:l.teaserContents}}});
i9.prototype.isShowMoreChanged=i9.prototype.isShowMoreChanged;i9.prototype.isLoadingChanged=i9.prototype.isLoadingChanged;i9.prototype.triggerFirstContinuation=i9.prototype.triggerFirstContinuation;i9.prototype.dataChanged=i9.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.vf),_.T("design:type",Object)],i9.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],i9.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],i9.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],i9.prototype,"commentThreadingEnabled",void 0);_.E([_.K(),_.T("design:type",Boolean)],i9.prototype,"expanded",void 0);
_.E([_.K(),_.T("design:type",Function)],i9.prototype,"toggleExpanded",void 0);_.E([_.K(),_.T("design:type",Array)],i9.prototype,"addedReplies",void 0);_.E([_.K(),_.T("design:type",Boolean)],i9.prototype,"hovered",void 0);_.E([_.K(),_.T("design:type",Boolean)],i9.prototype,"topLevelThread",void 0);_.E([_.K(),_.T("design:type",Boolean)],i9.prototype,"isLoading",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],i9.prototype,"isShowRepliesVisible",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],i9.prototype,"useNewFormatting",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],i9.prototype,"engagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],i9.prototype,"isWatchGrid",void 0);_.E([_.K(),_.T("design:type",Object)],i9.prototype,"buttonOverrides",void 0);_.E([_.gP("#expander-contents"),_.T("design:type",HTMLElement)],i9.prototype,"expanderContents",void 0);
_.E([_.gP("ytd-continuation-item-renderer"),_.T("design:type",Object)],i9.prototype,"continuationItemRenderer",void 0);_.E([_.gP("#contents"),_.T("design:type",HTMLElement)],i9.prototype,"contents",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],i9.prototype,"dataChanged",null);_.E([_.t("data.contents","data.subThreads.*"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],i9.prototype,"hasContinuation",null);
_.E([_.t("data.teaserContents"),_.T("design:type",Object),_.T("design:paramtypes",[])],i9.prototype,"subThreadTeasers",null);_.E([_.hj("yt-expander-more-tapped"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],i9.prototype,"triggerFirstContinuation",null);_.E([_.Pg("isLoading"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],i9.prototype,"isLoadingChanged",null);
_.E([_.Pg("isShowRepliesVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],i9.prototype,"isShowMoreChanged",null);_.E([_.x({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],i9);
_.r(i9,"ytd-comment-replies-renderer",function(){if(kV8!==void 0)return kV8;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return kV8=l},{mode:1});var rI7;var l9=function(){var l=_.p.apply(this,arguments)||this;l.isOpen=!1;l.commentDialog=null;l.useSmallAvatars=_.q("small_avatars_for_comments");l.useSmallAvatarsEngagementPanelOnly=_.q("small_avatars_for_comments_ep");l.placeholderFocusListener=null;l.hasOpenedDialog=!1;l.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return l};
_.Z(l9,_.p);_.W=l9.prototype;_.W.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]]"}}}}}};
_.W.ready=function(){var l=this,D=_.iJ(this.hostElement).querySelector("#placeholder-area"),U=_.iJ(this.hostElement).querySelector("#simplebox-placeholder"),n=function(y){y.stopPropagation();y instanceof KeyboardEvent&&y.type==="keypress"&&y.keyCode!==13&&y.keyCode!==32||l.openDialog()};
this.placeholderFocusListener=n;U.addEventListener("focus",this.placeholderFocusListener);D.addEventListener("tap",n);D.addEventListener("keypress",n)};
_.W.maybeRemoveFocusEventListener=function(){var l;(l=this.data)!=null&&l.prepareAccountEndpoint&&!_.q("web_comments_simplebox_modal_focus_on_tap_ks")&&(l=_.iJ(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(l.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.W.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.W.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.q("web_comment_simplebox_resolve_polymer_command_ks")?_.yu.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Ae(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);l&&this.ytdOpenPopupBehavior.openPopup(l);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.iJ(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.W.onYtCommentboxDismiss=function(l){l.stopPropagation();this.isOpen=!1};
_.W.onCreateCommentAction=function(l){this.get("createCommentAction.contents",l)&&(this.isOpen=!1)};
_.W.computeCommentDialog=function(l){return{placeholderText:l.placeholderText,authorThumbnail:l.authorThumbnail,submitButton:l.submitButton,imageButton:l.imageButton,cancelButton:l.cancelButton,emojiButton:l.emojiButton,emojis:l.emojis,emojiPicker:l.emojiPicker,aadcGuidelinesStateEntityKey:l.aadcGuidelinesStateEntityKey,openAadcDialog:l.openAadcDialog,unicodeEmojisUrl:l.unicodeEmojisUrl}};
_.W.onHideIdentityChip=function(l){_.M(l,qI7)&&this.set("data.placeholderText",_.M(l,qI7).placeholderText)};
l9.prototype.onYtCommentboxDismiss=l9.prototype.onYtCommentboxDismiss;l9.prototype.dataChanged=l9.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],l9.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],l9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],l9.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],l9.prototype,"isOpen",void 0);_.E([_.K(),_.T("design:type",Object)],l9.prototype,"commentDialog",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],l9.prototype,"engagementPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],l9.prototype,"useSmallAvatars",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],l9.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],l9.prototype,"enableCreationBox",void 0);_.E([_.K(),_.T("design:type",Boolean)],l9.prototype,"showCreateDialog",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],l9.prototype,"dataChanged",null);_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],l9.prototype,"onYtCommentboxDismiss",null);_.E([_.x({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],l9);
_.r(l9,"ytd-comment-simplebox-renderer",function(){if(rI7!==void 0)return rI7;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return rI7=l},{mode:1});var zby;_.RL("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var D4=function(){var l=_.p.apply(this,arguments)||this;l.addHoverEffect=_.q("swatcheroo_comments_hover_effect");l.useSmallAvatars=_.q("small_avatars_for_comments");l.scrollingEnabled=_.q("web_comment_threading_scroll_on_collapse");l.isSubThread=!1;l.threadHovered=!1;l.expanded=!1;l.removed=!1;l.addedReplies=[];l.actionMap=l.configureActionMap();l.toggleExpanded=function(){l.expanded=!l.expanded;!l.expanded&&l.scrollingEnabled&&_.Vh(l.hostElement,"yt-scroll-to-comment-element",[l.commentElement])};
return l};
_.Z(D4,_.p);_.W=D4.prototype;_.W.configureActionMap=function(){return _.q("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.W.createCommentReplyAction=function(l){l=_.M(l,JV7);if(l!=null&&l.contents){var D=l.replyToCommentId,U=l.parentCommentId,n,y=(n=this.commentViewModel)==null?void 0:n.commentId;(y===D||y===U&&!D)&&this.maybeAttachReply(l.contents)}};
_.W.maybeAttachReply=function(l){var D,U;(((D=this.commentEntity)==null?void 0:(U=D.properties)==null?void 0:U.replyLevel)||0)>=3?_.O9(this.hostElement,"yt-pushed-create-comment-reply",l):this.attachReply(l)};
_.W.onPushedCreateCommentReply=function(l){var D,U;(((D=this.commentEntity)==null?void 0:(U=D.properties)==null?void 0:U.replyLevel)||0)>=3||(this.attachReply(l.detail),l.stopPropagation())};
_.W.attachReply=function(l){var D;((D=this.data)==null?0:D.replies)?(D=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+D+".continuationItemRenderer")?D===0?this.push("addedReplies",l):this.splice("data.replies.commentRepliesRenderer.subThreads",D,0,l):this.push("data.replies.commentRepliesRenderer.subThreads",l)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[l],viewReplies:{buttonRenderer:{text:_.H6(_.C3("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.W.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.zz(this.addedReplies))),this.set("addedReplies",[]))};
_.W.removeCommentAction=function(l){l=_.M(l,Znr);var D=l==null?void 0:l.commentId,U;D&&((U=this.commentViewModel)==null?void 0:U.commentId)===D&&this.maybeRemoveComment(l.actionResult)};
_.W.banAuthorAction=function(l){l=_.M(l,Qdk);var D=l==null?void 0:l.commentId,U;D&&((U=this.commentViewModel)==null?void 0:U.commentId)===D&&this.maybeRemoveComment(l.actionResult)};
_.W.hideReportedCommentAction=function(l){l=_.M(l,oAm);var D=l==null?void 0:l.commentId,U;D&&((U=this.commentViewModel)==null?void 0:U.commentId)===D&&this.maybeRemoveComment(l.actionResult)};
_.W.maybeRemoveComment=function(l){l&&l.status==="STATUS_SUCCEEDED"&&(this.feedbackText=l.feedbackText||_.H6("Reply removed"),this.removed=!0)};
_.W.onTap=function(l){if(this.addHoverEffect&&!this.engagementPanel&&!_.$o(_.$f(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var D;((D=window.getSelection())==null?0:D.toString().length)||_.Ae({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.W.attached=function(){var l=this;this.isSubThread&&(this.expanded=!0);var D;(D=this.commentThreadHitbox)==null||D.addEventListener("mouseover",function(){l.threadHovered=!0});
var U;(U=this.commentThreadHitbox)==null||U.addEventListener("mouseout",function(){l.threadHovered=!1});
var n;(n=this.commentThreadHitbox)==null||n.addEventListener("click",function(){l.maybeToggleExpanded()})};
_.W.onDataChanged=function(){var l=_.q("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(l)&&this.set(l,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.W.maybeToggleExpanded=function(){var l,D,U,n=(l=this.data)==null?void 0:(D=l.replies)==null?void 0:(U=D.commentRepliesRenderer)==null?void 0:U.subThreads,y;(n==null?void 0:n.length)===1&&((y=_.M(n[0],_.$X))==null?0:y.button)&&this.expanded||this.toggleExpanded()};
_.QP.Object.defineProperties(D4.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var l;return _.M((l=this.data)==null?void 0:l.commentViewModel,Kly)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return _.q("web_delhi_comment_threads")&&!!((l=this.data)==null?0:(D=l.replies)==null?0:(U=D.commentRepliesRenderer)==null?0:U.subThreads)}}});
D4.prototype.onDataChanged=D4.prototype.onDataChanged;D4.prototype.onTap=D4.prototype.onTap;D4.prototype.onAppendContinuationItemsActionFinished=D4.prototype.onAppendContinuationItemsActionFinished;D4.prototype.onPushedCreateCommentReply=D4.prototype.onPushedCreateCommentReply;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],D4.prototype,"ytdReduxBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],D4.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],D4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],D4.prototype,"addHoverEffect",void 0);_.E([_.K(),_.T("design:type",Object)],D4.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],D4.prototype,"useSmallAvatars",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],D4.prototype,"scrollingEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],D4.prototype,"isSubThread",void 0);_.E([_.gP(".thread-hitbox"),_.T("design:type",HTMLElement)],D4.prototype,"commentThreadHitbox",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],D4.prototype,"threadHovered",void 0);_.E([_.gP("#comment"),_.T("design:type",HTMLElement)],D4.prototype,"commentElement",void 0);
_.E([_.K(),_.T("design:type",Object)],D4.prototype,"expanded",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],D4.prototype,"removed",void 0);_.E([_.K(),_.T("design:type",Object)],D4.prototype,"feedbackText",void 0);_.E([_.K(),_.T("design:type",Array)],D4.prototype,"addedReplies",void 0);_.E([_.K({selector:U8o,selectorArgs:["commentViewModel.commentKey"]}),_.T("design:type",Object)],D4.prototype,"commentEntity",void 0);
_.E([_.hj("yt-pushed-create-comment-reply"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],D4.prototype,"onPushedCreateCommentReply",null);_.E([_.hj("yt-append-continuation-items-action-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],D4.prototype,"onAppendContinuationItemsActionFinished",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],D4.prototype,"commentViewModel",null);
_.E([_.t("data.replies.commentRepliesRenderer.subThreads"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],D4.prototype,"hasSubThreading",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],D4.prototype,"engagementPanel",void 0);_.E([_.hj("tap"),_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],D4.prototype,"onTap",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],D4.prototype,"onDataChanged",null);_.E([_.x({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],D4);
_.r(D4,"ytd-comment-thread-renderer",function(){if(zby!==void 0)return zby;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return zby=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var fn_;var U_=function(){var l=_.p.apply(this,arguments)||this;l.compactHeader=_.q("web_watch_compact_comments_header");l.hidePanelButton=!1;l.isPostSchedulingEnabled=_.q("enable_post_scheduling");l.hasFinishedStamping=!1;l.JSC$16127_handleOpenPostCommentDialogActionAfterStamp=!1;l.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return l};
_.Z(U_,_.p);_.W=U_.prototype;
_.W.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"}}}};
_.W.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.W.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16127_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.W.onYtServiceRequestSent=function(l,D){if(!_.q("kevlar_command_handler")&&D.actions)for(l=0;l<D.actions.length;l++){var U=D.actions[l];_.M(U,NCm)&&_.iJ(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.M(U,NCm))}};
_.W.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var l;if(this.getPrefilledBackstagePostDialog((l=this.data)==null?void 0:l.actions)){_.iJ(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var D=_.iJ(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;D&&_.u6(this,function(){D.focus();D.openDialog&&D.openDialog()})}}else this.hasActionsChange=!0};
_.W.computeIsBackstage=function(l){return l};
_.W.onYtCommentboxDismiss=function(){_.iJ(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.W.removePrefilledDialog=function(l){if(l==null?0:l.actions){for(var D=l.actions.length-1;D>=0;D--){var U=void 0;((U=_.M(l.actions[D],UOy))==null?0:U.dialog)&&delete l.actions[D]}this.set("data",void 0);this.set("data",l)}};
_.W.getPrefilledBackstagePostDialog=function(l){if(l)for(var D=0;D<l.length;D++){var U=l[D],n=void 0;if((n=_.M(U,UOy))==null?0:n.dialog)return _.M(U,UOy).dialog}return null};
_.W.computeBackstagePostDialog=function(l){return l&&(this.getPrefilledBackstagePostDialog(l.actions)||l.createRenderer)};
_.W.dataChanged=function(){if(this.data){var l=this.data.customEmojis,D=this.data.unicodeEmojisUrl;_.CF.clear();D&&_.xok(_.CF,D);l&&_.CF.load(l)}};
_.W.handleSignalActionOpenPostCommentDialogAction=function(){var l=_.iJ(this.hostElement).querySelector("ytd-comment-simplebox-renderer");l?l.openDialog():this.JSC$16127_handleOpenPostCommentDialogActionAfterStamp=!0};
_.W.onPostHeaderTap=function(){var l;((l=this.data)==null?0:l.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.QP.Object.defineProperties(U_.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.q("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n,y,A,C;return!this.hidePanelButton&&_.q("kevlar_watch_comments_panel_button")&&((C=_.M((l=this.data)==null?void 0:(D=l.sortMenu)==null?void 0:(U=D.sortFilterSubMenuRenderer)==null?void 0:(n=U.subMenuItems)==null?void 0:(y=n[0])==null?void 0:(A=y.serviceEndpoint)==null?void 0:A.commandMetadata,_.W6))==null?void 0:C.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.C3("MINIPLAYER_EXPAND_LABEL"),text:_.$B(_.C3("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
U_.prototype.dataChanged=U_.prototype.dataChanged;U_.prototype.onYtCommentboxDismiss=U_.prototype.onYtCommentboxDismiss;U_.prototype.observePrefilledBackstagePostDialog=U_.prototype.observePrefilledBackstagePostDialog;U_.prototype.onYtServiceRequestSent=U_.prototype.onYtServiceRequestSent;U_.prototype.onStampFinished=U_.prototype.onStampFinished;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],U_.prototype,"ytComponentBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],U_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],U_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],U_.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],U_.prototype,"compactHeader",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],U_.prototype,"engagementPanel",void 0);_.E([_.K(),_.T("design:type",Object)],U_.prototype,"hidePanelButton",void 0);_.E([_.K({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.T("design:type",Boolean)],U_.prototype,"isBackstage",void 0);_.E([_.K({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.T("design:type",Object)],U_.prototype,"backstagePostDialog",void 0);
_.E([_.K(),_.T("design:type",Object)],U_.prototype,"isPostSchedulingEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data","showCommentsPanelButton"),_.T("design:type",Object),_.T("design:paramtypes",[])],U_.prototype,"useSpaceBetween",null);_.E([_.K({reflectToAttribute:!0}),_.t("data","hidePanelButton"),_.T("design:type",Object),_.T("design:paramtypes",[])],U_.prototype,"showCommentsPanelButton",null);
_.E([_.t("data","showCommentsPanelButton"),_.T("design:type",Object),_.T("design:paramtypes",[])],U_.prototype,"commentsPanelButtonData",null);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],U_.prototype,"onStampFinished",null);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],U_.prototype,"onYtServiceRequestSent",null);
_.E([_.Pg("data.actions"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],U_.prototype,"observePrefilledBackstagePostDialog",null);_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],U_.prototype,"onYtCommentboxDismiss",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],U_.prototype,"dataChanged",null);
_.E([_.x({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],U_);
_.r(U_,"ytd-comments-header-renderer",function(){if(fn_!==void 0)return fn_;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return fn_=l},{mode:1});var $eh;var nO=function(){return _.p.apply(this,arguments)||this};
_.Z(nO,_.p);_.E([_.K(),_.T("design:type",Object)],nO.prototype,"data",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.E([_.x({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],nO);
_.r(nO,"ytd-destination-button-renderer",function(){if($eh!==void 0)return $eh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return $eh=l},{mode:1});var NG7;var yL=function(){var l=_.p.apply(this,arguments)||this;l.isRichGrid=!1;l.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return l};
_.Z(yL,_.p);_.W=yL.prototype;_.W.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.W.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.W.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.W.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var l;if((l=this.data)==null||!l.isExpanded){l=this.hostElement.clientWidth;var D;if(l&&(D=this.data)!=null&&D.destinationButtons){D=Math.floor((l+4)/214);l=this.data.destinationButtons.length;var U=Math.ceil(l/D);this.fullyVisibleRows=l%D===1&&U===2?1:Math.min(U,2);this.isShowMoreVisible=this.fullyVisibleRows<U}}}};
_.W.updateRichGridDestinationButtonsVisibility=function(){var l,D;if(this.isRichGrid&&((l=this.data)==null||!l.isExpanded)&&(D=this.data)!=null&&D.destinationButtons){l=this.richGridItemsPerRow+1;D=this.data.destinationButtons.length;var U=Math.ceil(D/l);this.fullyVisibleRows=D%l===1&&U===2?1:Math.min(U,2);this.isShowMoreVisible=this.fullyVisibleRows<U}};
_.W.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
yL.prototype.updateRichGridDestinationButtonsVisibility=yL.prototype.updateRichGridDestinationButtonsVisibility;_.E([_.K(),_.T("design:type",Object)],yL.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Number)],yL.prototype,"fullyVisibleRows",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],yL.prototype,"isShowMoreVisible",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yL.prototype,"isRichGrid",void 0);
_.E([_.K({selector:_.t4,value:0}),_.T("design:type",Number)],yL.prototype,"richGridItemsPerRow",void 0);_.E([_.K(),_.T("design:type",Object)],yL.prototype,"gridStateActionMap",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],yL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],yL.prototype,"ytdReduxBehavior",void 0);_.E([_.Pg("data","richGridItemsPerRow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yL.prototype,"updateRichGridDestinationButtonsVisibility",null);_.E([_.x({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],yL);
_.r(yL,"ytd-destination-shelf-renderer",function(){if(NG7!==void 0)return NG7;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return NG7=l},{mode:1});var sM1;var A5=function(){return _.p.apply(this,arguments)||this};
_.Z(A5,_.p);A5.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],A5.prototype,"data",void 0);_.E([_.x({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],A5);
_.r(A5,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(sM1!==void 0)return sM1;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return sM1=l},{mode:1});var EQz;var Wx=function(){var l=_.p.apply(this,arguments)||this;l.disableAnimation=!1;l.isSlimlineSurvey=!1;l.isSlimlineSurveyFollowUp=!1;l.isShortsStyle=!1;return l};
_.Z(Wx,_.p);Wx.prototype.onTap=function(l){l.preventDefault();this.data&&_.O9(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.QP.Object.defineProperties(Wx.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 l,D,U,n,y;return((l=this.data)==null?0:l.checked)?(D=this.data)==null?void 0:(U=D.onStateIcon)==null?void 0:U.iconType:(n=this.data)==null?void 0:(y=n.defaultStateIcon)==null?void 0:y.iconType}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Wx.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Wx.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Wx.prototype,"disableAnimation",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Wx.prototype,"isSlimlineSurvey",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Wx.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Wx.prototype,"isShortsStyle",void 0);_.E([_.t("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Wx.prototype,"isAnimatedIcon",null);
_.E([_.t("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.T("design:type",Number),_.T("design:paramtypes",[])],Wx.prototype,"iconSize",null);_.E([_.t("isShortsStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Wx.prototype,"isDarkTheme",null);_.E([_.t("data.checked"),_.T("design:type",Object),_.T("design:paramtypes",[])],Wx.prototype,"icon",null);_.E([_.x({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Wx);
_.r(Wx,"ytd-rating-survey-option-renderer",function(){if(EQz!==void 0)return EQz;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return EQz=l},{mode:2});var TG8;var Bx=function(){var l=_.p.apply(this,arguments)||this;l.firstResponseText=null;l.lastResponseText=null;l.selectedNonStarOption=null;l.hideOptions=!1;l.hideUndoButton=!0;l.disableAnimation=!1;l.showResponseRangeText=!1;l.selectedRatingIndex=-1;l.isSlimlineSurvey=!1;l.isSlimlineSurveyFollowUp=!1;l.isShortsStyle=!1;l.slimlineSurveyRatingSelectedIndex=-1;return l};
_.Z(Bx,_.p);_.W=Bx.prototype;_.W.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.W.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.W.onOptionChange=function(l,D){var U=this;l=D.onStateIcon&&D.defaultStateIcon&&D.onStateIcon.iconType===D.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(C,h){C.responseText===D.responseText?U.isSlimlineSurvey?(U.selectedRatingIndex=h,U.ytdReduxBehavior.dispatch(l$h(h))):(U.setSurveyOptionValue(h,!0,"checked"),U.setSurveyOptionValue(h,!0,"selected")):(U.setSurveyOptionValue(h,!1,"checked"),U.setSurveyOptionValue(h,
!1,"selected"))});
else if(l)this.selectedNonStarOption=D,this.hideOptions=!0;else{var n=this.ytRendererBehavior.getSimpleString(D.responseText),y=!0;this.getOptionRenderers().forEach(function(C,h){U.setSurveyOptionValue(h,y,"checked");U.setSurveyOptionValue(h,!1,"selected");U.ytRendererBehavior.getSimpleString(C.responseText)===n&&(y=!1,U.setSurveyOptionValue(h,!0,"selected"))})}l=D.responseEndpoint;
var A;D.followUpCommand&&(A=_.M(D.followUpCommand,Hi7));this.isSlimlineSurvey?(this.resetComponent(),_.Vh(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Vh(this.hostElement,"ytd-inline-survey-rating-select-action",[l,A])};
_.W.showSelectedOption=function(){var l=this;_.Tn.addJob(function(){var D=l.getOptionRenderers()[l.slimlineSurveyRatingSelectedIndex];l.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),D)},8,100)};
_.W.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(l){var D;return(D=_.M(l,OiH))!=null?D:{}}):[]};
_.W.onUndoClick=function(){this.resetComponent();_.Vh(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.W.setSurveyOptionValue=function(l,D,U){this.notifyPath("data.ratings."+l+".ratingSurveyOptionRenderer."+U);this.set("data.ratings."+l+".ratingSurveyOptionRenderer."+U,D)};
_.W.resetComponent=function(){var l=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var D=this.getOptionRenderers(),U,n;this.firstResponseText=(n=(U=D[0])==null?void 0:U.responseText)!=null?n:null;var y,A;this.lastResponseText=(A=(y=D[D.length-1])==null?void 0:y.responseText)!=null?A:null;D.forEach(function(C,h){l.setSurveyOptionValue(h,!1,"checked");l.setSurveyOptionValue(h,!1,"selected")})};
_.QP.Object.defineProperties(Bx.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Bx.prototype.onOptionChange=Bx.prototype.onOptionChange;Bx.prototype.dataChanged=Bx.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Bx.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Bx.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],Bx.prototype,"firstResponseText",void 0);_.E([_.K(),_.T("design:type",Object)],Bx.prototype,"lastResponseText",void 0);_.E([_.K(),_.T("design:type",Object)],Bx.prototype,"selectedNonStarOption",void 0);_.E([_.K(),_.T("design:type",Object)],Bx.prototype,"hideOptions",void 0);_.E([_.K(),_.T("design:type",Object)],Bx.prototype,"hideUndoButton",void 0);_.E([_.K(),_.T("design:type",Object)],Bx.prototype,"disableAnimation",void 0);
_.E([_.K(),_.T("design:type",Object)],Bx.prototype,"showResponseRangeText",void 0);_.E([_.K(),_.T("design:type",Object)],Bx.prototype,"selectedRatingIndex",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Bx.prototype,"isSlimlineSurvey",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Bx.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Bx.prototype,"isShortsStyle",void 0);_.E([_.K({selector:function(l){return l.ui.slimlineSurveyRatingSelectedIndex}}),
_.T("design:type",Object)],Bx.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.E([_.t("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Bx.prototype,"isSingleSelect",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Bx.prototype,"dataChanged",null);
_.E([_.hj("ytd-rating-survey-option-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],Bx.prototype,"onOptionChange",null);_.E([_.x({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Bx);
_.r(Bx,"ytd-rating-survey-renderer",function(){if(TG8!==void 0)return TG8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return TG8=l},{mode:1});var Ing;var HD8;var Yzr;var M1N=(WF.FIRSTDAYOFWEEK+1)%7,ODH=function(l,D,U,n){var y="";if(n.selection&&GKC(n.selection))n4(l,n.selection)&&(y+=" selected");else if(n.selection&&JD3(n.selection)){var A=n.selection.selectionState||"START_DATE";n4(l,n.selection.start)&&(y+=" period-start ",A==="START_DATE"&&(y+="selected"));n4(l,n.selection.end)&&(y+=" period-end ",A==="END_DATE"&&(y+="selected"));yd(l,n.selection.start)||yd(n.selection.end,l)||(y+=" highlighted")}if(yd(D,n.start)||yd(n.end,D))y+=" disabled";n.circleToday&&
n4(D,U)&&(y+=" today");return y};var CO=function(){return _.p.apply(this,arguments)||this};
_.Z(CO,_.p);_.W=CO.prototype;_.W.attached=function(){var l=this;_.u6(this,function(){l.JSC$16161_calendarMain.scrollHeight>0&&(l.calendarConfig.selection?l.scrollToDate(LAo(l.calendarConfig.selection)):l.scrollToDate(l.calendarConfig.end))})};
_.W.updateSelection=function(l){l=RT$(Object.assign({},this.calendarConfig,{selection:l}),ODH);this.splice.apply(this,["renderData.months",0,l.length].concat(_.zz(l)))};
_.W.scrollToDate=function(l){this.renderData&&(l=ZQC(l,this.renderData),l!==void 0&&this.JSC$16161_calendarMain.scrollToIndex(l))};
_.W.scrollToNextMonth=function(){this.JSC$16161_calendarMain.scrollToIndex(this.JSC$16161_calendarMain.firstVisibleIndex+1)};
_.W.scrollToPrevMonth=function(){this.JSC$16161_calendarMain.firstVisibleIndex===0&&this.JSC$16161_calendarMain.scrollTo(0,0);this.JSC$16161_calendarMain.scrollToIndex(this.JSC$16161_calendarMain.firstVisibleIndex-1)};
_.W.handleDayClick=function(l){_.Vh(this.hostElement,"ytd-calendar-date-clicked",[l.model.day.date])};
_.W.handleDayMouseDown=function(l){l.preventDefault();_.Vh(this.hostElement,"ytd-calendar-date-mousedown",[l.model.day.date])};
_.W.handleDayMouseUp=function(l){_.Vh(this.hostElement,"ytd-calendar-date-mouseup",[l.model.day.date])};
_.W.handleDayMouseEnter=function(l){l.preventDefault();_.Vh(this.hostElement,"ytd-calendar-date-mouseenter",[l.model.day.date])};
_.W.handleDayMouseLeave=function(l){_.Vh(this.hostElement,"ytd-calendar-date-mouseleave",[l.model.day.date])};
_.QP.Object.defineProperties(CO.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var l=this.calendarConfig,D=ODH;D=D===void 0?ODH:D;for(var U=[],n=0;n<7;n++)U.push(WF.NARROWWEEKDAYS[(n+M1N)%7]);return{months:RT$(l,D),daysOfWeekLabel:U}}}});
_.E([_.K(),_.T("design:type",Object)],CO.prototype,"calendarConfig",void 0);_.E([_.gP("#calendar-main"),_.T("design:type",Object)],CO.prototype,"JSC$16161_calendarMain",void 0);_.E([_.t("calendarConfig"),_.T("design:type",Object),_.T("design:paramtypes",[])],CO.prototype,"renderData",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],CO);
_.r(CO,"ytd-scrollable-calendar",function(){if(Yzr!==void 0)return Yzr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Yzr=l},{mode:2});var V6y;var igm;var h5=function(){var l=_.p.apply(this,arguments)||this;l.hideCharCounter=!1;l.hideLabel=!1;l.noLabelFloat=!1;l.autoValidate=!0;l.invalid=!1;l.disabled=!1;l.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return l};
_.Z(h5,_.p);_.W=h5.prototype;_.W.reset=function(l){this.value=l&&this.data?this.data.value=l:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.W.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.W.focusTextInput=function(){this.input.focus()};
_.W.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()};
_.W.valueChanged=function(){var l,D;if(((l=this.data)==null?0:l.value)||((D=this.data)==null?void 0:D.value)==="")this.value=this.data.value;else{var U;((U=this.data)==null?void 0:U.value)!==void 0||this.value||(this.value="")}};
_.W.computeLabel=function(l,D){return D?"":_.Nl(l)};
_.W.computeAriaLabel=function(l,D){return D?_.Nl(l):""};
_.W.computeErrorMessage=function(l,D,U,n){!l&&D?l=U||this.strings.REQUIRED_LABEL:(l=_.Nl(n),l=_.bG(l,"&")?"document"in _.nC?W6m(l):BEv(l):l);return l};
_.W.computeType=function(l){return l==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.W.onTextValueChanged=function(l){this.value=l.detail.value;var D;(D=this.onValueChanged)==null||D.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.W.handleUpdateTextInputFormFieldRendererCommand=function(l){(l=_.M(l,G27))&&this.data&&this.data.id===l.id&&(l.invalid!==void 0&&(this.invalid=l.invalid),l.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",l.invalidValueErrorMessage))};
_.W.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("value-changed",this.value))};
_.W.updateInvalidFromBinding=function(l){this.invalid=l.detail.value};
_.QP.Object.defineProperties(h5.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var l;return!((l=this.data)==null||!l.isMultiline)}}});
h5.prototype.valueChangedForBinding=h5.prototype.valueChangedForBinding;h5.prototype.valueChanged=h5.prototype.valueChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],h5.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],h5.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],h5.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],h5.prototype,"value",void 0);_.E([_.K(),_.T("design:type",String)],h5.prototype,"pattern",void 0);_.E([_.K(),_.T("design:type",String)],h5.prototype,"errorMessage",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],h5.prototype,"componentStyle",void 0);_.E([_.K(),_.T("design:type",Object)],h5.prototype,"hideCharCounter",void 0);
_.E([_.K(),_.T("design:type",Object)],h5.prototype,"hideLabel",void 0);_.E([_.K(),_.T("design:type",Object)],h5.prototype,"noLabelFloat",void 0);_.E([_.K(),_.T("design:type",Function)],h5.prototype,"onValueChanged",void 0);_.E([_.K(),_.T("design:type",Boolean)],h5.prototype,"isMultilineOverride",void 0);_.E([_.K(),_.T("design:type",Object)],h5.prototype,"autoValidate",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],h5.prototype,"invalid",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],h5.prototype,"disabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],h5.prototype,"enableOverlayTheme",void 0);_.E([_.K({value:{REQUIRED_LABEL:_.C3("REQUIRED_LABEL",void 0,"Required")}}),_.T("design:type",Object)],h5.prototype,"strings",void 0);_.E([_.gP("#input"),_.T("design:type",Object)],h5.prototype,"input",void 0);
_.E([_.t("data","isMultilineOverride"),_.T("design:type",Object),_.T("design:paramtypes",[])],h5.prototype,"isMultiline",null);_.E([_.GY("data.value"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],h5.prototype,"valueChanged",null);_.E([_.Pg("value"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],h5.prototype,"valueChangedForBinding",null);_.E([_.S0({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],h5);
_.r(h5,"yt-text-input-form-field-renderer",function(){if(igm===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;V6y===void 0&&(V6y=document.createElement("template"));var n=V6y;U.call(D,n.content.cloneNode(!0),l.content.firstChild);igm=l}l=igm;return l},{mode:2});var Px=function(){var l=_.p.apply(this,arguments)||this;l.data=void 0;l.selectionState="START_DATE";l.isStartDateInvalid=!1;l.isEndDateInvalid=!1;l.autoapply=!1;l.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 l};
_.Z(Px,_.p);_.W=Px.prototype;_.W.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"}}}}};
_.W.focus=function(){this.startDateInput.focus()};
_.W.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:AB(this.data.selection.start),end:AB(this.data.selection.end)})};
_.W.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.W.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Tv(this.selectionState)}};
_.W.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.W.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.W.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.W.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var l=this.calendar.calendarConfig,D=l.end;l=m5g({start:l.start,end:this.endDate||D},this.startDateInput.value||"");this.isStartDateInvalid=!l.isValid;l.isValid&&(l=l.value,this.selection=this.endDate?{start:l,end:this.endDate}:l,this.calendar.scrollToDate(l));this.updateInvalidState()}};
_.W.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var l=this.calendar.calendarConfig,D=l.start;l=m5g({start:this.startDate||D,end:l.end},this.endDateInput.value||"");this.isEndDateInvalid=!l.isValid;l.isValid&&(l=l.value,this.selection={start:this.startDate,end:l},this.calendar.scrollToDate(l));this.updateInvalidState()}};
_.W.handleCalendarDateClicked=function(l){var D=this.selection&&LAo(this.selection),U=this.selection&&qv_(this.selection);D&&!yd(l,D)&&this.selectionState==="END_DATE"?(this.selection={start:D,end:l},this.selectionState="START_DATE"):(U&&!yd(U,l)?this.selection={start:l,end:U}:this.selection=l,this.selectionState="END_DATE")};
_.W.handleCalendarDateMouseDown=function(l){this.selection&&!GKC(this.selection)&&(this.dragPivot=n4(l,this.selection.start)?this.selection.end:n4(l,this.selection.end)?this.selection.start:l)};
_.W.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.W.handleCalendarDateMouseEnter=function(l){this.dragPivot&&(this.selection={start:function(D,U){return yd(D,U)?D:U}(this.dragPivot,l),
end:function(D,U){return yd(D,U)?U:D}(this.dragPivot,l)},this.dragPivot||(this.selectionState="START_DATE"))};
_.W.handleCalendarDateMouseLeave=function(){};
_.W.handleCalendarSubmitDateRange=function(){this.selection&&!GKC(this.selection)&&_.Vh(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.W.updateInvalidState=function(){var l=function(D,U){U?D.setAttribute("invalid",""):D.removeAttribute("invalid")};
l(this.startDateInput,this.isStartDateInvalid);l(this.endDateInput,this.isEndDateInvalid)};
_.W.updateDateStrings=function(){this.selection&&(GKC(this.selection)?QXB(this.selection):(QXB(this.selection.start),QXB(this.selection.end)))};
_.W.updateCalendarSelection=function(l){this.calendar.updateSelection(Object.assign({},l,{selectionState:this.selectionState}))};
_.W.updateIsStartDateInvalidFromBinding=function(l){this.isStartDateInvalid=l.detail.value};
_.W.updateIsEndDateInvalidFromBinding=function(l){this.isEndDateInvalid=l.detail.value};
_.W.updateStartDateStringFromBinding=function(){};
_.W.updateEndDateStringFromBinding=function(){};
_.QP.Object.defineProperties(Px.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:AB(this.data.dateRangeStart),end:AB(this.data.dateRangeEnd),selection:{start:AB(this.data.selection.start),end:AB(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&LAo(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&qv_(this.selection)}}});
Px.prototype.resetTextboxes=Px.prototype.resetTextboxes;Px.prototype.observeSelection=Px.prototype.observeSelection;Px.prototype.dataChanged=Px.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Px.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.E([_.gP("#calendar"),_.T("design:type",Object)],Px.prototype,"calendar",void 0);
_.E([_.gP("#start-date"),_.T("design:type",Object)],Px.prototype,"startDateInput",void 0);_.E([_.gP("#end-date"),_.T("design:type",Object)],Px.prototype,"endDateInput",void 0);_.E([_.K(),_.T("design:type",Object)],Px.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Px.prototype,"selection",void 0);_.E([_.K(),_.T("design:type",String)],Px.prototype,"selectionState",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Px.prototype,"calendarConfig",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Px.prototype,"errorMessage",null);_.E([_.t("selection"),_.T("design:type",Object),_.T("design:paramtypes",[])],Px.prototype,"startDate",null);_.E([_.t("selection"),_.T("design:type",Object),_.T("design:paramtypes",[])],Px.prototype,"endDate",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Px.prototype,"dataChanged",null);
_.E([_.Pg("selection","selectionState"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Px.prototype,"observeSelection",null);_.E([_.Pg("selectionState"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Px.prototype,"resetTextboxes",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Px);
_.r(Px,"ytd-date-period-picker-renderer",function(){if(HD8!==void 0)return HD8;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return HD8=l},{mode:1});var b9=function(){var l=_.p.apply(this,arguments)||this;var D={};l.actionMap=(D["ytd-date-period-picker-apply"]="handleDateRangeUpdated",D);return l};
_.Z(b9,_.p);b9.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
b9.prototype.handleDateRangeUpdated=function(){};
_.E([_.K(),_.T("design:type",Object)],b9.prototype,"data",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],b9.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],b9.prototype,"rendererstamperBehavior",void 0);_.E([_.x({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],b9);
_.r(b9,"ytd-report-history-section-header-renderer",function(){if(Ing!==void 0)return Ing;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Ing=l},{mode:1});var ltv;var Db_;var Ubk;var g_=function(){return _.p.apply(this,arguments)||this};
_.Z(g_,_.p);_.QP.Object.defineProperties(g_.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?0:(D=l.icon)==null?0:D.iconType)?_.UV(this.data.icon.iconType):""}}});
_.E([_.K(),_.T("design:type",Object)],g_.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",String),_.T("design:paramtypes",[])],g_.prototype,"icon",null);_.E([_.x({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],g_);
_.r(g_,"ytd-report-history-table-text-cell-renderer",function(){if(Ubk!==void 0)return Ubk;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Ubk=l},{mode:1});var u9=function(){return _.p.apply(this,arguments)||this};
_.Z(u9,_.p);u9.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],u9.prototype,"data",void 0);_.E([_.x({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],u9);
_.r(u9,"ytd-report-history-table-reason-cell-renderer",function(){if(Db_!==void 0)return Db_;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Db_=l},{mode:1});var vx=function(){return _.p.apply(this,arguments)||this};
_.Z(vx,_.p);vx.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],vx.prototype,"rendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vx.prototype,"data",void 0);_.E([_.x({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],vx);
_.r(vx,"ytd-report-history-table-cell-renderer",function(){if(ltv!==void 0)return ltv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
return ltv=l},{mode:1});var n5_;var QL=function(){var l=_.p.apply(this,arguments)||this;l.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 l};
_.Z(QL,_.p);QL.prototype.onDataChanged=function(){var l;if((l=this.data)==null?0:l.style)this.componentStyle=this.getStyleName(this.data.style)};
QL.prototype.getCellForColumn=function(l){return this.cells.find(function(D){var U;return((U=_.M(D==null?void 0:D.cell,lx_)||_.M(D==null?void 0:D.cell,i58))==null?void 0:U.columnId)===l.type})};
QL.prototype.getClassForColumn=function(l){switch(l){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
QL.prototype.getStyleName=function(l){switch(l){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.QP.Object.defineProperties(QL.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.cells)||[]).map(function(D){return _.M(D,Vfy)})}}});
QL.prototype.onDataChanged=QL.prototype.onDataChanged;_.E([_.K(),_.T("design:type",Object)],QL.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Array)],QL.prototype,"columnRenderData",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],QL.prototype,"componentStyle",void 0);_.E([_.t("data"),_.T("design:type",Array),_.T("design:paramtypes",[])],QL.prototype,"cells",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QL.prototype,"onDataChanged",null);_.E([_.x({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],QL);
_.r(QL,"ytd-report-history-table-row-renderer",function(){if(n5_!==void 0)return n5_;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return n5_=l},{mode:1});var yny;var An_;var aG9={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},t13={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var GS=function(){return _.p.apply(this,arguments)||this};
_.Z(GS,_.p);GS.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"}}}}}};
GS.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.QP.Object.defineProperties(GS.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.columns)?KAs(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return kKG(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var l=this.tableSpec,D=aG9;D=D===void 0?t13:D;D=d5c(l.columnDimensions,l.columnsToShow||[],D);l=0;D=_.B(D);for(var U=D.next();!U.done;U=D.next())U=U.value,l+=U.minWidth+U.paddingLeft+U.paddingRight;return l}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.E([_.m(_.vf),_.T("design:type",Object)],GS.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],GS.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],GS.prototype,"tableSpec",null);_.E([_.t("tableSpec"),_.T("design:type",Array),_.T("design:paramtypes",[])],GS.prototype,"columnRenderData",null);
_.E([_.t("tableSpec"),_.T("design:type",Number),_.T("design:paramtypes",[])],GS.prototype,"totalMinWidth",null);_.E([_.t("totalMinWidth"),_.T("design:type",String),_.T("design:paramtypes",[])],GS.prototype,"tableWidthStyle",null);_.E([_.x({is:"ytd-table-renderer",disableElementRegistration:!0})],GS);
_.r(GS,"ytd-table-renderer",function(){if(An_!==void 0)return An_;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return An_=l},{mode:1});var J5=function(){return _.p.apply(this,arguments)||this};
_.Z(J5,_.p);J5.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],J5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],J5.prototype,"data",void 0);_.E([_.x({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],J5);
_.r(J5,"ytd-report-reason-history-modal-renderer",function(){if(yny!==void 0)return yny;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return yny=l},{mode:1});var Wg1;var BFm;var C27;var LO=function(){return _.p.apply(this,arguments)||this};
_.Z(LO,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],LO.prototype,"data",void 0);_.E([_.x({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],LO);
_.r(LO,"ytd-profile-column-stats-entry-renderer",function(){if(C27!==void 0)return C27;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return C27=l},{mode:1});var hY5;var qB=function(){return _.p.apply(this,arguments)||this};
_.Z(qB,_.p);qB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],qB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],qB.prototype,"data",void 0);_.E([_.x({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],qB);
_.r(qB,"ytd-profile-column-stats-renderer",function(){if(hY5!==void 0)return hY5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return hY5=l},{mode:1});var P2m;var MB=function(){return _.p.apply(this,arguments)||this};
_.Z(MB,_.p);_.QP.Object.defineProperties(MB.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.useThumbnailSize)return 80;var D,U;l=(D=this.data)==null?void 0:(U=D.thumbnail)==null?void 0:U.thumbnails;var n;return l&&((n=l[0])==null?void 0:n.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.useThumbnailSize)return 80;var D,U;l=(D=this.data)==null?void 0:(U=D.thumbnail)==null?void 0:U.thumbnails;var n;return l&&((n=l[0])==null?void 0:n.height)||80}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],MB.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],MB.prototype,"componentStyle",void 0);_.E([_.t("data.useThumbnailSize"),_.T("design:type",Object),_.T("design:paramtypes",[])],MB.prototype,"thumbnailWidth",null);
_.E([_.t("data.useThumbnailSize"),_.T("design:type",Object),_.T("design:paramtypes",[])],MB.prototype,"thumbnailHeight",null);_.E([_.x({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],MB);
_.r(MB,"ytd-profile-column-user-info-renderer",function(){if(P2m!==void 0)return P2m;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return P2m=l},{mode:1});var RD=function(){return _.p.apply(this,arguments)||this};
_.Z(RD,_.p);RD.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],RD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],RD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],RD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],RD.prototype,"componentStyle",void 0);_.E([_.x({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],RD);
_.r(RD,"ytd-profile-column-renderer",function(){if(BFm!==void 0)return BFm;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return BFm=l},{mode:1});var Z4=function(){var l=_.p.apply(this,arguments)||this;l.componentStyle="NON_CENTERED_PROFILE";return l};
_.Z(Z4,_.p);Z4.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Z4.prototype.getIcon=function(l){return l?"settings:"+l.toLowerCase():null};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Z4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Z4.prototype,"data",void 0);_.E([_.x({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Z4);
_.r(Z4,"ytd-page-introduction-renderer",function(){if(Wg1!==void 0)return Wg1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Wg1=l},{mode:1});var bgr;var eg=function(){return _.p.apply(this,arguments)||this};
_.Z(eg,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],eg.prototype,"data",void 0);_.E([_.x({is:"ytd-report-description-renderer",disableElementRegistration:!0})],eg);
_.r(eg,"ytd-report-description-renderer",function(){if(bgr!==void 0)return bgr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return bgr=l},{mode:1});var g58;var ueg;var m_=function(){return _.p.apply(this,arguments)||this};
_.Z(m_,_.p);m_.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],m_.prototype,"data",void 0);_.E([_.x({is:"ytd-video-report-renderer",disableElementRegistration:!0})],m_);
_.r(m_,"ytd-video-report-renderer",function(){if(ueg!==void 0)return ueg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ueg=l},{mode:1});var v5r;_.RL("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.RL("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var aD=function(){return _.p.apply(this,arguments)||this};
_.Z(aD,_.p);aD.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]]"}}}}}};
aD.prototype.computeMessageStyle=function(l){return l};
aD.prototype.computeButtonOverride=function(l){var D;if((l==null?0:(D=l.style)==null?0:D.value)&&l.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],aD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],aD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aD.prototype,"shelf",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aD.prototype,"panel",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.T("design:type",Boolean)],aD.prototype,"componentStyle",void 0);_.E([_.K({computed:"computeButtonOverride(data)"}),_.T("design:type",Object)],aD.prototype,"buttonOverride",void 0);_.E([_.x({is:"ytd-message-renderer",disableElementRegistration:!0})],aD);
_.r(aD,"ytd-message-renderer",function(){if(v5r!==void 0)return v5r;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return v5r=l},{mode:1});var t5=function(){return _.p.apply(this,arguments)||this};
_.Z(t5,_.p);t5.prototype.configureRendererStamper=function(){return{"data.reportHistorySectionRenderers":{id:"items",mapping:{videoReportRenderer:"ytd-video-report-renderer"}},"data.header":{id:"header",mapping:{reportHistorySectionHeaderRenderer:"ytd-report-history-section-header-renderer"}},"data.table":{id:"history-table",mapping:{tableRenderer:"ytd-table-renderer",messageRenderer:"ytd-message-renderer"}}}};
t5.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
t5.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.QP.Object.defineProperties(t5.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var l,D;return!!(((l=this.data)==null?0:l.header)&&((D=this.data)==null?0:D.table))}}});
t5.prototype.onRequestError=t5.prototype.onRequestError;_.E([_.m(_.vf),_.T("design:type",Object)],t5.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],t5.prototype,"data",void 0);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],t5.prototype,"isUnifiedReportHistory",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],t5.prototype,"onRequestError",null);_.E([_.x({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],t5);
_.r(t5,"ytd-report-history-section-renderer",function(){if(g58!==void 0)return g58;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return g58=l},{mode:1});var QQy;var X3=function(){var l=_.p.apply(this,arguments)||this;l.answerExpanded=!1;return l};
_.Z(X3,_.p);X3.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],X3.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],X3.prototype,"answerExpanded",void 0);_.E([_.x({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],X3);
_.r(X3,"ytd-handles-claiming-faq-renderer",function(){if(QQy!==void 0)return QQy;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return QQy=l},{mode:1});var GXh;var Jnk=function(){return _.p.apply(this,arguments)||this};
_.Z(Jnk,_.p);_.E([_.K(),_.T("design:type",Object)],Jnk.prototype,"data",void 0);_.E([_.x({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],Jnk);
_.r(Jnk,"ytd-handles-claiming-faq-section-renderer",function(){if(GXh!==void 0)return GXh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return GXh=l},{mode:1});var Lg7;var Sg=function(){var l=_.p.apply(this,arguments)||this;l.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";l.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";l.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";l.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";l.leftSquiggly=l.leftSquigglyLight;l.rightSquiggly=l.rightSquigglyLight;
l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};l.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return l};
_.Z(Sg,_.p);_.W=Sg.prototype;_.W.updateLeftSquigglyStyle=function(){_.Wg(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.W.updateRightSquigglyStyle=function(){_.Wg(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.W.ready=function(){var l=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(l)};
_.W.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.set("isDarkTheme",l),l?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.W.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Sg.prototype.updateRightSquigglyStyle=Sg.prototype.updateRightSquigglyStyle;Sg.prototype.updateLeftSquigglyStyle=Sg.prototype.updateLeftSquigglyStyle;_.E([_.K(),_.T("design:type",Object)],Sg.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],Sg.prototype,"isDarkTheme",void 0);_.E([_.K(),_.T("design:type",String)],Sg.prototype,"leftSquiggly",void 0);_.E([_.K(),_.T("design:type",String)],Sg.prototype,"rightSquiggly",void 0);
_.E([_.Pg("leftSquiggly"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Sg.prototype,"updateLeftSquigglyStyle",null);_.E([_.Pg("rightSquiggly"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Sg.prototype,"updateRightSquigglyStyle",null);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Sg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Sg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Sg.prototype,"actionButtonOverride",void 0);_.E([_.x({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Sg);
_.r(Sg,"ytd-handles-claiming-header-renderer",function(){if(Lg7!==void 0)return Lg7;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Lg7=l},{mode:1});var qbg;var ke=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};l.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";l.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";l.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";l.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
l.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";l.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";l.image0SquigglyBackground=l.image0LightSquigglyBackground;l.image1SquigglyBackground=l.image1LightSquigglyBackground;l.image3SquigglyBackground=l.image3LightSquigglyBackground;return l};
_.Z(ke,_.p);_.W=ke.prototype;_.W.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.W.onDataChanged=function(){this.updateTitleAndImages()};
_.W.onThemeChanged=function(){this.updateTitleAndImages()};
_.W.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.isDarkTheme=l)};
_.W.updateImage0SquigglyBackground=function(){_.Wg(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.W.updateImage1SquigglyBackground=function(){_.Wg(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.W.updateImage3SquigglyBackground=function(){_.Wg(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.W.updateTitleAndImages=function(){var l,D;((l=this.data)==null?void 0:(D=l.titleImages)==null?void 0:D.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))};
ke.prototype.updateImage3SquigglyBackground=ke.prototype.updateImage3SquigglyBackground;ke.prototype.updateImage1SquigglyBackground=ke.prototype.updateImage1SquigglyBackground;ke.prototype.updateImage0SquigglyBackground=ke.prototype.updateImage0SquigglyBackground;ke.prototype.onThemeChanged=ke.prototype.onThemeChanged;ke.prototype.onDataChanged=ke.prototype.onDataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],ke.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],ke.prototype,"isDarkTheme",void 0);_.E([_.K(),_.T("design:type",Object)],ke.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],ke.prototype,"title0",void 0);_.E([_.K(),_.T("design:type",Object)],ke.prototype,"title1",void 0);_.E([_.K(),_.T("design:type",Object)],ke.prototype,"title2",void 0);_.E([_.K(),_.T("design:type",Object)],ke.prototype,"title3",void 0);
_.E([_.K(),_.T("design:type",Object)],ke.prototype,"title4",void 0);_.E([_.K(),_.T("design:type",Object)],ke.prototype,"image0",void 0);_.E([_.K(),_.T("design:type",Object)],ke.prototype,"image1",void 0);_.E([_.K(),_.T("design:type",Object)],ke.prototype,"image2",void 0);_.E([_.K(),_.T("design:type",Object)],ke.prototype,"image3",void 0);_.E([_.K(),_.T("design:type",Object)],ke.prototype,"image4",void 0);_.E([_.K(),_.T("design:type",String)],ke.prototype,"image0SquigglyBackground",void 0);
_.E([_.K(),_.T("design:type",String)],ke.prototype,"image1SquigglyBackground",void 0);_.E([_.K(),_.T("design:type",String)],ke.prototype,"image3SquigglyBackground",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ke.prototype,"onDataChanged",null);_.E([_.Pg("isDarkTheme"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ke.prototype,"onThemeChanged",null);
_.E([_.Pg("image0SquigglyBackground"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ke.prototype,"updateImage0SquigglyBackground",null);_.E([_.Pg("image1SquigglyBackground"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ke.prototype,"updateImage1SquigglyBackground",null);
_.E([_.Pg("image3SquigglyBackground"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ke.prototype,"updateImage3SquigglyBackground",null);_.E([_.x({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],ke);
_.r(ke,"ytd-handles-claiming-title-images-section-renderer",function(){if(qbg!==void 0)return qbg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return qbg=l},{mode:1});var MAz;var d_=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(d_,_.p);d_.prototype.ready=function(){var l=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(l)};
d_.prototype.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&this.set("isDarkTheme",l)};
d_.prototype.onCopyButtonClick=function(){var l=this,D,U,n;return _.P(function(y){return(D=l.data)!=null&&D.primaryChannelUrl?y.yield(navigator.clipboard.writeText(((U=l.data)==null?0:U.encodedChannelUrl)?l.data.encodedChannelUrl:"https://"+_.Nl((n=l.data)==null?void 0:n.primaryChannelUrl)),0):y.jumpTo(0)})};
_.E([_.K(),_.T("design:type",Object)],d_.prototype,"data",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],d_.prototype,"ytComponentBehavior",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],d_.prototype,"isDarkTheme",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],d_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.x({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],d_);
_.r(d_,"ytd-handles-claiming-update-social-renderer",function(){if(MAz!==void 0)return MAz;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return MAz=l},{mode:1});var RY7;var KO=function(){var l=_.p.apply(this,arguments)||this;l.JSC$16255_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";l.JSC$16255_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};l.squigglyBackground=l.JSC$16255_squigglyBackgroundLight;return l};
_.Z(KO,_.p);KO.prototype.updateSquigglyBackgroundStyle=function(){_.Wg(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
KO.prototype.ready=function(){var l=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",l);this.squigglyBackground=l?this.JSC$16255_squigglyBackgroundDark:this.JSC$16255_squigglyBackgroundLight};
KO.prototype.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.set("isDarkTheme",l),this.squigglyBackground=l?this.JSC$16255_squigglyBackgroundDark:this.JSC$16255_squigglyBackgroundLight)};
KO.prototype.updateSquigglyBackgroundStyle=KO.prototype.updateSquigglyBackgroundStyle;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],KO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],KO.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],KO.prototype,"isDarkTheme",void 0);_.E([_.K(),_.T("design:type",String)],KO.prototype,"squigglyBackground",void 0);_.E([_.Pg("squigglyBackground"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],KO.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.x({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],KO);
_.r(KO,"ytd-handles-claiming-vanity-info-renderer",function(){if(RY7!==void 0)return RY7;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return RY7=l},{mode:1});var Zgz;var cx=function(){var l=_.p.apply(this,arguments)||this;l.JSC$16258_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";l.JSC$16258_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";l.squigglyBackground=l.JSC$16258_squigglyBackgroundLight;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(cx,_.p);_.W=cx.prototype;_.W.ready=function(){var l=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(l)};
_.W.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.set("isDarkTheme",l),this.squigglyBackground=l?this.JSC$16258_squigglyBackgroundDark:this.JSC$16258_squigglyBackgroundLight)};
_.W.updateSquigglyBackgroundStyle=function(){_.Wg(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.W.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.W.detached=function(){this.stop()};
_.W.stop=function(){this.playerElement.stop()};
_.W.setupVideoPlayer=function(){var l=this,D,U;return _.P(function(n){D=l.data.videoId;U="http://i1.ytimg.com/vi/"+D+"/maxresdefault.jpg";l.playerElement.loadVideoWithPlayerVars({video_id:D,iurlhq:U});_.Kz(n)})};
cx.prototype.onDataChanged=cx.prototype.onDataChanged;cx.prototype.updateSquigglyBackgroundStyle=cx.prototype.updateSquigglyBackgroundStyle;_.E([_.K({value:!1}),_.T("design:type",Boolean)],cx.prototype,"isDarkTheme",void 0);_.E([_.K(),_.T("design:type",String)],cx.prototype,"squigglyBackground",void 0);_.E([_.gP("#player"),_.T("design:type",Object)],cx.prototype,"playerElement",void 0);_.E([_.K(),_.T("design:type",Object)],cx.prototype,"data",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],cx.prototype,"ytActionHandlerBehavior",void 0);_.E([_.Pg("squigglyBackground"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],cx.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],cx.prototype,"onDataChanged",null);
_.E([_.x({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],cx);
_.r(cx,"ytd-handles-claiming-video-item-renderer",function(){if(Zgz!==void 0)return Zgz;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Zgz=l},{mode:1});var eYr;var xe=function(){var l=_.vg.apply(this,arguments)||this;l.dragging=!1;l.dragMouseStart=0;l.dragOffsetStart=0;l.containerWidthDiff=0;l.boundPrevClick=function(){l.set("offset",pO(l,l.offset-(l.scrollDistance||320)))};
l.boundNextClick=function(){l.set("offset",pO(l,l.offset+(l.scrollDistance||320)))};
l.boundScrollContainerMouseDown=function(D){l.dragMouseStart=D.clientX;l.dragOffsetStart=l.offset;l.dragging=!0};
l.boundScrollContainerDrag=function(D){l.dragging&&l.set("offset",pO(l,l.dragOffsetStart-(D.clientX-l.dragMouseStart)))};
l.boundMouseUp=function(){l.onMouseUp()};
l.boundWheelScroll=function(D){var U=0;Math.abs(D.deltaX)>=Math.abs(D.deltaY)?U=D.deltaX:D.shiftKey&&(U=D.deltaY);U!==0&&(l.offset+=U,D.stopPropagation(),D.preventDefault())};
l.boundChipCloudChipScrollIntoView=function(D){(D=D.detail)&&l.scrollChipIntoView(D)};
return l};
_.Z(xe,_.vg);xe.prototype.attached=function(){var l=_.iJ(this.hostElement).querySelector("#scroll-container");l.addEventListener("wheel",this.boundWheelScroll);l.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);l.style.touchAction="pan-y";l.addEventListener("pointerdown",this.boundScrollContainerMouseDown);l.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
xe.prototype.detached=function(){var l=_.iJ(this.hostElement).querySelector("#scroll-container");l.removeEventListener("wheel",this.boundWheelScroll);l.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);l.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);l.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
xe.prototype.reset=function(){this.set("offset",0);_.u6(this,this.setContainerWidthDiff);_.u6(this,this.setButtonsState)};
var pO=function(l,D){return Math.min(Math.max(D,0),l.containerWidthDiff)};
_.W=xe.prototype;_.W.onMouseUp=function(){this.dragging=!1};
_.W.transformContainer=function(){this.offset=pO(this,this.offset);var l=_.H3("HTML_DIR")==="rtl"?"":"-";_.iJ(this.hostElement).querySelector("#chips").style.transform="translateX("+l+this.offset+"px)";_.u6(this,this.setButtonsState)};
_.W.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=pO(this,this.offset));this.atStart=this.offset<=0};
_.W.setContainerWidthDiff=function(){var l=_.iJ(this.hostElement).querySelector("#scroll-container"),D=_.iJ(this.hostElement).querySelector("#chips");l&&D&&(this.containerWidthDiff=D.clientWidth-l.clientWidth)};
_.W.scrollChipIntoView=function(l){var D=_.iJ(this.hostElement).querySelector("#scroll-container");if(D){var U=this.atStart?0:106,n=this.atEnd?0:106;l.offsetLeft<this.offset+U?this.offset=pO(this,l.offsetLeft-U):l.offsetLeft+l.clientWidth>this.offset+D.clientWidth-n&&(this.offset=pO(this,l.offsetLeft+l.clientWidth+n-D.clientWidth))}};
xe.prototype.transformContainer=xe.prototype.transformContainer;_.E([_.K({value:0}),_.T("design:type",Number)],xe.prototype,"offset",void 0);_.E([_.K({value:!0,reflectToAttribute:!0}),_.T("design:type",Boolean)],xe.prototype,"atStart",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],xe.prototype,"atEnd",void 0);_.E([_.K(),_.T("design:type",Number)],xe.prototype,"scrollDistance",void 0);
_.E([_.Pg("offset"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xe.prototype,"transformContainer",null);_.E([_.Qj()],xe);var mbz;var atm;_.jg=_.w(function(l){var D=l.data;l=_.B(_.aw(!1,void 0,"bob3J"));var U=l.next().value,n=l.next().value;l=function(A){if((D==null?void 0:D().state)!==1){var C,h;(h=(C=D()).onTap)==null||h.call(C,A)}};
var y={};return _.g("chip-shape",{class:"ytChipShapeHost","on:focusin":_.n0(function(){var A=_.Jc().resolve(_.G8(_.L$));if(A){n(A.isKeyBoardInUse());var C,h;(h=(C=D()).onFocusIn)==null||h.call(C)}return!1}),
"on:focusout":_.n0(function(){n(!1);return!1})},_.g(tAg,{shouldWrapInButton:function(){return D().type!==2},
selected:function(){return D().state===0},
onClick:l,isDropdown:function(){return D().type===1},
accessibilityLabel:function(){return D().type===1?void 0:D().accessibilityLabel}},_.g("div",{class:_.DV("ytChipShapeChip",function(){a:switch(D==null?void 0:D().state){case 0:var A="ytChipShapeActive";
break a;case 1:A="ytChipShapeDisabled";break a;default:A="ytChipShapeInactive"}return A},function(){var A=D().type===1||D().type===2,C=D();
return A||C!=null&&C.startIcon?C==null||!C.startIcon||C!=null&&C.text?A?"ytChipShapeEndIconPadding":(C==null?0:C.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var A=D();
if((A==null?void 0:A.style)===0&&(A==null?void 0:A.state)===0){var C;A=((C=_.Jc().resolve(_.G8(_.jQ)))==null?0:C())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else A="";return A},(y.ytChipShapeFocused=function(){var A;
return U()&&((A=D())==null?void 0:A.state)!==1},y))},_.g(_.v,{cond:function(){return D().startIcon},
then:function(){return _.g(_.C0,{icon:function(){var A;return(A=D())==null?void 0:A.startIcon},
className:_.DV(function(){return D().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var A=D(),C,h=(C=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:C();
return(A==null?void 0:A.style)===0&&(A==null?void 0:A.state)===0&&h?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return D().text},_.g(XMy,{shape:D,
onClick:l}),_.g(_.MO,{model:{borderRadius:"8px"}}))))},"Lc");
_.jg.idomCompat=!0;var tAg=_.w(function(l){var D=_.n0(function(U){l.onClick(U);return!1});
return _.g(_.v,{cond:l.shouldWrapInButton,then:function(){return _.g("button",{class:"ytChipShapeButtonReset","on:click":D,role:function(){return l.isDropdown()?"combobox":"tab"},
"aria-label":l.accessibilityLabel,"aria-selected":l.selected},l.children)},
else:function(){return l.children}})},"Mc"),XMy=_.w(function(l){var D=l.shape;
var U=l.onClick;var n=_.n0(function(y){U(y);return!1});
return _.g(_.rt,null,_.g(_.F2,{when:function(){return D().type===1}},function(){return _.g(_.C0,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.g(_.F2,{when:function(){return D().type===2}},function(){return _.g("button",{class:"ytChipShapeButtonReset",
"on:click":n},_.g(_.C0,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.g(_.F2,{when:function(){return D().type===0}},function(){return _.g(_.GZ,null)}))},"Nc");_.Tt(_.jg,"chip-shape",{props:{data:_.C$}});var F3=function(){var l=_.p.apply(this,arguments)||this;l.disableDeselectEvent=!1;l.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return l};
_.Z(F3,_.p);_.W=F3.prototype;_.W.onSelectChipCommand=function(l){if(!this.selected&&this.data&&(l=_.M(l,WRH),l.targetId&&l.targetId===this.data.targetId))this.onTap()};
_.W.onFilterChipTransformCommand=function(l){if(!this.selected&&this.data){var D;(l=(D=_.M(l,lWm))==null?void 0:D.chipUniqueId)&&l===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.W.dataChanged=function(){var l=this;_.u6(this,function(){l.data&&l.data.isSelected&&!l.selected&&(l.scrollChipIntoView(),l.onTap())})};
_.W.computeChipStyle=function(l){return l!=null?l:"STYLE_DEFAULT"};
_.W.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Vh(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Vh(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.W.onFocus=function(){var l=_.Jc().resolve(_.G8(_.L$));l&&l.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.W.scrollChipIntoView=function(){_.O9(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.QP.Object.defineProperties(F3.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return wWg({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
F3.prototype.onFocus=F3.prototype.onFocus;F3.prototype.onTap=F3.prototype.onTap;F3.prototype.dataChanged=F3.prototype.dataChanged;_.E([_.m(_.FH),_.T("design:type",Object)],F3.prototype,"ironButtonState",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],F3.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],F3.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.pi),_.T("design:type",Object)],F3.prototype,"ironA11yKeysBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],F3.prototype,"disableDeselectEvent",void 0);_.E([_.K(),_.T("design:type",Object)],F3.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.icon"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],F3.prototype,"hasIcon",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data.uniqueId"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],F3.prototype,"isGnomeChip",null);_.E([_.K({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.T("design:type",String)],F3.prototype,"chipStyle",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],F3.prototype,"selected",void 0);
_.E([_.t("data","selected"),_.T("design:type",Object),_.T("design:paramtypes",[])],F3.prototype,"chipShapeData",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],F3.prototype,"dataChanged",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],F3.prototype,"onTap",null);
_.E([_.hj("focus"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],F3.prototype,"onFocus",null);_.E([_.S0({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],F3);
_.r(F3,"yt-chip-cloud-chip-renderer",function(){if(atm===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;mbz===void 0&&(mbz=document.createElement("template"));var n=mbz;U.call(D,n.content.cloneNode(!0),l.content.firstChild);atm=l}l=atm;return l},{mode:2});var fGB=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Sb7=_.w(function(l){function D(){if(fGB.has(l.data().displayType)){var u=!n(),Q;if((Q=l.disableDeselection)==null||!Q.call(l)||u){l.data().selected=u;Q=Object.assign({},C(),{selected:u});h(Q);var G;(G=l.callback)==null||G.call(l,Q,u)}}}
var U=_.bP("chip-view-model"),n=function(){var u,Q;return!!(((u=l.selected)==null?void 0:u.call(l))!==void 0?(Q=l.selected)==null?0:Q.call(l):C().selected)},y=_.B(_.WK(l.data)),A=y.next().value;
y=y.next().value;var C=A,h=y,b=_.Pr(zTg,function(){return l.data().chipEntityKey||""});
return _.g("chip-view-model",{class:"ytChipViewModelHost",el:U},_.g(_.jg,{data:function(){var u,Q=Object.assign({},C(),{selected:n()}),G=b(),J=(u=l.disableDeselection)==null?void 0:u.call(l);a:switch(Q.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":u=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":u=3;break a;default:u=0}return{text:(G==null?void 0:G.text)||Q.text,state:Q.disabled?1:Q.selected?0:2,type:u,onTap:$5l(Q,U,D,
J),accessibilityLabel:Q.accessibilityLabel||Q.text}}}))},"Oc");
_.Sb7.idomCompat={callbacks:{callback:!0}};_.oD=_.w(function(l){var D=l.data;var U=l.callback;var n=l.selectionBehavior;var y=l.disableChipsScrollAnimation;var A=_.gm("div");l=_.B(_.aw(!0,void 0,"aUEsOc"));var C=l.next().value,h=l.next().value;l=_.B(_.aw(!1,void 0,"V0aKld"));var b=l.next().value,u=l.next().value,Q=!1,G=0;_.$g(function(){h(R());u(a())});
l=_.B(_.WK(function(){var iG={};return D().autoselectedChipIndex!=null?(iG[D().autoselectedChipIndex]=!0,iG):{}}));
var J=l.next().value,L=l.next().value,R=function(){var iG=A.value;return iG==null||iG.scrollLeft-1<=0},a=function(){var iG=A.value;
return iG==null?!1:iG.scrollLeft+1>=(iG==null?NaN:iG.scrollWidth)-(iG==null?NaN:iG.clientWidth)},S=function(){return D().isHorizontallyScrollable},d=function(iG){A.value!=null&&(_.H3("HTML_DIR")==="rtl"&&(iG=-iG),A.value.scrollBy({left:iG,
behavior:(y==null?0:y())?"instant":"smooth"}))},c=function(){d(-320)},N=function(){d(320)},z=_.n0(function(iG){Q=!0;
G=iG.clientX}),f=_.n0(function(iG){if(Q){iG=iG.clientX;
var CC=iG-G;G=iG;var vo;(vo=A.value)==null||vo.scrollBy({left:-CC})}}),I=_.n0(function(){var iG=R(),CC=a();
iG!==C()&&h(iG);CC!==b()&&u(CC)});
_.QE("pointerup",function(){Q&&(Q=!1)});
return _.g("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.g(_.dR,{contentId:function(){return D().contentId},
useModernStyle:!0},function(){var iG={},CC={};return _.g("div",null,_.g(_.v,{cond:function(){return D().title},
then:function(){return _.g("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.g("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return D().title}),_.g(_.uI,{data:function(){return D().overflowButton}},{buttonViewModel:_.t9}))}}),_.g("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.g(_.v,{cond:function(){return D().previousButton},
then:function(){var vo={};return _.g("div",{class:_.DV("ytChipsShelfViewModelLeftArrowContainer",(vo.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return C()},vo))},_.g(_.uI,{data:function(){return D().previousButton}},{buttonViewModel:function(td){return _.g(_.t9,{data:td.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:c})}}))}}),_.g("div",{el:A,
"on:pointerdown":z,"on:pointermove":f,"on:scroll":I,class:_.DV("ytChipsShelfViewModelChipsScrollContainer",(iG.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=S,iG))},_.g("div",{class:_.DV("ytChipsShelfViewModelChipsContainer",(CC.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=S,CC.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,CC)),role:"tablist"},_.g(_.uI,{data:function(){return D().contents}},{chipViewModel:function(vo,td){return _.g("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.g(_.Sb7,{data:vo.data,
callback:function(GN,Ms){var j3=td(),wl,zN=(wl=n==null?void 0:n())!=null?wl:0;zN===1||zN===2?(wl={},L((wl[j3]=Ms,wl))):(wl={},L(Object.assign({},J(),(wl[j3]=Ms,wl))));U==null||U(GN,Ms,j3)},
disableDeselection:function(){return(n==null?void 0:n())===1},
selected:function(){return!!J()[td()]}}))}}))),_.g(_.v,{cond:function(){return D().nextButton},
then:function(){var vo={};return _.g("div",{class:_.DV("ytChipsShelfViewModelRightArrowContainer",(vo.ytChipsShelfViewModelRightArrowContainerIsHidden=b,vo))},_.g(_.uI,{data:function(){return D().nextButton}},{buttonViewModel:function(td){return _.g(_.t9,{data:td.data,
className:"ytChipsShelfViewModelRightArrow",onClick:N})}}))}})))}))},"Qc");
_.oD.idomCompat={callbacks:{callback:!0}};var kX5=_.w(function(l){var D=l.data;var U=l.showChips;var n=l.isUpdateInProgress;var y=function(){return U()&&!n()};
l={};return _.g("ytd-ai-response-box-view-model",{class:_.DV("ytdAiResponseBoxViewModelHost")},_.g("div",{class:_.DV("ytdAiResponseBoxViewModelResponseMessageContainer",(l.ytdAiResponseBoxViewModelResponseMessageContainerHidden=y,l))},_.g(_.v,{cond:n,then:function(){return _.g("div",null,_.g(_.BO,{text:function(){return D().responsePendingMessage}}))},
else:function(){return _.g(_.GZ,null,_.g(_.v,{cond:function(){var A;return(A=D().responseMessageIcon)==null?void 0:A.iconType},
then:function(A){return _.g("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.g(_.C0,{icon:A}))}}),_.g("div",null,_.g(_.BO,{text:function(){return D().responseMessage}})))}})),_.g(_.uI,{data:function(){return D().chipsShelf}},{chipsShelfViewModel:function(A){A=A.data;
var C={};return _.g("div",{class:_.DV("ytdAiResponseBoxViewModelChipsShelfContainer",(C.ytdAiResponseBoxViewModelChipsShelfContainerShown=y,C))},_.g(_.oD,{data:A}))}}))},"Rc");var dbk;dbk=Object.assign({},{continuation:$By,download:jD1,canvas:gO_,reportChannelAbuse:HOy,ui:vO9,share:Y_y,talkToRecs:iV1,watch:Up,ypc:A2y,radioButtonGroup:F4N,collabInviteLink:x2c},f41,{voiceSearch:JYN,shorts:D2});_.w_=eZ(dbk);_.KgH=m8(_.w_);_.cn1=(0,_.KgH)(_.w_.talkToRecs,{talkToRecsStateSelector:function(l){return l}});_.Tt(_.w(function(l){var D=_.B((0,_.OWm)(l.data)).next().value,U=_.B(rDo()),n=U.next().value;U=U.next().value;var y=_.gf(_.cn1.talkToRecsStateSelector),A=_.B(_.WK(function(){var N,z,f;return(f=(z=sXc(D(),y()))!=null?z:(N=D().textInputValue)==null?void 0:N.content)!=null?f:""})),C=A.next().value,h=A.next().value;
A=_.B(_.aw(!1,void 0,"c7rlLe"));var b=A.next().value,u=A.next().value;A=_.B(_.aw(!1,void 0,"jmnkf"));var Q=A.next().value,G=A.next().value;_.N1(function(){var N=D().onVisible;N&&_.dh(N,{})});
var J=_.n0(function(){u(!0)});
_.$i(function(){D()&&(u(!1),G(!1))},"Aq2H4e");
var L=function(N){var z=D().onUpdateText;z&&_.dh(z,{form:{userQuery:N}})},R=_.e8(function(N){L(N)},150),a=_.n0(function(N){N=N.target.value.trim();
h(N);R(N);return!1});
_.$i(function(){var N=sXc(D(),y());N&&N!==C()&&h(N)},"jerE");
var S=function(){G(!0)},d=_.n0(function(N){if(N.key==="Enter"){L(N.target.value.trim());
var z=_.M(D().submitButton,_.CM);N=void 0;var f;if(z==null?0:(f=z.loggingDirectives)==null?0:f.trackingParams)N=_.v9(z.loggingDirectives.trackingParams);if(f=z==null?void 0:z.onTap)_.dh(f,{clickedVisualElement:N}),S()}return!1}),c=_.n0(function(){n("yt-feed-customization-scroll-up")});
return _.g("ytd-feed-customization-form-view-model",{class:"ytdFeedCustomizationFormViewModelHost",el:_.fe(U)},_.g(_.v,{cond:function(){var N,z;return!((z=(N=l.isCollapsed)==null?void 0:N.call(l))!=null&&z)},
then:function(){return _.g("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer"},_.g("div",{class:"ytdFeedCustomizationFormViewModelInputContainer"},_.g("input",{class:"ytdFeedCustomizationFormViewModelInput",type:"text",placeholder:function(){var N;return(N=D().textInputPlaceholder)==null?void 0:N.content},
"prop:value":C,"on:focus":J,"on:input":a,"on:keyup":d,maxlength:250}),_.g(_.v,{cond:function(){return!!C()},
then:function(){return _.g(_.uI,{data:function(){return D().clearButton}},{buttonViewModel:function(N){return _.g("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.g(_.t9,{data:N.data}))}})}}),_.g(_.v,{cond:function(){return Q()},
then:function(){return _.g(_.uI,{data:function(){return D().inProgressButton}},{buttonViewModel:function(N){return _.g("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.g(_.t9,{data:N.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.g(_.uI,{data:function(){return D().submitButton}},{buttonViewModel:function(N){return _.g("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.g(_.t9,{data:N.data,
onClick:S}))}})}}),_.g(_.uI,{data:function(){return D().menuButton}},{buttonViewModel:function(N){return _.g("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.g(_.t9,{data:N.data}))}})),_.g(_.uI,{data:function(){return D().contents}},{aiResponseBoxViewModel:function(N){return _.g("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.g(kX5,{data:N.data,
showChips:b,isUpdateInProgress:Q}))}}))},
else:function(){return _.g("div",{class:"ytdFeedCustomizationFormViewModelCollapsedBodyContainer","on:click":c},_.g("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var N;return C()||((N=D().textInputPlaceholder)==null?void 0:N.content)}))}}))},"Uc"),"ytd-feed-customization-form-view-model",{props:{data:_.C$,
isCollapsed:_.C$}});var pMH=_.xv.persistentPanelVisibleSelector,r_=function(){var l=_.p.apply(this,arguments)||this;l.isDarkTheme=!1;l.notSticky=!1;l.transparentBackground=!1;l.shouldHide=!1;l.disableSticky=!1;l.fluidWidth=!1;l.isClipList=!1;l.defaultChipIndex=0;l.collapseFeedCustomizationForm=!1;l.isPlaylist=!1;l.playlistVotingAnimationEnabled=_.q("web_enable_voting_animation");l.toolbarHeight=0;l.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(r_,_.p);_.W=r_.prototype;
_.W.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model",properties:{isCollapsed:"[[collapseFeedCustomizationForm]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.W.attached=function(){var l=this;document.addEventListener("scroll",_.CY(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var D;this.toolbarHeight=((D=document.querySelector("ytd-masthead"))==null?void 0:D.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(U){l.handleIntersect(U)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){l.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.W.detached=function(){var l;(l=this.intersectionObserver)==null||l.disconnect();var D;(D=this.resizeObserver)==null||D.disconnect();document.removeEventListener("scroll",_.CY(this,this.updateChipBarWidthAndTop))};
_.W.dataChanged=function(){var l=this,D,U,n;((n=_.M((D=this.data)==null?void 0:(U=D.contents)==null?void 0:U[0],Ptk))==null?void 0:n.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var y=this.findSelectedChipIndex();this.selectedIndex!==y&&(this.selectedIndex=-1);_.u6(this,function(){l.selectedIndex=y;l.updateSelectedChipContent(l.selectedIndex);l.updating=!1;l.ytScrollableChipCloudBehavior.reset()})};
_.W.findSelectedChipIndex=function(){var l;if((l=this.data)==null||!l.contents)return 0;l=this.data.contents;for(var D=0;D<l.length;D++){var U=void 0;if((U=_.M(l[D],Ptk))==null?0:U.isSelected)return D}return 0};
_.W.computeStyle=function(l){return l};
_.W.handleChipCloudChipSelectAction=function(l){l=this.JSC$16298_chipsSelector.indexOf(l);l>-1&&this.JSC$16298_chipsSelector.selectIndex(l)};
_.W.updateSelectedChipContent=function(l){var D;if((D=this.data)==null||!D.contents||l<0||l>=this.data.contents.length)this.selectedChipContent=void 0;else{var U;this.selectedChipContent=(U=_.M(this.data.contents[l],Ptk))==null?void 0:U.content}};
_.W.handleChipCloudChipDeselectAction=function(){if(_.q("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var l,D,U,n=(U=_.M((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D[0],Ptk))==null?void 0:U.navigationEndpoint;n&&_.Vh(this.hostElement,"yt-browse-section-list-reload-endpoint",[n]);this.JSC$16298_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.W.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.W.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.W.onResize=function(){this.updateLayout()};
_.W.updateLayout=function(){var l=this.ytScrollableChipCloudBehavior;_.u6(l,l.setContainerWidthDiff);l=this.ytScrollableChipCloudBehavior;_.u6(l,l.setButtonsState)};
_.W.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.W.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.W.handleIntersect=function(l){this.notSticky=this.isChannelPageGrid||this.disableSticky||l[0].intersectionRatio===1};
_.W.updateDimensions=function(){var l=this.ytRendererBehavior.parentComponent;if(l){var D,U=(D=l.headerElement)!=null?D:l;_.Wg(this.hostElement,{"--ytd-rich-grid-chips-bar-width":U.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.W.updateSelectedIndexFromBinding=function(l){this.selectedIndex=l.detail.value};
_.W.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var l;(l=this.sortFilterHeaderRendererElement)==null||l.setAttribute("is-playlist-page-with-filters","")}};
_.W.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(n4m(!this.notSticky))};
_.QP.Object.defineProperties(r_.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 l,D,U=(l=this.data)==null?void 0:(D=l.contents)==null?void 0:D.find(function(n){return _.M(n,Qoz)});
return{sortFilterHeaderRenderer:_.M(U,Qoz)}}}});
r_.prototype.dispatchChipBarIsSticky=r_.prototype.dispatchChipBarIsSticky;r_.prototype.isPlaylistPageChanged=r_.prototype.isPlaylistPageChanged;r_.prototype.updateChipBarWidthAndTop=r_.prototype.updateChipBarWidthAndTop;r_.prototype.onResize=r_.prototype.onResize;r_.prototype.onPersistentPanelVisibleChanged=r_.prototype.onPersistentPanelVisibleChanged;r_.prototype.onGuideIsExpandedChanged=r_.prototype.onGuideIsExpandedChanged;r_.prototype.dataChanged=r_.prototype.dataChanged;
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],r_.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.$s),_.T("design:type",Object)],r_.prototype,"ironResizableBehavior",void 0);_.E([_.m(),_.T("design:type",xe)],r_.prototype,"ytScrollableChipCloudBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],r_.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],r_.prototype,"data",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],r_.prototype,"selectedIndex",void 0);_.E([_.K({value:320}),_.T("design:type",Number)],r_.prototype,"scrollDistance",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],r_.prototype,"isDarkTheme",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],r_.prototype,"notSticky",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],r_.prototype,"transparentBackground",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.T("design:type",String)],r_.prototype,"componentStyle",void 0);_.E([_.K({selector:_.dOg}),_.T("design:type",Boolean)],r_.prototype,"guideIsExpanded",void 0);
_.E([_.K({selector:pMH}),_.T("design:type",Boolean)],r_.prototype,"persistentPanelVisible",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],r_.prototype,"shouldHide",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],r_.prototype,"disableSticky",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],r_.prototype,"fluidWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],r_.prototype,"isClipList",void 0);
_.E([_.K(),_.T("design:type",Object)],r_.prototype,"defaultChipIndex",void 0);_.E([_.K(),_.T("design:type",Object)],r_.prototype,"selectedChipContent",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],r_.prototype,"collapseFeedCustomizationForm",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],r_.prototype,"isPlaylist",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],r_.prototype,"playlistVotingAnimationEnabled",void 0);
_.E([_.gP("#chips"),_.T("design:type",Object)],r_.prototype,"JSC$16298_chipsSelector",void 0);_.E([_.gP("ytd-sort-filter-header-renderer"),_.T("design:type",HTMLElement)],r_.prototype,"sortFilterHeaderRendererElement",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],r_.prototype,"updating",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],r_.prototype,"dataChanged",null);
_.E([_.Pg("guideIsExpanded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],r_.prototype,"onGuideIsExpandedChanged",null);_.E([_.Pg("persistentPanelVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],r_.prototype,"onPersistentPanelVisibleChanged",null);_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],r_.prototype,"onResize",null);
_.E([_.GY("isChannelPageGrid","disableSticky","data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],r_.prototype,"updateChipBarWidthAndTop",null);_.E([_.t("componentStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],r_.prototype,"isChannelPageGrid",null);_.E([_.t("componentStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],r_.prototype,"isHashtagLandingPage",null);
_.E([_.Pg("isPlaylistPage"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],r_.prototype,"isPlaylistPageChanged",null);_.E([_.t("componentStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],r_.prototype,"isPlaylistPage",null);_.E([_.t("componentStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],r_.prototype,"isDisableDeselectEvent",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],r_.prototype,"sortFilterHeaderRendererData",null);_.E([_.K({reflectToAttribute:!0,selector:_.ok9}),_.T("design:type",String)],r_.prototype,"frostedGlassMode",void 0);_.E([_.Pg("notSticky"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],r_.prototype,"dispatchChipBarIsSticky",null);_.E([_.x({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],r_);
_.r(r_,"ytd-feed-filter-chip-bar-renderer",function(){if(eYr!==void 0)return eYr;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return eYr=l},{mode:1});var xb_;var jQv=_.w(function(l){var D=l.data;var U=l.buttonIndex;var n=l.selectedIndex;var y=l.onSelect;var A=function(){return U()===n()},C=function(){var h,b;
return(b=(h=D().text)==null?void 0:h.content)!=null?b:""};
l=_.o6c();return _.g("yt-toggleable-image-button-view-model",{class:function(){var h={};h=(h.toggleableImageButtonViewModelHost=!0,h[""]=!0,h.toggleableImageButtonViewModelSemiTransparent=n()!==-1&&!A(),h);return _.MJ(h)},
tabindex:0,"aria-label":C,"aria-pressed":A,role:"button","on:keydown":l,"on:click":_.n0(function(){y(D().onSubmitCommand);return!1})},_.g(_.v,{cond:function(){return D().logo},
then:function(h){return _.g(_.rh,{data:h,className:function(){var b={};b=(b.toggleableImageButtonViewModelImage=!0,b.toggleableImageButtonViewModelCircularRadius=!(!D().backgroundColor||!D().backgroundColorDarkMode),b.toggleableImageButtonViewModelGradientRing=!!(A()&&D().backgroundColor&&D().backgroundColorDarkMode),b);return _.MJ(b)},
alt:C,useWidth:!1,style:function(){if(A()&&D().backgroundColor&&D().backgroundColorDarkMode){var b=XP(Number(D().backgroundColorDarkMode),"1");var u=XP(Number(D().backgroundColor),"1");b="background: linear-gradient(180deg,"+b+","+u+") border-box;"}else b="";return b}})}}),_.g(_.MO,{model:{borderRadius:"16px"}}),_.g("p",{class:function(){var h={};
h=(h.toggleableImageButtonViewModelLabel=!0,h.toggleableImageButtonViewModelBoldText=A(),h);return _.MJ(h)}},_.g(_.BO,{text:function(){return D().text}})))},"Vc");
jQv.idomCompat=!0;var o57=_.w(function(l){var D=l.data;l=_.B(_.aw({index:-1,command:{}},void 0,"GM3umb"));var U=l.next().value,n=l.next().value;return _.g("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.g("div",{class:"nudgeFormViewModelFormOptions"},_.g(_.uI,{data:function(){return D().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(y,A){return _.g(jQv,{data:y.data,buttonIndex:A,selectedIndex:function(){return U().index},
onSelect:function(C){n({index:A(),command:C})}})}})),_.g(_.BO,{text:function(){return D().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.g("div",{class:"nudgeFormViewModelSubmit"},_.g(_.uI,{data:function(){return D().submitButton}},{buttonViewModel:function(y){return _.g(Fgv,{data:y.data,
isDisabled:function(){return U().index===-1},
onClick:function(){_.dh(U().command)}})}})))},"Wc");
o57.idomCompat=!0;var Fgv=_.w(function(l){var D=_.dM(function(){return Object.assign({},l.data(),{state:l.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.g(_.t9,{data:D,onClick:l.onClick})},"Xc");_.Tt(o57,"yt-nudge-form-view-model",{props:{data:_.C$}});var zS=function(){var l=_.p.apply(this,arguments)||this;l.roundedContainer=!0;l.buttonUpdate=_.q("web_modern_buttons");l.isDarkMode=!1;l.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return l};
_.Z(zS,_.p);_.W=zS.prototype;_.W.computeNudgeStyle=function(l){return l?"modernized-nudge":""};
_.W.handleDarkModeToggledAction=function(l){this.isDarkMode=l};
_.W.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.W.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"}}}};
_.W.computeIsHorizontalButtons=function(l){return l?!!l.applyModernizedStyle&&!!l.enableHorizontalButtons&&!!l.secondaryButton:!1};
_.QP.Object.defineProperties(zS.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=(l=this.data)==null?void 0:l.backgroundStyle)!=null?D:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=(l=this.data)==null?void 0:l.contentsLocation)!=null?D:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null?0:l.lightIconImage)}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],zS.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],zS.prototype,"actionHandlerBehavior",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("isHideEnclosingAction"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],zS.prototype,"isHidden",null);_.E([_.K(),_.T("design:type",Object)],zS.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],zS.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],zS.prototype,"buttonUpdate",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.T("design:type",String)],zS.prototype,"nudgeStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.trimStyle"),_.T("design:type",String),_.T("design:paramtypes",[])],zS.prototype,"trimStyle",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.backgroundStyle"),_.T("design:type",String),_.T("design:paramtypes",[])],zS.prototype,"backgroundStyle",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data.contentsLocation"),_.T("design:type",String),_.T("design:paramtypes",[])],zS.prototype,"contentsLocation",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.disableDropShadow"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],zS.prototype,"noShadow",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.lightIconImage"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],zS.prototype,"noIcon",null);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.T("design:type",Boolean)],zS.prototype,"isHorizontalButtons",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Object)],zS.prototype,"isDarkMode",void 0);_.E([_.x({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],zS);
_.r(zS,"ytd-feed-nudge-renderer",function(){if(xb_!==void 0)return xb_;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return xb_=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var wMk;var rn7;var fO=function(){var l=_.p.apply(this,arguments)||this;l.collapsed=!1;l.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return l};
_.Z(fO,_.p);fO.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"}}}};
fO.prototype.handleRatingSelect=function(){var l;((l=this.data)==null?0:l.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
fO.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],fO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],fO.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],fO.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.U3),_.T("design:type",Object)],fO.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fO.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fO.prototype,"collapsed",void 0);_.E([_.x({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],fO);
_.r(fO,"ytd-slimline-survey-renderer",function(){if(rn7!==void 0)return rn7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return rn7=l},{mode:1});var zYy;var $e=function(){return _.p.apply(this,arguments)||this};
_.Z($e,_.p);$e.prototype.maybeGetBackgroundColor=function(l){return this.isDarkMode?l.section2Color:l.section3Color};
$e.prototype.colorPaletteChanged=function(){var l=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;l&&(l==null?0:l.secondaryTitleColor)&&this.maybeGetBackgroundColor(l)?(this.hostElement.style.backgroundColor=_.an(this.maybeGetBackgroundColor(l)),this.hostElement.style.color=_.an(l.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
$e.prototype.colorPaletteChanged=$e.prototype.colorPaletteChanged;_.E([_.m(_.l5),_.T("design:type",Object)],$e.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$e.prototype,"data",void 0);_.E([_.K({selector:function(l){return l.ui.darkModeIsEnabled}}),
_.T("design:type",Boolean)],$e.prototype,"isDarkMode",void 0);_.E([_.K(),_.T("design:type",Object)],$e.prototype,"lightColorPalette",void 0);_.E([_.K(),_.T("design:type",Object)],$e.prototype,"darkColorPalette",void 0);_.E([_.Pg("darkColorPalette","lightColorPalette","data","isDarkMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$e.prototype,"colorPaletteChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],$e);
_.r($e,"ytd-endorsement-header-renderer",function(){if(zYy!==void 0)return zYy;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return zYy=l},{mode:1});_.Tt(_.lX,"yt-decorated-avatar-view-model",{props:{data:_.C$,className:_.C$}});_.NB=new _.A7("VIEW_TRANSITION_MANAGER_TOKEN");var s_=function(){var l=_.p.apply(this,arguments)||this;l.fullHeight=_.q("web_rich_grid_media_full_height");l.showChannelAvatar=!0;l.hasPlaylistThumbnail=!1;l.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};l.registerThumbnailForPageTransition=function(){_.q("web_thumbnail_to_watch_transition")&&_.ft5(_.Jc().resolve(_.NB),l.thumbnail)};
return l};
_.Z(s_,_.p);_.W=s_.prototype;
_.W.configureRendererStamper=function(){return{lazyLoadMenu:wg,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"}}}};
_.W.attached=function(){this.updateInlinePreviewHoverListeners()};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.shouldLazyLoadMenu=function(){var l=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.q("kevlar_modern_downloads_page")||!l};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16322_inlinePreviewHoverListener=Sq({mediaRenderer:this,lockupElement:this.JSC$16322_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.W.getVideoPreviewOpts=function(){var l={},D;if((D=this.data)==null?0:D.multipleInlinePlaybackEndpoint)l=eDv;this.isRadio&&(l=ZWk);return l};
_.W.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$16322_inlinePreviewHoverListener)==null||f4(l)};
_.W.getOwner=function(){var l,D,U;return((l=this.data)==null?void 0:(D=l.channelThumbnailSupportedRenderers)==null?void 0:D.channelThumbnailWithLinkRenderer)||_.M((U=this.data)==null?void 0:U.showProviderChannelThumbnail,PK1)};
_.W.updateLockupSize=function(){var l;((l=this.getOwner())==null?0:l.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.W.getFeedbackEndpoint=function(l){if(_.M(l,_.mC))return l;var D,U;l=(U=(D=_.M(l,_.n3))==null?void 0:D.commands)!=null?U:[];D=_.B(l);for(U=D.next();!U.done;U=D.next())if(U=this.getFeedbackEndpoint(U.value))return U;return null};
_.W.computeNavigationEndpoint=function(l){return Fzl(l==null?void 0:l.navigationEndpoint)};
_.W.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var l=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(l)!==JSON.stringify(this.data)&&this.set("data",l)}};
_.W.onDataChanged=function(){var l=this,D=this.getOwner();if(D){this.set("data.owner",D);var U,n,y,A,C,h=((U=this.data)==null?void 0:(n=U.shortBylineText)==null?void 0:(y=n.runs)==null?void 0:(A=y[0])==null?void 0:A.text)||((C=D.name)==null?void 0:C.simpleText);this.set("data.owner.title",h)}var b,u,Q,G,J,L;D=((b=this.data)==null?void 0:(u=b.thumbnailRenderer)==null?void 0:u.playlistVideoThumbnailRenderer)||((Q=this.data)==null?void 0:(G=Q.thumbnailRenderer)==null?void 0:G.playlistCustomThumbnailRenderer)||
((J=this.data)==null?void 0:(L=J.thumbnailRenderer)==null?void 0:L.showCustomThumbnailRenderer);var R;((R=this.data)==null?0:R.thumbnail)||!D||this.set("data.thumbnail",D.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){l.updateLockupSize()});
var a;if(b=((a=this.data)==null?void 0:a.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b);var S;((S=this.dismissActionToReplayEntity)==null?0:S.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.W.onHiddenChanged=function(){this.updateLockupSize()};
_.W.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Vh(this.hostElement,"yt-terminate-video-preview-action");else{var l;(l=this.videoTitleLink)==null||l.focus()}};
_.W.metadataColorChanged=function(){var l;if(this.metadataColor&&((l=this.videoTitle)==null?0:l.style))this.videoTitle.style.color=_.an(this.metadataColor);else{var D,U;!this.metadataColor&&((D=this.videoTitle)==null?0:(U=D.style)==null?0:U.color)&&(this.videoTitle.style.color="")}};
_.W.onDetailsClick=function(l){var D=this.computedNavigationEndpoint;D&&(_.$o(_.$f(l),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.O9(this.hostElement,"yt-navigate",{endpoint:D}))};
_.W.onRendererTap=function(){this.registerThumbnailForPageTransition();var l,D,U=((l=this.data)==null?void 0:l.serviceEndpoint)||this.getFeedbackEndpoint((D=this.data)==null?void 0:D.navigationEndpoint);U&&_.M(U,_.mC)&&this.ytComponentBehavior.resolveCommand(U)};
_.W.onMouseDown=function(l){var D=l.target,U=this.computedNavigationEndpoint,n;l=D.href||((n=_.M(U==null?void 0:U.commandMetadata,_.W6))==null?void 0:n.url);n=D.data||U;l&&n&&tiB(l,n)};
_.W.computeVideoTitleText=function(){var l;if((l=this.data)==null?0:l.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.W.computeHasPlaylistThumbnail=function(l){var D,U,n,y,A;if((((D=l.thumbnailRenderer)==null?0:D.playlistVideoThumbnailRenderer)||((U=l.thumbnailRenderer)==null?0:U.playlistCustomThumbnailRenderer)||((n=l.thumbnailRenderer)==null?0:n.showCustomThumbnailRenderer)||((y=l.thumbnailRenderer)==null?0:y.playlistVideoThumbnailRenderer)||((A=l.thumbnailRenderer)==null?0:A.playlistCustomThumbnailRenderer))&&l.thumbnailOverlays)for(D=0;D<l.thumbnailOverlays.length;D++)if(U=void 0,(U=l.thumbnailOverlays[D])==
null?0:U.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.QP.Object.defineProperties(s_.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.q("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var l;return(l=this.data)==null?void 0:l.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var l;return(l=this.data)==null?void 0:l.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$16322_inlinePreviewHoverListener)==null?0:yc(l))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.ndK(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:l.videoId)||((D=this.data)==null?void 0:D.playlistId)||""}}});
s_.prototype.onMouseDown=s_.prototype.onMouseDown;s_.prototype.metadataColorChanged=s_.prototype.metadataColorChanged;s_.prototype.onIsDismissedChanged=s_.prototype.onIsDismissedChanged;s_.prototype.onHiddenChanged=s_.prototype.onHiddenChanged;s_.prototype.onDataChanged=s_.prototype.onDataChanged;s_.prototype.handleReloadDownloadsInfo=s_.prototype.handleReloadDownloadsInfo;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],s_.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],s_.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],s_.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],s_.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],s_.prototype,"ytdReduxBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],s_.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],s_.prototype,"entitySelectorType",void 0);_.E([_.K(),_.T("design:type",Boolean)],s_.prototype,"noEndpoints",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],s_.prototype,"isRadio",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],s_.prototype,"miniMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],s_.prototype,"fullHeight",void 0);
_.E([_.K(),_.T("design:type",Boolean)],s_.prototype,"showDarkVideoMetadata",void 0);_.E([_.K(),_.T("design:type",Boolean)],s_.prototype,"showLightVideoMetadata",void 0);_.E([_.K(),_.T("design:type",Number)],s_.prototype,"metadataColor",void 0);_.E([_.K(),_.T("design:type",Object)],s_.prototype,"showChannelAvatar",void 0);_.E([_.K(),_.T("design:type",Boolean)],s_.prototype,"hidden",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],s_.prototype,"showYtInteraction",void 0);
_.E([_.K(),_.T("design:type",String)],s_.prototype,"dismissedContentId",void 0);_.E([_.K({selectorArgs:["dismissedContentId"],selector:WfB}),_.T("design:type",Object)],s_.prototype,"dismissActionToReplayEntity",void 0);
_.E([_.K({selectorArgs:["entitySelectorType","mediaId"],selector:function(l,D,U){if(_.q("kevlar_modern_downloads_page")&&U&&D&&D!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(D){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var n=f8_(l,U);if(n){D=_.du(l,U);var y=cc(l,U),A=lu9(l,U);l=p7(l,U);var C=pRC(n,D,y,A);y=C.shortViewCountText;var h=C.publishedTimeText;C=C.badges;var b=l>0;A=K4d(n,D,A,l);n=_.uQ(D)||D==="TRANSFER_STATE_FAILED"||D==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!gu(n.policyEntity)?
void 0:x3N(U,l,n.videoEntity.lengthSeconds);D==="TRANSFER_STATE_PAUSED_BY_USER"&&U&&!_.q("dl_resume_click_killswitch")&&(n={offlineVideoEndpoint:{videoId:U,action:"ACTION_RESUME"}});U={shortViewCountText:y,publishedTimeText:h,badges:C,isWatched:b,navigationEndpoint:n,thumbnailOverlays:A}}else U=void 0;return U;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(D=$Oo(l,U))if(n=_.K7(l,U),A=_.N9_(l,U),n!=="TRANSFER_STATE_UNKNOWN"){U=cKK(D,n,A,U,_.kB(l));break a}U=void 0}return U;default:_.II(new _.rc("Error: entitySelectorType defined but not matched in selector.",
l,D))}}}),
_.T("design:type",Object)],s_.prototype,"entityDrivenState",void 0);_.E([_.K({computed:"computeVideoTitleText(data)"}),_.T("design:type",Object)],s_.prototype,"videoTitleText",void 0);_.E([_.K({computed:"computeHasPlaylistThumbnail(data)"}),_.T("design:type",Object)],s_.prototype,"hasPlaylistThumbnail",void 0);_.E([_.K({computed:"computeNavigationEndpoint(data)"}),_.T("design:type",Object)],s_.prototype,"computedNavigationEndpoint",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],s_.prototype,"typographyBump",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("typographyBump"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],s_.prototype,"typographyBumpV2",null);_.E([_.gP("#video-title"),_.T("design:type",HTMLElement)],s_.prototype,"videoTitle",void 0);_.E([_.gP("#video-title-link"),_.T("design:type",HTMLElement)],s_.prototype,"videoTitleLink",void 0);
_.E([_.gP("#thumbnail"),_.T("design:type",HTMLElement)],s_.prototype,"thumbnail",void 0);_.E([_.gP("#dismissible"),_.T("design:type",HTMLElement)],s_.prototype,"JSC$16322_dismissibleMedia",void 0);_.E([_.t("data.menu"),_.T("design:type",Object),_.T("design:paramtypes",[])],s_.prototype,"lazyLoadMenu",null);_.E([_.t("data.menu"),_.T("design:type",Object),_.T("design:paramtypes",[])],s_.prototype,"immediateLoadMenu",null);
_.E([_.GY("entityDrivenState"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],s_.prototype,"handleReloadDownloadsInfo",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],s_.prototype,"onDataChanged",null);_.E([_.GY("hidden"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],s_.prototype,"onHiddenChanged",null);
_.E([_.Pg("isDismissed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],s_.prototype,"onIsDismissedChanged",null);_.E([_.Pg("metadataColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],s_.prototype,"metadataColorChanged",null);_.E([_.hj("mousedown"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],s_.prototype,"onMouseDown",null);
_.E([_.t("lockupIsHovered"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],s_.prototype,"isHovered",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],s_.prototype,"useAvatar",null);_.E([_.t("data","entitySelectorType"),_.T("design:type",String),_.T("design:paramtypes",[])],s_.prototype,"mediaId",null);_.E([_.x({is:"ytd-rich-grid-media",disableElementRegistration:!0})],s_);
var $b5=_.Ol()(s_,"ytd-rich-grid-media",function(){if(wMk!==void 0)return wMk;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return wMk=l},{mode:_.Vj("kevlar_poly_si_batch_j072")?1:2});var NFh;var E_=function(){var l=_.p.apply(this,arguments)||this;l.removeMaxWidth=!0;l.insetMetadata=!1;return l};
_.Z(E_,_.p);_.W=E_.prototype;_.W.configureRendererStamper=function(){return{innerMenu:wg,outerMenu:Object.assign({},wg,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.W.onDataChanged=function(){var l,D=((l=this.data)==null?void 0:l.trackingParams)||"";D&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(D));var U;((U=this.dismissActionToReplayEntity)==null?0:U.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.W.attached=function(){this.updateInlinePreviewHoverListeners()};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16327_inlinePreviewHoverListener=Sq({mediaRenderer:this,lockupElement:this.JSC$16327_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:mRy})};
_.W.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$16327_inlinePreviewHoverListener)==null||f4(l)};
_.W.onRendererTap=function(){var l,D,U=(l=this.data)==null?void 0:(D=l.serviceEndpoints)==null?void 0:D[0];_.M(U,_.mC)&&this.componentBehavior.resolveCommand(U)};
_.W.onDetailsClick=function(l){var D,U=(D=this.data)==null?void 0:D.navigationEndpoint;U&&(_.$o(_.$f(l),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(U))};
_.W.onShow=function(){var l=this.data;l.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(l.onFirstVisibleCommand),delete l.onFirstVisibleCommand)};
_.QP.Object.defineProperties(E_.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var l;return this.insetMetadata?void 0:(l=this.data)==null?void 0:l.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var l;return this.insetMetadata?(l=this.data)==null?void 0:l.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var l=this.data;if(l!=null&&l.badge&&(l=_.M(l.badge,nW1))){var D,U,n;return[{metadataBadgeRenderer:{label:((D=l.label)==null?void 0:(U=D.runs)==null?void 0:U[0].text)||((n=l.label)==null?void 0:n.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var l=this.data;return Object.assign({},l.headline,{accessibility:l.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return this.isSlimShort?(l=this.computedTitle)==null?void 0:(D=l.accessibility)==null?void 0:(U=D.accessibilityData)==null?void 0:U.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.q("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$16327_inlinePreviewHoverListener)==null?0:yc(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
E_.prototype.onDataChanged=E_.prototype.onDataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],E_.prototype,"componentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],E_.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],E_.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.U3),_.T("design:type",Object)],E_.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],E_.prototype,"ytdReduxBehavior",void 0);_.E([_.gP("ytd-thumbnail"),_.T("design:type",HTMLElement)],E_.prototype,"thumbnail",void 0);_.E([_.gP("#dismissible"),_.T("design:type",HTMLElement)],E_.prototype,"JSC$16327_dismissibleMedia",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],E_.prototype,"removeMaxWidth",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],E_.prototype,"insetMetadata",void 0);_.E([_.K(),_.T("design:type",String)],E_.prototype,"dismissedContentId",void 0);_.E([_.K({selectorArgs:["dismissedContentId"],selector:WfB}),_.T("design:type",Object)],E_.prototype,"dismissActionToReplayEntity",void 0);_.E([_.t("insetMetadata"),_.T("design:type",Object),_.T("design:paramtypes",[])],E_.prototype,"thumbnailObjectFit",null);
_.E([_.t("data","insetMetadata"),_.T("design:type",Object),_.T("design:paramtypes",[])],E_.prototype,"innerMenu",null);_.E([_.t("data","insetMetadata"),_.T("design:type",Object),_.T("design:paramtypes",[])],E_.prototype,"outerMenu",null);_.E([_.K(),_.T("design:type",Object)],E_.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],E_.prototype,"miniMode",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],E_.prototype,"onDataChanged",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],E_.prototype,"shortsBadges",null);_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],E_.prototype,"isShort",null);
_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],E_.prototype,"isSlimShort",null);_.E([_.t("data","isShort"),_.T("design:type",Object),_.T("design:paramtypes",[])],E_.prototype,"computedTitle",null);_.E([_.t("isSlimShort","computedTitle"),_.T("design:type",Object),_.T("design:paramtypes",[])],E_.prototype,"computedAccessibilityLabel",null);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],E_.prototype,"shouldForce2By3",null);_.E([_.t("lockupIsHovered"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],E_.prototype,"isHovered",null);_.E([_.x({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],E_);
_.r(E_,"ytd-rich-grid-slim-media",function(){if(NFh!==void 0)return NFh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return NFh=l},{mode:_.Vj("kevlar_poly_si_batch_j063")?1:2});var sQz;var E5h;var TS=function(){return _.p.apply(this,arguments)||this};
_.Z(TS,_.p);TS.prototype.computeIcon=function(l){return l&&l.iconType?"yt-sys-icons:"+l.iconType.toLowerCase():""};
TS.prototype.onMouseEnter=function(){this.isHovered=!0};
TS.prototype.onMouseLeave=function(){this.isHovered=!1};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],TS.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],TS.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],TS.prototype,"isHovered",void 0);
_.E([_.x({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],TS);
_.r(TS,"ytd-expand-on-hover-card-renderer",function(){if(E5h!==void 0)return E5h;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return E5h=l},{mode:1});var TFy,Itr=function(){if(TFy!==void 0)return TFy;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return TFy=l};_.RL("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var ID=function(){var l=_.p.apply(this,arguments)||this;l.compactStyle=!1;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(ID,_.p);_.W=ID.prototype;_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.W.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"}}}};
_.W.computeHideDot=function(l){return!(l&&l.subscriberCountText&&l.videoCountText)||this.compactStyle};
_.W.hasDualButtons=function(l){return l&&l.purchaseButton&&l.subscribeButton};
_.W.backgroundColorChanged=function(){if(this.data!==void 0){var l=this.data.backgroundColor;this.isDarkTheme&&(l=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=l!=null?_.an(l):"transparent"}};
_.W.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.W.onTap=function(l){var D,U,n=((D=this.data)==null?void 0:D.navigationEndpoint)||((U=this.data)==null?void 0:U.serviceEndpoint);_.M(n,_.rN)&&(n&&_.Jc().resolve(_.qK).resolveCommand(n,{form:{element:this.hostElement}}),l.preventDefault())};
_.W.computeChannelEndpoint=function(l){return _.M(l,_.rN)?null:l};
_.W.computeHrefEndpoint=function(l){return _.M(l,_.rN)?null:this.componentBehavior.computeHref_(l)};
_.W.computeChannelRendererStyle=function(l){return l};
_.W.computeIconSize=function(l){return l?108:136};
_.QP.Object.defineProperties(ID,{template:{configurable:!0,enumerable:!0,get:function(){return Itr()}}});
ID.prototype.backgroundColorChanged=ID.prototype.backgroundColorChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ID.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ID.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],ID.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ID.prototype,"componentBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],ID.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],ID.prototype,"isDarkTheme",void 0);_.E([_.K({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.T("design:type",String)],ID.prototype,"channelRendererStyle",void 0);_.E([_.K({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],ID.prototype,"dualButtons",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.T("design:type",Boolean)],ID.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.e_("desktop_search_bigger_thumbs_style")}}),
_.T("design:type",String)],ID.prototype,"biggerThumbStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ID.prototype,"compactStyle",void 0);_.E([_.Pg("data","isDarkTheme"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ID.prototype,"backgroundColorChanged",null);_.E([_.x({is:"ytd-channel-renderer",disableElementRegistration:!0})],ID);_.r(ID,"ytd-channel-renderer",function(){return Itr()},{mode:1});var Hg5;var Yb1;_.RL("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Hx=function(){var l=_.p.apply(this,arguments)||this;l.displayItemCount=2;l.hasPlaylistThumbnail=!1;l.stackThumbnailSize="large";return l};
_.Z(Hx,_.p);_.W=Hx.prototype;_.W.attached=function(){this.updateInlinePreviewHoverListeners()};
_.W.detached=function(){this.clearInlinePreviewHoverListeners()};
_.W.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.W.computeFirstVideos=function(l,D){return l&&D?l.slice(0,D):[]};
_.W.computeThumbnailWidth=function(l,D){return l?D==="BIG"?500:D==="MASSIVE"?600:D==="MEDIUM"?450:420:360};
_.W.computeThumbnailHeight=function(l,D){return l?D==="BIG"?280:D==="MASSIVE"?337:234:202};
_.W.clearInlinePreviewHoverListeners=function(){var l;(l=this.JSC$16340_inlinePreviewHoverListener)==null||f4(l)};
_.W.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16340_inlinePreviewHoverListener=Sq({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:eDv,thumbnailElement:this.thumbnail})};
_.W.computeHasPlaylistThumbnail=function(l){var D,U;if((((D=l.thumbnailRenderer)==null?0:D.playlistVideoThumbnailRenderer)||((U=l.thumbnailRenderer)==null?0:U.playlistCustomThumbnailRenderer))&&l.thumbnailOverlays)for(D=0;D<l.thumbnailOverlays.length;D++)if(U=void 0,(U=l.thumbnailOverlays[D])==null?0:U.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.QP.Object.defineProperties(Hx.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.JSC$16340_inlinePreviewHoverListener)==null?0:yc(l))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Hx.prototype.dataChanged=Hx.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],Hx.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Hx.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Hx.prototype,"displayItemCount",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.T("design:type",Boolean)],Hx.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.e_("desktop_search_bigger_thumbs_style")}}),
_.T("design:type",String)],Hx.prototype,"biggerThumbsStyle",void 0);_.E([_.K({computed:"computeHasPlaylistThumbnail(data)"}),_.T("design:type",Object)],Hx.prototype,"hasPlaylistThumbnail",void 0);_.E([_.K(),_.T("design:type",String)],Hx.prototype,"stackThumbnailSize",void 0);_.E([_.gP("ytd-thumbnail"),_.T("design:type",HTMLElement)],Hx.prototype,"thumbnail",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Hx.prototype,"dataChanged",null);
_.E([_.t("lockupIsHovered"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Hx.prototype,"isHovered",null);_.E([_.x({is:"ytd-radio-renderer",disableElementRegistration:!0})],Hx);
_.r(Hx,"ytd-radio-renderer",function(){if(Yb1!==void 0)return Yb1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Yb1=l},{mode:_.Vj("kevlar_poly_si_batch_j058")?1:2});var Og1;_.RL("itemSectionRenderer","showRenderer","ytd-show-renderer");var Ye=function(){return _.p.apply(this,arguments)||this};
_.Z(Ye,_.p);Ye.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ye.prototype.computeThumbnailWidth=function(l){return l?360:246};
Ye.prototype.computeUseProminentThumbs=function(l){return l};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ye.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],Ye.prototype,"isSearch",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.T("design:type",Boolean)],Ye.prototype,"useProminentThumbs",void 0);_.E([_.x({is:"ytd-show-renderer",disableElementRegistration:!0})],Ye);
_.r(Ye,"ytd-show-renderer",function(){if(Og1!==void 0)return Og1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Og1=l},{mode:1});_.RL("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var O_=function(){var l=_.p.apply(this,arguments)||this;l.isRichGrid=!1;return l};
_.Z(O_,_.p);O_.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],O_.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],O_.prototype,"isRichGrid",void 0);_.E([_.x({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],O_);
_.r(O_,"ytd-feed-entry-renderer",function(){if(Hg5!==void 0)return Hg5;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Hg5=l},{mode:1});var VAk;var VL=function(){return _.p.apply(this,arguments)||this};
_.Z(VL,_.p);VL.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.E([_.m(_.l5),_.T("design:type",Object)],VL.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],VL.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],VL.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.t4,value:3}),_.T("design:type",Number)],VL.prototype,"itemsPerRow",void 0);
_.E([_.x({is:"ytd-link-card-renderer",disableElementRegistration:!0})],VL);
_.r(VL,"ytd-link-card-renderer",function(){if(VAk!==void 0)return VAk;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return VAk=l},{mode:1});var iXk;var i4=function(){return _.p.apply(this,arguments)||this};
_.Z(i4,_.p);_.W=i4.prototype;_.W.configureRendererStamper=function(){return{"data.menu":wg,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.W.onRendererTap=function(l){if(!this.ytdDismissibleItemBehavior.isDismissed){var D,U=(D=this.data)==null?void 0:D.navigationEndpoint;U&&!_.$o(_.$f(l),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(U)?_.$o(_.$f(l),this.hostElement,["A"])||_.O9(this.hostElement,"yt-navigate",{endpoint:U}):this.ytComponentBehavior.resolveCommand(U,{}))}};
_.W.maybeComputeHref=function(l){return this.ytComponentBehavior.computeHref_(l,!0)};
_.W.getNavigationCommand=function(l){return this.isNavigationCommand(l)?l:null};
_.W.isNavigationCommand=function(l){return l?_.M(l,_.Pk)||_.M(l,_.za)||_.M(l,_.yE)?!0:!1:!1};
i4.prototype.onRendererTap=i4.prototype.onRendererTap;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],i4.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],i4.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],i4.prototype,"data",void 0);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],i4.prototype,"onRendererTap",null);_.E([_.x({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],i4);
_.r(i4,"ytd-lumiere-promo-item-image-renderer",function(){if(iXk!==void 0)return iXk;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return iXk=l},{mode:1});var lEv;var l4=function(){return _.p.apply(this,arguments)||this};
_.Z(l4,_.p);l4.prototype.computeLandscapeThumbnail=function(){var l;return((l=this.data)==null?void 0:l.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],l4.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],l4.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],l4.prototype,"miniMode",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.t4}),_.T("design:type",Number)],l4.prototype,"itemsPerRow",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.T("design:type",Boolean)],l4.prototype,"landscapeThumbnail",void 0);_.E([_.x({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],l4);
_.r(l4,"ytd-lumiere-shelf-details-renderer",function(){if(lEv!==void 0)return lEv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return lEv=l},{mode:_.Vj("kevlar_poly_si_batch_j076")?1:2});var DSr;var D$=function(){return _.p.apply(this,arguments)||this};
_.Z(D$,_.p);D$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],D$.prototype,"data",void 0);_.E([_.x({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],D$);
_.r(D$,"ytd-primetime-promo-details-renderer",function(){if(DSr!==void 0)return DSr;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return DSr=l},{mode:1});var US8;var Un=function(){return _.p.apply(this,arguments)||this};
_.Z(Un,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Un.prototype,"data",void 0);_.E([_.x({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Un);
_.r(Un,"ytd-panel-show-style-metadata-renderer",function(){if(US8!==void 0)return US8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return US8=l},{mode:1});var nbH;var nV=function(){return _.p.apply(this,arguments)||this};
_.Z(nV,_.p);_.W=nV.prototype;_.W.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.W.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.W.computeThumbnail=function(l){if(l)return l.smallFormFactorBackgroundThumbnail||l.largeFormFactorBackgroundThumbnail};
_.W.maybeComputeHref=function(l){return this.ytComponentBehavior.computeHref_(l,!0)};
_.W.isNavigationCommand=function(l){return l?_.M(l,_.Pk)||_.M(l,_.za)||_.M(l,_.yE)?!0:!1:!1};
_.W.getNavigationCommand=function(l){return this.isNavigationCommand(l)?l:null};
nV.prototype.onPanelTap=nV.prototype.onPanelTap;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],nV.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],nV.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,value:!0}),_.T("design:type",Boolean)],nV.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0,value:_.q("web_modern_buttons")}),_.T("design:type",Boolean)],nV.prototype,"modernButtons",void 0);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],nV.prototype,"onPanelTap",null);_.E([_.x({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],nV);
_.r(nV,"ytd-primetime-promo-panel-renderer",function(){if(nbH!==void 0)return nbH;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return nbH=l},{mode:1});_.Tt(_.w(function(l){l=_.sl(l,{data:{},useFullWidth:!1});var D=l.data,U=l.useFullWidth;l={};return _.g("teaser-card-view-model",{class:_.DV("ytTeaserCardViewModelHost",(l.ytTeaserCardViewModelUseFullWidth=function(){return U()},l))},_.g(_.v,{cond:function(){return D().onTap},
then:function(n){return _.g(_.qO,{className:"ytTeaserCardViewModelLink",command:n},_.g("div",{class:"ytTeaserCardViewModelImageContainer"},_.g(_.v,{cond:function(){return D().image},
then:function(y){return _.g(_.rh,{data:y,className:"ytTeaserCardViewModelImage",alt:""})}})),_.g("p",{class:"ytTeaserCardViewModelCaption"},function(){return D().caption}))}}))},"Yc"),"teaser-card-view-model",{props:{data:_.C$,
useFullWidth:_.C$}});_.Tt(_.w(function(l){var D=l.data;var U=function(){var n;return _.pq((n=D())==null?void 0:n.iconThemedImage)};
return _.g("yt-edu-card-view-model",null,_.g(_.dR,{contentId:function(){return D().nudgeId}},function(){return _.g("div",{class:_.DV("ytEduCardViewModelHost",function(){return D().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.g("div",{class:"ytEduCardViewModelTopCornerButton"},_.g(_.uI,{data:function(){return D().dismissButton}},{buttonViewModel:_.t9})),_.g("div",{class:"ytEduCardViewModelContentWrapper"},_.g("div",{class:"ytEduCardViewModelHeaderImage"},_.g(_.v,
{cond:U,
then:function(n){return _.g(_.rh,{data:n,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.g("div",{class:"ytEduCardViewModelTextContainer"},_.g("div",{class:"ytEduCardViewModelTitle"},_.g(_.BO,{text:function(){return D().title}})),_.g("div",{class:"ytEduCardViewModelSubtitle"},_.g(_.BO,{text:function(){return D().subtitle}}))),_.g("div",{class:"ytEduCardViewModelContent"},_.g(_.uI,{data:function(){return D().form}},{nudgeFormViewModel:o57}))),_.g("div",{class:_.DV("ytEduCardViewModelButtonWrapper",
function(){return D().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.g(_.uI,{data:function(){return D().primaryButton}},{buttonViewModel:function(n){return _.g("div",{class:"ytEduCardViewModelPrimaryButton"},_.g(_.t9,{data:n.data}))}}),_.g(_.uI,{data:function(){return D().secondaryButton}},{buttonViewModel:function(n){return _.g("div",{class:"ytEduCardViewModelSecondaryButton"},_.g(_.t9,{data:n.data}))}})))}))},"Zc"),"yt-edu-card-view-model",{props:{data:_.C$}});var yWz=new _.A7("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Tt(_.w(function(l){var D=l.data;var U=l.showYtInteractionInContent;var n=function(){return!!D().selectableFeedback};
l=_.B(_.aw(!1,void 0,"qxtgaf"));var y=l.next().value,A=l.next().value;_.N1(function(){var J=_.M(D().primaryButton,_.Pq);(J==null?0:J.isToggled)&&A(J.isToggled)});
l=_.n0(function(J){if(!n())return!1;if(y()){var L;var R=(L=D().selectableFeedback)==null?void 0:L.onDeselect}else{var a;R=(a=D().selectableFeedback)==null?void 0:a.onSelect}R&&_.dh(R,{form:{element:J.target}});A(!y());if(J=_.M(D().primaryButton,_.Pq))J.isToggled=y();return!1});
var C=function(){if(!n()){var J,L=(J=D().loggingDirectives)==null?void 0:J.trackingParams;L&&_.jm(_.Jc().resolve(_.$k),L)}},h=_.wBG(),b=function(){var J;
return n()?(J=D().selectableFeedback)==null?void 0:J.a11yLabel:void 0},u=function(){return n()?{toggled:y()}:{}},Q=_.Jc().resolve(_.G8(yWz)),G={};
return _.g("yt-feedback-item-renderer",{class:_.DV("ytFeedbackItemRendererHost",(G.ytFeedbackItemRendererSelectableFeedback=n,G)),"on:click":l,"on:keydown":h,title:b,"aria-label":b,"aria-pressed":function(){return n()?y():void 0},
tabindex:function(){return n()?0:void 0},
role:function(){return n()?"button":void 0}},_.g("div",{class:"ytFeedbackItemRendererContentContainer"},_.g(_.uI,{data:function(){return D().content}},{videoRenderer:function(J){return _.g(Q,{data:J.data,
showYtInteraction:U})},
lockupViewModel:function(J){return _.g(_.xd,{data:J.data,containerType:2})}})),_.g("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.g(_.uI,{data:function(){return D().primaryButton}},{toggleButtonViewModel:function(J){return _.g(_.s0,{data:J.data,
buttonShapeOverrides:u,disableExplicitClickLogging:!0,onToggle:C})}})))},"$c"),"yt-feedback-item-renderer",{props:{data:_.C$,
showYtInteractionInContent:_.C$}});var yB=function(){var l=_.p.apply(this,arguments)||this;l.isShortsGrid=!1;l.isCompactGrid=!1;l.isShortsPanelGrid=!1;l.renderedFromRichGrid=!1;l.isInFirstColumn=!1;l.noGutterMargins=!1;l.noBottomMargin=!1;l.halfBottomMargin=!1;l.isInlineGroupItem=!1;l.insetMetadata=!1;l.noBottomMarginInAds=!0;l.force16By9ThumbnailAspectRatio=!1;l.useCompactList=!1;l.containerType=2;l.thumbnailTargetWidth=9999;l.isResponsiveGrid=!1;l.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};l.hoverListener=
l.hover.bind(l);l.leaveListener=l.leave.bind(l);l.highlighted=!1;l.JSC$16376_unsubscribeFromInlinePreviewIsActive=function(){};
return l};
_.Z(yB,_.p);_.W=yB.prototype;_.W.computeContainerType=function(){return this.useCompactList?3:2};
_.W.itemWidthChanged=function(){var l;this.thumbnailTargetWidth=(l=this.itemWidth)!=null?l:9999};
_.W.updateIsInFirstColumn=function(){var l;this.isInFirstColumn=((l=this.data)==null?void 0:l.colIndex)===0};
_.W.observerContainerType=function(){if(this.lockup){var l=this.lockup;l.containerType=this.containerType;l.sizing=this.sizing;l.typographyBump=this.typographyBump;l.itemWidth=this.itemWidth}this.richGridMedia&&_.q("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.q("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.W.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.W.leave=function(l){l=l.relatedTarget;var D=document.querySelector("ytd-video-preview");l&&D&&_.lJ(D).contains(l)||this.removeAndCleanupHighlight()};
_.W.hover=function(){var l;!this.highlighted&&(l=this.data)!=null&&l.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(l=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:l,boxShadow:"0 0 0 10px "+l})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.W.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};
_.W.registerHoverHighlightListeners=function(){var l=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16376_unsubscribeFromInlinePreviewIsActive=_.fM(_.EB(),_.xOd,function(D){l.highlighted&&!D&&l.removeAndCleanupHighlight()})};
_.W.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16376_unsubscribeFromInlinePreviewIsActive()};
_.W.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.W.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.W.getBackgroundColor=function(){var l,D,U=(l=this.data)==null?void 0:(D=l.onFocusEffect)==null?void 0:D.onFocusColor;if(U){if(document.documentElement.hasAttribute("dark")&&(U==null?0:U.darkTheme))return Sd(U==null?void 0:U.darkTheme);if(U==null?0:U.lightTheme)return Sd(U==null?void 0:U.lightTheme)}};
_.W.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var l=_.t6(),D,U,n;l&&((D=this.data)==null?0:D.trackingParams)&&((U=this.data)==null?void 0:U.colIndex)!=null&&((n=this.data)==null?void 0:n.rowIndex)!=null&&_.$S(l,_.v9(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.W.isSlimMediaRenderer=function(l){return!!_.M(l==null?void 0:l.content,_.KtH)||!!_.M(l==null?void 0:l.content,djy)||!!_.M(l==null?void 0:l.content,_.UQ)||!!_.M(l==null?void 0:l.content,lu7)};
_.W.isPostRenderer=function(){var l,D;return!!_.M((l=this.data)==null?void 0:l.content,Hpy)||!!_.M((D=this.data)==null?void 0:D.content,Yah)};
_.W.computeIsGameCardShelf=function(){var l;return!!_.M((l=this.data)==null?void 0:l.content,hEk)};
_.W.computeIsMiniGameCardShelf=function(){var l,D;return!!_.M((l=this.data)==null?void 0:l.content,eEr)||!!_.M((D=this.data)==null?void 0:D.content,m$k)};
_.W.computeIsTeaserCard=function(){var l;return!!_.M((l=this.data)==null?void 0:l.content,m$k)};
_.W.computeIsSelectableFeedbackItem=function(){var l,D;return!((D=_.M((l=this.data)==null?void 0:l.content,tvy))==null||!D.selectableFeedback)};
_.W.computeContainsLumierePosters=function(){var l,D;return((D=_.M((l=this.data)==null?void 0:l.content,AVv))==null?void 0:D.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.W.computeIsExpandOnHoverCardShelf=function(){var l;return!!_.M((l=this.data)==null?void 0:l.content,yVm)};
_.W.computeIsLinkCardShelf=function(){var l;return!!_.M((l=this.data)==null?void 0:l.content,vdv)};
_.W.computeIsReelItemStyleAvatarCircle=function(l){var D;return((D=_.M(l==null?void 0:l.content,_.UQ))==null?void 0:D.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.W.computeIsLinkCardFullWidth=function(l,D){var U;return((U=_.M(l==null?void 0:l.content,vdv))==null?void 0:U.useFullWidth)||D<=2};
_.QP.Object.defineProperties(yB.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var l;return _.q("web_hover_effect_refactor")&&_.M((l=this.data)==null?void 0:l.content,_.uYH)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.q("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var l;if(_.q("web_hover_effect_refactor")&&_.M((l=this.data)==null?void 0:l.content,_.uYH))return!1;var D;return!((D=this.data)==null||!D.onFocusEffect)||_.q("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var l;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.q("web_hover_effect_refactor")?(l=this.data)==null?void 0:l.onFocusEffect:void 0}}}});
yB.prototype.richGridHoverHighlightChanged=yB.prototype.richGridHoverHighlightChanged;yB.prototype.observerContainerType=yB.prototype.observerContainerType;yB.prototype.updateIsInFirstColumn=yB.prototype.updateIsInFirstColumn;yB.prototype.itemWidthChanged=yB.prototype.itemWidthChanged;_.E([_.m(_.l5),_.T("design:type",Object)],yB.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],yB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],yB.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],yB.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.T("design:type",Boolean)],yB.prototype,"isPost",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.T("design:type",Boolean)],yB.prototype,"containsLumierePosters",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.T("design:type",Boolean)],yB.prototype,"isSlimMedia",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.T("design:type",Boolean)],yB.prototype,"isGameCardShelf",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.T("design:type",Boolean)],yB.prototype,"isMiniGameCardShelf",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.T("design:type",Boolean)],yB.prototype,"isTeaserCard",void 0);_.E([_.K({computed:"computeIsSelectableFeedbackItem(data)"}),_.T("design:type",Boolean)],yB.prototype,"isSelectableFeedbackItem",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"isShortsGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],yB.prototype,"isSlimGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"isCompactGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"isShortsPanelGrid",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.T("design:type",Boolean)],yB.prototype,"isExpandOnHoverCardShelf",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.T("design:type",Boolean)],yB.prototype,"isLinkCardShelf",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.t4,value:3}),_.T("design:type",Number)],yB.prototype,"itemsPerRow",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"renderedFromRichGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"isInFirstColumn",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"noGutterMargins",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"noBottomMargin",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"halfBottomMargin",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"isInlineGroupItem",void 0);_.E([_.K(),_.T("design:type",Object)],yB.prototype,"insetMetadata",void 0);_.E([_.K(),_.T("design:type",Object)],yB.prototype,"noBottomMarginInAds",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],yB.prototype,"isShelfItem",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.T("design:type",Boolean)],yB.prototype,"isReelItemStyleAvatarCircle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.T("design:type",Boolean)],yB.prototype,"isLinkCardFullWidth",void 0);_.E([_.K(),_.T("design:type",Object)],yB.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"useCompactList",void 0);_.E([_.K(),_.T("design:type",String)],yB.prototype,"sizing",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],yB.prototype,"typographyBump",void 0);_.E([_.K(),_.T("design:type",Number)],yB.prototype,"itemWidth",void 0);_.E([_.K(),_.T("design:type",Boolean)],yB.prototype,"isHomeShelf",void 0);_.E([_.K(),_.T("design:type",Boolean)],yB.prototype,"isHomeGrid",void 0);
_.E([_.gP("yt-lockup-view-model"),_.T("design:type",HTMLElement)],yB.prototype,"lockup",void 0);_.E([_.gP("ytd-rich-grid-media"),_.T("design:type",HTMLElement)],yB.prototype,"richGridMedia",void 0);_.E([_.gP("ytd-ad-slot-renderer"),_.T("design:type",HTMLElement)],yB.prototype,"adSlotRenderer",void 0);_.E([_.K({computed:"computeContainerType(useCompactList)"}),_.T("design:type",Object)],yB.prototype,"containerType",void 0);_.E([_.K(),_.T("design:type",Object)],yB.prototype,"thumbnailTargetWidth",void 0);
_.E([_.t("showYtInteractionOnRichItem"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],yB.prototype,"showYtInteractionOnRichGridMedia",null);_.E([_.t("isSelectableFeedbackItem","richGridHoverHighlight"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],yB.prototype,"showYtInteractionOnRichItem",null);_.E([_.t("typographyBump","isHomeGrid"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],yB.prototype,"richTypographyBump",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data","isShortsGrid","isCompactGrid"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],yB.prototype,"richGridHoverHighlight",null);_.E([_.t("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.T("design:type",Number),_.T("design:paramtypes",[])],yB.prototype,"shortsLockupViewModelAspectRatio",null);_.E([_.t("isInlineGroupItem"),_.T("design:type",Number),_.T("design:paramtypes",[])],yB.prototype,"shortsLockupViewModelScrimStyle",null);
_.E([_.Pg("itemWidth"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yB.prototype,"itemWidthChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yB.prototype,"updateIsInFirstColumn",null);_.E([_.Pg("containerType","sizing","typographyBump"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yB.prototype,"observerContainerType",null);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yB.prototype,"isResponsiveGrid",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],yB.prototype,"lockupExperiments",null);_.E([_.Pg("richGridHoverHighlight"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yB.prototype,"richGridHoverHighlightChanged",null);_.E([_.x({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],yB);
_.AW8=_.Ol()(yB,"ytd-rich-item-renderer",function(){if(sQz===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);sQz=l}l=sQz;return l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var iWB={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var gI9=_.$B(_.C3("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var DRo={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},nI3={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},ysG={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var WZz;var A2=function(){var l=_.p.apply(this,arguments)||this;l.useResponsiveGrid=!1;l.hidden=!1;l.isShowMoreHidden=!1;l.isShowLessHidden=!0;l.hasExpansionButton=!1;l.isInnerShelf=!1;l.allVideosCount=0;l.allPlaylistCount=0;l.haveSmartDownloadsCompleted=!1;l.restrictContentsOverflow=!1;l.firstShownIndex=0;l.horizontalOffset=0;l.atEnd=!0;l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
l.nextClick=function(){var D;(D=l.data)!=null&&D.contents&&(l.firstShownIndex+=l.currentElementsPerRow,l.updateHorizontalOffset(),l.updateHorizontalItemVisibility())};
l.previousClick=function(){var D;(D=l.data)!=null&&D.contents&&(l.firstShownIndex-=l.currentElementsPerRow,l.updateHorizontalOffset(),l.updateHorizontalItemVisibility())};
return l};
_.Z(A2,_.p);_.W=A2.prototype;
_.W.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.H3("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.W.attached=function(){this.requestElementsPerRow()};
_.W.refreshGridLayoutNew=function(){var l;if((l=this.data)!=null&&l.contents&&this.containerWidth){var D;((D=this.data.responsiveContainerConfiguration)==null?0:D.responsiveSize)?(l=_.Q0B(this.data.responsiveContainerConfiguration,this.containerWidth,2),l=_.Kq(Object.assign({},l,{standardUnitMinWidth:this.standardUnitMinWidth}))):l=_.Kq({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=l.typographyBump;if(this.elementsPerRow!==
l.numItems||this.gutter!==l.gutter)this.elementsPerRow=l.numItems,this.gutter=l.gutter,this.itemWidth=l.itemWidth,_.Wg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":l.gutter+"px"})}};
_.W.computeSizing=function(){if(!this.isLumiere){var l=_.xzl(this.data);return l?l:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.W.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.W.computeButton=function(l){var D=_.M(l,_.yn);l=Object.assign({},_.M(l,_.yn));return D?(l.text||(l.text={simpleText:l.tooltip}),l.style="STYLE_MONO_OUTLINE",l.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",l):D};
_.W.onRowIndexChange=function(){var l=_.t6(),D,U;((D=this.data)==null?0:D.trackingParams)&&((U=this.data)==null?void 0:U.rowIndex)!=null&&l&&_.$S(l,_.v9(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.W.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var l,D=((l=this.getRichItemRenderers()[0])==null?void 0:l.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*D;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.W.requestElementsPerRow=function(){_.O9(this.hostElement,"yt-request-elements-per-row")};
_.W.onUpdateElementsPerRowAction=function(l,D,U,n,y,A){if(this.containerWidth!==A&&(this.containerWidth=A,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&l&&D&&U&&n&&y&&(this.elementsPerRow!==l||this.postsPerRow!==D||this.slimItemsPerRow!==U||this.gameCardsPerRow!==n||this.miniGameCardsPerRow!==y)&&(this.elementsPerRow=l,this.postsPerRow=D,this.slimItemsPerRow=U,this.gameCardsPerRow=n,this.miniGameCardsPerRow=y,this.updateItemVisibility())};
_.W.isExpandedChanged=function(){var l=this.getRichItemRenderers(),D=this.isExpanded;l.forEach(function(U){U.halfBottomMargin=D})};
_.W.isCollapsedChanged=function(){var l=this.getRichItemRenderers(),D=this.isCollapsed;l.forEach(function(U){U.noBottomMargin=D})};
_.W.getRichItemRenderers=function(){return _.iJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.W.updateItemVisibility=function(){var l=this;if(this.data&&this.data.contents){var D=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(n,y){var A;((A=l.data)==null?0:A.isExpanded)?(n.hidden=y>D-1,n.ytRendererBehavior.markDirty()):n.hidden=y>l.currentElementsPerRow-1||y>D-1});
var U=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||U||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||U||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.W.setHeightToSingleRow=function(){var l=this.getRichItemRenderers(),D=Number.parseInt(getComputedStyle(l[0]).marginBottom,10)||0;l=l.slice(0,this.currentElementsPerRow).reduce(function(U,n){return Math.max(U,n.getBoundingClientRect().height+D)},0);
this.contents.style.height=l+"px"};
_.W.focusNextExpandedItem=function(){var l;((l=this.data)==null?0:l.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.W.focusItem=function(l,D){var U=this.getRichItemRenderers();if(U[l]&&(l=U[l].querySelector(".focus-on-expand"))){if(D){var n;(n=U[this.currentElementsPerRow])==null||n.scrollIntoView({behavior:"smooth",block:"center"})}l.focus({preventScroll:!0})}};
_.W.onDataChange=function(){var l=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var D;if((D=this.data)==null?0:D.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.u6(this,function(){l.updateItemVisibility()});
var U;if((U=this.data)==null?0:U.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Wg(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),D=0;D<this.data.contents.length;D++)U=_.M(this.data.contents[D],_.f5)||{},U.colIndex=D,U.rowIndex=this.data.rowIndex};
_.W.handleRerenderDownloadsData=function(){_.q("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())};
_.W.blockInlinePreview=function(l){var D=this,U;return _.P(function(n){(U=D.inlinePreviewIsEnabled)&&D.ytdReduxBehavior.dispatch(_.Uv1(!1));return n.return(new Promise(function(y){l(function(){U&&D.ytdReduxBehavior.dispatch(_.Uv1(!0));y()})}))})};
_.W.expandShelf=function(){var l=this;if(this.data){var D,U=(D=_.M(this.data.showMoreButton,_.yn))==null?void 0:D.trackingParams;U&&_.jm(_.he(),U);this.set("data.isExpanded",!0);this.blockInlinePreview(function(n){l.setHeightToSingleRow();l.updateItemVisibility();l.contents.style.height=l.contents.scrollHeight+"px";_.Tn.addJob(function(){l.contents.style.height="auto";l.focusNextExpandedItem();n()},2,200)})}};
_.W.collapseShelf=function(){var l=this;return _.P(function(D){if(D.nextAddress==1){if(!l.data)return D.return();l.set("data.isExpanded",!1);return D.yield(l.blockInlinePreview(function(U){l.contents.style.height=l.contents.scrollHeight+"px";l.setHeightToSingleRow();_.Tn.addJob(function(){l.updateItemVisibility();l.contents.style.height="auto";U()},2,200)}),2)}_.O9(l.hostElement,"yt-rich-shelf-renderer-collapse",l.data.trackingParams);
l.focusItem(0,!1);_.Kz(D)})};
_.W.updateArrowButtonStatus=function(){this.getRichItemRenderers();var l,D;var U=((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=U};
_.W.onChildElementFocus=function(l){this.hasChevronButtons&&(l=l.target.closest("#contents > *"),this.contents.contains(l)&&(l.offsetLeft<this.horizontalOffset?this.previousClick():l.offsetLeft+l.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.W.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.H3("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.W.updateHorizontalOffset=function(){var l=this.getRichItemRenderers(),D,U;var n=((D=this.data)==null?void 0:(U=D.contents)==null?void 0:U.length)||0;var y;l=((y=l[0])==null?void 0:y.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>n?this.firstShownIndex=n-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*l};
_.W.isSlimMediaShelfRenderer=function(){var l,D,U,n=(U=_.M((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D[0],_.f5))==null?void 0:U.content;return!!(_.M(n,_.KtH)||_.M(n,djy)||_.M(n,_.UQ)||_.M(n,lu7))};
_.W.isGameCardShelf=function(){var l,D,U,n=(U=_.M((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D[0],_.f5))==null?void 0:U.content;return!!_.M(n,hEk)};
_.W.isMiniGameCardShelf=function(){var l,D,U,n=(U=_.M((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D[0],_.f5))==null?void 0:U.content;return!!_.M(n,eEr)||!!_.M(n,m$k)};
_.W.hasGameBoxArtAvatarStyle=function(){var l;return((l=this.data)==null?void 0:l.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.W.hasRoundedGameBoxArtAvatarStyle=function(){var l;return((l=this.data)==null?void 0:l.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.W.isShortsShelf=function(){var l,D,U,n=(U=_.M((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D[0],_.f5))==null?void 0:U.content;return!!_.M(n,_.UQ)||!!_.M(n,lu7)};
_.W.isPostShelfRenderer=function(){var l,D,U,n=(U=_.M((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D[0],_.f5))==null?void 0:U.content;return!(!_.M(n,Hpy)&&!_.M(n,Yah))};
_.W.isLumiereShelf=function(){var l,D,U=_.M((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D[0],_.f5);return!!_.M(U==null?void 0:U.content,AVv)};
_.W.isLumiereShelfWithPosters=function(){var l,D,U=_.M((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D[0],_.f5),n;return((n=_.M(U==null?void 0:U.content,AVv))==null?void 0:n.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.W.isExpandOnHoverCardShelf=function(){var l,D,U,n=(U=_.M((l=this.data)==null?void 0:(D=l.contents)==null?void 0:D[0],_.f5))==null?void 0:U.content;return!!_.M(n,yVm)};
_.W.computeHasFeaturedBadge=function(){var l,D,U=_.M((l=this.data)==null?void 0:(D=l.badges)==null?void 0:D[0],_.mTg);return U?U.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.W.computeHasPaygatedFeaturedBadge=function(){var l,D,U=_.M((l=this.data)==null?void 0:(D=l.badges)==null?void 0:D[0],_.mTg);return U?(U==null?void 0:U.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.W.computeHeaderHidden=function(){var l,D,U,n,y,A;return!((l=this.data)==null?0:l.icon)&&!((D=this.data)==null?0:D.title)&&!((U=this.data)==null?0:U.subtitle)&&!((n=this.data)==null?0:n.thumbnail)&&!((y=this.data)==null?0:y.badges)&&!((A=this.data)==null?0:A.menu)};
_.W.showCtaButton=function(){var l;return!((l=this.data)==null||!l.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.W.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.W.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.W.computeForce16By9ThumbnailAspectRatio=function(){var l,D;return((l=this.data)==null?void 0:(D=l.responsiveContainerConfiguration)==null?void 0:D.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.W.onSectionReactiveDismissal=function(l,D,U){var n,y;var A=(n=this.data)==null?void 0:(y=n.targetingContext)==null?void 0:y.targetGroupId;this&&A&&D.targetGroupId&&A.includes(D.targetGroupId)?(n=this.rowIndex,l=n===void 0?!1:!(D.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&n<=l)):l=!1;l&&(this.hidden=U)};
_.QP.Object.defineProperties(A2.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null?0:l.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var l=this.elementsPerRow;this.isPostShelfRenderer()?l=this.postsPerRow:this.isSlimMediaShelfRenderer()?l=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?l=this.slimItemsPerRow-1:this.isGameCardShelf()?l=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(l=this.miniGameCardsPerRow);return l}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null?0:l.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var l,D;return!((l=this.data)==null||!l.previousButton)&&!((D=this.data)==null||!D.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 l;return((l=_.Jc().resolve(_.sm).getCurrentPage())==null?void 0:l.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n;return!((l=this.data)==null?0:(D=l.thumbnail)==null?0:(U=D.accessibility)==null?0:(n=U.accessibilityData)==null?0:n.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
A2.prototype.onChildElementFocus=A2.prototype.onChildElementFocus;A2.prototype.handleRerenderDownloadsData=A2.prototype.handleRerenderDownloadsData;A2.prototype.onDataChange=A2.prototype.onDataChange;A2.prototype.isCollapsedChanged=A2.prototype.isCollapsedChanged;A2.prototype.isExpandedChanged=A2.prototype.isExpandedChanged;A2.prototype.onRowIndexChange=A2.prototype.onRowIndexChange;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],A2.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],A2.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],A2.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],A2.prototype,"ytdReduxBehavior",void 0);
_.E([_.K({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.T("design:type",Object)],A2.prototype,"useResponsiveGrid",void 0);_.E([_.K(),_.T("design:type",Object)],A2.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],A2.prototype,"standardUnitMinWidth",void 0);_.E([_.K({reflectToAttribute:!0,value:3}),_.T("design:type",Number)],A2.prototype,"elementsPerRow",void 0);_.E([_.K({value:3}),_.T("design:type",Number)],A2.prototype,"postsPerRow",void 0);
_.E([_.K({value:6}),_.T("design:type",Number)],A2.prototype,"slimItemsPerRow",void 0);_.E([_.K({value:6}),_.T("design:type",Number)],A2.prototype,"gameCardsPerRow",void 0);_.E([_.K({value:6}),_.T("design:type",Number)],A2.prototype,"miniGameCardsPerRow",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],A2.prototype,"hidden",void 0);_.E([_.K(),_.T("design:type",Object)],A2.prototype,"isShowMoreHidden",void 0);
_.E([_.K(),_.T("design:type",Object)],A2.prototype,"isShowLessHidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],A2.prototype,"hasExpansionButton",void 0);_.E([_.t("data.isExpanded"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],A2.prototype,"isExpanded",null);_.E([_.t("data.isExpanded"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],A2.prototype,"isCollapsed",null);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],A2.prototype,"isInnerShelf",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.T("design:type",Boolean)],A2.prototype,"isShorts",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.T("design:type",Boolean)],A2.prototype,"isLumiere",void 0);_.E([_.K({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.T("design:type",Boolean)],A2.prototype,"hasBoxArtThumbnailStyle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.T("design:type",Boolean)],A2.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.T("design:type",Boolean)],A2.prototype,"hasFeaturedBadge",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.T("design:type",Boolean)],A2.prototype,"hasPaygatedFeaturedBadge",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.T("design:type",Boolean)],A2.prototype,"isHeaderHidden",void 0);_.E([_.K({selector:_.zZg}),_.T("design:type",Object)],A2.prototype,"allVideosCount",void 0);_.E([_.K({selector:vIN}),_.T("design:type",Object)],A2.prototype,"allPlaylistCount",void 0);_.E([_.K({selector:O$s}),_.T("design:type",Object)],A2.prototype,"haveSmartDownloadsCompleted",void 0);
_.E([_.K({selectorArgs:["entitySelectorType"],selector:function(l,D){if(_.q("kevlar_modern_downloads_page")&&D&&D!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var U=l.entities;switch(D){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":D=_.Z1(U);l=C4(D);var n=_.vc(D);U=_.mF(U);U=_.H6(WT$(n,U,D.length));return{contents:l,subtitle:U};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return U=_.Z1(U),{contents:C4(U)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return U=
_.es(U),{contents:C4(U)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return U=_.J9N(U),{contents:C4(U)};default:_.II(new _.rc("Error: entitySelectorType defined but not matched in selector.",l,D))}}}}),
_.T("design:type",Object)],A2.prototype,"entityDrivenRichShelfData",void 0);_.E([_.K({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.T("design:type",Boolean)],A2.prototype,"hasTopCtaButton",void 0);_.E([_.K({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.T("design:type",Boolean)],A2.prototype,"hasBottomCtaButton",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.T("design:type",Boolean)],A2.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],A2.prototype,"restrictContentsOverflow",void 0);_.E([_.K({selector:_.j4o}),_.T("design:type",Boolean)],A2.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.K({computed:"computeSizing(data)"}),_.T("design:type",String)],A2.prototype,"sizing",void 0);
_.E([_.K(),_.T("design:type",Boolean)],A2.prototype,"typographyBump",void 0);_.E([_.K(),_.T("design:type",Number)],A2.prototype,"itemWidth",void 0);_.E([_.K(),_.T("design:type",Object)],A2.prototype,"firstShownIndex",void 0);_.E([_.K(),_.T("design:type",Object)],A2.prototype,"horizontalOffset",void 0);_.E([_.K(),_.T("design:type",Object)],A2.prototype,"atEnd",void 0);_.E([_.gP("#contents"),_.T("design:type",HTMLElement)],A2.prototype,"contents",void 0);
_.E([_.Pg("data.rowIndex"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],A2.prototype,"onRowIndexChange",null);_.E([_.Pg("isExpanded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],A2.prototype,"isExpandedChanged",null);_.E([_.Pg("isCollapsed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],A2.prototype,"isCollapsedChanged",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],A2.prototype,"onDataChange",null);_.E([_.Pg("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],A2.prototype,"handleRerenderDownloadsData",null);_.E([_.hj("focusin"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],A2.prototype,"onChildElementFocus",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data","isHomePage"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],A2.prototype,"isTruncated",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],A2.prototype,"showBottomDivider",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],A2.prototype,"hasChevronButtons",null);
_.E([_.t("firstShownIndex"),_.T("design:type",Object),_.T("design:paramtypes",[])],A2.prototype,"previousButtonOverride",null);_.E([_.t("atEnd"),_.T("design:type",Object),_.T("design:paramtypes",[])],A2.prototype,"nextButtonOverride",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],A2.prototype,"isHomePage",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],A2.prototype,"thumbnailAriaHidden",null);
_.E([_.t("data"),_.T("design:type",String),_.T("design:paramtypes",[])],A2.prototype,"entitySelectorType",null);_.E([_.x({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],A2);
_.BOy=_.Ol()(A2,"ytd-rich-shelf-renderer",function(){if(WZz===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);WZz=l}l=WZz;return l},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var Cxz;_.Tt(_.LK,"yt-badge-view-model",{props:{data:_.C$,class:_.C$,workaroundShortsIsThumbnailBadge:_.C$,modern:_.C$,numBadgesInRow:_.C$,clipTextOverflow:_.C$}});_.Tt(KAr,"yt-slimline-survey-view-model",{props:{data:_.C$}});var W$=function(){var l=_.p.apply(this,arguments)||this;l.tileLottieAnimationRef={};l.backgroundLottieAnimationRef={};l.isOnHoverBehaviorForLottieEnabled=!0;l.useBiggerShowcaseImage=_.q("enable_desktop_search_bigger_thumbs");l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return l};
_.Z(W$,_.p);_.W=W$.prototype;_.W.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.W.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.W.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var l=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);l!==this.hasTile&&this.set("hasTile",l);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.W.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.W.currentColorChanged=function(){this.updateButtonPalette()};
_.W.computeBackgroundStyle=function(l){if(l&&this.data){var D=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var U=_.H9((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);U&&D.push('background-image: url("'+U+'");')}var n;((n=l.basicColorData)==null?void 0:n.backgroundColor)!==void 0&&D.push("background-color: "+_.tu(l.basicColorData.backgroundColor)+";");return D.join("")}};
_.W.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&this.set("isDarkTheme",l)};
_.W.getCurrentLogo=function(l,D){if(l)return D?l.darkLogoImage:l.lightLogoImage};
_.W.getCurrentStaticTileImage=function(l,D){if(this.hasStaticTile(l))return l.darkTileImage?D?l.darkTileImage:l.tileImage:l.tileImage};
_.W.computeTitleStyle=function(l){if(this.data&&this.data.title&&l&&l.basicColorData&&l.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.an(l.basicColorData.foregroundTitleColor)+";"};
_.W.computeSubtitleStyle=function(l){if(this.data&&this.data.subtitle&&l&&l.basicColorData&&l.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.an(l.basicColorData.foregroundBodyColor)+";"};
_.W.computeSupplementalStyle=function(l){if(this.data&&this.data.supplementalText&&l&&l.supplementalTextColor!==void 0)return l=_.an(l.supplementalTextColor),"color:"+l+";--yt-endpoint-color:"+l+";--yt-endpoint-hover-color:"+l+";--yt-endpoint-visited-color:"+l+";--yt-formatted-string-bold-font-weight:700;"};
_.W.computeDismissIconStyle=function(l){var D,U;if((l==null?0:(D=l.dismissButtonColorData)==null?0:D.foregroundTitleColor)&&(l==null?0:(U=l.dismissButtonColorData)==null?0:U.backgroundColor))return"--yt-button-color:"+_.tu(l.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.tu(l.dismissButtonColorData.backgroundColor)+";"};
_.W.computeOverflowIconStyle=function(l){var D,U;if((l==null?0:(D=l.dismissButtonColorData)==null?0:D.foregroundTitleColor)&&(l==null?0:(U=l.dismissButtonColorData)==null?0:U.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.tu(l.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.tu(l.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.tu(l.dismissButtonColorData.foregroundTitleColor)+";"};
_.W.computeBannerStyle=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.W.computeLocation=function(l){switch(l==null?void 0:l.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.W.shouldShowTileSection=function(l,D,U){return!this.shouldExpandLogo(l,D,U)&&D};
_.W.shouldShowExpandedLogoSection=function(l,D,U){return this.shouldExpandLogo(l,D,U)&&l!==void 0&&this.hasLogo(l)};
_.W.shouldExpandLogo=function(l,D,U){return l&&D?!1:U>=2};
_.W.hasStaticTile=function(l){return!(l==null||!l.tileImage)};
_.W.hasTileLottie=function(l){var D;return!!(l==null?0:(D=l.tileLottie)==null?0:D.url)};
_.W.hasLogo=function(l){return this.getCurrentLogo(l,this.isDarkTheme)!==void 0};
_.W.getLogoHeight=function(l){return this.logoWithPadding(l)?"26":"20"};
_.W.getExpandedLogoHeight=function(l){return this.logoWithPadding(l)?"31":"24"};
_.W.getLogoImageId=function(l){return this.logoWithPadding(l)?"logo-image-with-padding":"logo-image"};
_.W.getMaxTitleFontSize=function(l){return l.overrideTitleMaxFontSize?String(l.overrideTitleMaxFontSize):"36"};
_.W.hasBackgroundLottie=function(l){var D;return!!(l==null?0:(D=l.backgroundLottie)==null?0:D.url)};
_.W.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var l,D;(l=this.tileLottieAnimationRef)==null||(D=l.lottieEl)==null||D.play();var U,n;(U=this.backgroundLottieAnimationRef)==null||(n=U.lottieEl)==null||n.play()}};
_.W.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var l,D;(l=this.tileLottieAnimationRef)==null||(D=l.lottieEl)==null||D.pause();var U,n;(U=this.backgroundLottieAnimationRef)==null||(n=U.lottieEl)==null||n.pause()}};
_.W.pauseLottie=function(){var l,D;(l=this.tileLottieAnimationRef)==null||(D=l.lottieEl)==null||D.pause();var U,n;(U=this.backgroundLottieAnimationRef)==null||(n=U.lottieEl)==null||n.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.W.performPrimaryButtonAction=function(){var l,D,U;((l=this.data)==null?0:(D=l.primaryButton)==null?0:(U=D.buttonRenderer)==null?0:U.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.W.requestElementsPerRow=function(){_.O9(this.hostElement,"yt-request-elements-per-row")};
_.W.updateButtonPalette=function(){if(this.data&&this.currentColorData){var l;((l=this.data.dismissButton)==null?0:l.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 D;if((D=this.data.primaryButton)==null?0:D.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 U;if((U=this.data.secondaryButton)==
null?0:U.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 n;((n=this.data.primaryButton)==null?0:n.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var y;((y=this.data.secondaryButton)==null?0:y.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var A;((A=this.data.primaryButton)==null?0:A.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.W.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var l=this.getTileLottieDataBasedOnTheme(),D,U;if(l.url!==((D=this.tileLottiePlayerProps)==null?void 0:(U=D.animationConfig)==null?void 0:U.path)){var n,y;(n=this.tileLottieAnimationRef)==null||(y=n.lottieEl)==null||y.destroy();var A;this.isOnHoverBehaviorForLottieEnabled=!((A=l.settings)==null?0:A.autoplay);var C,h;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(h=(C=l.settings)==null?void 0:C.autoplay)!=null?h:!1,loop:this.getLottieLoopValue(l.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof l.url==="string"?this.tileLottiePlayerProps.animationConfig.path=l.url:this.tileLottiePlayerProps.animationConfig.animationData=l.url}}};
_.W.getOverflowButton=function(l){return _.M(l.overflowButton,AKy)};
_.W.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var l=this.getBackgroundLottieDataBasedOnTheme(),D,U;if(l.url!==((D=this.backgroundLottiePlayerProps)==null?void 0:(U=D.animationConfig)==null?void 0:U.path)){var n,y;(n=this.backgroundLottieAnimationRef)==null||(y=n.lottieEl)==null||y.destroy();var A;this.isOnHoverBehaviorForLottieEnabled=!((A=l.settings)==null?0:A.autoplay);var C,h;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(h=(C=l.settings)==null?void 0:C.autoplay)!=null?h:!1,loop:this.getLottieLoopValue(l.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof l.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=l.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
l.url}}};
_.W.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var l;((l=this.tileLottieAnimationRef)==null?void 0:l.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var D;((D=this.backgroundLottieAnimationRef)==null?void 0:D.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.W.getTileLottieDataBasedOnTheme=function(){var l;if(this.isDarkTheme&&((l=this.data)==null?0:l.darkThemeTileLottie))return this.data.darkThemeTileLottie;var D;return((D=this.data)==null?0:D.tileLottie)?this.data.tileLottie:{}};
_.W.getBackgroundLottieDataBasedOnTheme=function(){var l;if(this.isDarkTheme&&((l=this.data)==null?0:l.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var D;return((D=this.data)==null?0:D.backgroundLottie)?this.data.backgroundLottie:{}};
_.W.onUpdateElementsPerRowAction=function(l){l&&this.elementsPerRow!==l&&(this.elementsPerRow=l)};
_.W.getLottieLoopValue=function(l){return l?l.loop!==void 0?l.loop:l.loopCount?l.loopCount-1:!0:!0};
_.W.logoWithPadding=function(l){var D,U,n;return(l=(D=this.getCurrentLogo(l,this.isDarkTheme))==null?void 0:(U=D.thumbnails)==null?void 0:(n=U[0])==null?void 0:n.height)&&l%31===0?!0:!1};
W$.prototype.currentColorChanged=W$.prototype.currentColorChanged;W$.prototype.themeChanged=W$.prototype.themeChanged;W$.prototype.dataChanged=W$.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],W$.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],W$.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],W$.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],W$.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],W$.prototype,"primaryButton",void 0);_.E([_.K(),_.T("design:type",Object)],W$.prototype,"secondaryButton",void 0);
_.E([_.K({reflectToAttribute:!0,value:3}),_.T("design:type",Number)],W$.prototype,"elementsPerRow",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],W$.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],W$.prototype,"hasTile",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],W$.prototype,"hasMetadata",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],W$.prototype,"showLogoImage",void 0);_.E([_.K(),_.T("design:type",Object)],W$.prototype,"currentColorData",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.T("design:type",String)],W$.prototype,"bannerStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.T("design:type",String)],W$.prototype,"location",void 0);
_.E([_.K(),_.T("design:type",Object)],W$.prototype,"tileLottiePlayerProps",void 0);_.E([_.K(),_.T("design:type",Object)],W$.prototype,"tileLottieAnimationRef",void 0);_.E([_.K(),_.T("design:type",Object)],W$.prototype,"backgroundLottiePlayerProps",void 0);_.E([_.K(),_.T("design:type",Object)],W$.prototype,"backgroundLottieAnimationRef",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],W$.prototype,"useBiggerShowcaseImage",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],W$.prototype,"isHideEnclosingAction",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],W$.prototype,"dataChanged",null);_.E([_.GY("isDarkTheme"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],W$.prototype,"themeChanged",null);
_.E([_.GY("currentColorData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],W$.prototype,"currentColorChanged",null);_.E([_.x({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],W$);
_.r(W$,"ytd-statement-banner-renderer",function(){if(Cxz!==void 0)return Cxz;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Cxz=l},{mode:1});var hov;var B$=function(){var l=_.p.apply(this,arguments)||this;l.isSearch=!1;l.hideShelfHeader=!1;l.engagementPanel=!1;l.disableMouseScroll=!0;l.useFloorScrolling=!0;return l};
_.Z(B$,_.p);B$.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.C3("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.C3("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
B$.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
B$.prototype.onDataChanged=B$.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],B$.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],B$.prototype,"hideShelfHeader",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],B$.prototype,"engagementPanel",void 0);_.E([_.K(),_.T("design:type",Object)],B$.prototype,"disableMouseScroll",void 0);_.E([_.K(),_.T("design:type",Object)],B$.prototype,"useFloorScrolling",void 0);_.E([_.K(),_.T("design:type",Object)],B$.prototype,"data",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],B$.prototype,"onDataChanged",null);
_.E([_.x({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],B$);
_.r(B$,"ytd-reel-shelf-renderer",function(){if(hov!==void 0)return hov;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return hov=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var Pxk;var bXm;bXm=_.wL(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.gbh=_.Ja(bXm);var uzH=_.w(function(l){var D=l.data;l=l.useSmallFont;var U={},n={};return _.g("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.g(_.v,{cond:function(){return D().favicon},
then:function(y){return _.g(_.rh,{data:y,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.g("div",{class:"ytChannelExternalLinkViewModelContainer"},_.g(_.BO,{text:function(){return D().title},
className:_.DV("ytChannelExternalLinkViewModelTitle",(U.ytChannelExternalLinkViewModelTitleSmallFont=l,U)),ellipsisTruncate:!0,userInput:!0}),_.g(_.BO,{text:function(){return D().link},
className:_.DV("ytChannelExternalLinkViewModelLink",(n.ytChannelExternalLinkViewModelLinkSmallFont=l,n)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ad");
uzH.idomCompat=!0;_.Tt(uzH,"yt-channel-external-link-view-model",{props:{data:_.C$,useSmallFont:_.C$}});_.RL("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var CV=function(){var l=_.p.apply(this,arguments)||this;l.revealButtonClass="button";l.businessEmailDisplayState="HIDE_SECTION";return l};
_.Z(CV,_.p);_.W=CV.prototype;_.W.refit=function(){var l=this;_.j0(function(){_.iu(l.hostElement,"yt-refit-popups-action")});
_.u6(this,function(){_.iu(l.hostElement,"yt-refit-popups-action")})};
_.W.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.pI(_.gbh),this.businessEmailDisplayState="CAPTCHA")};
_.W.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"};
_.W.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.W.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"}}}};
_.W.computeEmailHref=function(l){return"mailto:"+l};
_.W.computeSafeUrl=function(l){if(l)return _.Ng(l)};
_.W.linkEndpoint=function(l){return _.M(l.onTap,_.aO)};
_.W.linkEndpointToHref=function(l){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(l))};
_.W.onYtServiceRequestCompleted=function(l){var D;if((D=l.detail.data)==null?0:D.businessEmail)this.businessEmail=l.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var U;if((U=l.detail.data)==null?0:U.errorMessage)this.businessEmailErrorMessage=l.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.W.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var l=this.JSC$16489_captchaTextarea.value;if(l){l={recaptcha_response_token:l,channel_id:this.metadata.channelId};var D=_.M(this.metadata.onBusinessEmailRevealClickCommand,_.aO);D&&this.ytComponentBehavior.resolveCommand(D,{form:l})}}};
_.W.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.QP.Object.defineProperties(CV.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var l;return _.M((l=this.data)==null?void 0:l.metadata,hVg)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.M(this.metadata.businessEmailRevealButton,_.CM)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var l=new URL(this.metadata.canonicalChannelUrl);return l.host+l.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 _.M(this.metadata.learnMoreOnTap,_.aO)}}});
CV.prototype.onYtServiceRequestCompleted=CV.prototype.onYtServiceRequestCompleted;CV.prototype.businessEmailMetadataChanged=CV.prototype.businessEmailMetadataChanged;CV.prototype.refit=CV.prototype.refit;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],CV.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.gP("#g-recaptcha-response"),_.T("design:type",HTMLTextAreaElement)],CV.prototype,"JSC$16489_captchaTextarea",void 0);_.E([_.K(),_.T("design:type",Object)],CV.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],CV.prototype,"revealButtonClass",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],CV.prototype,"metadata",null);
_.E([_.t("metadata"),_.T("design:type",Object),_.T("design:paramtypes",[])],CV.prototype,"revealButton",null);_.E([_.t("metadata"),_.T("design:type",Object),_.T("design:paramtypes",[])],CV.prototype,"channelDisplayUrl",null);_.E([_.GY("metadata"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],CV.prototype,"refit",null);_.E([_.t("metadata"),_.T("design:type",Object),_.T("design:paramtypes",[])],CV.prototype,"formattedDescription",null);
_.E([_.t("metadata","learnMoreCommand"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],CV.prototype,"shouldRendereVerifiedPhoneStatus",null);_.E([_.t("metadata"),_.T("design:type",Object),_.T("design:paramtypes",[])],CV.prototype,"learnMoreCommand",null);_.E([_.K(),_.T("design:type",String)],CV.prototype,"businessEmailDisplayState",void 0);_.E([_.K(),_.T("design:type",String)],CV.prototype,"businessEmail",void 0);
_.E([_.K(),_.T("design:type",String)],CV.prototype,"businessEmailErrorMessage",void 0);_.E([_.GY("metadata"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],CV.prototype,"businessEmailMetadataChanged",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],CV.prototype,"onYtServiceRequestCompleted",null);_.E([_.x({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],CV);
_.r(CV,"ytd-about-channel-renderer",function(){if(Pxk!==void 0)return Pxk;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank" aria-label$="[[metadata.learnMoreA11yLabel]]">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Pxk=l},{mode:1});var vby;var h2=function(){return _.p.apply(this,arguments)||this};
_.Z(h2,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],h2.prototype,"data",void 0);_.E([_.x({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],h2);
_.r(h2,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(vby!==void 0)return vby;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vby=l},{mode:1});var Qi1;var P$=function(){return _.p.apply(this,arguments)||this};
_.Z(P$,_.p);P$.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],P$.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],P$.prototype,"aligment",void 0);_.E([_.x({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],P$);
_.r(P$,"ytd-channel-list-sub-menu-renderer",function(){if(Qi1!==void 0)return Qi1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Qi1=
l},{mode:1});var G$_;var b4=function(){return _.p.apply(this,arguments)||this};
_.Z(b4,_.p);b4.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],b4.prototype,"data",void 0);_.E([_.x({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],b4);
_.r(b4,"ytd-channel-sub-menu-renderer",function(){if(G$_!==void 0)return G$_;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return G$_=l},{mode:1});var JWr;var LZv;var gr=function(){var l=_.p.apply(this,arguments)||this;l.isCompact=!1;return l};
_.Z(gr,_.p);_.QP.Object.defineProperties(gr.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var l,D;return((D=_.M((l=this.data)==null?void 0:l.endpoint,_.yE))==null?void 0:D.target)==="TARGET_NEW_WINDOW"}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],gr.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],gr.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],gr.prototype,"isCompact",void 0);_.E([_.t("isCompact"),_.T("design:type",Number),_.T("design:paramtypes",[])],gr.prototype,"thumbnailWidth",null);
_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gr.prototype,"openNewWindow",null);_.E([_.x({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],gr);
_.r(gr,"ytd-media-lockup-renderer",function(){if(LZv!==void 0)return LZv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return LZv=l},{mode:1});var q$1;var u4=function(){return _.p.apply(this,arguments)||this};
_.Z(u4,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],u4.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],u4.prototype,"data",void 0);_.E([_.x({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],u4);
_.r(u4,"ytd-structured-description-channel-lockup-renderer",function(){if(q$1!==void 0)return q$1;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return q$1=l},{mode:1});var MOr;var v$=function(){var l=_.p.apply(this,arguments)||this;l.isCompact=!1;l.collectionsStackColor=_.q("modernize_structured_description_playlist_lockups_v2");return l};
_.Z(v$,_.p);v$.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:_.q("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.QP.Object.defineProperties(v$.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n,y,A;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(l=this.data)==null?void 0:(D=l.thumbnail)==null?void 0:D.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(U=this.data)==null?void 0:(n=U.thumbnail)==null?void 0:n.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(y=this.data)==null?void 0:(A=y.thumbnail)==null?
void 0:A.vibrantColorPalette:void 0}}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],v$.prototype,"componentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],v$.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],v$.prototype,"showSidePanelThumbnailOverlay",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],v$.prototype,"isCompact",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],v$.prototype,"collectionsStackColor",void 0);_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],v$.prototype,"twoLineTitle",null);_.E([_.t("data","collectionsStackColor"),_.T("design:type",Object),_.T("design:paramtypes",[])],v$.prototype,"collectionStack",null);
_.E([_.x({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],v$);
_.r(v$,"ytd-structured-description-playlist-lockup-renderer",function(){if(MOr!==void 0)return MOr;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return MOr=l},{mode:1});var Rok;var QB=function(){return _.p.apply(this,arguments)||this};
_.Z(QB,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],QB.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],QB.prototype,"data",void 0);_.E([_.x({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],QB);
_.r(QB,"ytd-structured-description-video-lockup-renderer",function(){if(Rok!==void 0)return Rok;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Rok=l},{mode:2});var Gc=function(){return _.p.apply(this,arguments)||this};
_.Z(Gc,_.p);
Gc.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Gc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Gc.prototype,"data",void 0);_.E([_.x({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Gc);
_.r(Gc,"ytd-compact-infocard-renderer",function(){if(JWr!==void 0)return JWr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return JWr=l},{mode:1});var ZX8;var J2=function(){return _.p.apply(this,arguments)||this};
_.Z(J2,_.p);J2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.QP.Object.defineProperties(J2.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],J2.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],J2.prototype,"ytdReduxBehavior",void 0);_.E([_.K({selector:_.XE}),_.T("design:type",Object)],J2.prototype,"isGridViewEnabled",void 0);
_.E([_.t("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],J2.prototype,"watchFeedBigThumbs",null);_.E([_.t("isGridViewEnabled","data"),_.K({reflectToAttribute:!0,value:"168"}),_.T("design:type",String),_.T("design:paramtypes",[])],J2.prototype,"thumbnailWidth",null);_.E([_.t("isGridViewEnabled","data"),_.K({reflectToAttribute:!0,value:"94"}),_.T("design:type",String),_.T("design:paramtypes",[])],J2.prototype,"customThumbnailSize",null);
_.E([_.K(),_.T("design:type",Object)],J2.prototype,"data",void 0);_.E([_.x({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],J2);
_.r(J2,"ytd-compact-playlist-renderer",function(){if(ZX8!==void 0)return ZX8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ZX8=l},{mode:1});var eo7;var LV=function(){var l=_.p.apply(this,arguments)||this;l.roundedContainer=!0;l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return l};
_.Z(LV,_.p);_.W=LV.prototype;_.W.attached=function(){this.requestElementsPerRow()};
_.W.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"}}}};
_.W.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.W.computeViewStyle=function(l){return l.style?l.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.W.onUpdateElementsPerRowAction=function(l){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&l===1};
_.W.requestElementsPerRow=function(){_.O9(this.hostElement,"yt-request-elements-per-row")};
LV.prototype.dataChanged=LV.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],LV.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],LV.prototype,"actionHandlerBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],LV.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],LV.prototype,"hideThumbnail",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.T("design:type",String)],LV.prototype,"viewStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],LV.prototype,"roundedContainer",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],LV.prototype,"dataChanged",null);_.E([_.x({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],LV);
_.r(LV,"ytd-compact-promoted-item-renderer",function(){if(eo7!==void 0)return eo7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return eo7=l},{mode:1});var mSr;var qv=function(){return _.p.apply(this,arguments)||this};
_.Z(qv,_.p);qv.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
qv.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
qv.prototype.onYtNavigate=function(l,D){var U=this;if(D.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",D)){var n=this.get("watchEndpoint.videoId",D.endpoint),y=_.iu(this.hostElement,"yt-get-current-video-id-action")[0];_.q("kevlar_mix_handle_first_endpoint_different")&&n&&y&&n!==y||(l.stopPropagation(),_.IL().getPlayerPromise().then(function(A){if(A.getPlayerState()===0&&U.data.secondaryNavigationEndpoint)var C=U.data.secondaryNavigationEndpoint;else{C=
Object.assign({},D.endpoint);var h=_.M(C.commandMetadata,_.W6);h&&(A=Math.floor(A.getCurrentTime()),h.url=_.hc(h.url,{t:A}),!_.q("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(h=_.M(C,_.za)))&&(h.startTimeSeconds=A)}_.O9(U.hostElement,"yt-navigate",{endpoint:C})}))}};
_.QP.Object.defineProperties(qv.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n,y,A;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(l=this.data)==null?void 0:(D=l.thumbnail)==null?void 0:D.sampledThumbnailColor,vibrantColorPalette:(U=this.data)==null?void 0:(n=U.thumbnail)==null?void 0:n.vibrantColorPalette,darkColorPalette:(y=this.data)==null?void 0:(A=y.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
qv.prototype.onYtNavigate=qv.prototype.onYtNavigate;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.d9.YtEndpointBehavior),_.T("design:type",Object)],qv.prototype,"ytEndpointBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],qv.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.m(_.hY),_.T("design:type",Object)],qv.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],qv.prototype,"ytdReduxBehavior",void 0);_.E([_.K({selector:_.XE}),_.T("design:type",Object)],qv.prototype,"isGridViewEnabled",void 0);_.E([_.t("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],qv.prototype,"watchFeedBigThumbs",null);
_.E([_.t("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.T("design:type",String),_.T("design:paramtypes",[])],qv.prototype,"thumbnailWidth",null);_.E([_.K(),_.T("design:type",Object)],qv.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],qv.prototype,"collectionStack",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],qv.prototype,"onYtNavigate",null);
_.E([_.x({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],qv);
_.r(qv,"ytd-compact-radio-renderer",function(){if(mSr!==void 0)return mSr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return mSr=l},{mode:1});var aE7;var Mv=function(){return _.p.apply(this,arguments)||this};
_.Z(Mv,_.p);Mv.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Mv.prototype.computeRendererStyle=function(l){return l.style?l.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.E([_.K(),_.T("design:type",Object)],Mv.prototype,"data",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Mv.prototype,"rendererBehavior",void 0);_.E([_.K({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.T("design:type",String)],Mv.prototype,"rendererStyle",void 0);_.E([_.x({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Mv);
_.r(Mv,"ytd-compact-text-promo-renderer",function(){if(aE7!==void 0)return aE7;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return aE7=l},{mode:1});var tO5;var Ra=function(){var l=_.p.apply(this,arguments)||this;l.isShortsStyle=!1;return l};
_.Z(Ra,_.p);_.W=Ra.prototype;_.W.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"}}}};
_.W.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.O9(this.hostElement,"yt-disable-lockup-interaction"):_.O9(this.hostElement,"yt-enable-lockup-interaction"))};
_.W.isMetaBlockEmpty=function(l){return!l||!l.longBylineText&&!l.shortBylineText&&!l.shortViewCountText&&!l.viewCountText};
_.W.computeHasOneLineTitle=function(l){return this.forceOneLineTitle||!(l==null||!l.buttons)};
_.W.computeDisableInteraction=function(){var l;return!((l=this.data)==null?0:l.navigationEndpoint)};
_.W.hasSingularTopStandaloneBadge=function(){var l;return!((l=this.data)==null||!l.topStandaloneBadge)};
_.QP.Object.defineProperties(Ra.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("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 l;return this.hasSingularTopStandaloneBadge()?[(l=this.data)==null?void 0:l.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var l;return this.shouldShowTopBadges?((l=this.data)==null?void 0:l.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Ra.prototype.disableInteractionChanged=Ra.prototype.disableInteractionChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],Ra.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],Ra.prototype,"ytdLockupBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],Ra.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.T("design:type",Boolean)],Ra.prototype,"metaBlockEmpty",void 0);_.E([_.K({selector:_.XE}),_.T("design:type",Object)],Ra.prototype,"isGridViewEnabled",void 0);_.E([_.t("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ra.prototype,"watchFeedBigThumbs",null);
_.E([_.t("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.T("design:type",String),_.T("design:paramtypes",[])],Ra.prototype,"thumbnailWidth",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ra.prototype,"isShortsStyle",void 0);_.E([_.K(),_.T("design:type",Object)],Ra.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.T("design:type",Boolean)],Ra.prototype,"hasOneLineTitle",void 0);
_.E([_.K(),_.T("design:type",Boolean)],Ra.prototype,"hideThumbnail",void 0);_.E([_.K(),_.T("design:type",Boolean)],Ra.prototype,"forceOneLineTitle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.T("design:type",Boolean)],Ra.prototype,"disableInteraction",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Ra.prototype,"musicMetadataVideoLockup",void 0);
_.E([_.Pg("disableInteraction"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ra.prototype,"disableInteractionChanged",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ra.prototype,"shouldShowTopBadges",null);_.E([_.t("data"),_.T("design:type",Array),_.T("design:paramtypes",[])],Ra.prototype,"topBadges",null);
_.E([_.t("shouldShowTopBadges","data"),_.T("design:type",Array),_.T("design:paramtypes",[])],Ra.prototype,"inlineMetadataBadges",null);_.E([_.t("shouldShowTopBadges"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ra.prototype,"shouldShowBadgesBelowMetadata",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ra.prototype,"compactTitleClass",null);_.E([_.x({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Ra);
_.r(Ra,"ytd-compact-video-renderer",function(){if(tO5!==void 0)return tO5;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return tO5=l},{mode:_.Vj("kevlar_poly_si_batch_j067")?1:2});var Xu_;_.RL("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Z$=function(){return _.p.apply(this,arguments)||this};
_.Z(Z$,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Z$.prototype,"data",void 0);_.E([_.x({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Z$);
_.r(Z$,"ytd-counterfactual-renderer",function(){if(Xu_!==void 0)return Xu_;var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Xu_=l},{mode:1});var S$8;var eJ=function(){var l=_.p.apply(this,arguments)||this;l.hidden=!1;return l};
_.Z(eJ,_.p);eJ.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.Jc().resolve(_.qK).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
eJ.prototype.computeHidden=function(l){return!!l};
_.QP.Object.defineProperties(eJ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],eJ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.T("design:type",Object)],eJ.prototype,"hidden",void 0);_.E([_.t("data.label"),_.T("design:type",String),_.T("design:paramtypes",[])],eJ.prototype,"label",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],eJ.prototype,"value",null);
_.E([_.x({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],eJ);
_.r(eJ,"ytd-dropdown-item-renderer",function(){if(S$8!==void 0)return S$8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return S$8=l},{mode:1});var k$v;var dSm;var m1=function(){return _.p.apply(this,arguments)||this};
_.Z(m1,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],m1.prototype,"data",void 0);_.E([_.K({computed:"getSimpleString(data.label)"}),_.T("design:type",String)],m1.prototype,"label",void 0);_.E([_.x({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],m1);
_.r(m1,"ytd-navigation-dropdown-item-renderer",function(){if(dSm!==void 0)return dSm;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return dSm=l},{mode:1});var aa=function(){var l=_.p.apply(this,arguments)||this;l.disabled=!1;l.value="";l.noLabelFloat=!1;l.noUnderline=!1;l.usePrimaryColor=!1;l.hasBackground=!1;l.verticalAlign="top";l.autosize=!1;l.minAutosizeWidth=100;l.autosizeFont="14px Roboto";return l};
_.Z(aa,_.p);_.W=aa.prototype;_.W.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"}}}};
_.W.open=function(){this.inputEl.open()};
_.W.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.W.dataChanged=function(){this.reset()};
_.W.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("value-changed",this.value))};
_.W.stopPropagation=function(l){l.stopPropagation()};
_.W.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var l=this.canvas.getContext("2d");l&&(l.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(l.measureText(this.inputEl.value).width)+24)+"px")}};
_.W.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var l=0,D=this.data.entries.length;l<D;l++){var U=this.data.entries[l],n;for(n in U)if(U.hasOwnProperty(n)){var y=U[n];if("isSelected"in y&&y.isSelected)return"stringValue"in y?y.stringValue||"":"int32Value"in y?y.int32Value||0:0}}return null};
_.W.updateValueFromBinding=function(l){this.value=l.detail.value};
_.QP.Object.defineProperties(aa.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 l=0,D=this.data.entries.length;l<D;l++){var U=this.data.entries[l],n;for(n in U)if(U.hasOwnProperty(n)){var y=U[n];if("isSelected"in y&&y.isSelected&&"label"in y)return this.ytRendererBehavior.getSimpleString(y.label)}}return null}}});
aa.prototype.autoSizeLabel=aa.prototype.autoSizeLabel;aa.prototype.stopPropagation=aa.prototype.stopPropagation;aa.prototype.valueChangedForBinding=aa.prototype.valueChangedForBinding;aa.prototype.dataChanged=aa.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],aa.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],aa.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aa.prototype,"disabled",void 0);_.E([_.K(),_.T("design:type",Object)],aa.prototype,"value",void 0);_.E([_.K(),_.T("design:type",Object)],aa.prototype,"noLabelFloat",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aa.prototype,"noUnderline",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],aa.prototype,"theme",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aa.prototype,"usePrimaryColor",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aa.prototype,"hasBackground",void 0);_.E([_.K(),_.T("design:type",Object)],aa.prototype,"verticalAlign",void 0);_.E([_.K(),_.T("design:type",Object)],aa.prototype,"autosize",void 0);_.E([_.K(),_.T("design:type",Object)],aa.prototype,"minAutosizeWidth",void 0);_.E([_.K(),_.T("design:type",Object)],aa.prototype,"autosizeFont",void 0);
_.E([_.gP("#entries"),_.T("design:type",Object)],aa.prototype,"entries",void 0);_.E([_.gP("#input"),_.T("design:type",Object)],aa.prototype,"inputEl",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aa.prototype,"dataChanged",null);_.E([_.GY("value"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aa.prototype,"valueChangedForBinding",null);
_.E([_.hj("iron-overlay-opened"),_.hj("iron-overlay-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],aa.prototype,"stopPropagation",null);_.E([_.hj("iron-select"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aa.prototype,"autoSizeLabel",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],aa.prototype,"label",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],aa);
_.r(aa,"ytd-dropdown-renderer",function(){if(k$v!==void 0)return k$v;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return k$v=l},{mode:1});var KZ7;var t2=function(){var l=_.p.apply(this,arguments)||this;l.isConstrainedList=!1;return l};
_.Z(t2,_.p);t2.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"}}}};
t2.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
t2.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
t2.prototype.computeViewAllHidden=function(l,D){return l||!D.viewAllEndpoint};
t2.prototype.fillRestIfNoShowMore=t2.prototype.fillRestIfNoShowMore;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Mn.YtLazyListBehavior),_.T("design:type",Object)],t2.prototype,"ytLazyListBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],t2.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],t2.prototype,"isConstrainedList",void 0);_.E([_.GY("data","canShowMore"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],t2.prototype,"fillRestIfNoShowMore",null);_.E([_.x({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],t2);
_.r(t2,"ytd-expanded-shelf-contents-renderer",function(){if(KZ7!==void 0)return KZ7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return KZ7=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var cW_;var Xn=function(){return _.p.apply(this,arguments)||this};
_.Z(Xn,_.p);Xn.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Xn.prototype,"data",void 0);_.E([_.x({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Xn);
_.r(Xn,"ytd-feed-channel-filter-header-renderer",function(){if(cW_!==void 0)return cW_;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return cW_=l},{mode:1});var pu_;var xSh;var jih;var SJ=function(){return _.p.apply(this,arguments)||this};
_.Z(SJ,_.p);_.W=SJ.prototype;_.W.onClick=function(l){var D,U=(D=this.data)==null?void 0:D.sectionEndpoint;!_.$o(_.$f(l),this.hostElement,["A".toString()])&&U&&_.O9(this.hostElement,"yt-navigate",{endpoint:U})};
_.W.computeHasSectionEndpoint=function(l){return(l==null?void 0:l.sectionEndpoint)!==void 0};
_.W.computeShowHeaderAsLink=function(l){return(l==null?void 0:l.header)!==void 0&&(l==null?void 0:l.sectionEndpoint)!==void 0};
_.W.computeShowSubheaderAsLink=function(l){return(l==null?void 0:l.subheader)!==void 0&&(l==null?void 0:l.sectionEndpoint)!==void 0&&(l==null?void 0:l.header)===void 0};
_.W.getHeaderAsLinkClass=function(l){var D=[],U;(l==null?0:(U=l.headerIcon)==null?0:U.iconType)&&D.push("header-link-active");return D.join(" ")};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],SJ.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],SJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],SJ.prototype,"data",void 0);
_.E([_.K({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],SJ.prototype,"hasSectionEndpoint",void 0);_.E([_.K({computed:"computeShowHeaderAsLink(data)"}),_.T("design:type",Boolean)],SJ.prototype,"showHeaderAsLink",void 0);_.E([_.K({computed:"computeShowSubheaderAsLink(data)"}),_.T("design:type",Boolean)],SJ.prototype,"showSubheaderAsLink",void 0);_.E([_.x({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],SJ);
_.r(SJ,"ytd-medical-panel-section-renderer",function(){if(jih!==void 0)return jih;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return jih=l},{mode:1});var k4=function(){var l=_.p.apply(this,arguments)||this;l.isExpanded=!1;l.roundedContainer=!0;l.skipRoundingTop=!1;l.toggleExpandableSection=function(){l.isExpanded=!l.isExpanded};
return l};
_.Z(k4,_.p);
k4.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]]"}}}}}};
k4.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
k4.prototype.dataChanged=k4.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],k4.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],k4.prototype,"isExpanded",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],k4.prototype,"roundedContainer",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],k4.prototype,"skipRoundingTop",void 0);_.E([_.K(),_.T("design:type",Object)],k4.prototype,"toggleExpandableSection",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],k4.prototype,"dataChanged",null);_.E([_.x({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],k4);
_.r(k4,"ytd-medical-panel-content-renderer",function(){if(xSh!==void 0)return xSh;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return xSh=l},{mode:1});_.RL("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var dr=function(){var l=_.p.apply(this,arguments)||this;l.roundedContainer=!0;l.extractOverlay=!1;l.amsterdamEnabled=_.q("enable_desktop_amsterdam_info_panels");l.hasTitle=!1;l.linkIcon="OPEN_IN_NEW";l.isDismissed=!1;return l};
_.Z(dr,_.p);dr.prototype.onOverlayConditionsChange=function(){var l=_.iJ(this.hostElement).querySelector("ytd-info-panel-content-renderer");l&&(l.set("extractOverlay",this.extractOverlay),l.set("roundedContainer",this.roundedContainer))};
dr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
dr.prototype.computeHasTitle=function(l){return!(l==null||!l.title)};
dr.prototype.onClick=function(l){var D,U=(D=this.data)==null?void 0:D.headerEndpoint;!_.$o(_.$f(l),this.hostElement,["BUTTON".toString()])&&U&&this.ytComponentBehavior.resolveCommand(U)};
_.QP.Object.defineProperties(dr.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 l;return((l=this.data)==null?void 0:l.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:l.disableBottomDivider)||!((D=this.data)==null?0:D.title)}}});
dr.prototype.onOverlayConditionsChange=dr.prototype.onOverlayConditionsChange;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],dr.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],dr.prototype,"ytdReduxBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],dr.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],dr.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],dr.prototype,"extractOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],dr.prototype,"amsterdamEnabled",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.T("design:type",Object)],dr.prototype,"hasTitle",void 0);
_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.background"),_.T("design:type",Object),_.T("design:paramtypes",[])],dr.prototype,"background",null);_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.titleStyle"),_.T("design:type",Object),_.T("design:paramtypes",[])],dr.prototype,"titleStyle",null);
_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.t("data.titleStyle"),_.T("design:type",Object),_.T("design:paramtypes",[])],dr.prototype,"showLinkIcon",null);_.E([_.K(),_.T("design:type",String)],dr.prototype,"linkIcon",void 0);_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],dr.prototype,"hideDivider",null);
_.E([_.K({selectorArgs:["data.dismissStateEntityKey"],selector:function(l,D){l=_.yT(l.entities,"dismissState",D);return(l==null?void 0:l.isDismissed)||(l==null?void 0:l.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(l==null?void 0:l.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.T("design:type",Object)],dr.prototype,"isDismissed",void 0);_.E([_.Pg("roundedContainer","extractOverlay"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],dr.prototype,"onOverlayConditionsChange",null);_.E([_.x({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],dr);
_.r(dr,"ytd-info-panel-container-renderer",function(){if(pu_!==void 0)return pu_;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return pu_=l},{mode:1});var FZ7;_.RL("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var KV=function(){return _.p.apply(this,arguments)||this};
_.Z(KV,_.p);KV.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
KV.prototype.computeStyle=function(l){return l?l:""};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],KV.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.T("design:type",String)],KV.prototype,"titleStyle",void 0);
_.E([_.x({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],KV);
_.Ol()(KV,"ytd-item-section-header-renderer",function(){if(FZ7===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);FZ7=l}l=FZ7;return l},{allowedProps:["data"],
mode:1});var obH;var wuH,rWk=function(){return wuH!==void 0?wuH:wuH=document.createElement("template")};
document.head.appendChild(rWk().content);var zoh;_.c$=new _.A7("VOTING_ANIMATION_CONTROLLER_TOKEN");var $Sg=_.w(function(l){var D=l.data;var U=_.bP("div"),n=_.bP("div");l=_.B(_.aw("VOTE_STATUS_NONE",void 0,"YPH5mf"));var y=l.next().value,A=l.next().value,C=_.Pr(Guo,function(){var J;return(J=D())==null?void 0:J.entityKey}),h=_.q("web_enable_voting_animation")||_.q("enable_music_web_cairo_voting_animation");
_.N1(function(){var J;((J=D().initialState)==null?0:J.status)&&A(D().initialState.status)});
var b=function(){var J,L,R=(L=(J=D().initialState)==null?void 0:J.votes)!=null?L:0,a;J=(a=D().initialState)==null?void 0:a.status;return J==="VOTE_STATUS_UPVOTED"?R-1:J==="VOTE_STATUS_DOWNVOTED"?R+1:R},u=function(){return y()==="VOTE_STATUS_UPVOTED"?b()+1:y()==="VOTE_STATUS_DOWNVOTED"?b()-1:b()},Q=function(J){var L=J?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
A(L);var R=u(),a=_.Jc().resolve(_.G8(_.c$)),S=C();S&&(J&&(S==null?0:S.upvoteDefaultButtonOnTap)?_.dh(S.upvoteDefaultButtonOnTap,{form:{element:U.value},disableClickTracking:!0}):(S==null?0:S.upvoteToggledButtonOnTap)&&_.dh(S.upvoteToggledButtonOnTap,{form:{element:U.value},disableClickTracking:!0}));var d;J=(d=S==null?void 0:S.enableOptimisticReordering)!=null?d:D().enableOptimisticReordering;h&&a&&D().itemId&&J&&fEk(a,D().itemId,R,L)},G=function(J){var L=J?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
A(L);var R=u(),a=_.Jc().resolve(_.G8(_.c$)),S=C();S&&(J&&(S==null?0:S.downvoteDefaultButtonOnTap)?_.dh(S.downvoteDefaultButtonOnTap,{form:{element:n.value},disableClickTracking:!0}):(S==null?0:S.downvoteToggledButtonOnTap)&&_.dh(S.downvoteToggledButtonOnTap,{form:{element:n.value},disableClickTracking:!0}));var d;J=(d=S==null?void 0:S.enableOptimisticReordering)!=null?d:D().enableOptimisticReordering;h&&a&&D().itemId&&J&&fEk(a,D().itemId,R,L)};
l={};l=_.DV("ytVotingViewModelVoteCount",(l.ytVotingViewModelVoteCountDisabled=function(){return D().isDisabled},l));
return _.g("voting-view-model",{class:"ytVotingViewModelHost"},_.g("div",{el:U},_.g(_.uI,{data:function(){var J=_.M(D().upvoteButton,_.Pq);return{toggleButtonViewModel:Object.assign({},J,{isToggled:y()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(J){return _.g(_.s0,{data:J.data,
onToggle:Q})}})),_.g("div",{class:l},function(){var J,L,R;
return y()==="VOTE_STATUS_UPVOTED"?(J=D().initialState)==null?void 0:J.compactVotesUpvoted:y()==="VOTE_STATUS_DOWNVOTED"?(L=D().initialState)==null?void 0:L.compactVotesDownvoted:(R=D().initialState)==null?void 0:R.compactVotes}),_.g("div",{el:n},_.g(_.uI,{data:function(){var J=_.M(D().downvoteButton,_.Pq);
return{toggleButtonViewModel:Object.assign({},J,{isToggled:y()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(J){return _.g(_.s0,{data:J.data,
onToggle:G})}})))},"bd");_.Tt(_.w(function(l){var D=l.data;return _.g("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.g("div",{class:_.DV("ytEngagementBarViewModelEngagementBarWrapper",l.className)},_.g(_.uI,{data:function(){return D().actions}},{votingViewModel:$Sg})))},"cd"),"engagement-bar-view-model",{props:{data:_.C$,
className:_.C$}});var pV=function(){var l=_.p.apply(this,arguments)||this;l.playlistVotingAnimationEnabled=_.q("web_enable_voting_animation");l.downloadProgress=0;l.transferState="TRANSFER_STATE_UNKNOWN";l.downloadState="DOWNLOAD_STATE_UNKNOWN";l.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";l.offlineVideoPolicyExpirationTimestamp=0;return l};
_.Z(pV,_.p);_.W=pV.prototype;_.W.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"}}}};
_.W.canReorderChanged=function(){this.persistentDragHandle=_.q("kevlar_playlist_drag_handles")&&this.canReorder};
_.W.onDrag=function(){if(this.thumbnail){var l=_.iJ(this.thumbnail).querySelector("yt-image");l&&(l.shouldRenderLazy=!1)}};
_.W.onMenuOverlayChanged=function(l,D){this.menuOpened=D};
_.W.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.W.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.W.onContentsTap=function(l){var D,U=(D=this.data)==null?void 0:D.serviceEndpoints;if(U&&U.length===1&&_.M(U[0],JGG)&&!_.$o(_.$f(l),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(U[0]);else{var n;(D=(n=this.data)==null?void 0:n.navigationEndpoint)&&_.q("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?NO1(_.Jc().resolve(_.kq),D):(_.r3().playlistSuggestionsShelfActivation=
!0,_.siy(_.Jc().resolve(_.kq),D)):D&&!_.$o(_.$f(l),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.q("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.O9(this.hostElement,"yt-navigate",{endpoint:D}):this.ytComponentBehavior.resolveCommand(D))}};
_.W.computeStyle=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.W.computeThumbnailWidth=function(l){return l==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.W.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=pRC(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))}};
_.W.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.W.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.W.dataChanged=function(){if(this.data){var l,D,U,n=((l=this.downloadRenderData)==null?void 0:l.badges)&&((D=this.downloadRenderData)==null?void 0:D.badges)!==((U=this.data)==null?void 0:U.badges),y,A,C;l=((y=this.downloadRenderData)==null?void 0:y.thumbnailOverlays)&&((A=this.downloadRenderData)==null?void 0:A.thumbnailOverlays)!==((C=this.data)==null?void 0:C.thumbnailOverlays);(!this.downloadRenderData||n||l)&&this.downloadStateChanged()}};
_.W.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var l,D,U=(l=this.data.menu)==null?void 0:(D=l.menuRenderer)==null?void 0:D.items;if(U)for(l=_.B(U),D=l.next();!D.done;D=l.next())if(D=D.value,U=void 0,_.M((U=D.menuServiceItemRenderer)==null?void 0:U.serviceEndpoint,_.lc)){var n=U=void 0,y=void 0;D=(U=D)==null?void 0:(n=U.menuServiceItemRenderer)==null?void 0:(y=n.serviceEndpoint)==null?void 0:y.playlistEditEndpoint;y=n=void 0;if(U=(n=D)==null?void 0:(y=n.actions)==null?void 0:
y[0])n=void 0,U.setVideoId=(n=this.data)==null?void 0:n.setVideoId;y=n=U=void 0;if(D=(U=D)==null?void 0:(n=U.clientActions)==null?void 0:(y=n[0])==null?void 0:y.playlistRemoveVideosAction)U=void 0,D.setVideoIds=[(U=this.data)==null?void 0:U.setVideoId]}}};
_.QP.Object.defineProperties(pV.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
pV.prototype.setVideoIdChanged=pV.prototype.setVideoIdChanged;pV.prototype.dataChanged=pV.prototype.dataChanged;pV.prototype.downloadStateChanged=pV.prototype.downloadStateChanged;pV.prototype.onMenuOverlayChanged=pV.prototype.onMenuOverlayChanged;pV.prototype.canReorderChanged=pV.prototype.canReorderChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],pV.prototype,"ytdReduxBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],pV.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],pV.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],pV.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],pV.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],pV.prototype,"canReorder",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],pV.prototype,"menuOpened",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],pV.prototype,"handleIsHovered",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],pV.prototype,"persistentDragHandle",void 0);_.E([_.K(),_.T("design:type",Object)],pV.prototype,"downloadRenderData",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.T("design:type",String)],pV.prototype,"styleType",void 0);_.E([_.K({computed:"computeThumbnailWidth(data.style)"}),_.T("design:type",Number)],pV.prototype,"thumbnailWidth",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],pV.prototype,"isDownloads",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],pV.prototype,"playlistVotingAnimationEnabled",void 0);
_.E([_.K({selector:cc,selectorArgs:["data.videoId"]}),_.T("design:type",Object)],pV.prototype,"downloadProgress",void 0);_.E([_.K(),_.T("design:type",Number)],pV.prototype,"relativeDateReference",void 0);_.E([_.K({selector:_.du,selectorArgs:["data.videoId"]}),_.T("design:type",Object)],pV.prototype,"transferState",void 0);_.E([_.K({selector:lu9,selectorArgs:["data.videoId"]}),_.T("design:type",Object)],pV.prototype,"downloadState",void 0);
_.E([_.K({selector:wOo,selectorArgs:["data.videoId"]}),_.T("design:type",Object)],pV.prototype,"offlinePolicyAction",void 0);_.E([_.K({selector:r9B,selectorArgs:["data.videoId"]}),_.T("design:type",Object)],pV.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.E([_.K({selector:f8_,selectorArgs:["data.videoId"]}),_.T("design:type",Object)],pV.prototype,"entityInfo",void 0);_.E([_.K({selector:_.Xo}),_.T("design:type",Boolean)],pV.prototype,"miniplayerIsActive",void 0);
_.E([_.t("data"),_.T("design:type",String),_.T("design:paramtypes",[])],pV.prototype,"playlistVideoId",null);_.E([_.gP("#thumbnail"),_.T("design:type",Object)],pV.prototype,"thumbnail",void 0);_.E([_.GY("canReorder"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pV.prototype,"canReorderChanged",null);
_.E([_.hj("yt-menu-overlay-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Boolean]),_.T("design:returntype")],pV.prototype,"onMenuOverlayChanged",null);_.E([_.GY("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pV.prototype,"downloadStateChanged",null);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pV.prototype,"dataChanged",null);_.E([_.GY("data.setVideoId"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pV.prototype,"setVideoIdChanged",null);_.E([_.x({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],pV);
_.r(pV,"ytd-playlist-video-renderer",function(){if(zoh!==void 0)return zoh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);l.content.insertBefore(rWk().content.cloneNode(!0),l.content.firstChild);return zoh=l},{mode:1});var Eb1;var x4=function(){return _.p.apply(this,arguments)||this};
_.Z(x4,_.p);_.E([_.K(),_.T("design:type",Object)],x4.prototype,"data",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],x4.prototype,"rendererBehavior",void 0);_.E([_.x({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],x4);
_.r(x4,"ytd-premium-browse-footer-renderer",function(){if(Eb1!==void 0)return Eb1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Eb1=l},{mode:1});var TO7;var jJ=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return l};
_.Z(jJ,_.p);_.W=jJ.prototype;_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.W.handleDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.W.computeHeaderLogoThumbnail=function(l,D){if(l)return D?l.darkLogo:l.lightLogo};
_.W.computeHeaderLogoHeight=function(l,D){var U,n,y;return(l=(U=this.computeHeaderLogoThumbnail(l,D))==null?void 0:(n=U.thumbnails)==null?void 0:(y=n[0])==null?void 0:y.height)&&l%31===0?"31":"24"};
_.W.computeHeaderLogoMarginBottom=function(l,D){return this.computeHeaderLogoHeight(l,D)==="24"?"0":"-7"};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],jJ.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jJ.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],jJ.prototype,"isDarkTheme",void 0);_.E([_.K({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.T("design:type",Object)],jJ.prototype,"themeLogo",void 0);
_.E([_.K({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.T("design:type",String)],jJ.prototype,"logoHeight",void 0);_.E([_.K({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.T("design:type",String)],jJ.prototype,"logoMarginBottom",void 0);_.E([_.x({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],jJ);
_.r(jJ,"ytd-primetime-promo-header-renderer",function(){if(TO7!==void 0)return TO7;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return TO7=l},{mode:1});var IEz;_.Fn=_.w(function(l){var D=l.className;var U=l.data;var n=l.isOverlay;var y=l.maxLinesOverride;var A=l.useMediumText;var C=function(){return U().alwaysShowTruncationText},h=function(){return U().truncationText},b=function(){return A!==void 0&&A()?"medium":"small"},u=function(){return n!==void 0&&n()?"overlay":"default"},Q=function(){var R,a;
return(a=(R=_.M(U().rendererContext,_.vF))==null?void 0:R.label)!=null?a:""};
l=_.B(_.aw(!1,void 0,"llBUm"));var G=l.next().value,J=l.next().value;l=_.n0(function(){U().expandOnTap&&J(!G());return!1});
var L={};return _.g("yt-description-preview-view-model",{el:_.fe(_.aT(function(){return U().rendererContext})),
class:_.DV("ytDescriptionPreviewViewModelHost",D,(L.ytDescriptionPreviewViewModelClickable=function(){var R;return!((R=_.M(U().rendererContext,_.ti))==null||!R.onTap)},L.ytDescriptionPreviewViewModelIsOverlay=n,L)),
"on:click":l},_.g(_.v,{cond:function(){return U().description},
then:function(R){return _.g(_.v,{cond:G,then:function(){var a={};return _.g("div",{class:_.DV("ytDescriptionPreviewViewModelDescription",(a.ytDescriptionPreviewViewModelDescriptionMediumText=A,a))},_.g(_.BO,{text:R}))},
else:function(){return _.g(Yvm,{text:R,alwaysShowTruncationText:C,truncationText:h,maxLines:function(){var a;return(a=y==null?void 0:y())!=null?a:U().maxLines},
textStyle:u,accessibilityLabel:Q,textSize:b})}})}}))},"dd");
_.Fn.idomCompat=!0;var Y$g=_.w(function(l){var D=_.n0(function(y){var A;(A=l.onClick)==null||A.call(l,y)}),U={},n={};
return _.g("yt-shelf-header-layout",{class:_.DV("yt-shelf-header-layout",(U["yt-shelf-header-layout--disable-horizontal-padding"]=l.disableHorizontalPadding,U["yt-shelf-header-layout--disable-vertical-padding"]=l.disableVerticalPadding,U["yt-shelf-header-layout--responsive"]=l.useResponsiveLayout,U["yt-shelf-header-layout--narrow"]=function(){var y,A;return((y=l.useResponsiveLayout)==null?void 0:y.call(l))&&((A=l.forceSmallLayout)==null?void 0:A.call(l))},U["yt-shelf-header-layout--is-overlay"]=l.isOverlay,
U["yt-shelf-header-layout--tappable"]=l.isInteractive,U["yt-shelf-header-layout--optional-medium-layout-padding"]=l.useUpdatedPadding,U)),
"on:click":D,tabindex:function(){var y;return((y=l.isInteractive)==null?0:y.call(l))?0:void 0}},_.g("div",{class:"yt-shelf-header-layout__header-row"},_.g(_.v,{cond:l.leadingIcon,
then:function(y){return _.g("div",{class:"yt-shelf-header-layout__leading-icon"},_.g(_.C0,{icon:y}))},
else:function(){return _.g(_.v,{cond:l.hasLeadingImage,then:function(){var y,A={};return _.g("div",{class:_.DV("yt-shelf-header-layout__leading-image",(A["yt-shelf-header-layout__leading-image--circular-image"]=l.circularImage,A))},(y=l.leadingImage)==null?void 0:y.call(l))}})}}),_.g("div",{class:"yt-shelf-header-layout__label-container"},_.g(_.v,{cond:l.hasSuperlabel,
then:function(){var y;return _.g("div",{class:"yt-shelf-header-layout__superlabel"},(y=l.superlabel)==null?void 0:y.call(l))}}),_.g("div",{class:"yt-shelf-header-layout__title-row"},_.g(HX1,{text:l.title,
className:_.DV("yt-shelf-header-layout__title",(n["yt-shelf-header-layout__title--small-title"]=l.forceSmallLayout,n)),tagLevel:l.tagLevel}),_.g(_.v,{cond:l.hasDetail,then:function(){var y;return _.g("div",{class:"yt-shelf-header-layout__detail"},(y=l.detail)==null?void 0:y.call(l))}})),_.g(_.v,{cond:l.hasSublabel,
then:function(){var y;return _.g("div",{class:"yt-shelf-header-layout__sublabel"},(y=l.sublabel)==null?void 0:y.call(l))}})),_.g(_.v,{cond:l.hasTrailingActions,
then:function(){var y;return _.g("div",{class:"yt-shelf-header-layout__trailing-actions"},(y=l.trailingActions)==null?void 0:y.call(l))}})),_.g(_.v,{cond:l.hasBottomAccessory,
then:function(){var y;return _.g("div",{class:"yt-shelf-header-layout__bottom-accessory"},(y=l.bottomAccessory)==null?void 0:y.call(l))}}))},"ed");
Y$g.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var HX1=_.w(function(l){var D=l.text;var U=l.className;var n=l.tagLevel;return _.g(_.rt,null,_.g(_.F2,{when:function(){return(n==null?void 0:n())===0}},function(){return _.g("h2",{class:U},D())}),_.g(_.F2,{when:function(){return(n==null?void 0:n())===1}},function(){return _.g("h3",{class:U},D())}),_.g(_.F2,{when:function(){return(n==null?void 0:n())===2}},function(){return _.g("h4",{class:U},D())}),_.g(_.oN,null,function(){return _.g("h2",{class:U},D())}))},"fd");var iay,OX1,VOy;_.oa=_.w(function(l){var D=l.className;var U=l.data;var n=l.disableHorizontalPadding;var y=l.disableVerticalPadding;var A=l.forceSmallLayout;var C=l.useResponsiveLayout;var h=l.isOverlay;l=l.useUpdatedPadding;return _.g("yt-section-header-view-model",{class:_.DV("ytSectionHeaderViewModelHost",D),style:_.BK({"background-color":function(){return hB(U().backgroundColor)?_.tu(hB(U().backgroundColor)):void 0}})},_.g(Y$g,{hasDetail:!1,
title:function(){return _.g(_.BO,{text:function(){return U().headline}})},
hasTitle:!0,sublabel:function(){return _.g(OX1,{data:U})},
hasSublabel:function(){return!!U().sublabel||!!U().bottomBadge},
superlabel:function(){return _.g(VOy,{data:U})},
hasSuperlabel:function(){return!!U().superlabel||!!U().topBadge},
leadingImage:function(){return _.g(iay,{leadingAccessory:function(){return U().leadingAccessory}})},
hasLeadingImage:function(){return!!U().leadingAccessory},
trailingActions:function(){return _.g(_.uI,{data:function(){return U().trailingActions}},{flexibleActionsViewModel:_.Dq})},
hasTrailingActions:function(){return!!U().trailingActions},
disableHorizontalPadding:function(){return(n==null?void 0:n())||U().disableHorizontalPadding},
disableVerticalPadding:y,forceSmallLayout:A,useResponsiveLayout:C,isOverlay:h,isInteractive:function(){return!!_.eq(U().rendererContext)},
onClick:function(b){if(_.mr(U().rendererContext)){var u=_.eq(U().rendererContext);u&&_.Xk(u,{form:{element:b.target,event:b}})}},
bottomAccessory:function(){return _.g(_.uI,{data:function(){return U().bottomAccessory}},{descriptionPreviewViewModel:function(b){return _.g(_.Fn,{data:b.data,
useMediumText:!0})}})},
hasBottomAccessory:function(){return!!U().bottomAccessory},
useUpdatedPadding:l}))},"gd");
iay=_.w(function(l){var D=l.leadingAccessory;return _.g(_.GZ,null,_.g(_.v,{cond:function(){var U;return(U=D().image)!=null?U:_.pq(D().themedImage)},
then:function(U){return _.g(_.rh,{data:U,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.g(_.v,{cond:function(){return _.M(D().avatar,_.X7)},
then:function(U){return _.g(_.iX,{data:U})}}))},"hd");
OX1=_.w(function(l){var D=l.data;return _.g(_.GZ,null,_.g(_.v,{cond:function(){return _.M(D().bottomBadge,BZ8)},
then:function(U){var n={};return _.g(_.LK,{data:U,class:_.DV((n.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!U()&&!!D().sublabel},n))})}}),_.g(_.v,{cond:function(){return D().sublabel},
then:function(U){return _.g(_.BO,{text:U})}}))},"id");
VOy=_.w(function(l){var D=l.data;return _.g(_.GZ,null,_.g(_.v,{cond:function(){return _.M(D().topBadge,BZ8)},
then:function(U){var n={};return _.g(_.LK,{data:U,class:_.DV((n.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!U()&&!!D().superlabel},n))})}}),_.g(_.v,{cond:function(){return D().superlabel},
then:function(U){return _.g(_.BO,{text:U})}}))},"jd");_.Tt(_.oa,"yt-section-header-view-model",{props:{data:_.C$,className:_.C$,disableHorizontalPadding:_.C$,disableVerticalPadding:_.C$,forceSmallLayout:_.C$,useResponsiveLayout:_.C$,isOverlay:_.C$,useUpdatedPadding:_.C$}});_.RL("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var wr=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return l};
_.Z(wr,_.p);_.W=wr.prototype;_.W.attached=function(){this.requestElementsPerRow()};
_.W.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"}}}};
_.W.onDataChange=function(){var l=this;_.u6(this,function(){l.updateItemVisibility()})};
_.W.onUpdateElementsPerRowAction=function(l){l&&this.elementsPerRow!==l&&(this.elementsPerRow=l,this.updateItemVisibility())};
_.W.updateItemVisibility=function(){var l=this;this.data&&this.data.panels&&_.iJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(D,U){D.hidden=U>l.elementsPerRow-1})};
_.W.requestElementsPerRow=function(){_.O9(this.hostElement,"yt-request-elements-per-row")};
wr.prototype.onDataChange=wr.prototype.onDataChange;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],wr.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],wr.prototype,"actionHandlerBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],wr.prototype,"data",void 0);_.E([_.K({value:3}),_.T("design:type",Number)],wr.prototype,"elementsPerRow",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wr.prototype,"onDataChange",null);_.E([_.x({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],wr);
_.r(wr,"ytd-primetime-promo-renderer",function(){if(IEz!==void 0)return IEz;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return IEz=l},{mode:1});var l31;var rr=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return l};
_.Z(rr,_.p);rr.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
rr.prototype.handleButtonRefreshAction=function(l){if(l=_.M(l,Saz))this.set("data.button",l.membershipButton),this.notifyPath("data.button")};
_.QP.Object.defineProperties(rr.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:(D=l.avatars)==null?void 0:D.slice(0,8))||[]}}});
_.E([_.K(),_.T("design:type",Object)],rr.prototype,"data",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],rr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],rr.prototype,"rendererBehavior",void 0);_.E([_.t("data"),_.T("design:type",Array),_.T("design:paramtypes",[])],rr.prototype,"avatars",null);
_.E([_.x({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],rr);
_.r(rr,"ytd-recognition-shelf-renderer",function(){if(l31!==void 0)return l31;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return l31=l},{mode:1});var D0y;var U05;var zc=function(){var l=_.p.apply(this,arguments)||this;l.modernButtons=_.q("web_modern_buttons");return l};
_.Z(zc,_.p);_.W=zc.prototype;
_.W.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]]"}}}}}};
_.W.dataChanged=function(){this.collapsed=!0};
_.W.computeVisibleItems=function(l,D){return l!==void 0&&l.items?D?l.items.slice(0,this.data.collapsedItemCount):l.items:[]};
_.W.computeHideShowMore=function(l,D,U){return l>=D||!U};
_.W.computeHideShowAll=function(l,D,U){return!(l&&D)||U};
_.W.onMoreClick=function(){this.collapsed=!1};
_.QP.Object.defineProperties(zc.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.q("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.e_("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.q("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
zc.prototype.dataChanged=zc.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],zc.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],zc.prototype,"isSearch",void 0);
_.E([_.K({computed:"computeVisibleItems(data,collapsed)"}),_.T("design:type",Array)],zc.prototype,"visibleItems",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],zc.prototype,"collapsed",void 0);_.E([_.K({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.T("design:type",Boolean)],zc.prototype,"hideShowMore",void 0);
_.E([_.K({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.T("design:type",Boolean)],zc.prototype,"hideShowAll",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],zc.prototype,"modernButtons",void 0);_.E([_.t("isSearch"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],zc.prototype,"typographyBump",null);
_.E([_.t("isSearch"),_.T("design:type",Object),_.T("design:paramtypes",[])],zc.prototype,"lockupExperiments",null);_.E([_.t("isSearch"),_.T("design:type",String),_.T("design:paramtypes",[])],zc.prototype,"thumbnailWidth",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zc.prototype,"dataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],zc);
_.r(zc,"ytd-vertical-list-renderer",function(){if(U05!==void 0)return U05;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return U05=l},{mode:1});var ny7=_.wL(["#"]);_.RL("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var fV=function(){var l=_.p.apply(this,arguments)||this;l.isConstrainedList=!1;return l};
_.Z(fV,_.p);_.W=fV.prototype;
_.W.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"}}}};
_.W.computeThumbnailStyle=function(l){return l||""};
_.W.computePlaceAnnotationUnderTitle=function(){var l;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((l=this.data)==null?void 0:l.thumbnailStyle)||"")};
_.W.computeHrefWithDefault=function(l){return this.ytComponentBehavior.computeHref_(l)||_.BEN(ny7)};
_.W.computeIsPromoShelf=function(l){var D;return(l=l==null?void 0:(D=l[0])==null?void 0:D.metadataBadgeRenderer)?l.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.W.computePlaceBadgeBesideTitle=function(l){var D;return(l==null?0:(D=l[0])==null?0:D.metadataBadgeRenderer)?!this.computeIsPromoShelf(l):!1};
_.W.computeMenuIcon=function(l){return this.computeIsPromoShelf(l)?"yt-icons:more_vert":"yt-icons:more"};
_.W.onDataChange=function(){var l,D;((l=this.data)==null?0:(D=l.content)==null?0:D.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.W.onLockupRequested=function(l){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&l.detail&&l.detail.videoIds){for(var D=this.data.content.gridRenderer.items,U=new Set,n=_.B(l.detail.videoIds),y=n.next();!y.done;y=n.next())U.add(y.value);l.detail.returnValue=D.filter(function(A){return A.gridVideoRenderer&&A.gridVideoRenderer.videoId&&U.has(A.gridVideoRenderer.videoId)}).map(function(A){return A.gridVideoRenderer})}};
_.W.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
fV.prototype.onLockupRequested=fV.prototype.onLockupRequested;fV.prototype.onDataChange=fV.prototype.onDataChange;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],fV.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],fV.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.$s),_.T("design:type",Object)],fV.prototype,"ironResizableBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fV.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],fV.prototype,"isSearch",void 0);_.E([_.K(),_.T("design:type",Object)],fV.prototype,"isConstrainedList",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("kevlar_fluid_dismiss")}}),
_.T("design:type",Boolean)],fV.prototype,"enableFluidDismiss",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.T("design:type",String)],fV.prototype,"thumbnailStyle",void 0);_.E([_.K({computed:"computeMenuIcon(data.badges)"}),_.T("design:type",String)],fV.prototype,"menuIcon",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.T("design:type",Boolean)],fV.prototype,"featuredPromo",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fV.prototype,"onDataChange",null);_.E([_.hj("yt-lockup-requested"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],fV.prototype,"onLockupRequested",null);_.E([_.x({is:"ytd-shelf-renderer",disableElementRegistration:!0})],fV);
_.r(fV,"ytd-shelf-renderer",function(){if(D0y!==void 0)return D0y;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return D0y=l},{mode:1});var yb7;var $4=function(){return _.p.apply(this,arguments)||this};
_.Z($4,_.p);$4.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.QP.Object.defineProperties($4.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$4.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],$4.prototype,"isPlaylist",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],$4.prototype,"isClipList",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],$4.prototype,"isPlaylistPageWithFilters",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],$4.prototype,"hasTitle",null);_.E([_.K(),_.t("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.T("design:type",Object),_.T("design:paramtypes",[])],$4.prototype,"isRightAligned",null);
_.E([_.x({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],$4);
_.r($4,"ytd-sort-filter-header-renderer",function(){if(yb7!==void 0)return yb7;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return yb7=l},{mode:1});var Abk;var Nv=function(){var l=_.p.apply(this,arguments)||this;l.enableRightArrowHidden=_.q("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return l};
_.Z(Nv,_.p);Nv.prototype.attached=function(){var l=this;this.enableRightArrowHidden&&(this.JSC$16619_throttledOnResize=new _.A1(function(){var D;(D=l.ytdHorizontalListBehavior)==null||D.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var D;
(D=l.JSC$16619_throttledOnResize)==null||D.fire()}),this.resizeObserver.observe(this.hostElement))};
Nv.prototype.detached=function(){if(this.enableRightArrowHidden){var l;(l=this.resizeObserver)==null||l.disconnect();var D;(D=this.JSC$16619_throttledOnResize)==null||D.dispose()}};
Nv.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]]"}}}}}};
Nv.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.QP.Object.defineProperties(Nv.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.q("enable_creator_details_shelf_m2")){var l=[],D;((D=this.data)==null?0:D.creatorVideosButton)&&l.push(this.data.creatorVideosButton);var U;((U=this.data)==null?0:U.creatorAboutButton)&&l.push(this.data.creatorAboutButton);D=_.B(this.data.creatorCustomUrlButtons||[]);for(U=D.next();!U.done;U=D.next())l.push(U.value);return l}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.q("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.RH.YtdHorizontalListBehavior),_.T("design:type",Object)],Nv.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Nv.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Nv.prototype,"engagementPanel",void 0);
_.E([_.K(),_.T("design:type",Object)],Nv.prototype,"enableRightArrowHidden",void 0);_.E([_.t("enableRightArrowHidden","atEnd"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Nv.prototype,"hideRightArrow",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Nv.prototype,"creatorCustomUrlButtons",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data","creatorCustomUrlButtons"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Nv.prototype,"showCreatorCustomUrlButtons",null);_.E([_.t("showCreatorCustomUrlButtons"),_.T("design:type",Number),_.T("design:paramtypes",[])],Nv.prototype,"channelAvatarSize",null);_.E([_.x({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Nv);
_.r(Nv,"ytd-video-description-infocards-section-renderer",function(){if(Abk!==void 0)return Abk;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Abk=l},{mode:_.Vj("kevlar_poly_si_batch_j067")?1:2});var Wj5;var sn=function(){return _.p.apply(this,arguments)||this};
_.Z(sn,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],sn.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.infoIcon)"}),_.T("design:type",Object)],sn.prototype,"infoIcon",void 0);_.E([_.x({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],sn);
_.r(sn,"ytd-eom-settings-disclaimer-renderer",function(){if(Wj5!==void 0)return Wj5;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Wj5=l},{mode:1});var BW_;var En=function(){return _.p.apply(this,arguments)||this};
_.Z(En,_.p);_.QP.Object.defineProperties(En.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.suppressPaddingDisclaimer)}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],En.prototype,"componentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],En.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],En.prototype,"suppressPaddingDisclaimer",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],En);
_.r(En,"ytd-product-list-header-renderer",function(){if(BW_!==void 0)return BW_;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return BW_=l},{mode:1});var Cgm;var Tc=function(){return _.p.apply(this,arguments)||this};
_.Z(Tc,_.p);Tc.prototype.computeThumbnailStyle=function(l){if(l&&(l=_.an(l)))return"background-color:"+l+";"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Tc.prototype,"rendererBehaviors",void 0);_.E([_.K(),_.T("design:type",Object)],Tc.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Tc);
_.r(Tc,"ytd-hashtag-tile-renderer",function(){if(Cgm!==void 0)return Cgm;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Cgm=l},{mode:1});var hk1;var Ia=function(){return _.p.apply(this,arguments)||this};
_.Z(Ia,_.p);Ia.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ia.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ia.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Ia);
_.r(Ia,"ytd-sponsorships-alert-renderer",function(){if(hk1!==void 0)return hk1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return hk1=l},{mode:1});var PgH;var H$=function(){return _.p.apply(this,arguments)||this};
_.Z(H$,_.p);H$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.QP.Object.defineProperties(H$.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.E([_.m(_.U3),_.T("design:type",Object)],H$.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],H$.prototype,"ytdLockupBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],H$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.E([_.K({selector:_.XE}),_.T("design:type",Object)],H$.prototype,"isGridViewEnabled",void 0);
_.E([_.t("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],H$.prototype,"watchFeedBigThumbs",null);_.E([_.t("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.T("design:type",String),_.T("design:paramtypes",[])],H$.prototype,"thumbnailWidth",null);_.E([_.K(),_.T("design:type",Object)],H$.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],H$);
_.r(H$,"ytd-compact-movie-renderer",function(){if(PgH!==void 0)return PgH;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return PgH=l},{mode:1});var bak;var gy7;var uUr=_.H3("HTML_DIR")==="rtl",Y4=function(){var l=_.p.apply(this,arguments)||this;l.engagementPanel=!1;l.maxLines=2;l.expandButtonOffset=0;l.showExpandButton=!1;l.isTruncated=!1;l.isExpanded=!1;l.currentSnippetType=2;l.alwaysShowExpandButton=!1;l.JSC$16636_lastWidth=NaN;l.observer=null;l.left=0;l.right=0;l.mid=0;l.longestSnippetLength=0;l.isFinalSnippet=!1;l.isFirstMutation=!1;l.isResetMutation=!1;l.OVERFLOW_THRESHOLD=5;return l};
_.Z(Y4,_.p);_.W=Y4.prototype;_.W.onClick=function(l){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.$o(_.$f(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var D;if((D=window.getSelection())==null||!D.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.W.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.W.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.W.updateTextOnSnippetTypeChange=function(){_.q("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.W.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.W.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.II(new _.rc("AttributedSnippet is empty when the description is not empty",this.text))};
_.W.mutationCallback=function(){if(this.observer!=null){var l=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var D=Math.floor(l*this.maxLines/8);this.setSnippetText(this.text,D);D!==0||this.attributedTextIsEmpty()||_.II(new _.rc("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;l=l*this.maxLines/8;this.left=0;var U;this.right=Math.min(l*2,(U=(D=this.simpleText)==null?void 0:D.length)!=null?U: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)}}};
_.W.mutationObserve=function(l){var D=this;this.observer||(this.observer=new MutationObserver(function(){D.mutationCallback()}));
this.observer.observe(l,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.W.attached=function(){var l=this;_.u6(this,function(){l.resize()})};
_.W.isExpandedChanged=function(){_.O9(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.W.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)};
_.W.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var l="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((uUr?"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",l);this.snippetContainer.style.setProperty("mask-image",
l)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(uUr?"right":"left",this.expandButtonOffset+"px")};
_.W.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.W.setSnippetText=function(l,D){l||(l={});if(_.Fk(l)){var U=xt(l,D);U.attachmentRuns||U.commandRuns||U.decorationRuns||U.styleRuns||U.alignment||U.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:xt(l,D),headerRuns:p4d(D,this.headerRuns)},this.currentSnippetType=0):_.II(new _.rc("Tried to set snippet text when HTML element was null",l)):(this.plainSnippetText.textContent=c9(l.content||"",D),this.currentSnippetType=2)}else{a:{U=Jsg(l,D);if(U.runs){U=_.B(U.runs);for(var n=
U.next();!n.done;n=U.next())if(n=n.value,n.bold||n.deemphasize||n.italics||n.strikethrough||n.textColor||n.navigationEndpoint||_.M(n,eQ)){U=!0;break a}}U=!1}U?this.formattedSnippetText?(this.formattedSnippetText.text=Jsg(l,D),this.currentSnippetType=1):_.II(new _.rc("Tried to set snippet text when HTML element was null",l)):(this.plainSnippetText.textContent=c9(_.Nl(l),D),this.currentSnippetType=2)}};
_.W.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.W.attributedTextIsEmpty=function(){var l=this.text;if(!_.Fk(l))return!0;var D;return((D=l.content)==null?void 0:D.length)===0?!0:!1};
_.W.resize=function(l){if(this.snippetText){if(l===void 0?0:l)this.JSC$16636_lastWidth=NaN;var D=this.hostElement.offsetWidth;if(D!==this.JSC$16636_lastWidth&&!this.isExpanded)if(this.JSC$16636_lastWidth=D,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;l=0;var U,n;D=Math.min(D*this.maxLines/8*2,(n=(U=this.simpleText)==null?void 0:U.length)!=null?n:0)-1;for(U=0;l<=D;)n=Math.floor(l+(D-l)/2),this.setSnippetText(this.text,n),this.isOverflowing()?D=n-1:(l=n+1,U=n);this.setSnippetText(this.text,U);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.W.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.W.onExpandClick=function(){var l=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.q("inline_expander_reset_focus_killswitch")||_.u6(this,function(){var D;((D=_.Jc().resolve(_.G8(_.L$)))==null?0:D.isKeyBoardInUse())&&_.CB(l.hostElement)});
_.O9(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.W.onCollapseClick=function(){this.collapse();_.O9(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.W.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.W.computeExpandButtonOffset=function(){var l=this.expandSizer;return l?uUr?l.offsetParent?l.offsetParent.offsetWidth-l.offsetWidth-l.offsetLeft:0:l.offsetLeft:0};
_.QP.Object.defineProperties(Y4.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Fk(this.text)?this.text.content||"":_.Nl(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 _.Fk(this.text)?!0:this.text&&_.q("web_replace_formatted_with_attributed_string")&&AtK(this.text)?(this.text=_.Zk(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}}});
Y4.prototype.onTextChanged=Y4.prototype.onTextChanged;Y4.prototype.updateMaskAndExpandButtonOffset=Y4.prototype.updateMaskAndExpandButtonOffset;Y4.prototype.updateSnippetContainerMaxHeight=Y4.prototype.updateSnippetContainerMaxHeight;Y4.prototype.isExpandedChanged=Y4.prototype.isExpandedChanged;Y4.prototype.updateTextOnSnippetTypeChange=Y4.prototype.updateTextOnSnippetTypeChange;Y4.prototype.updateIsFormattedExpanded=Y4.prototype.updateIsFormattedExpanded;Y4.prototype.updateIsAttributedExpanded=Y4.prototype.updateIsAttributedExpanded;
Y4.prototype.onClick=Y4.prototype.onClick;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Y4.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Y4.prototype,"text",void 0);_.E([_.K(),_.T("design:type",Array)],Y4.prototype,"headerRuns",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Y4.prototype,"engagementPanel",void 0);_.E([_.K(),_.T("design:type",Object)],Y4.prototype,"maxLines",void 0);
_.E([_.K(),_.T("design:type",String)],Y4.prototype,"expandLabel",void 0);_.E([_.K(),_.T("design:type",String)],Y4.prototype,"collapseLabel",void 0);_.E([_.K(),_.T("design:type",Object)],Y4.prototype,"expandCommand",void 0);_.E([_.K(),_.T("design:type",Object)],Y4.prototype,"expandButtonOffset",void 0);_.E([_.t("text"),_.T("design:type",String),_.T("design:paramtypes",[])],Y4.prototype,"simpleText",null);
_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Y4.prototype,"onClick",null);_.E([_.t("text","isExpanded"),_.T("design:type",Object),_.T("design:paramtypes",[])],Y4.prototype,"expandedText",null);_.E([_.t("headerRuns","isExpanded"),_.T("design:type",Object),_.T("design:paramtypes",[])],Y4.prototype,"expandedHeaderRuns",null);
_.E([_.t("text"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Y4.prototype,"hasAttributedStringText",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Y4.prototype,"showExpandButton",void 0);_.E([_.t("collapseLabel","isExpanded"),_.T("design:type",Object),_.T("design:paramtypes",[])],Y4.prototype,"showCollapseButton",null);_.E([_.K(),_.T("design:type",Object)],Y4.prototype,"isTruncated",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Y4.prototype,"isExpanded",void 0);_.E([_.K(),_.T("design:type",Boolean)],Y4.prototype,"isAttributedExpanded",void 0);_.E([_.Pg("isExpanded","hasAttributedStringText"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y4.prototype,"updateIsAttributedExpanded",null);_.E([_.K(),_.T("design:type",Boolean)],Y4.prototype,"isFormattedExpanded",void 0);
_.E([_.Pg("isExpanded","hasAttributedStringText"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y4.prototype,"updateIsFormattedExpanded",null);_.E([_.K(),_.T("design:type",Number)],Y4.prototype,"currentSnippetType",void 0);_.E([_.t("currentSnippetType"),_.T("design:type",Object),_.T("design:paramtypes",[])],Y4.prototype,"useAttributedSnippet",null);
_.E([_.t("currentSnippetType"),_.T("design:type",Object),_.T("design:paramtypes",[])],Y4.prototype,"useFormattedSnippet",null);_.E([_.t("currentSnippetType"),_.T("design:type",Object),_.T("design:paramtypes",[])],Y4.prototype,"usePlainSnippet",null);_.E([_.K(),_.T("design:type",Object)],Y4.prototype,"alwaysShowExpandButton",void 0);_.E([_.Pg("currentSnippetType"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y4.prototype,"updateTextOnSnippetTypeChange",null);
_.E([_.K(),_.T("design:type",Object)],Y4.prototype,"attributedSnippetText",void 0);_.E([_.gP("#snippet"),_.T("design:type",HTMLElement)],Y4.prototype,"snippetContainer",void 0);_.E([_.gP("#snippet-text"),_.T("design:type",HTMLElement)],Y4.prototype,"snippetText",void 0);_.E([_.gP("#plain-snippet-text"),_.T("design:type",HTMLElement)],Y4.prototype,"plainSnippetText",void 0);_.E([_.gP("#formatted-snippet-text"),_.T("design:type",Object)],Y4.prototype,"formattedSnippetText",void 0);
_.E([_.gP("#attributed-snippet-text"),_.T("design:type",Object)],Y4.prototype,"attributedSnippetTextEl",void 0);_.E([_.gP("#expand"),_.T("design:type",HTMLElement)],Y4.prototype,"expandButton",void 0);_.E([_.gP("#expand-sizer"),_.T("design:type",HTMLElement)],Y4.prototype,"expandSizer",void 0);_.E([_.GY("isExpanded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y4.prototype,"isExpandedChanged",null);
_.E([_.Pg("isExpanded","maxLines"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y4.prototype,"updateSnippetContainerMaxHeight",null);_.E([_.Pg("isTruncated","showExpandButton","expandButtonOffset"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y4.prototype,"updateMaskAndExpandButtonOffset",null);
_.E([_.GY("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y4.prototype,"onTextChanged",null);_.E([_.x({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Y4);
_.r(Y4,"ytd-text-inline-expander",function(){if(gy7===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);gy7=l}l=gy7;return l},{mode:2});var On=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return l};
_.Z(On,_.p);On.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
On.prototype.handleUpdateDescriptionAction=function(l){if(l=_.M(l,_.oam))if(l.attributedDescription)this.set("data.attributedDescriptionBodyText",l.attributedDescription);else if(l.description){var D;((D=this.data)==null?0:D.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Zk(l.description)):this.set("data.descriptionBodyText",l.description)}};
_.QP.Object.defineProperties(On.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var l,D;return!((l=this.data)==null||!l.attributedDescriptionBodyText)||!((D=this.data)==null||!D.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null?0:l.collapsedLineCount){var D;return(D=this.data)==null?void 0:D.collapsedLineCount}l=_.RG("web_watch_description_collapsed_default_lines",12);if(_.q("ww_desc_line_page_size_ks"))return l;D=Math.round(_.uV().height*_.RG("web_watch_description_screen_height_percentage",.5)/20);return Math.max(D,l)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return(U=(l=this.data)==null?void 0:l.descriptionBodyText)!=null?U:(D=this.data)==null?void 0:D.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.sourceAttributions}}});
On.prototype.panelContentVisibleChanged=On.prototype.panelContentVisibleChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],On.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],On.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],On.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Boolean)],On.prototype,"panelContentVisible",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],On.prototype,"engagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],On.prototype,"shortsPanel",void 0);_.E([_.gP("#inline-expander"),_.T("design:type",Object)],On.prototype,"inlineExpander",void 0);
_.E([_.Pg("panelContentVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],On.prototype,"panelContentVisibleChanged",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],On.prototype,"hasDescriptionText",null);_.E([_.t("data"),_.T("design:type",Number),_.T("design:paramtypes",[])],On.prototype,"collapsedLines",null);
_.E([_.t("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.T("design:type",Object),_.T("design:paramtypes",[])],On.prototype,"descriptionText",null);_.E([_.t("data","data.headerRuns"),_.T("design:type",Object),_.T("design:paramtypes",[])],On.prototype,"headerRuns",null);_.E([_.t("data","data.sourceAttributions"),_.T("design:type",Object),_.T("design:paramtypes",[])],On.prototype,"sourceAttributions",null);
_.E([_.x({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],On);
_.r(On,"ytd-expandable-video-description-body-renderer",function(){if(bak!==void 0)return bak;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return bak=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var vyz;var QU5=_.w(function(l){var D=l.data;return _.g("factoid-renderer",{class:"ytwFactoidRendererHost"},_.g("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return D().accessibilityText}},_.g("span",{class:"ytwFactoidRendererValue"},_.g(_.BO,{text:function(){return D().value}})),_.g("span",{class:"ytwFactoidRendererLabel"},_.g(_.BO,{text:function(){return D().label}}))))},"kd");_.Tt(QU5,"factoid-renderer",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;return _.g("upload-time-factoid-renderer",null,_.g(_.uI,{data:function(){return D().factoid}},{factoidRenderer:QU5}))},"ld"),"upload-time-factoid-renderer",{props:{data:_.ND}});_.Tt(_.w(function(l){var D=l.data;return _.g("view-count-factoid-renderer",null,_.g(_.uI,{data:function(){return D().factoid}},{factoidRenderer:QU5}))},"md"),"view-count-factoid-renderer",{props:{data:_.ND}});var VB=function(){var l=_.p.apply(this,arguments)||this;l.shortsPanel=!1;l.engagementPanel=!1;l.watchWhileSdp=_.q("shorts_desktop_watch_while_sdp");return l};
_.Z(VB,_.p);VB.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"}}}}};
_.QP.Object.defineProperties(VB.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var l;return(l=this.data)==null?void 0:l.channel}}});
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],VB.prototype,"componentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],VB.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VB.prototype,"shortsPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VB.prototype,"engagementPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VB.prototype,"watchWhileSdp",void 0);_.E([_.t("shortsPanel","engagementPanel","data.channel"),_.T("design:type",Object),_.T("design:paramtypes",[])],VB.prototype,"showChannelInfo",null);_.E([_.x({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],VB);
_.r(VB,"ytd-video-description-header-renderer",function(){if(vyz!==void 0)return vyz;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vyz=l},{mode:1});var GE1;var iZ=function(){return _.p.apply(this,arguments)||this};
_.Z(iZ,_.p);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],iZ.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],iZ.prototype,"noPadding",void 0);_.E([_.K(),_.T("design:type",Object)],iZ.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],iZ);
_.r(iZ,"ytd-list-item-view-model",function(){if(GE1!==void 0)return GE1;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return GE1=l},{mode:1});var JbH;var Ljh;var qwm;var MCv;var lZ=function(){var l=_.p.apply(this,arguments)||this;l.adaptiveFullWidth=!1;l.modernButtons=_.q("web_modern_buttons");l.buttonOverrides={style:"call-to-action",type:"filled"};l.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return l};
_.Z(lZ,_.p);lZ.prototype.handleSetTimestamp_=function(l){this.data&&this.data.shortUrl&&(_.iJ(this.hostElement).querySelector("#share-url").value=l.isSet?_.sF(this.data.shortUrl,"t",l.timestamp):this.data.shortUrl)};
lZ.prototype.handleSignalActionCopyShareUrl_=function(l,D){(_.q("killswitch_copy_link_target_check")||_.iJ(this.hostElement).querySelector("#copy-button")===D)&&this.copyUrlToClipboard()};
lZ.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.iJ(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
lZ.prototype.computeStyle_=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],lZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],lZ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.T("design:type",String)],lZ.prototype,"rendererStyle",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],lZ.prototype,"adaptiveFullWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],lZ.prototype,"modernButtons",void 0);_.E([_.K(),_.T("design:type",Object)],lZ.prototype,"buttonOverrides",void 0);_.E([_.S0({is:"yt-copy-link-renderer",disableElementRegistration:!0})],lZ);
_.r(lZ,"yt-copy-link-renderer",function(){if(MCv===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;qwm===void 0&&(qwm=document.createElement("template"));var n=qwm;U.call(D,n.content.cloneNode(!0),l.content.firstChild);MCv=l}l=MCv;return l},{mode:2});_.RL("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Da=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return l};
_.Z(Da,_.p);_.W=Da.prototype;_.W.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.W.attached=function(){this.keyboardFocused=!1};
_.W.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var l=_.Jc().resolve(_.G8(_.L$));l&&(this.keyboardFocused=l.isKeyBoardInUse())}};
_.W.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.W.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}};
_.W.onChange_=function(){if(this.data){var l=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;l&&this.ytComponentBehavior.resolveCommand(l);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.W.handleUpdateToggleAction_=function(l){(l=_.M(l,DT1))&&this.data&&l.targetId==this.data.targetId&&this.set("data.toggled",l.toggled)};
_.W.toBoolean_=function(l){return!!l};
_.W.reset=function(){};
_.W.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("data-changed",this.data))};
_.W.updateDataToggledFromBinding=function(l){this.set("data.toggled",l.detail.value)};
Da.prototype.dataChangedForBinding=Da.prototype.dataChangedForBinding;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Da.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Da.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Da.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],Da.prototype,"data",void 0);_.E([_.K({computed:"computeDescription_(data.*)"}),_.T("design:type",Object)],Da.prototype,"description_",void 0);_.E([_.K({value:function(){return!!_.Jc().resolve(_.G8(_.L$))&&_.q("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.T("design:type",Boolean)],Da.prototype,"useKeyboardFocused",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],Da.prototype,"keyboardFocused",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Da.prototype,"dataChangedForBinding",null);_.E([_.S0({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Da);
_.r(Da,"yt-toggle-form-field-renderer",function(){if(Ljh===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;JbH===void 0&&(JbH=document.createElement("template"));var n=JbH;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Ljh=l}l=Ljh;return l},{mode:2});var Rk5;var Zay;var Uo=function(){var l=_.p.apply(this,arguments)||this;l.isDarkTheme=!1;l.isSearch=!1;l.noTopMargin=_.q("kevlar_watch_no_top_margin");l.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 l};
_.Z(Uo,_.p);_.W=Uo.prototype;_.W.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}}}}}};
_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.W.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.W.dataChanged=function(){var l=this.getSelectedIndex();if(l>0)this.selected=l;else{this.selected=0;var D,U;(D=this.ytScrollableChipCloudBehavior)==null||(U=D.reset)==null||U.call(D)}};
_.W.getSelectedIndex=function(){var l;if((l=this.data)==null||!l.chips)return-1;l=-1;for(var D,U=0;U<((D=this.data)==null?void 0:D.chips.length);U++){var n=void 0,y=void 0;if((n=this.data)==null?0:(y=n.chips[U].chipCloudChipRenderer)==null?0:y.isSelected){l=U;break}}return l};
_.W.onResize=function(){var l=this.ytScrollableChipCloudBehavior;_.u6(l,l.setContainerWidthDiff);l=this.ytScrollableChipCloudBehavior;_.u6(l,l.setButtonsState)};
_.W.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.W.handleRelatedChipCommand=function(l,D){l=this.JSC$16663_chipsSelector.indexOf(D);l!==-1&&this.JSC$16663_chipsSelector.selectIndex(l)};
_.W.handleChipCloudChipSelectAction=function(l){l=this.JSC$16663_chipsSelector.indexOf(l);l>-1&&this.JSC$16663_chipsSelector.selectIndex(l)};
_.W.handleChipCloudChipDeselectAction=function(){var l=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16663_chipsSelector&&((l==null?0:l.continuationCommand)?_.lu(this.hostElement,[l]):(l==null?0:l.searchEndpoint)?this.ytComponentBehavior.resolveCommand(l):l&&_.DP(this.hostElement,[l],this.hostElement),this.JSC$16663_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.W.updateSelectedFromBinding=function(l){this.selected=l.detail.value};
Uo.prototype.onResize=Uo.prototype.onResize;Uo.prototype.dataChanged=Uo.prototype.dataChanged;Uo.prototype.isSearchChanged=Uo.prototype.isSearchChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Uo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Uo.prototype,"actionHandlerBehavior",void 0);
_.E([_.m(_.$s),_.T("design:type",Object)],Uo.prototype,"ironResizableBehavior",void 0);_.E([_.m(),_.T("design:type",xe)],Uo.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Uo.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Uo.prototype,"data",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],Uo.prototype,"selected",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Uo.prototype,"isDarkTheme",void 0);_.E([_.K({value:160}),_.T("design:type",Number)],Uo.prototype,"scrollDistance",void 0);_.E([_.K(),_.T("design:type",Object)],Uo.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Uo.prototype,"noTopMargin",void 0);_.E([_.gP("#chips"),_.T("design:type",Object)],Uo.prototype,"JSC$16663_chipsSelector",void 0);
_.E([_.Pg("isSearch"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Uo.prototype,"isSearchChanged",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Uo.prototype,"dataChanged",null);_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Uo.prototype,"onResize",null);_.E([_.S0({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Uo);
_.r(Uo,"yt-chip-cloud-renderer",function(){if(Zay===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Rk5===void 0&&(Rk5=document.createElement("template"));var n=Rk5;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Zay=l}l=Zay;return l},{mode:2});var ekm,m0z=function(){return ekm!==void 0?ekm:ekm=document.createElement("template")};
document.head.appendChild(m0z().content);var a37;var tC8=document.head,XDr=tC8.appendChild,Sw8;if(a37===void 0){var kEy=document.createElement("template");_.e(kEy,"");kEy.content.insertBefore(m0z().content.cloneNode(!0),kEy.content.firstChild);a37=kEy}Sw8=a37;XDr.call(tC8,Sw8.content);var d0v=_.w(function(l){var D=l.data;return _.g("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.g("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.g("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.g(_.v,{cond:function(){return _.pq(D().image)},
then:function(U){return _.g("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.g(_.rh,{data:U,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.g("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.g(_.BO,{text:function(){return D().title}})),_.g("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.g(_.BO,{text:function(){return D().subtitle}})))),_.g(_.v,{cond:function(){var U;
return(U=D())==null?void 0:U.hasBottomDivider},
then:function(){return _.g("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"nd");var Kjr=_.w(function(l){var D=l.data;return _.g("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.g(_.uI,{data:function(){var U;return(U=D().offerPlanDetailsItem)!=null?U:[]}},{offerPlanDetailsItemViewModel:function(U){return _.g("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.g(d0v,{data:U.data}))}})),_.g("div",null,_.g(_.v,{cond:function(){return D().hasBottomDivider},
then:function(){return _.g("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.g("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.g("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"od");var cb5=_.w(function(l){var D=l.data;l=_.B(_.aw(!1,void 0,"MrXxy"));var U=l.next().value,n=l.next().value,y=_.n0(function(){n(!U());return!1}),A=function(){var C;
return(C=D().offerPlanDetailsContainer)!=null?C:[]};
return _.g("lp-complex-offer-card-details-view-model",null,_.g("div",null,_.g(_.v,{cond:function(){return U()},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.g("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":y,"aria-expanded":U},_.g(_.BO,{text:function(){return D().expandedTitle}})),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.g(_.uI,{data:A},{offerPlanDetailsContainerViewModel:function(C){return _.g("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.g(Kjr,{data:C.data}))}})),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.g(_.BO,{text:function(){return D().legalText}})))},
else:function(){return _.g("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":y,"aria-expanded":U},_.g(_.BO,{text:function(){return D().collapsedTitle}}),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.g(_.C0,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"pd");var pD_=_.w(function(l){var D=l.data;return _.g("lp-complex-offer-card-option-view-model",null,_.g("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.g(_.v,{cond:function(){return D().topDividerText},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.g(_.BO,{text:function(){return D().topDividerText}}))))}}),_.g(_.v,{cond:function(){return D().description},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.g(_.BO,{text:function(){return D().description}}))}}),_.g(_.v,{cond:function(){return D().planPricingPrimary},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.g(_.BO,{text:function(){return D().planPricingPrimary}}))}}),_.g(_.v,{cond:function(){return D().planPricingSecondary},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.g(_.BO,{text:function(){return D().planPricingSecondary}}))}}),_.g(_.v,{cond:function(){return D().primaryButton},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.g(_.uI,{data:function(){return D().primaryButton}},{buttonViewModel:function(U){return _.g(_.t9,{data:U.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"qd");var x0g=_.w(function(l){var D=l.data;var U=function(){var A;return((A=D())==null?void 0:A.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
l={};var n={},y={};return _.g("ytm-lp-complex-offer-card-view-model",null,_.g("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.g("div",{class:_.DV((l.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=U,l),"ytmLpComplexOfferCardViewModelCardContainer")},_.g(_.v,{cond:function(){var A;return(A=D())==null?void 0:A.bannerText},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.g("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.g(_.BO,{text:function(){return D().bannerText}})))}}),_.g(_.v,{cond:function(){return _.pq(D().logo)},
then:function(A){var C={};return _.g("div",{class:_.DV((C.ytmLpComplexOfferCardViewModelLogoAlignLeft=U,C),"ytmLpComplexOfferCardViewModelLogo")},_.g(_.rh,{data:A,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.g("div",{class:_.DV((n.ytmLpComplexOfferCardViewModelTitleAlignLeft=U,n),"ytmLpComplexOfferCardViewModelTitle")},_.g(_.BO,{text:function(){return D().title}})),_.g(_.v,{cond:function(){var A;
return(A=D())==null?void 0:A.subtitle},
then:function(){var A={};return _.g("div",{class:_.DV((A.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=U,A),"ytmLpComplexOfferCardViewModelSubtitle")},_.g(_.BO,{text:function(){return D().subtitle}}))}}),_.g(_.v,{cond:function(){return D().planPricingPrimary},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.g(_.BO,{text:function(){return D().planPricingPrimary}}))}}),_.g(_.v,{cond:function(){return D().planPricingSecondary},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.g(_.BO,{text:function(){return D().planPricingSecondary}}))}}),_.g(_.v,{cond:function(){return D().purchaseButton},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.g(_.uI,{data:function(){return D().purchaseButton}},{buttonViewModel:function(A){return _.g(_.t9,{data:A.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.g(_.v,{cond:function(){var A;
return(A=D())==null?void 0:A.offerOptions},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.g(_.uI,{data:function(){return D().offerOptions}},{lpComplexOfferCardOptionViewModel:pD_}))}}),_.g("div",{class:_.DV((y.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=U,y),"ytmLpComplexOfferCardViewModelLegalText")},_.g(_.BO,{text:function(){return D().legalText}})),_.g(_.v,{cond:function(){var A;
return(A=D())==null?void 0:A.offerCardDetails},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.g(_.uI,{data:function(){return D().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:cb5}))}}))))},"rd");var jUh=_.w(function(l){var D=l.data;var U=function(){var C;return((C=D())==null?void 0:C.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
l={};var n={},y={},A={};return _.g("ytm-lp-complex-offer-card-section-view-model",null,_.g("div",{class:_.DV("ytmLpComplexOfferCardSectionViewModelHost")},_.g("div",{class:_.DV((l.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=U,l),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.g("div",{class:_.DV((n.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=U,n),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.g("h2",{class:_.DV((y.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
U,y),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.g(_.BO,{text:function(){return D().title}}))),_.g(_.v,{cond:function(){var C;
return(C=D())==null?void 0:C.subtitle},
then:function(){var C={},h={};return _.g("div",{class:_.DV((C.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=U,C),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.g("div",{class:_.DV((h.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=U,h),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.g(_.BO,{text:function(){return D().subtitle}})))}}),_.g("div",{class:_.DV((A.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=U,A),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.g(_.uI,{data:function(){var C;
return(C=D().offerPlans)!=null?C:[]}},{lpComplexOfferCardViewModel:function(C){return _.g("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.g(x0g,{data:C.data}))}})))))},"sd");var Fj_=_.w(function(l){return _.g("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.g("div",{class:"ytLpCouponBannerViewModelIcon"},_.g(_.C0,{icon:function(){return"price_tag"}})),_.g("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.g("div",{class:"ytLpCouponBannerViewModelContent"},_.g("div",{class:"ytLpCouponBannerViewModelHeading"},_.g(_.BO,{text:function(){var D;
return(D=l.data())==null?void 0:D.title}})),_.g("div",{class:"ytLpCouponBannerViewModelBody"},_.g(_.BO,{text:function(){var D;
return(D=l.data())==null?void 0:D.subtitle}})))))},"td");
Fj_.idomCompat=!0;_.n9=tVz.getInstance();var oy8;oy8=_.w(function(l){return _.g("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":l.shouldAriaHideContent},_.g("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:l.questionId},_.g(_.BO,{text:l.question})))},"ud");
_.wDr=_.w(function(l){var D=l.data;var U=l.themeOverride;l=_.B(_.aw(!1,void 0,"pNli2b"));var n=l.next().value,y=l.next().value;l=_.n0(function(){y(!n());return!1});
var A=function(){return n()?"EXPAND_LESS":"EXPAND_MORE"},C=("faq-container"+_.o8(_.n9)).toString(),h="faq-question-and-answers-section-question"+_.o8(_.n9),b={},u={};
return _.g("faq-entry-view-model",null,_.g("div",{class:_.DV("ytLpFaqEntryViewModelHost",(b.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return U==null?void 0:U().useDarkTheme},b))},_.g("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":l,role:"button","aria-expanded":n,"aria-labelledby":h.toString(),"tab-index":"0"},_.g(oy8,{question:function(){return D().question},
questionId:h,shouldAriaHideContent:!0}),_.g(_.v,{cond:function(){return n()!==void 0},
then:function(){return _.g("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.g(_.C0,{icon:A,ariaHidden:!0}),_.g("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.g("div",{class:_.DV("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(u.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!n()},u))},_.g("div",{id:C},_.g(_.wt,{each:function(){return D().answers||[]}},function(Q){return _.g("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.g(_.BO,
{text:Q}))})))))},"vd");
_.wDr.idomCompat=!0;var rbr=_.w(function(l){var D=l.data;var U=l.themeOverride;l={};return _.g("lp-faq-section-view-model",null,_.g("div",{class:_.DV("yt-lp-faq-section-view-model",(l["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return D().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},l["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(U==null||!U().useDarkTheme)},l))},_.g("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.g(_.v,{cond:function(){return D().header},
then:function(n){return _.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.g(_.BO,{text:n}))}}),_.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.g(_.uI,{data:function(){return D().faqs}},{faqEntryViewModel:function(n){return _.g(_.wDr,{data:n.data,
themeOverride:U})}})),_.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.g(_.wt,{each:function(){return D().footers||[]}},function(n){return _.g(_.BO,{text:n})})),_.g(_.v,{cond:function(){return D().legal},
then:function(n){return _.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.g(_.BO,{text:n}))}}))))},"wd");
rbr.idomCompat=!0;var zkh=_.w(function(l){var D=l.data;var U=l.themeOverride;_.N1(function(){var C=D().gtmId;C&&_.fd(C,_.H3("GL",""))});
var n={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var C,h,b;return(b=(C=D().logo)==null?void 0:(h=C.accessibilityData)==null?void 0:h.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},y=_.Jc().resolve(_.G8(_.jQ)),A=function(){return y&&y()||(U==null?void 0:U().useDarkTheme)};
return _.g("lp-header-section-view-model",null,_.g("div",{class:function(){var C=D().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",h=D().marginType==="LP_SECTION_MARGIN_TYPE_TOP",b=U==null?void 0:U().useDarkTheme,u=["lp-header-section-view-model"];C&&u.push("lp-header-section-view-model--ptc-layout-type");h&&u.push("lp-header-section-view-model__lp-header-section-margin");b&&u.push("lp-header-section-view-model--premium-force-dark-mode");return u.join(" ")}},_.g(_.v,{cond:function(){return D().logo},
then:function(){return _.g("div",null,_.g(_.v,{cond:A,then:function(){return _.g(_.v,{cond:function(){var C;return(C=D().logo)==null?void 0:C.imageDark},
then:function(C){return _.g(_.rh,Object.assign({},{data:C},n))}})},
else:function(){return _.g(_.v,{cond:function(){var C;return(C=D().logo)==null?void 0:C.imageLight},
then:function(C){return _.g(_.rh,Object.assign({},{data:C},n))}})}}))}}),_.g(_.v,{cond:function(){return D().title},
then:function(C){return _.g("div",{class:"lp-header-section-view-model__lp-header-title"},_.g(_.BO,{text:C}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.g(_.v,{cond:function(){return D().subtitles},
then:function(C){return _.g(_.wt,{each:C},function(h){return _.g("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.g(_.BO,{text:h}))})}})),_.g(_.v,{cond:function(){return D().additionalInfo},
then:function(C){return _.g("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.g(_.BO,{text:C}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.g(_.v,{cond:function(){return D().primaryButton},
then:function(C){return _.g("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.g(_.uI,{data:C},{buttonViewModel:_.t9}))}}),_.g(_.v,{cond:function(){return D().secondaryButton},
then:function(C){return _.g("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.g(_.uI,{data:C},{buttonViewModel:_.t9}))}})),_.g(_.v,{cond:function(){return D().otherOffersInfo},
then:function(C){return _.g("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.g(_.BO,{text:C}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.g(_.v,{cond:function(){return D().billingInfo},
then:function(C){return _.g(_.wt,{each:C},function(h){return _.g("div",null,_.g(_.BO,{text:h}))})}}))))},"xd");
zkh.idomCompat=!0;var f37=_.w(function(l){return _.g("lp-header-upsell-banner-view-model",{class:_.DV("lpHeaderUpsellBannerViewModelHost",l.className,{})},_.g("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.g(_.C0,{icon:function(){return"CAMPAIGN"}})),_.g("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.g("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.g("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.g("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.g(_.BO,{text:function(){var D;
return(D=l.data())==null?void 0:D.description}})))),_.g(_.uI,{data:function(){var D;
return(D=l.data())==null?void 0:D.purchaseButton}},{buttonViewModel:function(D){return _.g(_.t9,{data:D.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"yd");var $0v=_.w(function(l){var D=l.data;var U=_.NQ(l.themeOverride,{useDarkTheme:!1});l={};l=_.DV("ytmLpHeadlineSectionViewModelHost",(l.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return U().useDarkTheme},l));
return _.g("lp-headline-section-view-model",null,_.g("div",{class:l},_.g(_.v,{cond:function(){return D().title},
then:function(n){return _.g("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.g(_.BO,{text:n}))}}),_.g(_.v,{cond:function(){return D().subtitle},
then:function(n){return _.g("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.g(_.BO,{text:n}))}})))},"zd");var NW8=_.w(function(l){var D=l.data;var U=l.themeOverride;var n=_.Jc().resolve(_.G8(_.jQ)),y=function(){return n&&n()||(U==null?void 0:U().useDarkTheme)},A=function(){var u,Q;
var G=y()?(u=D().textBackgroundImage)==null?void 0:u.imageDark:(Q=D().textBackgroundImage)==null?void 0:Q.imageLight;return UmG((G==null?void 0:G.sources)||[])},C=function(){var u,Q;
return y()?(u=D().featureImage)==null?void 0:u.imageDark:(Q=D().featureImage)==null?void 0:Q.imageLight},h=function(){return D().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},b=function(){var u,Q;
return y()?(u=D().logo)==null?void 0:u.imageDark:(Q=D().logo)==null?void 0:Q.imageLight};
return _.g("ytm-lp-large-feature-section-view-model",null,_.g("div",{class:function(){var u=D().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",Q=D().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",G=(D().index||0)%2===1,J=U==null?void 0:U().useDarkTheme,L=["yt-lp-large-feature-section-view-model"];u?L.push("yt-lp-large-feature-section-view-model--music-feature-type"):Q?L.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):G||L.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
J&&L.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return L.join(" ")}},_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.g(_.v,{cond:C,
then:function(){return _.g(_.rh,{data:function(){return C()},
alt:function(){var u,Q,G;return(G=(u=D().featureImage)==null?void 0:(Q=u.accessibilityData)==null?void 0:Q.label)!=null?G:""},
contentMode:h})}})),_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var u;return((u=A())==null?0:u.url)?"background-image: url("+_.Ng(A().url)+");":""}},_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.g(_.v,{cond:b,
then:function(){return _.g(_.rh,{data:function(){return b()},
alt:function(){var u,Q,G;return(G=(u=D().logo)==null?void 0:(Q=u.accessibilityData)==null?void 0:Q.label)!=null?G:""},
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"})}}),_.g(_.v,{cond:function(){return D().eyebrowText},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.g(_.BO,{text:function(){return D().eyebrowText}}))}}),_.g(_.v,{cond:function(){return D().title},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.g(_.BO,{text:function(){return D().title}}))}}),_.g(_.v,{cond:function(){return D().subtitles},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.g(_.wt,{each:function(){return D().subtitles||[]}},function(u){return _.g(_.BO,{text:u})}))}})))))},"Ad");
NW8.idomCompat=!0;var sUk=_.w(function(l){return _.g("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.g("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.g(_.C0,{icon:function(){var D;return(D=l.data())==null?void 0:D.iconType},
className:function(){var D;switch((D=l.data())==null?void 0:D.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 D;return((D=l.data())==null?void 0:D.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.g("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.g(_.BO,{text:function(){var D;
return(D=l.data())==null?void 0:D.text},
className:function(){var D;return((D=l.data())==null?void 0:D.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Bd");var Ey1=_.w(function(l){l=_.sl(l,{config:void 0,themeOverride:void 0});var D=l.data,U=l.config,n=l.themeOverride;l={};l=_.DV("ytmLpOfferCardOptionViewModelHost",(l.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var h;return(h=n())==null?void 0:h.useDarkTheme},l));
var y=_.n0(function(){var h,b;(h=U())==null||(b=h.handleRadioButtonClick)==null||b.call(h,D());return!1}),A=function(){var h;
return(h=U())==null?void 0:h.shouldDisplayRadioButton},C=function(){var h;
return(h=D().featureListItems)!=null?h:[]};
return _.g("ytm-lp-offer-card-option-view-model",null,_.g("div",{class:l,"on:click":_.n0(function(){if(A()){var h,b;(h=U())==null||(b=h.handleRadioButtonClick)==null||b.call(h,D())}return!1})},_.g(_.v,{cond:A,
then:function(){return _.g("div",null,_.g("input",{type:"radio","on:click":y,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var h;return!((h=U())==null||!h.isOptionSelected)}}))}}),_.g("div",null,_.g("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.g(_.BO,{text:function(){return D().eyebrowText}})),_.g("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.g(_.BO,{text:function(){return D().title}})),_.g("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.g(_.BO,
{text:function(){return D().subtitle}})),_.g(_.v,{cond:function(){return C().length>0},
then:function(){return _.g("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.g(_.uI,{data:C},{lpFeatureListItemViewModel:sUk}))}}),_.g("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.g(_.BO,{text:function(){return D().description}})))))},"Cd");
Ey1.idomCompat=!0;var TW1=_.w(function(l){var D=l.data;var U=l.themeOverride;l=_.B(_.WK(function(){var A,C=(A=D().offerOptions)==null?void 0:A[0];return _.M(C,H$8)||{}}));
var n=l.next().value,y=l.next().value;l={};return _.g("ytm-lp-offer-card-view-model",null,_.g("div",{class:_.DV("ytmLpOfferCardViewModelHost",(l.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(U==null||!U().useDarkTheme)},l))},_.g("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.g(_.v,{cond:function(){return D().titleIconType},
then:function(){return _.g("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.g(_.C0,{icon:function(){var A;return((A=D().titleIconType)==null?void 0:A.toString())||""}}))}}),_.g("div",{class:"ytmLpOfferCardViewModelTitleText"},_.g(_.BO,{text:function(){return D().title}})),_.g(_.uI,{data:function(){return D().titleBadge}},{badgeViewModel:function(A){return _.g("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.g(_.LK,{data:A.data}))}})),_.g("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.g(_.uI,{data:function(){return D().offerOptions}},{lpOfferCardOptionViewModel:function(A){var C=A.data;
return _.g(_.GZ,null,_.g("div",{class:"ytmLpOfferCardViewModelDivider"}),_.g(Ey1,{data:C,config:function(){var h;return{shouldDisplayRadioButton:(D().offerOptions||[]).length>1,isOptionSelected:C().id===((h=n())==null?void 0:h.id),handleRadioButtonClick:function(b){return void y(b)}}},
themeOverride:U}))}})),_.g("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.g(_.uI,{data:function(){var A;
return(A=n())==null?void 0:A.purchaseButtonOverride}},{buttonViewModel:_.t9}))))},"Dd");
TW1.idomCompat=!0;var I3y=_.w(function(l){var D=l.data;var U=l.themeOverride;l={};l=_.DV("ytmLpOfferCardSectionViewModelHost",(l.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var n;return U==null?void 0:(n=U())==null?void 0:n.useDarkTheme},l));
return _.g("ytm-lp-offer-card-section-view-model",null,_.g("div",{class:l},_.g(_.v,{cond:function(){return D().title!==void 0},
then:function(){return _.g("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.g("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.g(_.BO,{text:function(){return D().title}})),_.g(_.v,{cond:function(){return D().subtitle},
then:function(){return _.g("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.g(_.BO,{text:function(){return D().subtitle}}))}}))}}),_.g("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.g(_.uI,{data:function(){return D().offerCards}},{lpOfferCardViewModel:function(n){return _.g("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.g(TW1,{data:n.data,
themeOverride:U}))}})),_.g(_.v,{cond:function(){return D().footer},
then:function(){return _.g("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.g(_.BO,{text:function(){return D().footer}}))}})))},"Ed");var HaH=_.w(function(l){var D=l.data;return _.g("lp-offer-table-cell-content-view-model",null,_.g("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.g(_.rt,null,_.g(_.F2,{when:function(){return D().title}},function(){return _.g(_.BO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return D().title}})}),_.g(_.F2,{when:function(){return D().subTitle}},function(){return _.g(_.BO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return D().subTitle}})}),_.g(_.F2,{when:function(){return D().featureDescription}},function(){return _.g(_.BO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return D().featureDescription}})}),_.g(_.F2,{when:function(){return D().description}},function(){return _.g(_.BO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return D().description}})}),_.g(_.F2,{when:function(){return D().iconType}},function(){return _.g("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.g(_.C0,{icon:function(){return D().iconType.toString()}}))}),_.g(_.F2,{when:function(){return D().purchaseButton}},function(){return _.g(_.uI,{data:function(){return D().purchaseButton}},{buttonViewModel:function(U){return _.g("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.g(_.t9,
{data:U.data}))}})}),_.g(_.F2,{when:function(){return D().note}},function(){return _.g(_.BO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return D().note}})}),_.g(_.F2,{when:function(){return D().featureDetail}},function(){return _.g(_.BO,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return D().featureDetail}})}),_.g(_.F2,{when:function(){return D().badge}},function(){return _.g(_.uI,{data:function(){return D().badge}},{badgeViewModel:_.LK})}))))},"Fd");
HaH.idomCompat=!0;var Ywr=_.w(function(l){var D=l.data;return _.g("lp-offer-table-cell-view-model",null,_.g("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(D().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;"}}},_.g(_.uI,{data:function(){return D().contents}},{lpOfferTableCellContentViewModel:HaH})))},
"Gd");
Ywr.idomCompat=!0;var Oam=_.w(function(l){var D=l.data;var U=l.lpTableIsFirstRow;var n=l.lpTableIsLastRow;var y=function(){return(U==null?0:U())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},A=function(){return(U==null?0:U())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(n==null?0:n())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.g("ytm-lp-offer-table-row-view-model",null,_.g("div",{class:"ytLpOfferTableRowViewModelHost"},_.g(_.uI,{data:function(){return D().rowHeaderCell}},{lpOfferTableCellViewModel:function(C){return _.g("div",{class:y},_.g(Ywr,{data:C.data}))}}),_.g(_.uI,{data:function(){return D().contentCells}},{lpOfferTableCellViewModel:function(C){return _.g("div",{class:A},_.g(Ywr,{data:C.data}))}})))},"Hd");
Oam.idomCompat=!0;var VC1=_.w(function(l){var D=l.data;var U=l.themeOverride;var n=_.Jc().resolve(_.G8(_.jQ)),y=function(){return _.M(D().logo,Gkr)||{}};
l={};return _.g("ytm-lp-offer-table-section-view-model",null,_.g("div",{class:"ytLpOfferTableViewModelHost"},_.g(_.v,{cond:function(){var A,C;return n&&n()||(U==null?0:U().useDarkTheme)?(A=y())==null?void 0:A.imageDark:(C=y())==null?void 0:C.imageLight},
then:function(A){return _.g(_.rh,{data:A,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var C,h,b;return(b=(C=y())==null?void 0:(h=C.accessibilityData)==null?void 0:h.label)!=null?b:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.g(_.BO,{text:function(){return D().title}})),_.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.g(_.BO,{text:function(){return D().subtitle}})),_.g(_.v,{cond:function(){return D().disclaimers},
then:function(A){return _.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.g(_.wt,{each:A},function(C){return _.g("div",null,_.g(_.BO,{text:C}))}))}}),_.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.g(_.uI,{data:function(){return D().rows}},{lpOfferTableRowViewModel:function(A,C){return _.g(Oam,{data:A.data,
lpTableIsFirstRow:function(){return C()===0},
lpTableIsLastRow:function(){return C()===D().rows.length-1}})}})),_.g("div",{class:_.DV((l.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return D().hasFooterBackground},l))},_.g(_.v,{cond:function(){return D().footer},
then:function(){return _.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.g(_.BO,{text:function(){return D().footer}}))}}),_.g(_.v,{cond:function(){return D().footerTitle},
then:function(){return _.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.g(_.BO,{text:function(){return D().footerTitle}}))}}),_.g(_.v,{cond:function(){return D().footerDescription},
then:function(){return _.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.g(_.BO,{text:function(){return D().footerDescription}}))}}),_.g(_.v,{cond:function(){return D().footerDescriptions},
then:function(A){return _.g("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.g(_.wt,{each:A},function(C){return _.g("div",null,_.g(_.BO,{text:C}))}))}}))))},"Id");
VC1.idomCompat=!0;var iNH=_.w(function(l){var D=l.data;var U=l.themeOverride;var n=_.Jc().resolve(_.G8(_.jQ)),y=function(){var h;return U==null?void 0:(h=U())==null?void 0:h.useDarkTheme},A=function(){var h,b;
return n&&n()||y()?(h=D().image)==null?void 0:h.imageDark:(b=D().image)==null?void 0:b.imageLight};
l={};l=_.DV("ytmLpSmallFeatureSectionViewModelHost",(l.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=y,l));var C=function(){var h,b,u;return(u=(h=D().image)==null?void 0:(b=h.accessibilityData)==null?void 0:b.label)!=null?u:""};
return _.g("ytm-lp-small-feature-section-view-model",{class:l},_.g(_.v,{cond:function(){return A()&&!nJd},
then:function(){return _.g("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.g(_.rh,{data:function(){return A()},
alt:C,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.g("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.g("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.g(_.v,{cond:function(){return D().title},
then:function(h){return _.g(_.BO,{text:h})}})),_.g("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.g(_.BO,{text:function(){return D().description}}))))},"Jd");
iNH.idomCompat=!0;var li5=_.w(function(l){var D=l.data;var U=l.themeOverride;l={};return _.g("ytm-lp-small-feature-section-group-view-model",null,_.g("div",{class:_.DV("ytmLpSmallFeatureSectionGroupViewModelHost",(l.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(U==null||!U().useDarkTheme)},l))},_.g("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.g(_.uI,{data:function(){return D().smallFeatures}},{lpSmallFeatureSectionViewModel:function(n){return _.g("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.g(iNH,{data:n.data,
themeOverride:U}))}}))))},"Kd");
li5.idomCompat=!0;_.Tt(_.w(function(l){var D=l.data;var U=function(){return D().forcedTheme==="USER_INTERFACE_THEME_DARK"},n=function(){return D().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},y=function(){var C="",h,b;
var u=_.Jc().resolve(_.G8(_.jQ));u=U()||(u==null?0:u())?(h=D().themedImageViewModel)==null?void 0:h.imageDark:(b=D().themedImageViewModel)==null?void 0:b.imageLight;(h=UmG((u==null?void 0:u.sources)||[]))&&h.url&&(C=n()?"background-image: linear-gradient(to bottom, transparent, "+(D().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.Ng(h.url)+");":"background-image: url("+_.Ng(h.url)+");");return C},A=function(){return{useDarkTheme:U()}};
l={};return _.g("yt-section-group-view-model",null,_.g("div",{class:_.DV("yt-lp-section-group-view-model",(l["yt-lp-section-group-view-model--premium-force-dark-mode"]=U,l["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return D().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},l))},_.g(_.v,{cond:function(){return y().length},
then:function(){var C={};return _.g("div",{class:_.DV("yt-lp-section-group-view-model__bg-image",(C["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=n,C)),style:y})}}),_.g("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.g(_.uI,{data:function(){return D().sections}},{lpHeaderUpsellBannerViewModel:function(C){return _.g(f37,{data:C.data})},
lpFaqSectionViewModel:function(C){return _.g(rbr,{data:C.data,themeOverride:A})},
lpHeaderSectionViewModel:function(C){return _.g(zkh,{data:C.data,themeOverride:A})},
lpHeadlineSectionViewModel:function(C){return _.g($0v,{data:C.data,themeOverride:A})},
lpLargeFeatureSectionViewModel:function(C){return _.g(NW8,{data:C.data,themeOverride:A})},
lpOfferCardSectionViewModel:function(C){return _.g(I3y,{data:C.data,themeOverride:A})},
lpComplexOfferCardSectionViewModel:function(C){return _.g(jUh,{data:C.data})},
lpOfferTableSectionViewModel:function(C){return _.g(VC1,{data:C.data,themeOverride:A})},
lpSmallFeatureSectionGroupViewModel:function(C){return _.g(li5,{data:C.data,themeOverride:A})},
lpCouponBannerViewModel:function(C){return _.g(Fj_,{data:C.data})}}))))},"Ld"),"yt-section-group-view-model",{props:{data:_.C$}});_.DC8=_.w(function(l){var D=_.Pr(LTN,function(){var C;return(C=l.data())==null?void 0:C.chipBarStateEntityKey}),U=function(){return l.data().disableDeselection},n=_.B(_.WK(function(){var C;
if(((C=D())==null?void 0:C.selectedIndex)!=void 0)return D().selectedIndex;var h,b;C=_.B(((h=l.data())==null?void 0:(b=h.chips)==null?void 0:b.entries())||[]);for(h=C.next();!h.done;h=C.next()){h=_.B(h.value);b=h.next().value;h=h.next().value;var u=void 0;if((u=_.M(h,_.hx))==null?0:u.selected)return b}return-1})),y=n.next().value,A=n.next().value;
return _.g("chip-bar-view-model",{class:_.DV("ytChipBarViewModelHost",l.className),role:"tablist"},_.g(_.uI,{data:function(){return l.data().chips}},{chipViewModel:function(C,h){return _.g("div",{class:"ytChipBarViewModelChipWrapper"},_.g(_.Sb7,{data:C.data,
selected:function(){return h()===y()},
callback:function(b,u){b=!!u;u=h();A(b?u:-1);var Q,G=(Q=l.data())==null?void 0:Q.chipBarStateEntityKey;G&&b&&_.$u(_.vr("chipBarStateEntity",G,{key:G,selectedIndex:u}))},
disableDeselection:l.disableDeselection||U}))}}))},"Md");_.Tt(_.DC8,"chip-bar-view-model",{props:{data:_.ND,className:_.ND,disableDeselection:_.ND}});_.UCm=_.w(function(l){var D=l.data;l={};return _.g("divider-view-model",{class:_.DV("dividerViewModelHost",(l.dividerViewModelInsetThinPadding=function(){return D().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},l))},_.g("div",{class:_.DV("dividerViewModelBaseDivider",function(){return qKc(D().dividerStyle)})}))},"Nd");
_.UCm.idomCompat=!0;_.Tt(_.UCm,"divider-view-model",{props:{data:_.C$}});var PF=new Map,bq=new Map,ZWB=0,gk;var SK_=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],KTs={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var n7k,ymr;n7k=function(l){return function(D){return function(){return(D==null?void 0:D())!==void 0?String(D())+l:void 0}}};
_.yO=n7k("px");ymr=n7k("s");var Amm=JFo(function(l){return l.targetGroupId}).useUpdatableData;_.Aw=_.w(function(l){function D(CC){return function(){var vo=S().numItemsPerGridRow,td=CC()*vo;vo=td+vo;var GN,Ms;return(Ms=(GN=n().contents)==null?void 0:GN.slice(td,vo))!=null?Ms:[]}}
var U=_.sl(l,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),n=U.data,y=U.layoutContainerWidth,A=U.shouldUseOwnContainerSize,C=U.marginSettings,h=U.useUpdatedMargin,b=Do9(),u=_.B(Amm(function(){var CC,vo;return{targetGroupId:(CC=n().targetingContext)==null?void 0:(vo=CC.targetGroupId)==null?void 0:vo[0]}})).next().value;
U=_.B(_.aw(!0,void 0,"lKny6d"));var Q=U.next().value,G=U.next().value,J=function(){var CC,vo=(CC=_.M(n().showMoreButton,_.CM))==null?void 0:CC.trackingParams;vo&&_.jm(_.he(),vo);G(!1)},L=function(){var CC,vo=(CC=_.M(n().showLessButton,_.CM))==null?void 0:CC.trackingParams;
vo&&_.jm(_.he(),vo);G(!0)};
U=_.B(_.uq({canHaveZeroSize:!1}));var R=U.next().value;U=U.next().value;var a=function(){var CC;return(CC=n().contentAspectRatio)!=null?CC:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},S=_.dM(function(){var CC=A()&&R.width()>0?R.width()||y():y(),vo,td=(vo=l.data())==null?void 0:vo.responsiveContainerConfiguration;
CC=_.Kq({containerWidth:CC,sizing:td?cr(td==null?void 0:td.responsiveSize):"EXTRA_COMPACT",marginSettings:C(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:CC.maxContainerWidth,numItemsPerGridRow:CC.numItems,contentPadding:A()?CC.margin:CC.contentMargin,itemWidth:CC.itemWidth,itemMargin:CC.gutter/2}},void 0,"XYkF9e"),d=function(){if(n().enableVerticalExpansion){if(Q())return c();
var CC,vo,td=(vo=(CC=n().contents)==null?void 0:CC.length)!=null?vo:0;return Math.ceil(td/S().numItemsPerGridRow)}return S().numItemsPerGridRow<=2?2:1},c=function(){var CC;
return Math.ceil(((CC=n().minCollapsedItemCount)!=null?CC:1)/S().numItemsPerGridRow)},N=function(){return n().enableVerticalExpansion&&n().showLessButton&&!Q()&&d()>c()},z=function(){var CC,vo;
return n().enableVerticalExpansion&&n().showMoreButton&&Q()&&((vo=(CC=n().contents)==null?void 0:CC.length)!=null?vo:0)>S().numItemsPerGridRow*c()},f=function(){return!N()},I=function(){return!z()},iG={};
return _.g("grid-shelf-view-model",{class:_.DV("ytGridShelfViewModelHost",l.className,(iG.ytGridShelfViewModelHostHasBottomButton=function(){return N()||z()},iG.ytGridShelfViewModelHostIsDismissed=function(){var CC,vo=(CC=u())!=null?CC:{};
CC=vo.behavior;var td=vo.isDismissed,GN=vo.stamperContextTargetId;vo=vo.stamperIndex;if(!(_.q("mweb_see_fewer_shorts_group_dismissal")&&td&&CC&&GN))return!1;var Ms;td=b;for(var j3,wl,zN=((j3=td)==null?0:j3.targetId)?_.EP((wl=td)==null?void 0:wl.targetId):void 0;((Ms=td)==null?0:Ms.parent)&&zN!==GN;)td=td.parent,wl=j3=void 0,zN=((j3=td)==null?0:j3.targetId)?_.EP((wl=td)==null?void 0:wl.targetId):void 0;Ms=zN===GN?td:void 0;if(!Ms)return!1;var Z7;GN=Ms==null?void 0:(Z7=Ms.stamperIndex)==null?void 0:
Z7.call(Ms);return CC==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||CC==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&GN!=null&&vo!=null&&GN>vo},iG.ytGridShelfViewModelHostOptionalMediumLayoutMargin=h,iG)),
el:_.fe(U),style:_.BK({"margin-left":(0,_.yO)(function(){return S().contentPadding}),
"margin-right":(0,_.yO)(function(){return S().contentPadding})})},_.g(_.v,{cond:function(){return _.M(n().header,mP1)},
then:function(CC){return _.g(_.oa,{data:CC,useUpdatedPadding:h,disableHorizontalPadding:!0})}}),_.g("div",null,_.g(_.wt,{each:function(){return Array(d())}},function(CC,vo){return _.g(Wsk,{className:l.className,
items:D(vo),responsiveGridShelfLayout:S,contentAspectRatio:a})})),_.g("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.g(_.uI,{data:function(){return n().showMoreButton}},{buttonViewModel:function(CC){return _.g("div",{hidden:I},_.g(_.t9,{data:CC.data,
onClick:J}))}}),_.g(_.uI,{data:function(){return n().showLessButton}},{buttonViewModel:function(CC){return _.g("div",{hidden:f},_.g(_.t9,{data:CC.data,
onClick:L}))}})))},"Pd");
_.Aw.idomCompat=!0;var Wsk=_.w(function(l){var D=l.items;var U=l.responsiveGridShelfLayout;var n=l.contentAspectRatio;l=l.className;var y=_.bP("div");RDg(y,function(){a:{var C=y.value;for(var h=D(),b=[],u=0;u<h.length;u++){var Q=_.M(h[u],lu7);if(!Q||Q==null||!Q.inlinePlayerData){C=null;break a}var G=C.children.item(u);if(!G){C=null;break a}b.push({thumbnailElement:G,videoData:Q})}C={gridVideoPreviewData:{gridItems:b}}}return C});
var A=(0,_.yO)(function(){return-U().itemMargin});
return _.g("div",{el:y,class:_.DV("ytGridShelfViewModelGridShelfRow",l),style:_.BK({"margin-left":A,"margin-right":A})},_.g(_.uI,{data:D,replacementWrapper:function(C){return _.g(BQ7,{responsiveGridShelfLayout:U},C)}},{shortsLockupViewModel:function(C){return _.g(BQ7,{responsiveGridShelfLayout:U},_.g(csy,{data:C.data,
aspectRatio:function(){return n()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.q("mweb_enable_one_line_title_on_shorts")?1:_.q("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(C){return _.g(BQ7,{responsiveGridShelfLayout:U},_.g(_.xd,{data:C.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Qd"),BQ7=_.w(function(l){return _.g("div",{style:_.BK({width:(0,_.yO)(function(){return l.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+l.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},l.children)},"Rd");
_.Aw.idomCompat=!0;_.Tt(_.Aw,"grid-shelf-view-model",{props:{data:_.C$,layoutContainerWidth:_.C$,shouldUseOwnContainerSize:_.C$,marginSettings:_.C$,useUpdatedMargin:_.C$,className:_.C$}});_.Ceh=_.w(function(l){var D=_.B(_.aw(!1,void 0,"FVl30c")),U=D.next().value,n=D.next().value;D={};return _.g("yt-alert-banner-view-model",{class:_.DV("ytAlertBannerViewModelHost",l.className,function(){var y;a:switch((y=l.data())==null?void 0:y.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":y="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":y="ytAlertBannerViewModelWarning";break a;default:y="ytAlertBannerViewModelInformational"}return y},(D.ytAlertBannerViewModelDismissed=
U,D.ytAlertBannerViewModelFullbleed=l.fullbleed,D.ytAlertBannerViewModelNarrow=l.narrow,D.ytAlertBannerViewModelIsInRichGrid=l.isInRichGrid,D))},_.g(_.v,{cond:function(){var y;
return!((y=l.data())==null?0:y.hideIcon)},
then:function(){return _.g("div",{class:"ytAlertBannerViewModelIcon"},_.g(_.C0,{icon:function(){return"info_circle"}}))}}),_.g("div",{class:"ytAlertBannerViewModelOuterContainer"},_.g("div",{class:"ytAlertBannerViewModelContainer"},_.g("div",{class:"ytAlertBannerViewModelContent"},_.g("div",{class:"ytAlertBannerViewModelHeading"},_.g(_.BO,{text:function(){var y;
return(y=l.data())==null?void 0:y.heading}})),_.g("div",{class:"ytAlertBannerViewModelBody"},_.g(_.BO,{text:function(){var y;
return(y=l.data())==null?void 0:y.body}})))),_.g(_.uI,{data:function(){var y;
return(y=l.data())==null?void 0:y.actionButton}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.g(_.uI,{data:function(){var y;
return(y=l.data())==null?void 0:y.dismissButton}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var A;((A=l.data())==null?0:A.disableLocalDismissBehavior)||n(!0)}})}}))},"Sd");_.Tt(_.Ceh,"yt-alert-banner-view-model",{props:{data:_.C$,fullbleed:_.C$,narrow:_.C$,isInRichGrid:_.C$,className:_.C$}});var h$k;_.Pez=_.w(function(l){return _.g("basic-content-view-model",{class:_.DV("ytBasicContentViewModelHost",_.NQ(l.className))},_.g(_.v,{cond:function(){return l.data().headline},
then:function(D){return _.g("div",{class:"ytBasicContentViewModelHeadline"},_.g(_.BO,{text:D}))}}),_.g(_.wt,{each:function(){return l.data().paragraphs||[]},
keyBy:"INDEX"},function(D){return _.g("div",{class:"ytBasicContentViewModelParagraph"},_.g(_.v,{cond:function(){var U=D();return!!(U.header||U.customHeader||U.headline)},
then:function(){return _.g(h$k,{paragraph:D})}}),_.g(_.v,{cond:function(){return D().asset||D().text},
then:function(){return _.g("div",{class:"ytBasicContentViewModelParagraphContent"},_.g(_.v,{cond:function(){return D().asset},
then:function(U){return _.g("div",{class:"ytBasicContentViewModelParagraphAsset"},_.g(_.uI,{data:U},{contentPreviewImageViewModel:_.XQ}))}}),_.g(_.v,{cond:function(){return D().text},
then:function(U){return _.g("div",{class:"ytBasicContentViewModelParagraphText"},_.g(_.BO,{text:U}))}}))}}))}))},"Td");
h$k=_.w(function(l){var D=l.paragraph;return _.g(_.GZ,null,_.g(_.v,{cond:function(){return D().headline},
then:function(U){return _.g(_.BO,{text:U,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.g(_.uI,{data:function(){return D().header||D().customHeader}},{sectionHeaderViewModel:function(U){return _.g(_.oa,{data:U.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ud");_.bNh=_.w(function(l){function D(){var L,R;b((R=(L=y)==null?void 0:L.isKeyBoardInUse())!=null?R:!1)}
function U(){b(!1)}
function n(){var L;return h()?(L=l.focusedClassName)==null?void 0:L.call(l):""}
var y=_.Jc().resolve(_.G8(_.L$)),A=_.B(_.aw(!1,void 0,"SgkTXc")),C=A.next().value;A=A.next().value;var h=C,b=A,u=function(){var L,R;return((L=l.toggleable)==null?0:L.call(l))?(R=l.toggled)==null?void 0:R.call(l):void 0},Q=_.n0(function(L){var R,a=(R=l.command)==null?void 0:R.call(l);
a&&_.Jc().resolve(_.qK).resolveCommand(a);var S;(S=l.onClick)==null||S.call(l,L)}),G=_.n0(D),J=_.n0(U);
return _.g(_.v,{cond:function(){var L;if(L=l.command){L=l.command();L=ufK(L);var R=L.href;L=!(!L.navigatingCommand||!R)}return L},
then:function(){return _.g(_.qO,Object.assign({},{command:l.command,style:l.style,ariaDescribedby:l.ariaDescribedby,ariaHidden:l.ariaHidden,ariaLabel:l.ariaLabel,ariaLabelledby:l.ariaLabelledby,ariaSelected:l.ariaSelected,disabled:l.disabled,dir:l.dir,tabIndex:l.tabIndex,target:l.target,title:l.title,onClick:l.onClick},{className:_.DV("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",l.className,function(){return n()}),
onFocusin:D,onFocusout:U,ariaCurrent:function(){var L,R;return(R=(L=l.ariaCurrent)==null?void 0:L.call(l))!=null?R:u()}}),l.children)},
else:function(){return _.g("button",{"on:click":Q,"on:focusin":G,"on:focusout":J,class:_.DV("ytButtonOrAnchorHost","ytButtonOrAnchorButton",l.className,function(){return n()}),
style:l.style,"aria-describedby":l.ariaDescribedby,"aria-hidden":l.ariaHidden,"aria-label":l.ariaLabel,"aria-labelledby":l.ariaLabelledby,"aria-pressed":u,dir:l.dir,disabled:l.disabled,tabindex:l.tabIndex,title:l.title},l.children)}})},"Vd");var g7H=_.w(function(l){l=_.sl(l,{disabled:!1});var D=l.active,U=l.disabled;l={};l=_.DV("ytSwitchShapeTrack",(l.ytSwitchShapeTrackActive=function(){return D()},l.ytSwitchShapeTrackDisabled=function(){return U()},l));
var n={};n=_.DV("ytSwitchShapeKnob",(n.ytSwitchShapeKnobActive=function(){return D()},n));
return _.g("switch-shape",{class:"ytSwitchShapeHost"},_.g("div",{class:l}),_.g("div",{class:n}))},"Wd");var uh8=_.w(function(l){var D=_.sl(l,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),U=D.data;l=D.className;var n=D.handleOnTapEventInParent,y=D.parentActive,A=D.onTap;D=_.B(_.WK(function(){var J;return(J=y())!=null?J:U().switchedOnByDefault||!1}));
var C=D.next().value,h=D.next().value,b=function(){return U().isDisabled},u=_.bP("button");
D=_.n0(function(J){return J.key==="Enter"?(J.preventDefault(),u.value.click(),!1):!0});
var Q=_.n0(function(J){if(U().handleOnTapEventInParent||n())return!0;if(b())return!1;if(A)return A(J),!0;xRB(U(),C(),J);h(!C());return!1}),G={};
G=_.DV("ytSwitchButtonViewModelButton",(G.ytSwitchButtonViewModelTappable=function(){return!b()},G));
return _.g("switch-button-view-model",{class:_.DV("ytSwitchButtonViewModelHost",l)},_.g("button",{el:u,class:G,"on:click":Q,"on:keydown":D,"aria-label":function(){return C()?U().a11yLabelSwitchedOn:U().a11yLabelSwitchedOff},
"aria-checked":C,"aria-disabled":b,role:"switch"},_.g(g7H,{active:C,disabled:b})))},"Xd");var v7h=_.w(function(l){var D=l.data;var U=l.isLeading;var n=l.hideSelectionTextChevron;var y=l.isToggled;var A=l.shouldNotFillIcon;var C=function(){if(U())var G=D().leadingImage;else{var J;G=(J=D().trailingImage)!=null?J:_.pq(D().themedTrailingImage)}return G},h=function(){a:switch(D().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var G="expand_more";
break a;default:G="chevron_right"}return G};
l={};var b=_.DV("yt-list-item-view-model__image-container",(l["yt-list-item-view-model__leading"]=U,l["yt-list-item-view-model__trailing"]=function(){return!U()},l)),u=_.DV("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
l={};var Q=_.DV("yt-list-item-view-model__accessory",(l["yt-list-item-view-model__leading"]=U,l["yt-list-item-view-model__trailing"]=function(){return!U()},l));
return _.g(_.v,{cond:function(){var G=D(),J=U();return!!(J&&(G.leadingImage||G.leadingAccessory)||!J&&(G.trailingImage||G.trailingButton||G.trailingButtons||G.selectionText||G.themedTrailingImage||G.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.g(_.GZ,null,_.g(_.v,{cond:C,then:function(G){return _.g("div",{class:b,"aria-hidden":"true"},_.g(_.rh,{data:G,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var J=(U()?D().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":D().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?U()?oIG(D().leadingIconAccessorySize):oIG(D().trailingIconAccessorySize):void 0;return J},
className:u,isToggled:function(){return!(A==null?0:A())&&(y==null?void 0:y())}}))}}),_.g(_.v,{cond:function(){return U()&&D().leadingAccessory},
then:function(){return _.g("div",{class:b},_.g(_.uI,{data:function(){return D().leadingAccessory}},{avatarViewModel:function(G){return _.g(_.iX,{data:G.data,
avatarButtonCustomClassName:u})},
collectionThumbnailViewModel:function(G){return _.g(XW_,{data:G.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.g(_.v,{cond:function(){return!U()&&D().trailingButton},
then:function(){return _.g("div",{class:"yt-list-item-view-model__button-container"},_.g(_.uI,{data:function(){return D().trailingButton}},{buttonViewModel:function(G){return _.g(_.t9,{data:G.data,
className:Q})}}))}}),_.g(_.v,{cond:function(){var G;
return!U()&&((G=D().trailingButtons)==null?void 0:G.buttons)},
then:function(){return _.g("div",{class:"yt-list-item-view-model__button-container"},_.g(_.uI,{data:function(){var G;return(G=D().trailingButtons)==null?void 0:G.buttons}},{buttonViewModel:function(G){return _.g(_.t9,{data:G.data,
className:Q})},
accountLinkButtonViewModel:function(G){return _.g(v$8,{data:G.data,className:Q})},
switchButtonViewModel:function(G){return _.g(uh8,{data:G.data,className:Q})},
subscribeButtonViewModel:function(G){return _.g(_.iz,{data:G.data,isOverlay:!1,animateWidth:!1,className:Q})},
toggleButtonViewModel:function(G){return _.g(_.s0,{data:G.data,className:Q})}}))}}),_.g(_.v,{cond:function(){return!U()&&!!D().selectionText},
then:function(){return _.g(_.GZ,null,_.g(_.BO,{text:function(){return D().selectionText},
className:_.DV("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.g(_.v,{cond:function(){return!(n==null?0:n())},
then:function(){return _.g(_.C0,{icon:h,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.g(_.v,{cond:function(){return!U()&&D().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.g("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"Yd");var Qqz=_.w(function(l){var D=l.data;return _.g(_.v,{cond:function(){return D().title||D().subtitle},
then:function(){return _.g("div",{class:"yt-list-item-view-model__text-wrapper"},_.g(_.v,{cond:function(){return D().title},
then:function(U){return _.g("div",{class:"yt-list-item-view-model__title-wrapper"},_.g(_.BO,{text:U,className:"yt-list-item-view-model__title"}))}}),_.g(_.v,{cond:function(){return D().subtitle},
then:function(U){return _.g(_.BO,{text:U,className:"yt-list-item-view-model__subtitle"})}}))}})},"Zd");var Gxm=_.w(function(l){var D=l.data;var U=l.hideSelectionTextChevron;var n=l.TrailingAccessory;var y=l.isToggled;var A=l.disabled;var C=l.isSelectItem;var h=l.isCompact;var b=l.inPopup;var u=l.disableHorizontalPadding;var Q=l.isTappableWithoutSelect;var G=l.useButtonOrAnchor;var J=l.onTap;var L=l.shouldNotFillIcon;var R=function(){return _.g(Qqz,{data:D,onTap:J,useButtonOrAnchor:G,isTappableWithoutSelect:Q,isToggled:y})};
l={};return _.g("div",{class:_.DV("yt-list-item-view-model__label",(l["yt-list-item-view-model__container"]=function(){return!(C==null?0:C())},l["yt-list-item-view-model__container--disabled"]=function(){return!!D().isDisabled||!(A==null||!A())},l["yt-list-item-view-model__container--has-subtitle"]=function(){return!!D().subtitle},l["yt-list-item-view-model__container--compact"]=h,l["yt-list-item-view-model__container--tappable"]=Q,l["yt-list-item-view-model__container--in-popup"]=b,l["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(u==null?void 0:u())&&!(C==null?0:C())},l))},_.g(v7h,{data:D,
isLeading:!0,hideSelectionTextChevron:U,isToggled:y,shouldNotFillIcon:L}),_.g(_.v,{cond:function(){return(G==null?void 0:G())&&(Q==null?void 0:Q())},
then:function(){return _.g(_.bNh,{command:function(){return _.eq(D().rendererContext)},
onClick:J,className:"yt-list-item-view-model__button-or-anchor",toggleable:y!==void 0,toggled:y},_.g(R,null))},
else:function(){return _.g(R,null)}}),_.g(_.v,{cond:function(){return!!n},
then:function(){return _.g("div",{class:"yt-list-item-view-model__trailing"},n&&_.g(n,null))},
else:function(){return _.g(v7h,{data:D,isLeading:!1,hideSelectionTextChevron:U,isToggled:y,shouldNotFillIcon:L})}}))},"$d");var Ls8=_.w(function(l){var D=_.sl(l,{checked:!1});l=D.name;var U=D.onChange,n=D.onClick,y=D.checked,A=D.labelRenderable,C=D.hasLeadingLabel,h=D.labelClass,b=D.isCompact,u=D.selectElementClass;D=D.disableHorizontalPadding;var Q="checkbox"+_.o8(_.n9),G=_.n0(function(R){n==null||n(R);return!1}),J=_.n0(function(R){U==null||U(R);
return!1}),L={};
return _.g("checkbox-shape",null,_.g("label",{class:_.DV("ytCheckboxShapeHost",h,(L.ytCheckboxShapeHostCompact=b,L.ytCheckboxShapeDisableHorizontalPadding=D,L))},_.g("input",{class:"ytCheckboxShapeInput",id:Q,checked:y,name:l,type:"checkbox","prop:checked":y,"on:change":J,"on:click":G}),_.g(_.v,{cond:function(){return!(C==null?0:C())},
then:function(){return _.g(JmH,{isLeading:!0,selectElementClass:u})}}),_.g(_.v,{cond:function(){return!!A},
then:function(){return _.g("div",{class:"ytCheckboxShapeLabel"},A==null?void 0:A())}}),_.g(_.v,{cond:C,
then:function(){return _.g(JmH,{isLeading:!1,selectElementClass:u})}})))},"ae");
Ls8.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var JmH=_.w(function(l){var D=l.selectElementClass;l={};return _.g("div",{class:_.DV("ytCheckboxShapeCheckbox",D,(l.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(D==null?0:D())},l)),
"aria-hidden":"true"},_.g(_.C0,{icon:_.q("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.g(_.C0,{icon:_.q("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"be");_.Wv=_.w(function(l){var D=l.name;var U=l.onChange;var n=l.onClick;var y=l.checked;var A=l.labelRenderable;var C=l.useCheckIcon;var h=l.hasLeadingLabel;var b=l.labelClass;var u=l.isCompact;var Q=l.selectElementClass;var G=l.ariaLabel;l=l.className;var J="radio"+_.o8(_.n9),L=_.bP("input"),R=_.n0(function(I){L.value.checked=!(y==null||!y());U==null||U(I);return!1}),a=_.n0(function(I){n==null||n(I);
return!1}),S=_.n0(function(I){_.q("enable_ios_webview_radio_button_responsiveness")&&(I.preventDefault(),L.value.click())}),d=_.B(_.aw(!1,void 0,"TcCZlf")),c=d.next().value,N=d.next().value;
d=_.n0(function(){var I;((I=_.Jc().resolve(_.G8(_.L$)))==null?0:I.isKeyBoardInUse())&&N(!0)});
var z=_.n0(function(){N(!1)}),f={};
return _.g("radio-shape",{class:_.DV("yt-radio-shape",l)},_.g("input",{el:L,class:"yt-radio-shape__input",id:J,"prop:checked":y,name:D,type:"radio","on:change":R,"on:click":a,"aria-label":G,"on:focusin":d,"on:focusout":z}),_.g("label",{class:_.DV("yt-radio-shape__label-container",b,(f["yt-radio-shape--compact"]=u,f["yt-radio-shape__label-container--keyboard-focused"]=c,f)),for:J,"on:click":S},_.g(_.v,{cond:function(){return!(h==null?0:h())},
then:function(){return _.g(qx8,{checked:y,useCheckIcon:C,isLeading:!0,selectElementClass:Q})}}),_.g(_.v,{cond:function(){return!!A},
then:function(){return _.g("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(G==null?0:G())?"true":"false"}},A==null?void 0:A())}}),_.g(_.v,{cond:h,
then:function(){return _.g(qx8,{checked:y,useCheckIcon:C,isLeading:!1,selectElementClass:Q})}})))},"ce");
_.Wv.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var qx8=_.w(function(l){var D=l.useCheckIcon;var U=l.selectElementClass;l=function(){return(D==null?0:D())?"CHECK":_.q("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var n={};return _.g("div",{class:_.DV("yt-radio-shape__radio",U,(n["yt-radio-shape__radio--check-icon"]=D,n["yt-radio-shape__radio--radio-default-style"]=function(){return!(U==null?0:U())},n)),
"aria-hidden":"true"},_.g(_.C0,{icon:l}),_.g(_.C0,{icon:l,active:function(){return!(D==null?0:D())}}))},"de");_.Bv=_.w(function(l){var D=l.data;var U=l.isMenuItem;var n=l.isCompact;var y=l.onTap;var A=l.trailingAccessory;var C=l.hideSelectionTextChevron;var h=l.disabled;var b=l.inPopup;var u=l.disableHorizontalPadding;var Q=l.isOverlay;var G=l.isToggled;var J=l.ariaLabel;var L=l.ariaPressed;var R=l.shouldNotFillIcon;var a=!_.q("web_enable_killswitch_for_selectable_list_item_on_tap_fix");l=!_.q("web_enable_killswitch_for_skip_child_tags");var S=_.gf(function(Z7){return wtN(D(),Z7)}),d=function(){return(u==
null?void 0:u())||D().disableHorizontalPadding},c=function(){return _.q("enable_web_shorts_captions_language_command")||_.q("web_shorts_audio_track_picker")||D().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},N=function(){return c()?Object.assign({},D(),S().data):D()},z=_.zDo(function(){return N().rendererContext}),f=function(){return!(N().isSelected===void 0||!N().selectionStyle||N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},I=function(){return(_.mr(N().rendererContext)||
y)&&!f()},iG={},CC=_.DV("yt-list-item-view-model__container",(iG["yt-list-item-view-model__container--tappable"]=function(){return _.mr(N().rendererContext)||f()},iG["yt-list-item-view-model__container--compact"]=n,iG["yt-list-item-view-model__container--in-popup"]=b,iG["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(d==null?void 0:d())&&f()},iG)),vo=function(){return N().leadingImage||N().leadingAccessory},td=_.DV("yt-list-item-view-model__image-container",function(){return vo()?
"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
iG=_.o6c();var GN=_.B(_.aw(!1,void 0,"w9yOLe")),Ms=GN.next().value,j3=GN.next().value,wl=function(){return _.g(Gxm,{data:N,hideSelectionTextChevron:C,TrailingAccessory:A,isToggled:G,disabled:h,isSelectItem:f,isCompact:n,inPopup:b,disableHorizontalPadding:d,isTappableWithoutSelect:I,useButtonOrAnchor:zN,onTap:y,shouldNotFillIcon:R})},zN=_.q("web_button_or_anchor_list_item");
GN={};return _.g("yt-list-item-view-model",{el:_.fe(_.aT(function(){return N().rendererContext},void 0,void 0,zN?["A".toString(),
"BUTTON".toString()]:[]),rsc(function(Z7){var Lm;if(Lm=a)Lm=N().selectionStyle,Lm=Lm==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||Lm==="LIST_ITEM_SELECTION_STYLE_RADIO"||Lm==="LIST_ITEM_SELECTION_STYLE_DEFAULT";Lm||y==null||y(Z7)},l?["A".toString(),
"BUTTON".toString()]:[]),O8K(function(){return I==null?void 0:I()},{focusin:function(){var Z7;
((Z7=_.Jc().resolve(_.G8(_.L$)))==null?0:Z7.isKeyBoardInUse())&&j3(!0)},
focusout:function(){j3(!1)}})),
class:_.DV("yt-list-item-view-model",(GN["yt-list-item-view-model--is-overlay"]=Q,GN["yt-list-item-view-model--keyboard-focused"]=Ms,GN["yt-list-item-view-model--hidden"]=function(){return c()?S().isHidden:!1},GN)),
role:function(){return(U==null?0:U())?"menuitem":"listitem"},
tabindex:function(){var Z7=I();Z7=zN?void 0:y||Z7?0:void 0;return Z7},
"on:keydown":iG,"aria-label":function(){var Z7;return(J==null?void 0:J())||((Z7=z())==null?void 0:Z7.label)},
"aria-pressed":L},_.g(_.v,{cond:f,then:function(){return _.g(_.rt,null,_.g(_.F2,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.g(Ls8,{labelRenderable:wl,
isCompact:n,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!vo()},
labelClass:CC,selectElementClass:td,disableHorizontalPadding:d,onClick:a?y:void 0})}),_.g(_.F2,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.g(_.Wv,{labelRenderable:wl,
isCompact:n,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!vo()},
labelClass:CC,selectElementClass:td,onClick:a?y:void 0})}),_.g(_.F2,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.g(_.Wv,{labelRenderable:wl,
isCompact:n,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!vo()},
labelClass:CC,selectElementClass:td,useCheckIcon:!0,onClick:a?y:void 0})}),_.g(_.oN,null,wl))},
else:wl}))},"ee");
_.Bv.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.C9=_.w(function(l){var D=_.B(_.uq({canHaveZeroSize:!1})),U=D.next().value;D=D.next().value;var n=function(){return ij_(U.width(),l.data().responsiveContainerConfiguration)||IIN(U.width(),l.data().linearLayoutContainerConfiguration)};
return _.g("yt-linear-layout-view-model",{el:_.fe(D),class:"ytLinearLayoutViewModelHost"},_.g("div",{class:_.DV("ytLinearLayoutViewModelContainer",function(){a:switch(l.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var y="ytLinearLayoutViewModelHorizontal";break a;default:y="ytLinearLayoutViewModelVertical"}return y},function(){var y=l.data().linearLayoutContainerConfiguration;
return y?[s0l(y.flexDirection),EIc(y.justifyContent),Tqo(y.alignItems)].join(" "):""}),
style:function(){var y;var A=((y=n())==null?void 0:y.containerStyles)||{};return _.BK(A)()}},_.g(_.uI,{data:function(){return l.data().items},
wrapper:function(y,A,C){return _.g("div",{style:function(){var h=C(),b;if((b=n())==null)h=void 0;else{var u=b.itemStyles,Q=h===0,G,J;var L=(J=(G=l.data().items)==null?void 0:G.length)!=null?J:0;h=u.call(b,Q,h===L-1)}return _.BK(h||{})()}},y())}},{lockupViewModel:function(y){return _.g(_.xd,{data:y.data,
containerLayoutConfig:function(){var A;return(A=n())==null?void 0:A.containerLayoutConfig}})},
basicContentViewModel:_.Pez,linearLayoutViewModel:_.C9,thumbnailViewModel:_.eS,descriptionPreviewViewModel:_.Fn,listItemViewModel:_.Bv,sectionHeaderViewModel:_.oa})))},"fe");_.Tt(_.C9,"yt-linear-layout-view-model",{props:{data:_.C$}});_.Tt(_.oD,"chips-shelf-view-model",{props:{data:_.C$,callback:_.ND,selectionBehavior:_.C$,disableChipsScrollAnimation:_.C$}});_.Tt(_.w(function(l){return _.g("yt-comment-filter-context-view-model",{class:_.DV("ytCommentFilterContextHost",l.className)},_.g(_.BO,{text:function(){return l.data().text}}))},"ge"),"yt-comment-filter-context-view-model",{props:{data:_.C$,
className:_.ND}});_.M7m=_.w(function(l){var D=l.data;var U=l.onTap;var n=l.onSwitch;var y=l.overrideDisabled;l=l.disableHorizontalPadding;var A=_.B(_.WK(function(){var J;return((J=FTC(Q()))==null?void 0:J.switchedOnByDefault)||!1})),C=A.next().value,h=A.next().value;
A=_.B(_.aw(!1,void 0,"V0hCrd"));var b=A.next().value,u=A.next().value,Q=function(){var J;if(!(J=D().switchButton)){var L=D();J=y==null?void 0:y();L={switchOnCommand:L.switchOnCommand,switchOffCommand:L.switchOffCommand,switchedOnByDefault:L.switchedOnByDefault,isDisabled:L.isDisabled,a11yLabelSwitchedOn:L.a11yLabelSwitchedOn,a11yLabelSwitchedOff:L.a11yLabelSwitchedOff};J!==void 0&&(L.isDisabled=J);J={switchButtonViewModel:L}}return J},G=function(J){var L=FTC(Q());
!L||L.isDisabled||D().ignoreTapUntilCommandCompletes&&b()||(U==null||U(J),xRB(L,C(),J,D().ignoreTapUntilCommandCompletes,u),h(!C()),n==null||n(C()))};
return _.g("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.g(_.Bv,{data:function(){return{title:D().title,subtitle:D().attributedSubtitle,leadingImage:D().leadingImage,leadingAccessory:D().leadingAccessory,isDisabled:D().isDisabled}},
onTap:G,isToggled:C,shouldNotFillIcon:!0,trailingAccessory:function(){return _.g(_.uI,{data:Q},{switchButtonViewModel:function(J){return _.g(uh8,{data:J.data,parentActive:C,onTap:G})}})},
disableHorizontalPadding:l}))},"he");var R$g=_.w(function(l){var D=_.B(_.WK(function(){var y,A;return!!((y=l.data())==null?0:(A=y.initialState)==null?0:A.isToggled)})),U=D.next().value,n=D.next().value;
return _.g("toggleable-list-item-view-model",{el:_.fe(_.aT(function(){return l.data().rendererContext},{onTap:function(y,A){A();
n(!U())}})),
class:_.DV("toggleableListItemViewModelHost",l.className)},_.g(_.v,{cond:function(){if(U()){var y=l.data().toggledListItem;y=_.M(y,_.Gy)}else y=l.data().defaultListItem,y=_.M(y,_.Gy);return y},
then:function(y){return _.g(_.Bv,{data:y,isToggled:U,ariaLabel:function(){var A=U()?l.data().toggledListItem:l.data().defaultListItem,C;A=(C=_.M(A,_.Gy))==null?void 0:C.rendererContext;var h;return(h=_.M(A,_.vF))==null?void 0:h.label},
ariaPressed:function(){return U()}})}}))},"ie");var ZNh=_.C3("DOWNLOAD",{},"Download"),e$H=_.C3("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),mCr=_.C3("RETRY",{},"Retry"),aiz=_.C3("PAUSE_DOWNLOADING",{},"Pause downloading"),t7k=_.C3("RESUME_DOWNLOAD",{},"Resume download"),lAC={text:ZNh,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Qd={text:e$H,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},nLd={text:mCr,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Du$={text:aiz,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Uu$={text:t7k,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Xng=_.w(function(l){var D=function(){var h=l.data();h=_.eq(h.rendererContext);var b;return(b=_.M(h,_.Cq))==null?void 0:b.videoId},U=_.gf(function(h){var b=D(),u=W3o(l.data());
return b?_.du(h,b):u?_.K7(h,u):"TRANSFER_STATE_UNKNOWN"}),n=_.Pr(_.iF3,D),y=_.gf(function(h){return _.EkC(h,D(),W3o(l.data()))}),A=function(){return A_l(U(),n(),_.eq(l.data().rendererContext),!!W3o(l.data()))},C=function(){return y()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.g("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:C},_.g(_.v,{cond:function(){return!C()},
then:function(){return _.g(_.v,{cond:A,then:function(h){return _.g(_.wt,{each:h},function(b){return _.g(_.Bv,{data:b,isCompact:l.isCompact,isMenuItem:l.isMenuItem,inPopup:l.inPopup,disableHorizontalPadding:l.disableHorizontalPadding})})}})}}))},"je");
Xng.idomCompat=!0;_.Sxr=_.w(function(l){var D=l.data;var U=l.isCompact;var n=l.hideSelectionTextChevron;var y=l.inPopup;var A=l.isOverlay;var C=l.disableHorizontalPadding;var h=function(){return BYs(D())&&(y==null?void 0:y())};
l=_.n0(function(u){if(y!=null&&y()&&_.q("web_enable_arrow_key_navigation_in_dropdown")){var Q=_.WBg(u.currentTarget),G=Q.length;if(G!==0){var J=Array.prototype.indexOf.call(Q,document.activeElement);switch(u.key){case "ArrowDown":u.preventDefault();var L;(L=Q[(J+1)%G])==null||L.focus();break;case "ArrowUp":u.preventDefault();var R;(R=Q[J===-1?G-1:(J-1+G)%G])==null||R.focus()}}}});
var b={};return _.g("yt-list-view-model",{class:_.DV("ytListViewModelHost",(b.ytListViewModelHostKaiosSpatNav=nJd&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",b.ytListViewModelCollectionThumbnailClass=function(){return P1G(D())},b)),
role:function(){return h()?"menu":"list"},
style:_.BK({"max-height":function(){var u,Q=(u=D())==null?void 0:u.visibleElementCount;if(Q)return P1G(D())?(Q+.5)*48+"px":(Q+.5)*40+"px"}}),
"on:keydown":l},_.g(_.uI,{data:function(){return D().listItems}},{listItemViewModel:function(u){return _.g(_.Bv,{data:u.data,
isMenuItem:h,isCompact:U,hideSelectionTextChevron:n,inPopup:y,isOverlay:A,disableHorizontalPadding:C})},
toggleableListItemViewModel:function(u){return _.g(R$g,{data:u.data})},
downloadListItemViewModel:function(u){return _.g(Xng,{data:u.data,isMenuItem:h,isCompact:U,inPopup:y,disableHorizontalPadding:C})},
switchListItemViewModel:function(u){return _.g(_.M7m,{data:u.data,disableHorizontalPadding:C})}}))},"ke");
_.Sxr.idomCompat=!0;var kx8=_.w(function(l){var D=l.data;var U=l.isOverlay;l={};return _.g("yt-course-perks-view-model",{class:_.DV("ytwCoursePerksViewModelHost",(l.ytwCoursePerksViewModelHostOverlay=U,l))},_.g("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.g(_.BO,{text:function(){return D().title}})),_.g("div",null,_.g(_.v,{cond:function(){return D().perks},
then:function(n){return _.g(_.Sxr,{data:function(){return{listItems:n()}},
isCompact:!0,isOverlay:U})}})))},"le");_.Tt(kx8,"yt-course-perks-view-model",{props:{data:_.ND,isOverlay:_.ND}});_.Tt(_.w(function(l){var D=l.data;return _.g("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.g("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.g(_.BO,{text:function(){return D().title}})),_.g("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.g(_.BO,{text:function(){return D().progressSummary}})),_.g("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.g("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.BK({width:function(){return D().progressPercentage*100+"%"}})})))},"me"),"yt-course-progress-view-model",{props:{data:_.C$}});var dCg=_.w(function(l){var D={};return _.g("yt-progress-view-model",{class:_.DV("ytwProgressViewModelHost",(D.ytwProgressViewModelHostOverlay=_.NQ(l.isOverlay,!1),D))},_.g(_.v,{cond:function(){return l.data().progressSummary},
then:function(U){return _.g("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.g(_.BO,{text:U}))}}),_.g("div",{class:"ytwProgressViewModelHostProgressContainer"},_.g(_.v,{cond:function(){return l.data().leadingLabel},
then:function(U){return _.g("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.g(_.BO,{text:U}))}}),_.g("div",{class:"ytwProgressViewModelHostProgressBar"},_.g("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(l.data().progressPercentage||0)*100+"%"}}))))},"ne");var hw=_.w(function(l){var D=l.starNumber;var U=l.data;var n=function(){var y;return((y=U())==null?void 0:y.rating)||0};
return _.g(_.v,{cond:function(){return D()},
then:function(y){return _.g(_.rt,null,_.g(_.F2,{when:function(){return n()>=y()-.25}},function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.C0,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.g(_.F2,{when:function(){return n()>=y()-.75}},function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.C0,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.g(_.oN,null,function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.C0,{icon:"STAR",
size:function(){return 24}}))}))}})},"oe"),Ksv=_.w(function(l){l=l.data;
return _.g("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.g(hw,{starNumber:1,data:l}),_.g(hw,{starNumber:2,data:l}),_.g(hw,{starNumber:3,data:l}),_.g(hw,{starNumber:4,data:l}),_.g(hw,{starNumber:5,data:l}))},"pe");_.Tt(_.w(function(l){var D=_.sl(l,{}).data;return _.g("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.g("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.g(_.BO,{text:function(){var U;return(U=D())==null?void 0:U.title}})),_.g("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.g(_.v,{cond:function(){return D().starProgressViewModels},
then:function(U){return _.g("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.g(_.uI,{data:U},{progressViewModel:dCg}))}}),_.g("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.g("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.g(_.BO,{text:function(){var U;
return(U=D())==null?void 0:U.averageRatingLabel}})),_.g(_.v,{cond:function(){return D().zeroStateText},
then:function(U){return _.g("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.g(_.BO,{text:U}))}}),_.g(_.v,{cond:function(){return D().starRatingViewModel},
then:function(U){return _.g("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.g(_.uI,{data:U},{starRatingViewModel:Ksv}))}}),_.g("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.g(_.BO,{text:function(){var U;
return(U=D())==null?void 0:U.totalRatingsCountLabel}})))))},"qe"),"yt-course-ratings-view-model",{props:{data:_.ND}});var cmv;cmv={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.pnH=_.w(function(l){var D=_.bP("yt-learning-journey-loader-view-model"),U=_.Wr();_.$g(function(){requestAnimationFrame(function(){var y;(y=U.lottieEl)==null||y.addEventListener("DOMLoaded",function(){var A;(A=l.onLottieLoaded)==null||A.call(l)})});
var n=l.data().browseEndpoint;n&&_.dh(n)});
return _.g("yt-learning-journey-loader-view-model",{class:_.DV("learningJourneyLoaderViewModelHost",l.className),"data-target-id":function(){return l.data().targetId||""},
el:D},_.g(_.cO,{className:_.DV("learningJourneyLoaderViewModelLoader",l.className),animationName:function(){return cmv.animationConfig.name},
data:cmv,animationRef:U}))},"se");_.Tt(_.pnH,"yt-learning-journey-loader-view-model",{props:{data:_.C$,className:_.ND,onLottieLoaded:_.ND}});var gLo=new Set,bjl=null;var xCH=_.w(function(l){var D=void 0,U=function(){return l.data()},n=function(){return!!_.L4(_.GM(U())).optionColor},y=_.B(_.aw(-1,void 0,"eTdwcb")),A=y.next().value,C=y.next().value,h=function(J){return A()===J},b=function(J){return U().correctAnswerIndex===J},u=function(){return A()!==-1};
y=_.B(_.aw("",void 0,"QwJs6"));var Q=y.next().value,G=y.next().value;return _.g("learning-journey-quiz-view-model",{class:_.DV("learningQuizComponentHost","learningJourneyQuizYoututorHost",l.className),style:_.BK({background:function(){return _.L4(_.GM(U())).backgroundColor}})},_.g("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},Q),_.g("div",{class:"learningQuizComponentQuizContainer"},_.g("div",{class:"learningQuizComponentQuiz"},_.g("div",{class:"learningQuizComponentQuizContent"},_.g(_.v,{cond:function(){return!!U().aiGeneratedQuizLabel},
then:function(){return _.g("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.g(_.BO,{text:function(){return U().aiGeneratedQuizLabel}}))}}),_.g("div",{class:"learningQuizComponentQuizHeader",
style:_.BK({"align-items":function(){return U().overflowMenu?"start":"center"}})},_.g("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.BK({"min-height":function(){return U().overflowMenu?"48px":"26px"}})},_.g("div",{class:"learningJourneyQuizYoututorText",
style:_.BK({color:function(){return _.L4(_.GM(U())).primaryTextColor}})},_.g(_.BO,{text:function(){return U().questionHeaderText}})))),_.g("div",{class:"learningQuizComponentQuizSubheader",
style:_.BK({color:function(){return _.L4(_.GM(U())).secondaryTextColor}})},_.g(_.BO,{text:function(){var J=U();
return u()?J.explanationText:J.questionSubheaderText}}))),_.g("div",{role:"group",
class:_.DV("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.g(_.wt,{each:function(){return U().optionsData||[]}},function(J,L){var R={};
return _.g("button",{class:_.DV("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(R.learningQuizComponentQuizHover=function(){return!u()},R.learningQuizComponentQuizOptionWithCustomColor=n,R.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return u()&&b(L())},R.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return A()!==U().correctAnswerIndex&&h(L())},R.learningQuizComponentQuizIncorrectShake=
function(){return A()!==U().correctAnswerIndex&&h(L())},R)),
"on:click":_.n0(function(){if(u())return!1;C(L());var a,S;G(b(L())?((a=U().successTitle)==null?void 0:a.content)||"":((S=U().failureTitle)==null?void 0:S.content)||"");return!1}),
style:_.BK({background:"transparent"}),"aria-description":function(){var a,S;return u()?b(L())?(a=U().successTitle)==null?void 0:a.content:(S=U().failureTitle)==null?void 0:S.content:""},
"aria-disabled":u,el:_.fe(function(a){_.qd(271905,a,D,function(S){D=S})}),
"client-ve-type":271905},_.g("div",{class:"learningQuizComponentQuizOptionContainer"},_.g(_.BO,{text:J.optionText}),_.g(_.v,{cond:function(){var a=L();return u()&&(h(a)||b(a))},
then:function(){var a={};return _.g(_.C0,{className:_.DV("learningJourneyQuizYoututorOptionIcon",(a.learningQuizComponentQuizPulse=function(){return A()===U().correctAnswerIndex&&b(L())},a)),
size:24,icon:function(){return b(L())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.g(_.v,{cond:u,
then:function(){return _.g("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.g("div",{class:"learningJourneyQuizYoututorExplanationText"},_.g(_.BO,{text:function(){return U().explanationHeaderText}})),_.g(_.BO,{text:function(){return U().optionsData[A()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"te");
xCH.idomCompat=!0;var jq5;_.Fs8=_.w(function(l){var D=null,U=null,n=null,y=function(){return l.data()},A=function(){return _.L4(_.GM(y()))},C=function(){return!!A().optionColor},h=_.B(_.aw(-1,void 0,"gXauJb")),b=h.next().value,u=h.next().value,Q=function(z){return b()===z},G=function(z){return y().correctAnswerIndex===z},J=function(){return b()!==-1},L=function(){return b()===y().correctAnswerIndex},R=function(){var z=y(),f=J(),I=L();
return f?I?z.successTitle:z.failureTitle:z.questionHeaderText},a=function(){var z=J(),f=L();
return z?f?264685:264684:264683},S=function(){var z=y();
return J()?z.explanationText:z.questionSubheaderText},d=function(){return!!y().video},c=function(z){return L()&&G(z)},N=_.n0(function(){u(-1);
return!1});
return _.g(_.v,{cond:function(){return y().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.g(xCH,{data:function(){return y()}})},
else:function(){return _.g("learning-journey-quiz-view-model",{class:_.DV("learningQuizComponentHost",l.className),style:_.BK({background:function(){return A().backgroundColor}})},_.g(_.v,{cond:d,
then:function(){return _.g("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.BK({background:function(){return A().videoBackgroundColor}})},_.g(_.uI,{data:function(){return y().video}},{lockupViewModel:function(z){return _.g(_.xd,{data:z.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.g("div",{class:"learningQuizComponentQuizContainer"},_.g("div",{class:"learningQuizComponentQuiz"},_.g("div",{class:"learningQuizComponentQuizContent"},_.g(_.v,{cond:function(){return!!y().aiGeneratedQuizLabel},
then:function(){return _.g("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.g(_.BO,{text:function(){return y().aiGeneratedQuizLabel}}))}}),_.g("div",{class:"learningQuizComponentQuizHeader",
style:_.BK({"align-items":function(){return y().overflowMenu?"start":"center"}})},_.g("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.BK({"min-height":function(){return y().overflowMenu?"48px":"26px"}})},_.g("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.fe(function(z){_.qd(a(),z,D,function(f){D=f})}),
style:_.BK({color:function(){return A().primaryTextColor}}),
"client-ve-type":a},_.g(_.BO,{text:R}))),_.g("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.g(_.v,{cond:J,then:function(){return _.g("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.fe(function(z){_.qd(264687,z,U,function(f){U=f})}),
"on:click":N,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.g("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.BK({fill:function(){return A().primaryTextColor}})},_.g("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"})))}}),
_.g(_.uI,{data:function(){return y().overflowMenu}},{buttonViewModel:function(z){return _.g(_.t9,{data:z.data})}}))),_.g("div",{class:"learningQuizComponentQuizSubheader",
el:_.fe(function(z){_.qd(264688,z,n,function(f){n=f})}),
style:_.BK({color:function(){return A().secondaryTextColor}}),
"client-ve-type":264688},_.g(_.BO,{text:S}))),_.g("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.g(_.wt,{each:function(){return y().optionsData||[]}},function(z,f){var I={};
return _.g("button",{class:_.DV("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(I.learningQuizComponentQuizHover=function(){return!J()},I.learningQuizComponentQuizOptionWithCustomColor=C,I.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return c(f())},I.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!L()&&Q(f())},I.learningQuizComponentQuizIncorrectShake=function(){return!L()&&
Q(f())},I.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return J()&&!Q(f())},I)),
"on:click":_.n0(function(){if(J())return!1;u(f());return!1}),
style:_.BK({background:function(){var iG=f();return J()&&Q(iG)?"":C()?A().optionColor:"transparent"}}),
"aria-disabled":J,"client-ve-type":264686},_.g("div",{class:"learningQuizComponentQuizOptionContainer"},_.g(_.v,{cond:J,then:function(){return _.g(jq5,{isOptionCorrect:G,optionIndex:f,isOptionSelectedAndCorrect:c,colors:A})}}),_.g(_.BO,{text:z.optionText})))})))))}})},"ue");
jq5=_.w(function(l){var D={};return _.g("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var U=l.optionIndex();return l.isOptionCorrect(U)?"0 0 24 24":"0 -960 960 960"},
class:_.DV("learningJourneyQuizViewModelQuizOptionIconLeading",(D.learningQuizComponentQuizPulse=function(){return l.isOptionSelectedAndCorrect(l.optionIndex())},D)),
style:_.BK({fill:function(){return l.colors().primaryTextColor}})},_.g("path",{d:function(){var U=l.optionIndex();
return l.isOptionCorrect(U)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))},"ve");
_.Fs8.idomCompat=!0;_.Tt(_.Fs8,"learning-journey-quiz-view-model",{props:{data:_.C$,className:_.C$}});var o78=_.w(function(l){var D=_.B((0,_.OWm)(function(){var C;return{targetId:(C=l.data().config)==null?void 0:C.suspenseKey,contents:[l.data()]}})).next().value,U=_.Jc().resolve(_.qK),n=function(){var C=D().contents.length>0?D().contents[0]:void 0;
return C==null?void 0:C.config},y=function(){var C;
return(C=n())==null?void 0:C.entityTriggerConfig},A=_.Pr(Alo,function(){var C,h;
return(h=(C=y())==null?void 0:C.entityKey)!=null?h:""});
_.$i(function(){var C,h,b,u=(b=Number((C=y())==null?void 0:(h=C.invalidationTimestamp)==null?void 0:h.seconds))!=null?b:0,Q,G,J;if(((J=Number((Q=A())==null?void 0:(G=Q.lastUpdated)==null?void 0:G.seconds))!=null?J:0)>u){var L;(C=(L=n())==null?void 0:L.continuationCommand)&&U.resolveCommand(C)}},"tC8nKe");
return _.g("yt-suspense-view-model",{class:_.DV("ytSuspenseViewModelHost")},_.g(_.uI,{data:function(){var C;return(C=n())==null?void 0:C.contents}},{lockupViewModel:_.xd}))},"xe");var wn1=_.w(function(l){var D=_.sl(l,{palette:void 0,isLastItem:!1}),U=D.palette,n=D.isLastItem,y=function(){return l.data().isHighlighted},A=function(){var b;
return vLB((b=U())==null?void 0:b.iconDisabledColor)},C=function(){var b;
return vLB((b=U())==null?void 0:b.primaryTitleColor)},h=function(){var b;
return vLB((b=U())==null?void 0:b.secondaryTitleColor)};
D={};return _.g("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.fe(_.aT(function(){return l.data().rendererContext}))},_.g(_.uI,{data:function(){return l.data().thumbnail}},{thumbnailViewModel:_.eS}),_.g("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.g("div",{class:_.DV("ytMacroMarkerListItemViewModelTimeDescription",(D.ytMacroMarkerListItemViewModelHighlighted=y,D)),
style:_.BK({"background-color":function(){return y()?C():A()},
color:function(){return y()?"":h()}})},_.g(_.BO,{text:function(){return l.data().timestamp}})),_.g("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.BK({"background-color":function(){return n()?"transparent":A()}})}),_.g("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(y()?C():h())}},_.g(_.BO,{text:function(){return l.data().title}}))))},"ye");_.Pv=_.w(function(l){function D(Bo){c("transform:translateX("+(_.H3("HTML_DIR")==="rtl"?"":"-")+Bo+"px)")}
function U(Bo){return Math.min(Math.max(Bo,0),d()-iG())}
function n(){var Bo=f()+GN();return y()?(Math.round(iG()/Bo)||1)*Bo:0}
var y=function(){return l.data().items||[]},A=function(){return l.data().previousButton},C=function(){return l.data().nextButton},h=function(){var Bo,D7;
return(D7=(Bo=l.disableArrows)==null?void 0:Bo.call(l))!=null?D7:!1},b=function(){var Bo;
return!((Bo=l.forceNarrowLayout)==null||!Bo.call(l))},u=_.dM(function(){var Bo;
return!((Bo=l.centerAlignItems)==null||!Bo.call(l))&&d()<=iG()},void 0,"Uto0kc"),Q=_.bP("horizontal-shelf-view-model"),G=_.bP("div"),J=_.B(_.aw(0,void 0,"G0xZB")),L=J.next().value,R=J.next().value;
J=_.B(_.aw(0,void 0,"kqCYFf"));var a=J.next().value,S=J.next().value,d=a;a=_.B(_.aw("",void 0,"Hh6Uye"));J=a.next().value;var c=a.next().value;a=_.B(_.aw(0,void 0,"yMGBKb"));var N=a.next().value,z=a.next().value,f=N;a=_.B(_.aw(0,void 0,"VChthd"));N=a.next().value;var I=a.next().value,iG=N;a=_.B(_.aw(!1,void 0,"qJlhhe"));var CC=a.next().value,vo=a.next().value;a=_.B(_.aw(0,void 0,"x7H94"));N=a.next().value;var td=a.next().value,GN=N;a=_.B(_.aw(0,void 0,"ksuUee"));var Ms=a.next().value,j3=a.next().value;
a=_.B(_.aw("50%",void 0,"uxCxde"));var wl=a.next().value,zN=a.next().value,Z7=function(){var Bo,D7=(Bo=l.data())==null?void 0:Bo.responsiveContainerConfiguration,qr,H5;return D7?cr(D7==null?void 0:D7.responsiveSize):(H5=(qr=l.sizing)==null?void 0:qr.call(l))!=null?H5:"STANDARD"};
a=_.dM(function(){return!h()&&L()>0},void 0,"XK60w");
N=_.dM(function(){return!h()&&L()<d()-iG()},void 0,"D22LVd");
var Lm=function(){R(U(L()-n()));D(L())},Vg=function(){R(U(L()+n()));
D(L())},v5=function(){Q.value!==null&&dy()},mk;
_.N1(function(){dy();window.ResizeObserver?(mk=new ResizeObserver(_.e8(v5,0)),mk.observe(Q.value)):window.addEventListener("resize",v5)});
_.NV(function(){if(window.ResizeObserver){var Bo;(Bo=mk)==null||Bo.disconnect()}else window.removeEventListener("resize",v5)});
var dy=function(){var Bo=Q.value.clientWidth,D7=l.includeMargin!==void 0?l.includeMargin():!1,qr;var H5=l.hasPeek!==void 0?l.hasPeek():!((qr=l.data())==null||!qr.hasPeek);Bo=_.Kq({containerWidth:Bo,hasPeek:H5,sizing:Z7(),marginSettings:D7?b()?4:1:0});td(Bo.gutter);j3(Bo.margin);z(Bo.itemWidth);vo(Bo.maxContainerWidth<528||b());I(Bo.maxContainerWidth);y()&&S((Bo.itemWidth+Bo.gutter)*y().length-Bo.gutter);if(y()){var Mr;if(((Mr=l.thumbnailAspectRatio)==null?void 0:Mr.call(l))!==void 0){var V_;zN(f()/
jk$((V_=l.thumbnailAspectRatio)==null?void 0:V_.call(l))/2+"px")}else zN("50%")}},eW={},Qq={};
return _.g("horizontal-shelf-view-model",{class:_.DV("ytwHorizontalShelfViewModelHost",l.className),el:Q},_.g(_.v,{cond:function(){var Bo;return l.data().header&&!((Bo=l.horizontalShelfExperiments)==null?0:Bo.call(l).hideHeader)},
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.BK({width:function(){return iG()+"px"},
padding:function(){return"0 "+Ms()+"px"}})},_.g(_.uI,{data:function(){return l.data().header}},{sectionHeaderViewModel:function(Bo){return _.g(_.oa,{data:Bo.data,
disableHorizontalPadding:!0,forceSmallLayout:CC,useResponsiveLayout:!0})}}))}}),_.g("div",{class:_.DV("ytwHorizontalShelfViewModelOuterContainer",(eW.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return u()},eW)),
style:_.BK({"margin-top":function(){var Bo,D7=l.data().header&&!((Bo=l.horizontalShelfExperiments)==null?0:Bo.call(l).hideHeader),qr;return(((qr=l.ensureMarginTop)==null?0:qr.call(l))&&!D7?12:0)+"px"}})},_.g("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.BK({width:function(){return iG()+"px"},
padding:function(){return"0 "+Ms()+"px"},
overflow:function(){return h()?"auto":"hidden"}})},_.g("div",{class:_.DV("ytwHorizontalShelfViewModelItems",(Qq.ytwHorizontalShelfViewModelCenterAlignItems=function(){return u()},Qq)),
el:G,style:J},_.g(_.uI,{data:y},{macroMarkerListItemViewModel:function(Bo,D7){return _.g("div",{style:_.BK({width:function(){return f()+"px"},
"margin-right":function(){return(D7()===y().length-1?0:GN())+"px"}})},_.g(wn1,{data:Bo.data,
palette:_.NQ(l.palette),isLastItem:function(){return D7()===y().length-1}}))},
lockupViewModel:function(Bo,D7){var qr=Bo.data;return _.g("div",{style:_.BK({width:function(){return f()+"px"},
"margin-right":function(){return(D7()===y().length-1?0:GN())+"px"}})},_.g(_.xd,{data:qr,
containerType:4,sizing:Z7,protectBackground:l.protectBackground,thumbnailFixedWidth:function(){return Q9N(qr())+"px"},
thumbnailTargetWidth:function(){return Q9N(qr())}}))},
suspenseViewModel:function(Bo,D7){return _.g("div",{style:_.BK({width:function(){return f()+"px"},
"margin-right":function(){return(D7()===y().length-1?0:GN())+"px"}})},_.g(o78,{data:Bo.data}))}}))),_.g(_.v,{cond:a,
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.BK({top:function(){return wl()}})},_.g(_.uI,{data:A},{buttonViewModel:function(Bo){return _.g(_.t9,{data:Bo.data,
onClick:Lm})}}))}}),_.g(_.v,{cond:N,
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.BK({top:function(){return wl()}})},_.g(_.uI,{data:C},{buttonViewModel:function(Bo){return _.g(_.t9,{data:Bo.data,
onClick:Vg})}}))}})))},"ze");
_.Pv.idomCompat=!0;var rmz=_.w(function(l){var D=function(){return l.data().targetId||""},U=function(){var a;
return((a=l.data())==null?void 0:a.expansionEntityKey)||""},n=_.Pr(_.yld,U),y=!0,A=function(){var a;
return((a=n())==null?void 0:a.value)===D()},C=function(a){_.$u(_.vr("stringEntity",U(),{key:U(),
value:a?D():""}))};
_.$g(function(){y=!1;l.data().isExpanded&&C(!0)});
var h=function(){if(A()){var a=!0;l.onCollapse!==void 0&&(a=l.onCollapse());a&&C(!1)}else C(!0)},b=_.n0(h),u=function(){var a;
return(((a=l.accordionStyle)==null?void 0:a.call(l))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Q=_.bP("div"),G=function(){var a,S;
return(S=(a=_.M(l.data().rendererContext,_.vF))==null?void 0:a.label)!=null?S:""},J=function(){var a,S;
return{disabled:(a=l.hideIfNotExpanded)==null?void 0:a.call(l),ariaHidden:(S=l.hideIfNotExpanded)==null?void 0:S.call(l)}},L={},R={};
return _.g("yt-accordion-item-view-model",{class:_.DV("ytAccordionItemViewModelHost",l.className,(L.ytAccordionItemViewModelExpanded=function(){return A()},L.ytAccordionItemViewModelHidden=function(){var a;
return(a=l.hideIfNotExpanded)==null?void 0:a.call(l)},L.ytAccordionItemViewModelMini=u,L)),
"data-target-id":D},_.g("div",{class:"ytAccordionItemViewModelContainer"},_.g("div",{class:"ytAccordionItemViewModelLeftSection","on:click":b,title:G,"aria-hidden":function(){var a;return(a=l.hideIfNotExpanded)==null?void 0:a.call(l)}},_.g(_.BO,{text:function(){return l.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:G})),_.g("div",{class:"ytAccordionItemViewModelRightSection"},_.g(_.uI,{data:function(){return A()?l.data().expandButton:l.data().collapseButton}},{buttonViewModel:function(a){return _.g(_.t9,{data:a.data,
className:"ytAccordionItemViewModelToggleButton",onClick:h,buttonOverrides:J})}}))),_.g("div",{class:"ytAccordionItemViewModelContainer"},_.g("div",{class:_.DV("ytAccordionItemViewModelContent",(R.ytAccordionItemViewModelExpandedSubtitle=function(){return A()},R)),
el:Q,style:_.BK({"max-height":function(){return y?"auto":A()?Q.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!A()}},_.g(_.v,{cond:function(){return!u()},
then:function(){return _.g(_.BO,{text:function(){return l.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.g(_.uI,{data:function(){return l.data().content}},{horizontalShelfViewModel:function(a){return _.g(_.Pv,{data:a.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Be");_.z$k=_.w(function(l){var D=_.B((0,_.OWm)(l.data)).next().value,U=function(){return l.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},n=function(){return U()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},y=_.B(_.aw(!0,void 0,"VFpYAb")),A=y.next().value,C=y.next().value,h=function(){return n()&&A()},b=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){C(!A())}}},u=_.n0(function(){D().onTitleTap&&_.dh(D().onTitleTap||{})});
y={};return _.g("yt-accordion-view-model",{class:_.DV("ytAccordionViewModelHost",(y.ytAccordionViewModelMinimized=function(){return h()},y)),
"data-target-id":function(){return l.data().targetId||""}},_.g(_.v,{cond:function(){return n()||!!D().title},
then:function(){return _.g("div",{class:"ytAccordionViewModelHeader"},_.g("div",{class:"ytAccordionViewModelTitleSection"},_.g("div",{class:"ytAccordionViewModelTitleWrapper"},_.g(_.v,{cond:function(){return!!l.data().headerIcon},
then:function(){return _.g(_.C0,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var Q;return(Q=l.data().headerIcon)==null?void 0:Q.iconType}})}}),_.g("div",{class:"ytAccordionViewModelTitle",
"on:click":u},_.g(_.BO,{className:"ytAccordionViewModelTitleText",text:function(){return D().title}})))),_.g("div",{class:"ytAccordionViewModelButtonSection"},_.g(_.v,{cond:n,
then:function(){return _.g(_.ey,{data:b,iconName:function(){return h()?"chevron_down":"chevron_collapse"}})}})))}}),_.g("div",{class:"ytAccordionViewModelContent"},_.g(_.uI,{data:function(){return D().contents}},{accordionItemViewModel:function(Q){return _.g(rmz,{data:Q.data,
className:"ytAccordionViewModelRow",accordionStyle:U,hideIfNotExpanded:h,onCollapse:function(){return n()?(C(!0),!1):!0}})}})),_.g("div",null,_.g(_.v,{cond:function(){return!n()&&(!!D().disclaimerFooter||!!D().footer)},
then:function(){return _.g("div",{class:"ytAccordionViewModelFooter"},_.g(_.BO,{text:function(){return D().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.g(_.uI,{data:function(){return l.data().footer}},{flexibleActionsViewModel:function(Q){return _.g(_.Dq,{data:Q.data,
layout:0})}}))}})))},"Ce");_.Tt(_.z$k,"yt-accordion-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=null,U=null,n,y=(n=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:n(),A=_.B(_.aw(!1,void 0,"CmEVtc"));n=A.next().value;var C=A.next().value;A=_.B(_.aw(!0,void 0,"yo9dR"));var h=A.next().value,b=A.next().value,u=_.bP("textarea",function(S){_.qd(264503,S,D,function(d){D=d})}),Q=function(S){C(!0);
S={learningJourneyFormData:{query:S}};_.dh(l.data().searchEndpoint||{},{form:{formData:S}});return!1},G=_.n0(function(S){S.target.closest("button-view-model")&&C(!0)});
A=_.n0(function(){b(u.value.value.length===0)});
var J=_.n0(function(S){if(S.key==="Enter"&&!S.shiftKey&&!h()){var d=S.target;S.preventDefault();Q(d.value)}}),L={},R={},a={};
return _.g("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.g("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.g(_.rh,{data:function(){return l.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.g("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.g("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.g("div",{class:_.DV("ytLearningJourneyZeroStateSearchBar",(L.ytLearningJourneyZeroStateSearchBarDark=y,L))},_.g("textarea",{class:_.DV("ytLearningJourneyZeroStateTextInput",(R.ytLearningJourneyZeroStateTextInputDark=y,R)),el:u,"on:keyup":A,"on:keydown":J,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.g("div",{class:_.DV("ytLearningJourneyZeroStateSearchButtonContainer",(a.ytLearningJourneyZeroStateSearchButtonContainerDark=y,a))},_.g(_.t9,{data:function(){return _.M(l.data().searchButton,_.CM)},
className:"search-button",onClick:function(){return Q(u.value.value)},
buttonOverrides:function(){return{disabled:h(),style:y?"mono-inverse":"mono",size:"XL"}}}))),_.g(_.v,{cond:function(){return!!l.data().errorBanner},
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.fe(function(S){_.qd(264617,S,U,function(d){U=d})})},_.g(_.uI,{data:function(){return l.data().errorBanner}},{alertBannerViewModel:function(S){return _.g(_.Ceh,{data:S.data,
"client-ve-type":264617})}}))}})),_.g(_.v,{cond:n,
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.g(_.uI,{data:function(){return l.data().loader}},{learningJourneyLoaderViewModel:function(S){return _.g(_.pnH,{data:S.data})}}))},
else:function(){return _.g("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.g(_.v,{cond:function(){return!!l.data().learningJourneyShelf},
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.g("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return l.data().learningJourneySectionTitle}),_.g(_.uI,{data:function(){return l.data().learningJourneyShelf}},{horizontalShelfViewModel:function(S){return _.g(_.Pv,{data:S.data,
centerAlignItems:!0})}}))}}),_.g("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.g("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return l.data().suggestedJourneySectionTitle}),_.g("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":G},_.g(_.uI,{data:function(){return l.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(S){return _.g(_.Dq,{data:S.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"De"),"yt-learning-journey-zero-state",{props:{data:_.C$}});var fiH=_.w(function(l){var D=l.data;return _.g("ytvl-live-leaderboard-item-action-content-view-model",{class:_.DV("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.g(_.BO,{text:function(){var U;return(U=D())==null?void 0:U.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.g(_.uI,{data:function(){return D().actionButton}},{buttonViewModel:function(U){return _.g(_.t9,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:U.data})}}))},"Ee");var $Cy=_.w(function(l){var D=l.data;return _.g("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.DV("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.g(_.BO,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var U;return(U=D())==null?void 0:U.displayName},
ellipsisTruncate:!0}),_.g(_.uI,{data:function(){return D().badge}},{buttonViewModel:function(U){return _.g(_.t9,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:U.data})}}))},"Fe");_.Tt(_.w(function(l){var D=l.data;return _.g("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.g("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.g(_.BO,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var U;return(U=D())==null?void 0:U.rank}})),_.g("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.g(_.uI,{data:function(){return D().avatar}},{avatarViewModel:_.iX})),_.g("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.g(_.uI,{data:function(){return D().content}},{liveLeaderboardItemChannelContentViewModel:$Cy,
liveLeaderboardItemActionContentViewModel:fiH})),_.g(_.BO,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var U;return(U=D())==null?void 0:U.points}}))},"Ge"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;return _.g("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.g(_.BO,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var U,n;return(U=D())==null?void 0:(n=U.ranking)==null?void 0:n.rank}}),_.g("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.g(_.uI,{data:function(){return D().avatar}},{avatarViewModel:_.iX})),_.g(_.BO,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var U,n;return(U=D())==null?void 0:(n=U.channelContent)==null?void 0:n.channelName}}),_.g(_.BO,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var U;return(U=D())==null?void 0:U.points}}))},"He"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.C$}});var NQy=_.w(function(l){l=_.sl(l,{wrapper:!1}).wrapper;return _.g(_.v,{cond:l,then:function(){return _.g("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.g("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.g("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ie");
NQy.idomCompat=!0;var sqh=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],E7g=_.w(function(l){var D=l.data;var U=_.fe(),n=_.dM(function(){return D().command},void 0,"fyYsT");
_.$i(function(){n()&&_.Xk(n(),{form:{element:U.value}})},"B0nxdb");
return _.g("div",{el:U,class:"YtQrCodeRendererHostContainer"},_.g(_.v,{cond:function(){return D().qrCodeImage},
then:function(y){return _.g(_.rh,{data:y,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.g(_.v,{cond:function(){return D().spinner},
then:function(){return _.g(NQy,null)}})}}),_.g(_.v,{cond:function(){return D().label},
then:function(y){return _.g(_.BO,{text:y,className:"YtQrCodeRendererHostLabel"})}}),_.g(_.v,{cond:function(){return D().labels},
then:function(y){return _.g("div",{class:"YtQrCodeRendererHostLabels"},_.g(_.wt,{each:y},function(A){return _.g(_.BO,{text:A})}))}}))},"Le");_.Tt(_.w(function(l){var D=l.data;var U=_.dM(function(){return D().qrEntityKey},void 0,"LmZ2xf"),n=_.dM(function(){return D().deleteEntityOnDismiss},void 0,"my0Tzb"),y=_.dM(function(){return D().command},void 0,"hzECIb"),A=_.Pr(LcC,U);
l=_.dM(function(){return D().qrCodeImage},void 0,"AnD9rc");
var C=_.dM(function(){return D().style&&sqh.includes(D().style)},void 0,"f5fZv"),h=_.JH({visibilityCallback:function(b){b&&y()&&_.Xk(y())},
showOption:{calledOnce:!0,state:"visible"}});_.N1(function(){_.NV(function(){n()&&U()&&_.fY().dispatch(_.vr("qrCodeEntity",U()))})});
return _.g("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.fe(h)},_.g(_.v,{cond:C,then:function(){return _.g(_.v,{cond:A,then:function(b){return _.g(E7g,{data:b})}})}}),_.g(_.v,{cond:l,
then:function(b){return _.g(_.rh,{data:b,alt:""})}}))},"Je"),"yt-qr-code-renderer",{props:{data:_.C$}});var Iiv=_.w(function(l){var D=function(){return _.tu(1728053247&(l.barColor!==void 0?hB(l.barColor()):4278190080))};
return _.g("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.g("div",{class:"ytVideoOverviewGhostCardDetails"},_.g(TQz,{animationDelay:0,percentWidth:100,barColor:function(){return D()}}),_.g(TQz,{animationDelay:600,
percentWidth:60,barColor:function(){return D()}})))},"Me"),TQz=_.w(function(l){return _.g("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+l.percentWidth()+"%"}},_.g("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var D=l.animationDelay(),U=l.barColor();return"animation-delay:"+D+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+U+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ne");var HN5;_.Yxy=_.w(function(l){function D(d){C(d)}
var U=l.data;var n=_.bP("yt-video-overview-view-model"),y=_.gm("div");l=_.B(_.aw(-1,void 0,"dW11He"));var A=l.next().value,C=l.next().value;l=_.B(_.aw(0,void 0,"LqrsK"));var h=l.next().value,b=l.next().value,u={},Q=_.Pr(GgK,function(){return U().asyncDataEntityKey}),G=function(){var d;
if((d=Q())==null?0:d.videoOverviewViewModel){var c;return _.M((c=Q())==null?void 0:c.videoOverviewViewModel,MP7)}return U()};
_.N1(function(){b(Math.min((n.value.clientWidth-24)/4-8,72))});
var J=function(d){C(d);(y==null?0:y.value)&&y.value.children[d]&&y.value.children[d].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
RDg(n,function(){var d;if((d=G())==null||!d.inlinePlaybackEndpoint)return null;var c;d=u==null?void 0:(c=u.thumbnailElRef)==null?void 0:c.value;if(!d)return null;var N;c=(N=G())==null?void 0:N.inlinePlaybackEndpoint;N=_.M(c,FRr);return{multipleVideoPreviewData:{data:(N==null?0:N.playerDescriptors)&&(N==null?0:N.playerDescriptors.length)?N.playerDescriptors:[],thumbnailElement:d,trackingParams:"test",callbacks:{onPlaybackStarted:J},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var L=function(){var d;return((d=G())==null?void 0:d.headerSubtext)!==void 0?!0:!1},R=function(){var d,c=hB((d=G())==null?void 0:d.titleColor);
return c?"color: "+_.tu(c)+";":void 0},a=function(){var d,c=hB((d=G())==null?void 0:d.subtextColor);
return c?"color: "+_.tu(c)+";":void 0},S=function(){return _.g("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.g("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return R()}},_.g(_.BO,{text:function(){var d;
return(d=G())==null?void 0:d.headerText}})),_.g(_.v,{cond:L,
then:function(){return _.g("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.g("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return a()}},_.g(_.C0,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.g("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return a()}},_.g(_.BO,{text:function(){var d;
return(d=G())==null?void 0:d.headerSubtext}})))}}))};
l={};return _.g("yt-video-overview-view-model",{class:_.DV("ytGenAiVideoOverviewViewModelHost",(l.ytGenAiVideoOverviewViewModelMweb=!1,l.ytGenAiVideoOverviewViewModelDesktop=!0,l)),el:n,style:function(){var d,c=hB((d=G())==null?void 0:d.backgroundColor);return c?"background-color: "+_.tu(c)+";":void 0}},_.g(_.v,{cond:function(){var d;
return(d=G())==null?void 0:d.isLoading},
then:function(){return _.g(Iiv,{barColor:function(){var d;return(d=G())==null?void 0:d.titleColor}})},
else:function(){return _.g(_.GZ,null,null,_.g("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.g(_.uI,{data:function(){var d;return(d=G())==null?void 0:d.thumbnail}},{thumbnailViewModel:function(d){return _.g(_.eS,{data:d.data,
aspectRatio:0,playbackRef:qXB(u)})}})),_.g("div",{class:"ytGenAiVideoOverviewViewModelDetails"},S(),_.g(_.v,{cond:function(){var d,c,N,z;
return((d=G())==null?void 0:(c=d.listItems)==null?void 0:c.length)!==void 0&&((N=G())==null?void 0:(z=N.listItems)==null?void 0:z.length)>0?!0:!1},
then:function(){return _.g("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:y},_.g(_.wt,{each:function(){var d;return(d=G())==null?void 0:d.listItems}},function(d,c){return _.g(HN5,{image:d.image,
index:c,isSelected:function(){return c()===A()},
onClick:D,itemWidth:h})}))}}),_.g("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.g("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return R()}},_.g(_.BO,{text:function(){var d,c,N,z,f,I,iG;
return(iG=(d=G())==null?void 0:(c=d.listItems)==null?void 0:(N=c[A()])==null?void 0:N.headline)!=null?iG:(z=G())==null?void 0:(f=z.listItems)==null?void 0:(I=f[0])==null?void 0:I.headline}})),_.g("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return a()}},_.g(_.BO,{text:function(){var d,c,N,z,f,I,iG;
return(iG=(d=G())==null?void 0:(c=d.listItems)==null?void 0:(N=c[A()])==null?void 0:N.subtext)!=null?iG:(z=G())==null?void 0:(f=z.listItems)==null?void 0:(I=f[0])==null?void 0:I.subtext}})))))}}))},"Oe");
HN5=_.w(function(l){var D=l.image;var U=l.itemWidth;var n=l.index;var y=l.isSelected;var A=l.onClick;l=_.n0(function(){n!==void 0&&A!==void 0&&A(n());return!1});
var C={};return _.g("div",{class:_.DV("ytGenAiVideoOverviewViewModelCarouselItem",(C.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return y==null?void 0:y()},C)),
style:function(){return"width: "+U()+"px;"},
"on:click":l},_.g(_.rh,{data:D,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.g(_.v,{cond:function(){return y==null?void 0:y()},
then:function(){return _.g("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.g("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Pe");
_.Yxy.idomCompat=!0;_.Tt(_.Yxy,"yt-video-overview-view-model",{props:{data:_.C$}});_.ONh=_.w(function(l){var D=l.data;var U=l.topbarOffset;var n,y=((n=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:n())||!1;return _.g("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var A=D();var C,h,b=y?(C=A.config)==null?void 0:C.darkThemeBackgroundColor:(h=A.config)==null?void 0:h.lightThemeBackgroundColor;A=b?_.an(b):void 0;A="background-color: "+A+";";U!==void 0&&(A+="top: -"+U()+"px;");return A},
"aria-hidden":!0},_.g(_.v,{cond:function(){var A,C,h;return!!((A=D().backgroundImageConfig)==null?0:(C=A.image)==null?0:(h=C.sources)==null?0:h.length)},
then:function(){return _.g(_.rh,{data:function(){var A;return(A=D().backgroundImageConfig)==null?void 0:A.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.g("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+J_9(y,D().gradientColorConfig)+";"}}))},"Qe");
_.ONh.idomCompat=!0;var V7k=_.w(function(l){var D=l.data;var U=l.isOverlay;return _.g("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.g("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.g(_.uI,{data:function(){return D().header}},{sectionHeaderViewModel:function(n){return _.g(_.oa,{data:n.data,
isOverlay:U})}})),_.g("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.g(_.uI,{data:function(){return D().channelInfoButtons}},{flexibleActionsViewModel:_.Dq})),_.g("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.g(_.uI,{data:function(){return D().description}},{descriptionPreviewViewModel:function(n){return _.g(_.Fn,{data:n.data,
isOverlay:U})}})))},"Re");
V7k.idomCompat=!0;var iCH=_.w(function(l){var D=l.data;var U={};return _.g("factoid-view-model",{class:_.DV("ytwFactoidViewModelHost",(U.ytwFactoidViewModelHostOverlay=l.isOverlay,U))},_.g(_.BO,{text:function(){return D().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.g(_.BO,{text:function(){return D().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Se");
iCH.idomCompat=!0;var l9w=_.w(function(l){var D=l.data;var U=l.isOverlay;return _.g("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.g(_.uI,{data:function(){return D().factoids}},{factoidViewModel:function(n){return _.g(iCH,{data:n.data,
isOverlay:U})}}))},"Te");
l9w.idomCompat=!0;_.Dsq=_.w(function(l){var D=l.data;var U=l.isOverlay;return _.g("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.g(_.uI,{data:function(){return D().items}},{channelInfoViewModel:function(n){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(V7k,{data:n.data,
isOverlay:U}))},
coursePerksViewModel:function(n){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(kx8,{data:n.data,isOverlay:U}))},
descriptionPreviewViewModel:function(n){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(_.Fn,{data:n.data,isOverlay:U}))},
factoidsRowViewModel:function(n){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(l9w,{data:n.data,isOverlay:U}))},
progressViewModel:function(n){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(dCg,{data:n.data,isOverlay:U}))}}))},"Ue");var UsJ=_.w(function(l){return _.g("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.g(_.uI,{data:function(){return l.data().content}},{courseMetadataViewModel:function(D){return _.g(_.Dsq,{data:D.data,
isOverlay:l.isOverlay})},
progressViewModel:function(D){return _.g(dCg,{data:D.data})}}))},"Ve");var n95=_.w(function(l){var D=l.data;l=l.className;var U=function(){var y;return _.mr((y=D())==null?void 0:y.rendererContext)},n={};
n=(n.dynamicTextViewModelHost=!0,n.dynamicTextViewModelHostTappable=function(){return U()},n);
return _.g("yt-dynamic-text-view-model",{el:_.fe(_.aT(function(){var y;return(y=D())==null?void 0:y.rendererContext})),
role:function(){return U()?"link":void 0},
tabindex:function(){return U()?0:void 0},
class:_.DV(l,n)},_.g("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var y,A,C;return(C=(A=_.M((y=D())==null?void 0:y.rendererContext,_.vF))==null?void 0:A.label)!=null?C:""}},_.g(_.BO,{text:function(){return D().text},
userInput:!0})))},"We");
n95.idomCompat=!0;_.bZ=_.w(function(l){var D=l.data;var U=l.isPositionRelative;var n=_.qTB("(max-width: 527.9px)"),y=function(){var A,C;return(C=(A=D())==null?void 0:A.style)!=null?C:"IMAGE_BANNER_STYLE_FULL_BLEED"};
l={};return _.g("yt-image-banner-view-model",{el:_.fe(_.aT(function(){var A;return(A=D())==null?void 0:A.rendererContext})),
class:_.DV((l.ytImageBannerViewModelHost=!0,l.ytImageBannerViewModelInset=function(){return MRC(y())},l.ytImageBannerViewModelPositionAbsolute=function(){return _.EP(!0)&&!(U==null?0:U())},l.ytImageBannerViewModelSmallInset=function(){return MRC(y())&&n()},l.ytImageBannerViewModelTappable=function(){var A;
return _.mr((A=D())==null?void 0:A.rendererContext)},l))},_.g(_.v,{cond:function(){var A;
return(A=D())==null?void 0:A.image},
then:function(){return _.g(_.rh,{data:function(){return D().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.g(_.uI,{data:function(){var A;
return(A=D())==null?void 0:A.overlays}},{thumbnailHoverOverlayViewModel:VW}))},"Xe");
_.bZ.idomCompat=!0;var ydT;ydT=_.w(function(l){var D=l.condition;var U=l.content;return _.g(_.v,{cond:D,then:function(){return _.g("div",{class:"yt-page-header-view-model__scroll-container"},U())},
else:function(){return U()}})},"Ye");
_.AdW=_.w(function(l){var D=l.data;var U=l.noPadding;var n=l.enableBanner;var y=l.cinematicContainerTopbarOffset;var A=l.allowCinematicContainerOverflow;var C=l.displayAsSidebar;var h=l.displayAsPanel;var b=l.alwaysUseMediumTextDescription;var u=R73(),Q=function(){return!!D().image||!!D().animatedImage},G=function(){return!!D().background},J=function(){return(C==null?0:C())||(h==null?0:h())?1:u()},L=function(){return J()===1},R=function(){return L()||J()===2},a=function(){return J()===4},S=function(){var Ms=
D();
var j3=!!D().heroImage;var wl=J(),zN=Zj$(D()),Z7=C==null?void 0:C(),Lm=!Ms.metadata,Vg;if(Vg=j3?_.M(Ms.heroImage,C5y):_.M(Ms.animatedImage||Ms.image,C5y)){Ms=Vg.style;var v5=Vg.layoutMode;if(v5!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Vg=E$K(su_(Vg)),j3)j3=L3G(wl,Ms,v5,Vg,Z7);else b:if(Lm)j3=wl===1?{size:48}:{size:72};else switch(wl){case 1:j3={size:72};break b;case 2:j3={size:120};break b;default:j3=zN<4?{size:120}:{size:160}}else j3=void 0}else j3={size:0};return j3};
l={};l=_.DV((l["yt-page-header-view-model"]=!0,l["yt-page-header-view-model--no-padding"]=function(){return!(U==null||!U())},l["yt-page-header-view-model--small-top-padding"]=function(){return L()&&!D().actions&&!(h==null?0:h())||J()===2&&!(Q()||D().heroImage)},l["yt-page-header-view-model--small-bottom-padding"]=function(){return R()&&!D().actions&&!(h==null?0:h())},l["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(A==null?0:A())},l["yt-page-header-view-model--display-as-sidebar"]=
C,l));
var d={},c=_.DV((d["yt-page-header-view-model__page-header-headline"]=!0,d["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var Ms;return(Ms=S())==null?void 0:Ms.allowFullWidth},d)),N=function(){var Ms;
return R()&&!((Ms=S())==null?0:Ms.allowFullWidth)},z=function(){return L()&&(!!D().heroImage||Q())&&Zj$(D())>0},f=function(){return z()&&(h==null?void 0:h())};
d={};var I=_.DV((d["yt-page-header-view-model__page-header-title"]=!0,d["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!z()},d["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return z()&&!f()},d["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=f,d["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=G,d));
d={};var iG=_.DV((d["yt-page-header-view-model__page-header-headline-image"]=!0,d["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!D().heroImage&&R()},d));
d={};var CC=_.DV((d["yt-page-header-view-model__page-header-banner-container"]=n,d["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var Ms;return(n==null?void 0:n())&&((Ms=_.M(D().banner,_.P5H))==null?void 0:Ms.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},d));
d={};var vo=_.DV((d["yt-page-header-view-model__page-header-content-metadata"]=!0,d["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=G,d));d={};var td=_.DV((d["yt-page-header-view-model__page-header-flexible-actions"]=!0,d["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!D().metadata||R()},d["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!R()},d));
d={};var GN=_.DV((d["yt-page-header-view-model__page-header-attribution"]=!0,d["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=G,d));return _.g("yt-page-header-view-model",{class:l},_.g(_.v,{cond:G,then:function(){return _.g("div",{class:"yt-page-header-view-model__page-header-background"},_.g(_.uI,{data:function(){return D().background}},{cinematicContainerViewModel:function(Ms){return _.g(_.ONh,{data:Ms.data,
topbarOffset:y})}}))}}),_.g(ydT,{condition:function(){return!(C==null||!C())},
content:function(){return _.g("div",{class:"yt-page-header-view-model__page-header-content"},_.g(_.v,{cond:function(){return(n==null?void 0:n())&&D().banner},
then:function(){return _.g("div",{class:CC},_.g(_.uI,{data:function(){return D().banner}},{imageBannerViewModel:_.bZ}))}}),_.g("div",{class:c},_.g(_.v,{cond:Q,
then:function(){return _.g(_.uI,{data:function(){var Ms;if(!(Ms=D().animatedImage)){Ms=D();if(Q()){var j3=Ms=Object.assign({},Ms),wl=J(),zN=Zj$(D()),Z7=j3.image,Lm=_.M(Z7,heg),Vg=Lm==null?void 0:Lm.avatar,v5=_.M(Vg,_.X7);if(Z7&&Vg&&v5){switch(wl){case 1:v5.avatarImageSize="AVATAR_SIZE_XL";break;case 2:v5.avatarImageSize="AVATAR_SIZE_XXL";break;default:zN<4?v5.avatarImageSize="AVATAR_SIZE_XXL":v5.avatarImageSize="AVATAR_SIZE_XXXL"}_.RO(Vg,_.X7,Object.assign({},v5));Lm.avatar=Object.assign({},Vg);_.RO(Z7,
heg,Object.assign({},Lm));j3.image=Object.assign({},Z7)}}Ms=Ms.image}return Ms}},{contentPreviewImageViewModel:function(Ms){return _.g(_.XQ,{data:Ms.data,
className:iG,imageSizeConfig:S})},
decoratedAvatarViewModel:function(Ms){return _.g(_.lX,{data:Ms.data,className:iG})}})}}),_.g(_.v,{cond:function(){return!!D().heroImage&&!N()},
then:function(){return _.g(_.uI,{data:function(){return D().heroImage}},{contentPreviewImageViewModel:function(Ms){return _.g(_.XQ,{data:Ms.data,
className:iG,imageSizeConfig:S})}})}}),_.g("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.g(_.v,{cond:function(){return!!D().heroImage&&N()},
then:function(){return _.g("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.g(_.uI,{data:function(){return D().heroImage}},{contentPreviewImageViewModel:function(Ms){return _.g(_.XQ,{data:Ms.data,
className:iG,imageSizeConfig:S})}}))}}),_.g(_.uI,{data:function(){return D().title}},{dynamicTextViewModel:function(Ms){return _.g(n95,{data:Ms.data,
className:I})}}),_.g(_.uI,{data:function(){return D().metadata}},{contentMetadataViewModel:function(Ms){return _.g(_.kd,{data:Ms.data,
layout:function(){return L()?1:0},
className:vo,isOverlay:G,useMediumText:a})}}),_.g(_.v,{cond:function(){return D().description&&!L()},
then:function(){return _.g(_.uI,{data:function(){return D().description}},{descriptionPreviewViewModel:function(Ms){return _.g(_.Fn,{data:Ms.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:G,maxLinesOverride:function(){return L()?void 0:1},
useMediumText:function(){return(b==null?void 0:b())||a()}})}})}}),_.g(_.v,{cond:function(){return D().attribution&&!R()},
then:function(){return _.g(_.uI,{data:function(){return D().attribution}},{attributionViewModel:function(Ms){return _.g(SS,{data:Ms.data,
className:GN,useMediumText:a})}})}}),_.g(_.v,{cond:function(){return D().actions&&!R()},
then:function(){return _.g(_.uI,{data:function(){return D().actions}},{flexibleActionsViewModel:function(Ms){return _.g(_.Dq,{data:Ms.data,
layout:function(){return e7N(J())},
className:td})}})}}))),_.g("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.g(_.v,{cond:function(){return D().description&&L()},
then:function(){return _.g(_.uI,{data:function(){return D().description}},{descriptionPreviewViewModel:function(Ms){return _.g(_.Fn,{data:Ms.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:G,maxLinesOverride:function(){return L()?void 0:1},
useMediumText:function(){return(b==null?void 0:b())||a()}})}})}}),_.g(_.v,{cond:function(){return D().attribution&&R()},
then:function(){return _.g(_.uI,{data:function(){return D().attribution}},{attributionViewModel:function(Ms){return _.g(SS,{data:Ms.data,
className:GN,useMediumText:a})}})}}),_.g(_.v,{cond:function(){return D().actions&&R()},
then:function(){return _.g(_.uI,{data:function(){return D().actions}},{flexibleActionsViewModel:function(Ms){return _.g(_.Dq,{data:Ms.data,
layout:function(){return e7N(J())},
className:td})}})}})),_.g("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.g(_.uI,{data:function(){return D().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Ms){return _.g(UsJ,{data:Ms.data,
isOverlay:G})}})))}}))},"Ze");
_.AdW.idomCompat=!0;_.Tt(_.w(function(l){var D=_.B(_.aw(!1,void 0,"qvRy4d")),U=D.next().value,n=D.next().value;return _.g("yt-official-card-view-model",{class:_.DV("ytOfficialCardViewModelHost",l.className),style:_.BK({"background-color":function(){var y,A=hB((y=l.data())==null?void 0:y.backgroundColor);return A?_.tu(A):void 0}})},_.g(_.uI,{data:function(){return l.data().header}},{pageHeaderViewModel:function(y){return _.g(_.AdW,{data:y.data,
noPadding:!0})}}),_.g(_.uI,{data:function(){return l.data().contents}},{horizontalShelfViewModel:function(y){return _.g(_.Pv,{data:y.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.g(_.v,{cond:U,
then:function(){return _.g("div",{class:"ytOfficialCardViewModelExpandedContent"},_.g(_.uI,{data:function(){return l.data().expandedContents}},{horizontalShelfViewModel:function(y){return _.g(_.Pv,{data:y.data,
sizing:"MINI"})}}),_.g("div",{class:"ytOfficialCardViewModelCollapseButton"},_.g(_.uI,{data:function(){return l.data().collapseButton}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
onClick:function(){n(!U())}})}})))},
else:function(){return _.g("div",{class:"ytOfficialCardViewModelExpandButton"},_.g(_.uI,{data:function(){return l.data().expandButton}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
onClick:function(){n(!U())}})}}))}}))},"$e"),"yt-official-card-view-model",{props:{data:_.C$,
className:_.C$}});var WBq=_.w(function(l){var D,U=(D=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:D();return _.g("ytw-search-friction-view-model",{class:_.DV("ytwSearchFrictionViewModelHost",l.className)},_.g("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.g("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.g(_.v,{cond:function(){return U&&l.data().darkThemeImage?l.data().darkThemeImage:l.data().image},
then:function(n){return _.g(_.rh,{data:n,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.g(_.uI,{data:function(){return l.data().overflowMenuButton}},{buttonViewModel:function(n){return _.g(_.t9,{data:n.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.g(_.BO,{text:function(){return l.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.g(_.wt,{each:function(){return l.data().bodyText||[]}},function(n){return _.g(_.BO,{text:n,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.g(_.uI,{data:function(){return l.data().actions}},{buttonViewModel:function(n){return _.g(_.t9,{data:n.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.g(_.BO,{text:function(){return l.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.g(_.BO,{text:function(){return l.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"af");
WBq.idomCompat=!0;_.Tt(WBq,"ytw-search-friction-view-model",{props:{data:_.C$,className:_.C$}});_.g8=_.w(function(l){var D=_.bP("markdown-div"),U,n=(U=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:U();_.$i(function(){var y=D.value;var A=new nm8,C=new Map(A.JSC$9379_sanitizerTable.globalAttributePolicies);C.set("style",{policyAction:4});A.JSC$9379_sanitizerTable=new mb(A.JSC$9379_sanitizerTable.allowedElements,A.JSC$9379_sanitizerTable.elementPolicies,A.JSC$9379_sanitizerTable.allowedGlobalAttributes,C,A.JSC$9379_sanitizerTable.globallyAllowedAttributePrefixes);var h=["data-time"];if(h===void 0)C=
new Set(A.JSC$9379_sanitizerTable.globallyAllowedAttributePrefixes),C.add("data-"),A.JSC$9379_sanitizerTable=new mb(A.JSC$9379_sanitizerTable.allowedElements,A.JSC$9379_sanitizerTable.elementPolicies,A.JSC$9379_sanitizerTable.allowedGlobalAttributes,A.JSC$9379_sanitizerTable.globalAttributePolicies,C);else{C=new Set(A.JSC$9379_sanitizerTable.allowedGlobalAttributes);h=_.B(h);for(var b=h.next();!b.done;b=h.next()){b=b.value;if(b.indexOf("data-")!==0)throw Error("ka`"+b);C.add(b)}A.JSC$9379_sanitizerTable=
new mb(A.JSC$9379_sanitizerTable.allowedElements,A.JSC$9379_sanitizerTable.elementPolicies,C,A.JSC$9379_sanitizerTable.globalAttributePolicies,A.JSC$9379_sanitizerTable.globallyAllowedAttributePrefixes)}C=new Set(A.JSC$9379_sanitizerTable.allowedGlobalAttributes);C.add("class");A.JSC$9379_sanitizerTable=new mb(A.JSC$9379_sanitizerTable.allowedElements,A.JSC$9379_sanitizerTable.elementPolicies,C,A.JSC$9379_sanitizerTable.globalAttributePolicies,A.JSC$9379_sanitizerTable.globallyAllowedAttributePrefixes);
_.Cz(y,_.Vc7(A.build(),aAc(l.text())));tRN(D.value)},"OZ439c");
U={};return _.g("div",null,_.g("markdown-div",{class:_.DV("ytwMarkdownDivHost",(U.ytwMarkdownDivDark=n,U.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var y;return((y=l.isSmallText)==null?void 0:y.call(l))||!1},U.ytwMarkdownDivHostWrapCodeBlocks=function(){var y;
return((y=l.wrapCodeBlocks)==null?void 0:y.call(l))||!1},U.ytwMarkdownDivHostEnableDefaultStyling=function(){var y;
return!((y=l.disableDefaultStyling)==null?0:y.call(l))},U)),
el:D}))},"cf");
_.g8.idomCompat=!0;var Blv=_.w(function(l){var D=l.imageData;var U=_.NQ(l.isInList,!1),n=function(){return U()?{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 _.g("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.g(_.v,{cond:function(){return D().image},
then:function(y){return _.g(_.rh,{data:y,alt:function(){return n().alt},
contentMode:function(){return n().contentMode},
targetWidth:function(){return n().targetWidth},
targetHeight:function(){return n().targetHeight},
className:function(){return n().className}})}}),_.g("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.g("div",{class:_.DV("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.g(_.BO,{text:function(){return D().title}})),_.g(_.wt,{each:function(){var y;
return(y=D().description)!=null?y:[]}},function(y){return _.g("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.g(uZ,{content:y}))})))},"df"),CGT=_.w(function(l){var D=l.list;
var U=function(){var n;return(n=D().items)!=null?n:[]};
return _.g("div",{class:"ytwGenAiRichTextViewModelListContent"},_.g(_.v,{cond:function(){return D().title},
then:function(n){return _.g("div",{class:_.DV("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.g(_.BO,{text:n}))}}),_.g(_.v,{cond:function(){return D().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.g("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.g(_.wt,{each:U},function(n){return _.g("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.g(uZ,{content:n,isInList:!0}))}))}}),_.g(_.v,{cond:function(){return D().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.g("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.g(_.wt,{each:U},function(n){return _.g("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.g(uZ,{content:n,isInList:!0}))}))}}),_.g(_.v,{cond:function(){return D().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.g("div",{class:"ytwGenAiRichTextViewModelImageList"},_.g(_.wt,{each:U},function(n){return _.g("div",{class:"ytwGenAiRichTextViewModelListItem"},_.g(uZ,{content:n,isInList:!0}))}))}}))},"ef"),hKH=_.w(function(l){var D=l.table;
return _.g("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.g("thead",null,_.g("tr",null,_.g(_.wt,{each:function(){var U,n;return(n=(U=D().header)==null?void 0:U.cells)!=null?n:[]}},function(U){return _.g("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.g(_.wt,{each:function(){return U.contents}},function(n){return _.g(uZ,{content:n})}))}))),_.g("tbody",null,_.g(_.wt,{each:function(){var U;
return(U=D().rows)!=null?U:[]}},function(U){return _.g("tr",null,_.g(_.wt,{each:function(){return U.cells}},function(n){return _.g("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.g(_.wt,{each:function(){return n.contents}},function(y){return _.g(uZ,{content:y})}))}))})))},"ff"),uZ=_.w(function(l){var D=l.content;
var U=_.NQ(l.isInList,!1),n=function(){var y,A;return(A=(y=D().contentBlock)==null?void 0:y.contents)!=null?A:[]};
return _.g("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.g(_.v,{cond:function(){return D().text},
then:function(y){return _.g(_.BO,{className:"ytwGenAiRichTextViewModelText",text:y})}}),_.g(_.v,{cond:function(){return D().image},
then:function(y){return _.g(Blv,{imageData:y,isInList:U})}}),_.g(_.v,{cond:function(){return D().list},
then:function(y){return _.g(CGT,{list:y})}}),_.g(_.v,{cond:function(){return D().contentBlock},
then:function(){return _.g("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.g(_.wt,{each:n},function(y){return _.g(uZ,{content:y,isInList:!1})}))}}),_.g(_.v,{cond:function(){return D().table},
then:function(y){return _.g(hKH,{table:y})}}))},"gf"),PG$=_.w(function(l){var D={};
D=_.MJ("ytwGenAiRichTextViewModelHost",(D.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.e_("search_overview_link_style")),D));return _.g("gen-ai-rich-text-view-model",{class:D},_.g(uZ,{content:function(){return l.data().content}}))},"hf");_.bCw=_.w(function(l){var D=l.data;var U=function(){var a;return((a=D().loadingUi)!=null?a:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},n=function(){return D().isLoading&&(U()==="UNSPECIFIED"||U()==="GHOST_CARD")},y=function(){return!D().isLoading},A=function(){return!!D().content&&!D().contents},C=function(){return!!D().contents},h=function(){return!!D().nextQueryButtons},b=function(){return D().isLoading&&U()==="INVISIBLE"},u=function(){var a,S;
return(S=(a=D().headerIcon)==null?void 0:a.iconType)!=null?S:""},Q=function(){var a;
return(a=D().content)!=null?a:""},G=function(){return!!D().sourcesSection},J,L=!((J=_.Jc().resolve(_.G8(_.jQ)))==null||!J()),R=_.dM(function(){var a=[],S=D().contents;
if(S)for(var d=0;d<S.length;d++){var c=_.M(S&&S[d],qAm);c&&a.push(c)}return a},void 0,"gcCsZb");
_.N1(function(){D().isLoading||_.ae("so_re",void 0,"search_overview_answer")});
return _.g("ytd-overview-answer-view-model",{class:function(){var a={};a=(a.ytdOverviewAnswerViewModelHost=!0,a.ytdOverviewAnswerViewModelDarkBackground=L&&!b(),a.ytdOverviewAnswerViewModelLightBackground=!L&&!b(),a);return _.MJ(a)}},_.g(_.v,{cond:function(){return!b()},
then:function(){return _.g(_.GZ,null,_.g("h2",null,_.g("div",{class:"ytdOverviewAnswerViewModelHeader"},_.g(_.v,{cond:u,then:function(a){return _.g("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.g(_.C0,{icon:a}))}}),_.g("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.g("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return D().headerText}),_.g("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.g(_.BO,{text:function(){return D().headerSubtext}}))))),_.g(_.v,{cond:n,
then:function(){return _.g(XCB,null)}}),_.g(_.v,{cond:y,
then:function(){return _.g(_.GZ,null,_.g(_.v,{cond:A,then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelText"},_.g(_.g8,{text:Q,isSmallText:!0}))}}),_.g(_.v,{cond:C,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelRichText"},_.g(_.wt,{each:R},function(a){return _.g(PG$,{data:a})}))}}),_.g(_.v,{cond:h,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.g(_.uI,{data:function(){return D().nextQueryButtons}},{buttonViewModel:function(a){return _.g(_.t9,{data:a.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Pv}))}}),_.g("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.g("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.g(_.v,{cond:function(){return!!_.M(D().likeButtonViewModel,_.Vw)&&!!_.M(D().dislikeButtonViewModel,_.Oi)},
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.g(_.n_,{data:function(){return _.M(D().likeButtonViewModel,_.Vw)},
disableIconAnimation:!0}),_.g(_.Uh,{data:function(){return _.M(D().dislikeButtonViewModel,_.Oi)}}))}})),_.g(_.v,{cond:function(){var a;
return(a=D().sourcesSection)==null?void 0:a.headerText},
then:function(a){return _.g("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.g(_.BO,{text:a}))}})),_.g(_.v,{cond:G,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelSources"},_.g(_.uI,{data:function(){var a;return(a=D().sourcesSection)==null?void 0:a.sourcesShelf}},{buttonViewModel:_.t9,
horizontalShelfViewModel:function(a){return _.g(_.Pv,{data:a.data,includeMargin:!0,hasPeek:!0})}}))}}),_.g(_.v,{cond:function(){return D().disclaimerText},
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.g(_.BO,{text:function(){return D().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"jf");var g9r=_.w(function(l){var D=_.sl(l,{}).data;return _.g("yt-shopping-content-line-item-view-model",{class:_.DV("ytShoppingContentLineItemViewModelHost")},_.g(_.BO,{text:function(){var U;return(U=D().text)==null?void 0:U.attributedString}}))},"kf");_.vv=_.w(function(l){l=_.sl(l,{});var D=l.data,U={};return _.g("yt-shopping-content-line-view-model",{class:_.DV("ytShoppingContentLineViewModelHost",l.className,(U.ytShoppingContentLineViewModelTruncateText=function(){return!D().wrapContent},U)),
style:_.BK({"--shopping-content-line-gap":function(){return D().itemGap?D().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return D().lineHeight?D().lineHeight+"px":void 0}})},_.g(_.wt,{each:function(){return(D().items||[]).map(function(n){return _.M(n,keH)}).filter(function(n){return!!n})}},function(n){return _.g(g9r,{data:n})}))},"lf");var u$H=_.w(function(l){var D=l.data;var U=function(){var A;return((A=D().image)==null?void 0:A.height)||48},n=function(){var A;
return((A=D().image)==null?void 0:A.width)||48},y=function(){return"width: "+n()+"px; height: "+U()+"px;"};
return _.g("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var A,C,h,b=((A=_.Jc().resolve(_.G8(_.jQ)))==null?0:A())?(C=D())==null?void 0:C.darkThemeBackgroundColor:(h=D())==null?void 0:h.lightThemeBackgroundColor;return"background-color: "+(b?_.tu(b):"")+";"},
el:_.fe(_.aT(function(){var A;return(A=D())==null?void 0:A.rendererContext}))},_.g(_.v,{cond:function(){var A,C;
return(C=(A=D().image)==null?void 0:A.image)!=null?C:D().thumbnail},
then:function(A){return _.g("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var C;return"background-color: "+(((C=D().image)==null?0:C.backgroundColor)?_.tu(D().image.backgroundColor):"")+";"+y()}},_.g(_.rh,{data:A,
height:U,width:n,style:y,alt:""}))}}),_.g("div",{class:"ytShoppingDescriptionItemViewModelText"},_.g(_.uI,{data:function(){return D().line1}},{shoppingContentLineViewModel:function(A){return _.g(_.vv,{data:A.data})}}),_.g(_.uI,{data:function(){return D().line2}},{shoppingContentLineViewModel:function(A){return _.g(_.vv,{data:A.data})}}),_.g(_.uI,{data:function(){return D().line3}},{shoppingContentLineViewModel:function(A){return _.g(_.vv,{data:A.data})}})))},"mf");var v98=_.w(function(l){var D=l.data;var U=l.active;var n=_.bP("transcript-segment-view-model");_.$i(function(){var y,A,C,h=((y=_.Jc().resolve(_.G8(_.jQ)))==null?0:y())?(A=D())==null?void 0:A.darkThemeColorPalette:(C=D())==null?void 0:C.lightThemeColorPalette;h&&(h.additiveBackground&&n.value.style.setProperty("--timestamp-active-background-color",_.tu(h.additiveBackground)),h.textSecondary&&n.value.style.setProperty("--timestamp-active-color",_.an(h.textSecondary)))},"TnVCnb");
l={};return _.g("transcript-segment-view-model",{class:_.DV("ytwTranscriptSegmentViewModelHost",(l.ytwTranscriptSegmentViewModelHostActive=U,l.ytwTranscriptSegmentViewModelHostModern=_.q("enable_timeline_view_modern_transcript")||_.q("enable_timeline_view_modern_transcript_fe"),l)),el:n},_.g(_.v,{cond:function(){var y;return(y=D())==null?void 0:y.timestamp},
then:function(y){var A={};return _.g(_.GZ,null,_.g("div",{class:_.DV("ytwTranscriptSegmentViewModelTimestamp",(A.ytwTranscriptSegmentViewModelTimestampActive=U,A)),"aria-hidden":!0},y),_.g("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var C=y().split(":").map(Number),h=_.B(C.reverse());C=h.next().value;var b=h.next().value;h=h.next().value;return _.W43({hours:h,minutes:b,seconds:C})}))}}),_.g(_.BO,{text:function(){var y,A,C;
return(C=(y=D())==null?void 0:y.attributedText)!=null?C:{content:(A=D())==null?void 0:A.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"of");var Q_v=_.w(function(l){var D=l.data;return _.g("div",{class:"videoAttributesSectionViewModelHeader"},_.g("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.g("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return D().headerTitle}),_.g(_.v,{cond:function(){return D().headerInfoButton},
then:function(){return _.g(_.uI,{data:function(){return D().headerInfoButton}},{buttonViewModel:function(U){return _.g(_.t9,{data:U.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.g(_.v,{cond:function(){return D().headerSubtitle},
then:function(){return _.g("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return D().headerSubtitle})}}))},"pf"),GNJ=_.w(function(l){function D(a){return Math.max(Math.min(a,0),u()-h())}
var U=l.data;var n;l=_.bP("div",function(a){var S=function(){Q(a.clientWidth)};
S();window.ResizeObserver&&(n=new ResizeObserver(S),n.observe(a))});
var y=_.bP("div",function(a){b(a.scrollWidth)}),A=_.B(_.aw(0,void 0,"C3XQAe")),C=A.next().value;
A=A.next().value;var h=C,b=A;A=_.B(_.aw(0,void 0,"db7y3"));C=A.next().value;A=A.next().value;var u=C,Q=A;C=_.B(_.aw(0,void 0,"RchC7"));var G=C.next().value,J=C.next().value;_.NV(function(){var a;(a=n)==null||a.disconnect()});
var L=function(){J(D(G()+u()))},R=function(){J(D(G()-u()))};
return _.g("yt-video-attributes-section-view-model",null,_.g("div",{class:"videoAttributesSectionViewModelHost"},_.g(_.v,{cond:function(){return U().headerTitle},
then:function(){return _.g(Q_v,{data:U})}}),_.g("div",{class:_.DV("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:l},_.g("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.BK({transform:function(){var a=G();_.H3("HTML_DIR")==="rtl"&&(a*=-1);return"translateX("+a+"px)"}}),
el:y},_.g(_.uI,{data:function(){return U().videoAttributeViewModels}},{videoAttributeViewModel:iWk}))),_.g(_.uI,{data:function(){return U().footerButton}},{buttonViewModel:function(a){return _.g(_.t9,{data:a.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.g(_.v,{cond:function(){return G()<0&&U().previousButton},
then:function(){return _.g("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.g(_.uI,{data:function(){return U().previousButton}},{buttonViewModel:function(a){return _.g(_.t9,{data:a.data,
onClick:L})}}))}}),_.g(_.v,{cond:function(){return G()>u()-h()&&U().nextButton},
then:function(){return _.g("div",{class:"videoAttributesSectionViewModelRightArrow"},_.g(_.uI,{data:function(){return U().nextButton}},{buttonViewModel:function(a){return _.g(_.t9,{data:a.data,
onClick:R})}}))}})))},"qf");
GNJ.idomCompat=!0;var JdT=_.w(function(l){var D=l.data;var U=l.active;var n={},y={};return _.g("timeline-item-view-model",{class:_.DV("ytwTimelineItemViewModelHost",(n.ytwTimelineItemViewModelHostChapterChild=l.chapterChild,n.ytwTimelineItemViewModelModern=_.q("enable_timeline_view_modern_transcript")||_.q("enable_timeline_view_modern_transcript_fe"),n))},_.g("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.g("div",{class:_.DV("ytwTimelineItemViewModelTimestamp",(y.ytwTimelineItemViewModelTimestampActive=
U,y))},function(){return D().timestamp})),_.g("div",{class:"ytwTimelineItemViewModelContentItems"},_.g(_.uI,{data:function(){return D().contentItems}},{transcriptSegmentViewModel:function(A){return _.g(v98,{data:A.data,
active:U})},
videoAttributesSectionViewModel:GNJ})))},"rf");var LBW=_.w(function(l){var D=l.data;l={};return _.g("timeline-chapter-view-model",{class:_.DV("ytwTimelineChapterViewModelHost")},_.g("div",{class:_.DV("ytwTimelineChapterViewModelTitle",(l.ytwTimelineChapterViewModelModern=_.q("enable_timeline_view_modern_transcript")||_.q("enable_timeline_view_modern_transcript_fe"),l))},function(){return D().title}),_.g(_.uI,{data:function(){return D().contents}},{timelineItemViewModel:function(U){return _.g(JdT,{data:U.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(U){return _.g(GNJ,{data:U.data})}}))},"sf");var qcW=_.w(function(l){var D=l.data;var U=_.bP("macro-markers-panel-item-view-model"),n=_.Pr(_.uBd,function(){var A;return(A=D().markersEngagementPanelSyncEntityKey)!=null?A:""}),y=function(){var A;
return((A=n())==null?void 0:A.activeItemIndex)===D().index};
l=_.n0(function(A){var C,h,b,u,Q;return _.P(function(G){if(G.nextAddress==1)return A.stopPropagation(),_.ZX(_.RT(A),U.value,["A".toString(),"BUTTON".toString()])?G.return():(C=_.te(D().onTap))?G.yield(_.nq(),2):G.return();h=G.yieldResult;u=(b=_.M(C,_.za))==null?void 0:b.startTimeSeconds;u===void 0||(Q=h)!=null&&Q.seekTo(u,!0);_.Kz(G)})});
return _.g("macro-markers-panel-item-view-model",{class:_.DV("ytwMacroMarkersPanelItemViewModelHost",{"is-active":y}),el:U,"on:click":l,tabindex:0,role:"button"},_.g(_.uI,{data:function(){var A;return(A=D())==null?void 0:A.item}},{timelineChapterViewModel:function(A){return _.g(LBW,{data:A.data,
active:y})},
timelineItemViewModel:function(A){return _.g(JdT,{data:A.data,active:y})},
videoAttributeViewModel:iWk,shoppingDescriptionItemViewModel:u$H}))},"tf");
qcW.idomCompat=!0;_.Tt(qcW,"macro-markers-panel-item-view-model",{props:{data:_.C$}});_.Tt(GNJ,"yt-video-attributes-section-view-model",{props:{data:_.C$}});var M3$=_.w(function(l){var D=function(){var U,n,y;return(y=(U=l.data().leadingLogoAccessibility)==null?void 0:(n=U.accessibilityData)==null?void 0:n.label)!=null?y:""};
return _.g("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.g(_.v,{cond:function(){return l.data().leadingLogo},
then:function(U){return _.g(_.rh,{className:"ytwFantasySectionHeaderViewModelLogo",data:U,alt:D})}}),_.g("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.g(_.BO,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return l.data().title}}),_.g(_.BO,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return l.data().subtitle}})),_.g(_.uI,{data:function(){return l.data().trailingButton}},{buttonViewModel:function(U){return _.g(_.t9,{data:U.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"uf");var RK5=_.w(function(l){var D={};D=_.DV("ytwFantasyTeamViewModelHost",(D.ytwFantasyTeamViewModelCompact=function(){var y;return!((y=l.compact)==null||!y.call(l))},D.ytwFantasyTeamViewModelUser=function(){return l.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},D.ytwFantasyTeamViewModelOpponent=function(){return l.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},D));
var U=function(){var y,A,C;return(C=(y=l.data().teamLogoAccessibility)==null?void 0:(A=y.accessibilityData)==null?void 0:A.label)!=null?C:""},n=_.Pr(QkN,function(){return l.data().teamEntityKey});
return _.g("ytw-fantasy-team-view-model",{class:D},_.g(_.v,{cond:function(){return l.data().teamLogo},
then:function(y){return _.g(_.rh,{className:"ytwFantasyTeamViewModelLogo",data:y,alt:U})}}),_.g("div",{class:"ytwFantasyTeamViewModelMetadata"},_.g("div",{class:"ytwFantasyTeamViewModelHeader"},_.g(_.BO,{className:"ytwFantasyTeamViewModelScore",
text:function(){var y;return(y=n())==null?void 0:y.score}}),_.g(_.C0,{icon:function(){var y;
return(y=n())==null?void 0:y.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.g(_.BO,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var y;return(y=n())==null?void 0:y.projectedScore}})),_.g(_.BO,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return l.data().primaryText}}),_.g(_.BO,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return l.data().secondaryText}}),_.g(_.BO,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return l.data().tertiaryText}})),_.g(_.BO,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var y;return(y=n())==null?void 0:y.score}}))},"vf");_.Tt(_.w(function(l){return _.g("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.g("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.g(_.uI,{data:function(){return l.data().summaryHeader}},{fantasySectionHeaderViewModel:M3$})),_.g(_.uI,{data:function(){return l.data().userTeam}},{fantasyTeamViewModel:RK5}),_.g(_.uI,{data:function(){return l.data().opponentTeam}},{fantasyTeamViewModel:RK5}))},"wf"),"fantasy-league-summary-view-model",{props:{data:_.C$}});var ZC5=_.w(function(l){var D=_.sl(l,{shape:{},useCustomTabRenderable:!1}),U=D.shape;D=D.useCustomTabRenderable;var n=l.customTabRenderable,y=function(){return U().disabled},A=function(){return U().selected},C=function(){return U().title},h=function(){return U().icon},b=_.bP("yt-tab-shape");
l=_.n0(function(G){var J;if(!y()&&((J=U().aTagConfig)==null?0:J.onclick))U().aTagConfig.onclick(G);return!1});
var u=_.n0(function(G){if(G.key==="Enter"||G.key==="ArrowUp"||G.key==="ArrowDown")G.preventDefault(),b.value.click();return!1}),Q={};
return _.g("yt-tab-shape",{class:_.DV("yt-tab-shape",function(){return U().className},(Q["yt-tab-shape__tab--last-tab"]=function(){return U().isLastTab},Q["yt-tab-shape--host-disabled"]=y,Q["yt-tab-shape--host-clickable"]=!n,Q)),
role:n?void 0:"tab","aria-selected":A!=null?A:!1,"aria-disabled":y,tabindex:n?void 0:0,"on:click":l,"on:keydown":u,el:b,"tab-identifier":function(){return U().identifier},
"tab-title":C},_.g(_.v,{cond:D,then:function(){return n()},
else:function(){var G={},J={};return _.g(_.GZ,null,_.g("div",{class:_.DV("yt-tab-shape__tab",(G["yt-tab-shape__tab--tab-selected"]=A,G))},_.g(_.v,{cond:h,then:function(L){return _.g(_.C0,{className:"yt-tab-shape__tab-icon",icon:function(){return L().iconType}})}}),C),_.g("div",{class:_.DV("yt-tab-shape__tab-bar",(J["yt-tab-shape__tab-bar--tab-bar-selected"]=A,J))}))}}))},"xf");
ZC5.idomCompat={callbacks:{customTabRenderable:!0}};_.ms2=_.w(function(l){var D=l.shape;l=_.B(_.aw(48,void 0,"nDAx4"));var U=l.next().value,n=l.next().value;l=_.B(_.aw(0,void 0,"GCgjqb"));var y=l.next().value,A=l.next().value,C=function(){return D().tabs},h=_.bP("yt-tab-group-shape"),b=function(){var J,L;
return(L=(J=C())==null?void 0:J.findIndex(function(R){return R.selected}))!=null?L:-1};
l=_.B(_.aw(!1,void 0,"SU01tf"));var u=l.next().value,Q=l.next().value,G=function(){u()||_.Tn.addJob(function(){Q(!0)},0)};
_.$i(function(){var J=b(),L=_.Tn.addJob(function(){var R,a=((R=h.value)==null?void 0:R.querySelectorAll("yt-tab-shape"))||[],S;n(((S=J>-1?a[J]:void 0)==null?void 0:S.getBoundingClientRect().width)||0);for(S=R=0;S<J;S++)R+=a[S].offsetWidth+24;_.H3("HTML_DIR")==="rtl"&&(R=-R);A(R);G()},8,0);
_.NV(function(){_.Tn.cancelJob(L)})},"PMwgb");
l={};return _.g("yt-tab-group-shape",{class:_.DV("tabGroupShapeHost",(l.tabGroupShapeOverflowHidden=function(){return D().isOverflowHidden},l)),
el:h},_.g(_.v,{cond:C,then:function(J){return _.g(_.GZ,null,_.g("div",{class:"tabGroupShapeTabs",role:"tablist"},_.g(_.wt,{each:J},function(L,R){return _.g(ZC5,{shape:function(){return Object.assign({},L,{isLastTab:R()===J().length-1})},
customTabRenderable:L.customTabRenderable,useCustomTabRenderable:!!L.customTabRenderable})})),_.g(eK8,{width:U,
sliderOffset:y,enableTransition:u}))}}))},"zf");
_.ms2.idomCompat=!0;var eK8=_.w(function(l){var D=_.NQ(l.sliderOffset,0),U=l.width,n=l.enableTransition;l={};return _.g("div",{class:_.DV("tabGroupShapeSlider",(l.tabGroupShapeSliderTransition=function(){return n()},l)),
style:_.BK({width:function(){return U()+"px"},
transform:function(){return"translateX("+D()+"px)"}})})},"Af");var a9H=_.w(function(l){var D=function(){var A,C,h;return(h=(A=l.data().playerLogoAccessibility)==null?void 0:(C=A.accessibilityData)==null?void 0:C.label)!=null?h:""},U=_.Pr(GJs,function(){return l.data().playerEntityKey}),n={};
n=_.DV("ytwFantasyPlayerViewModelHost",(n.ytwFantasyPlayerViewModelPlaying=function(){var A;return!((A=U())==null||!A.isPlayerPlaying)},n.ytwFantasyPlayerViewModelOnField=function(){var A;
return((A=U())==null?void 0:A.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},n.ytwFantasyPlayerViewModelRedZone=function(){var A;
return((A=U())==null?void 0:A.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},n));
var y=function(){var A,C,h,b=((A=_.Jc().resolve(_.G8(_.jQ)))==null?0:A())?(C=l.data().playerLogoBackgroundColor)==null?void 0:C.darkTheme:(h=l.data().playerLogoBackgroundColor)==null?void 0:h.lightTheme;return b===void 0?"":_.tu(b)};
return _.g("ytw-fantasy-player-view-model",{class:n},_.g(_.v,{cond:function(){return l.data().playerLogo},
then:function(A){return _.g("div",{class:"ytwFantasyPlayerViewModelLogo"},_.g("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.g(_.rh,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.BK({"background-color":y}),data:A,alt:D})),_.g("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.g(_.C0,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.g("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.g("div",{class:"ytwFantasyPlayerViewModelHeader"},_.g(_.BO,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var A;return(A=l.data())==null?void 0:A.playerNameText}}),_.g(_.BO,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var A;return(A=l.data())==null?void 0:A.playerDescriptionText}})),_.g("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.g(_.BO,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=U())==null?void 0:A.gamePeriodText}}),_.g(_.BO,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=l.data())==null?void 0:A.opponentTeamText}}),_.g(_.BO,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=U())==null?void 0:A.gameStatusText}}),_.g(_.BO,{className:_.DV("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var A;return(A=U())==null?void 0:A.playerStatusText}})),_.g("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.g(_.BO,{text:function(){var A;
return(A=U())==null?void 0:A.playerStatsText}}))),_.g(_.BO,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var A;return(A=U())==null?void 0:A.fantasyScore}}))},"Bf");var t3$=_.w(function(l){return _.g("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.g(_.v,{cond:function(){return l.data().players},
then:function(D){return _.g(_.uI,{data:D},{fantasyPlayerViewModel:a9H})}}))},"Cf");var XoT=_.w(function(l){var D=_.B(_.WK(function(){var y;return(y=l.data().selectedTabIdentifierKey)!=null?y:""})),U=D.next().value,n=D.next().value;
_.$g(function(){var y;(y=l.setSelectedTabSignal)==null||y.call(l,U)});
return _.g("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.g("div",{class:"ytTabbedViewModelTabGroup"},_.g(_.ms2,{shape:function(){var y=l.data(),A=[],C={tabs:A};if(!y.tabs)return C;y=_.B(y.tabs);for(var h=y.next(),b={};!h.done;b={tabViewModel:void 0},h=y.next())if(b.tabViewModel=_.M(h.value,xP1),b.tabViewModel){var u=h=void 0;A.push({aTagConfig:{onclick:function(Q){return function(){var G;n((G=Q.tabViewModel.tabIdentifier)!=null?G:"")}}(b)},
identifier:b.tabViewModel.tabIdentifier,selected:U()===b.tabViewModel.tabIdentifier,title:(u=(h=b.tabViewModel.title)==null?void 0:h.content)!=null?u:""})}return C}})),_.g(_.uI,{data:function(){var y,A=_.B((y=l.data().tabs)!=null?y:[]);
for(y=A.next();!y.done;y=A.next())if((y=_.M(y.value,xP1))&&y.tabIdentifier===U())return y.content}},{fantasyRosterViewModel:t3$}))},"Ef");_.Tt(_.w(function(l){var D=_.B(STl()),U=D.next().value,n=D.next().value;return _.g("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.g(_.BO,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return l.data().title}}),_.g(_.v,{cond:function(){return l.data().tabbedViewModel},
then:function(y){return _.g(_.uI,{data:y},{tabbedViewModel:function(A){return _.g(XoT,{data:A.data,setSelectedTabSignal:n})}})}}),_.g(_.v,{cond:function(){var y,A=(y=_.M(l.data().tabbedViewModel,jY7))==null?void 0:y.tabs;
y=_.M(A==null?void 0:A[0],xP1);A=_.M(A==null?void 0:A[1],xP1);var C=y==null?void 0:y.tabIdentifier;if(U()===C){var h,b;if(!((h=_.M(y==null?void 0:y.content,Ie7))==null?0:(b=h.players)==null?0:b.length))return l.data().noUserTeamPlayersText}else{var u,Q;if(!((u=_.M(A==null?void 0:A.content,Ie7))==null?0:(Q=u.players)==null?0:Q.length))return l.data().noOpponentTeamPlayersText}},
then:function(y){return _.g(_.BO,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:y})}}))},"Ff"),"ytw-fantasy-matchup-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){return _.g("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.g(_.BO,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return l.data().title}}),_.g(_.v,{cond:function(){return l.data().matchupTeamPairs},
then:function(D){return _.g(_.wt,{each:D,keyBy:"INDEX"},function(U){return _.g("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.g(_.uI,{data:function(){return[U().firstTeam,U().secondTeam]}},{fantasyTeamViewModel:function(n){return _.g(RK5,{data:n.data,
compact:!0})}}))})}}))},"Gf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=function(){var y,A,C;return(C=(y=l.data().userLogoAccessibility)==null?void 0:(A=y.accessibilityData)==null?void 0:A.label)!=null?C:""},U=function(){var y,A,C;
return(C=(y=l.data().opponentLogoAccessibility)==null?void 0:(A=y.accessibilityData)==null?void 0:A.label)!=null?C:""},n=_.Pr(vcB,function(){return l.data().entityKey});
return _.g("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.g("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.g(_.v,{cond:function(){return l.data().userLogo},
then:function(y){return _.g(_.rh,{className:"ytwFantasyWinProbabilityViewModelLogo",data:y,alt:D})}}),_.g("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.g(_.BO,{text:function(){return l.data().title}})),_.g(_.v,{cond:function(){return l.data().opponentLogo},
then:function(y){return _.g(_.rh,{className:"ytwFantasyWinProbabilityViewModelLogo",data:y,alt:U})}})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.g("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.g(_.BO,{text:function(){var y;
return(y=n())==null?void 0:y.userWinNumberLabel}})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.g("div",{class:_.DV("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.BK({flex:function(){var y,A;return(A=(y=n())==null?void 0:y.userWinNumber)!=null?A:50}})}),_.g("div",{class:_.DV("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.BK({flex:function(){var y,A;return(A=(y=n())==null?void 0:y.opponentWinNumber)!=null?A:50}})})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.g(_.BO,{text:function(){var y;
return(y=n())==null?void 0:y.opponentWinNumberLabel}}))))},"Hf"),"fantasy-win-probability-view-model",{props:{data:_.C$}});var ScP={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},kNq=_.w(function(l){return _.g(_.uI,{data:l.button},{buttonViewModel:function(D){return _.g(_.t9,{data:D.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"If"),dsq=_.w(function(l){return _.g("ytd-backstage-locked-post-view-model",{class:_.DV("ytdBackstageLockedPostViewModelHost",l.className)},_.g("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.g("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.g(_.uI,
{data:function(){return l.data().authorAvatar}},{decoratedAvatarViewModel:_.lX})),_.g("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.g("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.g(_.BO,{text:function(){return l.data().authorText}})),_.g("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.g(_.BO,{text:function(){return l.data().publishedTimeText}}),_.g(_.uI,{data:function(){return l.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(D){return _.g(KD7,
{data:D.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.g("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.g(_.BO,{text:function(){return l.data().contentText}})),_.g(_.rt,null,_.g(_.F2,{when:function(){return l.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.g("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.g(_.rh,{data:ScP,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.g(_.BO,{text:function(){return l.data().lockedText}}))}),_.g(_.F2,{when:function(){return l.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.g("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.g("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.g(_.rh,{data:ScP,
alt:""})),_.g(_.BO,{text:function(){return l.data().lockedText}}))})),_.g("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.g(kNq,{button:function(){return l.data().likeButton}}),_.g("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return l.data().voteCountA11y}},_.g(_.BO,{text:function(){return l.data().voteCount}})),_.g(kNq,{button:function(){return l.data().dislikeButton}}),_.g(kNq,{button:function(){return l.data().commentButton}}),_.g("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return l.data().commentCountA11y}},_.g(_.BO,{text:function(){return l.data().commentCount}}))))},"Jf");
dsq.idomCompat=!0;_.Tt(dsq,"ytd-backstage-locked-post-view-model",{props:{data:_.C$,className:_.C$}});_.RL("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var QO=function(){var l=_.p.apply(this,arguments)||this;l.darkerPanels=_.q("web_watch_darker_panels");l.commentsHidePanelButton=!1;l.isWatchGrid=!1;l.continuationShowButton=!1;l.isSearch=!1;l.isConstrainedList=!1;l.isWatch=!1;l.eligibleToSwitchToGrid=!1;l.useBigThumbs=!1;l.notSticky=!1;l.epRestyle=!1;l.isCarouselInFeed=!0;l.topSpacingZero=!1;l.continuationIsInitialLoad=!0;l.enableSqueezebackPanels=_.q("web_shorts_enable_squeezeback_panels");l.enableAnchoredPanel=_.q("desktop_shorts_v2_anchored_panel");
l.mastheadHeight=0;l.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};l.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return l};
_.Z(QO,_.p);_.W=QO.prototype;_.W.updateLockupContainerTypes=function(l){if(this.eligibleToSwitchToGrid){var D;(D=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||D.forEach(function(U){U.containerType=l})}};
_.W.getItemsPath=function(){return"data.contents"};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.W.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.q("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.q("kevlar_low_priority_continuation")}}};
_.W.created=function(){};
_.W.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.W.handleIntersect=function(l){this.notSticky=l[0].intersectionRatio===1};
_.W.attached=function(){var l=this;if(_.q("web_fix_sticky_playlist_header_v2")){var D=_.q("web_item_section_sticky_header_use_scroll_as_fallback");D||document.addEventListener("scroll",_.CY(this,this.updateHeaderState));var U;this.mastheadHeight=((U=document.querySelector("ytd-masthead"))==null?void 0:U.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(n){l.handleIntersect(n)},{rootMargin:"-"+
(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):D&&document.addEventListener("scroll",_.CY(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){l.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))}};
_.W.detached=function(){if(_.q("web_fix_sticky_playlist_header_v2")){document.removeEventListener("scroll",_.CY(this,this.updateHeaderState));var l;(l=this.intersectionObserver)==null||l.disconnect();var D;(D=this.resizeObserver)==null||D.disconnect()}};
_.W.updated=function(l){l.has("data")&&_.q("web_fix_sticky_playlist_header_v2")&&this.updateHeaderState()};
_.W.dispatchChipBarIsSticky=function(){_.q("web_fix_sticky_playlist_header_v2")&&this.ytdReduxBehavior.dispatch(n4m(!this.notSticky))};
_.W.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var l=_.iJ(this.hostElement).querySelector("ytd-comments-header-renderer");l&&(l.hidePanelButton=this.commentsHidePanelButton)}};
_.W.onRetrieveLocation=function(l,D){this.containsComments()&&(this.firstCommentsLoaded=D.hasComments=!0)};
_.W.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.W.onLoadReloadContinuation=function(l,D){var U=this;l.stopPropagation();this.isReloading=!0;_.O9(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(n){var y=_.Jc().resolve(_.GI);n=D(n);y.postData(n).then(function(A){U.onReloadContinuationData(A)})}})};
_.W.onReloadContinuationData=function(l){if(l=this.get("response.continuationContents.itemSectionContinuation",l)||this.get("response.contents.itemSectionRenderer",l)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",l)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",l))this.set("data.contents",l.contents||l.results),l.header&&this.set("data.header",l.header),this.set("data.continuations",
l.continuations||[]);this.isReloading=!1};
_.W.computeContentsClass=function(l){return l?"reloading":""};
_.W.computeSectionIdentifier=function(l){return l==null?void 0:l.sectionIdentifier};
_.W.computeFitContainer=function(l){return(l==null?void 0:l.sectionIdentifier)==="youchat-item-section"};
_.W.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.q("kevlar_disable_comments_auto_load")};
_.W.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.W.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.W.computeHasDestinationShelfRenderer=function(l){var D,U;return!!(l==null?0:(D=l.contents)==null?0:(U=D[0])==null?0:U.destinationShelfRenderer)};
_.W.computeHasSectionGroupViewModel=function(l){var D,U;return!!(l==null?0:(D=l.contents)==null?0:(U=D[0])==null?0:U.sectionGroupViewModel)};
_.W.computeHasQrCodeRenderer=function(l){var D,U;return!!(l==null?0:(D=l.contents)==null?0:(U=D[0])==null?0:U.qrCodeRenderer)};
_.W.computeStaticCommentsHeader=function(l){return l&&this.containsComments()};
_.W.computeEpRestyle=function(l){return _.q("web_ep_restyling")&&l&&this.containsComments()};
_.W.computeIsContinuationCommentSection=function(l){return(l==null?void 0:l.targetId)==="shorts-engagement-panel-comments-section"||(l==null?void 0:l.targetId)==="comments-section"||(l==null?void 0:l.targetId)==="engagement-panel-comments-section"};
_.W.computeSuppressPaddingDisclaimer=function(){var l,D,U,n;return!!((l=this.data)==null?0:(D=l.contents)==null?0:(U=D[0])==null?0:(n=U.productListHeaderRenderer)==null?0:n.suppressPaddingDisclaimer)};
_.W.computeHeaderStyle=function(l){switch(l==null?void 0:l.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.W.dataChanged=function(){this.firstCommentsLoaded=!1};
_.W.observeDataContentsLength=function(){var l,D;((l=this.data)==null?0:(D=l.contents)==null?0:D.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.W.onYtDismissibleItemDismissedChange=function(l){this._setItemDismissed(l.type==="yt-dismissible-item-dismissed")};
_.W.triggerContinuations=function(){for(var l=_.iJ(this.hostElement).querySelector("#continuations").children,D=0;D<l.length;D++)l[D].trigger()};
_.W.triggerInitialContinuations=function(){for(var l=_.iJ(this.hostElement).querySelector("#continuations").children,D=0;D<l.length;D++)l[D].triggerIfNotPreviouslyTriggered()};
_.W.handleYtItemSectionContinuation=function(l,D){var U;D&&((U=this.data)==null?void 0:U.sectionIdentifier)!==D||(this.set("data.continuations",[l]),this.triggerContinuations())};
_.W.handleYtItemSectionReplace=function(l,D){var U;D&&((U=this.data)==null?void 0:U.sectionIdentifier)!==D||(this.set("data.contents",l),this.set("data.continuations",[]))};
_.W.computeUseHeightHack=function(l){return l&&!_.q("kevlar_disable_height_hack")};
_.W.computeTopSpacingZero=function(l){return l};
_.W.continuationShowButtonChanged=function(){var l=_.iJ(this.hostElement).querySelector("ytd-continuation-item-renderer");l&&(l.showButton=this.continuationShowButton)};
_.W.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("data-changed",this.data))};
_.QP.Object.defineProperties(QO.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.q("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.q("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.q("web_fix_sticky_playlist_header_v2")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return!!((l=this.data)==null?0:(D=l.contents)==null?0:(U=D[0])==null?0:U.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n,y,A,C;return!!((l=this.data)==null?0:(D=l.contents)==null?0:(U=D[0])==null?0:(n=U.shelfRenderer)==null?0:(y=n.content)==null?0:(A=y.gridRenderer)==null?0:(C=A.targetId)==null?0:C.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return!!((l=this.data)==null?0:(D=l.contents)==null?0:(U=D[0])==null?0:U.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return!!((l=this.data)==null?0:(D=l.contents)==null?0:(U=D[0])==null?0:U.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.e_("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.q("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.q("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
QO.prototype.dataChangedForBinding=QO.prototype.dataChangedForBinding;QO.prototype.continuationShowButtonChanged=QO.prototype.continuationShowButtonChanged;QO.prototype.onYtDismissibleItemDismissedChange=QO.prototype.onYtDismissibleItemDismissedChange;QO.prototype.observeDataContentsLength=QO.prototype.observeDataContentsLength;QO.prototype.dataChanged=QO.prototype.dataChanged;QO.prototype.onServiceRequestCompleted=QO.prototype.onServiceRequestCompleted;QO.prototype.onLoadReloadContinuation=QO.prototype.onLoadReloadContinuation;
QO.prototype.onRetrieveLocation=QO.prototype.onRetrieveLocation;QO.prototype.commentsHidePanelButtonChanged=QO.prototype.commentsHidePanelButtonChanged;QO.prototype.dispatchChipBarIsSticky=QO.prototype.dispatchChipBarIsSticky;QO.prototype.updateLockupContainerTypes=QO.prototype.updateLockupContainerTypes;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],QO.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Mn.YtLazyListBehavior),_.T("design:type",Object)],QO.prototype,"ytLazyListBehavior",void 0);_.E([_.m(_.Qa.YtNextContinuationBehavior),_.T("design:type",Object)],QO.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.m(_.vf),_.T("design:type",Object)],QO.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],QO.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],QO.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],QO.prototype,"darkerPanels",void 0);_.E([_.K(),_.T("design:type",Object)],QO.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Boolean)],QO.prototype,"engagementPanel",void 0);_.E([_.K(),_.T("design:type",Object)],QO.prototype,"commentsHidePanelButton",void 0);_.E([_.K(),_.T("design:type",Object)],QO.prototype,"isWatchGrid",void 0);_.E([_.K(),_.T("design:type",Object)],QO.prototype,"continuationShowButton",void 0);_.E([_.K({computed:"computeIsContinuationCommentSection(data)"}),_.T("design:type",Boolean)],QO.prototype,"continuationIsCommentsSection",void 0);
_.E([_.K({value:!0}),_.T("design:type",Boolean)],QO.prototype,"autoFill",void 0);_.E([_.K(),_.T("design:type",Boolean)],QO.prototype,"continuationDisablePrescanVisibility",void 0);_.E([_.K(),_.T("design:type",Boolean)],QO.prototype,"isReloading",void 0);_.E([_.K(),_.T("design:type",Object)],QO.prototype,"isSearch",void 0);_.E([_.K(),_.T("design:type",Object)],QO.prototype,"isConstrainedList",void 0);_.E([_.K(),_.T("design:type",Object)],QO.prototype,"isWatch",void 0);
_.E([_.K(),_.T("design:type",Object)],QO.prototype,"eligibleToSwitchToGrid",void 0);_.E([_.K(),_.T("design:type",Object)],QO.prototype,"useBigThumbs",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],QO.prototype,"notSticky",void 0);_.E([_.K({selector:_.XE,reflectToAttribute:!0}),_.T("design:type",Object)],QO.prototype,"isGridViewEnabled",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.T("design:type",Object)],QO.prototype,"epRestyle",void 0);_.E([_.t("isWatch"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],QO.prototype,"hideShortsShelfHeader",null);_.E([_.t("isSearch","isWatch"),_.T("design:type",String),_.T("design:paramtypes",[])],QO.prototype,"thumbnailWidth",null);
_.E([_.t("isSearch","containerWidth"),_.T("design:type",Object),_.T("design:paramtypes",[])],QO.prototype,"thumbnailTargetWidth",null);_.E([_.t("isSearch","isWatch","useBigThumbs"),_.T("design:type",String),_.T("design:paramtypes",[])],QO.prototype,"sizing",null);_.E([_.t("isWatch","isGridViewEnabled","useBigThumbs","data"),_.K({reflectToAttribute:!0}),_.T("design:type",Number),_.T("design:paramtypes",[])],QO.prototype,"lockupContainerType",null);
_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],QO.prototype,"hasHeader",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],QO.prototype,"expFixPlaylistHeader",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],QO.prototype,"expFixPlaylistHeaderV2",null);
_.E([_.Pg("lockupContainerType","data"),_.T("design:type",Function),_.T("design:paramtypes",[Number]),_.T("design:returntype")],QO.prototype,"updateLockupContainerTypes",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],QO.prototype,"pageSubtype",void 0);_.E([_.K(),_.T("design:type",Number)],QO.prototype,"containerWidth",void 0);_.E([_.K(),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],QO.prototype,"isPlaylist",null);
_.E([_.K(),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],QO.prototype,"isClipList",null);_.E([_.K(),_.T("design:type",Object)],QO.prototype,"isCarouselInFeed",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],QO.prototype,"isPlaylistVideoContainer",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],QO.prototype,"isSearchFrictionPage",null);
_.E([_.K({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.T("design:type",Boolean)],QO.prototype,"useHeightHack",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.T("design:type",Object)],QO.prototype,"topSpacingZero",void 0);_.E([_.K({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.T("design:type",Boolean)],QO.prototype,"showButton",void 0);
_.E([_.K(),_.T("design:type",Boolean)],QO.prototype,"firstCommentsLoaded",void 0);_.E([_.K(),_.T("design:type",Object)],QO.prototype,"continuationIsInitialLoad",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0}),_.T("design:type",Boolean)],QO.prototype,"itemDismissed",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.T("design:type",String)],QO.prototype,"sectionIdentifier",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.T("design:type",String)],QO.prototype,"fitContainer",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.T("design:type",Boolean)],QO.prototype,"hasDestinationShelfRenderer",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.T("design:type",Boolean)],QO.prototype,"staticCommentsHeader",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],QO.prototype,"enableSqueezebackPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],QO.prototype,"enableAnchoredPanel",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.T("design:type",Boolean)],QO.prototype,"hasSectionGroupViewModel",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.T("design:type",Boolean)],QO.prototype,"hasQrCodeRenderer",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.T("design:type",Boolean)],QO.prototype,"suppressDisclaimerSeparator",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.T("design:type",String)],QO.prototype,"headerStyle",void 0);
_.E([_.t("isSearch","isWatch","useBigThumbs"),_.T("design:type",Object),_.T("design:paramtypes",[])],QO.prototype,"lockupExperiments",null);_.E([_.t("isSearch"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],QO.prototype,"typographyBump",null);_.E([_.gP("#header"),_.T("design:type",HTMLElement)],QO.prototype,"header",void 0);_.E([_.Pg("notSticky"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QO.prototype,"dispatchChipBarIsSticky",null);
_.E([_.Pg("commentsHidePanelButton"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QO.prototype,"commentsHidePanelButtonChanged",null);_.E([_.hj("yt-retrieve-location"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],QO.prototype,"onRetrieveLocation",null);
_.E([_.hj("yt-load-reload-continuation"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Function]),_.T("design:returntype")],QO.prototype,"onLoadReloadContinuation",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QO.prototype,"onServiceRequestCompleted",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QO.prototype,"dataChanged",null);
_.E([_.GY("data.contents.length"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QO.prototype,"observeDataContentsLength",null);_.E([_.hj("yt-dismissible-item-dismissed"),_.hj("yt-dismissible-item-undismissed"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],QO.prototype,"onYtDismissibleItemDismissedChange",null);
_.E([_.Pg("continuationShowButton"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QO.prototype,"continuationShowButtonChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QO.prototype,"dataChangedForBinding",null);_.E([_.x({is:"ytd-item-section-renderer",disableElementRegistration:!0})],QO);
_.r(QO,"ytd-item-section-renderer",function(){if(obH!==void 0)return obH;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return obH=l},{mode:1});var KB8;var K33=_.$B(_.C3("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var cd$={},duG=(cd$[0]={title:_.H6(_.C3("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.H6(_.C3("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.To("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},cd$[1]={title:_.H6(_.C3("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.To("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},cd$);_.RL("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var GD=function(){var l=_.p.apply(this,arguments)||this;l.allVideosCount=0;l.allPlaylistCount=0;l.isOnline=!1;l.shouldRenderDownloadsBanner=!1;l.shouldRenderDownloadsBannerUpsell=!1;l.hasOptedIntoSmartDownloads=!1;l.areAllSmartDownloadsDeleted=!1;l.smartDownloadsCompleted=!1;return l};
_.Z(GD,_.p);GD.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
GD.prototype.attached=function(){this.downloadsToRenderChanged()};
GD.prototype.detached=function(){this.set("renderableData",{})};
GD.prototype.downloadsToRenderChanged=function(){var l=_.EB().getState().entities,D=_.Z1(l),U=_.q("kevlar_playlist_dl_page_killswitch")?XON(l):_.es(l),n=_.MyG(l),y=_.mOC(l),A=_.vc(D);l=_.mF(l);this.set("renderableData",pCN(U,D,n,y,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,A,l))};
GD.prototype.downloadsToRenderChanged=GD.prototype.downloadsToRenderChanged;_.E([_.m(_.l5),_.T("design:type",Object)],GD.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],GD.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],GD.prototype,"renderableData",void 0);_.E([_.K({selector:_.zZg}),_.T("design:type",Object)],GD.prototype,"allVideosCount",void 0);_.E([_.K({selector:vIN}),_.T("design:type",Object)],GD.prototype,"allPlaylistCount",void 0);_.E([_.K({selector:_.kB}),_.T("design:type",Object)],GD.prototype,"isOnline",void 0);_.E([_.K({selector:_.I8g}),_.T("design:type",Object)],GD.prototype,"shouldRenderDownloadsBanner",void 0);
_.E([_.K({selector:_.Vy3}),_.T("design:type",Object)],GD.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.K({selector:_.H$$}),_.T("design:type",Object)],GD.prototype,"hasOptedIntoSmartDownloads",void 0);_.E([_.K({selector:_.Y03}),_.T("design:type",Object)],GD.prototype,"areAllSmartDownloadsDeleted",void 0);_.E([_.K({selector:O$s}),_.T("design:type",Object)],GD.prototype,"smartDownloadsCompleted",void 0);
_.E([_.GY("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],GD.prototype,"downloadsToRenderChanged",null);_.E([_.x({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],GD);
_.r(GD,"ytd-offline-item-section-renderer",function(){if(KB8!==void 0)return KB8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return KB8=l},
{mode:1});var pow;var xsJ;var Jw=function(){return _.p.apply(this,arguments)||this};
_.Z(Jw,_.p);
Jw.prototype.onDataChanged=function(){if(this.JSC$16928_lastData){var l=this.getFilterClass(this.JSC$16928_lastData.status);l&&this.hostElement.classList.remove(l)}var D;(l=this.getFilterClass((D=this.data)==null?void 0:D.status))&&this.hostElement.classList.add(l);l==="selected"?_.iJ(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.iJ(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");l==="disabled"?_.iJ(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.iJ(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16928_lastData=this.data};
Jw.prototype.getFilterClass=function(l){switch(l){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Jw.prototype.onDataChanged=Jw.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Jw.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Jw.prototype,"onDataChanged",null);_.E([_.x({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Jw);
_.r(Jw,"ytd-search-filter-renderer",function(){if(xsJ!==void 0)return xsJ;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return xsJ=l},{mode:_.Vj("kevlar_poly_si_batch_j075")?1:2});var L9=function(){return _.p.apply(this,arguments)||this};
_.Z(L9,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],L9.prototype,"data",void 0);_.E([_.x({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],L9);
_.r(L9,"ytd-search-filter-group-renderer",function(){if(pow!==void 0)return pow;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return pow=l},{mode:_.Vj("kevlar_poly_si_batch_j075")?1:2});var j_W;var qW=function(){return _.p.apply(this,arguments)||this};
_.Z(qW,_.p);qW.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Mf());this.isCollapsed=!this.isCollapsed};
qW.prototype.navigateToAboutTheseResultsPage=function(){var l=_.rT("https://www.youtube.com/howyoutubeworks/product-features/search/");l?_.DY(window,l,"_blank"):_.ll(Error("Uh"))};
qW.prototype.dataChanged=function(){this.isCollapsed=!0};
qW.prototype.computeShowBottomBorder=function(){var l,D,U;return!!((l=this.data)==null?0:(D=l.button)==null?0:D.toggleButtonRenderer)||!((U=this.data)==null||!U.aboutTheseResultsButton)};
qW.prototype.dataChanged=qW.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],qW.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.T("design:type",Boolean)],qW.prototype,"showBottomBorder",void 0);_.E([_.K(),_.T("design:type",Boolean)],qW.prototype,"renderCollapsibleMenu",void 0);
_.E([_.K(),_.T("design:type",Boolean)],qW.prototype,"isCollapsed",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],qW.prototype,"dataChanged",null);_.E([_.x({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],qW);
_.r(qW,"ytd-search-sub-menu-renderer",function(){if(j_W!==void 0)return j_W;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return j_W=l},{mode:1});var FBW;var o9q=new _.A7("SECTION_LIST_RENDERER_TOKEN");var woH;var MW=function(){return _.p.apply(this,arguments)||this};
_.Z(MW,_.p);MW.prototype.computeStyle=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],MW.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.T("design:type",String)],MW.prototype,"headerStyle",void 0);_.E([_.x({is:"ytd-text-header-renderer",disableElementRegistration:!0})],MW);
_.r(MW,"ytd-text-header-renderer",function(){if(woH!==void 0)return woH;var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return woH=l},{mode:1});var rdH;var Rt=function(){return _.p.apply(this,arguments)||this};
_.Z(Rt,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Rt.prototype,"data",void 0);_.E([_.x({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Rt);
_.r(Rt,"ytd-minor-moment-header-renderer",function(){if(rdH!==void 0)return rdH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return rdH=l},{mode:1});var zKT;var Za=function(){return _.p.apply(this,arguments)||this};
_.Z(Za,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Za.prototype,"data",void 0);_.E([_.x({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Za);
_.r(Za,"ytd-minor-moment-setting-alert-renderer",function(){if(zKT!==void 0)return zKT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return zKT=l},{mode:1});var f9r;var $s$;var ej=function(){var l=_.p.apply(this,arguments)||this;l.booleanSettingById=!1;l.smartDownloadsEnabledVE=_.UE(128287);l.smartDownloadsDisabledVE=_.UE(128286);l.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return l};
_.Z(ej,_.p);_.W=ej.prototype;_.W.attachSmartDownloadsSettingVes=function(){var l;this.activeVeForLogging||((l=this.data)==null?void 0:l.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.cq(_.he(),this.smartDownloadsEnabledVE),_.cq(_.he(),this.smartDownloadsDisabledVE))};
_.W.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.O9(this.hostElement,"yt-settings-switch-ready")};
_.W.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.W.onSwitchChange=function(l){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(l=_.NN(l).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.q("kevlar_settings_switch_resolve_command_killswitch")?_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(l)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.W.handleUpdateSettingsSwitch=function(l){(l=_.M(l,uHz))&&this.data&&this.data.id===l.id&&this.set("data.enabled",!!l.enabled)};
_.W.onToggleSettingsSwitch=function(l,D){this.data&&this.data.id===l&&this.set("data.enabled",D!=null?D:!this.data.enabled)};
_.W.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.RZ.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.W.maybeLogSmartDownloadsSettingVisibility=function(){var l=_.t6(),D;l&&((D=this.data)==null?void 0:D.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.wj(l,[this.smartDownloadsEnabledVE]),_.rj(l,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.wj(l,[this.smartDownloadsDisabledVE]),_.rj(l,[this.smartDownloadsEnabledVE])))};
_.W.maybeLogSmartDownloadsSettingClick=function(){var l;((l=this.data)==null?void 0:l.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.xM(_.he(),this.activeVeForLogging)};
_.W.updateDataEnabledFromBinding=function(l){this.set("data.enabled",l.detail.value)};
_.QP.Object.defineProperties(ej.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var l=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!l&&(l=this.ytRendererBehavior.getSimpleString(this.data.title));return l}}});
ej.prototype.dataChanged=ej.prototype.dataChanged;_.E([_.m(_.l5),_.T("design:type",Object)],ej.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],ej.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],ej.prototype,"data",void 0);_.E([_.K({selector:function(l,D){if(Object.keys(l==null?void 0:l.entities).length)switch(D){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return S0c(l.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.T("design:type",Object)],ej.prototype,"booleanSettingById",void 0);_.E([_.K(),_.T("design:type",mQ)],ej.prototype,"activeVeForLogging",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ej.prototype,"toggleAriaLabel",null);_.E([_.GY("data"),_.GY("booleanSettingById"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ej.prototype,"dataChanged",null);
_.E([_.x({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],ej);
_.r(ej,"ytd-settings-switch-renderer",function(){if($s$!==void 0)return $s$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return $s$=l},{mode:1});var mn=function(){return _.p.apply(this,arguments)||this};
_.Z(mn,_.p);mn.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}}}}};
_.QP.Object.defineProperties(mn.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var l=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(l+=" remove-left-margin");this.data.extraBottomSpace&&(l+=" extra-bottom-space");return l}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],mn.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],mn.prototype,"contentsClassName",null);_.E([_.x({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],mn);
_.r(mn,"ytd-minor-moment-setting-section-renderer",function(){if(f9r!==void 0)return f9r;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return f9r=l},{mode:1});var NlJ;var at=function(){return _.p.apply(this,arguments)||this};
_.Z(at,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],at.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],at.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],at);
_.r(at,"ytd-empty-product-details-renderer",function(){if(NlJ!==void 0)return NlJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return NlJ=l},{mode:1});var s_8;var E9T;var tw=function(){var l=_.p.apply(this,arguments)||this;l.expanded=!0;return l};
_.Z(tw,_.p);tw.prototype.getBadgeRowClass=function(l,D,U){for(var n=_.B(this.hostElement.querySelectorAll("yt-img-shadow")),y=n.next();!y.done;y=n.next())y.value.onShow();l=l.selected;return U?l!==-1?l===D?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(l!==void 0?l:0)===D?"badge-line":"badge-hidden"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],tw.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],tw.prototype,"expanded",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],tw);
_.r(tw,"ytd-sponsorships-loyalty-badges-renderer",function(){if(E9T!==void 0)return E9T;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return E9T=l},{mode:1});var Tlr;var Xv=function(){var l=_.p.apply(this,arguments)||this;l.expanded=!0;return l};
_.Z(Xv,_.p);Xv.prototype.getContainerClasses=function(l,D){l=l?"expanded":"collapsed";D&&(l+=" item");return l};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Xv.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Xv.prototype,"expanded",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Xv);
_.r(Xv,"ytd-sponsorships-perk-renderer",function(){if(Tlr!==void 0)return Tlr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Tlr=l},{mode:1});var I98;var Sj=function(){var l=_.p.apply(this,arguments)||this;l.expanded=!0;return l};
_.Z(Sj,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Sj.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Sj.prototype,"expanded",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Sj);
_.r(Sj,"ytd-sponsorships-perks-renderer",function(){if(I98!==void 0)return I98;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return I98=l},{mode:1});var kw=function(){var l=_.p.apply(this,arguments)||this;l.isCollapsed=!1;return l};
_.Z(kw,_.p);kw.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
kw.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
kw.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var l;this.expandCollapseButton=_.M((l=this.data)==null?void 0:l.expandButton,_.yn)}else{var D;this.expandCollapseButton=_.M((D=this.data)==null?void 0:D.collapseButton,_.yn)}};
kw.prototype.updateExpandCollapseButton=kw.prototype.updateExpandCollapseButton;kw.prototype.onDataChanged=kw.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],kw.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],kw.prototype,"isCollapsed",void 0);_.E([_.K(),_.T("design:type",Object)],kw.prototype,"expandCollapseButton",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kw.prototype,"onDataChanged",null);_.E([_.GY("data","isCollapsed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kw.prototype,"updateExpandCollapseButton",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],kw);
_.r(kw,"ytd-sponsorships-expandable-perks-renderer",function(){if(s_8!==void 0)return s_8;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return s_8=l},{mode:1});var HC8;var d8=function(){return _.p.apply(this,arguments)||this};
_.Z(d8,_.p);d8.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],d8.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],d8.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],d8);
_.r(d8,"ytd-sponsorships-actionable-message-renderer",function(){if(HC8!==void 0)return HC8;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return HC8=l},{mode:1});var Ycv;var K9=function(){return _.p.apply(this,arguments)||this};
_.Z(K9,_.p);_.W=K9.prototype;_.W.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.W.getExpansionIcon=function(l){return l?"COLLAPSE":"EXPAND"};
_.W.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.W.computeMessageContainerStyle=function(l){var D=l.expandableItems?" style-clickable":"";return l.messageContainerStyle?l.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+D:"style-unspecified"+D};
_.W.isSinglePerk=function(l){return!!l.messageContainerStyle&&(l.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||l.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.W.onExpandedChanged=function(){var l=this;if(this.expanded)for(var D=_.B(this.hostElement.querySelectorAll("yt-img-shadow")),U=D.next();!U.done;U=D.next())U.value.onShow();_.u6(this,function(){_.O9(l.hostElement,"yt-refit")})};
_.W.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
K9.prototype.onDataChanged=K9.prototype.onDataChanged;K9.prototype.onExpandedChanged=K9.prototype.onExpandedChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],K9.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],K9.prototype,"expanded",void 0);
_.E([_.Pg("expanded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],K9.prototype,"onExpandedChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],K9.prototype,"onDataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],K9);
_.r(K9,"ytd-sponsorships-expandable-message-renderer",function(){if(Ycv!==void 0)return Ycv;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Ycv=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var OC8;var cv=function(){return _.p.apply(this,arguments)||this};
_.Z(cv,_.p);cv.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"}}}}};
cv.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.M(this.data.endButton,_.yn).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
cv.prototype.onDataChanged=cv.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],cv.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],cv.prototype,"onDataChanged",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],cv);
_.r(cv,"ytd-sponsorships-heading-renderer",function(){if(OC8!==void 0)return OC8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return OC8=l},{mode:1});var V3q;var p9=function(){return _.p.apply(this,arguments)||this};
_.Z(p9,_.p);_.E([_.K(),_.T("design:type",Object)],p9.prototype,"data",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],p9);
_.r(p9,"ytd-sponsorships-links-renderer",function(){if(V3q!==void 0)return V3q;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return V3q=l},{mode:1});var imH;var xw=function(){return _.p.apply(this,arguments)||this};
_.Z(xw,_.p);_.W=xw.prototype;_.W.onDataChanged=function(){if(this.data&&this.data.expandableItems){var l;(l=_.iJ(this.hostElement).querySelector("tp-yt-paper-button"))==null||l.setAttribute("role","button")}else{var D;(D=_.iJ(this.hostElement).querySelector("tp-yt-paper-button"))==null||D.removeAttribute("role")}};
_.W.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.W.getExpansionIcon=function(l){return l?"COLLAPSE":"EXPAND"};
_.W.getTileClasses=function(l){return l?"tile expandable-tile":"tile"};
_.W.getButtonDisabled=function(l){return l?void 0:""};
xw.prototype.onDataChanged=xw.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],xw.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],xw.prototype,"expanded",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xw.prototype,"onDataChanged",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],xw);
_.r(xw,"ytd-sponsorships-list-tile-renderer",function(){if(imH!==void 0)return imH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return imH=l},{mode:1});var l7H;var Dr2;var jj=function(){return _.p.apply(this,arguments)||this};
_.Z(jj,_.p);jj.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jj.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],jj);
_.r(jj,"ytd-sponsorships-promotion-renderer",function(){if(Dr2!==void 0)return Dr2;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Dr2=l},{mode:1});var Ur5;var Fv=function(){return _.p.apply(this,arguments)||this};
_.Z(Fv,_.p);Fv.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Fv.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Fv);
_.r(Fv,"ytd-sponsorships-purchase-option-renderer",function(){if(Ur5!==void 0)return Ur5;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Ur5=l},{mode:1});var n12;var yy$;var Ay2=function(){return _.p.apply(this,arguments)||this};
_.Z(Ay2,_.p);_.E([_.K(),_.T("design:type",Object)],Ay2.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Ay2);
_.r(Ay2,"ytd-ypc-offer-promo-renderer",function(){if(yy$!==void 0)return yy$;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return yy$=l},{mode:1});var ot=function(){return _.p.apply(this,arguments)||this};
_.Z(ot,_.p);_.W=ot.prototype;
_.W.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"}}}}};
_.W.expansionCTA=function(l,D){return l&&(D?l.collapseCallToAction:l.expansionCallToAction)};
_.W.getExpansionIcon=function(l){return l?"COLLAPSE":"EXPAND"};
_.W.expansionCallToActionTap=function(){var l=this;this.expanded=!this.expanded;_.u6(this,function(){_.O9(l.hostElement,"yt-refit")})};
_.W.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var l,D=(l=this.data)==null?void 0:l.onVisible;D&&this.ytComponentBehavior.resolveCommand(D)};
_.W.computeDisplayTitle=function(l){return!(!l||this.titledisplaystatus!=="show")};
_.W.computeDisplaySeparator=function(){return!1};
_.W.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
ot.prototype.onDataChanged=ot.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ot.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ot.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ot.prototype,"data",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],ot.prototype,"expanded",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],ot.prototype,"purchaseButtonClicked",void 0);_.E([_.K({reflectToAttribute:!0,value:"show"}),_.T("design:type",String)],ot.prototype,"titledisplaystatus",void 0);_.E([_.K({computed:"computeDisplayTitle(data.title)"}),_.T("design:type",Boolean)],ot.prototype,"displayTitle",void 0);
_.E([_.K({computed:"computeDisplaySeparator(data)"}),_.T("design:type",Boolean)],ot.prototype,"displaySeparator",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ot.prototype,"onDataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],ot);
_.r(ot,"ytd-sponsorships-tier-renderer",function(){if(n12!==void 0)return n12;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return n12=l},{mode:2});var w8=function(){return _.p.apply(this,arguments)||this};
_.Z(w8,_.p);
w8.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],w8.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],w8);
_.r(w8,"ytd-sponsorships-management-renderer",function(){if(l7H!==void 0)return l7H;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return l7H=l},{mode:1});var WkP;var r8=function(){return _.p.apply(this,arguments)||this};
_.Z(r8,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],r8.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],r8);
_.r(r8,"ytd-open-in-native-app-view-model",function(){if(WkP!==void 0)return WkP;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return WkP=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var Byr;var CHJ;var hzq=_.wL(["top-"]),PHq=_.wL(["bottom-"]),bmJ=_.wL(["left-"]),g1v=_.wL(["right-"]),u8T={},v1J=function(l,D,U){l.removeAttribute("top-"+U);l.removeAttribute("bottom-"+U);l.removeAttribute("left-"+U);l.removeAttribute("right-"+U);D&&(D.top&&_.hv([_.QK(hzq)],l,"top-"+U,D.top),D.bottom&&_.hv([_.QK(PHq)],l,"bottom-"+U,D.bottom),D.left&&_.hv([_.QK(bmJ)],l,"left-"+U,D.left),D.right&&_.hv([_.QK(g1v)],l,"right-"+U,D.right))};
u8T.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(l){var D,U=_.iJ((D=this.hostElement)!=null?D:this),n;D=this.cardItemBoxBehaviorMarginTargetId&&U?U.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(n=this.hostElement)!=null?n:this;v1J(D,l,"margin")},
cardItemContainerPaddingChanged_:function(l){var D,U=_.iJ((D=this.hostElement)!=null?D:this),n;D=this.cardItemBoxBehaviorPaddingTargetId&&U?U.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(n=this.hostElement)!=null?n:this;v1J(D,l,"padding")}}];var zD={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 Qgw;var GvW;var f9=function(){return _.p.apply(this,arguments)||this};
_.Z(f9,_.p);f9.prototype.textColorChanged_=function(){this.hostElement.style.color=zD[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
f9.prototype.textColorChanged_=f9.prototype.textColorChanged_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.E([_.m(u8T.YtCardItemBoxBehavior),_.T("design:type",Object)],f9.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],f9.prototype,"data",void 0);_.E([_.Pg("data.textColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],f9.prototype,"textColorChanged_",null);
_.E([_.S0({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],f9);
_.r(f9,"yt-card-item-text-renderer",function(){if(GvW===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Qgw===void 0&&(Qgw=document.createElement("template"));var n=Qgw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);GvW=l}l=GvW;return l},{mode:2});var Jyw;var Lk$;var $w=function(){return _.p.apply(this,arguments)||this};
_.Z($w,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$w.prototype,"data",void 0);_.E([_.S0({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],$w);
_.r($w,"yt-card-item-badge-renderer",function(){if(Lk$===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Jyw===void 0&&(Jyw=document.createElement("template"));var n=Jyw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Lk$=l}l=Lk$;return l},{mode:2});var q7T;var Mh$;var NW=function(){return _.p.apply(this,arguments)||this};
_.Z(NW,_.p);NW.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],NW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],NW.prototype,"data",void 0);_.E([_.S0({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],NW);
_.r(NW,"yt-card-item-text-collection-renderer",function(){if(Mh$===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;q7T===void 0&&(q7T=document.createElement("template"));var n=q7T;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Mh$=l}l=Mh$;return l},{mode:2});var Rz5;var ZmJ;var so=function(){return _.p.apply(this,arguments)||this};
_.Z(so,_.p);so.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],so.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],so.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Number)],so.prototype,"iconSize",void 0);_.E([_.S0({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],so);
_.r(so,"yt-card-item-text-with-button-renderer",function(){if(ZmJ===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Rz5===void 0&&(Rz5=document.createElement("template"));var n=Rz5;U.call(D,n.content.cloneNode(!0),l.content.firstChild);ZmJ=l}l=ZmJ;return l},{mode:2});var Eo=function(){return _.p.apply(this,arguments)||this};
_.Z(Eo,_.p);Eo.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Eo.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Eo.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Eo);
_.r(Eo,"ytd-commerce-cart-summary-line-item-renderer",function(){if(CHJ!==void 0)return CHJ;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return CHJ=l},{mode:1});_.RL("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var TD=function(){var l=_.p.apply(this,arguments)||this;l.hidden=!1;return l};
_.Z(TD,_.p);_.W=TD.prototype;_.W.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"}}}}};
_.W.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.W.updateSummary=function(){var l=this.commerceCartCheckoutButtonEntity,D;if(((D=this.data)==null?0:D.cartButton)&&l.checkoutSummaryText){var U,n=Rz((U=this.data)==null?void 0:U.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+n+".cardItemTextRenderer.text",Zf(l.checkoutSummaryText));if(l.checkoutDetailText){var y;U=Rz((y=this.data)==null?void 0:y.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+U+".cardItemTextRenderer.text",Zf(l.checkoutDetailText))}if(l.checkoutAdditionalMetadataText){var A;
y=Rz((A=this.data)==null?void 0:A.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+y+".cardItemTextRenderer.text",Zf(l.checkoutAdditionalMetadataText))}}else l.estimatedTotalPrice&&(A=Rz((n=this.data)==null?void 0:n.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+A+".cardItemTextRenderer.text",Zf(l.estimatedTotalPrice)))};
_.W.updateIsHidden=function(){var l,D=(l=this.commerceCartCheckoutButtonEntity)==null?void 0:l.isHidden;D!==void 0&&(this.hidden=D)};
_.W.updateCheckoutButton=function(){var l,D=(l=this.commerceCartCheckoutButtonEntity)==null?void 0:l.isDisabled;D!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",D);var U;l=(U=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:U.innertubeCommand;l!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",l);var n;U=(n=this.commerceCartCheckoutButtonEntity)==null?void 0:n.checkoutButtonText;U!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:U})};
TD.prototype.entityChanged=TD.prototype.entityChanged;_.E([_.m(_.l5),_.T("design:type",Object)],TD.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],TD.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],TD.prototype,"fullWidth",void 0);_.E([_.K(),_.T("design:type",Object)],TD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],TD.prototype,"compact",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],TD.prototype,"hidden",void 0);
_.E([_.K({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:AN_}),_.T("design:type",Object)],TD.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.Pg("commerceCartCheckoutButtonEntity","data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TD.prototype,"entityChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],TD);
_.r(TD,"ytd-commerce-cart-checkout-button-renderer",function(){if(Byr!==void 0)return Byr;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Byr=l},{mode:2});var ez5;_.mrq={};
_.mrq.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",_.CY(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.CY(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(l){!this.tappableItemBehaviorTapEnabled||l.keyCode!==13&&l.keyCode!==32||l.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var l=this.data.onTap;l.ypcGetCartEndpoint?(_.lu(this.hostElement,[l]),this.tappableItemBehaviorTapEnabled=!1):l.ypcOffersEndpoint?_.lu(this.hostElement,[l]):_.DP(this.hostElement,[l],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(l){this.tappableItemBehaviorTapEnabled=!!l},
tappableItemBehaviorOnTapEnabledChanged_:function(){var l=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(l.setAttribute("tabIndex",0),l.setAttribute("role","button")):(l.removeAttribute("tabIndex"),l.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(l){l.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var a7P;var th8;var It=function(){return _.p.apply(this,arguments)||this};
_.Z(It,_.p);It.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.ZV("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.ZV("sharingToggleButtonAndDefaultButton")}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],It.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],It.prototype,"data",void 0);_.E([_.S0({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],It);
_.r(It,"yt-card-item-actions-renderer",function(){if(th8===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;a7P===void 0&&(a7P=document.createElement("template"));var n=a7P;U.call(D,n.content.cloneNode(!0),l.content.firstChild);th8=l}l=th8;return l},{mode:2});var X5J;var S7q;var kv8;var dr8;var Kkr;var cy2;var Hv=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return l};
_.Z(Hv,_.p);Hv.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Hv.prototype.handleDarkModeToggledAction_=function(l){this.isDarkTheme_=l};
Hv.prototype.computeThemeImage_=function(l,D){if(!l||!l.imageLight)return!1;this.isCircular_=l.isCircular;l.imageWidth&&(this.hostElement.style.width=l.imageWidth+"px");l.imageHeight&&(this.hostElement.style.height=l.imageHeight+"px");l.borderWidth&&(this.image.style.borderWidth=l.borderWidth+"px",this.image.style.borderStyle="solid");l.borderColor&&(this.image.style.borderColor=_.tu(l.borderColor));return D&&l.imageDark?l.imageDark:l.imageLight};
Hv.prototype.computeThemeIcon_=function(l){var D,U;if(!(l==null?0:(D=l.themedIcon)==null?0:(U=D.icon)==null?0:U.iconType))return!1;this.icon.style.color=zD[l.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(l.imageWidth||18)+"px";this.icon.style.height=(l.imageHeight||18)+"px";return _.UV(l.themedIcon.icon.iconType)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(u8T.YtCardItemBoxBehavior),_.T("design:type",Object)],Hv.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Hv.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Hv.prototype,"data",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],Hv.prototype,"fit",void 0);_.E([_.K(),_.T("design:type",Boolean)],Hv.prototype,"isDarkTheme_",void 0);_.E([_.K({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.T("design:type",Object)],Hv.prototype,"themeImage_",void 0);_.E([_.K({computed:"computeThemeIcon_(data)"}),_.T("design:type",Object)],Hv.prototype,"themeIcon_",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Object)],Hv.prototype,"isCircular_",void 0);
_.E([_.gP("#image"),_.T("design:type",Object)],Hv.prototype,"image",void 0);_.E([_.gP("#icon"),_.T("design:type",Object)],Hv.prototype,"icon",void 0);_.E([_.S0({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Hv);
_.r(Hv,"yt-themed-image-renderer",function(){if(cy2===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Kkr===void 0&&(Kkr=document.createElement("template"));var n=Kkr;U.call(D,n.content.cloneNode(!0),l.content.firstChild);cy2=l}l=cy2;return l},{mode:2});var Yw=function(){return _.p.apply(this,arguments)||this};
_.Z(Yw,_.p);Yw.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"}}}}};
Yw.prototype.computeImagePlacement_=function(l){return l||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Yw.prototype,"data",void 0);_.E([_.K({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.T("design:type",String)],Yw.prototype,"imagePlacement",void 0);
_.E([_.S0({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Yw);
_.r(Yw,"yt-card-item-text-with-image-renderer",function(){if(dr8===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;kv8===void 0&&(kv8=document.createElement("template"));var n=kv8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);dr8=l}l=dr8;return l},{mode:2});var Oo=function(){return _.p.apply(this,arguments)||this};
_.Z(Oo,_.p);Oo.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Oo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Oo.prototype,"data",void 0);_.E([_.S0({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Oo);
_.r(Oo,"yt-card-item-error-renderer",function(){if(S7q===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;X5J===void 0&&(X5J=document.createElement("template"));var n=X5J;U.call(D,n.content.cloneNode(!0),l.content.firstChild);S7q=l}l=S7q;return l},{mode:2});var p55;var xrP;_.RL("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var VO=function(){return _.p.apply(this,arguments)||this};
_.Z(VO,_.p);_.W=VO.prototype;
_.W.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"}}}}};
_.W.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.W.backgroundColorChanged_=function(){var l,D=(l=this.data)==null?void 0:l.backgroundColor;l=zD[D||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.iJ(this.hostElement).querySelector("#main-content").style.backgroundColor=l};
_.W.headerPromoBackgroundColorChanged_=function(){var l,D=(l=this.data)==null?void 0:l.headerPromoBackgroundColor;l=zD[D||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.iJ(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=l};
_.W.errorRendererVisibilityChanged_=function(){var l=this.isExpanded_,D;this.isErrorRendererVisible_=!((D=this.data)==null||!D.errorRenderer)&&!l};
_.W.onYtToggleButton_=function(l,D){this.isExpanded_=D.toggled};
VO.prototype.onYtToggleButton_=VO.prototype.onYtToggleButton_;VO.prototype.errorRendererVisibilityChanged_=VO.prototype.errorRendererVisibilityChanged_;VO.prototype.headerPromoBackgroundColorChanged_=VO.prototype.headerPromoBackgroundColorChanged_;VO.prototype.backgroundColorChanged_=VO.prototype.backgroundColorChanged_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],VO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(u8T.YtCardItemBoxBehavior),_.T("design:type",Object)],VO.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.m(_.mrq.YtTappableItemBehavior),_.T("design:type",Object)],VO.prototype,"ytTappableItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],VO.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],VO.prototype,"isExpanded_",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],VO.prototype,"isErrorRendererVisible_",void 0);_.E([_.Pg("data.backgroundColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VO.prototype,"backgroundColorChanged_",null);_.E([_.Pg("data.headerPromoBackgroundColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VO.prototype,"headerPromoBackgroundColorChanged_",null);
_.E([_.Pg("data.errorRenderer","isExpanded_"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VO.prototype,"errorRendererVisibilityChanged_",null);_.E([_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[Event,Object]),_.T("design:returntype")],VO.prototype,"onYtToggleButton_",null);_.E([_.S0({is:"yt-card-item-renderer",disableElementRegistration:!0})],VO);
_.r(VO,"yt-card-item-renderer",function(){if(xrP===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;p55===void 0&&(p55=document.createElement("template"));var n=p55;U.call(D,n.content.cloneNode(!0),l.content.firstChild);xrP=l}l=xrP;return l},{mode:2});_.RL("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var iA=function(){var l=_.p.apply(this,arguments)||this;l.hidden=!1;return l};
_.Z(iA,_.p);_.W=iA.prototype;_.W.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.W.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.W.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var l,D=(l=this.commerceCartHeaderEntity)==null?void 0:l.isHidden;D!==void 0&&(this.hidden=D)}};
_.W.updateTitle=function(){var l=this.commerceCartHeaderEntity.isDisabled,D,U,n=(U=_.M((D=this.data)==null?void 0:D.item,bK5))==null?void 0:U.headingRenderer;n&&(D=Rz(n,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+D+".0.cardItemTextRenderer.textColor",l?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.W.updateSummaryText=function(){var l=this.commerceCartHeaderEntity;if(this.compact){var D,U,n=(U=_.M((D=this.data)==null?void 0:D.item,bK5))==null?void 0:U.headingRenderer;n&&(D=Rz(n,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+D+".1.cardItemTextRenderer.text",l.shortHeaderSummaryText?Zf(l.shortHeaderSummaryText):l.headerSummaryText?Zf(l.headerSummaryText):""))}else{var y;if(D=(y=_.M((n=this.data)==null?void 0:n.item,bK5))==null?void 0:y.additionalInfoRenderer)D=Rz(D,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+D+".text",l.headerSummaryText?Zf(l.headerSummaryText):"")}};
_.W.updateCheckoutButton=function(){var l=this.commerceCartHeaderEntity,D,U,n=(U=_.M((D=this.data)==null?void 0:D.item,bK5))==null?void 0:U.additionalInfoRenderer;D=Rz(n,"buttonRenderer");var y;U=(y=this.commerceCartHeaderEntity)==null?void 0:y.isButtonDisabled;var A;y=(A=this.commerceCartHeaderEntity)==null?void 0:A.isButtonHidden;U!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+D+".buttonRenderer.isDisabled",U);y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
y);var C;l=(C=l.checkoutButtonCommand)==null?void 0:C.innertubeCommand;l!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+D+".buttonRenderer.command",l)};
iA.prototype.entityChanged=iA.prototype.entityChanged;_.E([_.m(_.l5),_.T("design:type",Object)],iA.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],iA.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],iA.prototype,"compact",void 0);_.E([_.K({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(l,D){return _.yT(l.entities,"commerceCartHeaderEntity",D)}}),
_.T("design:type",Object)],iA.prototype,"commerceCartHeaderEntity",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],iA.prototype,"hidden",void 0);_.E([_.Pg("commerceCartHeaderEntity","data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],iA.prototype,"entityChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],iA);
_.r(iA,"ytd-commerce-cart-header-renderer",function(){if(ez5!==void 0)return ez5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return ez5=l},{mode:1});var jgJ;var Fkq=_.e8(function(l,D){var U;return(U=l.onChangeCallback)==null?void 0:U.call(l,D)},1E3),o1q=_.w(function(l){var D=l.data;
var U=l.iconMinus;l=l.iconPlus;var n=function(){return!!D().disabled},y=_.B(_.aw(0,void 0,"mKh0af")),A=y.next().value,C=y.next().value;
y=_.n0(function(){if(A()===1){var G,J;(J=(G=D()).onRemoveCommand)==null||J.call(G)}G=A()>D().maxValue?D().maxValue:A()-1;C(G);Fkq(D(),G);return!1});
var h=_.n0(function(){if(A()===D().maxValue)return!1;var G=A()+1;C(G);Fkq(D(),G);return!1});
_.$g(function(){C(D().value)});
var b={},u={},Q={};return _.g("quantity-incrementer-shape",null,_.g("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.g("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return A()===(D().onRemoveCommand?0:1)||n()},
"aria-label":function(){return A()!==1?D().minusLabel:D().minimumReachedLabel},
"on:click":y},_.g(_.MO,{model:{circular:!0}}),_.g("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.g("div",{class:_.DV("ytSpecQuantityIncrementerShapeIcon",(b.ytSpecQuantityIncrementerShapeIconDisabled=function(){return n()||A()===(D().onRemoveCommand?0:1)},b))},U()))),_.g("div",{class:_.DV("ytSpecQuantityIncrementerShapeText",(u.ytSpecQuantityIncrementerShapeTextInvalid=function(){return A()>D().maxValue},u.ytSpecQuantityIncrementerShapeTextDisabled=n,u))},A),_.g("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return A()>=D().maxValue||n()},
"aria-label":function(){return A()!==D().maxValue?D().plusLabel:D().maximumReachedLabel},
"on:click":h},_.g(_.MO,{model:{circular:!0}}),_.g("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.g("div",{class:_.DV("ytSpecQuantityIncrementerShapeIcon",(Q.ytSpecQuantityIncrementerShapeIconDisabled=function(){return A()>=D().maxValue||n()},Q))},l())))))},"Lf");_.Tt(_.w(function(l){function D(){U().onRemoveCommand&&_.dh(U().onRemoveCommand)}
var U=l.data;var n=_.Pr(qkl,function(){return U().quantityIncrementerEntityKey});
return _.g("yt-quantity-incrementer-view-model",null,_.g(o1q,{data:function(){var y=U(),A;var C=n()?!((A=n())==null||!A.disabled):!1;var h;A=n()?(h=n())==null?void 0:h.quantity:U().quantity;return F3N(y,C,D,A)},
iconMinus:function(){return _.g(_.C0,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.g(_.C0,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Mf"),"yt-quantity-incrementer-view-model",{props:{data:_.C$}});var lA=function(){var l=_.p.apply(this,arguments)||this;l.compact=!1;l.hasQuantityIncrementer=!1;return l};
_.Z(lA,_.p);lA.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"}}}};
lA.prototype.computeHasQuantityIncrementer=function(){var l;return!!_.M((l=this.data)==null?void 0:l.picker,Q5y)};
lA.prototype.onLabelClick=function(){var l;(l=this.dropdownEl)==null||l.open()};
_.E([_.gP("ytd-dropdown-renderer"),_.T("design:type",Object)],lA.prototype,"dropdownEl",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],lA.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],lA.prototype,"quantityColor",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],lA.prototype,"compact",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.T("design:type",Object)],lA.prototype,"hasQuantityIncrementer",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],lA);
_.r(lA,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(jgJ!==void 0)return jgJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return jgJ=l},{mode:1});var w5J;var ry$;var Dd=function(){return _.p.apply(this,arguments)||this};
_.Z(Dd,_.p);Dd.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Dd.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Dd.prototype.updateTitle=function(){var l=this.disabledCartItemEntity;l.disableActionName&&this.set("data.title",Zf(l.disableActionName))};
Dd.prototype.updateButton=function(){var l,D=(l=this.disabledCartItemEntity.undoCommand)==null?void 0:l.innertubeCommand;D!==void 0&&(this.set("data.actionButton.buttonRenderer.command",D),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Dd.prototype.entityChanged=Dd.prototype.entityChanged;_.E([_.m(_.l5),_.T("design:type",Object)],Dd.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Dd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(l,D){return _.yT(l.entities,"disabledCartItemEntity",D)}}),
_.T("design:type",Object)],Dd.prototype,"disabledCartItemEntity",void 0);_.E([_.K(),_.T("design:type",Object)],Dd.prototype,"data",void 0);_.E([_.Pg("disabledCartItemEntity","data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Dd.prototype,"entityChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Dd);
_.r(Dd,"ytd-disabled-cart-item-renderer",function(){if(ry$!==void 0)return ry$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return ry$=l},{mode:1});_.RL("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var UN=function(){var l=_.p.apply(this,arguments)||this;l.compact=!1;l.hidden=!1;l.errorHidden=!1;l.noOnTap=!1;return l};
_.Z(UN,_.p);_.W=UN.prototype;
_.W.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"}}}};
_.W.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.W.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var l=this.firstButtonElement;l.alignByText=!0;l.iconAlignByText=!0}};
_.W.computeNoOnTap=function(l){return!l};
_.W.updateQuantityColor=function(){if(this.pickerElement){var l,D=(l=this.commerceCartItemEntity)==null?void 0:l.quantityColor;this.pickerElement.quantityColor=D}};
_.W.updateTotalPriceColor=function(){var l,D=(l=this.commerceCartItemEntity)==null?void 0:l.totalPriceColor;if(D){var U;l=_.M((U=this.data)==null?void 0:U.quantityPicker,uQ8);if(U=_.M(l==null?void 0:l.price,gdm))U.textColor=D}};
_.W.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var l,D=(l=this.commerceCartItemEntity)==null?void 0:l.isHidden;D!==void 0&&(this.hidden=D)}};
_.W.updateHideErrorMessage=function(){var l,D=(l=this.commerceCartItemEntity)==null?void 0:l.hideErrorMessage;D!==void 0&&(this.errorHidden=D)};
_.W.updateQuantity=function(){var l=this,D,U=(D=this.commerceCartItemEntity)==null?void 0:D.quantity,n;D=(n=this.commerceCartItemEntity)==null?void 0:n.totalPrice;if(U){this.updateTotalPriceColor();this.updateQuantityColor();var y;n=_.M((y=this.data)==null?void 0:y.quantityPicker,uQ8);if(y=_.M(n==null?void 0:n.price,gdm))y.text=D?{simpleText:D.content}:void 0;if(D=_.M(n==null?void 0:n.picker,Q5y))D.quantity=U;var A;if(y=(A=_.M(n==null?void 0:n.picker,bF_))==null?void 0:A.entries){A=!1;D=void 0;y=
_.B(y);for(n=y.next();!n.done;n=y.next())n=n.value,n.dropdownItemRenderer&&(D||(D=n.dropdownItemRenderer),n.dropdownItemRenderer.isSelected=!1,U===n.dropdownItemRenderer.int32Value&&(A=!0,n.dropdownItemRenderer.isSelected=!0));!A&&D&&(D.isSelected=!0)}_.u6(this,function(){var C;l.set("data.quantityPicker",_.we.unsafeClone((C=l.data)==null?void 0:C.quantityPicker))})}};
UN.prototype.onYtRendererstamperFinished=UN.prototype.onYtRendererstamperFinished;UN.prototype.entityChanged=UN.prototype.entityChanged;_.E([_.K(),_.T("design:type",Object)],UN.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],UN.prototype,"compact",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],UN.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],UN.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(l,D){return _.yT(l.entities,"commerceCartItemEntity",D)}}),
_.T("design:type",Object)],UN.prototype,"commerceCartItemEntity",void 0);_.E([_.K(),_.T("design:type",Object)],UN.prototype,"quantityPicker",void 0);_.E([_.K(),_.T("design:type",Object)],UN.prototype,"compactQuantityPicker",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],UN.prototype,"hidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],UN.prototype,"errorHidden",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.T("design:type",Object)],UN.prototype,"noOnTap",void 0);_.E([_.gP("ytd-commerce-cart-item-quantity-picker-renderer"),_.T("design:type",Object)],UN.prototype,"pickerElement",void 0);_.E([_.gP("yt-button-renderer"),_.T("design:type",Element)],UN.prototype,"firstButtonElement",void 0);
_.E([_.Pg("commerceCartItemEntity","data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],UN.prototype,"entityChanged",null);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],UN.prototype,"onYtRendererstamperFinished",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],UN);
_.r(UN,"ytd-commerce-cart-item-renderer",function(){if(w5J!==void 0)return w5J;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return w5J=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var zzr;var f7$;var nf=function(){return _.p.apply(this,arguments)||this};
_.Z(nf,_.p);nf.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}}}}}};
nf.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
nf.prototype.updateCheckoutLineItems=function(){var l,D=(l=this.commerceCartCheckoutButtonEntity)==null?void 0:l.checkoutLineItems;D&&(l=D.map(function(U){a:{var n=U.price,y=U.description;switch(U.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":U={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Zf(y),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:Zf(n),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:U={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Zf(y),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:Zf(n),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 U}),this.set("data.summaryLineItems",l))};
nf.prototype.updateIsHidden=function(){var l,D=(l=this.commerceCartCheckoutButtonEntity)==null?void 0:l.isHidden;D!==void 0&&(this.hostElement.hidden=D)};
nf.prototype.entityChanged=nf.prototype.entityChanged;_.E([_.m(_.l5),_.T("design:type",Object)],nf.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],nf.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],nf.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:AN_}),_.T("design:type",Object)],nf.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.Pg("commerceCartCheckoutButtonEntity","data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],nf.prototype,"entityChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],nf);
_.r(nf,"ytd-commerce-cart-summary-renderer",function(){if(f7$!==void 0)return f7$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return f7$=l},{mode:1});var $r8={};$r8.InjectBehavior=[OxN.InjectBehavior];var Nyv;var sg5;var yz=function(){return _.p.apply(this,arguments)||this};
_.Z(yz,_.p);
yz.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:_.ZV("menuRenderer")}}};
yz.prototype.onMenuTap=function(l){l.stopPropagation()};
_.QP.Object.defineProperties(yz.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 l,D;return!(((l=this.data)==null||!l.sectionHeading)&&((D=this.data)==null?void 0:D.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var l,D;return!(((l=this.data)==null||!l.image)&&((D=this.data)==null?void 0:D.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var l,D;return!(((l=this.data)==null||!l.menu)&&((D=this.data)==null?void 0:D.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.mrq.YtTappableItemBehavior),_.T("design:type",Object)],yz.prototype,"ytTappableItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],yz.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("data.accessibilityData"),_.T("design:type",String),_.T("design:paramtypes",[])],yz.prototype,"ariaLabel",null);_.E([_.t("data.sectionHeading","data.layout"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],yz.prototype,"sectionHeadingVisible",null);_.E([_.t("data.image","data.layout"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],yz.prototype,"imageVisible",null);
_.E([_.t("data.menu","data.layout"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],yz.prototype,"menuVisible",null);_.E([_.S0({is:"yt-activity-item-renderer",disableElementRegistration:!0})],yz);
_.r(yz,"yt-activity-item-renderer",function(){if(sg5===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Nyv===void 0&&(Nyv=document.createElement("template"));var n=Nyv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);sg5=l}l=sg5;return l},{mode:2});var E1q;var Ty5;var I78;var HmJ;var AT=function(){return _.p.apply(this,arguments)||this};
_.Z(AT,_.p);
AT.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"}}}}};
AT.prototype.backgroundColorChanged_=function(){var l,D=(l=this.data)==null?void 0:l.backgroundColor;this.hostElement.style.backgroundColor=zD[D||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
AT.prototype.backgroundColorChanged_=AT.prototype.backgroundColorChanged_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],AT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],AT.prototype,"data",void 0);
_.E([_.Pg("data.backgroundColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],AT.prototype,"backgroundColorChanged_",null);_.E([_.S0({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],AT);
_.r(AT,"yt-offer-item-upsell-renderer",function(){if(HmJ===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;I78===void 0&&(I78=document.createElement("template"));var n=I78;U.call(D,n.content.cloneNode(!0),l.content.firstChild);HmJ=l}l=HmJ;return l},{mode:2});_.RL("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Wi=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};l.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return l};
_.Z(Wi,_.p);_.W=Wi.prototype;
_.W.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:_.ZV("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.W.computeContainerStyle_=function(l){return l};
_.W.computeContainerIsHidden_=function(l){return l&&!!l.isHidden};
_.W.computeShowSpinner_=function(l,D){return l&&D==="in-progress"};
_.W.computeShowMoreContentsButton_=function(l,D,U,n,y){return!(!(n&&n.length||y&&y.length&&U)||!l||D)};
_.W.onToggleButton_=function(l){var D=this;l.stopPropagation();this.isExpanded_=l.detail&&l.detail.toggled;var U,n;this.isExpanded_&&!this.data.continuationSection.length&&((U=this.data)==null?0:(n=U.continuation)==null?0:n.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.O9(this.hostElement,"yt-load-next-continuation",function(y){return D.getContinuationUrl_(D.data.continuation.onClickContinuationData,y)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.lu(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.W.onShowMoreContentsButtonClicked_=function(l){var D=this;l.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.O9(this.hostElement,"yt-load-next-continuation",function(U){return D.getContinuationUrl_(D.data.continuations[0].nextContinuationData,U)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.lu(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.W.getContinuationUrl_=function(l,D){var U=l.continuation;l=l.clickTrackingParams;var n=_.t6();l&&n&&_.zo(n,_.v9(l));return _.hc(D,{continuation:U})};
_.W.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var l=_.iJ(this.hostElement).querySelector("#continuation-section");l&&(l=l.querySelectorAll("ytmusic-item-section-renderer"))&&l.forEach(function(D){return D.classList.add("memberships-and-purchases")})};
_.W.dataChanged_=function(){var l;this.isExpanded_=!((l=this.data)==null||!l.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.W.updateCardOnClickCommand_=function(l){l=_.M(l,ndz);var D,U;this.data&&((D=this.data)==null?0:D.targetId)&&l&&l.targetId===((U=this.data)==null?void 0:U.targetId)&&l.onClickCommand&&(this.data.onClickCommand=l.onClickCommand,this.isOnClickCommand_=!0)};
_.W.backgroundColorChanged_=function(){var l,D=(l=this.data)==null?void 0:l.backgroundColor;this.hostElement.style.backgroundColor=zD[D||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Wi.prototype.backgroundColorChanged_=Wi.prototype.backgroundColorChanged_;Wi.prototype.dataChanged_=Wi.prototype.dataChanged_;Wi.prototype.nextContinuationDataUpdated_=Wi.prototype.nextContinuationDataUpdated_;Wi.prototype.onToggleButton_=Wi.prototype.onToggleButton_;_.E([_.m(_.vf),_.T("design:type",Object)],Wi.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Wi.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Qa.YtNextContinuationBehavior),_.T("design:type",Object)],Wi.prototype,"ytNextContinuationBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.E([_.m($r8.InjectBehavior),_.T("design:type",Object)],Wi.prototype,"injectBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Wi.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],Wi.prototype,"compact",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],Wi.prototype,"isExpanded_",void 0);_.E([_.K({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.T("design:type",String)],Wi.prototype,"containerStyle_",void 0);_.E([_.K({value:"not-started"}),_.T("design:type",String)],Wi.prototype,"continuationStatus_",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.T("design:type",Boolean)],Wi.prototype,"showSpinner_",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],Wi.prototype,"isOnClickCommand_",void 0);_.E([_.K({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.T("design:type",Boolean)],Wi.prototype,"showMoreContentsButton_",void 0);
_.E([_.K({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(l,D){return!D||l.entities?null:_.yT(l.entities,"cardItemContainerEntity",D)}}),
_.T("design:type",Object)],Wi.prototype,"cardItemContainerEntity_",void 0);_.E([_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Wi.prototype,"onToggleButton_",null);_.E([_.hj("yt-next-continuation-data-updated"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Wi.prototype,"nextContinuationDataUpdated_",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Wi.prototype,"dataChanged_",null);_.E([_.Pg("data.backgroundColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Wi.prototype,"backgroundColorChanged_",null);_.E([_.S0({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Wi);
_.r(Wi,"yt-card-item-container-renderer",function(){if(Ty5===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;E1q===void 0&&(E1q=document.createElement("template"));var n=E1q;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Ty5=l}l=Ty5;return l},{mode:2});var Bi=function(){return _.p.apply(this,arguments)||this};
_.Z(Bi,_.p);Bi.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"}}}};
Bi.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Bi.prototype.computeLoadingHidden=function(){var l;return!((l=this.commerceCartPageStateEntity)==null?0:l.cartActionInProgress)};
Bi.prototype.updateNotification=function(){var l,D=(l=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:l.summaryText;D&&this.set("data.cartNotification",Zf(D))};
Bi.prototype.notificationEntityChanged=Bi.prototype.notificationEntityChanged;_.E([_.m(_.l5),_.T("design:type",Object)],Bi.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Bi.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],Bi.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(l,D){return _.yT(l.entities,"commerceCartExpandableNotificationEntity",D)}}),
_.T("design:type",Object)],Bi.prototype,"commerceCartExpandableNotificationEntity",void 0);_.E([_.K({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(l,D){return _.yT(l.entities,"commerceCartPageStateEntity",D)}}),
_.T("design:type",Object)],Bi.prototype,"commerceCartPageStateEntity",void 0);_.E([_.gP("#spinner"),_.T("design:type",HTMLElement)],Bi.prototype,"spinner",void 0);_.E([_.Pg("commerceCartExpandableNotificationEntity","data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Bi.prototype,"notificationEntityChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Bi);
_.r(Bi,"ytd-commerce-cart-renderer",function(){if(zzr!==void 0)return zzr;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return zzr=l},{mode:1});var Y7w;var Cf=function(){var l=_.p.apply(this,arguments)||this;l.bigImage=!1;return l};
_.Z(Cf,_.p);_.QP.Object.defineProperties(Cf.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.placeholderImageUrl}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Cf.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Cf.prototype,"bigImage",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Cf.prototype,"placeholderImageUrl",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Cf);
_.r(Cf,"ytd-empty-product-shelf-renderer",function(){if(Y7w!==void 0)return Y7w;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Y7w=l},{mode:1});var Om8;var hT=function(){var l=_.p.apply(this,arguments)||this;l.itemStyle="link-item";l.watchMetadataRefresh=!1;l.skinnyMode=!1;l.metaPanel=!1;l.inStructuredDescription=!1;l.detailedDescriptionOverride=!1;l.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};l.updateOnResizeDebouncer=null;return l};
_.Z(hT,_.p);_.W=hT.prototype;_.W.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.W.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"}}}}};
_.W.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.W.attachVEs=function(l){l.trackingParams&&_.he().graftServerVe(l.trackingParams)};
_.W.handleUpdateMerchShelfAction=function(l){var D=this,U=_.M(l.updateMerchandiseShelfAction.merchandiseShelf,_.Sp_);U&&(U.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){D.attachVEs(U);D.data=U},Number(U.renderDelayMs))):(this.attachVEs(U),this.data=U))};
_.W.updateOnResize=function(){if(this.JSC$17096_scrollContainer!==void 0&&this.JSC$17096_scrollContainer.clientWidth!==0&&this.items!==void 0){var l=this.JSC$17096_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-l));this.ytdHorizontalListBehavior.reposition_();var D;switch((D=this.data)==null?void 0:D.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var U,
n;((U=this.data)==null?void 0:(n=U.items)==null?void 0:n.length)===1?this.itemStyle="cta-item":this.itemStyle=l>=740?"large-item":"small-item"}}};
_.W.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Qb(this.updateOnResizeDebouncer,_.nn.after(100),this.updateOnResize)};
hT.prototype.debouncedUpdateOnResize=hT.prototype.debouncedUpdateOnResize;hT.prototype.dataChanged=hT.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.RH.YtdHorizontalListBehavior),_.T("design:type",Object)],hT.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],hT.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],hT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hT.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],hT.prototype,"itemStyle",void 0);_.E([_.K({value:6}),_.T("design:type",Number)],hT.prototype,"initialCount",void 0);
_.E([_.K({value:"data.items"}),_.T("design:type",String)],hT.prototype,"itemsPath",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],hT.prototype,"watchMetadataRefresh",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],hT.prototype,"skinnyMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],hT.prototype,"metaPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],hT.prototype,"inStructuredDescription",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],hT.prototype,"detailedDescriptionOverride",void 0);_.E([_.gP("#items"),_.T("design:type",HTMLDivElement)],hT.prototype,"items",void 0);_.E([_.gP("#scroll-container"),_.T("design:type",HTMLDivElement)],hT.prototype,"JSC$17096_scrollContainer",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hT.prototype,"dataChanged",null);
_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hT.prototype,"debouncedUpdateOnResize",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],hT);
_.r(hT,"ytd-merch-shelf-renderer",function(){if(Om8!==void 0)return Om8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Om8=l},{mode:2});var VhW;var Pi=function(){var l=_.p.apply(this,arguments)||this;l.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 l};
_.Z(Pi,_.p);_.W=Pi.prototype;
_.W.addBackstagePostAction=function(l){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(l=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",l))&&(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:l}):this.set("data.contents",[{backstagePostThreadRenderer:l}]))};
_.W.addBackstageCommentAction=function(l){var D=this.get("addBackstageCommentAction.parentId",l);l=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",l);if(D&&l){D=this.postIdToIndices(D);for(var U=0;U<D.length;U++){var n=D[U];if(n<0)break;n="data.contents."+n+".backstagePostThreadRenderer.comments";this.get(n)&&(this.get(n+".backstageCommentsRenderer.contents")&&this.push(n+".backstageCommentsRenderer.contents",{commentThreadRenderer:l}),this.get(n+".backstageCommentsRenderer.teaserContents")?
this.push(n+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:l}):this.set(n+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:l}]))}}};
_.W.addBackstageReplyAction=function(l){var D=this.get("addBackstageReplyAction.parentId",l);l=this.get("addBackstageReplyAction.renderer.commentRenderer",l);D&&l&&this.setCreatorReply(D,l)};
_.W.banAuthorAction=function(l){var D=this.get("banAuthorAction.commentId",l);D&&(l=this.get("banAuthorAction.parentCommentId",l)||this.getParentPostId(D),this.removeFromStream(D,l))};
_.W.hideReportedCommentAction=function(l){var D=this.get("hideReportedCommentAction.commentId",l);D&&((l=this.get("hideReportedCommentAction.parentCommentId",l))||(l=this.getParentPostId(D)),this.removeFromStream(D,l))};
_.W.replaceBackstageCommentAction=function(l){var D=this.get("replaceBackstageCommentAction.commentId",l),U=this.get("replaceBackstageCommentAction.parentId",l);l=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",l);if(D&&U&&l){U=this.postIdToIndices(U);for(var n=0;n<U.length;n++){var y=U[n];if(y<0)break;var A=this.commentIdToIndex(D,y,!1);if(A>=0){var C=this.get("data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+A+".commentThreadRenderer.replies.commentRepliesRenderer");
C&&(l.replies={commentRepliesRenderer:C});this.splice("data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",A,1,{commentThreadRenderer:l})}A=this.commentIdToIndex(D,y,!0);if(A>=0){if(C=this.get("data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(A+".commentThreadRenderer.replies.commentRepliesRenderer")))l.replies={commentRepliesRenderer:C};this.splice("data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
A,1,{commentThreadRenderer:l})}}}};
_.W.replaceBackstagePostAction=function(l){var D=this.get("replaceBackstagePostAction.itemId",l);if(D){D=this.postIdToIndices(D);for(var U=0;U<D.length;U++){var n=D[U];if(n<0)break;var y=this.getPostRendererType(n),A=this.get("replaceBackstagePostAction.renderer."+y,l);if(!A&&y!=="sharedPostRenderer")break;var C=!1;A||(C=!0,A=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",l));if(!A)break;var h={};C?(_.RO(h,TCy,A),this.set("data.contents."+n+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
h)):(_.RO(h,new _.y4(y),A),this.set("data.contents."+n+".backstagePostThreadRenderer.post",h))}}};
_.W.replaceBackstageReplyAction=function(l){var D=this.get("replaceBackstageReplyAction.replyId",l),U=this.get("replaceBackstageReplyAction.parentId",l);l=this.get("replaceBackstageReplyAction.renderer.commentRenderer",l);D&&l&&U&&this.setCreatorReply(U,l)};
_.W.removeCommentAction=function(l){var D=this.get("removeCommentAction.commentId",l);if(D){var U=this.get("removeCommentAction.parentCommentId",l);U&&this.get("removeCommentAction.isCreatorReply",l)?this.setCreatorReply(U,void 0):(U||(U=this.getParentPostId(D)),this.removeFromStream(D,U))}};
_.W.setCreatorReply=function(l,D){var U=this.getParentPostId(l);if(U){U=this.postIdToIndices(U);for(var n=0;n<U.length;n++){var y=U[n];if(y<0)break;var A=this.commentIdToIndex(l,y,!1);if(A>=0){var C="data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+A;A=C+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";C+=".commentThreadRenderer.replies";D==void 0?(this.set(C,{}),this.set(A,!1)):(this.set(C,{commentRepliesRenderer:{teaserContents:[{commentRenderer:D}]}}),
this.set(C+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(A,!0))}A=this.commentIdToIndex(l,y,!0);A>=0&&(A="data.contents."+y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+A,y=A+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",A+=".commentThreadRenderer.replies",D==void 0?(this.set(A,{}),this.set(y,!1)):(this.set(A,{commentRepliesRenderer:{teaserContents:[{commentRenderer:D}]}}),this.set(y,!0)))}}};
_.W.removeFromStream=function(l,D){if(D){D=this.postIdToIndices(D);for(var U=0;U<D.length;U++){var n=D[U];if(n<0)break;var y=this.commentIdToIndex(l,n,!1);y>=0&&this.splice("data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",y,1);y=this.commentIdToIndex(l,n,!0);y>=0&&this.splice("data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",y,1);n="data.contents."+n+".backstagePostThreadRenderer.post.backstagePostRenderer";
y=n+".backstageAttachment.pollRenderer.votedCommentId";this.get(y)===l&&(this.set(y,null),this.set(n+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(D=this.postIdToIndices(l).reverse(),U=0;U<D.length;U++){n=D[U];if(n<0)break;y=this.getPostRendererType(n);var A=this.get("backstagePostThreadRenderer.post."+y,this.data.contents[n]);A.postId===l?this.splice("data.contents",n,1):y==="sharedPostRenderer"&&this.set("data.contents."+n+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);A.scheduledPublishTimeSec&&_.Vh(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.W.postIdToIndices=function(l){for(var D=[],U=0;U<this.data.contents.length;U++){var n=this.getPostRendererType(U);this.get("backstagePostThreadRenderer.post."+n+".postId",this.data.contents[U])===l&&D.push(U);if(n==="sharedPostRenderer"){var y=this.get("backstagePostThreadRenderer.post."+n+".originalPost.backstagePostRenderer.postId",this.data.contents[U]);n=this.get("backstagePostThreadRenderer.post."+n+".originalPost.postRenderer.postId",this.data.contents[U]);y!==l&&n!==l||D.push(U)}}return D};
_.W.commentIdToIndex=function(l,D,U){if(D<0)return-1;var n,y,A,C,h=_.M((n=this.data)==null?void 0:(y=n.contents)==null?void 0:(A=y[D])==null?void 0:(C=A.backstagePostThreadRenderer)==null?void 0:C.comments,sph);return(D=U?h==null?void 0:h.teaserContents:h==null?void 0:h.contents)&&D.length?D.findIndex(function(b){return _.M(b,aWy).comment.commentRenderer.commentId===l}):-1};
_.W.getParentPostId=function(l){l=l.split(".");if(l[1])return l[0]};
_.W.getPostRendererType=function(l){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[l])?"sharedPostRenderer":"backstagePostRenderer"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Pi.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Pi.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:_.q("enable_community_page_on_desktop")}),_.T("design:type",Boolean)],Pi.prototype,"useSmallerPostContainer",void 0);
_.E([_.x({disableElementRegistration:!0,is:"ytd-backstage-items"})],Pi);
_.r(Pi,"ytd-backstage-items",function(){if(VhW!==void 0)return VhW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return VhW=
l},{mode:1});var iPJ;var lv5={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},bA=function(){var l=_.p.apply(this,arguments)||this;l.disablePrescanVisibility=!0;l.canScheduleJobs=!0;l.engagementPanel=!1;l.hidePanelButton=!1;l.isWatchGrid=
!1;l.hasShownSubscribersOnlyDisclaimer=!1;l.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};l.TEST_ONLY=void 0;return l};
_.Z(bA,_.p);_.W=bA.prototype;_.W.created=function(){this.initCommentsCsi_();_.q("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.q("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.W.contentsChanged_=function(){var l;(l=this.data)!=null&&l.contents&&this.tickForCommentsTimer_("cml")};
_.W.headerChanged_=function(){var l;(l=this.data)!=null&&l.header&&this.tickForCommentsTimer_("cmhl")};
_.W.initCommentsCsi_=function(){_.m0("wn_comments");var l=_.t6();l&&_.ZP({clientScreenNonce:l},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.W.createCommentAction_=function(l){l=_.we.unsafeClone(l);var D,U;if(l=(D=_.M(l,GLm))==null?void 0:(U=D.contents)==null?void 0:U.commentThreadRenderer){var n,y,A,C,h,b;!this.isBackstage&&((n=this.data)==null?0:(y=n.header)==null?0:(A=y.commentsHeaderRenderer)==null?0:(C=A.createRenderer)==null?0:(h=C.commentSimpleboxRenderer)==null?0:(b=h.zeroStep)==null?0:b.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var u,
Q,G;this.isBackstage&&_.M((u=this.data)==null?void 0:(Q=u.header)==null?void 0:(G=Q.commentsHeaderRenderer)==null?void 0:G.zeroStateMessage,IO7)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(l)}};
_.W.doReplyInsert_=function(l,D,U,n){n?this.splice(l,n,0,D):this.push(l,D)};
_.W.getRepliesPath_=function(l){return"data.contents."+l+".commentThreadRenderer.replies"};
_.W.getRepliesContentsPath_=function(l,D){l=this.getRepliesPath_(l);return D?l+".commentRepliesRenderer.teaserContents":l+".commentRepliesRenderer.contents"};
_.W.showSubscribersOnlyDisclaimer_=function(l){(l=l.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(l))&&(_.Vh(this.hostElement,"yt-open-popup-action",[l,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.W.createCommentReplyAction_=function(l){l=_.we.unsafeClone(l);var D=_.M(l,JV7);if(l=D==null?void 0:D.contents){var U=this.commentIdToIndex_(D==null?void 0:D.parentCommentId);if(!(U<0)){var n=this.getRepliesPath_(U);if(this.get(n)){D=D.replyToCommentId;n=this.getRepliesContentsPath_(U,!1);if(this.get(n)){var y=this.get(n).length,A=n+"."+(y-1)+".continuationItemRenderer";this.get(A+".button")?(A=this.replyIdToIndex_(D,U,!1),this.doReplyInsert_(n,l,A,y-1)):this.get(A)||(y=this.replyIdToIndex_(D,U,
!1),this.doReplyInsert_(n,l,y,null))}n=this.getRepliesContentsPath_(U,!0);this.get(n)?(U=this.replyIdToIndex_(D,U,!0),(!D||U>=0)&&this.doReplyInsert_(n,l,U,null)):this.set(n,[l])}else this.set(n,{commentRepliesRenderer:{teaserContents:[l]}})}}};
_.W.hideReportedCommentAction_=function(l){var D=_.M(l,oAm);if(l=D==null?void 0:D.commentId)(D=this.get("parentCommentId",D))||(D=this.getParentCommentId_(l)),this.remove_(l,D)};
_.W.getParentCommentId_=function(l){l=l.split(".");if(l[1])return l[0]};
_.W.removeCommentAction_=function(l){var D=_.M(l,Znr);if(l=D==null?void 0:D.commentId)D=(D==null?void 0:D.parentCommentId)||this.getParentCommentId_(l),this.remove_(l,D)};
_.W.pinCommentAction_=function(l){l=_.we.unsafeClone(l);var D=_.M(l,RVk);D!=null&&D.commentId&&(l=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",l))&&(this.remove_(D.commentId),this.insert_(l,!0))};
_.W.unpinCommentAction_=function(l){l=_.we.unsafeClone(l);l=_.M(l,eVh);if(l!=null&&l.commentId){var D,U,n=(D=l.actionResult)==null?void 0:(U=D.update)==null?void 0:U.commentThreadRenderer;n&&(this.remove_(l.commentId),this.insert_(n))}};
_.W.banAuthorAction_=function(l){var D=_.M(l,Qdk);D!=null&&D.commentId&&(l=D.commentId,D=D.parentCommentId||this.getParentCommentId_(l),this.remove_(l,D))};
_.W.handleScrollToCommentElement_=function(l){this.hostElement.contains(l)&&(this.nearestScrollParent||(this.nearestScrollParent=oL_(l)),this.isCommentVisibleInScrollParent(l)||l.scrollIntoView({behavior:"smooth",block:"start"}))};
_.W.isCommentVisibleInScrollParent=function(l){if(!this.nearestScrollParent)return!1;l=l.getBoundingClientRect();var D=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return l.top>=D.top&&l.bottom<=D.bottom};
_.W.commentIdToIndex_=function(l){var D;return l&&(D=this.data)!=null&&D.contents?this.data.contents.findIndex(function(U){U=U.commentThreadRenderer;var n;return l===((U==null?void 0:U.commentViewModel)&&((n=_.M(U.commentViewModel,Kly))==null?void 0:n.commentId))}):-1};
_.W.insert_=function(l,D){D=D===void 0?!1:D;var U,n;if((U=this.data)==null?0:(n=U.contents)==null?0:n.some(function(A){return!!A.commentThreadRenderer}))for(U=0,n=this.data.contents.length;U<n;U++){var y=this.data.contents[U].commentThreadRenderer;
if(lv5[l.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=lv5[y.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){D&&lv5[l.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===lv5[y.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",U,1,{commentThreadRenderer:l}):this.splice("data.contents",U,0,{commentThreadRenderer:l});break}}else this.set("data.contents",[{commentThreadRenderer:l}])};
_.W.doReplyRemove_=function(l,D,U){l=this.replyIdToIndex_(l,D,U);l<0||(D=this.getRepliesContentsPath_(D,U),this.splice(D,l,1))};
_.W.remove_=function(l,D){D=this.commentIdToIndex_(D);D<0?(D=this.commentIdToIndex_(l),D<0||this.splice("data.contents",D,1)):_.q("web_delhi_comment_threads")||(this.doReplyRemove_(l,D,!1),this.doReplyRemove_(l,D,!0))};
_.W.replyIdToIndex_=function(l,D,U){if(D<0)return-1;D=this.getRepliesContentsPath_(D,U);D=this.get(D);if(!D||!D.length)return-1;U=0;for(var n=D.length;U<n;U++){var y=void 0,A=void 0;if(((y=D[U])==null?void 0:(A=y.commentViewModel)==null?void 0:A.commentId)===l)return U}return-1};
_.W.tickForCommentsTimer_=function(l){_.tJ(l,void 0,"wn_comments")};
_.W.reloadComments_=function(l){l=_.M(l,kLg);_.M(l==null?void 0:l.command,_.ko)&&_.lu(this.hostElement,[l==null?void 0:l.command])};
_.QP.Object.defineProperties(bA.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return!!((l=this.data)==null?0:(D=l.header)==null?0:(U=D.commentsHeaderRenderer)==null?0:U.isBackstageContent)}}});
_.QP.Object.defineProperties(bA,{template:{configurable:!0,enumerable:!0,get:function(){if(iPJ===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);iPJ=l}l=iPJ;return l}}});
bA.prototype.showSubscribersOnlyDisclaimer_=bA.prototype.showSubscribersOnlyDisclaimer_;bA.prototype.headerChanged_=bA.prototype.headerChanged_;bA.prototype.contentsChanged_=bA.prototype.contentsChanged_;_.E([_.m(_.LF),_.T("design:type",Object)],bA.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",Function)],bA.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],bA.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],bA.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.header.commentsHeaderRenderer.isBackstageContent"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],bA.prototype,"isBackstage",null);
_.E([_.K(),_.T("design:type",Object)],bA.prototype,"disablePrescanVisibility",void 0);_.E([_.K(),_.T("design:type",Object)],bA.prototype,"canScheduleJobs",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],bA.prototype,"engagementPanel",void 0);_.E([_.K(),_.T("design:type",Object)],bA.prototype,"hidePanelButton",void 0);_.E([_.K(),_.T("design:type",Object)],bA.prototype,"isWatchGrid",void 0);_.E([_.K(),_.T("design:type",Object)],bA.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.E([_.Pg("data.contents"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bA.prototype,"contentsChanged_",null);_.E([_.Pg("data.header"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bA.prototype,"headerChanged_",null);_.E([_.hj("yt-show-subscribers-only-disclaimer"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],bA.prototype,"showSubscribersOnlyDisclaimer_",null);
_.E([_.x({is:"ytd-comments"})],bA);var gn=function(){return _.vg.apply(this,arguments)||this};
_.Z(gn,_.vg);_.W=gn.prototype;_.W.bindIf=function(l,D,U){return l?D:U};
_.W.bindIfDefined=function(l,D){return l!==void 0?l:D};
_.W.booleanString=function(l){return(!!l).toString()};
_.W.equals=function(){for(var l=_.EW.apply(0,arguments),D=l[0],U=1;U<l.length;U++)if(D!=l[U])return!1;return!0};
_.W.isGreaterThan=function(l,D){return l>D};
_.W.isLessThan=function(l,D){return l<D};
_.W.logicalAND=function(){for(var l=_.EW.apply(0,arguments),D=!!l[0],U=1;U<l.length;U++)D=D&&!!l[U];return D};
_.W.logicalOR=function(){for(var l=_.EW.apply(0,arguments),D=!!l[0],U=1;U<l.length;U++)D=D||!!l[U];return D};
_.W.toBool=function(l){return!!l};
gn.prototype.toBool=gn.prototype.toBool;gn.prototype.logicalOR=gn.prototype.logicalOR;gn.prototype.logicalAND=gn.prototype.logicalAND;gn.prototype.isLessThan=gn.prototype.isLessThan;gn.prototype.isGreaterThan=gn.prototype.isGreaterThan;gn.prototype.equals=gn.prototype.equals;gn.prototype.booleanString=gn.prototype.booleanString;gn.prototype.bindIfDefined=gn.prototype.bindIfDefined;gn.prototype.bindIf=gn.prototype.bindIf;_.E([_.Qj()],gn);_.DwW=[gn.prototype];var UwT;var n88;var uA=function(){return _.p.apply(this,arguments)||this};
_.Z(uA,_.p);uA.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
uA.prototype.onBackIconTap_=function(){window.history.back()};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],uA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],uA.prototype,"data",void 0);_.E([_.S0({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],uA);
_.r(uA,"yt-header-with-back-renderer",function(){if(n88===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;UwT===void 0&&(UwT=document.createElement("template"));var n=UwT;U.call(D,n.content.cloneNode(!0),l.content.firstChild);n88=l}l=n88;return l},{mode:2});var yrJ;var ArT;var vi=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(vi,_.p);_.W=vi.prototype;_.W.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.W.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&(this.isDarkTheme=l,this.setUrl())};
_.W.dataChanged=function(){var l=this;if(this.data){var D=this.setUrl();D&&_.nT({destination:window,iframe:this.iframe,origin:_.W7h(D.toString()),channelName:"yt-iframe",onMessage:function(U){(U=l.getCommunicationCommand(U.data))&&l.ytComponentBehavior.resolveCommand(U)},
onEstablished:function(){}})}};
_.W.setUrl=function(){if(this.data&&this.data.iframeUrl){var l=_.I2(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(l)return _.i8(this.iframe,l),l}};
_.W.getCommunicationCommand=function(l){var D;if((D=this.data)!=null&&D.onCommunicationCommandsMap){D=this.data.onCommunicationCommandsMap.find(function(y){return y.key===l});
if(D==null?0:D.value)return D==null?void 0:D.value;try{var U=Iq_(_.Oc(l)),n=this.data.onCommunicationCommandsMap.find(function(y){return y.key===(U==null?void 0:U.getMethodName())});
if(n==null?0:n.value)return n==null?void 0:n.value}catch(y){}}};
vi.prototype.dataChanged=vi.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],vi.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],vi.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vi.prototype,"data",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],vi.prototype,"isDarkTheme",void 0);_.E([_.gP("#iframe"),_.T("design:type",HTMLIFrameElement)],vi.prototype,"iframe",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vi.prototype,"dataChanged",null);_.E([_.S0({is:"yt-iframe-renderer",disableElementRegistration:!0})],vi);
_.r(vi,"yt-iframe-renderer",function(){if(ArT===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;yrJ===void 0&&(yrJ=document.createElement("template"));var n=yrJ;U.call(D,n.content.cloneNode(!0),l.content.firstChild);ArT=l}l=ArT;return l},{mode:2});_.Qz=function(l){_.xT.call(this);this.callback=l;this.bezier=new nXg(0,0,.4,0,.2,1,1,1);this.delay=new _.LS(this.next,window,this);this.JSC$17137_animating=!1;_.m7(this,this.delay)};
_.Z(_.Qz,_.xT);_.Qz.prototype.isAnimating=function(){return this.JSC$17137_animating};
_.Qz.prototype.start=function(l,D,U){this.config={from:l,to:D,duration:U,startTime:(0,_.J3)()};this.JSC$17137_animating=!0;this.next()};
_.Qz.prototype.stop=function(){this.delay.stop();this.JSC$17137_animating=!1;this.config=void 0};
_.Qz.prototype.next=function(){if(this.config){var l=this.config,D=l.from,U=l.to,n=l.duration;l=l.startTime;var y=(0,_.J3)()-l;l=this.bezier;n=ABv(l,y/n);if(n==0)l=l.y0;else if(n==1)l=l.y3;else{y=aR(l.y0,l.y1,n);var A=aR(l.y1,l.y2,n);l=aR(l.y2,l.y3,n);y=aR(y,A,n);A=aR(A,l,n);l=aR(y,A,n)}l=_.tS(l,0,1);this.callback(D+(U-D)*l);l<1?this.delay.start():this.JSC$17137_animating=!1}};_.GG=new _.A7("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var WJJ={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},C$5=function(l,D,U,n){_.xT.call(this);this.JSC$17148_miniAppId=l;this.localReleaseId=D;this.derivedDeviceInterface=U;this.isForeground=n;this.JSC$17148_playNonceResolver=new _.Au;this.playPingTimerId=NaN;this.playPingIntervalMs=_.RG("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.RG("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.q("enable_displaying_ppn");this.JSC$17148_miniAppClientDataProvider=_.Jc().resolve(_.GG);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;BHJ(this);var y=setTimeout(function(){_.II(new _.rc("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17148_playNonceResolver.promise.then(function(){clearTimeout(y)})};
_.Z(C$5,_.xT);var P$$=function(l,D){l.JSC$17148_playNonceResolver.resolve(D!=null?D:eG(8));l.enableDisplayingPpn&&h88(l).then(function(U){l.JSC$17148_miniAppClientDataProvider.clientData.set("post_play_nonce",U)})},h88=function(l){return _.P(function(D){return D.nextAddress==1?D.yield(l.JSC$17148_playNonceResolver.promise,2):D.return(D.yieldResult)})},BHJ=function(l){var D,U;
_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$17148_playNonceResolver.promise,2);D=n.yieldResult;U={miniAppInfo:{externalPostId:l.JSC$17148_miniAppId,localReleaseId:l.localReleaseId,postPlayNonce:D,derivedDeviceInterface:l.derivedDeviceInterface}};_.ZP(U);_.Kz(n)})},g8W=function(l){l.state!==0?_.II(new _.rc("[MiniAppPlayLogger] recordPlayStart failed with state "+WJJ[l.state])):(l.state=1,JT(l,"ma_cl"),Lf(l,"PLAY_EVENT_TYPE_PLAY_START"),bPJ(l))},uJH=function(l){l.isForeground=!1;
Lf(l,"PLAY_EVENT_TYPE_PLAY_PAUSE")},v82=function(l){l.state!==1&&l.state!==2?_.II(new _.rc("[MiniAppPlayLogger] recordPlayEnd failed with state "+WJJ[l.state])):(l.state=3,window.clearInterval(l.playPingTimerId),l.playPingTimerId=NaN,E0$(),Lf(l,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Q$8=function(l,D){l.state===2&&l.gameReady&&(l.firstClickRecorded?Date.now()-l.clickRecordedMs<l.playClickIntervalMs||(l.clickRecordedMs=Date.now(),Lf(l,"PLAY_EVENT_TYPE_PLAY_CLICK")):D&&(JT(l,"ma_fua"),Lf(l,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),l.firstClickRecorded=!0,l.clickRecordedMs=Date.now()))};
C$5.prototype.logError=function(l){var D=this,U;_.P(function(n){if(n.nextAddress==1)return l.metadata.externalPostId=D.JSC$17148_miniAppId,U=l.metadata,n.yield(Promise.race([D.JSC$17148_playNonceResolver.promise,new Promise(function(y){setTimeout(function(){y("")},3E4)})]),2);
U.postPlayNonce=n.yieldResult;l.metadata.localReleaseId=D.localReleaseId;l.loggingError.level="WARNING";_.EU(l.loggingError,l.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:l.metadata});_.Kz(n)})};
var GTJ=function(l,D,U,n){var y,A,C,h,b,u;_.P(function(Q){if(Q.nextAddress==1)return Q.yield(l.JSC$17148_playNonceResolver.promise,2);y=Q.yieldResult;A={externalPostId:l.JSC$17148_miniAppId,localReleaseId:l.localReleaseId,postPlayNonce:y,sdkVersion:U,api:D};n!==void 0&&(A.networkRequestsMeasurement={networkRequests:_.Qp(n,1),cachedRequests:_.Qp(n,2),transferredBytes:_.Qp(n,3)},(C=n)==null?0:_.Pm(C,bv,6))&&(A.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((h=_.MZ(n,
bv,6))==null?void 0:me(h,1))||"0",cacheHits:((b=_.MZ(n,bv,6))==null?void 0:me(b,2))||"0",cachedBytes:((u=_.MZ(n,bv,6))==null?void 0:me(u,3))||"0"});_.Na("miniAppSdkUsage",A);_.Kz(Q)})},LJ8=function(l,D,U){var n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c;
_.P(function(N){if(N.nextAddress==1)return N.yield(l.JSC$17148_playNonceResolver.promise,2);n=N.yieldResult;y={externalPostId:l.JSC$17148_miniAppId,localReleaseId:l.localReleaseId,postPlayNonce:n,sdkVersion:U,measurementWindow:{startTimestampMs:String(MF(D,1)),endTimestampMs:String(MF(D,2))},frameRate:{averageFrameTimeDeltaMs:Rm(D,3),averageFrameIdleTimeMs:Rm(D,4)}};_.Pm(D,gA,5)&&(y.networkRequests={networkRequests:(A=q$(D))==null?void 0:_.Qp(A,1),cachedRequests:(C=q$(D))==null?void 0:_.Qp(C,2),transferredBytes:(h=
q$(D))==null?void 0:_.Qp(h,3),sameOriginStatusCodeToCounts:Jr5((b=q$(D))==null?void 0:p2g(b,4)),crossOriginStatusCodeToCounts:Jr5((u=q$(D))==null?void 0:p2g(u,5))},(Q=q$(D))==null?0:_.Pm(Q,bv,6))&&(y.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((G=q$(D))==null?void 0:(J=_.MZ(G,bv,6))==null?void 0:me(J,1))||"0",cacheHits:((L=q$(D))==null?void 0:(R=_.MZ(L,bv,6))==null?void 0:me(R,2))||"0",cachedBytes:((a=q$(D))==null?void 0:(S=_.MZ(a,bv,6))==null?void 0:me(S,3))||"0"});_.Pm(D,
wp7,7)&&(y.gameCapture={averageFrameTimeDeltaMs:(d=_.MZ(D,wp7,7))==null?void 0:Rm(d,1),averageFrameIdleTimeMs:(c=_.MZ(D,wp7,7))==null?void 0:Rm(c,2)});_.Na("miniAppPerformanceMetrics",y);_.Kz(N)})},q5v=function(l,D){var U,n;
return _.P(function(y){if(y.nextAddress==1)return y.yield(l.JSC$17148_playNonceResolver.promise,2);U=y.yieldResult;n={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:l.JSC$17148_miniAppId,postPlayNonce:U,miniAppReleaseId:l.localReleaseId},derivedDeviceInterface:l.derivedDeviceInterface,adTriggerType:D,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Na("miniAppAdEvent",n);_.Kz(y)})};
C$5.prototype.disposeInternal=function(){_.xT.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Lf=function(l,D,U,n){U=U===void 0?{}:U;n=n===void 0?!1:n;var y,A,C,h;_.P(function(b){if(b.nextAddress==1)return y=l.isForeground,A=l.beforeReady,b.yield(l.JSC$17148_playNonceResolver.promise,2);C=b.yieldResult;h={externalPostId:l.JSC$17148_miniAppId,localReleaseId:l.localReleaseId,derivedDeviceInterface:l.derivedDeviceInterface,postPlayNonce:C,type:D};U.sequenceGroup=C;h.playState=A?"PLAY_STATE_NOT_READY":y?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Na("miniAppPlayEvent",h,
U);n&&_.sU();_.Kz(b)})},JT=function(l,D){var U;
_.P(function(n){if(n.nextAddress==1)return U=(0,_.J3)(),n.yield(l.JSC$17148_playNonceResolver.promise,2);_.ae(D,U);_.Kz(n)})},bPJ=function(l){isNaN(l.playPingTimerId)&&(l.playPingTimerId=_.Xi(function(){l.state!==1&&l.state!==2?_.II(new _.rc("[MiniAppPlayLogger] reportPlayPing failed with state "+WJJ[l.state])):Lf(l,"PLAY_EVENT_TYPE_PLAY_PING")},l.playPingIntervalMs))},Jr5=function(l){return Array.from(l.entries()).map(function(D){var U=_.B(D);
D=U.next().value;U=U.next().value;return{key:D,value:U}})};var MW5=function(){},R8$=function(l,D){l.showMiniAppAdCommand=D.showMiniAppAdCommand;
l.isEmbeddedInWebview=D.isEmbeddedInWebview;l.playLogger=D.playLogger},e85=function(l,D){var U;
return _.P(function(n){if(n.nextAddress==1){if(!l.showMiniAppAdCommand||!l.isEmbeddedInWebview)return n.return(ZPq(l,D));l.adResolver=new _.Au;var y=new si;U=_.R2(y,3,D);tB(l.showMiniAppAdCommand,REy(U));return n.yield(l.adResolver.promise,2)}return n.return(n.yieldResult)})};
MW5.prototype.onAdFinished=function(l){l=Gr7(l);var D;(D=this.adResolver)==null||D.resolve(l)};
var ZPq=function(l,D){var U;return _.P(function(n){if(n.nextAddress==1)n=n.yield((U=l.playLogger)==null?void 0:q5v(U,s9_(D)),2);else{var y=n.return;var A=new Q8H;A=_.R2(A,1,2);n=y.call(n,A)}return n})};var mwH=new _.A7("INNERTUBE_MANAGER_TOKEN");var av2=function(){this.callbacks={}};
av2.prototype.initialize=function(l){var D=this;this.callbacks=l;window.youtubewebview?window.youtubewebview.onmessage=function(U){tW5(D,U)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(U){tW5(D,U)})};
var tW5=function(l,D){if(D.data)try{var U=Iq_(D.data);if(_.Zv(_.hU(U,1))!=null){var n=Q6k(_.Zo(U,2));switch(U.getMethodName()){case "yt-mini-app-load-audio-state":var y,A;(A=(y=l.callbacks).onAudioStateLoaded)==null||A.call(y,_.qF(n,pB(n,N$,1)));break;case "yt-mute-mini-app":var C,h;(h=(C=l.callbacks).onMuteMiniApp)==null||h.call(C);break;case "yt-unmute-mini-app":var b,u;(u=(b=l.callbacks).onUnmuteMiniApp)==null||u.call(b);break;case "yt-playable-exit":var Q,G;(G=(Q=l.callbacks).onExit)==null||G.call(Q);
break;case "yt-post-play-nonce":var J,L;(L=(J=l.callbacks).onPostPlayNonceReceived)==null||L.call(J,am(n,2,N$));break;case "yt-confirm-exit-mini-app":var R,a;(a=(R=l.callbacks).confirmExitMiniApp)==null||a.call(R);break;case "yt-confirm-exit-mini-app-edu":var S,d;(d=(S=l.callbacks).confirmExitMiniAppEdu)==null||d.call(S);break;case "yt-benchmarking-response":var c,N;(N=(c=l.callbacks).onNativeBenchmarkingMessageReceived)==null||N.call(c,am(n,2,N$));break;case "yt-mini-app-load-3p-consent-state":var z,
f;(f=(z=l.callbacks).multiplayer3pAckStateLoaded)==null||f.call(z,_.qF(n,pB(n,N$,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var I,iG;(iG=(I=l.callbacks).exitMiniAppSeenStateLoaded)==null||iG.call(I,_.qF(n,pB(n,N$,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var CC,vo;(vo=(CC=l.callbacks).onNavigateToNewMiniApp)==null||vo.call(CC);break;case "yt-game-data-available":var td,GN;(GN=(td=l.callbacks).onGameDataAvailable)==null||GN.call(td,am(n,2,N$));break;case "yt-pause-mini-app":var Ms,
j3;(j3=(Ms=l.callbacks).onPauseMiniApp)==null||j3.call(Ms);break;case "yt-resume-mini-app":var wl,zN;(zN=(wl=l.callbacks).onResumeMiniApp)==null||zN.call(wl);break;case "yt-playable-ad-finished":var Z7,Lm;(Lm=(Z7=l.callbacks).onAdFinished)==null||Lm.call(Z7,am(n,2,N$))}}else _.II(Error("Vh"))}catch(Vg){_.EU(Error("Wh"))}else _.II(Error("Xh"))};var TYd=function(l){this.rpcErrorCode=l};var qI=function(l,D,U){this.intervalMs=l;this.apiFunc=D;this.type=U;this.schedulerReady=!0};
qI.prototype.call=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1){if(D.type!==1&&l===D.cachedValue)return n.return();D.pendingApiRequestResolver||(D.pendingApiRequestResolver=new _.Au);U=D.pendingApiRequestResolver.promise;D.cachedValue=l;return n.yield(X2H(D),2)}return n.return(U)})};
qI.prototype.flush=function(l){l=l===void 0?!1:l;var D=this;return _.P(function(U){return D.cachedValue===void 0?U.return():U.yield(D.apiFunc(D.cachedValue,l),0)})};
var X2H=function(l){var D,U,n;return _.P(function(y){switch(y.nextAddress){case 1:if(!l.schedulerReady||!l.pendingApiRequestResolver)return y.return();l.schedulerReady=!1;D=l.pendingApiRequestResolver;l.pendingApiRequestResolver=void 0;_.ZY(y,2);if(l.cachedValue===void 0){y.jumpTo(4);break}return y.yield(l.apiFunc(l.cachedValue),5);case 5:U=y.yieldResult,D.resolve(U);case 4:_.WG(y,3);break;case 2:n=_.kF(y),D.reject(n);case 3:setTimeout(function(){return _.P(function(A){l.schedulerReady=!0;return A.yield(X2H(l),
0)})},l.intervalMs),_.Kz(y)}})};var YT3=window.location.origin+"/miniapp_cloudsaves",IA$=[400,401],S58=_.RG("cloud_save_game_data_rate_limit_ms",3E3),KJ$=function(l){var D=this;this.JSC$17192_miniAppId=l;this.loadAttempts=0;this.cloudSaveIntervalMs=S58;this.initialDownloadDataSucceeded=!1;this.JSC$17192_playNonceResolver=new _.Au;this.scottyUploadRateLimiter=new qI(this.cloudSaveIntervalMs,function(U,n){return kTT(D,U,n)},2);
this.downloadDataPromise=dwP(this);this.downloadDataPromise.then(function(){D.initialDownloadDataSucceeded=!0}).catch(function(){})},crJ=function(l,D){D.then(function(U){return l.JSC$17192_playNonceResolver.resolve(U)})},p2q=function(l){return _.P(function(D){return l.cachedData===void 0?D.return(l.downloadDataPromise):D.return(l.cachedData)})},xw8=function(l,D){return _.P(function(U){l.cachedData=D;
if(!l.initialDownloadDataSucceeded)throw Error("Yh");return U.yield(l.scottyUploadRateLimiter.call(D),0)})},j$$=function(){return new Promise(function(l){setTimeout(l,1E3,"")})},FJ5=function(l,D){var U,n;
return _.P(function(y){if(y.nextAddress==1)return U=l.JSC$17192_miniAppId,y.yield(Promise.race([l.JSC$17192_playNonceResolver.promise,j$$()]),2);n={"X-YouTube-MiniAppId":U,"X-YouTube-PostPlayNonce":y.yieldResult};"DELEGATED_SESSION_ID"in _.TZ&&hQG(D,n);return y.return(n)})},kTT=function(l,D,U){U=U===void 0?!1:U;
return _.P(function(n){return EL$()?_.q("enable_cloud_save_error_popup_after_retry")?n.return(new Promise(function(y,A){var C,h,b,u,Q;return _.P(function(G){switch(G.nextAddress){case 1:C=0,h=!0,u=b=null;case 2:if(!(h&&C++<2)){G.jumpTo(4);break}_.ZY(G,5);return G.yield(o8$(l,D,U),7);case 7:b=G.yieldResult;h=b.ok?!1:!IA$.includes(b.status);_.WG(G,2);break;case 5:u=Q=_.kF(G);h=Hjd(u);G.jumpTo(2);break;case 4:b?b.ok?(MI(l,S58),y()):(MI(l,l.cloudSaveIntervalMs*2),A(Error("Zh`"+String(b.status),{cause:{rpcErrorCode:b.status}}))):
(MI(l,l.cloudSaveIntervalMs*2),A(u||Error("$h"))),_.Kz(G)}})})):n.return(new Promise(function(y,A){var C,h;
return _.P(function(b){if(b.nextAddress==1){if(l.JSC$17192_miniAppId==="")return A(Error("ai")),b.return();_.ZY(b,2);return b.yield(o8$(l,D,U),4)}if(b.nextAddress!=2)return C=b.yieldResult,C.ok?(MI(l,S58),y()):(MI(l,l.cloudSaveIntervalMs*2),A(Error("Zh`"+String(C.status),{cause:{rpcErrorCode:C.status}}))),_.WG(b,0);h=_.kF(b);MI(l,l.cloudSaveIntervalMs*2);A(h);_.Kz(b)})})):n.return()})},o8$=function(l,D,U){U=U===void 0?!1:U;
var n,y,A;return _.P(function(C){if(C.nextAddress==1)return n=_.c2((new TextEncoder).encode(D)),y=Ojd(),C.yield(FJ5(l,y),2);A=C.yieldResult;return C.return(fetch(y,{method:"POST",body:new Blob([n]),headers:A,keepalive:U}))})},dwP=function(l){var D,U;
return _.P(function(n){if(n.nextAddress==1){if(!EL$())return n.return("");if(l.JSC$17192_miniAppId==="")throw Error("ai");if(l.loadAttempts>2)return n.return(l.downloadDataPromise);_.ZY(n,2);return n.yield(w28(l),4)}if(n.nextAddress!=2)return D=n.yieldResult,n.return(D);U=_.kF(n);if(Hjd(U)&&++l.loadAttempts<2)return n.return(dwP(l));throw U;})},w28=function(l){var D,U,n,y,A;
return _.P(function(C){switch(C.nextAddress){case 1:return _.ZY(C,2),D=Ojd(),C.yield(FJ5(l,D),4);case 4:return U=C.yieldResult,C.yield(fetch(D,{method:"GET",headers:U}),5);case 5:return n=C.yieldResult,n.ok?C.yield(n.text(),6):C.return(Promise.reject(Error("bi`"+String(n.status),{cause:new TYd(n.status)})));case 6:return y=C.yieldResult,C.return((new TextDecoder).decode(_.Oc(y)));case 2:return A=_.kF(C),C.return(Promise.reject(A))}})},MI=function(l,D){l.cloudSaveIntervalMs=D;
l.scottyUploadRateLimiter.intervalMs=l.cloudSaveIntervalMs};
KJ$.prototype.flush=function(){var l=this;return _.P(function(D){return l.initialDownloadDataSucceeded?D.yield(l.scottyUploadRateLimiter.flush(!0),0):D.return()})};var rr2=JM(Gd(1),vL(1)),z88=JM(Gd(1),vL(3)),RK=function(l){this.callbacks=l};
_.W=RK.prototype;_.W.onAudioToggled=function(l,D){(D===void 0||D)&&_.qN("yt-mini-app-is-audio-enabled",l,2592E3)};
_.W.onPause=function(){this.onAudioToggled(!1,!1)};
_.W.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.W.returnNativeBenchmarkingMessage=function(){};
_.W.sendGameData=function(){};
_.W.sendStartGameFrameCapture=function(){};
var VRg=function(l,D,U){this.callbacks=l;var n=this;this.sdkVersion=new _.Au;this.channel=new gCy(_.nT({destination:window,iframe:D,origin:(new URL(U.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var y=Zd;var A=Gd(5);var C=new arH;C=_.X9(C,1,1E4);A=_.tk(A,4,ppk,C);y(n,A);n.onAudioToggled(n.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){n.sdkVersion.resolve("")},1E4)};
_.Z(VRg,RK);_.W=VRg.prototype;_.W.onAudioToggled=function(l,D){RK.prototype.onAudioToggled.call(this,l,D===void 0?!0:D);D=Zd;var U=Gd(2),n=new eNm;l=_.qx(n,1,l);l=_.tk(U,3,ppk,l);D(this,l)};
_.W.onPause=function(){RK.prototype.onPause.call(this);Zd(this,Gd(3))};
_.W.onResume=function(){RK.prototype.onResume.call(this);Zd(this,Gd(4))};
_.W.returnNativeBenchmarkingMessage=function(l){var D=Zd,U=Gd(6);var n=vL(_.Pm(l,Hl,1)?1:2);l=_.Pm(l,Hl,1)?l:null;n=_.tk(n,5,Qw,l);D(this,JM(U,n))};
_.W.sendGameData=function(l){var D=Zd,U=Gd(7);l=_.tk(U,5,ppk,l);D(this,l)};
_.W.sendStartGameFrameCapture=function(){Zd(this,Gd(9))};
var eI=function(l,D,U){var n,y,A;return _.P(function(C){if(C.nextAddress==1)return n=l.callbacks,y=n.onSdkCalled,A=D,C.yield(l.sdkVersion.promise,2);y.call(n,A,C.yieldResult,U);_.Kz(C)})};
VRg.prototype.onMessage=function(){var l=this;return Ql7(M$,function(D){var U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I,iG,CC,vo,td,GN,Ms,j3,wl,zN,Z7,Lm,Vg,v5,mk,dy,eW,Qq,Bo,D7,qr,H5,Mr,V_,ec,Nr;return _.P(function(gy){switch(gy.nextAddress){case 1:if(!$Hm(D.data))return _.II(Error("ci")),gy.return();U=_.eY(D.data,1);_.q("enable_iframe_message_get_type_via_fields")&&(n=D.data,U=y=_.eY(n,1));switch(U){case 8:if(D.data.hasMetadata()){var uH=l.sdkVersion,yq=uH.resolve;var TN=D.data.getMetadata();TN=_.Zo(TN,
1);yq.call(uH,TN);clearTimeout(l.sdkVersionTimeoutId)}break;case 6:return gy.jumpTo(2);case 16:if(!_.bB(D.data,FS1,14,R6))return gy.return();A=_.tU(D.data,FS1,14,R6);(h=(C=l.callbacks).onGameFrameReceived)==null||h.call(C,A);return gy.return();case 17:if(!_.bB(D.data,j81,15,R6))return gy.return();(u=(b=l.callbacks).onGameAudioReceived)==null||u.call(b,_.tU(D.data,j81,15,R6));return gy.return();case 1:if(uH=_.tU(D.data,Sg1,2,R6))switch(_.eY(uH,1)){case 1:l.callbacks.onFirstFrameReady();if(_.q("enable_network_request_logging_on_game_events")&&
_.Pm(uH,gA,4)){eI(l,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.MZ(uH,gA,4));break}eI(l,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(TN=(yq=l.callbacks).onGameReady)==null||TN.call(yq);if(_.q("enable_network_request_logging_on_game_events")&&_.Pm(uH,gA,4)){eI(l,"MINI_APP_SDK_API_GAME_READY",_.MZ(uH,gA,4));break}eI(l,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.bB(uH,uv,3,kr5))l.callbacks.onResourceLoaded(_.tU(uH,uv,3,kr5))}return gy.return();case 3:return gy.jumpTo(3);case 4:return gy.jumpTo(4);
case 2:return gy.jumpTo(5);case 9:return gy.jumpTo(6);case 10:return l.callbacks.onClick(),gy.return();case 5:return gy.jumpTo(7);case 11:if(!_.bB(D.data,hM,9,R6))return gy.return();Q=_.tU(D.data,hM,9,R6);(J=(G=l.callbacks).onBenchmarkingMessageReceived)==null||J.call(G,Q);uH=D.reply;yq=Gd(1);TN=vL(1);var l$=new hM;var uw=new Uint8Array(Kky(Q,pB(Q,LS7,6))|0);l$=S2(l$,5,LS7,_.c5(uw,!1));TN=_.tk(TN,5,Qw,l$);uH.call(D,JM(yq,TN));return gy.return();case 12:return gy.jumpTo(8);case 13:return gy.jumpTo(9);
case 15:if(!_.q("enable_open_yt_content"))return D.reply(z88),gy.return();if(!_.bB(D.data,xHz,12,R6))return D.reply(JM(Gd(1),vL(2))),gy.return();uH=_.tU(D.data,xHz,12,R6);L=_.Zo(uH,1);l.callbacks.onOpenYTContent(L);D.reply(rr2);return gy.return();case 14:return gy.jumpTo(10);default:return gy.return()}gy.jumpTo(0);break;case 2:if(!_.bB(D.data,L5,5,R6))return gy.return();yq=D.data;uH=pB(yq,R6,5);yq=yq.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R=o8G(yq,yq[_.y_]|0,L5,uH)||L5[w5B]||(L5[w5B]=
ry_(L5));uH=_.uO(R,PL,1,_.vE());a=_.B(uH);S=a.next();case 12:if(S.done){gy.jumpTo(14);break}d=S.value;c=new _.rc;c.level=_.eY(d,2)===1?"WARNING":"ERROR";N=lhl(d.getSource());return gy.yield(l.sdkVersion.promise,15);case 15:z={source:N,sdkVersion:gy.yieldResult};_.W2(_.hU(d,6))!=null?(c.message=d.getMessage(),c.stack=_.Zo(d,5),z.sdkErrorType=DLN(_.eY(d,6)),_.W2(_.hU(d,7))!=null&&(z.sdkApi=UL9(_.eY(d,7)))):c.stack=void 0;I=f=void 0;(I=(f=l.callbacks).onError)==null||I.call(f,{loggingError:c,metadata:z});
S=a.next();gy.jumpTo(12);break;case 14:return gy.return();case 3:return _.ZY(gy,16),uH=gy.yield,yq=l.callbacks,TN=yq.onSave,l$=_.tU(D.data,mH7,4,R6),l$=_.Zo(l$,1),uH.call(gy,TN.call(yq,l$),18);case 18:D.reply(rr2);_.WG(gy,17);break;case 16:return iG=_.kF(gy),CC=XZ,vo=iG,td=l.callbacks,GN="MINI_APP_SDK_API_SAVE_DATA",gy.yield(l.sdkVersion.promise,19);case 19:CC(vo,td,GN,gy.yieldResult),D.reply(z88);case 17:return gy.yield(eI(l,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return gy.return();case 4:return _.ZY(gy,
21),gy.yield(l.callbacks.onLoad(),23);case 23:Ms=gy.yieldResult;uH=D.reply;yq=Gd(1);TN=vL(1);l$=new mH7;l$=_.c7(l$,1,Ms);TN=_.tk(TN,3,Qw,l$);uH.call(D,JM(yq,TN));_.WG(gy,22);break;case 21:return j3=_.kF(gy),wl=XZ,zN=j3,Z7=l.callbacks,Lm="MINI_APP_SDK_API_LOAD_DATA",gy.yield(l.sdkVersion.promise,24);case 24:wl(zN,Z7,Lm,gy.yieldResult),D.reply(z88);case 22:return gy.yield(eI(l,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return gy.return();case 5:_.ZY(gy,26);l.callbacks.onSendHighScore(Ed(_.tU(D.data,
zNv,3,R6).getValue()));D.reply(JM(Gd(1),vL(1)));_.WG(gy,27);break;case 26:return Vg=_.kF(gy),v5=XZ,mk=Vg,dy=l.callbacks,eW="MINI_APP_SDK_API_SEND_SCORE",gy.yield(l.sdkVersion.promise,28);case 28:v5(mk,dy,eW,gy.yieldResult),D.reply(z88);case 27:return gy.yield(eI(l,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return gy.return();case 6:if(!_.bB(D.data,frg,8,R6)){gy.jumpTo(30);break}uH=gy.yield;yq=_.tU(D.data,frg,8,R6);yq=_.eY(yq,1);return uH.call(gy,eI(l,UL9(yq)),30);case 30:return gy.return();case 7:return uH=
D.reply,yq=Gd(1),TN=vL(1),l$=l.callbacks.getLanguage(),TN=S2(TN,4,Qw,Mw(l$)),uH.call(D,JM(yq,TN)),gy.yield(eI(l,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return gy.return();case 8:if(!_.bB(D.data,r8m,10,R6))return gy.return();Qq=_.tU(D.data,r8m,10,R6);Bo=l.callbacks;D7=Bo.onSdkPerformanceUpdate;return gy.yield(l.sdkVersion.promise,33);case 33:return D7.call(Bo,Qq,gy.yieldResult),gy.return();case 9:uH=D.data;yq=pB(uH,R6,11);if(_.Zv(_.hU(uH,yq))==null)return D.reply(JM(Gd(1),vL(2))),gy.return();
qr=am(D.data,11,R6);l.callbacks.onShareInviteCode(qr);D.reply(rr2);return gy.yield(eI(l,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return gy.return();case 10:if(_.bB(D.data,ZLy,13,R6)){gy.jumpTo(35);break}return gy.yield(l.callbacks.onShowMiniAppAd(2),36);case 36:return H5=gy.yieldResult,D.reply(JM(Gd(1),KS7(H5))),gy.yield(eI(l,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return gy.return();case 35:uH=_.tU(D.data,ZLy,13,R6);a:switch(_.eY(uH,1)){case 1:uH={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:uH={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:uH={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Mr=uH;V_=Mr.adType;ec=Mr.sdkApi;uH=gy.yield;yq=l.callbacks;TN=yq.onShowMiniAppAd;l$=_.tU(D.data,ZLy,13,R6);l$=_.Zo(l$,2);return uH.call(gy,TN.call(yq,V_,l$||void 0),38);case 38:return Nr=gy.yieldResult,D.reply(JM(Gd(1),KS7(Nr))),gy.yield(eI(l,ec),39);case 39:return gy.return()}})})};
var Zd=function(l,D){_.P(function(U){l.channel.send(D);_.Kz(U)})},St=function(l,D,U){this.callbacks=l;
var n=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;l=VDK(D,(new URL(U.toString())).origin);this.gameSnacks=new SW8(l);this.gameSnacks.page.onReady(function(){n.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){n.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var y,A;(A=(y=n.callbacks).onGameReady)==null||A.call(y)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(y,A){try{n.callbacks.onSendHighScore(A)}catch(C){XZ(C,n.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(y,A){var C;return _.P(function(h){if(h.nextAddress==1)return _.ZY(h,2),h.yield(n.callbacks.onSave(n.decoder.decode(A)),4);if(h.nextAddress!=2)return _.WG(h,0);C=_.kF(h);XZ(C,n.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return h.return()})});
this.gameSnacks.storage.onLoad(function(){var y,A;return _.P(function(C){if(C.nextAddress==1)return _.ZY(C,2),C.yield(n.callbacks.onLoad(),4);if(C.nextAddress!=2)return y=C.yieldResult,C.return(n.encoder.encode(y));A=_.kF(C);XZ(A,n.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return C.return(n.encoder.encode(""))})});
this.gameSnacks.init()};
_.Z(St,RK);St.prototype.onAudioToggled=function(l,D){RK.prototype.onAudioToggled.call(this,l,D===void 0?!0:D);var U;(U=this.gameSnacks)==null||U.audio.update(l)};
St.prototype.onPause=function(){RK.prototype.onPause.call(this);var l;(l=this.gameSnacks)==null||l.game.pause()};
St.prototype.onResume=function(){RK.prototype.onResume.call(this);var l;(l=this.gameSnacks)==null||l.game.resume()};var fvr=n_g,$wq=_.w(function(l){var D=l.data;var U=l.loadingProgress;var n=l.forPaused;l=_.B(_.aw("",void 0,"LYYTdd"));var y=l.next().value,A=l.next().value;l=_.B(_.aw(!1,void 0,"K0waae"));var C=l.next().value,h=l.next().value,b=[],u=function(){return"transform: scaleX("+(_.EP(U)||0)+")"},Q=null,G=function(){return D()&&Q!==null&&Q!==void 0?Q:Q=D().showAnniversaryAnimation?6:fvr()};
_.$i(function(){var a;if(D().timeOutMessages&&((a=D().timeOutMessages)==null?0:a.length)){Q=null;a=_.B(b);for(var S=a.next();!S.done;S=a.next())clearTimeout(S.value);b.length=0;yE9(D().timeOutMessages,b,A,h)}},"BNu9j");
var J=function(){return!!D().persistentErrorMessageTitle},L=function(){return U!==void 0},R=function(){return D().title};
return _.g("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.g("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.g("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.g("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var a,S=(a=D().backgroundImage)==null?void 0:a.sources,d;return(S==null?0:S.length)?"background-image: url("+((d=S[0])==null?void 0:d.url)+")":""}}),_.g("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.g(_.v,{cond:function(){return!J()&&!(n==null?0:n())},
then:function(){var a={};return _.g("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.g("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.g(_.cO,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+G()},
data:function(){var S="loading_animation_"+G();return{animationConfig:{name:S,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+S+".json",loop:!0,autoplay:!0}}}})),_.g("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.g(_.v,{cond:R,
then:function(){return _.g("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},R)}}),_.g("p",{class:_.DV("miniAppSplashScreenViewModelTimeoutMessage",(a.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return C()},a)),
"aria-live":"polite"},y),_.g(_.v,{cond:L,then:function(){return _.g("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.g("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:u}))}})))}}),_.g(_.v,{cond:J,
then:function(){return _.g("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.g("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return D().persistentErrorMessageTitle}),_.g(_.v,{cond:function(){return!!D().persistentErrorMessageDescription},
then:function(){return _.g("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return D().persistentErrorMessageDescription})}}))}}),_.g(_.v,{cond:n,
then:function(){return _.g("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.g("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.g("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},R))}})))},"Of");var NH$=new _.A7("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var s$8=P3;P3=function(l){function D(U){if(U){var n,y;(n=U.__spec)==null||(y=n.didUnmount)==null||y.call(n);for(n=0;n<U.childNodes.length;n++)D(U.childNodes[n])}}
s$8==null||s$8(l);qD(function(){for(var U=0;U<l.length;U++)D(l[U])})};var E8T=_.w(function(l){var D=l.data;var U=l.score;var n=l.formattedScore;var y=l.onScoreChanged;var A=l.isEmbeddedInWebview;var C=_.gm("yt-mini-app-score-button-view-model"),h=function(){var L;return _.M(D==null?void 0:(L=D())==null?void 0:L.buttonViewModel,_.CM)},b=function(){var L;
return(U==null?void 0:U())||Number(D==null?void 0:(L=D())==null?void 0:L.lastScore)||0},u=function(){var L;
return(n==null?void 0:n())||((L=h())==null?void 0:L.title)||""},Q,G=1;
if(l=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))l=Number(l),G=isNaN(l)?1:l/100;_.$i(function(){y==null||y(b());var L;var R=_.te((L=h())==null?void 0:L.onTap);if(R){L=_.M(R,nOz);var a,S,d;L=_.M(L==null?void 0:(a=L.panelLoadingStrategy)==null?void 0:(S=a.inlineContent)==null?void 0:(d=S.dialogViewModel)==null?void 0:d.customContent,Z5g)}else L=void 0;if(a=L)a.score=u()},"Aekez");
l=_.n0(function(){var L,R,a=D==null?void 0:(L=D())==null?void 0:(R=L.loggingDirectives)==null?void 0:R.trackingParams;a&&_.jm(_.Jc().resolve(_.$k),a);return!1});
_.N1(function(){if(C.value){var L=C.value.querySelector("button"),R=h();L&&R&&AEs(L,R);_.QE("yt-share-playable-with-high-score",function(){var a=b().toString(),S=D==null?void 0:D().onShareHighScoreCommand,d=D==null?void 0:D().highScoreShareClientParamIdentifier,c=A==null?void 0:A();S&&(c?(d=new NSz,a=_.c7(d,2,a),tB(S,a.JSC$12606_serializeBinary())):d&&(_.Jc().resolve(NH$).clientParams.set(d,{miniAppClientParams:{highScore:a}}),z73(S,!1)))})}});
var J=function(){var L=h();L&&(U==null?0:U())&&L.accessibilityText&&(L.accessibilityText=L.accessibilityText.replace(Q,u()));Q=u();return{numberValue:b(),numberText:u(),heightPx:36,fontSizeMultiplier:G,shouldAnimate:!(U==null||!U())&&!0}};
return _.g("yt-mini-app-score-button-view-model",{class:function(){var L={};return _.MJ("miniAppScoreButtonViewModelHost",(L.miniAppScoreButtonViewModelIsVisible=b()!==0,L))},
el:C,"on:click":l},vHN(!1,function(){return _.g("span",{style:"display:none;"},b)}),_.g(_.uI,{data:function(){var L;
return D==null?void 0:(L=D())==null?void 0:L.buttonViewModel}},{buttonViewModel:function(L){return _.g(_.t9,{data:L.data,
animatedTextProps:J})}}))},"Qf");var OP8=_.w(function(l){var D,U=(D=_.MN("yt-mini-app-is-theater-mode-enabled"))!=null?D:!1,n=_.q("enable_playable_container_save_button"),y=_.q("enable_play_next_destination_page_in_toolbar");D={};return _.g("ytm-mini-app-top-bar-view-model",null,_.g("div",{class:_.DV("yt-mini-app-top-bar-view-model",(D["yt-mini-app-top-bar-view-model--mobile"]=!1,D["yt-mini-app-top-bar-view-model--desktop"]=!0,D))},_.g("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.g(_.v,{cond:function(){var A;return!!l.data().backButtonEdu&&
!((A=l.isExitMiniAppSeen)==null?0:A.call(l))},
then:function(){return _.g(_.uI,{data:function(){return l.data().backButtonEdu}},{buttonViewModel:_.t9})},
else:function(){return _.g(_.uI,{data:function(){return l.data().backButton}},{buttonViewModel:_.t9})}}),_.g(_.v,{cond:function(){return l.data().viewAllButton&&!0},
then:function(){return _.g(_.uI,{data:function(){return l.data().viewAllButton}},{buttonViewModel:_.t9})}}),_.g(_.v,{cond:function(){return l.data().title&&!0},
then:function(){return _.g("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return l.data().title})}})),_.g("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.g(_.v,{cond:function(){var A;
return(A=l.isDesktopPlayPage)==null?void 0:A.call(l)},
then:function(){return _.g(_.GZ,null,_.g(THv,{highScoreButton:function(){return l.data().highScoreButton},
score:l.score,formattedScore:l.formattedScore,onScoreChanged:l.onScoreChanged,isEmbeddedInWebview:l.isEmbeddedInWebview}),_.g(IvJ,{enableSaveButton:function(){return _.EP(n)},
saveButton:function(){return l.data().saveButton},
isSaved:l.isSaved,onSaveToggled:function(){return l.onSaveToggled}}),_.g(HPT,{menuButton:function(){return l.data().menuButton}}))},
else:function(){return _.g(_.v,{cond:function(){return!1},
then:function(){return _.g(_.uI,{data:function(){return l.data().playPageButton}},{buttonViewModel:function(A){return _.g(_.t9,{data:A.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.g(THv,{highScoreButton:function(){return l.data().highScoreButton},
score:l.score,formattedScore:l.formattedScore,onScoreChanged:l.onScoreChanged,isEmbeddedInWebview:l.isEmbeddedInWebview})}})}})),_.g("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.g(_.uI,{data:function(){return l.data().muteButton}},{toggleButtonViewModel:function(A){var C=A.data;
return _.g(_.s0,{data:function(){var h,b;return Object.assign({},C(),{isToggled:(b=(h=l.isAudioEnabled)==null?void 0:h.call(l))!=null?b:!0})},
onToggle:l.onAudioToggled,useOutlinedIcon:!0})}}),_.g(_.uI,{data:function(){return l.data().theatreModeButton}},{toggleButtonViewModel:function(A){var C=A.data;
return _.g("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.g(_.s0,{data:function(){return Object.assign({},C(),{isToggled:U})},
useOutlinedIcon:!0}))}}),_.g(Y52,{fullscreenButton:function(){return l.data().fullscreenButton}}),_.g(_.v,{cond:function(){return _.EP(y)&&l.data().viewAllButton&&!1},
then:function(){return _.g(_.uI,{data:function(){return l.data().viewAllButton}},{buttonViewModel:_.t9})}}),_.g(_.v,{cond:function(){var A;
return!((A=l.isDesktopPlayPage)==null?0:A.call(l))},
then:function(){return _.g(_.GZ,null,_.g(IvJ,{enableSaveButton:function(){return _.EP(n)},
saveButton:function(){return l.data().saveButton},
isSaved:l.isSaved,onSaveToggled:function(){return l.onSaveToggled}}),_.g(HPT,{menuButton:function(){return l.data().menuButton}}))}}))))},"Rf");
OP8.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var HPT=_.w(function(l){return _.g(_.uI,{data:l.menuButton},{buttonViewModel:_.t9})},"Sf"),IvJ=_.w(function(l){var D=l.enableSaveButton;
var U=l.saveButton;var n=l.isSaved;var y=l.onSaveToggled;return _.g(_.v,{cond:function(){return D()&&!(U==null||!U())},
then:function(){return _.g(_.uI,{data:function(){var A=_.M(U==null?void 0:U(),_.Pq),C;return{toggleButtonViewModel:Object.assign({},A,{isToggled:(C=n==null?void 0:n())!=null?C:!(A==null||!A.isToggled)})}}},{toggleButtonViewModel:function(A){return _.g(_.s0,{data:A.data,
onToggle:y})}})}})},"Tf"),THv=_.w(function(l){var D=l.highScoreButton;
var U=l.score;var n=l.formattedScore;var y=l.onScoreChanged;var A=l.isEmbeddedInWebview;return _.g(_.uI,{data:D},{miniAppScoreButtonViewModel:function(C){return _.g(E8T,{data:C.data,score:U,formattedScore:n,onScoreChanged:y,isEmbeddedInWebview:A})}})},"Uf"),Y52=_.w(function(l){l=l.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.g(_.GZ,null):_.g(_.uI,{data:l},{buttonViewModel:_.t9})},"Vf");_.VW$=_.w(function(l){var D=l.data;var U=l.extractOverlay;l={};return _.g("player-disclosure-view-model",{class:_.DV("ytwPlayerDisclosureViewModelHost",(l.ytwPlayerDisclosureViewModelExtractOverlay=function(){return U==null?void 0:U()},l))},_.g(_.qO,{command:function(){return D().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.g(_.v,{cond:function(){return D().iconName},
then:function(n){return _.g(_.C0,{icon:n})}}),_.g(_.v,{cond:function(){return D().iconName?void 0:D().image},
then:function(n){return _.g(_.rh,{data:n,alt:function(){return D().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.g(_.v,{cond:function(){return D().title||D().secondaryText},
then:function(){return _.g("div",null,_.g("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return D().title}),_.g("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return D().text}),_.g(_.v,{cond:function(){return D().secondaryText},
then:function(n){return _.g(_.GZ,null,_.g("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.g("div",{class:"ytwPlayerDisclosureViewModelText"},n))}}))},
else:function(){return _.g("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return D().text})}}),_.g(_.v,{cond:function(){return D().showEndChevron},
then:function(){return _.g(_.C0,{icon:"CHEVRON_RIGHT"})}})))},"Wf");_.icH=new _.A7("DESKTOP_CURRENT_PAGE");var Ak8=_.w(function(l){var D=l.data;var U=_.q("force_active_time_logging_webview"),n=!1,y=new av2,A=void 0,C=void 0,h=_.Jc().resolve(mwH),b=new MW5,u=void 0,Q=void 0,G=[],J=void 0,L=void 0,R=!1,a=!1,S=!1,d=!1,c=new _.Au,N=_.Jc().resolve(NH$),z=_.Jc().resolve(_.GG),f=_.Jc().resolve(_.G8(rZ)),I,iG=(I=_.Jc().resolve(_.G8(_.icH)))==null?void 0:I.getCurrentPage(),CC=!1,vo=0,td=function(Ay){Ay.preventDefault();return Ay.returnValue=""},GN,Ms=_.B(_.aw(!((GN=_.MN("yt-mini-app-is-audio-enabled"))!=null&&
!GN),void 0,"wBOrKf")),j3=Ms.next().value,wl=Ms.next().value,zN,Z7=_.B(_.aw(!((zN=_.MN("exit-mini-app-seen-state"))==null||!zN),void 0,"a2xYg")),Lm=Z7.next().value,Vg=Z7.next().value,v5=_.B(_.aw(!1,void 0,"i8BH4")),mk=v5.next().value,dy=v5.next().value,eW=_.B(_.aw(void 0,void 0,"UGqFqe")),Qq=eW.next().value,Bo=eW.next().value,D7=_.B(_.aw(void 0,void 0,"jrV5Ob")),qr=D7.next().value,H5=D7.next().value,Mr=_.B(_.aw(!0,void 0,"u5JS3d")),V_=Mr.next().value,ec=Mr.next().value,Nr=_.B(_.aw(!1,void 0,"MjPdB")),
gy=Nr.next().value,uH=Nr.next().value,yq=_.B(_.aw(!1,void 0,"nT6Yxf")),TN=yq.next().value,l$=yq.next().value,uw=_.B(_.aw(void 0,void 0,"nkG6")),UW=uw.next().value,GT=uw.next().value,$8=_.B(_.aw(0,void 0,"KH4u0b")),hA=$8.next().value,qG=$8.next().value,zv=_.bP("mini-app-container-view-model"),mJ=_.B(_.aw(!1,void 0,"NsE4qb")),nP=mJ.next().value,Ft=mJ.next().value,PE=function(){return D().isEmbeddedInWebview},bO=function(){return D().hasPlayNextShelf};
_.$g(function(){var Ay,qw=(Ay=_.M(D().contentDisclosure,wO5))==null?void 0:Ay.animationParams;if((qw==null?0:qw.shouldHide)&&(qw==null?0:qw.hideDelaySecs)){var o$=setTimeout(function(){Ft(!0)},qw.hideDelaySecs*1E3);
_.NV(function(){clearTimeout(o$)})}});
_.QE("yt-page-type-changed",function(Ay){if(_.q("enable_is_mini_app_page_active_bugfix"))Ay.detail.newPageSubtype==="mini_app"&&Ay.detail.newPageType==="ytd-browse"||!V_()||G3();else if(Ay=_.zy()==="mini_app",Ay!==V_())if(ec(Ay),Ay){var qw;Ay=(qw=D().playableId)==null?void 0:qw.toString();Ay!==void 0&&window.location.href.includes(Ay)&&!a&&(d=!0,gs(),nA.value&&qi(nA.value))}else Ay||G3()});
_.QE("yt-action",function(Ay){Ay.detail.actionName==="yt-engagement-panel-visible-changed"&&Ay.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Ay.detail.args[2]==="PAmini_app_panel"&&G3();_.q("enable_is_mini_app_page_active_bugfix")?Ay.detail.actionName==="yt-history-load"&&!V_()&&(iG==null?0:iG.active)?(ec(!0),gs(),nA.value&&qi(nA.value)):Ay.detail.actionName==="yt-history-load"&&V_()&&!D().isEmbeddedInWebview&&Rg():V_()&&Ay.detail.actionName==="yt-history-load"&&(d?d=!1:D().isEmbeddedInWebview||
Rg())});
_.NV(function(){ip()});
_.$i(function(){gs()},"bzUf2c");
var gs=function(){var Ay=D().playableId,qw=D().localReleaseId,o$=D().derivedDeviceInterface;if(a)_.II(new _.rc("[MiniAppContainerViewModel] onEnter was called more than once"));else{a=!0;A=new C$5(Ay,qw,o$,document.visibilityState==="visible");g8W(A);C=new KJ$(Ay);ljJ(h,Ay);R8$(b,{showMiniAppAdCommand:D().showMiniAppAdCommand,isEmbeddedInWebview:D().isEmbeddedInWebview,playLogger:A});H3_()&&(L=document.body.style.backgroundColor,_.wU(document.body,"background-color","black"));d7();Z2();c=new _.Au;
if(D().isEmbeddedInWebview){if(Ay=(new URLSearchParams(window.location.search)).get("postPlayNonce"))P$$(A,Ay),CC=!0;y.initialize({onAudioStateLoaded:function(Q1){Ec(Q1)},
onMuteMiniApp:function(){Ec(!1)},
onUnmuteMiniApp:function(){Ec(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Q1){CC||(P$$(A,Q1),CC=!0)},
confirmExitMiniApp:function(){var Q1,rE,rs;return _.P(function(Yg){if(Yg.nextAddress==1)return D().confirmExitMiniAppCommand?Yg.yield(Promise.race([c.promise,Promise.resolve(!1)]),2):Yg.return();(Q1=Yg.yieldResult)?!D().confirmExitMiniAppCommandEdu||(rs=(rE=Lm)==null?void 0:rE())!=null&&rs?aA(D().confirmExitMiniAppCommand):(aA(D().confirmExitMiniAppCommandEdu),_.qN("exit-mini-app-seen-state","true",2592E6)):aA(D().closeMiniAppCommand);_.Kz(Yg)})},
onNativeBenchmarkingMessageReceived:function(Q1){Q1=Ml8(_.w1B(Q1));if(_.bB(Q1,_.mG,3,J8_)){var rE=_.tU(Q1,_.mG,3,J8_),rs=fAC();var Yg=Ed(rs.getSeconds())-Ed(rE.getSeconds());rE=_.Qp(rs,2)-_.Qp(rE,2);Yg<0&&rE>0?(Yg+=1,rE-=1E9):Yg>0&&rE<0&&(--Yg,rE+=1E9);Yg=(new Hl).setSeconds(Yg);Yg=_.iw(Yg,2,_.B2(rE),0);_.al(Q1,1,Yg)}var $z;($z=Q)==null||$z.returnNativeBenchmarkingMessage(Q1)},
multiplayer3pAckStateLoaded:function(Q1){Rg(Q1)},
exitMiniAppSeenStateLoaded:function(Q1){D().confirmExitMiniAppCommandEdu&&Vg(Q1)},
onNavigateToNewMiniApp:function(){aA(D().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Q1){Q1=new URLSearchParams(Q1);var rE=void 0;Q1.has("invite_code")&&(rE=new Xp8,Q1=Q1.get("invite_code"),rE=_.c7(rE,1,Q1));if(Q1=rE){var rs;(rs=Q)==null||rs.sendGameData(Q1)}},
onPauseMiniApp:function(){n=!0;S3()},
onResumeMiniApp:function(){n=!0;F$()},
onAdFinished:function(Q1){b.onAdFinished(Q1)}});
D().showMultiplayer3pConsentDialogCommand||c.resolve(!0);aA(D().onContainerReadyCommand)}else P$$(A),c.resolve(!0);crJ(C,h88(A));h88(A).then(function(Q1){Q1={miniAppPlayData:{postPlayNonce:Q1}};var rE,rs=(rE=D().loggingDirectives)==null?void 0:rE.trackingParams;rs&&_.he().stateChanged(rs,Q1)});
Ay=D().showSignInDialogCommand;!EL$()&&Ay&&(_.qN("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),aA(Ay));D().confirmExitMiniAppCommand&&f&&(Ay=wCd(D().confirmExitMiniAppCommand))&&(f.customConfirmationCommand=Ay)}},ip=function(){L&&_.wU(document.body,"background-color",L);
R=!1;J&&J.release();C.flush().catch(function(Ay){_.II(Ay)});
h.flush().catch(function(Ay){_.II(Ay)});
v82(A);vw();Q=void 0;Dg$(N)},G3=function(){ec(!1);
ip();dy(!1);GT(void 0);Bo(void 0);H5(void 0);vo=0;qG(0);a=!1},S3=function(){var Ay;
(Ay=Q)==null||Ay.onPause();J&&J.release();C.flush().catch(function(qw){_.II(qw)});
h.flush().catch(function(qw){_.II(qw)});
uJH(A);uH(!0)},F$=function(){var Ay;
(Ay=Q)==null||Ay.onResume();Z2();Ay=A;Ay.isForeground=!0;Lf(Ay,"PLAY_EVENT_TYPE_PLAY_RESUME");uH(!1)},Ec=function(Ay){var qw;
(qw=Q)==null||qw.onAudioToggled(Ay);wl(Ay)},Rg=function(Ay){D().showMultiplayer3pConsentDialogCommand&&(D().isEmbeddedInWebview&&Ay!==void 0&&c.resolve(Ay),!Ay&&_.zy()==="mini_app"&&aA(D().showMultiplayer3pConsentDialogCommand))},R$=function(){var Ay,qw,o$,Q1;
return _.P(function(rE){if(rE.nextAddress==1){!D().isLivestream||D().disableVideoCapture||(Ay=Q)!=null&&Ay.sendStartGameFrameCapture();qw=(new URL(window.location.href)).searchParams;if(qw.has("invite_code")){var rs=new Xp8,Yg=qw.get("invite_code");o$=_.c7(rs,1,Yg);(Q1=Q)==null||Q1.sendGameData(o$)}mk()||(dy(!0),rs=A,rs.state!==1?_.II(new _.rc("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+WJJ[rs.state])):(_.md("mini_app_ids_without_game_ready").includes(rs.JSC$17148_miniAppId)&&(rs.gameReady=
!0),rs.state=2,rs.beforeReady=!1,JT(rs,"ma_ffr"),Lf(rs,"PLAY_EVENT_TYPE_PLAY_READY")));return rE.yield(c.promise,2)}aA(D().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();D().isEmbeddedInWebview||Rg();_.Kz(rE)})},ch=function(){var Ay=A;
Ay.gameReady=!0;JT(Ay,"ma_gr")},k8=function(Ay){var qw;
return _.P(function(o$){if(o$.nextAddress==1)return _.ZY(o$,2),o$.yield(xw8(C,Ay),4);if(o$.nextAddress!=2)return _.WG(o$,0);qw=_.kF(o$);aA(D().showSavingErrorPopupCommand);throw qw;})},X8=function(){var Ay,qw;
return _.P(function(o$){if(o$.nextAddress==1)return _.ZY(o$,2),o$.yield(p2q(C),4);if(o$.nextAddress!=2)return Ay=o$.yieldResult,o$.return(Ay);qw=_.kF(o$);aA(D().showLoadingErrorDialogCommand);throw qw;})},ag=function(Ay){A.logError(Ay)},zT=function(Ay,qw,o$){GTJ(A,Ay,qw,o$)},fc=function(Ay,qw){LJ8(A,Ay,qw)},Jy=function(){!U&&D().isEmbeddedInWebview||_.QX();
Q$8(A,!0);R||(window.addEventListener("beforeunload",td,{capture:!0}),R=!0)},TP=function(Ay){var qw,o$,Q1,rE,rs,Yg,$z;
return _.P(function(mR){if(mR.nextAddress==1)return h&&(!u||u<Ay)&&Ay>0?mR.yield(Ug8(h,Ay),3):mR.jumpTo(0);qw=mR.yieldResult;o$=_.B(qw);Q1=o$.next().value;rE=o$.next().value;rs=Q1;Yg=rE;(($z=rs)==null?0:$z.displayString)&&Yg&&(Bo(Yg),H5(rs.displayString));_.Kz(mR)})},yH=function(Ay){var qw=D().onBenchmarkingMessageReceivedCommand;
if(qw){var o$=fAC();_.tk(Ay,3,J8_,o$);tB(qw,RNv(Ay))}},$C=function(Ay){var qw=D().onGameFrameReceivedCommand;
if(qw){var o$=new si;var Q1=new JM1;var rE=MF(Ay,1);Q1=_.j2(Q1,1,rE);Ay=_.Zo(Ay,2);Ay=_.c7(Q1,2,Ay);o$=_.al(o$,2,Ay);tB(qw,REy(o$))}},H_=function(Ay){var qw=D().onGameAudioDataReceivedCommand;
if(qw){var o$=new si;var Q1=new qiH;Ay=_.Zo(Ay,1);Q1=_.c7(Q1,1,Ay);o$=_.al(o$,4,Q1);tB(qw,REy(o$))}},U1=function(){var Ay=new URLSearchParams(window.location.search);
if(D().isEmbeddedInWebview&&Ay&&Ay.get("override_hl")==="true"&&Ay.get("hl"))return Ay.get("hl");Ay=document.documentElement.lang;return Ay!==""?Ay:js},J4=function(Ay){var qw=D().onShareInviteCodeCommand;
if(qw)if(D().isEmbeddedInWebview){var o$=new NSz;Ay=_.c7(o$,1,Ay);tB(qw,EW5(Ay))}else o$=D().inviteCodeShareClientParamIdentifier,N.clientParams.set(o$,{miniAppClientParams:{inviteCode:Ay}}),aA(qw)},Lk=function(Ay){var qw,o$,Q1;
return _.P(function(rE){if(rE.nextAddress==1)return qw=D().onMiniAppOpenYtContentRequested,h&&_.q("enable_open_yt_content")&&qw?rE.yield(nC5(h,Ay),3):rE.jumpTo(0);o$=rE.yieldResult;if(o$==="OK")if(D().isEmbeddedInWebview){var rs=new ud5;Q1=S2(rs,2,N$,Mw(Ay));tB(qw,Gd5(Q1))}else z.clientData.set("video_id",Ay),aA(qw);_.Kz(rE)})},zI=function(Ay){vo+=_.Qp(Ay,3);
Ay=Math.min(Math.log(1+vo/15E6*9)/Math.log(10),.99);qG(Ay);yv(Ay)},yv=_.e8(function(Ay){var qw=D().updateLoadingProgressCommand;
if(qw){var o$=new ud5;Ay=S2(o$,3,N$,_.Y1(Ay));tB(qw,Gd5(Ay))}},100),E1=function(Ay){return e85(b,Ay)},Z2=function(){var Ay,qw;
((Ay=_.eYs())==null?void 0:(qw=Ay.wakeLock)==null?void 0:qw.request)!=null&&_.eYs().wakeLock.request("screen").then(function(o$){J=o$}).catch(function(){})},nA=_.gm("iframe");
_.$i(function(){D().isSupportedCountry&&(EL$()||_.q("enable_sign_in_promo")||!D().showSignInDialogCommand?nA.value&&qi(nA.value):aA(D().onMiniAppReadyCommand))},"VjCqQ");
var ta=function(){return _.g("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return mk()?0:-1},
el:nA})},qi=function(Ay,qw){qw=qw===void 0?!1:qw;
var o$=uX();o$&&(qw||o$.toString()!==Ay.getAttribute("src"))&&(Q=iso(D().source,{isAudioEnabled:j3,onFirstFrameReady:R$,onGameReady:ch,onSave:k8,onLoad:X8,onError:ag,onSdkCalled:zT,onSdkPerformanceUpdate:fc,onClick:Jy,onSendHighScore:TP,onBenchmarkingMessageReceived:yH,getLanguage:U1,onShareInviteCode:J4,onResourceLoaded:zI,onOpenYTContent:Lk,onShowMiniAppAd:E1,onGameFrameReceived:$C,onGameAudioReceived:H_},Ay,o$),gh(Ay,"load",function(){JT(A,"ma_il");gh(Ay,"load",function(){qi(Ay,!0)})}),_.i8(Ay,
o$))},uX=function(){var Ay=D().url;
if(Ay&&(Ay=_.I2(Ay),Ay!==null)){if(D().source&&D().source==="MINI_APP_SOURCE_GAMESNACKS")Ay=_.L2(Ay,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.q("enable_origin_query_parameter_bugfix")){var qw=_.q9(_.gr_(Ay.toString()));qw=new URLSearchParams(qw||"");qw.set("origin",window.location.origin);qw=qw.toString();Ay=_.Kc(Ay).toString();Ay=_.dT(ya_.exec(Ay)[0]+(qw.trim()?"#"+qw:""))}return Ay}},kA=function(){var Ay={};
Ay=_.DV("yt-mini-app-container-view-model__loading-screen",(Ay["yt-mini-app-container-view-model__loading-screen--fade-out"]=mk,Ay));var qw=function(){return mk()?1:hA()};
return _.g("div",{class:Ay},_.g(_.uI,{data:function(){return D().splashScreen}},{miniAppSplashScreenViewModel:function(o$){return _.g($wq,{data:o$.data,
loadingProgress:qw})}}))},Q7=function(){var Ay={};
return _.g("div",{class:_.DV("yt-mini-app-container-view-model__pause-interstitial",(Ay["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!gy()},Ay["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=gy,Ay))},_.g(_.uI,{data:function(){return D().splashScreen}},{miniAppSplashScreenViewModel:function(qw){return _.g($wq,{data:qw.data,
forPaused:!0})}}))},d7=function(){G=[];
G.push(_.Gt(window,"visibilitychange",function(){S||n&&PE()||(document.visibilityState==="visible"?F$():S3())}));
G.push(_.Gt(window,"pagehide",function(){ip()}));
G.push(_.Gt(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&zv.value.dispatchEvent(new Event("tap"))},0)}));
G.push(_.Gt(zv.value,"pointerdown",function(){Q$8(A,!1)},!0));
G.push(_.Gt(zv.value,"pause",function(){S=!0;S3()}));
G.push(_.Gt(zv.value,"play",function(){S=!1;F$()}));
G.push(_.Gt(zv.value,"exit",function(){ip()}));
var Ay=navigator.keyboard,qw=Ay&&Ay.lock;G.push(_.Gt(window,G4k,function(){l$(L81());L81()?(D().hasPlayNextShelf&&ep("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),GH("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),qw&&Ay.lock(["Escape"])):(D().hasPlayNextShelf&&GH("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),ep("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),qw&&Ay.unlock())}));
D().showMultiplayer3pConsentDialogCommand&&G.push(_.Gt(window,"yt-playables-ack-3p-data-usage",function(){ykH(h)}));
D().confirmExitMiniAppCommandEdu&&G.push(_.Gt(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.qN("exit-mini-app-seen-state","true",2592E6)}));
D().onGameAudioDataReceivedCommand&&G.push(_.Gt(window,"message",function(o$){o$=o$.event_;var Q1,rE=(Q1=nA.value)==null?void 0:Q1.src;if(rE&&o$.origin===(new URL(rE)).origin&&o$.data&&o$.data.type==="GAME_AUDIO"&&o$.data.audio&&o$.data.audio.length>0)if(_.q("enable_sending_unwrapped_game_audio_as_serialized_metadata"))NY9(D().onGameAudioDataReceivedCommand,o$.data.audio);else{var rs=new FileReader;rs.onload=function(){var Yg=new si;var $z=new qiH;$z=_.c7($z,1,rs.result);Yg=_.al(Yg,4,$z);tB(D().onGameAudioDataReceivedCommand,
REy(Yg))};
rs.readAsDataURL(new Blob([o$.data.audio]))}}))},vw=function(){G.forEach(function(Ay){um(Ay)});
window.removeEventListener("beforeunload",td,{capture:!0})},aA=function(Ay){Ay&&z73(Ay,D().isEmbeddedInWebview||!1)},GH=function(Ay,qw){Ay=_.B(zv.value.getElementsByClassName(Ay));
for(var o$=Ay.next();!o$.done;o$=Ay.next())o$.value.classList.add(qw)},ep=function(Ay,qw){Ay=_.B(zv.value.getElementsByClassName(Ay));
for(var o$=Ay.next();!o$.done;o$=Ay.next())o$.value.classList.remove(qw)};
return function(){var Ay={};Ay=_.DV("yt-mini-app-container-view-model",(Ay["yt-mini-app-container-view-model--desktop"]=!0,Ay["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return D().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Ay["yt-mini-app-container-view-model--ios-web-view"]=H3_(),Ay["yt-mini-app-container-view-model--no-top-bar"]=function(){return!D().topBar},Ay["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return D().hasPlayNextShelf},Ay["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return D().hasPlayNextShelf},Ay["yt-mini-app-container-view-model--show-peek-below"]=function(){return!TN()&&D().hasPlayNextShelf},Ay));
var qw={};qw=_.DV("yt-mini-app-container-view-model__content",(qw["yt-mini-app-container-view-model__content--desktop-content"]=!0,qw["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return D().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},qw["yt-mini-app-container-view-model--desktop-play-page"]=function(){return D().hasPlayNextShelf},qw));
return _.g("mini-app-container-view-model",{el:zv},_.g("div",{class:Ay},_.g(_.v,{cond:function(){return D().topBar&&!TN()},
then:function(){return _.g(_.uI,{data:function(){return D().topBar}},{miniAppTopBarViewModel:function(o$){return _.g(OP8,{data:o$.data,
isAudioEnabled:j3,onAudioToggled:function(Q1){Ec(Q1)},
score:Qq,formattedScore:qr,onScoreChanged:function(Q1){u=Q1},
isEmbeddedInWebview:PE,isSaved:UW,onSaveToggled:function(Q1){GT(Q1)},
isExitMiniAppSeen:Lm,isDesktopPlayPage:bO})}})}}),_.g("div",{class:qw},_.g(_.v,{cond:V_,
then:function(){return ta()}}),_.g(_.v,{cond:function(){return D().isLivestream},
then:function(){return Q7()}}),_.g(_.v,{cond:function(){return!D().isEmbeddedInWebview},
then:function(){return kA()}}),_.g(_.uI,{data:function(){return D().contentDisclosure}},{playerDisclosureViewModel:function(o$){o$=o$.data;
var Q1={};return _.g("div",{class:_.DV("yt-mini-app-container-view-model__content-disclosure-overlay",(Q1["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=nP,Q1))},_.g(_.VW$,{data:o$}))}}))))}()},"$f");
Ak8.idomCompat=!0;_.Tt(Ak8,"mini-app-container-view-model",{props:{data:_.C$}});var WHJ=_.w(function(l){var D=l.data;return _.g("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.g("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.n0(function(){var U=D().onTap;U&&_.dh(U)})},_.g(_.v,{cond:function(){return D().icon},
then:function(U){return _.g(_.C0,{icon:function(){return U().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.g("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return D().title})))},"ag");
WHJ.idomCompat=!0;var BTP=_.w(function(l){var D=_.bP("div"),U=_.B(_.aw(void 0,void 0,"dg3xff")),n=U.next().value,y=U.next().value;U=_.B(_.aw(void 0,void 0,"AgHNfc"));var A=U.next().value,C=U.next().value;U=_.B(_.aw(void 0,void 0,"fuTKCc"));var h=U.next().value,b=U.next().value,u=function(){var d=n();return d!==void 0?Math.abs(d):void 0},Q=function(){var d=u();
return d===void 0||d<=3},G=function(){var d=u();
var c=A(),N=h();d=d!==void 0&&c!==void 0&&N!==void 0?c-N-d:void 0;return d===void 0||d<=3},J=function(d){D.value&&D.value.scrollBy({top:0,
left:(_.H3("HTML_DIR")==="rtl"?-1:1)*d*D.value.clientWidth,behavior:"smooth"})},L=function(){var d;
y((d=D.value)==null?void 0:d.scrollLeft);var c;C((c=D.value)==null?void 0:c.scrollWidth);var N;b((N=D.value)==null?void 0:N.clientWidth)},R=function(){J(-.5)},a=function(){J(.5)};
U=_.n0(function(){L()});
_.$g(function(){L();if(D.value&&window.ResizeObserver){var d=new ResizeObserver(L);d.observe(D.value);_.NV(function(){d.disconnect()})}});
var S={};return _.g("yt-sponsorships-scrollable-shelf",{class:_.DV("ytdSponsorshipsScrollableShelfHost",l.className)},_.g("div",{class:_.DV("ytdSponsorshipsScrollableShelfContent",(S.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return l.data().previousButton&&l.data().nextButton&&!Q()&&!G()},S.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return l.data().previousButton&&!Q()&&G()},S.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return l.data().nextButton&&
Q()&&!G()},S)),
el:D,"on:scroll":U},l.children),_.g(_.v,{cond:function(){return!Q()},
then:function(){return _.g(_.uI,{data:function(){return l.data().previousButton}},{buttonViewModel:function(d){return _.g(_.t9,{data:d.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:R})}})}}),_.g(_.v,{cond:function(){return!G()},
then:function(){return _.g(_.uI,{data:function(){return l.data().nextButton}},{buttonViewModel:function(d){return _.g(_.t9,{data:d.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:a})}})}}))},"cg");
BTP.idomCompat=!0;var hI$=_.w(function(l){var D=l.data;l={};return _.g("yt-sponsorships-hub",{class:_.DV("ytdSponsorshipsHubHost",(l.ytdSponsorshipsHubHostIndented=function(){return D().indented},l))},_.g("div",{class:"ytdSponsorshipsHubHeader"},_.g("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.g("div",{class:"ytdSponsorshipsHubAvatar"},_.g(_.uI,{data:function(){return D().avatar}},{avatarViewModel:_.iX})),_.g(_.v,{cond:function(){return D().badgeImage},
then:function(U){return _.g("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.g("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.g("div",{class:"ytdSponsorshipsHubBadge"},_.g(_.rh,{data:U,targetWidth:24,targetHeight:24,alt:""}))))}})),_.g("div",{class:"ytdSponsorshipsHubDetails"},_.g("div",{class:"ytdSponsorshipsHubTierName"},function(){return D().tierName}),_.g("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return D().membershipType}),_.g("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return D().membershipDurationOrExpiry})),_.g("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.g(_.uI,{data:function(){return D().manageButton}},{buttonViewModel:function(U){return _.g(_.t9,{data:U.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.g(_.uI,{data:function(){return D().actionMenuButton}},{buttonViewModel:function(U){return _.g(_.t9,{data:U.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.g("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return D().perksTitle}),_.g(BTP,{data:function(){return{previousButton:D().previousPerkButton,
nextButton:D().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.g("div",{class:"ytdSponsorshipsHubPerkCards"},_.g(_.uI,{data:function(){return D().perkCards}},{sponsorshipsHubPerkCardViewModel:WHJ}),_.g(_.v,{cond:function(){return D().viewAllPerksButton},
then:function(U){return _.g(CwW,{data:U})}}))))},"dg");
hI$.idomCompat=!0;var CwW=_.w(function(l){var D=l.data;return _.g("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.g(_.uI,{data:function(){return D().button}},{buttonViewModel:_.t9}),_.g("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.g("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return D().title}),_.g("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return D().subtitle})))},"eg");
CwW.idomCompat=!0;_.Tt(hI$,"yt-sponsorships-hub",{props:{data:_.C$}});_.Pw$=_.w(function(l){var D=l.data;return _.g("yt-dual-avatar-view-model",{class:_.DV("ytDualAvatarViewModelHost",l.className),style:_.BK({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var U;return((U=D().badgeCutoutRadius)!=null?U:14)+"px"}})},_.g("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.g(_.uI,{data:function(){return D().startAvatar}},{avatarViewModel:_.iX}),_.g(_.uI,{data:function(){return D().endAvatar}},{avatarViewModel:_.iX})),_.g(_.uI,{data:function(){return D().badge}},
{contentPreviewImageViewModel:function(U){return _.g("div",{class:"ytDualAvatarViewModelBadge"},_.g(_.XQ,{data:U.data}))}}))},"fg");
_.Pw$.idomCompat=!0;var gCr=_.w(function(l){var D=l.data;var U,n=!((U=_.Jc().resolve(_.G8(_.jQ)))==null||!U());l=_.dM(function(){var Q,G,J=n?(Q=D().header)==null?void 0:Q.backgroundColorDarkMode:(G=D().header)==null?void 0:G.backgroundColorLightMode;if(J!==void 0)return _.tu(J)},void 0,"TDdh7d");
U=_.dM(function(){var Q,G;return n?(Q=D().header)==null?void 0:Q.backgroundImagePart1Dark:(G=D().header)==null?void 0:G.backgroundImagePart1Light},void 0,"X0peMe");
var y=_.dM(function(){var Q,G;return n?(Q=D().header)==null?void 0:Q.backgroundImagePart2Dark:(G=D().header)==null?void 0:G.backgroundImagePart2Light},void 0,"an0Hzd"),A=_.dM(function(){return _.H3("HTML_DIR")==="rtl"},void 0,"BltEgb"),C=_.bP("yt-sponsorships-perks-list"),h=!1,b=function(){var Q=C.value;
if(Q&&!h){var G,J=(G=Q.parentElement)==null?void 0:G.parentElement;if(J)for(Q=Q.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),G=0;G<Q.length;++G){var L=Q[G];if(L instanceof HTMLElement){J.scrollTo({top:L.offsetTop+L.clientHeight/2-J.clientHeight/2,behavior:"smooth"});h=!0;break}}}};
_.N1(function(){var Q=C.value;if(Q&&window.ResizeObserver){var G=new ResizeObserver(b);G.observe(Q);_.NV(function(){G.disconnect()})}});
var u={};return _.g("yt-sponsorships-perks-list",{el:C,class:_.DV("ytdSponsorshipsPerksListHost",(u.ytdSponsorshipsPerksListHorizontalPadding=function(){return D().horizontalPaddingEnabled},u))},_.g("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.g("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.BK({"background-color":l})},_.g("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.g(_.v,{cond:U,then:function(Q){var G={};return _.g("div",{class:_.DV((G.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=n,G.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!n,G.ytdSponsorshipsPerksListFlipped=A,G))},_.g(_.rh,{data:Q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.g("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.g(_.v,{cond:y,
then:function(Q){var G={};return _.g("div",{class:_.DV((G.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=n,G.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!n,G.ytdSponsorshipsPerksListFlipped=A,G))},_.g(_.rh,{data:Q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.g("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.g(_.uI,{data:function(){var Q;
return(Q=D().header)==null?void 0:Q.dualAvatar}},{dualAvatarViewModel:_.Pw$})))),_.g("div",{class:"ytdSponsorshipsPerksListBody"},_.g("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return D().title}),_.g(_.v,{cond:function(){return D().perks},
then:function(Q){return _.g(_.wt,{each:Q},function(G,J){var L={};return _.g("div",{class:_.DV("ytdSponsorshipsPerksListPerkContainer",(L.ytdSponsorshipsPerksListSelectedPerk=function(){var R=J(),a=D().selectedPerkIndex;return R===a},L))},_.g(_.v,{cond:function(){return J()>0},
then:function(){return _.g("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.g("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.g(_.v,{cond:function(){return G.icon},
then:function(R){return _.g(_.C0,{icon:function(){return R().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.g("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.g("div",{class:"ytdSponsorshipsPerksListPerkTitle"},G.title),_.g("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.g(_.BO,{text:G.description})),_.g(_.v,{cond:function(){return G.instructions},
then:function(){var R,a;return _.g("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.g("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(R=G.instructions)==null?void 0:R.title),_.g("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.g(_.BO,{text:(a=G.instructions)==null?void 0:a.text})))}}))),_.g(_.v,{cond:function(){return G.emoji},
then:function(R){return _.g("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.g(_.wt,{each:function(){return R()}},function(a){return _.g(_.rh,{data:a,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.g(bcJ,{data:G}))})}})))},"gg");
gCr.idomCompat=!0;var bcJ=_.w(function(l){var D=l.data;var U=function(C,h){return C===h},n=function(){var C=D();
C=_.M(C==null?void 0:C.badgesShelf,YA7);return C!==void 0&&C!==null?C:{previousButton:{},nextButton:{}}},y=_.gm("div"),A=function(){var C=y.value;
if(C){var h=C.parentElement;if(h){C=C.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var b=0;b<C.length;++b){var u=C[b];if(u instanceof HTMLElement){h.scrollTo({left:u.offsetLeft+u.clientWidth/2-h.clientWidth/2,behavior:"instant"});break}}}}};
_.N1(function(){var C=y.value;if(C){var h=new ResizeObserver(A);h.observe(C);_.NV(function(){h.disconnect()})}});
return _.g("div",null,_.g(_.v,{cond:function(){return D().badges},
then:function(C){return _.g(BTP,{data:n},_.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:y},_.g(_.wt,{each:function(){return C()}},function(h,b){var u={},Q={},G={};
return _.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.g(_.v,{cond:function(){return b()>0},
then:function(){return _.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.g("div",{class:_.DV("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(u.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return U(b(),D().currentBadgeIndex)},u.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!U(b(),D().currentBadgeIndex)},u))},_.g("div",{class:_.DV("ytdSponsorshipsPerksListLoyaltyBadge",(Q.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return U(b(),
D().currentBadgeIndex)},Q.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!U(b(),D().currentBadgeIndex)},Q))},_.g(_.v,{cond:function(){return h.image},
then:function(J){var L={};return _.g("div",{class:_.DV((L.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return U(b(),D().currentBadgeIndex)},L.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!U(b(),D().currentBadgeIndex)},L))},_.g(_.rh,{data:J,
alt:""}))}})),_.g("div",{class:_.DV("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(G.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return U(b(),D().currentBadgeIndex)},G))},h.title)))})))}}))},"hg");
bcJ.idomCompat=!0;_.Tt(gCr,"yt-sponsorships-perks-list",{props:{data:_.C$}});_.Tt(_.w(function(l){return _.g("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.g(_.v,{cond:function(){return l.data().image},
then:function(D){return _.g(_.rh,{className:"ytwFantasyEmptyStateViewModelImage",data:D,ariaHidden:!0,alt:""})}}),_.g(_.BO,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return l.data().title}}),_.g(_.BO,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return l.data().subtitle}}),_.g(_.uI,{data:function(){return l.data().primaryButton}},{buttonViewModel:function(D){return _.g(_.t9,{data:D.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ig"),"ytw-fantasy-empty-state-view-model",{props:{data:_.C$}});var uO8;var vCJ=_.w(function(l){var D=l.data;var U=l.uniqueId;var n=l.overrides;l=_.dM(function(){var y,A=((y=D().timedAnimationData)==null?void 0:y.animationTiming)||[];return{uniqueId:U(),timings:A,experimentEnabled:A.length>0,enabled:A.length>0}},void 0,"hiuXI");
return _.g("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.g(H8y,{settings:l},_.g(_.uI,{data:function(){return D().buttonRenderer}},{buttonRenderer:function(y){return _.g(_.Jg,{data:y.data,
buttonOverrides:n})}})))},"jg");
vCJ.idomCompat=!0;_.Tt(vCJ,"timed-animation-button-renderer",{props:{data:_.C$,uniqueId:_.C$,overrides:_.C$}});var mq=function(){var l=_.p.apply(this,arguments)||this;l.hideJoinButtonBeforeSubscribed=_.q("hide_join_button_before_subscribed");l.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return l};
_.Z(mq,_.p);_.W=mq.prototype;_.W.hasShowDialogCommand=function(l){return!!_.M(l,nOz)};
_.W.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"}}}};
_.W.updateJoinButtonOverrides=function(){var l,D;(l=_.iJ(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(D=l.polymerController)==null||D.set("overrides",this.joinButtonOverrides);if(l=_.iJ(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))l.overrides=this.joinButtonOverrides};
_.W.handleButtonRefreshAction=function(l){if(l=_.M(l,Saz))this.set("data.membershipButton",l.membershipButton),this.notifyPath("data.membershipButton")};
_.W.onYtServiceRequestError=function(l){_.F7(this.hostElement,l.detail.error.message)};
_.W.onKeydown=function(l){if(l.key==="Enter"){var D;(D=this.data)!=null&&D.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.W.handleUnsubscribeAction=function(){var l,D,U;((l=this.data)==null?void 0:(D=l.membershipButton)==null?void 0:(U=D.buttonRenderer)==null?void 0:U.style)==="STYLE_PRIMARY"&&_.iJ(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.QP.Object.defineProperties(mq.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.subscriptionStateEntity)==null||!l.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var l,D=(l=this.data)==null?void 0:l.membershipButton,U;l=(D==null?void 0:D.buttonRenderer)||_.M(D==null?void 0:(U=D.timedAnimationButtonRenderer)==null?void 0:U.buttonRenderer,_.yn);return(l==null?void 0:l.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(l==null?void 0:l.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(l==null?void 0:l.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var l;if(this.hasShowDialogCommand((l=this.data)==null?void 0:l.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var l;if(this.hasShowDialogCommand((l=this.data)==null?void 0:l.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.attributedTitle)}}});
mq.prototype.onYtServiceRequestError=mq.prototype.onYtServiceRequestError;mq.prototype.updateJoinButtonOverrides=mq.prototype.updateJoinButtonOverrides;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],mq.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],mq.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],mq.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.sC),_.T("design:type",Object)],mq.prototype,"ironButtonState",void 0);_.E([_.K(),_.T("design:type",Object)],mq.prototype,"data",void 0);_.E([_.t("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.T("design:type",Object),_.T("design:paramtypes",[])],mq.prototype,"hideJoin",null);
_.E([_.K(),_.T("design:type",String)],mq.prototype,"subscribeKey",void 0);_.E([_.K({selectorArgs:["subscribeKey"],selector:i83}),_.T("design:type",Object)],mq.prototype,"subscriptionStateEntity",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],mq.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.E([_.t("subscriptionStateEntity"),_.K({reflectToAttribute:!0}),_.T("design:type",Object),_.T("design:paramtypes",[])],mq.prototype,"subscribed",null);
_.E([_.t("subscribed","data.membershipButton"),_.T("design:type",Object),_.T("design:paramtypes",[])],mq.prototype,"joinButtonOverrides",null);_.E([_.t("data.navigationEndpoint"),_.T("design:type",Object),_.T("design:paramtypes",[])],mq.prototype,"channelNameTabIndex",null);_.E([_.t("data.navigationEndpoint"),_.T("design:type",Object),_.T("design:paramtypes",[])],mq.prototype,"channelNameRole",null);
_.E([_.t("data.attributedTitle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],mq.prototype,"hasAttributedTitle",null);_.E([_.Pg("joinButtonOverrides"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],mq.prototype,"updateJoinButtonOverrides",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],mq.prototype,"onYtServiceRequestError",null);
_.E([_.x({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],mq);
var Ql5=_.Ol()(mq,"ytd-video-owner-renderer",function(){if(uO8===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);uO8=l}l=uO8;return l},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.Tt(_.w(function(l){var D=l.data;var U;l=_.B(_.aw(!((U=_.MN("yt-mini-app-is-theater-mode-enabled"))==null||!U),void 0,"i2pjVd"));var n=l.next().value,y=l.next().value;U=_.B(_.aw(!1,void 0,"ga7V5c"));var A=U.next().value,C=U.next().value;_.N1(function(){var u=_.Gt(window,G4k,function(){C(L81())});
_.NV(function(){um(u)})});
var h;U=(h=_.Jc().resolve(_.G8(o9q)))!=null?h:function(){return _.g("div",null)};
_.Pd("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){y(!0);_.qN("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Pd("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){y(!1);_.qN("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
h={};l={};var b={};return _.g("mini-app-play-page-renderer",{class:_.DV("miniAppPlayPageRendererHost",(h.miniAppPlayPageRendererHostDetailsView=function(){return!n()},h))},_.g("div",{class:_.DV("miniAppPlayPageRendererGameContainer",(l.miniAppPlayPageRendererGameContainerDetailsView=function(){return!n()},l))},_.g(_.uI,{data:function(){return D().containerViewModel}},{miniAppContainerViewModel:Ak8}),_.g(_.v,{cond:function(){return D().channel&&D().subscribeButton},
then:function(){var u={};return _.g("div",{class:_.DV("miniAppPlayPageRendererChannelContainer",(u.miniAppPlayPageRendererHideVisibility=function(){return A()},u))},_.g(_.uI,{data:function(){return D().channel}},{videoOwnerRenderer:function(Q){return _.g(Ql5,{data:Q.data})}}),_.g(_.uI,{data:function(){return D().subscribeButton}},{subscribeButtonViewModel:function(Q){return _.g(_.iz,{data:Q.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.g(_.v,{cond:function(){return!n()&&D().description},
then:function(){var u={};return _.g("div",{class:_.DV("miniAppPlayPageRendererMiniAppDescriptionWrapper",(u.miniAppPlayPageRendererHideVisibility=function(){return A()},u))},_.g("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return D().description}))}})),_.g("div",{class:_.DV("miniAppPlayPageRendererPlayNextContainer",(b.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!n()},b.miniAppPlayPageRendererHideVisibility=function(){return A()},b))},_.g(_.uI,{data:function(){return D().sectionList}},
{sectionListRenderer:U})))},"kg"),"mini-app-play-page-renderer",{props:{data:_.C$}});var aK=function(){var l=_.p.apply(this,arguments)||this;l.isSearch=!1;l.isConstrainedList=!1;l.hasChipsBar=!1;l.inReplyPanel=!1;l.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"}};l.monitorScroll=!0;l.SCROLL_ANIMATION_DURATION_MS=300;l.nextContinuation={continuationType:"sectionListContinuation"};return l};
_.Z(aK,_.p);_.W=aK.prototype;
_.W.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(l){switch(l.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.q("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.q("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.W.created=function(){var l=this;this.JSC$17288_scrollAnimation=new _.Qz(function(D){l.hostElement.scrollTop=D})};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.W.getItemsPath=function(){return"data.contents"};
_.W.replacePrimaryContent=function(l){this.set("data.contents",l)};
_.W.computeHasSortFilter=function(l){return!!l&&!!l.sortFilterSubMenuRenderer};
_.W.computeShouldScrollInPanel=function(l){var D;return!!(l==null?0:(D=l.scrollPaneStyle)==null?0:D.scrollable)};
_.W.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.nY(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.W.scrollToTop=function(){this.hostElement.scrollTop=0};
_.W.scrollToItemSection=function(l){if(l=this.getItemByIdentifier(l))l=this.getScrollPositionForItem(l),this.hostElement.scrollTop!==l&&this.JSC$17288_scrollAnimation.start(this.hostElement.scrollTop,l,this.SCROLL_ANIMATION_DURATION_MS)};
_.W.getItemByIdentifier=function(l){var D=this.contents.querySelectorAll("ytd-item-section-renderer");if(D&&D.length!==0){var U=Array.from(D).findIndex(function(n){return n.sectionIdentifier===l});
return D[U===-1?0:U]}};
_.W.getScrollPositionForItem=function(l){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===l)return 0;l=_.NG(l).y+this.hostElement.scrollTop-_.NG(this.hostElement).y;return Math.min(l,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.QP.Object.defineProperties(aK.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.targetId)==="browse-feedFEclips"}}});
aK.prototype.onScroll=aK.prototype.onScroll;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Mn.YtLazyListBehavior),_.T("design:type",Object)],aK.prototype,"ytLazyListBehavior",void 0);_.E([_.m(_.Qa.YtNextContinuationBehavior),_.T("design:type",Object)],aK.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.m(_.DwW),_.T("design:type",Object)],aK.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.m(_.vf),_.T("design:type",Object)],aK.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],aK.prototype,"data",void 0);_.E([_.K({value:2}),_.T("design:type",Number)],aK.prototype,"initialCount",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],aK.prototype,"autoFill",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.T("design:type",Boolean)],aK.prototype,"hasSortFilter",void 0);_.E([_.K({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.T("design:type",Boolean)],aK.prototype,"hideBottomSeparator",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.T("design:type",Boolean)],aK.prototype,"shouldScrollInPanel",void 0);
_.E([_.K(),_.T("design:type",Object)],aK.prototype,"isSearch",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aK.prototype,"isConstrainedList",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],aK.prototype,"responsiveSizing",void 0);_.E([_.K(),_.T("design:type",Object)],aK.prototype,"hasChipsBar",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],aK.prototype,"pageSubtype",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aK.prototype,"engagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aK.prototype,"liveChatEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aK.prototype,"inReplyPanel",void 0);_.E([_.gP("#action-button"),_.T("design:type",HTMLElement)],aK.prototype,"actionButton",void 0);_.E([_.K(),_.T("design:type",Object)],aK.prototype,"scrollUpButtonData",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aK.prototype,"engagementPanelDropdown",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aK.prototype,"engagementPanelDialog",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],aK.prototype,"isClipList",null);_.E([_.gP("#contents"),_.T("design:type",HTMLElement)],aK.prototype,"monitorScrollElement",void 0);_.E([_.gP("#contents"),_.T("design:type",HTMLElement)],aK.prototype,"contents",void 0);
_.E([_.hj("scroll"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aK.prototype,"onScroll",null);_.E([_.x({is:"ytd-section-list-renderer",disableElementRegistration:!0})],aK);
var Gq8=_.Ol()(aK,"ytd-section-list-renderer",function(){if(FBW===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);FBW=l}l=FBW;return l},{mode:1});var Jk$;var LHH;var qWW;var MDq;var tT=function(){return _.p.apply(this,arguments)||this};
_.Z(tT,_.p);tT.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
tT.prototype.onLikeButtonClick=function(l){l.stopPropagation();l.preventDefault()};
_.QP.Object.defineProperties(tT.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)!=null&&l.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],tT.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],tT.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],tT.prototype,"ytRendererStamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],tT.prototype,"data",void 0);
_.E([_.K({selectorArgs:["data.likeStatusEntityKey"],selector:SZ}),_.T("design:type",Object)],tT.prototype,"likeStatusEntity",void 0);_.E([_.t("data","likeStatusEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],tT.prototype,"likeButtonRenderer",null);_.E([_.x({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],tT);
_.r(tT,"ytd-slim-metadata-toggle-button-renderer",function(){if(MDq!==void 0)return MDq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
return MDq=l},{mode:1});var XS=function(){var l=_.p.apply(this,arguments)||this;l.minimizePipBreakages=_.q("web_pip_minimize_breakages");l.showEqualizer=_.q("web_enable_playlist_video_lockup_equalizer");l.watchColorUpdate=_.q("kevlar_watch_color_update");l.actionMap={};return l};
_.Z(XS,_.p);_.W=XS.prototype;_.W.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"}}}};
_.W.computeEditableClass=function(l){return l&&l.menu?"editable":""};
_.W.computeSelected=function(l){return!(l==null||!l.selected)};
_.W.computeUseColorPalette=function(l){return!!((l==null?0:l.lightColorPalette)&&(l==null?0:l.darkColorPalette))};
_.W.computeLargerPlaylistThumbs=function(l,D){return _.q("web_enable_playlist_bigger_thumbnails")&&!D};
_.W.computeMinimizePipBreakages=function(l){return this.minimizePipBreakages&&l};
_.W.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.W.onYtServiceRequestSent=function(l,D){D.endpoint&&this.isHideEnclosingAction(D.endpoint)&&!this.selected&&p$h(_.uN(),this.data.videoId)};
_.W.isHideEnclosingAction=function(l){var D=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",l);l=this.get("likeEndpoint.status",l)==="INDIFFERENT";return D||l};
_.W.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.W.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.QP.Object.defineProperties(XS.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var l;return!!(this.withinMiniplayer&&((l=this.data)==null?0:l.actionButtons))}}});
XS.prototype.onYtServiceRequestSent=XS.prototype.onYtServiceRequestSent;XS.prototype.canReorderChanged=XS.prototype.canReorderChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],XS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.hY),_.T("design:type",Object)],XS.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],XS.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],XS.prototype,"withinMiniplayer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],XS.prototype,"minimizePipBreakages",void 0);_.E([_.K({computed:"computeSelected(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],XS.prototype,"selected",void 0);
_.E([_.K({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],XS.prototype,"useColorPalette",void 0);_.E([_.K({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.T("design:type",Boolean)],XS.prototype,"largerPlaylistThumbs",void 0);_.E([_.K(),_.T("design:type",Object)],XS.prototype,"showEqualizer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],XS.prototype,"canReorder",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],XS.prototype,"touchPersistentDragHandle",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],XS.prototype,"handleIsHovered",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],XS.prototype,"watchColorUpdate",void 0);_.E([_.K(),_.T("design:type",String),_.T("design:paramtypes",[])],XS.prototype,"reorderIcon",null);
_.E([_.K(),_.T("design:type",String),_.T("design:paramtypes",[])],XS.prototype,"playIcon",null);_.E([_.t("largerPlaylistThumbs"),_.T("design:type",Number),_.T("design:paramtypes",[])],XS.prototype,"thumbnailWidth",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],XS.prototype,"showActionButtons",null);_.E([_.GY("canReorder"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],XS.prototype,"canReorderChanged",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],XS.prototype,"onYtServiceRequestSent",null);_.E([_.x({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],XS);
_.r(XS,"ytd-playlist-panel-video-renderer",function(){if(qWW!==void 0)return qWW;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[computeMinimizePipBreakages(withinMiniplayer)]]" 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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return qWW=l},{mode:2});var SI=function(){return _.p.apply(this,arguments)||this};
_.Z(SI,_.p);SI.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],SI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],SI.prototype,"data",void 0);_.E([_.x({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],SI);
_.r(SI,"ytd-playlist-panel-supported-items",function(){if(LHH!==void 0)return LHH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return LHH=
l},{mode:1});Mqz=!0;Azk("\\P{N}");var BK_;var RI8=_.C3("END_OF_PLAYLIST",void 0,"End of playlist"),ZcH=_.C3("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),kE=function(){var l=_.p.apply(this,arguments)||this;l.minimizePipBreakages=_.q("web_pip_minimize_breakages");l.hideHeaderText=!1;l.useColorPalette=!1;l.collapsed=!1;l.collapsedPreServerOverride="not_tracked";l.isHovered=!1;l.expandLabel=_.C3("MINIPLAYER_EXPAND_LABEL");l.collapseLabel=_.C3("MINIPLAYER_COLLAPSE_LABEL");l.isFloating=!1;l.metaPanel=
!1;l.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};l.currentIndex=void 0;return l};
_.Z(kE,_.p);_.W=kE.prototype;
_.W.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"}}}};
_.W.created=function(){var l=this;this.scrollThrottle=new _.A1(this.onThrottledScroll,1E3,this);this.JSC$17310_ytReorderableController=new _.Bzy(56,function(D){l.handleDrop(D)})};
_.W.onMouseEnter=function(){this.isHovered=!0};
_.W.onMouseLeave=function(){this.isHovered=!1};
_.W.computeOverflowMenuData=function(l){return l&&l.menu?l.menu:null};
_.W.computeCollapsible=function(l){return!l};
_.W.computeHasPlaylistButtons=function(l){return!(!l||!l.playlistButtons)};
_.W.computeHasSeparateSaveButton=function(l){return!(!l||!l.saveButton)};
_.W.computeHasToolbarButton=function(l,D){return!(!l||!(D||l.saveButton||l.menu))};
_.W.computePlaylistType=function(l){if(l&&l.playlistId)return l.playlistId.substring(0,4)};
_.W.computeCanReorder=function(l){return l?l.playlistId&&l.playlistId.startsWith("TLPQ")?!0:!!l.isEditable&&!l.isInfinite:!1};
_.W.attached=function(){var l=this;try{_.Jc().resolve(_.Cd).setPlaylistComponent(this.hostElement)}catch(D){if(_.q("kevlar_park_on_playlist_token_killswitch"))throw D;_.PN().parkOrScheduleJob(function(){_.Jc().resolve(_.Cd).setPlaylistComponent(l.hostElement)},2,"ci")}_.HH(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.W.detached=function(){_.Y2(this.hostElement);_.oH(this.JSC$17310_ytReorderableController)};
_.W.computeTrailingIcon=function(l,D,U){return U?D?"yt-icons:collapse":"yt-icons:close":D?"yt-icons:expand":_.q("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.W.computeIndexMessage=function(l,D){return Prd(l+1)+" / "+Prd(D)};
_.W.onRenderStamperFinished=function(){if(this.scrollForStampDom){var l=!0;this.isHovered&&(l=!1);if(this.collapsed||this.hidden)l=!1;l&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.W.collapseChanged=function(){var l=this;this.collapsed||(_.BI(this.ytTaskEmitterBehavior.getTaskManager(),function(){l.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.W.hiddenChanged=function(){var l=this;this.hidden||_.BI(this.ytTaskEmitterBehavior.getTaskManager(),function(){l.scrollToCurrentVideo()})};
_.W.setupReordering=function(){var l=_.iJ(this.hostElement).querySelector("#items");Fn5?_.CS_(this.JSC$17310_ytReorderableController,l,l,"playlist-drag-handle"):_.CS_(this.JSC$17310_ytReorderableController,l,l)};
_.W.scrollToCurrentVideo=function(){var l=this;_.Tn.addJob(function(){var D=_.iJ(l.hostElement).querySelector("#items");if(D){D.style.setProperty("padding-bottom","");var U=_.iJ(l.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(U){D=U.parentElement||_.S8(document);var n=D||_.S8(document);var y=_.NG(U),A=_.NG(n),C=_.Tev(n);if(n==_.S8(document)){var h=y.x-n.scrollLeft;y=y.y-n.scrollTop}else h=y.x-A.x-C.left,y=y.y-A.y-C.top;U=$G7(U);A=n.clientHeight-
U.height;C=n.scrollLeft;var b=n.scrollTop;C+=h-(n.clientWidth-U.width)/2;n=new _.zP(C,b+(y-A/2));D.scrollLeft=n.x;D.scrollTop=n.y}}},8)};
_.W.dataChanged=function(){var l=this;_.oH(this.JSC$17310_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.u6(this,function(){_.oI(l.ytTaskEmitterBehavior.getTaskManager(),function(){l.ytRendererBehavior.markDirty();l.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.W.onFullBleedPlayerChanged=function(){_.q("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.W.onFullscreenChanged=function(){_.q("web_watch_imax_theater_mode")||_.q("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.W.updateNowPlayingOverlay=function(){_.q("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.W.onPlaylistLockupNowPlaying=function(l,D){D&&(this.activeNowPlayingRenderer=D);this.updateNowPlayingOverlay()};
_.W.onScroll=function(){this.scrollThrottle.fire()};
_.W.onThrottledScroll=function(){var l=this;_.oI(this.ytTaskEmitterBehavior.getTaskManager(),function(){l.ytRendererBehavior.markDirty()})};
_.W.onToggleExpanded=function(l){!this.collapsible||l&&(_.NN(l).tagName==="A"||_.$o(_.$f(l),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.W.setCollapsed=function(l){this.collapsible&&(this.collapsed=l,_.iu(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.W.handleCollapsedFromData=function(l){if(l){var D=l.playlistPanelCollapseState;D==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||D==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),D=D==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==D&&this.setCollapsed(D)):this.currentPlaylistId!==l.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(D=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==D&&this.setCollapsed(D),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=l.playlistId}};
_.W.handleDrop=function(l){var D=l.currDragItem;l=D.data.playlistSetVideoId;var U=_.o_(D.parentNode.childNodes,D),n=void 0;U>0&&(n=D.parentNode.childNodes[U-1].data.playlistSetVideoId);D=_.uN();if(D.responsePlaylistData&&D.responsePlaylistData.contents){var y=Y3_(l,D.responsePlaylistData);D.responsePlaylistData=(0,_.we.unsafeClone)(D.responsePlaylistData);o9g(D.responsePlaylistData.contents,y,U);D.queueProxy?h_H(D.queueProxy,y,U,l,n):D.playlistProxy&&h_H(D.playlistProxy,y,U,l,n);_.vN(D,_.QS(D,D.response?
D.response.autoplayRenderer:void 0))}};
_.W.handleDarkModeChange=function(l){l!==this.isDarkTheme&&(this.isDarkTheme=l)};
_.W.colorPaletteChanged=function(){var l,D=((l=this.data)==null?void 0:l.contents)||[],U;l=_.B(D);for(D=l.next();!D.done;D=l.next()){D=D.value;var n=void 0;if((n=D.playlistPanelVideoRenderer)==null?0:n.selected){l=D.playlistPanelVideoRenderer;n=D=void 0;(U=this.isDarkTheme?(D=l)==null?void 0:D.darkColorPalette:(n=l)==null?void 0:n.lightColorPalette)&&_.qh(this.hostElement,U);break}}this.useColorPalette=!!U};
_.QP.Object.defineProperties(kE.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.moveThreeDotsMenuToMainHeader)&&_.q("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var l=_.Jc().resolve(_.G8(_.Cd)),D;if(((D=this.data)==null?0:D.contents)&&(l==null?0:l.hasAutoplayData())){var U;if(((U=this.playlistLoopStateEntity)==null?void 0:U.state)==="PLAYLIST_LOOP_STATE_ONE"){if(l=this.data.currentIndex,l!==void 0){var n,y;var A=(n=this.data.contents[l])==null?void 0:(y=n.playlistPanelVideoRenderer)==null?void 0:y.title}}else{var C,h=(C=_.M(l.getAutoplayEndpoint(),_.za))==null?void 0:C.videoId,b,u;A=(b=this.data.contents.find(function(Q){var G;
return((G=Q.playlistPanelVideoRenderer)==null?void 0:G.videoId)===h}))==null?void 0:(u=b.playlistPanelVideoRenderer)==null?void 0:u.title}return A}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)!=null&&l.nextVideoLabel?this.nextVideoTitle?_.Nl(this.data.nextVideoLabel)+":":RI8:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var l;if(((l=this.data)==null?0:l.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.q("web_mix_long_byline_from_data"))return _.$B(ZcH);var D;return(D=this.data)==null?void 0:D.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n=(l=this.data)==null?void 0:(D=l.playlistButtons)==null?void 0:(U=D.menuRenderer)==null?void 0:U.topLevelButtons;if(n)for(l=_.B(n),D=l.next();!D.done;D=l.next())if(D=D.value,D.playlistLoopButtonRenderer)return D.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var l;return!!(this.collapsed&&((l=this.data)==null?0:l.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.q("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
kE.prototype.colorPaletteChanged=kE.prototype.colorPaletteChanged;kE.prototype.onPlaylistLockupNowPlaying=kE.prototype.onPlaylistLockupNowPlaying;kE.prototype.updateNowPlayingOverlay=kE.prototype.updateNowPlayingOverlay;kE.prototype.onFullscreenChanged=kE.prototype.onFullscreenChanged;kE.prototype.onFullBleedPlayerChanged=kE.prototype.onFullBleedPlayerChanged;kE.prototype.dataChanged=kE.prototype.dataChanged;kE.prototype.hiddenChanged=kE.prototype.hiddenChanged;kE.prototype.collapseChanged=kE.prototype.collapseChanged;
kE.prototype.onRenderStamperFinished=kE.prototype.onRenderStamperFinished;kE.prototype.onMouseLeave=kE.prototype.onMouseLeave;kE.prototype.onMouseEnter=kE.prototype.onMouseEnter;_.E([_.m(_.$s),_.T("design:type",Object)],kE.prototype,"ironResizableBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(psy.YtPlaylistPanelBehavior),_.T("design:type",Object)],kE.prototype,"ytPlaylistPanelBehavior",void 0);_.E([_.m(_.ua.YtTaskEmitterBehavior),_.T("design:type",Object)],kE.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],kE.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],kE.prototype,"ytdReduxBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],kE.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],kE.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],kE.prototype,"autoplayData",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],kE.prototype,"withinMiniplayer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],kE.prototype,"minimizePipBreakages",void 0);
_.E([_.K({computed:"setMenuData_(data)"}),_.T("design:type",Object)],kE.prototype,"menuRendererData",void 0);_.E([_.K({computed:"computeOverflowMenuData(data)"}),_.T("design:type",Object)],kE.prototype,"overflowMenuDataTopRow",void 0);_.E([_.K({computed:"computeOverflowMenuData(data)"}),_.T("design:type",Object)],kE.prototype,"overflowMenuData",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],kE.prototype,"hideHeaderText",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],kE.prototype,"useColorPalette",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.T("design:type",Boolean)],kE.prototype,"collapsible",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],kE.prototype,"collapsed",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],kE.prototype,"hidden",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.T("design:type",Boolean)],kE.prototype,"hasPlaylistButtons",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.T("design:type",Boolean)],kE.prototype,"hasSeparateSaveButton",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.T("design:type",Boolean)],kE.prototype,"hasToolbar",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.T("design:type",String)],kE.prototype,"playlistType",void 0);_.E([_.K(),_.T("design:type",Object)],kE.prototype,"isHovered",void 0);_.E([_.K({selectorArgs:["playlistLoopStateEntityKey"],selector:_.NO.playlistLoopStateEntitySelector}),_.T("design:type",Object)],kE.prototype,"playlistLoopStateEntity",void 0);_.E([_.K({computed:"computeCanReorder(data)"}),_.T("design:type",Boolean)],kE.prototype,"canReorder",void 0);
_.E([_.K(),_.T("design:type",Object)],kE.prototype,"expandLabel",void 0);_.E([_.K(),_.T("design:type",Object)],kE.prototype,"collapseLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],kE.prototype,"isFloating",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],kE.prototype,"metaPanel",void 0);_.E([_.K({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.T("design:type",String)],kE.prototype,"trailingIcon",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],kE.prototype,"isDarkTheme",void 0);_.E([_.K({selector:_.Xo}),_.T("design:type",Boolean)],kE.prototype,"miniplayerIsActive",void 0);_.E([_.K({selector:function(l){return l.watch.playerState}}),
_.T("design:type",Number)],kE.prototype,"playerState",void 0);_.E([_.K({selector:_.t1}),_.T("design:type",Boolean)],kE.prototype,"isFullscreen",void 0);_.E([_.K({selector:_.aL}),_.T("design:type",Boolean)],kE.prototype,"isTheaterMode",void 0);_.E([_.K(),_.T("design:type",Object)],kE.prototype,"activeNowPlayingRenderer",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],kE.prototype,"moveThreeDotMenuToTopRow",null);
_.E([_.t("data","autoplayData","playlistLoopStateEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],kE.prototype,"nextVideoTitle",null);_.E([_.t("data","nextVideoTitle"),_.T("design:type",String),_.T("design:paramtypes",[])],kE.prototype,"nextVideoLabel",null);_.E([_.t("collapsed"),_.T("design:type",String),_.T("design:paramtypes",[])],kE.prototype,"buttonAriaLabel",null);
_.E([_.t("data","playlistId","longBylineText"),_.T("design:type",Object),_.T("design:paramtypes",[])],kE.prototype,"mixLongByLine",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],kE.prototype,"playlistLoopStateEntityKey",null);_.E([_.hj("mouseenter"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kE.prototype,"onMouseEnter",null);
_.E([_.hj("mouseleave"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kE.prototype,"onMouseLeave",null);_.E([_.K({reflectToAttribute:!0}),_.t("data","collapsed"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],kE.prototype,"showNextVideoHeader",null);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kE.prototype,"onRenderStamperFinished",null);
_.E([_.Pg("collapsed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kE.prototype,"collapseChanged",null);_.E([_.Pg("hidden"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kE.prototype,"hiddenChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kE.prototype,"dataChanged",null);
_.E([_.t("isTheaterMode","isFullscreen"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],kE.prototype,"isFullBleedPlayer",null);_.E([_.Pg("isTheaterMode","isFullscreen"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kE.prototype,"onFullBleedPlayerChanged",null);_.E([_.Pg("isFullscreen"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kE.prototype,"onFullscreenChanged",null);
_.E([_.Pg("playerState","miniplayerIsActive"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kE.prototype,"updateNowPlayingOverlay",null);_.E([_.hj("yt-playlist-lockup-now-playing-active"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],kE.prototype,"onPlaylistLockupNowPlaying",null);
_.E([_.Pg("data","isDarkTheme"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kE.prototype,"colorPaletteChanged",null);_.E([_.x({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],kE);
_.eIP=_.Ol()(kE,"ytd-playlist-panel-renderer",function(){if(Jk$===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);Jk$=l}l=Jk$;return l},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var mgJ;var dn=function(){return _.p.apply(this,arguments)||this};
_.Z(dn,_.p);dn.prototype.computeShouldButtonBeVertical=function(l,D){return l||D};
dn.prototype.onYtServiceRequestSent=function(l,D){(l=_.M(D.endpoint,_.kX))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.vr("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:l.status})):this.handleLikeEndpoint(l))};
dn.prototype.computelikeStatusEntityKey=function(l){return l==null?void 0:l.likeStatusEntityKey};
dn.prototype.handleLikeEndpoint=function(l){l.status==="LIKE"?this.JSC$17316_ytdDislikeToggleButtonRenderer.toggle(!1):l.status==="DISLIKE"?this.JSC$17316_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17316_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17316_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.QP.Object.defineProperties(dn.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var l;return uTd(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(l=this.likeStatusEntity)==null?void 0:l.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var l;if(this.data&&((l=this.data)==null||!l.hideDislikeButton)){var D;return uTd(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(D=this.likeStatusEntity)==null?void 0:D.likeStatus)}}}});
dn.prototype.onYtServiceRequestSent=dn.prototype.onYtServiceRequestSent;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],dn.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],dn.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],dn.prototype,"vertical",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],dn.prototype,"textTransform",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],dn.prototype,"useShortsIcon",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],dn.prototype,"underIconLabel",void 0);_.E([_.K({value:"left"}),_.T("design:type",String)],dn.prototype,"buttonTooltipPosition",void 0);_.E([_.K(),_.T("design:type",Object)],dn.prototype,"overrides",void 0);
_.E([_.gP("#like-button"),_.T("design:type",Object)],dn.prototype,"JSC$17316_ytdLikeToggleButtonRenderer",void 0);_.E([_.gP("#dislike-button"),_.T("design:type",Object)],dn.prototype,"JSC$17316_ytdDislikeToggleButtonRenderer",void 0);_.E([_.t("data","likeStatusEntity.likeStatus","useShortsIcon"),_.T("design:type",Object),_.T("design:paramtypes",[])],dn.prototype,"likeButton",null);
_.E([_.t("data","likeStatusEntity.likeStatus","useShortsIcon"),_.T("design:type",Object),_.T("design:paramtypes",[])],dn.prototype,"dislikeButton",null);_.E([_.K({computed:"computelikeStatusEntityKey(data)"}),_.T("design:type",String)],dn.prototype,"likeStatusEntityKey",void 0);_.E([_.K({selectorArgs:["likeStatusEntityKey"],selector:SZ}),_.T("design:type",Object)],dn.prototype,"likeStatusEntity",void 0);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],dn.prototype,"onYtServiceRequestSent",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],dn);
var aj8=_.Ol()(dn,"ytd-like-button-renderer",function(){if(mgJ===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);mgJ=l}l=mgJ;return l},{mode:1});_.tD8={};
_.tD8.YtConditionalRendererBehavior=[_.Y.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(l,D){var U=this,n,y;return _.P(function(A){switch(A.nextAddress){case 1:if(!D)return U.hidden=!0,U.showSpinner=!1,A.return();if((n=l)==null?0:(y=n.visibilityCondition)==null?0:y.mode)switch(l.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return A.jumpTo(5);default:return A.jumpTo(6)}U.showSpinner=
!1;U.hidden=!0;return A.yield(U.shouldShow_(l),4);case 4:U.hidden=!A.yieldResult;A.jumpTo(0);break;case 5:return A.yield(U.shouldShow_(l),8);case 8:U.showSpinner=A.yieldResult;U.hidden=!1;A.jumpTo(0);break;case 6:return U.showSpinner=!1,A.yield(U.shouldShow_(l),9);case 9:U.hidden=!A.yieldResult,_.Kz(A)}})},
shouldShow_:function(l){return l&&l.supportedDatas&&l.supportedDatas.rendererVisibilityConditionData&&l.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(l.supportedDatas.rendererVisibilityConditionData.showIf):l&&l.visibilityCondition&&l.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(l.visibilityCondition.showIf):l&&l.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(l.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(l){switch(l){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(l){switch(l){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var l=_.Vh(this.hostElement,"yt-get-mdx-status");return l.length==1&&l[0].connected},
isLocationPermissionGranted_:function(){var l;return _.P(function(D){return D.nextAddress==1?navigator.permissions?D.yield(navigator.permissions.query({name:"geolocation"}),3):D.jumpTo(2):D.nextAddress!=2?(l=D.yieldResult,D.return(Promise.resolve(l.state==="granted"))):D.return(Promise.resolve(!1))})}}];var XhJ=fad("yt-icon",{callbackProps:["onKeydown"]}),SWJ=_.q("kevlar_use_wil_icons")?_.w(function(l){var D=l.icon;var U=l.active;var n=l.className;var y=l.style;var A=l.title;var C=l.size;var h=l.dataSelected;var b=l.dataDisabled;var u=l.role;var Q=l.themeOverride;var G=l.animateIcon;var J=l.ariaHidden;var L=l.ariaExpanded;var R=l.ariaLabel;var a=l.tabindex;var S=l.id;var d=l.iconFilter;var c=l.gradientColor;var N=l.onKeydown;var z=function(){var iG=D==null?void 0:D(),CC=null,vo=void 0;iG&&(iG=hOm(iG),
iG=JTG(iG),iG.length&&(CC=iG[1],vo=iG[0]));return{iconName:CC,iconSetName:vo}},f=function(){return PEm(z().iconName,U==null?void 0:U(),void 0,C==null?void 0:C(),z().iconSetName,_.Jc().resolve(_.ne))},I=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:d==null?void 0:d(),iconColor:c==null?void 0:c()}};
return _.g(_.v,{cond:G,then:function(){return _.g(XhJ,{icon:D,active:U,className:n,style:y,title:A,dataSelected:h,dataDisabled:b,role:u,themeOverride:Q,ariaHidden:J,ariaExpanded:L,ariaLabel:R,tabindex:a,id:S,iconFilter:d,gradientColor:c,onKeydown:N})},
else:function(){return _.g(_.v,{cond:f,then:function(iG){return _.g("span",{class:_.DV("ytIconWrapperHost",n),role:u,"aria-label":R,"aria-hidden":J,tabindex:function(){return isNaN(Number(a==null?void 0:a()))?void 0:Number(a==null?void 0:a())},
id:S,style:y,title:A,"on:keydown":_.n0(function(CC){return void(N==null?void 0:N(CC))})},_.g(_.L0,{data:iG,
options:I}))}})}})},"lg"):XhJ;var kq8=function(l){var D=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Je9();_.vG("ytglobal.ytUtilActivityCallback_",function(){_.iu(l,"yt-user-activity")});
new vA(function(){return D.JSC$17333_onMouseMove});
document.addEventListener("scroll",function(){return D.onScroll});
window.addEventListener("resize",function(){return D.onResize})},dg5=function(l,D,U){D in l.eventJobIds||(U=_.M9().addLowPriorityJob(function(){_.QX();
delete l.eventJobIds[D]},U),l.eventJobIds[D]=U)};
kq8.prototype.onScroll=function(l){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):l.target===document&&dg5(this,"scroll",200)};
kq8.prototype.onResize=function(){dg5(this,"resize",200)};
kq8.prototype.JSC$17333_onMouseMove=function(){dg5(this,"mousemove",100)};
_.Lu=function(l){l.scrollEventsToIgnore+=1;l.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){l.scrollEventsToIgnore--},500))};var KHJ=function(l){this.element=l;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
KHJ.prototype.showFeedbackDialog=function(l,D,U,n){var y=ckq();if(!y)return!1;var A=mL9();A.productId=y;D&&(A.flow="submit",A.report={description:D});U&&(ckq()==="59"?A.callback=_.DJ(function(){_.Na("userFeedbackEvent",{});U()}):A.callback=_.DJ(U));
A.bucket=n||_.H3("GOOGLE_FEEDBACK_BUCKET","Other");phP(A);l=xg2(this,"GFEEDBACK",l);try{_.G_y(A,l)}catch(C){return _.ll(C),!1}return!0};
KHJ.prototype.showHelpDialog=function(l,D,U){var n=this,y=ckq();if(!y)return!1;var A={helpCenterPath:"/youtube",productData:xg2(this,"GUIDED_HELP",U)};phP(A);var C=mL9();C.context=l||A.productData.context||"default";C.defaultHelpArticleId=D;C.enableSendFeedback=!0;(_.UG("gapi.load")||function(h,b){return b()})("client",function(){try{var h=Rv5(y,A);
if(_.q("web_always_load_chat_support")&&!n.chatSupportLoaded)try{h.JSC$10056_loadChatSupport(C),n.chatSupportLoaded=!0}catch(b){}h.startHelp(C)}catch(b){_.ll(b)}})};
var ckq=function(){var l=_.H3("GOOGLE_FEEDBACK_PRODUCT_ID");l||_.ll(Error("gi"));return l},phP=function(l){l&&(l.locale=_.q("kevlar_help_use_locale")?_.H3("INNERTUBE_CONTEXT_HL","en"):_.H3("HTML_LANG","en"))},xg2=function(l,D,U){var n=l.productData;
delete n.origin;n.device=_.LC();var y;a:{if(y=document.createElement("canvas")){var A=y.getContext("experimental-webgl",{stencil:!0});if(A){var C=A.getExtension("WEBGL_debug_renderer_info");if(C){y=A.getParameter(C.UNMASKED_RENDERER_WEBGL);break a}}if(A=y.getContext("webgl")){y=A.getParameter(A.RENDERER);break a}}y=null}n.gpu=y;n.isSDC=!!_.H3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(y=_.H3("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.we.extend(n,y);_.Zsl(D,n);_.ejc(n);(l=_.iu(l.element,"yt-get-autonav-pause-debug-state"))&&
l.length&&(n.autonav_pause_state=l[0]);l=_.km();n.browser_resolution=l.width+"\u00d7"+l.height+"@"+(window.devicePixelRatio||1)+"x";U&&_.we.extend(n,U);return n};
KHJ.prototype.resetProductData=function(){this.productData={}};var jlP=function(l){this.feedbackManager=new KHJ(l)};
jlP.prototype.showFeedbackDialog=function(l,D,U,n){return this.feedbackManager.showFeedbackDialog(l,D,U,n)};
jlP.prototype.showHelpDialog=function(l,D,U){return this.feedbackManager.showHelpDialog(l,D,U)};var FH5=function(){this.baseUrl="";this.aTag=document.createElement("a")},f_H=function(l,D,U){U=U===void 0?{}:U;
U.pbj||(U.pbj=1);U=_.lXl(D,U);l.baseUrl&&U&&!_.PS(U)[1]&&!_.bl(U)&&(D=l.baseUrl,Wo(D,"/")&&(D=D.slice(0,-1)),_.Ad(U,"/")&&(U=U.slice(1)),U=D+"/"+U);Il(l.aTag,_.rT(U||""));return l.aTag.href};
FH5.prototype.fetchData=function(l){return _.GBN(l)};
FH5.prototype.postData=function(l,D){var U={method:"POST"};if(D){for(var n=_.B(Object.keys(D)),y=n.next();!y.done;y=n.next()){y=y.value;var A=D[y];_.I_(A)&&(D[y]=JSON.stringify(A))}U.postParams=D}return _.GBN(l,U)};
_.$om=function(l,D,U,n,y){l=f_H(l,D,U);if(!l)throw n=Error("hi"),Object.assign(n,{params:D}),n;return _.GBN(l,y,n)};
FH5.prototype.requestDataForServiceEndpoint=function(l,D){if(_.M(l,_.R4s))return this.fetchData("/getAccountSwitcherEndpoint");D=D||{};var U=_.M(l,m2r);U?D.se=U.base64EncodedServiceEndpoint:D.sej=JSON.stringify(l);(U=_.t6())&&_.q("enable_service_ajax_csn")&&(D.csn=U);D.theme=_.pU();_.M(l,qOs)&&_.H3("DELEGATION_CONTEXT")&&(D.delegation_context=JSON.stringify(_.H3("DELEGATION_CONTEXT")));U=null;for(var n in l)if(Wo(n,"Endpoint")||Wo(n,"Command")){U=n;break}if(!U){var y=Error("ii");Object.assign(y,{params:l});
_.O0d(y,"WARNING");return new _.X0(function(C,h){h(y)})}n={name:U};
var A;(U=(A=_.M(l,_.AJ))==null?void 0:A.signal)&&(n.signal=U);(A=_.BS(window.location.href))&&A.internalcountrycode&&(n.internalcountrycode=A.internalcountrycode);A="/service_ajax";_.q("debug_forward_web_query_parameters")&&(A=_.uI$(A,window.location.search));A=_.hc(A,n);l.clickTrackingParams&&_.s9(A,{itct:l.clickTrackingParams});return this.postData(A,D)};_.oC8=new _.A7("GFEEDBACK_TOKEN");var whW;var rkq;var zIw;var fjJ;var Kf=function(){var l=_.p.apply(this,arguments)||this;l.compact=!1;l.dismissButtonDisabled=!1;l.shouldRenderReasonAsFormattedString=!_.q("web_player_error_message_reason_as_formatted_string_killswitch");return l};
_.Z(Kf,_.p);Kf.prototype.computeHasIcon_=function(l){return!!l};
Kf.prototype.isSignInIcon_=function(l){return l=="yt-icons:prompted_sign_in"};
Kf.prototype.onDismissButtonClick=function(){var l=this,D=this.data.disableOnClick,U,n=(U=this.data.dismissButton)==null?void 0:U.buttonRenderer;D&&!this.dismissButtonDisabled&&n&&setTimeout(function(){l.dismissButtonDisabled=!0},0)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.tD8.YtConditionalRendererBehavior),_.T("design:type",Object)],Kf.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Kf.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.T("design:type",Object)],Kf.prototype,"icon_",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.T("design:type",Boolean)],Kf.prototype,"hasIcon_",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.T("design:type",Boolean)],Kf.prototype,"signInIcon_",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Kf.prototype,"compact",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Kf.prototype,"dismissButtonDisabled",void 0);
_.E([_.K({type:Boolean}),_.T("design:type",Object)],Kf.prototype,"shouldRenderReasonAsFormattedString",void 0);_.E([_.S0({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Kf);
_.r(Kf,"yt-player-error-message-renderer",function(){if(fjJ===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;zIw===void 0&&(zIw=document.createElement("template"));var n=zIw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);fjJ=l}l=fjJ;return l},{mode:2});var $g$;var NTP;var ci=function(){return _.p.apply(this,arguments)||this};
_.Z(ci,_.p);ci.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ci.prototype.computeIcon_=function(l){return l?"yt-icons:"+l.iconType.toLowerCase():"error_outline"};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ci.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.T("design:type",Object)],ci.prototype,"icon_",void 0);_.E([_.S0({is:"yt-player-kav-renderer",disableElementRegistration:!0})],ci);
_.r(ci,"yt-player-kav-renderer",function(){if(NTP===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;$g$===void 0&&($g$=document.createElement("template"));var n=$g$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);NTP=l}l=NTP;return l},{mode:2});var X1s=_.wL(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.Tt(_.w(function(l){var D=_.bP("div"),U=_.B(_.aw(0,void 0,"jxh75d")),n=U.next().value,y=U.next().value;U=_.B(_.aw(null,void 0,"F5Zm8"));var A=U.next().value,C=U.next().value;_.N1(function(){Sso(D.value,y,C);D.value.scrollIntoView()});
U=kB$.bind(null,l.data,n);_.QE("resize",function(){var h=A();if(n()===1&&h!==null){var b;(b=window.grecaptcha)==null||b.reset(h)}});
return _.g("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.g("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.g("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var h,b;return(h=l.data().accessibility)==null?void 0:(b=h.accessibilityData)==null?void 0:b.label}),_.g(_.BO,{text:U,
className:_.DV("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.g("div",{el:D,class:"ytwPlayerCaptchaViewModelGridItem"})))},"mg"),"yt-player-captcha-view-model",{props:{data:_.ND}});var dLd=!1;_.sl8=_.w(function(l){var D=l.data;return _.g("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.g(_.v,{cond:function(){return D().icon},
then:function(U){return _.g("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.g(_.rh,{data:U,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.g(_.v,{cond:function(){return D().title},
then:function(U){return _.g("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.g(_.BO,{text:U}))}}),_.g(_.v,{cond:function(){return D().description},
then:function(U){return _.g("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.g(_.BO,{text:U}))}}),_.g(_.uI,{data:function(){return D().primaryButton}},{buttonViewModel:function(U){return _.g(_.t9,{data:U.data,
className:"interstitialViewModelFlexItem"})}}),_.g(_.uI,{data:function(){return D().secondaryButton}},{buttonViewModel:function(U){return _.g(_.t9,{data:U.data,
className:"interstitialViewModelFlexItem"})}}))},"ng");
_.sl8.idomCompat=!0;var EC$=_.w(function(l){var D=l.data;_.p4();return _.g("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.g("div",{class:"playerInterstitialRendererScrim"},_.g(_.uI,{data:function(){return D().content}},{interstitialViewModel:_.sl8})))},"og");
EC$.idomCompat=!0;_.Tt(EC$,"yt-player-interstitial-renderer",{props:{data:_.C$}});var pf=function(){var l=_.p.apply(this,arguments)||this;l.noBackground=!1;l.compact=!1;l.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return l};
_.Z(pf,_.p);pf.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"}}}};
pf.prototype.onUpdatePlayerErrorMessageCommand_=function(l){if(_.M(l,ok1)){var D;if(l=(D=_.M(l,ok1))==null?void 0:D.newPlayerErrorMessageRenderer)this.data=l}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],pf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],pf.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],pf.prototype,"status",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],pf.prototype,"noBackground",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],pf.prototype,"compact",void 0);_.E([_.S0({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],pf);
var TTH=_.Ol()(pf,"yt-playability-error-supported-renderers",function(){if(rkq===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;whW===void 0&&(whW=document.createElement("template"));var n=whW;U.call(D,n.content.cloneNode(!0),l.content.firstChild);rkq=l}l=rkq;return l},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Ijr=fad("ytd-button-renderer");var K9l=void 0,p1s=void 0;var F93=new WWy;var Vd=new _.A7("ENTITY_STATE_TOKEN"),xE=new _.A7("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var HcP=function(l){this.store=l;this.iG7=new _.hvy},dC_=function(l,D,U){var n,y;
if(!(y=((n=D.playabilityStatus)==null?void 0:n.status)!=="OK")){l=l.store;var A;y=D.offlineState&&((A=D.videoDetails)==null?0:A.videoId)?_.q("enable_pl_r_c_cd")?sf9(l.getState().entities,D.videoDetails.videoId):!!LPo(l.getState().entities,D.videoDetails.videoId):!1}if(y)return!0;y=fho(D);if(y===1){if(_.q("ab_v_vid_sig")){var C,h=(C=D.videoDetails)==null?void 0:C.videoId;if(!h||!U||h!==U){var b;D=new _.rc("282054944_vid",{fvv:U,oOB:(b=D.videoDetails)==null?void 0:b.videoId});_.EU(D)}}return!0}cQ$=
0;var u,Q;b=(h=D.auxiliaryUi)==null?void 0:(u=h.messageRenderers)==null?void 0:(Q=u.bkaEnforcementMessageViewModel)==null?void 0:Q.displayType;if(y!==3&&(b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||b==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;b={reason:_.H6(_.C3("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.q("ks_something_wrong_learn_more")?HQc("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.H6(_.C3("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:_.H6("282054944")};YW$(D,{playerErrorMessageRenderer:b});return!1},KsN=function(l,D){if(Yhs(D)){_.CU(1,!0);
var U=(U=Yhs(D))&&_.cEl()?U:void 0;U?(YW$(D,{enforcementMessageViewModel:U}),l.iG7.increment("IN_PLAYER"),_.CU(5)):(l.iG7.increment("SKIP_DISPLAY"),_.CU(2))}},YW$=function(l,D){l.playabilityStatus=Object.assign({},l.playabilityStatus,{status:"ERROR",
errorScreen:D});l.videoDetails=void 0};
HcP.prototype.handleResponse=function(l,D){if(l.playabilityStatus){var U,n,y,A=(D==null?void 0:(U=D.innerTubeRequest)==null?void 0:U.videoId)||(D==null?void 0:(n=D.innerTubeRequest)==null?void 0:(y=n.playerRequest)==null?void 0:y.videoId);dC_(this,l,A)&&KsN(this,l)}};
HcP[Lt]=[Vd];var Sxs=new _.A7("ADBLOCK_DETECTION_SERVICE_TOKEN");var oz=function(l){this.kNW=l};
oz.prototype.bindInnertubeChallengeFetcher=function(l){this.kNW.bicf(l)};
oz.prototype.registerChallengeFetchedCallback=function(l){this.kNW.bcr(l)};
oz.prototype.getLatestChallengeResponse=function(){return this.kNW.blc()};var OcT;OcT=_.wL(["https://static.doubleclick.net/instream/ad_status.js"]);_.VD8=_.Ja(OcT);var Uqr;_.jI=function(l,D,U){var n=this;this.network=l;this.options=D;this.networkStatusManager=U;this.hq=null;if(D.useBotguardEverywhere){var y=new _.Au;this.hq=y.promise;_.nC.ytAtRC&&_.Ji(_.Tn,function(){var A,C;return _.P(function(h){if(h.nextAddress==1){if(!_.nC.ytAtRC)return h.return();A=izJ(null);return h.yield(n.lN(A),2)}C=h.yieldResult;_.nC.ytAtRC&&_.nC.ytAtRC(JSON.stringify(C));_.Kz(h)})});
TKc().then(function(A){var C,h,b,u;return _.P(function(Q){if(Q.nextAddress==1)return A.bindInnertubeChallengeFetcher(function(G){return n.lN(izJ(G))}),Q.yield($1_(),2);
C=Q.yieldResult;h=A.getLatestChallengeResponse();b=h.challenge;if(!b)throw Error("ji");u={challenge:b,n8:FZ(b),vm:C,bgChallenge:new xX};y.resolve(u);A.registerChallengeFetchedCallback(function(G){G=G.challenge;if(!G)throw Error("ki");G={challenge:G,n8:FZ(G),vm:C,bgChallenge:new xX};n.hq=Promise.resolve(G)});
_.Kz(Q)})})}else D.preload&&lYJ(this,new Promise(function(A){_.oI(_.Tn,function(){A(Dq$(n))},0)}))};
Uqr=function(l){var D={preload:!0,useBotguardEverywhere:!0},U=!1;if(typeof D==="boolean")var n={preload:D};else typeof D==="undefined"?n={preload:!0}:(n=D,U=!!D.uMG);D=U?void 0:new _.AL;_.jI.instance=new _.jI(l,n,D);return _.jI.instance};
_.jI.prototype.eCX=function(){var l=this;return _.P(function(D){return D.nextAddress==1?D.yield(Promise.race([l.hq,null]),2):D.return(!!D.yieldResult)})};
_.jI.prototype.zKu=function(l,D,U){var n=this,y,A,C;return _.P(function(h){n.hq===null&&lYJ(n,Dq$(n));y=!1;A={};C=function(){var b,u,Q;return _.P(function(G){switch(G.nextAddress){case 1:return G.yield(n.hq,2);case 2:b=G.yieldResult;A.challenge=b.challenge;if(!b.vm){"c1a"in b.n8&&(A.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");G.jumpTo(3);break}u=Object.assign({},{c:b.challenge,e:l},D);_.ZY(G,4);y=!0;return G.yield(b.vm.snapshot({rK:u}),6);case 6:(Q=G.yieldResult)?A.webResponse=Q:A.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.WG(G,3);break;case 4:_.kF(G),A.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(l==="ENGAGEMENT_TYPE_PLAYBACK"){var J=b.n8,L={};if(J.c6a){var R=Number(_.H3("DCLKSTAT",0));L.reportingStatus=String(Number(J.c)^(isNaN(R)?0:R))}J.c6b&&(L.broadSpectrumDetectionResult=String(Number(J.c)^Number(_.H3("CATSTAT",0))));A.adblockReporting=L}return G.return(A)}})};
return h.return(Promise.race([C(),nFJ(U,function(){var b=Object.assign({},A);y&&(b.error="ATTESTATION_ERROR_VM_TIMEOUT");return b})]))})};
var izJ=function(l){var D={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};l&&(D.interpreterHash=l);return D},Dq$=function(l,D){D=D===void 0?0:D;
var U,n,y,A,C,h,b,u,Q,G,J,L;return _.P(function(R){switch(R.nextAddress){case 1:U=izJ(Plv().kEV);if(_.q("att_fet_ks"))return _.ZY(R,7),R.yield(l.lN(U),9);_.ZY(R,4);return R.yield(yvJ(l,U),6);case 6:C=R.yieldResult;y=C.nXJ;A=C.lBo;n=C;_.WG(R,3);break;case 4:return _.kF(R),_.II(Error("li`"+D)),Avq(l,864E5),R.return({challenge:"",n8:{},vm:void 0,bgChallenge:void 0});case 9:n=R.yieldResult;if(!n)throw Error("mi");if(!n.challenge)throw Error("ni");y=n.challenge;A=FZ(y);if("c1a"in A&&(!n.bgChallenge||!n.bgChallenge.program))throw Error("oi");
_.WG(R,3);break;case 7:h=_.kF(R);_.II(h);D++;if(D>=5)return _.II(Error("li`"+D)),Avq(l,864E5),R.return({challenge:"",n8:{},vm:void 0,bgChallenge:void 0});b=1E3*Math.pow(2,D-1)+Math.random()*1E3;return R.return(new Promise(function(a){_.oI(_.Tn,function(){a(Dq$(l,D))},b)}));
case 3:u=E_3(A);Avq(l,u*1E3);Q=void 0;if(!("c1a"in A&&n.bgChallenge)){R.jumpTo(10);break}G=sFK(n.bgChallenge);_.ZY(R,11);return R.yield(gZy(Plv(),G),13);case 13:_.WG(R,12);break;case 11:return J=_.kF(R),_.II(J),R.return({challenge:y,n8:A,vm:Q,bgChallenge:G});case 12:return _.ZY(R,14),Q=new _.rx({challenge:G,xu6:{vA:"aGIf"}}),R.yield(Q.vAW,16);case 16:_.WG(R,10);break;case 14:L=_.kF(R),_.II(L),Q=void 0;case 10:return R.return({challenge:y,n8:A,vm:Q,bgChallenge:G})}})};
_.jI.prototype.lN=function(l){var D=this,U;return _.P(function(n){U=D.networkStatusManager;if(!U||U.isNetworkAvailable())return n.return(D.network.lN(l));_.XI("att_pna",void 0,"attestation_challenge_fetch");return n.return(new Promise(function(y){U.listenOnce("publicytnetworkstatus-online",function(){D.network.lN(l).then(y)})}))})};
var W6P=function(l){if(!l)throw Error("mi");if(!l.challenge)throw Error("ni");var D=l.challenge,U=FZ(D);if("c1a"in U&&(!l.bgChallenge||!l.bgChallenge.program))throw Error("oi");return Object.assign({},l,{nXJ:D,lBo:U})},yvJ=function(l,D){var U,n,y,A,C;
return _.P(function(h){switch(h.nextAddress){case 1:U=void 0,n=0,y={};case 2:if(!(n<5)){h.jumpTo(4);break}if(!(n>0)){h.jumpTo(5);break}y.jCt=1E3*Math.pow(2,n-1)+Math.random()*1E3;return h.yield(new Promise(function(b){return function(u){_.oI(_.Tn,function(){u(void 0)},b.jCt)}}(y)),5);
case 5:return _.ZY(h,7),h.yield(l.lN(D),9);case 9:return A=h.yieldResult,h.return(W6P(A));case 7:U=C=_.kF(h),C instanceof Error&&_.II(C);case 8:n++;y={jCt:void 0};h.jumpTo(2);break;case 4:throw U;}})},lYJ=function(l,D){l.hq=D},BET=function(l){var D,U,n;
return _.P(function(y){if(y.nextAddress==1)return y.yield(Promise.race([l.hq,null]),2);D=y.yieldResult;var A=Dq$(l);l.hq=A;(U=D)==null||(n=U.vm)==null||n.dispose();_.Kz(y)})},Avq=function(l,D){var U=Date.now()+D,n=function(){var y;
return _.P(function(A){y=U-Date.now();return y<1E3?A.yield(BET(l),0):(_.oI(_.Tn,n,Math.min(y,6E4)),A.jumpTo(0))})};
n()},nFJ=function(l,D){return new Promise(function(U){_.oI(_.Tn,function(){U(D())},l)})};var C8T=function(){};
C8T.prototype.processContext=function(l){var D=_.jI.instance;if(!D)return _.Qn();var U=iDB(l);return U?new vq(D.zKu(U,YsK(l),500).then(function(n){var y;(l==null?0:(y=l.innerTubeRequest)==null?0:y.context)||(l.innerTubeRequest.context={});y=l.innerTubeRequest.context;y.request||(y.request={});y.request.attestationResponseData=n})):_.Qn()};var hUw=function(l){this.innertubeTransportService=l};
hUw.prototype.lN=function(l){_.XI("att_fsr",void 0,"attestation_challenge_fetch");return _.BN(this.innertubeTransportService,l,_.T3(_.NR7)).then(function(D){_.XI("att_frr",void 0,"attestation_challenge_fetch");return D})};_.P85=function(l){this.innertubeTransportService=l};var bzP=new _.A7("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var gFv=function(){},vF8=function(l,D,U,n,y){var A=_.H3("YPC_MB_URL");
_.oQ9(A).then(function(){uRH(A,l,D,U,n,y)})},uRH=function(l,D,U,n,y,A){try{var C=_.Nd.payments.business.integration,h=_.Nd.payments.business.integration.Style.create().withMaterialDesignStyle(),b=C.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.q("enable_window_constrained_buy_flow_dialog")&&(b=b.usingPopupStyle("windowConstrained"));A&&(b=b.usingCloseCallback(A));var u=U?U:_.H3("YPC_GB_LANGUAGE"),Q=_.H3("SESSION_INDEX");C.bootstrap.fromPaymentsUrl(l);C.bootstrap.asMashupMode(b).usingGaiaIndex(Q).usingLocale(u).usingStyle(h).usingDefaultActivityStatusChangeHandler().inStandaloneContext(C.standaloneContextAuthId.forGaia()).purchaseManager(D,function(G){n&&n(G)}).load(void 0,y)}catch(G){throw y&&y(G),_.EU(G),G;
}};var QVJ=new _.A7("PURCHASE_MANAGER_TOKEN");var GzJ=function(){var l=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return l.videos},
getContinuationsPresent:function(){return l.continuationsPresent},
setVideos:function(D){l.videos=D},
getRecommendedVideos:function(){return l.recommendedVideos},
setRecommendedVideos:function(D){l.recommendedVideos=D}}};
GzJ.prototype.addVideos=function(l){l&&(this.videos=l.filter(function(D){return!!_.DeN(D)}).map(function(D){var U=_.DeN(D);
a:{var n;if(D.playlistVideoRenderer&&((n=D.playlistVideoRenderer)==null?0:n.voteSortTiebreaker))var y=D.playlistVideoRenderer.voteSortTiebreaker;else{if(_.M(D,rk)){var A;if(n=(y=_.M(D,rk))==null?void 0:(A=y.playlistItemData)==null?void 0:A.voteSortTiebreaker){y=n;break a}}y=""}}return{itemId:U,videoId:_.yIl(D),voteCount:_.AIK(D),voteSortTiebreaker:y}}),this.continuationsPresent=!!_.M(l[l.length-1],_.$X))};
var Jv2=function(l,D){return l.videos.findIndex(function(U){return U.itemId===D})},L68=function(l,D){return l.recommendedVideos.findIndex(function(U){return U.itemId===D})},qS5=function(l){l={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:l}}}}};_.Jc().resolve(_.qK).resolveCommand(l)};var Mc$=function(){GzJ.apply(this,arguments)};
_.Z(Mc$,GzJ);
var fEk=function(l,D,U,n){if(!l.parentElem)throw Error("ti");var y=Jv2(l,D);y===-1&&(y=L68(l,D),y=y!==-1?y+l.videos.length:-1);if(y===-1)throw Error("ui");var A=y>=l.videos.length?l.recommendedVideos[y-l.videos.length]:l.videos[y];A.voteCount=U;A.voteSortTiebreaker=Date.now().toString();y>=l.videos.length?l.recommendedVideos.splice(y-l.videos.length,1):l.videos.splice(y,1);var C=l.videos;for(var h=0,b=C.length-1;h<=b;){var u=Math.floor((h+b)/2);if(C[u].voteCount<A.voteCount)b=u-1;else if(C[u].voteCount>A.voteCount)h=
u+1;else{a:{var Q=A.voteSortTiebreaker;var G=C[u].voteSortTiebreaker;if(Q.length!==G.length)Q=Q.length>G.length;else{for(var J=0;J<Q.length;J++){var L=Q.charCodeAt(J),R=G.charCodeAt(J);if(L>R){Q=!0;break a}if(L<R)break}Q=!1}}Q?b=u-1:h=u+1}}C=h;if(C===-1)throw Error("vi");l.videos.splice(C,0,A);y!==C&&RUr(l,y,C,D,U,n)},RUr=function(l,D,U,n,y,A){var C,h=(C=l.parentElem)==null?void 0:C.children,b=Math.min(D,U),u=Math.max(D,U);
if(h)for(C=b;C<=u;C++)h[C].style.viewTransitionName="item-"+String(C);document.startViewTransition(function(){if(l.parentElem){var Q=l.parentElem.children;if(!(!Q||D<0||D>=Q.length||U<0||U>=Q.length)){var G=Q[D];if(G){G.remove();l.showRefreshPill=U>=l.videos.length-1&&l.continuationsPresent;if(!l.showRefreshPill){Q=Q[U]||null;var J;(J=l.parentElem)==null||J.insertBefore(G,Q)}_.O9(l.parentElem,"yt-update-video-data-voting-animation",{toIdx:U,itemId:n,newVoteCount:y,voteStatus:A,hideItem:l.showRefreshPill})}}}}).finished.then(function(){if(h)for(var Q=
b;Q<=u;Q++)h[Q].style.viewTransitionName="";
if(l.showRefreshPill)qS5(_.C3("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var G;if(G=Q=(G=l.parentElem)==null?void 0:G.children[U])G=Q.getBoundingClientRect(),Q=G.bottom,G=!(G.top>=0&&Q<=l.clientHeight);G&&(G=_.hJ(D>U?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(D-U)),qS5(G))}})};var mq8=function(l,D){var U=this;l?this.innertubeTransportServicePromise=Promise.resolve(l):D&&(this.innertubeTransportServicePromise=D(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new qI(3E3,function(n){return Zzw(U,n)},0);
this.validateMiniAppVideoIdRateLimiter=new qI(3E3,function(n){return eUW(U,n)},1)},ljJ=function(l,D){l.JSC$17445_miniAppId=D;
l.reportMiniAppValueRateLimiter=new qI(3E3,function(U){return Zzw(l,U)},0);
l.validateMiniAppVideoIdRateLimiter=new qI(3E3,function(U){return eUW(l,U)},1)},Ug8=function(l,D){var U;
return _.P(function(n){if(n.nextAddress==1)return n.yield(l.reportMiniAppValueRateLimiter.call(D),2);U=n.yieldResult;return n.return([U,D])})},Zzw=function(l,D){var U,n,y,A,C,h,b;
return _.P(function(u){switch(u.nextAddress){case 1:return u.yield(l.innertubeTransportServicePromise,2);case 2:return U=u.yieldResult,n=_.T3(YD5),y=Date.now(),A={externalPostId:l.JSC$17445_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(y/1E3),nanos:Math.round(y%1E3*1E6)},intValue:""+D}},_.ZY(u,3),u.yield(_.BN(U,A,n),5);case 5:C=u.yieldResult;_.WG(u,4);break;case 3:throw h=_.kF(u),h;case 4:if(C){if("error"in C&&C.error)throw C.error;if(C.errorMetadata)throw Error("wi`"+
C.errorMetadata.status);if(b=C.userStatResult)return u.return(b);throw Error("xi");}throw Error("yi");}})},ykH=function(l){var D,U,n,y,A;
_.P(function(C){switch(C.nextAddress){case 1:return C.yield(l.innertubeTransportServicePromise,2);case 2:return D=C.yieldResult,U=_.T3(YD5),n={externalPostId:l.JSC$17445_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.ZY(C,3),C.yield(_.BN(D,n,U),5);case 5:y=C.yieldResult;_.WG(C,4);break;case 3:throw A=_.kF(C),A;case 4:if(y==null)throw Error("yi");if("error"in y&&y.error)throw y.error;if(y.errorMetadata)throw Error("wi`"+y.errorMetadata.status);_.Kz(C)}})};
mq8.prototype.flush=function(){var l=this;return _.P(function(D){return D.nextAddress==1?D.yield(l.reportMiniAppValueRateLimiter.flush(),2):D.yield(l.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var nC5=function(l,D){return _.P(function(U){return U.nextAddress==1?U.yield(l.validateMiniAppVideoIdRateLimiter.call(D),2):U.return(U.yieldResult)})},eUW=function(l,D){var U,n,y,A,C,h;
return _.P(function(b){switch(b.nextAddress){case 1:return b.yield(l.innertubeTransportServicePromise,2);case 2:return U=b.yieldResult,n=_.T3(fFr),y={videoId:D},_.ZY(b,3),b.yield(_.BN(U,y,n),5);case 5:A=b.yieldResult;_.WG(b,4);break;case 3:throw C=_.kF(b),C;case 4:if(A){if("error"in A&&A.error)throw A.error;if(A.errorMetadata)throw Error("wi`"+A.errorMetadata.status);if(h=A.playabilityStatus)return b.return(h.status);throw Error("zi");}throw Error("yi");}})};
mq8[Lt]=[_.G8(_.Ju),_.G8(mv_)];var aY$=function(){this.clientData=new Map};
aY$.prototype.getData=function(l){return this.clientData.get(l)};var tcr=function(l){this.store=l};
tcr.prototype.handleResponse=function(l){(l=_.M(l.frameworkUpdates,rf))&&_.h4(l,this.store)};
tcr[Lt]=[_.Op];var XYJ=new _.A7("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var SSJ,kzr;_.FS=new _.A7("FLOW_STATE_MANAGER_TOKEN");SSJ=function(){this.flowStates=new Map};
kzr=function(l,D){l=_.B(l.flowStates.values());for(var U=l.next();!U.done;U=l.next())if(U=U.value,U.flowRenderer.targetId===D)return U};var dqP=function(l,D){this.JSC$17470_reduxStore=l;this.JSC$17470_flowStateManager=D};
_.Z(dqP,Pf);
dqP.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u,Q,G,J,L,R;return _.P(function(a){U=_.M(l,_.U$h);n=U.stepId;y=U.targetId;A=kzr(D.JSC$17470_flowStateManager,y);h=(C=A)==null?void 0:C.flowRenderer;b=h.flowStateEntityKey;u=_.zM(D.JSC$17470_reduxStore.getState(),b);if(!u)return a.return();Q=u.currentStepId;L=(J=(G=u)==null?void 0:G.stepIdStack)!=null?J:[];R=Q===L[L.length-1]?n:Q;D.JSC$17470_reduxStore.dispatch(_.et("flowStateEntity",b,{currentStepId:n,stepIdStack:[R]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Kz(a)})};
var K6J=function(){dqP.apply(this,arguments)};
_.Z(K6J,dqP);K6J[Lt]=[_.Op,_.FS];var cvJ=function(l,D,U){this.JSC$17477_reduxStore=l;this.JSC$17477_flowStateManager=D;this.JSC$17477_commandHandler=U};
_.Z(cvJ,Pf);
cvJ.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J,L,R,a;return _.P(function(S){n=_.M(l,_.n0H);y=n.targetId;A=kzr(U.JSC$17477_flowStateManager,y);h=(C=A)==null?void 0:C.flowRenderer;b=h.flowStateEntityKey;u=_.zM(U.JSC$17477_reduxStore.getState(),b);J=[].concat(_.zz((G=(Q=u)==null?void 0:Q.stepIdStack)!=null?G:[]));L=J.pop();((R=u)==null?void 0:R.currentStepId)===L&&(L=J[J.length-1]);if(!L)return(a=n.onFirstStepCommand)&&U.JSC$17477_commandHandler.resolveCommand(a,D),S.return();
U.JSC$17477_reduxStore.dispatch(_.et("flowStateEntity",b,{currentStepId:L,stepIdStack:J}));_.Kz(S)})};
var pY2=function(){cvJ.apply(this,arguments)};
_.Z(pY2,cvJ);pY2[Lt]=[_.Op,_.FS,_.qK];var xqr=function(l,D){this.innertubeTransportService=l;this.JSC$17482_commandHandler=D};
_.Z(xqr,Pf);xqr.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h;return _.P(function(b){if(b.nextAddress==1){n=_.M(l,yMk);if(!n)return b.return();_.ZY(b,2);return b.yield(_.oL(U.innertubeTransportService,l),4)}if(b.nextAddress!=2){y=b.yieldResult;if(!y)return b.return();(A=y.updateFlowCommand)&&U.JSC$17482_commandHandler.resolveCommand(A,D);return _.WG(b,0)}_.kF(b);(h=(C=n)==null?void 0:C.onFailureCommand)&&U.JSC$17482_commandHandler.resolveCommand(h,D);_.Kz(b)})};
var jVv=function(){xqr.apply(this,arguments)};
_.Z(jVv,xqr);jVv[Lt]=[_.Ju,_.qK];var F6J=function(l,D){this.JSC$17488_flowStateManager=l;this.JSC$17488_commandHandler=D};
_.Z(F6J,Pf);
F6J.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C;return _.P(function(h){n=_.M(l,_.W57);y=n.targetId;A=kzr(U.JSC$17488_flowStateManager,y);if(!A)return h.return(Promise.resolve());var b=A,u=(C=n.steps)!=null?C:[],Q,G=(Q=b.flowRenderer.steps)!=null?Q:[];u=[].concat(_.zz(G),_.zz(u));b.flowRenderer.steps=u;n.flowContinuationCommand&&(A.flowRenderer.flowContinuationCommand=n.flowContinuationCommand);n.entityUpdateCommand&&U.JSC$17488_commandHandler.resolveCommand(n.entityUpdateCommand,D);
return h.return(Promise.resolve())})};
var oK=function(){F6J.apply(this,arguments)};
_.Z(oK,F6J);oK[Lt]=[_.FS,_.qK];var oF2={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var wY2=new _.A7("ICON_SET_TOKEN"),rvJ=new _.A7("ICON_URL_PROVIDER_TOKEN"),zUJ=new _.A7("PREFETCH_ICONS_TOKEN"),fYJ=new _.A7("ICON_MAP_FN_TOKEN");var wn={},$qW=(wn.ACCESS_TIME="clock",wn.ACCOUNT_BOX=_.H3("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",wn.ACCOUNT_BOX_CAIRO="person_account_cairo",wn.ACCOUNT_CIRCLE="person_circle",wn.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",wn.ACCOUNT_LINKED="account_link_success",wn.ACCOUNT_UNLINKED="account_link",wn.ADD_FRIEND="people",wn.ADD_MODERATOR="shield_add",wn.ADD_TO_LIBRARY="bookmark",wn.ADD_TO_PLAYLIST="add",wn.ADD_TO_QUEUE_TAIL="list_queue",wn.ADD_TO_REMOTE_QUEUE="list_music",
wn.ADD_TO_WATCH_LATER="clock",wn.ADD_VIDEO_LINK="film_strip_add",wn.ALERT_WARN_RED="alert_triangle",wn.ARROW_BACK="arrow_left",wn.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",wn.ARROW_DROP_DOWN="chevron_down",wn.ARROW_DROP_UP="chevron_up",wn.ARROW_FORWARD="arrow_right",wn.ARTIST="person_music",wn.AUDIOTRACK="audio",wn.AUTO_AWESOME="sparkle",wn.AVATAR_ANONYMOUS="person_circle",wn.AVATAR_LOGGED_OUT="person_circle",wn.BACK="arrow_left",wn.BAR_CHART="bar_graph",wn.BLOCK="slash_circle_left",
wn.BLOCK_USER="slash_circle_left",wn.BOOKMARK_BORDER="bookmark",wn.BREAKING_NEWS_ALT_1="article_alert",wn.BROADCAST_CAIRO="podcast_cairo",wn.BUG_REPORT="bug",wn.CAMERA_ALT="camera",wn.CAMPAIGN="megaphone",wn.CANCEL="x_circle",wn.CAPTIONS="closed_caption",wn.CAST_OUTLINE="chromecast",wn.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",wn.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",wn.CHAT="message_bubble_left",wn.CHAT_BUBBLE="message_bubble_empty",wn.CHAT_SPARK="spark_message_bubble_left",wn.CHECK_BOX_OUTLINE_BLANK=
"box_empty",wn.CHECK_CIRCLE_OUTLINE="check_circle",wn.CHECK_CIRCLE_THICK="check_circle",wn.CLARIFY="article_clarify",wn.CLOSED_CAPTION_SELECTED="closed_caption",wn.CLOSE="x_mark",wn.CLOUD_UPLOAD="cloud_arrow_up",wn.COLLAPSE="chevron_up",wn.COLLAPSE_CAIRO="chevron_up_cairo",wn.COLLECTION="layers",wn.COLOR_LENS="palette",wn.COMMENT="message_bubble_right",wn.CONSENT_SHIELD="person_shield",wn.CONTENT_CUT="scissors",wn.CONTENT_CUT_CAIRO="scissors_cairo",wn.COURSE=_.q("web_enable_course_icon_update")?"creator_academy":
"lightbulb",wn.COURSE_CAIRO=_.q("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",wn.CREATION_LIVE="radar_live",wn.CREATION_POST="box_pencil",wn.CREATION_UPLOAD="my_videos",wn.CREATION_UPLOAD_RED="upload",wn.CREATOR_METADATA_MONETIZATION="dollar_sign",wn.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",wn.CREATOR_STUDIO="youtube_studio",wn.DASHBOARD="grid_asymmetrical",wn.DELETE="trash_can",wn.DELETE_SWEEP="trash_can",wn.DESKTOP="laptop",wn.DISLIKE="thumb_down",wn.DISLIKE_SELECTED=
"thumb_down",wn.DISMISSAL="x_mark",wn.DISMISS_QUEUE="list_remove",wn.DONE_ALL="check_double",wn.DOWN_ARROW="arrow_down",wn.DO_NOT_DISTURB="slash_circle_left",wn.DRAFT="paper_corner_folded",wn.DRAG_HANDLE="bars_2",wn.EDIT="pencil",wn.EMOJI="face_very_happy",wn.EMOJI_FLAGS="flag",wn.EMOJI_OBJECTS="lightbulb",wn.EMOJI_PEOPLE="face_very_happy",wn.EMOJI_RECENT="clock",wn.EMPTY_HEART="heart",wn.EMPTY_LIKE="thumb_up",wn.ERROR_BLACK="alert_circle",wn.ERROR_OUTLINE="alert_circle",wn.EXIT_APP="arrow_in",wn.EXIT_TO_APP=
"arrow_in",wn.EXPAND="chevron_down",wn.EXPAND_ALL="chevron_expand",wn.EXPAND_CAIRO="chevron_down_cairo",wn.EXPAND_LESS="chevron_up",wn.EXPAND_MORE="chevron_down",wn.EXPLORE="compass",wn.EXPLORE_DESTINATION="compass",wn.EXTERNAL_LINK="open_new",wn.FAB_UPLOAD="upload",wn.FACE_HAPPY_OUTLINE="face_happy",wn.FACT_CHECK="article_check",wn.FASHION_LOGO="fashion",wn.FASHION_LOGO_CAIRO="fashion_cairo",wn.FAVORITE="heart",wn.FEEDBACK="message_bubble_alert",wn.FEEDBACK_CAIRO="message_bubble_alert_cairo",wn.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",wn.FILL_ARROW_SOLID_UP_16="arrow_solid_up",wn.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",wn.FILTER="menu_filter",wn.FIRST_PAGE="chevron_first",wn.FLAG="flag",wn.FULL_HEART="heart",wn.GAME_CONSOLE_DPAD="game_console_dpad",wn.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",wn.GAMING_LOGO="gaming",wn.GAMING_LOGO_CAIRO="gaming_cairo",wn.GO_TO_PAGE="arrow_right",wn.GROUPS="people_group",wn.HAPPY="face_happy",wn.HEALTH_AND_SAFETY="shield_plus",wn.HELP="question_circle",wn.HELP_CAIRO=
"question_circle_cairo",wn.HELP_OUTLINE="question_circle",wn.HIDE="slash_circle_left",wn.IMAGE="image",wn.INFINITY_ICON="infinity",wn.INFO="info_circle",wn.INFO_OUTLINE="info_circle",wn.INSERT_CHART="bar_graph_box_vertical",wn.INSERT_CHART_OUTLINED="bar_graph_box_vertical",wn.INSERT_PHOTO="image",wn.KEEP="pin",wn.KEEP_OFF="pin_off",wn.KEYBOARD="keyboard",wn.KEYBOARD_ARROW_DOWN="chevron_down",wn.KEYBOARD_ARROW_UP="chevron_up",wn.KIDS_BLOCK="slash_circle_left",wn.LANGUAGE="globe",wn.LAST_PAGE="chevron_last",
wn.LAUNCH="open_new",wn.LEARNING="lightbulb",wn.LEARNING_CAIRO="lightbulb_cairo",wn.LIBRARY_ADD=hbg("library_add"),wn.LIBRARY_OUTLINE="library",wn.LIBRARY_REMOVE=hbg(),wn.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",wn.LIKES_PLAYLIST="thumb_up",wn.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",wn.LIKE="thumb_up",wn.LIKE_SELECTED="thumb_up",wn.LIVE="radar_live",wn.LIVE_CAIRO="radar_live_cairo",wn.LIVE_UNLISTED="link",wn.LOCATION_ON="location_point",wn.LOCATION_PIN="location_point",wn.LOOP="arrow_repeat",wn.LOOP_ACTIVE=
"arrow_repeat",wn.LOOP_ONE="arrow_repeat_1",wn.LOOP_ONE_ACTIVE="arrow_repeat_1",wn.MEH="face_meh",wn.MEMBERS_ONLY_MODE_OFF="message_bubble_left",wn.MESSAGE="message_bubble_left",wn.MICROPHONE_ON="mic",wn.MIX="youtube_mix",wn.MONETIZATION_ON="dollar_sign_circle",wn.MONEY_FILL="dollar_sign_container",wn.MONEY_FILL_JPY="yen_sign_container",wn.MONEY_HEART="dollar_sign_heart",wn.MORE_HORIZ="overflow_horizontal",wn.MORE_VERT="overflow_vertical",wn.MUSIC="audio",wn.MUSIC_CAIRO="audio_cairo",wn.MUSIC_NOTE_SYMBOL=
"music",wn.MUSIC_SHUFFLE="arrow_shuffle",wn.MY_CHANNEL="person_circle",wn.MY_LOCATION="location_point",wn.NEWS_STORY="news",wn.NEXT="chevron_right",wn.NOTIFICATIONS="bell",wn.NOTIFICATIONS_ACTIVE="bell_on",wn.NOTIFICATIONS_CAIRO="bell_cairo",wn.NOTIFICATIONS_DONE_CHECKMARK="check",wn.NOTIFICATIONS_INBOX="bell",wn.NOTIFICATIONS_NONE="bell",wn.NOTIFICATIONS_OFF="bell_off",wn.NOT_INTERESTED="slash_circle_left",wn.OFFICIAL_ARTIST_BADGE="audio",wn.OFFLINE_CLOUD="cloud_off",wn.OFFLINE_DOWNLOAD="download",
wn.OFFLINE_DOWNLOAD_CAIRO="download_cairo",wn.OFFLINE_PAUSE="pause",wn.OPEN_IN_NEW="open_new",wn.OUTLINE_ADJUST="adjust",wn.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",wn.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",wn.OUTLINE_BAG="bag",wn.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",wn.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",wn.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",wn.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",wn.PAID="dollar_sign",wn.PAUSE_OUTLINED="pause",wn.PAYMENT=
"credit_card",wn.PERSON_RADAR_FILLED="person_radar",wn.PHONE_DOWNLOAD="mobile_download",wn.PLAYABLES_LOGO="tic_tac_toe",wn.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",wn.PLAYLISTS="list_play_arrow",wn.PLAYLISTS_CAIRO="list_play_arrow_cairo",wn.PLAYLIST_ADD=hbg("list_add"),wn.PLAYLIST_ADD_CHECK=hbg("list_check"),wn.PLAYLIST_PLAY="list_play_arrow",wn.PLAY_ALL="play_arrow",wn.PLAY_CIRCLE="play_arrow_circle",wn.PLAY_OUTLINED="play_arrow_circle",wn.PRIVACY_INFO="shield",wn.PRIVACY_PRIVATE="lock",wn.PRIVACY_PUBLIC=
"earth",wn.PRIVACY_UNLISTED="link",wn.PROMOTE="megaphone",wn.PURCHASES="price_tag",wn.PURCHASE_SUPER_CHAT="super_chat",wn.PURCHASE_SUPER_STICKER="super_sticker",wn.QUESTION_ANSWER="message_bubble_question",wn.QUEUE_PLAY_LAST="list_queue_last",wn.QUEUE_PLAY_NEXT="list_play_arrow",wn.REMIX_FILLED="youtube_shorts_remix",wn.REMOVE="bar_circle",wn.REMOVE_CIRCLE="bar_circle",wn.REMOVE_CIRCLE_OUTLINE="bar_circle",wn.REMOVE_DONE="check_double_off",wn.REMOVE_FROM_HISTORY="bar_circle",wn.REMOVE_FROM_PLAYLIST=
"bar_circle",wn.REMOVE_MODERATOR="shield_off",wn.REPLAY="arrow_circle",wn.REPLAY_10="skip_back_10",wn.REPORT_PROBLEM="alert_triangle",wn.SAD="face_sad",wn.SAVE_PLAYLIST="bookmark",wn.SCHEDULE="clock",wn.SCHOOL="creator_academy",wn.SCREEN_FULLSCREEN="screen_full",wn.SEARCH_HISTORY="arrow_time",wn.SELL="price_tag",wn.SETTINGS="gear",wn.SETTINGS_CAIRO="gear_cairo",wn.SETTINGS_LIGHT="gear",wn.SETTINGS_MATERIAL="gear",wn.SHARE_ARROW="share",wn.SHIELD_WITH_AVATAR="person_shield",wn.SHOPPING_BAG="bag",wn.SHOPPING_BAG_CAIRO=
"bag_cairo",wn.SHOPPING_CART="cart",wn.SHORTS_COMMENT="youtube_shorts_message_bubble_right",wn.SHORTS_DISLIKE="youtube_shorts_thumb_down",wn.SHORTS_LIKE="youtube_shorts_thumb_up",wn.SHORTS_SHARE="youtube_shorts_share",wn.SHUFFLE="arrow_shuffle",wn.SLOW_MODE_OFF="message_bubble_left",wn.SOCIAL="people",wn.SORT="menu_sort",wn.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",wn.SPEED_1X="1x",wn.SPEED_1_POINT_2X="1_point_2x",wn.SPEED_1_POINT_5X="1_point_5x",wn.SPEED_1_POINT_8X="1_point_8x",wn.SPEED_2X="2x",
wn.SPEED_POINT_2X="point_2x",wn.SPEED_POINT_8X="point_8x",wn.SPONSORSHIP_STAR="star_circle",wn.STAFF_PICK="spotlight",wn.START_DVR="add",wn.STAR_BORDER="star",wn.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",wn.STICKER_EMOTICON="face_happy",wn.STOP_DVR="stop",wn.SUBSCRIBE="youtube_logo_icon",wn.SUBSCRIBE_PLUS="add_cairo",wn.SUBSCRIPTION_MANAGER="gear",wn.SUPERVISOR_ACCOUNT="people",wn.SUPER_CHAT_FOR_GOOD="hands_heart",wn.SWAP_HORIZ="arrow_swap_horizontal",wn.SWITCH_ACCOUNTS="person_account",wn.TAB_ACCOUNT=
"person",wn.TAB_ACTIVITY="bell",wn.TAB_BOOKMARK="bookmark",wn.TAB_EXPLORE="compass",wn.TAB_HOME="home",wn.TAB_HOME_CAIRO="home_cairo",wn.TAB_INBOX="mail",wn.TAB_LIKED="thumb_up",wn.TAB_MUSIC_PREMIUM="youtube_music",wn.TAB_SHORTS="youtube_shorts",wn.TAB_SHORTS_CAIRO="youtube_shorts_cairo",wn.TAB_SUBSCRIPTIONS="subscriptions",wn.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",wn.TAB_TRENDING="fire",wn.TIMER="stopwatch",wn.TRAILER="youtube_originals",wn.TRENDING="fire",wn.TRENDING_CAIRO="fire_cairo",wn.TRENDING_DOWN=
"rating_down",wn.TRENDING_UP="rating_up",wn.TROPHY="trophy",wn.TROPHY_CELEBRATIONS="fireworks",wn.TUNE="adjust",wn.UNBLOCK_USER="bar_circle",wn.UNLIMITED="youtube_logo_icon",wn.UNPLUGGED_LIVE_GUIDE="radar_live",wn.UNPLUGGED_SPORTS="eye_off",wn.UPLOADS="library",wn.UP_ARROW="arrow_up",wn.VERTICAL_ALIGN_BOTTOM="download",wn.VERY_HAPPY="face_very_happy",wn.VERY_SAD="face_very_sad",wn.VIDEOGAME_ASSET="gaming",wn.VIDEOS="play_arrow_circle",wn.VIDEO_CALL="video_camera_add",wn.VIDEO_LIBRARY_WHITE="library",
wn.VIDEO_YOUTUBE="youtube_logo_icon",wn.VIEW_LIST="list_view",wn.VIEW_LIST_CAIRO="list_view_cairo",wn.VISIBILITY="eye",wn.VISIBILITY_OFF="eye_off",wn.VOLUME_MUTE="volume_off",wn.VOLUME_UP="volume_on",wn.WALLPAPER="image",wn.WARNING="alert_triangle",wn.WATCH_HISTORY="arrow_time",wn.WATCH_HISTORY_CAIRO="arrow_time_cairo",wn.WATCH_LATER="clock",wn.WATCH_LATER_CAIRO="clock_cairo",wn.WATCH_RELATED_MIX="youtube_mix",wn.WHAT_TO_WATCH="home",wn.YOUTUBE_MUSIC_MONOCHROME="youtube_music",wn.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",wn.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",wn.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",wn.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",wn.YT_OUTLINE_MUSIC_24="music",wn);var rn={},NEH=(rn.ACCESS_TIME="clock",rn.ACCOUNT_BOX="person_square",rn.ACCOUNT_BOX_CAIRO="person_square",rn.ACCOUNT_CIRCLE="person_circle",rn.ACCOUNT_CIRCLE_CAIRO="person_circle",rn.ACCOUNT_LINKED="account_link",rn.ACCOUNT_UNLINKED="account_link",rn.ADD_CIRCLE="add_circle",rn.ADD_CIRCLE_OUTLINE="add_circle",rn.ADD_FRIEND="person_child",rn.ADD_MODERATOR="shield_add",rn.ADD_TO_LIBRARY="bookmark",rn.ADD_TO_PLAYLIST="add",rn.ADD_TO_QUEUE_TAIL="queue",rn.ADD_TO_REMOTE_QUEUE="playlist_audio",rn.ADD_TO_WATCH_LATER=
"clock",rn.ADD_VIDEO_LINK="film_strip_add",rn.ADMIN_PANEL_SETTINGS="person_gear",rn.ALERT_WARN_RED="alert_triangle",rn.ALIGN_LEFT="text_align_left",rn.ARROWS_ALERT="arrow_split_alert",rn.ARROW_BACK="arrow_left",rn.ARROW_CIRCLE="arrow_counterclockwise",rn.ARROW_CIRCLE_PLAY="replay",rn.ARROW_CIRCLE_RIGHT="arrow_clockwise",rn.ARROW_DIAGONAL="arrow_up_left",rn.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",rn.ARROW_DROP_DOWN="triangle_down",rn.ARROW_DROP_UP="triangle_up",rn.ARROW_FORWARD="arrow_right",rn.ARROW_PAUSE=
"pause_history",rn.ARROW_UNDO="undo",rn.ARTICLE="text_page",rn.ARTICLE_ALERT="text_page_alert",rn.ARTICLE_CHECK="text_page_check",rn.ARTICLE_CLARIFY="text_page_info",rn.ARTIST="person_audio",rn.AUDIOTRACK="audio",rn.AUDIO_BADGE="audio_badge",rn.AUDIO_SURROUND="surround_sound",rn.AUTO_AWESOME="sparkles",rn.AVATAR_ANONYMOUS="person_circle",rn.AVATAR_LOGGED_OUT="person_circle",rn.BACK="arrow_left",rn.BAR_CHART="chart_bar",rn.BAR_CIRCLE="minus_circle",rn.BAR_HORIZONTAL="minus",rn.BLOCK="circle_slash",
rn.BLOCK_USER="circle_slash",rn.BOOKMARK_BORDER="bookmark",rn.BOX_OPEN_CHECK="quiz",rn.BOX_PENCIL="square_pencil",rn.BOX_STACK_3="square3_stack",rn.BREAKING_NEWS_ALT_1="text_page_alert",rn.BROADCAST="podcast",rn.BROADCAST_CAIRO="podcast",rn.BUG_REPORT="bug",rn.CAMERA_ALT="camera",rn.CAMPAIGN="megaphone",rn.CANCEL="x_circle",rn.CAPTIONS="closed_captions",rn.CAST_ICON="chromecast",rn.CAST_OUTLINE="chromecast",rn.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",rn.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
rn.CHAT="text_bubble",rn.CHAT_BUBBLE="bubble",rn.CHECK_BOX="check_square",rn.CHECK_BOX_OUTLINE_BLANK="square",rn.CHECK_CIRCLE_FILLED="check_circle",rn.CHECK_CIRCLE_OUTLINE="check_circle",rn.CHECK_CIRCLE_THICK="check_circle",rn.CHECK_DOUBLE="check_done",rn.CHECK_DOUBLE_OFF="check_done_slash",rn.CHEVRON_LEFT="chevron_left",rn.CHEVRON_RIGHT="chevron_right",rn.CHEVRON_RIGHT_CAIRO="chevron_right",rn.CIRCLES_OVERLAP="account_link",rn.CLAPPERBOARD_CAIRO="clapperboard",rn.CLARIFY="text_page_info",rn.CLOCK_ARROWS=
"clock_split",rn.CLOCK_ARROWS_ALERT="clock_split_alert",rn.CLOSED_CAPTION="closed_captions",rn.CLOSED_CAPTION_SELECTED="closed_captions",rn.CLOSE="x",rn.CLOUD_UPLOAD="cloud_arrow_up",rn.COLLAPSE="chevron_up",rn.COLLAPSE_CAIRO="chevron_up",rn.COLLECTION="square3d_stack",rn.COLOR_LENS="paint_palette",rn.COMMENT="text_bubble",rn.CONSENT_SHIELD="person_shield",rn.CONTENT_CUT="scissors",rn.CONTENT_CUT_CAIRO="scissors",rn.COURSE="graduation_cap",rn.COURSE_CAIRO="graduation_cap",rn.CREATION_LIVE="live",
rn.CREATION_POST="square_pencil",rn.CREATION_UPLOAD="video",rn.CREATION_UPLOAD_RED="upload",rn.CREATOR_ACADEMY="graduation_cap",rn.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",rn.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",rn.CREATOR_STUDIO="youtube_studio",rn.DARK_THEME="theme",rn.DELETE="trash_can",rn.DELETE_SWEEP="trash_can",rn.DESKTOP="laptop",rn.DISLIKE="thumb_down",rn.DISLIKE_SELECTED="thumb_down",rn.DISMISSAL="x",rn.DISMISS_QUEUE="playlist_x",rn.DOGFOOD="pawprint",rn.DOLLAR_SIGN=
"dollar_sign_circle",rn.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",rn.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",rn.DOWN_ARROW="arrow_down",rn.DO_NOT_DISTURB="circle_slash",rn.DRAFT="document",rn.DRAG_HANDLE="equal",rn.EARTH="globe",rn.EDIT="pencil",rn.EMOJI="face_very_happy",rn.EMOJI_FLAGS="flag",rn.EMOJI_OBJECTS="lightbulb",rn.EMOJI_PEOPLE="face_very_happy",rn.EMOJI_RECENT="clock",rn.EMPTY_HEART="heart",rn.EMPTY_LIKE="thumb_up",rn.ERROR_BLACK="alert_circle",rn.ERROR_OUTLINE="alert_circle",rn.ERROR_WHITE=
"alert_circle",rn.EXIT_APP="arrow_in",rn.EXIT_TO_APP="arrow_in",rn.EXPAND="chevron_down",rn.EXPAND_ALL="chevron_expand",rn.EXPAND_CAIRO="chevron_down",rn.EXPAND_LESS="chevron_up",rn.EXPAND_MORE="chevron_down",rn.EXPLORE="compass",rn.EXPLORE_DESTINATION="compass",rn.EXTERNAL_LINK="arrow_up_right",rn.EYE_OFF="eye_slash",rn.FAB_UPLOAD="upload",rn.FACE_HAPPY_OUTLINE="face_happy",rn.FACE_MEH="face_neutral",rn.FACT_CHECK="text_page_check",rn.FASHION_LOGO="fashion",rn.FASHION_LOGO_CAIRO="fashion",rn.FAVORITE=
"thumb_up",rn.FEEDBACK="alert_bubble",rn.FEEDBACK_CAIRO="alert_bubble",rn.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",rn.FILL_ARROW_SOLID_UP_16="arrow_solid_up",rn.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",rn.FIRST_PAGE="chevron_left_end",rn.FLAG_CAIRO="flag",rn.FLASH_OFF="flash_slash",rn.FLASH_ON="flash",rn.FULL_HEART="heart",rn.GAMING_LOGO="gaming",rn.GAMING_LOGO_CAIRO="gaming",rn.GO_TO_PAGE="arrow_right",rn.GRID_ASYMMETRICAL="dashboard",rn.GROUPS="person3",rn.HAND_SWIPE_LEFT="gesture_swipe_left",
rn.HAND_SWIPE_RIGHT="gesture_swipe_right",rn.HAPPY="face_happy",rn.HEALTH_AND_SAFETY="shield_health",rn.HEART_BOX="heart_cube",rn.HELP="help_circle",rn.HELP_CAIRO="help_circle",rn.HELP_OUTLINE="help_circle",rn.HIDE="circle_slash",rn.INCOGNITO_CAIRO="incognito",rn.INFINITY_ICON="infinity",rn.INFO="info_circle",rn.INFO_OUTLINE="info_circle",rn.INSERT_CHART="chart_bar_square",rn.INSERT_CHART_OUTLINED="chart_bar_square",rn.INSERT_PHOTO="image",rn.KEEP="pin",rn.KEEP_OFF="pin_slash",rn.KEYBOARD="keyboard",
rn.KEYBOARD_ARROW_DOWN="chevron_down",rn.KEYBOARD_ARROW_UP="chevron_up",rn.KIDS_BLOCK="circle_slash",rn.LANGUAGE="globe",rn.LAST_PAGE="chevron_right_end",rn.LAUNCH="arrow_up_right",rn.LEARNING="lightbulb",rn.LEARNING_CAIRO="lightbulb",rn.LIBRARY_ADD="bookmark",rn.LIBRARY_IMAGE="image_stack",rn.LIBRARY_MUSIC="audio_square_stack",rn.LIBRARY_OUTLINE="play_square_stack",rn.LIBRARY_REMOVE="bookmark",rn.LIBRARY_SAVED="check_square_stack",rn.LIKES_PLAYLIST="thumb_up",rn.LIKES_PLAYLIST_CAIRO="thumb_up",rn.LIKE=
"thumb_up",rn.LIKE_SELECTED="thumb_up",rn.LIST_QUEUE="queue",rn.LIVE_CAIRO="live",rn.LIVE_UNLISTED="link",rn.LOCATION_ON="location_pin",rn.LOCATION_PIN="location_pin",rn.LOCATION_POINT="location_pin",rn.LOOP="repeat",rn.LOOP_ACTIVE="repeat",rn.LOOP_ONE="repeat1",rn.LOOP_ONE_ACTIVE="repeat1",rn.MEET="google_meet",rn.MEH="face_neutral",rn.MEMBERSHIPS="memberships",rn.MEMBERS_ONLY_MODE_OFF="text_bubble",rn.MENU_FILTER="filter",rn.MESSAGE="text_bubble",rn.MESSAGE_BUBBLE_GEAR="bubble_gear",rn.MESSAGE_BUBBLE_LEFT=
"text_bubble",rn.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",rn.MESSAGE_BUBBLE_OVERLAP="bubble_stack",rn.MESSAGE_BUBBLE_QUESTION="help_bubble",rn.MICROPHONE_ON="mic",rn.MONETIZATION_ON="dollar_sign_circle",rn.MONEY_FILL="dollar_sign_rectangle",rn.MONEY_FILL_JPY="yen_sign_rectangle",rn.MONEY_HAND="dollar_sign_circle_hand",rn.MONEY_HEART="dollar_sign_heart",rn.MOON_Z="sleep_timer",rn.MORE_HORIZ="overflow_horizontal",rn.MORE_VERT="overflow_vertical",rn.MUSIC="audio",rn.MUSIC_CAIRO="audio",rn.MUSIC_EXPLICIT_BADGE=
"explicit",rn.MUSIC_NEW_RELEASE="audio_badge",rn.MUSIC_NOTE_SYMBOL="audio",rn.MUSIC_SCISSORS="audio_scissors",rn.MUSIC_SHUFFLE="shuffle",rn.MY_CHANNEL="person_circle",rn.MY_LOCATION="location_pin",rn.MY_VIDEOS="video",rn.MY_VIDEOS_CAIRO="video",rn.NEWS_CAIRO="news",rn.NEWS_STORY="news",rn.NEXT="chevron_right",rn.NOTE_ADD="bubble_pencil",rn.NOTIFICATIONS="bell",rn.NOTIFICATIONS_ACTIVE="bell_waves",rn.NOTIFICATIONS_CAIRO="bell",rn.NOTIFICATIONS_DONE_CHECKMARK="check",rn.NOTIFICATIONS_INBOX="bell",rn.NOTIFICATIONS_NONE=
"bell",rn.NOTIFICATIONS_OFF="bell_slash",rn.NOT_INTERESTED="circle_slash",rn.OFFICIAL_ARTIST_BADGE="audio",rn.OFFLINE_CLOUD="cloud_slash",rn.OFFLINE_DOWNLOAD="download",rn.OFFLINE_DOWNLOAD_CAIRO="download",rn.OFFLINE_PAUSE="pause",rn.OPEN_IN_NEW="arrow_up_right",rn.OUTLINE_ADJUST="adjust",rn.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",rn.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",rn.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",rn.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",rn.OUTLINE_BAG="bag",rn.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",rn.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",rn.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",rn.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",rn.PAID="dollar_sign_circle",rn.PAUSE_OUTLINED="pause",rn.PAYMENT="credit_card",rn.PEOPLE="person_child",rn.PEOPLE_2="person2_rectangle",rn.PEOPLE_GROUP="person3",rn.PEOPLE_NOTE="bubble_asterisk",rn.PERSON_2="person2",rn.PERSON_ACCOUNT="person_square_stack",rn.PERSON_MINUS="person_x",rn.PERSON_MUSIC="person_audio",rn.PERSON_RADAR="person_waves",
rn.PERSON_RADAR_FILLED="person_waves",rn.PERSON_SETTING="person_gear",rn.PHONE="phone",rn.PHONE_DOWNLOAD="mobile_arrow_down",rn.PICTURE_IN_PICTURE="picture_in_picture",rn.PLAYABLES_LOGO="playables",rn.PLAYABLES_LOGO_CAIRO="playables",rn.PLAYLISTS="playlist",rn.PLAYLISTS_CAIRO="playlist",rn.PLAYLIST_ADD_CHECK="bookmark",rn.PLAY_ALL="play",rn.PLAY_ARROW="play",rn.PLAY_ARROW_CIRCLE="play_circle",rn.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",rn.PLAY_CIRCLE="play_circle",rn.PLAY_OUTLINED="play_circle",
rn.PODCAST_ADD="podcast_add",rn.PODCAST_CHECK="podcast_check",rn.PRIVACY_INFO="shield_x",rn.PRIVACY_PRIVATE="lock",rn.PRIVACY_PUBLIC="globe",rn.PRIVACY_UNLISTED="link",rn.PROMOTE="megaphone",rn.PURCHASES="price_tag",rn.PURCHASE_SUPER_CHAT="super_chat",rn.PURCHASE_SUPER_STICKER="super_sticker",rn.QUESTION_ANSWER="help_bubble",rn.QUESTION_CIRCLE="help_circle",rn.QUEUE_PLAY_LAST="queue_last",rn.QUEUE_PLAY_NEXT="queue_next",rn.QUOTATION_MARK="quote",rn.RADAR_LIVE="live",rn.REMOVE="minus_circle",rn.REMOVE_CIRCLE=
"minus_circle",rn.REMOVE_CIRCLE_OUTLINE="minus_circle",rn.REMOVE_FROM_HISTORY="minus_circle",rn.REMOVE_FROM_PLAYLIST="minus_circle",rn.REMOVE_MODERATOR="shield_slash",rn.REPLAY="arrow_counterclockwise",rn.REPLAY_10="skip10_back",rn.REPLAY_ARROW="replay",rn.REPORT_PROBLEM="alert_triangle",rn.RSS_OFF="rss_slash",rn.SAD="face_sad",rn.SAVE_PLAYLIST="bookmark",rn.SCHEDULE="clock",rn.SCHOOL="graduation_cap",rn.SCREEN_DEFAULT="player_default",rn.SCREEN_FULLSCREEN="player_full_enter",rn.SCREEN_LIGHT="ambient_mode",
rn.SCREEN_ROTATION="rotate_portrait",rn.SCREEN_SWITCH="player_switch",rn.SCREEN_THEATRE="player_theater",rn.SEARCH_CAIRO="search",rn.SEARCH_HISTORY="history",rn.SELL="price_tag",rn.SETTINGS="gear",rn.SETTINGS_CAIRO="gear",rn.SETTINGS_LIGHT="gear",rn.SETTINGS_MATERIAL="gear",rn.SETTINGS_REMOTE="remote_waves",rn.SHARE="share",rn.SHARE_ARROW="share",rn.SHARE_CAIRO="share",rn.SHIELD="shield_x",rn.SHIELD_EMPTY="shield",rn.SHIELD_OFF="shield_slash",rn.SHIELD_WITH_AVATAR="person_shield",rn.SHOPPING_BAG=
"bag",rn.SHOPPING_BAG_CAIRO="bag",rn.SHOPPING_CART="cart",rn.SHORTS_COMMENT="text_bubble",rn.SHORTS_DISLIKE="thumb_down",rn.SHORTS_LIKE="thumb_up",rn.SHORTS_SHARE="share",rn.SKIP_FORWARD_30="skip30_forward",rn.SLASH_CIRCLE_LEFT="circle_slash",rn.SLASH_CIRCLE_RIGHT="circle_slash",rn.SLOW_MODE="bubble_slow",rn.SLOW_MODE_OFF="text_bubble",rn.SOCIAL="person_child",rn.SPARKLE="sparkles",rn.SPARK_IMAGE="image_spark",rn.SPARK_PENCIL="pencil_spark",rn.SPARK_RADAR="spark_waves",rn.SPARK_VIDEO="video_spark",
rn.SPEAKER_GROUP="speaker_stack",rn.SPEAKER_OFF="speaker_slash",rn.SPEED_1X="n1x",rn.SPEED_1_POINT_2X="n1point2x",rn.SPEED_1_POINT_5X="n1point5x",rn.SPEED_1_POINT_8X="n1point8x",rn.SPEED_2X="n2x",rn.SPONSORSHIP_STAR="star_circle",rn.SPORTS="basketball",rn.SPOTLIGHT="spotlight",rn.STAFF_PICK="spotlight",rn.START_DVR="add",rn.STAR_BORDER="star",rn.STAR_CIRCLE_RIBBON="memberships_gift",rn.STAR_HALF="star_full_half",rn.STAR_SHOOTING="hype",rn.STICKER="sticker",rn.STICKER_EMOTICON="face_happy",rn.STOP_DVR=
"stop",rn.SUBSCRIBE="youtube",rn.SUBSCRIBE_PLUS="add",rn.SUBSCRIPTION_MANAGER="gear",rn.SUPERSTAR="super_star",rn.SUPERVISOR_ACCOUNT="person_child",rn.SUPER_CHAT_FOR_GOOD="hands_heart",rn.SWAP_HORIZ="arrow_swap_horizontal",rn.SWITCH_ACCOUNTS="person_square_stack",rn.TAB_ACCOUNT="person",rn.TAB_ACTIVITY="bell",rn.TAB_BOOKMARK="bookmark",rn.TAB_EXPLORE="compass",rn.TAB_HOME="home",rn.TAB_HOME_CAIRO="home",rn.TAB_INBOX="mail",rn.TAB_LIKED="thumb_up",rn.TAB_MUSIC_PREMIUM="youtube_music",rn.TAB_SHORTS=
"shorts",rn.TAB_SHORTS_CAIRO="shorts",rn.TAB_SUBSCRIPTIONS="subscriptions",rn.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",rn.TAB_TRENDING="trending",rn.TARGET="target",rn.TARGET_ADD="target_add",rn.TEMPLATE_ADD="template_add",rn.TEXT="font",rn.TICKET_STAR="star_ticket",rn.TIMER="stopwatch",rn.TRENDING_CAIRO="trending",rn.TRENDING_DOWN="arrow_trend_down",rn.TRENDING_UP="arrow_trend_up",rn.TROPHY_CAIRO="trophy",rn.TROPHY_CELEBRATIONS="fireworks",rn.TROPHY_STAR="star_trophy",rn.TUNE="adjust",rn.TV_OFF="tv_slash",
rn.UNBLOCK_USER="minus_circle",rn.UNFAVORITE="thumb_down",rn.UNLIMITED="youtube",rn.UNPLUGGED_LIVE_GUIDE="live",rn.UNPLUGGED_SPORTS="eye_slash",rn.UPLOADS="play_square_stack",rn.UP_ARROW="arrow_up",rn.VERTICAL_ALIGN_BOTTOM="chevron_down_end",rn.VERTICAL_ALIGN_TOP="chevron_up_end",rn.VERY_HAPPY="face_very_happy",rn.VERY_SAD="face_very_sad",rn.VIDEOS="play_circle",rn.VIDEO_CALL="video_camera_add",rn.VIDEO_LIBRARY_WHITE="play_square_stack",rn.VIDEO_QUALITY_4K="n4k",rn.VIDEO_QUALITY_8K="n8k",rn.VIDEO_YOUTUBE=
"youtube",rn.VIEW_LIST_CAIRO="view_list",rn.VIEW_MODULE="view_column3_row2",rn.VISIBILITY="eye",rn.VISIBILITY_OFF="eye_slash",rn.VOLUME_DOWN="volume_min",rn.VOLUME_MUTE="volume_mute",rn.VOLUME_OFF="volume_mute",rn.VOLUME_STABLE="stable_volume",rn.VOLUME_UP="volume_max",rn.WALLPAPER="image",rn.WARNING="alert_triangle",rn.WATCH_HISTORY="history",rn.WATCH_HISTORY_CAIRO="history",rn.WATCH_LATER="clock",rn.WATCH_LATER_CAIRO="clock",rn.WATCH_RELATED_MIX="mix",rn.WHAT_TO_WATCH="home",rn.YOUTUBE_LINKED_TV=
"tv_mobile",rn.YOUTUBE_MUSIC_MONOCHROME="youtube_music",rn.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",rn.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",rn.YOUTUBE_SHORTS_ARROW_UP="arrow_up",rn.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",rn.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",rn.YOUTUBE_SHORTS_OUTLINE_24="shorts",rn.YT_OUTLINE_MUSIC_24="audio",rn);var sV2={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,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,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var EFT={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],
clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,
1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,
2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],
equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,
9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,
24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,
24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,
24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],
help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,
1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,
2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,
2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],
mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,
2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,
10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,
18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],
[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,
1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,
24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,
2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,
1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,
3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,
5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,24],[1,10,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],
spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,
24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,
1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,
18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],
triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,
2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,
1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var TE8={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},zG=function(l){this.iconUrlProvider=l};
zG.prototype.resolveIcon=function(l,D){var U=TE8[l.iconName.toUpperCase()];U&&(l.iconName=U);var n=l.iconName;n=n.replace(/-/g,"_");l=Object.assign({},l,{iconName:this.mapIconTypeToStandardName(n,!!U)||n.toLowerCase()});if(_.q("enable_web_delhi_icons")||U){var y;return BGK(EFT,l,((y=this.iconUrlProvider)==null?void 0:y.getYtStandardUrl)||bD_,D)}var A;return BGK(sV2,l,((A=this.iconUrlProvider)==null?void 0:A.getYtStandardUrl)||Pb3,D)};
zG.prototype.mapIconTypeToStandardName=function(l,D){return _.q("enable_web_delhi_icons")||D?NEH[l.toUpperCase()]:$qW[l.toUpperCase()]};
zG[Lt]=[_.G8(rvJ)];var IYr=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),Hzr=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),YST=function(l){this.urlProvider=this.iconUrlProvider=l};
_.Z(YST,zG);
YST.prototype.resolveIcon=function(l,D){l.iconName==="youtube_logo"&&(l.iconName="yt-logo-updated");if(l.iconName==="youtube_premium_logo"||l.iconName==="youtube_red_logo")l.iconName="yt-logo-red-updated";var U=Object.assign({},l);l.iconName==="menu"&&(_.q("enable_web_delhi_icons")||(U.iconName="bars_3"),U.iconStyle="youtube_outline");l.iconSetName==="socialNetworksRound"&&(l.iconName==="mail"&&(U.iconName="email"),l.iconName==="embed"&&(U.iconSize=60));l.iconName==="more"&&(U.iconName="overflow_horizontal");
l.iconName==="fullscreen"&&(U.iconName="screen_full");l.iconName==="premium_standalone"&&(U.iconName="premium_standalone_cairo");_.q("enable_connect_icon_update_web")&&l.iconName==="account_linked"&&(U.iconName="circles_overlap_check",U.iconStyle="youtube_fill");_.q("enable_connect_icon_update_web")&&l.iconName==="account_unlinked"&&(U.iconName="circles_overlap",U.iconStyle="youtube_outline");IYr.has(l.iconName)&&(U.iconStyle="youtube_fill");_.q("enable_web_delhi_icons")&&(l.iconName==="playlist_add"&&
(U.iconName="bookmark"),l.iconName==="offline_pin"&&(U.iconName="arrow_down_circle",U.iconStyle="youtube_fill"),Hzr.has(l.iconName)&&(U.iconName+="_updated"));l=Object.assign({},U,{iconName:(zG.prototype.mapIconTypeToStandardName.call(this,U.iconName)||U.iconName).toLowerCase()});var n;return(l=BGK(oF2,l,((n=this.urlProvider)==null?void 0:n.getUrl)||gQc,D))?l:zG.prototype.resolveIcon.call(this,U,D)};
YST[Lt]=[_.G8(rvJ)];_.Ozr=1;var ff=function(l,D){this.JSC$17509_commandHandler=l;this.innertubeTransportService=D};
_.Z(ff,Pf);ff.prototype.resolveCommand=function(l,D){var U=this,n,y,A;return _.P(function(C){return(n=_.M(l,M5r))?C.return(Vcv(U,n,(y=D)==null?void 0:(A=y.form)==null?void 0:A.element)):C.return()})};
var Vcv=function(l,D,U){D={profileCardContext:D.profileCardContext,profileOwnerExternalChannelId:D.profileOwnerExternalChannelId};var n=_.T3(aFv);return _.BN(l.innertubeTransportService,D,n).then(function(y){if(!y)throw new _.rc("GetProfileCard failed");if(y=y.popupCommand){l.JSC$17509_commandHandler.resolveCommand(y,{form:{element:U}});_.KM(_.he(),66557);y=y==null?void 0:y.clickTrackingParams;var A=_.aS();y&&A&&_.he().graftServerVe(y,A)}})};
ff[Lt]=[_.qK,_.Ju];var $E=function(){};
_.Z($E,Pf);$E.prototype.resolveCommand=function(l){var D,U;return _.P(function(n){D=_.M(l,k_y);if(!D)return n.return();U=Number(D.enableDelayedPacfLoggingTvMs);if(isNaN(U)){var y=FD();F3v(y,D,0)}else F3v(FD(),D,U);_.Kz(n)})};_.NI=function(){};
_.Z(_.NI,Pf);
_.NI.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u;return _.P(function(Q){n=_.M(l,dcm);A=(y=D.form)==null?void 0:y.element;h=(C=A)==null?void 0:C.closest("ytd-enforcement-message-view-model");if(!n||!h)return Q.return();U.allowAdsAction||(b=n.fundingChoiceInstructionPageUrl,U.allowAdsAction=new a07(window,_.I2(b)));var G=U.allowAdsAction;G.wallElement=h;G.allowAdsPopup.style.setProperty("display","flex","important");var J=G.scrollManager;J.isScrollingEnabled&&(J.originalBodyOverflow=J.JSC$10081_domHelper.JSC$9407_document_.body.style.overflow,
J.JSC$10081_domHelper.JSC$9407_document_.body.style.overflow="hidden",J.isScrollingEnabled=!1);G.wallElement.style.setProperty("display","none","important");FW5(G.accessibilityManager,G.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((u=U.allowAdsAction.allowAdsPopup)&&u instanceof HTMLElement)for(G=_.B(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),J=G.next();!J.done;J=G.next()){var L=_.B(J.value);J=L.next().value;L=L.next().value;
u.style.setProperty(J,L)}_.Kz(Q)})};
_.NI.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var sN=function(){};
_.Z(sN,Pf);sN.prototype.resolveCommand=function(l){var D;return _.P(function(U){D=_.M(l,pRm);if(!D)return U.return();Zv$(l);_.Kz(U)})};_.EN=new _.A7("AI_CHAT_CONTROLLER_TOKEN");var TG=function(l,D,U,n){this.JSC$17524_commandHandler=l;this.store=D;this.getPlayerCb=U;this.aiChatController=n};
_.Z(TG,Pf);TG.prototype.pageContext=function(){var l=_.xv.currentPageSubTypeSelector(this.store.getState()),D;return(D=this.aiChatController)==null?void 0:_.i2J(D,l)};
TG.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C;return _.P(function(h){U=_.M(l,fO1);y=(n=U)==null?void 0:n.command;if(!y)return h.return();switch((C=U)==null?void 0:C.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var b="youchat-"+Date.now(),u;var Q=String(Math.floor(((u=D.getPlayerCb())==null?void 0:u.getCurrentTime())||0)*1E3);A={inputComposerFormData:{clientMessageId:b,playerOffsetMs:Q,pageContext:D.pageContext()}}}if(!A)return h.return();D.JSC$17524_commandHandler.resolveCommand(y,
{form:{formData:A}});_.Kz(h)})};
TG[Lt]=[_.qK,_.Op,pVK,_.G8(_.EN)];var lUH=new _.A7("SESSION_STORAGE");var IK=function(l){this.sessionStorage=l("conversations")};
_.Z(IK,Pf);IK.prototype.resolveCommand=function(l){var D=this,U;return _.P(function(n){U=_.M(l,$cH);if(!U)return n.return();U.conversationId?D.sessionStorage.set("conversation_id",U.conversationId):D.sessionStorage.remove("conversation_id");_.Kz(n)})};
IK[Lt]=[lUH];var Hi=function(l){this.JSC$17536_commandHandler=l};
_.Z(Hi,Pf);
Hi.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u;return _.P(function(Q){if(Q.nextAddress==1){U=_.M(l,Cah);if((n=U)==null||!n.text||!navigator.clipboard)return Q.return();_.ZY(Q,2);return Q.yield(navigator.clipboard.writeText(U.text),4)}if(Q.nextAddress!=2){if(!U.successActions||U.successActions.length===0)return Q.return();y=_.B(U.successActions);for(A=y.next();!A.done;A=y.next())C=A.value,D.JSC$17536_commandHandler.resolveCommand(C);return _.WG(Q,0)}_.kF(Q);if(!U.failureActions||U.failureActions.length===
0)return Q.return();h=_.B(U.failureActions);for(b=h.next();!b.done;b=h.next())u=b.value,D.JSC$17536_commandHandler.resolveCommand(u);_.Kz(Q)})};
Hi[Lt]=[_.qK];var YE=function(l){this.JSC$17540_commandHandler=l};
_.Z(YE,Pf);
YE.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J;return _.P(function(L){switch(L.nextAddress){case 1:n=_.M(l,zcz);if(!n)return L.return();_.ZY(L,2);if(!n.imageBytes&&!n.imageUrl)throw Error("Ai");if(!n.imageUrl){if(n.imageBytes){A=n.imageBytes;C=A.replace(/-/g,"+").replace(/_/g,"/");var R=QM3(C);y=_.sW(R)}L.jumpTo(4);break}return L.yield(fetch(n.imageUrl),5);case 5:return h=L.yieldResult,L.yield(h.blob(),6);case 6:b=L.yieldResult,y=_.sW(b);case 4:G=(u=D)==null?void 0:(Q=u.form)==
null?void 0:Q.element;J=document.createElement("a");Il(J,y);G.appendChild(J);J.download="";J.click();G.removeChild(J);URL.revokeObjectURL(_.ol(y));n.successCommand&&U.JSC$17540_commandHandler.resolveCommand(n.successCommand);_.WG(L,0);break;case 2:_.kF(L),n.errorCommand&&U.JSC$17540_commandHandler.resolveCommand(n.errorCommand),_.Kz(L)}})};
YE[Lt]=[_.qK];var ON=function(l){this.store=l};
_.Z(ON,Pf);ON.prototype.resolveCommand=function(l){var D=this,U,n,y;return _.P(function(A){n=(U=_.M(l,_.zR1))==null?void 0:U.entityBatchUpdate;if(!n)return A.jumpTo(0);y=Object.assign({},n,{mutations:[].concat(_.zz(n.mutations||[]))});return A.yield(_.h4(y,D.store),0)})};var DGJ=function(l){this.JSC$17547_commandHandler=l;this.feedbackDialogMap=new Map};
DGJ.prototype.openDialog=function(l,D){(l=this.feedbackDialogMap.get(l))&&this.JSC$17547_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:l}},D)};
DGJ[Lt]=[_.qK];var Vz=new _.A7("FEEDBACK_CONTROLLER_TOKEN");var ij=new _.A7("APP_STORE_TOKEN");var lj=function(l,D){this.store=l;this.controller=D};
_.Z(lj,Pf);lj.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z;return _.P(function(f){if(f.nextAddress==1){n=_.M(l,_.mC);if(A=(y=n)==null?void 0:y.contentId)for(h=_.B(((C=n)==null?void 0:C.actions)||[]),b=h.next();!b.done;b=h.next())u=b.value,UG$(U,u,A);J=(Q=D)==null?void 0:(G=Q.form)==null?void 0:G.element;return f.yield(_.lu(J,[l,{impression:(L=D)==null?void 0:L.disableClickTracking}]).catch(function(){}),2)}R=f.yieldResult;
((a=R)==null?0:(S=a.data)==null?0:(d=S.feedbackResponses)==null?0:d.length)&&(N=(c=R.data.feedbackResponses[0])==null?void 0:c.followUpDialog)&&A&&(z=U.controller)!=null&&z.feedbackDialogMap.set(A,N);_.Kz(f)})};
var UG$=function(l,D,U){var n=_.M(D,_.n3);if(n){n=_.B(n.commands||[]);for(var y=n.next();!y.done;y=n.next())UG$(l,y.value,U)}_.M(D,_.jv)&&l.store.dispatch(_.vr("commandEntity",YXK(U),{key:U,command:D}));_.M(D,XPy)&&l.store.dispatch(_.vr("commandEntity",YXK(U),{key:U,command:D}))};
lj[Lt]=[ij,Vz];var D6=function(l){this.controller=l};
_.Z(D6,Pf);D6.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C;return _.P(function(h){n=_.M(l,_.lP);A=(y=n)==null?void 0:y.targetId;if(((C=n)==null?void 0:C.signal)!=="TELL_US_WHY"||!A)return h.return();U.controller.openDialog(A,D);_.Kz(h)})};
D6[Lt]=[Vz];var U8=function(l){this.store=l};
_.Z(U8,Pf);U8.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u;return _.P(function(Q){n=_.M(l,QUo);A=(y=n)==null?void 0:y.contentId;b=(C=D)==null?void 0:(h=C.form)==null?void 0:h.element;u=_.lu(b,[l]);A&&U.undo(A);return Q.yield(u,0)})};
U8.prototype.undo=function(l){this.store.dispatch(_.vr("commandEntity",YXK(l),{key:l,command:void 0}))};
U8[Lt]=[ij];var nv=function(l){this.JSC$17562_commandHandler=l};
_.Z(nv,Pf);nv.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u;return _.P(function(Q){U=_.M(l,AMH);n=U.flowStateKey;y=U.validationFailureCommand;A=U.submitValidFormCommand;C=laB(_.zM,[n||""]);h=_.M(C,CvH);((b=h)==null?0:b.isValid)&&A&&D.JSC$17562_commandHandler.resolveCommand(A);((u=h)==null?0:u.isValid)||!y||D.JSC$17562_commandHandler.resolveCommand(y);_.Kz(Q)})};
nv[Lt]=[_.qK];var y7=function(l){this.innertubeTransportService=l};
_.Z(y7,Pf);y7.prototype.resolveCommand=function(l,D){var U=this,n;return _.P(function(y){return y.yield(_.oL(U.innertubeTransportService,l,(n=D)==null?void 0:n.form).then(function(A){var C,h;D==null||(C=D.commandController)==null||(h=C.onSuccess)==null||h.call(C,l,A)},function(A){var C,h;
D==null||(C=D.commandController)==null||(h=C.onServerError)==null||h.call(C,l,A)}),0)})};
y7[Lt]=[_.Ju];var At=function(){};
_.Z(At,Pf);At.prototype.resolveCommand=function(l){var D,U,n,y;return _.P(function(A){if(D=_.M(l,_.UY8)){if(U=D.gtmId)n=_.H3("GL",""),_.fd(U,n);(y=D.gtmData)&&_.$p(y)}_.Kz(A)})};var W4=function(l,D,U){this.innertubeTransportService=l;this.JSC$17573_actionRouter=D;this.JSC$17573_screenManager=U};
_.Z(W4,Pf);W4.prototype.resolveCommand=function(l){var D=this,U,n;return _.P(function(y){U=_.M(l,Dfk);if(!U)return y.return();n=U.command;if(!n)return y.return();D.JSC$17573_actionRouter.triggerAction("yt-insert-rich-section-action",U);return y.yield(_.oL(D.innertubeTransportService,n,{disableCache:!0}).then(function(A){l.clickTrackingParams&&(A==null?0:A.trackingParams)&&D.JSC$17573_screenManager.graftServerVe(A.trackingParams,_.v9(l.clickTrackingParams))}),0)})};
W4[Lt]=[_.Ju,M3,_.$k];JIN.bind(null,bT);var nmJ=JIN.bind(null,ijg);qz$.bind(null,bT);var yaq=qz$.bind(null,ijg);RbG.bind(null,bT);var Aa8=RbG.bind(null,ijg);var B4=function(){};
_.Z(B4,Pf);
B4.prototype.resolveCommand=function(l){var D,U,n,y,A,C,h,b,u,Q;return _.P(function(G){D=_.M(l,wzy);if(!D)return G.return();n=((U=D.operations)==null?void 0:U.operations)||[];y=_.B(n);for(A=y.next();!A.done;A=y.next())if(C=A.value,C.insertItemSectionContent){var J=C.insertItemSectionContent,L=J.contents||[];J.insertByPositionInSection?nmJ(J.insertByPositionInSection.sectionTargetId,L,J.insertByPositionInSection.position):J.insertByRelativePositionInSection&&J.insertByRelativePositionInSection.sectionTargetId&&J.insertByRelativePositionInSection.itemTargetId&&
yaq(J.insertByRelativePositionInSection.sectionTargetId,J.insertByRelativePositionInSection.itemTargetId,L,J.insertByRelativePositionInSection.relativePosition)}else C.replaceSection?(J=C.replaceSection,L={},J.replaceByTargetId?L=J.replaceByTargetId:J.replaceByGroupId&&(L={targetId:J.replaceByGroupId.groupId,newContent:J.replaceByGroupId.newContent,undoKey:""}),L.newContent&&Uu8(L.targetId,{continuationItems:[L.newContent]})):C.removeItem?(J=C.removeItem,J.removeByTargetId&&J.sectionTargetId&&Aa8(J.sectionTargetId,
J.removeByTargetId.targetIds||[])):C.removeSection&&(C.removeSection.removeByTargetId?(h=void 0,WLH(((h=C.removeSection)==null?void 0:h.removeByTargetId.targetIds)||[])):C.removeSection.removeByGroupId&&(b=void 0,WLH(((b=C.removeSection)==null?void 0:b.removeByGroupId.groupIds)||[])));Q=((u=D.operations)==null?void 0:u.scrollConfig)||{};BeJ(Q);_.Kz(G)})};
var WLH=function(l){l=_.B(l);for(var D=l.next();!D.done;D=l.next())Uu8(D.value,{continuationItems:[]})},BeJ=function(l){if(l.scrollToItem){var D=l.scrollToItem.item||{},U=D.itemTargetId;
D=D.sectionTargetId;if(U&&D){var n=document.querySelector("[data-target-id="+D+"]"),y=n==null?void 0:n.querySelector("[data-target-id="+U+"]");n&&y&&setTimeout(function(){var A=y.offsetTop-n.offsetTop,C;if(((C=l.scrollToItem)==null?void 0:C.scrollPosition)==="SCROLL_POSITION_CENTER")A-=n.offsetHeight/2,A+=y.offsetHeight/2;else{var h;((h=l.scrollToItem)==null?void 0:h.scrollPosition)==="SCROLL_POSITION_END"&&(A-=n.offsetHeight,A+=y.offsetHeight)}n.scroll({top:A,behavior:"smooth"})},100)}}};var Cv=new _.A7("CLIENT_NAME_TOKEN");var Cp8=new _.A7("DEFAULT_STORE_EXPIRATION_TOKEN");var kx$=new _.A7("CLIENT_LOCATION_SERVICE_TOKEN");var ht=function(l,D,U){this.clientName=l||_.H3("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=D||_.FP.getInstance();this.JSC$17601_commandHandler=U||_.yu.instance};
_.Z(ht,Pf);ht.prototype.resolveCommand=function(l){var D=this,U,n;return _.P(function(y){n=(U=_.M(l,Mmg))==null?void 0:U.onComplete;D.clientLocationService.clearLocationPlayabilityToken(D.clientName);n&&D.JSC$17601_commandHandler.resolveCommand(n);_.Kz(y)})};
ht[Lt]=[Cv,kx$,_.qK];var P4=function(l){this.innertubeTransportService=l};
_.Z(P4,Pf);P4.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C;return _.P(function(h){A=(n=D)==null?void 0:(y=n.form)==null?void 0:y.element;return h.yield(_.oL(U.innertubeTransportService,l,(C=D)==null?void 0:C.form).then(function(b){Jp3(A,new CustomEvent("yt-service-request-completed"),{data:b},_.H3("openPopupConfig"))}),0)})};
P4[Lt]=[_.Ju];var bj=function(){};
_.Z(bj,Pf);bj.prototype.resolveCommand=function(l){var D,U;return _.P(function(n){D=_.M(l,g08);U=document.querySelector("mini-app-container-view-model");if(!D||!U)return n.return();D.isPlaying?U.dispatchEvent(new Event("play")):U.dispatchEvent(new Event("pause"));_.Kz(n)})};var g2=function(){};
_.Z(g2,Pf);g2.prototype.resolveCommand=function(l){var D,U,n,y,A,C,h;return _.P(function(b){D=_.M(l,Yhr);if((U=D)==null||!U.paramKeys)return b.return();n=D.paramKeys;y=_.Dp(window.location.href);A=_.B(n);for(C=A.next();!C.done;C=A.next())h=C.value,y.JSC$10113_queryData_.remove(h);window.history.replaceState(window.history.state,document.title,y.toString());_.Kz(b)})};var hhT=function(){this.dropdownMap=new Map};_.Ppv=new _.A7("DROPDOWN_CONTROLLER_TOKEN");var uj=function(l){this.controller=l};
_.Z(uj,Pf);uj.prototype.resolveCommand=function(l){var D=this,U,n,y,A;return _.P(function(C){U=_.M(l,aq1);if(!U)return C.return();n=U;y=n.dropdownId;A=n.selectedOptionIndex;if(y===void 0||A===void 0)return C.return();var h=D.controller.dropdownMap.get(y);h&&h(A);_.Kz(C)})};
uj[Lt]=[_.Ppv];var v4=function(l){this.controller=l};
_.Z(v4,Pf);v4.prototype.resolveCommand=function(l){var D=this,U;return _.P(function(n){return(U=_.M(l,x3v))?n.yield(D.controller.closeDialog(),0):n.return()})};
v4[Lt]=[_.YO];var Jt=function(l){this.controller=l};
_.Z(Jt,Pf);Jt.prototype.resolveCommand=function(l){var D=this,U,n;return _.P(function(y){U=_.M(l,JC8);if(!U)return y.return();var A,C=U.panelIdentifier||((A=U.identifier)==null?void 0:A.tag);if(!C)throw Error("Bi");return(n=C)?y.yield(D.controller.hidePanel({identifier:n}),0):y.jumpTo(0)})};
Jt[Lt]=[_.IH];var Lv=function(l){this.controller=l};
_.Z(Lv,Pf);Lv.prototype.resolveCommand=function(l){var D=this,U;return _.P(function(n){return(U=_.M(l,Dnz))?n.yield(D.controller.closeSheet(),0):n.return()})};
Lv[Lt]=[_.H0];var qp=function(l,D){this.innertubeTransportService=l;this.controller=D};
_.Z(qp,Pf);qp.prototype.resolveCommand=function(l){var D=this,U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return U=_.M(l,Lt7),(n=U)!=null&&n.panelId?C.yield(D.controller.getReloadContinuation(U.panelId),2):C.return();if(C.nextAddress!=3)return(y=C.yieldResult)?C.yield(_.oL(D.innertubeTransportService,l,{continuation:y}),3):C.return();A=C.yieldResult;return C.yield(D.controller.updatePanel({identifier:U.panelId,panelContents:A.content,shouldFocus:!1}),0)})};
qp[Lt]=[_.Ju,_.IH];var Mp=function(l,D,U){this.innertubeTransportService=l;this.JSC$17643_screenManager=D;this.JSC$17643_commandHandler=U};
_.Z(Mp,Pf);
Mp.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h;return _.P(function(b){if(b.nextAddress==1){U=_.M(l,_.b$g);if(!U)return b.return();if(U.commands)for(n=_.B(U.commands),y=n.next();!y.done;y=n.next())A=y.value,D.JSC$17643_commandHandler.resolveCommand(A,{disableClickTracking:!0});C=_.v9(l.clickTrackingParams);_.KM(D.JSC$17643_screenManager,21760,C,{layer:7,parentLayer:0});return b.yield(_.oL(D.innertubeTransportService,l),2)}h=b.yieldResult;if(!h)return b.return();D.JSC$17643_screenManager.graftServerVe(h.trackingParams,C,
7);_.Kz(b)})};
Mp[Lt]=[_.Ju,_.$k,_.qK];var Rc=new _.A7("PANEL_LOADING_STRATEGY_TOKEN");var Z6=function(l,D){this.controller=l;this.panelLoadingStrategy=D};
_.Z(Z6,Pf);
Z6.prototype.resolveCommand=function(l,D){var U=this,n,y,A;return _.P(function(C){n=_.M(l,nOz);if((y=n)==null||!y.panelLoadingStrategy)return C.return();A=function(h){var b,u,Q,G,J,L,R,a,S,d;return _.P(function(c){u=_.M((b=h.dialogViewModel)==null?void 0:b.header,twz);Q={viewModel:h.dialogViewModel};G={};if(R=_.q("web_enable_dialog_header_label")?(J=u)==null?void 0:(L=J.headline)==null?void 0:L.content:void 0)G.ariaLabel=R;n.dismissOnBackgroundTap===!1&&(G.isModal=!0);return h.dialogViewModel?c.yield(U.controller.openDialog(Q,
(d=(a=D)==null?void 0:(S=a.form)==null?void 0:S.element)!=null?d:document.body,G),0):c.return()})};
return C.yield(U.panelLoadingStrategy.execute({command:l,data:n.panelLoadingStrategy,renderFn:A,createScreenConfig:{layer:4}}),0)})};
Z6[Lt]=[_.YO,Rc];var eb=function(l,D,U){this.innertubeTransportService=l;this.controller=D;this.JSC$17663_screenManager=U};
_.Z(eb,Pf);
eb.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d;return _.P(function(c){switch(c.nextAddress){case 1:n=_.M(l,_.ea);if(!n)return c.return();var N,z=n.panelIdentifier||((N=n.identifier)==null?void 0:N.tag);if(!z)throw Error("Bi");y=z;return c.yield(U.controller.isVisible(y,!0),2);case 2:if((A=c.yieldResult)&&n.blockIfPanelOpen)return c.return();b=(h=(C=U.controller).getPanelContent)==null?void 0:h.call(C,y);if(!(N=b))if(n){var f;N=((f=n.globalConfiguration)==null?void 0:
f.initialState)||n.engagementPanel;if(f=!N)f=!!(n==null?0:(z=n.engagementPanelPresentationConfigs)==null?0:z.engagementPanelPopupPresentationConfig);f&&(N=_.ZDK(n.panelIdentifier,n.identifier))}else N=void 0;u=N;Q=n.engagementPanelPresentationConfigs;G=n.engagementPanelExtras;return c.yield(U.controller.showPanel({identifier:y,panelContents:u,config:Q,extras:G,target:(J=D)==null?void 0:(L=J.form)==null?void 0:L.element}),3);case 3:if(!n.globalConfiguration){c.jumpTo(0);break}if(n.globalConfiguration.reuseModelAndState&&
_.q("enable_ai_companion")&&(S=(a=(R=U.controller).getPanelContent)==null?void 0:a.call(R,y)))return c.return();_.KM(U.JSC$17663_screenManager,32633);return c.yield(_.oL(U.innertubeTransportService,l),5);case 5:return d=c.yieldResult,U.JSC$17663_screenManager.graftServerVe(d.trackingParams),c.yield(U.controller.updatePanel({identifier:y,panelContents:d.content,shouldFocus:!0,extras:G,updatePanelContinuationData:d.updatePanelContinuationData}),0)}})};
eb[Lt]=[_.Ju,_.IH,_.$k];var my=function(l,D){this.controller=l;this.panelLoadingStrategy=D};
_.Z(my,Pf);
my.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J,L,R;return _.P(function(a){n=_.M(l,_.Qs);if((y=n)==null||!y.panelLoadingStrategy)return a.return();h=b2r(U.controller,(A=D)==null?void 0:(C=A.form)==null?void 0:C.element);u=(b=n.contextualSheetPresentationConfig)==null?void 0:b.position;G=(Q=n.contextualSheetPresentationConfig)==null?void 0:Q.hoverConfig;L=(J=n.contextualSheetPresentationConfig)==null?void 0:J.expandToFullWidth;R=function(S){return _.P(function(d){if(!S.sheetViewModel)return d.return();if(G){var c=
U.controller;c.shouldPreventClosingWhileHovered=!!G.preventCloseWhileHovered;var N;c.hideDelayMs=(N=G.hideDelayMs)!=null?N:0}return d.yield(U.controller.openSheet({viewModel:S.sheetViewModel,sheetPosition:u,expandToFullWidth:L},h),0)})};
return a.yield(U.panelLoadingStrategy.execute({command:l,data:n.panelLoadingStrategy,renderFn:R,createScreenConfig:{layer:0}}),0)})};
my[Lt]=[_.H0,Rc];var ac=function(l,D){this.controller=l;this.JSC$17674_commandHandler=D};
_.Z(ac,Pf);ac.prototype.resolveCommand=function(l,D){var U=this,n,y,A;return _.P(function(C){if(C.nextAddress==1){n=_.M(l,Zdy);var h=_.M(n.showCommand,_.ea),b,u,Q=(u=h==null?void 0:h.panelIdentifier)!=null?u:h==null?void 0:(b=h.identifier)==null?void 0:b.tag;if(!Q)throw Error("Ci");y=Q;return C.yield(U.controller.isVisible(y),2)}return(A=C.yieldResult)?C.yield(U.controller.hidePanel({identifier:y}),0):C.yield(U.JSC$17674_commandHandler.resolveCommand(n.showCommand,D),0)})};
ac[Lt]=[_.IH,_.qK];var tt=function(l,D,U){this.innertubeTransportService=l;this.controller=D;this.JSC$17677_screenManager=U};
_.Z(tt,Pf);
tt.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I,iG;return _.P(function(CC){switch(CC.nextAddress){case 1:return n=U=_.M(l,ty1),y=n.targetPanelIdentifier,A=n.contentSourcePanelIdentifier,C=n.globalConfiguration,((h=y)==null?0:h.tag)&&((b=A)==null?0:b.tag)?C?CC.yield(D.controller.showPanel({identifier:y.tag,panelContents:_.ZDK(y.tag,y)}),5):CC.yield((J=(G=D.controller).getPanel)==null?void 0:J.call(G,A.tag),4):CC.return();case 4:L=CC.yieldResult;u=(R=L)==
null?void 0:(S=(a=R).getPanelContent)==null?void 0:S.call(a);CC.jumpTo(3);break;case 5:return CC.yield(_.oL(D.innertubeTransportService,l),6);case 6:d=CC.yieldResult,((c=d)==null?0:c.trackingParams)&&D.JSC$17677_screenManager.graftServerVe(d.trackingParams),u=(N=d)==null?void 0:N.content,Q=(z=d)==null?void 0:z.updatePanelContinuationData;case 3:if(I=(f=u)==null?void 0:f.engagementPanelSectionListRenderer)return CC.yield(D.controller.showPanel({identifier:y.tag,panelUpdatableFields:{content:I.content,
secondaryHeaderContent:(iG=I.header)!=null?iG:{},targetId:I.targetId,loggingDirectives:I.loggingDirectives},updatePanelContinuationData:Q}),0);CC.jumpTo(0)}})};
tt[Lt]=[_.Ju,_.IH,_.$k];var Xf=function(){};
_.Z(Xf,Pf);Xf.prototype.resolveCommand=function(l){var D,U,n;return _.P(function(y){if(y.nextAddress==1)return(D=_.M(l,d3_))?y.yield(_.nq(),2):y.return();U=y.yieldResult;if(!U)return y.return();var A=U,C=(n=D)==null?void 0:n.languageCode,h;(A==null?0:(h=A.isReady)==null?0:h.call(A))&&(C=ebl(A,C))&&A.setAudioTrack(C);_.Kz(y)})};var Sb=function(){};
_.Z(Sb,UA);_.W=Sb.prototype;_.W.getApiPaths=function(){return qMz};
_.W.getExtension=function(l){return _.M(l,_.za)};
_.W.isNavigationCommand=function(){return!0};
_.W.JSC$14253_getStoreKey=function(l){if((l=this.getExtension(l))&&l.videoId){var D={videoId:l.videoId};l.playlistId&&(D.playlistId=l.playlistId);l.index&&(D.index=l.index);l.params&&(D.params=l.params);return _.rV("next",D)}};
_.W.JSC$14246_getClientScreen=function(l){var D;return((D=l.contentPlaybackContext)==null?void 0:D.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.W.JSC$14246_buildRequest=function(l,D,U){D.videoId&&(l.videoId=D.videoId);D.playlistId&&(l.playlistId=D.playlistId);D.params&&(l.params=D.params);D.index!==void 0&&(l.playlistIndex=D.index);l.racyCheckOk=!(!U.racyCheckOk&&!D.racyCheckOk);l.contentCheckOk=!!D.contentCheckOk;U.contentPlaybackContext&&(l.autonavState=U.contentPlaybackContext.autonavState,l.playbackContext={vis:U.contentPlaybackContext.vis,lactMilliseconds:U.contentPlaybackContext.lactMilliseconds});U.prefetchPlaybackContext&&(l.context.request||
(l.context.request={}),l.context.request.isPrefetch=!0);_.q("captions_hats_killswitch")||(D=_.bu().getFlag(65),D=D!=null?!D:!1,U=!!_.MN("yt-player-sticky-caption"),l.captionsRequested=D&&U)};
_.W.getRequestConfig=function(l){l=this.JSC$14253_getStoreKey(l);var D;l&&(D={storeStrategy:{storeKey:l}});_.q("web_log_player_watch_next_ticks")&&(D=D||{},D.requestTick="wn_s",D.responseTick="wn_r");return D};
var kj=function(){};
_.Z(kj,UA);kj.prototype.getApiPaths=function(){return qMz};
kj.prototype.getExtension=function(l){return _.M(l,_.ko)};
kj.prototype.JSC$14246_buildRequest=function(l,D){D.token&&(l.continuation=D.token)};var d2=function(){this.innerTubeTransport=_.Jc().resolve(_.Ju);this.miniplayerService=_.Jc().resolve(_.kq)};
_.Z(d2,Pf);var gm8=function(l){var D;return _.P(function(U){D=_.H3("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;l.JSC$17702_mainAppPlayer=new u5(D);document.addEventListener("yt-page-data-updated",l.JSC$17702_pauseOnNavigation.bind(l));_.Kz(U)})},umP=function(l,D){var U,n,y,A;
return _.P(function(C){if(C.nextAddress==1){U=new Sb;n=U.JSC$14246_getRequest(D);if(!n)return C.return(void 0);y=n.innerTubeRequest;return C.yield(_.BN(l.innerTubeTransport,y,"/youtubei/v1/next"),2)}A=C.yieldResult;var h;var b,u,Q=(h=A.contents)==null?void 0:(b=h.twoColumnWatchNextResults)==null?void 0:(u=b.playlist)==null?void 0:u.playlist,G;h=(Q==null?0:(G=Q.contents)==null?0:G.length)?Q:void 0;return C.return(h)})},vmr=function(l,D){var U,n,y,A,C;
return _.P(function(h){if(h.nextAddress==1)return U=l.JSC$17702_mainAppPlayer,h.yield(U.api,2);if(h.nextAddress!=3)return n=h.yieldResult,D.watchCommand?h.yield(umP(l,D.watchCommand),3):h.return();y=h.yieldResult;if((A=y)==null||!A.contents)return h.return();C=y.contents.map(function(b){var u;return(u=b.playlistPanelVideoRenderer)==null?void 0:u.videoId}).filter(function(b){return!!b}).map(function(b){return{encrypted_id:b}});
n.updatePlaylist({video:C});_.Kz(h)})},QBH=function(l,D){var U,n,y;
return _.P(function(A){return A.nextAddress==1?(U=l.JSC$17702_mainAppPlayer,y=(n=D.playerParams)!=null?n:"",D.externalVideoId?A.yield(U.loadVideoWithPlayerVars({videoId:D.externalVideoId,audio_only:"1",player_params:y}),2):A.jumpTo(2)):D.watchCommand?A.yield(vmr(l,D),0):A.jumpTo(0)})};
d2.prototype.JSC$17702_pauseOnNavigation=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1)return D=l.JSC$17702_mainAppPlayer,n.yield(D.api,2);U=n.yieldResult;U.pauseVideo();_.Kz(n)})};
d2.prototype.pauseVideo=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1)return D=l.JSC$17702_mainAppPlayer,n.yield(D.api,2);U=n.yieldResult;U.pauseVideo();_.Kz(n)})};
d2.prototype.playVideo=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1)return D=l.JSC$17702_mainAppPlayer,n.yield(D.api,2);U=n.yieldResult;U.playVideo();_.Kz(n)})};
var GP8=function(l){var D,U;return _.P(function(n){if(n.nextAddress==1)return D=l.JSC$17702_mainAppPlayer,n.yield(D.api,2);U=n.yieldResult;U.mute();_.Kz(n)})},Jar=function(l){var D,U;
return _.P(function(n){if(n.nextAddress==1)return D=l.JSC$17702_mainAppPlayer,n.yield(D.api,2);U=n.yieldResult;U.unMute();_.Kz(n)})};
d2.prototype.stopVideo=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1)return D=l.JSC$17702_mainAppPlayer,n.yield(D.api,2);U=n.yieldResult;U.stopVideo();_.Kz(n)})};
var LL8=function(l,D){return _.P(function(U){switch(U.nextAddress){case 1:switch(D){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return U.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return U.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return U.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return U.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return U.jumpTo(6)}U.jumpTo(0);break;case 2:return U.yield(l.playVideo(),8);case 8:U.jumpTo(0);break;case 3:return U.yield(l.pauseVideo(),
9);case 9:U.jumpTo(0);break;case 4:return U.yield(l.stopVideo(),10);case 10:U.jumpTo(0);break;case 5:return U.yield(GP8(l),11);case 11:U.jumpTo(0);break;case 6:return U.yield(Jar(l),12);case 12:U.jumpTo(0)}})};
d2.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h;return _.P(function(b){return b.nextAddress==1?(U=_.M(l,nsv),((n=U)==null?0:n.newPlaybackParams)||((y=U)==null?0:y.controlAction)?D.JSC$17702_mainAppPlayer?b.jumpTo(2):b.yield(gm8(D),2):b.return()):((A=U)==null?0:A.newPlaybackParams)?(D.miniplayerService.isMiniplayerActive()&&((C=D.miniplayerService.getPlayerElement())==null||C.pause()),h=U.newPlaybackParams,h.externalVideoId||h.externalPlaylistId?b.yield(QBH(D,h),0):b.return()):b.yield(LL8(D,
U.controlAction),0)})};var Kv=function(l){this.JSC$17708_commandHandler=l};
_.Z(Kv,Pf);
Kv.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h;return _.P(function(b){if(b.nextAddress==1)return(U=_.M(l,Kzg))?b.yield(_.nq(),2):b.return();n=b.yieldResult;if(!n)return b.return();var u=n,Q=(y=U)==null?void 0:y.languageCode,G=(A=U)==null?void 0:A.isAutoTranslated;u.getVideoData&&_.ans(u).length&&((Q=Xeg(u,Q,G))?u.setOption("captions","track",Q):(u.setOption("captions","stickyLoading",{}),u.setOption("captions","track",{})));C=n.isSubtitlesOn()?_.C3("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.C3("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");h=_.Hc(C,5E3);D.JSC$17708_commandHandler.resolveCommand(h);_.Kz(b)})};
Kv[Lt]=[_.qK];var c4=function(l,D){this.shortsPlayerPromise=l;this.JSC$17712_commandHandler=D};
_.Z(c4,Pf);
c4.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u;return _.P(function(Q){if(Q.nextAddress==1)return(U=_.M(l,i$k))?Q.yield(D.shortsPlayerPromise,2):Q.return();n=Q.yieldResult;var G=SzK(n);G!=null&&G.length||(n.loadModule("captions"),G=SzK(n));y=G;if((A=y)==null||!A.length)return C=_.C3("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),h=_.Hc(C),D.JSC$17712_commandHandler.resolveCommand(h),Q.return();n.toggleSubtitles();b=n.isSubtitlesOn()?_.C3("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.C3("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");u=_.Hc(b);D.JSC$17712_commandHandler.resolveCommand(u);_.Kz(Q)})};
c4[Lt]=[_.I4k,_.qK];var pv=function(l){this.JSC$17715_actionRouter=l;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(D,U){D.triggerAction("yt-dismiss-shopping-timely-shelf-action",U);(D=_.Jc().resolve(_.G8(_.Wa7)))&&D.dismissFeaturedProductOverlay()}]])};
_.Z(pv,Pf);pv.prototype.resolveCommand=function(l){var D=this,U,n,y;return _.P(function(A){U=_.M(l,jZ_);if((n=U)==null||!n.overlayId)return A.return();y=D.dismissPlayerOverlayActions.get(U.overlayId);if(!y)throw Error("Di`"+U.overlayId);y(D.JSC$17715_actionRouter,U);_.Kz(A)})};
pv[Lt]=[M3];var xj=function(l){this.JSC$17719_playerPromise=l};
_.Z(xj,Pf);xj.prototype.resolveCommand=function(l){var D=this,U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return(U=_.M(l,Mpg))?C.yield(D.JSC$17719_playerPromise,2):C.return();n=C.yieldResult;y=n.getVideoData().video_id;U.videoId===y&&(A=Number(U.offsetFromVideoStartMilliseconds),A>=0&&n.seekTo(A/1E3));_.Kz(C)})};
xj[Lt]=[_.Vl];var qjJ=_.n7("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),jb=function(l){this.store=l};
_.Z(jb,Pf);
var Mrw=function(l){var D,U,n,y;return _.P(function(A){if(A.nextAddress==1)return D=_.H3("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,U=_.H3("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,n=D||U,l.JSC$17723_mainAppPlayer=new u5(n),A.yield(l.JSC$17723_mainAppPlayer.api,2);y=A.yieldResult;y.addEventListener("onStateChange",l.JSC$17723_playerStateChangeListener.bind(l));document.addEventListener("yt-page-data-updated",l.JSC$17723_pauseOnNavigation.bind(l));window.addEventListener("state-navigatestart",
l.JSC$17723_pauseOnNavigation.bind(l));_.Kz(A)})};
jb.prototype.JSC$17723_playerStateChangeListener=function(l){switch(l){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"}Rh8(this)};
var Rh8=function(l){l.store.dispatch(_.vr("sfvAudioItemCurrentlyPlayingEntity",qjJ,{key:qjJ,externalVideoId:l.externalVideoId,sfvAudioItemPlaybackState:l.playbackState,nowPlayingEntityValue:l.nowPlayingEntityValue}))};
jb.prototype.JSC$17723_pauseOnNavigation=function(){var l=this,D,U,n,y;return _.P(function(A){if(A.nextAddress==1){if(!l.JSC$17723_mainAppPlayer){var C=new _.rc("Error: mainAppPlayer is unavailable",l.JSC$17723_mainAppPlayer);_.EU(C);return A.return()}return A.yield(l.JSC$17723_mainAppPlayer.api,2)}D=A.yieldResult;n=(U=D)==null?void 0:U.getPlayerState();n!==1||(y=D)!=null&&y.pauseVideo();_.Kz(A)})};
jb.prototype.playVideo=function(l,D,U){var n=this,y,A;return _.P(function(C){if(C.nextAddress==1)return C.yield((y=n.JSC$17723_mainAppPlayer)==null?void 0:y.api,2);A=C.yieldResult;if(!n.JSC$17723_mainAppPlayer||!A){var h=new _.rc("Error: mainAppPlayer is unavailable",n.JSC$17723_mainAppPlayer);_.EU(h);return C.return()}return C.yield(n.JSC$17723_mainAppPlayer.loadVideoWithPlayerVars({videoId:n.externalVideoId,audio_only:"1",start:l/1E3,end:l/1E3+D,player_params:U}),0)})};
jb.prototype.pauseVideo=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1){if(!l.JSC$17723_mainAppPlayer){var y=new _.rc("Error: mainAppPlayer is unavailable",l.JSC$17723_mainAppPlayer);_.EU(y);return n.return()}return n.yield(l.JSC$17723_mainAppPlayer.api,2)}D=n.yieldResult;(U=D)==null||U.pauseVideo();_.Kz(n)})};
jb.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z;return _.P(function(f){if(f.nextAddress==1)return U=_.M(l,Y0h),y=(n=U)==null?void 0:n.nowPlayingEntityValue,C=(A=U)==null?void 0:A.externalVideoId,G=Number((Q=(h=U)==null?void 0:(b=h.defaultStartPoints)==null?void 0:(u=b[0])==null?void 0:u.offsetMs)!=null?Q:"0"),d=Number((S=(J=U)==null?void 0:(L=J.defaultStartPoints)==null?void 0:(R=L[0])==null?void 0:(a=R.duration)==null?void 0:a.seconds)!=null?S:"15"),z=(N=
(c=U)==null?void 0:c.playerParams)!=null?N:"",y&&C?D.JSC$17723_mainAppPlayer?f.jumpTo(2):f.yield(Mrw(D),2):f.return();if(f.nextAddress!=6){if(D.nowPlayingEntityValue&&y===D.nowPlayingEntityValue)return D.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?f.yield(D.pauseVideo(),0):f.yield(D.playVideo(G,d,z),0);D.externalVideoId=C;D.nowPlayingEntityValue=y;D.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return f.yield(D.playVideo(G,d,z),6)}Rh8(D);return f.jumpTo(0)})};
jb[Lt]=[Vd];var Ff=function(l){this.JSC$17741_commandHandler=l};
_.Z(Ff,Pf);Ff.prototype.resolveCommand=function(l,D){var U=this,n,y,A;return _.P(function(C){if(C.nextAddress==1)return(n=_.M(l,cxz))?C.yield(_.nq(),2):C.return();y=C.yieldResult;if(!y)return C.return();(A=kV$(y))&&U.JSC$17741_commandHandler.resolveCommand(A,D);_.Kz(C)})};
Ff[Lt]=[_.qK];var oc=function(l){this.JSC$17747_commandHandler=l};
_.Z(oc,Pf);oc.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h;return _.P(function(b){if(b.nextAddress==1)return(n=_.M(l,pqm))?b.yield(_.nq(),2):b.return();y=b.yieldResult;if(!y)return b.return();(A=xel(y))?U.JSC$17747_commandHandler.resolveCommand(A,D):(C=_.C3("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),h=_.Hc(C),U.JSC$17747_commandHandler.resolveCommand(h));_.Kz(b)})};
oc[Lt]=[_.qK];var w2=function(l){this.JSC$17750_playerPromise=l};
_.Z(w2,Pf);w2.prototype.resolveCommand=function(l){var D=this,U,n;return _.P(function(y){if(y.nextAddress==1)return(U=_.M(l,rQh))?y.yield(D.JSC$17750_playerPromise,2):y.return();n=y.yieldResult;n.isFullscreen()&&n.wakeUpControls();_.Kz(y)})};
w2[Lt]=[_.Vl];var r2=function(l){this.JSC$17753_playerPromise=l};
_.Z(r2,Pf);r2.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C;return _.P(function(h){if(h.nextAddress==1){U=_.M(l,R15);if(!U)return h.return();n=U.overlayRenderer;return n?(y=_.M(n,sYh))?h.yield(D.JSC$17753_playerPromise,3):h.jumpTo(0):h.return()}A=h.yieldResult;A.renderChapterSeekingAnimation(1,_.Nl(y.text),(C=y.icon)==null?void 0:C.iconType);_.Kz(h)})};
r2[Lt]=[_.Vl];var zH=function(l){this.store=l};
_.Z(zH,Pf);
zH.prototype.resolveCommand=function(l){var D=this,U,n,y;return _.P(function(A){if(A.nextAddress==1){U=_.M(l,yZ8);if(!U)return A.return();n="";(y=D.store.getState().collabInviteLink)&&U.id===y.playlistId?n=y.inviteLinkURL:U.shortUrl&&(n=U.shortUrl);return n?A.yield(navigator.clipboard.writeText(n),3):A.jumpTo(0)}var C={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.C3("COPY_LINK_SUCCESS_TOAST")}}}}};_.Jc().resolve(_.qK).resolveCommand(C);_.Kz(A)})};
zH[Lt]=[ij];var fv=function(l,D){this.innertubeTransportService=l;this.JSC$17763_commandHandler=D};
_.Z(fv,Pf);fv.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J;return _.P(function(L){if(L.nextAddress==1)return(n=_.M(l,_.Bq))?L.yield(_.oL(U.innertubeTransportService,l,(y=D)==null?void 0:y.form),2):L.return();(A=L.yieldResult)&&A.errorMetadata&&(C=A,h=_.Hc(C.error.message),U.JSC$17763_commandHandler.resolveCommand(h));b=A;if((u=b)==null?0:u.actions)for(Q=_.B(b.actions),G=Q.next();!G.done;G=Q.next())J=G.value,U.JSC$17763_commandHandler.resolveCommand(J);_.Kz(L)})};
fv[Lt]=[_.Ju,_.qK];var Np=function(){};
_.Z(Np,Pf);Np.prototype.resolveCommand=function(l){var D;return _.P(function(U){D=_.M(l,IW7);if(!D)return U.return();(new Mj5(D)).show();_.Kz(U)})};_.s8=new _.A7("PLAYLIST_EDIT_CONTROLLER_TOKEN");var E8=function(l,D,U,n){this.store=l;this.innertubeTransportService=D;this.controller=U;this.JSC$17771_commandHandler=n};
_.Z(E8,Pf);
E8.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I,iG,CC,vo,td,GN,Ms;return _.P(function(j3){if(j3.nextAddress==1){n=_.M(l,_.lc);if(!n)return j3.return();if(n.clientActions){y=_.B(n.clientActions);for(A=y.next();!A.done;A=y.next())C=A.value,U.JSC$17771_commandHandler.resolveCommand(C,D);var wl,zN=D==null?void 0:(wl=D.form)==null?void 0:wl.element;zN&&_.O9(zN,"yt-dismissible-item-action",n.clientActions)}return j3.yield(_.oL(U.innertubeTransportService,l,(h=
D)==null?void 0:h.form),2)}if(b=j3.yieldResult)b.errorMetadata?(u=b,Q=_.Hc(u.error.message),U.JSC$17771_commandHandler.resolveCommand(Q),"error"in b&&((G=D)==null?0:(J=G.commandController)==null?0:J.onServerError)&&((L=D)==null||(R=L.commandController)==null||R.onServerError(l,b))):(a=D)==null||(S=a.commandController)==null||(c=(d=S).onSuccess)==null||c.call(d,l,b);N=b;((z=N)==null?0:z.collaborationInviteLink)&&n.playlistId&&(_.q("web_enable_invite_collaborators_link")||_.q("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
U.store.dispatch(_.V0({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:n.playlistId,inviteLinkUrl:N.collaborationInviteLink}}));((f=N)==null?0:f.redirectEndpoint)&&U.JSC$17771_commandHandler.resolveCommand(N.redirectEndpoint);((I=N)==null?0:(iG=I.newHeader)==null?0:iG.playlistHeaderRenderer)?Z25(U.controller,N.newHeader.playlistHeaderRenderer):((CC=N)==null?0:(vo=CC.newHeader)==null?0:vo.musicEditablePlaylistDetailHeaderRenderer)&&Z25(U.controller,N.newHeader.musicEditablePlaylistDetailHeaderRenderer);
U.controller.playlistVideoListElement&&((td=N)==null?0:(GN=td.playlistEditResults)==null?0:(Ms=GN[0])==null?0:Ms.playlistEditVideoAddedResultData)&&((zN=U.controller.playlistVideoListElement)==null||zN.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:N.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Kz(j3)})};
E8[Lt]=[_.Op,_.Ju,_.s8,_.qK];var TH=function(l,D){this.controller=l;this.JSC$17781_commandHandler=D};
_.Z(TH,Pf);TH.prototype.resolveCommand=function(l,D){var U=this,n,y,A;return _.P(function(C){n=_.M(l,AZ5);U.controller.showRefreshPill&&((y=n)==null?0:y.command)&&(U.JSC$17781_commandHandler.resolveCommand((A=n)==null?void 0:A.command,D),U.controller.showRefreshPill=!1);_.Kz(C)})};
TH[Lt]=[_.c$,_.qK];var Ic=function(l,D){this.store=l;this.JSC$17785_commandHandler=D||_.yu.instance};
_.Z(Ic,Pf);Ic.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J;return _.P(function(L){n=_.M(l,qCy);y=U.store.getState().radioButtonGroup;if((A=n)==null?0:A.command)U.JSC$17785_commandHandler.resolveCommand((C=n)==null?void 0:C.command,D);else if(y&&((h=n)==null?void 0:h.formId)===y.currentFormId)for(b=Object.values(y.commandsMap),u=_.B(b),Q=u.next();!Q.done;Q=u.next())G=Q.value,(J=_.te(G))&&U.JSC$17785_commandHandler.resolveCommand(J,D);_.Kz(L)})};
Ic[Lt]=[_.Op];var H4=new _.A7("USER_PREFS");var Yj=function(l){this.JSC$17790_prefCookie=l};
_.Z(Yj,Pf);Yj.prototype.resolveCommand=function(l){var D=this,U;return _.P(function(n){(U=_.M(l,rV7))&&typeof U.useListView==="boolean"&&(_.gj(0,155,U.useListView),D.JSC$17790_prefCookie.save());_.Kz(n)})};
Yj[Lt]=[H4];var O8=function(l){this.JSC$17794_prefCookie=l};
_.Z(O8,Pf);O8.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C;return _.P(function(h){U=_.M(l,YI7);if((n=U)==null||!n.gl)return h.return();y=U.gl;A={persist_gl:"1",gl:y};D.JSC$17794_prefCookie.set("gl",y);D.JSC$17794_prefCookie.save();C=ut1(A);_.KU(C);_.Kz(h)})};
O8[Lt]=[H4];var V7=function(l){this.JSC$17798_prefCookie=l};
_.Z(V7,Pf);V7.prototype.resolveCommand=function(l){var D=this,U,n;return _.P(function(y){U=_.M(l,BD_);if(!U)return y.return();n=!1;U.flagNum&&typeof U.value==="boolean"?(_.gj(0,U.flagNum,U.value),n=!0):U.key&&typeof U.stringValue==="string"&&(D.JSC$17798_prefCookie.set(U.key,U.stringValue),n=!0);n&&D.JSC$17798_prefCookie.save();_.Kz(y)})};
V7[Lt]=[H4];var lf=new _.A7("PREF_STORAGE_PROMISE_TOKEN");var DM=function(l){this.JSC$17802_prefStoragePromise=l};
_.Z(DM,Pf);DM.prototype.resolveCommand=function(l){var D=this,U,n;return _.P(function(y){if(y.nextAddress==1)return(U=_.M(l,hR_))?y.yield(D.JSC$17802_prefStoragePromise,2):y.return();n=y.yieldResult;return n===void 0||U.key===void 0||U.value===void 0?y.return():y.yield(n.set(U.key,U.value),0)})};
DM[Lt]=[lf];var Uq=function(l){this.innertubeTransportService=l};
_.Z(Uq,Pf);Uq.prototype.resolveCommand=function(l,D){var U=this,n,y;return _.P(function(A){(n=_.M(l,_.L45))&&n&&n.isFirstRequest&&(_.m0("search_overview_answer"),_.ae("so_rq",void 0,"search_overview_answer"));return A.yield(_.oL(U.innertubeTransportService,l,(y=D)==null?void 0:y.form),0)})};
Uq[Lt]=[_.Ju];var ehw=function(){};
_.Z(ehw,Pf);
ehw.prototype.resolveCommand=function(l){var D,U,n,y,A,C,h,b,u;return _.P(function(Q){D=_.M(l,qpg);if((U=D)==null?0:U.sectionIdentifier){if(D.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(y=(n=document.getElementsByTagName(D.sectionIdentifier))==null?void 0:n.item(0))y.scrollIntoView({behavior:"smooth"}),(A=Cms(y))&&A.focus({preventScroll:!0});return Q.return()}C=document.querySelector("[section-identifier="+D.sectionIdentifier+"]");h=document.querySelector("[section-identifier="+D.referenceSectionIdentifier+
"]");if(!C)return Q.return();b=D.verticalScrollOffsetDp?D.verticalScrollOffsetDp:0;h&&(b-=h.offsetTop);window.scrollTo({top:C.offsetTop+b,behavior:"smooth"});(u=Cms(C))&&u.focus({preventScroll:!0})}_.Kz(Q)})};var nR=function(l){this.JSC$17814_commandHandler=l};
_.Z(nR,Pf);
nR.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b;return _.P(function(u){if(u.nextAddress==1){U=_.M(l,fu1);if(!U||!U.imageBytes||!navigator.clipboard)return u.return();if(U.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.EU(Error("Fi")),u.return();_.ZY(u,2);y=(n=U)==null?void 0:n.imageBytes;A=y.replace(/-/g,"+").replace(/_/g,"/");C=QM3(A);h={};b=[new ClipboardItem((h[C.type]=C,h))];return u.yield(navigator.clipboard.write(b),4)}if(u.nextAddress!=2)return U.successCommand&&
D.JSC$17814_commandHandler.resolveCommand(U.successCommand),_.WG(u,0);_.kF(u);U.errorCommand&&D.JSC$17814_commandHandler.resolveCommand(U.errorCommand);_.Kz(u)})};
nR[Lt]=[_.qK];var ye=function(l,D){this.innertubeTransportService=l;this.JSC$17818_commandHandler=D};
_.Z(ye,Pf);ye.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h;return _.P(function(b){if(b.nextAddress==1)return(n=_.M(l,$2y))?b.yield(_.oL(U.innertubeTransportService,l,(y=D)==null?void 0:y.form),2):b.return();(A=b.yieldResult)&&A.errorMetadata&&n.onFailureCommand&&U.JSC$17818_commandHandler.resolveCommand(n.onFailureCommand);C=A;((h=C)==null?0:h.shareCommand)&&U.JSC$17818_commandHandler.resolveCommand(C.shareCommand,D);_.Kz(b)})};
ye[Lt]=[_.Ju,_.qK];var A0=function(){};
_.Z(A0,Pf);A0.prototype.resolveCommand=function(l){var D,U;return _.P(function(n){D=_.M(l,UT7);if(!D||!navigator.share)return n.return();U={url:D.url};try{return n.return(navigator.share(U))}catch(y){}_.Kz(n)})};var WJ=function(){};
_.Z(WJ,Pf);WJ.prototype.resolveCommand=function(){return _.P(function(l){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Kz(l)})};var BJ=function(l){this.JSC$17828_navigationConfirmationService=l};
_.Z(BJ,Pf);BJ.prototype.resolveCommand=function(){var l=this;return _.P(function(D){l.JSC$17828_navigationConfirmationService.cancelPendingNavigation();_.Kz(D)})};
BJ[Lt]=[rZ];var CR=function(l){this.JSC$17831_screenManager=l};
_.Z(CR,Pf);CR.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u;return _.P(function(Q){y=(n=D.form)==null?void 0:n.event;C=(A=D.form)==null?void 0:A.element;if(!y)throw new _.rc("Event not passed in when resolving command");h=_.B(y.composedPath());for(b=h.next();!b.done;b=h.next())if(u=b.value,u.tagName==="YT-COPY-LINK-RENDERER")return u.copyUrlToClipboard(),C&&_.xo(U.JSC$17831_screenManager,C),Q.return();_.Kz(Q)})};
CR[Lt]=[_.$k];var h0=function(){this.JSC$17835_miniAppClientDataProvider=_.Jc().resolve(_.GG)};
_.Z(h0,Pf);h0.prototype.resolveCommand=function(){var l=this,D,U;return _.P(function(n){if(l.JSC$17835_miniAppClientDataProvider.clientData.has("video_id")){var y=l.JSC$17835_miniAppClientDataProvider,A=y.clientData.get("video_id");A&&y.clientData.delete("video_id");D="https://youtube.com/watch?v="+A;U=_.rT(D);if(U===void 0)throw Error("Gi`"+D);_.DY(window,U)}_.Kz(n)})};var PJ=function(){};
_.Z(PJ,Pf);PJ.prototype.resolveCommand=function(){return _.P(function(l){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Kz(l)})};var bf=function(){};
_.Z(bf,Pf);bf.prototype.resolveCommand=function(){var l;return _.P(function(D){if(D.nextAddress==1)return D.yield(_.OiG(window.document.documentElement),2);(l=document.querySelector("mini-app-container-view-model iframe"))&&l.focus();_.Kz(D)})};var gJ=function(l){this.JSC$17842_navigationConfirmationService=l};
_.Z(gJ,Pf);
gJ.prototype.resolveCommand=function(){var l=this;return _.P(function(D){var U=l.JSC$17842_navigationConfirmationService,n=_.Jc().resolve(_.xp),y;if(((y=U.navigateParams)==null?void 0:y.data)!==void 0){var A;_.d8y(n,U.navigateParams.endpoint,U.navigateParams.data,(A=U.navigateParams.navigationType)!=null?A:1,U.navigateParams.tempData,U.navigateParams.isMiniplayer,void 0,!0);U.navigateParams=void 0;U.customConfirmationCommand=void 0}else U.navigateParams&&(n.navigate(U.navigateParams.endpoint,U.navigateParams.reload,
U.navigateParams.params,U.navigateParams.tempData,U.navigateParams.requestType,U.navigateParams.createScreenConfig,!0),U.navigateParams=void 0,U.customConfirmationCommand=void 0);_.Kz(D)})};
gJ[Lt]=[rZ];var uf=function(){};
_.Z(uf,Pf);uf.prototype.resolveCommand=function(){return _.P(function(l){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Kz(l)})};var vJ=function(l){this.JSC$17847_prefStorage=l};
_.Z(vJ,Pf);vJ.prototype.resolveCommand=function(){var l=this,D,U;return _.P(function(n){switch(n.nextAddress){case 1:return n.yield(l.JSC$17847_prefStorage,2);case 2:return(D=n.yieldResult)?n.yield(D.set("sfvle",!1),3):n.return();case 3:return n.yield(D.set("sfvles",!0),4);case 4:U=_.bu(),_.gj(0,203,!1),_.gj(0,204,!0),U.save(),_.Kz(n)}})};
vJ[Lt]=[lf];var Qe=function(l){this.JSC$17850_prefStorage=l};
_.Z(Qe,Pf);Qe.prototype.resolveCommand=function(){var l=this,D,U;return _.P(function(n){switch(n.nextAddress){case 1:return n.yield(l.JSC$17850_prefStorage,2);case 2:return(D=n.yieldResult)?n.yield(D.set("sfvle",!0),3):n.return();case 3:return n.yield(D.set("sfvles",!0),4);case 4:U=_.bu(),_.gj(0,203,!0),_.gj(0,204,!0),U.save(),_.Kz(n)}})};
Qe[Lt]=[lf];_.mG2=new _.A7("SNACKBAR_CONTROLLER_TOKEN");_.aU8=new _.A7("SHOULD_SHOW_PIVOT_BAR_TOKEN");var GR=function(l){this.controller=l};
_.Z(GR,Pf);GR.prototype.resolveCommand=function(l){var D=this,U;return _.P(function(n){U=_.M(l,Un8);if(!U)return n.return();var y=D.controller;y.closeSnackbarFn&&y.closeSnackbarFn();_.Kz(n)})};
GR[Lt]=[_.mG2];var J0=function(l,D){this.controller=l;this.JSC$17857_sheetController=D};
_.Z(J0,Pf);J0.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b;return _.P(function(u){n=_.M(l,yY7);if(!n)return u.return();C=b2r(U.JSC$17857_sheetController,(y=D)==null?void 0:(A=y.form)==null?void 0:A.element);h=_.M(n.content,R27);if(!h)return u.return();var Q=U.controller,G=h,J=(b=n.animationStyle)!=null?b:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(Q.showSnackbarFn)Q.showSnackbarFn({snackbarViewModel:G,animationStyle:J,durationMs:n.durationSeconds*1E3,target:C});else throw Error("zj");_.Kz(u)})};
J0[Lt]=[_.mG2,_.H0];var LR=function(){};
_.Z(LR,Pf);LR.prototype.resolveCommand=function(l){var D;return _.P(function(U){D=_.M(l,C3y);if(!D||typeof D.key!=="string"||typeof D.value!=="string")return U.return();window.localStorage.setItem(D.key,D.value);_.Kz(U)})};var qm=function(l){this.store=l};
_.Z(qm,Pf);qm.prototype.resolveCommand=function(l){var D=this,U;return _.P(function(n){U=_.M(l,vyK);if(!U||!U.stepId||!U.token)return n.return();D.store.dispatch(OOm({stepId:U.stepId,token:U.token,isSelected:!1}));_.Kz(n)})};
qm[Lt]=[ij];var Mm=function(l,D,U){this.innertubeTransportService=l;this.store=D;this.JSC$17869_screenManager=U};
_.Z(Mm,Pf);
Mm.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I,iG,CC,vo;return _.P(function(td){U=_.M(l,Uf5);if(!U||(n=U.stepIds)==null||!n.length)return td.return();y=D.store.getState().talkToRecs;A=[];C=[];h=_.B(U.stepIds);for(b=h.next();!b.done;b=h.next())for(u=b.value,Q=void 0,(G=(Q=y.stepStates[u])==null?void 0:Q.userQuery)&&C.push({userQuery:U.submitEmptyUserQuery?"":G.userQuery,userQueryToken:G.token}),L=J=void 0,R=(L=(J=y.stepStates[u])==null?void 0:J.selectionStates)!=
null?L:{},a=_.B(Object.entries(R)),S=a.next();!S.done;S=a.next())d=S.value,c=_.B(d),N=c.next().value,z=c.next().value,f=N,I=z,I.isSelected&&A.push(f);iG={selectedChipTokens:A,userQueries:C,submittedStepIds:U.stepIds};CC={browseTalk2recsFormData:iG};U.browseEndpoint?(vo=l,_.RO(vo,_.Pk,U.browseEndpoint)):U.command&&(vo=U.command);return vo?td.yield(_.oL(D.innertubeTransportService,vo,{formData:CC,disableCache:!0}).then(function(GN){(GN==null?0:GN.trackingParams)&&D.JSC$17869_screenManager.graftServerVe(GN==
null?void 0:GN.trackingParams)}),0):td.return()})};
Mm[Lt]=[_.Ju,ij,_.$k];var R3=function(l){this.store=l};
_.Z(R3,Pf);
R3.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u;return _.P(function(Q){U=_.M(l,uUs);if(!U||!U.stepId||!U.token)return Q.return();U.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY"?(C=(A=(n=D.store.getState().talkToRecs.stepStates[U.stepId])==null?void 0:(y=n.userQuery)==null?void 0:y.userQuery)!=null?A:"",h=C.length>0?". ":"",b=C+h+U.selectedText,D.store.dispatch(Vgr({stepId:U.stepId,userQueryToken:U.token,userQuery:b}))):U.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY"?D.store.dispatch(Vgr({stepId:U.stepId,
userQueryToken:U.token,userQuery:(u=U.selectedText)!=null?u:""})):D.store.dispatch(OOm({stepId:U.stepId,token:U.token,isSelected:!0}));_.Kz(Q)})};
R3[Lt]=[ij];var ZM=function(l){this.store=l};
_.Z(ZM,Pf);ZM.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h;return _.P(function(b){n=_.M(l,No_);if(!n||!n.stepId||!n.userQueryToken)return b.return();h=(C=(y=D)==null?void 0:(A=y.form)==null?void 0:A.userQuery)!=null?C:"";U.store.dispatch(Vgr({stepId:n.stepId,userQueryToken:n.userQueryToken,userQuery:h}));_.Kz(b)})};
ZM[Lt]=[ij];_.tr$=new _.A7("TIMELY_ACTIONS_CONTROLLER_TOKEN");var eE=function(l){this.controller=l};
_.Z(eE,Pf);eE.prototype.resolveCommand=function(l){var D=this,U,n,y,A;return _.P(function(C){U=_.M(l,Ge1);if(!U)return C.return();n=U;y=n.id;A=n.isVisible;if(y===void 0||A===void 0)return C.return();var h;(h=D.controller.timelyActionsMap.get(y))==null||h(y,A);_.Kz(C)})};
eE[Lt]=[_.tr$];var X7J=function(){this.timelyActionsMap=new Map};var mN=function(l){this.JSC$17895_commandHandler=l};
_.Z(mN,Pf);mN.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C;return _.P(function(h){U=_.M(l,_.t5r);if(!U)return h.return();A=(n=U.item)==null?void 0:(y=n.notificationTextRenderer)==null?void 0:y.successResponseText;if(!A)return h.return();C=_.IJ(A);D.JSC$17895_commandHandler.resolveCommand(C);_.Kz(h)})};
mN[Lt]=[_.qK];var a3=function(l,D){this.innertubeTransportService=l;this.JSC$17900_playerApiPromise=D};
_.Z(a3,Pf);
a3.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u,Q;return _.P(function(G){if(G.nextAddress==1)return G.yield(D.JSC$17900_playerApiPromise,2);U=G.yieldResult;n=U.getOption("captions","track");y=Object.assign({},_.M(l,_.dTH));(C=(A=U.getVideoData())==null?void 0:A.video_id)?y.externalVideoId=C:_.nt(Error("Hi"));if((h=n)==null?0:h.languageCode)y.languageCode=n.languageCode;if((b=n)==null?0:b.kind)y.kind=n.kind;if((u=n)==null?0:u.name)y.name=n.name;Q=Object.assign({},l,{getTranscriptEndpoint:y});return G.yield(_.oL(D.innertubeTransportService,
Q),0)})};
a3[Lt]=[_.Ju,_.Vl];var t0=function(){};
_.Z(t0,Pf);t0.prototype.resolveCommand=function(l){var D,U,n,y,A,C,h,b;return _.P(function(u){D=_.M(l,LR1);if((U=D)==null||!U.paramKeyValuePairs)return u.return();n=window.location.href;y=_.B(D.paramKeyValuePairs);for(A=y.next();!A.done;A=y.next())C=A.value,C.key&&C.value&&(h={},n=_.Ct(n,(h[C.key]=C.value,h)));b=_.Jc().resolve(_.jK);_.xO(b,n);_.Kz(u)})};_.Xl=new _.A7("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var SE=function(l,D,U,n){this.controller=l;this.JSC$17907_playerApiPromise=D;this.innertubeTransportService=U;this.JSC$17907_commandHandler=n};
_.Z(SE,Pf);
SE.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N;return _.P(function(z){if(z.nextAddress==1){U=_.M(l,z2z);if((n=U)==null||!n.watchEndpoint)return z.return();y=new Sb;A=y.JSC$14246_getRequest(U.watchEndpoint);if(!A)return z.return();C=U.watchEndpoint.clickTrackingParams;return z.yield(_.BN(D.innertubeTransportService,A.innerTubeRequest,A.input,C,A.config),2)}if(z.nextAddress!=3)return h=z.yieldResult,z.yield(D.JSC$17907_playerApiPromise,3);b=z.yieldResult;b.updateVideoData({raw_watch_next_response:h});
if(R=(u=h)==null?void 0:(Q=u.contents)==null?void 0:(G=Q.twoColumnWatchNextResults)==null?void 0:(J=G.results)==null?void 0:(L=J.results)==null?void 0:L.contents)S=(a=R.find(function(f){return f.videoPrimaryInfoRenderer}))==null?void 0:a.videoPrimaryInfoRenderer,((d=S)==null?0:d.subtitle)&&SjW(D.controller,S.subtitle);
(N=(c=h)==null?void 0:c.onUiReady)&&D.JSC$17907_commandHandler.resolveCommand(N);_.Kz(z)})};
SE[Lt]=[_.Xl,_.Vl,_.Ju,_.qK];var kPH=function(){this.subtitleChangeCallbackMap=new Map},SjW=function(l,D){l=_.B(l.subtitleChangeCallbackMap.values());
for(var U=l.next();!U.done;U=l.next())U=U.value,U(D)};var kU=function(l,D){this.JSC$17917_commandHandler=l;this.innertubeTransportService=D};
_.Z(kU,Pf);
kU.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N;return _.P(function(z){switch(z.nextAddress){case 1:return(A=(n=D)==null?void 0:(y=n.form)==null?void 0:y.element)&&_.K4(A),C=_.bu().get("hl"),h="",_.ZY(z,2),z.yield(we3(C),4);case 4:h=z.yieldResult;_.WG(z,3);break;case 2:return _.kF(z),A&&_.cF(A),_.EU(Error("Ji"),"ERROR"),z.return();case 3:b=_.M(l,iKh);if(!b)return A&&_.cF(A),z.return();(G=(u=b.commerceActionConfig)==null?void 0:(Q=u.commandLifeCycleConfig)==null?
void 0:Q.onStartCommand)&&U.JSC$17917_commandHandler.resolveCommand(G);return z.yield(_.oL(U.innertubeTransportService,l,{client_data:{paymentsClientToken:{token:h}}}),5);case 5:(J=z.yieldResult)?(A&&_.cF(A),((S=J)==null?0:S.command)&&U.JSC$17917_commandHandler.resolveCommand(J.command),(N=(d=b.commerceActionConfig)==null?void 0:(c=d.commandLifeCycleConfig)==null?void 0:c.onSuccessCommand)&&U.JSC$17917_commandHandler.resolveCommand(N)):(A&&_.cF(A),_.EU(Error("Ki")),(a=(L=b.commerceActionConfig)==
null?void 0:(R=L.commandLifeCycleConfig)==null?void 0:R.onFailureCommand)&&U.JSC$17917_commandHandler.resolveCommand(a)),_.Kz(z)}})};
kU[Lt]=[_.qK,_.Ju];var dJ=function(l,D,U){this.store=l;this.JSC$17933_commandHandler=D;this.innertubeTransportService=U};
_.Z(dJ,Pf);
dJ.prototype.resolveCommand=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G;return _.P(function(J){n=_.M(l,lDH);y=n.googlePaymentPayload;n.onStartCommand&&U.JSC$17933_commandHandler.resolveCommand(n.onStartCommand);A=y.encryptedPurchaseParams;C=y.ypcLogWalletAnalyticDataEndpoint;h=n.serializedTransactionFlowLoggingParams;b=y.serializedPaymentsClientParams;u=n.ypcCujContext;G=fng(U.innertubeTransportService,(Q=D)==null?void 0:Q.form,A,C,h,b,u);return J.return(G.then(function(L){rI9(D==null?void 0:D.form,
!1);var R=U.store,a=U.JSC$17933_commandHandler,S=L.integratorData;S==null||S===""||L.error!=null?(String(L.error)==="-1"&&n.onDismissCommand?a.resolveCommand(n.onDismissCommand):String(L.error)!=="-1"&&n.onFailureCommand&&a.resolveCommand(n.onFailureCommand),String(L.error)!=="-1"&&String(L.error)!=="132"&&_.EU(Error("Li"),"ERROR")):(n.googlePaymentEntityKey&&R.dispatch(_.vr("commerceAcquisitionClientPayloadEntity",n.googlePaymentEntityKey,{key:n.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:S,
fundsGuaranteeCallbackClientData:L.integratorClientCallbackData}}})),n.onSuccessCommand&&a.resolveCommand(n.onSuccessCommand));_.Ut()},function(L){rI9(D==null?void 0:D.form,!1);
_.EU(L,"ERROR");n.onFailureCommand&&U.JSC$17933_commandHandler.resolveCommand(n.onFailureCommand)}))})};
dJ[Lt]=[Vd,_.qK,_.Ju];var KR=function(l,D){this.JSC$17937_commandHandler=l;this.purchaseManager=D};
_.Z(KR,Pf);
KR.prototype.resolveCommand=function(l){var D=this,U,n,y,A,C,h,b,u,Q;return _.P(function(G){U=_.M(l,DYy);((n=U)==null?0:(y=n.commandLifeCycleConfig)==null?0:y.onStartCommand)&&D.JSC$17937_commandHandler.resolveCommand(U.commandLifeCycleConfig.onStartCommand);if(!((A=U)==null?0:(C=A.googlePaymentPurchaseManagerPayload)==null?0:C.securePayloadBytes))return _.EU(Error("Mi"),"ERROR"),G.return();h=$D7(_.Oc(U.googlePaymentPurchaseManagerPayload.securePayloadBytes));b=_.bu().get("hl");u=_.wf();vF8(h.serialize(),
b,function(J){u.resolve(J)},function(J){u.reject(J)},u.resolve);
Q=u.promise;return G.return(Q.then(function(J){if(J)if(J==null?0:J.errorCode){_.EU(Error("Ni`"+J.errorCode),"ERROR");var L,R;((L=U)==null?0:(R=L.commandLifeCycleConfig)==null?0:R.onFailureCommand)&&D.JSC$17937_commandHandler.resolveCommand(U.commandLifeCycleConfig.onFailureCommand)}else if(J==null?0:J.isCancelled){var a,S;((a=U)==null?0:(S=a.commandLifeCycleConfig)==null?0:S.onCancelCommand)&&D.JSC$17937_commandHandler.resolveCommand(U.commandLifeCycleConfig.onCancelCommand)}else{var d,c;((d=U)==
null?0:(c=d.commandLifeCycleConfig)==null?0:c.onSuccessCommand)&&D.JSC$17937_commandHandler.resolveCommand(U.commandLifeCycleConfig.onSuccessCommand)}},function(J){_.EU(J,"ERROR");
var L,R;((L=U)==null?0:(R=L.commandLifeCycleConfig)==null?0:R.onFailureCommand)&&D.JSC$17937_commandHandler.resolveCommand(U.commandLifeCycleConfig.onFailureCommand)}))})};
KR[Lt]=[_.qK,QVJ];var dGP=function(l,D){this.JSC$17945_commandHandler=l;this.commandAllowlistOverride=D;var U;this.commandAllowlist=(U=this.commandAllowlistOverride)!=null?U:tX3};
dGP.prototype.handleResponse=function(l,D,U){var n,y=D==null?void 0:(n=D.config)==null?void 0:n.command;if(!y||this.commandAllowlist.some(function(A){return!!_.M(y,A)})){D=void 0;
U!==void 0&&(D={form:{element:U}});l.onResponseReceivedCommand&&this.JSC$17945_commandHandler.resolveCommand(l.onResponseReceivedCommand,D);l.onResponseReceivedAction&&this.JSC$17945_commandHandler.resolveCommand(l.onResponseReceivedAction,D);l.onResponseReceivedEndpoint&&this.JSC$17945_commandHandler.resolveCommand(l.onResponseReceivedEndpoint,D);l.command&&this.JSC$17945_commandHandler.resolveCommand(l.command,D);if(l.onResponseReceivedCommands)for(U=_.B(l.onResponseReceivedCommands),n=U.next();!n.done;n=
U.next())this.JSC$17945_commandHandler.resolveCommand(n.value,D);if(l.onResponseReceivedActions)for(U=_.B(l.onResponseReceivedActions),n=U.next();!n.done;n=U.next())this.JSC$17945_commandHandler.resolveCommand(n.value,D);if(l.onResponseReceivedEndpoints)for(U=_.B(l.onResponseReceivedEndpoints),n=U.next();!n.done;n=U.next())this.JSC$17945_commandHandler.resolveCommand(n.value,D);if(l.actions)for(l=_.B(l.actions),U=l.next();!U.done;U=l.next())this.JSC$17945_commandHandler.resolveCommand(U.value,D)}};
dGP[Lt]=[_.qK,_.G8(aH3)];var KL2=new _.A7("INNERTUBE_TOKEN_SERVICE");var caP=new _.A7("SCHEDULER_TOKEN");var p78=function(l){this.scheduler=l;l={};this.tokenMap=(l.app={},l.user={},l)};
p78.prototype.handleResponse=function(l,D){if(!D)throw Error("Oi");var U;if(l=(U=l.responseContext)==null?void 0:U.innertubeTokenJar){if(l.appTokens){var n,y,A;U=(n=D.innerTubeRequest.context)==null?void 0:(y=n.request)==null?void 0:(A=y.innertubeTokenJar)==null?void 0:A.appTokens;xGq(this,l.appTokens,this.tokenMap.app,U)}if(l.userTokens){var C,h,b;D=(C=D.innerTubeRequest.context)==null?void 0:(h=C.request)==null?void 0:(b=h.innertubeTokenJar)==null?void 0:b.userTokens;xGq(this,l.userTokens,this.tokenMap.user,
D)}}};
p78.prototype.processContext=function(l){l.request||(l.request={});var D=Object.keys(this.tokenMap.app).length,U=Object.keys(this.tokenMap.user).length;if(D||U)l.request.innertubeTokenJar={},D&&(l.request.innertubeTokenJar.appTokens=[].concat(_.zz(Object.values(this.tokenMap.app).flat()))),U&&(l.request.innertubeTokenJar.userTokens=[].concat(_.zz(Object.values(this.tokenMap.user).flat())))};
var xGq=function(l,D,U,n){D=_.B(D);for(var y=D.next(),A={};!y.done;A={token$jscomp$139:void 0},y=D.next()){A.token$jscomp$139=y.value;if(A.token$jscomp$139.type===void 0)throw new _.rc("InnerTube token has no type",A.token$jscomp$139);if(A.token$jscomp$139.clearTokens)U[A.token$jscomp$139.type]=[];else if(A.token$jscomp$139.value!==void 0){U[A.token$jscomp$139.type]||(U[A.token$jscomp$139.type]=[]);if(n!==void 0&&n.length){y=_.B(n);for(var C=y.next(),h={};!C.done;h={requestToken:void 0},C=y.next())h.requestToken=
C.value,C=U[A.token$jscomp$139.type].findIndex(function(b){return function(u){return u===b.requestToken||(0,_.we.equals)(u,b.requestToken)}}(h)),C>-1&&U[A.token$jscomp$139.type].splice(C,1)}U[A.token$jscomp$139.type].push(A.token$jscomp$139);
A.token$jscomp$139.maxAgeSeconds&&Number(A.token$jscomp$139.maxAgeSeconds)>0&&l.scheduler.addLowPriorityJob(function(b){return function(){var u=U[b.token$jscomp$139.type].indexOf(b.token$jscomp$139);u>-1&&U[b.token$jscomp$139.type].splice(u,1)}}(A),Number(A.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.rc("InnerTube token has no value",A.token$jscomp$139);
}};
p78[Lt]=[caP];var jBr=new _.A7("LOCAL_INNERTUBE_ROUTER_TOKEN"),FLW=new _.A7("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var cJ=function(l){this.serviceMap=l};
cJ.prototype.shouldPreferLocalResponse=function(l,D){return(l=om8(this,l))?l.shouldPreferLocalResponse(D):!1};
cJ.prototype.localInnertubeResponse=function(l,D){var U=this,n;return _.P(function(y){return(n=om8(U,l))?y.return(n.localInnertubeResponse(D)):y.return(Promise.reject(Error("Pi")))})};
cJ.prototype.canProvideFallbackResponse=function(l,D){return(l=om8(this,l))?l.canProvideFallbackResponse(D):!1};
cJ.prototype.localFallbackInnertubeResponse=function(l,D){var U=this,n;return _.P(function(y){return(n=om8(U,l))?y.return(n.localFallbackInnertubeResponse(D)):y.return(Promise.reject(Error("Pi")))})};
var om8=function(l,D){D=_.kZ(D);return D?(l=l.serviceMap[D])?l:null:null};
cJ[Lt]=[FLW];var QI=function(){};
QI.prototype.shouldPreferLocalResponse=function(){return!1};
QI.prototype.localInnertubeResponse=function(){return _.P(function(l){return l.return(Promise.reject(Error("Qi")))})};
QI.prototype.canProvideFallbackResponse=function(){return!0};
QI.prototype.localFallbackInnertubeResponse=function(){var l,D,U;return _.P(function(n){l=BF("CLOSE_POPUP");D={openPopupAction:NGc()};U={actions:[l,D]};return n.return(U)})};var ybc=function(l,D){this.JSC$17994_upliftPromise=l;this.store=D};
_.W=ybc.prototype;_.W.shouldPreferLocalResponse=function(l){var D=l.videoId,U;if(U=D)U=sf9(this.store.getState().entities,l.videoId);return U&&EpK(this.store.getState().entities,D)?EQK(this.store.getState().entities,l.playlistId):!1};
_.W.localInnertubeResponse=function(l){var D=this,U;return _.P(function(n){return(U=D.getPlayerResponse(l))?n.return(Promise.resolve(U)):n.return(Promise.reject(Error("Ri")))})};
_.W.canProvideFallbackResponse=function(l){return!!l.videoId};
_.W.localFallbackInnertubeResponse=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(D.JSC$17994_upliftPromise,2);U=D.getPlayerResponse(l);var y;U?y=n.return(Promise.resolve(U)):y=L7(D.store.getState().entities,l.videoId)?n.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.H6(_.C3("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:YvC()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
n.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.H6(_.C3("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:HQc()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return y})};
_.W.getPlayerResponse=function(l){return LPo(this.store.getState().entities,l.videoId)};var vI=function(l,D){this.localPlayerService=l;this.localWatchNextService=D};
vI.prototype.shouldPreferLocalResponse=function(l){var D=l.playerRequest;l=l.watchNextRequest;return!!(D&&this.localPlayerService.shouldPreferLocalResponse(D)&&l&&this.localWatchNextService.shouldPreferLocalResponse(l))};
vI.prototype.localInnertubeResponse=function(l){var D=this,U,n,y,A;return _.P(function(C){if(C.nextAddress==1){U=l.playerRequest;n=l.watchNextRequest;if(!U||!n)throw new _.rc("Missing streaming request",l);return C.yield(D.localPlayerService.localInnertubeResponse(U),2)}if(C.nextAddress!=3)return y=C.yieldResult,C.yield(D.localWatchNextService.localInnertubeResponse(n),3);A=C.yieldResult;return C.return({playerResponse:y,watchNextResponse:A})})};
vI.prototype.canProvideFallbackResponse=function(l){var D=l.playerRequest;l=l.watchNextRequest;return!!(D&&this.localPlayerService.canProvideFallbackResponse(D)&&l&&this.localWatchNextService.canProvideFallbackResponse(l))};
vI.prototype.localFallbackInnertubeResponse=function(l){var D=this,U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return U=l.playerRequest,n=l.watchNextRequest,U&&n?C.yield(D.localPlayerService.localFallbackInnertubeResponse(U),2):C.return(Promise.reject(new _.rc("Missing streaming request",l)));if(C.nextAddress!=3)return y=C.yieldResult,C.yield(D.localWatchNextService.localFallbackInnertubeResponse(n),3);A=C.yieldResult;return C.return({playerResponse:y,watchNextResponse:A})})};var bD=function(l){this.JSC$18004_persistentStorePromiseAccessor=l};
bD.prototype.shouldPreferLocalResponse=function(){return!1};
bD.prototype.localInnertubeResponse=function(){return _.P(function(l){return l.return(Promise.reject(Error("Si")))})};
bD.prototype.canProvideFallbackResponse=function(){return!0};
bD.prototype.localFallbackInnertubeResponse=function(){var l=this,D,U;return _.P(function(n){return n.nextAddress==1?n.yield(l.JSC$18004_persistentStorePromiseAccessor(),2):n.nextAddress!=3?(D=n.yieldResult)?n.yield(D.get("service:guide:fallback"),3):n.return(Promise.reject(Error("Ti"))):(U=n.yieldResult)&&_.TM(U)?n.return(TG$(_.TM(U))):n.return(Promise.reject(Error("Ui")))})};var Gh=function(){};
Gh.prototype.shouldPreferLocalResponse=function(){return!1};
Gh.prototype.localInnertubeResponse=function(){return _.P(function(l){return l.return(Promise.reject(Error("Vi")))})};
Gh.prototype.canProvideFallbackResponse=function(){return!0};
Gh.prototype.localFallbackInnertubeResponse=function(){var l,D,U;return _.P(function(n){l=BF("CLOSE_POPUP");D={openPopupAction:NGc()};U={actions:[l,D]};return n.return(U)})};var PI=function(){this.urlMap=w7H;this.fallbackCommand=_.zA};
PI.prototype.shouldPreferLocalResponse=function(l){return(l=l.url)?!!raW(this,l):!1};
PI.prototype.localInnertubeResponse=function(l){var D=this,U;return _.P(function(n){return(U=l.url)?n.return(zhr(l,raW(D,U))):n.return(Promise.reject(Error("Wi")))})};
PI.prototype.canProvideFallbackResponse=function(){return!0};
PI.prototype.localFallbackInnertubeResponse=function(l){var D=this,U,n,y,A,C,h,b;return _.P(function(u){U=l.url;if(!U)return u.return(zhr(l,D.fallbackCommand));if(n=raW(D,U))return u.return(zhr(l,n));y=void 0;A=_.kZ(U);A==="/watch"&&(C=_.ih(U,"v"))&&(b=(h=_.ih(U,"list"))!=null?h:void 0,y=_.Ie(C,b));y||(y=D.fallbackCommand);return u.return(zhr(l,y))})};
var raW=function(l,D){if(D)return l.urlMap[_.jG(D)]},zhr=function(l,D){D&&l.parentTrackingParams&&(D.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:l.parentTrackingParams}},D.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:D})};var gL=function(l,D,U){this.JSC$18015_upliftPromise=l;this.store=D;this.JSC$18015_persistentStorePromiseAccessor=U};
gL.prototype.shouldPreferLocalResponse=function(){return!1};
gL.prototype.localInnertubeResponse=function(){return _.P(function(l){return l.return(Promise.reject(Error("Xi")))})};
gL.prototype.canProvideFallbackResponse=function(){return!0};
gL.prototype.localFallbackInnertubeResponse=function(){var l=this;return _.P(function(D){return D.return(fUT(l))})};
var fUT=function(l){var D,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(Er(l.JSC$18015_upliftPromise,l.store),2);D=n.yieldResult;U={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[sM9(D)]}}}};return n.return($Gv(l,U))})},$Gv=function(l,D){var U,n;
return _.P(function(y){if(y.nextAddress==1)return y.yield(l.JSC$18015_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3)return U=y.yieldResult,y.yield(Iz(U),3);n=y.yieldResult;return y.return({responseContext:{},contents:D,topbar:n})})};var CE=function(l,D,U){this.JSC$18022_upliftPromise=l;this.store=D;this.JSC$18022_persistentStorePromiseAccessor=U};
CE.prototype.shouldPreferLocalResponse=function(l){var D=l.videoId;return D&&sf9(this.store.getState().entities,D)&&EpK(this.store.getState().entities,D)?EQK(this.store.getState().entities,l.playlistId):!1};
CE.prototype.localInnertubeResponse=function(l){var D=this,U,n;return _.P(function(y){if(y.nextAddress==1)return(U=l.videoId)?y.yield(D.JSC$18022_upliftPromise,2):y.return(Promise.reject(Error("Yi")));if(y.nextAddress!=3)return y.yield(Ne8(D,l,U),3);n=y.yieldResult;return y.return(sB$(D,n,U))})};
CE.prototype.canProvideFallbackResponse=function(l){return l.videoId?!0:!1};
CE.prototype.localFallbackInnertubeResponse=function(l){var D=this,U,n,y,A;return _.P(function(C){switch(C.nextAddress){case 1:return(U=l.videoId)?C.yield(D.JSC$18022_upliftPromise,2):C.return(Promise.reject(Error("Yi")));case 2:return C.yield(Ne8(D,l,U),3);case 3:n=C.yieldResult;if(L7(D.store.getState().entities,U)){C.jumpTo(4);break}return C.yield(Er(D.JSC$18022_upliftPromise,D.store),5);case 5:return y=C.yieldResult,C.return(Em$(n,y));case 4:return sf9(D.store.getState().entities,U)&&EpK(D.store.getState().entities,
U)?C.return(sB$(D,n,U)):(A={title:_.H6(_.C3("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:YvC()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},C.return(Em$(n,A)))}})};
var Ne8=function(l,D,U){var n,y,A,C,h;return _.P(function(b){if(b.nextAddress==1)return n=D.playlistId,y=_.Ie(U,n),b.yield(l.JSC$18022_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return A=b.yieldResult,b.yield(Iz(A),3);C=b.yieldResult;h={responseContext:{},currentVideoEndpoint:y,topbar:C};return b.return(h)})},sB$=function(l,D,U){if(l=L7(l.store.getState().entities,U)){var n;
U=l.videoEntity;var y,A={title:YS(U.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Ot((n=U.localizedStrings)==null?void 0:n.viewCount),viewCount:_.Ot((y=U.localizedStrings)==null?void 0:y.viewCount)}}};U.publishedTimestampMillis&&(A.dateText=_.Ot(gWC(new Date(Number(U.publishedTimestampMillis)))));n={videoPrimaryInfoRenderer:A};y=l.videoEntity;l=l.channelEntity;l={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:YS(_.C3("SHOW_MORE",void 0,"Show more")),
showLessText:YS(_.C3("SHOW_LESS",void 0,"Show less")),description:y.formattedDescription,owner:{videoOwnerRenderer:{title:YS(l.title),thumbnail:l.avatar}}}};D.contents={twoColumnWatchNextResults:{results:{results:{contents:[n,l]}}}}}return D},Em$=function(l,D){l.contents={singleColumnWatchNextResults:{results:{results:{contents:[sM9(D)]}}}};
return l};var uD=function(l,D,U){this.JSC$18027_upliftPromise=l;this.store=D;this.JSC$18027_persistentStorePromiseAccessor=U};
uD.prototype.shouldPreferLocalResponse=function(){return!1};
uD.prototype.localInnertubeResponse=function(){return _.P(function(l){return l.return(Promise.reject(Error("Zi")))})};
uD.prototype.canProvideFallbackResponse=function(){return!0};
uD.prototype.localFallbackInnertubeResponse=function(){var l=this,D,U,n,y;return _.P(function(A){switch(A.nextAddress){case 1:return A.yield(l.JSC$18027_persistentStorePromiseAccessor(),2);case 2:return D=A.yieldResult,A.yield(Iz(D),3);case 3:return U=A.yieldResult,n={responseContext:{},topbar:U},A.yield(l.JSC$18027_upliftPromise,4);case 4:return A.yield(Er(l.JSC$18027_upliftPromise,l.store),5);case 5:return y=A.yieldResult,n.watchStatus={backgroundPromoRenderer:y},A.return(n)}})};var TeT,IU5;_.pR=new _.A7("ENDPOINT_MAP");TeT=new _.A7("WATCH_ENDPOINT_MAP");IU5=new _.A7("REEL_ENDPOINT_MAP");var igC=/^[a-zA-Z0-9_\-]{11}$/;var ltN=_.ZR(function(){var l,D;return(D=(l=window).matchMedia)==null?void 0:D.call(l,"(prefers-reduced-motion: reduce)").matches});var H2H=_.ZR(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 l=_.UG("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");l||(l=_.SU("VIDEO"),_.vG("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
l));return!!(l&&l.canPlayType&&l.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var Yj2=XMLHttpRequest.prototype.fetch,O2P=Yj2&&Yj2.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!gb?!0:!1;var xU=function(l){this.JSC$18038_storeWithEntities=l};
_.Z(xU,UA);_.W=xU.prototype;_.W.getApiPaths=function(){return fFr};
_.W.getExtension=function(l){return _.M(l,_.za)||_.M(l,_.vk)||_.M(l,FP5)};
_.W.isNavigationCommand=function(){return!0};
_.W.JSC$14253_getStoreKey=function(l){if((_.q("kevlar_cache_on_ttl_player")||_.q("mweb_enable_shorts_innertube_player_prefetch")||_.q("mweb_use_new_history_manager")||_.q("web_shorts_prefetch_service_enabled"))&&(l=this.getExtension(l))&&l.videoId){var D={videoId:l.videoId};l.playlistId&&(D.playlistId=l.playlistId);l.playerParams&&(D.params=l.playerParams);return _.rV("player",D)}};
_.W.JSC$14246_getClientScreen=function(l){var D;return((D=l.contentPlaybackContext)==null?void 0:D.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.W.JSC$14246_buildRequest=function(l,D,U){if(_.q("enable_interstitial_entity_check")){var n=this.JSC$18038_storeWithEntities;if(D.videoId)for(var y=_.B(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),A=y.next();!A.done;A=y.next()){A=A.value;var C;var h=void 0,b=void 0,u=D.videoId,Q=A;(C=n)?(u=_.n7(u+Q,"interstitialInteractionStateEntity"),C=(h=(b=_.yT(C.getState().entities,"interstitialInteractionStateEntity",u))==null?void 0:b.primaryButtonClicked)!=null?h:!1):C=!1;if(C)switch(A){case "CONTENT_CHECK_REQUIRED":D.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":D.racyCheckOk=!0}}}D.videoId&&(l.videoId=D.videoId);D.playlistId&&(l.playlistId=D.playlistId);D.index!==void 0&&(l.playlistIndex=D.index+1);D.playerParams&&(l.params=D.playerParams);"startTimeSeconds"in D&&D.startTimeSeconds&&(_.q("enable_player_request_builder_start_time_floor")?l.startTimeSecs=Math.floor(D.startTimeSeconds):l.startTimeSecs=D.startTimeSeconds);U.contentPlaybackContext&&(l.playbackContext={contentPlaybackContext:U.contentPlaybackContext});U.prefetchPlaybackContext&&
(l.playbackContext=Object.assign({},l.playbackContext,{prefetchPlaybackContext:U.prefetchPlaybackContext}),l.context.request||(l.context.request={}),l.context.request.isPrefetch=!0);l.playbackContext||(l.playbackContext={});n=H2H();l.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!n,supportXhr:O2P};U.overrideMutedAtStart&&(l.overrideMutedAtStart=U.overrideMutedAtStart);l.racyCheckOk=!!D.racyCheckOk;l.contentCheckOk=!!D.contentCheckOk;!_.q("captions_prefs_killswitch")&&(U=(U=_.MN("yt-player-caption-language-preferences"))?
U:[],U==null?0:U.length)&&(l.captionParams={viewerSelectedCaptionLangs:U})};
_.W.getRequestConfig=function(l){l=this.JSC$14253_getStoreKey(l);var D;l&&(D={storeStrategy:{storeKey:l}});_.q("web_log_player_watch_next_ticks")&&(D=D||{},D.requestTick="ps_s",D.responseTick="ps_r");return D};
xU[Lt]=[Vd];var jE=function(l,D){this.playerRequestBuilder=l;this.watchNextRequestBuilder=D};
_.Z(jE,UA);jE.prototype.getApiPaths=function(){return dkm};
jE.prototype.getExtension=function(l){return _.M(l,_.za)};
jE.prototype.isNavigationCommand=function(){return!0};
jE.prototype.JSC$14246_buildRequest=function(l,D,U){l.playerRequest={};this.playerRequestBuilder.JSC$14246_buildRequest(l.playerRequest,D,U);_.q("web_streaming_watch")&&(l.watchNextRequest={},this.watchNextRequestBuilder.JSC$14246_buildRequest(l.watchNextRequest,D,U))};
jE[Lt]=[xU,Sb];var VrJ;_.Fl=new _.A7("SHORTS_CONTROLLER_TOKEN");VrJ=new _.A7("SHORTS_STATE_STORE_TOKEN");var o3=function(l,D){var U=_.EW.apply(2,arguments);l=l===void 0?0:l;_.rc.call(this,D,U);this.errorType=l;Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(o3,_.rc);var iwJ,ly8,DxJ,Wjo,cI,t7B,yAv,nT5,h3q,BsP,W7W;iwJ=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(l){return l+"="}).join("|"));
ly8=RegExp(".*\\?.*playnext=1.*");DxJ=function(l,D,U,n,y){this.watchEndpointMap=l;this.reelWatchEndpointMap=D;this.innerTubeTransportService=U;this.fetchPbj=n;this.reloadOnPlayerFailure=y===void 0?!0:y};
_.Uxq=function(l,D){var U=_.RG("web_pbj_log_warning_rate",0);U=U>0&&Math.random()<U;var n;if((n=_.M(D.commandMetadata,_.W6))==null||!n.rootVe)return U&&_.II(Error("dj")),!1;var y;n=(y=_.M(D.commandMetadata,_.W6))==null?void 0:y.url;if(!n)return U&&_.II(Error("ej")),!1;if(ly8.test(n))return!0;if(iwJ.test(n))return U&&_.II(Error("fj`"+n)),!1;if(_.M(D,_.za)){if(!(l.watchEndpointMap.watchNext&&l.watchEndpointMap.player||_.q("kevlar_fetch_initial_data_op_watch_client")))return U&&_.II(Error("$i")),!1;
l=_.RG("web_pbj_log_warning_rate",0);l=l>0&&Math.random()<l;_.M(D,_.za)?ODG(D)?D=!0:(l&&_.II(Error("aj")),D=!1):(l&&_.II(Error("$i")),D=!1);return D}if(_.M(D,_.vk))return V6l(D);if(_.M(D,_.DS))return!0;l=_.FE(l.innerTubeTransportService,D);!l&&U&&_.EU(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(D)});return l};
Wjo=function(l,D,U,n,y,A){D={url:D};if(U==null?0:U.itct)D.parentTrackingParams=U.itct;var C=_.T3(OGH);return _.BN(l.innerTubeTransportService,D,C).then(function(h){(h=h.endpoint)||(h=_.zA);(U==null?0:U.itct)&&h&&!h.trackingParams&&(h.trackingParams=U.itct);var b=gX(h);return cI(l,h,U,n,b,y,A)})};
cI=function(l,D,U,n,y,A,C,h){h=h===void 0?{}:h;if(l.fetchPbj&&!_.Uxq(l,D)&&!_.q("force_one_platform")){h=l.fetchPbj(D);var b=_.Ut(h.then(function(z){if(!z)throw Error("hj");C(b)||A(D,z);return z}));
return b}var u,Q,G={rootVe:(u=_.M(D.commandMetadata,_.W6))==null?void 0:u.rootVe,url:(Q=_.M(D.commandMetadata,_.W6))==null?void 0:Q.url,endpoint:D,page:y};if(_.M(D,_.za)){var J,L={contentPlaybackContext:_.iD(U,(J=_.M(D.commandMetadata,_.W6))==null?void 0:J.url,n)},R=_.wf();_.q("web_streaming_watch")&&window.TextDecoderStream?(h=tik(l.innerTubeTransportService,D,L,function(z){!G.response&&z.content&&(G.response=z.content);!G.playerResponse&&z.player&&(G.playerResponse=z.player);A(D,G)}),u=zR9(D),u.length&&
(G.preconnect=u,A(D,G)),nT5(h,R,G).catch(function(z){z instanceof o3&&z.errorType===2&&_.q("web_streaming_watch_fallback")&&yAv(l,D,L,G,A,C,R)})):yAv(l,D,L,G,A,C,R);
return R.promise}if(_.M(D,_.vk)){var a;if(((a=_.M(D,_.vk))==null?void 0:a.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var S=_.wf();_.AAJ(_.Jc().resolve(_.Fl),D).then(function(z){W7W(l,U,n,y,A,S,z)});
return S.promise}h=_.Ut();var d;u={contentPlaybackContext:_.iD(U,(d=_.M(D.commandMetadata,_.W6))==null?void 0:d.url,n)};(d=l.reelWatchEndpointMap.player)&&(d=d().JSC$14246_getRequest(D,u))&&(h=_.BN(l.innerTubeTransportService,d.innerTubeRequest,d.input,D.clickTrackingParams,d.config));d=_.Ut();(Q=l.reelWatchEndpointMap.reelItemWatch)&&(Q=Q().JSC$14246_getRequest(D))&&(d=_.BN(l.innerTubeTransportService,Q.innerTubeRequest,Q.input,D.clickTrackingParams,Q.config));Q=_.Ut();_.q("web_enable_delay_shorts_sequence_call_extra")&&
(Q=new _.X0(function(z){setTimeout(function(){z(void 0)},200)}));
(!_.q("web_enable_delay_shorts_sequence_call_new")||_.q("web_enable_delay_shorts_sequence_call_forget"))&&(J=l.reelWatchEndpointMap.reelWatchSequence)&&_.M(D,_.vk).sequenceParams&&(u=J().JSC$14246_getRequest(D,u))&&(_.q("web_enable_delay_shorts_sequence_call_forget")?_.BN(l.innerTubeTransportService,u.innerTubeRequest,u.input,D.clickTrackingParams,u.config):Q=_.BN(l.innerTubeTransportService,u.innerTubeRequest,u.input,D.clickTrackingParams,u.config));u=_.Ut(G);J=_.wf();BsP(D,u,h,d,Q,A,C,J);return J.promise}var c;
if(_.M(D,Ag_)&&((c=_.M(D.commandMetadata,_.W6))==null?0:c.url))return h=bG_(_.Dp(f2().location.href),_.Dp(_.M(D.commandMetadata,_.W6).url)).toString(),Wjo(l,h,U,n,A,function(){return!1});
if(_.M(D,_.DS))return A(D,G),_.Ut(G);if(_.FE(l.innerTubeTransportService,D)){h=Object.assign({},{tempData:U,disableCache:U.disableCache},h);var N=_.oL(l.innerTubeTransportService,D,h).then(function(z){G.response=z;C(N)||A(D,G);return G});
return N}return _.Ut(G)};
_.COq=function(l,D,U,n){if(_.M(D,_.za)||_.M(D,_.vk)&&(_.q("mweb_enable_shorts_innertube_player_prefetch")||_.q("kevlar_enable_shorts_prefetch_in_sequence"))||_.M(D,FP5)&&_.q("web_enable_prefetching_videos_on_home")){var y,A={contentPlaybackContext:_.iD(U,(y=_.M(D.commandMetadata,_.W6))==null?void 0:y.url,n),prefetchPlaybackContext:UbB(U)},C,h,b;if(((C=_.M(D,_.za))==null?void 0:(h=C.watchEndpointSupportedPrefetchConfig)==null?void 0:(b=h.prefetchHintConfig)==null?void 0:b.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(U=
l.watchEndpointMap.watchNext)if(A=U().JSC$14246_getRequest(D,A))return Promise.resolve(_.BN(l.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(G){return G}))}else if(U=l.watchEndpointMap.player)if(A=U().JSC$14246_getRequest(D,A))return Promise.resolve(_.BN(l.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(G){return G}))}else if(_.FE(l.innerTubeTransportService,D)){var u={tempData:U},Q=Rak(l.innerTubeTransportService,D);
return Q?new Promise(function(G,J){var L,R;return _.P(function(a){if(a.nextAddress==1)return a.yield(Q,2);if(a.nextAddress!=4)return L=a.yieldResult,L.JSC$14253_getStoreKey(D,u)?a.yield(_.oL(l.innerTubeTransportService,D,u),4):(J(new _.rc("Prefetching request builder with no store key.",D)),a.jumpTo(0));R=a.yieldResult;G(R);_.Kz(a)})}):Promise.reject(new _.rc("Prefetching unregistered request builder.",D))}return Promise.reject(new _.rc("No request builder available to prefetch endpoint.",D))};
t7B=function(l,D){var U,n,y;if(_.M(D,_.za)){var A=l.watchEndpointMap.watchNext;A&&(U=A());(l=l.watchEndpointMap.player)&&(n=l())}else if(_.M(D,_.vk))(A=l.reelWatchEndpointMap.reelItemWatch)&&(U=A()),(A=l.reelWatchEndpointMap.player)&&(n=A()),(l=l.reelWatchEndpointMap.reelWatchSequence)&&(y=l());else{a:{l=CYd(D,l.innerTubeTransportService.endpointMap);if(l!==void 0)if(typeof l.then==="function")_.EU(new _.rc("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",D));else break a;
l=void 0}l&&(U=l)}var C,h,b;return{content:(C=U)==null?void 0:C.JSC$14253_getStoreKey(D),player:(h=n)==null?void 0:h.JSC$14253_getStoreKey(D),reelSequence:(b=y)==null?void 0:b.JSC$14253_getStoreKey(D)}};
yAv=function(l,D,U,n,y,A,C){var h=_.Ut(),b=l.watchEndpointMap.player;_.q("web_streaming_player")&&(b=K0(jE));b&&(b=b().JSC$14246_getRequest(D,U))&&(h=_.BN(l.innerTubeTransportService,b.innerTubeRequest,b.input,D.clickTrackingParams,b.config));b=_.Ut();var u=l.watchEndpointMap.watchNext;u&&(U=u().JSC$14246_getRequest(D,U))&&(b=_.BN(l.innerTubeTransportService,U.innerTubeRequest,U.input,D.clickTrackingParams,U.config));n=_.Ut(n);h3q(l,D,n,h,b,y,A,C)};
nT5=function(l,D,U){var n;return _.P(function(y){if(y.nextAddress==1)return y.yield(l,2);_.q("web_streaming_watch_delay_200")||_.q("web_streaming_watch_delay_400")?(n=_.q("web_streaming_watch_delay_200")?200:400,setTimeout(function(){D.resolve(U)},n)):D.resolve(U);
_.Kz(y)})};
h3q=function(l,D,U,n,y,A,C,h){var b,u,Q,G,J;_.P(function(L){switch(L.nextAddress){case 1:return L.yield(U,2);case 2:b=L.yieldResult;if(C(h.promise))return h.resolve(b),L.return();A(D,b);u=zR9(D);if(!u.length){L.jumpTo(3);break}return L.yield(U,4);case 4:b.preconnect=u,A(D,b);case 3:return _.ZY(L,5),L.yield(n,7);case 7:Q=L.yieldResult;_.WG(L,6);break;case 5:return G=_.kF(L),h.reject(G),L.return();case 6:if(Q===void 0&&l.reloadOnPlayerFailure)return b.reload=!0,A(D,b),h.resolve(b),L.return();if(C(h.promise))return h.resolve(b),
L.return();b.playerResponse=Q;A(D,b);_.q("web_watch_stop_scheduler_on_player_response")&&tzm();_.ZY(L,8);return L.yield(y,10);case 10:J=L.yieldResult;_.WG(L,9);break;case 8:_.kF(L);case 9:if(J===void 0)return b.response={responseContext:{}},h.resolve(b),L.return();if(C(h.promise))return h.resolve(b),L.return();b.response=J;A(D,b);h.resolve(b);_.Kz(L)}})};
BsP=function(l,D,U,n,y,A,C,h){var b,u,Q,G,J,L;_.P(function(R){switch(R.nextAddress){case 1:return R.yield(D,2);case 2:b=R.yieldResult;if(C(h.promise))return h.resolve(b),R.return();A(l,b);u=zR9(l);if(!u.length){R.jumpTo(3);break}return R.yield(D,4);case 4:b.preconnect=u,A(l,b);case 3:return _.ZY(R,5),R.yield(U,7);case 7:Q=R.yieldResult;_.WG(R,6);break;case 5:return G=_.kF(R),h.reject(G),R.return();case 6:if(Q===void 0)return b.reload=!0,A(l,b),h.resolve(b),R.return();if(C(h.promise))return h.resolve(b),
R.return();b.playerResponse=Q;A(l,b);_.q("web_shorts_stop_scheduler_on_player_response")&&tzm();_.ZY(R,8);return R.yield(n,10);case 10:J=R.yieldResult;_.WG(R,9);break;case 8:_.kF(R);case 9:if(J===void 0)return b.response={responseContext:{}},h.resolve(b),R.return();if(C(h.promise))return h.resolve(b),R.return();b.response=J;A(l,b);_.ZY(R,11);return R.yield(y,13);case 13:L=R.yieldResult;_.WG(R,12);break;case 11:_.kF(R);case 12:if(C(h.promise))return h.resolve(b),R.return();L&&(b.reelWatchSequenceResponse=
L);A(l,b);h.resolve(b);_.Kz(R)}})};
W7W=function(l,D,U,n,y,A,C){var h,b,u,Q,G,J;_.P(function(L){if((h=C)==null||!h.replacementEndpoint)return A.reject(),L.return();b=C.replacementEndpoint;(u=_.M(b,_.vk))?(C.sequenceContinuation&&(u.sequenceParams=C.sequenceContinuation),Q=_.Jc().resolve(_.Fl),G=u.sequenceParams,POP(Q,b)&&delete u.sequenceParams,J=cI(l,b,D,U,n,y,function(){return!1}),J.then(function(R){return _.P(function(a){if(a.nextAddress==1)return bw$(Q,{reelWatchEndpoint:{sequenceParams:G}},R),a.yield(0,2);
A.resolve(R);_.Kz(a)})})):A.reject();
_.Kz(L)})};
DxJ[Lt]=[TeT,IU5,_.Ju,_.G8(Jwr)];var gT$=function(){var l=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return l.sequenceMap}}},Xak=function(l,D,U){var n,y=(n=D.config)==null?void 0:n.sequenceStrategy;
if(!y)return U();l.sequenceMap.has(y.sequenceKey)||l.sequenceMap.set(y.sequenceKey,[]);l=l.sequenceMap.get(y.sequenceKey);switch(y.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return ut8(l,D,U);case "REQUEST_SEQUENCE_TYPE_REPLACE":return vT2(l,D,U);default:throw new _.rc("Request could not be sequenced",D);}},ut8=function(l,D,U){var n,y,A;
return _.P(function(C){l.length>0?(y=l[l.length-1],n=y.responsePromise.then(function(){return U()})):n=U();
A={request:D,responsePromise:n};l.push(A);Qj2(l,A);return C.return(A.responsePromise)})},vT2=function(l,D,U){U=U();
if(l.length>0)for(var n=_.B(l),y=n.next();!y.done;y=n.next())y.value.responsePromise=U;var A={request:D,responsePromise:U};l.push(A);Qj2(l,A);return Promise.resolve().then(function(){return l.indexOf(A)>0?A.responsePromise.then(function(C){return Object.assign({},C,{sequenceMetaData:{skipProcessing:!0}})}):A.responsePromise})},Qj2=function(l,D){D.responsePromise.then(function(){var U=l.indexOf(D);
U>-1&&l.splice(U,1)})};var GC8=new _.A7("REQUEST_SEQUENCING");var wJ=function(){};
_.Z(wJ,UA);wJ.prototype.getApiPaths=function(){return[]};
wJ.prototype.getExtension=function(l){return _.M(l,Lmz)};
wJ.prototype.JSC$14246_buildRequest=function(l,D){l.recaptchaToken=D.recaptchaToken};
wJ.prototype.getApiUrl=function(){return"/das_captcha"};var rJ=function(){};
_.Z(rJ,UA);rJ.prototype.getApiPaths=function(){return OKm};
rJ.prototype.getExtension=function(l){return _.M(l,Opr)};
rJ.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.createBackstagePostParams&&(l.createBackstagePostParams=D.createBackstagePostParams);U.comment_text&&(l.commentText=U.comment_text);if(U.attached_video_id)l.videoAttachment={videoId:U.attached_video_id};else if(U.image_poll_options)l.pollAttachmentData={options:U.image_poll_options};else if(U.poll_options)l.pollAttachment={choices:U.poll_options};else if(U.quiz_options)l.quizAttachmentData={options:U.quiz_options};else if(U.image_blob_id)l.imageAttachment=
{encryptedBlobId:U.image_blob_id},U.source_video_id&&(l.imageAttachment.sourceExternalVideoId=U.source_video_id),U.image_preview_coordinates&&(l.imageAttachment.previewCoordinates=JSON.parse(U.image_preview_coordinates));else if(U.images_data)l.imagesAttachment={imagesData:U.images_data};else if(U.clip_external_video_id!==void 0||U.clip_offset_ms!==void 0||U.clip_duration_ms!==void 0){var n,y,A,C,h;l.clipAttachment={externalVideoId:(A=U.clip_external_video_id)!=null?A:"",offsetMs:(C=(n=U.clip_offset_ms)==
null?void 0:n.toString())!=null?C:"",durationMs:(h=(y=U.clip_duration_ms)==null?void 0:y.toString())!=null?h:""}}else U.shared_post_id&&(l.sharedPostAttachment={postId:U.shared_post_id});U.tagged_video_id&&(l.postCreationData={taggedVideoId:U.tagged_video_id});U.access_restrictions&&(typeof U.access_restrictions==="number"&&(D=U.access_restrictions,l.accessRestrictions={restriction:D!==1&&D===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof U.access_restrictions==="string"&&
(l.accessRestrictionsParams=U.access_restrictions));U.scheduled_publish_time_sec&&(l.scheduledPublishTimeSec=U.scheduled_publish_time_sec.toString())};var zR=function(){};
_.Z(zR,UA);zR.prototype.getApiPaths=function(){return yR7};
zR.prototype.getExtension=function(l){return _.M(l,I8_)};
zR.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.decorateMessageParams&&(l.params=D.decorateMessageParams);U.text&&(l.text=U.text)};var fR=function(){};
_.Z(fR,UA);fR.prototype.getApiPaths=function(){return mk8};
fR.prototype.getExtension=function(l){return _.M(l,V58)};
fR.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;U.video_id&&(l.videoId=U.video_id)};var $U=function(){};
_.Z($U,UA);$U.prototype.getApiPaths=function(){return k67};
$U.prototype.getExtension=function(l){return _.M(l,_.AJ)};
$U.prototype.JSC$14246_buildRequest=function(l,D,U){U.suggestions_query&&(l.input=U.suggestions_query)};var Nm=function(){};
_.Z(Nm,UA);Nm.prototype.getApiPaths=function(){return hly};
Nm.prototype.getExtension=function(l){return _.M(l,in7)};
Nm.prototype.JSC$14246_buildRequest=function(l,D,U){U.comment_text!==void 0&&(l.commentText=U.comment_text);U.scheduled_publish_time_sec&&(l.scheduledPublishTimeSec=U.scheduled_publish_time_sec.toString());l.updateBackstagePostParams=D.updateBackstagePostParams};var sq=function(){};
_.Z(sq,UA);sq.prototype.getApiPaths=function(){return wk};
sq.prototype.getExtension=function(l){return _.M(l,_.ko)};
sq.prototype.JSC$14246_buildRequest=function(l,D,U){U.formData&&(l.formData=U.formData);D.token?l.continuation=D.token:D.continuationTokenKey&&(U=_.EB().getState(),D=_.yT(U.entities,"continuationTokenEntity",D.continuationTokenKey))&&(l.continuation=String(D.continuationToken))};
var JA5=function(){};
_.Z(JA5,UA);_.W=JA5.prototype;_.W.getApiPaths=function(){return wk};
_.W.getExtension=function(l){return _.M(l,_.Pk)};
_.W.isNavigationCommand=function(){return!0};
_.W.JSC$14253_getStoreKey=function(l){if((l=this.getExtension(l))&&l.browseId){var D={browseId:l.browseId};l.browseEndpointContextSupportedConfigs&&(D.browseEndpointContextSupportedConfigs=JSON.stringify(l.browseEndpointContextSupportedConfigs));l.params&&(D.params=l.params);l.query&&(D.query=l.query);return _.rV("browse",D)}};
_.W.JSC$14246_buildRequest=function(l,D,U){D.browseId&&(l.browseId=D.browseId);D.params&&(l.params=D.params);D.query&&(l.query=D.query);U.formData?l.formData=U.formData:D.formData&&(l.formData=D.formData);D.browseId==="FEsubscriptions"&&_.bu().getFlag(155)&&(l.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");D.browseId==="SPaccount_playback"&&(U=_.bu(),l.formData||(l.formData={}),l.formData.accountSettingsFormData={flagCaptionsDefaultOff:U.getFlag(65),flagAutoCaptionsDefaultOn:U.getFlag(66),
flagDisableInlinePreview:U.getFlag(186),flagAudioDescriptionDefaultOn:U.getFlag(198)});if(D.browseId==="FEwhat_to_watch"){U=_.bu();var n=U.getFlag(196);U.getFlag(197)&&(l.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:n}}})}D.browseId==="FEwhat_to_watch"&&(D=_.bu().getFlag(186),l.inlineSettingStatus=D?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.W.getRequestConfig=function(l,D){D=D===void 0?{}:D;var U={};if(l=this.JSC$14253_getStoreKey(l,D))U.storeStrategy={storeKey:l,disableCache:D.disableCache};_.q("web_log_browse_ticks_ks")||(U.requestTick="br_s",U.responseTick="br_r");return U};var Eq=function(){};
_.Z(Eq,UA);Eq.prototype.getApiPaths=function(){return s5h};
Eq.prototype.getExtension=function(l){return _.M(l,Xyh)};
Eq.prototype.JSC$14246_buildRequest=function(l,D,U){l.legacyYoutubeChannelUsername=U.legacyYouTubeChannelUsername||"";l.legacyYoutubeChannelPassword=U.legacyYouTubeChannelPassword||""};var TR=function(){};
_.Z(TR,UA);TR.prototype.getApiPaths=function(){return Vuv};
TR.prototype.getExtension=function(l){return _.M(l,Wlm)};
TR.prototype.JSC$14246_buildRequest=function(l,D,U){U.recaptcha_response_token&&(l.recaptchaResponseToken=U.recaptcha_response_token);U.channel_id&&(l.channelId=U.channel_id)};var I3=function(){};
_.Z(I3,UA);I3.prototype.getApiPaths=function(){return Pi7};
I3.prototype.getExtension=function(l){return _.M(l,gAr)};
I3.prototype.JSC$14246_buildRequest=function(l,D,U){D.externalChannelId&&(l.externalChannelId=D.externalChannelId);U.handle&&(l.handleUpdate={handle:U.handle},D.handleEditSource&&(l.handleUpdate.handleEditSource=D.handleEditSource))};var HJ=function(){};
_.Z(HJ,UA);HJ.prototype.getApiPaths=function(){return vnz};
HJ.prototype.getExtension=function(l){return _.M(l,xfk)};
HJ.prototype.JSC$14246_buildRequest=function(l,D,U){D.request&&(l.channelId=D.request.channelId);var n;if(U==null?0:(n=U.uploadDefaults)==null?0:n.emojiReactionSet)l.uploadDefaultsRequest||(l.uploadDefaultsRequest={}),l.uploadDefaultsRequest.emojiReactionSet=U.uploadDefaults.emojiReactionSet};var YU=function(){};
_.Z(YU,UA);YU.prototype.getApiPaths=function(){return JPz};
YU.prototype.getExtension=function(l){return _.M(l,B7v)};
YU.prototype.JSC$14246_buildRequest=function(l,D,U){D.externalChannelId&&(l.externalChannelId=D.externalChannelId);D.channelHandleEntityKey&&(l.channelHandleEntityKey=D.channelHandleEntityKey);D.handleEditSource&&(l.handleEditSource=D.handleEditSource);U.handle?l.handle=U.handle:U.name&&(l.name=U.name)};var Oq=function(){};
_.Z(Oq,UA);Oq.prototype.getApiPaths=function(){return ID8};
Oq.prototype.getExtension=function(l){return _.M(l,XRk)};
Oq.prototype.JSC$14246_buildRequest=function(l,D){D.actions?l.actions=D.actions:D.action&&(l.actions=[D.action])};var Ve=function(){};
_.Z(Ve,UA);Ve.prototype.getApiPaths=function(){return HKy};
Ve.prototype.getExtension=function(l){return _.M(l,_.ko)};
Ve.prototype.JSC$14246_buildRequest=function(l,D){D.token&&(l.continuation=D.token)};var iE=function(){};
_.Z(iE,UA);iE.prototype.getApiPaths=function(){return ZG5};
iE.prototype.getExtension=function(l){return _.M(l,_.ko)};
iE.prototype.JSC$14246_buildRequest=function(l,D){l.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";D.token&&(l.fetchCommentsParams={continuation:D.token})};var lE=function(){};
_.Z(lE,UA);lE.prototype.getApiPaths=function(){return lF_};
lE.prototype.getExtension=function(l){return _.M(l,tPh)};
lE.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.createReplyParams&&(l.createReplyParams=D.createReplyParams);D.commentText&&(l.commentText=_.Nl(D.commentText));U.comment_text&&(l.commentText=U.comment_text);U.image_blob_id&&(l.imageAttachment={encryptedBlobId:U.image_blob_id});U.botguard_response&&(l.botguardResponse=U.botguard_response)};
_.QP.Object.defineProperties(lE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Dw=function(){};
_.Z(Dw,UA);Dw.prototype.getApiPaths=function(){return Dk5};
Dw.prototype.getExtension=function(l){return _.M(l,_.auh)};
Dw.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.createCommentParams&&(l.createCommentParams=D.createCommentParams);D.commentText&&(l.commentText=_.Nl(D.commentText));D.videoPositionMention&&(l.videoPositionMention=D.videoPositionMention);D.sources&&(l.sources=D.sources);U.comment_text&&(l.commentText=U.comment_text);U.attached_video_id?l.videoAttachment={videoId:U.attached_video_id}:U.poll_options?l.pollAttachment={choices:U.poll_options}:U.image_blob_id?l.imageAttachment=
{encryptedBlobId:U.image_blob_id}:U.shared_post_id&&(l.sharedPostAttachment={postId:U.shared_post_id});U.access_restrictions&&typeof U.access_restrictions==="number"&&(D=U.access_restrictions,l.accessRestrictions={restriction:D!==1&&D===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});U.botguard_response&&(l.botguardResponse=U.botguard_response)};
_.QP.Object.defineProperties(Dw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var U6=function(){};
_.Z(U6,UA);U6.prototype.getApiPaths=function(){return bxk};
U6.prototype.getExtension=function(l){return _.M(l,kW7)};
U6.prototype.JSC$14246_buildRequest=function(l,D,U){D.commentText&&(l.replyText=_.Nl(D.commentText));U.comment_text&&(l.replyText=U.comment_text);l.updateReplyParams=D.updateReplyParams};
_.QP.Object.defineProperties(U6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nH=function(){};
_.Z(nH,UA);nH.prototype.getApiPaths=function(){return gn5};
nH.prototype.getExtension=function(l){return _.M(l,SA7)};
nH.prototype.JSC$14246_buildRequest=function(l,D,U){D.commentText&&(l.commentText=_.Nl(D.commentText));U.comment_text&&(l.commentText=U.comment_text);l.updateCommentParams=D.updateCommentParams};
_.QP.Object.defineProperties(nH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var y9=function(){};
_.Z(y9,UA);y9.prototype.getApiPaths=function(){return u5m};
y9.prototype.getExtension=function(l){return _.M(l,df1)};
y9.prototype.JSC$14246_buildRequest=function(l,D){D.settings&&(l.settings=D.settings)};var A$=function(){};
_.Z(A$,UA);A$.prototype.getApiPaths=function(){return Qb7};
A$.prototype.getExtension=function(l){return _.M(l,CKh)};
A$.prototype.JSC$14246_buildRequest=function(l,D){D.channelCreationToken&&(l.channelCreationToken=D.channelCreationToken);D.source&&(l.source=D.source)};var W8=function(){};
_.Z(W8,UA);W8.prototype.getApiPaths=function(){return iG_};
W8.prototype.getExtension=function(l){return _.M(l,bn1)};
W8.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;if(U.name&&(U.given_name||U.family_name))l=new _.rc("channel creation cannot set both GAIA and YouTube names",D),_.EU(l);else{if(D.zeroStepChannelCreationParams){if(!U.comment_text){l=new _.rc("zero_step_create_comment_params but no zero_step_texts",D);_.EU(l);return}l.zeroStepChannelCreationParams=D.zeroStepChannelCreationParams;l.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(l.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
U.comment_text,U.botguard_response&&(l.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=U.botguard_response))}l.channelCreationToken=D.channelCreationToken;U.given_name&&(l.givenName=U.given_name);U.family_name&&(l.familyName=U.family_name);D.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(l.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(U.name||U.handle||U.avatar_url||U.encryptedBlobId||U.isNameChanged!==void 0||U.isHandleChanged!==void 0||U.isDefaultProfilePhoto!==
void 0||U.obakeImageSource)l.overrideChannelCreationParams={},U.name&&(l.overrideChannelCreationParams.name=U.name),U.handle&&(l.overrideChannelCreationParams.handle=U.handle),U.avatar_url&&(l.overrideChannelCreationParams.avatarUrl=U.avatar_url),U.encryptedBlobId&&(l.overrideChannelCreationParams.blobEncryptionId=U.encryptedBlobId),U.enableIdentityForAllChannelCreationDialog&&(U.encryptedBlobId?l.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
U.isDefaultProfilePhoto!==void 0&&(l.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=U.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),U.isNameChanged!==void 0&&(l.overrideChannelCreationParams.identityForAllChannelCreationNameTag=U.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),U.isHandleChanged!==
void 0&&(l.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=U.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),U.obakeImageSource&&(l.overrideChannelCreationParams.obakeImageSourceType=U.obakeImageSource))}};var B8=function(){};
_.Z(B8,UA);B8.prototype.getApiPaths=function(l){return(l=this.getExtension(l))&&l.status==="DISLIKE"?CT7:l&&l.status==="INDIFFERENT"?Ti1:xkm};
B8.prototype.getExtension=function(l){return _.M(l,_.kX)};
B8.prototype.JSC$14246_buildRequest=function(l,D){D.target&&(l.target=D.target);if(D=this.getParams(D))l.params=D};
B8.prototype.getParams=function(l){switch(l==null?void 0:l.status){case "DISLIKE":return l.dislikeParams;case "INDIFFERENT":return l.removeLikeParams;default:return l==null?void 0:l.likeParams}};var CH=function(){};
_.Z(CH,UA);CH.prototype.getApiPaths=function(){return nn7};
CH.prototype.getExtension=function(l){return _.M(l,joy)};
CH.prototype.JSC$14246_buildRequest=function(l,D){D.settingItemId&&(l.settingItemId=D.settingItemId);D.stringValue!=null&&D.stringValue!==void 0?l.newValue={stringValue:D.stringValue}:D.intValue?l.newValue={intValue:D.intValue}:D.boolValue!==null&&D.boolValue!==void 0?l.newValue={boolValue:D.boolValue}:(l=new _.rc("Unknown value type for SetSettingEndpoint.",D),_.EU(l))};var h$=function(){};
_.Z(h$,UA);h$.prototype.getApiPaths=function(){return Wh5};
h$.prototype.getExtension=function(l){return _.M(l,iuv)||void 0};
h$.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.channelIds&&(l.channelIds=D.channelIds);D.siloName&&(l.siloName=D.siloName);D.params&&(l.params=D.params);U.botguardResponse&&(l.botguardResponse=U.botguardResponse);U.feature&&(l.clientFeature=U.feature)};
_.QP.Object.defineProperties(h$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var P8=function(){};
_.Z(P8,UA);P8.prototype.getApiPaths=function(){return Civ};
P8.prototype.getExtension=function(l){return _.M(l,F4v)||void 0};
P8.prototype.JSC$14246_buildRequest=function(l,D){D.channelIds&&(l.channelIds=D.channelIds);D.siloName&&(l.siloName=D.siloName);D.params&&(l.params=D.params)};
_.QP.Object.defineProperties(P8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bE=function(l){this.shareClientParamsProvider=l};
_.Z(bE,UA);bE.prototype.getApiPaths=function(){return Osd};
bE.prototype.getExtension=function(l){return _.M(l,PaH)||_.M(l,_.b$g)||_.M(l,hZy)};
bE.prototype.JSC$14246_buildRequest=function(l,D){D.serializedShareEntity&&(l.serializedSharedEntity=D.serializedShareEntity);if(D.clientParamIdentifier){var U;if((U=this.shareClientParamsProvider)==null?0:U.clientParams.has(D.clientParamIdentifier)){U=this.shareClientParamsProvider;D=D.clientParamIdentifier;var n=U.clientParams.get(D);n&&U.clientParams.delete(D);l.clientParams=n}}};
bE[Lt]=[NH$];var uE=function(){};
_.Z(uE,UA);uE.prototype.getApiPaths=function(){return fD7};
uE.prototype.getExtension=function(l){return _.M(l,osy)};
uE.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var Q9=function(){};
_.Z(Q9,UA);Q9.prototype.getApiPaths=function(){return hq8};
Q9.prototype.getExtension=function(l){return _.M(l,xTy)};
Q9.prototype.JSC$14246_buildRequest=function(l,D){D.dismissal&&(l.items=[D.dismissal])};
_.QP.Object.defineProperties(Q9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var GJ=function(){};
_.Z(GJ,UA);GJ.prototype.getApiPaths=function(){return cRv};
GJ.prototype.getExtension=function(l){return _.M(l,_.mC)||void 0};
GJ.prototype.JSC$14246_buildRequest=function(l,D,U){l.feedbackTokens=[];D.feedbackToken&&l.feedbackTokens.push(D.feedbackToken);if(D=D.cpn||U.cpn)l.feedbackContext={cpn:D};l.isFeedbackTokenUnencrypted=!!U.is_feedback_token_unencrypted;l.shouldMerge=!1;U.extra_feedback_tokens&&(l.shouldMerge=!0,l.feedbackTokens=l.feedbackTokens.concat(U.extra_feedback_tokens))};
_.QP.Object.defineProperties(GJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var J$=function(){};
_.Z(J$,UA);J$.prototype.getApiPaths=function(){return cRv};
J$.prototype.getExtension=function(l){return _.M(l,_.AJ)};
J$.prototype.JSC$14246_buildRequest=function(l,D,U){U.feedback_tokens&&(l.feedbackTokens=U.feedback_tokens,l.shouldMerge=!0)};
_.QP.Object.defineProperties(J$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LH=function(){};
_.Z(LH,UA);LH.prototype.getApiPaths=function(){return cRv};
LH.prototype.getExtension=function(l){return _.M(l,QUo)};
LH.prototype.JSC$14246_buildRequest=function(l,D){D.undoToken&&(l.feedbackTokens=[D.undoToken]);D.isUndoTokenUnencrypted&&(l.isFeedbackTokenUnencrypted=D.isUndoTokenUnencrypted)};
_.QP.Object.defineProperties(LH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var t$=function(){};
_.Z(t$,UA);t$.prototype.getApiPaths=function(){return Lhm};
t$.prototype.getExtension=function(l){return _.M(l,KRg)};
t$.prototype.JSC$14246_buildRequest=function(l,D){D.nextEndpoint&&_.M(D.nextEndpoint,_.yE)?l.nextEndpoint={urlEndpoint:_.M(D.nextEndpoint,_.yE)}:D.nextEndpoint&&_.M(D.nextEndpoint,_.za)&&(l.nextEndpoint={watchEndpoint:_.M(D.nextEndpoint,_.za)});D.setRacy&&(l.setRacy=D.setRacy);D.setControvercy&&(l.setControvercy=D.setControvercy)};var XB=function(l){this.JSC$18239_storeWithEntities=l};
_.Z(XB,UA);XB.prototype.getApiPaths=function(){return bGg};
XB.prototype.getExtension=function(l){return _.M(l,yMk)};
XB.prototype.JSC$14246_buildRequest=function(l,D){D.flowId&&(l.flowId=D.flowId);D.targetId&&(l.targetId=D.targetId);D.continuation&&(l.continuation=D.continuation);var U=D.flowStateEntityKey;if(D.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&U&&this.JSC$18239_storeWithEntities){var n;if(D=(n=this.JSC$18239_storeWithEntities.getState())==null?void 0:n.entities)if(n=_.lQ(U).entityType,n=_.yT(D,n,U))l.flowState=n,l.flowStateEntityKey=U}};
_.QP.Object.defineProperties(XB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
XB[Lt]=[Vd];var L7r=function(){};
_.Z(L7r,UA);_.W=L7r.prototype;_.W.getApiPaths=function(){return Koh};
_.W.JSC$14253_getStoreKey=function(){return _.rV("guide")};
_.W.getRequestConfig=function(){var l=this.JSC$14253_getStoreKey(),D;l&&(D={storeStrategy:{storeKey:l}});return D};
_.W.isNavigationCommand=function(){return!0};
_.W.getExtension=function(l){return _.M(l,_.AJ)};
_.W.JSC$14246_buildRequest=function(l){l.fetchLiveState=!0};var SB=function(){};
_.Z(SB,UA);SB.prototype.getApiPaths=function(){return Edy};
SB.prototype.getExtension=function(l){return _.M(l,ZFm)};
SB.prototype.JSC$14246_buildRequest=function(){};var kc=function(){};
_.Z(kc,UA);kc.prototype.getApiPaths=function(){return TRm};
kc.prototype.getExtension=function(l){return _.M(l,ec_)};
kc.prototype.JSC$14246_buildRequest=function(){};var da=function(){};
_.Z(da,UA);da.prototype.getApiPaths=function(){return z51};
da.prototype.getExtension=function(l){return _.M(l,_.ko)};
da.prototype.JSC$14246_buildRequest=function(l,D){D.token&&(l.continuation=D.token);var U,n;l==null||(U=l.context)==null||(n=U.user)==null||delete n.onBehalfOfUser};
da.prototype.getRequestConfig=function(l){var D={},U;if(((U=this.getExtension(l))==null?void 0:U.sessionIndex)!==void 0){var n;D={authStrategy:{sessionIndex:(n=this.getExtension(l))==null?void 0:n.sessionIndex}}}return D};var KH=function(){};
_.Z(KH,UA);KH.prototype.JSC$14246_getRequest=function(l){var D=this.getExtension(l),U=l="";if(D==null?0:D.popup)l="true";if(D==null?0:D.disableSignout)U="true";D={};return{input:"/getAccountSwitcherEndpoint",requestShell:wV("/getAccountSwitcherEndpoint","GET",(D["X-YouTube-Delegation-Context"]=_.H3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),D["X-YouTube-Account-Switcher-Popup"]=l,D["X-YouTube-Account-Switcher-Disable-Signout"]=U,D)),innerTubeRequest:{}}};
KH.prototype.getApiPaths=function(){return[]};
KH.prototype.getExtension=function(l){return _.M(l,_.R4s)};
KH.prototype.JSC$14246_buildRequest=function(){};var c8=function(){};
_.Z(c8,UA);c8.prototype.JSC$14246_getRequest=function(l){var D="/cross_account_channel_transfer";(l=this.getExtension(l))&&(D=$AC(D,{target_session:l.targetSessionIndex,source_rapt:l.sourceRapt,rapt:l.targetRapt}));return{input:D,requestShell:wV(D,"GET"),innerTubeRequest:{}}};
c8.prototype.getApiPaths=function(){return[]};
c8.prototype.getExtension=function(l){return _.M(l,mcy)};
c8.prototype.JSC$14246_buildRequest=function(){};var pH=function(){};
_.Z(pH,UA);pH.prototype.getApiPaths=function(){return gRv};
pH.prototype.isNavigationCommand=function(){return!0};
pH.prototype.getExtension=function(l){return _.M(l,_.AJ)};
pH.prototype.JSC$14246_buildRequest=function(l){var D=_.bu().get("gsml","");D&&(l.safetyModeLockerObfuscatedGaiaId=D);l.userInterfaceTheme=_.pU(!0);_.xf()?l.deviceTheme="DEVICE_THEME_SELECTED":_.CTc()?l.deviceTheme="DEVICE_THEME_SUPPORTED":l.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var xc=function(){};
_.Z(xc,UA);xc.prototype.getApiPaths=function(){return z51};
xc.prototype.getExtension=function(l){return _.M(l,aO7)};
xc.prototype.JSC$14246_buildRequest=function(l,D){if(D&&D.requestType&&(l.requestType=D.requestType,D.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||D.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var U=D.nextUrl;U&&(_.sSc(U)||vS(U))&&(l.nextNavendpoint={urlEndpoint:{url:U}})}D&&D.channelSwitcherQuery&&(l.channelSwitcherQuery=D.channelSwitcherQuery);D&&D.triggerChannelCreation&&(l.triggerChannelCreation=D.triggerChannelCreation);var n;if(D==null?0:(n=D.contentOwnerConfig)==
null?0:n.externalContentOwnerId)l.contentOwnerConfig=D.contentOwnerConfig;l.callCircumstance=D&&D.requestType&&D.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var y,A;D=l==null?void 0:(y=l.context)==null?void 0:(A=y.user)==null?void 0:A.onBehalfOfUser;if(D!==void 0){l.obfuscatedSelectedGaiaId=D;var C,h;l==null||(C=l.context)==null||(h=C.user)==null||delete h.onBehalfOfUser}var b,u;if(y=l==null?void 0:(b=l.context)==null?void 0:(u=b.user)==null?
void 0:u.serializedDelegationContext)l.selectedSerializedDelegationContext=y};var jB=function(){};
_.Z(jB,UA);jB.prototype.getApiPaths=function(){return $Y_};
jB.prototype.getExtension=function(l){return _.M(l,gkz)};
jB.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var FB=function(){};
_.Z(FB,UA);FB.prototype.getApiPaths=function(){return VS8};
FB.prototype.getExtension=function(l){return _.M(l,_.e1g)};
FB.prototype.JSC$14246_buildRequest=function(l,D){if(D=D.createBroadcastRequest)l.useMasks=D.useMasks,l.broadcastType=D.broadcastType,l.broadcastSource=D.broadcastSource,l.broadcastMetadata=D.broadcastMetadata,l.broadcastMetadataMask=D.broadcastMetadataMask,l.videoMetadata=D.videoMetadata,l.videoMetadataMask=D.videoMetadataMask,l.liveChatSettingsUpdate=D.liveChatSettingsUpdate,l.liveChatSettingsUpdateMask=D.liveChatSettingsUpdateMask,l.cloneVideoId=D.cloneVideoId,l.cloneWithOverrides=D.cloneWithOverrides,
l.targetEntity=D.targetEntity,l.scheduledRedirectMetadata=D.scheduledRedirectMetadata};var ok=function(){};
_.Z(ok,UA);ok.prototype.getApiPaths=function(){return Uky};
ok.prototype.getExtension=function(l){return _.M(l,QZ8)};
ok.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.params&&(l.params=D.params);U.questionText&&(l.questionText=U.questionText);U.optionText&&U.optionText.length>0&&(l.optionText=U.optionText)};var wa=function(){};
_.Z(wa,UA);wa.prototype.getApiPaths=function(){return ARz};
wa.prototype.getExtension=function(l){return _.M(l,ur_)};
wa.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var ra=function(){};
_.Z(ra,UA);ra.prototype.getApiPaths=function(){return JR7};
ra.prototype.getExtension=function(l){return _.M(l,hr1)};
ra.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var zJ=function(){};
_.Z(zJ,UA);zJ.prototype.getApiPaths=function(){return qDk};
zJ.prototype.getExtension=function(l){return _.M(l,Pcy)};
zJ.prototype.JSC$14246_buildRequest=function(l,D,U){D.params&&(l.params=D.params);D.continuation&&(l.continuation=D.continuation);U.currentPlayerState&&U.currentPlayerState.playerOffsetMs&&(l.currentPlayerState={playerOffsetMs:U.currentPlayerState.playerOffsetMs.toString()})};var fH=function(){};
_.Z(fH,UA);fH.prototype.getApiPaths=function(){return Mug};
fH.prototype.getExtension=function(l){return _.M(l,Cc8)};
fH.prototype.JSC$14246_buildRequest=function(l,D,U){D.params&&(l.params=D.params);U.continuation&&(l.continuation=U.continuation);"hidden"in U&&(l.webClientInfo={isDocumentHidden:U.hidden});U.isInvalidationTimeoutRequest&&(l.isInvalidationTimeoutRequest=U.isInvalidationTimeoutRequest);U.invalidationPayload&&(D=B3H(_.Oc(Qy(U.invalidationPayload))),l.invalidationPayloadLastPublishAtUsec=me(D,2));U.reloadActionPanel&&(l.reloadActionPanel=U.reloadActionPanel);U.fullReload&&(l.fullReload=U.fullReload);
U.currentPlayerState&&(l.currentPlayerState=U.currentPlayerState)};var $c=function(){};
_.Z($c,UA);$c.prototype.getApiPaths=function(){return jb1};
$c.prototype.getExtension=function(l){return _.M(l,vMk)};
$c.prototype.JSC$14246_buildRequest=function(l,D){l.params=D.params};var N_=function(){};
_.Z(N_,UA);N_.prototype.getApiPaths=function(){return Lok};
N_.prototype.getExtension=function(l){return _.M(l,S07)};
N_.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var s6=function(){};
_.Z(s6,UA);s6.prototype.getApiPaths=function(){return Rq1};
s6.prototype.getExtension=function(l){return _.M(l,k9y)};
s6.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var E6=function(){};
_.Z(E6,UA);E6.prototype.getApiPaths=function(){return FoH};
E6.prototype.getExtension=function(l){return _.M(l,GAk)};
E6.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var TJ=function(){};
_.Z(TJ,UA);TJ.prototype.getApiPaths=function(){return wf1};
TJ.prototype.getExtension=function(l){return _.M(l,Jxv)};
TJ.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var Ik=function(){};
_.Z(Ik,UA);Ik.prototype.getApiPaths=function(){return IF7};
Ik.prototype.getExtension=function(l){return _.M(l,Q4y)};
Ik.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var H8=function(){};
_.Z(H8,UA);H8.prototype.getApiPaths=function(){return D4y};
H8.prototype.getExtension=function(l){return _.M(l,_.Lzr)};
H8.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.params&&(l.params=D.params);U.client_message_id&&(l.clientMessageId=U.client_message_id);U.recaptcha_token&&(l.recaptchaToken=U.recaptcha_token);U.rich_message&&U.rich_message.text_segments?(D=U.rich_message.text_segments.map(function(n){var y={};n.text&&(y.text=n.text);n.emoji_id&&(y.emojiId=n.emoji_id);return y}),l.richMessage={textSegments:D}):U.message&&(l.message=U.message);
U.currentPlayerState&&(l.currentPlayerState=U.currentPlayerState)};var Yc=function(){};
_.Z(Yc,UA);Yc.prototype.getApiPaths=function(){return U4H};
Yc.prototype.getExtension=function(l){return _.M(l,qQ_)};
Yc.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var O6=function(){};
_.Z(O6,UA);O6.prototype.getApiPaths=function(){return Bpm};
O6.prototype.getExtension=function(l){return _.M(l,Rry)};
O6.prototype.JSC$14246_buildRequest=function(l,D,U){D.isUserInitiated&&(l.isUserInitiated=D.isUserInitiated);D.initiationSource&&(l.initiationSource=D.initiationSource);U.locationInfo&&(l.context.client.locationInfo=U.locationInfo)};var V9=function(){};
_.Z(V9,UA);V9.prototype.getApiPaths=function(){return oRm};
V9.prototype.getExtension=function(l){return _.M(l,mjm)};
V9.prototype.JSC$14246_buildRequest=function(l,D,U){D.metadataUpdateRequest&&(D=D.metadataUpdateRequest,l.encryptedVideoId=D.encryptedVideoId,D.liveChat&&(D=D.liveChat,l.liveChat||(l.liveChat={}),D.performAsExternalChannelId&&(l.liveChat.performAsExternalChannelId=D.performAsExternalChannelId),D.source&&(l.liveChat.source=D.source)));var n;if(U==null?0:(n=U.liveChat)==null?0:n.liveChatSettings)l.liveChat||(l.liveChat={}),U=U.liveChat.liveChatSettings,l.liveChat.newLiveChatSettings=U,l.liveChat.newLiveChatSettingsMask||
(l.liveChat.newLiveChatSettingsMask={}),U.emojiReactionSet&&(l.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var iM=function(){};
_.Z(iM,UA);iM.prototype.getApiPaths=function(){return Giz};
iM.prototype.getExtension=function(l){return _.M(l,_.oW1)};
iM.prototype.JSC$14246_buildRequest=function(l,D,U){U.continuation?l.continuation=U.continuation:D.videoId&&(l.videoId=D.videoId);U.clientParams&&(l.clientParams=U.clientParams)};var lM=function(){};
_.Z(lM,UA);lM.prototype.getApiPaths=function(){return ZG5};
lM.prototype.getExtension=function(l){return _.M(l,_.ic)};
lM.prototype.JSC$14246_buildRequest=function(l,D){l.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";l.fetchCommentsParams={};D.videoId&&(l.fetchCommentsParams.encryptedVideoId=D.videoId);D.postId&&(l.fetchCommentsParams.postId=D.postId);D.externalChannelId&&(l.fetchCommentsParams.externalChannelId=D.externalChannelId);D.linkedCommentId&&(l.fetchCommentsParams.linkedCommentId=D.linkedCommentId);(0,_.we.isEmpty)(l.fetchCommentsParams)&&delete l.fetchCommentsParams};var D_=function(){};
_.Z(D_,UA);D_.prototype.getApiPaths=function(){return wk};
D_.prototype.JSC$14246_buildRequest=function(l){l.browseId="FEnotifications_inbox"};
D_.prototype.getExtension=function(l){return _.M(l,_.AJ)};var UH=function(){};
_.Z(UH,UA);UH.prototype.getApiPaths=function(){return ZG5};
UH.prototype.JSC$14246_buildRequest=function(l,D){D.signal==="GET_NOTIFICATIONS_MENU"&&(l.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");D.ctoken&&(l.ctoken=D.ctoken)};
var qd$=function(){};
_.Z(qd$,UH);qd$.prototype.getExtension=function(l){return _.M(l,_.AJ)};
var MUw=function(){};
_.Z(MUw,UH);MUw.prototype.getExtension=function(l){return _.M(l,SCh)};var n1=function(){};
_.Z(n1,UA);n1.prototype.getApiPaths=function(){return SDk};
n1.prototype.getExtension=function(l){return _.M(l,_.AJ)};
n1.prototype.JSC$14246_buildRequest=function(){};var Ap=function(){};
_.Z(Ap,UA);Ap.prototype.getApiPaths=function(){return rRy};
Ap.prototype.getExtension=function(l){return _.M(l,cKz)||void 0};
Ap.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params);D.secondaryParams&&(l.secondaryParams=D.secondaryParams)};var Wa=function(){};
_.Z(Wa,UA);Wa.prototype.getApiPaths=function(){return zq7};
Wa.prototype.getExtension=function(l){return _.M(l,uuv)};
Wa.prototype.JSC$14246_buildRequest=function(l,D){D.undo&&(l.undo=D.undo);D.serializedOptOut&&(l.serializedOptOut=D.serializedOptOut);D.serializedRecordInteractionsRequest&&(l.serializedRecordInteractionsRequest=D.serializedRecordInteractionsRequest)};var Ba=function(){};
_.Z(Ba,UA);Ba.prototype.getApiPaths=function(){return Nik};
Ba.prototype.getExtension=function(l){return _.M(l,vk7)};
Ba.prototype.JSC$14246_buildRequest=function(l,D){D.serializedInteractionsRequest&&(l.serializedRecordNotificationInteractionsRequest=D.serializedInteractionsRequest)};var C1=function(){};
_.Z(C1,UA);C1.prototype.getApiPaths=function(){return VoB};
C1.prototype.getExtension=function(l){return _.M(l,_.f0)};
C1.prototype.JSC$14246_buildRequest=function(l,D,U){D=D===void 0?{}:D;U=U===void 0?{}:U;D.videoId?l.videoId=D.videoId:D.playlistId&&(l.playlistId=D.playlistId);var n;l.crossDeviceDownloadData={isCrossDeviceDownload:(n=D.isCrossDeviceDownload)!=null?n:!1};!U.downloadToMobileEduShown&&D.isCrossDeviceDownload&&(l.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var y;if(n=(y=D.offlineWebClientEligibility)!=null?y:U.offlineWebClientEligibility)l.offlineWebClientEligibility=n;var A;if(y=(A=D.preferredFormatType)!=
null?A:U.preferredFormatType)l.preferredFormatType=y;var C;if(A=(C=D.lastOfflineQualitySettingsSavedMs)!=null?C:U.lastOfflineQualitySettingsSavedMs)l.lastOfflineQualitySettingsSavedMs=A;D.params&&(l.params=D.params)};var hp=function(){};
_.Z(hp,UA);hp.prototype.getApiPaths=function(){return q3};
hp.prototype.getExtension=function(l){return _.M(l,_.ko)};
hp.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.token&&(l.continuation=D.token);U.formData&&(l.formData=U.formData)};var Pa=function(){};
_.Z(Pa,UA);Pa.prototype.getApiPaths=function(){return q3};
Pa.prototype.getExtension=function(l){return _.M(l,Lt7)};
Pa.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;l.continuation=U.continuation};var bM=function(){};
_.Z(bM,UA);bM.prototype.getApiPaths=function(){return q3};
bM.prototype.getExtension=function(l){return _.M(l,_.ea)};
bM.prototype.JSC$14246_buildRequest=function(l,D){var U,n=D.panelIdentifier||((U=D.identifier)==null?void 0:U.tag);n&&(l.panelId=n);var y;if((y=D.globalConfiguration)==null?0:y.params){var A;l.params=(A=D.globalConfiguration)==null?void 0:A.params}if(_.q("enable_ai_companion")){var C;D=D.engagementPanelExtras;if(D==null?0:(C=D.aiCompanionPanelExtras)==null?0:C.includeClientConversationId){var h,b;C=(b=(h=_.Jc().resolve(_.G8(lUH)))==null?void 0:h("conversations"))==null?void 0:b.get("conversation_id")}else C=
void 0;if(h=C)l.formData=Object.assign({},l.formData,{inputComposerFormData:{conversationId:h}})}};
_.QP.Object.defineProperties(bM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gd=function(){};
_.Z(gd,UA);gd.prototype.getApiPaths=function(){return q3};
gd.prototype.getExtension=function(l){return _.M(l,nOz)};
gd.prototype.JSC$14246_buildRequest=function(l,D){D.panelLoadingStrategy&&n5g(l,D.panelLoadingStrategy)};var uM=function(){};
_.Z(uM,UA);uM.prototype.getApiPaths=function(){return q3};
uM.prototype.getExtension=function(l){return _.M(l,a81)};
uM.prototype.JSC$14246_buildRequest=function(l,D){D.loadingStrategy&&n5g(l,D.loadingStrategy)};var va=function(){};
_.Z(va,UA);va.prototype.getApiPaths=function(){return q3};
va.prototype.getExtension=function(l){return _.M(l,_.Qs)};
va.prototype.JSC$14246_buildRequest=function(l,D){D.panelLoadingStrategy&&n5g(l,D.panelLoadingStrategy)};var Qt=function(){};
_.Z(Qt,UA);Qt.prototype.getApiPaths=function(){return q3};
Qt.prototype.getExtension=function(l){return _.M(l,ty1)};
Qt.prototype.JSC$14246_buildRequest=function(l,D){var U,n=(U=D.contentSourcePanelIdentifier)==null?void 0:U.tag;n&&(l.panelId=n);var y;if((y=D.globalConfiguration)==null?0:y.params){var A;l.params=(A=D.globalConfiguration)==null?void 0:A.params}};var G0=function(){};
_.Z(G0,UA);G0.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
G0.prototype.getExtension=function(l){return _.M(l,XOv)};
G0.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var Jp=function(){};
_.Z(Jp,UA);Jp.prototype.getApiPaths=function(){return QWz};
Jp.prototype.getExtension=function(l){return _.M(l,dO_)};
Jp.prototype.JSC$14246_buildRequest=function(l,D){D.externalChannelId&&(l.externalChannelId=D.externalChannelId);D.superChatAction&&(l.superChatAction=D.superChatAction);D.superStickersAction&&(l.superStickersAction=D.superStickersAction)};var L1=function(){};
_.Z(L1,UA);L1.prototype.getApiPaths=function(){return uDH};
L1.prototype.getExtension=function(l){return _.M(l,Rcy)||_.M(l,KI9)};
L1.prototype.JSC$14246_buildRequest=function(l,D){D.videoIds?l.videoIds=D.videoIds:D.videoId&&(l.videoIds=[D.videoId]);D.playlistId&&(l.playlistId=D.playlistId);D.params&&(l.params=D.params);l.excludeWatchLater=!1};var qo=function(){};
_.Z(qo,UA);qo.prototype.getApiPaths=function(){return nRm};
qo.prototype.getExtension=function(l){return _.M(l,_.Bq)};
qo.prototype.JSC$14246_buildRequest=function(l,D,U){U.create_playlist_title?l.title=U.create_playlist_title:D.title&&(l.title=D.title);if(U.create_playlist_privacy_status&&typeof U.create_playlist_privacy_status==="number"){a:{var n=U.create_playlist_privacy_status;if(n!==0){if(n===1){n="PUBLIC";break a}if(n===2){n="UNLISTED";break a}}n="PRIVATE"}l.privacyStatus=n}else D.privacyStatus&&(l.privacyStatus=D.privacyStatus);U.create_playlist_description&&(l.description=U.create_playlist_description);D.videoIds&&
(l.videoIds=D.videoIds);D.params&&(l.params=D.params);D.sourcePlaylistId&&(l.sourcePlaylistId=D.sourcePlaylistId)};var Mo=function(){};
_.Z(Mo,UA);Mo.prototype.getApiPaths=function(){return Wo8};
Mo.prototype.getExtension=function(l){return _.M(l,d28)};
Mo.prototype.JSC$14246_buildRequest=function(l,D){l.playlistId=D.playlistId};var RE=function(){};
_.Z(RE,UA);RE.prototype.getApiPaths=function(){return eq7};
RE.prototype.getExtension=function(l){return _.M(l,B9v)};
RE.prototype.JSC$14246_buildRequest=function(l,D){D.playlistId&&(l.playlistId=D.playlistId);D.params&&(l.params=D.params)};var Z_=function(){};
_.Z(Z_,UA);Z_.prototype.getApiPaths=function(){return $kv};
Z_.prototype.getExtension=function(l){return _.M(l,_.lc)||void 0};
Z_.prototype.JSC$14246_buildRequest=function(l,D){D.actions&&(l.actions=D.actions);D.params&&(l.params=D.params);D.playlistId&&(l.playlistId=D.playlistId)};var ei=function(){};
_.Z(ei,UA);_.W=ei.prototype;_.W.getApiPaths=function(){return sby};
_.W.getExtension=function(l){return _.M(l,_.vk)};
_.W.JSC$14246_buildRequest=function(l,D){D.videoId&&(l.playerRequest={videoId:D.videoId},D.playerParams&&(l.playerRequest.params=D.playerParams),D.racyCheckOk&&(l.playerRequest.racyCheckOk=!!D.racyCheckOk),D.contentCheckOk&&(l.playerRequest.contentCheckOk=!!D.contentCheckOk));D.params&&(l.params=D.params);D.inputType&&(l.inputType=D.inputType);l.disablePlayerResponse=!0};
_.W.getRequestConfig=function(l){var D;(l=this.JSC$14253_getStoreKey(l))&&(D={storeStrategy:{storeKey:l}});_.q("web_log_reels_ticks")&&(D=D||{},D.requestTick="r_wrs",D.responseTick="r_wrr");return D};
_.W.JSC$14253_getStoreKey=function(l){l=this.getExtension(l);if(l!=null&&l.videoId){var D={videoId:l.videoId};l.params&&(D.params=l.params);return _.rV("reel_item_watch",D)}};var mx=function(){};
_.Z(mx,UA);_.W=mx.prototype;_.W.getApiPaths=function(){return ERk};
_.W.getExtension=function(l){return _.M(l,_.vk)};
_.W.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;l.sequenceParams=D.sequenceParams;var n;((n=U)==null?0:n.contentPlaybackContext)&&_.q("web_shorts_prefetch_service_enabled")&&(l.playbackContext={contentPlaybackContext:U.contentPlaybackContext})};
_.W.JSC$14253_getStoreKey=function(l){if(_.q("shorts_controller_retrieve_seedless_sequence_v2")&&(l=this.getExtension(l),l==null?0:l.sequenceParams))return _.rV("reel_watch_sequence",{sequenceParams:l.sequenceParams})};
_.W.getRequestConfig=function(l){l=this.JSC$14253_getStoreKey(l);var D;l&&(D={storeStrategy:{storeKey:l}});D=D||{};D.requestTick="r_wsrs";D.responseTick="r_wsrr";D.processorTick="r_wsrp";return D};
var aE=function(){};
_.Z(aE,UA);aE.prototype.getApiPaths=function(){return ERk};
aE.prototype.getExtension=function(l){return _.M(l,_.ko)};
aE.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.token&&(l.continuation=D.token);var n;((n=U)==null?0:n.contentPlaybackContext)&&_.q("web_shorts_prefetch_service_enabled")&&(l.playbackContext={contentPlaybackContext:U.contentPlaybackContext})};
aE.prototype.getRequestConfig=function(l){l=this.JSC$14253_getStoreKey(l);var D;l&&(D={storeStrategy:{storeKey:l}});D=D||{};D.requestTick="r_wsrs";D.responseTick="r_wsrr";D.processorTick="r_wsrp";return D};var tp=function(){};
_.Z(tp,UA);tp.prototype.getApiPaths=function(){return PTH};
tp.prototype.getExtension=function(l){return _.M(l,_.D$y)};
tp.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.flagAction&&(l.action=D.flagAction);D.flagRequestType&&(l.flagRequestType=D.flagRequestType);D.additionalDetailCheckboxChecked&&(l.additionalDetailCheckboxChecked=D.additionalDetailCheckboxChecked);D.legalCheckboxChecked&&(l.legalCheckboxChecked=D.legalCheckboxChecked);D={};U.flag_issue_type!==void 0&&(D.issue=U.flag_issue_type);U.flag_affiliation!==void 0&&(D.affiliation=U.flag_affiliation);U.flag_full_name&&(D.fullName=U.flag_full_name);
Object.keys(D).length&&(l.legalReportDetails=D);if(U.flag_description||U.text)l.userComments=U.flag_description||U.text;D={};U.minutes!==void 0&&U.seconds!==void 0&&(D.minutes=U.minutes,D.seconds=U.seconds);U.vss_id&&(D.vssId=U.vss_id);Object.keys(D).length&&(l.videoReportDetails=D);D={};U.video_ids&&(D.videoIds=U.video_ids);U.impersonated_channel_url&&(D.impersonatedChannelUrl=U.impersonated_channel_url);Object.keys(D).length&&(l.channelAbuseReportDetails=D)};
_.QP.Object.defineProperties(tp.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Xq=function(){};
_.Z(Xq,UA);Xq.prototype.getApiPaths=function(){return G61};
Xq.prototype.getExtension=function(l){return _.M(l,kdh)};
Xq.prototype.JSC$14246_buildRequest=function(l,D){D.blockedForKidsContent&&(l.blockedForKidsContent=D.blockedForKidsContent)};var Si=function(){};
_.Z(Si,UA);Si.prototype.getApiPaths=function(){return HGm};
Si.prototype.getExtension=function(l){return _.M(l,dXK)};
Si.prototype.JSC$14246_buildRequest=function(l,D,U){l.params=D.params;U.impersonated_channel_url&&(l.impersonatedChannelUrl=U.impersonated_channel_url)};var kl=function(){};
_.Z(kl,UA);kl.prototype.getApiPaths=function(){return pfg};
kl.prototype.getExtension=function(l){return _.M(l,_.d$k)};
kl.prototype.JSC$14246_buildRequest=function(l,D){D.items&&(l.items=D.items);D.kidGaiaId&&(l.kidGaiaId=D.kidGaiaId)};var dd=function(){};
_.Z(dd,UA);dd.prototype.getApiPaths=function(){return vR7};
dd.prototype.getExtension=function(l){return _.M(l,_.L45)};
dd.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params);D.targetId&&(l.targetId=D.targetId)};var K1=function(){};
_.Z(K1,UA);K1.prototype.getApiPaths=function(){return ixy};
K1.prototype.getExtension=function(l){return _.M(l,k27)};
K1.prototype.JSC$14246_buildRequest=function(l,D){D.externalVideoId&&(l.externalVideoId=D.externalVideoId);D.query&&(l.query=D.query);D.sourceTimelines&&(l.sourceTimelines=D.sourceTimelines)};var ca=function(){};
_.Z(ca,UA);ca.prototype.getApiPaths=function(){return lcy};
ca.prototype.getExtension=function(l){return _.M(l,_.ko)||void 0};
ca.prototype.JSC$14246_buildRequest=function(l,D){D.token&&(l.continuation=D.token)};
_.R3T=function(){};
_.Z(_.R3T,UA);_.W=_.R3T.prototype;_.W.getApiPaths=function(){return lcy};
_.W.getExtension=function(l){return _.M(l,_.bV)||void 0};
_.W.isNavigationCommand=function(){return!0};
_.W.JSC$14253_getStoreKey=function(l,D){D=D===void 0?{}:D;if(!D.disableCache&&(l=this.getExtension(l))&&l.query)return D={query:l.query},l.params&&(D.params=l.params),_.rV("search",D)};
_.W.JSC$14246_buildRequest=function(l,D,U){D.query&&(l.query=D.query);D.params&&(l.params=D.params);if(!_.q("web_forward_suggest_stats_killswitch")){var n=_.M(D,l8m);n&&(l.suggestStats=n)}var y;!_.q("kevlar_searchbox_stats_killswitch")&&((y=U.tempData)==null?0:y.gs_l)&&!_.M(D,l8m)&&(l.webSearchboxStatsUrl="/search?oq="+(U.tempData.oq||"")+"&gs_l="+U.tempData.gs_l);var A;if((A=U.tempData)==null?0:A.entityMid)D=l.suggestionSearchParams||{},D.entityMid=U.tempData.entityMid,l.suggestionSearchParams=D;
if(_.q("enable_desktop_vdcbg_components")||_.q("enable_inline_muted_playback_on_web_search"))D=_.bu().getFlag(186),l.inlineSettingStatus=D?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";U.isFromShorts&&(l.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.W.getRequestConfig=function(l,D){D=D===void 0?{}:D;l=this.JSC$14253_getStoreKey(l,D);var U;l&&(U={storeStrategy:{storeKey:l}});_.q("web_log_search_ticks_ks")||(U=U||{},U.requestTick="sr_s",U.responseTick="sr_r");return U};var p1=function(){};
_.Z(p1,UA);p1.prototype.getApiPaths=function(){return tu7};
p1.prototype.getExtension=function(l){return _.M(l,$2y)};
p1.prototype.JSC$14246_buildRequest=function(l,D){D.serializedGetSharingProviderDataParams&&(l.serializedGetSharingProviderDataParams=D.serializedGetSharingProviderDataParams)};var xl=function(){};
_.Z(xl,UA);xl.prototype.getApiPaths=function(){return Xfk};
xl.prototype.getExtension=function(l){return _.M(l,YC7)};
xl.prototype.JSC$14246_buildRequest=function(l,D){D.endpoint&&(l.endpoint=D.endpoint);D.action&&(l.action=D.action)};var ji=function(){};
_.Z(ji,UA);ji.prototype.getApiPaths=function(){return Biy};
ji.prototype.getExtension=function(l){return _.M(l,K4y)};
ji.prototype.JSC$14246_buildRequest=function(l,D){l.videoId=D.videoId;D.scheduledRedirectMetadataSourceVideoId&&(l.scheduledRedirectMetadata={sourceVideoId:D.scheduledRedirectMetadataSourceVideoId})};var Fq=function(){};
_.Z(Fq,UA);Fq.prototype.getApiPaths=function(){return yP_};
Fq.prototype.getExtension=function(l){return _.M(l,_.cQ8)};
Fq.prototype.JSC$14246_buildRequest=function(l,D){l.params=D.params;l.correctionText=D.correctionText};var oE=function(){};
_.Z(oE,UA);oE.prototype.getApiPaths=function(){return Hs$};
oE.prototype.getExtension=function(l){return _.M(l,_.dTH)};
oE.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params);l.searchQuery=D.searchQuery;l.languageCode=D.languageCode;l.kind=D.kind;l.name=D.name;l.externalVideoId=D.externalVideoId};var wd=function(){};
_.Z(wd,UA);wd.prototype.getApiPaths=function(){return Mkz};
wd.prototype.getExtension=function(l){return _.M(l,H_h)};
wd.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.params=D.params)};var rd=function(l){this.JSC$18515_storeWithEntities=l};
_.Z(rd,UA);rd.prototype.getApiPaths=function(){return YR7};
rd.prototype.getExtension=function(l){return _.M(l,O_y)||_.M(l,iKh)};
rd.prototype.JSC$14246_buildRequest=function(l,D,U){U.client_data&&(l.clientData=U.client_data);if(D.commerceActionConfig){var n=D.commerceActionConfig;D=n.actionId;n=n.commerceActionParams;D&&(l.actionId=D);n&&(l.commerceActionParams=n)}else{var y=D.actionId,A=D.commerceActionParams;U=D.entityKeys;y&&(l.actionId=y);A&&(l.commerceActionParams=A);var C;D=(n=this.JSC$18515_storeWithEntities)==null?void 0:(C=n.getState())==null?void 0:C.entities;if(U&&D){n=[];C=_.B(U);for(U=C.next();!U.done;U=C.next())if(y=
U.value,U=_.lQ(y).entityType,y=_.yT(D,U,y))A={},n.push((A[U]=y,A));l.entityMutationPayloads=n}}};
rd.prototype.getRequestConfig=function(l){var D,U=(D=_.M(l,O_y))==null?void 0:D.requestSequenceType;if(U&&l.clickTrackingParams&&U!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:l.clickTrackingParams,sequenceType:U}}};
rd[Lt]=[Vd];var z0=function(){};
_.Z(z0,UA);z0.prototype.getApiPaths=function(){return Rly};
z0.prototype.getExtension=function(l){return _.M(l,_.Jg7)};
z0.prototype.JSC$14246_buildRequest=function(l,D){D.feedbackData&&(l.feedbackData=D.feedbackData);D.params&&(l.itemParams=D.params)};
_.QP.Object.defineProperties(z0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var f1=function(){};
_.Z(f1,UA);f1.prototype.getApiPaths=function(){return Zx_};
f1.prototype.getExtension=function(l){return _.M(l,LKh)};
f1.prototype.JSC$14246_buildRequest=function(l,D,U){U.payments_payload&&(l.paymentsPayload=U.payments_payload);U.offer_params&&(l.offerParams=U.offer_params);D.transactionParams&&(l.transactionParams=D.transactionParams)};var $l=function(){};
_.Z($l,UA);$l.prototype.getApiPaths=function(){return el_};
$l.prototype.getExtension=function(l){return _.M(l,_.qRy)};
$l.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.buybucketParams&&(l.buybucketData={params:D.buybucketParams},D.stickerParams?l.buybucketData.stickerParams=D.stickerParams:(U.rich_chat_message?l.buybucketData.richChatMessage=U.rich_chat_message:U.chat_message_text&&(l.buybucketData.chatMessageText=U.chat_message_text),U.purchase_price_micros&&(l.buybucketData.purchasePriceMicros=U.purchase_price_micros.toString())));D.donationAmountMicros&&(l.tipAmountMicros=D.donationAmountMicros,
D.tipParams&&(l.tipParams=D.tipParams));D.offerParams&&(l.offerParams=D.offerParams);D.productData&&(l.productData=D.productData);D.transactionParams&&(l.transactionParams=D.transactionParams)};var No=function(){};
_.Z(No,UA);No.prototype.getApiPaths=function(){return m45};
No.prototype.getExtension=function(l){return _.M(l,ZK5)};
No.prototype.JSC$14246_buildRequest=function(l,D){D.updateFopParams&&(l.updateFopParams=D.updateFopParams)};var sH=function(){};
_.Z(sH,UA);sH.prototype.getApiPaths=function(){return acg};
sH.prototype.getExtension=function(l){return _.M(l,_.rN)};
sH.prototype.JSC$14246_buildRequest=function(l,D){D.couponCode&&(l.couponCode=D.couponCode);D.params&&(l.itemParams=D.params)};var EH=function(){};
_.Z(EH,UA);EH.prototype.getApiPaths=function(){return tk7};
EH.prototype.getExtension=function(l){return _.M(l,_.Vwz)};
EH.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;D.params&&(l.params=D.params);U.ctk&&(l.clientToken=U.ctk)};var T0=function(l){this.JSC$18550_storeWithEntities=l};
_.Z(T0,UA);T0.prototype.getApiPaths=function(){return XQH};
T0.prototype.getExtension=function(l){return _.M(l,_.bc)};
T0.prototype.JSC$14246_buildRequest=function(l,D,U){U.purchase_price_micros&&(l.productData={pdgData:{purchasePriceMicros:U.purchase_price_micros.toString()}},U.rich_chat_message&&(l.productData.pdgData.richChatMessage=U.rich_chat_message),U.currency_code&&(l.productData.pdgData.currencyCode=U.currency_code));D.transactionParams&&(l.transactionParams=D.transactionParams);D.clientLocationContext&&(l.clientLocationContext=D.clientLocationContext);U.payments_payload&&(l.paymentsPayload=U.payments_payload);
U.funds_guarantee_callback_client_data&&(l.fundsGuaranteeCallbackClientData=U.funds_guarantee_callback_client_data);var n,y;U=(n=this.JSC$18550_storeWithEntities)==null?void 0:(y=n.getState())==null?void 0:y.entities;if(D.entityKeys&&U){n=[];D=_.B(D.entityKeys);for(y=D.next();!y.done;y=D.next()){var A=y.value;y=_.lQ(A).entityType;if(A=_.yT(U,y,A)){var C={};n.push((C[y]=A,C))}}l.entityMutationPayloads=n}};
T0[Lt]=[Vd];var IE=function(){};
_.Z(IE,UA);IE.prototype.getApiPaths=function(){return SMk};
IE.prototype.getExtension=function(l){return _.M(l,MSz)};
IE.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;U.backend_analytics&&(l.serializedBackendAnalyticsEvent=U.backend_analytics);D.offerParams&&(l.offerParams=D.offerParams)};var Ha=function(){};
_.Z(Ha,UA);Ha.prototype.getApiPaths=function(){return acg};
Ha.prototype.getExtension=function(l){return _.M(l,JGG)};
Ha.prototype.JSC$14246_buildRequest=function(l,D){D.params&&(l.itemParams=D.params)};var Yl=function(){};
_.Z(Yl,UA);Yl.prototype.getApiPaths=function(){return ki7};
Yl.prototype.getExtension=function(l){return _.M(l,_.yg7)};
Yl.prototype.JSC$14246_buildRequest=function(l,D,U){U.resume_time_ms&&(l.resumeTimeMs=U.resume_time_ms);D.pauseParams&&(l.pauseParams=D.pauseParams)};var OH=function(){};
_.Z(OH,UA);OH.prototype.getApiPaths=function(){return d48};
OH.prototype.getExtension=function(l){return _.M(l,_.R5_)};
OH.prototype.JSC$14246_buildRequest=function(l,D,U){U=U===void 0?{}:U;U.c&&(l.redeemCode=U.c);U.rd&&(l.riskData=U.rd);U.ctk&&(l.clientToken=U.ctk)};var Vt=function(){};
_.Z(Vt,UA);Vt.prototype.getApiPaths=function(){return Kh1};
Vt.prototype.getExtension=function(l){return _.M(l,_.Agg)};
Vt.prototype.JSC$14246_buildRequest=function(l,D){D.resumeParams&&(l.resumeParams=D.resumeParams)};var iY=function(l,D){this.clientName=l;this.defaultExpirationDelayMs=D};
iY.prototype.put=function(l,D){var U=this,n;return _.P(function(y){n=Object.assign({},D.data);n.key=l;n.clientName=U.clientName;n.expireTimestampMs===void 0&&(n.expireTimestampMs=(Math.round((0,_.J3)())+U.defaultExpirationDelayMs).toString());return y.return(U.putInternal(l,n))})};
iY[Lt]=[Cv,Cp8];var ZwT=function(){iY.apply(this,arguments);this.JSC$18580_responseStore=new Map};
_.Z(ZwT,iY);_.W=ZwT.prototype;_.W.get=function(l){var D=this;return _.P(function(U){return U.return(c0(D,l))})};
_.W.putInternal=function(l,D){var U=this,n,y,A;return _.P(function(C){n=U.defaultExpirationDelayMs;D.expireTimestampMs&&(n=Number(D.expireTimestampMs)-Math.round((0,_.J3)()),y=_.RG("mweb_override_response_store_expiration_ms"),y>0&&y<n&&(n=y));A=setTimeout(function(){U.remove(l)},n);
U.JSC$18580_responseStore.set(l,{entryData:D,timer:A});_.Kz(C)})};
_.W.remove=function(l){var D=this;return _.P(function(U){e3H(D,l);_.Kz(U)})};
_.W.removeAll=function(){var l=this;return _.P(function(D){l.JSC$18580_responseStore.forEach(function(U){clearTimeout(U.timer)});
l.JSC$18580_responseStore.clear();_.Kz(D)})};
_.W.has=function(l){return!!this.JSC$18580_responseStore.get(l)};
_.W.getKeys=function(){return this.JSC$18580_responseStore.keys()};
var c0=function(l,D){if(l=l.JSC$18580_responseStore.get(D))return new _.Ku(l.entryData)},e3H=function(l,D){var U=l.JSC$18580_responseStore.get(D);
U&&(clearTimeout(U.timer),l.JSC$18580_responseStore.delete(D))};var ynl;var BFC=function(l,D,U){iY.call(this,l,D);this.token=U};
_.Z(BFC,iY);_.W=BFC.prototype;_.W.get=function(l){var D=this,U,n;return _.P(function(y){return y.nextAddress==1?y.yield(Wg9(D.token),2):y.nextAddress!=3?(U=y.yieldResult,y.yield(U.get("ResponseStore",[l,D.clientName]),3)):(n=y.yieldResult)?y.return(new _.Ku(n)):y.return(void 0)})};
_.W.putInternal=function(l,D){var U=this,n;return _.P(function(y){if(y.nextAddress==1)return y.yield(Wg9(U.token),2);n=y.yieldResult;return y.yield(n.put("ResponseStore",D),0)})};
_.W.remove=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(Wg9(D.token),2);U=n.yieldResult;return n.return(U.delete("ResponseStore",[l,D.clientName]))})};
_.W.removeAll=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return U.yield(Wg9(l.token),2);D=U.yieldResult;return U.yield(zQk(D,IDBKeyRange.only(l.clientName)),0)})};
_.W.has=function(){throw Error("ij");};_.lY=new _.A7("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var mxq=function(l){var D;this.stateTagsData=(D=l.responseContext)==null?void 0:D.stateTags},ay2=function(l){var D;
return((D=l.stateTagsData)==null?void 0:D.stateTagsModified)||[]};var tUJ;tUJ=function(l){this.JSC$18593_responseStore=l};
_.pE=function(l,D,U){if(!_.q("state_tags_killswitch")){var n=new mxq(D);if(ay2(n).length>0){var y=l.JSC$18593_responseStore.getKeys();y=_.B(y);for(var A=y.next();!A.done;A=y.next()){A=A.value;var C=c0(l.JSC$18593_responseStore,A);if(C){var h=_.TM(C);a:{var b=void 0;C=ay2(n);h=((b=(new mxq(h)).stateTagsData)==null?void 0:b.relevantStateTags)||[];b=_.B(h);for(h=b.next();!h.done;h=b.next())if(h=h.value,h.stateTag!=null&&C.includes(h.stateTag)&&h.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){C=
!0;break a}C=!1}C&&e3H(l.JSC$18593_responseStore,A)}}}}var u;n=(u=D.responseContext)==null?void 0:u.maxAgeSeconds;U&&n&&Number(n)>0&&(D=lI(D,n),l.JSC$18593_responseStore.put(U,new _.Ku(D)))};
tUJ.prototype.handleResponse=function(l,D){if(!D)throw Error("jj");var U,n;D=(U=D.config)==null?void 0:(n=U.storeStrategy)==null?void 0:n.storeKey;_.pE(this,l,D)};
tUJ[Lt]=[_.dZ];_.aiK=new _.A7("STORE_RESPONSE_PROCESSOR_TOKEN");var XET=function(l){this.JSC$18596_responseStore=l};
XET.prototype.handleResponse=function(l,D){if(D.input.match(_.T3(ERk))){var U;if(l==null?0:(U=l.entries)==null?0:U.length)for(l=_.B(l.entries),D=l.next();!D.done;D=l.next()){U=D.value.command;var n=void 0;D=(n=_.M(U,_.vk))==null?void 0:n.unserializedPrefetchData;if(!U||!D)break;n=(new ei).JSC$14253_getStoreKey(U);var y=_.M(D,U2r),A=void 0,C=void 0,h=void 0,b=void 0,u=void 0,Q=void 0,G=((A=y)==null?0:(C=A.responseContext)==null?0:C.maxAgeSeconds)&&Number((h=y)==null?void 0:(b=h.responseContext)==null?
void 0:b.maxAgeSeconds)>0?Number((u=y)==null?void 0:(Q=u.responseContext)==null?void 0:Q.maxAgeSeconds):600;n&&G>0&&(y=lI(y,G),this.JSC$18596_responseStore.put(n,new _.Ku(y)));U=(new xU).JSC$14253_getStoreKey(U);D=_.M(D,zZ_);b=h=C=A=y=n=void 0;u=((n=D)==null?0:(y=n.responseContext)==null?0:y.maxAgeSeconds)&&Number((A=D)==null?void 0:(C=A.responseContext)==null?void 0:C.maxAgeSeconds)>0?Number((h=D)==null?void 0:(b=h.responseContext)==null?void 0:b.maxAgeSeconds):600;U&&u>0&&(D=lI(D,u),this.JSC$18596_responseStore.put(U,
new _.Ku(D)))}}};
XET[Lt]=[_.dZ];var SdH=function(l,D){this.innertubeTransportService=l;this.JSC$18599_commandHandler=D};
SdH.prototype.submitForm=function(l,D,U,n,y){var A=this,C,h,b,u,Q,G;return _.P(function(J){if(J.nextAddress==1)return C={submitId:l,formData:D,submitBehavior:U,params:n},h=_.T3(AP1),J.yield(_.BN(A.innertubeTransportService,C,h,y),2);b=J.yieldResult;if(!b)return J.return(Promise.reject(new _.rc("Submit API returned an undefined response. Submit ID: "+l)));u=b;(G=(Q=u)==null?void 0:Q.onResponseReceived)&&A.JSC$18599_commandHandler.resolveCommand(G);return J.return(u)})};
SdH[Lt]=[_.Ju,_.qK];var DH=function(){this.scheduler=_.M9()},kC$;
DH.prototype.pause=function(){throw Error("kj");};
DH.prototype.resume=function(){throw Error("kj");};
DH.prototype.queue=function(l){var D=this,U=_.wf(),n=_.oI(this.scheduler,function(){try{var y;if(_.yu.instance)var A=_.yu.instance;else{var C=new _.rc("Error: Unexpected uninitialized CommandHandler.");_.EU(C);A=void 0}(y=A)==null||y.resolveCommand(l.command);U.resolve()}catch(h){U.reject(h)}});
U.promise.thenCatch(function(y){y instanceof _.dk&&D.scheduler.cancelJob(n)});
return U.promise};
DH.prototype.queueAll=function(l){var D=new Map;l=_.B(l);for(var U=l.next();!U.done;U=l.next())U=U.value,D.set(U.id,this.queue(U));return D};var K7w=function(l,D){var U=this;this.taskModel=l;this.onTaskCancelledCallback=D;this.resolver=_.wf();l=l.proto.prefetchConfig;if(!l)throw Error("lj");if(!l.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(n){n instanceof _.dk&&(dxw(U,U.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),U.onTaskCancelledCallback(U.taskModel.id,U.jobId),U.tick("pcc"));
throw n;});
this.timerName=this.taskModel.id;_.m0(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
K7w.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var dxw=function(l,D){_.ZP({prefetchInfo:{cancellationReason:D}},l.timerName)};
K7w.prototype.tick=function(l){_.ae(l,void 0,this.timerName)};var no=function(){var l=this;this.scheduler=_.M9();this.maxInflightTasks=_.RG("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.RG("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new qr7;this.onTaskCancelled=function(D,U){U&&l.scheduler.cancelJob(U);cAW(l,D);UO(l,3)}},pE$=function(){no.instance||(no.instance=new no);
return no.instance};
no.prototype.pause=function(){this.prefetchCoordinatorState=0};
no.prototype.resume=function(){UO(this,0)};
no.prototype.queue=function(l){l=xxq(this,l);UO(this,1);return l};
no.prototype.queueAll=function(l){var D=new Map;l=_.B(l);for(var U=l.next();!U.done;U=l.next())U=U.value,D.set(U.id,xxq(this,U));UO(this,1);return D};
var xxq=function(l,D){var U=l.allPrefetchTasks.get(D.id);if(U)return U.cancellablePromise;try{var n=new K7w(D,l.onTaskCancelled)}catch(A){return _.Le(A)}U=n;U.tick("pcq");var y={prefetchInfo:{taskId:U.taskModel.id,isPrefetch:!0,fetchAction:U.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:U.taskModel.command.clickTrackingParams}};U.taskModel.csn&&(y.clientScreenNonce=U.taskModel.csn);_.ZP(y,U.timerName);l.allPrefetchTasks.set(D.id,n);l.drainingHeap.insert(-n.getPriority(),n);return n.cancellablePromise},
UO=function(l,D){l.prefetchCoordinatorState===D&&(l.prefetchCoordinatorState=2,jj$(l))},jj$=function(l){for(var D={};l.prefetchCoordinatorState!==0;D={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(l.inflightPrefetchTasks.size>=l.maxInflightTasks){l.prefetchCoordinatorState=3;break}D.prefetchTask$jscomp$1=l.drainingHeap.remove();if(!D.prefetchTask$jscomp$1){l.prefetchCoordinatorState=1;break}D.taskId$jscomp$3=D.prefetchTask$jscomp$1.taskModel.id;if(l.allPrefetchTasks.has(D.taskId$jscomp$3)){var U=-1;l.coordinatorTimeoutMs>0&&(U=_.oI(l.scheduler,function(n){return function(){yR(l,n.taskId$jscomp$3,Error("nj"))}}(D),l.coordinatorTimeoutMs));
l.inflightPrefetchTasks.set(D.taskId$jscomp$3,U);if(!l.JSC$18616_commandHandler){if(!_.yu.instance){yR(l,D.taskId$jscomp$3,Error("oj"));continue}l.JSC$18616_commandHandler=_.yu.instance}a:switch(D.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":U=1;break a;default:U=0}D.prefetchTask$jscomp$1.jobId=l.scheduler.addJob(function(n){return function(){n.prefetchTask$jscomp$1.tick("pcr");try{l.JSC$18616_commandHandler.resolveCommand(n.prefetchTask$jscomp$1.taskModel.command)||
yR(l,n.taskId$jscomp$3,Error("pj"))}catch(y){yR(l,n.taskId$jscomp$3,y)}}}(D),U,0)}}},F7w=function(l,D){(D=cAW(l,D))!=null&&(D.resolver.resolve(),D.tick("pce"));
UO(l,3)},yR=function(l,D,U){(D=cAW(l,D,U))!=null&&(D.resolver.reject(U),D.tick("pcc"),dxw(D,"CANCELLATION_REASON_ERROR"),Math.random()<=_.RG("prefetch_coordinator_error_logging_sampling_rate")&&(U=new _.rc("Prefetch Command failed.",D.taskModel.id,U.message),_.EU(U)));
UO(l,3)},cAW=function(l,D,U){var n=l.allPrefetchTasks.get(D);
n?((U=l.inflightPrefetchTasks.get(D))&&U!==-1&&l.scheduler.cancelJob(U),l.inflightPrefetchTasks.delete(D),l.allPrefetchTasks.delete(D)):_.II(new _.rc("Unexpected missing prefetch task when deleting task.",D,U==null?void 0:U.message));return n};var oTq=function(l,D,U,n,y){this.id=l;this.triggerOn=D;this.cancelOn=U;this.command=n;this.proto=y};
_.QP.Object.defineProperties(oTq.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var wE8=function(){this.JSC$18621_prefetchCoordinator=pE$();kC$||(kC$=new DH);this.defaultCoordinator=kC$},rAT;
wE8.getInstance=function(){rAT||(rAT=new wE8);return rAT};
wE8.prototype.get=function(l){switch(l){case 0:return this.JSC$18621_prefetchCoordinator;default:return this.defaultCoordinator}};var Al=function(){this.coordinatorSupplier=wE8.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},$xJ=function(l){var D=_.t6()||void 0,U=Object.keys(z3P)[0];
if(U){var n=l.taskIdByTriggerId.get(U);if(n!=null){l.taskIdByTriggerId.delete(U);U=[];n=_.B(n);for(var y=n.next();!y.done;y=n.next())if(y=l.tasks.get(y.value))D!=="UNDEFINED_CSN"&&(y.csn=D),U.push(y);U=P2C(U);D=[];U=_.B(U);for(n=U.next();!n.done;n=U.next()){y=_.B(n.value);n=y.next().value;y=y.next().value;n=l.coordinatorSupplier.get(n).queueAll(y);n=_.B(n);var A=n.next();for(y={};!A.done;y={taskId$jscomp$9:void 0},A=n.next()){var C=_.B(A.value);A=C.next().value;C=C.next().value;y.taskId$jscomp$9=
A;A=C;D.push(y.taskId$jscomp$9);l.queuedPromisesByTask.set(y.taskId$jscomp$9,_.Kb(A,function(h){return function(){fyW(l,h.taskId$jscomp$9)}}(y)))}}}}else _.II(new _.rc("Unexpected malformed TriggerEvent."))};
Al.prototype.trigger=function(l,D){var U=this,n=this.tasks.get(l);if(!n||this.queuedPromisesByTask.has(l))return!1;NsT(this,l,n.triggerOn);D!=="UNDEFINED_CSN"&&(n.csn=D);D=this.coordinatorSupplier.get(n.taskType).queue(n);this.queuedPromisesByTask.set(l,_.Kb(D,function(){fyW(U,l)}));
return!0};
Al.prototype.cancel=function(l){var D=this.queuedPromisesByTask.get(l);if(D)D.cancel();else return fyW(this,l)};
var fyW=function(l,D){l.queuedPromisesByTask.delete(D);var U=l.tasks.get(D);if(!U)return!1;l.tasks.delete(D);NsT(l,D,U.triggerOn);(U=hYo(U.cancelOn))&&(l=l.taskIdByCancelId.get(U))&&l.delete(D);return!0},NsT=function(l,D,U){(U=Object.keys(U)[0])&&(l=l.taskIdByTriggerId.get(U))&&l.delete(D)};var z3P={taskRegistered:{}},WX=function(){Al.instance||(Al.instance=new Al);this.JSC$18630_taskManager=Al.instance};
_.Z(WX,Pf);
WX.prototype.resolveCommand=function(l){var D=this,U,n;return _.P(function(y){U=_.M(l,lZy);if((n=U)==null||!n.tasks){var A=new _.rc("RegisterTasksCommand is missing tasks.");_.EU(A);return y.return()}A=D.JSC$18630_taskManager;for(var C=_.B(U.tasks),h=C.next();!h.done;h=C.next())if(h=h.value,h=h.id&&h.triggerOn&&h.cancelOn&&h.command?new oTq(h.id,h.triggerOn,h.cancelOn,h.command,h):void 0,h){var b=Object.keys(h.triggerOn)[0];if(b){var u=hYo(h.cancelOn);u?(A.tasks.set(h.id,h),A.taskIdByTriggerId.has(b)||A.taskIdByTriggerId.set(b,
new Set),A.taskIdByTriggerId.get(b).add(h.id),A.taskIdByCancelId.has(u)||A.taskIdByCancelId.set(u,new Set),A.taskIdByCancelId.get(u).add(h.id)):_.II(new _.rc("Unexpected malformed cancelOn field."))}else _.II(new _.rc("Unexpected malformed triggerOn field."))}else _.II(new _.rc("Unexpected malformed Task proto."));$xJ(D.JSC$18630_taskManager);_.Kz(y)})};var sjJ={},ETq=(sjJ.rendered={priority:_.q("web_adaptive_early_init")?8:0,callback:function(){var l={};l.numCpu=navigator.hardwareConcurrency;var D={};D.ramGb=_.nC.navigator.deviceMemory;var U={staticContext:{}};D.ramGb&&Qhc(D.ramGb)&&(U.staticContext.memoryTotalKbytes=(D.ramGb*1048576).toString());l.numCpu&&Qhc(l.numCpu)&&(U.staticContext.cpuCores=l.numCpu);if(_.q("web_enable_adaptive_appl_signal")){l={};D=JM9();D=D.length>0?D[0]:void 0;var n,y=(n=_.dj("rses_dpj"))!=null?n:D==null?void 0:D.tick.rses_dpj,
A;n=(A=_.dj("rsef_dpj"))!=null?A:D==null?void 0:D.tick.rsef_dpj;y&&Number(y)>0&&n&&Number(n)>0&&(A=Math.ceil(Number(n)-Number(y)),A>0&&(l.loadLatency=A));l.loadLatency&&Qhc(l.loadLatency)&&(U.appL=l.loadLatency.toString())}_.Na("applicationStarted",U);G1B=U;_.q("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",Jhl)}},sjJ);var TsP=new _.A7("WINDOW_ON_ERROR"),Iy5=new _.A7("ERROR_WEIGHT_MAPS"),HwT=new _.A7("INIT_ERROR");var Yd5={},OwH=(Yd5.initialized={priority:10,callback:function(l){l.injector.resolve(HwT)()}},Yd5);var VUJ=function(){},iyw=function(){var l=_.UG("meta_logger_impl");
l||(l=new VUJ,_.vG("meta_logger_impl",l));return l},lp8=function(){iyw().csiSubscriptionKey=wkC("meta_logging_csi_event",function(l){var D=l.timerName;
if(l=l.timelineData){_.m0(D,{startTime:l.startTime},D);l.infos&&_.ZP(l.infos,D);for(var U=_.B(Object.keys(l.ticks)),n=U.next();!n.done;n=U.next())n=n.value,_.ae(n,l.ticks[n],D)}})};
VUJ.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&fsc(this.csiSubscriptionKey)};var DVw={},UV$=(DVw.initialized={priority:10,callback:function(){lp8()}},DVw);var niP=function(l,D){this.innertubeClientName=l;this.JSC$18641_prefCookie=D};
niP.prototype.record=function(){if(_.q("web_li_record_binary_eval_tick")){var l=_.dj("rsef_dpj");var D=_.dj("rses_dpj");l=l!==void 0&&D!==void 0?Math.round(l-D):void 0;if(l!==void 0&&l>0){D=_.MN(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var U=this.poolSize;if(!(D.valuesSeen>=1E9)){if(D.valuesSample.length<U)D.valuesSample.push(l);else{var n=Math.floor(Math.random()*(D.valuesSeen+1));n<U&&(D.valuesSample[n]=l)}D.valuesSeen+=1}_.qN(this.storagePrefix+"-"+this.innertubeClientName,
D,2592E3);l=D.valuesSample;D=bgs(l);l=l.length<this.poolSize?void 0:D<400?1:D<1700?2:3;l!==void 0&&(this.JSC$18641_prefCookie.set(this.cookiePrefix+this.innertubeClientName,l),this.JSC$18641_prefCookie.save())}}else _.Rn(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18641_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18641_prefCookie.save()};
niP[Lt]=[Cv,H4];var yqv=function(){niP.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.Z(yqv,niP);var Aqv=new _.A7("PAGE_LOAD_TIME_TOKEN");var WU2=function(l){this.signal=l;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;l.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.oI(_.Tn,this.disableLoggingAndSendPayload,1E4)};
WU2.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.Tn.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),BM2(this))};
var BM2=function(l){var D=_.aS();if(D){var U={webClientComponentsData:{components:Array.from(l.ids,function(n){return{id:n}})}};
l.ids.clear();_.he().visualElementStateChanged(D,U)}};var Chv=eZ({a11y:oem});_.hyr=m8(Chv)(Chv.a11y,{ephemeralActionSelector:function(l){return l.ephemeralAction||null}});var Phq=eZ({continuation:$By});var by2=m8(Phq)(Phq.continuation,{continuationCommandSelector:function(l){return l.continuationCommand}});var giP=new _.A7("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var BX=function(l,D){this.JSC$18670_storeWithEntities=l;this.JSC$18670_commandHandler=D;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
BX.prototype.start=function(){this.JSC$18670_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
BX.prototype.observeDownloadingEntities=function(){var l=_.rCB(this.JSC$18670_storeWithEntities.getState().entities).map(function(n){return z1C(n)});
if(l.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var D={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:OQ_()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.H6(_.C3("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18670_commandHandler.resolveCommand(D)}this.downloadingEntities=l}else if(this.downloadingEntities.length){var U=wN9(this.JSC$18670_storeWithEntities.getState().entities).map(function(n){return z1C(n)});
this.downloadingEntities.filter(function(n){return U.includes(n)}).length&&(l={openPopupAction:$e3()},this.JSC$18670_commandHandler.resolveCommand(l));
this.downloadingEntities=[]}};
BX[Lt]=[Vd,_.qK];var ux$;_.Co=function(l,D,U,n,y,A,C,h){this.JSC$18673_playerApiPromise=l;this.JSC$18673_commandHandler=D;this.JSC$18673_screenManager=U;this.offlineWebClientEligibility=n;this.JSC$18673_prefStorage=y;this.JSC$18673_actionRouter=A;this.entityTypeMap=C;this.JSC$18673_persistentStorePromiseAccessor=h;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
ux$=function(){var l=_.Jc().resolve(_.Co),D;_.P(function(U){if(U.nextAddress==1)return l.downloadFailureListenerBound?U.return():U.yield(l.JSC$18673_playerApiPromise,2);D=U.yieldResult;D.addEventListener("onOfflineOperationFailure",function(n){if(n.failureReason&&n.entityKey&&n.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(n.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var y=_.lQ(n.entityKey).entityId;y&&l.JSC$18673_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
y)}else if(_.q("kevlar_woffle")){y=l.JSC$18673_commandHandler;var A=y.resolveCommand;n=n.failureReason;var C=_.C3("TRANSFER_FAILED",void 0,"Download failed");n==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(C=_.C3("STORAGE_FULL",void 0,"Storage full"));A.call(y,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.H6(C),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
l.downloadFailureListenerBound=!0;_.Kz(U)})};
_.Co.prototype.deleteVideo=function(l,D){var U=this,n,y,A;return _.P(function(C){if(C.nextAddress==1)return C.yield(U.JSC$18673_playerApiPromise,2);n=C.yieldResult;A={offlineLoggingData:{offlineDeleteReason:(y=D)!=null?y:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return C.yield(n.queueOfflineAction(l,U.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",A),0)})};
_.Co.prototype.pauseVideoDownload=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(D.JSC$18673_playerApiPromise,2);U=n.yieldResult;U.pauseVideoDownload(l);_.Kz(n)})};
_.Co.prototype.resumeVideoDownload=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(D.JSC$18673_playerApiPromise,2);U=n.yieldResult;return n.yield(U.resumeVideoDownload(l),0)})};
_.Co[Lt]=[_.Vl,_.qK,_.$k,giP,lf,M3,xB8,xE];var viH=new _.A7("DOWNLOAD_STATE_STORE_TOKEN");var Qww=function(l,D){this.JSC$18694_persistentStorePromiseAccessor=l;this.store=D;this.upliftCompletionResolver=new _.Au},LUH=function(){var l=_.Jc().resolve(GpT),D;
_.P(function(U){switch(U.nextAddress){case 1:if(l.upliftImplPromise)return U.return(l.upliftImplPromise);_.ZY(U,2);l.upliftImplPromise=Jq2(l);return U.yield(l.upliftImplPromise,4);case 4:l.upliftCompletionResolver.resolve();_.WG(U,3);break;case 2:throw D=_.kF(U),l.upliftCompletionResolver.reject(D),D;case 3:return U.return(l.upliftImplPromise)}})},Jq2=function(l){var D,U,n;
return _.P(function(y){switch(y.nextAddress){case 1:return _.il("LOGGED_IN")?y.yield(l.JSC$18694_persistentStorePromiseAccessor(),2):y.return();case 2:D=y.yieldResult;if(!D)return _.ae("vdeur"),y.return();_.ae("vdeus");_.ZY(y,3);return y.yield(qPw(D),5);case 5:U=y.yieldResult;l.store.dispatch(mjC(U));D.observe(function(A){a29(l.store,A)});
_.WG(y,4);break;case 3:throw n=_.kF(y),_.ae("vdeur"),n;case 4:_.ae("vdeuc"),_.Kz(y)}})},qPw=function(l){var D;
return _.P(function(U){if(U.nextAddress==1)return U.yield(JnB(l),2);D=U.yieldResult;return U.return(D.reduce(function(n,y){if(!y.data||!y.key||!y.entityType)return n;n[y.entityType]||(n[y.entityType]={});n[y.entityType][y.key]=y.data;return n},{}))})};
Qww[Lt]=[xE,_.Op];var GpT;GpT=new _.A7("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.hl=new _.A7("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var PX=function(l,D){this.JSC$18697_persistentStorePromiseAccessor=l;this.transportService=D};
PX.prototype.refresh=function(){var l=this,D,U,n,y;return _.P(function(A){if(A.nextAddress==1)return _.il("LOGGED_IN")?A.yield(l.JSC$18697_persistentStorePromiseAccessor(),2):A.return();if(A.nextAddress!=3)return(D=A.yieldResult)?A.yield(HD$(D),3):A.return();if((U=A.yieldResult)&&!(Number(U.data.refreshTimestampMs||0)<(0,_.J3)()))return A.return();n={browseId:"SPaccount_downloads"};y=_.T3(wk);_.BN(l.transportService,n,y).then(function(C){var h;if(D&&(C==null?void 0:(h=C.responseContext)==null?void 0:
h.maxAgeSeconds)!==0){var b;h=(C==null?void 0:(b=C.responseContext)==null?void 0:b.maxAgeSeconds)||604800;b=String(Math.floor((0,_.J3)())+h*1E3);D.put("service:downloads_settings:fallback",new _.Ku({innertubeResponse:C,refreshTimestampMs:b}))}});
_.Kz(A)})};
PX[Lt]=[_.lY,_.Ju];var bY=function(l,D){this.JSC$18701_playerPromise=l;this.store=D;this.started=!1};
bY.prototype.start=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return l.started?U.return():U.yield(l.JSC$18701_playerPromise,2);D=U.yieldResult;D.addEventListener("onOrchestrationBecameLeader",l.updateIsLeader.bind(l,!0));D.addEventListener("onOrchestrationLostLeader",l.updateIsLeader.bind(l,!1));if(D.isOrchestrationLeader)l.updateIsLeader(D.isOrchestrationLeader());else{var n=new _.rc("Function isOrchestrationLeader is undefined",{"player.isReady":D.isReady(),"player.playVideo":D.playVideo?
"defined":"undefined"});_.EU(n);l.updateIsLeader(!1)}l.started=!0;_.Kz(U)})};
bY.prototype.updateIsLeader=function(l){this.store.dispatch(_.V0({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:l}}))};
bY[Lt]=[_.Vl,_.Op];var MNw=function(l,D){this.networkStatusManager=l;this.JSC$18704_prefStoragePromise=D;this.redirectsToPreload=["https://youtube.com"]},Ryr=function(){var l=_.Jc().resolve(MNw),D,U,n,y,A,C;
_.P(function(h){switch(h.nextAddress){case 1:return h.yield(l.JSC$18704_prefStoragePromise,2);case 2:D=h.yieldResult;if(!(U=D)){h.jumpTo(3);break}return h.yield(D.get("yt-redirect-prefetch-id"),4);case 4:U=h.yieldResult;case 3:if(U||!l.networkStatusManager.isNetworkAvailable())return h.return();n={cache:"reload",redirect:"manual"};y=_.B(l.redirectsToPreload);A=y.next();case 5:if(A.done){if(!D){h.jumpTo(0);break}return h.yield(D.set("yt-redirect-prefetch-id",!0,86400),0)}C=A.value;_.ZY(h,8);return h.yield(_.nC.fetch(C,
n),10);case 10:_.WG(h,6);break;case 8:_.kF(h);case 6:A=y.next(),h.jumpTo(5)}})};var ZyJ=function(l){this.JSC$18710_pageManager=l},eyq=function(l){var D=[];
RYc(["videoId","contentId"],l.JSC$18710_pageManager.data,new Set,D);return D},mVJ=function(l){return eyq(l).filter(function(D){return D.contentType==="video"}).map(function(D){return D.contentId}).filter(function(D){return D!==void 0})};
ZyJ[Lt]=[_.sm];var ap$=new _.A7("PAGE_CONTENT_EXTRACTOR_TOKEN");var gw=function(l){l?(this.container=l,this.containerWasInjected=!0):this.containerWasInjected=!1};
gw.prototype.openDialog=function(l,D,U){var n=this,y;return _.P(function(A){(y=n.container)==null||y.openDialog(l,D,U);_.Kz(A)})};
gw.prototype.closeDialog=function(){var l=this,D;return _.P(function(U){(D=l.container)==null||D.closeDialog();_.Kz(U)})};
gw.prototype.isDialogOpen=function(){var l=this,D,U;return _.P(function(n){return n.return((U=(D=l.container)==null?void 0:D.isDialogOpen())!=null?U:!1)})};
gw[Lt]=[_.G8(lT_)];_.tNq=new _.A7("POPUP_CONTROLLER_TOKEN");var X_J=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
X_J.prototype.registerPanel=function(l,D){if(l){this.panelMap.set(l,D);var U=this.pendingPanelResolvers.get(l);U&&(U.resolve(D),this.pendingPanelResolvers.delete(l))}};
X_J.prototype.getPanel=function(l){var D=this,U;return _.P(function(n){return(U=D.panelMap.get(l))?n.return(U):n.return(SP8(D,l))})};
var SP8=function(l,D){var U,n;return _.P(function(y){if(U=l.pendingPanelResolvers.get(D))return y.return(U.promise);n=new _.Au;l.pendingPanelResolvers.set(D,n);return y.return(n.promise)})},kpw=function(l,D){X_J.call(this);
var U=this;this.popupController=l;this.persistentPanelController=D;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return U.panelMap.size}}};
_.Z(kpw,X_J);_.W=kpw.prototype;_.W.getReloadContinuation=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(D.getPanel(l),2);U=n.yieldResult;return n.return(U.getReloadContinuation())})};
_.W.showPanel=function(l){var D=this,U,n,y,A,C,h,b,u,Q,G,J,L;return _.P(function(R){if(R.nextAddress==1){U=l;n=U.identifier;y=U.panelContents;A=U.config;C=U.extras;h=U.panelUpdatableFields;b=U.updatePanelContinuationData;u=l.target;b&&D.updatePanelContinuationDatas.set(n,b);if((Q=A)==null?0:(G=Q.engagementPanelPopupPresentationConfig)==null?0:G.popupType)if(J=A.engagementPanelPopupPresentationConfig.popupType,u===void 0&&(u=document.body),J==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!D.persistentPanelController)return _.II(new _.rc("Persistent panel controller is not available.")),
R.return();var a=D.persistentPanelController;a.persistentPanelIdentifiers.has(n)||(a.persistentPanelWrapper.appendChild(a.engagementPanelElement({panelIdentifier:n},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),a.persistentPanelIdentifiers.add(n));a:switch(_.xv.currentPageSubTypeSelector(a.store.getState())){case "watch":var S="WATCH";break a;default:S="APP"}_.dVJ(a,S);a.store.dispatch(r5H(!0))}else{if(J==="PANEL_POPUP_TYPE_DIALOG"||J==="PANEL_POPUP_TYPE_DROPDOWN"){a=R.return;S=D.popupController;
var d=S.openPopup;a:switch(J){case "PANEL_POPUP_TYPE_DIALOG":var c="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":c="DROPDOWN";break a;default:throw Error("rj`"+J);}return a.call(R,d.call(S,n,y,c,u))}_.II(new _.rc("Popup type "+J+" not supported in PanelController."))}return R.yield(D.getPanel(n),2)}L=R.yieldResult;(y||h)&&L.updatePanel(y,!1,C,h);L.showPanel(C);_.Kz(R)})};
_.W.hidePanel=function(l){var D=this,U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return U=l,n=U.identifier,C.yield(D.getPanel(n),2);y=C.yieldResult;y.hidePanel();D.popupController.closePopup(n);(A=D.persistentPanelController)!=null&&A.persistentPanelIdentifiers.has(n)&&A.store.dispatch(r5H(!1));_.Kz(C)})};
_.W.isVisible=function(l,D){var U=this,n;return _.P(function(y){if(y.nextAddress==1)return D&&!U.panelMap.has(l)?y.return(!1):y.yield(U.getPanel(l),2);n=y.yieldResult;return y.return(n.isVisible())})};
_.W.updatePanel=function(l){var D=this,U,n,y,A,C,h,b,u;return _.P(function(Q){if(Q.nextAddress==1){U=l;n=U.identifier;y=U.panelContents;A=U.shouldFocus===void 0?!1:U.shouldFocus;C=U.extras;h=U.panelUpdatableFields;b=U.updatePanelContinuationData;if(!y&&!h)return Q.return();b&&D.updatePanelContinuationDatas.set(n,b);_.q("enable_ai_companion")&&n==="PAai_companion"&&_.gN.remove("youchat_messages_section");return Q.yield(D.getPanel(n),2)}u=Q.yieldResult;u.updatePanel(y,A,C,h);y&&_.q("enable_ai_companion")&&
D.registerPanelContent(n,y);_.Kz(Q)})};
_.W.registerPanelContent=function(l,D){l&&this.panelContentMap.set(l,D)};
_.W.unregisterPanelContent=function(l){this.panelContentMap.delete(l)};
_.W.getPanelContent=function(l){return this.panelContentMap.get(l)};
_.W.getUpdatePanelContinuationData=function(l){return this.updatePanelContinuationDatas.get(l)};
kpw[Lt]=[_.tNq,_.G8(_.O3)];var uY=function(l,D){this.innertubeTransportService=l;this.JSC$18729_screenManager=D},KU$=function(l){var D;
return!((D=l.panelLoadingStrategy)==null||!D.requestTemplate)};
uY.prototype.makeRequest=function(l){var D=this,U,n;return _.P(function(y){switch(y.nextAddress){case 1:if(!KU$(D)){y.jumpTo(2);break}_.ZY(y,3);return y.yield(_.oL(D.innertubeTransportService,l),5);case 5:return U=y.yieldResult,U?y.return(U.content):(_.EU(Error("sj")),y.return(void 0));case 3:n=_.kF(y),_.EU(n);case 2:return y.return(void 0)}})};
uY.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
uY.prototype.execute=function(l){var D=this,U,n,y,A,C,h,b,u,Q,G;return _.P(function(J){if(J.nextAddress==1){U=l;n=U.data;y=U.fallbackVe;A=U.parentVe;C=U.createScreenConfig;h=U.renderFn;b=U.command;D.panelLoadingStrategy=n;var L,R,a=((L=D.panelLoadingStrategy)==null?0:L.screenVe)?(R=D.panelLoadingStrategy)==null?void 0:R.screenVe:y;a&&_.KM(D.JSC$18729_screenManager,a,A,C);return(u=D.getContent())?J.yield(h(u),2):J.jumpTo(2)}return J.nextAddress!=4?KU$(D)?J.yield(D.makeRequest(b),4):J.return():(G=Q=
J.yieldResult)?J.yield(h(G),0):J.return()})};
uY[Lt]=[_.Ju,_.$k];var cq$;cq$=function(l,D){this.engagementPanelElement=l;this.store=D;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.dVJ=function(l,D){var U=l.persistentPanelContainerMap.get(D);U?U.contains(l.persistentPanelWrapper)||(l=l.persistentPanelWrapper,_.sV=!0,_.EV.set(l,!0),U.insertBefore(l,null),_.EV.delete(l),_.sV=!1):_.II(new _.rc("Persistent panel container not found for surface "+D+"."))};
cq$[Lt]=[Dz7,_.Op];var vX=function(){var l=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.onHoverEntered=function(){l.isHovered=!0;var D;(D=l.hoverEnterCallback)==null||D.call(l)};
this.onHoverLeft=function(){l.isHovered=!1;var D;(D=l.hoverLeaveCallback)==null||D.call(l)}};
vX.prototype.getContainer=function(){return _.Ta()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
vX.prototype.openSheet=function(l,D){var U=this,n,y,A,C,h,b,u;return _.P(function(Q){switch(Q.nextAddress){case 1:return n={stack:[],error:void 0,hasError:!1},_.ZY(Q,2,3),y=hq,Q.yield(U.isSheetOpen(),5);case 5:A=Q.yieldResult;GN8(n,M9N(y));if(!A){Q.jumpTo(6);break}if(!U.shouldPreventClosingWhileHovered){if(!_.q("delay_sheet_open_killswitch")){if(_.q("web_close_sheet_if_same_target_killswitch")&&D&&U.currentTarget===D)return(C=U.getContainer())==null||C.closeSheet(),Q.return();U.pendingData={data:l,
target:b2r(U,D)};return Q.return()}Q.jumpTo(6);break}if(U.currentTarget===D)return Q.return();p_H(U);return Q.yield((h=U.getContainer())==null?void 0:h.closeSheet(),6);case 6:if(l.viewModel&&(l={viewModel:l.viewModel,sheetPosition:l.sheetPosition,expandToFullWidth:l.expandToFullWidth}),(b=U.getContainer())==null||b.openSheet(l,D),U.currentTarget=D,U.shouldPreventClosingWhileHovered){var G;(G=U.currentTarget)==null||G.addEventListener("mouseenter",U.onHoverEntered);var J;(J=U.currentTarget)==null||
J.addEventListener("mouseleave",U.onHoverLeft);var L;G=(L=U.getContainer())==null?void 0:L.getSheetContainerElement();G==null||G.addEventListener("mouseenter",U.onHoverEntered);G==null||G.addEventListener("mouseleave",U.onHoverLeft);U.onHoverEntered()}case 3:_.aV(Q);Jdv(n);_.Sc(Q,0);break;case 2:u=_.kF(Q),n.error=u,n.hasError=!0,Q.jumpTo(3)}})};
vX.prototype.closeSheet=function(){var l=this;return _.P(function(D){return l.hideDelayMs?(setTimeout(function(){return _.P(function(U){return U.yield(xVr(l),0)})},l.hideDelayMs),D.return()):D.yield(xVr(l),0)})};
var xVr=function(l){var D;return _.P(function(U){if(U.nextAddress==1){if(l.shouldPreventClosingWhileHovered){if(l.isHovered)return U.return();p_H(l)}return U.yield((D=l.getContainer())==null?void 0:D.closeSheet(),2)}if(U.nextAddress!=4)return l.shouldPreventClosingWhileHovered=!1,l.currentTarget=void 0,!l.pendingData||_.q("delay_sheet_open_killswitch")?U.jumpTo(0):U.yield(l.openSheet(l.pendingData.data,l.pendingData.target),4);l.pendingData=void 0;_.Kz(U)})};
vX.prototype.isSheetOpen=function(){var l=this,D,U;return _.P(function(n){return n.return((U=(D=l.getContainer())==null?void 0:D.isSheetOpen())!=null?U:!1)})};
var p_H=function(l){var D;(D=l.currentTarget)==null||D.removeEventListener("mouseenter",l.onHoverEntered);var U;(U=l.currentTarget)==null||U.removeEventListener("mouseleave",l.onHoverLeft);var n;D=(n=l.getContainer())==null?void 0:n.getSheetContainerElement();D==null||D.removeEventListener("mouseenter",l.onHoverEntered);D==null||D.removeEventListener("mouseleave",l.onHoverLeft)},b2r=function(l,D){if(!_.q("web_parent_target_for_sheets"))return D;
var U,n;return(n=(U=l.getContainer())==null?void 0:U.getParentTarget(D))!=null?n:D};var lD=window.documentPictureInPicture;var dbB=_.wL(["dark"]),KgG=_.wL(["system-icons"]),cn9=_.wL(["typography"]),pMG=_.wL(["lang"]),xbg=_.wL(["style"]),tA_=_.wL(["dir"]),XMd=_.wL(["rounded-container"]),Sb9=_.wL(["style"]),FgN=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],QR=function(l){this.JSC$18747_clientRoot=l;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
QR.prototype.openWindow=function(l){var D=this,U,n;return _.P(function(y){switch(y.nextAddress){case 1:if(!window.documentPictureInPicture||!_.X$()||D.currentPipWindow)return y.return(!1);_.ZY(y,2);return y.yield((n=lD?lD:null)==null?void 0:n.requestWindow(l),4);case 4:U=y.yieldResult;_.WG(y,3);break;case 2:return _.kF(y),y.return(!1);case 3:if(!U)return y.return(!1);U.addEventListener("pagehide",function(){jwq(D)});
U.addEventListener("resize",D.handlePipWindowResize);jQN(U);wMB(U);QOG(U);return y.yield(atC(U),5);case 5:if(!ZgK())return y.return(!1);D.currentPipWindow=U;D.JSC$18747_eventForwarder=o5c(U,D.JSC$18747_clientRoot);D.pipWindowResizeDelay=new _.LS(function(){D.currentPipWindow&&_.Vh(D.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Sr(D.currentPipWindow.innerWidth,D.currentPipWindow.innerHeight)])},U);
D.pipWindowResizeDelay.start();return y.return(!0)}})};
QR.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var jwq=function(l){if(l.currentPipWindow){var D,U;(D=lD?lD:null)==null||(U=D.window)==null||U.close();l.currentPipWindow.removeEventListener("resize",l.handlePipWindowResize);var n;(n=l.pipWindowResizeDelay)==null||n.dispose();l.pipWindowResizeDelay=void 0;var y;(y=l.JSC$18747_eventForwarder)==null||y.stop();l.JSC$18747_eventForwarder=void 0;D=_.B(l.onCloseCallbacks);for(U=D.next();!U.done;U=D.next())U=U.value,U();l.onCloseCallbacks=[];l.currentPipWindow=null}};
QR.prototype.getWindow=function(){return this.currentPipWindow};
var FUq=function(l,D){var U;(U=l.onCloseCallbacks)==null||U.push(D)};
QR.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.X$()};
_.QP.Object.defineProperties(QR.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
QR[Lt]=[JNH];var oi$=new _.A7("PICTURE_IN_PICTURE_CONTROLLER");var rnc=function(l,D){this.lengthY=this.lengthX=0;this.lengthX=D.x-l.x;this.lengthY=D.y-l.y};var w_8=function(){},Z25=function(l,D){var U;
(U=l.headerElement)==null||U.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:D}))};var rq2=function(){};
rq2.prototype.openPopup=function(l,D,U,n){var y=this,A;return _.P(function(C){if(!y.container)return C.return();A={openPopupAction:{popup:D,popupType:U,uniqueId:l}};return C.return(y.container.handleOpenPopupAction(A,n))})};
rq2.prototype.closePopup=function(l){this.container&&this.container.closePopup(l)};var zyv=function(){this.openTunnels=new Map},Rws=function(l,D,U){if(E53(U)){var n=_.ih(U,"gclid");
U={handleEvent:function(h){D&&!D.closed&&typeof D.postMessage==="function"&&h&&h.origin&&h.source===D&&h.data&&h.data.action==="gcl_setup"&&D.postMessage(Object.assign({},{action:"gcl_transfer"},n&&{gclid:n},{gadSource:2}),h.origin)}};
for(var y=_.B(l.openTunnels),A=y.next();!A.done;A=y.next()){var C=_.B(A.value);A=C.next().value;C=C.next().value;if(A.closed)try{window.removeEventListener("message",C),l.openTunnels.delete(A)}catch(h){_.EU(h)}}D&&l.openTunnels.size<15&&(l.openTunnels.set(D,U),window.addEventListener("message",U))}};var fpr=function(){this.clientParams=new Map},Dg$=function(l){for(var D=_.B(l.clientParams.keys()),U=D.next();!U.done;U=D.next())U=U.value,U.startsWith("yt-mini-app-share")&&l.clientParams.delete(U)};var $V8=function(l,D){_.xT.call(this);var U=this;this.shortsController=l;this.storeWithShorts=D;l=_.fM(this.storeWithShorts,_.$yB,function(n){if(n){var y,A=(y=U.shortsController.getRoot())==null?void 0:y.getPlayer(),C;(y=(C=U.shortsController.alternativePlayerContainerElement)==null?void 0:C.getPlayerContainer())&&(A==null||A.appendTo(y))}else{var h;C=(h=U.shortsController.alternativePlayerContainerElement)==null?void 0:h.getPlayerContainer().querySelector("#player");y=U.shortsController.activeIndex;
(h=(A=U.shortsController.getRoot())==null?void 0:A.querySelector('ytd-reel-video-renderer[id="'+y+'"] #player-container'))&&(C==null||C.appendTo(h,void 0,!0))}});
this.addOnDisposeCallback(l)};
_.Z($V8,_.xT);var GU=function(l,D,U,n){var y=this;this.storeWithShorts=l;this.ephemeralResponseStore=D;this.innertubeTransportService=U;this.innertubeTransportLoader=n;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.gf(_.Yv);this.isShortsPipActive=_.gf(_.OE);this.nextReelVe=_.UE(56921);this.prevReelVe=_.UE(56922);this.backButtonVe=_.UE(22156);this.TEST_ONLY={getActiveModules:function(){return y.activeModules}}},NMW=function(l){l.unsubscribeFromStore=
_.fM(l.storeWithShorts,_.fgo,function(D){l.initOrDisposeActiveModules(D);
!D&&l.storeWithShorts.getState().shorts.isFullscreen&&(_.IS(document.documentElement),l.storeWithShorts.dispatch(_.N_8(!1)))});
l.initOrDisposeActiveModules(_.fgo(l.storeWithShorts.getState()))},POP,bw$,sww;
GU.prototype.initOrDisposeActiveModules=function(l){l?this.activeModules.push(new $V8(this,this.storeWithShorts)):(_.BE(this.activeModules),this.activeModules.length=0)};
GU.prototype.registerRootElement=function(l){this.rootElement=l;NMW(this)};
GU.prototype.getRoot=function(){return this.rootElement};
GU.prototype.setActiveIndex=function(l){this.activeIndex=l};
_.AAJ=function(l,D){var U,n,y,A,C,h,b;return _.P(function(u){switch(u.nextAddress){case 1:return U=new ei,(n=U.JSC$14253_getStoreKey(D))&&l.ephemeralResponseStore.has(n)?u.yield(l.ephemeralResponseStore.get(n),7):u.yield(sww(l,D),4);case 4:y=u.yieldResult;if(!n){u.jumpTo(3);break}A=lI(y,3600);return u.yield(l.ephemeralResponseStore.put(n,new _.Ku(A)),3);case 7:y=(C=u.yieldResult)==null?void 0:_.TM(C);case 3:return((h=y)==null?0:h.replacementEndpoint)&&(b=_.M(y.replacementEndpoint,_.vk))&&y.sequenceContinuation&&
(b.sequenceParams=y.sequenceContinuation),u.return(y)}})};
POP=function(l,D){D=(new mx).JSC$14253_getStoreKey(D);return!!D&&l.ephemeralResponseStore.has(D)};
bw$=function(l,D,U){var n,y,A,C,h;_.P(function(b){if(b.nextAddress==1){n=new mx;y=n.JSC$14253_getStoreKey(D);if(!y)return b.return();if(U.reelWatchSequenceResponse)return A=lI(U.reelWatchSequenceResponse,3600),l.ephemeralResponseStore.put(y,new _.Ku(A)),b.jumpTo(0);if(!l.ephemeralResponseStore.has(y))return b.jumpTo(0);h=U;return b.yield(l.ephemeralResponseStore.get(y),4)}h.reelWatchSequenceResponse=(C=b.yieldResult)==null?void 0:_.TM(C);_.Kz(b)})};
sww=function(l,D){var U=U===void 0?{}:U;var n,y,A;return _.P(function(C){switch(C.nextAddress){case 1:if(l.innertubeTransportService){n=l.innertubeTransportService;C.jumpTo(2);break}if(!l.innertubeTransportLoader){_.ll(Error("uj"));C.jumpTo(2);break}return C.yield(l.innertubeTransportLoader(),4);case 4:n=C.yieldResult;case 2:return C.yield((y=n)==null?void 0:_.oL(y,D,U),5);case 5:return A=C.yieldResult,C.return(A)}})};
_.QP.Object.defineProperties(GU.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
GU[Lt]=[VrJ,_.dZ,_.G8(_.Ju),_.G8(mv_)];_.Ei2=new _.A7("STORAGE_MANAGER_TOKEN");var bXC=["touchmove","scroll"];var TM$=!1;var VAB=!1;var PxB={onSpanEnd:function(l){l.parentId==null&&(TM$||(Yb9(),setInterval(Yb9,6E5),TM$=!0),iXB(l,"web_tracing_action"))}};var yWK=URL.createObjectURL;var CxK,Ip$={traceAllComponents:_.q("web_tracing_all_components"),exportToCsi:_.q("web_tracing_export_to_csi"),enabledSpansArray:_.md("web_tracing_enabled_spans"),exportToDevTools:_.q("web_tracing_export_to_devtools"),maxBreadcrumbs:_.RG("tel_max_breadcrumbs",0)};CxK=new nbG(Ip$);var hoN=_.q("web_shorts_enable_tracing");var HyW=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},YP8;
HyW.prototype.enqueue=function(l,D){D===1?this.currentPersistentToast=l:this.queue.push(l);this.openToast()};
HyW.prototype.openToast=function(){var l;(l=this.currentToast)!=null&&l.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Jl=new _.A7("TOAST_MANAGER_TOKEN");var Oy2=new _.A7("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var VN2=new _.A7("VIEW_TRANSITION_COORDINATOR_TOKEN");var ik2=function(l){this.config=l;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;l=_.B(l.transitionConfigs);for(var D=l.next();!D.done;D=l.next())D=_.B(D.value).next().value,this.transitionTasksMap.set(D,[])};
ik2.prototype.registerElement=function(l,D,U){U=U===void 0?!1:U;for(var n=_.B(Object.keys(D)),y=n.next(),A={};!y.done;A={viewTransitionName:void 0},y=n.next()){y=y.value;A.viewTransitionName=D[y];var C=this.elementTasksMap.get(l),h=void 0;if((h=C)==null?0:h.has(y)){_.Tj(new _.rc("Element already registered for transition",l.tagName,y));break}C=C||new Map;C.set(y,{beforeTransition:function(b){return function(){l.style.viewTransitionName=b.viewTransitionName}}(A),
afterTransition:function(){l.style.viewTransitionName&&(l.style.viewTransitionName="")},
runOnce:U});this.elementTasksMap.set(l,C)}};
_.kv=function(l,D){var U=l.elementTasksMap.get(D);U&&(U.clear(),U.size===0&&l.elementTasksMap.delete(D))};
ik2[Lt]=[Oy2];var D1P=_.w(function(l){var D=_.bP("yt-expandable-metadata-header-view-model"),U=_.n0(function(n){if(!_.ZX(_.RT(n),D.value,["A".toString(),"BUTTON".toString()])){var y;(y=l.expandedCallback)==null||y.call(l,!1)}});
return _.g("yt-expandable-metadata-header-view-model",{el:D,class:"ytExpandableMetadataHeaderViewModelHost"},_.g(_.v,{cond:function(){return l.expanded()},
then:function(){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":U},_.g("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.g(_.v,{cond:function(){return l.data().expandedTitleImage},
then:function(n){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.g(_.rh,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:n}))}}),_.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.g(_.BO,{text:function(){return l.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.g(_.BO,{text:function(){return l.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.g(_.BO,{text:function(){return l.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.g("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.g(_.uI,{data:function(){return l.data().infoButton}},{buttonViewModel:_.t9}),_.g(_.uI,{data:function(){return l.data().collapseButton}},{buttonViewModel:function(n){return _.g(_.t9,{data:n.data,
onClick:function(){var y;(y=l.expandedCallback)==null||y.call(l,!1)}})}})))},
else:function(){return _.g(lQJ,Object.assign({},l))}}))},"qg"),U1w=_.w(function(l){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.g(_.v,{cond:function(){return l.data().collapsedLabelImage},
then:function(D){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.g(_.rh,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:D,alt:""}))}}),_.g(_.BO,{text:function(){return l.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"rg"),lQJ=_.w(function(l){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.n0(function(){var D;return void((D=l.expandedCallback)==null?void 0:D.call(l,!0))})},_.g("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.g(_.v,{cond:function(){return l.data().collapsedImage},
then:function(D){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.g(_.rh,{height:20,preserveHeight:!0,preserveWidth:!0,data:D,alt:""}))}}),_.g(_.v,{cond:function(){return l.data().showLeadingCollapsedLabel},
then:function(){return _.g(U1w,Object.assign({},l))}}),_.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.g(_.BO,{text:function(){return l.data().collapsedTitle}}))),_.g("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.g(_.v,{cond:function(){return!l.data().showLeadingCollapsedLabel},
then:function(){return _.g(U1w,Object.assign({},l))}}),_.g(_.uI,{data:function(){return l.data().infoButton}},{buttonViewModel:_.t9}),_.g(_.uI,{data:function(){return l.data().expandButton}},{buttonViewModel:function(D){return _.g(_.t9,{data:D.data,
onClick:function(){var U;(U=l.expandedCallback)==null||U.call(l,!0)}})}})))},"sg");_.ngJ=_.w(function(l){var D=_.B(_.WK(function(){return l.data().initiallyExpanded})),U=D.next().value,n=D.next().value,y,A=(y=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:y(),C=function(){var h=l.data().colorData;
if(h)return A?h==null?void 0:h.darkColorPalette:h==null?void 0:h.lightColorPalette};
return _.g("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.BK({"background-color":function(){var h=C();return(h==null?0:h.section2Color)?_.tu(h.section2Color):""}})},_.g(_.uI,{data:function(){return l.data().header}},{expandableMetadataHeaderViewModel:function(h){return _.g(D1P,{data:h.data,
expanded:function(){return!!U()},
expandedCallback:function(b){n(b)}})}}),_.g(_.v,{cond:function(){return U()},
then:function(){return _.g("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.g(_.uI,{data:function(){return l.data().expandedContent}},{horizontalShelfViewModel:function(h){return _.g(_.Pv,{data:h.data,
includeMargin:!0,forceNarrowLayout:!0,palette:C})},
videoSummaryContentViewModel:function(h){return _.g(lIv,{data:h.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(h){return _.g(_.xd,{data:h.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(h){return _.g(_.Pez,{data:h.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.g(_.uI,{data:function(){return l.data().expandedBottomButtons}},{buttonViewModel:function(h){return _.g("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.g(_.t9,{data:h.data}))}}))}}))},"tg");var yfP=_.w(function(l){var D=l.text;var U=l.marqueeSpacing;var n=l.scrollDelay;var y=l.scrollDuration;var A=l.enableMarqueeScroll;l=l.large;var C=_.B(_.aw(!1,void 0,"WyNYFf")),h=C.next().value,b=C.next().value,u=_.B(_.aw(0,void 0,"OoTdhe"));C=u.next().value;var Q=u.next().value,G=_.bP("marquee-scroll");u=_.bP("div");var J=_.bP("span"),L=_.Jc().resolve(_.oO);_.$i(function(){if(A()){var S=J.value.getBoundingClientRect().width,d=G.value.getBoundingClientRect().width;if(S>d){var c=(L==="ltr"?-1:1)*(S+
(U?U():16));Promise.resolve().then(function(){b(!0);Q(c)})}}},"dv0Anf");
var R={},a={};return _.g("marquee-scroll",{class:_.DV("ytMarqueeScrollHost",(R.ytMarqueeScrollHostLarge=l,R)),el:G},_.g("div",{id:"marquee-scroll-inner-container",class:_.DV("ytMarqueeScrollInnerContainer",(a.ytMarqueeScrollAnimationEnabled=function(){return h()},a)),
el:u,style:_.BK({gap:U?(0,_.yO)(U):"16px","animation-duration":y?ymr(y):"16s","animation-delay":n?ymr(n):"3s","--marquee-translate":(0,_.yO)(C)})},_.g("span",{el:J,dir:"auto"},_.g(_.BO,{text:D,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.g(_.v,{cond:h,then:function(){return _.g("span",{"aria-hidden":"true",dir:"auto"},_.g(_.BO,{text:D,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"vg");_.AfJ=_.w(function(l){var D=l.data;var U=l.overlayDensity;l=_.n0(function(){D().onTapCommand&&_.dh(D().onTapCommand);return!1});
var n=_.o6c(),y=function(){return(U==null?void 0:U())===1?22:16},A={};
return _.g("reel-sound-metadata-view-model",{class:_.DV("ytReelSoundMetadataViewModelHost",(A.ytReelSoundMetadataViewModelHostLarge=function(){return(U==null?void 0:U())===1},A)),
"on:click":l,tabindex:0,role:"button","on:keydown":n},_.g("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.g(_.v,{cond:function(){return D().musicIcon},
then:function(C){return _.g(_.rh,{data:C,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:y})}}),_.g("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.g(yfP,{text:function(){return D().soundMetadata},
enableMarqueeScroll:function(){return!!D().enableMarqueeScroll},
large:function(){return(U==null?void 0:U())===1}}))))},"wg");var WvH,Btw,Lo,bkr,u22,P0P,GZ$,QN$;WvH=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Btw=_.RG("wil_icon_max_concurrent_fetches",Infinity);
Lo=function(l,D,U){var n=this;this.iconSet=l;this.appDirection=D;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.nC.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.q("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.q("wil_icon_network_first");this.renderWhenIdle=_.q("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.q("wil_icon_load_immediately");this.isPurging=!1;l=function(){n.cacheStorageAvailable&&(n.cacheStorageAsync=_.nC.caches.open("yt-icons").then(function(A){return n.cacheStorageSync=A}).catch(function(){n.cacheStorageAvailable=!1}))};
U=(U==null?void 0:U())||{};U=_.B(Object.entries(U));for(D=U.next();!D.done;D=U.next()){var y=_.B(D.value);D=y.next().value;y=y.next().value;y=dt(y);C0$(y);this.iconCache[D]=y.cloneNode(!0)}this.isPurging=hG5(this);this.isPurging instanceof Promise?this.isPurging.then(l):l()};
_.olc=function(l,D){var U=l.resolveIcon(D);return U?l.renderingMode===1?P0P(l,U,l.renderingMode):(D=l.iconCache[U.url])?(D=D.cloneNode(!0),bkr(l,D),P0P(l,U,l.renderingMode,D)):_.ggv(l,U).then(function(n){var y=n?0:1;bkr(l,n);return P0P(l,U,y,n)}):(_.Tj(new _.rc("Icon not found",{iconShape:D})),function(){})};
bkr=function(l,D){if(D){l.counter+=1;l="_yt"+l.counter;D=[D].concat(_.zz(D.getElementsByTagName("*")));D=_.B(D);for(var U=D.next();!U.done;U=D.next())if(U=U.value,U.tagName==="style"&&U.textContent)U.textContent=u22(U.textContent,l,!0);else for(var n=_.B(U.attributes),y=n.next();!y.done;y=n.next()){y=y.value;y.name==="id"&&(y.value+=l);["mask","fill","clip-path"].includes(y.name)&&(y.value=u22(y.value,l));if(y.name==="style"){var A=U.style;try{A.cssText=u22(A.cssText,l,!0)}catch(Q){var C=void 0,h=
void 0,b=void 0,u=void 0;qX({error:((C=Q)==null?void 0:(b=(h=C).toString)==null?void 0:b.call(h))||"",el:U.outerHTML,style:!!A,cssText:(u=A)==null?void 0:u.cssText})}}y.name==="xlink:href"&&(y.value=y.value.replace(/#(.*)/,"#$1"+l))}}};
u22=function(l,D,U){var n=/url\(["']?#(.*?)["']?\)/;(U===void 0?0:U)&&(n=/url\(["']?#(.*?)["']?\)/g);return l.replace(n,"url(#$1"+D+")")};
P0P=function(l,D,U,n){return function(y,A){var C;var h=Object.assign({},{iconWidth:D.size+"px",iconHeight:D.size+"px",iconDisplay:"block"},A,{iconColor:(C=A==null?void 0:A.iconColor)!=null?C:"currentcolor"});C=_.SU("DIV");A=h.iconColor;var b=h.iconFilter;h="width: "+h.iconWidth+"; height: "+h.iconHeight+"; display: "+h.iconDisplay+";";b&&(h+=" filter: "+b+";");U===0&&(h+=" fill: "+A+";");U===1&&(b=D.url,h+=" -webkit-mask: url("+b+") no-repeat center / cover; mask: url("+(b+") no-repeat center / cover; background-color: ")+
A);D.allowMirroring&&l.appDirection==="rtl"&&(h+=" transform: scale(-1, 1); transform-origin: center center;");C.setAttribute("style",h);U===0&&n&&C.appendChild(n);y.appendChild(C)}};
_.ggv=function(l,D){var U,n,y;return _.P(function(A){U=function(C){return YC(C)};
n=D.url;if(!vg5(n))throw Error("xj");y=QN$(l,n);return A.return(y.then(function(C){return C.clone().text()}).then(function(C){var h=U(C);
C=D.size;var b=_.SU("DIV");_.Cz(b,h);h=_.kT(b.firstElementChild!==void 0?b.firstElementChild:_.Z27(b.firstChild,!0));C=C0$(h,C);l.iconCache[n]=C.cloneNode(!0);delete l.responsePromises[n];return C}).catch(function(){}))})};
GZ$=function(l){var D,U=(D=l.requestAninmationFrameResolver)==null?void 0:D.promise;U||(l.requestAninmationFrameResolver=new _.Au,U=l.requestAninmationFrameResolver.promise,_.nC.requestAnimationFrame(function(){var n;(n=l.requestAninmationFrameResolver)==null||n.resolve();l.requestAninmationFrameResolver=null}));
return U};
QN$=function(l,D){var U,n;return _.P(function(y){if(y.nextAddress==1)return l.waitForAnimationFrame?y.yield(GZ$(l),2):y.jumpTo(2);U=l.responsePromises[D];U||(n=function(){var A,C,h;return _.P(function(b){switch(b.nextAddress){case 1:if(!l.cacheStorageAvailable){A=void 0;b.jumpTo(2);break}if(C=l.cacheStorageSync){b.jumpTo(3);break}return b.yield(l.cacheStorageAsync,4);case 4:C=b.yieldResult;case 3:A=C;case 2:return h=A,l.isNetworkFirstStrategy?b.return(l.fetchAndUpdateCache(D,h).catch(l.getCacheStorageResponse.bind(l,
D,h))):b.return(l.getCacheStorageResponse(D,h).catch(l.fetchAndUpdateCache.bind(l,D,h)))}})},U=l.renderWhenIdle?new Promise(function(A,C){_.oI(_.Tn,function(){n().then(A).catch(C)},10)}):n(),l.responsePromises[D]=U);
return y.return(U.catch(function(A){delete l.responsePromises[D];qX({error:(A==null?0:A.toString)?A.toString():"",url:D});throw A;}))})};
Lo.prototype.fetchAndUpdateCache=function(l,D){var U=this;return _.P(function(n){return n.return(JfT(U,l).then(function(y){Lv8(U,l,y,D);return y}))})};
var JfT=function(l,D){var U;return _.P(function(n){if(l.numFetches<Btw)return l.numFetches+=1,n.return(qZP(l,D).finally(function(){--l.numFetches;if(Object.keys(l.queuedResponseResolvers).length){var y=Object.keys(l.queuedResponseResolvers)[0],A=l.queuedResponseResolvers[y];delete l.queuedResponseResolvers[y];A.resolve(JfT(l,y))}}));
U=new _.Au;l.queuedResponseResolvers[D]=U;return n.return(U.promise)})},qZP=function(l,D,U){U=U===void 0?2:U;
var n;return _.P(function(y){n={credentials:"same-origin",priority:"low"};return y.return(_.nC.fetch(D,n).then(function(A){return A.ok?A:Promise.reject(Error("yj`"+A.status+"`"+A.statusText))}).catch(function(A){if(U>0)return qZP(l,D,U-1);
throw A;}))})},Lv8=function(l,D,U,n){_.P(function(y){return n?y.return(new Promise(function(A){_.oI(_.Tn,function(){var C,h;
return _.P(function(b){switch(b.nextAddress){case 1:if(!l.isNetworkFirstStrategy){C=void 0;b.jumpTo(2);break}return b.yield(n.match(D).catch(function(){}),3);
case 3:C=b.yieldResult;case 2:if(h=C){b.jumpTo(4);break}return b.yield(n.put(D,U.clone()).catch(function(u){qX({error:(u==null?0:u.toString)?u.toString():"",url:D})}),4);
case 4:A(),_.Kz(b)}})},50)})):y.return()})};
Lo.prototype.getCacheStorageResponse=function(l,D){return _.P(function(U){return D?U.return(D.match(l).then(function(n){return n&&n.ok?n:Promise.reject()})):U.return(Promise.reject())})};
var C0$=function(l,D){D===void 0||l.getAttribute("viewBox")||l.setAttribute("viewBox","0 0 "+D+" "+D);l.setAttribute("focusable","false");l.setAttribute("aria-hidden","true");try{l.style.pointerEvents="none",l.style.display="inherit",l.style.width="100%",l.style.height="100%"}catch(y){var U;qX({error:((U=y)==null?0:U.toString)?y.toString():""});try{l.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(A){var n;qX({error:((n=A)==null?0:n.toString)?A.toString():
""})}}return l},vg5=function(l){for(var D=_.B(WvH),U=D.next();!U.done;U=D.next())if(l.startsWith(U.value)&&l.endsWith(".svg"))return!0;
return!1};
Lo.prototype.resolveIcon=function(l){return this.iconSet.resolveIcon(l)};
var qX=function(l){_.II(new _.rc("Error in IconManager",l))},hG5=function(l){if(_.q("wil_icons_cache_purge_killswitch"))return!1;
try{var D=_.nC.localStorage}catch(A){return!1}if(!D||!l.cacheStorageAvailable)return!1;var U=function(A){try{var C;(C=D)==null||C.setItem("yt-icons-last-purged",A.toString())}catch(b){var h;qX({error:((h=b)==null?0:h.toString)?b.toString():""})}},n=Number(D.getItem("yt-icons-last-purged"));
if(!n)return n=new Date,n=n.setDate(n.getDate()-Math.floor(Math.random()*90+1)),U(n),!1;if(function(A,C){A=new Date(A);C=new Date(C);return C.getMonth()-A.getMonth()+12*(C.getFullYear()-A.getFullYear())}(n,Date.now())<3)return!1;
try{return _.nC.caches.delete("yt-icons").then(function(A){A&&U(Date.now());return A}).catch(function(){return!1}).finally(function(){l.isPurging=!1})}catch(A){var y;
qX({error:((y=A)==null?0:y.toString)?A.toString():""});return!1}};
Lo[Lt]=[wY2,_.oO,_.G8(fYJ)];_.MX=function(l,D){this.iconManager=l;this.iconsToFetch=D};
_.MX[Lt]=[_.ne,_.G8(zUJ)];var MMH=function(){};var RGW=function(l,D,U){this.requestKey=l;this.nwZ=D;this.c3t=U;this.xV7=function(){return new XMLHttpRequest};
this.klv=void 0;this.wfl=[]};
RGW.prototype.getLatestChallengeResponse=function(){return this.c3t};
var aJ7=function(l,D,U){var n,y,A,C;return _.P(function(h){if(h.nextAddress==1){_.m0("attestation_challenge_fetch");_.ae("att_fs",void 0,"attestation_challenge_fetch");if(!l.klv)throw new _.pb(9,"Missing fetcher");return h.yield(l.klv(D,U),2)}n=h.yieldResult;A=(y=n)==null?void 0:y.bgChallenge;if(!A)throw new _.pb(15,"Missing field");l.c3t=n;l.wfl.forEach(function(b){b(n)});
C=sFK(A);_.ae("att_fc",void 0,"attestation_challenge_fetch");ez("attestation_challenge_fetch");return h.return(C)})},IJh=function(l,D){var U,n,y,A,C;
return _.P(function(h){switch(h.nextAddress){case 1:U=new Mx(100,3E5,.25,2),n=void 0;case 2:if(!(U.currBackoffCount_<10)){h.jumpTo(4);break}_.ZY(h,5);if(!(U.currBackoffCount_>0)){h.jumpTo(7);break}return h.yield(uzG(U.getValue()),7);case 7:return h.yield(ZkT(l,D),9);case 9:return y=h.yieldResult,h.return(y);case 5:A=_.kF(h);A instanceof _.pb?n=A:(C=A instanceof Error?A.message:"Unknown",n=new _.pb(9,C));jw_(U);h.jumpTo(2);break;case 4:if(n)throw n;throw new _.pb(9,"Unknown error");}})},ZkT=function(l,
D){D=vZz(QG5(new ui_,D),l.requestKey);
var U=new _.Au,n=l.xV7();n.open("POST",l.nwZ);n.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");n.setRequestHeader("Content-Type","application/json+protobuf");n.onload=function(){if(_.AJd(n)){var y=evm(n.responseText);U.resolve(y)}else U.reject(new _.pb(_.hgB(_.aG(n)),n.statusText))};
n.onerror=function(){U.reject(new _.pb(_.hgB(_.aG(n)),n.statusText))};
n.send(D.serialize());return U.promise};var m1W=function(l){this.networkStatusManager=l;this.isDownloaded=Yzs===void 0?function(){return!1}:Yzs;
this.isReady=!1;this.qpJ=eG$(this)},eG$=function(l){var D;
return _.P(function(U){if(U.nextAddress==1)return U.yield($1_(),2);if(U.nextAddress!=3)return D=U.yieldResult,U.yield(wEz(D),3);l.hk=U.yieldResult;Qi9(l.hk).then(function(){l.isReady=!0});
return U.return(l.hk)})},aQJ=function(l,D,U){l.hk?(l=l.hk.bhv({rK:U,
rdL:!0,u9u:!0}),D.serviceIntegrityDimensions={poToken:l}):_.EU(Error("Aj"))};
m1W.prototype.processContext=function(l){var D=this;if(!l.input.match(_.T3(fFr)))return _.Qn();var U=l.innerTubeRequest,n=U.videoId;return!n||this.isDownloaded(U)||this.networkStatusManager&&!this.hk&&!this.networkStatusManager.isNetworkAvailable()?_.Qn():this.hk?this.isReady?(aQJ(this,U,n),_.Qn()):new vq(Qi9(this.hk).then(function(){aQJ(D,U,n)})):new vq(this.qpJ.then(function(y){return _.P(function(A){if(A.nextAddress==1)return A.yield(Qi9(y),2);
aQJ(D,U,n);_.Kz(A)})}))};var tMJ=new _.A7("WEB_PO_CONTEXT_PROCESSOR");var X3J=function(l,D){var U=this;this.xLh=0;var n;this.ali=(n=D==null?void 0:D.ali)!=null?n:window;this.networkStatusManagerPromise=D==null?void 0:D.networkStatusManagerPromise;var y;this.requestKey=(y=D==null?void 0:D.requestKey)!=null?y:_.e_("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var A;this.qx5=(A=D==null?void 0:D.qx5)!=null?A:function(b){return new zm(b)};
var C;n=(C=D==null?void 0:D.w4o)!=null?C:function(b,u,Q){return new RGW(b,u,Q)};
this.bgChallenge=sFK(l.bgChallenge);this.ttlSeconds=E_3(FZ(l.challenge||""));this.ta=n(this.requestKey,_.q("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.nC.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",l);this.x0d=D==null?void 0:D.x0d;vbd(this.ta);var h;this.xE3=(h=D==null?void 0:D.xE3)!=null?h:function(b){_.Gt(U.ali.document,"visibilitychange",
function(){U.ali.document.visibilityState==="visible"&&b()})}},kZq=function(l){if(!l.vm){var D={maxAttempts:5,
e9r:l.ttlSeconds*1E3};G$g(l.ali);l.vm=l.qx5({ta:l.ta,xu6:{disable:_.q("html5_web_po_disable_remote_logging"),vA:"aGIf",qGX:lP_("html5_web_po_experiment_ids"),fW5:_.q("wpo_dis_lfdms")?0:1E3,b0i:function(n){var y=say.get(n);y||(y=new Nr8(n),y=new aj(y),say.set(n,y));return y}},
mzu:D,rn3:l.bgChallenge,po8:JWs});l.xLh=Date.now();M_7(l.vm,function(){l.xLh=Date.now()});
Ttd(l.vm,function(){return _.P(function(n){return n.return(SZ5(l))})});
var U=l.nIG.bind(l);l.networkStatusManagerPromise&&l.ttlSeconds>0&&l.networkStatusManagerPromise.then(function(n){n.listen("publicytnetworkstatus-online",U)});
l.xE3(U)}};
X3J.prototype.nIG=function(){if(Date.now()>this.xLh+this.ttlSeconds*1E3){var l;(l=this.vm)==null||qGh(l)}};
var SZ5=function(l){if(l.t1u)return l.t1u;if(!l.vm)throw Error("Bj");l.t1u=new sY({vm:l.vm,ta:l.ta,nPu:!0,onError:JWs,mzu:l.x0d});return l.t1u},q$9=function(l,D){l=new X3J(l,D);
kZq(l);(D==null?0:D.dTB)||SZ5(l)};var d18=_.hyr.ephemeralActionSelector,Rs=function(l,D){this.store=l;this.queue=[];D==null||D.addEventListener("yt-navigate-start",this.reset.bind(this))};
Rs.prototype.enqueue=function(l){var D=l.command,U=l.durationMs,n=l.elementToFocus;var y=l.label;var A=l.elementToFocus;l.command?y=_.C3("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:y,shortcut:_.C3("SHIFT_PLUS_ENTER")}):A&&(l=y+". "+_.C3("SHIFT_PLUS_ENTER")+" for more information.",y=_.C3("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:y,shortcut:_.C3("SHIFT_PLUS_ENTER")},l));U={announcement:y,durationMs:U!=null?U:8E3};D?U.command=D:n&&(n.classList.add("ephemeral-action-focusable-element"),U.selector=n.tagName+
".ephemeral-action-focusable-element");this.queue.push(U);Kv$(this)};
Rs.prototype.activate=function(l){var D=d18(this.store.getState());if(D){if(D==null?0:D.command)_.Xk(D.command),this.store.dispatch(F_h(null));if(D==null?0:D.selector)D=document.querySelector(D.selector),_.sGd(D);l.preventDefault()}};
var Kv$=function(l){if(!d18(l.store.getState())&&l.queue.length){var D=l.queue.shift();D&&(l.previousAnnouncement===D.announcement&&(D.announcement+="\u00a0"),l.store.dispatch(F_h(D)),l.previousAnnouncement=D.announcement,l.timeoutId=setTimeout(function(){if(D.selector){var U;(U=document.querySelector(D.selector))==null||U.classList.remove("ephemeral-action-focusable-element")}l.store.dispatch(F_h(null));Kv$(l)},D.durationMs))}};
Rs.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(F_h(null));this.queue.length=0;this.timeoutId=void 0};
Rs[Lt]=[_.Op,_.G8(_.xp)];_.ZH=new _.A7("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var cf$=new _.A7("AUTH_SERVICE_TOKEN");var ZX$=_.wL(["about:blank"]),RoB;var p38=new _.A7("API_IFRAME_TOKEN"),x1W=new _.A7("FETCH_FN_TOKEN"),jNq=new _.A7("WINDOW_REQUEST_TOKEN"),Fv$=new _.A7("TEXT_DECODER_TOKEN");var t98;t98=new _.A7("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.og8=new _.A7("MISC_UI_SHARED_FLAGS_TOKEN");var w3w=function(){};
w3w.prototype.getFlag=function(l){if(l.configType!==2)throw Error("Cj");return rf$(l)};
var rf$=function(l){switch(l.flagType){case "bool":return _.q(l.flagName);case "int":return _.F8(_.RG(l.flagName));case "double":return _.RG(l.flagName);case "string":return _.e_(l.flagName);case "int32_list":return lP_(l.flagName);case "int64_list":return lP_(l.flagName).map(function(D){return _.F8(D)});
case "string_list":return _.md(l.flagName);default:throw Error("Dj");}};var eX=function(l,D,U){D=D===void 0?{}:D;wC.call(this,U===void 0?"uninitialized":U);this.env=l;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}];D.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=D.shouldWaitOnAsyncImmediate)};
_.Z(eX,wC);eX.prototype.init=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return D.processPluginOptions.shouldWaitOnAsyncImmediate?n.yield(l(D.env),2):(l(D.env),n.jumpTo(2));if(n.nextAddress!=4)return D.jobSet?n.yield(D.jobSet.completedResolver.promise,4):n.jumpTo(4);U=_.PN();U.parkOrScheduleJob(function(){D.transition("rendering")},10,"ci");
_.Kz(n)})};
eX.prototype.initialRender=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return D.processPluginOptions.shouldWaitOnAsyncImmediate?n.yield(l(D.env),2):(l(D.env),n.jumpTo(2));if(n.nextAddress!=4)return D.jobSet?n.yield(D.jobSet.completedResolver.promise,4):n.jumpTo(4);U=_.PN();U.parkOrScheduleJob(function(){D.transition("rendered")},10,"cr");
_.Kz(n)})};
eX.prototype.afterRenderImmediate=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return D.processPluginOptions.shouldWaitOnAsyncImmediate?n.yield(l(D.env),2):(l(D.env),n.jumpTo(2));if(n.nextAddress!=4)return D.jobSet?n.yield(D.jobSet.completedResolver.promise,4):n.jumpTo(4);U=_.PN();U.parkOrScheduleJob(function(){D.transition("after-render-deferred")},10,"carml");
_.Kz(n)})};
eX.prototype.afterRenderDeferred=function(l){var D=this;return _.P(function(U){l(D.env);_.Kz(U)})};_.IN("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var zG2={},fQJ=(zG2.rendered={priority:0,callback:function(l){Bu_(l.injector.resolve(w$))}},zG2);var R$_=new _.A7("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),$1$=new _.A7("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var Nt8=function(l){this.callbackFnMap=l;this.configMap={}};
Nt8.prototype.handleResponse=function(l){var D;if(l=(D=l.responseContext)==null?void 0:D.serviceTrackingParams)for(D=_.B(l),l=D.next();!l.done;l=D.next()){l=l.value;var U=l.params,n=l.service;if(U&&n){this.configMap[n]||(this.configMap[n]=new uqm);l=this.configMap[n];var y=void 0,A=(y=this.callbackFnMap)==null?void 0:y[n];U=_.B(U);for(n=U.next();!n.done;n=U.next())y=n.value,n=y.key,y=y.value,n&&y&&(l.set(n,y),A&&A(n,y))}}};
Nt8.prototype.getConfig=function(l){return this.configMap[l]||void 0};
Nt8[Lt]=[_.G8($1$)];var sN2=!1,pug=0,k$N=null,cWg=null;var EgT=new _.A7("NETWORK_SLI_TOKEN");var Ttr=function(l){this.networkSli=l};
Ttr.prototype.fetch=function(l,D,U){var n=this,y;return _.P(function(A){y=IQv(n,l,D);return A.return(fetch(y).then(function(C){return n.handleResponse(C,U)}).catch(function(C){_.II(C);
if((U==null?0:U.expectJsonStrict)&&C instanceof o3&&C.errorType===1)return Promise.reject(C)}))})};
var a__=function(l,D,U,n){var y,A,C,h,b,u,Q;return _.P(function(G){switch(G.nextAddress){case 1:return y=IQv(l,D,U),_.ZY(G,2),G.yield(fetch(y),4);case 4:A=G.yieldResult;_.WG(G,3);break;case 2:throw _.kF(G),new o3(2,"Failed to parse streaming response",y.url);case 3:if(!A.redirected&&!A.ok)throw(C=l.networkSli)==null||C.failure(),new _.rc("Streaming fetch request not ok",y.url);if(!A.body)throw new _.rc("No response body in streaming response",y.url);h={};if(_.q("web_streaming_fast"))return b=A.body.getReader(),
G.return(Hk$(l,b,h,n));u=A.body.pipeThrough(new TextDecoderStream).getReader();Q=new _.G2;return G.return(YZv(l,u,Q,PY3,h,n))}})},IQv=function(l,D,U){if(l.networkSli){var n=_.kZ(_.E9(D,"key"))||"/UNKNOWN_PATH";
l.networkSli.start(n)}l=U;_.q("wug_networking_gzip_request")&&(l=gu_(U));return new window.Request(D,l)},Hk$=function(l,D,U,n){var y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I,iG,CC,vo,td,GN,Ms,j3,wl,zN,Z7,Lm,Vg;
return _.P(function(v5){switch(v5.nextAddress){case 1:y=new TextDecoder("utf-8"),A=[],h=C=0,_.ZY(v5,2,3);case 5:return v5.yield(D.read(),8);case 8:b=v5.yieldResult;u=b.value;if(Q=b.done){G=0;if(A.length>C)for(G=A[C].length-h,J=C+1;J<A.length;J++)G+=A[J].length;G>0&&(L=xS3(A,G,C,h),R=L.indexOf(123),a=L.lastIndexOf(125),R!==-1&&a!==-1&&a>R&&(S=L.subarray(R,a+1),d=JSON.parse(y.decode(S)),PY3(U,d),c=void 0,(c=n)==null||c(U,d)));N=void 0;(N=l.networkSli)==null||N.success();return v5.return(U)}A.push(u);
z=C;for(f=h;z<A.length;)if(I=A[z],iG=I.indexOf(10,f),iG===-1){if(z===A.length-1)break;z++;f=0}else{CC=z;vo=iG+1;td=0;if(C===CC)td=vo-h;else{td=A[C].length-h;for(GN=C+1;GN<CC;GN++)td+=A[GN].length;td+=vo}Ms=xS3(A,td,C,h,CC,vo);j3=Ms.indexOf(123);wl=Ms.lastIndexOf(125);if(j3!==-1&&wl!==-1&&wl>j3){zN=Ms.subarray(j3,wl+1);try{Z7=JSON.parse(y.decode(zN)),PY3(U,Z7),Lm=void 0,(Lm=n)==null||Lm(U,Z7)}catch(mk){throw new o3(1,"Failed to parse streaming response object",y.decode(zN));}}C=z;f=h=iG+1;h===I.length&&
(C++,h=0,z=C,f=0)}v5.jumpTo(5);break;case 3:_.aV(v5);D.releaseLock();_.Sc(v5,0);break;case 2:Vg=_.kF(v5);if(Vg instanceof o3)throw Vg;throw new o3(1,"Failed to process streaming response");}})},YZv=function(l,D,U,n,y,A){var C,h,b,u,Q,G,J,L,R;
return _.P(function(a){if(a.nextAddress==1)return a.yield(D.read(),2);C=a.yieldResult;h=C.value;if(b=C.done)return(u=l.networkSli)==null||u.success(),a.return(y);try{Q=U.parse(h)}catch(S){throw new o3(1,"Failed to parse streaming response",h);}if(Q!=null)for(G=_.B(Q),J=G.next();!J.done;J=G.next())L=J.value,n(y,L),R=void 0,(R=A)==null||R(y,L);return a.return(YZv(l,D,U,n,y,A))})};
Ttr.prototype.handleResponse=function(l,D){var U=l.text().then(function(n){if((D==null?0:D.jspbResponseCtor)&&l.ok)return Ijd(D.jspbResponseCtor,n);n=n.replace(")]}'","");if((D==null?0:D.expectJsonStrict)&&n)try{var y=JSON.parse(n)}catch(C){throw new o3(1,"JSON parsing failed after fetch");}var A;return(A=y)!=null?A:JSON.parse(n)});
l.redirected||l.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),U=U.then(function(n){_.II(new _.rc("Error: API fetch failed",l.status,l.url,n));return Object.assign({},n,{errorMetadata:{status:l.status}})}));
return U};
Ttr[Lt]=[_.G8(EgT)];var OkW=new _.A7("NETWORK_MANAGER_TOKEN");var VM$=[1,2,4,8,16,30],lJ8=function(l){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=l.maxTimeMs;this.maxFrameCount=l.maxFrameCount===void 0?Math.ceil(60*l.maxTimeMs/1E3):l.maxFrameCount;l=_.B(VM$);for(var D=l.next();!D.done;D=l.next())this.brokenFrameSummarizers.push(new it$(D.value/60*1E3))},DKq=function(l){var D=l.frameCountInternal>=l.maxFrameCount;
return l.elapsedTimeMs>=l.maxTimeMs||D};
lJ8.prototype.summarize=function(){for(var l=[],D=_.B(this.brokenFrameSummarizers),U=D.next();!U.done;U=D.next())U=U.value,U=U.brokenFrameCount!==0?{severityMs:Math.round(U.targetFrameTimeMs),eventCount:U.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(U.averageDurationBetweenEventsMs)}:void 0,U&&l.push(U);return{summaries:l,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.QP.Object.defineProperties(lJ8.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 it$=function(l){this.targetFrameTimeMs=l;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.QP.Object.defineProperties(it$.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var UK$=function(){};
UK$.prototype.start=function(l,D){var U=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var n=new lJ8({maxTimeMs:l});this.monitor=n;this.lastSummaryInternal=void 0;this.metadataToLog=D;return new Promise(function(y){var A=function(C){if(C===void 0)U.stop(),y(void 0);else if(U.monitor!==n)C=Object.assign({},n.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),y(C);else{var h=U.monitor;if(!DKq(h)){h.frameCountInternal++;if(h.prevTime===
void 0)h.startTime=C;else for(var b=C-h.prevTime,u=_.B(h.brokenFrameSummarizers),Q=u.next();!Q.done;Q=u.next()){Q=Q.value;var G=Q.currTimeMs;Q.currTimeMs+=b;b>Q.targetFrameTimeMs+2&&(Q.brokenFrameCount++,Q.timeOfFirstBrokenFrameMs===void 0&&(Q.timeOfFirstBrokenFrameMs=G),Q.timeOfLastBrokenFrameMs=G)}h.prevTime=C}DKq(U.monitor)?y(U.stop()):_.Tn.addJob(A,5,0)}};
_.Tn.addJob(A,5,0)})};
UK$.prototype.stop=function(l){if(!this.monitor)return this.lastSummaryInternal;var D=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(D.monitoringDurationMs){l=l!=null?l:this.metadataToLog;var U={droppedFramesSummary:D,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};l&&(U[l.type]=l.data);_.Na("manualSmoothnessMeasurement",U)}this.monitor=void 0;this.lastSummaryInternal=D;this.metadataToLog=void 0;return D};_.nZJ=new _.A7("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var yc8;yc8=function(l){this.JSC$18903_expiringStorage=new ft(l)};
_.Ac2=function(l){if(_.ji3()&&(l=_.$tK(_.oG()+"::"+l)))return new yc8(l)};
yc8.prototype.set=function(l,D,U){U=U!==void 0?Date.now()+U:void 0;this.JSC$18903_expiringStorage.set(l,D,U)};
yc8.prototype.get=function(l){return this.JSC$18903_expiringStorage.get(l)};
yc8.prototype.remove=function(l){this.JSC$18903_expiringStorage.remove(l)};_.mI=function(){};
_.mI.getInstance=function(){var l=_.UG("ytglobal.storage_");l||(l=new _.mI,_.vG("ytglobal.storage_",l));return l};
_.mI.prototype.estimate=function(){var l,D,U;return _.P(function(n){l=navigator;return((D=l.storage)==null?0:D.estimate)?n.return(l.storage.estimate()):((U=l.webkitTemporaryStorage)==null?0:U.queryUsageAndQuota)?n.return(FZ9()):n.return()})};
_.vG("ytglobal.storageClass_",_.mI);var NO9=0;var OX9=!1;var Wdr=_.wL(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Bcv=_.wL(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var w7H={"/":_.zA,"/?feature=ytca":_.zA,"/feed/downloads":_.Tod};var Clv=by2.continuationCommandSelector,hS=function(l,D,U){this.JSC$18919_upliftPromise=l;this.store=D;this.JSC$18919_persistentStorePromiseAccessor=U};
hS.prototype.shouldPreferLocalResponse=function(l){return l.browseId==="FEdownloads"||l.browseId==="FEsmart_downloads"&&_.q("kevlar_modern_downloads_page")?!0:!1};
hS.prototype.localInnertubeResponse=function(l){var D=this;return _.P(function(U){return l.browseId==="FEdownloads"?_.q("kevlar_modern_downloads_page")?U.return(hgJ(D)):U.return(PlT(D)):l.browseId==="FEsmart_downloads"&&_.q("kevlar_modern_downloads_page")?U.return(btJ(D)):U.return(Promise.reject(Error("Fj")))})};
hS.prototype.canProvideFallbackResponse=function(){return!0};
hS.prototype.localFallbackInnertubeResponse=function(l){var D=this,U,n,y;return _.P(function(A){switch(A.nextAddress){case 1:return A.yield(D.JSC$18919_persistentStorePromiseAccessor(),2);case 2:U=A.yieldResult;if(l.browseId!=="SPaccount_downloads"||!U){A.jumpTo(3);break}return A.yield(HD$(U),4);case 4:if(n=A.yieldResult)return A.return(_.TM(n));case 3:return l.browseId==="FEwhat_to_watch"?A.return(gZH(D)):(y=_.q("web_offline_continuation_automatic_retry")||_.q("web_offline_continuation_retry_button"))&&
l.continuation?A.return(uiq(D)):A.return(vZ8(D))}})};
var gZH=function(l){var D;return _.P(function(U){if(U.nextAddress==1)return U.yield(l.JSC$18919_upliftPromise,2);D=_.J9N(l.store.getState().entities);return D.length?U.return(QG2(l,D)):U.return(vZ8(l))})},PlT=function(l){var D,U;
return _.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$18919_upliftPromise,2);if(n.nextAddress!=3)return D=G8J([{offlineItemSectionRenderer:{}}]),n.yield(JcT(l,D),3);U=n.yieldResult;U.onResponseReceivedActions=[BF("REFRESH_DOWNLOADS")];return n.return(U)})},hgJ=function(l){var D,U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S;
return _.P(function(d){if(d.nextAddress==1)return d.yield(l.JSC$18919_upliftPromise,2);if(d.nextAddress!=3)return D=l.store.getState(),U=D.entities,n=_.Z1(U),y=_.es(U),A=_.H$$(D),C=_.I8g(D),h=_.Y03(D),b=_.MyG(U),u=_.vc(n),Q=_.mF(U),G=_.mOC(U),J=_.Vy3(D),L=_.kB(D),R={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.CkG(n,y,b,G,A,C,u,Q,h,J,L),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},a="",_.q("kevlar_modern_downloads_skip_downloads_title")||
(a=_.C3("DOWNLOADS",void 0,"Downloads")),d.yield(Ld$(l,R,a),3);S=d.yieldResult;S.onResponseReceivedActions=[BF("REFRESH_DOWNLOADS")];return d.return(S)})},btJ=function(l){var D,U,n,y,A,C,h,b,u;
return _.P(function(Q){if(Q.nextAddress==1)return Q.yield(l.JSC$18919_upliftPromise,2);if(Q.nextAddress!=3)return D=l.store.getState(),U=D.entities,n=_.Z1(U),y=_.vc(n),A=_.mF(U),C={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Pk_(n),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},h=_.C3("SMART_DOWNLOADS",void 0,"Smart downloads"),b=WT$(y,A),Q.yield(Ld$(l,C,h,b),3);u=Q.yieldResult;u.onResponseReceivedActions=
[BF("REFRESH_DOWNLOADS")];return Q.return(u)})},vZ8=function(l){var D,U;
return _.P(function(n){if(n.nextAddress==1)return n.yield(Er(l.JSC$18919_upliftPromise,l.store),2);D=n.yieldResult;U=G8J([sM9(D)]);return n.return(JcT(l,U))})},uiq=function(l){var D,U,n,y;
return _.P(function(A){if(A.nextAddress==1)return D={},U=Clv(l.store.getState()),_.RO(D,_.ko,U),A.yield(Er(l.JSC$18919_upliftPromise,l.store,D,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);n=A.yieldResult;y={};_.RO(y,_.jdH,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:n}}}],targetId:"browse-feedFEwhat_to_watch"});return A.return({responseContext:{},onResponseReceivedActions:[y]})})},G8J=function(l){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:l}}}}]}}},QG2=function(l,D){var U,n;
return _.P(function(y){var A={contents:C4(D)};U=A&&A.contents?A:{};_.q("kevlar_modern_downloads_page")&&(U=Object.assign({},_.bWo(D),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));n={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:U}}}]}};return y.return(JcT(l,n))})},JcT=function(l,D){var U,n;
return _.P(function(y){if(y.nextAddress==1)return y.yield(l.JSC$18919_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3)return U=y.yieldResult,y.yield(Iz(U),3);n=y.yieldResult;return y.return({responseContext:{},contents:D,topbar:n})})},Ld$=function(l,D,U,n){var y,A;
return _.P(function(C){if(C.nextAddress==1)return C.yield(l.JSC$18919_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3)return y=C.yieldResult,C.yield(Iz(y),3);A=C.yieldResult;var h=C.return;var b=U;var u=n;b=b===void 0?"":b;u=u===void 0?"":u;b={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:b}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.C3("SETTINGS",void 0,"Settings"),accessibilityText:_.C3("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:_.To("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:u}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:b};
return h.call(C,{responseContext:{},contents:D,topbar:A,header:{pageHeaderRenderer:b}})})};var qGW=function(){this.moduleRegistry={};this.fetchCount=0};
qGW.prototype.isFetching=function(){return this.fetchCount>0};
var dL=function(l,D){l.moduleRegistry[D.toString()]={asyncId:D,isFetching:!1};return l};
qGW.prototype.JSC$18930_loadModules=function(){for(var l=this,D=new Map,U=[],n=_.B(_.EW.apply(0,arguments)),y=n.next();!y.done;y=n.next()){y=y.value;var A=this.moduleRegistry[y];A?A.resolver?D.set(y,A.resolver):(A.resolver=new _.Au,D.set(y,A.resolver),U.push(A.asyncId),A.isFetching=!0):(A=new _.Au,D.set(y,A),A.resolve(void 0))}U.length&&(this.fetchCount+=1,_.Kb(_.Du.getMultipleAsync.apply(_.Du,_.zz(U)).then(function(C){for(var h=0;h<U.length;h++){var b=C[h],u=l.moduleRegistry[U[h].toString()];u.isFetching=
!1;u.resolver.resolve(b)}}).catch(function(C){for(var h=_.B(U),b=h.next();!b.done;b=h.next()){b=b.value;
var u=l.moduleRegistry[b.toString()];u.resolver=void 0;u.isFetching=!1;D.get(b.toString()).reject(C)}}),function(){--l.fetchCount}));
return Promise.all([].concat(_.zz(D.values())).map(function(C){return C.promise}))};_.KE=new _.A7("MODULE_REGISTRY_TOKEN");var M_5={},RgW=(M_5.rendered={priority:0,callback:function(l){a:{var D=void 0;try{var U;b:{if(_.NR9()){var n=_.fPK(_.oG()+"::pom");if(n){var y=new of(n);break b}}y=void 0}var A=(U=y)==null?void 0:U.get("role_text");if(!A)break a;D={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:A}]}}}}}}catch(b){}D&&l.injector.resolve(_.qK).resolveCommand(D)}try{var C=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(C){var h=JSON.parse(C);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
h&&l.injector.resolve(_.qK).resolveCommand(h)}}catch(b){}}},M_5);var Zt2,egv={},mK8=(egv.initialized={priority:10,callback:function(){Zt2=LE()}},egv.rendering={callback:function(l){var D;
return _.P(function(U){if(U.nextAddress==1)return U.yield(Zt2,2);D=U.yieldResult;if(!D.endpoint)throw Error("Hj`"+_.nC.location.href);ZL(l,D);_.Kz(U)})}},egv);var aJ5={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.zz(_.q("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(l){var D=l.stack;if(D.includes("chrome://")||D.includes("chrome-extension://")||l.message.includes("chrome-extension://")||D.includes("moz-extension://")||D.includes("local.adguard.org")||D.includes("auctioneer3.50million.club")||D.includes("youtubedownloader")||
D.includes("youtube_home_page")||D.includes("is_youtube_video_no_longer_available")||D.includes("switchScreenSizeHack")||D.includes("yt_main_big_banner.js")||D.includes("YouTubeCenter.js")||D.includes("/mytube.js")||D.includes("JSON.parseWrapper")||D.includes("/inj_js/common.js")||D.includes("firebug-lite")||D.includes(".repl.co/")||D.includes("linkfix")||D.includes("playAfterAd")||l.message.includes("Access is denied for this document")&&D.includes("<anonymous>")||l.fileName==="user-script"||l.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
D.includes("<anonymous>"))return!0;if(D.includes("https://www.youtube.com"))return!1;l=D.split("\n");if(!l.length)return!1;if(l.length<=3&&D.includes("s.onloadeddata"))return!0;D=0;for(var U=_.B(l),n=U.next();!n.done;n=U.next())n=n.value,(n.includes("https://")||n.includes("http://"))&&D++;return D/l.length>.95},
weight:0},{callback:function(l){return l.message==="Unknown Error"&&l.name.indexOf("NS_")===0},
weight:100},{callback:function(l){if(!_.iB)return!1;var D=l.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||l.message.includes("available to complete this operation"),U=l.stack.includes("webcomponents")&&l.message==="Object doesn't support this action";l=l.message.includes("object that does not implement interface Element");return D||U||l},
weight:0},{callback:function(l){return l.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(l){return l.message==="Operation is not supported"&&(l.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(l){return l.stack.includes("eval code (eval (code:1:1)")||l.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(l){return l.message.includes("Permission denied")&&l.stack.includes("this.domHandler")?!0:l.name.includes("TypeError")&&l.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(l){if(!l.stack)return!1;var D=l.stack.trim().split("\n");D.length&&D[0].endsWith("Error: "+l.message)&&D.shift();D.length&&D[D.length-1].includes("at window.onerror (")&&D.pop();if(!D.length)return!0;if(l.message==="Script error.")return D[0].includes("www.youtube.com")||D.length>=2&&D[0].startsWith("at new")&&D[1].startsWith("at window.onerror");if(l.message==="Unexpected token")return!0;l=_.B(D);for(D=l.next();!D.done;D=l.next())if(D=D.value,!(D.includes("<anonymous>")||
D.startsWith("load@")||D.startsWith("global code@")||D.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(l){return l.message==="Cannot read property 'experiments'"&&l.stack.includes("/s/player/")},
weight:500},{callback:function(l){return l.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(l){return l.stack.includes("/embed.js")?(l.params&&l.params&&(l.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.q("use_error_suppression"))var l=_.H3("SUPPRESS_CLIENT_ERRORS",!1);else{if(l=_.yJ)l=/Chrome\/(\d+)/.exec(_.LC()),l=(l?parseFloat(l[1]):NaN)>=66;l=!(l||_.nh&&_.Uy(65)||_.id&&_.Uy(12.1)||gb&&_.Uy(79))}return l},
weight:500}]};var t_J={},XSJ=(t_J.initialized={priority:10,callback:function(l){l.injector.addProvider({provide:JNH,useValue:l.root});l.injector.addProvider({provide:TsP,useValue:ooG});l.injector.addProvider({provide:Iy5,useValue:aJ5});var D={};l.injector.addProvider((D.provide=HwT,D.useFactory=function(U,n){return function(){v5s(U,n)}},D[Lt]=[TsP,
Iy5],D));l.injector.addProvider({provide:FY,useClass:FY})}},t_J);var SGv={},k8w=(SGv.initialized={priority:3,callback:function(){var l;if(l=xtK()){l=l.replace("/",".");var D=_.bu();D.set("tz",l);D.save();l=!0}else l=!1;l||(l=_.bu(),l.set("utco",-Math.floor((new Date).getTimezoneOffset())),l.save())}},SGv);var dKT={},Kd8=(dKT.initialized={priority:10,callback:function(l){l.injector.resolve(FY).start();l=_.on();var D=_.il("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.il("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.il("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.il("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.yI(_.eRo(),{mainAppWeb:Object.assign({},l,{pageType:D})});_.yI(ae$(),{mainAppWeb:Object.assign({},l,{pageType:D})});
_.yI(tfs(),{mainAppWeb:l});_.yI(Xy3(),{mainAppWeb:l});L0y(function(){_.AS(tfs(),"FAILURE");_.AS(Xy3(),"FAILURE")});
baB();gy9();pw_()}},dKT);var cc2={},pSJ=(cc2.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.ae("dl"),_.PN().processSignal("pcl");else{var l=function(){_.ae("dl");_.PN().processSignal("pcl");window.removeEventListener("load",l)};
window.addEventListener("load",l)}}},cc2);var xKv={},jG2=(xKv.rendering={priority:0,callback:function(){var l=_.PN();l.parkOrScheduleJob(function(){l.processSignal("eocs")},10,"eor",5E3)}},xKv);var Fd2=function(){};
_.Z(Fd2,Pf);
Fd2.prototype.resolveCommand=function(l,D){var U,n,y,A,C,h,b,u;return _.P(function(Q){y=(U=_.M(l,_.nky))==null?void 0:(n=U.dialog)==null?void 0:n.commentReplyDialogRenderer;if(!y)throw new _.rc("No dialog in createCommentReplyDialogEndpoint");C=(A=D.form)==null?void 0:A.event;if(!C)throw new _.rc("Event not passed in when resolving command");h=_.B(C.composedPath());for(b=h.next();!b.done;b=h.next())if(u=b.value,u.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||u.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return u.showReplyDialog(y),Q.return();
_.Kz(Q)})};var as=function(){};
_.Z(as,Pf);as.prototype.resolveCommand=function(l){var D,U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return D=_.M(l,Qxz),(U=D)!=null&&U.externalChannelId?C.yield((0,_.Ud_)("NSzT5"),2):C.return();n=_.oZJ;A=(y=D.forceInstall)!=null?y:!1;return C.yield(n(D.externalChannelId,A),0)})};var tl=function(l){this.JSC$18948_pageRequestService=l;this.JSC$18948_prefetchCoordinator=pE$()};
_.Z(tl,Pf);tl.prototype.resolveCommand=function(l){var D=this,U,n,y,A;return _.P(function(C){if(C.nextAddress==1){U=_.M(l,FP5);if((n=U)==null||!n.taskId)throw Error("Ij");y=U.taskId;_.ZY(C,2);return C.yield(_.COq(D.JSC$18948_pageRequestService,l,{},"").then(function(h){if(!h)throw Error("Jj");},function(h){throw Error("Kj`"+h);
}),4)}if(C.nextAddress!=2)return F7w(D.JSC$18948_prefetchCoordinator,y),_.WG(C,0);
A=_.kF(C);yR(D.JSC$18948_prefetchCoordinator,y,A);_.Kz(C)})};
tl[Lt]=[_.JS];var X1=function(l,D){this.innertubeTransportService=l;this.JSC$18952_commandHandler=D};
_.Z(X1,Pf);X1.prototype.resolveCommand=function(l){var D=this,U,n,y;return _.P(function(A){if(A.nextAddress==1){U=_.M(l,joy);if(U.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||U.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")n=U.boolValue?2:1,_.RZ.getInstance().setState(n,!0,!0);return A.yield(_.oL(D.innertubeTransportService,l),2)}y=A.yieldResult;wSW(D,y);_.Kz(A)})};
var wSW=function(l,D){D.actions&&D.actions.forEach(function(U){l.JSC$18952_commandHandler.resolveCommand(U)})};
X1[Lt]=[_.Ju,_.qK];var SX={},kV=(SX.addToPlaylistEndpoint=Et(P4),SX.addToToastAction=Et(mN),SX.adsControlFlowOpportunityReceivedCommand=Et($E),SX.audioTrackSelectActionCommand=Et(Xf),SX.backgroundAudioPlaybackCommand=Et(d2),SX.captionLanguageSelectActionCommand=Et(Kv),SX.captionPickerEndpoint=Et(c4),SX.changeMiniAppPlayStateCommand=Et(bj),SX.changeTimelyActionVisibilityCommand=Et(eE),SX.channelCreationFormEndpoint=Et(y7),SX.clearLocationCommand=Et(ht),SX.clearUrlParamCommand=Et(g2),SX.copyLinkCommand=Et(zH),SX.copyTextEndpoint=
Et(Hi),SX.createCommentReplyDialogEndpoint=cxK(Fd2),SX.createPlaylistServiceEndpoint=Et(fv),SX.dismissDialogEndpoint=Et(v4),SX.dismissPlayerOverlayCommand=Et(pv),SX.entityUpdateCommand=Et(ON),SX.feedbackEndpoint=Et(lj),SX.getAnswerCommand=Et(Uq),SX.getPaymentsClientTokenCommand=Et(kU),SX.getTranscriptEndpoint=Et(a3),SX.googlePaymentBillingCommand=Et(dJ),SX.googlePaymentPurchaseManagerCommand=Et(KR),SX.hideEngagementPanelEndpoint=Et(Jt),SX.hideSheetCommand=Et(Lv),SX.hideSnackbarCommand=Et(GR),SX.insertRichSectionCommand=
Et(W4),SX.listMutationCommand=Et(B4),SX.logGtmCommand=Et(At),SX.notifyDropdownOptionSelectedCommand=Et(uj),SX.openAdAllowlistInstructionCommand=Et(_.NI),SX.openOnePickAddVideoModalCommand=Et(Np),SX.persistSubscriptionsDisplayPreferencesCommand=Et(Yj),SX.pingingEndpoint=Et(sN),SX.playlistEditEndpoint=Et(E8),SX.playlistVotingRefreshPopupCommand=Et(TH),SX.profileCardCommand=Et(ff),SX.refreshPanelEndpoint=Et(qp),SX.saveImageToDeviceEndpoint=Et(YE),SX.scrollToSectionEndpoint=cxK(ehw),SX.seekToVideoTimestampCommand=
Et(xj),SX.selectCountryCommand=Et(O8),SX.setCookieCommand=Et(V7),SX.setLocalStorageCommand=Et(LR),SX.setPrefStorageEntryCommand=Et(DM),SX.setSettingEndpoint=Et(X1),SX.sfvAudioItemPlaybackCommand=Et(jb),SX.shareImageCommand=Et(nR),SX.sharingProviderDataCommand=Et(ye),SX.showAudioTrackPickerActionCommand=Et(Ff),SX.showCaptionLanguageSelectActionCommand=Et(oc),SX.showCreatorChatbotEngagementPanelCommand=Et(as),SX.showDialogCommand=Et(Z6),SX.showEngagementPanelEndpoint=Et(eb),SX.showFullscreenPlayerControlsCommand=
Et(w2),SX.showSheetCommand=Et(my),SX.showSnackbarCommand=Et(J0),SX.showTransientPlayerScrimOverlayCommand=Et(r2),SX.submitFormWithValidationFlowCommand=Et(nv),SX.talkToRecsDeselectCommand=Et(qm),SX.talkToRecsNextCommand=Et(Mm),SX.talkToRecsSelectCommand=Et(R3),SX.talkToRecsUpdateTextCommand=Et(ZM),SX.toggleEngagementPanelCommand=Et(ac),SX.undoFeedbackEndpoint=Et(U8),SX.updateEngagementPanelContentCommand=Et(tt),SX.updateUrlParamCommand=Et(t0),SX.updateVideoMetadataCommand=Et(SE),SX.verifyCommand=
Et(y7),SX.webNativeShareCommand=Et(A0),SX.webSubmitFormCommand=Et(Ic),SX.ACK_PLAYABLES_3P_DATA_CONSENT=Et(WJ),SX.CANCEL_NAVIGATION=Et(BJ),SX.COPY_SHARE_URL=Et(CR),SX.MINI_APP_EXIT_DIALOG_SEEN=Et(PJ),SX.MINI_APP_OPEN_URL=Et(h0),SX.REQUEST_MINI_APP_FULLSCREEN=Et(bf),SX.RESUME_NAVIGATION=Et(gJ),SX.SHARE_PLAYABLE_WITH_HIGH_SCORE=Et(uf),SX.TELL_US_WHY=Et(D6),SX);_.q("web_enable_prefetching_videos_on_home")&&(kV.prefetchWatchCommand=Et(tl),kV.registerTasksCommand=Et(WX));
_.q("enable_share_panel_navigation_logging_fix_on_web")&&(kV.shareEntityServiceEndpoint=Et(Mp));_.q("web_use_flow_state_manager")&&(kV.flowNextStepCommand=Et(K6J),kV.flowPrevStepCommand=Et(pY2),kV.getFlowCommand=Et(jVv),kV.updateFlowCommand=Et(oK));_.q("enable_ai_companion")&&(kV.updateConversationIdCommand=Et(IK),kV.formDataDecoratorCommand=Et(TG));var Tpv=Object.assign({},kV);var rc8={},zg8=(rc8.initialized={priority:10,callback:JbG},rc8);var fJW={},$K8=(fJW.initialized={callback:function(l){var D={},U={};D7s().install((D.document_disposed={callback:function(){_.q("finalize_all_timelines")?E0$():Re();dSC("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.LV$();var n=l.injector.resolve(FY);n.intervalId!==void 0&&(n.intervalId&&_.Tn.cancelJob(n.intervalId),n.intervalId=void 0,--n.currentPartitionIndex,n=n68(n),n>0&&cg8({mainAppWeb:_.on(),survivalSli:{partitionMinute:n,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));mY7(g3);uc!=null&&
uc.flush();lV&&lV.snapshotAndFlush();n=_.B(say.values());for(var y=n.next();!y.done;y=n.next())y.value.snapshotAndFlush()}},D),(U.flush_logs={callback:function(){_.sU()}},U))}},fJW);var Nc8={},sGr=(Nc8.rendered={priority:0,callback:function(){var l=new y3y;l.increment("STARTED");if(_.H3("LOGGED_IN")&&!_.H3("IS_DBSC",!1)&&_.H3("SERVER_VERSION")!=="test"&&_.H3("SERVER_VERSION")!=="dev"&&!fY8()&&!zU8()){l.increment("EXECUTING");var D=document.createElement("iframe");D.style.display="none";_.l8(D,2,_.Ng("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.H3("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(D);l.increment("DONE")}}},
Nc8);var EZq={},Tcr=(EZq.rendered={callback:function(){pE$().resume()}},EZq);var IJW={acknowledgeChannelTouStrikeCommand:df(uE),addToPlaylistServiceEndpoint:df(L1),addToPlaylistEndpoint:df(L1),addUpcomingEventReminderEndpoint:df(jB),browseEndpoint:df(JA5),channelCreationFormEndpoint:df(A$),channelCreationServiceEndpoint:df(W8),claimLegacyYoutubeChannelEndpoint:df(Eq),clearSearchHistoryEndpoint:df(SB),clearWatchHistoryEndpoint:df(kc),commerceActionCommand:K0(rd),createBackstagePostEndpoint:df(rJ),createBroadcastCommand:df(FB),createCommentEndpoint:df(Dw),createCommentReplyEndpoint:df(lE),
createLiveChatPollEndpoint:df(ok),createPlaylistServiceEndpoint:df(qo),crossAccountChannelTransferEndpoint:df(c8),deleteLiveChatMessageCommand:df(wa),deletePlaylistEndpoint:df(Mo),deleteVideoEndpoint:df(ji),dismissalEndpoint:df(Q9),feedbackEndpoint:df(GJ),flagEndpoint:df(tp),getAccountSwitcherEndpoint:df(KH),verifyCommand:df(wJ),getAccountsListInnertubeEndpoint:df(xc),getCommentsFromInboxCommand:df(lM),getDownloadActionCommand:df(C1),getFlowCommand:K0(XB),getKidsBlocklistPickerCommand:df(Xq),getNotificationMenuEndpoint:df(MUw),
getPaymentInstrumentsParamsCommand:df(EH),getPaymentsClientTokenCommand:K0(rd),getPdgBuyFlowCommand:df(G0),getReportFormEndpoint:df(Si),getSearchInVideoCommand:df(K1),getAnswerCommand:df(dd),getSurveyCommand:df(xl),getTranscriptEndpoint:df(oE),getPostVideoPreviewEndpoint:df(fR),decorateMessageEndpoint:df(zR),likeEndpoint:df(B8),liveChatActionEndpoint:df($c),liveChatEndpoint:df(fH),liveChatItemContextMenuEndpoint:df(ra),liveChatPurchaseMessageEndpoint:df(N_),liveChatReplayEndpoint:df(zJ),manageLiveChatUserEndpoint:df(E6),
metadataUpdateCommand:df(V9),moderateLiveChatEndpoint:df(TJ),modifyChannelNotificationPreferenceEndpoint:df(Ap),notificationOptOutEndpoint:df(Wa),openSuperStickerBuyFlowCommand:df(s6),performCommentActionEndpoint:df(Oq),playlistEditEndpoint:df(Z_),playlistEditorEndpoint:df(RE),recordNotificationInteractionsEndpoint:df(Ba),reelWatchEndpoint:df(ei),refreshPanelEndpoint:df(Pa),removeUpcomingEventReminderEndpoint:df(Ik),resolveLocationCommand:df(O6),revealBusinessEmailCommand:df(TR),searchEndpoint:df(_.R3T),
sendLiveChatMessageEndpoint:df(H8),sendLiveChatVoteEndpoint:df(Yc),setSettingEndpoint:df(CH),shareEntityServiceEndpoint:K0(bE),sharingProviderDataCommand:df(p1),showEngagementPanelEndpoint:df(bM),showMoreDrawerCommand:df(uM),showSheetCommand:df(va),showDialogCommand:df(gd),subscribeEndpoint:df(h$),transcriptSubmitCaptionCorrectionCommand:df(Fq),undoFeedbackEndpoint:df(LH),unsubscribeEndpoint:df(P8),updateBackstagePostEndpoint:df(Nm),updateCommentEndpoint:df(nH),updateCommentReplyEndpoint:df(U6),updateCommentsSettingsEndpoint:df(y9),
updateCreatorChannelInnertubeCommand:df(HJ),updateKidsBlacklistEndpoint:df(kl),updateEngagementPanelContentCommand:df(Qt),updatePdgFeatureEnablementCommand:df(Jp),updatedMetadataEndpoint:df(iM),validateChannelHandleCommand:df(YU),updateChannelPageSettingsEndpoint:df(I3),verifyAgeEndpoint:df(t$),watchEndpoint:K0(xU),whitelistEditEndpoint:df(wd),ypcCancelRecurrenceEndpoint:df(z0),ypcCompleteTransactionEndpoint:df(f1),ypcFixInstrumentEndpoint:df(No),ypcGetCartEndpoint:df($l),ypcGetOffersEndpoint:df(sH),
ypcHandleTransactionEndpoint:K0(T0),ypcLogWalletAnalyticDataEndpoint:df(IE),ypcOffersEndpoint:df(Ha),ypcPauseSubscriptionCommand:df(Yl),ypcRedeemCodeEndpoint:df(OH),ypcResumeSubscriptionCommand:df(Vt),ypcUpdateFopEndpoint:df(No)},dw={},HtW=(dw.GET_ACCOUNT_MENU=df(pH),dw.GET_NOTIFICATIONS_MENU=df(qd$),dw.GET_NOTIFICATIONS_INBOX=df(D_),dw.GET_UNSEEN_NOTIFICATION_COUNT=df(n1),dw.GET_USER_MENTION_SUGGESTIONS=df($U),dw.LOAD_GUIDE=df(L7r),dw.SUBMIT_FEEDBACK=df(J$),dw),Ko={},YG8=(Ko.CONTINUATION_REQUEST_TYPE_BROWSE=
df(sq),Ko.CONTINUATION_REQUEST_TYPE_SEARCH=df(ca),Ko.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=df(kj),Ko.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=df(da),Ko.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=df(iE),Ko.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=df(Ve),Ko.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=df(aE),Ko.CONTINUATION_REQUEST_TYPE_GET_PANEL=df(hp),Ko),Otw={player:K0(xU),watchNext:df(Sb)},V_8={player:K0(xU),reelItemWatch:df(ei),reelWatchSequence:df(mx)},i6J={watchEndpoint:K0(jE)},llH=
{commandEndpointMap:IJW,signalEndpointMap:HtW,continuationEndpointMap:YG8,watchEndpointMap:Otw,reelWatchEndpointMap:V_8,streamingEndpointMap:i6J};var DZ$,UZ$,nH$;_.y3H=((UZ$=(DZ$=window).matchMedia)==null?void 0:(nH$=UZ$.call(DZ$,"(prefers-reduced-motion: reduce)"))==null?void 0:nH$.matches)||!document.startViewTransition;var A3q={},WWH={disableAllTransitions:_.y3H,ignoredErrors:(A3q.DOCUMENT_HIDDEN=!0,A3q.WINDOW_SIZE_CHANGED=!0,A3q.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,A3q),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var BbJ=_.wL("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),hvH=function(l){var D=this;this.viewTransitionCoordinator=
l;this.disableTransitionsForUltraHigh=_.q("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=Cdq();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.e_("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.q("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.q("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.q("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.e_("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.q("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.Tn.addJob(function(){D.registerRootElement();if(D.isAnyTransitionEnabled){var U=
_.RG("web_page_transition_exit_ms"),n=_.RG("web_page_transition_wait_ms"),y=_.RG("web_page_transition_enter_fast_ms"),A=_.RG("web_page_transition_watch_exit_ms"),C=_.RG("web_page_transition_watch_wait_ms"),h=_.RG("web_page_transition_watch_enter_ms"),b=_.RG("web_page_transition_watch_next_exit_ms"),u=_.RG("web_page_transition_watch_next_wait_ms"),Q=_.RG("web_page_transition_watch_next_enter_fast_ms"),G=_.RG("web_page_transition_enter_ms"),J=_.RG("web_page_transition_watch_next_enter_ms");D.enableFasterTransitions&&
D.isUltraHighBucketDevice&&(G=y,J=Q);isNaN(U)&&isNaN(n)&&isNaN(G)&&isNaN(A)&&isNaN(C)&&isNaN(h)&&isNaN(b)&&isNaN(u)&&isNaN(J)||!(U=FL3(BbJ,U,n,G,A,C,h,b,u,J))||(n=document.createElement("style"),n.textContent=Gz$(U),document.head.appendChild(n))}},8)},Cdq=function(){var l=_.nC.navigator.deviceMemory;
return l>=8||l===void 0?!0:!1};
hvH.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var l={};this.viewTransitionCoordinator.registerElement(document.documentElement,(l.slide="root-slide",l["lockup-to-watch"]="root-lockup-to-watch",l["learning-journey"]="root-learning-journey",l))}};
_.ft5=function(l,D){l.isLockupToWatchTransitionEnabled&&l.isLockupThumbnailRegistrationEnabled&&(l.registeredLockupThumbnail?l.lockupThumbnailRegisteredFromWatchEndpoint?_.II(new _.rc("Lockup thumbnail registration order is incorrect.")):_.II(new _.rc("Lockup thumbnail already registered.")):(l.registeredLockupThumbnail=D,_.Pd2(l,D)))};
_.Pd2=function(l,D){var U={};l.viewTransitionCoordinator.registerElement(D,(U["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",U),!0)};
hvH[Lt]=[VN2];var Lj3={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 MCN=["videoPrimaryInfoRenderer","title"],Rko=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var b62;b62=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.gHP=_.w(function(l){l=_.sl(l,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var D=l.data,U=l.playlistData,n=l.expanded,y=l.onExpandClick,A=l.isReadyToResume,C=function(){var Q;return!((Q=U())==null||!Q.contents)},h=function(){var Q=U();
return Q&&Q.totalVideos&&Q.currentIndex!==void 0?Q.currentIndex+1+" / "+Q.totalVideos:""};
l=_.n0(function(){_.cX(_.Jc().resolve(_.kq));return!1});
var b=_.n0(function(){C()&&y&&y()}),u={};
return _.g("ytd-miniplayer-info-bar",{class:_.DV("ytdMiniplayerInfoBarHost",(u.ytdMiniplayerInfoBarHasPlaylistData=C,u)),"on:click":b},_.g("div",{class:"ytdMiniplayerInfoBarContent"},_.g("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":l},_.g(_.BO,{text:function(){var Q=D();var G=U();if(G==null?0:G.contents){var J;Q=(J=_.i_N(G))==null?void 0:J.title}else Q=Q==null?void 0:Q.miniplayerTitle;return Zal(Q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.g("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.g(_.v,{cond:A,then:function(){return _.g(qXk,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:b62})}}),_.g("h1",null,_.g(_.BO,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var Q=D();var G=U();Q=A()?{simpleText:_.C3("CONTINUE_WATCHING",void 0,"Continue watching")}:(G==null?0:G.contents)?G.titleText:Q==null?void 0:Q.miniplayerSubtitle;return Zal(Q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.g(_.v,{cond:function(){return!!h()&&!A()},
then:function(){return _.g("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.g("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.g("span",null,h))}}))),_.g(_.v,{cond:C,
then:function(){return _.g("div",{class:"ytdMiniplayerInfoBarExpand"},_.g(_.ey,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(Q){y&&(y(),Q.stopPropagation())}}},
iconName:function(){return n()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"yg");var uyw;uyw=_.w(function(l){return _.g("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.g(_.ey,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:l.onTap}},
iconName:"yt-icons:close"}))},"zg");
_.vHT=_.w(function(l){l=_.sl(l,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var D=l.size,U=l.playabilityStatus,n=l.isDisabled,y=l.isPictureInPicture,A=_.bP("div");l=_.B(_.aw(void 0,void 0,"w4RAU"));var C=l.next().value,h=l.next().value;l=_.gf(_.OE);var b=!1,u=function(){return D().height<=0};
_.$i(function(){var L=D(),R=u(),a=C();a&&!R&&a.setInternalSize(L.width,L.height)},"BHFc2b");
_.$g(function(){var L,R,a;return _.P(function(S){if(S.nextAddress==1){L=_.Jc().resolve(_.kq);R=L.getPlayerElement();if(!L.isMiniplayerActive()||!R||!A.value)return S.return();R.appendTo(A.value);return S.yield(R.getPlayerPromise(),2)}a=S.yieldResult;y()||a.setSizeStyle(!1,!0);h(a);_.Kz(S)})});
_.NV(function(){Q()});
_.$i(function(){var L=C();if(L)if(n()){var R=L.getPlayerState();(b=R===-1||R===1||R===3)&&L.pauseVideo()}else Q()},"Invykd");
var Q=function(){if(b){b=!1;var L;(L=C())==null||L.playVideo()}},G=_.n0(function(){_.cX(_.Jc().resolve(_.kq))}),J={};
return _.g("ytd-miniplayer-player-container",{class:_.DV("ytdMiniplayerPlayerContainerHost",(J.ytdMiniplayerPlayerContainerHidden=u,J.ytdMiniplayerPlayerContainerHostShortsPip=l,J)),style:_.BK({width:function(){return D().width+"px"},
height:function(){return D().height+"px"}})},_.g("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:A}),_.g(_.v,{cond:function(){return!!U()&&!_.$bo(U())},
then:function(){return _.g(TTH,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var L;return((L=U())==null?void 0:L.errorScreen)||null},
status:function(){var L;return((L=U())==null?void 0:L.status)||null}})}}),_.g(_.v,{cond:n,
then:function(){return _.g("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":G},_.g(uyw,{onTap:function(){_.Jc().resolve(_.kq).close()}}))}}))},"Dg");_.Q2r=_.w(function(l){var D=l.toastData;var U=_.bP("ytd-miniplayer-toast");l=_.B(_.WK(function(){return!!D()}));
var n=l.next().value,y=l.next().value;l=_.B(_.aw(!1,void 0,"BvfNQe"));var A=l.next().value,C=l.next().value,h=function(){var Q;return _.Nl((Q=D())==null?void 0:Q.data.title)};
_.N1(function(){_.lv.requestAvailability();D()&&y(!1)});
var b,u;_.$i(function(){n()&&(_.O9(U.value,"iron-announce",{text:D().label+" "+h()}),b&&_.Tn.cancelJob(b),b=_.Tn.addLowPriorityJob(function(){C(!0)},2500))},"no1dZb");
_.$i(function(){A()&&(u&&_.Tn.cancelJob(u),u=_.Tn.addLowPriorityJob(function(){y(!1);C(!1)},300))},"G3yPNe");
l={};return _.g("ytd-miniplayer-toast",{el:U,class:_.DV("ytdMiniplayerToastHost",(l.ytdMiniplayerToastOpening=function(){return n()},l.ytdMiniplayerToastClosing=function(){return A()},l))},_.g(_.v,{cond:function(){var Q;
return(Q=D())==null?void 0:Q.data},
then:function(Q){return _.g(SuH,{className:"ytdMiniplayerToastThumbnail",data:Q,width:78})}}),_.g("div",{class:"ytdMiniplayerToastInfo"},_.g("div",{class:"ytdMiniplayerToastLabel"},function(){var Q;
return(Q=D())==null?void 0:Q.label}),_.g("div",{class:"ytdMiniplayerToastTitle"},h)))},"Gg");var cbo;var jU3=null;var J3r=_.w(function(l){var D=l.progressState;var U=l.multiMarkersPlayerBarRenderer;var n=l.progressBarWidth;var y=function(){return rbs(U())},A=function(){return $0N(D())},C=function(){return n()*(D().playedTime/D().videoDuration)};
return _.g("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.g(_.wt,{each:y},function(h,b){return _.g(Gn5,{modifiedProps:A,chapters:y,index:b,playedProgressWidth:C,backgroundGradientPosition:function(){var u=A(),Q=y(),G=b(),J=C();return(u.playedTime-Sa(_.M(Q[G],Xw)))/u.playedTime*J}})}))},"Hg"),Gn5=_.w(function(l){var D=l.modifiedProps;
var U=l.chapters;var n=l.index;var y=l.playedProgressWidth;var A=l.backgroundGradientPosition;l={};l=_.DV("ytChapteredProgressBarChapteredPlayerBarChapter",(l.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return C().isScrubbing},l.ytChapteredProgressBarHoveredMacroMarker=function(){return C().scrubberHovering},l.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return C().videoPosition==="seen"},l));
var C=function(){return NW$(D(),U(),n())},h=function(){var b=D();
var u=U(),Q=n();if(NW$(b,u,Q).videoPosition!=="active")b=0;else{var G=Sa(_.M(u[Q],Xw));b=(b.playedTime-G)/((Sa(_.M(u[Q+1],Xw))||b.videoDuration)-G)}return b};
return _.g("div",{class:l,style:_.BK({width:function(){var b=D(),u=U(),Q=n(),G=_.M(u[Q],Xw);u=_.M(u[Q+1],Xw);return(u?Sa(u)-Sa(G):b.videoDuration-Sa(G))/b.videoDuration*100+"%"},
"background-color":function(){a:{var b=C();switch(b.videoPosition){case "pending":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":b=b.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:b=""}}return b},
"background-size":function(){return(sUB(C())?y():"")+"px"},
"background-position-x":function(){return(sUB(C())?A():"")+"px"}})},_.g("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var b=D(),u=U(),Q=n();if(NW$(b,u,Q).videoPosition==="seen")var G=0;else G=Sa(_.M(u[Q],Xw)),u=Sa(_.M(u[Q+1],Xw))||b.videoDuration,b=b.videoDuration*b.percentLoaded,G=u<=b?1:G>=b?0:(b-G)/(u-G);return"width: "+G*100+"%"}}),_.g("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.BK({width:function(){return h()*100+"%"},
"background-size":function(){return(sUB(C(),h())?y():"")+"px"},
"background-position-x":function(){return(sUB(C(),h())?A():"")+"px"}})}))},"Ig");var LW8=function(l,D){D=D===void 0?oq7:D;var U,n=[],y,A=!1;return function(){var C=_.EW.apply(0,arguments);if(A&&U===this&&D(C,n))return y;y=l.apply(this,C);A=!0;U=this;n=C;return y}}(function(l){var D=l.heatMarkers,U=l.minHeightDp===void 0?0:l.minHeightDp,n=l.maxHeightDp===void 0?60:l.maxHeightDp;
var y=y===void 0?!1:y;var A=1E3/D.length;l=[];l.push({x:0,y:100});for(var C=0;C<D.length;C++){var h=void 0,b=((h=_.M(D[C],Ng7))==null?void 0:h.heatMarkerIntensityScoreNormalized)||0;h=(C+.5)*A;b=100-_.tS(b*100,U/321*100,n/321*100);C!==0||y||l.push({x:0,y:b});l.push({x:h,y:b});C===D.length-1&&l.push({x:1E3,y:b})}l.push({x:1E3,y:100});D="";for(U=0;U<l.length;U++)y=l[U],U===0?y="M "+y.x.toFixed(1)+","+y.y.toFixed(1):(n=zYd(l[U-1],l[U-2],y),A=zYd(y,l[U-1],l[U+1],!0),y=" C "+(n.x.toFixed(1)+","+n.y.toFixed(1)+
" "+A.x.toFixed(1)+","+A.y.toFixed(1)+" "+y.x.toFixed(1)+","+y.y.toFixed(1))),D+=y;return D});var qL5=_.w(function(l){var D=l.progressBarProps;var U=l.config;var n={};l=_.DV("ytHeatSeekerHost",(n.ytHeatSeekerHighContrast=l.highContrast,n));var y=function(){return XDs(U().chapterData)};
return _.g("yt-progress-bar-heatseeker",{class:l,style:function(){var A;return"height: 320px; display: "+(D().isDragging&&((A=y())==null?0:A.heatMarkers)?"block":"none")}},_.g(_.v,{cond:y,
then:function(A){return _.g(_.v,{cond:function(){return A().heatMarkers},
then:function(){return _.g("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.g("path",{d:function(){return LW8(A())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Jg");var M9T=_.w(function(l){var D=l.progressBarProps;var U=l.config;l={};l=_.DV("ytProgressBarLineProgressBarLine",(l.ytProgressBarLineProgressBarLineRounded=function(){return U().rounded},l.ytProgressBarLineProgressBarLineBottomInset=function(){return U().position===2},l));
return _.g("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.g("div",{class:l},_.g("div",{class:"ytProgressBarLineProgressBarBackground"}),_.g("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+D().percentLoaded*100+"%"}}),_.g("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var n=D();return"width: "+(n.videoDuration?_.tS(n.hoveredTime/n.videoDuration,0,1):0)*100+"%"}}),_.g("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+m0K(D())*100+"%"}})))},"Kg");
M9T.idomCompat=!0;var Rv2=_.w(function(l){var D=l.progressBarProps;var U=l.playheadData;var n=l.interpolateDotPosition;var y=l.hidePlayhead;l={};var A=_.DV("ytProgressBarPlayheadProgressBarPlayheadDot",(l.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return D().isDragging},l.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!D().isDragging&&y()},l));
return _.g("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.BK({"margin-left":function(){return a3c(D())*100+"%"},
transform:function(){return"translateX(-"+(n()?a3c(D())*12:6)+"px)"}})},_.g(_.v,{cond:function(){var C;
return(C=_.NQ(U)())==null?void 0:C.playheadImage},
then:function(C){var h={};return _.g("div",{class:_.DV("ytProgressBarPlayheadProgressBarPlayheadCustom",(h.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return D().isDragging},h.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!D().isDragging&&y()},h)),
style:_.BK({"transform-origin":function(){return(n()?a3c(D())*20:10)+"px center"}})},_.g(_.rh,{data:C,
alt:"","aria-hidden":"true"}))},
else:function(){return _.g("div",{class:A,style:_.BK({"transform-origin":function(){return(n()?a3c(D())*12:6)+"px center"}})})}}))},"Lg");
Rv2.idomCompat=!0;var po=function(l,D,U,n,y,A){this.getProgressBarRect=l;this.updateProgressBarRect=D;this.getFilmstripYPosition=U;this.setFineScrubbingDraggedTime=n;this.updateFilmStripDraggedYDistance=y;this.resetFilmStripYOffset=A;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.A1(this.onThrottledSeek,100,this)},Z6q=function(l,D,U){return function(n){l.handleClick(n,D(),U())}},al$=function(l,D){return function(U){evP(l,
U,mZT(U),D())}},t9J=function(l,D){return function(U){evP(l,U,{x:U.clientX,
y:U.clientY},D())}},SLq=function(l,D,U){return function(n){var y=D(),A=U();
XGW(l,n,mZT(n),y,A,!0);if(A.onTouchMove)A.onTouchMove(y)}},dZv=function(l,D,U){return function(n){knH(l,n,D(),U())}},KWW=function(l,D){return function(){l.handleMouseLeave(D())}},c3J=function(l,D,U){return function(){var n=D(),y=U();
xV(l,n,y);if(y.onTouchEnd)y.onTouchEnd(n)}},pGv=function(l,D,U){return function(){var n=D(),y=U();
xV(l,n,y);if(y.onTouchEnd)y.onTouchEnd(n)}},xZq=function(l,D,U){return function(){xV(l,D(),U())}},j22=function(l){return function(D){if(D.keyCode===39||D.keyCode===38){var U,n;
(U=l())==null||(n=U.playerApi)==null||n.seekBy(5,void 0,void 0,72)}else if(D.keyCode===37||D.keyCode===40){var y,A;(y=l())==null||(A=y.playerApi)==null||A.seekBy(-5,void 0,void 0,71)}}},FW2=function(l,D,U){return function(n){!U().disableScrubbing&&l.startPosition&&knH(l,n,D(),U())}},oH2=function(l,D,U){return function(){if(!U().disableScrubbing)if(l.startPosition){var n=D(),y=U();
xV(l,D(),U());if(y.onTouchEnd)y.onTouchEnd(n)}else D().setState({isDragging:!1})}},mZT=function(l){l=l.touches[0];
return{x:l.clientX,y:l.clientY}},knH=function(l,D,U,n){if(D.buttons!==1){if(D.movementX||D.movementY)D.preventDefault(),D.stopPropagation(),l=wGv(l,U,D.clientX),U.setState({isHovering:!0,
hoveredTime:l*U.videoDuration})}else r32(U),XGW(l,D,{x:D.clientX,y:D.clientY},U,n,!1)};
po.prototype.handleMouseLeave=function(l){r32(l)};
var r32=function(l){l.isHovering&&l.setState({isHovering:!1,hoveredTime:0})},evP=function(l,D,U,n){l.startPosition||(l.startPosition=U,l.updateProgressBarRect(),l.controlsWereVisibleBeforeDragging=n.controlsVisible,D.stopPropagation(),_.q("medium_progress_bar_modification")||D.preventDefault())},XGW=function(l,D,U,n,y,A){if(l.startPosition)if(A&&y.isInlinePlayback&&l.startPosition&&!l.hasDraggedTheMinimumDistance&&Math.abs(U.y-l.startPosition.y)>Math.abs(U.x-l.startPosition.x))xV(l,n,y);
else if(D.preventDefault(),D.stopPropagation(),n.videoDuration&&(l.startPosition&&!l.hasDraggedTheMinimumDistance&&(l.hasDraggedTheMinimumDistance=Math.abs(U.x-l.startPosition.x)>=1),y.enableFineScrubbing&&(l.startPosition&&(l.isDraggedForFineScrubbing=-(U.y-l.startPosition.y)>=60),!l.startPosition||U.y>=l.startPosition.y||(n.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Ey9(n.draggedTime,n,y.chapterData)}),l.setFineScrubbingDraggedTime(n.draggedTime),l.updateFilmStripDraggedYDistance(l.startPosition.y,
U.y,n))),l.hasDraggedTheMinimumDistance)){D=wGv(l,n,U.x);if(l.isDraggedForFineScrubbing){var C;(C=n.playerApi)==null||C.pauseVideo();n.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:n.draggedTime,filmStripXDistance:Ey9(D*n.videoDuration,n,y.chapterData)})}y.enableFineScrubbing&&(!y.enableFineScrubbing||l.getFilmstripYPosition(n)<68)||n.setState({draggedTime:D*n.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:l.controlsWereVisibleBeforeDragging});var h;(h=
y.cancelAutohideControlsFn)==null||h.call(y)}},xV=function(l,D,U){var n=U.enableFineScrubbing&&D.fineScrubbingActiveState!=="off";
if(D.isDragging||n){n={isDragging:!1,playedTime:D.draggedTime,controlsVisible:l.controlsWereVisibleBeforeDragging};U.enableFineScrubbing&&D.fineScrubbingActiveState!=="on"&&(l.resetFilmStripYOffset(),n.fineScrubbingActiveState="off");var y=y===void 0?jU3:y;var A=_.t6(0);if(A&&y){var C=Math.round(D.playedTime*1E3),h=Math.round(D.draggedTime*1E3);C>2147483647||h>2147483647||_.f3(A,y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(C),endMediaTimeMs:String(h),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}D.setState(n);
l.seekThrottle.fire(D.draggedTime,D,7);_.q("mweb_new_progress_bar_play_on_seek")&&l.resumeVideo(D);U.unmuteOnSeek&&(U=D.playerApi,D.volumeMuted&&(U==null||U.unMute()))}else D.setState({controlsVisible:!D.controlsVisible}),(A=U.triggerAutohideControlsAfterDelayFn)==null||A.call(U);l.startPosition=null;l.hasDraggedTheMinimumDistance=!1;l.isDraggedForFineScrubbing=!1;l.controlsWereVisibleBeforeDragging=!1};
po.prototype.handleClick=function(l,D,U){this.updateProgressBarRect();l.stopPropagation();l=wGv(this,D,l.clientX)*D.videoDuration;D.setState({playedTime:l});if(D.playerState!==2){var n;(n=U.triggerAutohideControlsAfterDelayFn)==null||n.call(U)}this.seekThrottle.fire(l,D,7)};
var wGv=function(l,D,U){l=l.getProgressBarRect(D);return _.tS(0,(U-l.left)/l.width,1)};
po.prototype.resumeVideo=function(l){if(l.draggedTime<l.videoDuration){var D;(D=l.playerApi)==null||D.playVideo()}};
po.prototype.onThrottledSeek=function(l,D,U){if(D=D.playerApi){var n;if((n=D.getVideoData())==null?0:n.isLive)n=this.getProgressState(D),l+=(n==null?void 0:n.seekableStart)||0;D.seekTo(l,void 0,void 0,void 0,U)}};
po.prototype.getProgressState=function(l){var D=l==null?void 0:l.getPresentingPlayerType();return l==null?void 0:l.getProgressState(D)};var $Z8,flq,NbT,EHJ,zv8,Tbw,Ilq,H6P,YLq;$Z8=_.w(function(l){var D=l.progressBarProps;var U=l.config;var n=l.progressBarWidthPx;var y=l.chapterData;var A=OaC(D,function(){return U().isShortsPage}),C=function(){return!D().isHovering&&!U().isShortsPage};
l={};var h=_.DV("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(l.ytPlayerStoryboardHostMwebShorts=function(){return U().isShortsPage&&!1},l));
return _.g("yt-player-storyboard",null,_.g(_.v,{cond:function(){return D().isDragging||D().isHovering},
then:function(){return _.g(_.v,{cond:A,then:function(b){return _.g(_.v,{cond:C,then:function(){return _.g("div",{class:h,"aria-hidden":"true"},_.g(zv8,{props:D,config:U,isBigboard:!0,chapterData:y}))},
else:function(){return _.g(flq,{props:D,frame:b,config:U,progressBarWidthPx:n,chapterData:y})}})}})}}))},"Mg");
_.s25=_.w(function(l){var D=l.progressBarProps;var U=OaC(D,l.isShortsPage);return _.g("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.g(_.v,{cond:function(){return D().isDragging||D().isHovering},
then:function(){return _.g(_.v,{cond:U,then:function(n){return _.g(NbT,{frame:n,props:D,isBigboard:!0})}})}}))},"Ng");
flq=_.w(function(l){var D=l.props;var U=l.frame;var n=l.config;var y=l.progressBarWidthPx;l=l.chapterData;var A={};A=_.DV("ytPlayerStoryboardHost",(A.ytPlayerStoryboardHostMwebShorts=function(){return n().isShortsPage&&!1},A.ytPlayerStoryboardHostInlinePlayer=function(){return n().isInlinePlayer},A.ytPlayerStoryboardHostFadeIn=function(){return n().useFadeInAnimation},A));
return _.g("div",{class:A,"aria-hidden":"true",style:function(){var C=D(),h=TW9(U()),b=y();C=I3l(C)/C.videoDuration;var u=b*C,Q=h/2+6;h=b-(h/2+6);return"left: "+(u<=Q?Q/b*100:u>=h?h/b*100:C*100)+"%"}},_.g(_.v,{cond:function(){var C=D();
return!(n().isShortsPage&&C.videoDuration<15)},
then:function(){return _.g(NbT,{frame:U,props:D,isBigboard:!1})}}),_.g(zv8,{props:D,
config:n,isBigboard:!1,chapterData:l}))},"Og");
NbT=_.w(function(l){var D=l.frame;var U=l.props;var n=l.isBigboard;var y=function(){var h,b;return(b=(h=U().playerApi)==null?void 0:h.getVideoContentRect())!=null?b:{width:0,height:0}},A=function(){return TW9(D())},C=function(){var h=D();
return h?h.height/h.rows:0};
l={};l=_.DV((l.ytPlayerStoryboardBigboardImageWrapper=n,l.ytPlayerStoryboardStoryboardImageWrapper=function(){return!n()},l));
return _.g("div",{class:l,style:function(){return"width: "+(n()?y().width:A())+"px; height: "+(n()?y().height:C())+"px;"}},_.g(EHJ,{frame:D,
storyboardWidth:A,storyboardHeight:C,storyboardScale:function(){return(n()?y().width:A())/A()}}))},"Pg");
EHJ=_.w(function(l){var D=l.frame;var U=l.storyboardWidth;var n=l.storyboardHeight;var y=l.storyboardScale;var A=function(){var C=D().row,h=D().column,b=U(),u=n(),Q=y();return{left:-h*b*Q,top:-C*u*Q}};
return _.g("img",{src:function(){return D().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+A().left+"px; top: "+A().top+"px; width: "+D().width*y()+"px; height: "+D().height*y()+"px;"}})},"Qg");
zv8=_.w(function(l){var D=l.props;var U=l.config;var n=l.isBigboard;var y=l.chapterData;l={};l=_.DV("ytPlayerStoryboardMetadata",(l.ytPlayerStoryboardMetadataBigboard=n,l));return _.g("div",{class:l},_.g(_.v,{cond:n,then:function(){return _.g(_.GZ,null,_.g(Tbw,{props:D,config:U}),_.g(_.v,{cond:function(){a:{var A=D();var C=U(),h=y(),b;if((C==null?0:C.activeChapter)&&((b=_.M(C==null?void 0:C.activeChapter,Xw))==null?0:b.title))A=!0;else{C=_.B(Sw$(h));for(C=C.next();!C.done;C=C.next()){A=(C=_.M(C.value,
Eam))&&HaG(A,C);break a}A=!1}}return A},
then:function(){return _.g(Ilq,{props:D,config:U,isBigboard:!0,chapterData:y})}}))},
else:function(){return _.g(_.GZ,null,_.g(Ilq,{props:D,config:U,isBigboard:!0,chapterData:y}),_.g(Tbw,{props:D,config:U}))}}))},"Rg");
Tbw=_.w(function(l){var D=l.props;var U=l.config;l={};l=_.DV("ytPlayerStoryboardTimestamp",(l.ytPlayerStoryboardTimestampShorts=function(){return U().isShortsPage},l.ytPlayerStoryboardTimestampIsHovering=function(){return D().isHovering||U().isShortsPage&&!0},l));
return _.g("div",{class:l},_.g(_.GZ,null,function(){return _.Yws(I3l(D()))}))},"Sg");
Ilq=_.w(function(l){var D=l.props;var U=l.config;var n=l.isBigboard;var y=l.chapterData;l={};n=_.DV("ytPlayerStoryboardTitle",(l.ytPlayerStoryboardTitleBigboard=n,l));return _.g("div",{class:n},_.g(_.v,{cond:function(){return!U().isShortsPage},
then:function(){return _.g(H6P,{props:D,activeChapter:function(){return U().activeChapter},
chapterData:y})}}))},"Tg");
H6P=_.w(function(l){var D=l.props;var U=l.activeChapter;var n=l.chapterData;return _.g(_.GZ,null,_.g(_.wt,{each:function(){return Sw$(n())},
keyBy:"INDEX"},function(y){return _.g(_.GZ,null,_.g(_.v,{cond:function(){return _.M(y(),Eam)&&HaG(D(),_.M(y(),Eam))},
then:function(){return _.g(YLq,{timedMarker:function(){return _.M(y(),Eam)}})}}))}),_.g(_.v,{cond:function(){var y;
return U()&&((y=_.M(U(),Xw))==null?void 0:y.title)},
then:function(y){return _.g(_.BO,{text:y,noPreWrap:!0})}}))},"Ug");
YLq=_.w(function(l){var D=l.timedMarker;return _.g(_.GZ,null,_.g("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.g(_.C0,{icon:function(){return D().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.g(_.BO,{text:function(){return D().label},
noPreWrap:!0}))},"Vg");_.O6$=_.w(function(l){var D=l.progressBarProps;var U=l.playheadData;var n=l.config;l=_.bP("yt-progress-bar");var y=_.bP("div"),A=_.bP("div"),C=_.B(_.aw({width:0,left:0},void 0,"WloVn")),h=C.next().value,b=C.next().value,u=function(){A.value&&b(A.value.getBoundingClientRect())},Q=function(){h().width<=0&&u();
return h()};
_.QE("resize",u);var G=new po(Q,function(){},function(){return 0},function(){},function(){},function(){}),J=function(){return D()};
C=_.B(_.aw(!1,void 0,"u8BZZb"));var L=C.next().value,R=C.next().value;C=_.n0(function(){R(!0);n().position===2?setTimeout(function(){u()},100):u()});
var a=_.n0(function(){R(!1);KWW(G,J)()}),S=_.n0(function(wl){n().doSeekOnClick&&Z6q(G,J,n)(wl);
return!1}),d=_.n0(function(wl){al$(G,J)(wl);
return!1}),c=_.n0(function(wl){t9J(G,J)(wl);
return!1}),N=_.n0(function(wl){SLq(G,J,n)(wl);
return!1}),z=_.n0(function(wl){dZv(G,J,n)(wl);
return!1}),f=_.n0(function(){c3J(G,J,n)();
return!1}),I=_.n0(function(){pGv(G,J,n)();
return!1}),iG=_.n0(function(){xZq(G,J,n)();
return!1}),CC=_.n0(function(wl){j22(J)(wl);
return!1});
_.QE("mousemove",FW2(G,J,n));_.QE("mouseup",oH2(G,J,n));_.N1(function(){Fjg(y.value);R(!1);u();oH2(G,J,n)()});
var vo={};vo=_.DV("ytPlayerProgressBarHost",function(){return n().className},(vo.ytPlayerProgressBarHostReadOnly=function(){return n().disableScrubbing},vo.ytPlayerProgressBarHostHidden=function(){return n().hideProgressBar&&!L()},vo.ytPlayerProgressBarHostLowerPlayer=function(){return n().position===0},vo.ytPlayerProgressBarHostBottomEdge=function(){return n().position===1},vo.ytPlayerProgressBarHostBottomInset=function(){return n().position===2},vo.ytPlayerProgressBarHostCustom=function(){return n().position===
3},vo));
var td={},GN=_.DV("ytPlayerProgressBarBackground",(td.ytPlayerProgressBarBackgroundHide=function(){return n().position===2&&!L()&&!D().isDragging},td));
td={};td=_.DV("ytPlayerProgressBarDragContainer",(td.ytPlayerProgressBarDragContainerBottomEdge=function(){return n().position===1},td));
var Ms={};Ms=_.DV("ytPlayerProgressBarProgressBar",(Ms.ytPlayerProgressBarProgressBarInset=function(){return n().position===2},Ms.ytPlayerProgressBarProgressBarInsetMinimized=function(){return n().position===2&&!L()&&!D().isDragging},Ms));
var j3=function(){return Math.floor(m0K(D())*100)};
return _.g("yt-progress-bar",{el:l,class:vo},_.g(_.v,{cond:function(){return n().position===2},
then:function(){return _.g("div",{class:GN})}}),_.g("div",{el:y,
"on:click":S,"on:touchstart":d,"on:touchmove":N,"on:mouseenter":C,"on:mousedown":c,"on:mouseleave":a,"on:mousemove":z,"on:mouseup":I,"on:touchend":f,"on:touchcancel":iG,"on:keydown":CC,class:td,role:"slider","aria-valuenow":j3,"aria-valuetext":function(){return j3()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return D().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.C3("SEEK_SLIDER")},_.g("div",{el:A,class:Ms},_.g(qL5,{progressBarProps:D,config:n,highContrast:function(){return!!n().isInlinePlayback}}),_.g(_.v,{cond:function(){return n().chapterData&&kEd(n().chapterData)},
then:function(){return _.g(J3r,{progressState:D,multiMarkersPlayerBarRenderer:function(){return n().chapterData},
progressBarWidth:function(){return h().width}})},
else:function(){return _.g(M9T,{progressBarProps:D,config:n})}}),_.g(Rv2,{progressBarProps:D,
playheadData:U,interpolateDotPosition:function(){return n().position!==2},
hidePlayhead:function(){return n().playheadDotBehavior===1&&!L()}}))),_.g($Z8,{progressBarProps:D,
config:function(){return{activeChapter:f3c(D(),n().chapterData),getProgressBarWidthPx:function(){return Q().width},
isShortsPage:!!n().isShortsPage,isInlinePlayer:!!n().isInlinePlayback,useFadeInAnimation:!!n().isInlinePlayback}},
progressBarWidthPx:function(){return h().width},
chapterData:function(){return n().chapterData}}))},"Wg");
_.O6$.idomCompat=!0;Object.assign({},_.d0N(),{setState:function(){},
domMeasurements:{},appApi:_.ekC(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var V9r;
_.iBJ=_.w(function(){var l,D=(l=_.VC9(iNG().playerApi))!=null?l:void 0;l=_.B(_.aw(!1,void 0,"Z9NQ1b"));var U=l.next().value,n=l.next().value;l=_.B(_.aw(!1,void 0,"HoVJXe"));var y=l.next().value,A=l.next().value;l=_.B(_.aw(!1,void 0,"DWCY3"));var C=l.next().value,h=l.next().value;l=_.B(_.aw(!1,void 0,"g4C2Zd"));var b=l.next().value,u=l.next().value;l=_.B(_.aw(0,void 0,"lmVfFb"));var Q=l.next().value,G=l.next().value;l=_.B(_.aw(0,void 0,"mFLbzb"));var J=l.next().value,L=l.next().value;l=_.B(_.aw(!1,void 0,
"hQN4Wb"));var R=l.next().value,a=l.next().value;l=_.B(_.aw(0,void 0,"WWU0fb"));var S=l.next().value,d=l.next().value;l=_.B(_.aw(0,void 0,"MJ7LMd"));var c=l.next().value,N=l.next().value;l=_.B(_.aw("",void 0,"hnomOe"));var z=l.next().value,f=l.next().value;l=_.B(_.aw(-1,void 0,"ARe3pf"));var I=l.next().value,iG=l.next().value,CC=_.dM(function(){var vo={controlsVisible:U(),isOverlayHidden:y(),shouldWaitToHideControls:C(),isDragging:b(),isHovering:R(),videoDuration:S(),playedTime:c(),videoId:z(),draggedTime:J(),
hoveredTime:Q(),playerState:I()};return Object.assign({},_.d0N(),vo,{domMeasurements:{},setState:function(td){td.controlsVisible!==void 0&&n(td.controlsVisible);td.isOverlayHidden!==void 0&&A(td.isOverlayHidden);td.shouldWaitToHideControls!==void 0&&h(td.shouldWaitToHideControls);td.isDragging!==void 0&&u(td.isDragging);td.isHovering!==void 0&&a(td.isHovering);td.draggedTime!==void 0&&L(td.draggedTime);td.hoveredTime!==void 0&&G(td.hoveredTime);td.videoDuration!==void 0&&d(td.videoDuration);td.playedTime!==
void 0&&N(td.playedTime);td.videoId!==void 0&&f(td.videoId);td.playerState!==void 0&&iG(td.playerState)},
appApi:_.ekC(),playerApi:D})},void 0,"Au4PIf");
_.$g(function(){D==null||D.addEventListener("onVideoProgress",x0_(CC));D==null||D.addEventListener("onVideoDataChange",pDg(CC));D==null||D.addEventListener("onStateChange",Kjs(CC))});
_.NV(function(){if(D==null?0:D.isReady())D==null||D.removeEventListener("onVideoProgress",x0_(CC)),D==null||D.removeEventListener("onVideoDataChange",pDg(CC)),D==null||D.removeEventListener("onStateChange",Kjs(CC))});
return _.g("desktop-shorts-player-controls",null,_.g(V9r,{playerControlsProps:CC}))},"Yg");
V9r=_.w(function(l){var D=l.playerControlsProps;return _.g("div",{class:"desktopShortsPlayerControlsHost"},_.g(_.O6$,{progressBarProps:D,config:function(){return{isShortsPage:!0,hideProgressBar:D().videoDuration<30&&D().playerState!==2&&!D().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Zg");_.l0J=_.w(function(l){function D(vo){vo!==0||G()?vo>50&&(G()||!L())?(J(!1),R(!0)):vo<=50&&(G()||L())&&(J(!1),R(!1)):J(!0)}
function U(vo,td){var GN;return _.P(function(Ms){if(Ms.nextAddress==1)return Ms.yield(_.nq(),2);GN=Ms.yieldResult;td&&GN?(GN.unMute(!0),vo&&(DC$(vo,GN.getVolume()),S(GN.getVolume()))):GN&&(GN.mute(!0),vo&&DC$(vo,0));_.Kz(Ms)})}
function n(vo){var td,GN;return _.P(function(Ms){if(Ms.nextAddress==1)return Ms.yield(_.nq(),2);td=Ms.yieldResult;GN=50;td&&(GN=td.getVolume(),td.isMuted()?DC$(vo,0):DC$(vo,GN));S(GN);_.Kz(Ms)})}
var y=l.orientation;l=_.bP("desktop-shorts-volume-controls");var A=_.bP("button"),C=_.gm("input"),h=_.B(_.aw(!1,void 0,"MvN0Tc")),b=h.next().value,u=h.next().value,Q=_.B(_.aw(!1,void 0,"aSjsEb"));h=Q.next().value;Q=Q.next().value;var G=h,J=Q;Q=_.B(_.aw(!0,void 0,"FUh46d"));h=Q.next().value;Q=Q.next().value;var L=h,R=Q;h=_.B(_.aw(50,void 0,"yPke4d"));var a=h.next().value,S=h.next().value;h=_.dM(function(){var vo=G();return _.q("web_shorts_keyboard_enable_mute_shortcut")?vo?_.C3("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.C3("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):vo?_.C3("UNMUTE_VOLUME",void 0,"Unmute"):_.C3("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
Q=_.dM(function(){var vo=G(),td=L();return{sources:[{clientResource:{imageName:vo?_.q("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":td?_.q("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.q("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var d=_.dM(function(){var vo=a();return G()?vo+"% volume muted":vo+"% volume"},void 0,"xZsRmc"),c=_.dM(function(){return y()==="vertical_down"},void 0,"FVqYmb");
_.N1(function(){function vo(){u(!0)}
function td(){u(!1)}
C&&C.value&&(C.value.addEventListener("focus",vo),C.value.addEventListener("focusout",td),n(C.value).then(function(){D(Number(UCC(C.value)))}));
A&&A.value&&(A.value.addEventListener("focus",vo),A.value.addEventListener("focusout",td));_.NV(function(){var GN;C==null||(GN=C.value)==null||GN.removeEventListener("focus",vo);var Ms;C==null||(Ms=C.value)==null||Ms.removeEventListener("focusout",td);var j3;A==null||(j3=A.value)==null||j3.removeEventListener("focus",vo);var wl;A==null||(wl=A.value)==null||wl.removeEventListener("focusout",td)})});
var N=_.n0(function(){if(C&&C.value){var vo=Number(UCC(C.value));lio(vo);S(vo);C.value.style.setProperty("--gradient-percent",vo+"%");D(vo)}return!1}),z=_.n0(function(){C&&C.value&&(U(C.value,G()),J(!G()));
return!1}),f={},I={},iG={},CC={};
return _.g("desktop-shorts-volume-controls",{"on:pointerleave":_.n0(function(){u(!1)}),
"on:pointerenter":_.n0(function(){u(!0)}),
class:_.DV("ytdDesktopShortsVolumeControlsHost",(f.ytdDesktopShortsVolumeControlsHostVertical=c,f.ytdDesktopShortsVolumeControlsHostModern=_.q("web_shorts_modern_controls"),f.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.q("web_shorts_modern_controls")&&b()},f)),
el:l},_.g(_.v,{cond:function(){return!c()},
then:function(){var vo={};return _.g("div",{class:_.DV("ytdDesktopShortsVolumeControlsBackgroundScrim",(vo.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=b,vo.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.q("web_shorts_modern_controls")&&b()},vo))})}}),_.g("div",{class:_.DV((I.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=c,I))},_.g("button",{"aria-label":h,
title:h,el:A,"on:click":z,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Q?_.g(_.rh,{data:Q,alt:h,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.g("div",{class:_.DV("ytdDesktopShortsVolumeControlsSliderContainer",(iG.ytdDesktopShortsVolumeControlsSliderContainerExpanded=b,iG.ytdDesktopShortsVolumeControlsSliderContainerVertical=c,iG.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=c,iG.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return b()&&
c()},iG))},_.g("input",{"aria-label":_.C3("VOLUME"),
title:_.C3("VOLUME"),el:C,"on:input":N,type:"range",class:_.DV("ytdDesktopShortsVolumeControlsNativeSlider",(CC.ytdDesktopShortsVolumeControlsNativeSliderModern=_.q("web_shorts_modern_controls"),CC)),id:"volume-input",role:"slider","aria-valuenow":a,"aria-valuetext":d,"aria-valuemin":0,"aria-valuemax":100})))},"$g");var DaH=_.w(function(l){var D=l.data;var U=l.overlayDensity;l={};return _.g("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.g(_.uI,{data:function(){return D().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(n){var y=n.data;
return _.g(_.lX,{data:function(){return(U==null?void 0:U())===1?Object.assign({},y(),{avatar:{avatarViewModel:Object.assign({},_.M(y().avatar,_.X7),{avatarImageSize:"AVATAR_SIZE_M"})}}):y()}})}}),_.g(_.uI,{data:function(){return D().avatarStackViewModel}},{avatarStackViewModel:function(n){return _.g(_.DD,{data:n.data})}}),_.g(_.BO,{className:_.DV("ytReelChannelBarViewModelChannelName",(l.ytReelChannelBarViewModelChannelNameLarge=function(){return(U==null?void 0:U())===1},l)),
text:function(){return D().channelName},
linkInheritColor:!0,userInput:!0}),_.g("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.g(_.uI,{data:function(){return D().subscribeButtonViewModel}},{subscribeButtonViewModel:function(n){var y=n.data;
return _.g(_.iz,{data:function(){return(U==null?void 0:U())===1?Object.assign({},y(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},y().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):y()},
isOverlay:!1})},
buttonViewModel:_.t9})),_.g("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.g(_.uI,{data:function(){var n,y;return(y=_.M((n=D())==null?void 0:n.sponsorButtonViewModel,D25))==null?void 0:y.sponsorButton}},{buttonViewModel:function(n){return _.g(_.t9,{data:n.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ah");var UaJ=_.w(function(l){var D=function(){var y;return((y=l.overlayDensity)==null?void 0:y.call(l))===1},U=function(){return D()?22:16},n={};
return _.g("yt-reel-multi-format-link-view-model",{class:_.DV("ytReelMultiFormatLinkViewModelHost",(n.ytReelMultiFormatLinkViewModelHostTall=!0,n.ytReelMultiFormatLinkViewModelHostLarge=function(){return D()},n))},_.g(_.qO,{ariaLabel:function(){return l.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return l.data().command}},_.g("h3",{class:function(){return D()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.g(_.v,{cond:function(){return l.data().icon},
then:function(y){return _.g(_.rh,{data:y,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:U})}}),_.g(_.BO,{text:function(){return l.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"bh");
UaJ.idomCompat=!0;var nGJ=_.w(function(l){var D=l.data;var U=l.overlayDensity;var n=l.extractOverlay;var y=_.bP("yt-shorts-suggested-action-view-model");l=_.B(_.aw(!1,void 0,"S60Hzc"));var A=l.next().value,C=l.next().value;l=_.B(_.aw(!1,void 0,"O76chf"));var h=l.next().value,b=l.next().value,u=function(){return D().isMultiLineSa},Q=_.Pr(J$3,function(){var f,I;
return(I=(f=D().toggleableContent)==null?void 0:f.entityKey)!=null?I:""}),G=function(){var f,I,iG;
return(iG=D().toggleableContent)!=null&&iG.entityKey?(I=(f=Q())==null?void 0:f.value)!=null?I:!1:!1},J=function(){var f,I,iG,CC,vo,td,GN,Ms,j3,wl,zN;
return D().toggleableContent?G()?(f=D().toggleableContent)==null?void 0:f.toggledData:(I=D().toggleableContent)==null?void 0:I.untoggledData:{primaryText:(Ms=(iG=D().defaultContent)==null?void 0:iG.primaryText)!=null?Ms:D().text,secondaryText:(CC=D().defaultContent)==null?void 0:CC.secondaryText,onTapCommand:(j3=(vo=D().defaultContent)==null?void 0:vo.onTapCommand)!=null?j3:D().onTapCommand,icon:(wl=(td=D().defaultContent)==null?void 0:td.icon)!=null?wl:D().icon,image:(zN=(GN=D().defaultContent)==
null?void 0:GN.image)!=null?zN:D().image}},L=function(){return u()?D().trailingTapTarget:void 0},R=function(f,I){return function(){return A()?I:f}},a=function(){return{leadingSection:R("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(U==null?void 0:U())===1?R("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):R("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:R("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:R("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:R("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
l={};l=_.DV((l.ytShortsSuggestedActionViewModelStaticHost=function(){return!u()},l.ytShortsSuggestedActionViewModelDynamicHost=u,l.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return u()&&h()},l.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return u()&&!h()},l.ytShortsSuggestedActionViewModelExtractOverlay=function(){return n==null?void 0:n()},l));
_.N1(function(){if(u()){var f=0,I;if((I=D().animationParams)==null?0:I.shouldExpand){var iG,CC;f=((CC=(iG=D().animationParams)==null?void 0:iG.expansionDelaySecs)!=null?CC:0)*1E3}var vo,td=((vo=D().animationParams)==null?0:vo.shouldExpand)?setTimeout(function(){C(!0)},f):void 0,GN,Ms;
f=((GN=D().animationParams)==null?0:GN.visibilityDelaySecs)?((Ms=D().animationParams)==null?NaN:Ms.visibilityDelaySecs)*1E3:0;var j3=setTimeout(function(){b(!0)},f);
_.NV(function(){td&&clearTimeout(td);clearTimeout(j3)})}});
var S=function(f){_.dh(f,Object.assign({},{form:{element:y.value}}))},d=_.n0(function(){var f,I=(f=J())==null?void 0:f.onTapCommand;
I&&S(I)}),c=_.n0(function(){var f,I;
if(f=(I=L())==null?void 0:I.onTapCommand)return S(f),!1}),N=_.BK({"vertical-align":"bottom",
"border-radius":function(){var f;return u()?((f=D().defaultContent)==null?0:f.isCircleImage)?"50%":"4px":"0px"},
width:function(){var f,I,iG;return u()&&((f=D().defaultContent)==null?0:f.imageSize)?((iG=(I=D().defaultContent)==null?void 0:I.imageSize)!=null?iG:24)+"px":null},
height:function(){var f,I,iG;return u()&&((f=D().defaultContent)==null?0:f.imageSize)?((iG=(I=D().defaultContent)==null?void 0:I.imageSize)!=null?iG:24)+"px":null}}),z={};
return _.g("yt-shorts-suggested-action-view-model",{class:l,el:y},_.g("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.g("button",{class:_.DV(function(){return u()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var f;
return(f=D().useFullRoundedBorder)!=null&&f?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!L()&&u()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":u()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var f;
return(f=D().disableFixedHeight)!=null&&f?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(z.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(U==null?void 0:U())===1},z.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return n==null?void 0:n()},z)),
"on:click":d},_.g(_.MO,{model:{color:4}}),_.g("div",{class:_.DV(function(){return u()?a().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.g(_.v,{cond:function(){var f;
return(f=J())==null?void 0:f.image},
then:function(f){return _.g(_.rh,{data:f,alt:"",className:function(){return u()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:N})}}),_.g(_.v,{cond:function(){var f,I;
return(f=J())==null?void 0:(I=f.icon)==null?void 0:I.iconType},
then:function(f){return _.g(_.C0,{icon:f,active:G,className:function(){return u()?A()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.g("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.g(_.v,{cond:function(){var f;
return(f=J())==null?void 0:f.primaryText},
then:function(f){var I={};return _.g("div",{class:_.DV("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(I.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(U==null?void 0:U())===1},I))},_.g(_.BO,{text:f}))}}),_.g(_.v,{cond:function(){var f;
return(f=J())==null?void 0:f.secondaryText},
then:function(f){return _.g("div",{class:function(){return a().secondaryText()}},_.g(_.BO,{text:f}))}}))),_.g(_.v,{cond:L,
then:function(f){return _.g("div",{class:_.DV(function(){return a().trailingSection()},function(){var I,iG;
return(n==null?void 0:n())&&((iG=(I=a()).trailingSectionExtractOverlay)==null?void 0:iG.call(I))||""}),
"aria-label":function(){var I;return(I=f().a11yLabel)!=null?I:""},
"on:click":c,role:"button",tabindex:0},_.g(_.MO,{model:{color:4}}),_.g(_.C0,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"ch");var yLv=_.w(function(l){var D=l.data;var U=l.overlayDensity;var n=_.bP("yt-shorts-video-title-view-model");l=_.n0(function(C){if(_.ZX(_.RT(C),n.value,["A".toString()]))return!1;(C=D().truncatedTextOnTapCommand)&&_.dh(C);return!1});
var y={},A={};return _.g("yt-shorts-video-title-view-model",{el:n,class:_.DV("ytShortsVideoTitleViewModelHost",(y.ytShortsVideoTitleViewModelHostClickable=function(){return!!D().truncatedTextOnTapCommand},y)),
"on:click":l},_.g("h2",{class:_.DV("ytShortsVideoTitleViewModelShortsVideoTitle",(A.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(U==null?void 0:U())===1},A))},_.g(_.BO,{text:function(){return D().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(U==null?void 0:U())===1}})))},"dh");_.AL$=_.w(function(l){var D=l.data;var U=l.overlayDensity;var n=l.extractOverlay;var y=function(){return(U==null?void 0:U())===1};
return _.g("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.g(_.uI,{data:function(){return D().metadataItems}},{badgeViewModel:function(A){A=A.data;
return _.g("div",{class:_.DV(function(){return y()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.g(_.LK,{data:A}))},
playerDisclosureViewModel:function(A){A=A.data;return _.g("div",{class:_.DV(function(){return y()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.g(_.VW$,{data:A,
extractOverlay:n}))},
shortsSuggestedActionViewModel:function(A){A=A.data;return _.g("div",{class:_.DV(function(){return y()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.g(nGJ,{data:A,
overlayDensity:U,extractOverlay:n}))},
reelChannelBarViewModel:function(A){A=A.data;var C={};return _.g("div",{class:_.DV("ytReelMetapanelViewModelMetapanelItem",(C.ytReelMetapanelViewModelExpansive=function(){return y()},C))},_.g(DaH,{data:A,
overlayDensity:U}))},
reelMultiFormatLinkViewModel:function(A){A=A.data;var C={};return _.g("div",{class:_.DV("ytReelMetapanelViewModelMetapanelItem",(C.ytReelMetapanelViewModelExpansive=function(){return y()},C))},_.g(UaJ,{data:A,
overlayDensity:U}))},
shortsVideoTitleViewModel:function(A){A=A.data;var C={};return _.g("div",{class:_.DV("ytReelMetapanelViewModelMetapanelItem",(C.ytReelMetapanelViewModelExpansive=function(){return y()},C))},_.g(yLv,{data:A,
overlayDensity:U}))},
reelSoundMetadataViewModel:function(A){A=A.data;var C={};return _.g("div",{class:_.DV("ytReelMetapanelViewModelMetapanelItem",(C.ytReelMetapanelViewModelExpansive=function(){return y()},C))},_.g(_.AfJ,{data:A,
overlayDensity:U}))},
toggleButtonViewModel:function(A){A=A.data;var C={};return _.g("div",{class:_.DV("ytReelMetapanelViewModelMetapanelItem",(C.ytReelMetapanelViewModelExpansive=function(){return y()},C))},_.g(_.s0,{data:A}))}}))},"eh");var Wi2=_.w(function(l){var D=_.sl(l,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),U=D.size,n=D.onTap,y=D.disabled,A=D.tooltipText;return _.g("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.g(_.ey,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:U(),disabled:y(),tooltipText:A(),onTap:n}},
iconName:l.iconType}))},"fh"),B$$=_.w(function(l){function D(Q){Q.stopPropagation();
Q.code==="ArrowUp"?(Q.preventDefault(),AmC(h.value)):Q.code==="ArrowDown"?(Q.preventDefault(),WsB(h.value)):Q.code==="KeyM"?n7B():(Q.code==="KeyK"||Q.code==="Space")&&yms(b())}
var U=_.sl(l,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});l=U.previousButtonDisabled;var n=U.nextButtonDisabled,y=U.data,A=U.playabilityStatus,C=U.previewThumbnail,h=_.bP("ytd-shorts-miniplayer-overlay"),b=_.gf(_.FPo),u;_.$g(function(){(u=_.$m(h.value))&&u.addEventListener("keydown",D)});
_.NV(function(){var Q;(Q=u)==null||Q.removeEventListener("keydown",D)});
U=function(){var Q,G,J;return(Q=y())==null?void 0:(G=Q.reelPlayerOverlayRenderer)==null?void 0:(J=G.likeButton)==null?void 0:J.likeButtonRenderer};
return _.g("ytd-shorts-miniplayer-overlay",{el:h,class:"ytdShortsMiniplayerOverlayHost"},_.g("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.BK({"background-image":function(){var Q=C();return Q?'url("'+_.H9(Q.thumbnails)+'")':""}})}),_.g("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.g("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.g(Wi2,{iconType:function(){var Q=b();
return Q===2||Q===-1||Q===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){yms(b())},
tooltipText:function(){var Q=b();return Q===1||Q===3?_.C3("PLAYER_LABEL_PAUSE"):_.C3("PLAYER_LABEL_PLAY")}}),_.g(_.l0J,{orientation:"horizontal_right"})),_.g("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.g(Wi2,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:l,onTap:function(){AmC(h.value)},
tooltipText:_.C3("PREVIOUS_VIDEO_LABEL")}),_.g(Wi2,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:n,onTap:function(){WsB(h.value)},
tooltipText:_.C3("NEXT_VIDEO_LABEL")}),_.q("web_shorts_pip_like_button")?_.g("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.g(aj8,{buttonTooltipPosition:"left",data:U,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.g("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.g(_.v,{cond:function(){var Q,G;return _.M((Q=y())==null?void 0:(G=Q.reelPlayerOverlayRenderer)==null?void 0:G.metapanel,
Vyh)},
then:function(Q){return _.g("div",{class:_.DV("ytdShortsMiniplayerOverlayInteractive")},_.g(_.AL$,{data:Q}))}})),_.g("div",{class:_.DV("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var Q;return!((Q=y())==null||!Q.adsOverlay)||A()&&!fto(A())}},_.g("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.g(_.iBJ,null)))),_.g(_.v,{cond:function(){var Q=y(),G,J;
Q=_.M(Q==null?void 0:(G=Q.adsOverlay)==null?void 0:(J=G.fulfillmentContent)==null?void 0:J.fulfilledLayout,xcv);return _.M(Q==null?void 0:Q.renderingContent,znm)},
then:function(Q){return _.g("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.g(UL1,{data:Q}))}}))},"hh");var BQc=_.w(function(){var l=_.B(_.aw(new _.Sr(NaN,NaN),void 0,"hq9Bjf")),D=l.next().value,U=l.next().value;l=_.B(_.aw(!1,void 0,"Mu3aZc"));var n=l.next().value,y=l.next().value,A=_.B(_.aw(!1,void 0,"LGtoFb"));l=A.next().value;var C=A.next().value,h=_.Jc().resolve(_.kq).miniplayerPropSignalMap[0],b=h.data,u=h.shortsData,Q=h.nextButtonDisabled,G=h.shortsPreviewThumbnail,J=h.previousButtonDisabled,L=h.externalPlaylistData;A=h.toastData;var R=h.playabilityStatus,a=h.isDisabled,S=h.playerVe,d=h.closeVe;
h=_.gf(_.OE);_.Pd("yt-pip-window-resized",function(f){U(f)});
_.Pd("yt-activate-pip-miniplayer",function(){return _.P(function(f){C(!0);_.Kz(f)})});
var c=function(){var f;return!((f=L())==null||!f.contents)&&n()},N=function(){var f=D(),I=!!b(),iG=c();
f=f.clone();I&&(f.height-=76);iG&&(f.height-=285);return f},z=function(){y(!n())};
_.$i(function(){var f=S(),I=_.t6(11),iG=_.aS(11);I&&iG&&f&&(_.jz(I,iG,f),iG=d())&&(_.FI(I,f,[iG]),_.wj(I,[iG]))},"fHkmfb");
return _.g("ytd-pip-container",{class:"ytdPipContainerHost"},_.g(_.v,{cond:l,then:function(){return _.g(_.vHT,{isDisabled:a,playabilityStatus:R,size:N,isPictureInPicture:!0})}}),_.g(_.v,{cond:b,
then:function(){return _.g(_.gHP,{data:b,expanded:n,onExpandClick:z,playlistData:L})}}),_.g(_.v,{cond:c,
then:function(){return _.g("div",{class:"ytdPipContainerPlaylistPanel"},_.g(_.eIP,{data:L,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.g(_.v,{cond:h,
then:function(){return _.g(B$$,{data:u,nextButtonDisabled:Q,previousButtonDisabled:J,playabilityStatus:R,previewThumbnail:G})}}),_.g("div",{class:"ytdPipContainerToast"},_.g(_.Q2r,{toastData:A})))},"jh");var jX=function(l,D,U){var n=this;this.pipController=l;this.JSC$19086_clientRoot=D;this.JSC$19086_pageRequestService=U;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=qwC();this.watchPipEnabled=_.q("web_watch_pip");this.shortsPipEnabled=_.q("web_shorts_pip");this.JSC$19086_watchWhileEnabled=_.q("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;_.fM(_.EB(),KPc,function(y){n.isSingleOptionSurveyActive=y});
this.JSC$19086_onPlayerPlayVideo=this.JSC$19086_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);_.Wd(_.AH.getInstance(),this.miniplayerServiceActionMap,this.JSC$19086_clientRoot);l.pictureInPictureSupported()&&_.Na("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Z87,JL5,u0P,LiW,qU$,NO1;
jX.prototype.handleMediaSessionPipActivation=function(){var l=this,D;return _.P(function(U){_.r3().mediaSessionPipActivation=!0;D=_.Jc().resolve(_.sm);return D.isOnWatch()&&l.watchPipEnabled?(_.r3().watchPipActivation=!0,_.Cy2(l,D.data),U.jumpTo(0)):D.isOnShorts()&&l.shortsPipEnabled?(_.r3().shortsPipActivation=!0,_.htr(l),U.jumpTo(0)):l.isMiniplayerActive()&&l.watchPipEnabled&&!l.watchWhileMode?U.yield(Py$(l),0):U.jumpTo(0)})};
var Py$=function(l){var D,U,n,y;return _.P(function(A){if(A.nextAddress==1)return D=!l.miniplayerToPipMode,U=l.playerElement,n=l.miniplayerData,y=l.watchResponse,A.yield(l.deactivate(),2);if(A.nextAddress!=3)return D?(_.r3().mediaSessionPipActivation=!0,_.r3().watchPipActivation=!0):_.r3().miniplayerButtonActivation=!0,A.yield(l.activate(U,n,y),3);l.miniplayerToPipMode=D;_.Kz(A)})};
jX.prototype.onDownloadedVideoDeleted=function(l){var D,U=_.M((D=this.miniplayerData)==null?void 0:D.watchEndpoint,_.za),n,y;U&&((n=this.watchResponse)==null?void 0:(y=n.playerResponse)==null?void 0:y.offlineState)!==void 0&&(D=U.videoId)&&l&&D===l&&this.close()};
jX.prototype.onShowMiniplayerCommand=function(l){var D=this,U,n,y,A,C,h,b,u,Q,G,J;return _.P(function(L){switch(L.nextAddress){case 1:return U=_.M(l,oM8),y=(n=U)==null?void 0:n.miniplayerCommand,A=_.M(y,_.za),y&&A&&!D.active?L.yield(_.Hq.getInstance(),2):L.return();case 2:return C=L.yieldResult,L.yield((h=C)==null?void 0:h.get("yt-miniplayer-shown-video-id"),3);case 3:b=L.yieldResult;u=A.videoId;if(!u||b===u)return L.return();Q=_.Jc().resolve(_.sm);if(Q.isOnWatch())return _.II(Error("Tj")),L.return();
G={channelItem:{externalId:btoa(u)}};D.readyToResumeVe=_.UE(121253,void 0,void 0,G);_.r3().showMiniplayerCommandActivation=!0;return L.yield(_.siy(D,y,!0),4);case 4:return D.active&&(_.F1(D,{readyToResumeVe:D.readyToResumeVe,isReadyToResume:!0}),D.isReadyToResume=!0),L.yield((J=C)==null?void 0:J.set("yt-miniplayer-shown-video-id",A.videoId),5);case 5:D.readyToResumeVe=void 0,_.Kz(L)}})};
jX.prototype.init=function(l){this.miniplayerEl?_.II(new _.rc("MiniplayerService already initialized.")):this.miniplayerEl=l};
jX.prototype.isInitialized=function(){var l=!!this.miniplayerEl;l||_.II(new _.rc("MiniplayerService used before initialized."));return l};
_.Cy2=function(l,D){if(l.isInitialized()){var U=_.a7(D.response,!1,D.playerResponse),n=_.Jc().resolve(_.sm).getPlayerFromWatch();_.r3().currentEndpoint=U.watchEndpoint||null;l.activate(n,U,D)}};
_.htr=function(l){if(l.isInitialized()){var D=_.Jc().resolve(_.sm).getPlayerFromShorts();l.activate(D)}};
Z87=function(l,D){var U;(U=!l.isInitialized())||(U=_.Jc().resolve(_.sm).isOnWatch()&&l.watchPipMode,U=!(l.isMiniplayerActive()&&(_.r3().userActivation||_.r3().lockupActivation||U)));if(U)return!1;bB$(l,D)?_.cX(l):NO1(l,D);return l.watchPipMode?!_.Jc().resolve(_.sm).isOnWatch():!0};
jX.prototype.isMiniplayerActive=function(){return this.active};
var bB$=function(l,D){var U;D=(U=_.M(D,_.za))==null?void 0:U.videoId;var n,y;l=(y=_.M((n=l.miniplayerData)==null?void 0:n.watchEndpoint,_.za))==null?void 0:y.videoId;return D!=null&&D===l};
jX.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.O9(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Vh(this.miniplayerEl,"yt-navigate-home-action"))};
_.siy=function(l,D,U,n){U=U===void 0?!1:U;var y,A,C;return _.P(function(h){switch(h.nextAddress){case 1:if(l.active){h.jumpTo(2);break}y=_.Jc().resolve(_.sm);if(C=(A=l.playerElement)!=null?A:y.getPlayerFromWatch()){h.jumpTo(3);break}return h.yield(_.Jc().resolve(_.Vl),4);case 4:C=y.getPlayerFromWatch();case 3:if(!C){_.II(Error("Vj"));h.jumpTo(2);break}return h.yield(l.activate(C,n),2);case 2:return l.active?h.yield(NO1(l,D,U),0):h.return()}})};
jX.prototype.activate=function(l,D,U){var n=this,y,A,C,h,b,u,Q,G,J;return _.P(function(L){switch(L.nextAddress){case 1:if(!n.isInitialized())return L.return();if(!l)return _.II(Error("Vj")),L.return();if(_.nek()||n.isMiniplayerActive())var R=!0;else R=_.r3().watchPipActivation||_.r3().watchWhileActivation,_.Jc().resolve(_.sm).isOnWatch()&&!R?(_.II(new _.rc("miniplayer activated on watch page")),R=!0):R=_.r3().watchWhileActivation?n.userDeactivatedWatchWhile||!!document.pictureInPictureElement||ZgK():
!1;if(R)return UBv(),L.return();y=_.r3().mediaSessionPipActivation;A=_.r3().shortsPipActivation;C=_.r3().watchPipActivation;b=(h=_.r3().watchWhileActivation)||C;u=C||A;if(!n.pictureInPictureEnabled()||!u){L.jumpTo(2);break}return L.yield(gGH(n,y),3);case 3:if(!L.yieldResult)return _.II(Error("Uj")),UBv(),L.return();case 2:return n.setActive(!0),n.watchResponse=U,n.playerElement=l,n.updateMiniplayerData(D),L.yield(u0P(n,l),4);case 4:if(!n.active)return _.II(new _.rc("miniplayer deactivated during activation")),
n.removePlayerListeners(),L.return();R=_.Jc().resolve(_.Cd);R.addEventListener("yt-navigate",_.CY(n,n.onPlaylistNavigate));R.addEventListener("yt-playlist-data-updated",_.CY(n,n.JSC$19086_onPlaylistDataUpdated));n.JSC$19086_onPlaylistDataUpdated();UBv();n.JSC$19086_watchWhileEnabled&&_.vGW(n,h);n.pictureInPictureEnabled()&&n.shortsPipEnabled&&(n.shortsPipMode=A,_.EB().dispatch(sDy(n.shortsPipMode)));n.pictureInPictureEnabled()&&n.watchPipEnabled&&(n.watchPipMode=C,_.mbK(n.handleMediaSessionPipActivation));
n.player&&(Q=n.player.getPlayerState(),G=Q===1,_.EB().dispatch(Dvy(Q)),_.iu(n.miniplayerEl,"yt-miniplayer-play-state-changed",[G]),_.r3().isVideoPlaying=G);_.iu(n.miniplayerEl,"yt-miniplayer-endpoint-changed");QIJ(n);_.Gjv(n);if(n.shortsPipMode||n.watchPipMode)L=L.yield(_.Vh(n.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{R=L.yield;var a=_.Vh(n.miniplayerEl,"yt-activate-miniplayer",[b])[0];L=R.call(L,a,6)}return L;case 6:if(n.watchResponse){R=n.getScreenLayer();a=_.t6(0);var S=hRg(0);a&&S&&
(_.SG(a,S,R),R===0&&BDg(void 0,0))}JL5(n);LiW(n,!0);(J=n.getPlayerElement())==null||J.focusOnPlayer();_.Kz(L)}})};
jX.prototype.updateMiniplayerData=function(l){this.miniplayerData=l;_.F1(this,{data:l})};
_.Gjv=function(l){var D,U,n=((D=l.miniplayerData)==null?void 0:(U=D.miniplayerRenderer)==null?void 0:U.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";D=l.watchWhileMode||l.watchPipMode?n&&!_.Jc().resolve(_.sm).isOnWatch():n;_.F1(l,{isDisabled:D});var y,A;U=_.M((y=l.miniplayerData)==null?void 0:(A=y.miniplayerRenderer)==null?void 0:A.minimizedEndpoint,_.rA);D&&U&&_.Jc().resolve(_.H0).openSheet({openPopupActionCommand:{openPopupAction:U}},l.miniplayerEl)};
JL5=function(l){if(l.watchResponse&&!qU$(l)){var D,U=(D=l.watchResponse.playerResponse)==null?void 0:D.trackingParams;U&&(_.F1(l,{expandVe:_.UE(35989),closeVe:_.UE(34699),readyToResumeCloseVe:_.UE(131070),repositionVe:_.UE(226204),resizeVe:_.UE(226205)}),_.F1(l,{playerVe:_.v9(U)}))}};
u0P=function(l,D){return _.P(function(U){if(U.nextAddress==1)return D.preparePlayer(),U.yield(D.getPlayerPromise(),2);l.player=U.yieldResult;l.player&&(l.player.addEventListener("onPlayVideo",l.JSC$19086_onPlayerPlayVideo),l.player.addEventListener("onCloseMiniplayer",l.onPlayerCloseMiniplayer),l.player.addEventListener("onExpandMiniplayer",l.onPlayerExpandMiniplayer),l.player.addEventListener("onStateChange",l.onPlayerStateChange));_.Kz(U)})};
_.W=jX.prototype;_.W.JSC$19086_onPlayerPlayVideo=function(l){var D=l.sessionData&&"autonav"in l.sessionData,U;l.sessionData&&l.sessionData.itct&&(U=l.sessionData.itct);var n=l.watchEndpoint;D=n&&D?_.wXK(n,U):_.Ie(l.videoId,l.listId||void 0,U);l.sessionData&&_.s9(_.M(D.commandMetadata,_.W6).url,l.sessionData);NO1(this,D)};
_.W.onPlayerExpandMiniplayer=function(){_.cX(this)};
_.W.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.W.onPlayerStateChange=function(){if(this.player){var l=this.player.getPlayerState(),D=l===1;_.EB().dispatch(Dvy(l));_.EB().dispatch(_.y2v(l));_.iu(this.miniplayerEl,"yt-miniplayer-play-state-changed",[D]);_.r3().isVideoPlaying=D;if(l===0){D=!_.RZ.getInstance().isAutoplaySetExplicitly();var U,n,y,A,C,h,b=(U=this.watchResponse.response)==null?void 0:(n=U.contents)==null?void 0:(y=n.twoColumnWatchNextResults)==null?void 0:(A=y.autoplay)==null?void 0:(C=A.autoplay)==null?void 0:(h=C.autoplayExplicitChoiceDialogRenderer)==
null?void 0:h.confirmDialogRenderer;D&&b&&this.player.setAutonavState(1)}l===0&&this.watchWhileMode&&this.deactivate()}};
_.W.onPlaylistNavigate=function(l,D){var U=this,n,y,A,C,h,b,u;return _.P(function(Q){if(Q.nextAddress==1){if(!_.M(D.endpoint,_.za))return Q.return();_.r3().currentEndpoint=D.endpoint;_.iu(U.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.Jc().resolve(_.sm).isOnWatch()&&(U.watchWhileMode||U.watchPipMode))return Q.return();l.stopPropagation();(A=(y=_.M((n=D.endpoint)==null?void 0:n.commandMetadata,_.W6))==null?void 0:y.url)&&D.tempData&&!_.we.isEmpty(D.tempData)&&_.s9(A,D.tempData);C={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};h=new ywk(function(){return U.getPlayerElement()},C,{layer:U.getScreenLayer()});
b=function(G){h.processChunk({endpoint:D.endpoint,data:G})};
M2J(U);U.miniplayerFetchRequest=RtJ(U,D.endpoint,b);_.ZY(Q,2);return Q.yield(U.miniplayerFetchRequest,4)}if(Q.nextAddress!=2)return u=Q.yieldResult,ZBq(U,u),_.WG(Q,0);_.kF(Q);_.Kz(Q)})};
_.W.JSC$19086_onPlaylistDataUpdated=function(){var l=_.Jc().resolve(_.Cd).getPlaylistData();this.hasPlaylistData=!!l;_.F1(this,{externalPlaylistData:l||{}})};
_.W.close=function(l){if(this.isInitialized())if(l){if(!((this.watchWhileMode||this.watchPipMode)&&_.Jc().resolve(_.sm).isOnWatch()||this.shortsPipMode)){var D;(D=this.getPlayerElement())==null||D.stop()}this.deactivate()}else _.uN().closeMiniplayer(this.miniplayerEl)};
_.W.deactivate=function(l){var D=this,U,n,y,A;return _.P(function(C){if(C.nextAddress==1){if(!D.isInitialized()||!D.active)return C.return();D.setActive(!1);M2J(D);(U=!!l&&bB$(D,l))&&D.isSingleOptionSurveyActive&&_.Vh(D.miniplayerEl,"yt-show-watch-page-survey",[D.isSingleOptionSurveyActive]);return C.yield(et8(D),2)}if(C.nextAddress!=3){LiW(D,!1);D.isReadyToResume=!1;D.watchResponse=void 0;D.updateMiniplayerData(void 0);D.shortsPipMode&&(D.shortsPipMode=!1,_.EB().dispatch(sDy(D.shortsPipMode)),jwq(D.pipController),
(n=D.player)==null||n.setInternalSize(NaN,NaN));D.watchPipMode&&(D.watchPipMode=!1,jwq(D.pipController));(y=D.watchWhileMode)&&_.vGW(D,!1);D.removePlayerListeners();var h=_.Jc().resolve(_.Cd);h.removeEventListener("yt-navigate",_.CY(D,D.onPlaylistNavigate));h.removeEventListener("yt-playlist-data-updated",_.CY(D,D.JSC$19086_onPlaylistDataUpdated));_.r3().currentEndpoint=null;_.iu(D.miniplayerEl,"yt-miniplayer-endpoint-changed");D.playerElement=null;UBv();if(D.shortsPipMode||D.watchPipMode)C=C.jumpTo(3);
else{h=C.yield;var b=_.Vh(D.miniplayerEl,"yt-deactivate-miniplayer",[U,y])[0];C=h.call(C,b,3)}return C}(A=D.player)==null||A.setInternalSize(NaN,NaN);D.player=null;_.Kz(C)})};
var et8=function(l){var D;return _.P(function(U){D=_.Jc().resolve(_.sm);return l.shortsPipMode?U.yield(D.movePlayerToShorts(l.playerElement),0):U.yield(D.movePlayerToWatch(l.playerElement),0)})};
jX.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19086_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
jX.prototype.setActive=function(l){this.active=l;this.isSingleOptionSurveyActive?_.Vh(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Vh(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.EB().dispatch(_.V0({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.vGW=function(l,D){l.watchWhileMode=D;_.F1(l,{watchWhile:D})};
LiW=function(l,D){if(!qU$(l))if(l.shortsPipMode||l.watchPipMode){var U;(U=l.player)==null||U.setDocumentPictureInPicture(D)}else{var n;(n=l.player)==null||n.setMinimized(D)}};
qU$=function(l){return l.watchWhileMode&&_.q("kevlar_watch_while_counterfactual")};
_.cX=function(l){var D;return _.P(function(U){switch(U.nextAddress){case 1:if(!l.isInitialized())return U.return();_.ZY(U,2);return U.yield(l.miniplayerFetchRequest,4);case 4:_.WG(U,3);break;case 2:_.kF(U);case 3:l.watchResponse&&l.miniplayerData&&l.miniplayerData.watchEndpoint?(D={url:l.watchResponse.url,endpoint:l.miniplayerData.watchEndpoint,data:l.watchResponse,miniplayer:!0},_.O9(l.miniplayerEl,"yt-navigate-cache",D)):l.miniplayerData&&l.miniplayerData.watchEndpoint&&_.O9(l.miniplayerEl,"yt-navigate",
{endpoint:l.miniplayerData.watchEndpoint}),_.Kz(U)}})};
NO1=function(l,D,U){var n,y,A,C;return _.P(function(h){if(h.nextAddress==1){if(bB$(l,D))return h.return();_.r3().currentEndpoint=D;_.iu(l.miniplayerEl,"yt-miniplayer-endpoint-changed");_.iu(l.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.r3().isVideoPlaying=!1;n={clientParams:{miniplayer:!0,autoSaveToQueue:!U}};y=new ywk(function(){return l.getPlayerElement()},n,{layer:l.getScreenLayer(),
parentLayer:0},void 0,l.readyToResumeVe);A=function(b){var u,Q,G=Object.assign({},(u=b.playerResponse)==null?void 0:(Q=u.playerConfig)==null?void 0:Q.playbackStartConfig,{startPaused:!0}),J;U&&((J=b.playerResponse)==null?0:J.playerConfig)&&(b.playerResponse.playerConfig.playbackStartConfig=G);y.processChunk({endpoint:D,data:b})};
M2J(l);l.miniplayerFetchRequest=RtJ(l,D,A);_.ZY(h,2);return h.yield(l.miniplayerFetchRequest,4)}if(h.nextAddress!=2)return C=h.yieldResult,ZBq(l,C),_.WG(h,0);_.kF(h);_.Kz(h)})};
jX.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var M2J=function(l){l.miniplayerFetchRequest&&(l.miniplayerFetchRequest.cancel&&l.miniplayerFetchRequest.cancel("Active request obsolete"),l.miniplayerFetchRequest=null)},RtJ=function(l,D,U){var n,y=(n=_.M(D.commandMetadata,_.W6))==null?void 0:n.url,A;
n=!y||_.q("disable_miniplayer_tempdata")?{}:(A=Hic(y))!=null?A:{};return cI(l.JSC$19086_pageRequestService,D,n,window.location.href,"watch",function(C,h){U(h)},function(C){return C!==l.miniplayerFetchRequest})},ZBq=function(l,D){var U;
_.P(function(n){if(!D)return n.return();l.watchResponse=D;JL5(l);QIJ(l);U=_.a7(D.response,!1,D.playerResponse);if(l.isMiniplayerActive()){D.response&&(l.playerElement.watchNextData=D.response);var y=_.we.getValueByKeys.apply(_.we,[D].concat(_.zz(v4H)));_.we.getValueByKeys.apply(_.we,[D].concat(_.zz(qny)))&&y&&_.Jc().resolve(_.Cd).setAutoplayRenderer(y);if(y)if(_.q("kevlar_is_pupi_enabled")){var A,C,h,b,u,Q=((A=D.response)==null?0:(C=A.playerOverlays)==null?0:(h=C.playerOverlayRenderer)==null?0:(b=
h.autonavToggle)==null?0:(u=b.autoplaySwitchButtonRenderer)==null?0:u.enabled)?2:1;_.RZ.getInstance().setState(Q,!1,!1)}else A=CvG()?2:1,(Q=l.player)==null||Q.setAutonavState(A);l.updateMiniplayerData(U);_.Gjv(l)}_.Kz(n)})},QIJ=function(l){var D,U,n=(D=l.watchResponse)==null?void 0:(U=D.playerResponse)==null?void 0:U.playabilityStatus,y;
D=n==null?void 0:(y=n.miniplayer)==null?void 0:y.miniplayerRenderer;(D==null?void 0:D.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&D.minimizedEndpoint&&_.lu(l.miniplayerEl,[D.minimizedEndpoint]);_.F1(l,{playabilityStatus:n})};
jX.prototype.openToast=function(l,D){_.F1(this,{toastData:{data:l,label:D}})};
_.F1=function(l,D){(0,l.miniplayerPropSignalMap[1])(D)};
jX.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var l;return this.playerElement?this.playerElement:(l=_.iJ(this.miniplayerEl).querySelector("#player-container"))==null?void 0:l.firstElementChild};
jX.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var gGH=function(l,D){D=D===void 0?!1:D;var U,n,y,A,C,h;return _.P(function(b){if(b.nextAddress==1){if(!l.pictureInPictureSupported()||!h$B()&&!D)return b.return(!1);U=maW(l);n=U.width;y=U.height;return b.yield(l.pipController.openWindow({width:n,height:y}),2)}A=b.yieldResult;C=l.pipController.getWindow();if(!C||!A)return b.return(!1);C.document.body.style.overflow="hidden";h=Ce3(C);FUq(l.pipController,function(){a05(l);h()});
return b.return(!0)})},maW=function(l){var D=_.r3().shortsPipActivation,U,n;
l=D?.5625:(n=(U=l.player)==null?void 0:U.getVideoAspectRatio())!=null?n:16/9;U=Math.min(window.innerWidth,window.innerHeight)/2;D=D?0:76;return l>1?new _.Sr(U,D+U/l):new _.Sr(U*l,D+U)},a05=function(l){var D;
_.P(function(U){D=_.Jc().resolve(_.sm);return D.isOnWatch()&&l.watchPipMode||D.isOnShorts()&&l.shortsPipMode?U.yield(l.deactivate(),0):l.miniplayerToPipMode?U.yield(Py$(l),0):l.watchPipMode?U.yield(_.cX(l),0):U.jumpTo(0)})};
jX.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.QP.Object.defineProperties(jX.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
jX[Lt]=[oi$,JNH,_.JS];var t2J="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(" "),
XA8="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(" "),SU$="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
kj8="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var daP=function(l,D,U){_.xT.call(this);this.store=l;this.panelController=D;this.pageContentExtractor=U;this.isInitialized=!1};
_.Z(daP,_.xT);
daP.prototype.init=function(l){var D=this;this.isInitialized||(this.isInitialized=!0,this.environment=l!=null?l:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.xv.currentPageSubTypeSelector(this.store.getState()),l=_.fM(this.store,_.xv.currentPageSubTypeSelector,function(U){a:if(_.Kiq(D))switch(U){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var n=!0;break a;default:n=!1}else n=!1;n&&D.panelController.hidePanel({identifier:"PAai_companion"});
D.pageSubtype!==U&&(D.pageSubtype=U)}),this.addOnDisposeCallback(l))};
_.i2J=function(l,D){if(_.Kiq(l))switch(D){case "watch":var U,n;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(U=_.Ai())==null?void 0:(n=U.getVideoData())==null?void 0:n.video_id};case "search":var y,A,C;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(A=(y=l.pageContentExtractor)==null?void 0:mVJ(y))!=null?A:[],entityId:(C=(new URLSearchParams(window.location.search)).get("search_query"))!=null?C:void 0};case "companion-canvas":var h,b;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(b=(h=
l.pageContentExtractor)==null?void 0:mVJ(h))!=null?b:[]};default:var u,Q;l={videoIds:(Q=(u=l.pageContentExtractor)==null?void 0:mVJ(u))!=null?Q:[]};return _.q("enable_ai_companion_default_page_context")?l:void 0}};
_.Kiq=function(l){return l.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
daP[Lt]=[_.Op,_.IH,_.G8(ap$)];_.cLw=_.w(function(l){return _.g("yt-ai-companion-attachment-view-model",{el:_.fe(_.aT(function(){return l.data().rendererContext})),
class:_.DV("ytAiCompanionAttachmentViewModelHost",l.className)},_.g("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.g(_.v,{cond:function(){return l.data().title},
then:function(D){return _.g("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return D().content}},_.g(_.BO,{text:D}))}}),_.g(_.v,{cond:function(){return _.pq(l.data().trailingTitleIcon)},
then:function(D){return _.g("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.g(_.rh,{data:D,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.g(_.v,{cond:function(){return l.data().description},
then:function(D){return _.g("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.g(_.BO,{text:D}))}}),_.g(_.v,{cond:function(){return l.data().bottomItem},
then:function(D){return _.g("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.g(_.uI,{data:D},{tableViewModel:cD7}))}}))},"lh");_.pAP=_.w(function(l){return _.g("yt-channel-attribution-view-model",{class:_.DV("ytChannelAttributionViewModelHost",l.className)},_.g("div",{class:"ytChannelAttributionViewModelUpper"},_.g(_.uI,{data:function(){return l.data().avatar}},{decoratedAvatarViewModel:_.lX}),_.g("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.g(_.BO,{text:function(){return l.data().title}}))),_.g("div",{class:"ytChannelAttributionViewModelBottom"},_.g(_.BO,{text:function(){return l.data().subtitle}})))},"mh");var xar=_.w(function(l){var D=_.B(_.aw(!1,void 0,"MFRKRb")),U=D.next().value,n=D.next().value,y=function(){return l.data().activeRenderer},A=function(){return l.data().inactiveRenderer};
return _.g("yt-channel-disclosure-view-model",{"on:mouseleave":_.n0(function(){n(!1)}),
"on:mouseover":_.n0(function(){n(!0)}),
class:_.DV("ytChannelDisclosureViewModelHost",l.className)},_.g(_.v,{cond:function(){return U()},
then:function(){return _.g(_.uI,{data:y},{channelAttributionViewModel:_.pAP})},
else:function(){return _.g(_.uI,{data:A},{decoratedAvatarViewModel:_.lX})}}))},"nh");var jIq=null;var Fiq={},oG5=(Fiq.initialized={priority:10,callback:function(l){var D=_.Jc();D.addProvider({provide:t98,useClass:w3w});D.addProvider({provide:_.og8,useFactory:function(){return new XGh}});
D.addProvider({provide:Cv,useValue:_.H3("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});D.addProvider({provide:Cp8,useValue:5184E6});D.addProvider({provide:caP,useValue:_.M9()});D.addProvider({provide:Aqv,useClass:J0g});D.addProvider({provide:gi,useClass:gi});D.addProvider({provide:_.Vl,useFactory:function(){return Eey.promise}});
D.addProvider({provide:_.I4k,useFactory:function(){return _.T_g.promise}});
D.addProvider({provide:pVK,useValue:function(){var b;return((b=_.T4())==null?void 0:b.getPlayer())||null}});
var U={};D.addProvider((U.provide=_.lY,U.useFactory=function(b,u){return function(){return C29(b,u)}},U[Lt]=[Cv,
Cp8],U));U={};D.addProvider((U.provide=_.dZ,U.useClass=ZwT,U[Lt]=[Cv,Cp8],U));U={};D.addProvider((U.provide=_.aiK,U.useClass=tUJ,U[Lt]=[_.dZ],U));D.addProvider({provide:ij,useFactory:_.EB});D.addProvider({provide:Vd,useFactory:_.EB});D.addProvider({provide:viH,useFactory:_.EB});D.addProvider({provide:VrJ,useFactory:_.EB});D.addProvider({provide:_.Op,useFactory:_.EB});D.addProvider({provide:xE,useValue:_.Bc});D.addProvider({provide:cf$,useClass:EB_});D.addProvider({provide:XYJ,useClass:tcr});D.addProvider({provide:rd,
useClass:rd});D.addProvider({provide:xU,useClass:xU});D.addProvider({provide:Sb,useClass:Sb});D.addProvider({provide:jE,useClass:jE});D.addProvider({provide:T0,useClass:T0});D.addProvider({provide:XB,useClass:XB});D.addProvider({provide:bE,useClass:bE});D.addProvider({provide:_.pR,useValue:llH});U={};D.addProvider((U.provide=TeT,U.useFactory=function(b){return b.watchEndpointMap||{}},U[Lt]=[_.pR],U));
U={};D.addProvider((U.provide=IU5,U.useFactory=function(b){return b.reelWatchEndpointMap||{}},U[Lt]=[_.pR],U));
D.addProvider({provide:_.$k,useFactory:_.he});D.addProvider({provide:H4,useFactory:_.bu});U={};D.addProvider((U.provide=CgC,U.useFactory=function(b){return function(u){var Q=Q===void 0?{}:Q;var G,J,L=(J=_.M((G=u.endpoint)==null?void 0:G.commandMetadata,_.W6))==null?void 0:J.rootVe;if(L){var R,a;if(G=u.previousCsn||((a=_.M((R=u.endpoint)==null?void 0:R.commandMetadata,GWv))==null?void 0:a.parentCsn)){var S=S===void 0?{}:S;if(G!==_.t6(S.layer)||L!==hRg(S.layer))vsg(G,S.cttAuthInfo,S.layer||0),BDg(G,
S.layer||0),R=S.layer||0,_.IN(C3l(R===void 0?0:R),L);Q.parentCsn=G}u.endpoint&&G?rP8(b,u.endpoint,Q):_.KM(b,L,void 0,Q);var d;((d=u.response)==null?0:d.trackingParams)&&b.graftServerVe(u.response.trackingParams);var c;((c=u.playerResponse)==null?0:c.trackingParams)&&b.graftServerVe(u.playerResponse.trackingParams);var N;((N=u.reelWatchSequenceResponse)==null?0:N.trackingParams)&&b.graftServerVe(u.reelWatchSequenceResponse.trackingParams)}}},U[Lt]=[_.$k],U));
U={};D.addProvider((U.provide=GpT,U.useClass=Qww,U[Lt]=[xE,_.Op],U));U={};D.addProvider((U.provide=bY,U.useClass=bY,U[Lt]=[_.Vl,_.Op],U));U={};D.addProvider((U.provide=BX,U.useClass=BX,U[Lt]=[Vd,_.qK],U));D.addProvider({provide:_.tNq,useClass:rq2});U={};D.addProvider((U.provide=_.IH,U.useClass=kpw,U[Lt]=[_.tNq,_.G8(_.O3)],U));D.addProvider({provide:_.Xl,useClass:kPH});U={};D.addProvider((U.provide=SE,U.useClass=SE,U[Lt]=[_.Xl,_.Vl,_.Ju,_.qK],U));D.addProvider({provide:_.H0,useClass:vX});D.addProvider({provide:_.mG2,
useClass:MMH});D.addProvider({provide:_.YO,useClass:gw});_.q("enable_ai_companion")&&(D.addProvider({provide:_.O3,useClass:cq$}),D.addProvider({provide:_.Qvy,useClass:xRk}),D.addProvider({provide:ap$,useClass:ZyJ}),D.addProvider({provide:IK,useClass:IK}),D.addProvider({provide:TG,useClass:TG}),D.addProvider({provide:JDh,useValue:xar}),D.addProvider({provide:_.LA5,useValue:_.cLw}));_.q("enable_ai_chat_controller")&&D.addProvider({provide:_.EN,useClass:daP});U={};D.addProvider((U.provide=_.s8,U.useClass=
w_8,U[Lt]=[_.s8],U));D.addProvider({provide:_.c$,useClass:Mc$});D.addProvider({provide:y7,useClass:y7});D.addProvider({provide:d2,useClass:d2});D.addProvider({provide:P4,useClass:P4});U={};D.addProvider((U.provide=ff,U.useClass=ff,U[Lt]=[_.qK,_.Ju],U));D.addProvider({provide:Rc,useClass:uY});U={};D.addProvider((U.provide=my,U.useClass=my,U[Lt]=[_.H0,Rc],U));U={};D.addProvider((U.provide=Lv,U.useClass=Lv,U[Lt]=[_.H0],U));U={};D.addProvider((U.provide=lj,U.useClass=lj,U[Lt]=[ij,Vz],U));D.addProvider({provide:Vz,
useClass:DGJ});_.q("web_enable_feedback_endpoint_resolver_batch_2")&&(U={},D.addProvider((U.provide=U8,U.useClass=U8,U[Lt]=[ij],U)),U={},D.addProvider((U.provide=D6,U.useClass=D6,U[Lt]=[Vz],U)));U={};D.addProvider((U.provide=Z6,U.useClass=Z6,U[Lt]=[_.YO,Rc],U));U={};D.addProvider((U.provide=v4,U.useClass=v4,U[Lt]=[_.YO],U));U={};D.addProvider((U.provide=eb,U.useClass=eb,U[Lt]=[_.Ju,_.IH],U));U={};D.addProvider((U.provide=Mp,U.useClass=Mp,U[Lt]=[_.Ju,_.$k],U));D.addProvider({provide:nR,useClass:nR});
U={};D.addProvider((U.provide=Ic,U.useClass=Ic,U[Lt]=[ij],U));D.addProvider({provide:J0,useClass:J0});D.addProvider({provide:GR,useClass:GR});U={};D.addProvider((U.provide=qm,U.useClass=qm,U[Lt]=[ij],U));U={};D.addProvider((U.provide=Mm,U.useClass=Mm,U[Lt]=[_.Ju,ij],U));U={};D.addProvider((U.provide=R3,U.useClass=R3,U[Lt]=[ij],U));U={};D.addProvider((U.provide=ZM,U.useClass=ZM,U[Lt]=[ij],U));U={};D.addProvider((U.provide=Jt,U.useClass=Jt,U[Lt]=[_.IH],U));U={};D.addProvider((U.provide=CR,U.useClass=
CR,U[Lt]=[_.$k],U));U={};D.addProvider((U.provide=vJ,U.useClass=vJ,U[Lt]=[lf],U));U={};D.addProvider((U.provide=Qe,U.useClass=Qe,U[Lt]=[lf],U));D.addProvider({provide:bf,useClass:bf});D.addProvider({provide:gJ,useClass:gJ});D.addProvider({provide:BJ,useClass:BJ});U={};D.addProvider((U.provide=ac,U.useClass=ac,U[Lt]=[_.IH,_.qK],U));D.addProvider({provide:B4,useClass:B4});U={};D.addProvider((U.provide=qp,U.useClass=qp,U[Lt]=[_.Ju,_.IH],U));D.addProvider({provide:bj,useClass:bj});U={};D.addProvider((U.provide=
E8,U.useClass=E8,U[Lt]=[ij,_.Ju,_.s8],U));U={};D.addProvider((U.provide=fv,U.useClass=fv,U[Lt]=[_.Ju,_.qK],U));D.addProvider({provide:bQr,useValue:vQ_});D.addProvider({provide:qvg,useValue:HRl});D.addProvider({provide:Np,useClass:Np});U={};D.addProvider((U.provide=zH,U.useClass=zH,U[Lt]=[ij],U));U={};D.addProvider((U.provide=TH,U.useClass=TH,U[Lt]=[_.c$,_.qK],U));U={};D.addProvider((U.provide=nv,U.useClass=nv,U[Lt]=[_.qK],U));D.addProvider({provide:ON,useFactory:function(){return new ON(_.EB())}});
D.addProvider({provide:kx$,useFactory:_.FP.getInstance});U={};D.addProvider((U.provide=ht,U.useClass=ht,U[Lt]=[Cv,kx$,_.qK],U));D.addProvider({provide:At,useClass:At});D.addProvider({provide:$E,useClass:$E});D.addProvider({provide:sN,useClass:sN});D.addProvider({provide:_.NI,useClass:_.NI});D.addProvider({provide:a3,useClass:a3});U={};D.addProvider((U.provide=jb,U.useClass=jb,U[Lt]=[Vd],U));U={};D.addProvider((U.provide=Xf,U.useClass=Xf,U[Lt]=[_.qK],U));U={};D.addProvider((U.provide=Ff,U.useClass=
Ff,U[Lt]=[_.qK],U));U={};D.addProvider((U.provide=oc,U.useClass=oc,U[Lt]=[_.qK],U));_.q("web_enable_prefetching_videos_on_home")&&(D.addProvider({provide:WX,useClass:WX}),D.addProvider({provide:tl,useClass:tl}));U={};D.addProvider((U.provide=mN,U.useClass=mN,U[Lt]=[_.qK],U));D.addProvider({provide:Hi,useClass:Hi});U={};D.addProvider((U.provide=ye,U.useClass=ye,U[Lt]=[_.Ju,_.qK],U));U={};D.addProvider((U.provide=YE,U.useClass=YE,U[Lt]=[_.qK],U));U={};D.addProvider((U.provide=X1,U.useClass=X1,U[Lt]=
[_.Ju,_.qK],U));D.addProvider({provide:as,useClass:as});D.addProvider({provide:c4,useClass:c4});U={};D.addProvider((U.provide=Kv,U.useClass=Kv,U[Lt]=[Vd,_.qK],U));D.addProvider({provide:pv,useClass:pv});U={};D.addProvider((U.provide=dJ,U.useClass=dJ,U[Lt]=[Vd,_.qK,_.Ju],U));U={};D.addProvider((U.provide=KR,U.useClass=KR,U[Lt]=[_.qK],U));U={};D.addProvider((U.provide=kU,U.useClass=kU,U[Lt]=[_.qK,_.Ju],U));U={};D.addProvider((U.provide=Uq,U.useClass=Uq,U[Lt]=[_.qK,_.Ju],U));U={};D.addProvider((U.provide=
r2,U.useClass=r2,U[Lt]=[_.Vl],U));U={};D.addProvider((U.provide=w2,U.useClass=w2,U[Lt]=[_.Vl],U));U={};D.addProvider((U.provide=xj,U.useClass=xj,U[Lt]=[_.Vl],U));D.addProvider({provide:V7,useClass:V7});D.addProvider({provide:DM,useClass:DM});D.addProvider({provide:LR,useClass:LR});D.addProvider({provide:A0,useClass:A0});D.addProvider({provide:O8,useClass:O8});D.addProvider({provide:g2,useClass:g2});D.addProvider({provide:Yj,useClass:Yj});_.q("kevlar_enable_mss_lazy_load")&&D.addProvider({provide:_.KE,
useClass:qGW});D.addProvider({provide:_.Fl,useClass:GU});D.addProvider({provide:M3,useFactory:function(){return _.AH.getInstance()}});
D.addProvider({provide:giP,useFactory:MAK});D.addProvider({provide:lf,useFactory:function(){return _.Hq.getInstance()}});
D.addProvider({provide:xB8,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});U={};D.addProvider((U.provide=_.Co,U.useClass=_.Co,U[Lt]=[_.Vl,_.qK,_.$k,giP,lf,M3,xB8,xE],U));D.addProvider({provide:_.jK,useClass:i8h});D.addProvider({provide:_.Ppv,useClass:hhT});U={};D.addProvider((U.provide=uj,U.useClass=uj,U[Lt]=[_.Ppv],U));U={};D.addProvider((U.provide=_.hl,U.useFactory=function(b){return b.upliftCompletionResolver.promise},U[Lt]=[GpT],U));
U=_.il("IS_SHELL_LOAD")?"aa":"eocs";var n=_.il("IS_SHELL_LOAD")?3:2;_.PN().parkOrScheduleJob(function(){LUH()},n,U);
_.PN().parkOrScheduleJob(function(){_.Jc().resolve(bY).start()},2,"eocs");
_.PN().parkOrScheduleJob(function(){ux$()},2,"eocs");
_.PN().parkOrScheduleJob(function(){_.Jc().resolve(BX).start()},2,"eocs");
_.q("kevlar_debug_data_app_registration_ks")||B19();D.addProvider({provide:_.vK,useValue:new kq8(l.root)});D.addProvider({provide:Dm,useValue:new hd9});D.addProvider({provide:_.oC8,useValue:new jlP(l.root)});D.addProvider({provide:_.GI,useValue:new FH5});D.addProvider({provide:_.xp,useClass:zw});D.addProvider({provide:oi$,useClass:QR});_.q("kevlar_network_sli_killswitch")||D.addProvider({provide:EgT,useValue:nE7});D.addProvider({provide:p38,useFactory:eo9});_.q("web_bind_fetch")&&(U={},D.addProvider((U.provide=
x1W,U.useFactory=mSs,U[Lt]=[_.G8(p38)],U)));_.q("web_bind_window_request")&&(U={},D.addProvider((U.provide=jNq,U.useFactory=aEc,U[Lt]=[_.G8(p38)],U)));_.q("web_bind_text_decoder")&&(U={},D.addProvider((U.provide=Fv$,U.useFactory=tOo,U[Lt]=[_.G8(p38)],U)));U={};D.addProvider((U.provide=FLW,U.useFactory=AbB,U[Lt]=[_.hl,ij,_.lY],U));U={};D.addProvider((U.provide=jBr,U.useClass=cJ,U[Lt]=[FLW],U));D.addProvider({provide:GC8,useClass:gT$});D.addProvider({provide:KL2,useClass:p78});U=[].concat(_.zz(tX3));
_.q("web_continuation_response_processing")&&U.push(_.ko);U.push(O_y);_.q("enable_share_panel_navigation_logging_fix_on_web")&&U.push(_.b$g);D.addProvider({provide:aH3,useValue:U});D.addProvider({provide:cmN,useClass:dGP});D.addProvider({provide:OkW,useClass:Ttr});U={};D.addProvider((U.provide=Sxs,U.useClass=HcP,U[Lt]=[Vd],U));_.Tn.addLowPriorityJob(function(){jFK()});
U={};D.addProvider((U.provide=Jwr,U.useFactory=function(b){return function(u){var Q,G=(Q=_.M(u.commandMetadata,_.W6))==null?void 0:Q.url;if(!G)throw new _.rc("No URL for PBJ Command",u);G=$AC(G,{pbj:"1"});Q=hQG(G,{})||{};Q=Object.assign({},Q,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.H3("STS").toString()});u=_.Kt({command:JSON.stringify(u),session_token:_.H3("XSRF_TOKEN")});return b.fetch(G,{method:"POST",headers:Q,body:u})}},U[Lt]=[OkW],U));
D.addProvider({provide:$1$,useFactory:function(){var b={};return b.CSI=S$$(),b.ECATCHER=Xug(),b}});
D.addProvider({provide:R$_,useClass:Nt8});U=[];U.push(D.resolve(KL2));n={};n=(n.client_location=_.FP.getInstance(),n.consistency=_.gRN(),n.entities=D.resolve(XYJ),n.response_received_commands=D.resolve(cmN),n.store=D.resolve(_.aiK),n.tokens=D.resolve(KL2),n.service_params=D.resolve(R$_),n);if(_.q("web_shorts_prefetch_service_enabled")){var y=new XET(D.resolve(_.dZ));n.shorts_prefetch=y}n.adblock_detection=D.resolve(Sxs);D.addProvider({provide:_.AL,useClass:_.AL});y=D.resolve(_.pR);var A=[];_.q("PremiumClientSharedConfig__enable_att_context_processor")&&
(D.addProvider({provide:bzP,useClass:C8T}),A.push(D.resolve(bzP)));if(_.q("owl_pl_await")){var C={};D.addProvider((C.provide=tMJ,C.useFactory=function(b){return new m1W(b)},C[Lt]=[_.AL],C));
A.push(D.resolve(tMJ))}Mir(y,D.resolve(OkW),D.resolve(cf$),n,D.resolve(_.dZ),U,A,D.resolve(jBr),D.resolve(GC8));D.addProvider({provide:_.Ju,useValue:_.jZ.instance});_.q("start_client_gcf")&&D.addProvider({provide:w$,useValue:y41()});D.addProvider({provide:MNw,useFactory:function(){return new MNw(_.Jc().resolve(_.AL),_.Hq.getInstance())}});
_.PN().parkOrScheduleJob(function(){Ryr()},1,"eocs");
U={};D.addProvider((U.provide=PX,U.useClass=PX,U[Lt]=[_.lY,_.Ju],U));D.addProvider({provide:_.Ei2,useFactory:_.mI.getInstance});_.PN().parkOrScheduleJob(function(){_.Jc().resolve(PX).refresh()},0,"eocs");
D.addProvider({provide:_.JS,useClass:DxJ});_.q("kevlar_signal_collection_killswitch")||(U={},D.addProvider((U.provide=yqv,U.useClass=yqv,U[Lt]=[Cv,H4],U)),_.PN().parkOrScheduleJob(function(){_.Jc().resolve(yqv).record()},1,"eocs"));
_.q("web_debug_handler_registration_killswitch")||_.PN().parkOrScheduleJob(function(){Ahg("DOWNLOAD_PES",qb_);_.q("offline_client_state_export_ks")||Ahg("OFFLINE_CLIENT_STATE",GX3)},0,"eocs");
_.q("kevlar_prevent_polymer_dynamic_font_load")&&_.PN().parkOrScheduleJob(function(){var b=[_.Ja(Wdr),_.Ja(Bcv)];b=_.B(b);for(var u=b.next();!u.done;u=b.next()){u=u.value;var Q=document.createElement("link");_.PY(Q,u,"stylesheet");document.head.appendChild(Q)}},1,"eocs");
U=l.injector.resolve(_.Ju);_.P85.instance=new _.P85(U);IhB(Uqr(new hUw(U)));U={};l.injector.addProvider((U.provide=G7,U.useFactory=function(b){(b=b==null?void 0:b.getCurrentPage())?b=b.visibilityObserver:(jIq||(jIq=uQ$()),b=jIq);return b},U[Lt]=[_.G8(_.sm)],U.skipCache=!0,U));
D.addProvider({provide:_.kq,useClass:jX});D.addProvider({provide:rZ,useClass:hBk});l.injector.addProvider({provide:nU7,useValue:SWJ});D.addProvider({provide:Ig7,useValue:Ijr});D.addProvider({provide:Dz7,useValue:W9o});D.addProvider({provide:_.jQ,useValue:Rj3});l=D.addProvider;YP8||(YP8=new HyW);l.call(D,{provide:_.Jl,useValue:YP8});D.addProvider({provide:_.oO,useValue:_.H3("HTML_DIR")==="rtl"?"rtl":"ltr"});D.addProvider({provide:wY2,useClass:YST});D.addProvider({provide:_.ne,useClass:Lo});_.Jc().addProvider({provide:zUJ,
useValue:_.q("enable_web_delhi_icons")?XA8.concat(kj8):t2J.concat(SU$)});D.addProvider({provide:_.MX,useClass:_.MX});D.addProvider({provide:_.nZJ,useValue:new UK$});D.addProvider({provide:mwH,useClass:mq8});D.addProvider({provide:WJ,useClass:WJ});D.addProvider({provide:h0,useClass:h0});l={};D.addProvider((l.provide=tt,l.useClass=tt,l[Lt]=[_.Ju,_.IH],l));D.addProvider({provide:t0,useClass:t0});D.addProvider({provide:NH$,useClass:fpr});D.addProvider({provide:uf,useClass:uf});D.addProvider({provide:yWz,
useValue:$b5});D.addProvider({provide:_.GG,useClass:aY$});_.q("enable_payments_purchase_manager")&&D.addProvider({provide:QVJ,useClass:gFv});D.addProvider({provide:lUH,useFactory:function(){return function(b){return _.Ac2(b)}}});
D.addProvider({provide:_.tr$,useClass:X7J});l={};D.addProvider((l.provide=eE,l.useClass=eE,l[Lt]=[_.tr$],l));D.addProvider({provide:PJ,useClass:PJ});D.addProvider({provide:o9q,useValue:Gq8});D.addProvider({provide:Sv5,useValue:_.ngJ});D.addProvider({provide:ZJs,useClass:zyv});D.addProvider({provide:Oy2,useValue:WWH});l={};D.addProvider((l.provide=VN2,l.useClass=ik2,l[Lt]=[Oy2],l));l={};D.addProvider((l.provide=_.NB,l.useClass=hvH,l[Lt]=[VN2],l));l={};D.addProvider((l.provide=_.ZH,l.useClass=Rs,l[Lt]=
[_.Op,_.xp],l));if(_.q("web_explore_hub_on_hover")||_.q("web_client_explore_hub_on_hover"))l={},D.addProvider((l.provide=W4,l.useClass=W4,l[Lt]=[_.Ju,M3],l));if(_.q("web_enable_renderer_logger")){var h=new $Jd;lxg(function(){h.abort()});
D.addProvider({provide:Ka9,useValue:new WU2(h.signal)})}D.addProvider({provide:A$r,useValue:k0g});D.addProvider({provide:ugK,useClass:SdH});_.q("web_use_flow_state_manager")&&(D.addProvider({provide:_.FS,useClass:SSJ}),l={},D.addProvider((l.provide=oK,l.useClass=oK,l[Lt]=[_.FS,_.qK],l)))}},Fiq);var wAw={},rL5=(wAw.initialized={priority:10,callback:function(){if(!sN2){Je9();dSC("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Xi(_.P6(dSC,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.q("log_heartbeat_with_lifecycles")){var l={};Gw.instance||(Gw.instance=new Gw);Gw.instance.install((l.document_visible={callback:KZc,priority:10},l.document_hidden={callback:KZc,priority:10},l))}else _.uy(document,"visibilitychange",KZc);sN2=!0}(l=_.t6())&&l!=="UNDEFINED_CSN"&&AZo(l)}},wAw);var zt$={},f08=(zt$.initialized={callback:function(l){var D=_.UE(232091),U=l.injector.resolve(_.$k);_.cq(U,D);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?PeK()&&_.xM(U,D):(l=l.injector.resolve(lUH)("refresh_detector"))&&(l.get("first_tab_load")?_.xM(U,D):l.set("first_tab_load","1"))}},zt$);var $aH={},N$5=($aH.initialized={priority:10,callback:Ls$},$aH);var sI8={},EG$=(sI8.initialized={priority:0,callback:function(){var l=new nHH,D="other";_.yJ?D="chrome":_.nh?D="firefox":_.id?D="safari":gb&&(D="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(U){l.increment(_.Fi(),U,D)}).catch(function(){l.increment(_.Fi(),!1,D)}):l.increment(_.Fi(),!1,D)}},sI8);var T$T={},I0W=(T$T.rendering={priority:8,callback:qx$},T$T);var HB5={},YUq=(HB5.rendering={priority:10,callback:xCG},HB5.rendered={callback:pnG},HB5),OB8={},V2$=(OB8.rendering={callback:xCG},OB8.rendered={callback:pnG},OB8);var iA5=!1,lmW={},DMH=(lmW.initialized={priority:10,callback:function(){iA5||(fB3({didPatch:function(l){l.el&&$S_(l.el,l.props)},
didUnmount:function(l){zo3(l.el)}}),iA5=!0)}},lmW);var UM5=/^\/shorts\/?$/;_.IN("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:{}}}}}}});_.q("kevlar_use_common_module_manager_ks")?(_.IJ3(new jqo),nX_()):Fs$();
(function(){var l=document.querySelector("ytd-app");if(!l)throw Error("Xj");l=new eX({root:l,injector:_.Jc()});l.install(rL5);var D={};l.install((D.initialized={priority:10,callback:yR9},D));_.q("wp_lat_b")&&(D={},l.install((D.initialized={priority:10,callback:function(){MOs()}},D)));
D={};l.install((D.rendered={priority:0,callback:Dko},D));D={};l.install((D.rendered={priority:0,callback:function(){_.Tn.addLowPriorityJob(function(){_.Ozr>1&&(ID$(),iGg())},4E4)}},D));
l.install(pSJ);l.install(f08);l.install(DMH);l39();l.install($K8);l.install(XSJ);l.install(Kd8);l.install(OwH);l.install(UV$);l.install(zg8);l.install(oG5);_.q("kevlar_enable_mss_lazy_load")&&l.install(N$5);l.install(k8w);l.install(EG$);if(!_.il("IS_SHELL_LOAD")||_.q("kevlar_fetch_initial_data_promise_client")||_.q("sw_nav_preload_pbj")){var U=_.kZ(window.location.href);D=U&&U==="/watch";U=U&&U.match(UM5);D?l.install(V2$):U?l.install(I0W):l.install(YUq)}else l.install(mK8);l.install(jG2);_.q("web_enable_prefetching_videos_on_home")&&
l.install(Tcr);_.q("start_client_gcf")&&l.install(fQJ);l.install(ETq);(new y3y).increment("INSTALLED");l.install(sGr);l.install(RgW);l.transition("initialized");gb3();AW$()})();
_.yf=[[["cWlheGNzN2U4aG85a2luZCM=","ejd6ZmoyZTV4MXZzdmFsdWUj"],"dXR2eHB2cjgwZHRtQURfUExBQ0VNRU5UX0tJTkRfRU5EIw=="]];_.nU=["NGVranR3YjBsNXg1Z2xvYmFsQ2FsbGJhY2tzIw==","Z3JoOWZsYTF5MzJ2b25BYm5vcm1hbGl0eURldGVjdGVkIw==","dzZpdTRlamF0bWJ4b25BZFNraXAj","OW9mb2NnbThscTg3cmF3X3BsYXllcl9yZXNwb25zZSM=","aTBtdmtzcHppd3Z3YWRQbGFjZW1lbnRDb25maWcj"];_.Ge="NGVranR3YjBsNXg1Z2xvYmFsQ2FsbGJhY2tzIw== Z3JoOWZsYTF5MzJ2b25BYm5vcm1hbGl0eURldGVjdGVkIw== dzZpdTRlamF0bWJ4b25BZFNraXAj OW9mb2NnbThscTg3cmF3X3BsYXllcl9yZXNwb25zZSM= I25qbXEwaHE0Mmljd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz amxvNTN6c3cxcnV6YWJfc2FfZWYj aTBtdmtzcHppd3Z3YWRQbGFjZW1lbnRDb25maWcj".split(" ");
_._ModuleManager_initialize=function(l,D){if(!_.zC){if(!_.fw)return;_.IJ3(_.fw())}_.zC.setAllModuleInfoString(l,D)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya:3/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/syd:1/sye:a,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:b/iuT5Oc',['sy4','sy3','sy1','sy8','syd','sya','syk','syj','syg','sye','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syb','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var JHH,LEH;_.$V=function(l){return!!l.getOptions("captions")};
_.G7W=function(l){return(l=l.getOption("captions","track"))?!!l.displayName:!1};
_.NX=function(l,D){_.qd(D,l,function(){return JHH[D]},function(U){JHH[D]=U;
if(!_.q("mweb_player_ve_show_ks")){var n=_.t6(0);n&&U&&_.oe(n,U)}})};
_.sO=function(l){(l=JHH[l])&&_.xM(_.he(),l)};
JHH={};var q1W;/*

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
*/
_.e0({_template:function(){if(q1W!==void 0)return q1W;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;LEH===void 0&&(LEH=document.createElement("template"));var n=LEH;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return q1W=l},
is:"tp-yt-paper-checkbox",behaviors:[_.AXH],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.u6(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var l=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),D="px",U=l.match(/[A-Za-z]+$/);U!==null&&(D=U[0]);l=parseFloat(l);U=8/3*l;D==="px"&&(U=Math.floor(U),U%2!==l%2&&U++);this.updateStyles({"--paper-checkbox-ink-size":U+
D})}})},
_computeCheckboxClass:function(l,D){var U="";l&&(U+="checked ");D&&(U+="invalid");return U},
_computeCheckmarkClass:function(l){return l?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.nN1._createRipple.call(this)}});var MnJ=new _.y4("radioButtonSurveyOptionRenderer"),RXH=new _.y4("checkboxSurveyOptionRenderer");var ZAJ;var eX2;var mMr=0,EO=function(){var l=_.p.call(this)||this;l.selected=!1;l.isOverlay=!1;l.inputId="toggle-option-"+mMr;mMr++;return l};
_.Z(EO,_.p);EO.prototype.onTap=function(){_.O9(this.hostElement,"ytd-toggle-option-clicked")};
_.E([_.K(),_.T("design:type",String)],EO.prototype,"label",void 0);_.E([_.K(),_.T("design:type",String)],EO.prototype,"inputId",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],EO.prototype,"selected",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],EO.prototype,"isOverlay",void 0);_.E([_.x({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.T("design:paramtypes",[])],EO);
_.r(EO,"ytd-toggle-option-renderer",function(){if(eX2!==void 0)return eX2;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return eX2=l},{mode:1});var TU=function(){var l=_.p.apply(this,arguments)||this;l.isToggleOption=!1;l.isOverlay=!1;return l};
_.Z(TU,_.p);TU.prototype.onTap=function(l){l.preventDefault();this.data&&(l=!this.data.checked,this.set("data.checked",l),_.O9(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:l,value:this.data.value}))};
_.QP.Object.defineProperties(TU.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
TU.prototype.onTap=TU.prototype.onTap;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],TU.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],TU.prototype,"isToggleOption",void 0);_.E([_.K(),_.T("design:type",Object)],TU.prototype,"isOverlay",void 0);_.E([_.t("data.responseText"),_.T("design:type",String),_.T("design:paramtypes",[])],TU.prototype,"label",null);
_.E([_.hj("ytd-toggle-option-clicked"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],TU.prototype,"onTap",null);_.E([_.x({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],TU);
_.r(TU,"ytd-checkbox-survey-option-renderer",function(){if(ZAJ!==void 0)return ZAJ;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ZAJ=l},{mode:1});var amH;var tnH;var Is=function(){var l=_.p.apply(this,arguments)||this;l.checked=!1;l.isToggleOption=!1;return l};
_.Z(Is,_.p);Is.prototype.onTap=function(){this.data&&(this.checked?_.Vh(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Vh(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
Is.prototype.onTap=Is.prototype.onTap;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Is.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Is.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Is.prototype,"checked",void 0);_.E([_.K(),_.T("design:type",Object)],Is.prototype,"isToggleOption",void 0);_.E([_.hj("ytd-toggle-option-clicked"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],Is.prototype,"onTap",null);
_.E([_.x({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Is);
_.r(Is,"ytd-radio-button-survey-option-renderer",function(){if(tnH!==void 0)return tnH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return tnH=l},{mode:1});var HX=function(){var l=_.p.apply(this,arguments)||this;l.disableAnimation=!1;l.isToggleOption=!0;l.followUpSurveyCommand=null;l.selectedRatingEndpoint=null;l.isSlimlineSurveyFollowUp=!1;l.isShortsStyle=!1;l.styleOverrideAttribute=!0;l.isDarkMode=!1;l.isSubmitted=!1;l.roundedContainer=!0;l.improveShortsResponseRate=_.q("web_improve_shorts_response_rate");l.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 l};
_.Z(HX,_.p);_.W=HX.prototype;
_.W.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"}}}}};
_.W.attached=function(){var l=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(U){var n;if((n=U[0])!=null&&n.isIntersecting){_.B9().reportShown(l.hostElement);var y;(y=l.intersectionObserver)==null||y.unobserve(l.hostElement)}},{rootMargin:"0px",
threshold:.6});var D;(D=this.intersectionObserver)==null||D.observe(this.hostElement)};
_.W.onDarkModeToggledAction=function(l){this.isDarkMode=l};
_.W.dataChanged=function(){var l;if(((l=this.data)==null?void 0:l.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var D;((D=this.data)==null?void 0:D.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var U,n,y,A;this.darkColorPalette=(U=this.data)==null?void 0:(n=U.inlineContent)==null?void 0:(y=n.compactVideoRenderer)==null?void 0:(A=y.thumbnail)==null?
void 0:A.darkColorPalette;var C,h,b,u;this.lightColorPalette=(C=this.data)==null?void 0:(h=C.inlineContent)==null?void 0:(b=h.compactVideoRenderer)==null?void 0:(u=b.thumbnail)==null?void 0:u.lightColorPalette;var Q,G;if(((Q=this.data)==null?0:(G=Q.inlineContent)==null?0:G.compactVideoRenderer)&&this.isShortsStyle){var J,L,R,a;l=_.H9((J=this.data)==null?void 0:(L=J.inlineContent)==null?void 0:(R=L.compactVideoRenderer)==null?void 0:(a=R.thumbnail)==null?void 0:a.thumbnails);_.Wg(this.hostElement,
{"--yt-background-url":"url("+l+")"})}};
_.W.handleRequestCompletion=function(){this.hostElement.hidden&&_.O9(this.hostElement,"yt-dismissible-item-dismissed")};
_.W.onPopupClosed=function(l){var D;((D=l.detail)==null?void 0:D.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Vh(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.W.handleInlineSurveyRatingSelect=function(l,D){var U=this;this.selectedRatingEndpoint=l;this.followUpSurveyCommand=D;this.expanded=!!l;this.getOptionRenderers().forEach(function(n,y){U.notifyPath("followUpSurveyCommand.followUpOptions."+y+".checkboxSurveyOptionRenderer.checked");U.set("followUpSurveyCommand.followUpOptions."+y+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),l=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Vh(this.hostElement,"yt-reel-non-video-content-dismissal-command",[l]))};
_.W.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Vh(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var l,D=(l=this.data)==null?void 0:l.dismissalEndpoint;D&&this.ytComponentBehavior.resolveCommand(D)}};
_.W.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Vh(this.hostElement,"yt-close-popup-action"))};
_.W.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var l=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{l=this.getOptionRenderers().filter(function(n){return n.checked});
if(l.length===0)return;l=l.map(function(n){return n.responseEndpoint})}var D=[];
l.forEach(function(n,y){y!==0&&(n=_.M(n,_.mC))&&n.feedbackToken&&D.push(n.feedbackToken)});
if(l=l[0]){var U={};D.length>0&&(U.extra_feedback_tokens=D);this.ytComponentBehavior.resolveCommand(l,{form:U})}}};
_.W.getOptionRenderers=function(){var l=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(D){l.isSingleSelect=!!_.M(D,MnJ);return l.isSingleSelect?_.M(D,MnJ):_.M(D,RXH)}):[]};
_.W.handleInlineSurveyOptionSelect=function(l){l=this.optionSelector.indexOf(l);l!==-1&&this.optionSelector.selectIndex(l)};
_.W.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.W.maybeGetBackgroundColor=function(l){return this.isDarkMode?l.section2Color:l.section3Color};
_.W.colorPaletteChanged=function(){var l=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;l=l&&this.maybeGetBackgroundColor(l);this.dismissibleEl.style.backgroundColor=!l||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.an(l)};
_.QP.Object.defineProperties(HX.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
HX.prototype.colorPaletteChanged=HX.prototype.colorPaletteChanged;HX.prototype.onPopupClosed=HX.prototype.onPopupClosed;HX.prototype.handleRequestCompletion=HX.prototype.handleRequestCompletion;HX.prototype.dataChanged=HX.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],HX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],HX.prototype,"actionHandlerBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],HX.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],HX.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.gP("#follow-up-survey-options"),_.T("design:type",Object)],HX.prototype,"optionSelector",void 0);_.E([_.K(),_.T("design:type",Object)],HX.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],HX.prototype,"disableAnimation",void 0);_.E([_.K(),_.T("design:type",Object)],HX.prototype,"isToggleOption",void 0);_.E([_.K(),_.T("design:type",Object)],HX.prototype,"followUpSurveyCommand",void 0);_.E([_.K(),_.T("design:type",Object)],HX.prototype,"selectedRatingEndpoint",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],HX.prototype,"expanded",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],HX.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],HX.prototype,"isShortsStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],HX.prototype,"styleOverrideAttribute",void 0);_.E([_.K(),_.T("design:type",Boolean)],HX.prototype,"isSingleSelect",void 0);_.E([_.K(),_.T("design:type",Object)],HX.prototype,"isDarkMode",void 0);
_.E([_.K(),_.T("design:type",Object)],HX.prototype,"lightColorPalette",void 0);_.E([_.K(),_.T("design:type",Object)],HX.prototype,"darkColorPalette",void 0);_.E([_.t("selectedRatingEndpoint","isShortsStyle"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],HX.prototype,"isOptionSelected",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],HX.prototype,"roundedContainer",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],HX.prototype,"improveShortsResponseRate",void 0);_.E([_.gP("#dismissible"),_.T("design:type",HTMLElement)],HX.prototype,"dismissibleEl",void 0);_.E([_.gP("#dismiss-button yt-icon-button"),_.T("design:type",HTMLElement)],HX.prototype,"dismissButtonEl",void 0);_.E([_.gP("#inline-survey-header yt-icon-button"),_.T("design:type",HTMLElement)],HX.prototype,"inlineHeaderDismissButtonEl",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HX.prototype,"dataChanged",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HX.prototype,"handleRequestCompletion",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],HX.prototype,"onPopupClosed",null);
_.E([_.Pg("darkColorPalette","lightColorPalette","isDarkMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HX.prototype,"colorPaletteChanged",null);_.E([_.x({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],HX);
_.r(HX,"ytd-inline-survey-renderer",function(){if(amH!==void 0)return amH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return amH=l},{mode:1});var Xd8=["en-CA","en","es-MX","fr-CA"];_.S18=_.w(function(l){var D=_.sl(l,{isOverlay:!1,isModern:!1}),U=D.captionIconType,n=D.onClick;l=D.ariaLabel;var y=D.ariaPressed,A=D.isOverlay,C=D.isModern;D=_.bP("button",function(u){_.NX(u,127299)});
var h=_.n0(function(u){_.sO(127299);n==null||n(u);return!1}),b={};
return _.g("ytm-closed-captioning-button",{class:_.DV("ytmClosedCaptioningButtonHost",(b.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return U()===-1&&A()},b.ytmClosedCaptioningButtonIconDisabled=function(){return U()===-1&&!A()},b))},_.g("button",{el:D,
class:"ytmClosedCaptioningButtonButton",title:l,"aria-label":l,"aria-pressed":y,"on:click":h},_.g(_.C0,{icon:function(){var u="",Q=C();var G=Q?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";Q=Q?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var J=_.bu().get("hl");G=!J||Xd8.includes(J)?G:Q;Q=U();switch(Q){case -1:case 0:u=G;break;case 1:u=G+"_FILLED";break;default:_.Tv(Q)}return u}})))},"oh");
_.S18.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.ww=function(l,D,U,n,y){var A={};D&&(A[D]=U);n?A.errorType=n:y&&(A.errorReason=y);_.Na(l,A);_.sU()};
_.rw=function(l){var D=_.PN();return _.tJk(D,l,1)};
_.e0({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 l=this.query;l&&(this.full||l[0]==="("||(l="("+l+")"),this._mq=window.matchMedia(l),this._add(),this.queryHandler(this._mq))},
queryHandler:function(l){this._setQueryMatches(l.matches)}});var hX5;var PPv;var bA$=function(){};
_.W=bA$.prototype;_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W._tapHandler=function(){};
_.W._focusChanged=function(){};
_.W._detectKeyboardFocus=function(){};
_.W._userActivate=function(){};
_.W._upHandler=function(){};
_.W._spaceKeyDownHandler=function(){};
_.W._spaceKeyUpHandler=function(){};
_.W._asyncClick=function(){};
_.W._pressedChanged=function(){};
_.W._ariaActiveAttributeChanged=function(){};
_.W._activeChanged=function(){};
_.W._controlStateChanged=function(){};
_.W._changedButtonState=function(){};
_.W._focusBlurHandler=function(){};
_.W._disabledChanged=function(){};
_.W._changedControlState=function(){};
_.W._downHandler=function(){};
_.W.ensureRipple=function(){};
_.W.getRipple=function(){};
_.W.hasRipple=function(){};
_.W._noinkChanged=function(){};
_.W._focusedChanged=function(){};
_.W._createRipple=function(){};
_.W.registered=function(){};
_.W._invalidChanged=function(){};
_.W.hasValidator=function(){};
_.W.validate=function(){};
_.W._getValidity=function(){};
_.W._requiredChanged=function(){};
_.W._valueChanged=function(){};
_.W._checkedChanged=function(){};
_.W._buttonStateChanged=function(){};
_.W._setPressed=function(){};
_.W._setPointerDown=function(){};
_.W._setReceivedFocusFromKeyboard=function(){};
_.W._setFocused=function(){};
bA$=_.e0({is:"tp-yt-paper-radio-button",_template:function(){if(PPv!==void 0)return PPv;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;hX5===void 0&&(hX5=document.createElement("template"));var n=hX5;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return PPv=l},
behaviors:[_.AXH],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(){_.u6(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var l=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),D=Math.floor(3*l);D%2!==l%2&&D++;this.updateStyles({"--paper-radio-button-ink-size":D+"px"})}})}});var gY2;var ubr;_.e0({_template:function(){if(ubr!==void 0)return ubr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;gY2===void 0&&(gY2=document.createElement("template"));var n=gY2;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return ubr=l},
is:"tp-yt-paper-radio-group",behaviors:[_.VaH],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(l){var D=this._valueToItem(l);if(!D||!D.hasAttribute("disabled")){if(this.selected){D=this._valueToItem(this.selected);if(this.selected==l)if(this.allowEmptySelection)l="";else{D&&(D.checked=!0);return}D&&
(D.checked=!1)}_.wP.select.apply(this,[l]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(l){this._focusPrevious();l.preventDefault();this._activateFocusedItem()},
_onDownKey:function(l){this._focusNext();l.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(l){_.OEy._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(l){_.OEy._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.wP._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.fi._resetTabindices.apply(this,arguments);this.items.forEach(function(l){l.removeAttribute("aria-selected")},this)}});var vYq;_.RL("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var zU=function(){return _.p.apply(this,arguments)||this};
_.Z(zU,_.p);_.W=zU.prototype;_.W.computeHasPrimaryIcon=function(l){return!(!l.icon&&!l.thumbnail)};
_.W.computeHasSecondary=function(l){return!(!l.secondaryIcon&&!l.secondaryNotificationText)};
_.W.computeHideSecondaryString=function(l){return!_.q("disable_hide_empty_secondary_string")&&!l.secondaryNotificationText};
_.W.computeCompactLinkStyle=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.W.computeHasFitHeight=function(l){return l==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.W.isActiveEndpoint=function(l){return(l=this.get("commandMetadata.webCommandMetadata.url",l))?_.kZ(window.location.href)!=="/account_transfer_channel"&&_.kZ(window.location.href)!=="/gaia_link"&&_.kZ(window.location.href)!=="/channel_switcher"||l!=="/account"?_.kZ(window.location.href)===l:!0:!1};
_.W.onTap=function(){var l;((l=this.data)==null?0:l.serviceEndpoint)&&_.lu(this.hostElement,[this.data.serviceEndpoint])};
zU.prototype.onTap=zU.prototype.onTap;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],zU.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.T("design:type",Boolean)],zU.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.T("design:type",String)],zU.prototype,"compactLinkStyle",void 0);
_.E([_.K({computed:"computeIcon_(data.icon)"}),_.T("design:type",Object)],zU.prototype,"icon",void 0);_.E([_.K({computed:"computeIcon_(data.secondaryIcon)"}),_.T("design:type",Object)],zU.prototype,"secondaryIcon",void 0);_.E([_.K({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],zU.prototype,"hasSecondary",void 0);_.E([_.K({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],zU.prototype,"hideSecondaryString",void 0);
_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zU.prototype,"onTap",null);_.E([_.x({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],zU);
_.r(zU,"ytd-compact-link-renderer",function(){if(vYq!==void 0)return vYq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vYq=l},{mode:1});var Q15;_.RL("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var fo=function(){var l=_.p.apply(this,arguments)||this;l.role="link";l.tabindex="0";l.actionMap=_.q("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 l};
_.Z(fo,_.p);_.W=fo.prototype;_.W.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.pU()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.W.getCurrentTheme=function(){return _.xf()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.pU()};
_.W.onThemeSelected=function(l,D){var U=l||D?l:_.ck(),n=(U&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!U&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.hq$(_.kZ(window.location.href));_.gj(0,165,l);_.gj(0,174,D);this.prefs.save();n&&_.Vh(this.hostElement,"yt-dark-mode-toggled-action",[U]);_.Vh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.W.onTap=function(){this.data.serviceEndpoint&&_.lu(this.hostElement,[this.data.serviceEndpoint])};
_.W.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.W.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.W.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
fo.prototype.onTap=fo.prototype.onTap;fo.prototype.dataChanged=fo.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],fo.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.C5),_.T("design:type",Object)],fo.prototype,"paperItemBehaviors",void 0);_.E([_.K(),_.T("design:type",Object)],fo.prototype,"data",void 0);_.E([_.K({value:function(){return _.bu()}}),
_.T("design:type",_.BP)],fo.prototype,"prefs",void 0);_.E([_.K(),_.T("design:type",Object)],fo.prototype,"label",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fo.prototype,"role",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fo.prototype,"tabindex",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fo.prototype,"dataChanged",null);
_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fo.prototype,"onTap",null);_.E([_.x({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],fo);
_.Ol()(fo,"ytd-toggle-theme-compact-link-renderer",function(){if(Q15===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);Q15=l}l=Q15;return l},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var k7H,dMP,KEJ,pd5,xMW,j1r,FE2,oY8,wdv,rHr,TmH,VR,EYv,fm$,s1H,NmP,$MT,zXJ,Imw,HAP,Y1W,OAq,is,Vnw,iSr,UE5,DC,lBH,yQ,ls,Ue,DE$,nJ,nxw,yO2,AO8,Wwv,B0q,C6W,P6J,bSJ,gxP,u4T,vx$,QAW,GsW,JO5,Lw2,q2$,R6$,ZST,e6w,aBJ,XT8,ksw,dE8,Kw5,cO5,xE5,jAJ,FwW,oxJ,wT$,rOJ,z65,$EP,T0W,Exr,N0J,IBw,sAv,HS$,iIP,VVJ,Y2J,OS5,WV,l5W,UAJ,n25,y62,PUr,bIW,g2q,uGT,v2$,QS$,GaW,J6H,LQ8,MGJ,RpW,ZI2,ep2,mAJ,a5H,tGP,XH5,dAJ,BVW;
_.YV=function(l){var D=new _.rc("Error accessing DB");return _.LK3().then(function(U){return new Promise(function(n,y){try{var A=U.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(l);A.onsuccess=function(){var C=A.result;n(C?C.value:null)};
A.onerror=function(){D.params={key:l,source:"onerror"};y(D)}}catch(C){D.params={key:l,
thrownError:String(C)},y(D)}})},function(){return null})};
k7H=function(l,D){return _.yT(l.entities,"inlineExpansionEntity",D)};
dMP=function(l,D){return _.yT(l.entities,"flowStateEntity",D)};
KEJ=function(l,D){if(l&&D){var U=_.bI();U().set(l,D);_.g33(U())}};
_.cHq=function(l,D){if(l&&D){var U=_.bI();U().set(l,D);_.g33(U())}};
pd5=function(l,D){return _.yT(l.entities,"contextNoteUserRatingEntityPayload",D)};
xMW=function(l){return _.pC(l,function(D){return D.languageCode==="en"})};
j1r=function(l){var D=OO;if(_.G7W(l))l.setOption("captions","stickyLoading",{}),l.setOption("captions","track",{});else{var U=_.pC(_.ans(l),function(n){return n.displayName===D});
l.setOption("captions","track",U)}};
FE2=function(l){if(!l)return 0;var D=l.getPresentingPlayerType(),U=l.getVideoData();return U&&U.isLive?(l=l.getProgressState(D),l.seekableEnd-l.seekableStart):l.getDuration(D)};
oY8=function(l,D){for(var U=_.B(Object.keys(l)),n=U.next();!n.done;n=U.next())if(n=n.value,l[n]!==D[n])return!1;return!0};
wdv=function(){return document.getElementById("player-control-overlay")};
rHr=function(l){l!==-1&&!_.q("player_controls_log_creation_killswitch")&&wdv()&&(_.ae("pcu_cs",l),_.ae("pcu_ce"))};
TmH=function(l,D){var U=_.NQ(l,{}),n=zXJ("top",D),y=zXJ("bottom",D),A=zXJ("left",D),C=zXJ("right",D);return _.BK({top:function(){return VR(U().position,n)},
bottom:function(){return VR(U().position,y)},
left:function(){return VR(U().position,A)},
right:function(){return VR(U().position,C)},
position:function(){return VR(U().positionType,fm$)},
height:function(){return VR(U().height,is)},
width:function(){return VR(U().width,is)},
"min-width":function(){return VR(U().minWidth,is)},
"min-height":function(){return VR(U().minHeight,is)},
"max-width":function(){return VR(U().maxWidth,is)},
"max-height":function(){return VR(U().maxHeight,is)},
"aspect-ratio":function(){return VR(U().aspectRatio,String)},
"margin-top":function(){return VR(U().margin,n)},
"margin-bottom":function(){return VR(U().margin,y)},
"margin-left":function(){return VR(U().margin,A)},
"margin-right":function(){return VR(U().margin,C)},
"padding-top":function(){return VR(U().padding,n)},
"padding-bottom":function(){return VR(U().padding,y)},
"padding-left":function(){return VR(U().padding,A)},
"padding-right":function(){return VR(U().padding,C)},
"flex-direction":function(){return VR(U().flexDirection,$MT)},
"justify-content":function(){return VR(U().justifyContent,NmP)},
"align-items":function(){return VR(U().alignItems,s1H)},
"flex-grow":function(){return VR(U().flexGrow,String)},
"flex-shrink":function(){return VR(U().flexShrink,String)},
"flex-basis":function(){return VR(U().flexBasis,is)},
"align-self":function(){return VR(U().alignSelf,s1H)},
"flex-wrap":function(){return VR(U().flexWrap,EYv)},
"align-content":function(){return VR(U().alignContent,s1H)}})};
VR=function(l,D){return l!==void 0?D(l):void 0};
EYv=function(l){switch(l){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
fm$=function(l){switch(l){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
s1H=function(l){switch(l){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"}};
NmP=function(l){switch(l){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"}};
$MT=function(l){switch(l){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"}};
zXJ=function(l,D){var U=D==="rtl";switch(l){case "top":var n=Imw;break;case "bottom":n=HAP;break;case "left":n=Y1W;break;default:n=OAq}return function(y){return VR(n(y,U),is)}};
Imw=function(l){var D=l.top;var U=l.vertical;l=l.all;var n;return(n=D!=null?D:U)!=null?n:l};
HAP=function(l){var D=l.bottom;var U=l.vertical;l=l.all;var n;return(n=D!=null?D:U)!=null?n:l};
Y1W=function(l,D){var U=l.left;var n=l.end;var y=l.start;var A=l.horizontal;l=l.all;var C,h;return(h=(C=U!=null?U:D?n:y)!=null?C:A)!=null?h:l};
OAq=function(l,D){var U=l.right;var n=l.end;var y=l.start;var A=l.horizontal;l=l.all;var C,h;return(h=(C=U!=null?U:D?y:n)!=null?C:A)!=null?h:l};
is=function(l){var D=l.value;switch(l.unit){case "YPC_DIMENSION_UNIT_POINT":return D+"px";case "YPC_DIMENSION_UNIT_FRACTION":return D+"%";default:return""+D}};
Vnw=function(l){switch(l){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"}};
iSr=function(l){var D=l!=null?l:{};l=D.fontRole;var U=D.fontSize;D=D.fontWeight;if(l!==null&&U!==null)switch(l){case "YPC_FONT_ROLE_DISPLAY":switch(U){case "YPC_FONT_SIZE_L":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(U){case "YPC_FONT_SIZE_L":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return D===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(U){case "YPC_FONT_SIZE_XL":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return D==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
UE5=function(l,D,U){function n(G){return Object.values(G).map(function(J){var L=J.productId;J=J.pricingOptionIndex;return ls(y(L).pricingOptions,J).pricingOptionId})}
function y(G){return b().get(G)}
function A(G){G=n(G);U(G)}
function C(G,J){return Array.from(DC(G.pricingOptions)).filter(function(L){L=_.B(L);L.next();L=L.next().value;return Ue(L.pricingGroupAttributes,J)}).map(function(L){return _.B(L).next().value})}
var h=nJ([l,D],function(G,J){var L=G==null?void 0:G.selectedPricingOptions;G={};var R=!0;if(L&&J.length)for(var a=_.B(J),S=a.next();!S.done;S=a.next()){S=S.value;var d=lBH(S.pricingOptions,function(z){a:{z=z.pricingOptionId;for(var f=_.B(L),I=f.next();!I.done;I=f.next())if(I.value===z){z=!0;break a}z=!1}return z});
if(d>=0){R=!1;var c=ls(S.pricingOptions,d),N=void 0;G[S.groupId]={productId:S.productId,pricingOptionIndex:d,pricingGroupAttributes:(N=c)==null?void 0:N.pricingGroupAttributes}}}R&&J.length&&(R=ls(J[0].pricingOptions,0),G[J[0].groupId]={productId:J[0].productId,pricingOptionIndex:0,pricingGroupAttributes:R==null?void 0:R.pricingGroupAttributes});return G}),b=nJ([D],function(G){return new Map(G.map(function(J){return[J.productId,
J]}))}),u=nJ([D],function(G){var J=new Map;
G=_.B(G);for(var L=G.next();!L.done;L=G.next()){var R=L.value;L=R.groupId;var a=R.productId;R=_.B(DC(R.pricingOptions));for(var S=R.next();!S.done;S=R.next()){var d=_.B(S.value);S=d.next().value;d=d.next().value;J.set(d.pricingOptionId,{groupId:L,productId:a,index:S,pricingOption:d,pricingGroupAttributes:d.pricingGroupAttributes})}}return J}),Q=nJ([D],function(G){var J=new Map;
G=_.B(G);for(var L=G.next();!L.done;L=G.next()){var R=L.value;L=R.groupId;var a=R.productId,S=void 0;R=_.B(DC((S=R.pricingGroups)!=null?S:[]));for(S=R.next();!S.done;S=R.next()){var d=_.B(S.value);S=d.next().value;d=d.next().value;J.set(d.pricingGroupId,{groupId:L,productId:a,index:S,pricingGroup:d,pricingGroupAttributes:d.pricingGroupAttributes})}}return J});
return{getProductById:y,isProductSelected:function(G){var J=y(G);if(!J)return!1;var L;return((L=h()[J.groupId])==null?void 0:L.productId)===G},
getSelectedPricingOptions:function(){return Object.values(h()).map(function(G){var J=G.productId;G=G.pricingOptionIndex;return ls(y(J).pricingOptions,G)})},
getSelectedPricingGroupAttributesByGroupId:function(G){var J;return(G=(J=h()[G])==null?void 0:J.pricingGroupAttributes)?Array.from(G):void 0},
getSelectedProductByGroupId:function(G){var J;return(G=(J=h()[G])==null?void 0:J.productId)?y(G):void 0},
onProductSelected:function(G){var J=y(G);if(J){var L=h(),R;if(((R=L[J.groupId])==null?void 0:R.productId)!==G){var a=(R=(a=L[J.groupId])==null?void 0:a.productId)?y(R):void 0;var S;R=(S=L[J.groupId])==null?void 0:S.pricingGroupAttributes;var d;S=(d=L[J.groupId])==null?void 0:d.pricingOptionIndex;if(a&&S!==void 0)if(R){d=C(a,R).indexOf(S);if(d===-1)throw Error("Yj`"+S+"`"+a.productId);S=C(J,R);d=d<S.length?S[d]:S.length>0?S[0]:0}else d=S<yQ(J.pricingOptions)?S:0;else d=0;yQ(J.pricingOptions)<=d&&(d=
0);S=ls(J.pricingOptions,d);var c;a={};A(Object.assign({},L,(a[J.groupId]={productId:G,pricingOptionIndex:d,pricingGroupAttributes:(c=S==null?void 0:S.pricingGroupAttributes)!=null?c:[]},a)))}}},
onPricingOptionSelected:function(G){var J=u().get(G);if(J){G=J.groupId;var L=J.productId;J=J.index;var R=h(),a,S;if(((a=R[G])==null?void 0:a.productId)!==L||((S=R[G])==null?void 0:S.pricingOptionIndex)!==J){var d,c;a={};A(Object.assign({},R,(a[G]={productId:L,pricingOptionIndex:J,pricingGroupAttributes:(c=(d=R[G])==null?void 0:d.pricingGroupAttributes)!=null?c:[]},a)))}}},
onPricingGroupSelected:function(G){var J=Q().get(G);if(J){G=J.groupId;var L=J.productId,R=J.pricingGroup.pricingGroupAttributes,a=y(L);if(a){J=h();var S=J[G].pricingGroupAttributes,d;if(((d=J[G])==null?void 0:d.productId)!==L||!Ue(DE$(S,yQ(R)),R)){d=Array.from(R);for(R=yQ(R);R<yQ(S);R++){var c="",N=!1,z=Array.from(d);z.push(ls(S,R));for(var f=_.B(a.pricingGroups),I=f.next();!I.done;I=f.next())if(I=I.value,Ue(I.pricingGroupAttributes,z)){d.push(ls(S,R));N=!0;break}else c===""&&yQ(I.pricingGroupAttributes)===
z.length&&Ue(DE$(I.pricingGroupAttributes,d.length),d)&&(c=ls(I.pricingGroupAttributes,R));N||d.push(c)}c=J[G].pricingOptionIndex;R=[];N=new Map;z=0;a=_.B(DC(a.pricingOptions));for(f=a.next();!f.done;f=a.next())I=_.B(f.value),f=I.next().value,I=I.next().value,Ue(I.pricingGroupAttributes,d)&&R.push(f),Ue(I.pricingGroupAttributes,S)&&N.set(f,z++);R.length===0?S=0:(S=N.get(c),S=S!==void 0&&S<R.length?R[S]:R[0]);a={};A(Object.assign({},J,(a[G]={productId:L,pricingOptionIndex:S,pricingGroupAttributes:d},
a)))}}}},
onClearGroupSelected:function(G){var J=h();J[G]&&(J=Object.fromEntries(Object.entries(J).filter(function(L){return _.B(L).next().value!==G})),A(J))}}};
DC=function(l){return function U(){var n,y,A,C,h;return _.U4(U,function(b){switch(b.nextAddress){case 1:_.tv(b,2),n=0,y=_.B(l),A=y.next();case 4:if(A.done){b.jumpTo(2);break}C=A.value;h=_.nE;return b.yield([n++,C],7);case 7:h(b.yieldResult);A=y.next();b.jumpTo(4);break;case 2:_.aV(b),_.Sc(b,0)}})}()};
lBH=function(l,D){l=_.B(DC(l));for(var U=l.next();!U.done;U=l.next()){var n=_.B(U.value);U=n.next().value;n=n.next().value;if(D(n))return U}return-1};
yQ=function(l){var D=0;for(l=l[Symbol.iterator]();!l.next().done;)++D;return D};
ls=function(l,D){l=_.B(DC(l));for(var U=l.next();!U.done;U=l.next()){var n=_.B(U.value);U=n.next().value;n=n.next().value;if(U===D)return n}};
Ue=function(l,D){if(!l&&!D)return!0;if(!l||!D)return!1;l=Array.from(l);D=Array.from(D);if(l.length!==D.length)return!1;for(var U=0;U<l.length;U++)if(l[U]!==D[U])return!1;return!0};
DE$=function(l,D){D=D===void 0?Infinity:D;var U=[];l=_.B(DC(l));for(var n=l.next();!n.done;n=l.next()){var y=_.B(n.value);n=y.next().value;y=y.next().value;if(n>=D)break;n>=0&&U.push(y)}return U};
nJ=function(l,D){var U,n;return function(){for(var y=l.map(function(C){return C()}),A=0;A<y.length;A++)if(!U||y[A]!==U[A]){U=y;
n=D.apply(null,_.zz(y));break}return n}};
nxw=function(l,D,U){var n=[];l=_.B(l);for(var y=l.next();!y.done;y=l.next()){y=y.value;var A=void 0;((A=D)==null?0:A.length)&&!Ue(y.pricingGroupAttributes,D)||n.push({pricingOption:y,isSelected:U.includes(y.pricingOptionId)})}return n};
yO2=function(l,D){return _.yT(l.entities,"pdpStateEntity",D)};
AO8=function(l){var D,U;return!!(l.productId&&l.groupId&&((D=l.pricingOptions)==null?0:D.length)&&l.pricingOptions.every(function(n){return n.pricingOptionId})&&((U=l.pricingGroups)==null||!U.length||Array.isArray(l.pricingGroups)&&l.pricingGroups.every(function(n){return n.pricingGroupId&&n.pricingGroupAttributes&&n.pricingGroupAttributes.length>0})))};
Wwv=function(l,D,U){return UE5(l,nJ([D],function(n){return n.filter(AO8)}),U)};
B0q=function(l,D){return D.length===0?[l]:[l.slice(0,D[0]),l.slice(D[0])].filter(function(U){return U.length>0})};
C6W=function(l){switch(l){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""}};
P6J=function(l,D,U,n){n=Object.assign({},n);_.RO(n,h6$,{selectedOptionId:l,primaryButtonOverride:U});_.fY().dispatch(_.vr("flowStateEntity",D,n))};
bSJ=function(l,D,U){!_.M(U,h6$)&&l.noPreselect&&D!==""&&l.defaultButtonOverride&&P6J("default",D,l.defaultButtonOverride,U)};
gxP=function(l){switch(l){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
u4T=function(l){switch(l){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
vx$=function(l,D){if(D)return"ytCardViewModelCardSelected";switch(l){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
QAW=function(l,D){D.includes(l)?D=D.filter(function(U){return U!==l}):D.push(l);
return[].concat(_.zz(D))};
GsW=function(l,D){return _.yT(l.entities,"contextNoteFeedEntityPayload",D)};
JO5=function(l,D){switch(l){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return D==null?void 0:D.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return D==null?void 0:D.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return D==null?void 0:D.ratingNotHelpfulText}};
Lw2=function(l,D,U){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:U||l.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:l.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:l.deleteDialogTitle}]},dialogMessages:[{runs:[{text:l.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:l.deleteActionText}]},command:{performCommentActionEndpoint:{action:D}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:l.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
q2$=function(l,D,U){var n;if(l&&((n=D())==null?0:n.includes(l))){var y;U((y=D())==null?void 0:y.filter(function(A){return A!==l}))}else U([].concat(_.zz(D()||[]),[l]))};
R6$=function(l,D){if(l){var U=[];D=_.B((D==null?void 0:D.checkboxes)||[]);for(var n=D.next();!n.done;n=D.next()){n=_.M(n.value,MVJ);var y=void 0;((y=n)==null?0:y.value)&&l.includes(n.key||"")&&U.push(n.value)}return U}};
ZST=function(l){l.style.height="auto";l.style.height=l.scrollHeight+"px"};
e6w=function(l){return[l.syncStep,l.asyncStep].filter(function(D){return D!==void 0})};
aBJ=function(l){var D,U,n;if(l=(D=l.structuredContextNoteFormSchema)==null?void 0:(U=D.fieldSchemas)==null?void 0:(n=U.noteBody)==null?void 0:n.validationSchema)for(D=_.B(e6w(l)),U=D.next();!U.done;U=D.next()){U=U.value.rules;if(!U)break;U=_.B(U);for(U=U.next();!U.done;U=U.next())return _.M(U.value,_.mE5)}};
XT8=function(l){if(l){l=_.B(e6w(l));for(var D=l.next();!D.done;D=l.next()){D=D.value.rules;if(!D)break;D=_.B(D);for(D=D.next();!D.done;D=D.next())return _.M(D.value,tV8)}}};
ksw=function(l){if(l){l=_.B(e6w(l));for(var D=l.next();!D.done;D=l.next()){D=D.value.rules;if(!D)break;D=_.B(D);for(D=D.next();!D.done;D=D.next())return _.M(D.value,S2T)}}};
dE8=function(l){l=/^https?:\/\//.test(l)?l:"http://"+l;try{var D=_.Dp(l)}catch(U){return!1}if(D.toString()!==l)return!1;l=D.JSC$10113_domain_.split(".");return l.length>1&&l.every(function(U){return!!U})};
Kw5=function(l,D,U,n){var y;n=(y=n.structuredContextNoteData)==null?void 0:y.createCommentEndpoint;if(y=_.M(n,_.auh))return y.commentText=_.$B(l),y.videoPositionMention=D,y.sources=U,n};
cO5=function(l){return l==null?void 0:l.stringValue};
xE5=function(l,D,U){l=l.map(function(n,y){return{listItemViewModel:{title:n.title,subtitle:n.subtitle,leadingImage:n.leadingImage,trailingImage:y===D?pTJ:void 0,rendererContext:{commandContext:{onTap:n.onTap}}}}});
return Object.assign({},U&&{header:{panelHeaderViewModel:{title:U}}},{content:{listViewModel:{listItems:l}}})};
jAJ=function(l,D){if(l&&D)switch(D){case "SELECTION_TYPE_BOOL":return l.boolValue;case "SELECTION_TYPE_INT":return l.intValue;case "SELECTION_TYPE_STRING":return l.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return l.privacyStatusValue}};
FwW=function(l){var D;l=(D=l.options)==null?void 0:D.findIndex(function(U){return U.isSelected});
return l===void 0?-1:l};
oxJ=function(l,D,U){var n=function(){return l().label},y={},A=_.DV("ytDropdownViewModelLabel",(y.ytDropdownViewModelLabelError=D,y));
return _.g(_.v,{cond:function(){return l().label&&!(U()===-1&&l().label&&!l().placeholderText)},
then:function(){return _.g("div",{class:A},_.g(_.BO,{text:n}))}})};
wT$=function(l,D){var U={};U=_.DV("ytDropdownViewModelTitle",(U.ytDropdownViewModelTitlePlaceholder=function(){return D()===-1},U));
return _.g("div",{class:U},_.g(_.BO,{text:function(){var n=l();var y=D();if(y===-1)n=n.placeholderText?n.placeholderText:n.label;else{var A,C;n=(A=n.options)==null?void 0:(C=A[y])==null?void 0:C.title}return n}}))};
rOJ=function(l,D){var U=function(){return l().hint};
return _.g(_.GZ,null,_.g(_.v,{cond:function(){return U()&&!D()},
then:function(){return _.g("div",{class:_.DV("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.g(_.BO,{text:U,className:"ytDropdownViewModelSupportText"}))}}),_.g(_.v,{cond:D,
then:function(){return _.g("div",{id:"dropdown-view-model-error",role:"alert",class:_.DV("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.g(_.C0,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.g(_.BO,{text:D,className:"ytDropdownViewModelSupportText"}))}}))};
z65=function(l,D){var U=_.Jc().resolve(_.Ppv);_.N1(function(){var n=l().id;n&&U!=null&&U.dropdownMap.set(n,D)})};
$EP=function(l){l=_.M(l.scheduleButton,fBW);l=_.M(l==null?void 0:l.primaryButton,_.CM);l=_.M(l==null?void 0:l.onTap,_.aO);var D,U,n=((U=_.M(l,_.n3))==null?void 0:U.commands)||[l];U=_.B(n);for(l=U.next();!l.done&&!(D=_.M(l.value,_.e1g));l=U.next());var y;D=(y=D)==null?void 0:y.createBroadcastRequest;if(!D)throw Error("ek");return D};
T0W=function(l,D,U){U=U===void 0?{}:U;var n,y;return _.P(function(A){if(n=N0J(D))return A.return(n);(y=sAv(l,D,U))&&Exr(D,y);return A.return(y)})};
Exr=function(l,D){var U=IBw(l);U&&D.then(function(n){_.Jc().resolve(_.dZ).put(U,new _.Ku({innertubeResponse:n}))})};
N0J=function(l){if(l=IBw(l)){var D=_.Jc().resolve(_.dZ);if(D.has(l))return D.get(l).then(function(U){return U==null?void 0:_.TM(U)})}return null};
IBw=function(l){var D=_.M(l.endpoint,_.za);if(D!=null&&D.videoId)return D={videoId:D.videoId},_.q("web_imp_player_mute_params")&&(D.mutedAtStart=l.startPlaybackInMutedState),_.rV("inline_playback",D)};
sAv=function(l,D,U){l=_.oL(l,D.endpoint,HS$(D,U)).then(function(n){return n});
return Promise.resolve(l)};
HS$=function(l,D){D=_.q("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!l.startPlaybackInMutedState},D):Object.assign({},{vis:5,autonav:"1"},D);var U;D={contentPlaybackContext:_.iD(D,(U=_.M(l.endpoint.commandMetadata,_.W6))==null?void 0:U.url,window.location.href)};_.q("web_imp_player_mute_params")&&(D.overrideMutedAtStart=!l.startPlaybackInMutedState);return D};
iIP=function(l,D){var U=window.MutationObserver;U&&(Ah=new U(function(n,y){n=_.B(n);for(var A=n.next();!A.done;A=n.next()){A=A.value;var C;if(C=A.type==="childList"&&A.target)a:{C=l;A=Y2J(A.target);C=Y2J(C);for(var h=null,b=0;b<A.length;b++)if(C.includes(A[b])){if(b===0){C=!1;break a}h=A[b];break}h?(A=OS5(A,h),C=OS5(C,h),C=A<C):C=!1}if(C){D();y.disconnect();break}}}),(U=VVJ())&&Ah.observe(U,{childList:!0,
subtree:!0}))};
VVJ=function(){var l=document.getElementsByTagName("ytd-rich-grid-renderer");if(l.length>0)return l[0];l=document.getElementsByTagName("ytd-section-list-renderer");return l.length>0?l[0]:null};
Y2J=function(l){for(var D=[];l;)D.push(l),l=l.parentElement;return D};
OS5=function(l,D){var U=Array.from(D.children);D=l.indexOf(D);return D>0?U.indexOf(l[D-1]):-1};
WV=function(l,D,U){U=U===void 0?{}:U;return _.C3(l,U,D)};
l5W=function(l){switch(l){case "MUSIC":return!0;default:return!1}};
UAJ=function(l){if(l=l==null?void 0:l.find(function(n){var y,A;return((y=_.M(n,DAv))==null?void 0:(A=y.inlinePlaybackBadgeData)==null?void 0:A.replicateAsTimestamp)===!0}))if(l=_.M(l,DAv),l==null?0:l.icon){var D,U;
if((l=(D=_.y0$(l.icon))==null?void 0:(U=D.clientResource)==null?void 0:U.imageName)&&l5W(l))return l}};
n25=function(l){return l==null?void 0:l.filter(function(D){return D.premiereTrailerBadgeRenderer})};
y62=function(l){var D,U=l==null?void 0:(D=l.find(function(b){return b.thumbnailOverlayTimeStatusRenderer}))==null?void 0:D.thumbnailOverlayTimeStatusRenderer,n,y;
if((U==null?0:(n=U.icon)==null?0:n.iconType)&&l5W(U==null?void 0:(y=U.icon)==null?void 0:y.iconType)){var A;return{icon:U==null?void 0:(A=U.icon)==null?void 0:A.iconType}}var C;if(D=l==null?void 0:(C=l.find(function(b){return b.thumbnailOverlayBadgeViewModel}))==null?void 0:C.thumbnailOverlayBadgeViewModel)if(C=UAJ(D.thumbnailBadges))return{icon:C};
var h;if(l=l==null?void 0:(h=l.find(function(b){return b.thumbnailBottomOverlayViewModel}))==null?void 0:h.thumbnailBottomOverlayViewModel)if(h=UAJ(l.badges))return{icon:h};
return{}};
PUr=function(l,D){var U=A6q,n=_.B(_.aw(WQv(new BVW(function(){},U,D)),void 0,"PAnyd")),y=n.next().value,A=n.next().value,C=new BVW(function(h){A(h)},U,D);
_.$i(function(){Promise.resolve().then(function(){var h,b=(h=l())!=null?h:{};C.playerControlsData=b;C.lastSeenPlayerApi=_.VC9(b.playerApi);CU8(C)});
_.NV(function(){hpJ(C)})},"HikUP");
_.NV(function(){hpJ(C)});
return function(){return y()}};
bIW=function(l){return function(D){var U=l(),n={playerState:D};if(D===1){var y;(y=U.playerApi)==null||y.loadModule("captions")}if(D===0){var A;(A=U.playerApi)==null||A.unloadModule("captions")}D!==-1&&U.setState(n)}};
g2q=function(l){return function(D){l().setState({playbackRate:D})}};
uGT=function(l){return function(D){var U=l(),n=U.playerApi,y=n==null?void 0:n.getVideoData(),A=(y==null?void 0:y.isLive)||!1;y=y==null?void 0:y.video_id;A={videoDuration:FE2(n||void 0),isLive:A,videoId:y};A.videoId!==U.videoId&&(A=Object.assign({},_.d0N(n),A));if(D==null?0:D.playertype)A.playerType=D.playertype;if(n){A.captionsAvailable=_.$V(n);D=A;var C;y=(C=n.getStoryboardLevel(n.getNumberOfStoryboardLevels()-1))==null?void 0:C.intervalMs;D.storyboardInterval=y?y/1E3:void 0;A.captionsAvailable&&
(A.captionsEnabled=_.G7W(n))}A.volumeMuted=!(n==null||!n.isMuted());U.setState(A)}};
v2$=function(l){return function(D){var U=l(),n=U.playerApi;if(n){var y=n.getPresentingPlayerType();D={playedTime:D||0,percentLoaded:n.getVideoLoadedFraction(),playerType:y};U.playerState===0&&(D.playedTime=U.videoDuration);U.isLive&&(y=n.getProgressState(y),D.playedTime-=y.seekableStart,D.videoDuration=FE2(n));if(U.playerType===1)n=!1;else{var A;if((A=U.uxConfig)==null?0:A.showCuedOverlay){var C;n=!((C=U.playerApi)==null?0:C.getPlayerStateObject(U.playerType).isDomPaused)}else n=!0}n&&delete D.playedTime;
U.setState(D)}}};
QS$=function(l){return function(){var D=l(),U,n,y,A={volume:(y=(U=D.playerApi)==null?void 0:U.getVolume())!=null?y:0,volumeMuted:!((n=D.playerApi)==null||!n.isMuted())};D.setState(A)}};
GaW=function(l){return function(){var D=l(),U=D.playerApi;if(U){var n={captionsAvailable:_.$V(U)};n.captionsAvailable&&(n.captionsEnabled=_.G7W(U));D.setState(n)}}};
J6H=function(l){return{appApi:Object.assign({},_.ekC(),{showCaptionsToggleToast:function(D){var U,n;(n=(U=l()).showCaptionsToggleToast)==null||n.call(U,D)},
openInMiniplayer:function(){var D,U;(U=(D=l()).openInMiniplayer)==null||U.call(D)}})}};
LQ8=function(l,D){var U,n,y;return!!(l==null?0:(U=l.playerResponse)==null?0:(n=U.playerConfig)==null?0:(y=n.inlinePlaybackConfig)==null?0:y.showScrubbingControls)&&!(D==null?0:D.hideScrubbingControls)};
_.q9v=function(l){var D=!l.miniplayerIsActive;return[5,2,0].includes(l.miniplayerPlaybackState)||D};
MGJ={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};RpW=function(l){this.onStepChangeCallback=function(){};
this.flowRenderer=l};
RpW.prototype.getCurrentStep=function(){var l=this,D;return((D=this.flowRenderer.steps)!=null?D:[]).map(function(U){return _.M(U,_.$0)}).find(function(U){return U&&U.stepId===l.currentStepId})};
ZI2=function(l,D){var U=D.flowStateEntityKey,n=l.flowStates.get(U);if(n)return n;D=new RpW(D);l.flowStates.set(U,D);return D};
ep2=function(l,D){for(var U=_.B(l.flowStates.entries()),n=U.next();!n.done;n=U.next()){var y=_.B(n.value);n=y.next().value;y=y.next().value;if(y.flowRenderer.targetId===D){l.flowStates.delete(n);break}}};
mAJ=function(l,D){l.onStepChangeCallback=D;l.onStepChangeCallback(l.getCurrentStep())};
a5H=function(l,D){var U=l.getCurrentStep();if(!U||U.stepId!==D){var n;((n=l.flowRenderer.steps)!=null?n:[]).map(function(y){return _.M(y,_.$0)}).find(function(y){return y&&y.stepId===D})&&(l.currentStepId=D,l.onStepChangeCallback(l.getCurrentStep()))}};
tGP=function(l,D){var U,n,y,A,C;_.P(function(h){if(!D.length)return h.return([]);U=[];n=_.B(D);for(y=n.next();!y.done;y=n.next())A=y.value,(C=l.resolveIcon(A))&&!l.iconCache[C.url]&&U.push(_.ggv(l,C).then(function(){}).catch(function(){}));
return h.return(Promise.all(U))})};
XH5=function(l,D){var U=[];D=(new Set(D)).values();D=_.B(D);for(var n=D.next();!n.done;n=D.next()){n=n.value;for(var y=_.B(Object.values(MGJ)),A=y.next();!A.done;A=y.next())U.push({iconName:n,iconStyle:A.value})}tGP(l.iconManager,U)};
_.S9T=function(l,D,U){var n=U!=null?U:l.iconsToFetch;n!=null&&n.length?D!==void 0&&D>=0?_.oI(_.Tn,function(){XH5(l,n)},D):XH5(l,n):Promise.resolve()};
_.kar=_.Ph(function(l,D,U){if(l.nextWireType_!==5)return!1;_.bw(D,U,_.cm(l.decoder_));return!0},function(l,D,U){D=_.Mh_(D);
D!=null&&(_.gT(l,U,5),_.vh(l.encoder_,D))},_.yr8);
dAJ=[0,_.om,_.kar,-1];_.KQ8=function(){return _.V0({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
BVW=function(l,D,U){var n=this;this.renderFn=l;this.listeners=D;this.context=U;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var y;this.lastSeenPlayerApi=_.VC9((y=this.playerControlsData)==null?void 0:y.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.d0N(),void 0);_.q("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){WQv(n).setState({playerState:-1});n.resetRecentlyNavigatedJobId&&_.Tn.cancelJob(n.resetRecentlyNavigatedJobId);
n.recentlyNavigated=!0;n.resetRecentlyNavigatedJobId=_.Tn.addJob(function(){n.recentlyNavigated=!1},8,1E4)})};
BVW.prototype.setState=function(l){if(!_.q("mweb_player_skip_no_op_state_changes")||!oY8(l,this.state))if(this.state=Object.assign({},this.state,l),!_.q("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)l=-1,_.q("player_controls_log_creation_killswitch")||wdv()||(l=(0,_.J3)()),_.ae("pcu_s"),_.ae("pcu_se"),_.ae("pcu_rs"),this.renderFn(WQv(this)),_.ae("pcu_re"),rHr(l),_.Tn.addJob(function(){_.ae("pcu_ap")},8)};
var WQv=function(l){var D;var U=_.VC9((D=l.playerControlsData)==null?void 0:D.playerApi);return Object.assign({},l.state,{setState:l.boundSetState,domMeasurements:{progressBarLineRect:l.progressBarLineRect},playerApi:U,appApi:l.context.appApi,playerContainer:l.context.playerContainer,playerControlContainer:l.context.playerControlContainer,uxConfig:l.context.uxConfig})},CU8=function(l){l.listeners.forEach(function(D){l.eventListenerCleanupFunctions.push(D.register(function(){return WQv(l)},function(){return l.getData()}))})},
hpJ=function(l){l.eventListenerCleanupFunctions.forEach(function(D){D()});
l.eventListenerCleanupFunctions.length=0};
BVW.prototype.getData=function(){return this.playerControlsData};var c62=[0,_.iW,_.zl,_.iW,-1,_.zl,[0,_.fh,_.Ey,-1],_.iW,-1];var pHH=[0,[1,2,3],_.Im,-2];var xAr=[0,_.iW];var jS2=new _.y4("crowdsourcedContextUserRatingFormFlowState");var FQT=new _.y4("noteViewModel");var BV=new _.y4("abuseReportFlowState");var o2q=new _.y4("feedbackFormFlowState");var wH$=new _.y4("inputBoxViewModel");_.mE5=new _.y4("lengthValidationRule");var tV8=new _.y4("regexValidationRule");var S2T=new _.y4("selectedValidationRule");var r65=[0,_.Ey,_.iW,_.ym];var zpr=[0,_.zl,-2,dAJ];var f5$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(f5$,_.Bh);f5$.prototype.getFeature=function(){return _.Zo(this,6)};
f5$.prototype.hasFeature=function(){return _.Zv(_.hU(this,6))!=null};var $AP=[0,_.Ey];var NVv=_.qg(f5$,[0,_.zl,-2,dAJ,_.zl,_.Ey,-1,_.r6,-1,_.Ey,-3,_.e87,_.fh,zpr,_.Ey,-1,c62,_.r6,_.Ey,r65,[0,[0,_.Ey,-2,2,_.Ey,-1,[0,_.Ey],[0,_.iW,_.Ey],[0,_.iW],[0,_.Ey],2,[0,_.iW,2,[0,_.iW,-1],[0,_.Hm,pHH],1,[0,xAr],1,[0,_.Ey]],[0,_.fh],[0,[1,2],_.Yz,[0,_.Ey],_.Yz,[0,_.Ey,_.VJ,-1]],[0,_.iW],[0,_.Ey,[0,[1,2,3,4],_.Yz,[0,[0,_.Ey],$AP],_.Yz,[0,[0,_.Ey],$AP],_.Yz,[0,$AP],_.Yz,[0,[0,_.Ey],$AP]]],[0,_.Ey],1,[0,_.Ey,_.iW],1,[0,_.Ey],[0,_.fh],[0,_.Ey,_.iW,-1,[0,_.Ey,-4]],[0,_.Ey],[0,_.Ey,-2],1,[0,_.Ey],[0,
_.fh],[0,_.fh,_.Ey],1,[0,_.fh],[0]],_.Ey,_.iW,_.om,1,_.Oy,_.Ey,_.iW],_.zl,_.Oy,_.iW,-1,_.zl]);var sS5=new _.y4("talkToRecsViewModel");var E2W=new _.y4("creatorGoalSetUpFlowDropdownItemViewModel");var TVJ=new _.y4("creatorGoalSetUpFlowDropdownViewModel");var DAv=new _.y4("thumbnailBadgeViewModel");var I58=new _.y4("checkboxGroupViewModel");var MVJ=new _.y4("checkboxItemViewModel");_.CJ=new _.y4("radioButtonGroupViewModel");var HIJ=new _.y4("radioButtonItemViewModel");var fBW=new _.y4("panelFooterViewModel");var Y9J=new _.y4("ypcCancelRecurrenceCommand");var OIq=new _.y4("cancellationFlowState");var h6$=new _.y4("premiumPurchaseFlowState");var VGJ=new _.y4("surveyAnswerCardRenderer");var i32=new _.y4("showMoreButtonRenderer");var lP$;var Dt$,Ut8=function(){if(Dt$!==void 0)return Dt$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;lP$===void 0&&(lP$=document.createElement("template"));var n=lP$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Dt$=l};var hh=function(){var l=_.p.apply(this,arguments)||this;l.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";l.goalDescription="";l.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";l.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";l.startButtonId="start-button";l.exampleButtonId="example-button";return l};
_.Z(hh,_.p);_.W=hh.prototype;_.W.getGoalDropdownItems=function(){var l,D;return(D=_.M((l=this.data)==null?void 0:l.purchaseTargetDropdown,TVJ))==null?void 0:D.dropdownItems};
_.W.getTimerDropdownItems=function(){var l,D;return(D=_.M((l=this.data)==null?void 0:l.timerDropdown,TVJ))==null?void 0:D.dropdownItems};
_.W.getColorDropdownItems=function(){var l,D;return(D=_.M((l=this.data)==null?void 0:l.colorDropdown,TVJ))==null?void 0:D.dropdownItems};
_.W.getDropdownItemText=function(l){var D;return(D=_.M(l,E2W))==null?void 0:D.itemLabel};
_.W.getDropdownItemValue=function(l){l=_.M(l,E2W);return(l==null?void 0:l.timeLimit)||(l==null?void 0:l.purchaseTarget)||(l==null?void 0:l.eligiblePurchaseType)};
_.W.updateFlowState=function(l){_.Vh(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:l}])};
_.W.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.W.updateGoalValue=function(l){this.goal=l.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.W.onTextValueChanged=function(l){this.goalDescription=l.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.W.updateTimerValue=function(l){this.timer=l.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.W.updateTierValue=function(l){this.tier=l.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.W.getButtonViewModel=function(l){l=(l==null?void 0:l.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var D,U=_.M((D=this.data)==null?void 0:D.startGoalButton,_.CM);return Object.assign({},U,{state:l})};
_.QP.Object.defineProperties(hh,{template:{configurable:!0,enumerable:!0,get:function(){return Ut8()}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hh.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],hh.prototype,"goal",void 0);_.E([_.K(),_.T("design:type",Object)],hh.prototype,"goalDescription",void 0);_.E([_.K(),_.T("design:type",Object)],hh.prototype,"timer",void 0);_.E([_.K(),_.T("design:type",Object)],hh.prototype,"tier",void 0);
_.E([_.K(),_.T("design:type",Object)],hh.prototype,"startButtonId",void 0);_.E([_.K(),_.T("design:type",Object)],hh.prototype,"exampleButtonId",void 0);_.E([_.S0({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],hh);_.r(hh,"yt-creator-goal-set-up-flow-view-model",function(){return Ut8()},{mode:0});var nSH;var yJJ;var AJr;var W0v=function(){return _.p.apply(this,arguments)||this};
_.Z(W0v,_.p);_.E([_.K(),_.T("design:type",Object)],W0v.prototype,"data",void 0);_.E([_.S0({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],W0v);
_.r(W0v,"yt-survey-answer-card-renderer",function(){if(AJr===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;yJJ===void 0&&(yJJ=document.createElement("template"));var n=yJJ;U.call(D,n.content.cloneNode(!0),l.content.firstChild);AJr=l}l=AJr;return l},{mode:2});var BjW;var Cu5;var PV=function(){return _.p.apply(this,arguments)||this};
_.Z(PV,_.p);_.W=PV.prototype;_.W.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.W.selectedItemChanged=function(l){_.Vh(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[l.feedbackToken||""]}])};
_.W.surveyAnswerCardRendererClicked=function(l){if(l.target&&_.M(l.model.item,VGJ)){var D=l.target;l=_.M(l.model.item,VGJ);l.onTapCommand?_.DP(D,[l.onTapCommand],D):this.data.onTapCommand&&_.DP(D,[this.data.onTapCommand],D);this.selectedItemChanged(l)}};
_.W.checkIsCancellationStyle=function(l){return l==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.W.updateSelectedItemFromBinding=function(l){this.selectedItem=l.detail.value};
PV.prototype.onSelectedItemChanged=PV.prototype.onSelectedItemChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],PV.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],PV.prototype,"selectedItem",void 0);_.E([_.K({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.T("design:type",Boolean)],PV.prototype,"isCancellationStyle",void 0);
_.E([_.Pg("selectedItem"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],PV.prototype,"onSelectedItemChanged",null);_.E([_.S0({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],PV);
_.r(PV,"yt-survey-flow-step-renderer",function(){if(Cu5===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;BjW===void 0&&(BjW=document.createElement("template"));var n=BjW;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Cu5=l}l=Cu5;return l},{mode:2});var bs=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return l};
_.Z(bs,_.p);bs.prototype.handleSurveyFlowStepOptionChanged=function(l){this.ytdReduxBehavior.dispatch(_.V0({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:l}));_.Vh(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:l}}])};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],bs.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],bs.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],bs.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],bs);
_.r(bs,"ytd-survey-flow-step-renderer",function(){if(nSH!==void 0)return nSH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return nSH=l},{mode:1});_.gS5=_.w(function(l){var D=l.data;var U=l.hideDivider;var n=l.isChannelInfoCard;l={};return _.g("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.g("div",{class:_.DV("yt-profile-identity-info-view-model__frame",(l["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!D().channelBanner},l))},_.g(hQ$,{profileIdentityInfoData:D}),_.g("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.g("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.g(_.uI,{data:function(){return D().avatar}},{avatarViewModel:_.iX})),_.g(Pu$,{profileIdentityInfoData:D})),_.g(_.v,{cond:function(){return D().channelDescription},
then:function(y){var A={};return _.g("div",{class:_.DV((A["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(n==null||!n())},A["yt-profile-identity-info-view-model__channel-description"]=function(){return!(n==null?0:n())},A))},y)}}),_.g(b38,{profileIdentityInfoData:D}),_.g(_.v,{cond:function(){return!(U==null?0:U())},
then:function(){return _.g("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"ph");
_.gS5.idomCompat=!0;var b38=_.w(function(l){var D=l.profileIdentityInfoData;return _.g("div",{class:"yt-profile-identity-info-view-model__buttons"},_.g(_.wt,{each:function(){return D().subscribeButton?[D().subscribeButton,D().channelAccess]:[D().channelAccess]}},function(U){return _.g("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.g("div",{class:"yt-profile-identity-info-view-model--button"},_.g(_.uI,{data:function(){return U}},{buttonViewModel:_.t9,
subscribeButtonViewModel:_.iz})))}))},"qh"),Pu$=_.w(function(l){var D=l.profileIdentityInfoData;
return _.g("div",{class:"yt-profile-identity-info-view-model__trio"},_.g("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.g(uIJ,{profileIdentityInfoData:D}),_.g(_.uI,{data:function(){return D().threeDotMenu}},{buttonViewModel:_.t9})),_.g(vSP,{profileIdentityInfoData:D}))},"rh"),uIJ=_.w(function(l){var D=l.profileIdentityInfoData;
return _.g("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.g("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return D().channelDisplayName}),_.g(_.v,{cond:function(){return D().verifiedOrOacBadge},
then:function(U){return _.g("div",{class:"yt-profile-identity-info-view-model__badge"},_.g(_.rh,{data:function(){return{thumbnails:[{url:U().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"sh"),hQ$=_.w(function(l){var D=l.profileIdentityInfoData;
return _.g("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.g(_.uI,{data:function(){var U=D().channelBanner;if(U)return{imageBannerViewModel:{image:U.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(U){return _.g("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.g(_.bZ,{data:U.data,
isPositionRelative:!0}))}}))},"th"),vSP=_.w(function(l){var D=l.profileIdentityInfoData;
return _.g("div",{class:"yt-profile-identity-info-view-model__metadata"},_.g("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.g("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return D().channelHandle}),_.g(_.v,{cond:function(){return D().channelPronouns&&D().channelHandle},
then:function(){return _.g("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.g("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return D().channelPronouns})),_.g("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.g("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return D().leftOfBulletInfo}),_.g(_.v,{cond:function(){return D().leftOfBulletInfo&&D().rightOfBulletInfo},
then:function(){return _.g("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.g("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return D().rightOfBulletInfo})))},"uh");var Qew;var g1=function(){return _.p.apply(this,arguments)||this};
_.Z(g1,_.p);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],g1.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],g1.prototype,"data",void 0);_.E([_.x({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],g1);
_.r(g1,"ytd-channel-history-renderer",function(){if(Qew!==void 0)return Qew;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Qew=l},{mode:1});var Go8;var JJv=function(){return _.p.apply(this,arguments)||this};
_.Z(JJv,_.p);_.E([_.K(),_.T("design:type",Object)],JJv.prototype,"data",void 0);_.E([_.x({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],JJv);
_.r(JJv,"ytd-feature-enablement-info-renderer",function(){if(Go8!==void 0)return Go8;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Go8=l},{mode:1});var L0r;var qtT;var us=function(){var l=_.p.apply(this,arguments)||this;l.textBoxMaxLength=_.q("enable_tvod_campaign_code_integration")?15:12;return l};
_.Z(us,_.p);_.W=us.prototype;_.W.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.W.onSubmit=function(){var l=this.data.serviceEndpoint,D=_.M(l,_.rN);D&&l&&(D.couponCode=this.userInput,_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}}))};
_.W.validate=function(){var l=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=l&&!this.data.errorMessage;this.showErrorMessage=l&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.q("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.W.computeStyle=function(l){return l};
_.W.computeShowValidationBelowInput=function(l){return l!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.W.updateUserInputFromBinding=function(l){this.userInput=l.currentTarget.value};
_.W.updateShowErrorMessageFromBinding=function(l){this.showErrorMessage=l.detail.value};
_.QP.Object.defineProperties(us.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
us.prototype.dataChanged=us.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],us.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],us.prototype,"userInput",void 0);_.E([_.K(),_.T("design:type",Boolean)],us.prototype,"disableApplyButton",void 0);_.E([_.K(),_.T("design:type",Boolean)],us.prototype,"hideApplyButton",void 0);
_.E([_.K(),_.T("design:type",Boolean)],us.prototype,"hideErrorMessage",void 0);_.E([_.K(),_.T("design:type",Boolean)],us.prototype,"showTick",void 0);_.E([_.K(),_.T("design:type",Boolean)],us.prototype,"showErrorMessage",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.T("design:type",String)],us.prototype,"couponStyle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.T("design:type",Boolean)],us.prototype,"showValidationBelowInput",void 0);_.E([_.K(),_.T("design:type",Object)],us.prototype,"textBoxMaxLength",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],us.prototype,"dataChanged",null);
_.E([_.t("showTick","showErrorMessage","userInput"),_.T("design:type",String),_.T("design:paramtypes",[])],us.prototype,"validationState",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],us);
_.r(us,"ytd-ypc-coupon-renderer",function(){if(qtT!==void 0)return qtT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return qtT=l},{mode:1});var vV=function(){return _.p.apply(this,arguments)||this};
_.Z(vV,_.p);vV.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"}}}};
vV.prototype.computeStyle=function(l){return l};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vV.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.T("design:type",String)],vV.prototype,"buttonStyle",void 0);_.E([_.x({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],vV);
_.r(vV,"ytd-flow-bottom-bar-renderer",function(){if(L0r!==void 0)return L0r;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return L0r=l},{mode:1});var Mzr;var RQW;var Z3r;var QQ=function(){return _.p.apply(this,arguments)||this};
_.Z(QQ,_.p);QQ.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
QQ.prototype.focus=function(l){this.title&&_.CB(this.title,l)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],QQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],QQ.prototype,"data",void 0);_.E([_.gP("#title"),_.T("design:type",HTMLElement)],QQ.prototype,"title",void 0);_.E([_.x({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],QQ);
_.r(QQ,"ytd-flow-top-bar-renderer",function(){if(Z3r!==void 0)return Z3r;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Z3r=l},{mode:1});var eQq;var mt$;var aPr;var G1=function(){return _.p.apply(this,arguments)||this};
_.Z(G1,_.p);G1.prototype.freeTextValueChanged=function(){_.Vh(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
G1.prototype.updateFreeTextValueFromBinding=function(l){this.freeTextValue=l.detail.value};
_.QP.Object.defineProperties(G1.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(D=(l=this.data)==null?void 0:l.responseMaxLength)!=null?D:500,n;return((n=this.freeTextValue)!=null?n:"").length>=U?"maxed-out":""}}});
G1.prototype.freeTextValueChanged=G1.prototype.freeTextValueChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],G1.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],G1.prototype,"freeTextValue",void 0);_.E([_.gP("#user-input"),_.T("design:type",HTMLTextAreaElement)],G1.prototype,"input",void 0);
_.E([_.t("freeTextValue"),_.T("design:type",Object),_.T("design:paramtypes",[])],G1.prototype,"characterLimitClass",null);_.E([_.Pg("freeTextValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],G1.prototype,"freeTextValueChanged",null);_.E([_.S0({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],G1);
_.r(G1,"yt-free-text-input-flow-step-renderer",function(){if(aPr===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;mt$===void 0&&(mt$=document.createElement("template"));var n=mt$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);aPr=l}l=aPr;return l},{mode:2});var Jh=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return l};
_.Z(Jh,_.p);Jh.prototype.handleFreeTextFlowStepInputChanged=function(l){_.Vh(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:l}}])};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Jh.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Jh.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Jh.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Jh);
_.r(Jh,"ytd-free-text-input-flow-step-renderer",function(){if(eQq!==void 0)return eQq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return eQq=l},{mode:1});var tzP;var X68;var St8=function(){return _.p.apply(this,arguments)||this};
_.Z(St8,_.p);_.E([_.K(),_.T("design:type",Object)],St8.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],St8);
_.r(St8,"ytd-metadata-line-renderer",function(){if(X68!==void 0)return X68;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return X68=l},{mode:1});var LJ=function(){return _.p.apply(this,arguments)||this};
_.Z(LJ,_.p);LJ.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],LJ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],LJ.prototype,"isMasthead",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],LJ);
_.r(LJ,"ytd-media-product-renderer",function(){if(tzP!==void 0)return tzP;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return tzP=l},{mode:1});var koH;var q7=function(){return _.p.apply(this,arguments)||this};
_.Z(q7,_.p);q7.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
q7.prototype.onBillboardImageLoaded=function(){_.O9(this.hostElement,"yt-refit")};
q7.prototype.onBillboardImageLoaded=q7.prototype.onBillboardImageLoaded;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],q7.prototype,"data",void 0);_.E([_.gP("#billboardImage"),_.T("design:type",Object)],q7.prototype,"billboardImage",void 0);_.E([_.hj("yt-img-shadow-loaded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],q7.prototype,"onBillboardImageLoaded",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],q7);
_.r(q7,"ytd-billboard-masthead-renderer",function(){if(koH!==void 0)return koH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return koH=l},{mode:1});var dtv;var M7=function(){var l=_.p.apply(this,arguments)||this;l.smallSize=!1;return l};
_.Z(M7,_.p);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],M7.prototype,"ytComponentBehaviorType",void 0);_.E([_.K(),_.T("design:type",Object)],M7.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],M7.prototype,"smallSize",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],M7);
_.r(M7,"ytd-bullet-formatted-string",function(){if(dtv!==void 0)return dtv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return dtv=l},{mode:1});var K0H;var Rh=function(){return _.p.apply(this,arguments)||this};
_.Z(Rh,_.p);Rh.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Rh.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Rh);
_.r(Rh,"ytd-offer-detail-renderer",function(){if(K0H!==void 0)return K0H;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return K0H=l},{mode:1});var cJ2;var ZC=function(){return _.p.apply(this,arguments)||this};
_.Z(ZC,_.p);ZC.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ZC.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],ZC);
_.r(ZC,"ytd-offer-detail-step-renderer",function(){if(cJ2!==void 0)return cJ2;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return cJ2=l},{mode:1});var p68;var ex=function(){var l=_.p.apply(this,arguments)||this;l.isInOfferModule=!1;return l};
_.Z(ex,_.p);_.W=ex.prototype;_.W.computeHasEndpoint=function(){var l;return!((l=this.data)==null||!l.onClickCommand)};
_.W.dataChanged=function(){var l;if((l=this.data)==null?0:l.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")};
_.W.detached=function(){var l;if((l=this.data)==null?0:l.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.W.handleClickEvent=function(){var l;if((l=this.data)==null?0:l.onClickCommand){var D;this.componentBehavior.resolveCommand((D=this.data)==null?void 0:D.onClickCommand)}};
_.W.onContentKeyDown=function(l){l.key==="Enter"?this.handleClickEvent(l):l.key===" "&&l.preventDefault()};
_.W.onContentKeyUp=function(l){l.key===" "&&this.handleClickEvent(l)};
ex.prototype.dataChanged=ex.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ex.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ex.prototype,"data",void 0);_.E([_.K({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],ex.prototype,"hasEndpoint",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ex.prototype,"isInOfferModule",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ex.prototype,"dataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],ex);
_.r(ex,"ytd-channel-masthead-renderer",function(){if(p68!==void 0)return p68;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return p68=l},{mode:1});var xt8;var mV=function(){var l=_.p.apply(this,arguments)||this;l.thumbnailObjectFit="CONTAIN";l.thumbnailObjectPosition="LEFT";l.isExpanded=!1;return l};
_.Z(mV,_.p);_.W=mV.prototype;_.W.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.W.dataChanged=function(){this.resetStates()};
_.W.computeisTapOnOfferInfoContainerEnabled=function(){var l;return((l=this.data)==null?void 0:l.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.W.onExpandBtnClick=function(){var l,D=_.M((l=this.data)==null?void 0:l.showMoreButtonRenderer,i32);D&&_.jm(_.he(),D.trackingParams);this.isExpanded=!this.isExpanded};
_.W.onOfferInfoClick=function(l){this.isTapOnOfferInfoContainerEnabled&&(_.$o(_.$f(l)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Nh(_.$f(l)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.W.onBottomBarClick=function(){this.executeTapCommand()};
_.W.executeTapCommand=function(){var l,D=(l=this.data)==null?void 0:l.tapCommand;D&&this.ytComponentBehavior.resolveCommand(D)};
_.W.resetStates=function(){this.isExpanded=!1};
_.QP.Object.defineProperties(mV.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var l=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),D,U,n;return((D=this.data)==null?void 0:D.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&l&&!!((U=this.data)==null?0:(n=U.benefits)==null?0:n.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((D=_.M((l=this.data)==null?void 0:l.showMoreButtonRenderer,i32))==null?void 0:D.showMoreButtonTitle)||((U=this.data)==null?void 0:U.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((D=_.M((l=this.data)==null?void 0:l.showMoreButtonRenderer,i32))==null?void 0:D.showLessButtonTitle)||((U=this.data)==null?void 0:U.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var l;return(l=this.showLessButtonTitle)!=null?l:""}var D;return(D=this.showMoreButtonTitle)!=null?D:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((l=this.data)==null?void 0:l.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((D=this.data)==null?0:D.footerTitle)||((U=this.data)==null?0:U.footerSubtitle))}}});
mV.prototype.dataChanged=mV.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],mV.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",String)],mV.prototype,"thumbnailObjectFit",void 0);
_.E([_.K(),_.T("design:type",String)],mV.prototype,"thumbnailObjectPosition",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.T("design:type",Boolean)],mV.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.E([_.K(),_.T("design:type",Object)],mV.prototype,"isExpanded",void 0);_.E([_.K(),_.T("design:type",Object)],mV.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.footerIcon)"}),_.T("design:type",String)],mV.prototype,"icon",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],mV.prototype,"dataChanged",null);_.E([_.t("data.thumbnail"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],mV.prototype,"hasThumbnail",null);_.E([_.t("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],mV.prototype,"enableExpandButton",null);
_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],mV.prototype,"enableOfferContentIcon",null);_.E([_.t("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.T("design:type",Object),_.T("design:paramtypes",[])],mV.prototype,"showMoreButtonTitle",null);_.E([_.t("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.T("design:type",Object),_.T("design:paramtypes",[])],mV.prototype,"showLessButtonTitle",null);
_.E([_.t("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.T("design:type",String),_.T("design:paramtypes",[])],mV.prototype,"expandedBtnText",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],mV.prototype,"enableBottomBar",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],mV);
_.r(mV,"ytd-offer-card-renderer",function(){if(xt8!==void 0)return xt8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return xt8=l},{mode:1});var je$;var ah=function(){return _.p.apply(this,arguments)||this};
_.Z(ah,_.p);ah.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"}}}};
ah.prototype.onClick=function(l){if(!_.$o(l.composedPath()||[],this.hostElement,["A".toString()])){var D,U;if((l=(U=_.M((D=this.data)==null?void 0:D.actionButton,_.yn))==null?void 0:U.command)&&!this.ytComponentBehavior.resolveCommand(l)){var n;(n=_.he())==null||n.clickCommand(l);_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}})}}};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ah.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ah.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],ah);
_.r(ah,"ytd-offer-content-renderer",function(){if(je$!==void 0)return je$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return je$=l},{mode:1});var F08;var th=function(){return _.p.apply(this,arguments)||this};
_.Z(th,_.p);th.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.QP.Object.defineProperties(th.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var l,D;return!((l=this.data)==null||!l.title)||!((D=this.data)==null||!D.description)}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],th.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],th.prototype,"hasHeaderData",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],th);
_.r(th,"ytd-offer-section-renderer",function(){if(F08!==void 0)return F08;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return F08=l},{mode:1});var oSJ;var Xj=function(){return _.p.apply(this,arguments)||this};
_.Z(Xj,_.p);
Xj.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Xj.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Xj);
_.r(Xj,"ytd-offer-selection-step-renderer",function(){if(oSJ!==void 0)return oSJ;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return oSJ=l},{mode:1});var w6P;var Sx=function(){return _.p.apply(this,arguments)||this};
_.Z(Sx,_.p);Sx.prototype.computeStyle=function(l){return l};
Sx.prototype.computeImageWidth=function(l){return l==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.E([_.K({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.T("design:type",String)],Sx.prototype,"containerStyle",void 0);_.E([_.K({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.T("design:type",String)],Sx.prototype,"imageWidth",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Sx.prototype,"data",void 0);
_.E([_.x({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Sx);
_.r(Sx,"ytd-confirmation-masthead-renderer",function(){if(w6P!==void 0)return w6P;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return w6P=l},{mode:1});var rJT;var kr=function(){return _.p.apply(this,arguments)||this};
_.Z(kr,_.p);kr.prototype.computeStyle=function(l){return l};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],kr.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.T("design:type",String)],kr.prototype,"containerStyle",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],kr);
_.r(kr,"ytd-purchase-complete-detail-renderer",function(){if(rJT!==void 0)return rJT;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return rJT=l},{mode:1});var zQJ;var d1=function(){var l=_.p.apply(this,arguments)||this;l.scriptsAppended=!1;return l};
_.Z(d1,_.p);d1.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"}}}};
d1.prototype.onDataChanged=function(){var l=this.get("data.gtmId");l&&(_.fd(l,_.H3("GL","")),this.setupConversionTracking())};
d1.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var l=document.createElement("noscript");l.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(l);this.scriptsAppended=!0}};
d1.prototype.onDataChanged=d1.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],d1.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],d1.prototype,"scriptsAppended",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],d1.prototype,"onDataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],d1);
_.r(d1,"ytd-purchase-complete-step-renderer",function(){if(zQJ!==void 0)return zQJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return zQJ=l},{mode:1});var fP8;var KJ=function(){return _.p.apply(this,arguments)||this};
_.Z(KJ,_.p);KJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],KJ.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],KJ);
_.r(KJ,"ytd-ypc-transaction-error-message-renderer",function(){if(fP8!==void 0)return fP8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return fP8=l},{mode:1});var $t8;var NjP;var cV=function(){var l=_.p.apply(this,arguments)||this;l.handlePhoneVerificationSuccess=function(D){if(l.isValidPhoneVerificationCompletionMessageEvent(D)){var U;((U=l.data)==null?0:U.nextStepCommand)&&l.ytComponentBehavior.resolveCommand(l.data.nextStepCommand)}};
return l};
_.Z(cV,_.p);cV.prototype.isValidPhoneVerificationCompletionMessageEvent=function(l){if(l.data!=="yt-phone-verification-complete")return!1;l=_.bl(l.origin);return l!==null&&l.includes("youtube.com")};
cV.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
cV.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],cV.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],cV.prototype,"data",void 0);_.E([_.S0({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],cV);
_.r(cV,"yt-feature-enablement-soft-entry-renderer",function(){if(NjP===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;$t8===void 0&&($t8=document.createElement("template"));var n=$t8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);NjP=l}l=NjP;return l},{mode:1});var sev;var ESq;var Tj$;var IP8;var H3$=function(){return _.p.apply(this,arguments)||this};
_.Z(H3$,_.p);_.E([_.K(),_.T("design:type",Object)],H3$.prototype,"data",void 0);_.E([_.S0({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],H3$);
_.r(H3$,"yt-benefits-item-renderer",function(){if(IP8===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Tj$===void 0&&(Tj$=document.createElement("template"));var n=Tj$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);IP8=l}l=IP8;return l},{mode:2});var YtH;var O38;var pJ=function(){return _.p.apply(this,arguments)||this};
_.Z(pJ,_.p);pJ.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
pJ.prototype.computeisWithoutPadding=function(){var l;return((l=this.data)==null?void 0:l.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],pJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],pJ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.T("design:type",Boolean)],pJ.prototype,"isWithoutPadding",void 0);_.E([_.S0({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],pJ);
_.r(pJ,"yt-benefits-section-renderer",function(){if(O38===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;YtH===void 0&&(YtH=document.createElement("template"));var n=YtH;U.call(D,n.content.cloneNode(!0),l.content.firstChild);O38=l}l=O38;return l},{mode:2});var xr=function(){return _.p.apply(this,arguments)||this};
_.Z(xr,_.p);xr.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
xr.prototype.computeisUsingLargeWidth=function(){var l;return((l=this.data)==null?void 0:l.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],xr.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.T("design:type",Boolean)],xr.prototype,"isUsingLargeWidth",void 0);_.E([_.S0({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],xr);
_.r(xr,"yt-benefits-flow-step-renderer",function(){if(ESq===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;sev===void 0&&(sev=document.createElement("template"));var n=sev;U.call(D,n.content.cloneNode(!0),l.content.firstChild);ESq=l}l=ESq;return l},{mode:2});var VzJ;var i7$;var jx=function(){return _.p.apply(this,arguments)||this};
_.Z(jx,_.p);jx.prototype.checkIsUsingLargeWidth=function(){var l;return((l=this.data)==null?void 0:l.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.K(),_.T("design:type",Object)],jx.prototype,"data",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.E([_.K({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.T("design:type",Boolean)],jx.prototype,"isUsingLargeWidth",void 0);_.E([_.S0({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],jx);
_.r(jx,"yt-confirmation-flow-step-renderer",function(){if(i7$===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;VzJ===void 0&&(VzJ=document.createElement("template"));var n=VzJ;U.call(D,n.content.cloneNode(!0),l.content.firstChild);i7$=l}l=i7$;return l},{mode:2});var l18;var DlW;var Ul$=function(){return _.p.apply(this,arguments)||this};
_.Z(Ul$,_.p);_.E([_.K(),_.T("design:type",Object)],Ul$.prototype,"data",void 0);_.E([_.S0({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Ul$);
_.r(Ul$,"yt-info-flow-step-renderer",function(){if(DlW===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;l18===void 0&&(l18=document.createElement("template"));var n=l18;U.call(D,n.content.cloneNode(!0),l.content.firstChild);DlW=l}l=DlW;return l},{mode:2});var nB$;var y48;var A4$=function(){return _.p.apply(this,arguments)||this};
_.Z(A4$,_.p);_.E([_.K(),_.T("design:type",Object)],A4$.prototype,"data",void 0);_.E([_.S0({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],A4$);
_.r(A4$,"yt-info-list-flow-step-renderer",function(){if(y48===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;nB$===void 0&&(nB$=document.createElement("template"));var n=nB$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);y48=l}l=y48;return l},{mode:2});var WFJ=_.w(function(l){var D=l.data;return _.g("styled-text-view-model",{class:_.DV("ytStyledTextViewModelHost",function(){return iSr(D().fontAttributes)},function(){return Vnw(D().color)})},_.g(_.BO,{text:function(){return D().text},
ariaLabel:function(){var U,n,y;return(y=(U=D().accessibility)==null?void 0:(n=U.accessibilityData)==null?void 0:n.label)!=null?y:""}}))},"vh");
WFJ.idomCompat=!0;var Buq=_.w(function(l){var D=function(){var y,A,C,h;return(h=(C=(y=l.alt)==null?void 0:y.call(l))!=null?C:(A=l.data().accessibilityData)==null?void 0:A.label)!=null?h:""},U=function(){return l.data().imageWidth},n=function(){return l.data().imageHeight};
return _.g("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.g(_.v,{cond:function(){var y=l.data();if(y){var A,C,h;var b=((A=_.Jc().resolve(_.G8(_.jQ)))==null?0:A())?(C=y.imageDark)!=null?C:y.imageLight:(h=y.imageLight)!=null?h:y.imageDark}else b=void 0;return b},
then:function(y){return _.g(_.rh,Object.assign({},l,{data:y,alt:D,targetWidth:U,targetHeight:n,preserveHeight:!0,preserveWidth:!0}))}}))},"wh");
Buq.idomCompat=!0;var Fj=_.w(function(l){var D=l.data;l=_.NQ(function(){return D().slots},[]);
var U=_.NQ(function(){return D().layoutProperties},{}),n=_.Jc().resolve(_.oO);
return _.g("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:TmH(U,n)},_.g(_.wt,{each:l,keyBy:"INDEX"},function(y){return _.g("div",{class:"ytContainerLayoutViewModelSlot",style:TmH(function(){return y().layoutProperties},n)},_.g(_.uI,{data:function(){return y().contents}},{containerLayoutViewModel:Fj,
badgeViewModel:_.LK,buttonViewModel:_.t9,styledTextViewModel:WFJ,contentPreviewImageViewModel:function(A){return _.g(_.XQ,{data:A.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(A){return _.g(Buq,{data:A.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"xh");
Fj.idomCompat=!0;var CQ$=_.w(function(l){var D=l.data;var U=l.stateFns;var n=function(){var u=D(),Q=u.productId;return!(!u.clearGroupId&&!Q)},y=function(){var u=D(),Q=u.clearGroupId;
return(u=u.productId)?U().isProductSelected(u):Q?U().getSelectedProductByGroupId(Q)==null:!1},A=function(u){var Q=D(),G=Q.clearGroupId;
if(Q=Q.productId)U().onProductSelected(Q),u==null||u.forEach(function(J){_.dh(J)});
else if(G)U().onClearGroupSelected(G)},C=function(){var u=D(),Q=u.clearGroupId;
if(u=u.productId){var G;return"group:"+(((G=U().getProductById(u))==null?void 0:G.groupId)||"")}return Q?"group:"+Q:""},h=_.NQ(function(){return D().header},[]),b=_.NQ(function(){return D().body},[]);
return _.g("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.g(_.v,{cond:function(){return h().length>0||n()},
then:function(){return _.g("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.g("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.g(_.uI,{data:h},{containerLayoutViewModel:function(u){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(Fj,{data:u.data}))},
styledTextViewModel:function(u){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(WFJ,{data:u.data}))}})),_.g(_.v,{cond:n,
then:function(){return _.g("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.g(_.Wv,{checked:y,name:C,onChange:function(){A(D().onSelect)}}))}}))}}),_.g(_.v,{cond:function(){return b().length>0},
then:function(){return _.g("div",null,_.g(_.uI,{data:b},{containerLayoutViewModel:function(u){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(Fj,{data:u.data}))}}))}}))},"yh");
CQ$.idomCompat=!0;var hf$=_.w(function(l){var D=l.data;var U=l.stateFns;return _.g("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.g(_.v,{cond:function(){return D().banner},
then:function(n){return _.g("div",{class:"ytPdpCardViewModelBanner"},_.g(_.BO,{text:n}))}}),_.g(_.uI,{data:function(){return D().sections}},{pdpCardSectionViewModel:function(n){n=n.data;
var y={};return _.g("div",{class:_.DV("ytPdpCardViewModelSectionContainer",(y.ytPdpCardViewModelShowDividers=function(){return D().showDividers},y))},_.g(CQ$,{data:n,
stateFns:U}))}}))},"zh");
hf$.idomCompat=!0;var PQH=_.w(function(l){var D=l.data;var U=l.isOverlay;l={};return _.g("pdp-masthead-view-model",{class:_.DV("ytPdpMastheadViewModelHost",(l.ytPdpMastheadViewModelIsOverlay=U,l))},_.g(_.uI,{data:function(){return D().image}},{contentPreviewImageViewModel:_.XQ,
themedImageViewModel:function(n){return _.g(Buq,{data:n.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.g(_.v,{cond:function(){return D().title},
then:function(n){return _.g("h1",{class:"ytPdpMastheadViewModelHeading"},_.g(_.BO,{text:n,isOverlay:U}))}}),_.g(_.wt,{each:function(){var n;
return(n=D().finePrint)!=null?n:[]}},function(n){return _.g("div",{class:"ytPdpMastheadViewModelFinePrint"},_.g(_.BO,{text:n,
isOverlay:U}))}))},"Ah");
PQH.idomCompat=!0;var b7w=_.w(function(l){var D=l.data;var U=l.stateFns;var n=function(){return"pdp-pricing-group-selector-"+D().pricingGroupAttributeIds},y=_.NQ(function(){return D().pricingGroupSelectorSectionHeader});
return _.g("pdp-pricing-group-selector-view-model",null,_.g(_.v,{cond:function(){return!!y()},
then:function(){return _.g(_.uI,{data:y},{sectionHeaderViewModel:function(A){A=A.data;var C={};return _.g("div",{class:_.DV("ytPdpPricingGroupSelectorViewModelSectionHeader",(C.ytPdpPricingGroupSelectorViewModelFullBleed=!0,C.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,C))},_.g(_.oa,{data:A}))}})}}),_.g("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.g(_.wt,{each:function(){var A=U().getSelectedProductByGroupId(D().groupId);
if(!A)return _.Tj(Error("Zj`"+D().groupId)),[];var C,h=(C=D().pricingGroupAttributeIds)!=null?C:[],b;if((b=A.pricingGroups)==null||!b.length||!h.length)return[];C=A.pricingGroups.filter(function(J){return h.length?J.pricingGroupAttributes.every(function(L){return h.includes(L)}):!1});
A=[];if(h.length>0){C=[].concat(_.zz(C));b=_.B(h);for(var u=b.next(),Q={};!u.done;Q={targetAttrId:void 0},u=b.next())Q.targetAttrId=u.value,u=C.findIndex(function(J){return function(L){return L.pricingGroupAttributes.includes(J.targetAttrId)}}(Q)),u!==-1&&(A.push(C[u]),C.splice(u,1))}var G=U().getSelectedPricingGroupAttributesByGroupId(D().groupId);
return A.map(function(J){var L=!1;G&&J.pricingGroupAttributes&&(L=Ue(J.pricingGroupAttributes,G));return{pricingGroup:J,isSelected:L}})},
keyBy:function(A){return A.pricingGroup.pricingGroupId}},function(A){return _.g("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.g("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.g(_.uI,{data:function(){return A().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Fj})),_.g("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.g(_.Wv,{checked:function(){return A().isSelected},
name:n,onClick:function(){var C=A().pricingGroup;U().onPricingGroupSelected(C.pricingGroupId);if(C=_.te(C.onSelectPricingGroup)){var h;(h=_.Jc().resolve(_.qK))==null||h.resolveCommand(C)}}})))})))},"Bh");
b7w.idomCompat=!0;var gBH=_.w(function(l){var D=l.data;var U=l.stateFns;var n=function(){var C=U().getSelectedPricingOptions().map(function(u){return u.pricingOptionId}),h=U().getSelectedProductByGroupId(D().groupId);
if(!h)return _.Tj(Error("$j`"+D().groupId)),[];var b=U().getSelectedPricingGroupAttributesByGroupId(D().groupId);return nxw(h.pricingOptions,b,C)},y=_.NQ(function(){return D().pricingOptionSelectorSectionHeader}),A=function(){return n().length>1};
return _.g("pdp-pricing-option-selector-view-model",null,_.g(_.v,{cond:function(){return!!y()&&A()},
then:function(){return _.g(_.uI,{data:y},{sectionHeaderViewModel:function(C){C=C.data;var h={};return _.g("div",{class:_.DV("ytPdpPricingOptionSelectorViewModelSectionHeader",(h.ytPdpPricingOptionSelectorViewModelFullBleed=!0,h.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,h))},_.g(_.oa,{data:C}))}})}}),_.g(_.v,{cond:A,
then:function(){return _.g("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.g(_.wt,{each:n,keyBy:"INDEX"},function(C){return _.g("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.g("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.g(_.uI,{data:function(){return C().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Fj})),_.g("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.g(_.Wv,{checked:function(){return C().isSelected},
onClick:function(){U().onPricingOptionSelected(C().pricingOption.pricingOptionId);var h=C().pricingOption.onSelectPricingOption;if(h=_.te(h)){var b;(b=_.Jc().resolve(_.qK))==null||b.resolveCommand(h)}}})))}))}}))},"Ch");
gBH.idomCompat=!0;var uo2=_.w(function(l){var D=l.data;var U=l.stateFns;return _.g("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.g(_.uI,{data:function(){var n,y;return(y=(n=U().getSelectedPricingOptions()[0])==null?void 0:n.primaryButton)!=null?y:D().emptyStateButton}},{buttonViewModel:_.t9}))},"Dh");
uo2.idomCompat=!0;var vB8=_.w(function(l){var D=l.stateFns;return _.g("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.g(_.uI,{data:function(){return D().getSelectedPricingOptions().flatMap(function(U){return U.summaryLines}).filter(function(U){return!!U})}},{containerLayoutViewModel:function(U){return _.g("div",{class:"ytPdpSummaryViewModelLineItem"},_.g(Fj,{data:U.data}))}}))},"Eh");
vB8.idomCompat=!0;var QJ5=_.w(function(l){function D(R){var a=C();_.$u(_.et("pdpStateEntity",a,{key:a,selectedPricingOptions:R}))}
var U=l.data;var n=l.internalScrolling;var y=l.stateFnsForTesting;var A=_.NQ(function(){return U().allProducts},[]),C=_.NQ(function(){return U().pdpStateEntityKey},""),h=_.Pr(yO2,C),b=_.dM(function(){_.EP(!0);
var R;return(R=y==null?void 0:y())!=null?R:Wwv(h,A,D)},void 0,"Pzdsic"),u=_.NQ(function(){return U().body},[]),Q=_.NQ(function(){return U().columnBreakHints},[]),G=function(){return U().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},J=function(){return G()||U().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},L=_.dM(function(){var R=_.pq(U().background),a;
if(R==null?0:(a=R.sources)==null?0:a.length){var S=S===void 0?!0:S;R=_.BJC(void 0,R.sources,void 0,S,S?1E3:void 0,S?void 0:1E3)}else R=null;return R},void 0,"RDPOae");
_.N1(function(){var R=U().onStartCommand;if(R&&(R=_.te(R))){var a;(a=_.Jc().resolve(_.qK))==null||a.resolveCommand(R)}});
l={};return _.g("pdp-view-model",{class:_.DV("ytPdpViewModelHost",(l.ytPdpViewModelHasBackground=function(){return J()||!!L()},l.ytPdpViewModelHasDarkBackground=J,l.ytPdpViewModelHasScrim=G,l.ytPdpViewModelInternalScrolling=n,l)),
style:_.BK({"--pdp-view-model-background":function(){return L()?"url("+L()+")":void 0}})},_.g("div",{class:"ytPdpViewModelColumnContainer"},_.g(_.wt,{each:function(){return B0q(u(),Q())},
keyBy:"INDEX"},function(R){return _.g("div",{class:"ytPdpViewModelColumn"},_.g(_.uI,{data:R},{containerLayoutViewModel:function(a){return _.g(oh,null,_.g(Fj,{data:a.data}))},
dividerViewModel:function(a){return _.g(oh,{fullBleed:!0},_.g(_.UCm,{data:a.data}))},
pdpCardViewModel:function(a){return _.g(oh,null,_.g(hf$,{data:a.data,stateFns:b}))},
pdpMastheadViewModel:function(a){return _.g(oh,null,_.g(PQH,{data:a.data,isOverlay:J}))},
pdpPricingGroupSelectorViewModel:function(a){return _.g(oh,null,_.g(b7w,{data:a.data,stateFns:b}))},
pdpPricingOptionSelectorViewModel:function(a){return _.g(oh,null,_.g(gBH,{data:a.data,stateFns:b}))},
pdpPrimaryButtonViewModel:function(a){return _.g(oh,null,_.g(uo2,{data:a.data,stateFns:b}))},
pdpSummaryViewModel:function(a){return _.g(oh,null,_.g(vB8,{data:a.data,stateFns:b}))},
sectionHeaderViewModel:function(a){return _.g(oh,{fullBleed:!0,noVerticalPadding:!0},_.g(_.oa,{data:a.data}))}}))})))},"Fh");
QJ5.idomCompat=!0;var oh=_.w(function(l){var D={};return _.g("div",{class:_.DV("ytPdpViewModelItem",(D.ytPdpViewModelFullBleed=l.fullBleed,D.ytPdpViewModelNoVerticalPadding=l.noVerticalPadding,D))},l.children)},"Gh");_.Tt(QJ5,"pdp-view-model",{props:{data:_.C$,stateFnsForTesting:_.ND,internalScrolling:_.ND}});var G3$=_.w(function(l){var D=l.data;var U=l.className;var n=_.Pr(_.zM,function(){return D().flowStateEntityKey});
return _.g("ytm-premium-purchase-button-renderer",{class:_.DV("ytPremiumPurchaseButtonRendererHost",U)},_.g(_.uI,{data:function(){var y;return(y=_.M(n(),h6$))==null?void 0:y.primaryButtonOverride}},{buttonRenderer:function(y){return _.g(_.Jg,{data:y.data,
className:U})},
buttonViewModel:function(y){return _.g(_.t9,{data:y.data,className:U})}}))},"Hh");
G3$.idomCompat=!0;var J4H=_.w(function(l){var D=l.data;l=l.className;var U=function(){return C6W(D().style)},n=_.DV("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",U),y=_.DV("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",U);
return _.g("yt-flow-bottom-bar-renderer",{class:_.DV("yt-flow-bottom-bar-renderer",l,U)},_.g(_.uI,{data:function(){return D().secondaryButton}},{buttonRenderer:function(A){return _.g(_.Jg,{data:A.data,
className:y})},
buttonViewModel:function(A){return _.g(_.t9,{data:A.data,className:y})},
premiumPurchaseButtonRenderer:function(A){return _.g(G3$,{data:A.data,className:y})}}),_.g(_.uI,{data:function(){return D().primaryButton}},{buttonRenderer:function(A){return _.g(_.Jg,{data:A.data,
className:n})},
buttonViewModel:function(A){return _.g(_.t9,{data:A.data,className:n})},
premiumPurchaseButtonRenderer:function(A){return _.g(G3$,{data:A.data,className:n})}}))},"Ih");
J4H.idomCompat=!0;_.Tt(J4H,"yt-flow-bottom-bar-renderer",{props:{data:_.C$,className:_.C$}});var LFw=_.w(function(l){var D=_.DV(l.className,"ytOfferSummaryRendererHost");return _.g("yt-offer-summary-renderer",{class:D},_.g("div",{class:"ytOfferSummaryRendererTextContainer"},_.g("div",{class:"ytOfferSummaryRendererEyebrowText"},_.g(_.BO,{text:function(){return l.data().eyebrowText}})),_.g("div",{class:"ytOfferSummaryRendererTitle"},_.g(_.BO,{text:function(){return l.data().title}})),_.g("div",{class:"ytOfferSummaryRendererSubtitle"},_.g(_.BO,{text:function(){return l.data().subtitle}})),_.g("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.g(_.wt,{each:function(){var U;
return(U=l.data().featureListData)!=null?U:[]}},function(U){var n;
return _.g("div",{class:"ytOfferSummaryRendererFeatureList"},_.g(_.C0,{icon:(n=U.icon)==null?void 0:n.iconType,active:function(){return U.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(U.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"}}}),_.g("div",{class:"ytOfferSummaryRendererFeatureListText"},_.g(_.BO,{text:U.text,
className:function(){return U.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.g("div",{class:"ytOfferSummaryRendererDescription"},_.g(_.BO,{text:function(){return l.data().description}}))))},"Jh");_.Tt(_.w(function(l){var D={};D=_.DV("ytOfferSummaryFlowStepRendererHost",(D.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=l.shouldDisableHeaderTopMargin,D));return _.g("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:D},_.g("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.g("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.g(_.BO,{text:function(){return l.data().header}})),_.g("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.g(_.BO,{text:function(){return l.data().subtitle}}))),_.g("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.g(_.uI,{data:function(){return l.data().offerSummary}},{offerSummaryRenderer:function(U){return _.g(LFw,{data:U.data,
className:l.flowClassName})}})))},"Kh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.ND,
flowClassName:_.ND,flowStateEntityKey:_.ND,shouldDisableHeaderTopMargin:_.ND}});var qBr=_.w(function(l){var D=l.data;var U=l.className;var n=l.flowStateEntityKey;var y=l.selectionStepStyle;l=_.n0(function(b){var u=D(),Q=n==null?void 0:n();b.target&&(b.stopPropagation(),b=Q||"",Q=_.zM(_.fY().getState(),b),u=Object.assign({},Q,{premiumPurchaseFlowState:{selectedOptionId:u.optionId,primaryButtonOverride:u.primaryButtonOverride}}),_.fY().dispatch(_.vr("flowStateEntity",b,u)));return!1});
var A=function(){return(n==null?void 0:n())||""},C=_.Pr(_.zM,A);
_.N1(function(){var b=D(),u=A(),Q=C();b.defaultSelected&&u!==""&&b.primaryButtonOverride&&P6J(b.optionId||"",u,b.primaryButtonOverride,Q)});
var h={};return _.g("ytm-option-item-renderer",{"on:click":l,class:_.DV(U,"ytm-option-item-renderer",(h["ytm-option-item-renderer--lp2-style"]=function(){return(y==null?void 0:y())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},h))},_.g("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.g("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var b=D(),u=A(),Q=C();Q=_.M(Q,h6$);return(Q?(Q==null?void 0:Q.selectedOptionId)||"":b.defaultSelected&&u!==""?(b==null?void 0:b.optionId)||"":"")===D().optionId},
name:("input"+_.o8(_.n9)).toString()})),_.g("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.g(_.uI,{data:function(){return D().titleBadge}},{badgeViewModel:function(b){return _.g(_.LK,{data:b.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.g(_.v,{cond:function(){return D().eyebrowText},
then:function(){return _.g("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.g(_.BO,{text:function(){return D().eyebrowText}}))}}),_.g("div",{class:"ytm-option-item-renderer__option-item-title"},_.g(_.BO,{text:function(){return D().title}})),_.g("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.g(_.BO,{text:function(){return D().subtitle}})),_.g(_.v,{cond:function(){return D().featureListData},
then:function(){return _.g("div",{class:"ytm-option-item-renderer__feature-list-data"},_.g(_.wt,{each:function(){return D().featureListData||[]}},function(b){var u,Q=(u=b.icon)==null?void 0:u.iconType;
a:switch(b.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":u="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":u="ytm-option-item-renderer__feature-list-icon-small";break a;default:u="ytm-option-item-renderer__feature-list-icon-default"}return _.g("div",{class:"ytm-option-item-renderer__feature-list"},_.g(_.C0,{icon:Q,className:u,active:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.g("div",{class:"ytm-option-item-renderer__feature-list-text"},_.g(_.BO,{text:b.text,
className:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.g("div",{class:"ytm-option-item-renderer__option-item-description"},_.g(_.BO,{text:function(){return D().description}}))))},"Lh");var Ms$=_.w(function(l){var D=l.data;var U=l.flowClassName;var n=l.flowStateEntityKey;var y=l.selectionStepStyle;return _.g("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.g("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.g("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.g(_.BO,{text:function(){return D().title}}),_.g(_.uI,{data:function(){return D().titleBadge}},{badgeViewModel:function(A){return _.g(_.LK,{data:A.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.g(_.v,{cond:function(){return D().subtitle},
then:function(){return _.g("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.g(_.BO,{text:function(){return D().subtitle}}))}}),_.g(_.v,{cond:function(){return D().featureListData},
then:function(A){return _.g("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.g(_.wt,{each:A},function(C){var h;return _.g("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.g(_.C0,{icon:(h=C.icon)==null?void 0:h.iconType,active:function(){return C.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(C.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.g("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.g(_.BO,{text:C.text,
className:function(){return C.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.g(_.v,{cond:function(){return D().secondaryTitle},
then:function(){return _.g("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.g(_.BO,{text:function(){return D().secondaryTitle}}))}}),_.g(_.wt,{each:function(){return D().sectionDisclaimers||[]}},function(A){return _.g("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.g(_.BO,{text:A}))})),_.g(_.uI,{data:function(){return D().optionItems}},{optionItemRenderer:function(A){return _.g("div",{class:"ytOptionSectionRendererOptionItem"},_.g(qBr,{data:A.data,
className:U,flowStateEntityKey:n,selectionStepStyle:y}))}}),_.g(_.v,{cond:function(){return D().offerText},
then:function(){return _.g("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.g(_.BO,{text:function(){return D().offerText}}))}}))},"Mh");
Ms$.idomCompat=!0;var Rf$=_.w(function(l){var D=l.data;var U=l.flowClassName;var n=l.flowStateEntityKey;l=l.isDesktop;var y=_.bP("div"),A=function(){var Q;return(Q=D().flowStateEntityKey)!=null?Q:n==null?void 0:n()},C=function(){return(A==null?void 0:A())||""},h=function(){return D().style},b=_.Pr(_.zM,C);
_.N1(function(){bSJ(D(),C(),b());setTimeout(function(){var Q;(Q=y.value)==null||Q.focus()})});
var u={};return _.g("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.DV("ytm-option-selection-flow-step-renderer",(u["ytm-option-selection-flow-step-renderer--desktop"]=l,u["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return D().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},u))},_.g("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"},
_.g("div",{el:y,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.g(_.BO,{text:function(){return D().header}})),_.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.g(_.BO,{text:function(){return D().subtitle}}))),_.g(_.uI,{data:function(){return D().optionItems||[]}},{optionItemRenderer:function(Q){return _.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.g(qBr,{data:Q.data,
className:U,flowStateEntityKey:A,selectionStepStyle:h}))},
optionSectionRenderer:function(Q){return _.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.g(Ms$,{data:Q.data,flowClassName:U,flowStateEntityKey:A,selectionStepStyle:h}))}}))},"Nh");
Rf$.idomCompat=!0;_.Tt(Rf$,"yt-option-selection-flow-step-renderer",{props:{data:_.C$,flowClassName:_.C$,flowStateEntityKey:_.C$,isDesktop:_.C$}});_.w1=_.w(function(l){var D=_.sl(l,{type:1,disablePadding:!1,disablePrimaryButton:!1}),U=D.data,n=D.type;l=D.disablePadding;var y=D.disablePrimaryButton,A=D.onClickPrimaryButton,C=function(){return U().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},h=function(){return{disabled:y(),
state:y()?"disabled":"active"}},b=function(){return U().leadingLabel||U().trailingLabel};
D={};return _.g("yt-panel-footer-view-model",{class:_.DV("yt-panel-footer-view-model",(D["yt-panel-footer-view-model--hide-divider"]=function(){return U().shouldHideDivider},D["yt-panel-footer-view-model--disable-padding"]=l,D))},_.g(_.v,{cond:b,
then:function(){var u={},Q={};return _.g("div",{class:_.DV("yt-panel-footer-view-model__text-row",(u["yt-panel-footer-view-model--row-bottom-padding"]=function(){var G=U();return!(!G.leadingLabel&&!G.trailingLabel||!G.primaryButton&&!G.secondaryButton)},u))},_.g(_.BO,{text:function(){return U().leadingLabel},
className:_.DV((Q["yt-panel-footer-view-model--text-padding"]=b,Q))}),_.g(_.BO,{text:function(){return U().trailingLabel}}))}}),_.g(_.v,{cond:C,
then:function(){var u={};return _.g("div",{class:"yt-panel-footer-view-model__button-stack"},_.g("div",{class:_.DV("yt-panel-footer-view-model__primary-button",(u["yt-panel-footer-view-model__button-stack--top-button"]=function(){return U().secondaryButton},u))},_.g(_.uI,{data:function(){return U().primaryButton}},{buttonViewModel:function(Q){return _.g(_.t9,{data:Q.data,
buttonOverrides:h,onClick:A})}})),_.g(_.uI,{data:function(){return U().secondaryButton}},{buttonViewModel:_.t9}))}}),_.g(_.v,{cond:function(){return!C()},
then:function(){var u={},Q={},G={};return _.g("div",{class:_.DV("yt-panel-footer-view-model__button-row",(u["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===n()},u))},_.g("div",{class:_.DV("yt-panel-footer-view-model__button-row--left-button",(Q["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===n()},Q["yt-panel-footer-view-model__button-row--hidden"]=function(){return!U().secondaryButton||0===n()},Q["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===n()},Q))},_.g(_.uI,{data:function(){return U().secondaryButton}},{buttonViewModel:_.t9})),_.g("div",{class:_.DV("yt-panel-footer-view-model__primary-button",(G["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===n()||1===n()},G["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===n()},G))},_.g(_.uI,{data:function(){return U().primaryButton}},{buttonViewModel:function(J){return _.g(_.t9,{data:J.data,
buttonOverrides:h,onClick:A})}})))}}))},"Oh");
_.w1.idomCompat=!0;_.Z7W=_.w(function(l){l=_.sl(l,{disablePadding:!1});var D=l.data,U=l.disablePadding;l=_.hJC(function(){return D().formId});
var n=l.submitForm,y=l.isValid,A=l.isSubmitting;return _.g("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.g(_.uI,{data:function(){return D().panelFooter}},{panelFooterViewModel:function(C){return _.g(_.w1,{data:C.data,
onClickPrimaryButton:function(){n()},
disablePrimaryButton:function(){return!y()||A()},
disablePadding:U})}}))},"Ph");_.Tt(_.Z7W,"yt-form-footer-view-model",{props:{data:_.C$,disablePadding:_.C$}});var efr=_.w(function(l){var D=_.q("enable_user_rating_web");return _.g("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.g(_.v,{cond:function(){var U;return(U=l.data())==null?void 0:U.image},
then:function(U){return _.g(_.rh,{data:U,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.g(_.BO,{text:function(){var U;
return(U=l.data())==null?void 0:U.title}})),_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.g(_.BO,{text:function(){var U;
return(U=l.data())==null?void 0:U.subtitle}})),_.g(_.v,{cond:function(){return!D},
then:function(){return _.g(_.uI,{data:function(){var U;return(U=l.data())==null?void 0:U.viewTipsButton}},{buttonViewModel:function(U){return _.g(_.t9,{data:U.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Qh");_.Tt(efr,"yt-contributor-zero-state-view-model",{props:{data:_.C$}});var mlw=_.w(function(l){var D=function(){var U;return(U=l.data())==null?void 0:U.image};
return _.g("yt-featured-content-item-view-model",{class:_.DV("ytFeaturedContentItemViewModelHost")},_.g("div",{class:_.DV(function(){return D()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.g("div",{class:function(){return D()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.g(_.v,{cond:D,
then:function(){return _.g("div",{class:"ytFeaturedContentItemViewModelImage"},_.g(_.uI,{data:function(){return l.data().image}},{themedImageViewModel:function(U){return _.g(Buq,{data:U.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.g(_.v,{cond:function(){var U;
return!D()&&((U=l.data())==null?void 0:U.iconName)},
then:function(){return _.g("div",{class:"ytFeaturedContentItemViewModelIcon"},_.g(_.C0,{icon:function(){return l.data().iconName}}))}}),_.g("div",{class:"ytFeaturedContentItemViewModelContent"},_.g(_.v,{cond:function(){var U;
return(U=l.data())==null?void 0:U.title},
then:function(){return _.g("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.g(_.BO,{text:function(){return l.data().title}}))}}),_.g(_.v,{cond:function(){var U;
return(U=l.data())==null?void 0:U.body},
then:function(){return _.g("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.g(_.BO,{text:function(){return l.data().body}}))}})))))},"Rh");var a1W=_.w(function(l){var D=function(){var y;return gxP((y=l.data())==null?void 0:y.titleFontSize)},U=function(){var y;
return u4T((y=l.data())==null?void 0:y.descriptionFontSize)},n=function(){var y;
return((y=l.data())==null?void 0:y.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.g("yt-landing-page-view-model",{class:_.DV("ytLandingPageViewModelHost",l.className)},_.g("div",{class:"ytLandingPageViewModelHeader"},_.g(_.v,{cond:function(){var y;return(y=l.data())==null?void 0:y.bannerImage},
then:function(y){return _.g("div",{class:"ytLandingPageViewModelHeaderImage"},_.g(_.uI,{data:function(){return y()}},{imageBannerViewModel:function(A){return _.g(_.bZ,{data:A.data,
isPositionRelative:!0})}}))}}),_.g(_.v,{cond:function(){var y;
return(y=l.data())==null?void 0:y.bannerAnimation},
then:function(y){return _.g(_.cO,{data:function(){var A=y();if(A==null?0:A.url){var C;A={path:(C=A==null?void 0:A.url)!=null?C:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(A==null?0:A.payload){var h;A={animationData:JSON.parse((h=A==null?void 0:A.payload)!=null?h:""),autoplay:!0,loop:!0,renderer:"svg"}}else A=void 0;return{animationConfig:A}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.g("div",{class:"ytLandingPageViewModelHeaderTitle"},_.g(_.v,{cond:function(){var y;
return(y=l.data())==null?void 0:y.title},
then:function(y){return _.g("div",{class:_.DV("ytLandingPageViewModelHeaderTitleContent",D)},_.g(_.BO,{text:function(){return y()}}))}}),_.g(_.v,{cond:function(){var y;
return(y=l.data())==null?void 0:y.description},
then:function(y){var A={};return _.g(_.BO,{className:_.DV("ytLandingPageViewModelHeaderTitleDescription",U,(A.ytLandingPageViewModelHeaderTitleDescriptionMargin=n,A)),text:function(){return y()}})}}))),_.g(_.v,{cond:function(){var y,A;
return(y=l.data())==null?void 0:(A=y.featuredContentList)==null?void 0:A.length},
then:function(){return _.g("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.g(_.uI,{data:function(){return l.data().featuredContentList}},{featuredContentItemViewModel:function(y){return _.g(mlw,{data:y.data})}}))}}),_.g(_.v,{cond:function(){var y,A;
return(y=l.data())==null?void 0:(A=y.expandableContentList)==null?void 0:A.length},
then:function(){return _.g("div",{class:"ytLandingPageViewModelFaqSection"},_.g(_.uI,{data:function(){return l.data().expandableContentList}},{faqEntryViewModel:function(y){return _.g("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.g(_.wDr,{data:y.data}))}}))}}),_.g("div",{class:"ytLandingPageViewModelFooter"},_.g(_.v,{cond:function(){var y;
return(y=l.data())==null?void 0:y.legalCopy},
then:function(y){return _.g("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.g(_.BO,{text:function(){return y()}}))}}),_.g(_.v,{cond:function(){var y;
return(y=l.data())==null?void 0:y.actions},
then:function(y){return _.g("div",null,_.g(_.uI,{data:function(){return y()}},{flexibleActionsViewModel:function(A){return _.g(_.Dq,{data:A.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Sh");_.Tt(_.w(function(l){return _.g("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.g("div",{class:"ytLpSectionGroupViewModelContainer"},_.g(_.uI,{data:function(){return l.data().sections}},{landingPageViewModel:function(D){return _.g(a1W,{data:D.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Th"),"yt-lp-section-group-view-model",{props:{data:_.C$}});var ts8=_.w(function(l){var D=l.data;var U=l.selectedKey;var n=l.onSelected;var y=l.groupName;var A=function(){return D().text},C=function(){return D().attributedText},h=function(){return D().subtext},b=function(){return D().attributedSubtext},u=_.g("div",{class:"ytRadioButtonItemViewModelLabel"},_.g(_.v,{cond:A,
then:function(){return _.g("div",null,A)}}),_.g(_.v,{cond:C,
then:function(){return _.g(_.BO,{text:C})}}),_.g(_.v,{cond:h,
then:function(){return _.g("div",{class:"ytRadioButtonItemViewModelSubText"},h)}}),_.g(_.v,{cond:b,
then:function(){return _.g("div",{class:"ytRadioButtonItemViewModelSubText"},_.g(_.BO,{text:b}))}})),Q=function(){if(C()){var J;
return(J=C())==null?void 0:J.content}return A()},G=function(){if(b()){var J;
return(J=b())==null?void 0:J.content}return h()};
l={};return _.g("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.g(_.Wv,{name:y,checked:function(){return!(U==null||!U()||D().key!==(U==null?void 0:U()))},
onChange:function(J){n==null||n(J.target,D(),y==null?void 0:y())},
labelRenderable:function(){return u},
ariaLabel:function(){return G()?Q()+", "+G():Q()},
className:_.DV((l.ytRadioButtonItemViewModelSubTitle=function(){return!!D().subtext},l))}))},"Uh");_.Xc8=_.w(function(l){var D=l.data;var U=function(){var n;return _.mr((n=D())==null?void 0:n.rendererContext)};
l={};return _.g("content-list-item-view-model",{el:_.fe(_.aT(function(){return D().rendererContext})),
class:_.DV("ytContentListItemViewModelHost",(l.ytContentListItemViewModelTappable=U,l)),role:function(){return U()?"listitem":void 0},
tabindex:function(){return U()?0:void 0}},_.g("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.g("div",{class:"ytContentListItemViewModelImageContainer"},_.g(_.v,{cond:function(){return D().image},
then:function(n){return _.g(_.rh,{data:n,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.g(_.uI,{data:function(){var n;
return(n=D())==null?void 0:n.avatar}},{avatarViewModel:_.iX})),_.g("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.g("div",{class:_.DV("ytContentListItemViewModelTitle",function(){a:{switch(D().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var n="ytContentListItemViewModelProminentTitle";
break a}n=void 0}return n})},_.g(_.BO,{text:function(){return D().title}})),_.g("div",{class:"ytContentListItemViewModelMetadata"},_.g(_.uI,{data:function(){return D().metadata}},{contentMetadataViewModel:function(n){return _.g(_.kd,{data:n.data,
layout:1})}})))),_.g("div",{class:"ytContentListItemViewModelActionButton"},_.g(_.uI,{data:function(){var n;
return(n=D())==null?void 0:n.actionButton}},{buttonViewModel:_.t9,
toggleButtonViewModel:_.s0})))},"Vh");var SB8=_.w(function(l){var D=l.data,U=function(){var y;return(y=D())==null?void 0:y.description},n=function(){var y;
return(y=D())==null?void 0:y.title};
return _.g("ytfc-youth-basic-section-header-view-model",{class:_.DV("ytfcYouthBasicSectionHeaderViewModelHost",l.className)},_.g("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.g(_.uI,{data:function(){var y;return(y=D())==null?void 0:y.avatar}},{avatarViewModel:_.iX}),_.g(_.v,{cond:function(){var y;
return _.pq((y=D())==null?void 0:y.themedImage)},
then:function(y){return _.g(_.rh,{data:y,alt:function(){var A,C;return(C=(A=n())==null?void 0:A.content)!=null?C:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.g("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.g(_.v,{cond:n,
then:function(){return _.g(_.BO,{text:n,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.g("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.g(_.uI,{data:function(){var y;
return(y=D())==null?void 0:y.bottomBadge}},{badgeViewModel:function(y){return _.g("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.g(_.LK,{data:y.data}))}}),_.g(_.v,{cond:U,
then:function(){return _.g(_.BO,{text:U,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Wh");var k3H=_.w(function(l){var D=l.data;return _.g("ytfc-youth-section-body-view-model",{class:_.DV("ytfcYouthSectionBodyViewModelHost",l.className)},_.g(_.uI,{data:function(){var U;return(U=D())==null?void 0:U.topContent}},{avatarStackViewModel:function(U){return _.g(_.DD,{data:U.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.g(_.BO,{text:function(){var U;
return(U=D())==null?void 0:U.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Xh");var dl2=_.w(function(l){var D=_.B(_.aw(!1,void 0,"SrK51e")),U=D.next().value,n=D.next().value,y=function(){return l.data().inlineExpansionEntityKey},A=_.Pr(k7H,y),C=function(){if(l.isSelected!==void 0)return l.isSelected();
if(y()){var b;return(b=A())==null?void 0:b.expanded}return U()};
D={};var h={};return _.g("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.n0(function(){l.isSelected!==void 0||y()||n(!U())})},_.g("div",{class:"ytInlineExpanderViewModelHeader"},_.g(_.uI,{data:function(){return l.data().headerContent}},{youthBasicSectionHeaderViewModel:SB8}),_.g("div",{class:_.DV("ytInlineExpanderViewModelButton",(D.ytInlineExpanderViewModelButtonExpanded=C,D))},_.g(_.ey,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:C(),accessibilityLabel:C()?_.C3("SHOW_LESS",void 0,"Show Less"):_.C3("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.g("div",{class:_.DV("ytInlineExpanderViewModelBody",(h.ytInlineExpanderViewModelBodyExpanded=C,h)),"aria-hidden":function(){return!C()}},_.g("div",{class:"ytInlineExpanderViewModelBodyContent"},_.g(_.uI,{data:function(){return l.data().bodyContent}},{youthSectionBodyViewModel:k3H}))))},"Yh");var KFH=new _.A7("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.c4W=_.w(function(l){var D=function(){return l.data().background},U=function(){return l.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},n=function(){return l.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},y=_.Jc().resolve(_.G8(KFH)),A={};
return _.g("yt-card-view-model",{el:_.fe(_.aT(function(){return l.data().rendererContext})),
class:_.DV("ytCardViewModelHost",l.className,(A.ytCardViewModelClickable=function(){return _.eq(l.data().rendererContext)},A))},_.g(_.dR,{contentId:function(){return l.data().contentId}},function(){var C={};
return _.g("div",{class:_.DV("ytCardViewModelCardViewModelInner",function(){var h;return vx$(l.data().cardStyle,(h=l.isSelected)==null?void 0:h.call(l))},function(){if(l.isSelected===void 0){var h;
a:{switch((h=l.data().cardState)==null?void 0:h.selectionState){case "CARD_SELECTION_STATE_SELECTED":h="ytCardViewModelSelected";break a}h=void 0}return h}})},_.g(_.uI,{data:D},{cinematicContainerViewModel:function(h){return _.g(_.ONh,{data:h.data})}}),_.g("div",{class:"ytCardViewModelContentWrapper"},_.g(_.v,{cond:function(){return!U()},
then:function(){var h={},b={};return _.g("div",{class:"ytCardViewModelTopContentContainer"},_.g("div",{class:_.DV("ytCardViewModelTopContent",(h.ytCardViewModelInnerPadding=function(){return!l.data().disableTopContentPadding&&l.data().topContent},h))},_.g(_.uI,{data:function(){return l.data().topContent}},{contentListItemViewModel:function(u){return _.g(_.Xc8,{data:u.data})},
basicContentViewModel:_.Pez,linearLayoutViewModel:_.C9})),_.g("div",{class:_.DV("ytCardViewModelInlineTrailingAction",(b.ytCardViewModelInlineCenterTrailingAction=n,b.ytCardViewModelInlineTrailingActionMargin=function(){return l.data().trailingAction},b))},_.g(_.uI,{data:function(){return l.data().trailingAction}},{buttonViewModel:function(u){return _.g(_.t9,{data:u.data})}})))}}),_.g("div",{class:_.DV((C.ytCardViewModelInnerPadding=function(){return!l.data().disableBodyContentPadding&&l.data().bodyContent},
C))},_.g(_.uI,{data:function(){return l.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.pAP,
contentListItemViewModel:_.Xc8,descriptionPreviewViewModel:_.Fn,inlineExpanderViewModel:function(h){return _.g(dl2,{data:h.data,isSelected:l.isSelected})},
linearLayoutViewModel:_.C9,listItemViewModel:_.Bv},y&&{contentSectionViewModel:y})))),_.g(_.v,{cond:function(){return U()},
then:function(){return _.g("div",{class:"ytCardViewModelOverlayTrailingAction"},_.g(_.uI,{data:function(){return l.data().trailingAction}},{buttonViewModel:function(h){return _.g(_.t9,{data:h.data})}}))}}))}))},"Zh");var pcH=_.w(function(l){var D=l.data,U=l.onSelected,n=l.selectedKey,y=l.groupName;l=l.className;var A=_.B(_.aw(!1,void 0,"mDtSad")),C=A.next().value,h=A.next().value,b=function(){if(n!==void 0){var u=n();return!(!u||D().key!==u)}return C()};
A=_.n0(function(u){U?U(u.currentTarget,D(),y==null?void 0:y()):h(!C())});
return _.g("yt-selectable-item-view-model",{class:_.DV("ytSelectableItemViewModelHost",l,"ytSelectableItemViewModelContainer"),"on:click":A,"prop:checked":b},_.g(_.uI,{data:function(){return D().content}},{cardViewModel:function(u){return _.g(_.c4W,{data:u.data,
isSelected:b})}}))},"$h");_.xl8=_.w(function(l){var D=l.data;var U=l.onSelected;var n=l.selectedKey;var y=l.groupName;var A=function(){return(y==null?void 0:y())||D().key};
return _.g("yt-radio-button-group-view-model",{class:_.DV("ytRadioButtonGroupViewModelHost",l.className)},_.g("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.g(_.uI,{data:function(){return D().radioButtons}},{radioButtonItemViewModel:function(C){return _.g(ts8,{data:C.data,
onSelected:U,selectedKey:n,groupName:A})},
selectableItemViewModel:function(C){return _.g(pcH,{data:C.data,onSelected:U,selectedKey:n,groupName:A})}})))},"ai");var jJ2=_.w(function(l){_.N1(function(){if(l.controlledMode()&&l.data().defaultSelected)_.EU(Error("ak"));else{var A;!l.controlledMode()&&((A=l.selected)==null?0:A.call(l))&&_.EU(Error("bk"))}});
var D=_.B(_.WK(function(){if(!l.controlledMode())return l.data().defaultSelected})),U=D.next().value,n=D.next().value,y=function(){if(!l.controlledMode())return U();
var A;return(A=l.selected)==null?void 0:A.call(l)};
return _.g("yt-checkbox-item-view-model",{class:_.DV("ytCheckboxItemViewModelHost",l.className)},_.g(_.Bv,{data:function(){var A=l.data(),C=y();return{title:A.text,subtitle:A.subtext,superlabel:A.superlabel,isSelected:!!C,isDisabled:A.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!l.controlledMode()&&n(!U());var A,C;(C=l.onTap)==null||C.call(l,!!y(),l.data(),(A=l.groupName)==null?void 0:A.call(l))},
isCompact:l.isCompact}))},"bi");var FFw=_.w(function(l){var D=l.data;var U=l.controlledMode;var n=l.selectedKeys;var y=l.onItemTap;var A=l.groupName;var C=function(){return(A==null?void 0:A())||D().key};
_.N1(function(){U()&&D().defaultSelectedKeys?_.EU(Error("ck")):!U()&&(n==null?0:n())&&_.EU(Error("dk"))});
l=_.B(_.WK(function(){if(!U())return D().defaultSelectedKeys}));
var h=l.next().value,b=l.next().value,u=function(Q,G,J){Q=[];!U()&&G.key&&(Q=QAW(G.key,h()||[]),b(Q));y==null||y(G,Q,J)};
return _.g("yt-checkbox-group-view-model",{class:_.DV("ytCheckboxGroupViewModelHost")},_.g("fieldset",{class:_.DV("ytCheckboxGroupViewModelFieldset")},_.g(_.uI,{data:function(){return D().checkboxes}},{checkboxItemViewModel:function(Q){var G=Q.data;
return _.g(jJ2,{data:G,controlledMode:!0,selected:function(){var J=U()?(n==null?void 0:n())||[]:h()||[],L=G().key;return L?J.includes(L):!1},
onTap:u,groupName:C})}})))},"ci");var r1=_.w(function(l){var D=_.Pr(GsW,_.NQ(function(){var h;return(h=l.data())==null?void 0:h.noteFeedEntityKey},"")),U=_.Pr(pd5,_.NQ(function(){var h;
return(h=l.data())==null?void 0:h.userRatingEntityKey},"")),n=_.q("enable_user_rating_web"),y=function(){var h,b,u;
return((h=D())==null?0:h.contributorNote)?(b=D())==null?void 0:b.contributorNote:(u=l.data())==null?void 0:u.existingNote},A=function(){var h,b;
return!!U()&&!!JO5((h=U())==null?void 0:h.helpfulnessValue,(b=l.data())==null?void 0:b.noteData)};
if(n){var C={};return _.g("yt-note-view-model",{class:_.DV("ytNoteViewModelHostUserRating",(C.ytNoteViewModelHostUserRatingPublishedNote=function(){var h,b,u,Q;return((h=l.data())==null?void 0:(b=h.noteData)==null?void 0:b.isPublished)&&!((u=l.data())==null?0:(Q=u.noteData)==null?0:Q.isUserRatingForm)},C))},_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.g(_.v,{cond:function(){var h,b;
return(h=l.data())==null?void 0:(b=h.noteData)==null?void 0:b.isPinned},
then:function(){return _.g(_.C0,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.g(_.v,{cond:function(){var h,b;return(h=l.data())==null?void 0:(b=h.noteData)==null?void 0:b.isPublished},
then:function(){return _.g(_.C0,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.g(_.uI,{data:function(){var h;
return(h=l.data())==null?void 0:h.metadata}},{contentMetadataViewModel:_.kd}),_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var h,b;
return(b=_.M((h=l.data())==null?void 0:h.metadata,_.QH8))==null?void 0:b.delimiter}),_.g(_.BO,{text:function(){var h;
return(h=y())==null?void 0:h.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.g(_.v,{cond:function(){var h,b;return!((h=l.data())==null?0:(b=h.noteData)==null?0:b.isUserRatingForm)},
then:function(){return _.g(_.uI,{data:function(){var h,b,u,Q,G,J,L,R=!!((h=l.data())==null?0:(b=h.noteData)==null?0:b.isPinned);h=A();b=(u=l.data())==null?void 0:u.noteData;u=(Q=D())==null?void 0:(G=Q.contributorNote)==null?void 0:G.deleteAction;Q=(J=l.data())==null?void 0:J.overflowButtonNoteWithRatingOnTapOverride;J=(L=l.data())==null?void 0:L.overflowButton;var a;L=(a=_.M(J,_.CM))==null?void 0:a.accessibilityText;return R?Lw2(b,u,L):h?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:Q,accessibilityText:L}}:J}},{buttonViewModel:function(h){return _.g(_.t9,{data:h.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.g("div",{class:"ytNoteViewModelNoteContent"},_.g(_.BO,{text:function(){var h;
return(h=y())==null?void 0:h.text}})),_.g(_.v,{cond:function(){var h,b,u,Q;
return!((h=l.data())==null?0:(b=h.noteData)==null?0:b.isPinned)&&!((u=l.data())==null?0:(Q=u.noteData)==null?0:Q.isUserRatingForm)},
then:function(){return _.g(_.v,{cond:A,then:function(){return _.g("div",{class:"ytNoteViewModelUserRatingContainer"},_.g(_.BO,{text:function(){var h,b;return JO5((h=U())==null?void 0:h.helpfulnessValue,(b=l.data())==null?void 0:b.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.g(_.uI,{data:function(){var h;return(h=l.data())==null?void 0:h.userRatingButton}},{buttonViewModel:function(h){return _.g(_.t9,{data:h.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.g(_.v,{cond:function(){var h,b,u,Q;
return!((h=l.data())==null?0:(b=h.noteData)==null?0:b.ignoreDivider)&&!((u=l.data())==null?0:(Q=u.noteData)==null?0:Q.isUserRatingForm)},
then:function(){return _.g("div",{class:"ytNoteViewModelDivider"},_.g(_.uI,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(h){return _.g(_.UCm,{data:h.data})}}))}}))}return _.g("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.g(_.v,{cond:function(){var h,b;return(h=l.data())==null?void 0:(b=h.noteData)==null?void 0:b.isPinned},
then:function(){return _.g(_.C0,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.g(_.v,{cond:function(){var h,b;return(h=l.data())==null?void 0:(b=h.noteData)==null?void 0:b.isPublished},
then:function(){return _.g(_.C0,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.g(_.v,{cond:function(){return n},
then:function(){return _.g(_.uI,{data:function(){var h;return(h=l.data())==null?void 0:h.metadata}},{contentMetadataViewModel:function(h){return _.g(_.kd,{data:h.data})}})}}),_.g(_.BO,{text:function(){var h,b;
return(h=l.data())==null?void 0:(b=h.noteData)==null?void 0:b.headerText}}),_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.g(_.BO,{text:function(){var h,b;
return(h=l.data())==null?void 0:(b=h.noteData)==null?void 0:b.delimiter}})),_.g(_.BO,{text:function(){var h,b;
return(h=D())==null?void 0:(b=h.contributorNote)==null?void 0:b.publishedTimeText}})),_.g(_.uI,{data:function(){var h,b,u;
return Lw2((h=l.data())==null?void 0:h.noteData,(b=D())==null?void 0:(u=b.contributorNote)==null?void 0:u.deleteAction)}},{buttonViewModel:function(h){return _.g(_.t9,{data:h.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.g("div",{class:"ytNoteViewModelNoteContent"},_.g(_.BO,{text:function(){var h,b;
return(h=D())==null?void 0:(b=h.contributorNote)==null?void 0:b.text}})))},"di");
r1.idomCompat=!0;_.Tt(_.w(function(l){var D=_.NQ(function(){var c;return(c=l.data())==null?void 0:c.flowStateEntityKey},""),U=_.Pr(_.zM,D),n=_.Pr(GsW,_.NQ(function(){var c;
return(c=l.data())==null?void 0:c.noteFeedEntityKey},"")),y=_.B(_.WK(function(){var c;
return(c=_.M(l.data().helpfulnessValue,_.CJ))==null?void 0:c.defaultSelectedKey})),A=y.next().value,C=y.next().value;
y=_.B(_.WK(function(){var c,N,z;return(z=_.M((c=_.M(l.data().helpfulnessValue,_.CJ))==null?void 0:(N=c.radioButtons)==null?void 0:N.find(function(f){var I;return((I=_.M(f,HIJ))==null?void 0:I.key)===A()}),HIJ))==null?void 0:z.value}));
var h=y.next().value,b=y.next().value;y=_.B(_.WK(function(){var c;return(c=_.M(l.data().helpfulReasons,I58))==null?void 0:c.defaultSelectedKeys}));
var u=y.next().value,Q=y.next().value;y=_.B(_.WK(function(){var c;return(c=_.M(l.data().notHelpfulReasons,I58))==null?void 0:c.defaultSelectedKeys}));
var G=y.next().value,J=y.next().value,L=function(c,N){C(N.key);b(N.value);Q([]);J([])},R=function(){var c,N;
return((c=h())==null?void 0:c.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((N=h())==null?void 0:N.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},a=function(){var c,N;
return((c=h())==null?void 0:c.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((N=h())==null?void 0:N.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},S=function(c){q2$(c.key,u,Q)},d=function(c){q2$(c.key,G,J)};
_.N1(function(){var c,N,z;KEJ((c=l.data())==null?void 0:(N=c.userRatingFormSchema)==null?void 0:N.id,{isValid:function(){return!!A()},
formData:function(){var f=h(),I=R6$(u(),_.M(l.data().helpfulReasons,I58)),iG=R6$(G(),_.M(l.data().notHelpfulReasons,I58));f={helpfulnessValue:f==null?void 0:f.noteHelpfulnessValue};if(I){f.helpfulReasons=[];I=_.B(I);for(var CC=I.next();!CC.done;CC=I.next()){CC=CC.value;var vo=void 0;if((vo=CC)==null?0:vo.noteHelpfulReason)vo=void 0,f.helpfulReasons.push((vo=CC)==null?void 0:vo.noteHelpfulReason)}}if(iG)for(f.notHelpfulReasons=[],iG=_.B(iG),I=iG.next();!I.done;I=iG.next())if(I=I.value,CC=void 0,(CC=
I)==null?0:CC.noteNotHelpfulReason)CC=void 0,f.notHelpfulReasons.push((CC=I)==null?void 0:CC.noteNotHelpfulReason);return{userRatingFormData:f}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(z=_.M(U(),jS2))==null?void 0:z.submitFormParams},onSubmitResult:function(){var f,I=(f=_.M(U(),jS2))==null?void 0:f.userRatingEntityKey,iG;f={key:I,helpfulnessValue:(iG=h())==null?void 0:iG.noteHelpfulnessValue};I&&_.$u(_.vr("contextNoteUserRatingEntityPayload",I,f));var CC;I=(CC=l.data())==null?void 0:CC.viewNoteFlowStepId;var vo;if((vo=n())==null||!vo.contributorNote){var td;I=(td=l.data())==null?void 0:td.zeroStateFlowStepId}(CC=
Object.assign({},U()))&&I&&(CC.currentStepId=I,CC.stepIdStack=[I],_.$u(_.vr("flowStateEntity",D(),CC)));var GN;(CC=(GN=l.data())==null?void 0:GN.ratingSubmittedSnackbarCommand)&&_.dh(CC)},
disableDuringSubmission:!0})});
return _.g("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.g(_.uI,{data:function(){var c=_.M(U(),jS2);if(c){var N;var z={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:c==null?void 0:(N=c.note)==null?void 0:N.headerText}]}],delimiter:"\u2022"}},existingNote:c.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else z=void 0;return z}},{noteViewModel:function(c){return _.g("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.g(r1,{data:c.data}))}}),_.g(_.uI,{data:function(){var c;
return(c=l.data())==null?void 0:c.helpfulnessValue}},{radioButtonGroupViewModel:function(c){return _.g("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.g(_.xl8,{data:c.data,
onSelected:L,selectedKey:A}))}}),_.g(_.v,{cond:R,
then:function(){return _.g("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.g("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.g(_.BO,{text:function(){var c;return(c=l.data())==null?void 0:c.helpfulReasonQuestion}})),_.g(_.uI,{data:function(){var c;
return(c=l.data())==null?void 0:c.helpfulReasons}},{checkboxGroupViewModel:function(c){return _.g(FFw,{data:c.data,
onItemTap:S,selectedKeys:u,controlledMode:!0})}}))}}),_.g(_.v,{cond:a,
then:function(){return _.g("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.g("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.g(_.BO,{text:function(){var c;return(c=l.data())==null?void 0:c.notHelpfulReasonQuestion}})),_.g(_.uI,{data:function(){var c;
return(c=l.data())==null?void 0:c.notHelpfulReasons}},{checkboxGroupViewModel:function(c){return _.g(FFw,{data:c.data,
onItemTap:d,selectedKeys:G,controlledMode:!0})}}))}}),_.g(_.v,{cond:function(){return!R()&&!a()},
then:function(){return _.g(_.uI,{data:function(){var c;return(c=l.data())==null?void 0:c.helpfulNoteFeatures}},{alertBannerViewModel:function(c){return _.g("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.g(_.Ceh,{data:c.data}))}})}}))},"ei"),"yt-note-user-rating-view-model",{props:{data:_.C$}});_.Tt(r1,"yt-note-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=_.Pr(GsW,_.NQ(function(){var U;return(U=l.data())==null?void 0:U.noteFeedEntityKey},""));
return _.g("yt-notes-wrapper-view-model",{class:_.DV("ytNotesWrapperViewModelHost")},_.g(_.v,{cond:function(){var U,n,y;return!((U=l.data())==null||!U.existingNotes)||!((n=l.data())==null||!n.currentNote)&&!((y=D())==null||!y.contributorNote)},
then:function(){return _.g(_.GZ,null,_.g(_.uI,{data:function(){var U,n,y,A;return((n=_.M((U=l.data())==null?void 0:U.currentNote,FQT))==null?0:(y=n.noteData)==null?0:y.isPublished)?(A=l.data())==null?void 0:A.currentNote:void 0}},{noteViewModel:function(U){return _.g(r1,{data:U.data})}}),_.g(_.uI,{data:function(){var U;
return(U=l.data())==null?void 0:U.existingNotes}},{noteViewModel:function(U){var n=U.data;
return _.g(_.v,{cond:function(){var y,A;return(y=n())==null?void 0:(A=y.noteData)==null?void 0:A.isPublished},
then:function(){return _.g(r1,{data:n})}})}}),_.g(_.uI,{data:function(){var U,n,y,A,C;
return((n=_.M((U=l.data())==null?void 0:U.currentNote,FQT))==null?0:(y=n.noteData)==null?0:y.isPublished)||(A=D())==null||!A.contributorNote?void 0:(C=l.data())==null?void 0:C.currentNote}},{noteViewModel:function(U){return _.g(r1,{data:U.data})}}),_.g(_.uI,{data:function(){var U;
return(U=l.data())==null?void 0:U.existingNotes}},{noteViewModel:function(U){var n=U.data;
return _.g(_.v,{cond:function(){var y,A;return!((y=n())==null?0:(A=y.noteData)==null?0:A.isPublished)},
then:function(){return _.g(r1,{data:n})}})}}))},
else:function(){return _.g(_.uI,{data:function(){var U;return(U=l.data())==null?void 0:U.zeroStateData}},{contributorZeroStateViewModel:efr})}}))},"fi"),"yt-notes-wrapper-view-model",{props:{data:_.C$}});var z1=_.w(function(l){var D=_.sl(l,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,timePickerData:void 0}),U=D.label,n=D.text,y=D.placeholder,A=D.hint;l=D.rows;var C=D.overflowStyle,h=D.outline,b=D.disabled,u=D.disableNewLines,Q=D.characterLimit,G=D.validation,J=D.onInput,L=D.timePickerData,R=_.bP("textarea");D=_.B(_.WK(function(){return n()}));
var a=D.next().value,S=D.next().value;D=_.B(_.aw(!1,void 0,"q1mZCd"));var d=D.next().value,c=D.next().value,N=function(){c(!0)},z=function(){c(!1)};
_.N1(function(){var zN=R.value,Z7=C(),Lm=a();Z7==="expand-vertically"&&Lm&&ZST(zN);R.value.addEventListener("focusin",N);R.value.addEventListener("focusout",z)});
_.NV(function(){R.value.removeEventListener("focusin",N);R.value.removeEventListener("focusout",z)});
var f=function(){var zN;return(zN=G())==null?void 0:zN.validate(a())},I=function(){return Q()&&!f()&&a().length>Q().maxChars},iG=function(){return!!f()||I()};
D=_.n0(function(zN){if(!zN.currentTarget)return!1;zN=zN.currentTarget;S(zN.value);C()==="expand-vertically"&&ZST(zN);J==null||J(zN.value);return!0});
var CC=_.n0(function(zN){u()&&zN.key==="Enter"&&zN.preventDefault();return!1}),vo=_.n0(function(){R.value.focus()}),td=function(){return y()||U()},GN={},Ms={},j3={},wl={};
return _.g("textarea-shape",{class:_.DV("ytStandardsTextareaShapeHost",(GN.ytStandardsTextareaShapeTimePicker=function(){var zN;return(zN=L())==null?void 0:zN.useTimePickerStyles},GN))},_.g("div",{class:_.DV("ytStandardsTextareaShapeTextareaContainer",(Ms.ytStandardsTextareaShapeTextareaContainerOutline=h,Ms.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=b,Ms.ytStandardsTextareaShapeTextareaContainerOutlineError=iG,Ms)),
"on:click":vo},_.g("label",{class:_.DV("ytStandardsTextareaShapeLabel",(j3.ytStandardsTextareaShapeLabelFocused=d,j3.ytStandardsTextareaShapeLabelDisabled=b,j3.ytStandardsTextareaShapeLabelError=function(){return iG()&&!b()},j3.ytStandardsTextareaShapeLabelHidden=function(){return!d()&&!a()&&!!td()},j3))},U),_.g("div",{class:_.DV("ytStandardsTextareaShapePlaceholder",(wl.ytStandardsTextareaShapePlaceholderVisible=function(){return!d()&&!a()},wl)),
"aria-hidden":"true"},td),_.g("textarea",{el:R,class:"ytStandardsTextareaShapeTextarea",rows:l,disabled:b,placeholder:td,"on:input":D,"on:keydown":CC},a)),_.g(_.v,{cond:function(){return A()&&!iG()},
then:function(){var zN={};return _.g("div",{class:_.DV("ytStandardsTextareaShapeHint",(zN.ytStandardsTextareaShapeHintDisabled=b,zN))},_.g("div",{class:"ytStandardsTextareaShapeHintHintMessage"},A))}}),_.g(_.v,{cond:f,
then:function(){return _.g(oBH,{disabled:b},_.g("div",{class:"ytStandardsTextareaShapeErrorMessage"},f))}}),_.g(_.v,{cond:Q,
then:function(zN){return _.g(_.v,{cond:I,then:function(){return _.g(oBH,{disabled:b},_.g("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return zN().errorMessage}),_.g("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return a().length+"/"+zN().maxChars}))}})}}))},"gi");
z1.idomCompat={callbacks:{onInput:!0}};var oBH=_.w(function(l){var D={};return _.g("div",{class:_.DV("ytStandardsTextareaShapeError",(D.ytStandardsTextareaShapeErrorDisabled=l.disabled,D)),role:"alert"},_.g(_.C0,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),l.children)},"hi");_.wc$=_.w(function(l){var D=l.data;return _.g("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.g(z1,{text:l.text,label:function(){var U;return(U=D().contentProperties)==null?void 0:U.labelText},
placeholder:function(){var U;return(U=D().contentProperties)==null?void 0:U.placeholderText},
hint:function(){var U;return(U=D().contentProperties)==null?void 0:U.hintText},
outline:function(){var U;return!((U=D().displayProperties)==null?0:U.hideBorder)},
overflowStyle:function(){var U;return((U=D().displayProperties)==null?0:U.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:l.disabled,disableNewLines:function(){var U;return(U=D().displayProperties)==null?void 0:U.disableNewLines},
onInput:l.onInput,characterLimit:l.characterLimit,validation:l.validation,rows:function(){var U;return(U=D().displayProperties)==null?void 0:U.rows}}))},"ii");_.r48=_.w(function(l){var D=l.data;return _.g("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.g(z1,{text:l.text,label:function(){var U;return(U=D().contentProperties)==null?void 0:U.labelText},
placeholder:function(){var U;return(U=D().contentProperties)==null?void 0:U.placeholderText},
hint:function(){var U;return(U=D().contentProperties)==null?void 0:U.hintText},
outline:function(){var U;return!((U=D().displayProperties)==null?0:U.hideBorder)},
overflowStyle:function(){var U;return((U=D().displayProperties)==null?0:U.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var U;return(U=D().displayProperties)==null?void 0:U.disableNewLines},
onInput:l.onInput,characterLimit:l.characterLimit,validation:l.validation,rows:function(){var U;return(U=D().displayProperties)==null?void 0:U.rows}}))},"ji");var zfr=_.w(function(l){var D=_.B(_.WK(function(){var vo,td;return((vo=l.data().structuredContextNoteFormSchema)==null?0:(td=vo.initialValues)==null?0:td.noteBody)?l.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),U=D.next().value,n=D.next().value;
D=_.B(_.WK(function(){l.data();return!1}));
var y=D.next().value,A=D.next().value;D=_.B(_.WK(function(){l.data();return!1}));
var C=D.next().value,h=D.next().value;D=_.B(_.WK(function(){var vo,td;return((vo=l.data().structuredContextNoteFormSchema)==null?0:(td=vo.initialValues)==null?0:td.timestamp)?l.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var b=D.next().value,u=D.next().value;D=_.B(_.WK(function(){l.data();return!1}));
var Q=D.next().value,G=D.next().value;D=_.B(_.WK(function(){var vo,td;return((vo=l.data().structuredContextNoteFormSchema)==null?0:(td=vo.initialValues)==null?0:td.sources)?[l.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var J=D.next().value,L=D.next().value;D=_.B(_.WK(function(){l.data();return!1}));
var R=D.next().value,a=D.next().value;D=_.B(_.WK(function(){return!1}));
var S=D.next().value,d=D.next().value;_.N1(function(){var vo;_.cHq((vo=l.data().structuredContextNoteFormSchema)==null?void 0:vo.id,{isSubmitting:S,onSubmit:function(){d(!0);var td=Kw5(U(),b(),J(),l.data()),GN=_.Jc().resolve(_.qK);td&&GN&&GN.resolveCommand(td,{commandController:{onSuccess:function(){d(!1)}}})},
isValid:function(){return y()&&!C()&&!Q()&&!R()}})});
var c=function(vo){if(vo!==void 0&&(n(vo),!y()&&vo.length>0&&A(!0),y())){var td=aBJ(l.data());if(td){var GN=td.minLength;td=td.maxLength;GN&&vo.length<GN?h(!0):td&&vo.length>td?h(!0):h(!1)}}},N=function(vo){if(vo!==void 0){u(vo);
if(vo.length>0){var td,GN,Ms,j3,wl=XT8((td=l.data())==null?void 0:(GN=td.structuredContextNoteFormSchema)==null?void 0:(Ms=GN.fieldSchemas)==null?void 0:(j3=Ms.timestamp)==null?void 0:j3.validationSchema);if(wl&&(td=wl.regex)&&!(new RegExp(td)).test(vo)){G(!0);return}}G(!1)}},z=function(vo){if(vo!==void 0){var td=vo.split(/[ \n]/).map(function(GN){return GN.trim()});
L(td);if(vo.length>0)for(vo=_.B(td),td=vo.next();!td.done;td=vo.next())if(!dE8(td.value)){a(!0);return}a(!1)}},f=function(){return{validate:function(vo){if(y()){var td=aBJ(l.data());
if(td){var GN=td.minLength;td=td.translations;if(GN&&vo.length<GN)return td==null?void 0:td.minLengthErrorMessage}}}}},I=function(){var vo=aBJ(l.data()),td=vo==null?void 0:vo.maxLength,GN;
vo=vo==null?void 0:(GN=vo.translations)==null?void 0:GN.maxLengthErrorMessage;if(td&&vo)return{maxChars:td,errorMessage:vo}},iG=function(){return{validate:function(vo){if(vo){var td,GN,Ms,j3,wl=XT8((td=l.data())==null?void 0:(GN=td.structuredContextNoteFormSchema)==null?void 0:(Ms=GN.fieldSchemas)==null?void 0:(j3=Ms.timestamp)==null?void 0:j3.validationSchema);
if(wl&&(td=wl.regex,wl=wl.translations,td&&!(new RegExp(td)).test(vo)))return wl==null?void 0:wl.regexErrorMessage}}}},CC=function(){return{validate:function(vo){if(vo){var td,GN,Ms,j3,wl=ksw((td=l.data())==null?void 0:(GN=td.structuredContextNoteFormSchema)==null?void 0:(Ms=GN.fieldSchemas)==null?void 0:(j3=Ms.sources)==null?void 0:j3.validationSchema);
if(wl&&(td=wl.translations,td==null?0:td.selectedErrorMessage))for(vo=vo.split(/[ \n]/).map(function(zN){return zN.trim()}),vo=_.B(vo),GN=vo.next();!GN.done;GN=vo.next())if(!dE8(GN.value))return vo=void 0,(vo=td)==null?void 0:vo.selectedErrorMessage}}}};
return _.g("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.uI,{data:function(){var vo;return(vo=l.data())==null?void 0:vo.noteContents}},{textFormFieldViewModel:function(vo){return _.g(_.r48,{data:vo.data,
onInput:c,validation:f,characterLimit:I})},
textFieldViewModel:function(vo){return _.g(_.wc$,{data:vo.data,onInput:c,validation:f,characterLimit:I})}})),_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.uI,{data:function(){var vo;
return(vo=l.data())==null?void 0:vo.noteTimestamp}},{textFormFieldViewModel:function(vo){return _.g(_.r48,{data:vo.data,
onInput:N,validation:iG})},
textFieldViewModel:function(vo){return _.g(_.wc$,{data:vo.data,onInput:N,validation:iG})}})),_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.uI,{data:function(){var vo;
return(vo=l.data())==null?void 0:vo.noteSources}},{textFormFieldViewModel:function(vo){return _.g(_.r48,{data:vo.data,
onInput:z,validation:CC})},
textFieldViewModel:function(vo){return _.g(_.wc$,{data:vo.data,onInput:z,validation:CC})}})))},"ki");
zfr.idomCompat=!0;_.Tt(zfr,"yt-structured-context-note-view-model",{props:{data:_.C$}});var f1J=_.w(function(l){var D=_.B(_.WK(function(){var A;if((A=l.controlled)==null?0:A.call(l))return[];var C;return(((C=l.data())==null?void 0:C.chips)||[]).map(function(h){h=_.M(h,_.hx);if(h==null?0:h.selected)return cO5(h.chipValue)}).filter(function(h){return h!==void 0})})),U=D.next().value,n=D.next().value,y=function(A){var C=cO5(A.chipValue);
if(C!==void 0){var h;if((h=l.controlled)==null?0:h.call(l))return void l.controlled().onTap(C);A=U().includes(C)?[].concat(_.zz(U().filter(function(u){return u!==C}))):[].concat(_.zz(U()),[C]);
n(A);var b;if((b=l.uncontrolled)==null?0:b.call(l))l.uncontrolled().onUpdate(A)}};
return _.g("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.g(_.wt,{each:function(){return l.data().chips||[]}},function(A){return _.g("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.g(_.Sb7,{data:function(){return _.M(A,_.hx)},
selected:function(){var C;if(C=_.M(A,_.hx)){var h=cO5(C.chipValue);if(h!==void 0){var b;C=((b=l.controlled)==null?0:b.call(l))?l.controlled().selectedValues.includes(h):U().includes(h)}else C=void 0}else C=!1;return C},
callback:y}))}))},"li");var $lq=_.w(function(l){var D=l.data;var U=function(){var h;return((h=D())==null?void 0:h.flowStateKey)||""},n=_.Pr(_.zM,U),y=function(){var h;
return(h=_.M(n(),o2q))==null?void 0:h.chips},A=function(h){if(h!==void 0){var b=y()||[];
b=b.find(function(u){return u===h})?b.filter(function(u){return u!==h}):[].concat(_.zz(b),[h]);
b=Object.assign({},n(),{feedbackFormFlowState:Object.assign({},_.M(n(),o2q),{chips:b})});_.$u(_.vr("flowStateEntity",U(),b))}},C=function(){var h;
return _.M((h=D())==null?void 0:h.inputBox,wH$)};
l=_.e8(function(h){var b=C();b=!(b==null?0:b.maxChars)||h.length<=b.maxChars;h=Object.assign({},n(),{feedbackFormFlowState:Object.assign({},_.M(n(),o2q),{detail:h}),abuseReportFlowState:Object.assign({},_.M(n(),BV),{navigationEnabled:b})});_.$u(_.vr("flowStateEntity",U(),h))},150);
return _.g("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.g("div",{class:"ytFeedbackFormViewModelChips"},_.g(_.uI,{data:function(){var h;return(h=D())==null?void 0:h.chipSelection}},{chipSelectionFormFieldViewModel:function(h){return _.g(f1J,{data:h.data,
controlled:function(){return{selectedValues:y()||[],onTap:A}}})}})),_.g("div",{class:"ytFeedbackFormViewModelInputBox"},_.g(z1,{text:function(){var h;
return(h=_.M(n(),o2q))==null?void 0:h.detail},
placeholder:function(){var h;return((h=C())==null?void 0:h.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var h=C();if(h&&h.maxChars)return{maxChars:h.maxChars,errorMessage:h.maxCharsExceededErrorMessage||""}},
onInput:l})),_.g("div",{class:"ytFeedbackFormViewModelFooterText"},_.g(_.BO,{text:function(){return D().footerText}})))},"mi");
$lq.idomCompat=!0;_.Tt($lq,"yt-feedback-form-view-model",{props:{data:_.C$}});var Nu$=_.w(function(l){var D=l.data;var U=_.Pr(dMP,function(){return D().flowStateKey||""}),n=function(){var y;
_.dh((y=_.M(U(),BV))==null?void 0:y.navigationCommand)};
return _.g("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.g("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.g(_.uI,{data:function(){return D().cancelButton}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:n})}}),_.g(_.uI,{data:function(){var y;
if(D().navButton){var A=Object;var C=A.assign,h=_.M(D().navButton,_.CM),b=((y=_.M(U(),BV))==null?0:y.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",u,Q;y=_.M((u=_.M(U(),BV))==null?void 0:u.navigationCommand,_.aO);u=(Q=_.M(y,_.yE))==null?void 0:Q.url;A={buttonViewModel:C.call(A,{},h,{state:b,iconName:u?"OPEN_IN_NEW":""})}}else A=void 0;return A}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:n})}})))},"ni");
Nu$.idomCompat=!0;_.Tt(Nu$,"yt-report-form-bottom-bar-view-model",{props:{data:_.C$}});var sJJ=_.w(function(l){var D=l.nextStep;return _.g("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.g("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.g(_.C0,{icon:function(){return D().iconName||""}})),_.g("div",null,_.g(_.BO,{text:function(){return D().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"oi"),EB$=_.w(function(l){var D=l.data;
var U,n=(U=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:U(),y=_.Pr(_.zM,function(){return D().flowStateKey||""});
return _.g("yt-report-form-confirmation-page-view-model",{class:function(){var A;return((A=_.M(y(),BV))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.g("div",{class:function(){var A;
return((A=_.M(y(),BV))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.g(_.rh,{data:function(){return n&&D().imageDark?D().imageDark:D().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.g("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return D().confirmationHeader}),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.g(_.BO,{text:function(){return D().confirmationText}})),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.g(_.BO,{text:function(){return D().lawEnforcementText}})),
_.g("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return D().whatToExpectHeader}),_.g(_.v,{cond:function(){return D().nextSteps},
then:function(A){return _.g("div",null,_.g(_.wt,{each:A},function(C){return _.g(sJJ,{nextStep:C})}))}}),_.g(_.v,{cond:function(){return D().legalReportText},
then:function(A){return _.g("div",null,_.g(_.BO,{text:A,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"pi");
EB$.idomCompat=!0;_.Tt(EB$,"yt-report-form-confirmation-page-view-model",{props:{data:_.C$}});var Tuv=_.w(function(l){var D=l.data;var U=function(){var A;return((A=_.M(D().inputBox,wH$))==null?void 0:A.maxChars)||500},n=function(){return D().flowStateKey||""},y=_.Pr(_.zM,n);
l=_.e8(function(A){A=Object.assign({},y(),{flowFormState:{isValid:A.length<=U()},abuseReportFlowState:{userComments:A,navigationEnabled:!(A.length>U()),isReportFormDirty:!0}});_.fY().dispatch(_.et("flowStateEntity",n(),A))},150);
_.N1(function(){var A=Object.assign({},y(),{flowFormState:{isValid:!0}});_.fY().dispatch(_.et("flowStateEntity",n(),A))});
return _.g("yt-report-form-details-page-view-model",{class:function(){var A;return((A=_.M(y(),BV))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.g("h1",{class:function(){var A;
return((A=_.M(y(),BV))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return D().detailsPageHeader}),_.g("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.g(_.BO,{text:function(){return D().bodyText}})),_.g("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.g(z1,{label:function(){var A;
return((A=_.M(D().inputBox,wH$))==null?void 0:A.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var A;return{errorMessage:((A=_.M(D().inputBox,wH$))==null?void 0:A.maxCharsExceededErrorMessage)||"",maxChars:U()}},
onInput:l})))},"qi");
Tuv.idomCompat=!0;_.Tt(Tuv,"yt-report-form-details-page-view-model",{props:{data:_.C$}});var I1r=_.w(function(l){var D=l.data;var U=function(){return D().flowStateKey||""},n=_.Pr(_.zM,U),y=function(){return _.M(n(),BV)};
return _.g("yt-report-form-reason-select-page-view-model",{class:function(){var A;return((A=y())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.g("h1",{class:function(){var A;
return((A=y())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return D().pageHeader}),_.g("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.g(_.BO,{text:function(){return D().bodyText}})),_.g("div",{class:function(){var A;
return((A=y())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.g(_.xl8,{data:function(){return _.M(D().radioButtonGroup,_.CJ)},
onSelected:function(A,C){A=Object.assign({},n(),{abuseReportFlowState:Object.assign({},y(),{reasonKey:C.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:C.command})});_.$u(_.vr("flowStateEntity",U(),A))},
selectedKey:function(){var A;return(A=y())==null?void 0:A.reasonKey},
groupName:"report-form-reason-select-page"})))},"ri");
I1r.idomCompat=!0;_.Tt(I1r,"yt-report-form-reason-select-page-view-model",{props:{data:_.C$}});var H7q=_.w(function(l){var D=l.data;var U,n=(U=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:U();return _.g("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.g("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.g(_.rh,{data:function(){return n&&D().imageDark?D().imageDark:D().image},
alt:""})),_.g("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.g("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return D().header}),_.g(_.BO,{text:function(){return D().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"si");
H7q.idomCompat=!0;_.Tt(H7q,"yt-report-form-sign-in-page-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;var U=_.gf(_.cn1.talkToRecsStateSelector),n=function(){return D().titleSuperscript},y=function(){return D().answersShelf},A=function(){return D().videoShelf},C=function(){var iG;
return(iG=D().textInputPlaceholder)==null?void 0:iG.content},h=function(){return D().showOpenTextInput},b=function(){var iG;
return(iG=D().textInputValue)==null?void 0:iG.content},u=function(){return D().isMultiTurnFlow?D().resetButtonViewModel:void 0},Q="",G=function(){return D().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
l=_.B(_.aw("",void 0,"wOgRlf"));var J=l.next().value,L=l.next().value;l=_.B(_.aw(!1,void 0,"TYP5Ff"));var R=l.next().value,a=l.next().value,S=function(){return{state:R()||J()?"active":"disabled",disabled:!(R()||J())}};
_.$g(function(){if(h()){b()&&L(b());var iG;if(!u()&&((iG=U())==null?0:iG.stepStates)){var CC;iG=Object.keys((CC=U())==null?void 0:CC.stepStates);CC=iG[iG.length-1];var vo,td;CC=(vo=U().stepStates[CC])==null?void 0:(td=vo.userQuery)==null?void 0:td.userQuery;_.$u(_.KQ8());CC&&d(CC)}}});
var d=function(iG){var CC=D().onUpdateText;CC&&_.dh(CC,{form:{userQuery:iG}});L(iG)},c=_.e8(function(iG){d(iG.target.value.trim())},150),N=_.n0(function(iG){var CC;
Q=(CC=iG.target.value)==null?void 0:CC.trim();c(iG);return!1}),z=_.n0(function(iG){iG.key==="Enter"&&(R()||J())&&(d(iG.target.value.trim()),I());
return!1}),f=function(iG,CC){a(CC);
if(CC){if(D().isMultiTurnFlow&&!Q){var vo;d((vo=iG==null?void 0:iG.text)!=null?vo:"")}D().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&I()}else L(Q)},I=function(){var iG=void 0,CC=_.M(D().nextButtonViewModel,_.CM),vo,td;
if(CC==null?0:(vo=CC.loggingDirectives)==null?0:(td=vo.clientVeSpec)==null?0:td.uiType){var GN,Ms;iG=_.UE((GN=CC.loggingDirectives)==null?void 0:(Ms=GN.clientVeSpec)==null?void 0:Ms.uiType)}(CC=D().onNextStepCommand)&&_.dh(CC,{clickedVisualElement:iG})};
l={};return _.g("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.g("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.g(_.uI,{data:function(){return D().topCornerButton}},{buttonViewModel:_.t9})),_.g("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.g("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.g(_.BO,{text:function(){return D().title}}),_.g(_.v,{cond:n,
then:function(){return _.g("sup",{class:"ytwTalkToRecsSuperScript"},_.g(_.BO,{text:n}))}})),_.g("div",{class:"ytwTalkToRecsSubtitle"},_.g(_.BO,{text:function(){return D().subtitle}})),_.g("div",{class:"ytwTalkToRecsResultsShelf"},_.g(_.v,{cond:y,
then:function(){return _.g(_.uI,{data:y},{chipsShelfViewModel:function(iG){return _.g("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.g(_.oD,{data:iG.data,callback:f,selectionBehavior:G}))}})}}),_.g(_.v,{cond:A,
then:function(){return _.g(_.uI,{data:A},{horizontalShelfViewModel:function(iG){return _.g("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.g(_.Pv,{data:iG.data,thumbnailAspectRatio:0}))}})}})),_.g("div",{class:_.DV("ytwTalkToRecsRefinementContainer",(l.ytwTalkToRecsBottomMargin=function(){return D().isMultiTurnFlow},l))},_.g(_.v,{cond:h,
then:function(){return _.g("div",{class:"ytwTalkToRecsUserInputBox"},_.g("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:C,value:J,"on:input":N,"on:keyup":z,maxlength:200}))}}),_.g(_.uI,{data:function(){return D().isMultiTurnFlow?D().nextButtonViewModel:void 0}},{buttonViewModel:function(iG){return _.g("div",{class:"ytwTalkToRecsFlowControlButtons"},_.g(_.t9,{data:iG.data,
buttonOverrides:S}))}}),_.g(_.uI,{data:u},{buttonViewModel:function(iG){return _.g("div",{class:"ytwTalkToRecsFlowControlButtons"},_.g(_.t9,{data:iG.data,
onClick:function(){var CC=_.M(D().resetButtonViewModel,_.CM);d(J());(CC=CC==null?void 0:CC.onTap)&&_.dh(CC)}}))}}))))},"ui"),"yt-talk-to-recs-view-model",{props:{data:_.C$}});var pTJ={sources:[{clientResource:{imageName:"CHECK"}}]};_.YBw=_.w(function(l){var D=_.bP("div");l=_.sl(l,{error:void 0});var U=l.data,n=l.error,y=l.onSelected;l=_.B(_.WK(function(){return FwW(U())}));
var A=l.next().value,C=l.next().value;z65(U,function(J){C(J);var L,R,a=jAJ((L=U().options)==null?void 0:(R=L[J])==null?void 0:R.value,U().type);y==null||y(a);D.value.focus()});
l=_.n0(function(){if(!U().disabled){var J=U(),L=A(),R=D.value;J.options&&(J=xE5(J.options,L,J.label),_.Jc().resolve(_.H0).openSheet({viewModel:J},R))}});
var h=_.wBG(),b=function(){return!!n()},u=function(){return!!U().disabled},Q={},G={};
return _.g("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.g("div",{class:_.DV("ytDropdownViewModelDropdownContainer",(Q.ytDropdownViewModelDropdownContainerErrorBorder=b,Q.ytDropdownViewModelDropdownContainerDisabled=u,Q)),"on:click":l,el:D,role:"combobox",tabindex:0,"on:keydown":h,"aria-invalid":b,"aria-disabled":u,"aria-describedby":function(){return b()?"dropdown-view-model-error":void 0}},_.g("div",{class:"ytDropdownViewModelText"},oxJ(U,b,A),wT$(U,A)),_.g("div",{class:_.DV("ytDropdownViewModelChevronDown",
(G.ytDropdownViewModelChevronDownDisabled=u,G))},_.g(_.C0,{icon:"CHEVRON_DOWN"}))),rOJ(U,n))},"vi");_.Tt(_.w(function(l){var D=l.data;var U=function(y){var A=$EP(D());A.videoMetadata||(A.videoMetadata={});A.videoMetadata.sponsorshipsMetadata||(A.videoMetadata.sponsorshipsMetadata={});A.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(y)},n=function(y){var A=$EP(D());
A.scheduledRedirectMetadata||(A.scheduledRedirectMetadata={});A.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(y)};
return _.g("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.g("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.g("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.g(_.BO,{text:function(){return D().title}}),_.g(_.C0,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.g(_.BO,{text:function(){return D().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.g(_.uI,{data:function(){return D().tierChoices}},{dropdownViewModel:function(y){return _.g("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.g(_.YBw,{data:y.data,
onSelected:U}))}}),_.g(_.uI,{data:function(){return D().startTimeChoices}},{dropdownViewModel:function(y){return _.g("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.g(_.YBw,{data:y.data,
onSelected:n}))}}),_.g(_.BO,{text:function(){return D().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.g("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.g(_.uI,{data:function(){return D().scheduleButton}},{panelFooterViewModel:_.w1})))},"wi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;l=l.className===void 0?"":l.className;var U=_.Pr(dMP,function(){return D().flowStateEntityKey||""}),n={};
n=_.DV("ytFlowBottomBarViewModelFlowBottomBarButtons",(n.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},n));
var y={},A=_.DV("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",n,(y.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},y.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},y));
y={};var C=_.DV("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",n,(y.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},y.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},y));
n={};n=_.DV("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(n.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},n.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},n.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return D().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
n));
l=_.DV("ytFlowBottomBarViewModelHost",l);return _.g("yt-flow-bottom-bar-view-model",{class:l},_.g(_.v,{cond:function(){var h;return(h=D())==null?void 0:h.textSection},
then:function(h){return _.g("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.g(_.BO,{text:h}))}}),_.g("div",{class:n},_.g(_.uI,{data:function(){return D().secondaryButton}},{buttonViewModel:function(h){return _.g(_.t9,{data:h.data,
className:C})}}),_.g(_.uI,{data:function(){return D().primaryButton}},{buttonViewModel:function(h){return _.g(_.t9,{data:h.data,
className:A,buttonOverrides:function(){var b;return{disabled:!((b=U())==null||!b.primaryButtonDisabled)}}})}})))},"xi"),"yt-flow-bottom-bar-view-model",{props:{data:_.C$,
className:_.ND}});var O7v="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),fJ=function(){var l=_.p.apply(this,arguments)||this;l.enableScrollingFix=!0;l.bottomBar=!1;l.fitContent=!1;return l};
_.Z(fJ,_.p);_.W=fJ.prototype;_.W.ready=function(){_.q("enable_pdp_icon_prefetch")&&_.S9T(_.Jc().resolve(_.MX),0,O7v)};
_.W.focus=function(l){this.topBar?_.CB(this.topBar,l):this.paperDialog.focus(l)};
_.W.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19454_scroller&&(this.JSC$19454_scroller.dialogElement=this.paperDialog,this.JSC$19454_scroller.attached&&typeof this.JSC$19454_scroller.attached==="function"&&this.JSC$19454_scroller.attached())};
_.W.onDataChanged=function(){var l;this.fitContent=!((l=this.data)==null||!l.fitContent);var D;this.bottomBar=!((D=this.data)==null||!D.bottomBar)};
_.W.onProgressChanged=function(){var l,D,U=((D=(l=this.data)==null?void 0:l.progress)!=null?D:0)*100;this.progressElement.style.width=U+"%"};
_.W.isProgressHidden=function(){var l;return!((l=this.data)==null?0:l.progress)};
_.W.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(l){return l&&!l.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
fJ.prototype.onProgressChanged=fJ.prototype.onProgressChanged;fJ.prototype.onDataChanged=fJ.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],fJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fJ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fJ.prototype,"enableScrollingFix",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fJ.prototype,"bottomBar",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fJ.prototype,"fitContent",void 0);_.E([_.gP("#progress"),_.T("design:type",HTMLElement)],fJ.prototype,"progressElement",void 0);_.E([_.gP("#scroller"),_.T("design:type",Object)],fJ.prototype,"JSC$19454_scroller",void 0);_.E([_.gP("ytd-flow-top-bar-renderer"),_.T("design:type",HTMLElement)],fJ.prototype,"topBar",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fJ.prototype,"onDataChanged",null);_.E([_.Pg("data.progress"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fJ.prototype,"onProgressChanged",null);_.E([_.x({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],fJ);
_.r(fJ,"ytd-flow-step-renderer",function(){if(RQW!==void 0)return RQW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return RQW=l},{mode:1});var $r=function(l){this.resolveCommand=l;this.steps={}},Vs$=function(l,D){D=_.B(D||[]);
for(var U=D.next();!U.done;U=D.next()){U=U.value;var n=Object.values(U)[0],y=void 0;if((y=n)==null?0:y.stepId)l.steps[n.stepId]=U}},lsP=function(l,D){var U,n,y,A,C;
return _.P(function(h){if((U=l.state)==null||!U.currentStepId)return h.return(void 0);n=l.getCurrentStep();if(!n)return h.return(iUP(l));if(y=_.M(n,_.$0))l.logVEScreen(y),((A=y)==null?0:A.onStepStartCommand)&&l.resolveCommand((C=y)==null?void 0:C.onStepStartCommand,{});y&&D&&(l.logFlowEvent(y,D),D.steps&&!D.steps.includes(n)&&D.steps.push(n));return h.return(n)})};
$r.prototype.back=function(){var l;(l=this.state)!=null&&l.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
$r.prototype.handleUpdateFlowCommand=function(l){l.steps&&Vs$(this,l.steps);l.entityUpdateCommand&&this.resolveCommand(l.entityUpdateCommand,{});l.flowContinuationCommand&&(l=l.flowContinuationCommand)&&(this.getFlowContinuationCommand=l);this.awaitFlowContinuation&&(l=this.getCurrentStep(),this.awaitFlowContinuation(l),this.awaitFlowContinuation=void 0)};
$r.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var iUP=function(l){return _.P(function(D){return l.getFlowContinuationCommand?D.return(new Promise(function(U){l.awaitFlowContinuation=U;l.getFlowContinuationCommand&&l.resolveCommand(l.getFlowContinuationCommand,{flow_state:l.state})})):D.return(Promise.resolve(void 0))})};
$r.prototype.getCurrentStep=function(){var l;if((l=this.state)!=null&&l.currentStepId)return this.steps[this.state.currentStepId]};
$r.prototype.logVEScreen=function(l){var D;((D=l.screenLoggingData)==null?0:D.screenVeType)&&_.KM(_.he(),l.screenLoggingData.screenVeType)};
$r.prototype.logFlowEvent=function(l,D){var U,n,y,A;((U=D.flowLoggingData)==null?0:U.eventNamespace)&&((n=l.flowEventData)==null?0:n.eventType)&&((y=l.flowEventData)==null?0:y.eventMetadata)&&((A=D.flowLoggingData)==null?0:A.flowType)&&(l=_.Wk(D.flowLoggingData.eventNamespace,l.flowEventData.eventType,l.flowEventData.eventMetadata),_.Bk().logFlowEvent(l,D.flowLoggingData.flowType))};
_.QP.Object.defineProperties($r.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.state)==null?void 0:l.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.state)!=null&&l.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(D,U){U.key&&U.value&&(D[U.key]=U.value);return D},{})}}});var N7=function(){var l=_.p.apply(this,arguments)||this;l.flowState=_.q("web_use_flow_state_manager")?void 0:new $r(function(D,U){U=U===void 0?{}:U;_.yu.instance.resolveCommand(D,{form:{form:U,element:l.hostElement}})});
l.JSC$19465_flowStateManager=_.q("web_use_flow_state_manager")?_.Jc().resolve(_.FS):void 0;l.currentTargetId="";l.initialState=!0;l.isLoading=!1;l.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"};l.containsTalkToRecs=!1;return l};
_.Z(N7,_.p);_.W=N7.prototype;_.W.onPopupClosed=function(l){if(!l||this.hostElement===l.detail.popupRenderer){if(this.JSC$19465_flowStateManager){var D;((D=this.data)==null?0:D.flowStateEntityKey)&&this.JSC$19465_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.W.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.W.focus=function(l){var D=this;_.j0(function(){var U=_.iJ(D.hostElement).querySelector("ytd-flow-step-renderer");(U==null?0:U.topBar)?U.focus(l):D.topBar&&_.CB(D.topBar,l)},1)};
_.W.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.W.computeTopBarHidden=function(l){var D;return!((D=_.M(l,_.$0))==null||!D.topBarOverride)};
_.W.onCurrentFlowChange=function(){if(this.JSC$19465_flowStateManager&&this.data&&this.flow){var l=ZI2(this.JSC$19465_flowStateManager,this.data),D;l&&((D=this.flow)==null?0:D.currentStepId)&&(a5H(l,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.W.observeData=function(){var l=this;if(this.JSC$19465_flowStateManager){var D=this.currentTargetId,U,n,y=(n=(U=this.data)==null?void 0:U.targetId)!=null?n:"";D!==y&&D&&ep2(this.JSC$19465_flowStateManager,D);this.currentTargetId=y;this.data&&mAJ(ZI2(this.JSC$19465_flowStateManager,this.data),function(A){A&&(l.initialState=!1,l.currentFlowStep={flowStepRenderer:A},l.isLoading=!l.currentFlowStep,l.autofocusAndRefit(),l.updateContainsTalkToRecs(),l.logVEScreen(),l.logFlowEvent())})}};
_.W.dataChanged=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1){if(!l.flowState)return n.return();((D=l.data)==null?0:D.steps)&&Vs$(l.flowState,l.data.steps);if((U=l.data)==null?0:U.flowContinuationCommand){var y=l.flowState,A=l.data.flowContinuationCommand;A&&(y.getFlowContinuationCommand=A)}return n.yield(lsP(l.flowState,l.data),2)}l.currentFlowStep=n.yieldResult;_.Kz(n)})};
_.W.flowChanged=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1){if(!l.flowState||!l.flow)return U.return();l.flowState.state=l.flow;l.isLoading=!0;return U.yield(lsP(l.flowState,l.data),2)}D=U.yieldResult;if(!D||l.flow.isLoading)return U.return();l.currentFlowStep=D;l.initialState=!1;l.isLoading=!1;l.autofocusAndRefit();l.updateContainsTalkToRecs();_.Kz(U)})};
_.W.logVEScreen=function(){var l,D,U=(l=_.M(this.currentFlowStep,_.$0))==null?void 0:(D=l.screenLoggingData)==null?void 0:D.screenVeType;U&&_.KM(_.Jc().resolve(_.$k),U)};
_.W.logFlowEvent=function(){var l=_.M(this.currentFlowStep,_.$0),D,U,n,y,A,C;(this==null?0:(D=this.data)==null?0:(U=D.flowLoggingData)==null?0:U.eventNamespace)&&(this==null?0:(n=this.data)==null?0:(y=n.flowLoggingData)==null?0:y.flowType)&&(l==null?0:(A=l.flowEventData)==null?0:A.eventType)&&(l==null?0:(C=l.flowEventData)==null?0:C.eventMetadata)&&(l=_.Wk(this.data.flowLoggingData.eventNamespace,l.flowEventData.eventType,l.flowEventData.eventMetadata),_.Bk().logFlowEvent(l,this.data.flowLoggingData.flowType))};
_.W.updateContainsTalkToRecs=function(){var l,D=(l=_.M(this.currentFlowStep,_.$0))==null?void 0:l.content;this.containsTalkToRecs=!!D&&!!_.M(D,sS5)};
_.W.autofocusAndRefit=function(){var l=this,D=_.Jc().resolve(_.G8(_.L$)),U=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),n=document.querySelector("yt-report-form-confirmation-page-view-model"),y=document.querySelector("yt-report-form-details-page-view-model"),A=document.querySelector("yt-report-form-reason-select-page-view-model"),C=document.querySelector("yt-contributor-zero-state-view-model"),
h=document.querySelector("yt-structured-context-note-view-model"),b=document.querySelector("yt-note-view-model");(!U&&D&&D.isKeyBoardInUse()||n||!U&&y||!U&&A||!U&&(C||h||b))&&_.hL(this.hostElement);_.u6(this,function(){_.O9(l.hostElement,"yt-refit")})};
_.W.handleUpdateFlowCommand=function(l){this.flowState?this.data&&(l=_.M(l,_.W57),l.targetId===this.data.targetId&&(l.flowContinuationCommand&&(this.data.flowContinuationCommand=l.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(l),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(l)};
_.W.handleFlowNextStepCommand=function(l){this.JSC$19465_flowStateManager?this.ytComponentBehavior.resolveCommand(l):this.data&&this.flow&&this.flow.key&&(l=_.M(l,_.U$h),l.targetId===this.data.targetId&&(l=l.stepId||"",this.ytdReduxBehavior.dispatch(_.et("flowStateEntity",this.flow.key,{currentStepId:l,stepIdStack:(this.flow.stepIdStack||[]).concat(l)}))))};
_.W.handleFlowPrevStepCommand=function(l){if(this.JSC$19465_flowStateManager)this.ytComponentBehavior.resolveCommand(l);else if(this.data&&this.flow&&this.flow.key&&(l=_.M(l,_.n0H),l.targetId===this.data.targetId)){var D=[].concat(_.zz(this.flow.stepIdStack||[]));D.length>1?(D.pop(),this.ytdReduxBehavior.dispatch(_.et("flowStateEntity",this.flow.key,{currentStepId:D[D.length-1],stepIdStack:D}))):l.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(l.onFirstStepCommand)}};
_.W.handleYpcCancelRecurrenceCommand=function(l){if(this.data&&this.flow&&this.flow.key&&(l=_.M(l,Y9J),l.targetId===this.data.targetId&&l.endpointCommand)){var D=_.M(this.flow,OIq);D&&_.M(l.endpointCommand,_.Jg7)&&(_.M(l.endpointCommand,_.Jg7).feedbackData=D.surveyFeedback);this.ytComponentBehavior.resolveCommand(l.endpointCommand)}};
_.W.handlePartialUpdateFlowStateEntity=function(l){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.et("flowStateEntity",this.flow.key,l,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
N7.prototype.flowChanged=N7.prototype.flowChanged;N7.prototype.dataChanged=N7.prototype.dataChanged;N7.prototype.observeData=N7.prototype.observeData;N7.prototype.onCurrentFlowChange=N7.prototype.onCurrentFlowChange;N7.prototype.onPopupClosed=N7.prototype.onPopupClosed;_.E([_.m(_.l5),_.T("design:type",Object)],N7.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],N7.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],N7.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],N7.prototype,"initialState",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],N7.prototype,"isLoading",void 0);_.E([_.K(),_.T("design:type",Object)],N7.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],N7.prototype,"currentFlowStep",void 0);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],N7.prototype,"onPopupClosed",null);
_.E([_.K({selectorArgs:["data.flowStateEntityKey"],selector:dMP}),_.T("design:type",Object)],N7.prototype,"flow",void 0);_.E([_.gP("ytd-flow-top-bar-renderer"),_.T("design:type",HTMLElement)],N7.prototype,"topBar",void 0);_.E([_.Pg("data","flow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],N7.prototype,"onCurrentFlowChange",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],N7.prototype,"observeData",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype",Promise)],N7.prototype,"dataChanged",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],N7.prototype,"containsTalkToRecs",void 0);_.E([_.GY("flow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype",Promise)],N7.prototype,"flowChanged",null);_.E([_.x({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],N7);
_.DNv=_.Ol()(N7,"ytd-flow-root-renderer",function(){if(Mzr!==void 0)return Mzr;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Mzr=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var UNJ;var Ah=null;_.Tt(_.w(function(l){return _.g("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.g("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.g(_.BO,{text:function(){return l.data().text}}),_.g("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"yi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.C$}});var nf$=_.w(function(l){var D=l.playerControlsProps;var U=l.isShortsPage;return _.g("yt-bigboard",null,_.g(_.v,{cond:function(){return D().isDragging},
then:function(){return _.g("div",{class:"ytBigboardStoryboardHost"},_.g(_.s25,{progressBarProps:D,isShortsPage:U}))}}))},"zi");
nf$.idomCompat=!0;_.se={ACCOUNT_LABEL:WV("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:WV("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:WV("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:WV("AD_BADGE_HINT"),AD_BADGE_TEXT:WV("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:WV("ALL_CHANNELS_LABEL"),AMBIENT_MODE:WV("AMBIENT_MODE"),AMBIENT_MODE_OFF:WV("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:WV("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:WV("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:WV("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:WV("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:WV("APP_UPSELL_TITLE"),AUDIO_TRACK:WV("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:WV("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:WV("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:WV("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:WV("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:WV("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:WV("AUTO_ZOOM","Auto zoom"),BACK:WV("BACK"),CANCEL:WV("CANCEL"),CHANNEL_SWITCHER_LABEL:WV("CHANNEL_SWITCHER_LABEL"),CLOSE:WV("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:WV("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:WV("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:WV("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:WV("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:WV("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:WV("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:WV("COMMENT_MODAL_CONTENT"),CONFIRM_OK:WV("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:WV("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:WV("COPIED_TO_CLIPBOARD"),COPY:WV("COPY"),COPY_DEBUG_INFO:WV("COPY_DEBUG_INFO"),COPY_EMBED_CODE:WV("COPY_EMBED_CODE"),
COPY_LINK_LABEL:WV("COPY_LINK_LABEL"),COPY_VIDEO_URL:WV("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:WV("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:WV("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:WV("DELETE_FROM_DOWNLOADS"),DIALOG:WV("DIALOG"),DONE:WV("DONE"),DOWNLOAD:WV("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:WV("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:WV("FLAG_CONFIRM"),FLAG_CONTENT:WV("FLAG_CONTENT"),FLAG_LABEL:WV("FLAG_LABEL"),FLAG_TITLE:WV("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:WV("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:WV("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:WV("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:WV("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:WV("HIDE_SEARCH_FILTERS_LABEL"),HOME:WV("HOME","Home"),INVALID_RESPONSE_RECEIVED:WV("INVALID_RESPONSE_RECEIVED"),LIBRARY:WV("LIBRARY","Library"),LISTENING:WV("LISTENING"),LOADING:WV("LOADING"),LONG_PRESS_MIC_TO_SPEAK:WV("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:WV("LOOP"),MENU_DESKTOP:WV("MENU_DESKTOP"),
MENU_EXIT:WV("MENU_EXIT"),MENU_FEEDBACK:WV("MENU_FEEDBACK"),MENU_HELP:WV("MENU_HELP"),MENU_IMPRESSUM:WV("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:WV("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:WV("MENU_SETTINGS"),MENU_SIGN_IN:WV("MENU_SIGN_IN"),MENU_TITLE:WV("MENU_TITLE"),MENU_YOUR_DATA:WV("MENU_YOUR_DATA"),MORE_INFO:WV("MORE_INFO"),MORE_OPTIONS:WV("MORE_OPTIONS"),MUTE_VOLUME:WV("MUTE_VOLUME"),NEW_PLAYLIST:WV("NEW_PLAYLIST"),NEXT_VIDEO:WV("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:WV("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:WV("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:WV("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:WV("NOT_FOUND_TITLE"),NO_DOWNLOADS:WV("NO_DOWNLOADS"),NO_MIC_INPUT:WV("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:WV("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:WV("OOPS_MESSAGE"),OPEN_APP:WV("OPEN_APP"),OPEN_YOUTUBE:WV("OPEN_YOUTUBE"),PAUSE:WV("PAUSE"),PLAY:WV("PLAY"),PLAYER_CAPTION:WV("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:WV("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:WV("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:WV("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:WV("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:WV("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:WV("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:WV("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:WV("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:WV("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:WV("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:WV("PLAYER_MINIMIZE"),PLAYER_NEXT:WV("PLAYER_NEXT"),PLAYER_PAUSE:WV("PLAYER_PAUSE"),PLAYER_PLAY:WV("PLAYER_PLAY"),
PLAYER_PREVIOUS:WV("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:WV("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:WV("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:WV("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:WV("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:WV("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:WV("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:WV("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:WV("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:WV("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:WV("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:WV("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:WV("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:WV("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:WV("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:WV("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:WV("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:WV("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:WV("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:WV("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:WV("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:WV("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:WV("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:WV("PLAY_ALL"),PLEASE_FIX_ERRORS:WV("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:WV("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:WV("PREVIOUS_VIDEO"),PRIVACY_POLICY:WV("PRIVACY_POLICY"),RELOAD:WV("RELOAD"),REQUIRED_LABEL:WV("REQUIRED_LABEL"),SAVE_PLAYLIST:WV("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:WV("SCRUB_SLIDE_USER_EDU"),SEARCH:WV("SEARCH","Search"),
SEARCH_APPEND_LABEL:WV("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:WV("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:WV("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:WV("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:WV("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:WV("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:WV("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:WV("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:WV("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:WV("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:WV("SEEK_SLIDER"),SETTINGS_LABEL:WV("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:WV("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:WV("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:WV("SHOW_LESS"),SHOW_MORE:WV("SHOW_MORE"),SHOW_PLAYER_CONTROLS:WV("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:WV("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:WV("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:WV("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:WV("SIGN_IN_ON_WEB"),STABLE_VOLUME:WV("STABLE_VOLUME"),STABLE_VOLUME_OFF:WV("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:WV("STABLE_VOLUME_ON"),STATS_FOR_NERDS:WV("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:WV("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:WV("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:WV("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:WV("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:WV("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:WV("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:WV("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:WV("TIMESTAMP_SECONDS"),TOGGLE_OFF:WV("TOGGLE_OFF"),TOGGLE_ON:WV("TOGGLE_ON"),TRENDING:WV("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:WV("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:WV("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:WV("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:WV("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:WV("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:WV("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:WV("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:WV("VIDEO_LINK_LABEL")};var yur=_.w(function(l){var D=l.playerApi;l=_.bP("button",function(n){_.NX(n,36843)});
var U=WV("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.g("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.g("button",{el:l,class:"ytPlayerControlsJumpForwardButtonButton",title:U,"aria-label":U,"on:click":_.n0(function(){_.sO(36843);D&&D().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.g("span",null,_.g(_.C0,{icon:"FAST_FORWARD"}))))},"Ai");var AuJ=_.w(function(l){var D=l.appApi;l=_.bP("button",function(n){_.NX(n,62946)});
var U=WV("OPEN_IN_MINIPLAYER");return _.g("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.g("button",{el:l,class:"ytMiniplayerButtonButton",title:U,"aria-label":U,"on:click":_.n0(function(){_.sO(62946);var n,y;(y=(n=D()).openInMiniplayer)==null||y.call(n);return!1})},_.g(_.C0,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Bi");var WXJ=_.w(function(l){var D=l.playerApi;l=_.bP("button",function(A){_.NX(A,142812)});
var U=_.B(_.aw(!1,void 0,"eOMRAb")),n=U.next().value,y=U.next().value;U=function(){return WV("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(n()?1:2)})};
return _.g("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.g("button",{el:l,class:"ytPlaybackSpeedButtonButton",title:U,"aria-label":U,"on:click":_.n0(function(){_.sO(142812);if(D){var A=D(),C=n();A.setPlaybackRate(C?1:2);y(!n())}return!1})},_.g("span",null,_.g(_.C0,{icon:function(){return n()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Ci");var BXP=_.w(function(l){var D=l.title;var U=l.ariaLabel;var n=l.icon;var y=l.command;var A=l.visualElementId;l=_.bP("button",function(C){A&&_.NX(C,A())});
return _.g("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.g("button",{el:l,class:"ytdThumbnailOverlayButtonButton",title:D,"aria-label":U,"on:click":_.n0(function(){A&&_.sO(A());y&&_.Jc().resolve(_.qK).resolveCommand(y())})},_.g(_.C0,{icon:n})))},"Di");var OO="";var CV2=_.w(function(l){var D=l.playerControlsProps,U=l.onClickFn;l=_.dM(function(){var A=D(),C=-1;A.captionsAvailable&&(C=A.captionsEnabled?1:0);return C},void 0,"MZ0Wqe");
var n=_.dM(function(){var A=D();return A.captionsAvailable?_.C3(A.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.C3("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),y=_.dM(function(){var A=D();
A=A.captionsAvailable?A.captionsEnabled:void 0;return A},void 0,"fhuQRe");
return _.g("yt-closed-captions-toggle-button",null,_.g(_.S18,{captionIconType:l,ariaLabel:n,ariaPressed:y,onClick:function(A){var C=D();if(C.captionsAvailable){var h=C.playerApi;if(h){var b=C.playerApi;if(b){var u=OO;if(u){b=b.getOption("captions","track");var Q;OO=(Q=b?b.displayName:null)!=null?Q:u}else _.$V(b)?(u=_.ans(b),OO=u.length?(Q=xMW(u))?Q.displayName:u[0].displayName:""):OO=""}j1r(h);_.q("mweb_disable_set_state_captions_killswitch")&&C.setState({captionsEnabled:!C.captionsEnabled})}}var G,
J;(J=(G=C.appApi).showCaptionsToggleToast)==null||J.call(G,C);U==null||U(A)},
isOverlay:!0}))},"Ei");var h98=_.w(function(l){var D=l.data;return _.g("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.g(_.AQ,{data:function(){return{type:17,text:_.cDc(D().label)}}}))},"Fi");var PV5=_.w(function(l){var D=_.DV("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return l.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return l.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return l.size()==="small"?l.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
l.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.g("animated-seek-arrows",{class:_.DV("ytPlayerControlsAnimatedSeekArrowsHost")},_.g("span",{class:D}),_.g("span",{class:D}),_.g("span",{class:D}))},"Gi");
PV5.idomCompat=!0;var bUW=_.w(function(){var l=_.C3("PLAYER_SECONDS",{seconds_placeholder:"30"}),D=_.B(_.aw(!1,void 0,"iRJu8c")),U=D.next().value,n=D.next().value,y=_.B(_.aw(!1,void 0,"MPnizf"));D=y.next().value;var A=y.next().value;y={};var C=_.DV("jumpForwardOverlayOverlay",(y.jumpForwardOverlayOverlayHidden=D,y));_.N1(function(){var h=null,b=null,u=function(){h!==null&&_.M9().cancelJob(h);b!==null&&_.M9().cancelJob(b);A(!0);n(!0);_.Vu(_.M9(),function(){A(!1)});
h=_.Vu(_.M9(),function(){A(!0);b=_.Vu(_.M9(),function(){n(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",u);_.NV(function(){window.removeEventListener("jump-forward-clicked",u)})});
return _.g("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.g(_.v,{cond:U,then:function(){return _.g("div",{class:C},_.g(PV5,{direction:1,size:"large"}),_.g("div",null,l))}}))},"Hi");var gf2=_.se.MUTE_VOLUME,uPH=_.se.UNMUTE_VOLUME,vfP=_.w(function(l){var D=l.muteIconType;var U=l.onClick;var n=l.useOutlineIcon;var y=l.useDelhiIcons;l=_.bP("button",function(h){_.NX(h,28662)});
var A=function(){var h=D(),b=n==null?void 0:n(),u=y==null?void 0:y(),Q="",G="";switch(h){case -1:case 0:Q=b?"VOLUME_OFF":u?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";G=uPH;break;case 1:Q=b?"VOLUME_UP_OUTLINE":u?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";G=gf2;break;case 2:Q=b?"VOLUME_DOWN_OUTLINE":u?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";G=gf2;break;default:_.Tv(h)}return{iconName:Q,ariaLabel:G}},C=function(){return A().ariaLabel};
return _.g("ytm-mute-button",{class:"ytmMuteButtonHost"},_.g("button",{el:l,class:"ytmMuteButtonButton",title:C,"aria-label":C,"on:click":_.n0(function(h){_.sO(28662);U==null||U(h);return!1})},_.g("span",null,_.g(_.C0,{icon:function(){return A().iconName}}))))},"Ii");var QnJ=_.w(function(l){var D=l.volumeProps;var U=l.onClickFn;var n=l.useOutlineIcon;var y=l.useDelhiIcons;return _.g("yt-mute-toggle-button",null,_.g(vfP,{muteIconType:function(){var A=D();return A.volumeMuted||A.volume===0?0:A.volume>50?1:2},
onClick:function(A){var C=D().playerApi;C&&(C.isMuted()?C.unMute():C.mute(!1));U==null||U(A)},
useOutlineIcon:function(){return!(n==null||!n())},
useDelhiIcons:function(){return!(y==null||!y())}}))},"Ji");
QnJ.idomCompat=!0;var GI$=_.w(function(l){var D=l.data;var U=_.bP("ytm-paid-content-overlay-renderer");return _.g("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:U,"on:animationend":_.n0(function(){U.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.g(_.qO,{command:function(){return D().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.g(_.v,{cond:function(){var n;return(n=D().icon)==null?void 0:n.iconType},
then:function(){return _.g("span",null,_.g(_.C0,{icon:function(){var n;return(n=D().icon)==null?void 0:n.iconType}}))}}),_.g("div",{class:"ytmPaidContentOverlayText"},_.g(_.BO,{text:function(){return D().text}})),_.g(_.v,{cond:function(){return D().navigationEndpoint},
then:function(){return _.g(_.C0,{icon:"CHEVRON_RIGHT"})}})))},"Ki");
GI$.idomCompat=!0;var A6q=[].concat(_.zz([{register:function(l){var D=QS$(l),U;(U=l().playerApi)==null||U.addEventListener("onVolumeChange",D);return function(){}}},
{register:function(l){var D=GaW(l);l=l().playerApi;l==null||l.addEventListener("captionschanged",D);l==null||l.addEventListener("captionssettingschanged",D);l==null||l.addEventListener("onCaptionsTrackListChanged",D);return function(){}}}]),[{register:function(l){var D=bIW(l),U;
(U=l().playerApi)==null||U.addEventListener("onStateChange",D);return function(){}}},
{register:function(l){var D=g2q(l),U;(U=l().playerApi)==null||U.addEventListener("onPlaybackRateChange",D);return function(){}}},
{register:function(l){var D=uGT(l),U;(U=l().playerApi)==null||U.addEventListener("onVideoDataChange",D);return function(){}}},
{register:function(l){var D=v2$(l),U,n;(U=l())==null||(n=U.playerApi)==null||n.addEventListener("onVideoProgress",D);return function(){}}}]);var Ju$=_.w(function(l){var D=l.data;var U=function(){return _.C3("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+D().playbackRate})};
return _.g(_.v,{cond:function(){return D().playbackRate&&D().playbackRate!==1},
then:function(){return _.g("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.g("div",{class:"ytPlaybackRateOverlayOverlay"},_.g(PV5,{direction:1,size:"small"}),_.g("div",{class:"ytPlaybackRateOverlayLabel"},U)))}})},"Mi");var LXH=_.w(function(l){var D=l.data;return _.g("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.g(_.v,{cond:function(){var U,n=(U=D())==null?void 0:U.playerResponse,y;return n==null?void 0:(y=n.paidContentOverlay)==null?void 0:y.paidContentOverlayRenderer},
then:function(U){return _.g(GI$,{data:U})}}))},"Oi"),qJ8=_.w(function(l){var D=l.props;
var U=l.data;var n=l.options;var y=function(){var u,Q,G,J;return(u=U())==null?void 0:(Q=u.playerResponse)==null?void 0:(G=Q.playerConfig)==null?void 0:(J=G.inlinePlaybackConfig)==null?void 0:J.showAudioControls},A=function(){var u,Q;
if(y()&&((u=n())==null?void 0:(Q=u.additionalButton)==null?void 0:Q.button)!==void 0){var G,J,L;u=(G=U())==null?void 0:(J=G.playerApi)==null?void 0:(L=J.getSize())==null?void 0:L.height;if(!(u===void 0||u<180)){var R,a;return(R=n())==null?void 0:(a=R.additionalButton)==null?void 0:a.button}}},C=function(){var u,Q;
return(u=n())==null?void 0:(Q=u.additionalButton)==null?void 0:Q.thumbnailOverlayButtonRenderers},h=function(){var u,Q;
return(u=n())==null?void 0:(Q=u.additionalButton)==null?void 0:Q.thumbnailOverlayButtonViewModels},b=function(){var u=[_.g(QnJ,{volumeProps:D})],Q;
((Q=n())==null?0:Q.hideCaptionsToggleButton)||u.push(_.g(CV2,{playerControlsProps:D}));A()===1&&u.push(_.g(yur,{playerApi:function(){return D().playerApi}}));
A()===2&&u.push(_.g(AuJ,{appApi:function(){return D().appApi}}));
A()===3&&u.push(_.g(WXJ,{playerApi:function(){return D().playerApi}}));
Q=C();if(A()===4&&Q){Q=_.B(Q);for(var G=Q.next(),J={};!G.done;J={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$603:void 0},G=Q.next()){G=G.value;J.tooltip$jscomp$2=G.tooltip;var L=void 0,R=void 0;J.ariaLabel$jscomp$19=((L=G.accessibility)==null?void 0:(R=L.accessibilityData)==null?void 0:R.label)||J.tooltip$jscomp$2;L=void 0;J.icon$jscomp$50=(L=G.icon)==null?void 0:L.iconType;J.command$jscomp$603=G.command;J.tooltip$jscomp$2&&J.ariaLabel$jscomp$19&&J.icon$jscomp$50&&
u.push(_.g(BXP,{title:function(a){return function(){return a.tooltip$jscomp$2}}(J),
ariaLabel:function(a){return function(){return a.ariaLabel$jscomp$19}}(J),
icon:function(a){return function(){return a.icon$jscomp$50}}(J),
command:function(a){return function(){return a.command$jscomp$603}}(J)}))}}Q=h();
if(A()===4&&Q)for(Q=_.B(Q),G=Q.next(),J={};!G.done;J={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$604:void 0,trackingParamsVeType:void 0},G=Q.next())G=G.value,J.tooltip$jscomp$3=G.title,J.ariaLabel$jscomp$20=G.accessibilityText||J.tooltip$jscomp$3,J.icon$jscomp$51=G.iconName,J.command$jscomp$604=_.te(G.onTap),R=L=void 0,J.trackingParamsVeType=((L=G.loggingDirectives)==null?0:L.trackingParams)?(R=NVv(_.Oc(G.loggingDirectives.trackingParams)))==null?void 0:
_.Qp(R,2):void 0,J.tooltip$jscomp$3&&J.ariaLabel$jscomp$20&&J.icon$jscomp$51&&u.push(_.g(BXP,{title:function(a){return function(){return a.tooltip$jscomp$3}}(J),
ariaLabel:function(a){return function(){return a.ariaLabel$jscomp$20}}(J),
icon:function(a){return function(){return a.icon$jscomp$51}}(J),
command:function(a){return function(){return a.command$jscomp$604}}(J),
visualElementId:function(a){return function(){return a.trackingParamsVeType}}(J)}));
return u};
return _.g(_.v,{cond:y,then:function(){return _.g("div",{class:"ytInlinePlayerControlsTopRightControls"},_.g(_.wt,{each:b},function(u){return _.g("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.g("div",{class:"ytInlinePlayerControlsButtonIcon"},u))}))}})},"Pi"),ZUH=_.w(function(l){var D=l.props;
var U=l.data;var n=l.options;l={};l=_.DV("ytInlinePlayerControlsBottomRightControls",(l.ytInlinePlayerControlsBottomRightControlsHidden=function(){var y;return LQ8(U(),n())&&((y=n())==null?void 0:y.insetProgressBar)&&(D().isHovering||D().isDragging)},l));
return _.g("div",{class:l},_.g(Mdq,{data:U}),_.g(_.v,{cond:function(){var y;return!((y=n())==null?0:y.hideTimeDisplay)},
then:function(){return _.g(R9P,{props:D,data:U})}}))},"Qi"),Mdq=_.w(function(l){var D=l.data;
return _.g(_.uI,{data:function(){var U;return n25((U=D())==null?void 0:U.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:h98})},"Ri"),R9P=_.w(function(l){var D=l.props;
var U=l.data;return _.g(_.v,{cond:function(){return D().isLive},
then:function(){return _.g(e9P,{props:D,data:U})},
else:function(){return _.g(mNH,{props:D,data:U})}})},"Si"),mNH=_.w(function(l){var D=l.props;
var U=l.data;var n=_.dM(function(){var y;return y62((y=U())==null?void 0:y.thumbnailOverlays)},void 0,"AFvHu");
return _.g("div",{class:_.DV("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.se.PLAYER_TIME_ELAPSED+" "+_.Yws(D().playedTime)}},_.g(_.AQ,{data:function(){var y=_.Yws(D().videoDuration-D().playedTime);
return Object.assign({},{type:17,text:y},n())}}))},"Ti"),as2=_.w(function(l){l=l.badgeShapeData;
return _.g("div",{class:_.DV("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.g(_.AQ,{data:l}))},"Ui"),e9P=_.w(function(l){var D=l.data;
l=_.dM(function(){if(_.q("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var n,y;return(n=D())==null?void 0:(y=n.thumbnailOverlays)==null?void 0:y.find(function(A){return A.thumbnailOverlayTimeStatusRenderer||A.thumbnailOverlayBadgeViewModel})}},void 0,"y9XYN");
var U=_.dM(function(){var n,y,A,C,h,b;return _.FcN((n=D())==null?void 0:(y=n.playerApi)==null?void 0:(A=y.getSize())==null?void 0:A.width,(C=D())==null?void 0:(h=C.playerApi)==null?void 0:(b=h.getSize())==null?void 0:b.height)},void 0,"anNoxe");
return _.g(_.v,{cond:l,then:function(n){return _.g(_.uI,{data:n},{thumbnailOverlayTimeStatusRenderer:function(y){var A=y.data;y=_.dM(function(){return _.aK3(A(),0)},void 0,"Ncdcme");
return _.g(as2,{badgeShapeData:y})},
thumbnailOverlayBadgeViewModel:function(y){return _.g(_.tH8,{data:y.data,thumbnailSize:U})}})},
else:function(){var n={type:18,text:_.se.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.g(as2,{badgeShapeData:function(){return n}})}})},"Vi"),tdq=_.w(function(l){var D=l.props;
var U=l.data;var n=l.options;return _.g(_.O6$,{progressBarProps:D,config:function(){var y,A=_.M((y=U())==null?void 0:y.multiMarkersPlayerBar,_.$Py),C;y=((C=n())==null?0:C.insetProgressBar)?2:1;var h;C=(h=n())==null?void 0:h.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:y,chapterData:A,isInlinePlayback:!0,doSeekOnClick:C,playheadDotBehavior:C?1:0}}})},"Wi");_.Tt(_.w(function(l){var D=l.data;var U=l.appApi;var n=l.options;var y=PUr(D,J6H(U));l={};U={};return _.g("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.g("div",{class:_.DV("ytInlinePlayerControlsDarkenedOverlay",(l.ytInlinePlayerControlsDarkenedOverlayShow=function(){return y().isHovering},l))}),_.g(bUW,null),_.g(Ju$,{data:y}),_.g(LXH,{data:D}),_.g(nf$,{playerControlsProps:y,
isShortsPage:!1}),_.g("div",{class:_.DV((U.ytInlinePlayerControlsControlsHidden=function(){return y().isDragging},U))},_.g(qJ8,{props:y,
data:D,options:n}),_.g(ZUH,{props:y,data:D,options:n})),_.g(_.v,{cond:function(){return LQ8(D(),n())},
then:function(){return _.g(tdq,{props:y,data:D,options:n})}}))},"Ni"),"yt-inline-player-controls",{props:{data:_.C$,
appApi:_.ND,options:_.C$}});var Ee=function(){var l=_.p.apply(this,arguments)||this;l.opts=null;l.playerControlsData=null;l.playerControlsAppApi={openInMiniplayer:function(){l.openInMiniplayer()}};
l.playerControlsOptions={};l.noAnimation=!1;l.playbackIntentTriggered=!1;l.positionData=null;l.hidden=!0;l.active=!1;l.playing=!1;l.persistentPanelVisible=!1;l.videoPreviewDataIndex=0;l.JSC$19508_playerPromise=null;l.player=null;l.enableAudioControls=!1;l.hasBeenUnmuted=!1;l.captionsHaveBeenTurnedOff=!1;l.JSC$19508_playerEvents=new Map;l.videoPreviewFetchRequest=null;l.scheduledPreviewEndJobId=null;l.JSC$19508_preventProgressSaveTimer=null;l.watchEndpointStartTimeUpdaterInterval=null;l.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};l.windowOnBlurFn=function(){l.deactivate()};
return l};
_.Z(Ee,_.p);_.W=Ee.prototype;
_.W.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.W.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19508_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19508_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19508_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19508_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.CY(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.CY(this,this.onScroll))};
_.W.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.CY(this,this.onScroll))};
_.W.onPageTypeChange=function(){this.deactivate()};
_.W.onWindowResized=function(){this.deactivate()};
_.W.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.W.onCaptionsChanged=function(l){l=!!l.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!l);this.setCaptionSize()};
_.W.setCaptionSize=function(){var l;if(this.active&&!this.captionsHaveBeenTurnedOff&&((l=this.player)==null?0:l.getCaptionWindowContainerId())){var D;(D=this.player)==null||D.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.W.currentPageAllowed=function(){return!this.isWatchPage};
_.W.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.q("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var l=this.positionData,D=l.initialTopPosition,U=l.initialHorizontalPosition;_.Wg(this.hostElement,{"--ytd-video-preview-translate-left":l.finalHorizontalPosition-U+"px","--ytd-video-preview-translate-top":l.finalTopPosition-D+"px","--ytd-video-preview-original-top-position":D+
"px","--ytd-video-preview-original-horizontal-position":U+"px","--ytd-video-preview-initial-scale":"scale("+l.initialScale+")","--ytd-video-preview-width":l.videoPreviewWidth+"px","--ytd-video-preview-height":l.videoPreviewHeight+"px"});return!0};
_.W.isOutOfBounds=function(l){var D=l.initialHorizontalPosition+12;l=D+l.videoPreviewWidth>window.innerWidth;return D<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&D<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&D<72||l};
_.W.handleOpenVideoPreviewAction=function(l){var D=this,U;return _.P(function(n){if(!D.currentPageAllowed())return n.return(0);D.opts=l;return(U=D.alignVideoPreviewForAnimation(l.thumbnail))?n.return(D.activate()):n.return(0)})};
_.W.onMouseLeave=function(l){var D,U;(D=this.opts)==null||(U=D.mouseleaveCallback)==null||U.call(D);this.shouldDeactivateOnMouseLeave(l)&&this.deactivate()};
_.W.onScroll=function(){var l,D;((l=this.opts)==null?0:l.isAutoplay)&&((D=this.opts)==null?0:D.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.W.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Tn.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.W.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.W.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Ee.JSC$19507_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ee.JSC$19507_CLICK_LOCATION_ID_MAP)};
_.W.shouldDeactivateOnMouseLeave=function(l){l=l.relatedTarget;if(!l)return!0;var D;return(D=this.opts)!=null&&D.mediaRenderer?!_.lJ(this.opts.mediaRenderer).contains(l):!0};
_.W.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.W.onPlaybackStart=function(){var l=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$19508_preventProgressSaveTimer=
_.Vu(_.Tn,function(){l.resetPreventProgressSaveTimer()},1E4);
var D;if((D=this.opts)==null?0:D.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Vu(_.Tn,function(){l.hasMultipleVideoPreviews()?l.startPlaybackForNextVideo():l.deactivate()},this.opts.videoPreviewDurationMs);
var U;this.player.setGlobalCrop(((U=this.opts)==null?0:U.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.W.getRoundedCornersSize=function(){var l;if((l=this.opts)==null?0:l.roundedCornersSize){var D;return(D=this.opts)==null?void 0:D.roundedCornersSize}var U;if((U=this.opts)==null?0:U.enableRounding){var n;if(((n=this.opts)==null?void 0:n.thumbnailSize)==="small")return 1;var y;if(((y=this.opts)==null?void 0:y.thumbnailSize)==="medium")return 2;var A;if(((A=this.opts)==null?void 0:A.thumbnailSize)==="large")return 3}return _.q("web_imp_inset_progress_bar")?3:0};
_.W.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.W.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.W.onMediaContainerClick=function(l){this.isShortcutClick(l)||(this.navigateToWatch(l),l.preventDefault(),l.stopPropagation())};
_.W.activate=function(){var l=this,D,U,n,y,A,C,h,b,u;return _.P(function(Q){switch(Q.nextAddress){case 1:if(!l.currentPageAllowed())return Q.return(0);U=(D=l.videoPreviewData)==null?void 0:D.inlinePlaybackEndpoint;n=_.jZ.instance;if(!U||!n)return Q.return(0);l.playbackIntentTriggered=!0;((y=l.opts)==null?0:y.mediaRenderer)&&((A=l.opts)==null||!A.isAutoplay)&&iIP(l.opts.mediaRenderer,function(){l.deactivate()});
_.u6(l,function(){l.revealPreviewUi()});
C={};_.q("enable_unknown_lact_fix_on_html5")&&(_.Jc().resolve(_.vK),C.lact=_.Gj());l.videoPreviewFetchRequest=T0W(n,l.getInlinePlaybackRequestData(l.videoPreviewData),C);_.ZY(Q,2);return Q.yield(l.videoPreviewFetchRequest,4);case 4:h=Q.yieldResult;if(((b=h)==null?void 0:(u=b.playabilityStatus)==null?void 0:u.status)==="OK")return Q.return(l.handlePlayerResponse(h));throw Error("fk");case 2:_.kF(Q),l.deactivate();case 3:return Q.return(1)}})};
_.W.getInlinePlaybackRequestData=function(l){var D,U=_.q("web_imp_player_mute_params")?((D=this.opts)==null?void 0:D.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:l.inlinePlaybackEndpoint,startPlaybackInMutedState:U}};
_.W.handlePlayerResponse=function(l){var D=this,U,n,y,A,C,h,b,u,Q,G,J,L,R,a;return _.P(function(S){if(S.nextAddress==1){U=D.getInlinePlaybackVideoId();if(!(((n=l)==null?0:(y=n.videoDetails)==null?0:y.videoId)&&D.currentPageAllowed()&&D.playbackIntentTriggered&&D.opts&&U))return D.deactivate(),S.return(0);if(l.videoDetails.videoId!==U)return S.return(0);D.enableAudioControls=!!((A=l.playerConfig)==null?0:(C=A.inlinePlaybackConfig)==null?0:C.showAudioControls);l.trackingParams=D.getInlinePlaybackTrackingParams();
if(!D.inlinePlayer)return S.return(0);h={};if(u=_.M((b=D.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint,_.za))h.watch_endpoint=u;if(D.videoPreviewData){var d,c=(d=_.M(D.videoPreviewData.inlinePlaybackEndpoint,_.za))==null?void 0:d.startTimeSeconds;c!==void 0&&(l.playerConfig||(l.playerConfig={}),l.playerConfig.playbackStartConfig||(l.playerConfig.playbackStartConfig={}),l.playerConfig.playbackStartConfig.startPosition||(l.playerConfig.playbackStartConfig.startPosition={}),l.playerConfig.playbackStartConfig.startSeconds=
c,l.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(c*1E3))}D.inlinePlayer.loadVideoWithPlayerResponse(l,h);if(D.JSC$19508_playerPromise)return S.jumpTo(2);D.JSC$19508_playerPromise=D.inlinePlayer.getPlayerPromise();return S.yield(D.JSC$19508_playerPromise,3)}S.nextAddress!=2&&(Q=S.yieldResult,Q.setInlinePreview(!0),G=!_.q("web_imp_theater_bugfix"),Q.setSizeStyle(!1,G),D.ytPlayerListenerBehavior.listenToPlayerEvents(Q,D.JSC$19508_playerEvents),D.player=Q,_.O9(D.hostElement,
"player-api-ready"));((J=D.opts)==null?0:J.showPlayerControls)&&D.videoPreviewData&&D.player&&(D.playerControlsData={playerResponse:l,isInlinePlayback:!0,thumbnailOverlays:D.videoPreviewData.thumbnailOverlays,playerApi:D.player},D.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!D.unroundCornersForPlayback,additionalButton:D.getAdditionalButtonType(D.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(L=D.opts)==null?void 0:L.hideTimeDisplay,hideScrubbingControls:(R=D.opts)==
null?void 0:R.hideScrubber,hideCaptionsToggleButton:(a=D.opts)==null?void 0:a.hideCaptionsToggleButton});return S.return(2)})};
_.W.revealPreviewUi=function(){var l=this;this.playbackIntentTriggered&&_.QmK(this,function(){l.hasThumbnailPositionChangedSinceTriggered()||(l.updateActiveState(!0),l.noAnimation=!1)})};
_.W.hasThumbnailPositionChangedSinceTriggered=function(){var l=this.positionData,D=this.getThumbnailPositionData();return(l==null?void 0:l.initialTopPosition)!==(D==null?void 0:D.initialTopPosition)||(l==null?void 0:l.initialHorizontalPosition)!==(D==null?void 0:D.initialHorizontalPosition)};
_.W.getThumbnailPositionData=function(){var l,D;if((D=this.opts)==null||!D.thumbnail)return null;D=this.opts.thumbnail;var U=((l=this.opts)==null?0:l.cropPlayerToFillThumbnailHorizontally)?!1:!0;var n=D.getBoundingClientRect();l=n.width;D=n.height;var y=n.top+window.scrollY;n=n.left+window.scrollX;var A=U?Math.ceil(l):l;U=U?Math.ceil(D):D;var C=l/A;l={initialScale:C,initialTopPosition:y-12*C,finalTopPosition:y-12-(U-D)/2,initialHorizontalPosition:n-(12+(A-l)/2),finalHorizontalPosition:n-12-(A-l)/
2,videoPreviewWidth:A,videoPreviewHeight:U};return l};
_.W.updateActiveState=function(l){this.active=l;this.ytdReduxBehavior.dispatch(_.V0({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:l}))};
_.W.stopPlayer=function(l){l=l.resetWatchEndpointStartTime===void 0?!1:l.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(l)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Tn.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.W.deactivate=function(l){l=l===void 0?{}:l;l=l.resetWatchEndpointStartTime===void 0?!1:l.resetWatchEndpointStartTime;Ah&&(Ah.disconnect(),Ah=null);this.stopPlayer({resetWatchEndpointStartTime:l});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.W.isValidThumbnailOverlayButton=function(l,D){l=l.thumbnailOverlayButtonRenderer;var U;return!!l&&!!l.tooltip&&!((U=l.icon)==null||!U.iconType)&&D.includes(l.icon.iconType)};
_.W.isValidThumbnailOverlayButtonViewModel=function(l,D){var U;l=_.M((U=l.thumbnailOverlayButtonViewModel)==null?void 0:U.overlayButton,_.CM);return!!l&&!!l.title&&!!l.iconName&&D.includes(l.iconName)};
_.W.getAdditionalButtonType=function(l){var D=this;if(_.q("web_imp_fastforward_button"))return{button:1};if(_.q("web_imp_miniplayer_button"))return{button:2};if(_.q("web_imp_playback_speed_button"))return{button:3};var U=["BOX_STACK_3"],n=(l||[]).filter(function(A){return D.isValidThumbnailOverlayButton(A,U)}).map(function(A){return A.thumbnailOverlayButtonRenderer});
if(n.length)return{button:4,thumbnailOverlayButtonRenderers:n};var y=["BOX_STACK_3"];l=(l||[]).filter(function(A){return D.isValidThumbnailOverlayButtonViewModel(A,y)}).map(function(A){return _.M(A.thumbnailOverlayButtonViewModel.overlayButton,_.CM)});
if(l.length)return{button:4,thumbnailOverlayButtonViewModels:l}};
_.W.allowCaptions=function(){var l;return!((l=this.opts)==null?0:l.forceCaptionsOff)};
_.W.allowUnmuting=function(){var l;return this.enableAudioControls&&!((l=this.opts)==null?0:l.forceMutedVolume)};
_.W.beginStartTimeUpdater=function(){var l=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Xi(function(){l.updateWatchEndpointStartTime()},1E3)};
_.W.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.W.resetPreventProgressSaveTimer=function(){this.JSC$19508_preventProgressSaveTimer!==null&&(_.Tn.cancelJob(this.JSC$19508_preventProgressSaveTimer),this.JSC$19508_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.W.updateWatchEndpointStartTime=function(l){var D=this.videoPreviewData;if(this.player&&D!=null&&D.inlinePlaybackEndpoint&&!this.JSC$19508_preventProgressSaveTimer){l=l?0:Math.floor(this.player.getCurrentTime());var U=_.M(D.navigationEndpoint,_.za);U&&(U.startTimeSeconds=l);if(D=_.M(D.inlinePlaybackEndpoint,_.za))D.startTimeSeconds=l}};
_.W.isShortcutClick=function(l){return!!l&&(l.ctrlKey||l.shiftKey||l.metaKey)};
_.W.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.W.openInMiniplayer=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1){U=(D=l.videoPreviewData)==null?void 0:D.navigationEndpoint;if(!U)return n.return();_.r3().lockupActivation=!0;return n.yield(_.siy(_.Jc().resolve(_.kq),U),2)}_.r3().userActivation=!0;_.Kz(n)})};
_.W.navigateToWatch=function(l){var D,U=(D=this.videoPreviewData)==null?void 0:D.navigationEndpoint;if(U){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(U,l,!0);else{var n;_.q("web_thumbnail_to_watch_transition")&&((n=this.opts)==null?0:n.thumbnail)&&_.ft5(_.Jc().resolve(_.NB),this.opts.thumbnail);_.O9(this.hostElement,"yt-navigate",{endpoint:U})}this.deactivate()}};
_.W.getInlinePlaybackVideoId=function(){var l,D;return(D=_.M((l=this.videoPreviewData)==null?void 0:l.inlinePlaybackEndpoint,_.za))==null?void 0:D.videoId};
_.W.getInlinePlaybackTrackingParams=function(){var l,D;return(l=this.videoPreviewData)==null?void 0:(D=l.inlinePlaybackEndpoint)==null?void 0:D.clickTrackingParams};
_.W.hasMultipleVideoPreviews=function(){var l;return!!(((l=this.opts)==null?0:l.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.W.startPlaybackForNextVideo=function(){var l;(l=this.opts)!=null&&l.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())};
_.QP.Object.defineProperties(Ee.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.opts)==null?0:l.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.opts)==null||!l.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 l;if(Array.isArray((l=this.opts)==null?void 0:l.videoPreviewData)){var D;return(D=this.opts)==null?void 0:D.videoPreviewData[this.videoPreviewDataIndex]}var U;return(U=this.opts)==null?void 0:U.videoPreviewData}}});
Ee.prototype.onIsAdsVideoChange=Ee.prototype.onIsAdsVideoChange;Ee.prototype.onInlinePreviewIsEnabledChange=Ee.prototype.onInlinePreviewIsEnabledChange;Ee.prototype.optsChanged=Ee.prototype.optsChanged;Ee.prototype.onMouseLeave=Ee.prototype.onMouseLeave;Ee.prototype.onPersistentPanelVisibleChange=Ee.prototype.onPersistentPanelVisibleChange;Ee.JSC$19507_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
Ee.JSC$19507_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Ee.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ee.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],Ee.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],Ee.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Ee.prototype,"componentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ee.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],Ee.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.qn.YtSparklesClickLocationBehavior),_.T("design:type",Object)],Ee.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ee.prototype,"opts",void 0);_.E([_.K(),_.T("design:type",Object)],Ee.prototype,"playerControlsData",void 0);_.E([_.K(),_.T("design:type",Object)],Ee.prototype,"playerControlsAppApi",void 0);
_.E([_.K(),_.T("design:type",Object)],Ee.prototype,"playerControlsOptions",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ee.prototype,"noAnimation",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ee.prototype,"hidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ee.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ee.prototype,"playing",void 0);
_.E([_.K({selector:_.j4o}),_.T("design:type",Boolean)],Ee.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.K(),_.T("design:type",String)],Ee.prototype,"pagePath",void 0);_.E([_.K({selector:_.c9K}),_.T("design:type",Boolean)],Ee.prototype,"isWatchPage",void 0);_.E([_.K({selector:_.xv.persistentPanelVisibleSelector}),_.T("design:type",Object)],Ee.prototype,"persistentPanelVisible",void 0);
_.E([_.t("videoPreviewData"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ee.prototype,"thumbnailData",null);_.E([_.t("opts","active"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ee.prototype,"hidePlayerControls",null);_.E([_.t("opts"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ee.prototype,"isAdsVideo",null);
_.E([_.t("opts"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ee.prototype,"roundedCornersSmall",null);_.E([_.t("opts"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ee.prototype,"roundedCornersMedium",null);_.E([_.t("opts"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ee.prototype,"roundedCornersLarge",null);
_.E([_.t("opts"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ee.prototype,"unroundCornersForPlayback",null);_.E([_.t("opts","videoPreviewDataIndex"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ee.prototype,"videoPreviewData",null);_.E([_.K(),_.T("design:type",Object)],Ee.prototype,"videoPreviewDataIndex",void 0);_.E([_.gP("#inline-player"),_.T("design:type",Object)],Ee.prototype,"inlinePlayer",void 0);
_.E([_.Pg("persistentPanelVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ee.prototype,"onPersistentPanelVisibleChange",null);_.E([_.hj("mouseleave"),_.T("design:type",Function),_.T("design:paramtypes",[MouseEvent]),_.T("design:returntype")],Ee.prototype,"onMouseLeave",null);_.E([_.GY("opts"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ee.prototype,"optsChanged",null);
_.E([_.GY("inlinePreviewIsEnabled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ee.prototype,"onInlinePreviewIsEnabledChange",null);_.E([_.Pg("isAdsVideo"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ee.prototype,"onIsAdsVideoChange",null);_.E([_.x({is:"ytd-video-preview",disableElementRegistration:!0})],Ee);
_.r(Ee,"ytd-video-preview",function(){if(UNJ!==void 0)return UNJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return UNJ=l},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.hF=function(l){return function(D,U){var n=l||U.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(D,U,{get:function(){var y;return this.$?this.$[n]:(y=_.bJ(this))==null?void 0:y.querySelector("#"+n)},
enumerable:!0,configurable:!0})}};_.Ps=function(l){l=l===void 0?!1:l;_.xT.call(this);this.pubSub_=new _.cS(l);_.m7(this,this.pubSub_)};
_.HI(_.Ps,_.xT);_.Ps.prototype.subscribe=function(l,D,U){return this.isDisposed()?0:this.pubSub_.subscribe(l,D,U)};
_.Ps.prototype.unsubscribe=function(l,D,U){return this.isDisposed()?!1:this.pubSub_.unsubscribe(l,D,U)};
_.Ps.prototype.unsubscribeByKey=function(l){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(l)};
_.Ps.prototype.publish=function(l,D){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var ZmO=function(){_.ww("ypcRedeemFlowStarted")},ezW=function(l){_.ww("ypcRedeemFlowFailed",void 0,void 0,void 0,l)},mr1=function(l,D,U){D&&U&&(l.videos.forEach(function(n){n.videoId===D&&(n.itemId=U)}),l.recommendedVideos.forEach(function(n){n.videoId===D&&(n.itemId=U)}))};var a7c;var thI;/*

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
*/
_.e0({_template:function(){if(thI!==void 0)return thI;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;a7c===void 0&&(a7c=document.createElement("template"));var n=a7c;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return thI=l},
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(l,D){var U=this._resolveSrc(l);U!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",l===""||D?this._setLoading(!1):(this._resolvedSrc=U,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 l=this.$.sizedImgDiv.style,D=this.$.placeholder.style;l.backgroundSize=D.backgroundSize=this.sizing;l.backgroundPosition=D.backgroundPosition=this.sizing?this.position:"";l.backgroundRepeat=D.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(l){l=_.Zm(l,this.$.baseURIAnchor.href);l.length>=2&&l[0]==="/"&&l[1]!=="/"&&(l=(location.origin||location.protocol+"//"+location.host)+l);return l}});var X5O;var S71;_.e0({_template:function(){if(S71!==void 0)return S71;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;X5O===void 0&&(X5O=document.createElement("template"));var n=X5O;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return S71=l},
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(l){return l?"false":"true"},
_headingChanged:function(l){var D=this.getAttribute("heading"),U=this.getAttribute("aria-label");typeof U==="string"&&U!==D||this.setAttribute("aria-label",l)},
_computeHeadingClass:function(l){return l?" over-image":""},
_computeAnimated:function(l){return l}});var kvI=new _.y4("addRendererToItemSectionAction");var drI;var x_=function(){return _.p.apply(this,arguments)||this};
_.Z(x_,_.p);x_.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],x_.prototype,"rendererBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],x_.prototype,"dismissibleItemBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],x_.prototype,"rendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],x_.prototype,"data",void 0);_.E([_.x({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],x_);
_.r(x_,"ytd-comment-history-entry-renderer",function(){if(drI!==void 0)return drI;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return drI=l},{mode:1});var Kkk;_.RL("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.RL("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var jo=function(){return _.p.apply(this,arguments)||this};
_.Z(jo,_.p);_.W=jo.prototype;_.W.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.onKeyUp=function(l){if(l.keyCode===13)this.onTap()};
_.W.onTap=function(){this.data.recordClickEndpoint&&_.Jc().resolve(_.qK).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var l=this.data.navigationEndpoint;l&&_.M(l,_.ic)&&_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}})};
_.W.readChanged=function(){var l;_.nY(this.hostElement,"unread",!((l=this.data)==null?0:l.read))};
_.W.dataChanged=function(){this.data&&_.nY(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.W.computeThumbnailSize=function(){var l;return((l=this.data)==null?0:l.highPriorityNotification)?32:48};
_.W.getEndpointURL=function(l){return l&&!_.M(l,_.ic)?this.componentBehavior.computeHref_(l):null};
_.W.getEndpointData=function(l){return l&&!_.M(l,_.ic)?l:null};
jo.prototype.computeThumbnailSize=jo.prototype.computeThumbnailSize;jo.prototype.dataChanged=jo.prototype.dataChanged;jo.prototype.readChanged=jo.prototype.readChanged;jo.prototype.onKeyUp=jo.prototype.onKeyUp;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],jo.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jo.prototype,"data",void 0);_.E([_.K({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.T("design:type",Number)],jo.prototype,"thumbnailSize",void 0);_.E([_.hj("keyup"),_.T("design:type",Function),_.T("design:paramtypes",[KeyboardEvent]),_.T("design:returntype")],jo.prototype,"onKeyUp",null);
_.E([_.Pg("data.read"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jo.prototype,"readChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jo.prototype,"dataChanged",null);_.E([_.Pg("data.highPriorityNotification"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jo.prototype,"computeThumbnailSize",null);
_.E([_.x({is:"ytd-notification-renderer",disableElementRegistration:!0})],jo);
_.r(jo,"ytd-notification-renderer",function(){if(Kkk!==void 0)return Kkk;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Kkk=l},{mode:1});var cyh;var FT=function(){return _.p.apply(this,arguments)||this};
_.Z(FT,_.p);FT.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"}}}};
FT.prototype.computeActionButtonClass=function(l){return!l.actionButtons||l.actionButtons.length<=1?"single-button":l.description?"vertical-buttons":"horizontal-buttons"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],FT.prototype,"data",void 0);_.E([_.x({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],FT);
_.r(FT,"ytd-playlist-show-metadata-renderer",function(){if(cyh!==void 0)return cyh;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return cyh=l},{mode:1});var p5W;_.RL("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var oF=function(){return _.p.apply(this,arguments)||this};
_.Z(oF,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],oF.prototype,"data",void 0);_.E([_.x({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],oF);
_.r(oF,"ytd-purchase-item-renderer",function(){if(p5W!==void 0)return p5W;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return p5W=l},{mode:1});var xrc;var jgO={};jgO.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(l){if(l)return l.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(l){if(l==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.RL("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var wK=function(){return _.p.apply(this,arguments)||this};
_.Z(wK,_.p);wK.prototype.onYtNavigate=function(l){var D=this.openPopupBehavior.getNavigationEndpointPopupAction(l.detail.endpoint);D&&(l.stopPropagation(),this.openPopupBehavior.openPopup(D))};
wK.prototype.onYtNavigate=wK.prototype.onYtNavigate;_.E([_.m(jgO.YtSimpleTextSectionBehavior),_.T("design:type",Object)],wK.prototype,"ytSimpleTextSectionBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],wK.prototype,"openPopupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],wK.prototype,"data",void 0);
_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],wK.prototype,"onYtNavigate",null);_.E([_.x({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],wK);
_.r(wK,"ytd-simple-text-section-renderer",function(){if(xrc!==void 0)return xrc;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return xrc=l},{mode:1});var Fk1;_.RL("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var o11=function(){return _.p.apply(this,arguments)||this};
_.Z(o11,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],o11.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],o11.prototype,"data",void 0);_.E([_.x({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],o11);
_.r(o11,"ytd-unlimited-page-feature-info-renderer",function(){if(Fk1!==void 0)return Fk1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Fk1=l},{mode:1});var w5H;var ryl;var rK=function(){return _.p.apply(this,arguments)||this};
_.Z(rK,_.p);rK.prototype.dataChanged=function(){if(this.data){var l=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);l&&(l=_.IO(l,screen.width),this.hostElement.style.backgroundImage="url("+l+")")}};
rK.prototype.dataChanged=rK.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],rK.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rK.prototype,"dataChanged",null);_.E([_.x({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],rK);
_.r(rK,"ytd-post-redemption-section-renderer",function(){if(ryl!==void 0)return ryl;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return ryl=l},{mode:1});var zzk;var zB=function(){return _.p.apply(this,arguments)||this};
_.Z(zB,_.p);zB.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],zB.prototype,"data",void 0);_.E([_.x({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],zB);
_.r(zB,"ytd-ypc-post-redemption-renderer",function(){if(zzk!==void 0)return zzk;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return zzk=l},{mode:1});_.RL("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var $_=function(){var l=_.p.apply(this,arguments)||this;l.MIN_CODE_LENGTH=12;l.MAX_CODE_LENGTH=24;return l};
_.Z($_,_.p);_.W=$_.prototype;_.W.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.W.created=function(){this.riskService=new _.jM$;this.loadPaymentThenable=_.oQ9(_.H3("YPC_MB_URL"))};
_.W.ready=function(){var l=this;this.code.addEventListener("keypress",function(D){l.onCodeInputKeypress(D)})};
_.W.dataChanged=function(){var l=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(D){D=_.B(D);for(var U=D.next();!U.done;U=D.next())U=U.value,U.type==="attributes"&&U.attributeName==="dark"&&l.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.W.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var l=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+l+")")}};
_.W.computeRedeemButton=function(l){(l=this.get("redeemButton.buttonRenderer",l))&&(l=Object.assign({},l,{serviceEndpoint:void 0}));return l};
_.W.onRedeemButtonTap=function(l){l.stopPropagation();ZmO();this.redeemCode()};
_.W.redeemCode=function(){var l=this;this.isLoading=!0;var D=this.riskService.init();_.dx([D,this.loadPaymentThenable]).then(function(){var U=l.data.redeemButton.buttonRenderer.serviceEndpoint,n=_.FMc(),y=_.Nd.payments.business.integration.ClientTokenFactory.createClientToken(_.M(U,_.R5_).countryCode,n);n={c:l.code.value.trim(),rd:window.btoa(n),ctk:y};U&&_.Jc().resolve(_.qK).resolveCommand(U,{form:Object.assign({},n,{element:l.hostElement})})},function(){l.showGenericError();
ezW("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.ll(Error("No"))})};
_.W.onYtServiceRequestCompleted=function(l){l.stopPropagation();this.isLoading=!1;var D,U;this.errorMessage=(D=l.detail)==null?void 0:(U=D.data)==null?void 0:U.errorMessage;var n,y;this.postRedemptionRenderer=(n=l.detail)==null?void 0:(y=n.data)==null?void 0:y.renderer;var A,C;if(l=(A=l.detail)==null?void 0:(C=A.data)==null?void 0:C.redirectEndpoint)this.isLoading=!0,_.O9(this.hostElement,"yt-navigate",{endpoint:l});this.errorMessage?ezW("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
l)&&_.ww("ypcRedeemFlowSucceeded")};
_.W.onYtServiceRequestError=function(l){l.stopPropagation();this.isLoading=!1;if(l=this.get("detail.error.message",l))this.errorMessage=_.$B(l);ezW("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.W.onInvokeInstrumentManagerActionCompleted=function(l){l.stopPropagation();this.redeemCode()};
_.W.onInvokeInstrumentManagerActionError=function(l){l.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",l)){case "instrumentManagerLoadError":this.showGenericError();ezW("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();ezW("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.ww("ypcRedeemFlowCancelled")}};
_.W.onInput=function(){var l=this;_.Fs(this,"onInput",function(){var D=l.code.value.trim();l.redeemButtonDisabled=D.length<l.MIN_CODE_LENGTH||D.length>l.MAX_CODE_LENGTH},200)};
_.W.onCodeInputKeypress=function(l){l.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(ZmO(),this.redeemCode())};
_.W.computeImageUrl=function(l){return l?_.IO(l.thumbnails,600):null};
_.W.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
$_.prototype.onInvokeInstrumentManagerActionError=$_.prototype.onInvokeInstrumentManagerActionError;$_.prototype.onInvokeInstrumentManagerActionCompleted=$_.prototype.onInvokeInstrumentManagerActionCompleted;$_.prototype.onYtServiceRequestError=$_.prototype.onYtServiceRequestError;$_.prototype.onYtServiceRequestCompleted=$_.prototype.onYtServiceRequestCompleted;$_.prototype.dataChanged=$_.prototype.dataChanged;
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$_.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],$_.prototype,"isLoading",void 0);_.E([_.K(),_.T("design:type",Boolean)],$_.prototype,"redeemButtonDisabled",void 0);
_.E([_.K(),_.T("design:type",Object)],$_.prototype,"errorMessage",void 0);_.E([_.K(),_.T("design:type",Object)],$_.prototype,"postRedemptionRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],$_.prototype,"observer",void 0);_.E([_.gP("#code"),_.T("design:type",HTMLInputElement)],$_.prototype,"code",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$_.prototype,"dataChanged",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],$_.prototype,"onYtServiceRequestCompleted",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],$_.prototype,"onYtServiceRequestError",null);
_.E([_.hj("yt-invoke-instrument-manager-action-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],$_.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.E([_.hj("yt-invoke-instrument-manager-action-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],$_.prototype,"onInvokeInstrumentManagerActionError",null);_.E([_.x({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],$_);
_.r($_,"ytd-redeem-code-renderer",function(){if(w5H!==void 0)return w5H;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return w5H=l},{mode:1});var f7w;_.RL("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var NL=function(){var l=_.p.apply(this,arguments)||this;l.businessEmailDisplayState="HIDE_SECTION";return l};
_.Z(NL,_.p);_.W=NL.prototype;_.W.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}}}}}};
_.W.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"};
_.W.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.W.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.pI(_.gbh),this.businessEmailDisplayState="CAPTCHA"))};
_.W.onYtServiceRequestCompleted=function(l){var D;if((D=l.detail.data)==null?0:D.businessEmail)this.businessEmail=l.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var U;if((U=l.detail.data)==null?0:U.errorMessage)this.businessEmailErrorMessage=l.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.W.computeEmailHref=function(l){return"mailto:"+l};
_.W.computeSafeUrl=function(l){if(l)return _.Ng(l)};
_.W.onBusinessEmailCaptchaSubmit=function(){var l;(l=this.data)!=null&&l.onBusinessEmailRevealClickCommand&&(l=this.JSC$22225_captchaTextarea.value)&&(l={recaptcha_response_token:l,channel_id:this.data.channelId},_.Jc().resolve(_.qK).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},l,{element:this.hostElement})}))};
_.W.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.QP.Object.defineProperties(NL.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 l,D;return!((l=this.data)==null||!l.primaryLinks)&&!((D=this.data)==null?0:D.links)&&this.data.primaryLinks.every(function(U){return U.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var l,D;return!((l=this.data)==null||!l.primaryLinks)&&!((D=this.data)==null?0:D.links)&&!this.shouldShowNewLinks}}});
NL.prototype.onYtServiceRequestCompleted=NL.prototype.onYtServiceRequestCompleted;NL.prototype.dataChanged=NL.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],NL.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.gP("#g-recaptcha-response"),_.T("design:type",HTMLTextAreaElement)],NL.prototype,"JSC$22225_captchaTextarea",void 0);_.E([_.K(),_.T("design:type",Object)],NL.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],NL.prototype,"businessEmailDisplayState",void 0);_.E([_.K(),_.T("design:type",String)],NL.prototype,"businessEmail",void 0);_.E([_.K(),_.T("design:type",String)],NL.prototype,"businessEmailErrorMessage",void 0);
_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],NL.prototype,"hideDetailsSection",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],NL.prototype,"dataChanged",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],NL.prototype,"shouldShowNewLinks",null);_.E([_.t("data","shouldShowLinks"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],NL.prototype,"shouldShowLegacyLinks",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],NL.prototype,"onYtServiceRequestCompleted",null);_.E([_.x({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],NL);
_.r(NL,"ytd-channel-about-metadata-renderer",function(){if(f7w!==void 0)return f7w;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return f7w=l},{mode:1});var $rI;_.RL("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var ss=function(){return _.p.apply(this,arguments)||this};
_.Z(ss,_.p);ss.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ss.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],ss.prototype,"lockupContainerType",void 0);_.E([_.K(),_.T("design:type",String)],ss.prototype,"thumbnailFixedWidth",void 0);
_.E([_.x({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],ss);
_.r(ss,"ytd-channel-featured-content-renderer",function(){if($rI!==void 0)return $rI;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return $rI=l},{mode:1});var Nyj;_.RL("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Es=function(){var l=_.p.apply(this,arguments)||this;l.roundContainer=!0;l.amsterdamEnabled=_.q("enable_desktop_amsterdam_info_panels");return l};
_.Z(Es,_.p);_.W=Es.prototype;_.W.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.W.dataChanged=function(){this.imageWidth=this.imageHeight=24;var l=this.data;l.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!l.style&&l.image&&l.image.thumbnails.length&&(l=l.image.thumbnails[0],this.imageWidth=l.width||0,this.imageHeight=l.height||0)};
_.W.computeSource=function(l){return l.secondarySource?_.Nl(l.secondarySource):_.Nl(l.source)};
_.W.computeClarifyStyle=function(l){return l?l.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.W.isLargeStyle=function(l){return l==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.W.computeBackgroundStyle=function(l){return l?l.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.W.computeHasActionButton=function(l){return!!l.actionButton};
_.W.computeHasBottomSection=function(l){return!!l.ctaHasBottomSection};
_.W.computeIsSourceMissing=function(l){return l.ctaHasBottomSection===!1?!0:l&&this.computeSource(l)?!1:!0};
_.W.computeSecondaryEndpoint=function(l){return l.secondaryEndpoint||l.endpoint};
Es.prototype.dataChanged=Es.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Es.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],Es.prototype,"imageWidth",void 0);_.E([_.K(),_.T("design:type",Number)],Es.prototype,"imageHeight",void 0);
_.E([_.K({computed:"computeSecondaryEndpoint(data)"}),_.T("design:type",Object)],Es.prototype,"secondaryEndpoint",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.T("design:type",Boolean)],Es.prototype,"hasActionButton",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.T("design:type",Boolean)],Es.prototype,"hasBottomSection",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.T("design:type",Boolean)],Es.prototype,"missingSource",void 0);_.E([_.K({computed:"computeIcon_(data.icon)"}),_.T("design:type",String)],Es.prototype,"icon",void 0);_.E([_.K({computed:"computeIcon_(data.secondaryIcon)"}),_.T("design:type",String)],Es.prototype,"secondaryIcon",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.T("design:type",String)],Es.prototype,"clarifyStyle",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.T("design:type",String)],Es.prototype,"backgroundStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Es.prototype,"roundContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Es.prototype,"amsterdamEnabled",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Es.prototype,"dataChanged",null);
_.E([_.x({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Es);
_.r(Es,"ytd-clarification-renderer",function(){if(Nyj!==void 0)return Nyj;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Nyj=l},{mode:1});var sgW;var E11;var TB=function(){var l=_.p.apply(this,arguments)||this;l.amsterdamEnabled=_.q("enable_desktop_amsterdam_info_panels");return l};
_.Z(TB,_.p);_.W=TB.prototype;_.W.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.W.computeIcon=function(l){return l?"yt-icons:"+l.toLowerCase():null};
_.W.computeUseContacts=function(l){return!!l.contacts&&l.contacts.length>0};
_.W.computePhoneContact=function(l){var D,U;return(D=l.contacts)==null?void 0:(U=D.find(function(n){var y;return(n==null?void 0:(y=n.icon)==null?void 0:y.iconType)==="PHONE"}))==null?void 0:U.actionText};
_.W.computeSmsContact=function(l){var D,U;return(D=l.contacts)==null?void 0:(U=D.find(function(n){var y;return(n==null?void 0:(y=n.icon)==null?void 0:y.iconType)==="SMS"}))==null?void 0:U.actionText};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],TB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],TB.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],TB.prototype,"amsterdamEnabled",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.T("design:type",Boolean)],TB.prototype,"useContacts",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.T("design:type",String)],TB.prototype,"phoneContact",void 0);_.E([_.x({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],TB);
_.r(TB,"ytd-single-action-emergency-support-renderer",function(){if(E11!==void 0)return E11;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return E11=l},{mode:1});_.RL("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var IF=function(){var l=_.p.apply(this,arguments)||this;l.roundedContainer=!0;l.amsterdamEnabled=_.q("enable_desktop_amsterdam_info_panels");return l};
_.Z(IF,_.p);IF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],IF.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],IF.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],IF.prototype,"amsterdamEnabled",void 0);
_.E([_.x({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],IF);
_.r(IF,"ytd-emergency-onebox-renderer",function(){if(sgW!==void 0)return sgW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return sgW=l},{mode:1});var TyW;_.RL("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var H1=function(){return _.p.apply(this,arguments)||this};
_.Z(H1,_.p);H1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],H1.prototype,"data",void 0);_.E([_.x({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],H1);
_.r(H1,"ytd-exploratory-results-renderer",function(){if(TyW!==void 0)return TyW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return TyW=l},{mode:1});var I7C;_.RL("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Y_=function(){var l=_.p.apply(this,arguments)||this;l.messageData=null;return l};
_.Z(Y_,_.p);_.W=Y_.prototype;_.W.onServiceRequestCompleted=function(l,D){l=D.actions||[];D=0;for(var U=l.length;D<U;D++){var n=l[D],y=void 0,A=void 0;if((y=_.M(n,_.jv))==null?0:(A=y.item)==null?0:A.messageRenderer)this.messageData=_.M(n,_.jv).item.messageRenderer}};
_.W.dataChanged=function(){var l=this.data;this.hostElement.hidden=!1;_.nY(this.hostElement,"is-channel",l&&!l.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.W.computeThumbnailWidth=function(l){return l?126:56};
_.W.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.W.onSubmitTap=function(){var l=this.data,D=this.selectedResponseIndex;l!==void 0&&D!==void 0&&(l=l.responses[D],l.responseData&&_.Jc().resolve(_.qK).resolveCommand(l.responseData,{form:{element:this.hostElement}}))};
_.W.onDismissTap=function(){this.hostElement.hidden=!0;var l=this.data;l!==void 0&&l.dismissalEndpoint&&_.Jc().resolve(_.qK).resolveCommand(l.dismissalEndpoint,{form:{element:this.hostElement}})};
_.W.updateSelectedResponseIndexFromBinding=function(l){this.selectedResponseIndex=l.detail.value};
Y_.prototype.onSelectedResponseIndexChange=Y_.prototype.onSelectedResponseIndexChange;Y_.prototype.dataChanged=Y_.prototype.dataChanged;Y_.prototype.onServiceRequestCompleted=Y_.prototype.onServiceRequestCompleted;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Y_.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Y_.prototype,"messageData",void 0);
_.E([_.K(),_.T("design:type",Number)],Y_.prototype,"selectedResponseIndex",void 0);_.E([_.gP("#submit-button"),_.T("design:type",HTMLButtonElement)],Y_.prototype,"submitButton",void 0);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],Y_.prototype,"onServiceRequestCompleted",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y_.prototype,"dataChanged",null);
_.E([_.Pg("selectedResponseIndex"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y_.prototype,"onSelectedResponseIndexChange",null);_.E([_.x({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Y_);
_.r(Y_,"ytd-feedback-elicitation-single-question-renderer",function(){if(I7C!==void 0)return I7C;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return I7C=l},{mode:1});var HmH;var Os=function(){return _.p.apply(this,arguments)||this};
_.Z(Os,_.p);Os.prototype.computeThumbnailWidth=function(l){return l?602:428};
Os.prototype.updateWideFromBinding=function(l){this.wide=l.detail.value};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Os.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],Os.prototype,"wide",void 0);_.E([_.x({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Os);
_.r(Os,"ytd-newspaper-hero-video-renderer",function(){if(HmH!==void 0)return HmH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return HmH=l},{mode:1});var Y7g;var OmC=function(){return _.p.apply(this,arguments)||this};
_.Z(OmC,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],OmC.prototype,"rendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],OmC.prototype,"data",void 0);_.E([_.x({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],OmC);
_.r(OmC,"ytd-newspaper-mini-video-renderer",function(){if(Y7g!==void 0)return Y7g;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Y7g=l},{mode:1});var VhD;_.RL("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var VU=function(){return _.p.apply(this,arguments)||this};
_.Z(VU,_.p);VU.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],VU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],VU.prototype,"data",void 0);_.E([_.x({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],VU);
_.r(VU,"ytd-newspaper-renderer",function(){if(VhD!==void 0)return VhD;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return VhD=l},{mode:1});var iPH;_.RL("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var ib=function(){var l=_.p.apply(this,arguments)||this;l.isSegment=!1;l.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};l.nextContinuation={continuationType:"playlistVideoListContinuation"};return l};
_.Z(ib,_.p);_.W=ib.prototype;_.W.created=function(){var l=this;this.JSC$22258_ytReorderableController=new _.Bzy(101,function(D){l.handleDrop(D)})};
_.W.attached=function(){_.Jc();var l;(l=_.Jc().resolve(_.G8(_.s8)))!=null&&(l.playlistVideoListElement=this.hostElement)};
_.W.detached=function(){var l;(l=_.Jc().resolve(_.G8(_.s8)))!=null&&(l.playlistVideoListElement=void 0);l=_.Jc().resolve(_.G8(_.c$));_.q("web_enable_voting_animation")&&l&&(l.parentElem=void 0,l.videos=[],l.continuationsPresent=!1,l.showRefreshPill=!1);_.oH(this.JSC$22258_ytReorderableController)};
_.W.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"}}}}}};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.W.dataChanged=function(){var l=_.Jc().resolve(_.G8(_.c$));if(_.q("web_enable_voting_animation")&&this.data&&l){var D=_.iJ(this.hostElement).querySelector("#contents");D&&(l.parentElem=D);l.addVideos(this.data.contents)}_.oH(this.JSC$22258_ytReorderableController)};
_.W.onRendererstamperFinished=function(){this.canReorder&&_.CS_(this.JSC$22258_ytReorderableController,_.iJ(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.W.onPlaylistReloading=function(){this.isReloading=!0};
_.W.onUpdateSetVideoId=function(l){if(l.detail&&this.data&&this.data.contents){var D=l.detail;l=this.data.contents.findIndex(function(y){var A;return((A=y.playlistVideoRenderer)==null?void 0:A.videoId)===D.videoId});
if(!(l<0)&&D.setVideoId&&(this.set("data.contents."+l+".playlistVideoRenderer.setVideoId",D.setVideoId),_.q("web_enable_voting_animation"))){var U;if(l=_.M((U=this.data.contents[l].playlistVideoRenderer)==null?void 0:U.engagementBar,_.Ueg)){var n;(n=l.actions)==null||n.forEach(function(y){if(y=_.M(y,_.nQc))y.itemId=D.setVideoId})}(U=_.Jc().resolve(_.G8(_.c$)))&&mr1(U,D.videoId,D.setVideoId)}}};
_.W.computeContentsClass=function(l){return l?"reloading":""};
_.W.computeIsSortable=function(l,D){return l&&D>0&&!this.isSegment&&!_.q("shorts_in_playlists_web")};
_.W.computeIsEditable=function(l){return l};
_.W.computeCanReorder=function(l){return l};
_.W.handlePlaylistRemoveVideosAction=function(l){if(this.get("playlistRemoveVideosAction.setVideoIds",l)&&this.data&&this.data.contents){l=_.M(l,_.zVr).setVideoIds;for(var D=this.data.contents.length-1;D>=0;){var U=this.data.contents[D].playlistVideoRenderer;U&&U.setVideoId&&l.includes(U.setVideoId)&&this.splice("data.contents",D,1);D--}_.Vh(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.W.updateIndices=function(){if(this.data&&this.data.contents)for(var l=0;l<this.data.contents.length;l++)this.set("data.contents."+l+".playlistVideoRenderer.index",_.$B(String(l+1)))};
_.W.handleDrop=function(l){l=l.currDragItem;var D=_.o_(l.parentNode.childNodes,l),U=this.data.contents.splice(Number(_.Nl(l.data.index))-1,1)[0];this.data.contents.splice(D,0,U);D=D?this.get("contents."+(D-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();l=this.buildReorderServiceEndpoint(l.data.setVideoId,D);this.ytComponentBehavior.resolveCommand(l)};
_.W.buildReorderServiceEndpoint=function(l,D){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",l),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",D),this.data.onReorderEndpoint):null};
_.W.handleUpdatePlaylistAction=function(l){var D;(l=_.M((D=_.M(l,_.fWz))==null?void 0:D.updatedRenderer,_.$O5))&&this.canReorder!==l.canReorder&&this.set("data.canReorder",l.canReorder);l&&l.contents&&(this.set("data.contents",l.contents),this.isReloading=!1);l&&l.continuations&&this.set("data.continuations",l.continuations)};
_.W.handleAddRendererToItemSectionAction=function(l){var D,U=(D=_.M(l,kvI))==null?void 0:D.renderer,n;U&&((n=_.M(l,kvI))==null?void 0:n.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,U),l=_.Jc().resolve(_.G8(_.c$)),_.q("web_enable_voting_animation")&&l&&(U&&(D=_.DeN(U))&&l.recommendedVideos.push({itemId:D,videoId:_.yIl(U),voteCount:_.AIK(U),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.W.isVotingEnabledOnPlaylist=function(l){if(!l)return!1;l=_.B(l);for(l=l.next();!l.done;l=l.next()){var D=void 0;return!!_.M((D=l.value.playlistVideoRenderer)==null?void 0:D.engagementBar,_.Ueg)}return!1};
_.W.onAppendContinuationItemsActionFinished=function(){var l;this.isVotingEnabledOnPlaylist((l=this.data)==null?void 0:l.contents)&&(this.updateIndices(),l=_.Jc().resolve(_.G8(_.c$)),_.q("web_enable_voting_animation")&&l&&this.data&&l.addVideos(this.data.contents))};
_.W.updateVideoData=function(l){if(l.detail&&this.data&&this.data.contents){var D=l.detail;l=D.toIdx;var U=D.itemId,n=D.newVoteCount,y=D.voteStatus;D=D.hideItem;var A,C,h=(A=this.data)==null?void 0:(C=A.contents)==null?void 0:C.findIndex(function(G){return _.DeN(G)===U});
if(!(h<0)){A=this.data.contents[h];var b;if((b=A.playlistVideoRenderer)==null?0:b.voteCount)A.playlistVideoRenderer.voteCount=n;var u;if(b=_.M((u=A.playlistVideoRenderer)==null?void 0:u.engagementBar,_.Ueg)){var Q;(Q=b.actions)==null||Q.forEach(function(G){(G=_.M(G,_.nQc))&&G.initialState&&(G.initialState.votes=n,G.initialState.status=y)})}this.data.contents.splice(h,1);
D||this.data.contents.splice(l,0,A);this.updateIndices()}}};
ib.prototype.updateVideoData=ib.prototype.updateVideoData;ib.prototype.onAppendContinuationItemsActionFinished=ib.prototype.onAppendContinuationItemsActionFinished;ib.prototype.onUpdateSetVideoId=ib.prototype.onUpdateSetVideoId;ib.prototype.onPlaylistReloading=ib.prototype.onPlaylistReloading;ib.prototype.onRendererstamperFinished=ib.prototype.onRendererstamperFinished;ib.prototype.dataChanged=ib.prototype.dataChanged;
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],ib.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Qa.YtNextContinuationBehavior),_.T("design:type",Object)],ib.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.m(_.vf),_.T("design:type",Object)],ib.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ib.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],ib.prototype,"isReloading",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ib.prototype,"isSegment",void 0);
_.E([_.K({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.T("design:type",Boolean)],ib.prototype,"isSortable",void 0);_.E([_.K({computed:"computeIsEditable(data.isEditable)"}),_.T("design:type",Boolean)],ib.prototype,"isEditable",void 0);_.E([_.K({computed:"computeCanReorder(data.canReorder)"}),_.T("design:type",Boolean)],ib.prototype,"canReorder",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ib.prototype,"dataChanged",null);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ib.prototype,"onRendererstamperFinished",null);_.E([_.hj("yt-playlist-reloading"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ib.prototype,"onPlaylistReloading",null);
_.E([_.hj("yt-update-set-video-id"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],ib.prototype,"onUpdateSetVideoId",null);_.E([_.hj("yt-append-continuation-items-action-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ib.prototype,"onAppendContinuationItemsActionFinished",null);
_.E([_.hj("yt-update-video-data-voting-animation"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],ib.prototype,"updateVideoData",null);_.E([_.x({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],ib);
_.r(ib,"ytd-playlist-video-list-renderer",function(){if(iPH!==void 0)return iPH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return iPH=l},{mode:_.Vj("kevlar_poly_si_batch_j047")?1:2});var lvW;var lb=function(){return _.p.apply(this,arguments)||this};
_.Z(lb,_.p);lb.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"}}}}};
lb.prototype.onTextWrapperTap=function(l){var D=this.data&&this.data.navigationEndpoint;D&&!_.$o(_.$f(l),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.O9(this.hostElement,"yt-navigate",{endpoint:D})};
lb.prototype.dataChanged=function(){var l=this.get("data.offerButton.buttonRenderer.serviceEndpoint");l&&l.commandMetadata&&_.M(l.commandMetadata,_.zd)&&_.M(l.commandMetadata,_.zd).fireAutomatically&&_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}})};
lb.prototype.dataChanged=lb.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.hY),_.T("design:type",Object)],lb.prototype,"ytdLockupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],lb.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.T("design:type",Boolean)],lb.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.e_("desktop_search_bigger_thumbs_style")}}),
_.T("design:type",String)],lb.prototype,"biggerThumbsStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],lb.prototype,"leftAligned",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],lb.prototype,"dataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-movie-renderer"})],lb);
_.r(lb,"ytd-movie-renderer",function(){if(lvW!==void 0)return lvW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return lvW=l},{mode:1});var DwD;var Dn=function(){var l=_.p.apply(this,arguments)||this;l.rounded=!0;l.pageAttachedTo=void 0;l.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return l};
_.Z(Dn,_.p);Dn.prototype.attached=function(){this.pageAttachedTo=_.Jc().resolve(_.sm).getCurrentPage();_.O9(this.hostElement,"yt-player-attached",this.player)};
Dn.prototype.detached=function(){var l;if((l=this.pageAttachedTo)==null?0:l.hostElement)_.O9(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Dn.prototype.dataChanged=function(){var l;if((l=this.data)==null?0:l.videoId)l={video_id:this.data.videoId,autoplay:!0},!_.q("miniplayer_stop_channel_video_autoplay_killswitch")&&_.Jc().resolve(_.kq).isMiniplayerActive()&&(l.pause_at_start=!0,l.autoplay=!1),this.player.loadVideoWithPlayerVars(l)};
Dn.prototype.handleSignalActionPausePlayer=function(){_.IL().pause()};
Dn.prototype.dataChanged=Dn.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],Dn.prototype,"data",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Dn.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Dn.prototype,"rounded",void 0);_.E([_.gP("#player"),_.T("design:type",Object)],Dn.prototype,"player",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Dn.prototype,"dataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Dn);
_.r(Dn,"ytd-channel-video-player-renderer",function(){if(DwD!==void 0)return DwD;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return DwD=l},{mode:1});var Uwq;var n8C;var yrO;var Uz=function(){var l=_.p.apply(this,arguments)||this;l.playing=!1;l.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Ho(l);l.active=!1;return l};
_.Z(Uz,_.p);_.W=Uz.prototype;_.W.detached=function(){this.stop()};
_.W.play=function(){var l=this,D,U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return l.active=!0,D=l.get("data.inlinePlaybackEndpoint.watchEndpoint"),U=D.videoId||l.data.videoId,n=D.startTimeSeconds||0,y=D.playerParams||null,_.q("kevlar_player_update_killswitch")?C.yield(l.playerEl.update({args:{video_id:U,startSeconds:n,player_params:y}}),2):(l.playerEl.loadVideoWithPlayerVars({video_id:U,startSeconds:n,player_params:y,autoplay:!0}),C.jumpTo(2));if(C.nextAddress!=4)return C.yield(l.playerEl.getPlayerPromise(),
4);A=C.yieldResult;A.unloadModule("annotations_module");A.addEventListener("onStateChange",function(h){l.onPlayerStateChange(h)});
_.Kz(C)})};
_.W.onPlayerStateChange=function(l){if(this.active)switch(this.playing=l===1,l){case 1:_.O9(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.O9(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.W.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.W.resize=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return U.yield(l.playerEl.getPlayerPromise(),2);D=U.yieldResult;D.setSize(NaN,NaN);_.Kz(U)})};
_.E([_.K(),_.T("design:type",Object)],Uz.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Uz.prototype,"playing",void 0);_.E([_.K(),_.T("design:type",Object)],Uz.prototype,"playerId",void 0);_.E([_.gP("#player"),_.T("design:type",Object)],Uz.prototype,"playerEl",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Uz);
_.r(Uz,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(yrO!==void 0)return yrO;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return yrO=l},{mode:1});var Arq;var WJH;var nD=function(){var l=_.p.apply(this,arguments)||this;l.width=0;return l};
_.Z(nD,_.p);_.W=nD.prototype;_.W.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.CY(this,this.onEnded));this.mp4El.addEventListener("error",_.CY(this,this.onError))};
_.W.detached=function(){this.videoEl.removeEventListener("ended",_.CY(this,this.onEnded));this.mp4El.removeEventListener("error",_.CY(this,this.onError))};
_.W.play=function(){var l=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var D=this.videoEl.play();D?D.then(function(){l.handleVideoStartPlaying()}).catch(function(){_.O9(l.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.O9(this.hostElement,"yt-video-thumbnail-not-playing")};
_.W.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.W.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.W.dataChanged=function(){var l;if((l=this.data)==null?0:l.thumbnailPlaceholder)l=_.IO(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+l+")";this.stop();this.autoplay&&this.play()};
_.W.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.W.onEnded=function(){this.stop();_.O9(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.W.onError=function(){_.O9(this.hostElement,"yt-video-thumbnail-error")};
_.W.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.W.getVideoThumbnail=function(l){if(l&&l.length)return l[0]};
nD.prototype.dataChanged=nD.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],nD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],nD.prototype,"animatePlaceholderOnEntrance",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],nD.prototype,"autoplay",void 0);_.E([_.K({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.T("design:type",Object)],nD.prototype,"videoThumbnail",void 0);
_.E([_.K(),_.T("design:type",Boolean)],nD.prototype,"loop",void 0);_.E([_.K(),_.T("design:type",Boolean)],nD.prototype,"isVideoPlaying",void 0);_.E([_.K(),_.T("design:type",Object)],nD.prototype,"width",void 0);_.E([_.gP("#mp4"),_.T("design:type",HTMLElement)],nD.prototype,"mp4El",void 0);_.E([_.gP("#placeholder"),_.T("design:type",HTMLElement)],nD.prototype,"placeholderEl",void 0);_.E([_.gP("#video"),_.T("design:type",HTMLVideoElement)],nD.prototype,"videoEl",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],nD.prototype,"dataChanged",null);_.E([_.S0({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],nD);
_.r(nD,"yt-video-as-thumbnail-details",function(){if(WJH===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Arq===void 0&&(Arq=document.createElement("template"));var n=Arq;U.call(D,n.content.cloneNode(!0),l.content.firstChild);WJH=l}l=WJH;return l},{mode:2});var yF=function(){var l=_.p.apply(this,arguments)||this;l.disableGridStateAware=!1;l.animationEnabled=_.q("enable_web_ketchup_hero_animation");l.transitioningOut=!1;l.narrow=!1;l.narrower=!1;l.isCarouselInFeed=!1;l.videoTimeoutJobId=0;l.panelTimeoutJobId=0;l.panelTimeoutJobStartMs=0;l.actionMap={"yt-window-resized":"onWindowResized"};return l};
_.Z(yF,_.p);_.W=yF.prototype;_.W.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.W.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var l;this.player&&((l=this.data)==null?0:l.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.W.attached=function(){this.onWindowResized()};
_.W.detached=function(){this.clearTimeouts()};
_.W.onWindowResized=function(){this.updateSize()};
_.W.computePanelLayout=function(l){return l&&l.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.W.playVideo=function(){var l;this.video&&((l=this.data)==null?0:l.videoThumbnail)&&this.video.play();var D;this.player&&((D=this.data)==null?0:D.inlinePlaybackRenderer)&&this.player.play()};
_.W.stopVideo=function(){var l;this.video&&((l=this.data)==null?0:l.videoThumbnail)&&this.video.stop();var D;this.player&&((D=this.data)==null?0:D.inlinePlaybackRenderer)&&this.player.stop()};
_.W.transitionOut=function(){var l=this;this.transitioningOut=!0;return new Promise(function(D){var U=function(){_.iJ(l.hostElement).querySelector("#action-button").removeEventListener("animationend",U);_.Tn.cancelJob(n);D();l.transitioningOut=!1};
var n=_.oI(_.Tn,U,1E3);_.iJ(l.hostElement).querySelector("#action-button").addEventListener("animationend",U);l.player&&(l.player.playing=!1)})};
_.W.computeMetadataOrder=function(l){return l&&l.metadataOrder&&l.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?l.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.W.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.W.computeAvatarSize=function(l){return l&&l.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.W.onContentClick=function(l){if(!_.$o(_.$f(l),this.hostElement,["A".toString(),"BUTTON".toString()])){var D;if((D=this.data)==null?0:D.navigationEndpoint){var U;this.componentBehavior.resolveCommand((U=this.data)==null?void 0:U.navigationEndpoint)}}};
_.W.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.W.setBackgroundImage=function(l){if(l=this.getBackgroundImageUrl(l))_.iJ(this.hostElement).querySelector("#hero").style.backgroundImage="url("+l+")"};
_.W.setScrimLayer=function(l){var D=this.getScrimLayerColorStops(l);l=((l==null?void 0:l.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(l=180);_.H3("HTML_DIR")==="rtl"&&(l=-l);D&&(_.iJ(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+l+"deg, "+D+")")};
_.W.isNarrower=function(){return this.hostElement.clientWidth<yF.NARROW_VERSION_SIZE};
_.W.getScrimLayerColorStops=function(){var l,D=(l=this.data)==null?void 0:l.scrimColorValues;if(!D)return null;if(D.length===1)return l=_.tu(D[0]),l+" 0%, "+l+" 100%";if(D.length===3){var U=[0,72,98];return D.map(function(n,y){return _.tu(n)+" "+U[y]+"%"}).join(",")}return null};
_.W.getBackgroundImageUrl=function(l){return l&&l.largeFormFactorBackgroundThumbnail?_.IO((l.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||l.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.W.onPlaying=function(){this.startVideoTimeout()};
_.W.onEnded=function(){this.rotate()};
_.W.startPanelTimeout=function(){var l=this;if(!this.panelTimeoutJobId){var D=this.get("data.minPanelDisplayDurationMs");D&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.oI(_.Tn,function(){l.rotate()},D))}};
_.W.startVideoTimeout=function(){var l=this;if(!this.videoTimeoutJobId){_.Tn.cancelJob(this.panelTimeoutJobId);var D=Date.now()-this.panelTimeoutJobStartMs;D=Math.max(0,this.get("data.minPanelDisplayDurationMs")-D);D=Math.max(this.get("data.minVideoPlayDurationMs")||0,D);this.videoTimeoutJobId=_.oI(_.Tn,function(){l.rotate()},D)}};
_.W.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Tn.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Tn.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.W.rotate=function(){this.clearTimeouts();_.O9(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.QP.Object.defineProperties(yF.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.iJ(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.iJ(this.hostElement).querySelector("#video")}}});
_.QP.Object.defineProperties(yF,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
yF.prototype.onEnded=yF.prototype.onEnded;yF.prototype.onPlaying=yF.prototype.onPlaying;yF.prototype.dataChanged=yF.prototype.dataChanged;_.E([_.m(_.yC),_.T("design:type",Object)],yF.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],yF.prototype,"componentBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],yF.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.m(_.DwW),_.T("design:type",Object)],yF.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],yF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],yF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],yF.prototype,"ytRendererBehavior",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yF.prototype,"disableGridStateAware",void 0);_.E([_.K(),_.T("design:type",Object)],yF.prototype,"data",void 0);_.E([_.K({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.T("design:type",String)],yF.prototype,"panelLayout",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yF.prototype,"animationEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yF.prototype,"transitioningOut",void 0);
_.E([_.K({computed:"computeMetadataOrder(data)"}),_.T("design:type",Boolean)],yF.prototype,"metadataOrder",void 0);_.E([_.K({computed:"computeByline(data)"}),_.T("design:type",Object)],yF.prototype,"byline",void 0);_.E([_.K({computed:"computeAvatarSize(data)"}),_.T("design:type",Number)],yF.prototype,"avatarSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yF.prototype,"narrow",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yF.prototype,"narrower",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yF.prototype,"layoutStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],yF.prototype,"isCarouselInFeed",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yF.prototype,"dataChanged",null);_.E([_.hj("yt-default-promo-panel-renderer-playing"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yF.prototype,"onPlaying",null);
_.E([_.hj("yt-default-promo-panel-renderer-ended"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yF.prototype,"onEnded",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],yF);
_.r(yF,"ytd-default-promo-panel-renderer",function(){if(n8C!==void 0)return n8C;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return n8C=l},{mode:1});_.RL("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var AI=function(){var l=_.p.apply(this,arguments)||this;l.narrower=!1;l.dotMenuVisible=!1;l.paginationThumbnailsVisible=!1;l.active=!0;l.disableGridStateAware=!1;l.actionMap={"yt-window-resized":"onWindowResized"};return l};
_.Z(AI,_.p);_.W=AI.prototype;_.W.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]]"}}}}}};
_.W.attached=function(){document.addEventListener("yt-page-type-changed",_.CY(this,this.onPageTypeChange));this.currentPageSubtype=_.ndK(location.pathname);this.onWindowResized()};
_.W.detached=function(){this.jobId&&_.Tn.cancelJob(this.jobId);this.updateSizeJobId&&_.Tn.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.CY(this,this.onPageTypeChange))};
_.W.onPageTypeChange=function(l){this.active=l.detail.newPageSubtype===this.currentPageSubtype};
_.W.onWindowResized=function(){this.updateSize()};
_.W.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.W.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.W.setCarouselItem=function(l){l>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Tn.cancelJob(this.jobId);var D=this.getCurrentPanelElement();D&&D.stopVideo();this.currentItemIndex=l%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(D||(D=this.getCurrentPanelElement()),D.playVideo()):this.startRotationJob()};
_.W.scrollThumbnails=function(l){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var D=this.getCurrentPaginationElement();if(D){var U=_.iJ(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?U.style.transform="translateX(0)":(D=D.offsetWidth+8,U.style.transform="translateX(-"+D*(l-Math.ceil(Math.floor(this.overlay.offsetWidth/D)/2)+1)+"px)")}}};
_.W.onDataChanged=function(){var l=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.BI(_.Tn,function(){var D;(D=l.getCurrentPanelElement())==null||D.updateSize();l.updateSize()}))};
_.W.getCurrentPanelElement=function(){return _.iJ(_.iJ(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.W.getCurrentPaginationElement=function(){return _.iJ(_.iJ(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.W.getNavigationClass=function(l,D){return l===D?"selected":""};
_.W.getNavigationDurationStyle=function(l){return"animation-duration:"+(this.get("data.carouselItems."+l+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.W.onNavigationTap=function(l){var D=this,U=l.model.index;U!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){D.setCarouselItem(U)}),this.autorotateActive=!1)};
_.W.onVideoThumbnailEnded=function(){var l=this;if(this.shouldRotate()){var D=this.getCurrentPaginationElement();D&&(D.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){D.classList.remove("finished");l.setNextCarouselItem()}))}};
_.W.onVideoThumbnailError=function(){this.startRotationJob()};
_.W.onVideoNotPlaying=function(){this.startRotationJob()};
_.W.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.W.startRotationJob=function(){var l=this;_.Tn.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Tn.addLowPriorityJob(function(){l.getCurrentPanelElement().transitionOut().then(function(){l.setNextCarouselItem()})},this.rotationTimeout))};
_.W.computeDotMenuVisible=function(l,D){return!!l&&!!l.carouselItems&&l.carouselItems.length>1&&!l.paginationThumbnails||!!D};
_.W.computePaginationThumbnailsVisible=function(l,D){var U,n;return((n=l==null?void 0:(U=l.paginationThumbnails)==null?void 0:U.length)!=null?n:0)>1&&!D};
_.W.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.W.computePaginatorAlignment=function(l){return(l==null?void 0:l.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.W.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.W.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.W.isNarrower=function(l){return(l!=null?l:0)<yF.NARROW_VERSION_SIZE};
AI.prototype.activeChanged=AI.prototype.activeChanged;AI.prototype.onVideoNotPlaying=AI.prototype.onVideoNotPlaying;AI.prototype.onVideoThumbnailError=AI.prototype.onVideoThumbnailError;AI.prototype.onVideoThumbnailEnded=AI.prototype.onVideoThumbnailEnded;AI.prototype.onDataChanged=AI.prototype.onDataChanged;_.E([_.m(_.yC),_.T("design:type",Object)],AI.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],AI.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],AI.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],AI.prototype,"currentItem",void 0);
_.E([_.K(),_.T("design:type",Number)],AI.prototype,"currentItemIndex",void 0);_.E([_.K(),_.T("design:type",Number)],AI.prototype,"rotationTimeout",void 0);_.E([_.K(),_.T("design:type",Number)],AI.prototype,"loopCount",void 0);_.E([_.K({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.T("design:type",String)],AI.prototype,"paginatorAlignment",void 0);_.E([_.K(),_.T("design:type",Number)],AI.prototype,"jobId",void 0);
_.E([_.K(),_.T("design:type",Number)],AI.prototype,"updateSizeJobId",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],AI.prototype,"isCarouselInFeed",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],AI.prototype,"narrower",void 0);_.E([_.K({computed:"computeDotMenuVisible(data, narrower)"}),_.T("design:type",Object)],AI.prototype,"dotMenuVisible",void 0);
_.E([_.K({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.T("design:type",Object)],AI.prototype,"paginationThumbnailsVisible",void 0);_.E([_.K({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.T("design:type",String)],AI.prototype,"layoutType",void 0);_.E([_.K({value:!0,reflectToAttribute:!0}),_.T("design:type",Boolean)],AI.prototype,"autorotateActive",void 0);_.E([_.K(),_.T("design:type",Object)],AI.prototype,"active",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],AI.prototype,"disableGridStateAware",void 0);_.E([_.gP("#overlay"),_.T("design:type",HTMLElement)],AI.prototype,"overlay",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],AI.prototype,"onDataChanged",null);
_.E([_.hj("yt-video-thumbnail-ended"),_.hj("yt-default-promo-panel-renderer-rotate"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],AI.prototype,"onVideoThumbnailEnded",null);_.E([_.hj("yt-video-thumbnail-error"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],AI.prototype,"onVideoThumbnailError",null);
_.E([_.hj("yt-video-thumbnail-not-playing"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],AI.prototype,"onVideoNotPlaying",null);_.E([_.GY("active"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],AI.prototype,"activeChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],AI);
_.r(AI,"ytd-carousel-item-renderer",function(){if(Uwq!==void 0)return Uwq;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Uwq=l},{mode:2});var BHO;var C$W;var h8I;var P$l;var We=function(){var l=_.p.apply(this,arguments)||this;l.originalQuery=null;l.originalEndpoint=null;return l};
_.Z(We,_.p);We.prototype.computeShowOriginalQueryWithoutEndpoint_=function(l,D){return!(!l||D)};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],We.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],We.prototype,"correctedText",void 0);_.E([_.K(),_.T("design:type",Object)],We.prototype,"correctedQuery",void 0);_.E([_.K(),_.T("design:type",Object)],We.prototype,"correctedEndpoint",void 0);_.E([_.K(),_.T("design:type",Object)],We.prototype,"originalText",void 0);_.E([_.K(),_.T("design:type",Object)],We.prototype,"originalQuery",void 0);
_.E([_.K(),_.T("design:type",Object)],We.prototype,"originalEndpoint",void 0);_.E([_.K({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.T("design:type",Boolean)],We.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.E([_.S0({is:"yt-search-query-correction",disableElementRegistration:!0})],We);
_.r(We,"yt-search-query-correction",function(){if(P$l===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;h8I===void 0&&(h8I=document.createElement("template"));var n=h8I;U.call(D,n.content.cloneNode(!0),l.content.firstChild);P$l=l}l=P$l;return l},{mode:2});_.RL("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var bPH=function(){return _.p.apply(this,arguments)||this};
_.Z(bPH,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],bPH.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],bPH.prototype,"data",void 0);_.E([_.S0({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],bPH);
_.r(bPH,"yt-did-you-mean-renderer",function(){if(C$W===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;BHO===void 0&&(BHO=document.createElement("template"));var n=BHO;U.call(D,n.content.cloneNode(!0),l.content.firstChild);C$W=l}l=C$W;return l},{mode:2});var g8D;var uJT;_.RL("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var v8h=function(){return _.p.apply(this,arguments)||this};
_.Z(v8h,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],v8h.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],v8h.prototype,"data",void 0);_.E([_.S0({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],v8h);
_.r(v8h,"yt-including-results-for-renderer",function(){if(uJT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;g8D===void 0&&(g8D=document.createElement("template"));var n=g8D;U.call(D,n.content.cloneNode(!0),l.content.firstChild);uJT=l}l=uJT;return l},{mode:2});var Q$C;var GTH;_.RL("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Be=function(){return _.p.apply(this,arguments)||this};
_.Z(Be,_.p);Be.prototype.computeExtraClasses_=function(l,D){var U="";l&&(U+=" "+l.toLowerCase().replace(/_/g,"-"));D&&(U+=" "+D.toLowerCase().replace(/_/g,"-"));return U};
Be.prototype.computeUrlImg_=function(){var l=this.data;l.image&&(_.iJ(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.IO(l.image.thumbnails,Number.MAX_VALUE)+")")};
Be.prototype.computeUrlImg_=Be.prototype.computeUrlImg_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Be.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Be.prototype,"computeUrlImg_",null);_.E([_.S0({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Be);
_.r(Be,"yt-music-pass-feature-info-renderer",function(){if(GTH===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Q$C===void 0&&(Q$C=document.createElement("template"));var n=Q$C;U.call(D,n.content.cloneNode(!0),l.content.firstChild);GTH=l}l=GTH;return l},{mode:2});var JrW;var LJI;_.RL("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var q5j=function(){return _.p.apply(this,arguments)||this};
_.Z(q5j,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],q5j.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],q5j.prototype,"data",void 0);_.E([_.S0({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],q5j);
_.r(q5j,"yt-no-results-found-showing-results-for-renderer",function(){if(LJI===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;JrW===void 0&&(JrW=document.createElement("template"));var n=JrW;U.call(D,n.content.cloneNode(!0),l.content.firstChild);LJI=l}l=LJI;return l},{mode:2});var MWW;var R8l;_.RL("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var ZP1=function(){return _.p.apply(this,arguments)||this};
_.Z(ZP1,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ZP1.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ZP1.prototype,"data",void 0);_.E([_.S0({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],ZP1);
_.r(ZP1,"yt-results-without-quotes-renderer",function(){if(R8l===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;MWW===void 0&&(MWW=document.createElement("template"));var n=MWW;U.call(D,n.content.cloneNode(!0),l.content.firstChild);R8l=l}l=R8l;return l},{mode:2});var e8W;var mwT;_.RL("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var avh=function(){return _.p.apply(this,arguments)||this};
_.Z(avh,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],avh.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],avh.prototype,"data",void 0);_.E([_.S0({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],avh);
_.r(avh,"yt-search-no-results-renderer",function(){if(mwT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;e8W===void 0&&(e8W=document.createElement("template"));var n=e8W;U.call(D,n.content.cloneNode(!0),l.content.firstChild);mwT=l}l=mwT;return l},{mode:2});var tWW;var X2T;_.RL("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var S5C=function(){return _.p.apply(this,arguments)||this};
_.Z(S5C,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],S5C.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],S5C.prototype,"data",void 0);_.E([_.S0({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],S5C);
_.r(S5C,"yt-showing-results-for-renderer",function(){if(X2T===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;tWW===void 0&&(tWW=document.createElement("template"));var n=tWW;U.call(D,n.content.cloneNode(!0),l.content.firstChild);X2T=l}l=X2T;return l},{mode:2});var kTq;var dwc;var KJw;var crO;var CD=function(){var l=_.p.apply(this,arguments)||this;l.answerExpanded=!1;return l};
_.Z(CD,_.p);CD.prototype.toggleAnswer_=function(l){var D=_.NN(l);D&&D.classList.contains("yt-simple-endpoint")||(l.preventDefault(),l.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
CD.prototype.toggleAnswer_=CD.prototype.toggleAnswer_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],CD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],CD.prototype,"answerExpanded",void 0);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],CD.prototype,"toggleAnswer_",null);
_.E([_.S0({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],CD);
_.r(CD,"yt-generic-faq-question-renderer",function(){if(crO===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;KJw===void 0&&(KJw=document.createElement("template"));var n=KJw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);crO=l}l=crO;return l},{mode:2});_.RL("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Zn=function(){return _.p.apply(this,arguments)||this};
_.Z(Zn,_.p);Zn.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Zn.prototype,"data",void 0);_.E([_.S0({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Zn);
_.r(Zn,"yt-faq-section-renderer",function(){if(dwc===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;kTq===void 0&&(kTq=document.createElement("template"));var n=kTq;U.call(D,n.content.cloneNode(!0),l.content.firstChild);dwc=l}l=dwc;return l},{mode:2});var p21;var xwC;_.RL("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var e6=function(){return _.p.apply(this,arguments)||this};
_.Z(e6,_.p);
e6.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],e6.prototype,"data",void 0);_.E([_.S0({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],e6);
_.r(e6,"yt-offer-item-expanded-renderer",function(){if(xwC===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;p21===void 0&&(p21=document.createElement("template"));var n=p21;U.call(D,n.content.cloneNode(!0),l.content.firstChild);xwC=l}l=xwC;return l},{mode:2});var j$w;var FJW;_.RL("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var mM=function(){return _.p.apply(this,arguments)||this};
_.Z(mM,_.p);
mM.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"}}}}};
mM.prototype.computeFullWidthMode=function(l){return!(!l||!l.fullWidthMode)};
mM.prototype.computeBorderlessMode=function(l){return!(!l||!l.borderlessMode)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],mM.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.T("design:type",Boolean)],mM.prototype,"fullWidthMode",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.T("design:type",Boolean)],mM.prototype,"borderlessMode",void 0);_.E([_.S0({is:"yt-offer-item-renderer",disableElementRegistration:!0})],mM);
_.r(mM,"yt-offer-item-renderer",function(){if(FJW===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;j$w===void 0&&(j$w=document.createElement("template"));var n=j$w;U.call(D,n.content.cloneNode(!0),l.content.firstChild);FJW=l}l=FJW;return l},{mode:2});var o8w;var w2C;_.RL("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var aM=function(){return _.p.apply(this,arguments)||this};
_.Z(aM,_.p);aM.prototype.computeAriaLevel_=function(l){return this.getLevelID_(l)};
aM.prototype.getLevelID_=function(l){return(l=l.match(/[0-9]+$/))&&l.length==1?l[0]:"1"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],aM.prototype,"data",void 0);_.E([_.K({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.T("design:type",String)],aM.prototype,"ariaLevel",void 0);_.E([_.K({value:"heading",reflectToAttribute:!0}),_.T("design:type",String)],aM.prototype,"role",void 0);
_.E([_.K({value:-1,reflectToAttribute:!0}),_.T("design:type",Number)],aM.prototype,"tabindex",void 0);_.E([_.S0({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],aM);
_.r(aM,"yt-subscription-product-header-renderer",function(){if(w2C===void 0){var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;o8w===void 0&&(o8w=document.createElement("template"));var n=o8w;U.call(D,n.content.cloneNode(!0),l.content.firstChild);w2C=l}l=w2C;return l},{mode:2});var rrh;var z8C;_.RL("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var tI=function(){return _.p.apply(this,arguments)||this};
_.Z(tI,_.p);tI.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:_.ZV("menuRenderer"),events:!0}}};
tI.prototype.onStampFinished_=function(){_.iJ(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
tI.prototype.onStampFinished_=tI.prototype.onStampFinished_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],tI.prototype,"data",void 0);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tI.prototype,"onStampFinished_",null);
_.E([_.S0({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],tI);
_.r(tI,"yt-subscription-product-renderer",function(){if(z8C===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;rrh===void 0&&(rrh=document.createElement("template"));var n=rrh;U.call(D,n.content.cloneNode(!0),l.content.firstChild);z8C=l}l=z8C;return l},{mode:2});var fvk;var $w1;_.RL("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var XN=function(){return _.p.apply(this,arguments)||this};
_.Z(XN,_.p);XN.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
XN.prototype.imageScrimColorValuesChanged_=function(){var l,D=(l=this.data)==null?void 0:l.imageScrimColorValues;_.iJ(this.hostElement).querySelector("#scrim").style.backgroundColor=D?_.tu(D[0]):"transparent"};
XN.prototype.imageScrimColorValuesChanged_=XN.prototype.imageScrimColorValuesChanged_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],XN.prototype,"data",void 0);
_.E([_.Pg("data.imageScrimColorValues"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],XN.prototype,"imageScrimColorValuesChanged_",null);_.E([_.S0({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],XN);
_.r(XN,"yt-subscription-product-upsell-offer-renderer",function(){if($w1===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;fvk===void 0&&(fvk=document.createElement("template"));var n=fvk;U.call(D,n.content.cloneNode(!0),l.content.firstChild);$w1=l}l=$w1;return l},{mode:2});var NHl;var s$C;var E8q;var THj;var IvO;var HPq;var S6=function(){return _.p.apply(this,arguments)||this};
_.Z(S6,_.p);S6.prototype.onYtServiceRequestError_=function(l){_.F7(this.hostElement,l.detail.error.message)};
S6.prototype.onYtServiceRequestError_=S6.prototype.onYtServiceRequestError_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],S6.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],S6.prototype,"collapsible",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],S6.prototype,"isManageRed",void 0);
_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],S6.prototype,"onYtServiceRequestError_",null);_.E([_.S0({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],S6);
_.r(S6,"yt-single-ypc-offer-renderer",function(){if(HPq===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;IvO===void 0&&(IvO=document.createElement("template"));var n=IvO;U.call(D,n.content.cloneNode(!0),l.content.firstChild);HPq=l}l=HPq;return l},{mode:2});var kQ=function(){return _.p.apply(this,arguments)||this};
_.Z(kQ,_.p);kQ.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],kQ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],kQ.prototype,"isManageRed",void 0);_.E([_.S0({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],kQ);
_.r(kQ,"yt-single-ypc-offer-list-renderer",function(){if(THj===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;E8q===void 0&&(E8q=document.createElement("template"));var n=E8q;U.call(D,n.content.cloneNode(!0),l.content.firstChild);THj=l}l=THj;return l},{mode:2});var Y5h;var OPC;_.RL("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var dG=function(){return _.p.apply(this,arguments)||this};
_.Z(dG,_.p);dG.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],dG.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],dG.prototype,"isManageRed",void 0);_.E([_.S0({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],dG);
_.r(dG,"yt-ypc-offers-list-renderer",function(){if(OPC===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Y5h===void 0&&(Y5h=document.createElement("template"));var n=Y5h;U.call(D,n.content.cloneNode(!0),l.content.firstChild);OPC=l}l=OPC;return l},{mode:2});_.RL("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var KD=function(){return _.p.apply(this,arguments)||this};
_.Z(KD,_.p);
KD.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],KD.prototype,"data",void 0);_.E([_.S0({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],KD);
_.r(KD,"yt-unlimited-manage-subscription-page-renderer",function(){if(s$C===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;NHl===void 0&&(NHl=document.createElement("template"));var n=NHl;U.call(D,n.content.cloneNode(!0),l.content.firstChild);s$C=l}l=s$C;return l},{mode:2});var VWw;var icT;var ce=function(){return _.p.apply(this,arguments)||this};
_.Z(ce,_.p);_.W=ce.prototype;_.W.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.W.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.W.onKeypress_=function(l){l.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.W.handleHeaderTap_=function(l){l.preventDefault();l.stopPropagation();this.expandOffers_()};
_.W.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.W.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
ce.prototype.dataChanged_=ce.prototype.dataChanged_;_.E([_.m(_.pi),_.T("design:type",Object)],ce.prototype,"ironA11yKeysBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ce.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],ce.prototype,"offersVisible_",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ce.prototype,"dataChanged_",null);_.E([_.S0({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],ce);
_.r(ce,"yt-collapsible-ypc-offer-renderer",function(){if(icT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;VWw===void 0&&(VWw=document.createElement("template"));var n=VWw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);icT=l}l=icT;return l},{mode:2});var ljO;var Dgl;_.RL("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var pD=function(){return _.p.apply(this,arguments)||this};
_.Z(pD,_.p);_.W=pD.prototype;_.W.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.W.dataChanged_=function(){if(this.data.backgroundImage){var l=_.IO(this.data.backgroundImage.thumbnails,screen.width),D=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=D?"linear-gradient(180deg, "+D+"), url("+l+")":"url("+l+")";this.data.gtmId&&_.fd(this.data.gtmId,_.H3("GL",""))}};
_.W.onYtServiceRequestError_=function(l){_.F7(this.hostElement,l.detail.error.message)};
_.W.getScrimLayerColorStops_=function(){var l,D,U=(l=this.data.unlimitedHeaderV2Data)==null?void 0:(D=l.unlimitedHeaderV2Data)==null?void 0:D.scrimLayerColors;if(!U)return null;var n=100/U.length;return U.map(function(y,A){A*=n;return _.tu(y)+" "+A+"%"}).join(",")};
_.W.computeLogoWithPadding=function(l){var D,U,n;return(l=(D=l.unlimitedLogoImage)==null?void 0:(U=D.thumbnails)==null?void 0:(n=U[0])==null?void 0:n.height)&&l%31===0?!0:!1};
pD.prototype.onYtServiceRequestError_=pD.prototype.onYtServiceRequestError_;pD.prototype.dataChanged_=pD.prototype.dataChanged_;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.E([_.K({computed:"computeLogoWithPadding(data)"}),_.T("design:type",Boolean)],pD.prototype,"logoWithPadding",void 0);
_.E([_.K(),_.T("design:type",Object)],pD.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pD.prototype,"dataChanged_",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],pD.prototype,"onYtServiceRequestError_",null);_.E([_.S0({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],pD);
_.r(pD,"yt-unlimited-page-header-renderer",function(){if(Dgl===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;ljO===void 0&&(ljO=document.createElement("template"));var n=ljO;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Dgl=l}l=Dgl;return l},{mode:2});var UgC;var nCW;_.RL("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var xQ=function(){return _.p.apply(this,arguments)||this};
_.Z(xQ,_.p);xQ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],xQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],xQ.prototype,"data",void 0);_.E([_.S0({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],xQ);
_.r(xQ,"yt-unlimited-user-notification-renderer",function(){if(nCW===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;UgC===void 0&&(UgC=document.createElement("template"));var n=UgC;U.call(D,n.content.cloneNode(!0),l.content.firstChild);nCW=l}l=nCW;return l},{mode:2});
}catch(e){_._DumpException(e)}
try{
var t0J,Sl8,kYq,K2W,cj$,jr8;_.Q$=function(l){var D=l.clientMessageId;var U=l.playerOffsetMs;var n=l.pageContext;l=l.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:D},!!U&&{playerOffsetMs:U},!!n&&{pageContext:n},!!l&&{userInputText:l})}};
_.aN2=function(l,D,U){D=D===void 0?5:D;if(D!==0){var n=typeof l==="function"?l():document.querySelector(l);n?(U==null?0:U.enableSmartFocus)?_.sGd(n):n.focus():setTimeout(function(){_.aN2(l,D-1,U)},500)}};
t0J=function(l){return String.raw.apply(String,[{raw:l}].concat(_.zz(_.EW.apply(1,arguments).map(function(D){return D instanceof Array?D.join(""):D}))))};
Sl8=function(l){var D=_.EW.apply(1,arguments),U=D.length;if(!Array.isArray(l)||!Array.isArray(l.raw)||l.length!==l.raw.length||!_.$gg&&l===l.raw||!(_.$gg&&!_.NTm||_.pc(l))||U+1!==l.length)throw new TypeError("$");return new XgJ(Object.freeze({strings:Object.freeze(l),args:Object.freeze(D)}))};
_.Gf=function(l){return{continuationCommand:{token:l,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
kYq=function(){return _.EW.apply(0,arguments).flat().filter(function(l){return l}).join(";")};
K2W=function(){return Sl8(dQ2,kYq.apply(null,_.zz(_.EW.apply(0,arguments))))};
cj$=function(l,D){if(_.q("web_enable_chat_autoscroll_to_user_turn")&&l&&D)return l-4+"px"};
_.pg$=function(l,D){return _.yT(l.entities,"youchatPendingResponseEntity",D)};
_.xQ5=function(l){return function(D){_.$u(_.vr("youchatPendingResponseEntity",l,{entityKey:l,isPendingResponse:D}))}};
jr8=function(l){l==null||l.addEventListener("DOMLoaded",function(){l.goToAndPlay(l.totalFrames-48,!0)})};
_.u0=function(l){this.__isSoyCss=!0;this.css=t0J.apply(null,[l.strings].concat(_.zz(l.args)))};
_.u0.prototype.toString=function(){return this.css};
var XgJ=function(){_.u0.apply(this,arguments)};
_.Z(XgJ,_.u0);var dQ2=_.wL(["",""]);_.F22=_.w(function(l){var D=_.sl(l,{numberOfChips:5}).numberOfChips;return _.g("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.g(_.wt,{each:function(){return Array(D==null?void 0:D())}},function(){return _.g("div",{class:"ytGhostChipShelfChip"})}))},"Xi");var ou8=_.w(function(l){var D=void 0,U=function(){return l.data()},n=function(){return!!_.L4(_.GM(U())).optionColor},y=_.B(_.aw(-1,void 0,"WFh1pc")),A=y.next().value,C=y.next().value,h=function(J){return A()===J},b=function(J){return U().correctAnswerIndex===J},u=function(){return A()!==-1};
y=_.B(_.aw("",void 0,"Vi7Gfe"));var Q=y.next().value,G=y.next().value;return _.g("yoututor-quiz-view-model",{class:_.DV("learningQuizComponentHost","learningYoututorQuizHost",l.className),style:_.BK({background:function(){return _.L4(_.GM(U())).backgroundColor}})},_.g("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},Q),_.g("div",{class:"learningQuizComponentQuizContainer"},_.g("div",{class:"learningQuizComponentQuiz"},_.g("div",{class:"learningQuizComponentQuizContent"},_.g(_.v,{cond:function(){return!!U().aiGeneratedQuizLabel},
then:function(){return _.g("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.g(_.BO,{text:function(){return U().aiGeneratedQuizLabel}}))}}),_.g("div",{class:"learningQuizComponentQuizHeader"},_.g("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.g("div",{class:"learningYoututorQuizText",
style:_.BK({color:function(){return _.L4(_.GM(U())).primaryTextColor}})},_.g(_.BO,{text:function(){return U().questionHeaderText}}))))),_.g("div",{role:"group",
class:_.DV("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.g(_.wt,{each:function(){return U().optionsData||[]}},function(J,L){var R={};
return _.g("button",{class:_.DV("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(R.learningQuizComponentQuizHover=function(){return!u()},R.learningQuizComponentQuizOptionWithCustomColor=n,R.learningYoututorQuizOptionSelectedCorrectOutline=function(){return u()&&b(L())},R.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return A()!==U().correctAnswerIndex&&h(L())},R.learningQuizComponentQuizIncorrectShake=function(){return A()!==
U().correctAnswerIndex&&h(L())},R)),
"on:click":_.n0(function(){if(u())return!1;C(L());G(b(L())?U().correctAnswerAriaLabel||"":U().incorrectAnswerAriaLabel||"");return!1}),
style:_.BK({background:"transparent"}),"aria-description":function(){return u()?b(L())?U().correctAnswerAriaLabel:U().incorrectAnswerAriaLabel:""},
"aria-disabled":u,el:_.fe(function(a){_.qd(271905,a,D,function(S){D=S})}),
"client-ve-type":271905},_.g("div",{class:"learningQuizComponentQuizOptionContainer"},_.g(_.BO,{text:J.optionText}),_.g(_.v,{cond:function(){var a=L();return u()&&(h(a)||b(a))},
then:function(){var a={};return _.g(_.C0,{className:_.DV("learningYoututorQuizOptionIcon",(a.learningQuizComponentQuizPulse=function(){return A()===U().correctAnswerIndex&&b(L())},a)),
size:24,icon:function(){return b(L())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.g(_.v,{cond:u,
then:function(){return _.g("div",{class:"learningYoututorQuizExplanationContainer"},_.g("div",{class:"learningYoututorQuizExplanationText"},_.g(_.BO,{text:function(){return U().explanationHeaderText}})),_.g(_.BO,{text:function(){return U().optionsData[A()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Yi");
ou8.idomCompat=!0;var wg8=_.w(function(l){var D=l.thumbsUp,U=l.thumbsDown,n=l.rightAlignThumbs;l=_.B(_.aw(!1,void 0,"OxPsH"));var y=l.next().value,A=l.next().value;l=_.B(_.aw(!1,void 0,"V5vWne"));var C=l.next().value,h=l.next().value;l={};return _.g("div",{class:_.DV("ytwThumbsUpDownThumbs",(l.ytwThumbsUpDownRightAlign=function(){return n==null?void 0:n()},l))},_.g(_.s0,{data:D,
onToggle:function(b){A(b);C()&&h(!1)},
buttonShapeOverrides:function(){return{toggled:y()}}}),_.g(_.s0,{data:U,
onToggle:function(b){h(b);y()&&A(!1)},
buttonShapeOverrides:function(){return{toggled:C()}}}))},"Zi");
wg8.idomCompat=!0;var zsv=_.w(function(l){var D=function(){return l.data().pendingStateEntityKey||""},U=_.Pr(_.pg$,D),n=function(){var h;
if(!(h=l.disabled())){var b;h=!((b=U())==null||!b.isPendingResponse)}return h},y=_.B(_.aw(K2W(""),void 0,"Q6q6y")),A=y.next().value,C=y.next().value;
_.$g(function(){requestAnimationFrame(function(){var h=l.data().onShowAnimationMs||0;h=h>0?K2W("--chip-animation-duration: "+h+"ms;"):K2W("");C(h)})});
return _.g("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:A},_.g(_.wt,{each:function(){return l.data().chipData||[]},
keyBy:"REFERENCE"},function(h){return _.g(rjq,{data:h,disabled:n,pendingStateKey:D,onError:l.onError})}))},"aj"),rjq=_.w(function(l){var D=_.gm("button"),U=_.B(_.aw(!0,void 0,"baSFEf")),n=U.next().value,y=U.next().value,A=function(){return l.data().text.content},C=function(){return l.data().transparentWhenLoading},h=_.gf(_.xv.currentPageSubTypeSelector),b=function(){var Q;
return(Q=_.Jc().resolve(_.G8(_.EN)))==null?void 0:_.i2J(Q,h())},u=_.n0(function(Q){var G,J,L,R,a,S,d,c;
return _.P(function(N){switch(N.nextAddress){case 1:Q.stopPropagation();if(l.disabled())return N.return();J=String(Math.floor(((G=_.Ai())==null?void 0:G.getCurrentTime())||0)*1E3);L="youchat-"+Date.now();R=function(){_.Xk(l.data().onClick||{});var z=_.Gf(l.data().continuation),f=_.Q$({clientMessageId:L,playerOffsetMs:J,pageContext:b()});return new Promise(function(I,iG){_.Xk(z,{form:{formData:f},commandController:{onSuccess:function(CC,vo){I(vo)},
onServerError:function(CC,vo){iG(vo.error)}}})})};
a=_.xQ5(l.pendingStateKey());a(!0);_.aN2("#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");y(!1);_.ZY(N,2);return N.yield(R(),4);case 4:_.WG(N,3);break;case 2:S=_.kF(N),(c=(d=l).onError)==null||c.call(d,S);case 3:a(!1),_.Kz(N)}})});
return _.g(_.v,{cond:n,then:function(){return _.g("div",{class:"ytwYouChatChipsDataChipWrapper"},_.g("button",{el:D,class:"ytwYouChatChipsDataChip","data-disabled":l.disabled,"data-transparent-loading":C,"on:click":u,tabindex:0},A))}})},"bj");var fN8=_.w(function(l){var D=l.data;var U=l.initiallyExpanded;var n=function(){var u;return(u=D().conversationResourceData)==null?void 0:u.learningGuideData};
l=_.B(_.WK(function(){var u;return(u=U==null?void 0:U())!=null?u:!1}));
var y=l.next().value,A=l.next().value,C=function(){A(!0)},h=_.dM(function(){var u,Q;
return(Q=(u=n())==null?void 0:u.sections)!=null?Q:[]},void 0,"QxyRyf"),b=_.dM(function(){return h().length>4},void 0,"MEbwoe");
l=_.dM(function(){var u;return!y()&&b()&&(u=n())!=null&&u.expandButton?h().slice(0,4):h()},void 0,"hIE70b");
return _.g("yt-conversation-resource-view-model",{class:_.DV("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.g(_.uI,{data:l},{expandableMetadataViewModel:_.ngJ}),_.g(_.v,{cond:function(){return b()&&!y()},
then:function(){return _.g("div",{id:"showMoreButton"},_.g(_.uI,{data:function(){var u;return(u=n())==null?void 0:u.expandButton}},{buttonViewModel:function(u){return _.g(_.t9,{data:u.data,
onClick:C})}}))}}))},"cj");_.$Q$=_.w(function(l){var D=function(){var c;return(c=l.data().text)==null?void 0:c.content},U=function(){var c,N;
return(c=l.data().webData)==null?void 0:(N=c.textResult)==null?void 0:N.content},n=_.Jc().resolve(_.oO),y=_.Wr(),A=function(){return l.data().chatResponseStyle},C=function(){return!l.data().transparentBackground},h=function(){return l.data().rightAlignThumbs},b=function(){return l.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||l.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},u=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:b()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:l.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},Q=function(){var c;
return l.data().webData||((c=l.data().text)==null?void 0:c.content)||l.data().videoResultsData||l.data().conversationResourceViewModel||l.data().quiz||l.data().yoututorQuiz||l.data().richContent},G=function(){return!!l.data().sectionHeader||Q()},J=function(){var c;
return(c=l.data().videoResultsData)==null?void 0:c.videoShelf},L=function(){var c;
return(c=l.data().webData)==null?void 0:c.sourcesShelf},R=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:l.data().thumbsDownViewModel&&l.data().thumbsUpViewModel},a=function(){return _.M(l.data().thumbsUpViewModel,_.Pq)},S=function(){return _.M(l.data().thumbsDownViewModel,_.Pq)};
_.$g(function(){requestAnimationFrame(function(){var c;(c=l.shouldAnimateIcon)!=null&&c.call(l)&&jr8(y.lottieEl)})});
var d={};return _.g("you-chat-item-view-model",{class:_.DV("ytwYouChatItemViewModelYouChatItemViewModel",(d.ytwYouChatItemViewModelColumnLayout=function(){return b()},d)),
style:_.BK({"min-height":function(){var c,N;return cj$((c=l.containerHeight)==null?void 0:c.call(l),(N=l.isLastItem)==null?void 0:N.call(l))}}),
"data-target-id":function(){return l.data().id||""}},_.g(_.v,{cond:function(){return l.data().removeIcon?!1:G()},
then:function(){var c={};return _.g("div",{"aria-hidden":"true"},_.g(_.cO,{className:_.DV("ytwYouChatItemViewModelIcon",(c.ytwYouChatItemViewModelRtl=n==="rtl",c.ytwYouChatItemViewModelHidden=function(){return!(l.data().hideIcon||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:G())},c)),
animationName:"YOUCHAT_ICON",data:u,animationRef:y}))}}),_.g(_.v,{cond:G,
then:function(){var c={};return _.g("div",{class:_.DV("ytwYouChatItemViewModelHost",(c.ytwYouChatItemViewModelHostNoPadding=function(){return!!l.data().sectionHeader&&!Q()},c.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},c.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},c.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
c.ytwYouChatItemViewModelGradientBackground=C,c.ytwYouChatItemViewModelHostAlignStart=function(){return!b()},c.ytwYouChatItemViewModelHostDefaultFlex=function(){return!b()},c)),
role:"alert"},_.g(_.v,{cond:D,then:function(N){return _.g(_.g8,{text:N,wrapCodeBlocks:!0})}}),_.g(_.uI,{data:function(){return l.data().sectionHeader}},{sectionHeaderViewModel:function(N){var z={};
return _.g(_.oa,{data:N.data,className:_.DV("ytwYouChatItemViewModelSectionHeader",(z.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!l.data().sectionHeader&&!Q()},z)),
forceSmallLayout:!0})}}),_.g(_.v,{cond:U,
then:function(N){return _.g(_.g8,{text:N,wrapCodeBlocks:!0})}}),_.g(_.v,{cond:J,
then:function(){return _.g("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.g(_.uI,{data:function(){var N;return(N=l.data().videoResultsData)==null?void 0:N.videoShelf}},{horizontalShelfViewModel:function(N){return _.g(_.Pv,{data:N.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.g(_.v,{cond:L,
then:function(){return _.g("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.g(_.uI,{data:function(){var N;return(N=l.data().webData)==null?void 0:N.sourcesShelf}},{horizontalShelfViewModel:function(N){return _.g(_.Pv,{data:N.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.g(_.uI,{data:function(){return l.data().conversationResourceViewModel}},{conversationResourceViewModel:fN8}),_.g(_.uI,{data:function(){return l.data().quiz}},{learningJourneyQuizViewModel:_.Fs8}),_.g(_.uI,{data:function(){return l.data().yoututorQuiz}},{yoututorQuizViewModel:ou8}),_.g(_.uI,{data:function(){return l.data().richContent}},{cardViewModel:_.c4W,
linearLayoutViewModel:_.C9}),_.g(_.v,{cond:R,then:function(){return _.g(wg8,{thumbsUp:a,thumbsDown:S,rightAlignThumbs:h})}}))}}),_.g(_.v,{cond:function(){return l.data().chipsData},
then:function(c){return _.g(zsv,{data:c,disabled:l.pending,onError:l.onError})}}))},"ej");
_.$Q$.idomCompat={callbacks:{onError:!0,onSend:!0}};_.NP8=_.w(function(l){var D=function(){var C;return((C=l.data)==null?void 0:C.call(l).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},U=_.Wr(),n=_.Jc().resolve(_.oO);
_.$g(function(){requestAnimationFrame(function(){var C;(C=U.lottieEl)==null||C.addEventListener("DOMLoaded",function(){var h;(h=l.onLottieLoaded)==null||h.call(l)})})});
var y=function(){var C;return(C=l.data)==null?void 0:C.call(l).loadingAnimationA11yLabel},A={};
return _.g("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var C;return((C=l.data)==null?void 0:C.call(l).targetId)||""},
"aria-label":function(){return y()||""},
role:function(){return y()?"progressbar":void 0},
style:_.BK({"min-height":function(){var C,h;return cj$((C=l.containerHeight)==null?void 0:C.call(l),(h=l.isLastItem)==null?void 0:h.call(l))}})},_.g(_.cO,{"aria-hidden":"true",
className:_.DV((A.ytChatLoadingViewModelRtl=n==="rtl",A)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:D()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||D()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:D()}}},
animationRef:U}))},"gj");_.sr8=_.w(function(l){var D=function(){return l.data().choiceSelectedText},U=function(){return l.data().hasGradientBackground},n={};
return _.g("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.BK({"min-height":function(){var y,A;return cj$((y=l.containerHeight)==null?void 0:y.call(l),(A=l.isLastItem)==null?void 0:A.call(l))}}),
"data-target-id":function(){var y;return(y=l.data().itemTargetId)!=null?y:""}},_.g(_.v,{cond:D,
then:function(){return _.g("div",{class:"ytYouChatUserTurnChoiceSelected"},_.g(_.BO,{text:D}))}}),_.g("div",{class:_.DV("ytYouChatUserTurnUserMessage",(n.ytYouChatUserTurnGradientContainer=U,n.ytYouChatUserTurnDefaultContainer=function(){return!U()},n))},function(){return l.data().text}))},"hj");
}catch(e){_._DumpException(e)}
try{
var xx1,jjw,F7g;xx1=function(l){return _.q("kevlar_watch_cinematics_invisible")||l.fullscreen&&_.q("kevlar_watch_cinematics_invisible_in_fullscreen")||l.theater&&!l.fullscreen&&_.q("kevlar_watch_cinematics_invisible_in_theater")};
jjw=function(){var l=document.createElement("canvas"),D=l.getContext("2d");if(!D)throw Error("Ro");_.wU(l,{position:"absolute",width:"100%",height:"100%"});return{element:l,context:D}};
F7g=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.q("kevlar_watch_cinematics_css_blur")};
_.oT1=function(l,D,U){return Math.abs(l-D)<=(U||1E-6)};
_.wEI=function(l,D){return l==D?!0:l&&D?l.width==D.width&&l.height==D.height:!1};_.rAq=new _.y4("notificationActionRenderer");var z3c=function(l){var D=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Au;this.element.addEventListener("load",function(){D.loaded=!0;D.resolver.resolve(D.element)});
this.element.addEventListener("error",function(){D.failed=!0});
this.element.src=l};var fyD=function(l,D){this.image=l;this.frame=D};
fyD.prototype.drawToCanvas=function(l,D){var U=this.frame.width/this.frame.columns,n=this.frame.height/this.frame.rows,y=D.offsetX,A=D.offsetY;xx1(D)?(l.fillStyle=D.fullscreen?"#000":"#0f0f0f",l.fillRect(y,A,(D==null?void 0:D.width)||U,(D==null?void 0:D.height)||n)):l.drawImage(this.image,this.frame.column*U,this.frame.row*n,U,n,y,A,(D==null?void 0:D.width)||U,(D==null?void 0:D.height)||n)};
var $xO=function(l){this.color=l};
$xO.prototype.drawToCanvas=function(l,D){var U=D.offsetX,n=D.offsetY,y=D.width,A=D.height;l.fillStyle=xx1(D)?D.fullscreen?"#000":"#0f0f0f":this.color;l.fillRect(U,n,y,A)};var Q2=function(l,D){_.Ps.call(this);this.playerApi=D;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Sr(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();Nsq(this,l);sjH(this);this.update()};
_.Z(Q2,_.Ps);Q2.prototype.addEventListeners=function(){var l=this,D=function(){l.update()},U=function(y){l.paused||(y.type==="newdata"&&(l.mosaics.clear(),ET1(l),G$(l)),sjH(l),l.update())},n=function(){l.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",D);this.playerApi.addEventListener("onVideoDataChange",U);this.playerApi.addEventListener("onStateChange",n);this.addOnDisposeCallback(function(){l.playerApi.removeEventListener("onVideoProgress",D);l.playerApi.removeEventListener("onVideoDataChange",U);l.playerApi.removeEventListener("onStateChange",n)})};
var Nsq=function(l,D){l.cinematicContainerRenderer!==D&&(l.cinematicContainerRenderer=D,ET1(l),G$(l),l.colorStoreUpdateJobId=_.Tn.addLowPriorityJob(function(){var U;if((U=l.cinematicContainerRenderer.colorStore)!=null&&U.sampledColors){U=Infinity;for(var n=_.B(l.cinematicContainerRenderer.colorStore.sampledColors),y=n.next();!y.done;y=n.next()){y=y.value;var A=Number(y.key);A!==0&&A<U&&(U=A);A=_.tu(y.value);l.colorStore.set(y.key,A)}l.colorStoreTimeInterval=U}}))},ET1=function(l){l.colorStoreUpdateJobId&&
(_.Tn.cancelJob(l.colorStoreUpdateJobId),l.colorStoreUpdateJobId=void 0);
l.colorStore.clear();l.currentStoryboardColor=void 0},Tsc=function(l,D){var U;
return(U=l.getStoryboardFrame(D))==null?void 0:U.url};
Q2.prototype.onPlayerStateChange=function(){this.update()};
Q2.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var sjH=function(l){var D=l.getStoryboardFrame(0);D&&(D=new _.Sr(D.width/D.columns,D.height/D.rows),_.wEI(l.currentStoryboardSize,D)||(l.currentStoryboardSize=D,l.publish("STORYBOARD_SIZE_CHANGED",l.currentStoryboardSize)))},IyW=function(l,D){l.currentStoryboardIndex=D;
l.pendingStoryboardIndex=NaN;D=l.getStoryboardFrame(l.currentStoryboardIndex);l.currentStoryboard=new fyD(l.mosaics.get(D.url).element,D);l.publish("STORYBOARD_CHANGED",l.currentStoryboard);l.lastUpdateTime=(0,_.J3)()};
Q2.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var G$=function(l){l.currentStoryboardIndex=NaN;l.pendingStoryboardIndex=NaN;l.currentStoryboard&&(l.currentStoryboard=void 0,l.publish("STORYBOARD_CHANGED",void 0));l.lastUpdateTime=NaN};
Q2.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)G$(this);else{var l=this.playerApi.getPlayerState(1);if(l===-1||l===5||l===0)G$(this);else if(isNaN(this.lastUpdateTime)||!((0,_.J3)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(l=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){l=""+Math.round(l*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var D=this.colorStore.get(l);D?D!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=D,this.currentStoryboard=new $xO(D),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.J3)()):(_.II(new _.rc("Could not find color for timestamp: "+l,this.cinematicContainerRenderer)),G$(this))}else G$(this);else Hwq(this,l)}};
var Hwq=function(l,D){var U=l.getStoryboardFrameIndex(D);if(U!==l.currentStoryboardIndex&&U!==l.pendingStoryboardIndex){D=Tsc(l,U);var n=l.mosaics.get(D);n?n.loaded&&IyW(l,U):(l.pendingStoryboardIndex=U,U=new z3c(D),l.mosaics.set(D,U),U.resolver.promise.then(function(){if(!l.isDisposed()&&!l.paused&&!isNaN(l.pendingStoryboardIndex)){var y=Tsc(l,l.pendingStoryboardIndex);if(y){var A;(A=l.mosaics.get(y))!=null&&A.loaded&&IyW(l,l.pendingStoryboardIndex)}else G$(l)}}))}};
Q2.prototype.getStoryboardFrameIndex=function(l){var D=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(l,D)};
Q2.prototype.getStoryboardFrame=function(l){var D=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,U,n;return((n=(U=this.playerApi).getStoryboardFrame)==null?void 0:n.call(U,l,D))||null};
Q2.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var LX=function(l,D,U,n){n=n===void 0?!1:n;_.xT.call(this);this.cinematicContainerRenderer=D;this.playerApi=U;this.theater=this.fullscreen=!1;var y;this.ambientLightThemeEnabled=!n&&!!(D==null?0:(y=D.config)==null?0:y.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=n)&&!0;this.container=document.createElement("div");l.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);YdW(this);this.backCanvas=
jjw();this.frontCanvas=jjw();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new Q2(D,this.playerApi);_.m7(this,this.storyboardManager);this.addEventListeners();OwT(this)?VUH(this,100+JW(this)*3*2,100+JW(this)*3*2):iyg(this);lpC(this,this.storyboardManager.currentStoryboard)};
_.Z(LX,_.xT);
var YdW=function(l){var D=l.playerApi.getVideoAspectRatio();_.wU(l.container,{"aspect-ratio":""+D,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var U;var n;if((l.fullscreen||l.theater)&&((U=l.cinematicContainerRenderer.config)==null?0:(n=U.watchFullscreenConfig)==null?0:n.colorSourceWidthMultiplier))U=l.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var y;U=(y=
l.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?y:l.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var A,C;if((l.fullscreen||l.theater)&&((A=l.cinematicContainerRenderer.config)==null?0:(C=A.watchFullscreenConfig)==null?0:C.colorSourceHeightMultiplier))y=l.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var h;y=(h=l.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?h:l.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.wU(l.innerContainer,
{"aspect-ratio":""+D,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+U+", "+y+")"});F7g()&&_.wU(l.innerContainer,"filter","blur("+_.RG("cinematic_watch_css_filter_blur_strength",40)+"px)")};
LX.prototype.setFullscreen=function(l,D){this.fullscreen=l;this.theater=!!D;YdW(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),l=this.storyboardManager.currentStoryboard,DVg(this),l&&UVl(this,l)};
LX.prototype.addEventListeners=function(){var l=this,D=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(y){lpC(l,y)}),U=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){iyg(l)});
this.addOnDisposeCallback(function(){l.storyboardManager.unsubscribeByKey(D);l.storyboardManager.unsubscribeByKey(U)});
var n=function(){YdW(l)};
this.playerApi.addEventListener("onVideoDataChange",n);this.addOnDisposeCallback(function(){l.playerApi.removeEventListener("onVideoDataChange",n)})};
var iyg=function(l){if(!OwT(l)){var D=l.storyboardManager.currentStoryboardSize;isNaN(D.width)||isNaN(D.height)||VUH(l,Number(D.width)+JW(l)*3*2,Number(D.height)+JW(l)*3*2)}},VUH=function(l,D,U){l.backCanvas.element.width=D;
l.backCanvas.element.height=U;l.frontCanvas.element.width=D;l.frontCanvas.element.height=U},OwT=function(l){return l.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},lpC=function(l,D,U){U=U===void 0?!1:U;
var n=l.frontCanvas.element.getAnimations()[0];n?(n.pause(),l.backCanvas.context.globalAlpha=Number(getComputedStyle(l.frontCanvas.element).opacity),l.frontCanvas.element.style.opacity="0",n.finish()):l.backCanvas.context.globalAlpha=1;l.backCanvas.context.drawImage(l.frontCanvas.element,0,0,l.backCanvas.element.width,l.backCanvas.element.height);DVg(l);D&&UVl(l,D);D=D?l.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.RG("cinematic_watch_fade_out_duration",500);n=_.RG("cinematic_watch_transition_frame_rate")/
1E3;var y={};n&&(y={easing:"steps("+Math.round(D*n)+")"});(U===void 0?0:U)||l.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:D,iterations:1},y));l.frontCanvas.element.style.opacity="1"},DVg=function(l){var D=l.ambientLightThemeEnabled||l.ambientTheaterModeEnabled,U=l.ambientLightThemeEnabled||l.ambientFullscreenEnabled;
l.frontCanvas.context.fillStyle=l.theater&&D||l.fullscreen&&U?"#000":"#0f0f0f";F7g()||(l.frontCanvas.context.filter="blur(0)");l.frontCanvas.context.fillRect(0,0,l.frontCanvas.element.width,l.frontCanvas.element.height)},UVl=function(l,D){F7g()||(l.frontCanvas.context.filter="blur("+JW(l)+"px)");
l.frontCanvas.context.globalAlpha=l.fullscreen&&l.ambientFullscreenEnabled||l.theater&&l.ambientTheaterModeEnabled?_.RG("cinematic_watch_effect_letterbox_opacity",.4):_.RG("cinematic_watch_effect_opacity",.4);var U={offsetX:JW(l)*3,offsetY:JW(l)*3,theater:l.theater,fullscreen:l.fullscreen};OwT(l)&&(U.width=100,U.height=100);D.drawToCanvas(l.frontCanvas.context,U);l.frontCanvas.context.globalAlpha=1},JW=function(l){var D;
return(D=l.cinematicContainerRenderer.config.blurStrength)!=null?D:5};
LX.prototype.disposeInternal=function(){_.xT.prototype.disposeInternal.call(this);this.container.remove()};
LX.prototype.clear=function(){lpC(this,void 0,!0)};
LX.prototype.pause=function(){this.storyboardManager.pause()};var nic;nic=_.ZR(function(){var l,D,U=!((D=(l=document.createElement("canvas")).getContext)==null||!D.call(l,"2d")),n;l=!((n=CSS)==null||!n.supports("filter: blur(0)"));n=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var y;return U&&l&&n&&!((y=CSS)==null||!y.supports("aspect-ratio: 1 / 1"))});
_.qS=function(l,D){_.Ps.call(this);this.container=l;this.playerApi=D;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=yqj(this);this.update()};
_.Z(_.qS,_.Ps);_.Aqj=function(l){var D=document.documentElement.hasAttribute("dark");l.isDarkModeEnabled=D;l.update()};
_.WUh=function(l,D){l.settingEnabled=D;l.update()};
_.qS.prototype.setFullscreen=function(l,D){this.fullscreen=l;this.theater=!!D;this.update()};
_.BMh=function(l,D){l.cinematicContainerRenderer=D;l.cinematicContainerRenderer&&(l.cinematicsVe=_.UE(l.isShorts()?227858:159022),_.cq(_.he(),l.cinematicsVe),l.loggingClientData={watchCinematicContainerData:{presentationStyle:l.cinematicContainerRenderer.presentationStyle}});l.update()};
_.qS.prototype.isShorts=function(){var l,D;return((l=this.cinematicContainerRenderer)==null?void 0:(D=l.config)==null?void 0:D.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.qS.prototype.isAllowed=function(){var l;if(l=nic()){var D,U,n;l=((U=this.cinematicContainerRenderer)==null?void 0:U.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((n=this.cinematicContainerRenderer)==null||!n.colorStore)||((D=this.cinematicContainerRenderer)==null?void 0:D.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(l)if(_.q("web_cinematics_pausing")){var y,A;l=this.isDarkModeEnabled||!!((y=this.cinematicContainerRenderer)==
null?0:(A=y.config)==null?0:A.enableInLightTheme)}else{var C,h;y=!!((C=this.cinematicContainerRenderer)==null?0:(h=C.config)==null?0:h.enableInLightTheme)&&(_.H3("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);l=this.isDarkModeEnabled||y}if(C=l){var b,u;C=!((u=(b=this.prefersReducedMotionQuery)==null?void 0:b.matches)!=null&&u)}return C};
_.Chj=function(l){(l=l.currentCinematicEffect)!=null&&(l=l.storyboardManager,l.paused=!1,sjH(l),l.update())};
_.qS.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var yqj=function(l){if(!_.q("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var D=window.matchMedia("(prefers-reduced-motion: reduce)"),U=function(){l.update()};
D.addListener(U);l.addOnDisposeCallback(function(){D.removeListener(U)});
return D}};
_.qS.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var l=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new LX(this.container,l,this.playerApi,this.isDarkModeEnabled),_.m7(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var D=this.currentCinematicEffect;D.cinematicContainerRenderer!==
l&&(D.cinematicContainerRenderer=l,Nsq(D.storyboardManager,l),YdW(D));l=_.bu();_.gj(0,194,!0);l.save();l=_.t6();this.cinematicsVe&&l&&_.wj(l,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(l=_.t6(),this.cinematicsVe&&l&&_.rj(l,[this.cinematicsVe],!1,this.loggingClientData),_.WE(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.QP.Object.defineProperties(_.qS.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var Bsc;var CO1;_.e0({_template:function(){if(CO1!==void 0)return CO1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=
l.content,U=D.insertBefore;Bsc===void 0&&(Bsc=document.createElement("template"));var n=Bsc;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return CO1=l},
is:"tp-yt-iron-pages",behaviors:[_.$s,_.wP],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var yvH;_.Av1=function(){if(_.q("kevlar_home_skeleton")&&!yvH){var l=document.querySelector("#home-page-skeleton");l&&(_.ae("hgcr"),_.kT(l),yvH=!0)}};
yvH=!1;_.l2=new _.y4("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var ykT=function(l){return _.$Yg(_.fDc(l&16777215))<.5},AkI=function(l,D,U){var n=U.minimumRowsOfVideosBetweenSections===void 0?1:U.minimumRowsOfVideosBetweenSections;
return l<(U.minimumRowsOfVideosAtStart===void 0?2:U.minimumRowsOfVideosAtStart)||D!==null&&l-D<=n?!1:!0},WHH=function(l,D){var U=0,n=0;
l=_.B(l);for(var y=l.next();!y.done;y=l.next()){var A=y.value;if(A.richItemRenderer)A.richItemRenderer.rowIndex=n,A.richItemRenderer.colIndex=U++,U===D&&(U=0,n++);else if(A.richGroupRenderer&&A.richGroupRenderer.numColumns!==void 0)A.richGroupRenderer.rowIndex=n,A.richGroupRenderer.colIndex=U,U+=A.richGroupRenderer.numColumns,U===D&&(U=0,n++);else if(A.richSectionRenderer){var C=y=void 0;if(A=_.M((y=A)==null?void 0:(C=y.richSectionRenderer)==null?void 0:C.content,_.eR5))A.rowIndex=n++}}},BTc=function(l,
D){var U=D.contentElement;
D=D.rendererToTagNameMap;if(U&&D&&D.size!==0){for(var n=new Map,y=_.B(U.children),A=y.next();!A.done;A=y.next()){A=A.value;var C=A.tagName.toLowerCase(),h=n.get(C);h||(h=[],n.set(C,h));h.push(A)}if(n.size!==0)for(y=Math.min(l.length,U.children.length),A=new Map,C=0;C<y;C++){h=Object.keys(l[C])[0];h=D.get(h);if(!h)break;var b=A.get(h);b===void 0&&(b=0,A.set(h,b));var u=n.get(h);if(!u||b>=u.length)break;A.set(h,b+1);h=u[b];b=U.children[C];b!==h&&(_.sV=!0,_.EV.set(h,!0),U.insertBefore(h,b),_.EV.delete(h),
_.sV=!1)}}},CwD=function(l,D,U,n,y,A,C){n=n===void 0?{}:n;
if(!l||!l.length)return{orderedContent:[]};l=l.slice();var h=[],b=[];y=null;for(var u=0,Q=function(N){b.sort(function(I,iG){return iG.skippedOnRow-I.skippedOnRow});
for(var z,f=(z=b.shift())==null?void 0:z.content;f;)!f.richSectionRenderer&&N||h.push(f),z=void 0,f=(z=b.shift())==null?void 0:z.content},G=void 0,J=void 0,L=new Set;l.length>0||b.length>0;){for(var R=[],a=D;a>0;){var S=void 0,d=void 0,c=(d=b[0]&&b[0].skippedOnRow<u?(S=b.shift())==null?void 0:S.content:void 0)!=null?d:l.shift();
if(!c)break;if(c.richItemRenderer)S=c.richItemRenderer.targetId,d=void 0,S&&((d=C)==null?0:d.has(S))&&(d=C.get(S),!G||d&&d.timestamp>G.timestamp)&&(G=d,J&&L.add(J),J=S),R.push(c),a--;else if(c.richGroupRenderer&&c.richGroupRenderer.numColumns!==void 0)c.richGroupRenderer.numColumns<=a?(R.push(c),a-=c.richGroupRenderer.numColumns):a===D&&c.richGroupRenderer.numColumns>D?(R.push({richGroupRenderer:Object.assign({},c.richGroupRenderer,{numColumns:D})}),a=0):b.push({content:c,skippedOnRow:u});else if(c.richSectionRenderer)if(AkI(u,
y,n)&&a===D){h.push(c);y=u;u++;continue}else b.push({content:c,skippedOnRow:u});else if(c.continuationItemRenderer){Q(!0);h.push(c);a=0;break}if(a===0)h.push.apply(h,_.zz(R));else if(!U&&l.length===0){Q(!1);h.push.apply(h,_.zz(R));a=0;break}}u++;G&&(h.push(G.content),u++);J=G=void 0}WHH(h,D);A&&BTc(h,A);return{orderedContent:h,pinnedContentNotShownTargetIds:L}},bcH=function(l,D){if(D){var U=_.EB().getState().entities.flowStateEntity,n=hIw(l),y=[D];
n&&n!==D&&y.push(n);var A=!0,C;if(U&&l.flowStateEntityKey&&((C=U[l.flowStateEntityKey])==null?void 0:C.primaryButtonDisabled)!==void 0){var h;A=!((h=U[l.flowStateEntityKey])==null||!h.primaryButtonDisabled)}Pww(l,n!=null?n:D,y,A)}},uOC=function(l){return _.fM(_.EB(),function(D){return D.entities.flowStateEntity},function(D,U){if(l.flowStateEntityKey){var n,y=D==null?void 0:(n=D[l.flowStateEntityKey])==null?void 0:n.currentStepId,A;
U=U==null?void 0:(A=U[l.flowStateEntityKey])==null?void 0:A.currentStepId;A=_.EB().getState().talkToRecs;if(y&&y!==U){var C;D=(D==null?void 0:(C=D[l.flowStateEntityKey])==null?void 0:C.stepIdStack)||Object.keys(A.stepStates);C=!gCk(A==null?void 0:A.stepStates[y]);Pww(l,y,D,C)}}})},QlW=function(l){return _.fM(_.EB(),vCH,function(D){var U=hIw(l);
if(U){var n=Object.keys(D.stepStates);D=!gCk(D==null?void 0:D.stepStates[U]);Pww(l,U,n,D)}})},gCk=function(l){var D=Object.keys((l==null?void 0:l.selectionStates)||{}).reduce(function(A,C){return A||(l==null?void 0:l.selectionStates[C].isSelected)},!1),U,n,y=!!(l==null?0:(U=l.userQuery)==null?0:(n=U.userQuery)==null?0:n.trim());
return D||y},hIw=function(l){if(l.flowStateEntityKey){var D,U,n=(D=_.EB().getState().entities.flowStateEntity)==null?void 0:(U=D[l.flowStateEntityKey])==null?void 0:U.currentStepId;
if(n)return n}},Pww=function(l,D,U,n){_.EB().dispatch(_.vr("flowStateEntity",l.flowStateEntityKey,{currentStepId:D,
stepIdStack:U,key:l.flowStateEntityKey,primaryButtonDisabled:n}))},GqI;var Jkl;_.e0({_template:function(){if(Jkl!==void 0)return Jkl;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
var D=l.content,U=D.insertBefore;GqI===void 0&&(GqI=document.createElement("template"));var n=GqI;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Jkl=l},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var LHT=new _.y4("flowRootRenderer");var qWD=new _.y4("chipsShelfViewModel");var MD1=new _.y4("responsiveContainerConfiguration");_.RII=new _.y4("engagementPanelSectionListRenderer");var ZcT=function(){this.horizontal=!1},eIc=function(l,D){l.horizontal=D};
ZcT.prototype.position=function(l,D,U,n){n=n===void 0?1:n;l=this.delta(l)*n+D;n=Math.max(D,U);return l>=Math.min(D,U)&&l<=n?l:U};
ZcT.prototype.axis=function(l){l=this.direction(l);return l==="up"||l==="down"?"Y":"X"};var j6=function(l,D,U){D=D===void 0?_.Fc():D;this.target=l;this.manager=D;this.touchAction=U;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
j6.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(_.zz(this.events)));for(var l=_.B(this.events),D=l.next();!D.done;D=l.next())this.listen(D.value)}};
j6.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.zz(this.events)));for(var l=_.B(this.events),D=l.next();!D.done;D=l.next())this.unlisten(D.value)}};
j6.prototype.listen=function(l){this.eventMap[l]&&this.target.addEventListener(l,this.eventMap[l])};
j6.prototype.unlisten=function(l){this.eventMap[l]&&this.target.removeEventListener(l,this.eventMap[l])};var FN=function(){ZcT.apply(this,arguments)};
_.Z(FN,ZcT);FN.prototype.direction=function(l){var D=l.detail;l=D.deltaY;D=D.deltaX;return l&&!this.horizontal?l>0?"down":"up":D&&this.horizontal?D>0?"right":"left":"none"};
FN.prototype.distance=function(l){return Math.abs(this.delta(l))};
FN.prototype.delta=function(l){var D=this.direction(l),U=l.detail;l=U.deltaX;U=U.deltaY;return D==="up"||D==="down"?U||0:l||0};
FN.prototype.velocity=function(l){var D=this.direction(l),U=l.detail;l=U.velocityX;U=U.velocityY;return Math.abs(D==="up"||D==="down"?U||0:l||0)};_.oM=function(l,D,U,n,y,A){y=y===void 0?new FN:y;A=A===void 0?_.Fc():A;j6.call(this,D,A,n);var C=this;this.element=l;this.target=D;this.config=U;this.input=y;this.manager=A;this.events=["panstart","panmove","panend"];this.onPanStart=function(){C.config.draggingClass&&C.element.classList.add(C.config.draggingClass);C.config.startAction&&C.config.startAction()};
this.onPanMove=function(h){var b=mgO(C,h);if(b){C.move(h,b);b.fade&&C.fade(h,b);var u=C.input.direction(h);b.moveAction&&b.moveAction(ajI(C,h,b),u)}};
this.onPanEnd=function(h){var b,u,Q,G,J,L;return _.P(function(R){if(R.nextAddress==1){C.animationRequestId&&cancelAnimationFrame(C.animationRequestId);C.animationRequestId=void 0;b=mgO(C,h);if(!b)return R.return();u=b;Q=u.triggerAction;G=u.fade;J=u.disableFinish;L=u.translateBack;var a=C.input.velocity(h),S=C.input.distance(h),d=C.threshold(b);return a>.3&&S>10||S>d?J?R.jumpTo(6):G?R.yield(tDI(C,h),6):R.yield(XhH(C,h,b),6):L?R.yield(C.translateBack(h),3):R.jumpTo(3)}R.nextAddress!=3&&Q&&Q();C.config.draggingClass&&
C.element.classList.remove(C.config.draggingClass);C.reset();_.Kz(R)})};
l=Object.keys(U.triggers);this.directions=new Set(l);eIc(this.input,this.directions.has("right")||this.directions.has("left"))};
_.Z(_.oM,j6);_.oM.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var mgO=function(l,D){D=l.input.direction(D);return l.config.triggers[D]};
_.oM.prototype.move=function(l,D){var U=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var n=U.input.axis(l),y=U.input.position(l,U.config.startPosition,D.endPosition,D.moveRatio||1);U.element.style.transform="translate"+n+"("+y+"px)";U.animationRequestId=void 0}))};
var ajI=function(l,D,U){var n=U.moveRatio||1;U=Math.abs(l.config.startPosition-U.endPosition);return Math.min(l.input.distance(D)*n,U)/U};
_.oM.prototype.fade=function(l,D){var U=D.endOpacity;l=ajI(this,l,D);l>0&&(this.element.style.opacity=""+(((U||0)-1)*l+1))};
_.oM.prototype.threshold=function(l){return l.threshold?l.threshold:Math.abs(l.endPosition-this.config.startPosition)/3};
var XhH=function(l,D,U){var n,y,A,C,h,b,u;return _.P(function(Q){if(Q.nextAddress==1)return n=l.input.delta(D)+l.config.startPosition,y=l.input.axis(D),A=U,C=A.endPosition,h=A.transitionEndPosition,u=(b=h)!=null?b:C,Q.yield(l.element.animate([{transform:"translate"+y+"("+n+"px)"},{transform:"translate"+y+"("+u+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);l.element.style.transform="translate"+y+"("+u+"px)";_.Kz(Q)})};
_.oM.prototype.translateBack=function(l){var D=this,U,n;return _.P(function(y){if(y.nextAddress==1){if(!D.element.style.transform)return y.return();U=D.input.axis(l);n=D.config.startPosition;return y.yield(D.element.animate([{transform:D.element.style.transform},{transform:"translate"+U+"("+n+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}D.element.style.transform="translate"+U+"("+n+"px)";_.Kz(y)})};
var tDI=function(l,D){var U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return U=l.input.delta(D)+l.config.startPosition,n=l.input.axis(D),y=U+70,A=l.element.style.opacity===""?1:l.element.style.opacity,C.yield(l.element.animate([{transform:"translate"+n+"("+U+"px)",opacity:A},{transform:"translate"+n+"("+y+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);l.element.style.transform="translate"+n+"("+y+"px)";l.element.style.opacity="0";_.Kz(C)})};var wG=function(){var l=_.vg.apply(this,arguments)||this;l._noAccessors=!0;l.scrollRate=3;l.autoScrollAnimationStart=0;l.autoScrollPaused=!1;l.autoScrollRafId=0;return l};
_.Z(wG,_.vg);_.W=wG.prototype;_.W.created=function(){var l=this;this.boundAutoScrollHandler=function(D){l.autoScroll(D)}};
_.W.detached=function(){this.hostElement.removeEventListener("mouseout",_.CY(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.CY(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.CY(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.W.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.CY(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.CY(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.CY(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.CY(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.CY(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.CY(this,this.endAutoScroll)),this.endAutoScroll())};
_.W.autoScroll=function(l){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=l);var D;if(D=!this.autoScrollPaused&&this.scrollTarget)D=this.scrollTarget,D=D.scrollHeight-D.scrollTop!==D.clientHeight;D&&(D=1E3/this.scrollRate,l-=this.autoScrollAnimationStart,l>D&&(this.scrollTarget.scrollTop+=Math.ceil(l/D),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.W.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.W.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
wG.prototype.autoScrollEnabledChanged=wG.prototype.autoScrollEnabledChanged;_.E([_.K(),_.T("design:type",Object)],wG.prototype,"scrollRate",void 0);_.E([_.K(),_.T("design:type",Object)],wG.prototype,"scrollTarget",void 0);_.E([_.K(),_.T("design:type",Boolean)],wG.prototype,"autoScrollEnabled",void 0);_.E([_.Pg("autoScrollEnabled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wG.prototype,"autoScrollEnabledChanged",null);_.E([_.Qj()],wG);_.SWO=[wG.prototype];var kqI;var rG=function(){var l=_.p.apply(this,arguments)||this;l.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};l.forceDarkTheme=!1;l.forceLightTheme=!1;l.dynamicTextHeight=94;l.hasOverflowButton=!1;l.isInfeedModernization=!1;return l};
_.Z(rG,_.p);_.W=rG.prototype;_.W.computeUrlImg=function(l){if(l)return _.H9(l.thumbnails)};
_.W.getLogoHeight=function(l){return this.logoWithPadding(l)?"31":"24"};
_.W.getLogoClassName=function(l){return this.logoWithPadding(l)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.W.logoWithPadding=function(l){var D,U;return(l=(D=l.thumbnails)==null?void 0:(U=D[0])==null?void 0:U.height)&&l%31===0?!0:!1};
_.W.sendImpressionEndpoints=function(l){l.impressionEndpoints&&_.lu(this.hostElement,l.impressionEndpoints)};
_.W.observeBasicPalette=function(){var l,D,U=(l=this.data)==null?void 0:(D=l.colorData)==null?void 0:D.basicColorPaletteData;U?_.qh(this.hostElement,U):_.qh(this.hostElement,{})};
_.W.observeDataChanged=function(){var l;this.dynamicTextHeight=((l=this.data)==null?0:l.supplementalText)?74:94;var D;this.hasSupplementalText=!((D=this.data)==null||!D.supplementalText);var U,n,y,A;l=(U=this.data)==null?void 0:(n=U.actionButton)==null?void 0:(y=n.buttonRenderer)==null?void 0:(A=y.colorData)==null?void 0:A.basicColorPaletteData;var C,h,b;if(!((C=this.data)==null?0:(h=C.actionButton)==null?0:(b=h.buttonRenderer)==null?0:b.style)&&l){this.computeIsInfeedModernization(this.data)||(l.borderColor=
l.foregroundTitleColor);var u,Q;this.set("data.actionButton.buttonRenderer",_.we.unsafeClone((u=this.data)==null?void 0:(Q=u.actionButton)==null?void 0:Q.buttonRenderer))}};
_.W.observeDataForCounterfactual=function(){if(_.q("kevlar_banner_cf_extra_logging")){var l;((l=this.data)==null?0:l.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.W.computeSupplementalStyle=function(){var l;if((l=this.data)!=null&&l.supplementalText){var D,U,n;if((D=this.data)==null?0:(U=D.colorData)==null?0:(n=U.basicColorPaletteData)==null?0:n.foregroundActivatedColor)return l=_.an(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+l+"; --yt-endpoint-hover-color:"+l+"; --yt-endpoint-visited-color:"+l+"; --yt-formatted-string-bold-font-weight:700;"}};
_.W.computeForcedDarkTheme=function(){var l,D,U,n=(l=this.data)==null?void 0:(D=l.actionButton)==null?void 0:(U=D.buttonRenderer)==null?void 0:U.style,y,A,C;l=ykT(((y=this.data)==null?void 0:(A=y.colorData)==null?void 0:(C=A.basicColorPaletteData)==null?void 0:C.backgroundColor)||0);return n&&l};
_.W.computeForcedLightTheme=function(){var l,D,U,n=(l=this.data)==null?void 0:(D=l.actionButton)==null?void 0:(U=D.buttonRenderer)==null?void 0:U.style,y,A,C;l=!ykT(((y=this.data)==null?void 0:(A=y.colorData)==null?void 0:(C=A.basicColorPaletteData)==null?void 0:C.backgroundColor)||0);return n&&l};
_.W.computeHasOverflowButton=function(l){return!!l.overflowButton};
_.W.computeHasTitle=function(l){return!!l.title};
_.W.computeTitleMaxFontSize=function(l){return this.computeHasOverflowButton(l)?28:64};
_.W.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.W.computeIsInfeedModernization=function(){var l,D,U,n,y=(l=this.data)==null?void 0:(D=l.actionButton)==null?void 0:(U=D.buttonRenderer)==null?void 0:(n=U.colorData)==null?void 0:n.basicColorPaletteData;return(y==null?void 0:y.backgroundColor)===452984831||(y==null?void 0:y.backgroundColor)===218103808};
rG.prototype.observeDataForCounterfactual=rG.prototype.observeDataForCounterfactual;rG.prototype.observeDataChanged=rG.prototype.observeDataChanged;rG.prototype.observeBasicPalette=rG.prototype.observeBasicPalette;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],rG.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],rG.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],rG.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],rG.prototype,"hasSupplementalText",void 0);_.E([_.K(),_.T("design:type",Object)],rG.prototype,"dismissButtonOverrides",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.T("design:type",Boolean)],rG.prototype,"hasTitle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.T("design:type",Object)],rG.prototype,"forceDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.T("design:type",Object)],rG.prototype,"forceLightTheme",void 0);_.E([_.K(),_.T("design:type",Object)],rG.prototype,"dynamicTextHeight",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.T("design:type",Object)],rG.prototype,"hasOverflowButton",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.T("design:type",Object)],rG.prototype,"isInfeedModernization",void 0);_.E([_.Pg("data.colorData.basicColorPaletteData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rG.prototype,"observeBasicPalette",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rG.prototype,"observeDataChanged",null);_.E([_.Pg("data.isVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rG.prototype,"observeDataForCounterfactual",null);_.E([_.x({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],rG);
_.r(rG,"ytd-banner-promo-renderer",function(){if(kqI!==void 0)return kqI;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return kqI=l},{mode:1});var dgW;var KHH;var ck1;var phc=function(){return _.p.apply(this,arguments)||this};
_.Z(phc,_.p);_.E([_.K(),_.T("design:type",Object)],phc.prototype,"data",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],phc.prototype,"ytRendererBehavior",void 0);_.E([_.x({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],phc);
_.r(phc,"ytd-hashtag-grid-tile-renderer",function(){if(ck1!==void 0)return ck1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ck1=l},{mode:1});var zV=function(){return _.p.apply(this,arguments)||this};
_.Z(zV,_.p);zV.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
zV.prototype.updateRichGridTrendingHashtagsVisibility=function(){var l,D;if(((l=this.data)==null||!l.isExpanded)&&(D=this.data)!=null&&D.tiles){l=this.data.tiles.length;D=l>this.richGridItemsPerRow?this.richGridItemsPerRow+1:l;var U=Math.ceil(l/D);this.fullyVisibleRows=l%D===1&&U===2?1:Math.min(U,2);this.isShowMoreVisible=this.fullyVisibleRows<U}};
zV.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
zV.prototype.updateRichGridTrendingHashtagsVisibility=zV.prototype.updateRichGridTrendingHashtagsVisibility;_.E([_.K(),_.T("design:type",Object)],zV.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Number)],zV.prototype,"fullyVisibleRows",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],zV.prototype,"isShowMoreVisible",void 0);_.E([_.K({selector:_.t4,value:0}),_.T("design:type",Number)],zV.prototype,"richGridItemsPerRow",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],zV.prototype,"ytdReduxBehavior",void 0);_.E([_.Pg("data","richGridItemsPerRow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zV.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.E([_.x({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],zV);
_.r(zV,"ytd-hashtag-grid-shelf-renderer",function(){if(KHH!==void 0)return KHH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return KHH=l},{mode:1});var xgh;var jlc;var fD=function(){var l=_.p.apply(this,arguments)||this;l.visibleVideos=[];l.hiddenVideos=[];l.modern=_.q("web_modern_buttons");l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(fD,_.p);_.W=fD.prototype;_.W.attached=function(){var l=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",l);this.onDarkModeToggledAction(l)};
_.W.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"}}}};
_.W.dataChanged=function(){var l=this;this.requestElementsPerRow();var D,U;this.currentColorPalette=this.isDarkTheme?(D=this.data)==null?void 0:D.darkColorData:(U=this.data)==null?void 0:U.lightColorData;var n;if((n=this.currentColorPalette)==null?0:n.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.u6(this,function(){l.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.W.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.W.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.W.computeIsFirstFeedItem=function(l){return l};
_.W.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&this.set("isDarkTheme",l);this.data&&(this.currentColorPalette=l?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.W.getCurrentLogo=function(l,D){if(l)return D?l.darkLogoImage:l.lightLogoImage};
_.W.computeTitleStyle=function(l){var D;if((D=this.data)!=null&&D.title&&l&&l.textPrimary!==void 0)return"color:"+_.an(l.textPrimary)+";"};
_.W.computeSubtitleStyle=function(l){var D;if((D=this.data)!=null&&D.subtitle&&l&&l.textSecondary!==void 0)return"color:"+_.an(l.textSecondary)+";"};
_.W.computeDismissIconStyle=function(l){if(this.data&&this.data.dismissButton&&l&&l.textPrimary!==void 0)return"--yt-button-color:"+_.an(l.textPrimary)+";"};
_.W.computeOverflowButtonStyle=function(l){if(this.data&&this.data.overflowButton&&l&&l.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.an(l.textPrimary)+";--yt-spec-icon-active-other:"+_.an(l.textPrimary)+";"};
_.W.computeBackgroundStyle=function(l){if(l&&this.data){var D="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var U=_.H9((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);U&&(D+='background-image:url("'+U+'");')}l.backgroundColor!==void 0&&(D+="background-color:"+_.tu(l.backgroundColor)+";");return D}};
_.W.computeButton=function(){var l,D=Object.assign({},_.M((l=this.data)==null?void 0:l.showMoreButton,_.yn));if(this.modern&&D){D.style="STYLE_MONO_OUTLINE";var U;if(l=(U=this.currentColorPalette)==null?void 0:U.textPrimary)D.colorData={basicColorPaletteData:{foregroundTitleColor:l,borderColor:l}}}return D};
_.W.shouldShowBottomButton=function(l,D){return!(l==null?0:l.header)&&!(l==null||!l.primaryButton)&&D<3};
_.W.checkExpanded=function(l){this.isExpanded=l&&l.content?this.hiddenVideos.length===0:!0};
_.W.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.W.getLogoHeight=function(l){return this.logoWithPadding(l)?"26":"20"};
_.W.getLogoImageId=function(l){return this.logoWithPadding(l)?"logo-image-with-padding":"logo-image"};
_.W.computeHasSectionHeader=function(l){return!!l.header};
_.W.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var l;if((l=this.data.primaryButton)==null?0:l.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 D;((D=this.data.dismissButton)==null?0:D.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var U,n;((U=this.data)==null?0:(n=U.primaryButton)==null?0:n.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.W.setVisibleVideos=function(l){if(this.data&&this.data.content)if(this.data.content.length){var D=this.data.content.length;this.data.header?l?(this.visibleVideos=this.data.content.slice(0,Math.min(D,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(D,this.slimItemsPerRow),D)):(this.visibleVideos=this.data.content.slice(0,Math.min(D,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(D,this.elementsPerRow),D)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(D,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(D,this.elementsPerRow),D)):(this.visibleVideos=this.data.content.slice(0,Math.min(D,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(D,this.elementsPerRow-1),D))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.W.setHasMovieRenderer=function(){var l;if((l=this.data)!=null&&l.content){var D;this.hasMovieRenderer=!!_.M((D=this.data)==null?void 0:D.content[0],_.KtH)}else this.hasMovieRenderer=!1};
_.W.requestElementsPerRow=function(){_.O9(this.hostElement,"yt-request-elements-per-row")};
_.W.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var l=_.B(this.hiddenMediaRenderers),D=l.next();!D.done;D=l.next())D.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(l=_.iJ(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&l.focus()}};
_.W.updateTitleSpec=function(){var l;(l=this.data)!=null&&l.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.W.logoWithPadding=function(l){var D,U,n;return(l=(D=this.getCurrentLogo(l,this.isDarkTheme))==null?void 0:(U=D.thumbnails)==null?void 0:(n=U[0])==null?void 0:n.height)&&l%31===0?!0:!1};
_.W.onUpdateElementsPerRowAction=function(l,D,U){l&&this.elementsPerRow!==l&&(this.elementsPerRow=l);U&&this.slimItemsPerRow!==U&&(this.slimItemsPerRow=U)};
fD.prototype.slimItemsPerRowChanged=fD.prototype.slimItemsPerRowChanged;fD.prototype.elementsPerRowChanged=fD.prototype.elementsPerRowChanged;fD.prototype.dataChanged=fD.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],fD.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],fD.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],fD.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fD.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],fD.prototype,"currentColorPalette",void 0);_.E([_.K(),_.T("design:type",Array)],fD.prototype,"visibleVideos",void 0);_.E([_.K(),_.T("design:type",Array)],fD.prototype,"hiddenVideos",void 0);
_.E([_.K(),_.T("design:type",Object)],fD.prototype,"primaryButton",void 0);_.E([_.K({reflectToAttribute:!0,value:3}),_.T("design:type",Number)],fD.prototype,"elementsPerRow",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],fD.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],fD.prototype,"isExpanded",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],fD.prototype,"largeTitle",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],fD.prototype,"hasMovieRenderer",void 0);_.E([_.K(),_.T("design:type",Number)],fD.prototype,"slimItemsPerRow",void 0);_.E([_.K(),_.T("design:type",Boolean)],fD.prototype,"showLightVideoMetadata",void 0);_.E([_.K(),_.T("design:type",Boolean)],fD.prototype,"showDarkVideoMetadata",void 0);_.E([_.K(),_.T("design:type",Number)],fD.prototype,"videoMetadataColor",void 0);
_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],fD.prototype,"miniMode",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.T("design:type",Boolean)],fD.prototype,"isFirstFeedItem",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.T("design:type",Boolean)],fD.prototype,"hasSectionHeader",void 0);
_.E([_.K({reflectToAttribute:!0,value:!0}),_.T("design:type",Boolean)],fD.prototype,"roundedContainer",void 0);_.E([_.uJ("#visible-video-container ytd-rich-grid-media"),_.T("design:type",Array)],fD.prototype,"visibleMediaRenderers",void 0);_.E([_.uJ("#hidden-video-container ytd-rich-grid-media"),_.T("design:type",Array)],fD.prototype,"hiddenMediaRenderers",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fD.prototype,"modern",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fD.prototype,"dataChanged",null);_.E([_.Pg("elementsPerRow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fD.prototype,"elementsPerRowChanged",null);_.E([_.Pg("slimItemsPerRow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fD.prototype,"slimItemsPerRowChanged",null);
_.E([_.x({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],fD);
_.r(fD,"ytd-brand-video-shelf-renderer",function(){if(jlc!==void 0)return jlc;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return jlc=l},{mode:1});var FHW;var $Q=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z($Q,_.p);_.W=$Q.prototype;_.W.attached=function(){var l=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",l);this.onDarkModeToggledAction(l)};
_.W.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"}}}};
_.W.dataChanged=function(){this.requestElementsPerRow();var l,D;this.currentColorPalette=this.isDarkTheme?(l=this.data)==null?void 0:l.darkColorData:(D=this.data)==null?void 0:D.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.W.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.W.computeIsFirstFeedItem=function(l){return l};
_.W.onDarkModeToggledAction=function(l){l!==this.isDarkTheme&&this.set("isDarkTheme",l);this.data&&(this.currentColorPalette=l?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(l),this.updateButtonPalette())};
_.W.shouldShowThumbnailInMetadata=function(l){return l<=1};
_.W.computeVideoMetadataColor=function(){if(this.data){var l;if((l=this.currentColorPalette)==null?0:l.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.W.computeTitleStyle=function(l){var D;if((D=this.data)!=null&&D.title&&l&&l.textPrimary!==void 0)return"color:"+_.an(l.textPrimary)+";"};
_.W.computeSubtitleStyle=function(l){var D;if((D=this.data)!=null&&D.subtitle&&l&&l.textSecondary!==void 0)return"color:"+_.an(l.textSecondary)+";"};
_.W.computeOverflowButtonStyle=function(l){if(this.data&&this.data.overflowButton&&l.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.an(l.textPrimary)+";--yt-spec-icon-active-other:"+_.an(l.textPrimary)+";"};
_.W.computeBackgroundStyle=function(l){if(l&&this.data){var D="";l.backgroundColor!==void 0&&(D+="background-color:"+_.tu(l.backgroundColor)+";");return D}};
_.W.computeHasOverflowButton=function(l){return!!l.overflowButton};
_.W.updateButtonPalette=function(){if(this.data){var l;if((l=this.data.primaryButton)==null?0:l.buttonRenderer){var D;if((D=this.currentColorPalette)==null?0:D.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var U;((U=this.currentColorPalette)==null?0:U.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)})}}};
_.W.requestElementsPerRow=function(){_.O9(this.hostElement,"yt-request-elements-per-row")};
_.W.updateTitleSpec=function(){var l;(l=this.data)!=null&&l.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")};
_.W.onUpdateElementsPerRowAction=function(l){l&&this.elementsPerRow!==l&&(this.elementsPerRow=l)};
$Q.prototype.elementsPerRowChanged=$Q.prototype.elementsPerRowChanged;$Q.prototype.dataChanged=$Q.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],$Q.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],$Q.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],$Q.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$Q.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],$Q.prototype,"currentColorPalette",void 0);_.E([_.K(),_.T("design:type",Object)],$Q.prototype,"primaryButton",void 0);
_.E([_.K({reflectToAttribute:!0,value:3}),_.T("design:type",Number)],$Q.prototype,"elementsPerRow",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],$Q.prototype,"isDarkTheme",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],$Q.prototype,"titleSize",void 0);_.E([_.K(),_.T("design:type",Number)],$Q.prototype,"videoMetadataColor",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],$Q.prototype,"miniMode",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.T("design:type",Boolean)],$Q.prototype,"isFirstFeedItem",void 0);_.E([_.K({reflectToAttribute:!0,value:!0}),_.T("design:type",Boolean)],$Q.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.T("design:type",Boolean)],$Q.prototype,"hasOverflowButton",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$Q.prototype,"dataChanged",null);_.E([_.Pg("elementsPerRow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$Q.prototype,"elementsPerRowChanged",null);_.E([_.x({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],$Q);
_.r($Q,"ytd-brand-video-singleton-renderer",function(){if(FHW!==void 0)return FHW;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return FHW=l},{mode:_.Vj("kevlar_poly_si_batch_j070")?1:2});var oCC;var whD=_.w(function(l){var D=l.data;return _.g(_.rh,{data:function(){return D().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(D().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var U=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":U=88;break a;default:U=88}return U},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return D().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"bn"),zIg=_.w(function(l){var D=l.metadataRow;
var U=l.delimiter;return _.g(_.wt,{each:function(){return D().textParts||[]},
keyBy:"INDEX"},function(n,y){return _.g(_.GZ,null,_.g(_.BO,{text:n,noWrap:!0,userInput:!0}),_.g(rk1,{delimiter:U,max:function(){return D().textParts.length},
index:y}))})},"cn"),rk1=_.w(function(l){var D=l.delimiter;
var U=l.max;var n=l.index;return _.g(_.v,{cond:function(){return(D==null?void 0:D())&&U()-1>n()},
then:function(){return _.g("span",null,D)}})},"dn"),fjO=_.w(function(l){var D=l.data;
l={};return _.g("yt-profile-page-header-information-view-model",{class:_.DV("profilePageHeaderInformationViewModelHost",(l.profilePageHeaderInformationViewModelMobile=!1,l))},_.g(_.v,{cond:function(){return D().onTap},
then:function(){return _.g(_.qO,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.te(D().onTap)}},_.g(_.uI,{data:function(){return D().thumbnail}},{profilePageHeaderThumbnailViewModel:whD}))},
else:function(){return _.g("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.g(_.uI,{data:function(){return D().thumbnail}},{profilePageHeaderThumbnailViewModel:whD}))}}),_.g("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.g(_.v,{cond:function(){return D().onTap},
then:function(){return _.g(_.uI,{data:function(){return D().title}},{profilePageHeaderTitleViewModel:function(U){var n=U.data;
return _.g(_.qO,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.te(n().onTap)}},_.g(_.BO,{text:function(){return n().title}}))}})},
else:function(){return _.g(_.uI,{data:function(){return D().title}},{profilePageHeaderTitleViewModel:function(U){var n=U.data;
return _.g(_.BO,{text:function(){return n().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.g(_.uI,{data:function(){return D().metadata}},{profilePageHeaderMetadataViewModel:function(U){var n=U.data;
return _.g(_.v,{cond:function(){return n().metadataRows},
then:function(y){return _.g("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.g(_.wt,{each:y,keyBy:"INDEX"},function(A,C){return _.g(_.GZ,null,_.g(zIg,{metadataRow:A,delimiter:" \u2022 "}),_.g(rk1,{delimiter:" \u2022 ",max:function(){return y().length},
index:C}))}))}})}})))},"en");
fjO.idomCompat=!0;_.Tt(fjO,"yt-profile-page-header-information-view-model",{props:{data:_.C$}});var Ne=function(){return _.p.apply(this,arguments)||this};
_.Z(Ne,_.p);Ne.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ne.prototype,"data",void 0);_.E([_.x({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Ne);
_.r(Ne,"ytd-effect-pivot-header-view-model",function(){if(oCC!==void 0)return oCC;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return oCC=
l},{mode:1});var $gl;var sz=function(){return _.p.apply(this,arguments)||this};
_.Z(sz,_.p);sz.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],sz.prototype,"data",void 0);_.E([_.x({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],sz);
_.r(sz,"ytd-source-pivot-header-renderer",function(){if($gl!==void 0)return $gl;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return $gl=l},{mode:1});_.Tt(_.c4W,"yt-card-view-model",{props:{data:_.C$,className:_.C$,isSelected:_.C$}});var vCH=_.cn1.talkToRecsStateSelector;_.Tt(_.w(function(l){var D=function(){return _.M(l.data().flowRoot,LHT)};
_.N1(function(){var U=D(),n=function(){},y=function(){};
if(U){var A,C,h,b=((h=_.M((A=D())==null?void 0:(C=A.steps)==null?void 0:C[0],_.$0))==null?void 0:h.stepId)||"";bcH(U,b);n=uOC(U);y=QlW(U)}_.NV(function(){var u=D();u&&_.EB().dispatch(_.vr("flowStateEntity",u.flowStateEntityKey));n();n=function(){};
y();y=function(){};
_.$u(_.KQ8())})});
return _.g("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.g(_.dR,{contentId:function(){return l.data().contentId}},function(){return _.g("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.g(_.v,{cond:D,
then:function(U){return _.g(_.DNv,{data:U})}}))}))},"fn"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.C$}});_.Tt(_.w(function(){return _.g("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.g("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.g("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.g(_.F22,null)),_.g(_.Tq5,{data:{rows:1},isExploreHub:!0}))},"gn"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Tt(_.w(function(l){var D=l.data;var U=l.standardUnitMinWidth;l=_.B((0,_.OWm)(D));var n=l.next().value,y=l.next().value,A=function(){var h,b=(h=n())==null?void 0:h.contents;return b==null||b.length===0},C=function(){y(Object.assign({},n(),{contents:[]}))};
return _.g("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.fe(_.JH({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var h=_.M(D().chipsShelf,qWD);if(h!=null&&h!=null&&h.autoselectChipOnVisible){var b,u,Q=_.M(h==null?void 0:(b=h.contents)==null?void 0:b[(u=h.autoselectedChipIndex)!=null?u:0],_.hx);Q&&Q.tapCommand&&_.dh(Q.tapCommand)}}}))},_.g(_.dR,{contentId:function(){return D().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.g("div",null,_.g("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.g(_.uI,{data:function(){return D().header}},{sectionHeaderViewModel:function(h){return _.g(_.oa,{data:h.data,
disableHorizontalPadding:!0})}})),_.g("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.g(_.uI,{data:function(){return D().chipsShelf}},{chipsShelfViewModel:function(h){return _.g(_.oD,{data:h.data,
callback:C,selectionBehavior:1})}})),_.g("div",null,_.g(_.v,{cond:A,
then:function(){return _.g("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.g(_.Tq5,{data:{rows:1},isExploreHub:!0}))}}),_.g(_.uI,{data:function(){var h;
return(h=n())==null?void 0:h.contents}},{richShelfRenderer:function(h){return _.g(_.BOy,{data:h.data,
isInnerShelf:!0,standardUnitMinWidth:U})}})))}))},"hn"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.C$,
standardUnitMinWidth:_.C$}});var Ez=function(){return _.p.apply(this,arguments)||this};
_.Z(Ez,_.p);
Ez.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
Ez.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.E([_.m(_.l5),_.T("design:type",Object)],Ez.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.vf),_.T("design:type",Object)],Ez.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ez.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Number)],Ez.prototype,"standardUnitMinWidth",void 0);_.E([_.x({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Ez);
_.r(Ez,"ytd-rich-section-renderer",function(){if(xgh!==void 0)return xgh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return xgh=l},{mode:_.Vj("kevlar_poly_si_batch_j029")?
1:2});_.Tt(_.gS5,"yt-profile-identity-info-view-model",{props:{data:_.C$,hideDivider:_.C$,isChannelInfoCard:_.C$}});_.Tt(_.AdW,"yt-page-header-view-model",{props:{data:_.C$,noPadding:_.C$,enableBanner:_.C$,cinematicContainerTopbarOffset:_.C$,allowCinematicContainerOverflow:_.C$,displayAsSidebar:_.C$,displayAsPanel:_.C$,alwaysUseMediumTextDescription:_.C$}});_.Tt(_.w(function(l){var D=l.data;var U=function(){var y;return(y=D().numColumns)!=null?y:2},n=function(){return U()>1?3:2};
l={};return _.g("ytd-rich-grid-group",{class:_.DV("ytdRichGridGroupHost",(l.ytdRichGridGroupHostFirstColumn=function(){return D().colIndex===0},l)),
style:_.BK({"--ytd-rich-grid-group-num-columns":U,"--ytd-rich-grid-items-per-group":n})},_.g("div",{class:"ytdRichGridGroupContents"},_.g(_.uI,{data:function(){var y;return(y=D().contents)==null?void 0:y.slice(0,n())}},{richItemRenderer:function(y){return _.g(_.AW8,{data:y.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"jn"),"ytd-rich-grid-group",{props:{data:_.C$}});var TV=function(){var l=_.p.apply(this,arguments)||this;l.resizeOnObserverInit=!1;l.isInlinePreviewDisabled=_.q("web_disable_inline_preview");l.disableStickyFilterBar=!1;l.transparentBackgroundChipsBar=!1;l.hideChipsBar=!1;l.collapseFeedCustomizationForm=!1;l.isWatchDefaultLayout=!0;l.continuationShowButton=!1;l.rowReducedHorizontalMargin=!1;l.useCompactList=!1;l.manualDownloadsPresent=!1;l.smartDownloadsPresent=!1;l.isOnline=!1;l.shouldRenderDownloadsBanner=!1;l.shouldRenderDownloadsBannerUpsell=
!1;l.hasOptedIntoSmartDownloads=!1;l.elementsPerRow=4;l.typographyBump=!1;l.slimItemsPerRow=1;l.pageLoadingFromNavigation=!1;l.resizeObserver=null;l.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"};l.rendererToTagNameMap=
new Map(Object.entries(l.contentMapping()).map(function(D){var U=_.B(D);D=U.next().value;U=U.next().value;return[D,U.component]}));
l.insertedContent=new Map;return l};
_.Z(TV,_.p);_.W=TV.prototype;_.W.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var l=_.B(_.iJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),D=l.next();!D.done;D=l.next())D.value.useCompactList=this.useCompactList};
_.W.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var l=_.B(_.iJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),D=l.next();!D.done;D=l.next())D=D.value,D.sizing=this.sizing,D.typographyBump=this.typographyBump};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.W.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]]"}}}};
_.W.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]",collapseFeedCustomizationForm:"[[collapseFeedCustomizationForm]]"}},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}}};
_.W.attached=function(){document.addEventListener("yt-page-type-changed",_.CY(this,this.onPageChange));document.addEventListener("scroll",_.CY(this,this.onScroll));document.addEventListener("yt-feed-customization-scroll-up",_.CY(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22415_throttledOnResize=new _.A1(this.resizeObserved,_.RG("rich_grid_resize_delay_ms",50),this)};
_.W.detached=function(){var l;(l=this.resizeObserver)==null||l.disconnect();document.removeEventListener("yt-page-type-changed",_.CY(this,this.onPageChange));document.removeEventListener("scroll",_.CY(this,this.onScroll));document.removeEventListener("yt-feed-customization-scroll-up",_.CY(this,this.onFeedCustomizationScrollUp))};
_.W.insertRichSection=function(l){var D=l.richItemTargetId;l=l.richSectionRendererToInsert;D&&l&&(this.insertedContent.set(D,{content:l,timestamp:Date.now()}),this.reflowContent())};
_.W.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.W.computeIsInlinePreviewEnabled=function(l,D,U){return _.q("web_disable_inline_preview")?!1:!U&&_.q9v({miniplayerIsActive:l,miniplayerPlaybackState:D})};
_.W.computeSizing=function(){var l=_.xzl(this.data);if(l||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return l?this.useCompactList?"COMPACT":l:this.miniMode?"COMPACT":"STANDARD"};
_.W.updateItemMinAndMaxWidth=function(){var l=_.RG("rich_grid_max_item_width",500);l>0&&_.Wg(this.hostElement,{"--ytd-rich-grid-item-max-width":l+"px"});var D;l=this.getRichItemMinWidth((D=this.hostElement)==null?void 0:D.clientWidth);l>0&&_.Wg(this.hostElement,{"--ytd-rich-grid-item-min-width":l+"px"})};
_.W.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.W.resizeObserved=function(){_.iu(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.W.onPageChange=function(){var l=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.iu(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Tn.addJob(function(){l.pageLoadingFromNavigation=!1;l.setMasthead();l.maybeSetBigYoodle();l.forceRefreshAndLog();l.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.W.dataChanged=function(){var l=this;_.iu(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.u6(this,function(){l.updateRichItemGridPositions();l.contentsElement&&_.Wg(l.hostElement,{"--ytd-rich-grid-content-offset-top":l.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.W.initResizeObserver=function(){var l=this;if(window.ResizeObserver){var D;(D=this.resizeObserver)==null||D.disconnect();var U=!1;this.resizeObserver=new ResizeObserver(function(){if(U){var n;(n=l.resizeObserver)==null||n.disconnect();var y;(y=l.JSC$22415_throttledOnResize)==null||y.fire();requestAnimationFrame(function(){var C;(C=l.JSC$22415_throttledOnResize)==null||C.fire();l.initResizeObserver()})}else if(U=!0,l.resizeOnObserverInit){var A;
(A=l.JSC$22415_throttledOnResize)==null||A.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.W.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.iu(this.hostElement,"ytd-rich-item-index-update-action")};
_.W.updateElementsPerRow=function(){_.iu(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.V0({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.V0({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.W.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.W.onRichShelfRendererCollapse=function(l){if(this.shownItems){var D=l.detail;l=this.shownItems.findIndex(function(n){var y,A;return((A=_.M(n==null?void 0:(y=n.richSectionRenderer)==null?void 0:y.content,_.eR5))==null?void 0:A.trackingParams)===D});
var U=l+1;l<0||U>=this.contentsElement.children.length||!this.shownItems[U].richItemRenderer||this.contentsElement.children[U].scrollIntoView({behavior:"smooth",block:"start"})}};
_.W.onSoftReloadPage=function(){this.scrollUpToTop()};
_.W.handleRerenderDownloadsData=function(){_.q("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.W.handlePlaylistRemoveVideosAction=function(l){var D;if(((D=_.M(l,_.zVr))==null?0:D.setVideoIds)&&this.data&&this.data.contents){l=_.M(l,_.zVr).setVideoIds;for(D=this.data.contents.length-1;D>=0;){var U=_.M(this.data.contents[D],_.f5);(U=U&&_.M(U.content,_.UQ))&&U.setVideoId&&l.includes(U.setVideoId)&&this.splice("data.contents",D,1);D--}this.updateIndices()}};
_.W.updateIndices=function(){if(this.data&&this.data.contents)for(var l=0;l<this.data.contents.length;l++)this.set("data.contents."+l+".richItemRenderer.index",_.$B(String(l+1)))};
_.W.hasTopRowInlinePlayableVideoWithEndorsement=function(l){var D;return!((D=l.slice(0,this.getItemsPerRow()))==null||!D.some(function(U){var n;U=_.M(U==null?void 0:(n=U.richItemRenderer)==null?void 0:n.content,_.Wq);var y;return(U==null?void 0:U.inlinePlaybackEndpoint)&&(U==null?void 0:(y=U.thumbnailOverlays)==null?void 0:y.some(function(A){return A.thumbnailOverlayEndorsementRenderer}))}))};
_.W.refreshGridLayoutNew=function(l,D,U,n){var y=n.postsPerRow;var A=n.slimItemsPerRow;var C=n.gameCardsPerRow;n=n.miniGameCardsPerRow;var h;if((h=this.data)==null||!h.contents||!this.containerWidth)return!1;var b;if((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize){var u=_.Q0B(this.data.responsiveContainerConfiguration,this.containerWidth,2),Q;h=_.Kq(Object.assign({},u,{standardUnitMinWidth:(Q=this.data)==null?void 0:Q.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&u.isCompactList)}else h=_.Kq({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(u=this.data)==null?void 0:u.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=h.typographyBump;Q=!1;if(l||this.elementsPerRow!==h.numItems||this.postsPerRow!==y||this.slimItemsPerRow!==A||this.gameCardsPerRow!==
C||this.miniGameCardsPerRow!==n||this.gutter!==h.gutter)Q=this.elementsPerRow!==h.numItems,this.elementsPerRow=h.numItems,this.postsPerRow=y,this.slimItemsPerRow=A,this.gameCardsPerRow=C,this.miniGameCardsPerRow=n,this.gutter=h.gutter,this.itemWidth=h.itemWidth,this.reflowContent(D),_.Wg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":h.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(U);this.ytdReduxBehavior.dispatch(_.V0({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:h.maxContainerWidth}));return Q};
_.W.refreshGridLayout=function(l,D){var U,n=(U=this.hostElement)==null?void 0:U.clientWidth;this.containerWidth=this.adjustRichGridWidth(n,!0);var y;if((y=this.data)==null||!y.contents||!this.containerWidth)return l&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(l=!0,this.pendingForceReflow=!1);U=this.getRichItemMinWidth(n);var A=this.isShortsPanel?146:194,C=this.getMiniGameCardMinWidth(),h=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.RG("rich_grid_default_max_items_per_row",
6);n=U=this.calcElementsPerRow(U,h);(y=U<=3&&this.miniModeAllowed())&&(U=this.calcElementsPerRow(240,4));var b=this.calcMaxSlimElementsPerRow(U,h,this.isDefaultGrid);h=this.calcElementsPerRow(A,b);var u=this.calcElementsPerRow(this.isCompactGrid?A:154,b);A=this.calcElementsPerRow(this.isCompactGrid?A:C,b);C=!1;if(this.sizing)return this.refreshGridLayoutNew(l,D,y,{postsPerRow:n,slimItemsPerRow:h,gameCardsPerRow:u,miniGameCardsPerRow:A});if(l||this.elementsPerRow!==U||this.postsPerRow!==n||this.slimItemsPerRow!==
h||this.gameCardsPerRow!==u||this.miniGameCardsPerRow!==A)C=this.elementsPerRow!==U,this.elementsPerRow=U,this.postsPerRow=n,this.slimItemsPerRow=h,this.gameCardsPerRow=u,this.miniGameCardsPerRow=A,this.reflowContent(D),this.updateElementsPerRow(),_.Wg(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)&&_.Wg(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(y);_.iu(this.hostElement,"yt-rich-grid-layout-refreshed");return C};
_.W.getRichItemMinWidth=function(l){var D=_.RG("rich_grid_min_item_width",310);if(!_.q("kevlar_disable_min_width_override")){var U,n;D=(n=(U=this.data)==null?void 0:U.minItemWidth)!=null?n:D}return D+_.SXc(l)};
_.W.calcMaxSlimElementsPerRow=function(l,D,U){return(U===void 0?0:U)?l===1?2:l%2===0?l/2*3:l+2:D*2};
_.W.adjustRichGridWidth=function(l,D){var U=_.q("disable_rich_grid_guide_compensation");if(!this.isWatch&&!U){U=_.Jc().resolve(_.G8(_.AY));var n=U==null?void 0:U.guideElement;if(!(!U||U.getData()||n!=null&&n.opened||U.getMiniGuideVisible()))if(U.canFitPersistentGuide(l)&&U.getGuideExpandsAutomatically()){var y,A,C=Number((y=window.getComputedStyle(this.hostElement))==null?void 0:(A=y.getPropertyValue("--app-drawer-width"))==null?void 0:A.replace("px",""));l-=C||0}else if(U.canFitMiniGuide(l)){var h;
y=Number((C=window.getComputedStyle(this.hostElement))==null?void 0:(h=C.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:h.replace("px",""));l-=y||0}}l>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(l-=D?32:48));return l};
_.W.calcElementsPerRow=function(l,D){var U=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),n=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((U+n)/(l+n))||1,D)};
_.W.reflowContent=function(l){var D=this;if(!this.isReflowing){this.isReflowing=!0;var U,n,y=!!((U=this.data)==null?0:(n=U.contents)==null?0:n.some(function(h){return _.M(h,_.$X)}));
U=this.getItemsPerRow();var A;n=(A=this.data)==null?void 0:A.reflowOptions;l&&(_.ae("rgr_s"),_.u6(this,function(){_.ae("rgr_nrf")}));
l={};(A=_.iJ(this.hostElement).querySelector("#contents"))&&(l={contentElement:A,rendererToTagNameMap:this.rendererToTagNameMap});A=(A=this.data.contents)?A.slice():[];y=CwD(A,U,y,n,this.getRichGridStyle(),l,this.insertedContent);var C=y.orderedContent;if(y=y.pinnedContentNotShownTargetIds)for(y=_.B(y),U=y.next();!U.done;U=y.next())this.insertedContent.delete(U.value);y=function(){D.shownItems=C;D.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(C),_.u6(this,y)):y()}};
_.W.getFirstRowItems=function(l){for(var D=[],U=0;U<l.length;U++){var n=void 0,y=void 0,A=void 0,C=void 0,h=void 0,b=void 0;if(((n=l[U])==null?void 0:(y=n.richItemRenderer)==null?void 0:y.rowIndex)===0||((A=l[U])==null?void 0:(C=A.richGroupRenderer)==null?void 0:C.rowIndex)===0||((h=l[U])==null?void 0:(b=h.richSectionRenderer)==null?void 0:b.rowIndex)===0)D.push(l[U]);else break}return D};
_.W.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.W.resetInsertedContentIfNeeded=function(){(_.q("web_explore_hub_on_hover")||_.q("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.W.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.W.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.W.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.W.terminateVideoPreview=function(){_.iu(this.hostElement,"yt-terminate-video-preview-action")};
_.W.updateRichItemGridPositions=function(){var l={gridData:{gridColumnCount:this.elementsPerRow}},D;((D=this.data)==null?0:D.trackingParams)&&(D=_.t6())&&_.$S(D,_.v9(this.data.trackingParams),l);_.iu(this.hostElement,"ytd-rich-item-index-update-action")};
_.W.miniModeAllowed=function(){return this.isChannelPage};
_.W.getMiniGameCardMinWidth=function(){return 154};
_.W.updateMiniMode=function(l){this.miniMode=this.miniModeAllowed()&&l;this.ytdReduxBehavior.dispatch(_.V0({type:"SET_RICH_GRID_MINI_MODE",payload:l}))};
_.W.isCurrentPage=function(){return location.pathname===this.pagePath};
_.W.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var l=_.Jc().resolve(_.sm).getCurrentPage();l&&l.setScrollTop(0)}};
_.W.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.W.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.W.maybeSetBigYoodle=function(){var l,D=(l=this.data)==null?void 0:l.bigYoodle;this.bigYoodleData!==D&&(this.bigYoodleData=D)};
_.W.setMasthead=function(){var l;((l=this.data)==null?0:l.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.W.getRichGridStyle=function(){var l,D;return(D=(l=this.data)==null?void 0:l.style)!=null?D:"RICH_GRID_STYLE_UNKNOWN"};
_.W.onIsShortsGridChange=function(){var l=this.ytdReduxBehavior,D=l.dispatch,U=this.getRichGridStyle();D.call(l,_.V0({type:"SET_RICH_GRID_STYLE",payload:U}))};
_.W.onScroll=function(){this.collapseFeedCustomizationForm=window.scrollY>20};
_.W.onFeedCustomizationScrollUp=function(){this.collapseFeedCustomizationForm=!1;this.scrollUpToTop()};
_.QP.Object.defineProperties(TV.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var l=_.Jc().resolve(_.sm).getCurrentPage(),D,U,n;return(((D=this.data)==null?void 0:D.targetId)==="browse-feedFEsfv_audio_pivot"||_.q("web_enable_channel_pivot_panel")&&((U=this.data)==null?void 0:U.targetId)==="browse-feedFEsfv_channel_pivot"||_.q("web_enable_effect_pivot_panel")&&((n=this.data)==null?void 0:n.targetId)==="browse-feedFEsfv_effect_pivot")&&(l==null?void 0:l.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.q("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 l;return!((l=this.data)==null?0:l.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var l;return((l=_.Jc().resolve(_.sm).getCurrentPage())==null?void 0:l.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var l;return((l=_.Jc().resolve(_.sm).getCurrentPage())==null?void 0:l.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((l=this.data)==null?0:l.enableContentSpecificAspectRatio)||((D=this.data)==null?0:(U=D.responsiveContainerConfiguration)==null?0:U.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.RG("web_continuation_handler_margin",0):0}}});
TV.prototype.onIsShortsGridChange=TV.prototype.onIsShortsGridChange;TV.prototype.onReloadContinuationFinish=TV.prototype.onReloadContinuationFinish;TV.prototype.reflowContent=TV.prototype.reflowContent;TV.prototype.handleRerenderDownloadsData=TV.prototype.handleRerenderDownloadsData;TV.prototype.onRichShelfRendererCollapse=TV.prototype.onRichShelfRendererCollapse;TV.prototype.onRequestElementsPerRow=TV.prototype.onRequestElementsPerRow;TV.prototype.contentLengthChanged=TV.prototype.contentLengthChanged;
TV.prototype.dataChanged=TV.prototype.dataChanged;TV.prototype.onSizingChange=TV.prototype.onSizingChange;TV.prototype.onUseCompactListChange=TV.prototype.onUseCompactListChange;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.$s),_.T("design:type",Object)],TV.prototype,"ironResizableBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],TV.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.vf),_.T("design:type",Object)],TV.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],TV.prototype,"componentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],TV.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],TV.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],TV.prototype,"miniMode",void 0);_.E([_.K({value:[]}),_.T("design:type",Array)],TV.prototype,"shownItems",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],TV.prototype,"isReflowing",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],TV.prototype,"isFilteredFeed",void 0);_.E([_.K({selector:_.dOg}),_.T("design:type",Boolean)],TV.prototype,"guideIsExpanded",void 0);
_.E([_.K({selectorArgs:["entitySelectorType"],selector:function(l,D){if(_.q("kevlar_modern_downloads_page")&&D&&D!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(D){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":D=l.entities;var U=_.Z1(D),n=_.es(D),y=_.H$$(l),A=_.I8g(l),C=_.Y03(l),h=_.MyG(D),b=_.vc(U),u=_.mF(D);return _.CkG(U,n,h,_.mOC(D),y,A,b,u,C,_.Vy3(l),_.kB(l));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return l=_.Z1(l.entities),_.Pk_(l);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return l=
_.J9N(l.entities),_.bWo(l);default:_.II(new _.rc("Error: entitySelectorType defined but not matched in selector.",l,D))}}}),
_.T("design:type",Object)],TV.prototype,"entityDrivenRichGridData",void 0);_.E([_.K(),_.T("design:type",Object)],TV.prototype,"resizeOnObserverInit",void 0);_.E([_.K(),_.T("design:type",Object)],TV.prototype,"bigYoodleData",void 0);_.E([_.K(),_.T("design:type",Object)],TV.prototype,"mastheadData",void 0);_.E([_.K(),_.T("design:type",Boolean)],TV.prototype,"isInlinePreviewDisabled",void 0);_.E([_.K(),_.T("design:type",Object)],TV.prototype,"disableStickyFilterBar",void 0);
_.E([_.K(),_.T("design:type",Object)],TV.prototype,"transparentBackgroundChipsBar",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],TV.prototype,"hideChipsBar",void 0);_.E([_.K(),_.T("design:type",Object)],TV.prototype,"collapseFeedCustomizationForm",void 0);_.E([_.K(),_.T("design:type",Object)],TV.prototype,"isWatchDefaultLayout",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],TV.prototype,"continuationShowButton",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],TV.prototype,"rowReducedHorizontalMargin",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],TV.prototype,"useCompactList",void 0);_.E([_.K({selector:function(l){return _.es(l.entities).length>0}}),
_.T("design:type",Object)],TV.prototype,"manualDownloadsPresent",void 0);_.E([_.K({selector:function(l){return _.Z1(l.entities).length>0}}),
_.T("design:type",Object)],TV.prototype,"smartDownloadsPresent",void 0);_.E([_.K({selector:_.kB}),_.T("design:type",Object)],TV.prototype,"isOnline",void 0);_.E([_.K({selector:_.I8g}),_.T("design:type",Object)],TV.prototype,"shouldRenderDownloadsBanner",void 0);_.E([_.K({selector:_.Vy3}),_.T("design:type",Object)],TV.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.K({selector:_.H$$}),_.T("design:type",Object)],TV.prototype,"hasOptedIntoSmartDownloads",void 0);
_.E([_.Pg("useCompactList"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TV.prototype,"onUseCompactListChange",null);_.E([_.Pg("sizing","typographyBump"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TV.prototype,"onSizingChange",null);_.E([_.K({selector:_.FPo}),_.T("design:type",Number)],TV.prototype,"miniplayerPlaybackState",void 0);_.E([_.K({selector:_.Xo}),_.T("design:type",Boolean)],TV.prototype,"miniplayerIsActive",void 0);
_.E([_.K({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.T("design:type",Boolean)],TV.prototype,"isInlinePreviewEnabled",void 0);_.E([_.K({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.T("design:type",String)],TV.prototype,"sizing",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],TV.prototype,"elementsPerRow",void 0);
_.E([_.K(),_.T("design:type",Object)],TV.prototype,"typographyBump",void 0);_.E([_.K(),_.T("design:type",Number)],TV.prototype,"itemWidth",void 0);_.E([_.gP("#header"),_.T("design:type",HTMLElement)],TV.prototype,"headerElement",void 0);_.E([_.gP("#contents"),_.T("design:type",HTMLElement)],TV.prototype,"contentsElement",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TV.prototype,"dataChanged",null);
_.E([_.GY("data.contents.length"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TV.prototype,"contentLengthChanged",null);_.E([_.hj("yt-request-elements-per-row"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TV.prototype,"onRequestElementsPerRow",null);
_.E([_.hj("yt-rich-shelf-renderer-collapse"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],TV.prototype,"onRichShelfRendererCollapse",null);_.E([_.GY("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TV.prototype,"handleRerenderDownloadsData",null);
_.E([_.t("data"),_.T("design:type",String),_.T("design:paramtypes",[])],TV.prototype,"entitySelectorType",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.targetId"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"isSub",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.targetId"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"isWatch",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data.targetId"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"isShortsPanel",null);_.E([_.K({reflectToAttribute:!0}),_.t("isWatch"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"reducedTopMargin",null);_.E([_.K({reflectToAttribute:!0}),_.t("data","isWatch","isWatchDefaultLayout"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"noTopMargin",null);
_.E([_.K({reflectToAttribute:!0}),_.t("isInlinePreviewEnabled","shownItems"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"topRowEndorsement",null);_.E([_.t("data.header"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"hideHeader",null);_.E([_.hj("yt-rich-grid-reflow"),_.T("design:type",Function),_.T("design:paramtypes",[Boolean]),_.T("design:returntype")],TV.prototype,"reflowContent",null);
_.E([_.hj("yt-reload-continuation-finish"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TV.prototype,"onReloadContinuationFinish",null);_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"isSlimGrid",null);_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"isShortsGrid",null);
_.E([_.t("data","isSlimGrid","isShortsGrid"),_.K(),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"noRichItemGutterMargins",null);_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"isShortsGridSlim",null);_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"isCompactGrid",null);
_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"isDefaultGrid",null);_.E([_.t("data.targetId"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"hideChipsBarOnWatch",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TV.prototype,"onIsShortsGridChange",null);
_.E([_.t("data.enableContentSpecificAspectRatio"),_.K(),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TV.prototype,"force16By9ThumbnailAspectRatio",null);_.E([_.t("data"),_.T("design:type",Number),_.T("design:paramtypes",[])],TV.prototype,"continuationTriggerOffset",null);_.E([_.x({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],TV);
_.r(TV,"ytd-rich-grid-renderer",function(){if(dgW!==void 0)return dgW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return dgW=l},{mode:2});var NTc=_.w(function(l){return _.g("yt-feedback-prompt-view-model",{class:_.DV("ytFeedbackPromptViewModelHost",l.className)},_.g(_.v,{cond:function(){return l.data().text},
then:function(D){return _.g(_.BO,{text:D,className:"ytFeedbackPromptViewModelPrompt"})}}),_.g(_.uI,{data:function(){return l.data().likeButton}},{likeButtonViewModel:function(D){return _.g(_.n_,{data:D.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.g(_.uI,{data:function(){return l.data().dislikeButton}},{dislikeButtonViewModel:_.Uh}))},"kn");var slC=_.w(function(l){var D=_.B((0,_.lAm)(l.data)).next().value,U=function(){var n,y;return(y=(n=D().contents)==null?void 0:n.length)!=null?y:0};
return _.g("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return l.data().targetId||""},
"aria-busy":function(){var n,y;return(y=(n=D().contents)==null?void 0:n.some(function(A){return!!A.chatLoadingViewModel}))!=null?y:!1}},_.g(_.uI,{data:function(){return l.data().header}},{chipBarViewModel:_.DC8,
sectionHeaderViewModel:_.oa}),_.g(_.uI,{data:function(){return D().contents}},{accordionViewModel:_.z$k,
alertBannerViewModel:_.Ceh,chatLoadingViewModel:function(n,y){return _.g(_.NP8,{data:n.data,containerHeight:l.containerHeight,isLastItem:function(){return y()===U()-1}})},
chatUserTurnViewModel:function(n,y){return _.g(_.sr8,{data:n.data,containerHeight:l.containerHeight,isLastItem:function(){return y()===U()-1}})},
feedbackPromptViewModel:NTc,gridShelfViewModel:function(n){return _.g(_.Aw,{data:n.data,shouldUseOwnContainerSize:!0,marginSettings:l.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.pnH,linearLayoutViewModel:_.C9,lockupViewModel:function(n){return _.g(_.xd,{data:n.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:l.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.oa,videoOverviewViewModel:_.Yxy,youChatItemViewModel:function(n,y){return _.g(_.$Q$,{data:n.data,pending:!1,containerHeight:l.containerHeight,isLastItem:function(){return y()===U()-1}})}}))},"ln");_.Tt(_.w(function(l){var D=_.B((0,_.lAm)(l.data)).next().value,U=_.B(_.uq()),n=U.next().value;U=U.next().value;var y=_.fe(U);U=_.B(_.aw(void 0,void 0,"fqbUqd"));var A=U.next().value,C=U.next().value,h=function(){var b;return _.M((b=l.data().sectionListLayoutConfiguration)==null?void 0:b.layoutConfiguration,MD1)};
_.N1(function(){var b,u=(b=y.value)==null?void 0:b.clientWidth;b=h()?_.OWC(u,h()):void 0;C(b)});
U={};return _.g("yt-section-list-renderer",{class:_.DV("ytSectionListRendererHost",l.className,(U.ytSectionListRendererHostOverscrollContain=function(){var b;return(b=l.overscrollContain)==null?void 0:b.call(l)},U)),
el:y,"data-target-id":function(){return l.data().targetId||""}},_.g(_.uI,{data:function(){return D().contents}},{itemSectionRenderer:function(b){return _.g(slC,{data:b.data,
containerLayoutConfig:A,marginSettings:l.marginSettings,containerHeight:function(){return n.height()}})}}))},"mn"),"yt-section-list-renderer",{props:{data:_.C$,
className:_.ND,marginSettings:_.C$,overscrollContain:_.C$}});var ECw;var TTT;var Ijk=function(){return _.p.apply(this,arguments)||this};
_.Z(Ijk,_.p);_.E([_.K(),_.T("design:type",Object)],Ijk.prototype,"data",void 0);_.E([_.S0({is:"yt-alert-renderer",disableElementRegistration:!0})],Ijk);
_.r(Ijk,"yt-alert-renderer",function(){if(TTT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;ECw===void 0&&(ECw=document.createElement("template"));var n=ECw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);TTT=l}l=TTT;return l},{mode:2});
}catch(e){_._DumpException(e)}
try{
var XkT;XkT=function(l,D,U,n){U||(l?n&&(n.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||n.WINDOW_SIZE_CHANGED&&(D.width!==window.innerWidth||D.height!==window.innerHeight)||n.SAFARI_ABORTED_BY_NEW_TRANSITION&&l instanceof DOMException&&l.name==="AbortError"&&l.message.includes("Old view transition aborted by new view transition"))||_.EU(l):_.EU(Error("wj")))};
_.SJ2=function(l,D){D=D===void 0?{}:D;var U,n,y,A,C,h,b,u,Q,G,J,L,R;return _.P(function(a){switch(a.nextAddress){case 1:U=D;n=U.shouldWrap===void 0?!0:U.shouldWrap;y=U.skipTransitionTimeoutMs===void 0?300:U.skipTransitionTimeoutMs;A=U.beforeTransition;C=U.afterTransition;if(!n||!document.startViewTransition||document.visibilityState==="hidden")return a.return(l());h={width:window.innerWidth,height:window.innerHeight};b=!1;(u=A)==null||u();_.ZY(a,2);Q=document.startViewTransition(l);G=setTimeout(function(){Q.skipTransition();
b=!0},y);
return a.yield(Q.ready,4);case 4:return clearTimeout(G),a.yield(Q.finished,5);case 5:clearTimeout(G);(J=C)==null||J();_.WG(a,0);break;case 2:L=_.kF(a),(R=C)==null||R(),XkT(L,h,b,D.ignoredErrors),_.Kz(a)}})};
_.kIP=function(l,D){var U=_.hUs(D);U!=="javascript:"&&U!=="data:"&&l.setAttribute("href",D)};
_.T1=function(){for(var l=Array(36),D=0,U,n=0;n<36;n++)n==8||n==13||n==18||n==23?l[n]="-":n==14?l[n]="4":(D<=2&&(D=33554432+Math.random()*16777216|0),U=D&15,D>>=4,l[n]=_.$UK[n==19?U&3|8:U]);return l.join("")};
_.dNJ=function(l,D,U){l.persistentPanelContainerMap.set(U,D)};/*

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 KX2=_.wL(['<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>']),
cu$=_.zs7(KX2);cu$.setAttribute("style","display: none;");document.head.appendChild(cu$.content);_.Ih=_.uys(function(l){var D=_.SU("DIV");l&&(D.className=l);D.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";l=_.SU("DIV");_.rah(l,"200px","200px");D.appendChild(l);document.body.appendChild(D);l=D.offsetWidth-D.clientWidth;_.kT(D);return l});var pkJ;var xNP;var HV=function(){var l=_.p.apply(this,arguments)||this;l.icon=null;return l};
_.Z(HV,_.p);HV.prototype.dismiss=function(){_.O9(this.hostElement,"yt-live-chat-error-message-dismiss")};
HV.prototype.computeIcon=function(l){return l&&l.iconType?"yt-icons:"+l.iconType.toLowerCase():"yt-icons:close"};
_.E([_.K(),_.T("design:type",Object)],HV.prototype,"data",void 0);_.E([_.K({computed:"computeIcon(data.icon)"}),_.T("design:type",Object)],HV.prototype,"icon",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],HV);
_.r(HV,"yt-live-chat-error-message-renderer",function(){if(xNP===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;pkJ===void 0&&(pkJ=document.createElement("template"));var n=pkJ;U.call(D,n.content.cloneNode(!0),l.content.firstChild);xNP=l}l=xNP;return l},{mode:0});
}catch(e){_._DumpException(e)}
try{
var C0w,hGW,P0c,bkk,QNl,LvI,qZc,MMT,RGD,Zkq,eGw,m1D,aQH,dO,tMO,X3H,SZW,kZ1,d1C,Kvw,cfl,p3I,x1D,Fvw,ogC,w3g,rfw,zGh,fQO,$1l,NtI,sNh,Egq,Ttk,IQj,Hkl,YZj,OkD,lJC,UKw,ycC,Ach,Wdk,Bcj,VMw,itw,Plq,btH,gZT,ui1,vZI,QGh,G8O,Jcq,Clj;C0w=function(l,D){return _.yT(l.entities,"timedMarkersListSyncEntity",D)};
hGW=function(l,D){return _.yT(l.entities,"liveReactionsDataEntity",D)};
P0c=function(l,D){l=_.yT(l.entities,"booleanEntity",D);return!(!l||!l.value)};
bkk=function(l,D){var U=_.t6();U&&l&&_.jz(U,_.v9(l),D)};
_.ggj=function(l){return l.watch.isWatchActive};
_.u2h=function(l){return _.aL(l)||_.t1(l)||_.DX9(l)};
_.vgW=function(l){return!_.u2h(l)};
_.kb=function(l){return l.watch.watchScrollTop};
QNl=function(l){return l.watch.isLiveChatCollapsed};
_.GZw=function(){_.q("web_watch_log_theater_mode")&&_.m8C("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.Jfq=function(l,D,U){if(!l.includes("START_TIME_PLACEHOLDER")||!l.includes("END_TIME_PLACEHOLDER"))return l;var n=new Date(0),y=new Date(0);n.setUTCMilliseconds(D);y.setUTCMilliseconds(U);return l.replace("START_TIME_PLACEHOLDER",_.ru(n,7)).replace("END_TIME_PLACEHOLDER",_.ru(y,7))};
LvI=function(l){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:l}}]}}}};
qZc=function(l,D,U){var n=_.q("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;D=Object.assign({},{text:D,hasGradientBackground:U},n&&{itemTargetId:n});n=_.q("web_enable_chat_autoscroll_to_user_turn")&&n?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:n,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:D}],insertByPositionInSection:{sectionTargetId:l,
position:"INSERTION_POSITION_LAST"}}}]},n?{scrollConfig:n}:{})}}};
MMT=function(l,D){return _.yT(l.entities,"booleanEntity",D)};
RGD=function(){return function(l){_.$u(_.vr("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:l}))}};
Zkq=function(l){switch(l){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}};
eGw=function(l,D,U){var n=_.te(U);l&&D&&n&&l.getPlayerPromise().then(function(y){_.k1d(n)&&_.sU();(new _.OR(y)).executeCommand(n,D);_.q("continue_playback_on_desktop_companion_click")||y.pauseVideo()})};
m1D=function(l){var D=_.T4(),U;if(U=_.UG("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;U=(n=U())==null?void 0:n.layoutId}else U=null;eGw(D,U,l)};
aQH=function(l){var D=_.T4(),U;if(U=_.UG("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;U=(n=U())==null?void 0:n.layoutId}else U=null;eGw(D,U,l)};
dO=function(l,D){var U=l<0?"-":"";l=Math.abs(l);var n=Math.floor(l/3600),y=Math.floor(l)%3600,A=Math.floor(y/60);y=Math.floor(y)%60;var C="";(D===void 0?0:D)&&(C="."+Math.round((l-Math.floor(l))*10));return n>0?U+n+":"+(A<10?"0"+A:""+A)+":"+(y<10?"0"+y:""+y)+C:U+A+":"+(y<10?"0"+y:""+y)+C};
tMO=function(l){var D=l.match(/[^0-9:\.]/g);if(D&&D.length>0)return null;l=l.split(":");if(l.length===0||l.length>3)return null;D=1;for(var U=0;l.length>0;){var n=l.pop();if(n===void 0)break;var y=Number(n);if(n===""||isNaN(y))return null;U+=y*D;D*=60}return U};
X3H=function(l,D,U,n){l=Math.max(U,l);D=Math.min(D,n-U);l+D>n?(U=n,l=U-D):U=l+D;return{start:l,end:U}};
SZW=function(l,D,U,n,y,A){l<U?l=U:l+y>n&&(l=n-y);D>n&&(D=n);D=Math.min(l+A,Math.max(l+y,D));return{start:l,end:D}};
kZ1=function(l,D,U,n,y,A){D>n?D=n:D-y<U&&(D=U+y);l<U&&(l=U);l=Math.min(D-y,Math.max(D-A,l));return{start:l,end:D}};
d1C=function(l){return _.q("web_transcript_cue_id_killswitch")?String(l):"ytd-transcript-renderer_"+l};
Kvw=function(l){return _.q("web_transcript_cue_id_killswitch")?!0:l.startsWith("ytd-transcript-renderer")};
cfl=function(l){var D=_.T4(),U;if(U=_.UG("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;U=(n=U())==null?void 0:n.layoutId}else U=null;eGw(D,U,l)};
p3I=function(l){l.style.height="auto";l.style.height=Math.min(l.scrollHeight||20,80)+"px"};
x1D=function(){var l;return String(Math.floor(((l=_.Ai())==null?void 0:l.getCurrentTime())||0)*1E3)};
Fvw=function(l){if(l.onWelcomeCommand)return _.te(l.onWelcomeCommand);l=_.M(l.inputComposerViewModel,jN1);if(l==null?0:l.welcomeFeatureContinuation)return _.Gf(l.welcomeFeatureContinuation)};
ogC=function(l){var D=_.T4(),U;U=(U=_.UG("yt.www.ads.eventcache.getLastCompanionData"))?(U=U())&&U.layoutId:null;eGw(D,U,l)};
w3g=function(l){var D=_.T4(),U;U=(U=_.UG("yt.www.ads.eventcache.getLastCompanionData"))?(U=U())&&U.layoutId:null;eGw(D,U,l)};
rfw=function(l){if(l.simpleText)return[{text:l.simpleText}];var D;return(D=l.runs)!=null?D:[]};
zGh=function(l){var D=l.startEndTimeTemplate,U=l.startTimeUtcMillis;l=l.endTimeUtcMillis;if(D&&U&&l)return _.$B(_.Jfq(_.Nl(D),Number(U),Number(l)))};
fQO=function(l,D){var U,n,y=l==null?void 0:(U=l.viewCount)==null?void 0:(n=U.videoViewCountRenderer)==null?void 0:n.shortViewCount;if(!D&&y)return y;var A,C;return l==null?void 0:(A=l.viewCount)==null?void 0:(C=A.videoViewCountRenderer)==null?void 0:C.viewCount};
$1l=function(l,D){var U=l==null?void 0:l.relativeDateText;return!D&&U?[U,!0]:[l==null?void 0:l.dateText,!1]};
NtI=function(l,D,U,n,y){n=n===void 0?"":n;y=y===void 0?!1:y;var A=fQO(l,D),C=_.B($1l(l,D)),h=C.next().value;C=C.next().value;D=D?l==null?void 0:l.sponsorsOnlyFirstTimeLongText:l==null?void 0:l.sponsorsOnlyFirstTimeShortText;var b=[];U&&A&&b.push(A);!U&&C||!h||b.push(h);l=[y?l==null?void 0:l.subtitle:void 0].concat(_.zz(b),[D,l==null?void 0:l.stationName,l==null?void 0:l.rating,l?zGh(l):void 0,l==null?void 0:l.upNextProgramText,l==null?void 0:l.superTitleLink]).filter(function(u){return!!u});
U={runs:[]};for(y=0;y<l.length;y++)U.runs.push.apply(U.runs,_.zz(rfw(l[y]))),y<l.length-1&&U.runs.push({text:" "+n+" "});return U};
sNh=function(l){return l.filter(function(D){return!_.M(D,_.Oi)})};
Egq=function(l){var D,U,n,y;if(l=l==null?void 0:(D=l.contents)==null?void 0:(U=D.twoColumnWatchNextResults)==null?void 0:(n=U.results)==null?void 0:(y=n.results)==null?void 0:y.contents){var A,C;return(C=(A=l.find(function(h){return!!h.videoPrimaryInfoRenderer}))==null?void 0:A.videoPrimaryInfoRenderer)==null?void 0:C.updatedMetadataEndpoint}};
Ttk=function(l,D){var U;return(U=l.sourceConfigs)==null?void 0:U.find(function(n){return n.videoId===D})};
IQj=function(l){return l==="End of video"||l==="End of playlist"};
Hkl=function(l){var D,U,n,y;return(D=l.getWatchNextResponse())==null?void 0:(U=D.contents)==null?void 0:(n=U.twoColumnWatchNextResults)==null?void 0:(y=n.playlist)==null?void 0:y.playlist};
YZj=function(l){var D,U,n,y,A,C;return(D=Hkl(l))==null?void 0:(U=D.playlistButtons)==null?void 0:(n=U.menuRenderer)==null?void 0:(y=n.topLevelButtons)==null?void 0:(A=y[0])==null?void 0:(C=A.playlistLoopButtonRenderer)==null?void 0:C.playlistLoopStateEntityKey};
OkD=function(l){var D=_.Jc().resolve(_.Cd),U;return(D=(U=_.M(D.getAutoplayEndpoint(),_.za))==null?void 0:U.playlistId)&&D===l};
lJC=function(l,D,U,n,y){function A(){_.Tn.cancelJob(KX);var C=VMw(D,U/l.getPlaybackRate()),h=C.hours,b=C.minutes;C=(C.seconds*1E3||6E4)/l.getPlaybackRate();l.setVideoTimeLeft(itw(h,b));n&&l.getPlayerState()!==0&&l.setSleepTimerTimeLeft(itw(h,b,!0));(h>0||b>0)&&!y&&(KX=_.Ji(_.Tn,A,C))}
_.Tn.cancelJob(KX);KX=_.Ji(_.Tn,A)};
UKw=function(l,D,U){function n(){_.Tn.cancelJob(DK1);var y=VMw(D,U),A=y.hours;y=y.minutes;var C=6E4/l.getPlaybackRate();if(A>0||y>0)l.setSleepTimerTimeLeft(itw(A,y,!0)),DK1=_.Ji(_.Tn,n,C)}
_.Tn.cancelJob(DK1);DK1=_.Ji(_.Tn,n)};
ycC=function(l,D){var U=l.getVolume()/(D/500),n=function(y){_.Tn.cancelJob(nZO);var A=Math.floor(y-U);l.setVolume(A,!1);A>0&&(nZO=_.Ji(_.Tn,function(){n(A)},500))};
_.Tn.cancelJob(nZO);nZO=_.Ji(_.Tn,function(){n(l.getVolume())})};
Ach=function(l,D){_.Tn.cancelJob(nZO);D&&l.syncVolume()};
Wdk=function(){var l={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.C3("SLEEP_TIMER_DISRUPTED")}}}}};_.Jc().resolve(_.qK).resolveCommand(l)};
Bcj=function(l){return(l.getDuration()-l.getProgressState().current)*1E3};
VMw=function(l,D){l=l+D-(0,_.J3)();if(l<=0)return{hours:0,minutes:0,seconds:0};var U=new Clj(0,0,0,0,0,0,l);l=U.getHours();D=U.getMinutes();U=U.getSeconds();U!==0&&D++;D!==0&&D%60===0&&(l++,D=0);return{hours:l,minutes:D,seconds:U}};
itw=function(l,D,U){return l>0&&D>0?U?_.C3("TIME_LEFT_HOURS_MINUTES",{hours:l.toString(),minutes:D.toString()}):_.C3("TIME_HOURS_MINUTES",{hours:l.toString(),minutes:D.toString()}):l>0?U?_.hJ("TIME_LEFT_HOURS",l):_.hJ("TIME_HOURS",l):U?_.C3("TIME_LEFT_MINUTES",{minutes:D.toString()}):_.C3("TIME_MINUTES",{minutes:D.toString()})};
Plq=function(l,D){if(l.timelyActions)return l.timelyActions.find(function(U){var n;return((n=_.M(U,hgH))==null?void 0:n.cueRangeId)===D})};
btH=function(l){var D=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.vp(l);l.keyMap_.forEach(function(U,n){_.rl(D,n)||this.remove(n)},l)};
gZT=function(l,D){l.reloadContinuationItemsCommandMatcher=D};
ui1=function(l,D){var U;return _.P(function(n){return n.nextAddress==1?D&&l.lastWelcomeContinuationSent!==D?_.Kiq(l)?n.yield(l.panelController.isVisible("PAai_companion"),3):n.jumpTo(2):n.return(!1):n.nextAddress==2||(U=n.yieldResult,U)?n.return(!0):n.return(!1)})};
vZI=function(l){var D,U,n,y,A;return _.P(function(C){if(C.nextAddress==1){if(!l.welcomeOptions)return C.return();D=l.welcomeOptions;U=D.command;n=D.setPending;if(U){var h;var b=(h=_.M(U,_.ko))==null?void 0:h.token}else b=void 0;y=b;return C.yield(ui1(l,y),2)}if(!C.yieldResult)return C.return();l.lastWelcomeContinuationSent=y;(A=n)==null||A(!0);b="youchat-"+Date.now();h=(h=_.Ai())?String(Math.floor(h.getCurrentTime())*1E3):void 0;_.Xk(U,{form:{formData:_.Q$({clientMessageId:b,playerOffsetMs:h,pageContext:_.i2J(l,
l.pageSubtype)})}});_.Kz(C)})};
QGh=function(l,D){_.P(function(U){l.welcomeOptions=D;return U.yield(vZI(l),0)})};
_.cu=function(l,D){l.insertBefore(D,l.childNodes[0]||null)};
G8O=function(l){if(l>=48&&l<=57||l>=96&&l<=106||l>=65&&l<=90||_.Do&&l==0)return!0;switch(l){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 _.lB;default:return!1}};
Jcq=function(l){if(l.altKey&&!l.ctrlKey||l.metaKey||l.keyCode>=112&&l.keyCode<=123)return!1;if(G8O(l.keyCode))return!0;switch(l.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!_.lB;default:return l.keyCode<166||l.keyCode>183}};
Clj=function(l,D,U,n,y,A,C){this.date=typeof l==="number"?new Date(l,D||0,U||1,n||0,y||0,A||0,C||0):new Date(l&&l.getTime?l.getTime():_.I7())};
_.HI(Clj,_.pn);_.W=Clj.prototype;_.W.getHours=function(){return this.date.getHours()};
_.W.getMinutes=function(){return this.date.getMinutes()};
_.W.getSeconds=function(){return this.date.getSeconds()};
_.W.getMilliseconds=function(){return this.date.getMilliseconds()};
_.W.getUTCDay=function(){return this.date.getUTCDay()};
_.W.getUTCHours=function(){return this.date.getUTCHours()};
_.W.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.W.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.W.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.W.setHours=function(l){this.date.setHours(l)};
_.W.setMinutes=function(l){this.date.setMinutes(l)};
_.W.setSeconds=function(l){this.date.setSeconds(l)};
_.W.setMilliseconds=function(l){this.date.setMilliseconds(l)};
_.W.setUTCHours=function(l){this.date.setUTCHours(l)};
_.W.setUTCMinutes=function(l){this.date.setUTCMinutes(l)};
_.W.setUTCSeconds=function(l){this.date.setUTCSeconds(l)};
_.W.setUTCMilliseconds=function(l){this.date.setUTCMilliseconds(l)};
_.W.add=function(l){_.pn.prototype.add.call(this,l);l.hours&&this.setUTCHours(this.date.getUTCHours()+l.hours);l.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+l.minutes);l.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+l.seconds)};
_.W.JSC$11407_toIsoString=function(l){var D=_.pn.prototype.JSC$11407_toIsoString.call(this,l);return l?D+"T"+_.Wl(this.getHours(),2)+":"+_.Wl(this.getMinutes(),2)+":"+_.Wl(this.getSeconds(),2):D+"T"+_.Wl(this.getHours(),2)+_.Wl(this.getMinutes(),2)+_.Wl(this.getSeconds(),2)};
_.W.equals=function(l){return this.getTime()==l.getTime()};
_.W.toString=function(){return this.JSC$11407_toIsoString()};
_.W.clone=function(){var l=new Clj(this.date);l.firstDayOfWeek_=this.firstDayOfWeek_;l.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return l};
_.Ldw=function(l){return _.V0({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:l}})};var qGD=new _.y4("imageTileRenderer");var M_W=new _.y4("promotedSparklesWebRenderer");var RgD=new _.y4("adGridCardCollectionViewModel");var Zth=new _.y4("carouselTitleViewModel");var egj=new _.y4("ctaCarouselItemViewModel");var mKI=new _.y4("textFieldViewModel");_.aJW=new _.y4("engagementPanelHeaderShowNavigationButtonCommand");var t_O=new _.y4("hideEngagementPanelScrimAction");var XSO=new _.y4("setActivePanelItemAction");var SGj=new _.y4("showEngagementPanelScrimAction");var k8g=new _.y4("updateEngagementPanelAction");var dKq=new _.y4("updateSearchInVideoResultsAction");var KdC=new _.y4("transcriptCueGroupRenderer");var cch=new _.y4("transcriptCueRenderer");var pSH=new _.y4("transcriptFooterRenderer");var xKj=new _.y4("engagementPanelAdSubtitleRenderer");var jGh=new _.y4("videoDescriptionFantasySectionViewModel");var Fdh=new _.y4("deleteClipEngagementPanelCommand");var oZO=new _.y4("loopCommand");var wSD=new _.y4("changeCreatorEndscreenVisibilityCommand");var rcC=new _.y4("liveChatCallForQuestionsRenderer");var zgC=new _.y4("updateTimedMarkersSyncObserverCommand");var hgH=new _.y4("timelyActionViewModel");var fJD=new _.y4("timelyActionsOverlayViewModel");var $KC=new _.y4("repeatChapterCommand");var NcI=new _.y4("watchPlayerOverflowMenuCommand");var sGk=new _.y4("compositeVideoOverlayRenderer");var EZ1=new _.y4("sortFilterSubMenuRenderer");var Tck=new _.y4("switchListItemViewModel");var jN1=new _.y4("inputComposerViewModel");var IJD=new _.y4("transcriptEditSegmentCommand");var HtD=new _.y4("transcriptUpdateSegmentTextCommand");var YGC=new _.y4("transcriptSearchBoxRenderer");var Otg=new _.y4("transcriptSegmentListRenderer");var V_C=new _.y4("transcriptSegmentRenderer");_.i6O=new _.y4("updateDateTextAction");var llT=new _.y4("updateTitleAction");var DZl=new _.y4("updateViewershipAction");var UZl=new _.y4("relatedChipCommand");var nHw=new _.y4("carouselLockupRenderer");var pX=new _.y4("expandableVideoDescriptionBodyRenderer");var y3T=new _.y4("videoDescriptionHeaderRenderer");var A31=new _.y4("videoDescriptionYouchatSectionViewModel");_.xb=_.RG("kevlar_watch_page_horizontal_margin",24);_.WWT=_.RG("kevlar_watch_page_columns_top_padding",24);_.BbO=426+_.xb*2;_.jO=_.RG("kevlar_watch_two_column_width_threshold",1E3);_.Cd1=_.xb*2;_.hvT=_.RG("kevlar_watch_secondary_width",402);_.Pdh=_.RG("kevlar_watch_max_player_width",1280);_.b6h=_.RG("kevlar_watch_flexy_metadata_height",136);_.gHc=_.Cd1+310+_.xb;_.uyg=_.Cd1+360+_.xb;var vHq={PAUSE_CHAT:18};var Q2k;var GnW;var Fz=function(){return _.p.apply(this,arguments)||this};
_.Z(Fz,_.p);Fz.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Fz.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var l=_.M(this.data.button,_.CM);l&&(l.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.QP.Object.defineProperties(Fz,{template:{configurable:!0,enumerable:!0,get:function(){if(GnW===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Q2k===void 0&&(Q2k=document.createElement("template"));var n=Q2k;U.call(D,n.content.cloneNode(!0),l.content.firstChild);GnW=l}l=GnW;return l}}});
_.E([_.m(_.VS),_.T("design:type",Object)],Fz.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({selectorArgs:["data.enabledEntityKey"],selector:P0c,observer:"onEnabledChange"}),_.T("design:type",Boolean)],Fz.prototype,"enabled",void 0);_.E([_.K(),_.T("design:type",Object)],Fz.prototype,"data",void 0);_.E([_.S0({is:"yt-disableable-button-view-model",noInjection:!0})],Fz);var J3k;var LWC;var qLW=["transVert01","transVert02","transVert03"],M9q="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),oi=function(){var l=_.p.apply(this,arguments)||this;l.emojiManager=_.CF;l.isDarkTheme=document.documentElement.hasAttribute("dark");l.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};l.reactionBuckets=[];l.noEmojiIdentifier="NO_EMOJI";return l};
_.Z(oi,_.p);_.W=oi.prototype;_.W.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.W.desktopFountainEmojiSizePxChanged=function(){_.Wg(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.W.createUserReactionAnimation=function(l){this.createEmojiAnimation(l,!0)};
_.W.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var l;((l=this.data)==null?0:l.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.vr("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.zz(this.emojiContainer.children)).forEach(function(D){D.remove()})};
_.W.detached=function(){this.cleanupFountain()};
_.W.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var l;this.reactionBuckets=_.we.unsafeClone((l=this.emojiFountainData)==null?void 0:l.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.W.processEmojiBucket=function(l){var D=this;if(this.reactionBuckets&&!(l>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var U=this.reactionBuckets[l];this.generateEmojiAnimations(U);if(l<this.reactionBuckets.length-1){var n;if(U==null?0:(n=U.duration)==null?0:n.seconds)this.emojiBucketTimerId=setTimeout(function(){D.processEmojiBucket(l+1)},Number(U.duration.seconds)*1E3)}}};
_.W.generateEmojiAnimations=function(l){var D=this,U=this.getRandomEmojiIdFromBucketWithOverride(l);if(U&&U!==this.noEmojiIdentifier){var n=0;l.targetEps?(n=this.linearInterpolateBounded(1,20,100,12,l.emojiSizeIndex||0),this.createEmojiAnimation(U,!1,l.emojiAnimationMs,n),n=this.getEmojiDelayMsFromTargetEps(l.targetEps)):(this.createEmojiAnimation(U),n=this.getEmojiDelayMsFromDistribution(l.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){D.generateEmojiAnimations(l)},n)}};
_.W.getRandomEmojiIdFromBucketWithOverride=function(l){if(!(l&&l.reactionsData&&l.reactionsData.length&&l.totalReactions))return this.noEmojiIdentifier;for(var D=l.totalReactions,U=1,n=_.B(l.reactionsData),y=n.next();!y.done;y=n.next())y=y.value,(y.reactionWeightOverride||y.reactionWeightOverride===0)&&y.reactionCount&&(D-=y.reactionCount,U-=y.reactionWeightOverride);n=!0;U<0&&(n=!1,D=l.totalReactions,U=1);if(n&&U>0&&D===0)if(U===1){y=0;for(var A=_.B(l.reactionsData),C=A.next();!C.done;C=A.next())C=
C.value,C.reactionCount&&C.reactionCount>0&&y++;y=1/y;A=_.B(l.reactionsData);for(C=A.next();!C.done;C=A.next())C.value.reactionWeightOverride=y}else for(y=1/(1-U),A=_.B(l.reactionsData),C=A.next();!C.done;C=A.next())C=C.value,C.reactionWeightOverride&&(C.reactionWeightOverride*=y);y=Math.random();A=0;C=_.B(l.reactionsData);for(var h=C.next();!h.done;h=C.next())if(h=h.value,h.reactionCount&&(A=(h.reactionWeightOverride||h.reactionWeightOverride===0)&&n?A+h.reactionWeightOverride:A+U*h.reactionCount/
D,A>y&&(h.reactionCount--,l.totalReactions--,h=this.reactionItemToEmojiString(h),h!==this.noEmojiIdentifier)))return h;return this.noEmojiIdentifier};
_.W.reactionItemToEmojiString=function(l){if(l.unicodeEmojiId)return l.unicodeEmojiId;if(l.emoteId)return l.emoteId;if(l.videoReactionType)switch(l.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.W.createEmojiAnimation=function(l,D,U,n){D=D===void 0?!1:D;this.lastEmojiRequestedForTesting=l;var y=l.startsWith("yt-icons:"),A=_.WR(this.emojiManager,l);if(A||y){var C=document.createElement("emoji");C.classList.add("yt-emoji-fountain-view-model");C.classList.add(qLW[Math.floor(Math.random()*qLW.length)]);var h=document.createElement("div");h.classList.add("yt-emoji-fountain-view-model");h.classList.add("horizontal-container");h.classList.add(M9q[Math.floor(Math.random()*M9q.length)]);D?(U=document.createElement("div"),
U.classList.add("user-reaction-bubble"),U.classList.add("yt-emoji-fountain-view-model"),h.appendChild(U)):(U&&(C.style.animationDuration=U+"ms",h.style.animationDuration=U+"ms"),n&&(C.style.width=n+"px",C.style.height=n+"px"));y?(y=document.createElement("yt-icon"),y.polymerController.icon=l,n&&(y.style.width=n+"px",y.style.height=n+"px"),l=y):l=this.emojiManager.createEmoji(A,!1);l.classList.add("yt-emoji-fountain-view-model");h.appendChild(l);C.appendChild(h);this.emojiContainer.appendChild(C);
C.addEventListener("animationend",function(){C.remove()});
var b,u;if((b=this.data)==null?0:(u=b.loggingDirectives)==null?0:u.trackingParams)D=D?_.UE(183501):_.UE(183500),bkk(this.data.loggingDirectives.trackingParams,D),_.uqC(D);setTimeout(function(){C&&C.remove()},2E3)}};
_.W.getEmojiDelayMsFromDistribution=function(l){return Math.random()*(l||1)*1E3};
_.W.getEmojiDelayMsFromTargetEps=function(l){return Math.random()*2*(1/l)*1E3};
_.W.linearInterpolateBounded=function(l,D,U,n,y){y=Math.min(Math.max(y,l),U);return(D*(U-y)+n*(y-l))/(U-l)};
oi.prototype.onEmojiFountainDataEntityUpdate=oi.prototype.onEmojiFountainDataEntityUpdate;oi.prototype.desktopFountainEmojiSizePxChanged=oi.prototype.desktopFountainEmojiSizePxChanged;oi.prototype.isActiveChanged=oi.prototype.isActiveChanged;_.E([_.K(),_.T("design:type",_.AK)],oi.prototype,"emojiManager",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],oi.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],oi.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],oi.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(l,D){return _.yT(l.entities,"emojiFountainDataEntity",D)}}),
_.T("design:type",Object)],oi.prototype,"emojiFountainData",void 0);_.E([_.K(),_.T("design:type",Boolean)],oi.prototype,"isActive",void 0);_.E([_.Pg("isActive"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],oi.prototype,"isActiveChanged",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],oi.prototype,"isDarkTheme",void 0);_.E([_.K(),_.T("design:type",String)],oi.prototype,"lastEmojiRequestedForTesting",void 0);
_.E([_.K({value:function(){return _.RG("desktop_fountain_emoji_size_px",20)}}),
_.T("design:type",Number)],oi.prototype,"desktopFountainEmojiSizePx",void 0);_.E([_.Pg("desktopFountainEmojiSizePx"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],oi.prototype,"desktopFountainEmojiSizePxChanged",null);_.E([_.gP("#emoji-container"),_.T("design:type",HTMLElement)],oi.prototype,"emojiContainer",void 0);
_.E([_.Pg("emojiFountainData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],oi.prototype,"onEmojiFountainDataEntityUpdate",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],oi);
_.r(oi,"yt-emoji-fountain-view-model",function(){if(LWC===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;J3k===void 0&&(J3k=document.createElement("template"));var n=J3k;U.call(D,n.content.cloneNode(!0),l.content.firstChild);LWC=l}l=LWC;return l},{mode:0});var Rvh;var Z61;var wO=function(){return _.p.apply(this,arguments)||this};
_.Z(wO,_.p);wO.prototype.onChoiceChanged=function(){this.data&&_.Wg(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
wO.prototype.onChoiceChanged=wO.prototype.onChoiceChanged;_.E([_.K(),_.T("design:type",Object)],wO.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wO.prototype,"onChoiceChanged",null);_.E([_.x({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],wO);
_.r(wO,"yt-live-chat-banner-poll-choice",function(){if(Z61===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Rvh===void 0&&(Rvh=document.createElement("template"));var n=Rvh;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Z61=l}l=Z61;return l},{mode:0});var evc;var mZq;var rO=function(){var l=_.p.apply(this,arguments)||this;l.modern=_.q("web_button_rework_with_live");l.small=!1;return l};
_.Z(rO,_.p);rO.prototype.computeIsSmall=function(){var l;return((l=this.buttonOverrides)==null?void 0:l.size)==="S"};
rO.prototype.computeId=function(){return this.data&&this.data.targetId};
_.E([_.m(_.ia.YtLiveChatTooltipTargetingBehavior),_.T("design:type",Object)],rO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.T("design:type",String)],rO.prototype,"id",void 0);_.E([_.K(),_.T("design:type",Object)],rO.prototype,"buttonOverrides",void 0);_.E([_.K(),_.T("design:type",Object)],rO.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],rO.prototype,"modern",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.T("design:type",Object)],rO.prototype,"small",void 0);_.E([_.x({disableElementRegistration:!0,is:"yt-live-chat-button"})],rO);
_.r(rO,"yt-live-chat-button",function(){if(mZq===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;evc===void 0&&(evc=document.createElement("template"));var n=evc;U.call(D,n.content.cloneNode(!0),l.content.firstChild);mZq=l}l=mZq;return l},{mode:0});var alw;var t9O;var z$=function(){var l=_.p.apply(this,arguments)||this;l.inCollapsedBanner=!1;l.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};l.questionButtonOverrides={style:"mono",type:"filled"};return l};
_.Z(z$,_.p);_.W=z$.prototype;_.W.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]]"}}}}}};
_.W.onContextMenuButtonClick=function(l){this.ytLiveChatItemBehavior.showContextMenu(l)};
_.W.onYtRendererstamperFinished=function(){this.menuButton=_.iJ(this.hostElement).querySelector("#menu-button")};
_.W.dataChanged=function(){var l,D;if((D=_.M((l=this.data)==null?void 0:l.overflowMenuButton,_.yn))==null?0:D.command)this.data.contextMenuEndpoint=_.M(this.data.overflowMenuButton,_.yn).command};
_.W.onButtonClick=function(){var l,D=_.M((l=this.data)==null?void 0:l.askQuestionButton,_.yn);if(D){if(D.trackingParams&&(l=_.v9(D.trackingParams))){var U=_.t6();U&&_.zo(U,l)}_.O9(this.hostElement,"innertube-command",D.command)}};
z$.prototype.onYtRendererstamperFinished=z$.prototype.onYtRendererstamperFinished;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],z$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],z$.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],z$.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.K({observer:"dataChanged"}),_.T("design:type",Object)],z$.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],z$.prototype,"inCollapsedBanner",void 0);_.E([_.K(),_.T("design:type",Object)],z$.prototype,"buttonOverrides",void 0);_.E([_.K(),_.T("design:type",Object)],z$.prototype,"questionButtonOverrides",void 0);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],z$.prototype,"onYtRendererstamperFinished",null);
_.E([_.x({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],z$);
_.r(z$,"yt-live-chat-call-for-questions-renderer",function(){if(t9O===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;alw===void 0&&(alw=document.createElement("template"));var n=alw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);t9O=l}l=t9O;return l},{mode:0});var XGD={};XGD.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 l=this;window.requestAnimationFrame(function(){l.restoreFocusNode_||(l.restoreFocusNode_=document.activeElement);var D=_.ohv(l.hostElement);D.length&&D[D.length-1].focus()})},
isAttachedChanged_:function(l,D){l?this.focusChild_():D&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(l){this.hidden||_.$f(l).indexOf(this.hostElement)!==-1||(l.stopPropagation(),this.focusChild_())}};var SL1;var knT;var fX=function(){return _.p.apply(this,arguments)||this};
_.Z(fX,_.p);fX.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fX.prototype.onClick=function(l){l.target!==this.confirmButton&&l.target!==this.cancelButton&&(this.hidden=!0)};
_.E([_.gP("#confirm_button"),_.T("design:type",Object)],fX.prototype,"confirmButton",void 0);_.E([_.gP("#cancel_button"),_.T("design:type",Object)],fX.prototype,"cancelButton",void 0);_.E([_.K(),_.T("design:type",dZj)],fX.prototype,"data",void 0);_.E([_.K({value:!0,reflectToAttribute:!0}),_.T("design:type",Boolean)],fX.prototype,"hidden",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],fX.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(XGD.YtLiveChatDialogBehavior),_.T("design:type",Object)],fX.prototype,"ytLiveChatDialogBehavior",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],fX);
var dZj=_.r(fX,"yt-live-chat-dialog-renderer",function(){if(knT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;SL1===void 0&&(SL1=document.createElement("template"));var n=SL1;U.call(D,n.content.cloneNode(!0),l.content.firstChild);knT=l}l=knT;return l},{mode:0});var KWD;var c3O,pGj=function(){if(c3O!==void 0)return c3O;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;KWD===void 0&&(KWD=document.createElement("template"));var n=KWD;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return c3O=l};var xZ1;var j2h;var $b=function(){var l=_.p.apply(this,arguments)||this;l.tooltip=null;l.data=null;l.id="";l.active=!1;l.icon="";l.disabled=!1;l.showTooltip=!1;l.useToggledActiveState=!0;l.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return l};
_.Z($b,_.p);_.W=$b.prototype;
_.W.dataChanged=function(){var l;((l=this.data)==null?0:l.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,_.Aj)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var D;if((D=this.data)==null?0:D.disabled)this.disabled=!0};
_.W.computeId=function(l){return l};
_.W.computeIcon=function(l,D){if(!l)return"";if(this.useToggledActiveState)return"yt-icons:"+l.toLowerCase();var U,n;return D&&((U=this.data)==null?0:(n=U.toggledIcon)==null?0:n.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+l.toLowerCase()};
_.W.logPDGEntryPoint=function(){_.iK3(_.Wk("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")};
_.W.immediatelyShowTooltip=function(){var l=_.iJ(this.hostElement).querySelector("#tooltip");l.animationDelay=0;l.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};l.show()};
_.W.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.W.onClick=function(l){var D;((D=this.data)==null?0:D.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(),l.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.O9(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.W.computeShowTooltip=function(l,D){return!!(l&&l.tooltip&&D)};
_.W.maybeUpdateTooltipText=function(){var l=this,D;if((D=this.data)==null?0:D.tooltip){var U=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Aj)(l.tooltip).textContent=U},250)}};
_.W.handleLiveChatActions=function(l){var D=this;l.length&&(this.id!=="creator"&&this.id!=="product-picker"||l.forEach(function(U){(U=D.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",U))&&U.durationSec===U.fullDurationSec&&D.startBubble(D.colorFromDecimal(U.startBackgroundColor))}))};
_.W.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.W.startBubble=function(l){_.Wg(this.hostElement,{"--yt-live-chat-monetization-button-glow":l});this.hostElement.setAttribute("bubble","")};
_.W.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.W.colorFromDecimal=function(l){typeof l==="string"&&(l=Number(l));return"rgba("+[l>>16&255,l>>8&255,l&255,(l>>24&255)/255].join()+")"};
$b.prototype.onAnimationEnd=$b.prototype.onAnimationEnd;$b.prototype.disabledChanged=$b.prototype.disabledChanged;$b.prototype.dataChanged=$b.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],$b.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.ia.YtLiveChatTooltipTargetingBehavior),_.T("design:type",Object)],$b.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$b.prototype,"data",void 0);_.E([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.T("design:type",Object)],$b.prototype,"id",void 0);_.E([_.K({notify:!0,reflectToAttribute:!0}),_.T("design:type",Object)],$b.prototype,"active",void 0);
_.E([_.K({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.T("design:type",Object)],$b.prototype,"icon",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],$b.prototype,"disabled",void 0);_.E([_.K({computed:"computeShowTooltip(data, disabled)"}),_.T("design:type",Object)],$b.prototype,"showTooltip",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],$b.prototype,"useToggledActiveState",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$b.prototype,"dataChanged",null);_.E([_.Pg("disabled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$b.prototype,"disabledChanged",null);_.E([_.hj("animationend"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],$b.prototype,"onAnimationEnd",null);
_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],$b);
_.r($b,"yt-live-chat-icon-toggle-button-renderer",function(){if(j2h===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;xZ1===void 0&&(xZ1=document.createElement("template"));var n=xZ1;U.call(D,n.content.cloneNode(!0),l.content.firstChild);j2h=l}l=j2h;return l},{mode:0});var FWh;var oHh;var NS=function(){return _.p.apply(this,arguments)||this};
_.Z(NS,_.p);NS.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.K(),_.T("design:type",Object)],NS.prototype,"data",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.x({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],NS);
_.r(NS,"yt-live-chat-message-input-prompt-header-renderer",function(){if(oHh===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;FWh===void 0&&(FWh=document.createElement("template"));var n=FWh;U.call(D,n.content.cloneNode(!0),l.content.firstChild);oHh=l}l=oHh;return l},{mode:0});var wGj;var r3h;var zvC;var fl1;var $ZI;var Nbq;var s2W=function(){return _.p.apply(this,arguments)||this};
_.Z(s2W,_.p);_.E([_.K(),_.T("design:type",Object)],s2W.prototype,"data",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],s2W);
_.r(s2W,"yt-live-chat-message-subtext-renderer",function(){if(Nbq===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;$ZI===void 0&&($ZI=document.createElement("template"));var n=$ZI;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Nbq=l}l=Nbq;return l},{mode:0});var s$=function(){var l=_.p.apply(this,arguments)||this;l.subtextOnBottom=!1;l.buttonOverrides={style:"mono",type:"tonal"};return l};
_.Z(s$,_.p);s$.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],s$.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],s$.prototype,"subtextOnBottom",void 0);_.E([_.K(),_.T("design:type",Object)],s$.prototype,"buttonOverrides",void 0);
_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],s$);
_.r(s$,"yt-live-chat-message-renderer",function(){if(fl1===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;zvC===void 0&&(zvC=document.createElement("template"));var n=zvC;U.call(D,n.content.cloneNode(!0),l.content.firstChild);fl1=l}l=fl1;return l},{mode:0});var EHO;var Tbg;var E$=function(){var l=_.p.apply(this,arguments)||this;l.isRemovable=!1;l.hasPrefilledText=!1;l.isInputDirty=!1;l.overCharacterLimit=!1;l.underCharacterLimit=!1;l.showErrorMessage=!1;return l};
_.Z(E$,_.p);_.W=E$.prototype;_.W.computeId=function(){return this.data.id};
_.W.computeInputData=function(){return this.data.inputData};
_.W.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.W.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.W.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.W.getLiveChatRichMessageInput=function(){return _.iJ(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.W.clearInput=function(){_.iJ(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.W.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.W.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.W.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.W.handleTextInputCharCountChanged=function(l){l=l.detail&&l.detail.characterCount;l!==void 0&&(this.characterCount=l,l!==0&&(this.isInputDirty=!0))};
_.W.onInputFocusOut=function(){this.isInputDirty=!0};
_.W.onClickCloseButton=function(){_.O9(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
E$.prototype.handleTextInputCharCountChanged=E$.prototype.handleTextInputCharCountChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],E$.prototype,"data",void 0);_.E([_.K({computed:"computeId(data.id)"}),_.T("design:type",String)],E$.prototype,"id",void 0);_.E([_.K({computed:"computeInputData(data.inputData)"}),_.T("design:type",Object)],E$.prototype,"inputData",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.T("design:type",Object)],E$.prototype,"isRemovable",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.T("design:type",Object)],E$.prototype,"hasPrefilledText",void 0);_.E([_.K({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.T("design:type",Number)],E$.prototype,"charactersRemaining",void 0);
_.E([_.K(),_.T("design:type",Number)],E$.prototype,"characterCount",void 0);_.E([_.K(),_.T("design:type",Object)],E$.prototype,"isInputDirty",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.T("design:type",Object)],E$.prototype,"overCharacterLimit",void 0);_.E([_.K({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.T("design:type",Object)],E$.prototype,"underCharacterLimit",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.T("design:type",Object)],E$.prototype,"showErrorMessage",void 0);_.E([_.hj("yt-live-chat-text-input-field-renderer-character-count-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],E$.prototype,"handleTextInputCharCountChanged",null);
_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],E$);
_.r(E$,"yt-live-chat-poll-editor-input",function(){if(Tbg===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;EHO===void 0&&(EHO=document.createElement("template"));var n=EHO;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Tbg=l}l=Tbg;return l},{mode:0});var Il1;var H6c;var YL1={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},T$=function(){var l=_.p.apply(this,arguments)||this;l.modern=_.q("web_button_rework_with_live");l.closeButtonOverrides={iconPosition:"icon-only"};l.startButtonOverrides={style:"mono",type:"filled"};l.addOptionButtonOverrides={style:"mono",type:"text"};return l};
_.Z(T$,_.p);_.W=T$.prototype;
_.W.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"}}}}};
_.W.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var l;_.M((l=this.data)==null?void 0:l.startButton,_.yn)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.W.computeId=function(){return this.data&&this.data.id||""};
_.W.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.W.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.W.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.W.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.W.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var l=0;l<this.pollEditorInfoWithDefaults.minPollOptions;l++)this.addPollOptionData()};
_.W.getIsValidPoll=function(){var l=this;if(!this.pollEditorInfoWithDefaults)return!1;var D=this.pollEditorInfoWithDefaults,U=D.minPollOptionChars,n=D.maxPollOptionChars,y=D.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>D.maxPollQuestionChars)return!1;D=_.iJ(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(D).every(function(A,C){A=A.characterCount;!A&&y[C]&&(A=l.ytRendererBehavior.getSimpleString(y[C]).length);return A!==void 0&&A>=U&&A<=n})};
_.W.isValidPollChanged=function(){var l;_.M((l=this.data)==null?void 0:l.startButton,_.yn)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.W.addPollOptionData=function(){var l=this.pollEditorInfoWithDefaults,D=l.maxPollOptionChars,U=l.optionPlaceholderText,n=l.customOptionPlaceholderText,y=l.pollOptionData;this.currentNumPollOptions>=l.maxPollOptions||(l={liveChatPollOptionInput:{inputData:{placeholder:n[this.currentNumPollOptions]||U,maxCharacterLimit:D},maxCharacterLimit:D,minCharacterLimit:l.minPollOptionChars,hasPrefilledText:!!n[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=l.minPollOptions}},y.charCountErrorText&&
(l.liveChatPollOptionInput.charCountErrorText=y.charCountErrorText),y.charsRemainingAltLabel&&(l.liveChatPollOptionInput.charsRemainingAltLabel=y.charsRemainingAltLabel),y.removeOptionAltText&&(l.liveChatPollOptionInput.removeOptionAltText=y.removeOptionAltText),this.push("pollOptionsData",l),y=Array.from(_.iJ(_.iJ(this.hostElement).querySelector("#poll-options")).children),y.forEach(function(A,C){A.polymerController.set("data.id",C)}),_.iJ(y[y.length-1]).querySelector("#input").focus())};
_.W.getPollOptionInputValues=function(){var l=this,D=[],U=_.iJ(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),n=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(U).forEach(function(y,A){var C=null;y=y.getLiveChatRichMessageInput();var h;(y==null?0:(h=y.textSegments)==null?0:h.length)?C=_.cK(y):n[A]&&(C=l.formattedStringToLiveChatRichMessageInput(n[A]));D.push(C)});
return D};
_.W.requestCreateAndStartPoll=function(l){var D=this.getPollOptionInputValues();if(!D.some(function(n){return!n})){D={optionText:D};
var U=_.iJ(_.iJ(this.hostElement).querySelector("#poll-question")).firstChild;U&&U.liveChatRichMessageInput&&(D.questionText=_.cK(U.liveChatRichMessageInput));_.lu(this.hostElement,[l,D])}};
_.W.selectedChanged=function(){if(this.selected){var l=_.iJ(_.iJ(this.hostElement).querySelector("#start-button")).firstElementChild;if(l){var D;(D=_.iJ(l).querySelector("#button")||_.lJ(l).querySelector("button"))==null||D.focus()}}};
_.W.handleTextInputChanged=function(l){var D;((D=l.target)==null?void 0:D.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=l.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.W.handleStartButtonAction=function(l){l.detail.actionName==="yt-service-request"&&(l.stopPropagation(),(l=l.detail.args[1])&&this.requestCreateAndStartPoll(l))};
_.W.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.W.handleServiceRequestCompleted=function(l){this.createPollRequestInFlight=!1;(l=l.detail&&l.detail.data)&&l.success&&(_.O9(this.hostElement,"picker-cancelled"),_.Vh(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.W.onCloseClick=function(){_.O9(this.hostElement,"picker-cancelled");_.Vh(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.W.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.W.handlePollEditorInputClosed=function(l){var D=this.pollOptionsData.findIndex(function(U){return U.liveChatPollOptionInput.id===l.detail.id});
this.splice("pollOptionsData",D,1);this.isValidPoll=this.getIsValidPoll()};
_.W.onPickerCancelled=function(){this.reset()};
_.W.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var l=_.iJ(_.iJ(this.hostElement).querySelector("#poll-question")).firstChild;l&&l.setLiveChatRichMessageInput(null);if(l=_.iJ(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){l=_.B(Array.from(l));for(var D=l.next();!D.done;D=l.next())D.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.W.formattedStringToLiveChatRichMessageInput=function(l){return l.simpleText?{text_segments:[l.simpleText]}:{text_segments:l.runs}};
_.QP.Object.defineProperties(T$.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(YL1,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
T$.prototype.onPickerCancelled=T$.prototype.onPickerCancelled;T$.prototype.handlePollEditorInputClosed=T$.prototype.handlePollEditorInputClosed;T$.prototype.handleServiceRequestCompleted=T$.prototype.handleServiceRequestCompleted;T$.prototype.handleServiceRequestSent=T$.prototype.handleServiceRequestSent;T$.prototype.handleTextInputChanged=T$.prototype.handleTextInputChanged;T$.prototype.selectedChanged=T$.prototype.selectedChanged;T$.prototype.isValidPollChanged=T$.prototype.isValidPollChanged;
T$.prototype.shouldInitializePollChanged=T$.prototype.shouldInitializePollChanged;T$.prototype.dataChanged=T$.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],T$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],T$.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],T$.prototype,"modern",void 0);
_.E([_.K(),_.T("design:type",Object)],T$.prototype,"closeButtonOverrides",void 0);_.E([_.K(),_.T("design:type",Object)],T$.prototype,"startButtonOverrides",void 0);_.E([_.K(),_.T("design:type",Object)],T$.prototype,"addOptionButtonOverrides",void 0);_.E([_.K({computed:"computeId(data.id)",reflectToAttribute:!0}),_.T("design:type",String)],T$.prototype,"id",void 0);_.E([_.K({value:function(){return[]}}),
_.T("design:type",Array)],T$.prototype,"pollOptionsData",void 0);_.E([_.t("pollEditorInfoWithDefaults"),_.T("design:type",Object),_.T("design:paramtypes",[])],T$.prototype,"pollQuestionData",null);_.E([_.K({value:0}),_.T("design:type",Number)],T$.prototype,"pollQuestionCharacterCount",void 0);_.E([_.t("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.T("design:type",Object),_.T("design:paramtypes",[])],T$.prototype,"pollQuestionCharactersRemaining",null);
_.E([_.K({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.T("design:type",Boolean)],T$.prototype,"overQuestionCharacterLimit",void 0);_.E([_.t("data.pollEditorInfo"),_.T("design:type",Object),_.T("design:paramtypes",[])],T$.prototype,"pollEditorInfoWithDefaults",null);_.E([_.K({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.T("design:type",Number)],T$.prototype,"currentNumPollOptions",void 0);
_.E([_.K({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.T("design:type",Boolean)],T$.prototype,"hasMaxNumPollOptions",void 0);_.E([_.t("pollEditorInfoWithDefaults","pollOptionsData"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],T$.prototype,"shouldInitializePoll",null);_.E([_.K(),_.T("design:type",Object)],T$.prototype,"isValidPoll",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],T$.prototype,"createPollRequestInFlight",void 0);_.E([_.K(),_.T("design:type",Object)],T$.prototype,"selected",void 0);_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.T("design:type",Boolean)],T$.prototype,"showQuestionErrorMessage",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],T$.prototype,"dataChanged",null);_.E([_.Pg("shouldInitializePoll"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],T$.prototype,"shouldInitializePollChanged",null);_.E([_.Pg("isValidPoll"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],T$.prototype,"isValidPollChanged",null);
_.E([_.Pg("selected"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],T$.prototype,"selectedChanged",null);_.E([_.hj("yt-live-chat-text-input-field-renderer-character-count-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],T$.prototype,"handleTextInputChanged",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],T$.prototype,"handleServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],T$.prototype,"handleServiceRequestCompleted",null);
_.E([_.hj("yt-live-chat-poll-editor-input-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],T$.prototype,"handlePollEditorInputClosed",null);_.E([_.hj("picker-cancelled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],T$.prototype,"onPickerCancelled",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],T$);
_.r(T$,"yt-live-chat-poll-editor-panel-renderer",function(){if(H6c===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Il1===void 0&&(Il1=document.createElement("template"));var n=Il1;U.call(D,n.content.cloneNode(!0),l.content.firstChild);H6c=l}l=H6c;return l},{mode:0});var O6w;var V9k;var Ii=function(){return _.p.apply(this,arguments)||this};
_.Z(Ii,_.p);Ii.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Ii.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.QP.Object.defineProperties(Ii.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var l,D;return(l=this.data)==null?void 0:(D=l.title)==null?void 0:D.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var l;return _.te((l=this.data)==null?void 0:l.onTapCommand)}}});
_.E([_.m(_.d9.YtEndpointBehavior),_.T("design:type",Object)],Ii.prototype,"ytEndpointBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ii.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ii.prototype,"itemId",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ii.prototype,"hasPromotion",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ii.prototype,"innertubeCommand",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Ii);
_.r(Ii,"yt-live-chat-product-picker-panel-item-view-model",function(){if(V9k===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;O6w===void 0&&(O6w=document.createElement("template"));var n=O6w;U.call(D,n.content.cloneNode(!0),l.content.firstChild);V9k=l}l=V9k;return l},{mode:0});var iBH;var l0O;var Hu=function(){var l=_.p.apply(this,arguments)||this;l.id="product-picker";l.selected=!1;l.closeButtonId="close-button";l.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return l};
_.Z(Hu,_.p);_.W=Hu.prototype;_.W.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.W.observeSelected=function(){this.selected&&this.hostElement.focus();var l=_.iJ(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");l.length&&l[0].focus()};
_.W.onCloseBuyFlow=function(){_.O9(this.hostElement,"picker-cancelled")};
_.W.onCloseClick=function(){_.O9(this.hostElement,"picker-cancelled");var l;((l=this.data)==null?0:l.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.M(this.data.closeButton,_.CM))};
_.W.onCloseEngageWithAudienceEditorPanels=function(){_.O9(this.hostElement,"picker-cancelled")};
Hu.prototype.observeSelected=Hu.prototype.observeSelected;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Hu.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Hu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Hu.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Hu.prototype,"id",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Hu.prototype,"selected",void 0);_.E([_.K(),_.T("design:type",Object)],Hu.prototype,"closeButtonId",void 0);_.E([_.Pg("selected"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Hu.prototype,"observeSelected",null);
_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Hu);
_.r(Hu,"yt-live-chat-product-picker-panel-view-model",function(){if(l0O===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;iBH===void 0&&(iBH=document.createElement("template"));var n=iBH;U.call(D,n.content.cloneNode(!0),l.content.firstChild);l0O=l}l=l0O;return l},{mode:0});var DaT;var UaO;var Yb=function(){var l=_.p.apply(this,arguments)||this;l.iconId="";l.icon="";l.disabled=!1;l.systemIcons=_.q("kevlar_system_icons");return l};
_.Z(Yb,_.p);_.W=Yb.prototype;_.W.computeIconId=function(l){return l&&l.icon&&l.icon.iconType?l.icon.iconType.toLowerCase():""};
_.W.computeIcon=function(l){return l&&l.icon&&l.icon.iconType?(l=l.icon.iconType.toLowerCase(),(l.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+l):""};
_.W.computeDisabled=function(l){return!!l};
_.W.computeCommand=function(l,D){return D?void 0:l};
_.W.computeTooltip=function(l,D){return D&&l?l:""};
_.W.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.QP.Object.defineProperties(Yb.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var l="",D,U,n;if((D=this.data)==null?0:(U=D.text)==null?0:(n=U.runs)==null?0:n.length)l=this.data.text.runs[0].text||"";else{var y,A;if((y=this.data)==null?0:(A=y.text)==null?0:A.simpleText)l=this.data.text.simpleText}var C,h,b;if((C=this.data)==null?0:(h=C.subtext)==null?0:(b=h.runs)==null?0:b.length)l&&(l+=". "),l+=this.data.subtext.runs[0].text||"";else{var u,Q;if((u=this.data)==null?0:(Q=u.subtext)==
null?0:Q.simpleText)l&&(l+=". "),l+=this.data.subtext.simpleText}return l}}});
_.E([_.m(_.d9.YtEndpointBehavior),_.T("design:type",Object)],Yb.prototype,"ytEndpointBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Yb.prototype,"data",void 0);_.E([_.K({computed:"computeIconId(data)",reflectToAttribute:!0}),_.T("design:type",Object)],Yb.prototype,"iconId",void 0);
_.E([_.K({computed:"computeIcon(data)",reflectToAttribute:!0}),_.T("design:type",Object)],Yb.prototype,"icon",void 0);_.E([_.K({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.T("design:type",Object)],Yb.prototype,"disabled",void 0);_.E([_.K({computed:"computeCommand(data.command, disabled)"}),_.T("design:type",Object)],Yb.prototype,"command",void 0);_.E([_.K({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.T("design:type",String)],Yb.prototype,"tooltip",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Yb.prototype,"systemIcons",void 0);_.E([_.t("data.text","data.subtext"),_.K(),_.T("design:type",String),_.T("design:paramtypes",[])],Yb.prototype,"ariaLabel",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Yb);
_.r(Yb,"yt-live-chat-product-button-renderer",function(){if(UaO===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;DaT===void 0&&(DaT=document.createElement("template"));var n=DaT;U.call(D,n.content.cloneNode(!0),l.content.firstChild);UaO=l}l=UaO;return l},{mode:0});var nGH;var yLj;var O$=function(){var l=_.p.apply(this,arguments)||this;l.selected=!1;l.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 l};
_.Z(O$,_.p);_.W=O$.prototype;_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.W.computeId=function(l){return l.id||""};
_.W.onCloseClick=function(){_.O9(this.hostElement,"picker-cancelled")};
_.W.observeSelected=function(){this.selected&&this.hostElement.focus();var l=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");l.length&&l[0].focus()};
_.W.onCloseBuyFlow=function(){_.O9(this.hostElement,"picker-cancelled")};
_.W.onCloseEngageWithAudienceEditorPanels=function(){_.O9(this.hostElement,"picker-cancelled")};
O$.prototype.observeSelected=O$.prototype.observeSelected;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],O$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],O$.prototype,"data",void 0);
_.E([_.K({computed:"computeId(data)",reflectToAttribute:!0}),_.T("design:type",String)],O$.prototype,"id",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],O$.prototype,"selected",void 0);_.E([_.Pg("selected"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],O$.prototype,"observeSelected",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],O$);
_.r(O$,"yt-live-chat-product-picker-renderer",function(){if(yLj===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;nGH===void 0&&(nGH=document.createElement("template"));var n=nGH;U.call(D,n.content.cloneNode(!0),l.content.firstChild);yLj=l}l=yLj;return l},{mode:0});var ALl;var Wih;var B$w;var Cyh;var V2=function(){return _.p.apply(this,arguments)||this};
_.Z(V2,_.p);V2.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()};
V2.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
V2.prototype.created=function(){this.ids={background:_.T1(),maskOne:_.T1(),maskTwo:_.T1(),gradient:_.T1(),largeBackground:_.T1(),largeGradientOne:_.T1(),largeGradientTwo:_.T1(),largeGradientPath:_.T1()}};
V2.prototype.maybeLoadAnimationBackground=V2.prototype.maybeLoadAnimationBackground;_.E([_.K({value:!1}),_.T("design:type",Boolean)],V2.prototype,"useLargeBackground",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],V2.prototype,"useAnimationBackground",void 0);_.E([_.K({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.T("design:type",Boolean)],V2.prototype,"useRegularBackground",void 0);
_.E([_.K(),_.T("design:type",Object)],V2.prototype,"ids",void 0);_.E([_.K(),_.T("design:type",Object)],V2.prototype,"lottieAnimation",void 0);_.E([_.gP("#animation-background"),_.T("design:type",HTMLDivElement)],V2.prototype,"animationBackground",void 0);_.E([_.Pg("useAnimationBackground"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],V2.prototype,"maybeLoadAnimationBackground",null);
_.E([_.S0({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],V2);
_.r(V2,"yt-live-interactivity-component-background",function(){if(Cyh===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;B$w===void 0&&(B$w=document.createElement("template"));var n=B$w;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Cyh=l}l=Cyh;return l},{mode:0});var ig=function(){var l=_.p.apply(this,arguments)||this;l.characterCount=0;l.showInputErrorMessage=!1;l.startQnaRequestInFlight=!1;l.modern=_.q("web_button_rework_with_live");l.buttonOverrides={style:"mono",type:"filled"};l.closeButtonOverrides={iconPosition:"icon-only"};l.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return l};
_.Z(ig,_.p);_.W=ig.prototype;
_.W.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]]"}}}}}};
_.W.onCharacterCountChanged=function(l){var D,U,n,y,A=(U=_.M(this==null?void 0:(D=this.data)==null?void 0:D.creatorCallForQuestions,rcC))==null?void 0:(n=U.inputField)==null?void 0:(y=n.liveChatTextInputFieldRenderer)==null?void 0:y.maxCharacterLimit,C,h;A!=null&&(l==null?void 0:(C=l.detail)==null?void 0:C.characterCount)!=null&&_.M(this==null?void 0:(h=this.data)==null?void 0:h.startButton,_.yn)&&(D=l.detail.characterCount>A,this.set("data.startButton.buttonRenderer.isDisabled",l.detail.characterCount===
0||D),this.showInputErrorMessage=D)};
_.W.onCloseClick=function(){_.O9(this.hostElement,"picker-cancelled");_.Vh(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.W.onPickerCancelled=function(){var l=_.iJ(this.hostElement).querySelector("#qna-creator-text-input-field");l&&l.setLiveChatRichMessageInput(null)};
_.W.handleOpenQnaStartPanel=function(){var l=_.iJ(this.hostElement).querySelector("#qna-creator-text-input-field");l&&l.focus()};
_.W.handleStartButtonAction=function(l){var D=this;if(l.detail.actionName==="yt-service-request"&&(l.stopPropagation(),l=l.detail.args[1])){var U=_.iJ(this.hostElement).querySelector("#qna-creator-text-input-field"),n;(U==null?0:(n=U.liveChatRichMessageInput)==null?0:n.textSegments)&&U.liveChatRichMessageInput.textSegments.length!==0&&(n={rich_message:_.cK(U.liveChatRichMessageInput)},_.lu(this.hostElement,[l,n]).then(function(){_.O9(D.hostElement,"picker-cancelled")}))}};
_.W.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.W.handleServiceRequestCompleted=function(l){var D;l=l==null?void 0:(D=l.detail)==null?void 0:D.data;(l==null?0:l.actions)&&l.actions.length>0?this.startQnaRequestInFlight=!1:_.Vh(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.W.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
ig.prototype.handleServiceRequestError=ig.prototype.handleServiceRequestError;ig.prototype.handleServiceRequestCompleted=ig.prototype.handleServiceRequestCompleted;ig.prototype.handleServiceRequestSent=ig.prototype.handleServiceRequestSent;ig.prototype.onPickerCancelled=ig.prototype.onPickerCancelled;ig.prototype.onCharacterCountChanged=ig.prototype.onCharacterCountChanged;_.E([_.K(),_.T("design:type",Object)],ig.prototype,"characterCount",void 0);
_.E([_.K(),_.T("design:type",Object)],ig.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ig.prototype,"showInputErrorMessage",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ig.prototype,"startQnaRequestInFlight",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ig.prototype,"modern",void 0);_.E([_.K(),_.T("design:type",Object)],ig.prototype,"buttonOverrides",void 0);
_.E([_.K(),_.T("design:type",Object)],ig.prototype,"closeButtonOverrides",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],ig.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.m(_.hK.YtLiveChatItemBehavior),_.T("design:type",_.PR)],ig.prototype,"ytLiveChatItemBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],ig.prototype,"ytActionHandlerBehavior",void 0);_.E([_.hj("yt-live-chat-text-input-field-renderer-character-count-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],ig.prototype,"onCharacterCountChanged",null);_.E([_.hj("picker-cancelled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ig.prototype,"onPickerCancelled",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ig.prototype,"handleServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],ig.prototype,"handleServiceRequestCompleted",null);
_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],ig.prototype,"handleServiceRequestError",null);_.E([_.x({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],ig);
_.r(ig,"yt-live-chat-qna-start-panel-renderer",function(){if(Wih===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;ALl===void 0&&(ALl=document.createElement("template"));var n=ALl;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Wih=l}l=Wih;return l},{mode:0});var htk;var Pyl;var lg=function(){return _.p.apply(this,arguments)||this};
_.Z(lg,_.p);lg.prototype.dismiss=function(){_.O9(this.hostElement,"yt-live-chat-error-message-dismiss")};
lg.prototype.edit=function(){_.O9(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.E([_.K(),_.T("design:type",Object)],lg.prototype,"data",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],lg);
_.r(lg,"yt-live-chat-text-actions-error-message-renderer",function(){if(Pyl===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;htk===void 0&&(htk=document.createElement("template"));var n=htk;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Pyl=l}l=Pyl;return l},{mode:0});var bBw;var gGT;var u0c;var vGD;var D3=function(){var l=_.p.apply(this,arguments)||this;l.isDarkTheme=document.documentElement.hasAttribute("dark");l.newnessDotEligible=!1;return l};
_.Z(D3,_.p);D3.prototype.sendReaction=function(){var l,D,U=((l=this.data)==null?void 0:l.emojiId)||((D=this.data)==null?void 0:D.emoteId),n;U&&((n=this.data)==null?0:n.shouldTriggerAnimation)&&_.Vh(this.hostElement,"yt-create-user-reaction-animation",[U]);var y;(l=_.te((y=this.data)==null?void 0:y.onTap))&&_.Ae(l,this.hostElement);this.showNewnessDot&&_.Vh(this.hostElement,"yt-hide-newness-dot")};
D3.prototype.onClick=function(l){(!l||l.clientX||l.clientY)&&this.sendReaction()};
D3.prototype.onKeyDown=function(l){l.key!=="Enter"&&l.key!==" "||l.repeat||this.sendReaction()};
_.QP.Object.defineProperties(D3.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var l,D;return!!(((l=this.data)==null?0:l.emojiId)||((D=this.data)==null?0:D.emoteId))}}});
_.E([_.K(),_.T("design:type",Object)],D3.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],D3.prototype,"isDarkTheme",void 0);_.E([_.K(),_.T("design:type",Object)],D3.prototype,"newnessDotEligible",void 0);_.E([_.t("data.maybeShowNewnessDot"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],D3.prototype,"showNewnessDot",null);_.E([_.t("data.emojiId","data.emoteId"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],D3.prototype,"useYtImage",null);
_.E([_.S0({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],D3);
_.r(D3,"yt-reaction-control-panel-button-view-model",function(){if(vGD===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;u0c===void 0&&(u0c=document.createElement("template"));var n=u0c;U.call(D,n.content.cloneNode(!0),l.content.firstChild);vGD=l}l=vGD;return l},{mode:0});var QIH;var Gjj;var Uw=function(){var l=_.p.apply(this,arguments)||this;l.reactionControlPanelExpanded=!1;l.isDarkTheme=document.documentElement.hasAttribute("dark");l.newnessDotEligible=!1;return l};
_.Z(Uw,_.p);_.W=Uw.prototype;_.W.expandedButtonsChanged=function(){var l,D;_.Wg(this.hostElement,{"--expanded-buttons-height":((D=(l=this.expandedButtonsData)==null?void 0:l.length)!=null?D:0)*36+"px"})};
_.W.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}}};
_.W.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.W.onMouseLeave=function(){var l=this;this.collapseTimer=setTimeout(function(){l.reactionControlPanelExpanded=!1},500)};
_.W.onFocusIn=function(){this.onMouseEnter()};
_.W.onFocusOut=function(){this.onMouseLeave()};
_.W.onCollapsedButtonFocusIn=function(){var l=this;setTimeout(function(){var D;(D=l.expandedButtons.querySelector("button"))==null||D.focus()},100)};
_.W.onCollapsedButtonFocusOut=function(l){l.stopPropagation()};
_.QP.Object.defineProperties(Uw.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var l,D;return _.we.unsafeClone((l=this.liveReactionsData)==null?void 0:l.emojiButtonData)||((D=this.data)==null?void 0:D.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var l;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((l=this.data)==null||!l.maybeShowNewnessDot)}}});
Uw.prototype.expandedButtonsChanged=Uw.prototype.expandedButtonsChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],Uw.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Uw.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Uw.prototype,"reactionControlPanelExpanded",void 0);_.E([_.K({selectorArgs:["data.liveReactionsDataEntityKey"],selector:hGW}),_.T("design:type",Object)],Uw.prototype,"liveReactionsData",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Uw.prototype,"isDarkTheme",void 0);_.E([_.K(),_.T("design:type",Object)],Uw.prototype,"newnessDotEligible",void 0);
_.E([_.t("liveReactionsData","data.expandedButtons"),_.T("design:type",Object),_.T("design:paramtypes",[])],Uw.prototype,"expandedButtonsData",null);_.E([_.t("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.K({reflectToAttribute:!0}),_.T("design:type",Object),_.T("design:paramtypes",[])],Uw.prototype,"showNewnessDot",null);_.E([_.gP("#expanded-buttons"),_.T("design:type",HTMLElement)],Uw.prototype,"expandedButtons",void 0);
_.E([_.Pg("expandedButtonsData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Uw.prototype,"expandedButtonsChanged",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Uw);
_.r(Uw,"yt-reaction-control-panel-view-model",function(){if(Gjj===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;QIH===void 0&&(QIH=document.createElement("template"));var n=QIH;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Gjj=l}l=Gjj;return l},{mode:0});var na=new _.Vo("yt-live-chat"),JLW=Date.parse("2024-7-24"),yY=function(){var l=_.p.apply(this,arguments)||this;l.emojiManager=_.CF;l.newnessDotEligible=!1;l.newnessDotImpressionCounted=!1;l.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return l};
_.Z(yY,_.p);_.W=yY.prototype;_.W.emojiCustomizationEnabledChanged=function(){var l;((l=this.data)==null?0:l.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((l=na.getCreationTime("emoji-customization-count"))&&l<JLW&&na.set("emoji-customization-count","0"),l=Number(na.get("emoji-customization-count"))||0,l<3&&(this.newnessDotEligible=!0,na.set("emoji-customization-count",(l+1).toString())),this.newnessDotImpressionCounted=!0)};
_.W.hideNewnessDot=function(){this.newnessDotEligible=!1;na.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.W.handleReactionsMute=function(l){var D=_.t6(),U=_.UE(206221),n={checkboxData:{state:l?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};D&&_.zo(D,U,n);this.reactionsMuted=l};
_.W.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.W.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}}};
_.QP.Object.defineProperties(yY.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var l;return(!((l=this.liveReactionsData)==null||!l.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
yY.prototype.liveReactionsSettingChanged=yY.prototype.liveReactionsSettingChanged;yY.prototype.emojiCustomizationEnabledChanged=yY.prototype.emojiCustomizationEnabledChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],yY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.VS),_.T("design:type",Object)],yY.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],yY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],yY.prototype,"data",void 0);_.E([_.K(),_.T("design:type",_.AK)],yY.prototype,"emojiManager",void 0);_.E([_.K(),_.T("design:type",Object)],yY.prototype,"newnessDotEligible",void 0);_.E([_.K(),_.T("design:type",Object)],yY.prototype,"newnessDotImpressionCounted",void 0);
_.E([_.K({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:P0c}),_.T("design:type",Boolean)],yY.prototype,"liveReactionsSetting",void 0);_.E([_.K({selectorArgs:["data.liveReactionsDataEntityKey"],selector:hGW}),_.T("design:type",Object)],yY.prototype,"liveReactionsData",void 0);_.E([_.K({value:function(){var l=_.q("enable_lwe_web_mute"),D=na.get("allow-reactions");return D===void 0?!1:!D&&l}}),
_.T("design:type",Boolean)],yY.prototype,"reactionsMuted",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],yY.prototype,"liveReactionsEnabled",null);_.E([_.Pg("data.emojiCustomizationEnabled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yY.prototype,"emojiCustomizationEnabledChanged",null);
_.E([_.Pg("liveReactionsEnabled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],yY.prototype,"liveReactionsSettingChanged",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],yY);
_.r(yY,"yt-reaction-control-panel-overlay-view-model",function(){if(gGT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;bBw===void 0&&(bBw=document.createElement("template"));var n=bBw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);gGT=l}l=gGT;return l},{mode:0});var LiD={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(l){var D=this.$.pickers.selected;if(D){_.iJ(this.hostElement).removeAttribute(D+"-open");var U="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(U="#picker-buttons",D==="emoji"&&_.iJ(this.hostElement).querySelector("#emoji-picker-button")&&(U="#emoji-picker-button"));if(U=_.iJ(this.hostElement).querySelector(U).querySelector("#"+D))U.active=!1}U=l;D==l&&(U=null);D!=
l&&_.iJ(this.hostElement).setAttribute(l+"-open","");this.$.pickers.selected=U;_.Vh(this.hostElement,"yt-live-chat-picker-changed",[U])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Ab=function(){var l=_.p.apply(this,arguments)||this;l.numSentMessages=0;l.timeoutDurationMs=0;l.timeoutMs=0;l.lastTimeoutTimeMs=0;l.pendingMessageId="";l.hasFiredInitialFocusActions=!1;l.isBeforeFocusEnabled=!0;l.id="";l.characterCount=0;l.maxCharacterLimit=0;l.remainingCharacterCount=0;l.inputExpanded=!1;l.buttonOverrides={iconPosition:"icon-only"};l.inReplyPanel=!1;l.countdownRatio=0;l.isTooltipVisible=!1;l.tooltipTimeout=1E4;l.systemIcons=_.q("kevlar_system_icons");l.tallerEmojiPicker=_.q("live_chat_taller_emoji_picker");
l.sendReplyMessageInFlight=!1;l.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"};l.onResize=function(){l.maybeToggleCharacterCount()};
return l};
_.Z(Ab,_.p);_.W=Ab.prototype;
_.W.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"}}}};
_.W.attached=function(){window.addEventListener("resize",this.onResize)};
_.W.detached=function(){window.removeEventListener("resize",this.onResize)};
_.W.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.W.sendMessage=function(){var l=this,D,U,n,y;return _.P(function(A){if(l.sendDisabled)return A.return();l.isTooltipVisible&&_.Vh(l.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(l.data.sendButton&&l.data.sendButton.buttonRenderer){l.input.completeEmojis();D=l.data.sendButton.buttonRenderer.serviceEndpoint;if(!D)return A.return();n=((U=_.M(D,_.Lzr))==null?void 0:U.clientIdPrefix)||"";y={client_message_id:n+String(l.numSentMessages++),rich_message:_.cK(l.input.liveChatRichMessageInput)};
l.pendingMessageId=y.client_message_id;l.inReplyPanel&&(l.sendReplyMessageInFlight=!0);_.lu(l.hostElement,[D,y]);l.input.setLiveChatRichMessageInput(null)}_.Kz(A)})};
_.W.handleSendButtonAction=function(l){l.detail.actionName==="yt-service-request"&&(l.stopPropagation(),this.sendMessage())};
_.W.onSendCompleted=function(l,D){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(l=this.get("timeoutDurationUsec",D.data))&&this.handleTimeout(Number(l)/1E3);this.errorMessage=this.get("errorMessage",D.data);this.pendingMessageId=""};
_.W.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Vh(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.W.handlePickerButtonToggle=function(l){l=l.detail.targetId;this.ytPickerBehavior.togglePicker_(l);if(l==="emoji")this.input.focus();else if(l==="qna-start-panel"){var D,U;(D=_.iJ(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(U=D.querySelector("#qna-creator-text-input-field"))==null||U.focus()}};
_.W.onComponentReplaced=function(l){var D,U;l.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((D=l.replacement.liveChatMessageInputRenderer)==null?0:(U=D.headerRenderer)==null?0:U.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.W.onEmojiSelect=function(l){this.input.focus();this.input.insertEmoji(l.detail)};
_.W.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.W.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Vh(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Vh(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.W.onOpenPopupAction=function(l,D){var U=this;D===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Vh(U.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.W.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.W.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.W.focusChanged=function(){this.maybeToggleCharacterCount()};
_.W.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var l=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",l>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.W.computeId=function(){return this.data&&this.data.targetId||""};
_.W.computeSendDisabled=function(l,D,U,n){l=!!(!l||D&&l>D||n);(D=_.iJ(this.hostElement).querySelector("#send-button"))&&D.children.length&&(D.children[0].disabled=l);return l};
_.W.handleTimeout=function(l){this.timeoutDurationMs=this.timeoutMs=l;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.W.updateTimeout=function(l){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(l-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=l,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.W.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.W.onErrorMessageEdit=function(l){this.input.setLiveChatRichMessageInput(l.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.W.errorMessageChanged=function(){var l=this;_.j0(function(){_.Vh(l.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.W.computeAuthorNameColor=function(l){var D;if(_.q("live_chat_author_name_color_usernames")&&(l==null?0:(D=l.authorName)==null?0:D.simpleText))return _.QKG(_.GGG(l.authorName.simpleText));if(_.q("live_chat_seed_color_usernames")&&(l==null?0:l.authorSeedColorArgb))return _.QKG(_.lm(l.authorSeedColorArgb));if(_.q("live_chat_colored_usernames"))return"#cc0000";var U;return _.q("live_chat_simple_color_usernames")&&(l==null?0:(U=l.authorName)==null?0:U.simpleText)&&(l==null?0:l.authorUsernameColorLight)&&
(l==null?0:l.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.lm(l.authorUsernameColorDark):_.lm(l.authorUsernameColorLight):""};
_.W.onIsTooltipVisibleChanged=function(){var l=_.iJ(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){l.hidden=!1;l.setAttribute("role","alert")},0):(l.hidden=!0,l.removeAttribute("role"))};
_.W.onFocusedChanged=function(l){this.inputFocused=l.detail.value};
_.QP.Object.defineProperties(Ab.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 l;return!((l=this.data)==null||!l.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:(D=l.pickers)==null?void 0:D.find(function(U){return U.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var l=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return l?this.ytRendererBehavior.getSimpleString(l):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Ab.prototype.onIsTooltipVisibleChanged=Ab.prototype.onIsTooltipVisibleChanged;Ab.prototype.errorMessageChanged=Ab.prototype.errorMessageChanged;Ab.prototype.onErrorMessageEdit=Ab.prototype.onErrorMessageEdit;Ab.prototype.onErrorMessageDismiss=Ab.prototype.onErrorMessageDismiss;Ab.prototype.focusChanged=Ab.prototype.focusChanged;Ab.prototype.characterCountChanged=Ab.prototype.characterCountChanged;Ab.prototype.onEmojiSelect=Ab.prototype.onEmojiSelect;Ab.prototype.handlePickerButtonToggle=Ab.prototype.handlePickerButtonToggle;
Ab.prototype.onSendError=Ab.prototype.onSendError;Ab.prototype.onSendCompleted=Ab.prototype.onSendCompleted;Ab.prototype.sendMessage=Ab.prototype.sendMessage;Ab.prototype.dataChanged=Ab.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Ab.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(LiD.YtPickerBehavior),_.T("design:type",Object)],Ab.prototype,"ytPickerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.ia.YtLiveChatTooltipTargetingBehavior),_.T("design:type",Object)],Ab.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"hasFiredInitialFocusActions",void 0);
_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"isBeforeFocusEnabled",void 0);_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"data",void 0);_.E([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.T("design:type",Object)],Ab.prototype,"id",void 0);_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"characterCount",void 0);_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"maxCharacterLimit",void 0);
_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"remainingCharacterCount",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ab.prototype,"inputExpanded",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Ab.prototype,"inputFocused",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],Ab.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.E([_.K(),_.T("design:type",_.ut)],Ab.prototype,"participantsManager",void 0);
_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"buttonOverrides",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ab.prototype,"inReplyPanel",void 0);_.E([_.t("characterCount, maxCharacterLimit, countdownActive"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ab.prototype,"sendDisabled",null);_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"countdownRatio",void 0);
_.E([_.t("countdownRatio"),_.T("design:type",Number),_.T("design:paramtypes",[])],Ab.prototype,"countdownStrokeDashOffset",null);_.E([_.t("countdownRatio"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ab.prototype,"countdownActive",null);_.E([_.t("data.interactionMessage"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ab.prototype,"hasInteractionMessage",null);
_.E([_.t("data.emojiPickerButton"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ab.prototype,"hasEmojiPickerButton",null);_.E([_.t("data, characterCount"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ab.prototype,"showAvatar",null);_.E([_.t("data.pickers"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ab.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"errorMessage",void 0);_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"genericErrorMessage",void 0);_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"isTooltipVisible",void 0);_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"tooltipTimeout",void 0);_.E([_.t("data.onInitialFocusCommand"),_.T("design:type",String),_.T("design:paramtypes",[])],Ab.prototype,"tooltipMessage",null);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ab.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ab.prototype,"tallerEmojiPicker",void 0);_.E([_.t("data"),_.T("design:type",String),_.T("design:paramtypes",[])],Ab.prototype,"authorNameColor",null);_.E([_.K(),_.T("design:type",Object)],Ab.prototype,"sendReplyMessageInFlight",void 0);_.E([_.gP("#input"),_.T("design:type",_.Viv)],Ab.prototype,"input",void 0);
_.E([_.gP("#count"),_.T("design:type",HTMLElement)],Ab.prototype,"count",void 0);_.E([_.gP("#input-container"),_.T("design:type",HTMLElement)],Ab.prototype,"inputContainer",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ab.prototype,"dataChanged",null);_.E([_.hj("yt-live-chat-send-message"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype",Promise)],Ab.prototype,"sendMessage",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[Event,_.z4]),_.T("design:returntype")],Ab.prototype,"onSendCompleted",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ab.prototype,"onSendError",null);
_.E([_.hj("yt-live-chat-icon-toggle-button-renderer-toggle"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Ab.prototype,"handlePickerButtonToggle",null);_.E([_.hj("yt-emoji-select"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Ab.prototype,"onEmojiSelect",null);
_.E([_.Pg("characterCount"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ab.prototype,"characterCountChanged",null);_.E([_.Pg("inputFocused"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ab.prototype,"focusChanged",null);_.E([_.hj("yt-live-chat-error-message-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ab.prototype,"onErrorMessageDismiss",null);
_.E([_.hj("yt-live-chat-error-message-edit"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Ab.prototype,"onErrorMessageEdit",null);_.E([_.Pg("errorMessage"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ab.prototype,"errorMessageChanged",null);_.E([_.Pg("isTooltipVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ab.prototype,"onIsTooltipVisibleChanged",null);
_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Ab);
_.r(Ab,"yt-live-chat-message-input-renderer",function(){if(r3h===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;wGj===void 0&&(wGj=document.createElement("template"));var n=wGj;U.call(D,n.content.cloneNode(!0),l.content.firstChild);r3h=l}l=r3h;return l},{mode:0});var qUw;var M2H;var WD=function(){var l=_.p.apply(this,arguments)||this;l.systemIcons=_.q("kevlar_system_icons");l.firedOnClickCommand=!1;l.inReplyPanel=!1;return l};
_.Z(WD,_.p);
WD.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"}}}};
WD.prototype.onButtonToggle=function(l){l.target.disabled||this.ytPickerBehavior.togglePicker_(l.detail.targetId)};
WD.prototype.onClick=function(){var l=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Vh(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return l.firedOnClickCommand=!1},5E3))};
_.QP.Object.defineProperties(WD.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:(D=l.panels)==null?void 0:D.find(function(U){return U.liveChatProductPickerPanelViewModel}))!==void 0}}});
WD.prototype.onButtonToggle=WD.prototype.onButtonToggle;_.E([_.m(LiD.YtPickerBehavior),_.T("design:type",Object)],WD.prototype,"ytPickerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],WD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],WD.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],WD.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!1}),_.T("design:type",Object)],WD.prototype,"firedOnClickCommand",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],WD.prototype,"inReplyPanel",void 0);_.E([_.t("data.pickers"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],WD.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.hj("yt-live-chat-icon-toggle-button-renderer-toggle"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],WD.prototype,"onButtonToggle",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],WD);
_.r(WD,"yt-live-chat-restricted-participation-renderer",function(){if(M2H===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;qUw===void 0&&(qUw=document.createElement("template"));var n=qUw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);M2H=l}l=M2H;return l},{mode:0});var BD=function(){var l=_.p.apply(this,arguments)||this;l.genericErrorMessage=_.$B("Error, try again.");l.inReplyPanel=!1;l.hideBorder=!1;return l};
_.Z(BD,_.p);BD.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}}}}}};
_.QP.Object.defineProperties(BD,{template:{configurable:!0,enumerable:!0,get:function(){return pGj()}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],BD.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],BD.prototype,"genericErrorMessage",void 0);_.E([_.K(),_.T("design:type",Object)],BD.prototype,"inReplyPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],BD.prototype,"hideBorder",void 0);
_.E([_.S0({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],BD);_.r(BD,"yt-live-chat-engagement-panel-input-renderer",function(){return pGj()},{mode:0});var RtO,ZB1;RtO=_.UE(115994);ZB1=_.UE(115993);_.Ca=function(l,D,U){var n=this;var y=U.dragDownAction;this.layer=0;this.JSC$23014_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.JSC$23014_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.fullscreen=!1;var A=_.he();_.pM(A,RtO,this.layer);_.pM(A,ZB1,this.layer);this.dragDownAction=function(){y();_.xo(A,{visualElement:n.fullscreen?RtO:ZB1})};
this.gesture=new _.oM(l,D,this.getConfig(!1),"pandown");this.attach()};
_.Ca.prototype.attach=function(){this.gesture.attach()};
_.Ca.prototype.detach=function(){this.gesture.detach()};
_.Ca.prototype.update=function(l){this.fullscreen=l;var D=this.gesture;l=this.getConfig(l);D.config=l};
_.Ca.prototype.getConfig=function(l){return l?this.JSC$23014_watchFullScreenConfig:this.JSC$23014_watchConfig};var etC={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(l){if(l&&l.length==1&&Array.isArray(l[0].loggingUrls)){l=_.we.unsafeClone(l[0]);var D=this.macros||{},U=this.getAdModuleClient_();if(!U)return _.Ut();l.loggingUrls.forEach(function(n){if(n.baseUrl){var y=n.baseUrl;var A=D;A=A===void 0?{}:A;y=U.getOptions().includes("replaceUrlMacros")?_.Js_(U,"replaceUrlMacros",{url:y,additionalMapping:A}):y;n.baseUrl=y}},this);
l=[l]}return _.lu(this.hostElement,l)},
getAdModuleClient_:function(){var l=_.T4(this);return l?(l=l.getPlayer())?new _.OR(l):null:null}}]};var maD;var a0W;var hb=function(){return _.p.apply(this,arguments)||this};
_.Z(hb,_.p);hb.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hb.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],hb);
_.r(hb,"ytd-compact-tvfilm-entry-point-renderer",function(){if(a0W!==void 0)return a0W;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return a0W=l},{mode:1});var t2O;var XAI;var SUl;var PD=function(){return _.p.apply(this,arguments)||this};
_.Z(PD,_.p);PD.prototype.ready=function(){this.initializeDefs()};
PD.prototype.initializeDefs=function(){var l=this.meta.byKey("yt-icons"),D=_.iJ(l).querySelector("#star"),U=_.iJ(l).querySelector("#star_half");l=_.iJ(l).querySelector("#star_border");D&&this.defs.appendChild(D.cloneNode(!0));U&&this.defs.appendChild(U.cloneNode(!0));l&&this.defs.appendChild(l.cloneNode(!0))};
PD.prototype.percentChanged=function(){for(var l=this.rating;l.firstChild;)l.removeChild(l.firstChild);var D=Math.round(this.percent/10);l=Math.floor(D/2);D%=2;var U=5-l-D;this.appendStars("star",l,0);this.appendStars("star_half",D,l);this.appendStars("star_border",U,l+D)};
PD.prototype.appendStars=function(l,D,U){for(var n=0;n<D;n++){var y=(18+this.spacing)*(n+U),A=document.createElementNS("http://www.w3.org/2000/svg","use");_.kIP(A,"#"+l);A.setAttribute("x",""+y);A.setAttribute("y","0");this.rating.appendChild(A)}};
PD.prototype.percentChanged=PD.prototype.percentChanged;_.E([_.gP("#defs"),_.T("design:type",HTMLElement)],PD.prototype,"defs",void 0);_.E([_.gP("#rating"),_.T("design:type",HTMLElement)],PD.prototype,"rating",void 0);_.E([_.K(),_.T("design:type",Number)],PD.prototype,"percent",void 0);_.E([_.K({value:6}),_.T("design:type",Number)],PD.prototype,"spacing",void 0);_.E([_.K({value:_.cz.create("iron-meta",{type:"iconset"})}),_.T("design:type",_.wD)],PD.prototype,"meta",void 0);
_.E([_.Pg("percent"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],PD.prototype,"percentChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-ratings"})],PD);
_.r(PD,"ytd-ratings",function(){if(SUl!==void 0)return SUl;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return SUl=l},{mode:1});var kjI=function(){return _.p.apply(this,arguments)||this};
_.Z(kjI,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kjI.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],kjI.prototype,"data",void 0);_.E([_.x({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],kjI);
_.r(kjI,"ytd-offer-review-renderer",function(){if(XAI!==void 0)return XAI;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return XAI=l},{mode:1});var bg=function(){var l=_.p.apply(this,arguments)||this;l.badges=[{textBadge:{label:_.$B("CC")}}];return l};
_.Z(bg,_.p);_.W=bg.prototype;_.W.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.W.dataChanged=function(){var l=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(l&&l.commandMetadata&&_.M(l.commandMetadata,_.zd)&&_.M(l.commandMetadata,_.zd).fireAutomatically)_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}});else{var D;l&&((D=_.M(l,_.zd))==null?0:D.fireAutomatically)&&_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}})}};
_.W.isEmptyContent=function(l){return this.isStorefrontEntryPointEmpty(l)&&this.shouldHideOfferModule(l)};
_.W.isStorefrontEntryPointEmpty=function(l){return!l||!l.storefrontEntryPoint};
_.W.shouldHideOfferModule=function(l){return!!l.hideVideoDetails};
_.W.isOfferModuleNavigationInactive=function(l){return!l.navigationEndpoint&&!l.serviceEndpoint};
_.W.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.Jc().resolve(_.qK).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
bg.prototype.dataChanged=bg.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],bg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],bg.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.T("design:type",Boolean)],bg.prototype,"hidden",void 0);
_.E([_.K(),_.T("design:type",Object)],bg.prototype,"badges",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bg.prototype,"dataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],bg);
_.r(bg,"ytd-movie-offer-module-renderer",function(){if(t2O!==void 0)return t2O;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return t2O=l},{mode:1});var dac;var Ki1=function(){return _.p.apply(this,arguments)||this};
_.Z(Ki1,_.p);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Ki1.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ki1.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Ki1);
_.r(Ki1,"ytd-media-masthead-renderer",function(){if(dac!==void 0)return dac;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return dac=l},{mode:1});var cLg;_.Tt(_.Dsq,"course-metadata-view-model",{props:{data:_.ND,isOverlay:_.ND}});var gW=function(){var l=_.p.apply(this,arguments)||this;l.isMetadataVisible=!1;l.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return l};
_.Z(gW,_.p);_.W=gW.prototype;
_.W.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"}}}}};
_.W.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.W.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.W.expanderChanged=function(){var l;if((l=this.data)==null?0:l.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.W.isExpandButtonToggled=function(){var l,D;return(D=_.M((l=this.data)==null?void 0:l.expandMetadataButton,_.Pq))==null?void 0:D.isToggled};
_.W.onVisibilityButtonClick=function(){var l;if((l=this.data)==null?0:l.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.W.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
gW.prototype.expanderChanged=gW.prototype.expanderChanged;gW.prototype.dataChanged=gW.prototype.dataChanged;gW.prototype.descriptionChanged=gW.prototype.descriptionChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m([_.K$.YtActionHandlerBehavior]),_.T("design:type",Object)],gW.prototype,"actionHandlerBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],gW.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],gW.prototype,"isMetadataVisible",void 0);_.E([_.gP("#expander"),_.T("design:type",Object)],gW.prototype,"expander",void 0);_.E([_.Pg("data.description"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gW.prototype,"descriptionChanged",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gW.prototype,"dataChanged",null);_.E([_.Pg("isMetadataVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gW.prototype,"expanderChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],gW);
_.r(gW,"ytd-tvfilm-offer-module-renderer",function(){if(cLg!==void 0)return cLg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return cLg=l},{mode:2});var pAc;var ug=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return l};
_.Z(ug,_.p);ug.prototype.dataChanged=function(){this.hostElement.hidden=!1};
ug.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
ug.prototype.onThumbnailTap=function(l){this.data&&this.data.serviceEndpoint&&(_.Jc().resolve(_.qK).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),l.stopPropagation())};
ug.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
ug.prototype.dataChanged=ug.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ug.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ug.prototype,"rendererBehaviors",void 0);_.E([_.m([_.K$.YtActionHandlerBehavior]),_.T("design:type",Object)],ug.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ug.prototype,"data",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ug.prototype,"dataChanged",null);_.E([_.x({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],ug);
_.r(ug,"ytd-unlimited-offer-module-renderer",function(){if(pAc!==void 0)return pAc;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return pAc=l},{mode:1});var xak;var jI1;var vD=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return l};
_.Z(vD,_.p);vD.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
vD.prototype.handleRelatedChipCommand=function(l){l=_.M(l,UZl);var D=l.contents;D?_.iu(this.hostElement,"yt-item-section-replace-action",[D,l.targetSectionIdentifier]):_.iu(this.hostElement,"yt-item-section-continuation-action",[l.continuationData,l.targetSectionIdentifier])};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],vD.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vD.prototype,"data",void 0);_.E([_.S0({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],vD);
_.r(vD,"yt-related-chip-cloud-renderer",function(){if(jI1===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;xak===void 0&&(xak=document.createElement("template"));var n=xak;U.call(D,n.content.cloneNode(!0),l.content.firstChild);jI1=l}l=jI1;return l},{mode:2});var QY=function(){var l=_.p.apply(this,arguments)||this;l.isTwoColumns=!0;l.watchFeedBigThumbs=_.q("kevlar_watch_feed_big_thumbs");l.watchFeedBigThumbsOnLockup=_.q("web_watch_next_big_thumbs");l.watchNextGridHideChips=_.q("kevlar_watch_grid_hide_chips");l.eligibleToSwitchToGrid=!0;l.disableShortsShelfHeightOverride=_.q("web_shorts_wn_shelf_ratio_tuning");l.isWatchNextGrid=!1;l.reuseComponents=!_.q("kevlar_watch_grid");l.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return l};
_.Z(QY,_.p);_.W=QY.prototype;
_.W.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.q("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}}};
_.W.getItemsPath=function(){return"data.results"};
_.W.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.W.created=function(){this.ytLazyListBehavior.initialCount=1};
_.W.ready=function(){_.Wg(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.W.resultsChanged=function(){if(this.data&&this.data.results){for(var l=this.data.results,D=null,U=null,n=0;n<l.length;n++)l[n].relatedChipCloudRenderer?D=l[n].relatedChipCloudRenderer:l[n].itemSectionRenderer&&(U=l[n].itemSectionRenderer);if(D&&U)for(this.set("data.continuations",[]),l=_.M(D.content,_.hcv).chips,D=0;D<l.length;D++)if(n=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",l[D]),n.loadCached||!n.contents){n.contents=U.contents;break}}};
_.W.dataChanged=function(){var l=this,D;if((D=this.data)!=null&&D.results&&this.hasAllowedInstreamAd(this.playerData)){if(D=this.data.results.filter(function(h){return!!h.promotedSparklesWebRenderer})){for(var U=0;U<D.length;U++){var n=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",D[U]);
if(n)for(var y=0;y<n.length;y++)n[y]&&n[y].baseUrl&&_.nB(n[y].baseUrl)}this.set("data.results",this.data.results.filter(function(h){return!h.promotedSparklesWebRenderer}))}if(D=this.data.results.filter(function(h){return!!l.getSparklesAd(h)})){D=_.B(D);
for(y=D.next();!y.done;y=D.next())if(n=U=void 0,y=(U=this.getSparklesAd(y.value))==null?void 0:(n=U.errorCommand)==null?void 0:n.loggingUrls)for(U=_.B(y),n=U.next();!n.done;n=U.next())(n=n.value)&&n.baseUrl&&_.nB(n.baseUrl);var A,C;this.set("data.results",(A=this.data)==null?void 0:(C=A.results)==null?void 0:C.filter(function(h){return!h.adSlotRenderer}))}}};
_.W.getSparklesAd=function(l){var D,U;l=_.M((D=l.adSlotRenderer)==null?void 0:(U=D.fulfillmentContent)==null?void 0:U.fulfilledLayout,_.pP_);return _.M(l==null?void 0:l.renderingContent,M_W)};
_.W.hasAllowedInstreamAd=function(l){l=this.get("adPlacements",l)||[];for(var D=0;D<l.length;D++){var U=this.get("adPlacementRenderer.config.adPlacementConfig",l[D]);if(U&&U.suppressDisplayAd)return!0}return!1};
_.W.computeHideUnlimitedOfferModule=function(l,D){return l&&l.offerModule&&D&&l.offerModule.unlimitedOfferModuleRenderer&&l.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(D)?!0:!1};
_.W.hideUnlimitedOfferModuleChanged=function(){var l=_.iJ(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");l&&(l.hidden=this.hideUnlimitedOfferModule)};
_.W.updateLockupContainerTypes=function(l){if(this.eligibleToSwitchToGrid){var D;(D=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||D.forEach(function(U){U.containerType=l})}};
_.W.computeHideTvfilmOfferModule=function(l,D){var U,n;return!!((l==null?0:(U=l.offerModule)==null?0:(n=U.tvfilmOfferModuleRenderer)==null?0:n.clientShouldSuppressIfCompanionAdDisplayed)&&D&&this.hasCompanionAds(D))};
_.W.hideTvfilmOfferModuleChanged=function(){var l=_.iJ(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");l&&(l.hidden=this.hideTvfilmOfferModule)};
_.W.hasCompanionAds=function(l){l=this.get("adPlacements",l)||[];for(var D=0;D<l.length;D++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",l[D]))return!0;var U=void 0,n=void 0,y=void 0;if(!_.q("web_watch_top_banner_companion_check_killswitch")&&((U=l[D])==null?0:(n=U.adPlacementRenderer)==null?0:(y=n.renderer)==null?0:y.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.W.hasSuppressedResults=function(l){return l==null?!0:l.filter(function(D){return!D.continuationItemRenderer&&!D.compactPromotedVideoRenderer&&!D.promotedSparklesWebRenderer}).length===0};
_.W.computeShowButton=function(l,D){return this.isWatchNextGrid?l:l||this.hasSuppressedResults(D)};
_.W.showButtonChanged=function(){if(this.isWatchNextGrid){var l=_.iJ(this.hostElement).querySelector("ytd-rich-grid-renderer");l&&this.showButton!==null&&(l.continuationShowButton=this.showButton)}else{l=_.iJ(this.hostElement).querySelector("yt-next-continuation");var D=_.iJ(this.hostElement).querySelector("ytd-continuation-item-renderer"),U=_.iJ(this.hostElement).querySelector("ytd-item-section-renderer");l&&(l.showButton=this.showButton);D&&(D.showButton=this.showButton);U&&(U.continuationShowButton=
this.showButton)}};
_.W.continuationTap=function(l){var D;if(((D=this.data)==null?void 0:D.continuations)!=null&&l.target.tagName==="TP-YT-PAPER-BUTTON")for(l=this.data.continuations,D=0;D<l.length;D++)l[D].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(l[D].nextContinuationData||{})};
_.W.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("shown-items-changed",this.shownItems))};
_.QP.Object.defineProperties(QY.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.shownItems)==null||!l.some(function(D){return!!D.lockupViewModel||D.compactVideoRenderer}))}}});
QY.prototype.shownItemsChangedForBinding=QY.prototype.shownItemsChangedForBinding;QY.prototype.showButtonChanged=QY.prototype.showButtonChanged;QY.prototype.hideTvfilmOfferModuleChanged=QY.prototype.hideTvfilmOfferModuleChanged;QY.prototype.updateLockupContainerTypes=QY.prototype.updateLockupContainerTypes;QY.prototype.hideUnlimitedOfferModuleChanged=QY.prototype.hideUnlimitedOfferModuleChanged;QY.prototype.dataChanged=QY.prototype.dataChanged;QY.prototype.resultsChanged=QY.prototype.resultsChanged;
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],QY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Mn.YtLazyListBehavior),_.T("design:type",Object)],QY.prototype,"ytLazyListBehavior",void 0);_.E([_.m(_.Qa.YtNextContinuationBehavior),_.T("design:type",Object)],QY.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.m(_.vf),_.T("design:type",Object)],QY.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],QY.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],QY.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],QY.prototype,"playerData",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],QY.prototype,"autoFill",void 0);_.E([_.K({value:60}),_.T("design:type",Number)],QY.prototype,"targetFramerate",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],QY.prototype,"isTwoColumns",void 0);_.E([_.K(),_.T("design:type",Object)],QY.prototype,"shownItems",void 0);_.E([_.K({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.T("design:type",Boolean)],QY.prototype,"hideUnlimitedOfferModule",void 0);_.E([_.K({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.T("design:type",Boolean)],QY.prototype,"hideTvfilmOfferModule",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],QY.prototype,"watchFeedBigThumbs",void 0);_.E([_.K(),_.T("design:type",Object)],QY.prototype,"watchFeedBigThumbsOnLockup",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],QY.prototype,"watchNextGridHideChips",void 0);_.E([_.K(),_.T("design:type",Object)],QY.prototype,"eligibleToSwitchToGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],QY.prototype,"disableShortsShelfHeightOverride",void 0);
_.E([_.K({selector:_.XE,reflectToAttribute:!0}),_.T("design:type",Object)],QY.prototype,"isGridViewEnabled",void 0);_.E([_.K({selector:_.lH$,reflectToAttribute:!0}),_.T("design:type",Object)],QY.prototype,"isSwatcherooActive",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],QY.prototype,"showMoreButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],QY.prototype,"isWatchNextGrid",void 0);
_.E([_.K({computed:"computeShowButton(showMoreButton, data.results)"}),_.T("design:type",Boolean)],QY.prototype,"showButton",void 0);_.E([_.GY("data.results.*"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QY.prototype,"resultsChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QY.prototype,"dataChanged",null);
_.E([_.Pg("hideUnlimitedOfferModule"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QY.prototype,"hideUnlimitedOfferModuleChanged",null);_.E([_.t("isGridViewEnabled","containsLockups","data"),_.K({reflectToAttribute:!0}),_.T("design:type",Number),_.T("design:paramtypes",[])],QY.prototype,"lockupContainerType",null);
_.E([_.Pg("lockupContainerType","data"),_.T("design:type",Function),_.T("design:paramtypes",[Number]),_.T("design:returntype")],QY.prototype,"updateLockupContainerTypes",null);_.E([_.Pg("hideTvfilmOfferModule"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QY.prototype,"hideTvfilmOfferModuleChanged",null);_.E([_.Pg("showButton"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QY.prototype,"showButtonChanged",null);
_.E([_.Pg("shownItems"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QY.prototype,"shownItemsChangedForBinding",null);_.E([_.t("shownItems"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],QY.prototype,"containsLockups",null);
_.r(QY,"ytd-watch-next-secondary-results-renderer",function(){if(maD===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);maD=l}l=maD;return l},{mode:1});var Fi1;var GE=function(){var l=_.p.apply(this,arguments)||this;l.isCollapsed=!1;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return l};
_.Z(GE,_.p);_.W=GE.prototype;_.W.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.W.onDonateTap=function(){var l=this.get("data.donateButton.buttonRenderer.command");if(l){var D=_.t6(),U=this.get("data.donateButton.buttonRenderer.trackingParams");D&&U&&_.zo(D,_.v9(U));this.ytOpenPopupBehavior.openPopup(l)}};
_.W.onShowMore=function(){this.isCollapsed=!1;var l=_.t6(),D=this.get("data.expandButton.buttonRenderer.trackingParams");l&&D&&_.zo(l,_.v9(D))};
_.W.onShowLess=function(){this.isCollapsed=!0};
_.W.dataChanged=function(){_.Wg(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.W.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.W.handleUpdate=function(l){if(l=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",l))this.set("data.startLabel",l.startLabel),this.set("data.endLabel",l.endLabel),this.set("data.progress",l.progress),this.set("data.amountRaisedLabel",l.amountRaisedLabel),this.dataChanged()};
_.W.handleOpenPopupAction=function(l){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",l)&&_.Vh(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.W.computeHeaderBackgroundUrl=function(l,D){if(l)return D?l.headerBackgroundDarkUrl:l.headerBackgroundUrl};
_.W.isProgressBarVisible=function(l){return!(!l||l.progress===void 0)};
_.W.headerBackgroundClass=function(){return _.H3("HTML_DIR")==="rtl"?"flip":""};
GE.prototype.dataChanged=GE.prototype.dataChanged;_.E([_.m(_.kk.YtOpenPopupBehavior),_.T("design:type",Object)],GE.prototype,"ytOpenPopupBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],GE.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],GE.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],GE.prototype,"isCollapsed",void 0);_.E([_.K({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.T("design:type",String)],GE.prototype,"headerBackgroundUrl",void 0);_.E([_.K(),_.T("design:type",Boolean)],GE.prototype,"isDarkTheme",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],GE.prototype,"dataChanged",null);
_.E([_.x({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],GE);
_.r(GE,"ytd-donation-shelf-renderer",function(){if(Fi1!==void 0)return Fi1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Fi1=l},{mode:1});var oGW;var wAg=function(){return _.p.apply(this,arguments)||this};
_.Z(wAg,_.p);_.E([_.K(),_.T("design:type",Object)],wAg.prototype,"data",void 0);_.E([_.x({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],wAg);
_.r(wAg,"ytd-donation-unavailable-renderer",function(){if(oGW!==void 0)return oGW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return oGW=l},{mode:1});var rLW;var Jb=function(){return _.p.apply(this,arguments)||this};
_.Z(Jb,_.p);Jb.prototype.computeIconType=function(l){return l?"yt-icons:"+l.toLowerCase():null};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Jb.prototype,"data",void 0);_.E([_.x({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Jb);
_.r(Jb,"ytd-limited-state-message-renderer",function(){if(rLW!==void 0)return rLW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return rLW=l},{mode:1});var ztw;var La=function(){return _.p.apply(this,arguments)||this};
_.Z(La,_.p);La.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
La.prototype.onTap=function(l){var D=this.data&&this.data.endpoint;D&&!_.$o(_.$f(l),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.O9(this.hostElement,"yt-navigate",{endpoint:D})};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],La.prototype,"data",void 0);_.E([_.x({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],La);
_.r(La,"ytd-autotagging-metadata-renderer",function(){if(ztw!==void 0)return ztw;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ztw=l},{mode:1});var f0I;var q0=function(){return _.p.apply(this,arguments)||this};
_.Z(q0,_.p);q0.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],q0.prototype,"data",void 0);_.E([_.x({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],q0);
_.r(q0,"ytd-autotagging-metadata-row-renderer",function(){if(f0I!==void 0)return f0I;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return f0I=l},{mode:1});var $aT;var N$W;var M0=function(){var l=_.p.apply(this,arguments)||this;l.engagementPanelContent=!1;return l};
_.Z(M0,_.p);M0.prototype.computeHasDividerLine=function(l,D){return l&&!D};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],M0.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.T("design:type",Boolean)],M0.prototype,"hasDividerLine",void 0);_.E([_.K(),_.T("design:type",Object)],M0.prototype,"engagementPanelContent",void 0);
_.E([_.x({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],M0);
_.r(M0,"ytd-metadata-row-header-renderer",function(){if(N$W!==void 0)return N$W;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return N$W=l},{mode:1});var sII;var RU=function(){return _.p.apply(this,arguments)||this};
_.Z(RU,_.p);RU.prototype.computeHasDividerLine=function(l){return l};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],RU.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.T("design:type",Boolean)],RU.prototype,"hasDividerLine",void 0);_.E([_.x({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],RU);
_.r(RU,"ytd-metadata-row-renderer",function(){if(sII!==void 0)return sII;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return sII=l},{mode:1});var EGl;var T$q=function(){return _.p.apply(this,arguments)||this};
_.Z(T$q,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],T$q.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],T$q.prototype,"data",void 0);_.E([_.x({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],T$q);
_.r(T$q,"ytd-metadata-with-image-row-renderer",function(){if(EGl!==void 0)return EGl;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return EGl=l},{mode:1});var I0D;var Z3=function(){var l=_.p.apply(this,arguments)||this;l.rounded=!0;l.fixie=!1;l.fullWidth=!1;return l};
_.Z(Z3,_.p);_.W=Z3.prototype;_.W.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.onDataChanged=function(){var l=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(D){l.onEndpointLinkKeyPress(D)}))};
_.W.onEndpointLinkKeyPress=function(l){l.target===this.endpointLink&&l.keyCode===13&&_.O9(this.hostElement,"click")};
_.W.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var l;if((l=this.data)==null?0:l.endpoint)_.DP(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.W.onYtNavigate=function(l){this.endpointHref||(l.stopPropagation(),l.preventDefault())};
_.W.onInformationButtonContainerClick=function(l){l.target.id!=="information-button-container"&&(l.stopPropagation(),l.preventDefault())};
_.W.computeStyle=function(l){return l};
_.W.computeIsThumbnailStyle=function(l){return l==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.W.computeThumbnailWidth=function(l){switch(l){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}};
_.W.computeThumbnailObjectFit=function(l){switch(l){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.QP.Object.defineProperties(Z3.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?0:l.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Z3.prototype.onYtNavigate=Z3.prototype.onYtNavigate;Z3.prototype.onClick=Z3.prototype.onClick;Z3.prototype.onDataChanged=Z3.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Z3.prototype,"componentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Z3.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],Z3.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.T("design:type",String)],Z3.prototype,"componentStyle",void 0);_.E([_.K({computed:"computeIsThumbnailStyle(data.style)"}),_.T("design:type",Boolean)],Z3.prototype,"isThumbnailStyle",void 0);_.E([_.K({computed:"computeThumbnailObjectFit(data.style)"}),_.T("design:type",String)],Z3.prototype,"thumbnailObjectFit",void 0);
_.E([_.K({computed:"computeThumbnailWidth(data.style)"}),_.T("design:type",Number)],Z3.prototype,"thumbnailWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Z3.prototype,"rounded",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Z3.prototype,"fixie",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Z3.prototype,"fullWidth",void 0);_.E([_.gP("#endpoint-link"),_.T("design:type",HTMLAnchorElement)],Z3.prototype,"endpointLink",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Z3.prototype,"onDataChanged",null);_.E([_.t("data.endpoint"),_.T("design:type",Object),_.T("design:paramtypes",[])],Z3.prototype,"endpointHref",null);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],Z3.prototype,"onClick",null);
_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Z3.prototype,"onYtNavigate",null);_.E([_.x({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Z3);
_.r(Z3,"ytd-rich-metadata-renderer",function(){if(I0D!==void 0)return I0D;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return I0D=l},{mode:_.Vj("kevlar_poly_si_batch_j075")?1:2});var HBW;var eC=function(){var l=_.p.apply(this,arguments)||this;l.fixie=!1;l.fullWidth=!1;return l};
_.Z(eC,_.p);eC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
eC.prototype.computeHasDividerLine=function(l){return l};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],eC.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.T("design:type",Boolean)],eC.prototype,"hasDividerLine",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eC.prototype,"fixie",void 0);_.E([_.K(),_.T("design:type",Object)],eC.prototype,"fullWidth",void 0);
_.E([_.x({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],eC);
_.r(eC,"ytd-rich-metadata-row-renderer",function(){if(HBW!==void 0)return HBW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return HBW=l},{mode:1});var mj=function(){var l=_.p.apply(this,arguments)||this;l.engagementPanelContent=!1;l.fixie=!1;l.fullWidth=!1;return l};
_.Z(mj,_.p);
mj.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"}}}};
mj.prototype.computeCollapsibleItems=function(l,D,U){return l===void 0||D===void 0||U===void 0||U?[]:l.slice(D)};
mj.prototype.computeAlwaysShownItems=function(l,D){return l&&l.length?l.slice(0,D):[]};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],mj.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],mj.prototype,"collapsed",void 0);
_.E([_.K({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.T("design:type",Array)],mj.prototype,"alwaysShownItems",void 0);_.E([_.K({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.T("design:type",Array)],mj.prototype,"collapsibleItems",void 0);_.E([_.K(),_.T("design:type",Object)],mj.prototype,"engagementPanelContent",void 0);_.E([_.K(),_.T("design:type",Object)],mj.prototype,"fixie",void 0);
_.E([_.K(),_.T("design:type",Object)],mj.prototype,"fullWidth",void 0);_.E([_.x({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],mj);
_.r(mj,"ytd-metadata-row-container-renderer",function(){if($aT!==void 0)return $aT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return $aT=l},{mode:1});var YU1;var aU=function(){var l=_.p.apply(this,arguments)||this;l.currentPageUrl="";l.baseUrl="";l.isHiddenByUser=null;l.hidden=!1;l.showAboveScrim=!1;l.watchNextGrid=_.q("kevlar_watch_grid");l.modernButtons=_.q("web_modern_buttons");l.roundedContainer=!0;l.noBorder=!1;l.roundBackground=!_.q("live_chat_round_background_killswitch");l.overflowHideChat=_.q("live_chat_overflow_hide_chat");l.forceDarkTheme=!1;l.theaterWatchWhile=!1;l.isListeningForPlayerProgress=!1;l.JSC$23085_playerEvents=new Map;l.isFrameReady=
!1;l.player=null;l.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 l};
_.Z(aU,_.p);_.W=aU.prototype;_.W.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.iu(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.W.created=function(){var l=this;this.handleIframeEventListener=function(D){l.handleIframeEvent(D)};
this.handleKeyboardEventListener=function(D){l.handleKeyboardEvent(D)};
this.JSC$23085_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23085_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23085_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23085_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23085_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.W.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()};
_.W.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};
_.W.computeBaseUrl=function(l){var D="/live_chat";this.isChatReplay()&&(D="/live_chat_replay");return _.h8(_.CL(_.Bp(_.Dp(l),D),null),"").toString()};
_.W.dataChanged=function(){_.q("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.W.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var l=this.url;if(this.isChatReplay()&&this.player){var D=Math.floor(this.player.getProgressState().current*1E3);l=_.ny(_.Dp(l),"playerOffsetMs",D.toString()).toString()}D=this.chatframe;try{var U=l==="about:blank"?_.sl1:_.Ng(l),n=D.contentDocument.location,y=_.Tq(U);y!==void 0&&n.replace(y)}catch(A){D.src=l}}};
_.W.collapsedChanged=function(){_.O9(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.W.handleIframeEvent=function(l){if(l&&this.baseUrl.startsWith(l.origin)&&l.source===this.chatframe.contentWindow&&_.I_(l.data))if(l.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(l);else if(l.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(l.data["yt-show-feedback-dialog"]){var D=_.Jc().resolve(_.G8(_.oC8));if(D){var U=l.ports,n;U&&U.length&&(n=function(){U[0].postMessage({})});
l=l.data["yt-show-feedback-dialog"];D.showFeedbackDialog(l.customProductData,l.feedbackContent,n,l.bucket)}}else if(l.data["yt-show-survey"])_.O9(this.hostElement,"yt-show-survey",l.data["yt-show-survey"]);else if(l.data["yt-purchase-membership"])_.Jc().resolve(_.qK).resolveCommand(l.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(l.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(l.data["yt-tunnel-out-live-service-request"]);else if(l.data["yt-user-activity"])_.QX();
else if(l.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(l.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(l.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(l.data["yt-open-popup"]);else if(l.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(l.data["yt-log-flow-logging-event-command"]);else if(l.data["yt-hide-live-chat"])this.onShowHideChat();else l.data["yt-report-moderation-state-log"]&&
this.player&&(D={cpn:this.player.getVideoData().cpn},_.Na("liveChatBeingModerated",D))};
_.W.attachLiveChatResponseVeTrackingParams=function(l){l=_.v9(l);var D=_.t6(),U=_.UG("liveChatRenderer.trackingParams",this.data);D&&U&&_.jz(D,_.v9(U),l)};
_.W.handleBuyflowMessages=function(l){var D=l.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,U=l.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,n=l.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.zbl(_.sr(_.fU),D.replace(/-/g,"+").replace(/_/g,"/"),function(y){l.ports[0].postMessage({success:!0,buyFlowResponse:y})},void 0,function(y){l.ports[0].postMessage({success:!1,
error:y&&y.message||"Buyflow rejected without error."})},_.bu().get("hl"),void 0,function(){l.ports[0].postMessage({closed:!0})},U,n)};
_.W.setupPlayerProgressRelay=function(){var l=this;if(!this.isListeningForPlayerProgress){var D=_.IL();D!=null&&D.getPlayerPromise&&(D.getPlayerPromise().then(function(U){l.playerApiReady(U)}),this.isListeningForPlayerProgress=!0)}};
_.W.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.W.playerApiReady=function(l){this.setPlayer(l)};
_.W.playerProgressHandler=function(){if(this.player){var l=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":l.current})}};
_.W.playerAdStartHandler=function(l){this.postToContentWindow({"yt-player-ad-start":l})};
_.W.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.W.playerStateChangeHandler=function(l){this.postToContentWindow({"yt-player-state-change":l})};
_.W.setPlayer=function(l){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23085_playerEvents);l&&(this.player=l,this.ytPlayerListenerBehavior.listenToPlayerEvents(l,this.JSC$23085_playerEvents),_.O9(this.hostElement,"player-api-ready"))};
_.W.liveChatPageUrl=function(l,D,U,n){return!U||D?"about:blank":U.liveChatRenderer?(D=_.Dp(this.currentPageUrl).JSC$10113_queryData_,btH(D),l=_.Dp(l),D.add("continuation",U.liveChatRenderer.continuations[0].reloadContinuationData.continuation),U=_.pU()==="USER_INTERFACE_THEME_DARK",(n||U)&&D.add("dark_theme","true"),_.CL(l,D),n=_.Dp(l.toString()),U=n.JSC$10113_queryData_,"SESSION_INDEX"in _.TZ&&(U.add("authuser",_.H3("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.TZ&&U.add("pageId",_.H3("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.TZ&&U.add("sdc",_.H3("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),n.toString()):""};
_.W.isCollapsed=function(l,D){return D!==null?D:this.isChatReplay()||l&&l.conversationBarRenderer&&l.conversationBarRenderer.availabilityMessage?!0:l?l.liveChatRenderer?l.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.q("live_chat_hide_premiere_replay_message")||l.conversationBarRenderer&&l.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.W.isHidden=function(l,D,U){var n=D&&D.conversationBarRenderer&&D.conversationBarRenderer.availabilityMessage,y=D&&D.liveChatRenderer&&D.liveChatRenderer.showHideButton,A=D&&D.liveChatRenderer&&D.liveChatRenderer.showButton;return U&&l&&!n&&!A||!U&&l&&!n&&!y?!0:D&&D.liveChatRenderer&&D.liveChatRenderer.initialDisplayState?D.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.W.computeButtonOverride=function(l,D){if(l&&D)return{type:"outline"}};
_.W.setCollapsedState=function(l){_.M(l,_.x$5)&&((this.isHiddenByUser=!!_.M(l,_.x$5).collapsed)||_.Vh(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.W.forwardReduxActionToIframe=function(l){this.postToContentWindow({"yt-live-chat-forward-redux-action":l})};
_.W.onLoopRangeChange=function(l){this.showAboveScrim=!(l==null||!l.postId)};
_.W.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.W.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.W.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.W.sendDarkThemePostMessage=function(l){this.postToContentWindow({"yt-live-chat-set-dark-theme":l})};
_.W.onLiveChatBuyFlowCallback=function(l){this.postToContentWindow({"yt-live-chat-buy-flow-callback":l})};
_.W.handleKeyboardEvent=function(l){(0,_.we.containsValue)(vHq,l.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:l.type,keyCode:l.keyCode}})};
_.W.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.W.postToContentWindow=function(l){if(this.isFrameReady)try{var D=window.location.protocol+"//"+window.location.host,U;(U=this.chatframe)!=null&&U.contentWindow?this.chatframe.contentWindow.postMessage(l,D):_.II(new _.rc("Tried posting a message to an iframe with no content window",l))}catch(n){_.EU(n)}};
_.W.shouldHideChatFrame=function(l){return l&&_.q("hide_live_chat_button_when_collapsed")};
_.QP.Object.defineProperties(aU.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.q("live_chat_overflow_hide_chat")||_.q("web_watch_chat_hide_button_killswitch"))return _.q("live_chat_overflow_hide_chat");var l,D,U,n;return!!((l=this.data)==null?0:(D=l.liveChatRenderer)==null?0:(U=D.header)==null?0:(n=U.liveChatHeaderRenderer)==null?0:n.collapseButton)}}});
aU.prototype.collapsedChanged=aU.prototype.collapsedChanged;aU.prototype.urlChanged=aU.prototype.urlChanged;aU.prototype.dataChanged=aU.prototype.dataChanged;aU.prototype.onShowHideChat=aU.prototype.onShowHideChat;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],aU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],aU.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],aU.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.m(_.kk.YtOpenPopupBehavior),_.T("design:type",Object)],aU.prototype,"ytOpenPopupBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],aU.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],aU.prototype,"currentPageUrl",void 0);
_.E([_.K({computed:"computeBaseUrl(currentPageUrl,data)"}),_.T("design:type",Object)],aU.prototype,"baseUrl",void 0);_.E([_.K({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.T("design:type",String)],aU.prototype,"url",void 0);_.E([_.K(),_.T("design:type",Object)],aU.prototype,"isHiddenByUser",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.T("design:type",Object)],aU.prototype,"hidden",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.T("design:type",Boolean)],aU.prototype,"collapsed",void 0);_.E([_.K({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.T("design:type",Boolean)],aU.prototype,"hideChatFrame",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aU.prototype,"showAboveScrim",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aU.prototype,"watchNextGrid",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aU.prototype,"modernButtons",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aU.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aU.prototype,"noBorder",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aU.prototype,"roundBackground",void 0);
_.E([_.K({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.T("design:type",Object)],aU.prototype,"toggleButtonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aU.prototype,"overflowHideChat",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aU.prototype,"forceDarkTheme",void 0);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],aU.prototype,"enableShowWithoutHideChatButton",null);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aU.prototype,"theaterWatchWhile",void 0);_.E([_.gP("#chatframe"),_.T("design:type",HTMLIFrameElement)],aU.prototype,"chatframe",void 0);_.E([_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aU.prototype,"onShowHideChat",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aU.prototype,"dataChanged",null);
_.E([_.Pg("url"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aU.prototype,"urlChanged",null);_.E([_.Pg("collapsed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aU.prototype,"collapsedChanged",null);_.E([_.x({is:"ytd-live-chat-frame",disableElementRegistration:!0})],aU);
_.r(aU,"ytd-live-chat-frame",function(){if(YU1!==void 0)return YU1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return YU1=l},{mode:1});var OBI;var tb=function(){var l=_.p.apply(this,arguments)||this;l.modern=_.q("web_modern_buttons");l.buttonOverrides={style:"call-to-action",type:"filled"};return l};
_.Z(tb,_.p);tb.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=_.an(this.data.backgroundColor)))};
tb.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var l=this.getFormattedStringLoggingDirectives(this.data.headline);l&&this.rendererBehavior.logExplicitClick(l)}};
tb.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var l=this.getFormattedStringLoggingDirectives(this.data.description);l&&this.rendererBehavior.logExplicitClick(l)}};
tb.prototype.getFormattedStringLoggingDirectives=function(l){return l&&l.runs&&l.runs.length>0&&l.runs[0]&&l.runs[0].loggingDirectives?l.runs[0].loggingDirectives:null};
tb.prototype.dataChanged=tb.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],tb.prototype,"rendererBehavior",void 0);_.E([_.m(etC.YtMacroReplacementBehavior),_.T("design:type",Object)],tb.prototype,"macroReplacementBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],tb.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],tb.prototype,"navigationEndpoint",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],tb.prototype,"enableColors",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tb.prototype,"modern",void 0);_.E([_.K(),_.T("design:type",Object)],tb.prototype,"buttonOverrides",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tb.prototype,"dataChanged",null);_.E([_.x({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],tb);
_.r(tb,"ytd-action-basic-immersive-content-renderer",function(){if(OBI!==void 0)return OBI;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return OBI=l},{mode:1});var V2w;var iAW;var XU=function(){return _.p.apply(this,arguments)||this};
_.Z(XU,_.p);XU.prototype.dataChanged=function(){var l;((l=this.data)==null?void 0:l.backgroundColor)!==void 0&&_.Wg(this.hostElement,{"--bgu-color":_.an(this.data.backgroundColor)})};
XU.prototype.onImageTileClick=function(){var l;((l=this.data)==null?0:l.navigationEndpoint)&&_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var D;((D=this.data)==null?0:D.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.QP.Object.defineProperties(XU.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var l;if(((l=this.data)==null?void 0:l.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 l;return((l=this.data)==null?void 0:l.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var l,D,U;if(((l=this.data)==null?void 0:(D=l.detailsLine)==null?void 0:D.texts)!=null&&((U=this.data)==null?void 0:U.detailsLine.texts.length)>0){var n;return(n=this.data)==null?void 0:n.detailsLine.texts.map(function(y){return y.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var l,D,U;if(((l=this.data)==null?void 0:(D=l.optionalDetailsLine)==null?void 0:D.texts)!=null&&((U=this.data)==null?void 0:U.optionalDetailsLine.texts.length)>0){var n;return(n=this.data)==null?void 0:n.optionalDetailsLine.texts.map(function(y){return y.text}).join("")}return null}}});
XU.prototype.dataChanged=XU.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],XU.prototype,"rendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],XU.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],XU.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.backgroundColor"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],XU.prototype,"hasBackgroundColor",null);
_.E([_.t("data.objectFit"),_.T("design:type",Object),_.T("design:paramtypes",[])],XU.prototype,"getObjectFit",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.tileRenderingStyle"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],XU.prototype,"hasTileMetadata",null);_.E([_.t("data.detailsLine"),_.T("design:type",Object),_.T("design:paramtypes",[])],XU.prototype,"getSecondaryDetails",null);
_.E([_.t("data.optionalDetailsLine"),_.T("design:type",Object),_.T("design:paramtypes",[])],XU.prototype,"getOptionalDetails",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],XU.prototype,"dataChanged",null);_.E([_.x({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],XU);
_.r(XU,"ytd-image-tile-renderer",function(){if(iAW!==void 0)return iAW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return iAW=l},{mode:1});var lmD;var SC=function(){return _.p.apply(this,arguments)||this};
_.Z(SC,_.p);SC.prototype.getOpenLinkIcon=function(){return _.q("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
SC.prototype.onSitelinkTap=function(){_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.q("kevlar_command_handler_migration_killswitch"))_.DP(this.hostElement,this.data.clickCommands,this.hostElement);else for(var l=_.B(this.data.clickCommands),D=l.next();!D.done;D=l.next())this.ytComponentBehavior.resolveCommand(D.value)};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],SC.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],SC.prototype,"rendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],SC.prototype,"data",void 0);_.E([_.x({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],SC);
_.r(SC,"ytd-sitelink-renderer",function(){if(lmD!==void 0)return lmD;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return lmD=l},{mode:1});var ky=function(){var l=_.p.apply(this,arguments)||this;l.paddingFix=_.q("enable_ads_web_ep_buenos_aires_and_padding_fix");return l};
_.Z(ky,_.p);ky.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"}}}};
ky.prototype.dataChanged=function(){var l=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(D){D.clickTrackingParams&&delete D.clickTrackingParams;l.ytMacroReplacementBehavior.sendServiceRequestAction([D])})};
ky.prototype.shouldHideFooter=function(l){return!(l&&_.q("use_ads_engagement_panel_desktop_footer_cta"))};
_.QP.Object.defineProperties(ky.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:l.imageTileRenderers)===void 0||((D=this.data)==null?void 0:D.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(U){var n;return(n=_.M(U,qGD))==null?void 0:n.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:l.imageTileRenderers)===void 0||((D=this.data)==null?void 0:D.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(U){var n;return((n=_.M(U,qGD))==null?void 0:n.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
ky.prototype.dataChanged=ky.prototype.dataChanged;_.E([_.m(etC.YtMacroReplacementBehavior),_.T("design:type",Object)],ky.prototype,"ytMacroReplacementBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ky.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ky.prototype,"paddingFix",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.imageTileRenderers"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ky.prototype,"removeBorderFromImageTiles",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.imageTileRenderers"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ky.prototype,"useFooteredMetadataRenderingStyle",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ky.prototype,"dataChanged",null);_.E([_.x({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],ky);
_.r(ky,"ytd-action-engagement-panel-content-renderer",function(){if(V2w!==void 0)return V2w;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return V2w=l},{mode:1});var DMT;var UMW=_.w(function(l){var D=l.data;var U=l.customCommandResolver;return _.g("ad-grid-card-image-full-metadata-view-model",{class:function(){var n;return((n=D().interaction)==null?0:n.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.fe(_.JH({visibilityCallback:function(n){var y,A=(y=D().interaction)==null?void 0:y.onFirstVisible;n&&A&&_.dh(A)},
showOption:_.mK}),_.dN(function(){return D().interaction},U)),
"aria-label":function(){var n,y;return(n=D().interaction)==null?void 0:(y=n.accessibility)==null?void 0:y.label}},_.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.g(_.uI,{data:function(){return D().adImage}},{adImageViewModel:function(n){return _.g(_.Nk,{data:n.data,
customCommandResolver:U})}})),_.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.g(_.v,{cond:function(){return D().headline},
then:function(n){return _.g(_.BO,{text:n,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.g(_.v,{cond:function(){return D().detailsLine},
then:function(n){return _.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.g(_.uI,{data:n},{adDetailsLineViewModel:function(y){return _.g(_.cw,{data:y.data,customCommandResolver:U,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.g(_.v,{cond:function(){return D().secondaryDetailsLine},
then:function(n){return _.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.g(_.uI,{data:n},{adDetailsLineViewModel:function(y){return _.g(_.cw,{data:y.data,customCommandResolver:U,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Fn");var nYl=_.w(function(l){var D=l.data;var U=l.customCommandResolver;return _.g("ad-grid-card-image-view-model",{class:function(){var n;return((n=D().interaction)==null?0:n.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.fe(_.JH({visibilityCallback:function(n){var y,A=(y=D().interaction)==null?void 0:y.onFirstVisible;n&&A&&_.dh(A)},
showOption:_.mK}),_.dN(function(){return D().interaction},U)),
"aria-label":function(){var n,y;return(n=D().interaction)==null?void 0:(y=n.accessibility)==null?void 0:y.label}},_.g(_.uI,{data:function(){return D().adImage}},{adImageViewModel:function(n){return _.g(_.Nk,{data:n.data,
customCommandResolver:U})}}),_.g("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.g(_.uI,{data:function(){return D().adCardBadge}},{adCardBadgeViewModel:_.s9g})))},"Gn");var yHT=_.w(function(l){var D=l.data;var U=l.customCommandResolver;return _.g("ad-grid-card-text-view-model",{class:function(){var n;return((n=D().interaction)==null?0:n.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.fe(_.JH({visibilityCallback:function(n){var y,A=(y=D().interaction)==null?void 0:y.onFirstVisible;n&&A&&_.dh(A)},
showOption:_.mK}),_.dN(function(){return D().interaction},U)),
"aria-label":function(){var n,y;return(n=D().interaction)==null?void 0:(y=n.accessibility)==null?void 0:y.label}},_.g("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.g(_.v,{cond:function(){return D().title},
then:function(n){return _.g(_.BO,{text:n,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.g("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.g(_.wt,{each:function(){var n;
return((n=D())==null?void 0:n.descriptions)||[]},
keyBy:"INDEX"},function(n){return _.g(_.BO,{text:n,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.g("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.g(_.uI,{data:function(){return D().moreInfoButton}},{adButtonViewModel:function(n){return _.g(_.tg,{data:n.data,
customCommandResolver:U})}})))},"Hn");var AHH=_.w(function(l){var D=l.data;var U=l.customCommandResolver;var n=l.adGridCardCollectionStyle;return _.g("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.fe(_.JH({visibilityCallback:function(y){var A,C=(A=D().interaction)==null?void 0:A.onFirstVisible;y&&C&&_.dh(C)},
showOption:_.mK})),style:function(){return"grid-template-columns: repeat("+Zkq(n?n():D().style)+", minmax(0, 1fr));"}},_.g(_.uI,{data:function(){var y;
return(y=D())==null?void 0:y.gridCards}},{adGridCardImageViewModel:function(y){return _.g(nYl,{data:y.data,
customCommandResolver:U})},
adGridCardImageFullMetadataViewModel:function(y){return _.g(UMW,{data:y.data,customCommandResolver:U})},
adGridCardTextViewModel:function(y){return _.g(yHT,{data:y.data,customCommandResolver:U})}}))},"In");_.Tt(_.w(function(l){var D=l.data;return _.g("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.fe(_.JH({visibilityCallback:function(U){var n,y=(n=D().interaction)==null?void 0:n.onFirstVisible;U&&y&&_.dh(y)},
showOption:_.mK}),_.dN(function(){return D().interaction},m1D))},_.g("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.g(_.v,{cond:_.qTB("(min-width: "+((0,_.Ih)()+_.jO)+"px)"),
then:function(){return _.g(_.uI,{data:function(){return D().adGridCardCollection}},{adGridCardCollectionViewModel:function(U){return _.g(AHH,{data:U.data,
customCommandResolver:m1D})}})},
else:function(){return _.g(_.uI,{data:function(){return D().adGridCardCollection}},{adGridCardCollectionViewModel:function(U){return _.g(AHH,{data:U.data,
customCommandResolver:m1D,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.g("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.g(_.uI,{data:function(){return D().adButton}},{adButtonViewModel:function(U){return _.g(_.tg,{data:U.data,
customCommandResolver:m1D})}})))},"Jn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;return _.g("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.fe(_.JH({visibilityCallback:function(U){var n,y=(n=D().interaction)==null?void 0:n.onFirstVisible;U&&y&&_.dh(y)},
showOption:_.mK}),_.dN(function(){return D().interaction},aQH))},_.g("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.g(_.uI,{data:function(){if(_.qTB("(min-width: "+((0,_.Ih)()+_.jO)+"px)")())var U=D().adGridCardCollection;
else{U=Object.assign({},_.M(D().adGridCardCollection,RgD));var n;U.gridCards!==void 0&&((n=U.gridCards)==null?void 0:n.length)>1?U.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":U.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";U={adGridCardCollectionViewModel:U}}return U}},{adGridCardCollectionViewModel:function(U){return _.g(AHH,{data:U.data,
customCommandResolver:aQH})}})),_.g("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.g(_.uI,{data:function(){return D().adButton}},{adButtonViewModel:function(U){return _.g(_.tg,{data:U.data,
customCommandResolver:aQH})}})))},"Kn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.C$}});var dW=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return l};
_.Z(dW,_.p);_.W=dW.prototype;_.W.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"}}}};
_.W.attached=function(){this.getDataFromPlayerAndRender()};
_.W.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.W.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.W.getDataFromPlayerAndRender=function(){var l=this,D=_.T4(this.hostElement);D&&D.getPlayerPromise().then(function(U){l.getCachedDataAndListen(U)})};
_.W.getCachedDataAndListen=function(l){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(l,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(l,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=l)};
_.W.resolveCachedActions=function(){var l=_.UG("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(l=l&&l())&&!_.we.isEmpty(l)&&this.sendUpdateEngagementPanelAction(l);(l=(l=_.UG("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&l())&&!_.we.isEmpty(l)&&this.sendChangeEngagementPanelVisibilityAction(l);(l=(l=_.UG("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&l())&&!_.we.isEmpty(l)&&this.sendScrollToEngagementPanelCommand(l)};
_.W.sendUpdateEngagementPanelAction=function(l){var D;_.Vh(this.hostElement,"yt-update-engagement-panel-action",[(D=_.we.get(l,"action"))!=null?D:l])};
_.W.sendChangeEngagementPanelVisibilityAction=function(l){_.Vh(this.hostElement,"yt-change-engagement-panel-visibility-action",[l])};
_.W.sendScrollToEngagementPanelCommand=function(l){_.Vh(this.hostElement,"yt-scroll-to-engagement-panel-command",[l])};
_.W.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.q("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.II(Error("ap"))};
dW.prototype.dataChanged=dW.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],dW.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],dW.prototype,"componentBehavior",void 0);_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],dW.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],dW.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],dW.prototype,"player",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],dW.prototype,"dataChanged",null);_.E([_.x({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],dW);
_.r(dW,"ytd-ads-engagement-panel-content-renderer",function(){if(DMT!==void 0)return DMT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
return DMT=l},{mode:1});var WEg;var Ka=function(){var l=_.p.apply(this,arguments)||this;l.player=null;l.JSC$23122_playerEvents=new Map;l.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return l};
_.Z(Ka,_.p);_.W=Ka.prototype;_.W.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]]"}}}}}};
_.W.created=function(){this.player=null;this.JSC$23122_playerEvents=new Map;this.JSC$23122_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23122_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23122_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23122_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.W.attached=function(){var l=this,D=_.T4();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));D&&D.getPlayerPromise().then(function(U){l.setPlayer(U);l.set("isPageLoad",!1)})};
_.W.setPlayer=function(l){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23122_playerEvents);this.set("player",l);l&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(l,this.JSC$23122_playerEvents),l.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.W.onLoopRangeChange=function(l){var D=_.Jc().resolve(_.G8(_.sm));if((!D||D.isOnWatch())&&this.hostElement.clientHeight){var U;!l&&((U=this.data)==null?0:U.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.W.onVideoProgress=function(l){var D,U,n=((D=this.player)==null?void 0:(U=D.getPresentingPlayerType)==null?void 0:U.call(D))===2;this.isAdPlaying!==n&&this.set("isAdPlaying",n);var y;if(!n&&(y=this.player)!=null&&y.getLoopRange()){U=this.player.getLoopRange();D=U.startTimeMs;U=U.endTimeMs;n=this.player.getProgressState(1).seekableStart;var A;D<n*1E3&&((A=this.data)==null?0:A.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
l=U<l*1E3;var C;((C=this.player)==null?0:C.getLoopRange())&&l&&this.player.seekTo(D/1E3)}};
_.W.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.W.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.W.onYtDeleteClipEngagementPanelCommand=function(l){_.M(l,Fdh).command&&this.ytComponentBehavior.resolveCommand(_.M(l,Fdh).command)};
_.QP.Object.defineProperties(Ka.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.voteCount)||_.$B("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Ka.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Ka.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],Ka.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ka.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],Ka.prototype,"isAdPlaying",void 0);_.E([_.K({reflectToAttribute:!0,value:!0}),_.T("design:type",Boolean)],Ka.prototype,"isPageLoad",void 0);_.E([_.K({reflectToAttribute:!0,value:!0}),_.T("design:type",Boolean)],Ka.prototype,"isDarkTheme",void 0);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ka.prototype,"voteCount",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ka.prototype,"channelEndpoint",null);_.E([_.t("channelEndpoint"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ka.prototype,"channelHref",null);_.E([_.x({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Ka);
_.r(Ka,"ytd-clip-attribution-renderer",function(){if(WEg!==void 0)return WEg;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return WEg=l},{mode:1});var Bm1;var cD=function(){var l=_.p.apply(this,arguments)||this;l.player=null;l.JSC$23127_playerEvents=new Map;return l};
_.Z(cD,_.p);_.W=cD.prototype;_.W.created=function(){this.player=null;this.JSC$23127_playerEvents=new Map;this.JSC$23127_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23127_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23127_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.W.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.W.attached=function(){var l=this,D=_.T4();D&&D.getPlayerPromise().then(function(U){l.setPlayer(U);l.set("isPageLoad",!1)})};
_.W.setPlayer=function(l){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23127_playerEvents);this.set("player",l);if(l){this.ytPlayerListenerBehavior.listenToPlayerEvents(l,this.JSC$23127_playerEvents);var D;(l==null?void 0:(D=l.getPresentingPlayerType)==null?void 0:D.call(l))===2&&this.playerAdStartHandler()}};
_.W.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.W.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.W.onVideoProgress=function(){var l,D,U=((l=this.player)==null?void 0:(D=l.getPresentingPlayerType)==null?void 0:D.call(l))===2;this.isAdPlaying!==U&&this.set("isAdPlaying",U)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],cD.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],cD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],cD.prototype,"isAdPlaying",void 0);
_.E([_.K({reflectToAttribute:!0,value:!0}),_.T("design:type",Boolean)],cD.prototype,"isPageLoad",void 0);_.E([_.x({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],cD);
_.r(cD,"ytd-clip-section-footer-renderer",function(){if(Bm1!==void 0)return Bm1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Bm1=l},{mode:1});var CPW;var hXW;var PPj=function(){return _.p.apply(this,arguments)||this};
_.Z(PPj,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],PPj.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],PPj.prototype,"data",void 0);_.E([_.x({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],PPj);
_.r(PPj,"ytd-clip-ad-state-renderer",function(){if(hXW!==void 0)return hXW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return hXW=l},{mode:1});var bAl;var pa=function(){var l=_.p.apply(this,arguments)||this;l.value="";l.valid=!1;l.userChangedValue=!1;l.disabled=!1;l.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return l};
_.Z(pa,_.p);_.W=pa.prototype;_.W.detached=function(){this.userChangedValue=!1};
_.W.handleKeyDown=function(l){if(_.lB)var D=13;else _.E9v&&_.Do?D=13:D=13;l.keyCode===D&&l.preventDefault()};
_.W.handleInput=function(){var l=_.iJ(this.hostElement).querySelector("#title");if(l){var D=(l.value||"").replace(/\r|\n/g," ");this.set("value",D);l.value=D;this.valid=l.validate();this.userChangedValue=!0}};
_.W.handleBlur=function(){this.valid=_.iJ(this.hostElement).querySelector("#title").validate()};
_.W.onValueChanged=function(){_.O9(this.hostElement,"title-changed",{title:this.value})};
_.W.onValidChanged=function(){_.O9(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.W.setInput=function(l,D){var U=_.iJ(this.hostElement).querySelector("#title");U&&(U.value=l,this.handleInput(),D&&(U.invalid=!1,this.valid=!0))};
_.W.onClipCreationDisable=function(){this.set("disabled",!0)};
_.W.onClipCreationEnable=function(){this.set("disabled",!1)};
_.W.onClipCreationVisibilityChange=function(l){var D=this;l.visible?requestAnimationFrame(function(){var U;((U=_.iJ(D.hostElement).querySelector("#title"))==null?void 0:U.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
pa.prototype.onValidChanged=pa.prototype.onValidChanged;pa.prototype.onValueChanged=pa.prototype.onValueChanged;pa.prototype.handleBlur=pa.prototype.handleBlur;pa.prototype.handleInput=pa.prototype.handleInput;pa.prototype.handleKeyDown=pa.prototype.handleKeyDown;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],pa.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],pa.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],pa.prototype,"value",void 0);_.E([_.K(),_.T("design:type",Object)],pa.prototype,"valid",void 0);_.E([_.K(),_.T("design:type",Object)],pa.prototype,"userChangedValue",void 0);_.E([_.K(),_.T("design:type",Object)],pa.prototype,"disabled",void 0);_.E([_.hj("keydown"),_.T("design:type",Function),_.T("design:paramtypes",[KeyboardEvent]),_.T("design:returntype")],pa.prototype,"handleKeyDown",null);
_.E([_.hj("input"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pa.prototype,"handleInput",null);_.E([_.hj("blur"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pa.prototype,"handleBlur",null);_.E([_.Pg("value"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pa.prototype,"onValueChanged",null);
_.E([_.Pg("valid"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pa.prototype,"onValidChanged",null);_.E([_.x({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],pa);
_.r(pa,"ytd-clip-creation-text-input-renderer",function(){if(bAl!==void 0)return bAl;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return bAl=l},{mode:1});var gYh;var ubk;var vY1;var Q1W;var G7D;var xy=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};l.pendingStoryboardImages_={};l.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];l.tickLabelInterval=30;l.mediumTickInterval=5;l.largeTickInterval=15;l.aboveRulerHeight=32;l.rulerHeight=50;l.smallTickHeight=4;l.mediumTickHeight=8;l.largeTickHeight=16;l.mediaListeners_=
{};return l};
_.Z(xy,_.p);_.W=xy.prototype;_.W.attached=function(){var l=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(D){D=_.B(["screen and (min-resolution: "+D+")","screen and (max-resolution: "+D+")"]);for(var U=D.next();!U.done;U=D.next()){U=U.value;var n=window.matchMedia(U);n&&(l.mediaListeners_[U]=l.updatePixelRatio_.bind(l),n.addEventListener?n.addEventListener("change",l.mediaListeners_[U]):n.addListener?n.addListener(l.mediaListeners_[U]):delete l.mediaListeners_[U])}})};
_.W.detached=function(){this.setPlayer(null);for(var l=_.B(Object.keys(this.mediaListeners_)),D=l.next();!D.done;D=l.next()){var U=D.value;D=this.mediaListeners_[U];(U=window.matchMedia(U))&&(U.removeEventListener?U.removeEventListener("change",D):U.removeListener&&U.removeListener(D))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.W.onVisibilityChangedAction_=function(l){var D=this;l.visible&&!this.player_&&(l=_.T4())&&l.getPlayerPromise().then(function(U){D.setPlayer(U)})};
_.W.setPlayer=function(l){l&&this.set("player_",l)};
_.W.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.W.setUpCanvas_=function(){var l=this.rulerWidth,D=this.devicePixelRatio_,U=this.visible;this.set("canvasReady_",!1);if(U&&D!==0){U=this.aboveRulerHeight+this.rulerHeight;var n=_.iJ(this.hostElement).querySelector("#ticks");n.width=l*D;n.height=U*D;n.style.width=l+"px";n.style.height=U+"px";n.getContext("2d").scale(D,D);this.set("canvasReady_",!0)}};
_.W.drawRuler_=function(l,D,U,n,y,A,C,h,b,u,Q,G){l&&U&&D&&(l=_.iJ(this.hostElement).querySelector("#ticks"),D=l.getContext("2d"),D.clearRect(0,0,l.width,l.height),D.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),D.lineWidth=2,D.beginPath(),D.moveTo(0,this.aboveRulerHeight),D.lineTo(l.width,this.aboveRulerHeight),D.moveTo(0,l.height),D.lineTo(l.width,l.height),D.stroke(),this.drawRulerTicks_(l,A,y,n),this.drawStoryboardImages_(l,U,A,y,n),D.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
D.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(C-A,n,!1),this.rulerHeight),U=this.timeToPixels_(h-A,n,!1),D.fillRect(U,this.aboveRulerHeight,l.width-U,this.rulerHeight),this.drawSpeedLines_(l,A,G))};
_.W.drawRulerTicks_=function(l,D,U,n){var y=l.getContext("2d");y.save();y.lineWidth=1;for(var A=Math.floor(Math.max(0,D-this.tickLabelInterval));A<D+U;A++){y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var C=(A-D)*n;y.beginPath();y.moveTo(C,l.height);var h=this.smallTickHeight;A%this.largeTickInterval===0?h=this.largeTickHeight:A%this.mediumTickInterval===0&&(h=this.mediumTickHeight);y.lineTo(C,l.height-h);y.stroke();A%this.tickLabelInterval===0&&(y.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),y.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),y.fillText(dO(A),C+4,12),y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),y.moveTo(C,0),y.lineTo(C,this.aboveRulerHeight),y.stroke())}y.restore()};
_.W.percentToHex_=function(l){l=Math.round(l*255).toString(16);l.length<2&&(l="0"+l);return l};
_.W.drawSpeedLines_=function(l,D,U){var n=l.getContext("2d");n.save();var y=Math.min(25,Math.abs(U)-15)/25,A=l.width*.3*y,C=l.width*-.3,h=l.width*1.3,b=this.aboveRulerHeight;l=l.height;var u=Math.round(4*y),Q=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");Q.length<7&&(Q="#"+Q.substring(1,4).repeat(2));var G=this.percentToHex_(.5+y/2);G=Q+G;Q+="00";if(y>0)for(y=0;y<u;y++){var J=C+Math.random()*(h-C),L=b+Math.random()*(l-b),R=A+D%A,a=n.createLinearGradient(J,L,J+R,L);
U<0?(a.addColorStop(0,G),a.addColorStop(.4,G),a.addColorStop(.9,Q)):(a.addColorStop(.1,Q),a.addColorStop(.6,G),a.addColorStop(1,G));n.strokeStyle=a;n.lineWidth=1;n.beginPath();n.moveTo(J,L);n.lineTo(J+R,L);n.stroke()}n.restore()};
_.W.getStoryboardForTime_=function(l,D,U){U===void 0&&(U=D.getNumberOfStoryboardLevels()-1);l=D.getStoryboardFrameIndex(l,U);return D.getStoryboardFrame(l,U)};
_.W.drawStoryboardImages_=function(l,D,U,n,y){if(!this.disabled){l=l.getContext("2d");var A=this.getStoryboardForTime_(0,D);if(A){var C=A.width/A.columns;A=A.height/A.rows;var h=C/A,b=this.rulerHeight*h;b=this.tickLabelInterval*(h<this.tickLabelInterval*y/this.rulerHeight?1/Math.floor(this.tickLabelInterval*y/b):Math.round(b/(this.tickLabelInterval*y)));var u=b*y,Q=this.rulerHeight,G=u/this.rulerHeight,J=Math.floor(Math.max(0,U-b));for(J-=J%b;J<U+n;J+=b){var L=this.getStoryboardForTime_(J,D),R=this.getPreloadedStoryboard_(L.url);
if(R){var a=(J-U)*y,S=this.aboveRulerHeight,d=L.column*C,c=L.row*A;if(h<G){var N=Q/(u/h);L=C;N*=A;c+=(A-N)/2}else L=u/(Q*h)*C,N=A,d+=(C-L)/2;l.drawImage(R,d,c,L,N,a,S,u,Q)}else this.fetchStoryboardImage_(L)}}}};
_.W.getPreloadedStoryboard_=function(l){return this.storyboardImages_.find(function(D){if(D.src==l)return!0;var U=D.src.indexOf(l);return U!=-1&&U==D.src.length-l.length})};
_.W.fetchStoryboardImage_=function(l){var D=this,U=this.getPreloadedStoryboard_(l.url),n=this.pendingStoryboardImages_[l.url];U||n!==void 0||(U=new Promise(function(y){var A=new Image(l.width,l.height);A.src=l.url;A.onload=function(){y(A)};
A.onerror=function(){y(null)}}),this.pendingStoryboardImages_[l.url]=U,U.then(function(y){y&&D.push("storyboardImages_",y);
return y}).finally(function(){delete D.pendingStoryboardImages_[l.url]}))};
_.W.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.W.timeToPixels_=function(l,D,U){l*=D;return U===void 0||U?l+"px":l};
_.W.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
xy.prototype.drawRuler_=xy.prototype.drawRuler_;xy.prototype.setUpCanvas_=xy.prototype.setUpCanvas_;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],xy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],xy.prototype,"start",void 0);_.E([_.K({value:30}),_.T("design:type",Number)],xy.prototype,"end",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],xy.prototype,"visible",void 0);_.E([_.K(),_.T("design:type",Object)],xy.prototype,"player_",void 0);_.E([_.K(),_.T("design:type",Number)],xy.prototype,"tickSpacing",void 0);_.E([_.K(),_.T("design:type",Number)],xy.prototype,"windowSizeSec",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],xy.prototype,"rulerWidth",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],xy.prototype,"rulerShift",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],xy.prototype,"canvasReady_",void 0);_.E([_.K({value:function(){return[]}}),
_.T("design:type",Array)],xy.prototype,"storyboardImages_",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],xy.prototype,"disabled",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],xy.prototype,"forceRender_",void 0);_.E([_.K({value:1}),_.T("design:type",Number)],xy.prototype,"devicePixelRatio_",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],xy.prototype,"windowSpeed",void 0);
_.E([_.Pg("visible","devicePixelRatio_","rulerWidth"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xy.prototype,"setUpCanvas_",null);
_.E([_.Pg("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.T("design:type",Function),_.T("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.T("design:returntype")],xy.prototype,"drawRuler_",null);_.E([_.S0({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],xy);
_.r(xy,"yt-clip-creation-scrubber-canvas",function(){if(G7D===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);G7D=l}l=G7D;return l},
{mode:2});var JHT;var LET;var jC=function(){var l=_.p.apply(this,arguments)||this;l.start=0;l.end=30;l.visible=!1;l.draggingLeft_=!1;l.draggingRight_=!1;l.draggingRuler_=!1;l.draggingWindow_=!1;l.seekableStart=0;l.seekableEnd=0;l.rulerWidth_=0;l.rulerShift_=0;l.windowSlideSpeed=0;l.disabled=!1;l.initialized=!1;l.durationAccessibilityLabel="";l.activeLoopRange_=!1;l.rulerDragMouseStart_=0;l.rulerDragRulerStart_=0;l.rulerDragStartTime_=0;l.rulerDragEndTime_=0;l.dragMouseLastX_=0;l.scrollInterval_=null;l.scrubberVe_=null;l.boundHandlers_=
{};l.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return l};
_.Z(jC,_.p);_.W=jC.prototype;
_.W.created=function(){var l=this;this.JSC$23140_playerEvents=new Map;this.JSC$23140_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23140_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23140_playerEvents.set("onStateChange",this.onStateChange_);var D={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(D).forEach(function(U){l.boundHandlers_[U]=D[U].bind(l)})};
_.W.attached=function(){this.activeLoopRange_=!1;_.iJ(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.iJ(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.UE(156731)};
_.W.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.iJ(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.iJ(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.W.onVisibilityChangedAction_=function(l){var D=this;l.visible&&!this.player_&&(l=_.T4())&&l.getPlayerPromise().then(function(U){D.setPlayer(U)})};
_.W.setPlayer=function(l){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23140_playerEvents);l&&(this.set("player_",l),this.ytPlayerListenerBehavior.listenToPlayerEvents(l,this.JSC$23140_playerEvents))};
_.W.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.W.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.W.beginHandleDrag_=function(l){this.disabled||(l.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=l.clientX,l.target===_.iJ(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():l.target===_.iJ(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.W.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.W.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.W.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.W.beginRulerDrag_=function(l){this.disabled||(l.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=l.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.W.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.W.beginWindowScroll_=function(){var l=this;this.scrollInterval_=setInterval(function(){var D=l.windowSlideSpeed;if(D=_.oT1(l.start,l.boundedRulerStartLimit_())?D-.1:_.oT1(l.end,l.boundedRulerEndLimit_())?D+.1:0){var U=l.capRulerOffset_(l.rulerShift_+D);U==l.rulerShift_?D=0:(l.set("rulerShift_",U),_.O9(l.hostElement,"set-fixed-length-range",{start:l.start+D,duration:l.end-l.start}))}l.set("windowSlideSpeed",D)},33)};
_.W.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.W.endDrag_=function(){this.logClick();var l=void 0;this.draggingRight_?l=this.end-1:this.draggingLeft_&&(l=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,l);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))};
_.W.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.W.updateRulerSize_=function(){this.set("rulerWidth_",_.iJ(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.W.handleMouseDrag_=function(l){l.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(l):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(l):this.draggingWindow_&&this.handleWindowDrag_(l))};
_.W.handleRulerDrag_=function(l){l=this.pixelsToTime_(l.clientX-this.rulerDragMouseStart_);l=this.capRulerOffset_(this.rulerDragRulerStart_-l);this.set("rulerShift_",l);var D=this.rulerDragStartTime_-(this.rulerDragRulerStart_-l);_.O9(this.hostElement,"set-fixed-length-range",{start:D,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-l)-D})};
_.W.handleWindowDrag_=function(l){var D=l.clientX-this.dragMouseLastX_;this.dragMouseLastX_=l.clientX;l=this.pixelsToTime_(D);_.O9(this.hostElement,"set-fixed-length-range",{start:this.start+l,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.W.capRulerOffset_=function(l){var D=this.seekableStart-this.pixelsToTime_(16),U=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(D,l),U)};
_.W.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.W.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.W.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.W.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.W.handleWindowHandleDrag_=function(l){var D=l.clientX-this.dragMouseLastX_;this.dragMouseLastX_=l.clientX;l=this.pixelsToTime_(D);if(this.draggingLeft_){var U=this.start+l;var n=this.end}else this.draggingRight_&&(U=this.start,n=this.end+l);_.O9(this.hostElement,"set-range",{start:U,end:n,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.W.onVideoProgress_=function(l){this.disabled||(l=this.timeToPixels_(l-this.rulerShift_,this.tickSpacing_),_.iJ(this.hostElement).querySelector("#playhead").style.transform="translateX("+l+")")};
_.W.onClipCreationDisable_=function(){this.endDrag_()};
_.W.timeToPixels_=function(l,D,U){l*=D;return U===void 0||U?l+"px":l};
_.W.pixelsToTime_=function(l){return l/this.tickSpacing_};
_.W.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.W.centerRuler_=function(l,D,U){this.set("rulerShift_",this.capRulerOffset_(l+(D-l)/2-U/2))};
_.W.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.W.updateLoopRange_=function(l,D,U,n,y,A,C){l&&(D&&n&&!U?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(l.pauseVideo(),l.seekTo(y,!1,void 0,void 0,50)):this.draggingRight_?(l.pauseVideo(),l.seekTo(A-.1,!1,void 0,void 0,50)):(C!==void 0?l.seekTo(C,!0,void 0,void 0,50):(D=l.getCurrentTime(),D<y||D>A?l.seekTo(y,!0,void 0,void 0,50):l.seekTo(D,!0,void 0,void 0,50)),l.playVideo()),l.setLoopRange({startTimeMs:y*1E3,endTimeMs:A*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(l.getCurrentTime())):
this.activeLoopRange_&&(l.setLoopRange(null),this.activeLoopRange_=!1))};
_.W.updateHandles_=function(){_.iJ(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.iJ(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.W.updateRuler_=function(){var l=this.end,D=this.start,U=this.draggableStartLimit_(),n=this.draggableEndLimit_();(D<U-.001||l>n+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.W.computeDurationLabel_=function(l,D){return l?l.replace("$clip_length",parseFloat(D).toFixed(1)):""};
_.W.computeDuration_=function(l,D){return this.isValidTime_(l)&&this.isValidTime_(D)&&l<D?D-l:0};
_.W.isValidTime_=function(l){return isNaN(parseFloat(l))||l<0?!1:this.player_?l>=this.seekableStart&&l<=this.seekableEnd:!0};
_.W.computeWindowSizeSec_=function(l,D,U){return Math.min((l||12E4)/1E3,U-D)};
_.W.computeTickSpacing_=function(l,D){return D?D/l:1};
_.W.onDragStateChanged_=function(){_.O9(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.W.centerRangeOnTime_=function(l){var D=this.duration;l=X3H(l-D/2,D,this.seekableStart,this.seekableEnd);_.O9(this.hostElement,"set-fixed-length-range",{start:l.start,duration:l.end-l.start})};
_.W.nearlyLessThan_=function(l,D,U){return l+(U===void 0?1E-6:U)<D};
_.W.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var l=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(l,this.start)||this.nearlyLessThan_(this.end,l))&&this.centerRangeOnTime_(l)}};
_.W.onStateChange_=function(l){this.visible&&!this.disabled&&l==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.W.computeDragState_=function(l,D,U,n){return l?"left":D?"right":U?"ruler":n?"window":"none"};
_.W.logClick=function(){var l=_.t6(),D=_.aS();l&&D&&this.scrubberVe_&&(_.q("combine_ve_grafts")?_.cq(_.he(),this.scrubberVe_,D):_.jz(l,D,this.scrubberVe_),_.zo(l,this.scrubberVe_))};
jC.prototype.onDragStateChanged_=jC.prototype.onDragStateChanged_;jC.prototype.updateRuler_=jC.prototype.updateRuler_;jC.prototype.updateHandles_=jC.prototype.updateHandles_;jC.prototype.onUpdateLoopRange=jC.prototype.onUpdateLoopRange;jC.prototype.onInitializedChanged_=jC.prototype.onInitializedChanged_;jC.prototype.onVisibleChanged_=jC.prototype.onVisibleChanged_;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],jC.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",Object)],jC.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"start",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"end",void 0);_.E([_.K({computed:"computeDuration_(start, end)"}),_.T("design:type",Number)],jC.prototype,"duration",void 0);
_.E([_.K(),_.T("design:type",String)],jC.prototype,"lengthTemplate",void 0);_.E([_.K({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.T("design:type",String)],jC.prototype,"durationLabel",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"visible",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"player_",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"draggingLeft_",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"draggingRight_",void 0);
_.E([_.K(),_.T("design:type",Object)],jC.prototype,"draggingRuler_",void 0);_.E([_.K({value:!1}),_.T("design:type",Object)],jC.prototype,"draggingWindow_",void 0);_.E([_.K({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.T("design:type",Number)],jC.prototype,"tickSpacing_",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"seekableStart",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"seekableEnd",void 0);
_.E([_.K(),_.T("design:type",Number)],jC.prototype,"windowSizeMs",void 0);_.E([_.K({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.T("design:type",Number)],jC.prototype,"windowSizeSec_",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"rulerWidth_",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"rulerShift_",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"windowSlideSpeed",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],jC.prototype,"disabled",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"initialized",void 0);_.E([_.K(),_.T("design:type",Object)],jC.prototype,"durationAccessibilityLabel",void 0);_.E([_.K({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.T("design:type",String)],jC.prototype,"dragState",void 0);
_.E([_.Pg("visible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jC.prototype,"onVisibleChanged_",null);_.E([_.Pg("initialized"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jC.prototype,"onInitializedChanged_",null);_.E([_.Pg("player_","visible","disabled","initialized","start","end"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jC.prototype,"onUpdateLoopRange",null);
_.E([_.Pg("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jC.prototype,"updateHandles_",null);_.E([_.Pg("start","end"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jC.prototype,"updateRuler_",null);
_.E([_.Pg("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jC.prototype,"onDragStateChanged_",null);_.E([_.S0({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],jC);
_.r(jC,"yt-clip-creation-scrubber-view",function(){if(LET===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;JHT===void 0&&(JHT=document.createElement("template"));var n=JHT;U.call(D,n.content.cloneNode(!0),l.content.firstChild);LET=l}l=LET;return l},{mode:2});var FU=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};l.startHighlightTimeout=0;l.endHighlightTimeout=0;return l};
_.Z(FU,_.p);_.W=FU.prototype;_.W.attached=function(){var l=this;this.startInput.addEventListener("input",function(D){return l.handleStartInput_(D)});
this.endInput.addEventListener("input",function(D){return l.handleEndInput_(D)});
this.startInput.addEventListener("focusout",function(D){return l.handleStartBlur_(D)});
this.endInput.addEventListener("focusout",function(D){return l.handleEndBlur_(D)})};
_.W.setPlayer=function(l){this.set("player_",l)};
_.W.onSetFixedLengthRange_=function(l){var D=l.detail;l=D.start;var U=D.duration,n=D.startLimit;D=D.endLimit;n||(n=this.seekableStart_);D||(D=this.seekableEnd_);l=X3H(l,U,n,D);this.start=l.start;this.end=l.end};
_.W.onSetRange_=function(l){var D=l.detail;l=D.start;var U=D.end,n=D.startLimit;D=D.endLimit;n||(n=this.seekableStart_);D||(D=this.seekableEnd_);if(l=SZW(l,U,n,D,this.minLengthSec,this.maxLengthSec))this.start=l.start,this.end=l.end};
_.W.updateInputs_=function(){var l=this.end,D=this.start;this.startInput.focused||(this.startInput.value=dO(D,!0));this.endInput.focused||(this.endInput.value=dO(l,!0))};
_.W.handleStartInput_=function(l){l=tMO(l.target.value);if(l===null)this.set("startValid",!1);else{var D=this.end,U=SZW(l,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);U?(this.set("endWillUpdate",U.end!==D),this.set("startValid",U.start===l)):this.set("startValid",!1)}};
_.W.handleEndInput_=function(l){l=tMO(l.target.value);if(l===null)this.set("endValid",!1);else{var D=this.start,U=kZ1(this.start,l,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);U?(this.set("startWillUpdate",U.start!==D),this.set("endValid",U.end===l)):this.set("endValid",!1)}};
_.W.handleStartBlur_=function(l){l=tMO(l.target.value);l===null?this.startInput.value=dO(this.start,!0):this.forceUpdateInputs_(SZW(l,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.W.handleEndBlur_=function(l){l=tMO(l.target.value);l===null?this.endInput.value=dO(this.end,!0):this.forceUpdateInputs_(kZ1(this.start,l,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.W.forceUpdateInputs_=function(l){l&&(this.start=l.start,this.end=l.end);this.startInput.value=dO(this.start,!0);this.endInput.value=dO(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.W.initializeClipRange_=function(){var l=this.seekableEnd_,D=this.seekableStart_,U=this.visible_,n=this.player_;if(!n||!U||D===null||!l)this.set("initialized",!1);else if(!this.initialized){var y=n.getCurrentTime(),A=this.getDefaultLengthSec_();U=n.getVideoData();var C=n.getPlayerState()==1,h=U.isLive;A=Math.min(A,l-D);y=Math.max(0,y);l=h?kZ1(y-A,y,D,l,this.minLengthSec,this.maxLengthSec):C?X3H(y-A/2,A,D,l):X3H(y,A,D,l);this.start=l.start;this.end=l.end;this.set("initialized",!0);U.isLive&&n.seekTo(l.start);
this.startInput.value=dO(this.start,!0);this.endInput.value=dO(this.end,!0)}};
_.W.onStartChanged_=function(){var l=this;_.O9(this.hostElement,"start-changed",{start:this.start});var D;isNaN((D=this.oldStart)!=null?D:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){l.set("highlightStart",!1);l.startHighlightTimeout=0;l.oldStart=l.start},3E3))};
_.W.onEndChanged_=function(){var l=this;_.O9(this.hostElement,"end-changed",{end:this.end});var D;isNaN((D=this.oldEnd)!=null?D:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){l.set("highlightEnd",!1);l.endHighlightTimeout=0;l.oldEnd=l.end},3E3))};
_.W.onVisibilityChangedAction_=function(l){var D=this;this.set("visible_",l.visible);this.visible_&&!this.player_&&(l=_.T4())&&l.getPlayerPromise().then(function(U){D.setPlayer(U)})};
_.W.computeMinLengthSec_=function(l){return l/1E3||5};
_.W.computeMaxLengthSec_=function(l){return l/1E3||60};
_.W.computeDefaultLengthSec_=function(l){return l/1E3};
_.W.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.W.computeSeekableStart_=function(l,D){return l&&D?l.getProgressState(1).seekableStart:0};
_.W.computeSeekableEnd_=function(l,D){return l&&D?l.getProgressState(1).seekableEnd:0};
_.W.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.W.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.W.onDragState_=function(l){this.set("highlightStart",l.detail.startChanging);this.set("highlightEnd",l.detail.endChanging)};
FU.prototype.onDragState_=FU.prototype.onDragState_;FU.prototype.onEndChanged_=FU.prototype.onEndChanged_;FU.prototype.onStartChanged_=FU.prototype.onStartChanged_;FU.prototype.initializeClipRange_=FU.prototype.initializeClipRange_;FU.prototype.updateInputs_=FU.prototype.updateInputs_;FU.prototype.onSetRange_=FU.prototype.onSetRange_;FU.prototype.onSetFixedLengthRange_=FU.prototype.onSetFixedLengthRange_;
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],FU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],FU.prototype,"data",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],FU.prototype,"start",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],FU.prototype,"startValid",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],FU.prototype,"startWillUpdate",void 0);_.E([_.K({value:30}),_.T("design:type",Number)],FU.prototype,"end",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],FU.prototype,"endValid",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],FU.prototype,"endWillUpdate",void 0);_.E([_.K({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.T("design:type",Number)],FU.prototype,"minLengthSec",void 0);
_.E([_.K({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.T("design:type",Number)],FU.prototype,"maxLengthSec",void 0);_.E([_.K({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.T("design:type",Number)],FU.prototype,"defaultLengthSec",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],FU.prototype,"visible_",void 0);_.E([_.K(),_.T("design:type",Object)],FU.prototype,"player_",void 0);
_.E([_.K({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.T("design:type",Number)],FU.prototype,"seekableStart_",void 0);_.E([_.K({computed:"computeSeekableEnd_(player_, visible_)"}),_.T("design:type",Number)],FU.prototype,"seekableEnd_",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],FU.prototype,"initialized",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],FU.prototype,"disabled",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],FU.prototype,"highlightStart",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],FU.prototype,"highlightEnd",void 0);_.E([_.gP("#start"),_.T("design:type",HTMLInputElement)],FU.prototype,"startInput",void 0);_.E([_.gP("#end"),_.T("design:type",HTMLInputElement)],FU.prototype,"endInput",void 0);
_.E([_.hj("set-fixed-length-range"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],FU.prototype,"onSetFixedLengthRange_",null);_.E([_.hj("set-range"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],FU.prototype,"onSetRange_",null);_.E([_.Pg("start","end"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],FU.prototype,"updateInputs_",null);
_.E([_.Pg("player_","visible_","seekableStart_","seekableEnd_"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],FU.prototype,"initializeClipRange_",null);_.E([_.Pg("start"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],FU.prototype,"onStartChanged_",null);_.E([_.Pg("end"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],FU.prototype,"onEndChanged_",null);
_.E([_.hj("clips-drag-state"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],FU.prototype,"onDragState_",null);_.E([_.S0({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],FU);
_.r(FU,"yt-clip-creation-scrubber-renderer",function(){if(Q1W===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;vY1===void 0&&(vY1=document.createElement("template"));var n=vY1;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Q1W=l}l=Q1W;return l},{mode:2});var oU=function(){var l=_.p.apply(this,arguments)||this;l.player_=null;l.JSC$23154_playerEvents=new Map;l.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return l};
_.Z(oU,_.p);_.W=oU.prototype;_.W.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"}}}};
_.W.created=function(){this.JSC$23154_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23154_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23154_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23154_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.W.detached=function(){this.setPlayer(null)};
_.W.onVisibilityChangedAction_=function(l){var D=this,U;if((U=this.data)==null?0:U.externalVideoId){var n;this.videoId=(n=this.data)==null?void 0:n.externalVideoId}this.getPlayer().then(function(y){if(l.visible)D.returnTime=y.getCurrentTime(),D.isAtLiveHead=y.getProgressState().isAtLiveHead;else{var A=D.returnTime;D.isAtLiveHead&&(A=Number.POSITIVE_INFINITY);y.seekTo(A,void 0,void 0,void 0,51)}})};
_.W.getPlayer=function(){var l=this;if(!this.player_){var D=_.T4();if(D)return D.getPlayerPromise().then(function(U){l.setPlayer(U);return U})}return Promise.resolve(this.player_)};
_.W.setPlayer=function(l){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23154_playerEvents);if(l){this.player_=l;var D;((D=this.data)==null?0:D.externalVideoId)||this.set("videoId",l.getVideoData().video_id||"");var U;(l==null?void 0:(U=l.getPresentingPlayerType)==null?void 0:U.call(l))===2&&(this.set("isAdPlaying",!0),_.Vh(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(l,this.JSC$23154_playerEvents)}};
_.W.ready=function(){_.iJ(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.W.onTitleChanged_=function(l){this.set("titleValue",l.detail.title)};
_.W.onStartChanged_=function(l){this.set("start",l.detail.start)};
_.W.onEndChanged_=function(l){this.set("end",l.detail.end)};
_.W.onTitleValidChanged_=function(l){this.set("titleValid",l.detail.valid)};
_.W.onStartValidChanged_=function(l){this.set("startValid",l.detail.valid)};
_.W.onEndValidChanged_=function(l){this.set("endValid",l.detail.valid)};
_.W.onVideoDataChange_=function(){var l;if((l=this.data)==null||!l.externalVideoId){var D;this.set("videoId",((D=this.player_)==null?void 0:D.getVideoData().video_id)||"")}};
_.W.computeFormValid_=function(l,D,U,n){return!!(l&&D&&U&&n)};
_.W.computeCancelButton_=function(l,D,U){return l&&_.M(l,_.yn)?{buttonRenderer:Object.assign({},_.M(l,_.yn),{isDisabled:D||U})}:null};
_.W.computeSubmitButton_=function(l,D,U){return l&&_.M(l,_.yn)?{buttonRenderer:Object.assign({},_.M(l,_.yn),{command:void 0,isDisabled:!this.formValid||D||U})}:null};
_.W.computeSubmitCommand_=function(l){return l||null};
_.W.onSubmit_=function(l){var D=this;l.stopPropagation();l.preventDefault();this.submitCommand_&&(l={},l.comment_text=this.titleValue,l.clip_external_video_id=this.videoId,l.clip_offset_ms=parseInt(this.start*1E3,10),l.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.lu(this.hostElement,[this.submitCommand_,l]).then(function(){D.set("isLoading_",!1)},function(){D.set("isLoading_",!1)}))};
_.W.playerAdStartHandler_=function(){_.Vh(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.W.playerAdEndHandler_=function(){_.Vh(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.W.onVideoProgress_=function(){var l=this;this.getPlayer().then(function(D){var U,n=(D==null?void 0:(U=D.getPresentingPlayerType)==null?void 0:U.call(D))===2;l.isAdPlaying!==n&&(n?l.playerAdStartHandler_():l.playerAdEndHandler_())})};
oU.prototype.onEndValidChanged_=oU.prototype.onEndValidChanged_;oU.prototype.onStartValidChanged_=oU.prototype.onStartValidChanged_;oU.prototype.onTitleValidChanged_=oU.prototype.onTitleValidChanged_;oU.prototype.onEndChanged_=oU.prototype.onEndChanged_;oU.prototype.onStartChanged_=oU.prototype.onStartChanged_;oU.prototype.onTitleChanged_=oU.prototype.onTitleChanged_;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],oU.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",Object)],oU.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],oU.prototype,"data",void 0);_.E([_.K({value:""}),_.T("design:type",String)],oU.prototype,"titleValue",void 0);
_.E([_.K({value:!1}),_.T("design:type",Boolean)],oU.prototype,"titleValid",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],oU.prototype,"start",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],oU.prototype,"startValid",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],oU.prototype,"end",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],oU.prototype,"endValid",void 0);_.E([_.K({value:""}),_.T("design:type",String)],oU.prototype,"videoId",void 0);
_.E([_.K({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.T("design:type",Boolean)],oU.prototype,"formValid",void 0);_.E([_.K({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.T("design:type",Object)],oU.prototype,"submitButton_",void 0);_.E([_.K({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.T("design:type",Object)],oU.prototype,"submitCommand_",void 0);
_.E([_.K({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.T("design:type",Object)],oU.prototype,"cancelButton_",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],oU.prototype,"isLoading_",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],oU.prototype,"isAdPlaying",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],oU.prototype,"returnTime",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],oU.prototype,"isAtLiveHead",void 0);
_.E([_.hj("title-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],oU.prototype,"onTitleChanged_",null);_.E([_.hj("start-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],oU.prototype,"onStartChanged_",null);_.E([_.hj("end-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],oU.prototype,"onEndChanged_",null);
_.E([_.hj("title-valid-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],oU.prototype,"onTitleValidChanged_",null);_.E([_.hj("start-valid-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],oU.prototype,"onStartValidChanged_",null);_.E([_.hj("end-valid-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],oU.prototype,"onEndValidChanged_",null);
_.E([_.S0({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],oU);
_.r(oU,"yt-clip-creation-renderer",function(){if(ubk===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;gYh===void 0&&(gYh=document.createElement("template"));var n=gYh;U.call(D,n.content.cloneNode(!0),l.content.firstChild);ubk=l}l=ubk;return l},{mode:2});var wW=function(){return _.p.apply(this,arguments)||this};
_.Z(wW,_.p);wW.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"}}}};
wW.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(l){return l.hasOwnProperty("clipCreationRenderer")})&&_.Vh(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
wW.prototype.onPanelContentVisibleChanged=wW.prototype.onPanelContentVisibleChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.n$.YtVisibilityBehavior),_.T("design:type",Object)],wW.prototype,"ytVisibilityBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],wW.prototype,"ytdReduxBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],wW.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],wW.prototype,"panelContentVisible",void 0);_.E([_.Pg("panelContentVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wW.prototype,"onPanelContentVisibleChanged",null);_.E([_.x({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],wW);
_.r(wW,"ytd-clip-section-renderer",function(){if(CPW!==void 0)return CPW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return CPW=l},{mode:1});var q1D;var rW=function(){return _.p.apply(this,arguments)||this};
_.Z(rW,_.p);_.W=rW.prototype;
_.W.onKeyDown=function(l){if(this.snippetElements.length!==0&&(l=l.keyCode,l===38||l===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);l===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.tS(this.highlightedIndex,-1,this.snippetElements.length);l=this.snippetElements.length;var D=this.highlightedIndex%l;this.highlightedIndex=D*l<0?D+l:D;l=this.snippetElements[this.highlightedIndex];this.highlightSnippet(l);this.ensureVisible(l)}};
_.W.onKeyUp=function(l){var D=this;Jcq(l)&&(l.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Tn.cancelJob(this.inputTimerId),this.inputTimerId=_.Tn.addLowPriorityJob(function(){D.typedValue&&(D.fetchSnippets(D.typedValue),D.logInputGesture(D.data))},1E3))};
_.W.onClick=function(l){(l=_.jBy(l.target,null,"snippet-item"))&&this.selectSnippet(l)};
_.W.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.W.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.W.ready=function(){var l=this;this.inputElement.addEventListener("focus",function(){l.snippetsWrapper.style.removeProperty("display")})};
_.W.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.W.getSourceTimelines=function(){if(!this.data)return[];var l=[];if(this.data.searchInVideoSources)for(var D=_.B(this.data.searchInVideoSources),U=D.next();!U.done;U=D.next())U=U.value,U==="SEARCH_IN_VIDEO_SOURCE_ASR"?l.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):U==="SEARCH_IN_VIDEO_SOURCE_OCR"&&l.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return l};
_.W.fetchSnippets=function(l){var D=_.Vh(this.hostElement,"yt-get-current-video-id-action")[0],U=this.getSourceTimelines();l={getSearchInVideoCommand:{externalVideoId:D,query:l!=null?l:"",sourceTimelines:U},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}})};
_.W.filterSnippets=function(l,D){var U=this;if(D){this.filteredSnippets=(0,_.we.unsafeClone)(l);var n=RegExp(_.t5s(D),"i");this.filteredSnippets=this.filteredSnippets.filter(function(C){return n.test(U.ytRendererBehavior.getSimpleString(C.snippet))});
l=_.B(this.filteredSnippets);for(var y=l.next();!y.done;y=l.next()){y=y.value;var A=this.ytRendererBehavior.getSimpleString(y.snippet);y.snippet={runs:[{text:A.substring(0,A.toLowerCase().indexOf(D))},{text:A.substring(A.toLowerCase().indexOf(D),A.toLowerCase().indexOf(D)+D.length),bold:!0},{text:A.substring(A.toLowerCase().indexOf(D)+D.length,A.length)}]}}}else this.filteredSnippets=l};
_.W.onUpdateSearchInVideoResults=function(l){if(!(this.snippets.length>0)){var D,U,n;if((n=(D=_.M(l,dKq))==null?void 0:(U=D.results)==null?void 0:U.length)!=null&&n){var y;this.filteredSnippets=this.snippets=((y=_.M(l,dKq))==null?void 0:y.results).map(function(A){var C,h,b;return{startMs:A==null?void 0:(C=A.searchInVideoResultRenderer)==null?void 0:C.startMs,startTimeText:A==null?void 0:(h=A.searchInVideoResultRenderer)==null?void 0:h.startTimeText,snippet:A==null?void 0:(b=A.searchInVideoResultRenderer)==
null?void 0:b.snippet}})}}};
_.W.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};
_.W.highlightSnippet=function(l){l.classList.add("highlighted")};
_.W.removeSnippetHighlight=function(l){l.classList.remove("highlighted")};
_.W.selectSnippet=function(l){this.typedValue=String(l.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(l);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.W.ensureVisible=function(l){var D=this.snippetsWrapper.scrollTop,U=D+this.snippetsWrapper.clientHeight,n=l.offsetTop-this.snippetsWrapper.offsetTop;l=n+l.clientHeight;n<D?this.snippetsWrapper.scrollTop-=D-n:l>U&&(this.snippetsWrapper.scrollTop+=l-U)};
_.W.seekPlayer=function(l){var D,U;return _.P(function(n){if(n.nextAddress==1){if(!l)return n.jumpTo(0);D=Number(l.dataset.startOffset);return n.yield(_.IL().getPlayerPromise(),3)}U=n.yieldResult;U.seekTo(D/1E3,!0);U.wakeUpControls();_.Kz(n)})};
_.W.logInputGesture=function(l){var D=_.t6();D&&(l==null?0:l.trackingParams)&&_.f3(D,_.v9(l.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.W.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("typed-value-changed",this.typedValue))};
_.W.updateTypedValueFromBinding=function(l){this.typedValue=l.currentTarget.value};
rW.prototype.typedValueChangedForBinding=rW.prototype.typedValueChangedForBinding;rW.prototype.dataChanged=rW.prototype.dataChanged;rW.prototype.panelContentVisibleChanged=rW.prototype.panelContentVisibleChanged;rW.prototype.onClick=rW.prototype.onClick;rW.prototype.onKeyUp=rW.prototype.onKeyUp;rW.prototype.onKeyDown=rW.prototype.onKeyDown;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],rW.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],rW.prototype,"data",void 0);_.E([_.K({value:[]}),_.T("design:type",Array)],rW.prototype,"snippets",void 0);_.E([_.K({value:[]}),_.T("design:type",Array)],rW.prototype,"filteredSnippets",void 0);_.E([_.K({value:[]}),_.T("design:type",Array)],rW.prototype,"snippetElements",void 0);
_.E([_.gP("#siv-input"),_.T("design:type",HTMLElement)],rW.prototype,"inputElement",void 0);_.E([_.gP("#siv-snippets-wrapper"),_.T("design:type",HTMLElement)],rW.prototype,"snippetsWrapper",void 0);_.E([_.K(),_.T("design:type",String)],rW.prototype,"typedValue",void 0);_.E([_.K({value:-1}),_.T("design:type",Number)],rW.prototype,"highlightedIndex",void 0);_.E([_.hj("keydown"),_.T("design:type",Function),_.T("design:paramtypes",[_.ee]),_.T("design:returntype")],rW.prototype,"onKeyDown",null);
_.E([_.hj("keyup"),_.T("design:type",Function),_.T("design:paramtypes",[_.ee]),_.T("design:returntype")],rW.prototype,"onKeyUp",null);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],rW.prototype,"onClick",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],rW.prototype,"panelContentVisible",void 0);
_.E([_.Pg("panelContentVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rW.prototype,"panelContentVisibleChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rW.prototype,"dataChanged",null);_.E([_.Pg("typedValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],rW.prototype,"typedValueChangedForBinding",null);
_.E([_.x({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],rW);
_.r(rW,"ytd-search-in-video-renderer",function(){if(q1D!==void 0)return q1D;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return q1D=l},{mode:1});var MnO;var zE=function(){return _.p.apply(this,arguments)||this};
_.Z(zE,_.p);zE.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
zE.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]]"}}}}}};
zE.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var l,D,U,n,y=(D=_.M((l=this.data)==null?void 0:l.onClickCommand,_.t5r))==null?void 0:(U=D.item)==null?void 0:(n=U.notificationTextRenderer)==null?void 0:n.successResponseText;y&&_.blo(this.hostElement,y)}};
_.QP.Object.defineProperties(zE.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n;return this.isProductPlaceholder&&((l=this.data)==null?void 0:(D=l.hiddenProductOptions)==null?void 0:D.showDropCountdown)&&!!((U=this.data)==null?0:(n=U.hiddenProductOptions)==null?0:n.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var l;return!this.isProductPlaceholder&&!((l=this.data)==null?0:l.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var l,D;return!((l=this.data)==null?0:l.priceReplacementText)&&!((D=this.data)==null||!D.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],zE.prototype,"componentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],zE.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("isProductPlaceholder"),_.T("design:type",Object),_.T("design:paramtypes",[])],zE.prototype,"useCenterLayoutContainer",null);_.E([_.K({computed:"computeButtonOverride(data)"}),_.T("design:type",Object)],zE.prototype,"buttonOverride",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],zE.prototype,"isProductPlaceholder",null);
_.E([_.t("isProductPlaceholder"),_.T("design:type",Object),_.T("design:paramtypes",[])],zE.prototype,"showDropCountdown",null);_.E([_.t("isProductPlaceholder","data"),_.T("design:type",Object),_.T("design:paramtypes",[])],zE.prototype,"showBrandName",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],zE.prototype,"showPriceReplacementText",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],zE.prototype,"showPrice",null);
_.E([_.t("isProductPlaceholder"),_.T("design:type",Object),_.T("design:paramtypes",[])],zE.prototype,"showMetadata",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],zE);
_.r(zE,"ytd-product-list-item-renderer",function(){if(MnO!==void 0)return MnO;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return MnO=l},{mode:1});var RXT;var fa=function(){return _.p.apply(this,arguments)||this};
_.Z(fa,_.p);fa.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
fa.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
fa.prototype.panelContentVisibleChanged=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return l.playerApi?U.jumpTo(2):U.yield(_.IL().getPlayerPromise(),3);U.nextAddress!=2&&(l.playerApi=U.yieldResult);(D=l.playerApi)==null||D.productsInVideoVisibilityUpdated(!!l.panelContentVisible);_.Kz(U)})};
fa.prototype.panelContentVisibleChanged=fa.prototype.panelContentVisibleChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],fa.prototype,"panelContentVisible",void 0);_.E([_.K(),_.T("design:type",Object)],fa.prototype,"data",void 0);
_.E([_.Pg("panelContentVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype",Promise)],fa.prototype,"panelContentVisibleChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],fa);
_.r(fa,"ytd-product-list-renderer",function(){if(RXT!==void 0)return RXT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return RXT=l},{mode:1});var ZAO;var $y=function(){var l=_.p.apply(this,arguments)||this;l.hideTimestamps=!!_.MN("hide-transcript-timestamps");l.currentCueIndex=-1;l.flatCues=[];l.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};l.TEST_ONLY={getFlatCues:function(){return l.flatCues}};
return l};
_.Z($y,_.p);_.W=$y.prototype;_.W.hideTimestampsChanged=function(){_.qN("hide-transcript-timestamps",this.hideTimestamps)};
_.W.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.W.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.W.dataChanged=function(){var l;if((l=this.data)!=null&&l.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;l=_.B(this.data.cueGroups);for(var D=l.next();!D.done;D=l.next()){D=_.B(_.M(D.value,KdC).cues);for(var U=D.next();!U.done;U=D.next())this.flatCues.push(Number(_.M(U.value,cch).startOffsetMs))}}};
_.W.onYtPlayerTimeChanged=function(l){if(!(l<0)){for(var D=this.currentCueIndex,U=D;;){var n=U>=0?this.flatCues[U]/1E3:-1;if(l+.5<n)--U;else if(n=U+1<this.flatCues.length?this.flatCues[U+1]/1E3:Infinity,l+.5>n)U+=1;else break}U!==D&&(D>=0&&((l=this.getCueElement(D))&&l.classList.remove("active"),(D=this.getCueGroupElement(D))&&D.classList.remove("active")),(D=this.getCueElement(U))&&D.classList.add("active"),(D=this.getCueGroupElement(U))&&D.classList.add("active"),this.currentCueIndex=U,this.isHovered||
this.scrollElementToTop(U))}};
_.W.scrollElementToTop=function(l){l=this.getCueElement(l>=3?l-3:0);this.hostElement.scrollTop=Math.min(l.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.W.getCueElement=function(l){return _.iJ(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[l]+'"]')};
_.W.getCueGroupElement=function(l){return(l=this.getCueElement(l))&&l.parentElement?l.parentElement.parentElement:null};
_.W.onTap=function(l){var D=_.NN(l);l.target.classList.contains("cue")&&this.seekCueElement(D)};
_.W.onKeyPress=function(l){l.keyCode==13&&(l=_.jBy(l.target,null,"cue"))&&this.seekCueElement(l)};
_.W.seekCueElement=function(l){l=Number(l.getAttribute("start-offset"));_.Vh(this.hostElement,"yt-transcript-player-seek",[l/1E3])};
_.W.onMouseEnter=function(){this.isHovered=!0};
_.W.onMouseLeave=function(){this.isHovered=!1};
$y.prototype.onMouseLeave=$y.prototype.onMouseLeave;$y.prototype.onMouseEnter=$y.prototype.onMouseEnter;$y.prototype.onKeyPress=$y.prototype.onKeyPress;$y.prototype.onTap=$y.prototype.onTap;$y.prototype.dataChanged=$y.prototype.dataChanged;$y.prototype.hideTimestampsChanged=$y.prototype.hideTimestampsChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],$y.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$y.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],$y.prototype,"hideTimestamps",void 0);_.E([_.K(),_.T("design:type",Boolean)],$y.prototype,"isHovered",void 0);_.E([_.Pg("hideTimestamps"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$y.prototype,"hideTimestampsChanged",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$y.prototype,"dataChanged",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],$y.prototype,"onTap",null);_.E([_.hj("keypress"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],$y.prototype,"onKeyPress",null);
_.E([_.hj("mouseenter"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$y.prototype,"onMouseEnter",null);_.E([_.hj("mouseleave"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$y.prototype,"onMouseLeave",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],$y);
_.r($y,"ytd-transcript-body-renderer",function(){if(ZAO!==void 0)return ZAO;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ZAO=l},{mode:1});var eXh;var N0=function(){var l=_.p.apply(this,arguments)||this;l.darkerPanels=_.q("web_watch_darker_panels");return l};
_.Z(N0,_.p);N0.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],N0.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],N0.prototype,"darkerPanels",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],N0);
_.r(N0,"ytd-transcript-footer-renderer",function(){if(eXh!==void 0)return eXh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return eXh=l},{mode:1});var mMk;var amT;var sw=function(){var l=_.p.apply(this,arguments)||this;l.systemIcons=_.q("kevlar_system_icons");l.showClearButton=!1;return l};
_.Z(sw,_.p);_.W=sw.prototype;_.W.handleInput=function(l){var D=this;l.target.value.length?_.Fs(this,"ytdTranscriptSearchBoxSearch",function(){D.emitSearchEvent(l)},500):(_.R_K(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=l.target.value.length>0};
_.W.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.W.handleClick=function(){var l,D=(l=this.data)==null?void 0:l.trackingParams;D&&_.jm(_.he(),D)};
_.W.handleClear=function(){_.R_K(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var l,D,U=(D=_.M((l=this.data)==null?void 0:l.clearButton,_.yn))==null?void 0:D.trackingParams;U&&_.jm(_.he(),U);this.clear()};
_.W.emitSearchEvent=function(l){_.O9(this.hostElement,"yt-transcript-search-box-search",{query:l.target.value});var D,U;(l=(U=_.M((D=this.data)==null?void 0:D.searchButton,_.yn))==null?void 0:U.trackingParams)&&_.jm(_.he(),l)};
_.W.emitClearEvent=function(){_.O9(this.hostElement,"yt-transcript-search-box-clear")};
_.QP.Object.defineProperties(sw.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.iJ(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],sw.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],sw.prototype,"systemIcons",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],sw);
_.r(sw,"ytd-transcript-search-box-renderer",function(){if(amT!==void 0)return amT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return amT=l},{mode:1});var tnT;var XdC;var Ew=function(){return _.p.apply(this,arguments)||this};
_.Z(Ew,_.p);Ew.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var l,D;this.sectionHeaderAriaLabel=(l=this.data)==null?void 0:(D=l.accessibility)==null?void 0:D.accessibilityData.label}};
Ew.prototype.fireSelectedEvent=function(l){_.O9(this.hostElement,"ytd-transcript-section-header",{startMs:l})};
Ew.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Ew.prototype.handleKeyPress=function(l){this.data&&l.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.QP.Object.defineProperties(Ew.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=(l=this.data)==null?void 0:l.enableTappableTranscriptHeader)!=null?D:!1}}});
Ew.prototype.dataChanged=Ew.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],Ew.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],Ew.prototype,"sectionHeaderAriaLabel",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ew.prototype,"enableTappableTranscriptHeader",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ew.prototype,"dataChanged",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Ew);
_.r(Ew,"ytd-transcript-section-header-renderer",function(){if(XdC!==void 0)return XdC;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return XdC=l},{mode:1});var S1I;var k7T;var TE=function(){var l=_.p.apply(this,arguments)||this;l.isEditMode=!1;l.touchCaptionsEnabled=!1;l.deleteCaptionCorrectionPopupCommand=null;l.voteCaptionCorrectionPopupCommand=null;l.roundedContainer=!0;l.mouseOver=!1;l.textChanged=!1;l.messages={suggest_correction:_.C3("suggest_correction",void 0,"Edit caption"),suggested_caption:_.C3("suggested_caption",void 0,"Suggested caption"),submit_correction:_.C3("submit_correction",void 0,"Submit for review"),cancel_correction:_.C3("cancel_correction",
void 0,"Cancel"),replay_segment:_.C3("replay_segment",void 0,"Re-play segment"),delete_correction:_.C3("delete_correction",void 0,"Delete correction")};l.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return l};
_.Z(TE,_.p);_.W=TE.prototype;_.W.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)};
_.W.handleDelete=function(l){if(this.deleteCaptionCorrectionPopupCommand){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);D&&this.ytdOpenPopupBehavior.openPopup(D);l.stopPropagation()}};
_.W.handleSubmit=function(l){if(this.data&&this.data.submitCaptionCorrectionCommand&&(l.stopPropagation(),this.textChanged)){var D;l=(D=_.M(this.data.submitCaptionCorrectionCommand,_.cQ8))==null?void 0:D.params;D=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:l,correctionText:String(this.ironTextAreaElement.value),originalText:_.Nl(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(D);this.isEditMode=!1}};
_.W.handleUpdateSegmentText=function(l){(l=_.M(l,HtD))&&l.targetId&&this.data&&l.targetId===this.data.targetId&&(l.userCorrection&&(this.editedText=l.userCorrection),l.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Nl(this.data.snippet)),l.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=l.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=l.voteCaptionCorrectionPopupCommand?
l.voteCaptionCorrectionPopupCommand:null,l.accessibility&&(this.segmentAriaLabel=l.accessibility.accessibilityData.label))};
_.W.handleCancel=function(l){this.isEditMode=!1;l.stopPropagation();this.logClientVe(159409)};
_.W.handleEditSegmentCommand=function(l){(l=_.M(l,IJD))&&l.targetId&&this.data&&l.targetId===this.data.targetId&&this.handleEdit()};
_.W.handleEditButtonClick=function(l){this.data&&(this.handleEdit(),l.stopPropagation())};
_.W.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var l;(l=this.ironTextAreaElement.textarea)==null||l.focus();this.logClientVe(159407)}};
_.W.handleMouseEnter=function(){this.mouseOver=!0};
_.W.handleMouseLeave=function(){this.mouseOver=!1};
_.W.handleReplay=function(l){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),l.stopPropagation(),this.logClientVe(159408))};
_.W.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()))};
_.W.handleKeypress=function(l){this.data&&(this.isEditMode?l.stopPropagation():this.isEnterPress(l)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(l)&&this.logClientVe(138758))};
_.W.handleTextboxClick=function(l){l.stopPropagation()};
_.W.handleTextboxKeydown=function(l){this.isControlEnterPress(l)?this.handleSubmit(l):l.key==="Escape"&&this.handleCancel(l)};
_.W.handleTextboxKeyup=function(){this.textChanged=_.Nl(this.latestText)!==String(this.ironTextAreaElement.value)};
_.W.fireSelectedEvent=function(l){_.O9(this.hostElement,"yt-transcript-segment-selected",{startMs:l})};
_.W.fireReplayEvent=function(l,D){_.O9(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(l-100,0),endMs:D})};
_.W.fireEditEvent=function(l,D){_.O9(this.hostElement,"yt-transcript-segment-edit",{startMs:l,endMs:D})};
_.W.isEnterPress=function(l){return l.key==="Enter"||l.code==="Enter"||l.code==="NumpadEnter"||l.keyCode===13?!0:!1};
_.W.isControlEnterPress=function(l){var D=l.key==="Enter"||l.code==="Enter"||l.code==="NumpadEnter"||l.keyCode===13;return(l.ctrlKey||l.metaKey)&&D};
_.W.isCopyPress=function(l){var D=l.ctrlKey;return l.key==="c"&&D};
_.W.logClick=function(){var l,D=(l=this.data)==null?void 0:l.trackingParams;D&&_.jm(_.he(),D)};
_.W.logClientVe=function(l){_.xM(_.he(),_.UE(l))};
_.QP.Object.defineProperties(TE.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}}});
TE.prototype.handleMouseLeave=TE.prototype.handleMouseLeave;TE.prototype.handleMouseEnter=TE.prototype.handleMouseEnter;TE.prototype.dataChanged=TE.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],TE.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],TE.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],TE.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],TE.prototype,"isEditMode",void 0);_.E([_.K(),_.T("design:type",Object)],TE.prototype,"touchCaptionsEnabled",void 0);_.E([_.K(),_.T("design:type",Object)],TE.prototype,"editedText",void 0);_.E([_.K(),_.T("design:type",Object)],TE.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.E([_.K(),_.T("design:type",Object)],TE.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.E([_.K(),_.T("design:type",String)],TE.prototype,"segmentAriaLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],TE.prototype,"roundedContainer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],TE.prototype,"mouseOver",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],TE.prototype,"textChanged",void 0);_.E([_.K(),_.T("design:type",Object)],TE.prototype,"messages",void 0);
_.E([_.gP("#suggestion"),_.T("design:type",Object)],TE.prototype,"ironTextAreaElement",void 0);_.E([_.t("data","editedText"),_.T("design:type",Object),_.T("design:paramtypes",[])],TE.prototype,"latestText",null);_.E([_.t("touchCaptionsEnabled","isEditMode"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TE.prototype,"enableEditButton",null);
_.E([_.t("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],TE.prototype,"enableUndoButton",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TE.prototype,"dataChanged",null);_.E([_.hj("mouseenter"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TE.prototype,"handleMouseEnter",null);
_.E([_.hj("mouseleave"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],TE.prototype,"handleMouseLeave",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],TE);
_.r(TE,"ytd-transcript-segment-renderer",function(){if(k7T!==void 0)return k7T;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return k7T=l},{mode:1});var IU=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};l.isError=!1;l.darkerPanels=_.q("web_watch_darker_panels");l.useParentMaxHeight=_.q("web_watch_transscript_use_parent_max_height");l.segmentOffsets=[];l.segmentIndex=-1;return l};
_.Z(IU,_.p);_.W=IU.prototype;_.W.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"}}}}};
_.W.segmentsChanged=function(){this.updateOffsets()};
_.W.onYtPlayerTimeChanged=function(l){for(var D=this.segmentIndex,U=D;;){if(U>=0){var n=this.segmentOffsets[U].start;var y=this.segmentOffsets[U].isAutoScrollable}else n=-1,y=!0;var A=l+.5;if(!y){n=U+1<this.segmentOffsets.length?this.segmentOffsets[U+1].start:Infinity;if(A>=n){U+=1;continue}U=-1;break}if(A<n)n=U-1>=0&&this.segmentOffsets[U-1].isAutoScrollable,y=U===0||n?1:2,U-=y;else if(y=U+1<this.segmentOffsets.length&&this.segmentOffsets[U+1].isAutoScrollable?1:2,n=U+y<this.segmentOffsets.length?
this.segmentOffsets[U+y].start:Infinity,A>n)U+=y;else{if(U<0)break;U<this.segmentOffsets.length&&A>this.segmentOffsets[U].end&&(U=-1);break}}if(D!==U){if(D>=0){var C;(C=this.getSegmentElement(D))==null||C.classList.remove("active")}this.segmentIndex=U;if(!(U<0)){var h;(h=this.getSegmentElement(U))==null||h.classList.add("active");this.isHovered||this.scrollElementToTop(U)}}};
_.W.handleSegmentEdit=function(l){l.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=l.target,_.Vh(this.hostElement,"yt-transcript-player-edit",[l.detail.startMs/1E3,l.detail.endMs/1E3]))};
_.W.handleSegmentSelected=function(l){_.Vh(this.hostElement,"yt-transcript-player-seek",[l.detail.startMs/1E3])};
_.W.handleSegmentReplay=function(l){_.Vh(this.hostElement,"yt-transcript-player-replay",[l.detail.startMs/1E3,l.detail.endMs/1E3])};
_.W.handleSectionHeaderSelected=function(l){_.Vh(this.hostElement,"yt-transcript-player-seek",[l.detail.startMs/1E3])};
_.W.onMouseEnter=function(){this.isHovered=!0};
_.W.onMouseLeave=function(){this.isHovered=!1};
_.W.onRetryButtonClick=function(){_.O9(this.hostElement,"transcript-retry-button-click")};
_.W.getSegmentElement=function(l){return _.iJ(this.hostElement).querySelector(":nth-child("+(l+1)+")")};
_.W.scrollElementToTop=function(l){l=this.getSegmentElement(l>=2?l-2:0);this.hostElement.scrollTop=Math.min(l.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.W.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(l){var D,U=(D=l.transcriptSegmentRenderer)!=null?D:l.transcriptSectionHeaderRenderer;return{start:Number(U.startMs)/1E3,end:Number(U.endMs)/1E3,isAutoScrollable:l.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.W.clearHighlightedSegments=function(){var l=_.iJ(this.hostElement);l=_.B(l.querySelectorAll("ytd-transcript-segment-renderer"));for(var D=l.next();!D.done;D=l.next())D.value.classList.remove("active")};
_.QP.Object.defineProperties(IU.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:l.searchResultSegments)||((D=this.data)==null?void 0:D.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
IU.prototype.onMouseLeave=IU.prototype.onMouseLeave;IU.prototype.onMouseEnter=IU.prototype.onMouseEnter;IU.prototype.handleSectionHeaderSelected=IU.prototype.handleSectionHeaderSelected;IU.prototype.handleSegmentReplay=IU.prototype.handleSegmentReplay;IU.prototype.handleSegmentSelected=IU.prototype.handleSegmentSelected;IU.prototype.handleSegmentEdit=IU.prototype.handleSegmentEdit;IU.prototype.segmentsChanged=IU.prototype.segmentsChanged;
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],IU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],IU.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],IU.prototype,"isError",void 0);
_.E([_.K(),_.T("design:type",Object)],IU.prototype,"noResultLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],IU.prototype,"darkerPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],IU.prototype,"useParentMaxHeight",void 0);_.E([_.t("data"),_.T("design:type",Array),_.T("design:paramtypes",[])],IU.prototype,"segments",null);
_.E([_.t("segments","noResultLabel"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],IU.prototype,"displayNoResults",null);_.E([_.Pg("segments"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],IU.prototype,"segmentsChanged",null);_.E([_.hj("yt-transcript-segment-edit"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],IU.prototype,"handleSegmentEdit",null);
_.E([_.hj("yt-transcript-segment-selected"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],IU.prototype,"handleSegmentSelected",null);_.E([_.hj("yt-transcript-segment-replay"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],IU.prototype,"handleSegmentReplay",null);
_.E([_.hj("ytd-transcript-section-header"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],IU.prototype,"handleSectionHeaderSelected",null);_.E([_.hj("mouseenter"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],IU.prototype,"onMouseEnter",null);_.E([_.hj("mouseleave"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],IU.prototype,"onMouseLeave",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],IU);
_.r(IU,"ytd-transcript-segment-list-renderer",function(){if(S1I!==void 0)return S1I;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return S1I=l},{mode:1});var HD=function(){var l=_.p.apply(this,arguments)||this;l.hideTimestamps=!!_.MN("hide-transcript-timestamps");l.isLoadingTranscripts=!1;l.darkerPanels=_.q("web_watch_darker_panels");l.isError=!1;l.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return l};
_.Z(HD,_.p);_.W=HD.prototype;_.W.headerChanged=function(){var l,D;this.baseGetTranscriptsCommand=(D=_.M((l=this.data)==null?void 0:l.header,YGC))==null?void 0:D.onTextChangeCommand};
_.W.bodyChanged=function(){var l=this.getBodyRenderer();l&&(l.initialSegments&&(this.initialTranscriptsRenderer=l),l.noResultLabel&&(this.noResultLabel=l.noResultLabel),l.retryLabel&&(this.retryLabel=l.retryLabel))};
_.W.detached=function(){this.clearSearchBoxText()};
_.W.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.W.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"}}}};
_.W.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.W.fireSearch=function(l){var D=this;if(l){var U=l.detail.query;if(this.baseGetTranscriptsCommand){var n;l=(n=_.M(this.baseGetTranscriptsCommand,_.dTH))==null?void 0:n.params;var y;n=_.M((y=this.data)==null?void 0:y.footer,pSH);var A;if((y=(A=_.M(n==null?void 0:n.languageMenu,EZ1))==null?void 0:A.subMenuItems)&&y.length>0&&(A=y.find(function(b){return b.selected}))){var C,h;
l=(C=A.continuation)==null?void 0:(h=C.reloadContinuationData)==null?void 0:h.continuation}C=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:l,searchQuery:U}});this.ytComponentBehavior.resolveCommand(C,{commandController:{onServerError:function(){D.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});gZT(this.ytContinuationHandlerBehavior,function(){return U===D.getCurrentSearchBoxText()})}}};
_.W.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.W.onRetryButtonClick=function(){this.isError=!1;var l={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:l}))};
_.W.hideTimestampsChanged=function(){_.qN("hide-transcript-timestamps",this.hideTimestamps)};
_.W.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.W.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.W.handleSignalActionCopyTranscript=function(){var l=this,D=this.getBodyRenderer();D&&(D=((D==null?void 0:D.searchResultSegments)||(D==null?void 0:D.initialSegments)||[]).map(function(U){return _.M(U,V_C)}).filter(function(U){return!!U}).map(function(U){return{snippet:U.snippet||{runs:[{text:""}]},
startTimeText:U.startTimeText||{simpleText:""}}}).map(function(U){var n=(U.snippet.runs||[]).reduce(function(y,A){return y+A.text},"");
return l.hideTimestamps?n:U.startTimeText.simpleText+" "+n}).join("\n"),this.copyToClipboard(D))};
_.W.copyToClipboard=function(l){navigator.clipboard&&navigator.clipboard.writeText(l)};
_.W.getCurrentSearchBoxText=function(){var l;return(l=this.searchBox)==null?void 0:l.value};
_.W.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.W.getBodyRenderer=function(){var l;return _.M((l=this.data)==null?void 0:l.body,Otg)};
_.W.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.QP.Object.defineProperties(HD.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.iJ(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
HD.prototype.hideTimestampsChanged=HD.prototype.hideTimestampsChanged;HD.prototype.searchCleared=HD.prototype.searchCleared;HD.prototype.fireSearch=HD.prototype.fireSearch;HD.prototype.onReloadContinuationFinish=HD.prototype.onReloadContinuationFinish;HD.prototype.bodyChanged=HD.prototype.bodyChanged;HD.prototype.headerChanged=HD.prototype.headerChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],HD.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.vf),_.T("design:type",Object)],HD.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],HD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],HD.prototype,"hideTimestamps",void 0);
_.E([_.K(),_.T("design:type",Object)],HD.prototype,"isLoadingTranscripts",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],HD.prototype,"darkerPanels",void 0);_.E([_.K(),_.T("design:type",Object)],HD.prototype,"isError",void 0);_.E([_.Pg("data.header"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HD.prototype,"headerChanged",null);
_.E([_.GY("data.body"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HD.prototype,"bodyChanged",null);_.E([_.hj("yt-reload-continuation-finish"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HD.prototype,"onReloadContinuationFinish",null);_.E([_.hj("yt-transcript-search-box-search"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],HD.prototype,"fireSearch",null);
_.E([_.hj("yt-transcript-search-box-clear"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HD.prototype,"searchCleared",null);_.E([_.Pg("hideTimestamps"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HD.prototype,"hideTimestampsChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],HD);
_.r(HD,"ytd-transcript-search-panel-renderer",function(){if(tnT!==void 0)return tnT;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return tnT=l},{mode:1});var Yy=function(){var l=_.p.apply(this,arguments)||this;l.player=null;l.playerPollJobId=0;return l};
_.Z(Yy,_.p);_.W=Yy.prototype;_.W.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.W.onLoadReloadContinuation=function(l){_.q("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:l.target.data.continuation}}):(l={clickTrackingParams:l.target.data.clickTrackingParams,getTranscriptEndpoint:{params:l.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}}))};
_.W.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"}}}};
_.W.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.W.attached=function(){this.updatePlayerListening()};
_.W.detached=function(){this.updatePlayerListening()};
_.W.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.W.startPlayerListening=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return(D=_.T4())?U.yield(D.getPlayerPromise(),2):U.return();l.player=U.yieldResult;l.playerPollJobId=_.Tn.addLowPriorityJob(function(){l.getPlayerVideoProgress()},1E3);
l.player.addEventListener("onCueRangeEnter",function(n){l.onCueRangeEnter(n)});
l.player.addEventListener("onCueRangeExit",function(n){l.onCueRangeExit(n)});
l.player.addEventListener("onStateChange",function(n){l.onPlayerStateChange(n)});
l.player.addEventListener("SEEK_TO",function(n){l.onPlayerSeek(n)});
_.Kz(U)})};
_.W.getPlayerVideoProgress=function(){var l=this;_.Tn.cancelJob(this.playerPollJobId);if(this.player){var D=this.player.getCurrentTime();_.Vh(this.hostElement,"yt-player-time-changed",[D])}this.playerPollJobId=_.Tn.addLowPriorityJob(function(){l.getPlayerVideoProgress()},1E3)};
_.W.stopPlayerListening=function(){this.player=null;_.Tn.cancelJob(this.playerPollJobId)};
_.W.onPlayerStateChange=function(l){l===2&&this.removePendingCue()};
_.W.onPlayerSeek=function(l){var D;if(D=this.pendingReplayCueId)D=this.pendingReplayCueId,D=l===(_.q("web_transcript_cue_id_killswitch")?Number(D):Number(D.split("_")[1]));D||this.removePendingCue()};
_.W.onCueRangeEnter=function(l){Kvw(l)&&(this.pendingReplayCueId=l)};
_.W.onCueRangeExit=function(l){Kvw(l)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.W.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.W.onYtTranscriptPlayerSeek=function(l){this.player&&this.player.seekTo(l,!0)};
_.W.onYtTranscriptPlayerReplay=function(l,D){this.player&&(this.player.addCueRange(d1C(l),l,D),this.player.seekTo(l,!0),this.player.playVideo())};
_.W.onYtTranscriptPlayerEdit=function(l,D){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(d1C(l),l,D),this.player.seekTo(l,!0))};
Yy.prototype.onLoadReloadContinuation=Yy.prototype.onLoadReloadContinuation;Yy.prototype.panelContentVisibleChanged=Yy.prototype.panelContentVisibleChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Yy.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Yy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Yy.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Yy.prototype,"panelContentVisible",void 0);_.E([_.Pg("panelContentVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Yy.prototype,"panelContentVisibleChanged",null);
_.E([_.hj("yt-load-reload-continuation"),_.T("design:type",Function),_.T("design:paramtypes",[Object]),_.T("design:returntype")],Yy.prototype,"onLoadReloadContinuation",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Yy);
_.r(Yy,"ytd-transcript-renderer",function(){if(mMk!==void 0)return mMk;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return mMk=l},{mode:1});var dMc;var KEO;var Ow=function(){return _.p.apply(this,arguments)||this};
_.Z(Ow,_.p);Ow.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.DP(this.hostElement,[this.data.clickCommand],this.hostElement))};
Ow.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Ih)()+_.jO)+"px)"};
Ow.prototype.updateShouldHideFromBinding=function(l){this.shouldHide=l.detail.value};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ow.prototype,"rendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ow.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],Ow.prototype,"shouldHide",void 0);_.E([_.x({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Ow);
_.r(Ow,"ytd-ad-engagement-panel-banner-renderer",function(){if(KEO!==void 0)return KEO;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return KEO=l},{mode:_.Vj("kevlar_poly_si_batch_j070")?1:2});var cH1;var VY=function(){var l=_.p.apply(this,arguments)||this;l.buttonUpdate=_.q("web_modern_buttons");l.adsSemanticText=_.q("enable_ads_web_ep_buenos_aires_and_padding_fix");return l};
_.Z(VY,_.p);VY.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.E([_.K(),_.T("design:type",Object)],VY.prototype,"data",void 0);_.E([_.K({computed:"computeHideDefaultAdBadge(data)"}),_.T("design:type",Boolean)],VY.prototype,"hideDefaultAdBadge",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VY.prototype,"buttonUpdate",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VY.prototype,"adsSemanticText",void 0);_.E([_.x({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],VY);
_.r(VY,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(cH1!==void 0)return cH1;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return cH1=l},{mode:1});var pdW;var ie=function(){var l=_.p.apply(this,arguments)||this;l.darkerPanels=_.q("web_watch_darker_panels");l.enableSqueezebackPanels=_.q("web_shorts_enable_squeezeback_panels");l.enableAnchoredPanel=_.q("desktop_shorts_v2_anchored_panel");l.headerClickListener=function(D){l.onHeaderClick(D)};
l.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return l};
_.Z(ie,_.p);_.W=ie.prototype;_.W.computeAdsInfoButton=function(){if(_.q("web_modern_buttons")){var l,D;return(D=_.M((l=this.data)==null?void 0:l.subtitleComplex,xKj))==null?void 0:D.adInfoRenderer}};
_.W.updateHeaderClickListener=function(){var l,D,U;((l=this.data)==null?0:l.navigationEndpoint)||((D=this.data)==null?0:D.onClickCommand)||_.M((U=this.data)==null?void 0:U.visibilityButton,_.Ax)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.W.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}}}}}};
_.W.collapsedChanged=function(){var l;(l=this.data)!=null&&l.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.q("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.W.focus=function(l){var D=this;this.titleElement&&_.Tn.addJob(function(){_.CB(D.titleElement,l)},0,500)};
_.W.computeTitleAriaLabel=function(l){var D=[];if(l.title){var U,n;D.push(this.ytRendererBehavior.getSimpleString(l.title)||((U=l.title.accessibility)==null?void 0:(n=U.accessibilityData)==null?void 0:n.label))}l.contextualInfo&&D.push(this.ytRendererBehavior.getSimpleString(l.contextualInfo));return D.join(" ")};
_.W.onHeaderClick=function(l){this.shouldTriggerHeaderClick(l)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.DP(this.hostElement,[this.data.onClickCommand],this.hostElement)):(l=this.getVisibilityToggleButton())&&l.click())};
_.W.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var l=_.M(this.data.visibilityButton,_.yn)||_.M(this.data.visibilityButton,_.Ax);l&&this.ytRendererBehavior.logExplicitClick(l)}};
_.W.getVisibilityToggleButton=function(){var l=_.iJ(this.hostElement).querySelector("#visibility-button").firstElementChild;return(l==null?void 0:l.is)==="ytd-toggle-button-renderer"?l:null};
_.W.shouldTriggerHeaderClick=function(l){return!_.$o(_.$f(l),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.W.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(l){l=_.M(l,_.aJW);this.targetId&&(l==null?void 0:l.targetId)===this.targetId&&(l=l.navigationButton)&&this.set("data.navigationButton",l)};
_.QP.Object.defineProperties(ie.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var l;return!!(((l=this.entity)==null?0:l.isActionButtonHidden)||this.hideActionButton)}}});
ie.prototype.collapsedChanged=ie.prototype.collapsedChanged;ie.prototype.updateHeaderClickListener=ie.prototype.updateHeaderClickListener;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],ie.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ie.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],ie.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ie.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],ie.prototype,"targetId",void 0);_.E([_.K(),_.T("design:type",Boolean)],ie.prototype,"collapsed",void 0);_.E([_.K(),_.T("design:type",Boolean)],ie.prototype,"hideActionButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],ie.prototype,"shortsPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],ie.prototype,"liveChatEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],ie.prototype,"learningChatEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ie.prototype,"darkerPanels",void 0);_.E([_.gP("#title"),_.T("design:type",HTMLElement)],ie.prototype,"titleElement",void 0);_.E([_.gP("#header"),_.T("design:type",HTMLElement)],ie.prototype,"headerElement",void 0);
_.E([_.K({computed:"computeAdsInfoButton(data)"}),_.T("design:type",Object)],ie.prototype,"adsInfoButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ie.prototype,"enableSqueezebackPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ie.prototype,"enableAnchoredPanel",void 0);_.E([_.K({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(l,D){return _.yT(l.entities,"engagementPanelTitleHeaderEntity",D)}}),
_.T("design:type",Object)],ie.prototype,"entity",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("targetId"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ie.prototype,"adsSemanticText",null);_.E([_.Pg("data","data.navigationEndpoint","data.onClickCommand"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ie.prototype,"updateHeaderClickListener",null);
_.E([_.GY("collapsed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ie.prototype,"collapsedChanged",null);_.E([_.t("entity","hideActionButton"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ie.prototype,"isActionButtonHidden",null);_.E([_.x({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],ie);
_.r(ie,"ytd-engagement-panel-title-header-renderer",function(){if(pdW!==void 0)return pdW;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return pdW=l},{mode:1});var xMD;var le=function(){return _.p.apply(this,arguments)||this};
_.Z(le,_.p);le.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],le.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],le.prototype,"data",void 0);_.E([_.x({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],le);
_.r(le,"ytd-macro-markers-info-item-renderer",function(){if(xMD!==void 0)return xMD;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return xMD=l},{mode:1});var j1k;var Di=function(l,D,U,n,y,A){_.xT.call(this);var C=this;this.JSC$23255_containerElement=l;this.hostElement=D;this.supportedSyncItems=U;this.syncEntityKey=n;this.options=y;this.renderLazyListItems=A;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;FEh(this);oYI(this);this.JSC$23255_scrollAnimation=new _.Qz(function(h){l.scrollTop=h});
_.m7(this,this.JSC$23255_scrollAnimation);this.addOnDisposeCallback(function(){wdj(C,!1);C.activeItem&&C.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.Z(Di,_.xT);var FEh=function(l){var D=_.fM(_.Jc().resolve(_.Op),function(U){return U.entities.markersEngagementPanelSyncEntity||{}},function(U,n){var y;
if(U[l.syncEntityKey]!==n[l.syncEntityKey]&&((y=U[l.syncEntityKey])==null?void 0:y.activeItemIndex)!==void 0)if(n=U[l.syncEntityKey].activeItemIndex,U=l.getItemByIndex(n)){if(rHk(l,U),l.contentVisible)if(l.browsingMode){var A;((A=l.options)==null?void 0:A.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(A=zXO(l),U.offsetTop<l.JSC$23255_containerElement.clientHeight+l.JSC$23255_containerElement.scrollTop&&A&&!l.activeItemBelowSyncPosition&&wdj(l,!1));fmw(l)}else l.scrollToItem(U)}else _.II(new _.rc("Could not find "+
l.supportedSyncItems+" sync child to set active.",n,l.JSC$23255_containerElement.querySelectorAll(l.supportedSyncItems).length))});
l.unsubscribeFromTimedMarkersListSyncEntity=D;l.addOnDisposeCallback(D);$Mq(l)},$Mq=function(l){var D=_.Jc().resolve(_.Op);
D=_.uBd(D.getState(),l.syncEntityKey);(D==null?void 0:D.activeItemIndex)!==void 0&&(D=l.getItemByIndex(D.activeItemIndex))&&rHk(l,D)},oYI=function(l){var D=new _.A1(l.onScroll,50,l);
_.m7(l,D);var U=function(){D.fire()};
l.JSC$23255_containerElement.addEventListener("scroll",U);l.addOnDisposeCallback(function(){l.JSC$23255_containerElement.removeEventListener("scroll",U)})};
Di.prototype.getItemByIndex=function(l){var D;(D=this.renderLazyListItems)==null||D.call(this,l);D=this.JSC$23255_containerElement.querySelectorAll(this.supportedSyncItems);if(D.length>l)return D[l]};
var rHk=function(l,D){l.activeItem&&l.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));D.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));l.activeItem=D};
Di.prototype.scrollToItem=function(l){l=this.getScrollPositionForItem(l);this.JSC$23255_containerElement.scrollTop!==l&&this.JSC$23255_scrollAnimation.start(this.JSC$23255_containerElement.scrollTop,l,300)};
Di.prototype.getScrollPositionForItem=function(l){if(this.JSC$23255_containerElement.querySelectorAll(this.supportedSyncItems)[0]===l)return 0;var D,U=((D=this.options)==null?0:D.percentOffset)?this.JSC$23255_containerElement.clientHeight*this.options.percentOffset:0;l=_.NG(l).y+this.JSC$23255_containerElement.scrollTop-(_.NG(this.JSC$23255_containerElement).y+U);return Math.max(0,Math.min(l,this.JSC$23255_containerElement.scrollHeight-this.JSC$23255_containerElement.offsetHeight))};
Di.prototype.onScroll=function(){this.activeItemBelowSyncPosition=zXO(this);if(this.activeItem&&!this.JSC$23255_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23255_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var l;switch((l=this.options)==null?void 0:l.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":Nmc(this,!s1T(this));fmw(this);break;default:Nmc(this,!0)}}};
var Nmc=function(l,D){var U,n;_.P(function(y){if(y.nextAddress==1){if(l.browsingMode)return y.return();l.browsingMode=!0;D&&l.hostElement.classList.add("browsing-mode");l.playerExitBrowsingModeListener=function(){wdj(l,!1)};
return y.yield(_.nq(),2)}U=y.yieldResult;(n=U)==null||n.addEventListener("SEEK_TO",l.playerExitBrowsingModeListener);_.Kz(y)})},wdj=function(l,D){D=D===void 0?!0:D;
l.browsingMode&&(l.browsingMode=!1,l.hostElement.classList.remove("browsing-mode"),D&&l.scrollToItem(l.activeItem),EYj(l))},EYj=function(l){var D,U;
_.P(function(n){if(n.nextAddress==1)return l.playerExitBrowsingModeListener?n.yield(_.nq(),3):n.jumpTo(0);D=n.yieldResult;(U=D)==null||U.removeEventListener("SEEK_TO",l.playerExitBrowsingModeListener);l.playerExitBrowsingModeListener=void 0;_.Kz(n)})},fmw=function(l){var D;
((D=l.options)==null?void 0:D.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(s1T(l)?l.hostElement.classList.remove("browsing-mode"):l.activeItem&&l.hostElement.classList.add("browsing-mode"))},zXO=function(l){if(!l.activeItem)return!1;
var D,U=((D=l.options)==null?0:D.percentOffset)?l.JSC$23255_containerElement.clientHeight*l.options.percentOffset:0;return l.activeItem.offsetTop>=l.JSC$23255_containerElement.scrollTop+U},s1T=function(l){if(!l.activeItem)return!1;
var D=l.activeItem.offsetTop+14<=l.JSC$23255_containerElement.scrollTop+l.JSC$23255_containerElement.clientHeight;return l.activeItem.offsetTop+l.activeItem.clientHeight-14>=l.JSC$23255_containerElement.scrollTop&&D};
Di.prototype.panelContentVisibleChanged=function(l){(this.contentVisible=l)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var TmT=function(l,D){l.syncEntityKey=D;var U;(U=l.unsubscribeFromTimedMarkersListSyncEntity)==null||U.call(l);FEh(l)},Img=function(l,D){l.options=D};var Ux=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return l};
_.Z(Ux,_.p);_.W=Ux.prototype;_.W.detached=function(){var l;(l=this.scrollController)==null||l.dispose();this.scrollController=void 0};
_.W.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"}}}};
_.W.dataChanged=function(){var l=this;_.u6(this,function(){if(l.scrollController){var D;(D=l.scrollController)==null||wdj(D,!1);var U,n,y;(n=l.scrollController)==null||TmT(n,(y=(U=l.data)==null?void 0:U.syncModelEntityKey)!=null?y:"default-macro-markers-list-renderer-entity-key");var A,C,h;(h=l.scrollController)==null||Img(h,{percentOffset:(A=l.data)==null?void 0:A.selectedItemAlignmentPercentOffset,floatingPillType:(C=l.data)==null?void 0:C.floatingPillType})}else{var b,u,Q,G;l.scrollController=
new Di(l.contents,l.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(G=(b=l.data)==null?void 0:b.syncModelEntityKey)!=null?G:"default-macro-markers-list-renderer-entity-key",{percentOffset:(u=l.data)==null?void 0:u.selectedItemAlignmentPercentOffset,floatingPillType:(Q=l.data)==null?void 0:Q.floatingPillType},function(J){l.renderLazyListItems(J)})}l.scrollController.panelContentVisibleChanged(!!l.panelContentVisible)})};
_.W.computeButtonShape=function(){var l=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){l.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.W.renderLazyListItems=function(l){for(var D=this.contents.children,U=0,n=0;n<D.length;n++){var y=void 0;(y=D[n].ytLazyListBehavior)==null||y.fillRemainingListItems();var A=void 0,C=void 0;y=_.M((A=this.data)==null?void 0:(C=A.contents)==null?void 0:C[n],_.uL1);C=A=void 0;if((A=y)==null?0:(C=A.contents)==null?0:C.length)U+=y.contents.length;if(U>=l)break}};
_.W.handleSetActivePanelItemAction=function(l){if((l=_.M(l,XSO))&&this.panelTargetId===l.panelTargetId){l=l.itemIndex;var D,U,n=(U=(D=this.data)==null?void 0:D.syncModelEntityKey)!=null?U:"default-macro-markers-list-renderer-entity-key",y;((y=this.syncEntity)==null?void 0:y.activeItemIndex)!==l&&this.ytdReduxBehavior.dispatch(_.vr("markersEngagementPanelSyncEntity",n,{key:n,activeItemIndex:l}))}};
_.W.onSyncClick=function(){var l;(l=this.scrollController)==null||wdj(l)};
_.W.panelContentVisibleChanged=function(){var l;(l=this.scrollController)==null||l.panelContentVisibleChanged(!!this.panelContentVisible)};
Ux.prototype.panelContentVisibleChanged=Ux.prototype.panelContentVisibleChanged;Ux.prototype.dataChanged=Ux.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Ux.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],Ux.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ux.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],Ux.prototype,"useCustomColors",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],Ux.prototype,"panelTargetId",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Ux.prototype,"panelContentVisible",void 0);
_.E([_.gP("#contents"),_.T("design:type",HTMLElement)],Ux.prototype,"contents",void 0);_.E([_.K({selectorArgs:["data.syncModelEntityKey"],selector:_.uBd}),_.T("design:type",Object)],Ux.prototype,"syncEntity",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ux.prototype,"dataChanged",null);
_.E([_.Pg("panelContentVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ux.prototype,"panelContentVisibleChanged",null);_.E([_.x({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Ux);
_.r(Ux,"ytd-macro-markers-list-renderer",function(){if(j1k!==void 0)return j1k;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return j1k=l},{mode:1});var HAc;var nN=function(){return _.p.apply(this,arguments)||this};
_.Z(nN,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],nN.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],nN.prototype,"data",void 0);_.E([_.x({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],nN);
_.r(nN,"ytd-error-corrections-section-item-renderer",function(){if(HAc!==void 0)return HAc;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return HAc=l},{mode:1});var Y1D;var yM=function(){return _.p.apply(this,arguments)||this};
_.Z(yM,_.p);yM.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],yM.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],yM.prototype,"data",void 0);_.E([_.x({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],yM);
_.r(yM,"ytd-error-corrections-section-renderer",function(){if(Y1D!==void 0)return Y1D;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Y1D=l},{mode:1});var OA1;var Am=function(){return _.p.apply(this,arguments)||this};
_.Z(Am,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Am.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Am.prototype,"data",void 0);_.E([_.x({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Am);
_.r(Am,"ytd-topic-link-renderer",function(){if(OA1!==void 0)return OA1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return OA1=l},{mode:1});var Vng;var Wn=function(){var l=_.p.apply(this,arguments)||this;l.modernLockupV2=_.q("modernize_structured_description_playlist_lockups_v2");return l};
_.Z(Wn,_.p);Wn.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Wn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Wn.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Wn.prototype,"modernLockupV2",void 0);_.E([_.x({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Wn);
_.r(Wn,"ytd-video-description-course-section-renderer",function(){if(Vng!==void 0)return Vng;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Vng=l},{mode:1});var iSk;var Bn=function(){return _.p.apply(this,arguments)||this};
_.Z(Bn,_.p);Bn.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Bn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Bn.prototype,"data",void 0);_.E([_.x({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Bn);
_.r(Bn,"ytd-video-description-files-section-renderer",function(){if(iSk!==void 0)return iSk;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return iSk=l},{mode:1});var lBT;var CN=function(){return _.p.apply(this,arguments)||this};
_.Z(CN,_.p);CN.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],CN.prototype,"data",void 0);_.E([_.x({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],CN);
_.r(CN,"ytd-video-description-gaming-section-renderer",function(){if(lBT!==void 0)return lBT;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return lBT=l},{mode:1});var DEw;var hm=function(){var l=_.p.apply(this,arguments)||this;l.isExpanded=!1;return l};
_.Z(hm,_.p);hm.prototype.computeHasDefaultMetadataEndpoint=function(l){var D;l=l==null?void 0:(D=l.defaultMetadata)==null?void 0:D.runs;return!(!l||l.length!==1||!l[0].navigationEndpoint)};
hm.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.QP.Object.defineProperties(hm.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hm.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],hm.prototype,"isExpanded",void 0);_.E([_.K({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],hm.prototype,"hasDefaultMetadataEndpoint",void 0);
_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],hm.prototype,"isExpandable",null);_.E([_.t("data","isExpandable","isExpanded"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],hm.prototype,"showExpandedMetadata",null);_.E([_.x({is:"ytd-info-row-renderer",disableElementRegistration:!0})],hm);
_.r(hm,"ytd-info-row-renderer",function(){if(DEw!==void 0)return DEw;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return DEw=l},{mode:1});var UEW;var Pn=function(){var l=_.p.apply(this,arguments)||this;l.currentIndex=0;l.supportComponentResize=!0;l.JSC$23284_lastScrollContainerWidth=NaN;return l};
_.Z(Pn,_.p);_.W=Pn.prototype;
_.W.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"}}}};
_.W.getItemsPath=function(){return"videoLockups"};
_.W.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.W.onIronResize=function(){this.updateVideoLockupStyles()};
_.W.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.W.updateVideoLockupStyles=function(){var l;this.JSC$23284_scrollContainer!==void 0&&(l=this.videoLockups)!=null&&l.length&&(l=this.JSC$23284_scrollContainer.clientWidth,l!==this.JSC$23284_lastScrollContainerWidth&&(this.JSC$23284_lastScrollContainerWidth=l,_.Wg(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(l*.8,415)+"px"}),_.O9(this.hostElement,"iron-resize")))};
_.QP.Object.defineProperties(Pn.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var l=[],D;if((D=this.data)==null||!D.carouselLockups)return l;D=_.B(this.data.carouselLockups);for(var U=D.next();!U.done;U=D.next()){U=U.value;var n=void 0;((n=_.M(U,nHw))==null?0:n.videoLockup)&&l.push(_.M(U,nHw).videoLockup)}return l}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.videoLockups)==null||!l.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var l=[],D;if((D=this.data)==null||!D.carouselLockups)return l;var U;return(U=_.M(this.data.carouselLockups[this.scrollCount],nHw))==null?void 0:U.infoRows}}});
Pn.prototype.dataChanged=Pn.prototype.dataChanged;Pn.prototype.onIronResize=Pn.prototype.onIronResize;Pn.prototype.hiddenChanged=Pn.prototype.hiddenChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Pn.prototype,"componentBehavior",void 0);_.E([_.m(_.RH.YtdHorizontalListBehavior),_.T("design:type",Object)],Pn.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Pn.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Pn.prototype,"inlineStructuredDescription",void 0);_.E([_.K({value:2}),_.T("design:type",Number)],Pn.prototype,"initialCount",void 0);_.E([_.K(),_.T("design:type",Object)],Pn.prototype,"currentIndex",void 0);
_.E([_.K(),_.T("design:type",Number)],Pn.prototype,"scrollCount",void 0);_.E([_.K(),_.T("design:type",Object)],Pn.prototype,"supportComponentResize",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Pn.prototype,"contentHidden",void 0);_.E([_.gP("#scroll-container"),_.T("design:type",HTMLDivElement)],Pn.prototype,"JSC$23284_scrollContainer",void 0);
_.E([_.Pg("contentHidden"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Pn.prototype,"hiddenChanged",null);_.E([_.t("data"),_.T("design:type",Array),_.T("design:paramtypes",[])],Pn.prototype,"videoLockups",null);_.E([_.t("videoLockups"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Pn.prototype,"hasVideoLockups",null);
_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Pn.prototype,"onIronResize",null);_.E([_.t("data","scrollCount"),_.T("design:type",Object),_.T("design:paramtypes",[])],Pn.prototype,"infoRows",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Pn.prototype,"dataChanged",null);_.E([_.x({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Pn);
_.r(Pn,"ytd-video-description-music-section-renderer",function(){if(UEW!==void 0)return UEW;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return UEW=l},{mode:_.Vj("kevlar_poly_si_batch_j081")?1:2});var nxg;var be=function(){return _.p.apply(this,arguments)||this};
_.Z(be,_.p);be.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.E([_.K({}),_.T("design:type",Object)],be.prototype,"data",void 0);_.E([_.x({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],be);
_.r(be,"ytd-video-description-transcript-section-renderer",function(){if(nxg!==void 0)return nxg;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return nxg=l},{mode:1});var yOh;_.Tt(_.w(function(l){var D=_.Pr(_.GQN,function(){return l.data().firstProviderLinkStatusEntityKey}),U=_.Pr(_.GQN,function(){return l.data().secondProviderLinkStatusEntityKey}),n=function(){var y,A;
return((y=D())==null?void 0:y.linked)||((A=U())==null?void 0:A.linked)};
return _.g("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.g(_.BO,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return l.data().sectionTitle}}),_.g(_.BO,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return n()?l.data().connectedMessage:l.data().notConnectedMessage}}),_.g(_.v,{cond:n,
then:function(){return _.g(_.uI,{data:function(){return l.data().connectedButton}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.g(_.v,{cond:function(){return!n()},
then:function(){return _.g(_.uI,{data:function(){return l.data().notConnectedButton}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ln"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;return _.g("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.g("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.g(_.BO,{text:function(){return D().sectionTitle}})),_.g("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.g(_.BO,{text:function(){return D().bodyHeader}})),_.g("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.g(_.BO,{text:function(){return D().bodyText}})),_.g(_.v,{cond:function(){return D().attributionText},
then:function(){return _.g("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.g(_.BO,{text:function(){return D().attributionText}}))}}))},"Mn"),"how-this-was-made-section-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){return _.g("yt-video-description-youchat-section-view-model",{class:_.DV("ytVideoDescriptionYouchatSectionViewModelHost")},_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.g(_.BO,{text:function(){return l.data().sectionTitle}})),_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.g(_.BO,{text:function(){return l.data().subHeaderText}})),_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.g(_.t9,{data:function(){return _.M(l.data().primaryButton,
_.CM)}})))},"Nn"),"yt-video-description-youchat-section-view-model",{props:{data:_.C$}});var gQ=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return l};
_.Z(gQ,_.p);_.W=gQ.prototype;
_.W.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}}}}}};
_.W.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.W.dataChanged=function(){var l,D;this.hasDescriptionOnly=!(((l=this.data)==null?void 0:(D=l.items)==null?void 0:D.length)!==1||!_.M(this.data.items[0],pX))};
_.W.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.W.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.W.autoFocusDescription=function(){var l;((l=_.Jc().resolve(_.G8(_.L$)))==null?0:l.isKeyBoardInUse())&&this.description&&_.hL(this.description)};
_.W.resize=function(){if(_.q("kevlar_disable_sd_resize"))this.JSC$23292_cardList&&_.O9(this.JSC$23292_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.O9(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.O9(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.W.scrollToSection=function(l){if(l=this.getSectionElement(l))_.Vh(this.hostElement,"yt-scroll-to-watch-element",[l]),l.focus()};
_.W.getSectionElement=function(l){switch(l){case "infocards-item-section":var D;return(D=this.infocardsSection)!=null?D:null;case "transcript-item-section":var U;return(U=this.transcriptSection)!=null?U:null;case "how-this-was-made-section-item-section":var n;return(n=this.howThisWasMadeSection)!=null?n:null;case "files-item-section":var y;return(y=this.filesSection)!=null?y:null;default:return null}};
_.W.handleSetActiveItemAction=function(l){var D=_.M(l,XSO),U=D&&(D==null?void 0:D.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23292_cardList;if(D&&U){l=this.currentActiveChapter;var n=this.currentActiveProblem;D=U==null?void 0:U.getItemByIndex(D.itemIndex);var y=U=!0;D&&(D.active=!0,D.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(U=l!==D,y=!1,this.currentActiveChapter=D):(D==null?void 0:D.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(U=!1,y=n!==D,this.currentActiveProblem=D));l&&U&&(l.active=!1);n&&y&&(n.active=!1)}};
_.QP.Object.defineProperties(gQ.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.q("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
gQ.prototype.onYtExpanderMoreTapped=gQ.prototype.onYtExpanderMoreTapped;gQ.prototype.onHiddenChanged=gQ.prototype.onHiddenChanged;gQ.prototype.dataChanged=gQ.prototype.dataChanged;gQ.prototype.panelContentVisibleChanged=gQ.prototype.panelContentVisibleChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],gQ.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.$s),_.T("design:type",Object)],gQ.prototype,"ironResizableBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],gQ.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],gQ.prototype,"panelContentVisible",void 0);_.E([_.K(),_.T("design:type",Boolean)],gQ.prototype,"hasDescriptionOnly",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],gQ.prototype,"inlineStructuredDescription",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],gQ.prototype,"hidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],gQ.prototype,"shortsPanel",void 0);_.E([_.K(),_.T("design:type",Object)],gQ.prototype,"videoSummary",void 0);_.E([_.K(),_.T("design:type",Object)],gQ.prototype,"merchShelf",void 0);
_.E([_.t("videoSummary"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gQ.prototype,"showVideoSummary",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],gQ.prototype,"engagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],gQ.prototype,"watchWhileSdp",void 0);_.E([_.gP("ytd-expandable-video-description-body-renderer"),_.T("design:type",Object)],gQ.prototype,"description",void 0);
_.E([_.gP("ytd-horizontal-card-list-renderer"),_.T("design:type",Object)],gQ.prototype,"JSC$23292_cardList",void 0);_.E([_.gP("ytd-horizontal-card-list-renderer[center-items]"),_.T("design:type",Object)],gQ.prototype,"problemWalkthroughCardList",void 0);_.E([_.gP("ytd-shelf-renderer"),_.T("design:type",Object)],gQ.prototype,"shelfSection",void 0);_.E([_.gP("ytd-video-description-music-section-renderer"),_.T("design:type",Object)],gQ.prototype,"musicMetadataSection",void 0);
_.E([_.gP("ytd-video-description-infocards-section-renderer"),_.T("design:type",Object)],gQ.prototype,"infocardsSection",void 0);_.E([_.gP("ytd-video-description-transcript-section-renderer"),_.T("design:type",Object)],gQ.prototype,"transcriptSection",void 0);_.E([_.gP("how-this-was-made-section-view-model"),_.T("design:type",Object)],gQ.prototype,"howThisWasMadeSection",void 0);_.E([_.gP("ytd-video-description-files-section-renderer"),_.T("design:type",Object)],gQ.prototype,"filesSection",void 0);
_.E([_.Pg("panelContentVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gQ.prototype,"panelContentVisibleChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gQ.prototype,"dataChanged",null);_.E([_.Pg("hidden"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gQ.prototype,"onHiddenChanged",null);
_.E([_.hj("yt-expander-more-tapped"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gQ.prototype,"onYtExpanderMoreTapped",null);_.E([_.x({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],gQ);
_.r(gQ,"ytd-structured-description-content-renderer",function(){if(yOh!==void 0)return yOh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return yOh=l},{mode:2});var AOI;var Wwj;var ue=function(){return _.p.apply(this,arguments)||this};
_.Z(ue,_.p);ue.prototype.computeAriaLabel=function(l){var D,U;return(l==null?void 0:(D=l.accessibility)==null?void 0:(U=D.accessibilityData)==null?void 0:U.label)||_.C3("LOADING",void 0,"Loading")};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ue.prototype,"data",void 0);_.E([_.K({computed:"computeAriaLabel(data)"}),_.T("design:type",String)],ue.prototype,"ariaLabel",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],ue);
_.r(ue,"yt-content-loading-renderer",function(){if(Wwj===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;AOI===void 0&&(AOI=document.createElement("template"));var n=AOI;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Wwj=l}l=Wwj;return l},{mode:_.Vj("kevlar_poly_si_batch_j043")?1:2});_.Tt(_.w(function(l){var D=_.B(_.aw(!1,void 0,"OZMtVb")),U=D.next().value,n=D.next().value;D=_.B(_.aw(!1,void 0,"qWERsf"));var y=D.next().value,A=D.next().value;_.N1(function(){var b=_.M(l.data().collaboratePlaylistCollaborationSetting,Tck);b&&n(b.switchedOnByDefault);var u=_.M(l.data().allowNewCollaboratorsPlaylistCollaborationSetting,Tck);u&&A(u.switchedOnByDefault);if(!b&&!u||!b&&l.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")n(!0),A(!0)});
var C=function(b){n(b);A(b);var u=l.data().playlistCollaborationEntityKey||"";var Q=_.fY().getState();(Q=_.yT(Q.entities,"playlistCollaborationEntity",u))&&(Q==null?void 0:Q.isCollaborative)===b||_.fY().dispatch(_.vr("playlistCollaborationEntity",u,Object.assign({},Q,{isCollaborative:b})))},h=function(b){A(b)};
return _.g("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.g("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.g(_.uI,{data:function(){return l.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.g(_.M7m,{data:b.data,
onSwitch:C})}})),_.g(_.v,{cond:U,
then:function(){return _.g(_.GZ,null,_.g("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.g(_.uI,{data:function(){return l.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(b){return _.g(_.M7m,{data:b.data,
onSwitch:h,overrideDisabled:!1})}})),_.g(_.v,{cond:y,
then:function(){return _.g("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.g(_.uI,{data:function(){return l.data().copyLinkButton}},{buttonViewModel:_.t9}))}}),_.g("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.g(_.uI,{data:function(){return l.data().playlistCollaborators}},{contentListItemViewModel:_.Xc8})))}}))},"On"),"playlist-collaboration-view-model",{props:{data:_.C$}});var B01=_.w(function(l){var D=l.data;var U=l.customCommandResolver;return _.g(_.GZ,null,_.g("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.g(_.uI,{data:function(){return D().adAvatar}},{adAvatarViewModel:function(n){return _.g(_.Nog,{data:n.data,
customCommandResolver:U})}})),_.g("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.g(_.v,{cond:function(){return D().headline},
then:function(n){return _.g(_.BO,{text:n,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.g("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.g(_.uI,{data:function(){return D().adBadge}},{adBadgeViewModel:function(n){return _.g(_.KK,{data:n.data,
hasDot:function(){return D().primaryDetailsLine!==void 0},
customCommandResolver:U,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.g(_.uI,{data:function(){return D().primaryDetailsLine}},{adDetailsLineViewModel:function(n){return _.g(_.cw,{data:n.data,
customCommandResolver:U,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Pn"),C6D=_.w(function(l){var D=l.data;
var U=l.customCommandResolver;return _.g("ad-avatar-lockup-view-model",{class:function(){var n;return((n=D().interaction)==null?0:n.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.fe(_.JH({visibilityCallback:function(n){var y,A=(y=D().interaction)==null?void 0:y.onFirstVisible;n&&A&&_.dh(A)},
showOption:_.mK}),_.dN(function(){return D().interaction},U)),
"aria-label":function(){var n,y;return(n=D().interaction)==null?void 0:(y=n.accessibility)==null?void 0:y.label}},_.g(_.rt,null,_.g(_.F2,{when:function(){return D().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.g(B01,{data:D,
customCommandResolver:U})}),_.g(_.oN,null,function(){return null})))},"Qn");_.Tt(_.w(function(l){var D=l.data;var U=l.panelContentVisibility;l=_.JH({visibilityCallback:function(A){var C,h=(C=D().interaction)==null?void 0:C.onFirstVisible;A&&h&&_.dh(h)},
showOption:_.mK});var n=_.dN(function(){return D().interaction},cfl);
_.fy(function(){var A,C;if(C=_.UG("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var h;C=(h=C())==null?void 0:h.onLayoutVisibleCallback}else C=null;(A=C)==null||A()},"Rn");
var y=function(){return U()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.g("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.fe(l,n)},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.g(_.v,{cond:_.qTB("(min-width: "+((0,_.Ih)()+_.jO)+"px) or (max-width: 600px)"),then:function(){return _.g(_.uI,{data:function(){return D().adImage}},{adImageViewModel:function(A){return _.g(_.Nk,{data:A.data,
targetHeight:80,customCommandResolver:cfl})}})}})),_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.g(_.uI,{data:function(){return D().adAvatarLockup}},{adAvatarLockupViewModel:function(A){return _.g(C6D,{data:A.data,
customCommandResolver:cfl})}})),_.g(_.v,{cond:y,
then:function(){return _.g(_.uI,{data:function(){return D().adButton}},{adButtonViewModel:function(A){return _.g(_.tg,{data:A.data,
customCommandResolver:cfl})}})},
else:function(){return _.g(_.uI,{data:function(){return D().menu}},{buttonViewModel:_.t9})}}),_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.g(_.uI,{data:function(){var A=_.M(D().toggleButton,_.Pq);
return{toggleButtonViewModel:Object.assign({},A,{isTogglingDisabled:!0,isToggled:y()})}}},{toggleButtonViewModel:_.s0})))))},"Sn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.C$,
panelContentVisibility:_.C$}});_.Tt(_.w(function(l){var D=function(){return _.M(l.data().inputComposerViewModel,jN1)},U=_.gf(_.xv.currentPageSubTypeSelector),n=_.gf(_.xv.persistentPanelVisibleSelector),y=_.B(_.aw(!1,void 0,"IASwBb")),A=y.next().value,C=y.next().value;
y=_.B(_.aw(!1,void 0,"GdQ0qf"));var h=y.next().value,b=y.next().value,u=function(){a(!0);var Ms;_.dh(((Ms=D())==null?void 0:Ms.onSubmitCommand)||{})},Q=function(){if(n()&&!h()){var Ms;
(Ms=_.Ai())==null||Ms.removeCueRange("aic-proactive");C(!1);b(!0);u();_.Xk(_.Gf(D().endOfVideoContinuation),{form:{formData:_.Q$({clientMessageId:"youchat-"+Date.now(),pageContext:td()})},commandController:{onSuccess:function(){a(!1)},
onServerError:function(){_.Xk(LvI(N()));a(!1)}}})}},G=function(){var Ms=_.Ai();
if(Ms&&!A()&&!h()){var j3=Ms.getDuration();j3>60&&(Ms.addCueRange("aic-proactive",j3-60,j3-20),C(!0))}},J=function(){var Ms;
return((Ms=D())==null?void 0:Ms.youchatPendingResponseEntityKey)||""},L=_.Pr(_.pg$,J),R=function(){var Ms;
return!((Ms=L())==null||!Ms.isPendingResponse)},a=function(Ms){_.xQ5(J())(Ms)};
y=_.B(_.aw(!0,void 0,"n0Jijf"));var S=y.next().value,d=y.next().value,c=function(){var Ms,j3;var wl=_.M((j3=D())==null?void 0:j3.inputFormField,mKI);return wl==null?void 0:(Ms=wl.contentProperties)==null?void 0:Ms.placeholderText},N=function(){return D().sectionTargetId||"youchat_messages_section"};
y=_.gm("yt-chat-input-view-model");var z=_.bP("textarea"),f=_.Pr(MMT,"chat_input_view_model_state"),I=RGD(),iG=function(){var Ms;return!((Ms=f())==null||!Ms.value)},CC=function(){return l.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},vo=function(){var Ms;
(Ms=_.Ai())==null||Ms.removeCueRange("aic-proactive");C(!1);b(!1);var j3;_.q("enable_navigational_proactive_messages_on_ai_companion")&&((j3=D())==null?0:j3.navigationContinuation)&&n()&&(u(),_.Xk(_.Gf(D().navigationContinuation),{form:{formData:_.Q$({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:x1D(),pageContext:td()})},commandController:{onSuccess:function(){a(!1)},
onServerError:function(){_.Xk(LvI(N()));a(!1)}}}))},td=function(){var Ms;
return(Ms=_.Jc().resolve(_.G8(_.EN)))==null?void 0:_.i2J(Ms,U())};
_.N1(function(){if(_.q("enable_ai_chat_controller")){var Ms;(Ms=_.Jc().resolve(_.G8(_.EN)))==null||Ms.init(l.data().environment)}else if(Ms=Fvw(l.data()),!iG()&&Ms){var j3;((j3=D())==null?0:j3.setPendingResponseOnWelcome)&&a(!0);_.Xk(Ms,{form:{formData:_.Q$({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:x1D(),pageContext:td()})}});I(!0)}var wl=N(),zN=_.Jc().resolve(_.G8(_.xp)),Z7=function(){_.gN.remove(wl);if(_.q("enable_ai_chat_controller")){var Vg;(Vg=_.Jc().resolve(_.G8(_.EN)))!=null&&Vg.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(Vg.lastWelcomeContinuationSent=void 0)}else I(!1)},Lm=function(){_.mU(function(){if(CC()&&(vo(wl),U()==="watch")){var Vg=_.Ai();
Vg&&(Vg.addEventListener("onStateChange",G),Vg.addEventListener("onCueRangeEnter",Q))}})};
j3=_.q("enable_ai_companion")?!CC():!0;zN==null||zN.addEventListener("yt-navigate-start",Z7,{once:j3});zN==null||zN.addEventListener("yt-navigate-finish",Lm,{once:j3});_.NV(function(){zN==null||zN.removeEventListener("yt-navigate-start",Z7);zN==null||zN.removeEventListener("yt-navigate-finish",Lm);var Vg=_.Ai();Vg&&(Vg.removeEventListener("onCueRangeEnter",Q),Vg.removeEventListener("onStateChange",G),Vg.removeCueRange("aic-proactive"))})});
_.$i(function(){if(_.q("enable_ai_chat_controller")){var Ms=Fvw(l.data());if(Ms){var j3,wl=((j3=D())==null?0:j3.setPendingResponseOnWelcome)?a:void 0,zN;(zN=_.Jc().resolve(_.G8(_.EN)))==null||QGh(zN,{command:Ms,setPending:wl})}}},"Z4XQCb");
var GN=function(){var Ms=z.value.value;z.value.value="";p3I(z.value);var j3,wl=((j3=D())==null?void 0:j3.enableGradientColorBg)||!1;j3=qZc(N(),Ms,wl);_.Xk(j3);u();var zN,Z7,Lm;j3=(Lm=_.te((zN=l.data())==null?void 0:zN.sendUserQueryCommand))!=null?Lm:_.Gf((Z7=D())==null?void 0:Z7.continuation);_.Xk(j3,{form:{formData:_.Q$({clientMessageId:"youchat-"+Date.now(),userInputText:Ms,playerOffsetMs:x1D(),pageContext:td()})},commandController:{onSuccess:function(){a(!1)},
onServerError:function(){_.Xk(LvI(N()));a(!1)}}})};
return _.g("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:y},_.g("div",{class:"chatInputViewModelChatInputWrapper"},_.g("form",{class:"chatInputViewModelChatInputForm"},_.g("textarea",{class:"chatInputViewModelChatInput",el:z,"on:keydown":_.n0(function(Ms){var j3=R()||!1;p3I(z.value);j3||Ms.key!=="Enter"||Ms.shiftKey||(Ms.preventDefault(),GN());return!1}),
"on:keyup":_.n0(function(){d(z.value.value.length===0);return!1}),
"aria-label":function(){return R()?l.data().loadingAnimationA11yLabel||"":c()},
placeholder:c,rows:1}),_.g(_.t9,{data:function(){return _.M(l.data().sendButton,_.CM)},
onClick:function(Ms){Ms.preventDefault();GN();d(z.value.value.length===0)},
buttonOverrides:function(){return{disabled:S()||R()}}})),_.g(_.BO,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Ms;return(Ms=_.M(l.data().disclaimer,_.vW7))==null?void 0:Ms.text}})))},"Un"),"yt-chat-input-view-model",{props:{data:_.C$}});var h6w=["engagement-panel-clip-create","engagement-panel-clip-view"],P6H=0,vn=function(){var l=_.p.apply(this,arguments)||this;var D;l.headerData=(D=l.data)==null?void 0:D.header;l.darkerPanels=_.q("web_watch_darker_panels");l.matchContentTheme=_.q("web_watch_panel_content_match_theme");l.disableAutoFill=!1;l.isFullscreen=!1;l.isTheaterMode=!1;l.liveChatReplyPanel=!1;l.enableAnchoredPanel=_.q("desktop_shorts_v2_anchored_panel");l.disableBackdropFilter=_.q("web_disable_backdrop_filter");l.isPersistentPanel=
!1;l.trackEngagementPanelVisibility=_.q("web_watch_track_engagement_panel_visibility");l.overscrollContain=!1;l.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 l};
_.Z(vn,_.p);_.W=vn.prototype;
_.W.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(l){var D;return(l==null?void 0:(D=l.webComponentHint)==null?void 0:D.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.W.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var l;if((l=this.hostElement.parentElement)==null?0:l.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.W.detached=function(){this.updateTheaterDisablement()};
_.W.showPanel=function(){var l=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Tn.addJob(function(){l.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.W.maybeScrollToItemSection=function(l){var D=this,U,n=l==null?void 0:(U=l.sectionListEngagementPanelExtras)==null?void 0:U.scrollToItemSectionIdentifier;n&&_.Tn.addJob(function(){var y;(y=D.sectionListRendererElement)==null||y.scrollToItemSection(n)},8)};
_.W.hidePanel=function(){var l=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Tn.addJob(function(){l.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.W.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.W.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.W.updatePanel=function(l,D,U,n){var y=this;if((l=l==null?void 0:l.engagementPanelSectionListRenderer)||n){if(l){n=l.header;var A=l.content,C=l.footer;(l=l.targetId)&&this.set("data.targetId",l);n&&this.set("data.header",n);A&&this.set("data.content",A);C&&this.set("data.footer",C)}else n&&(l=n.content,A=n.secondaryHeaderContent,C=n.targetId,n=n.loggingDirectives,C&&this.set("data.targetId",C),l&&this.set("data.content",l),n&&_.q("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
n),A&&(this.secondaryHeaderData=A));this.updateChildVisibilityProperties();if(D){var h;_.q("kevlar_update_panel_focus_scroll_killswitch")||(h={preventScroll:!0});this.focus(h)}_.u6(this,function(){_.O9(y.hostElement,"yt-refit");y.maybeScrollToItemSection(U)})}};
_.W.computeHeaderData=function(){var l,D=(0,_.we.unsafeClone)((l=this.data)==null?void 0:l.header);if(D){l=new _.y4(Object.keys(D)[0]);var U=_.M(D,l),n=_.M(this.secondaryHeaderData,l);n&&_.RO(D,l,Object.assign({},n,U))}return D};
_.W.getReloadContinuation=function(){var l,D,U,n=_.B(((l=this.data)==null?void 0:(D=l.content)==null?void 0:(U=D.sectionListRenderer)==null?void 0:U.continuations)||[]);for(l=n.next();!l.done;l=n.next())if(l=l.value,l.reloadContinuationData)return l.reloadContinuationData.continuation};
_.W.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var l;((l=this.data)==null?0:l.targetId)&&(l=this.contentElement.firstElementChild)&&l.setAttribute("panel-target-id",this.data.targetId)};
_.W.forwardPopupClosedToFlowRootRenderer=function(){var l=_.iJ(this.hostElement).querySelector("ytd-flow-root-renderer");if(l&&this.hostElement.closest("ytd-popup-container"))l.onPopupClosed()};
_.W.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var l;if(!h6w.includes((l=this.theaterDisablementPanelIdentifier)!=null?l:""))if(l=_.q("web_watch_imax_theater_mode")&&this.isTheaterMode,l=_.q("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||l,_.q("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||l){var D;this.visibility=(D=this.data)==null?void 0:D.visibility;var U;this.trackEngagementPanelVisibility&&((U=this.data)==null?void 0:U.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var n,y,A,C;this.contentEmpty=!!(((n=this.data)==null?0:(y=n.content)==null?0:y.structuredDescriptionContentRenderer)&&Object.keys((A=this.data)==null?void 0:(C=A.content)==null?void 0:
C.structuredDescriptionContentRenderer).length===0);(D=_.Jc().resolve(_.IH))&&D.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.W.isTheaterModeChanged=function(){_.q("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.W.isFullscreenChanged=function(){_.q("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.W.focus=function(l){if(this.header)this.header.focus(l);else{var D;(D=_.iJ(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||D.focus(l)}};
_.W.visibilityChanged=function(){if(!_.q("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var l=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",U=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",n=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y=n||!this.lastVisibility,A,C,h,b=((A=this.data)==null?void 0:(C=A.identifier)==null?void 0:
C.tag)||((h=this.data)==null?void 0:h.panelIdentifier);if(l&&y){var u;((u=this.data)==null?0:u.onShowCommands)&&_.DP(this.hostElement,this.data.onShowCommands,this.hostElement);b&&_.EB().dispatch(_.V0({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:b}}))}else if(D&&U){var Q;((Q=this.data)==null?0:Q.onHideCommands)&&_.DP(this.hostElement,this.data.onHideCommands,this.hostElement);b&&_.EB().dispatch(_.V0({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:b}}))}l&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*P6H++));_.q("kevlar_watch_focus_on_engagement_panels")&&l&&n&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.W.notifyVisibilityChanged=function(l){var D;_.iu(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,l,(D=this.data)==null?void 0:D.targetId]);if(_.q("autonav_pause_for_comments_ep")){var U;_.O9(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:l==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(U=this.data)==null?void 0:U.targetId})}};
_.W.updateTheaterDisablement=function(){if(!_.q("kevlar_watch_theater_disablement_killswitch")){var l=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&h6w.includes(l)&&!_.q("watch_next_grid_ignore_disallowed_panels")){var D=_.aL(_.EB().getState()),U=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";l!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():U?(this.originalTheaterState===void 0&&(this.originalTheaterState=D,this.theaterDisablementPanelIdentifier=
l),D&&_.Vh(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.W.clearTheaterDisablement=function(){_.Vh(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.W.updateChildVisibilityProperties=function(){this.hostElement||_.q("kevlar_panel_property_init_killswitch")||this._enableProperties();var l=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=l);var D,U=(D=this.headerElement)==null?void 0:D.firstElementChild;if(U&&!this.adHeaderImageLockupViewModel){D=l==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";U.collapsed=D;U=_.iJ(U).querySelector("#visibility-button");if(!U)return;(U=U.firstElementChild)&&
U.polymerController.is==="ytd-toggle-button-renderer"&&U.polymerController.data.isToggled!==D&&U.polymerController.set("data.isToggled",D)}var n;if(D=(n=this.contentElement)==null?void 0:n.firstElementChild)if(l&&l!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")D.removeAttribute("panel-content-visible");else{D.setAttribute("panel-content-visible","");var y;(y=D.markDirty)==null||y.call(D)}};
_.W.onYtChangeEngagementPanelVisibilityAction=function(l){var D=this,U,n=(U=this.data)==null?void 0:U.targetId,y,A,C;U=((y=this.data)==null?void 0:(A=y.identifier)==null?void 0:A.tag)||((C=this.data)==null?void 0:C.panelIdentifier);var h=_.M(l,_.FlH),b;l=n&&(h==null?void 0:h.targetId)===n||U&&(h==null?void 0:(b=h.panelIdentifier)==null?void 0:b.tag)===U;this.dialog&&l&&(h==null?void 0:h.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(n==="engagement-panel-comments-section"?_.Vh(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Vh(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",U]));!_.q("kevlar_use_engagement_panel_management_component")&&l&&(n=h.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!n?_.Tn.addJob(function(){D.visibility=h.visibility},2,this.hideDelayMs):this.visibility=h.visibility,h.visibility&&this.notifyVisibilityChanged(h.visibility))};
_.W.onYtScrollToEngagementPanelCommand=function(l){var D,U=(D=this.data)==null?void 0:D.targetId,n,y,A;D=((n=this.data)==null?void 0:(y=n.identifier)==null?void 0:y.tag)||((A=this.data)==null?void 0:A.panelIdentifier);l=_.M(l,_.Hny);var C;(U&&(l==null?void 0:l.targetId)===U||D&&(l==null?void 0:(C=l.panelIdentifier)==null?void 0:C.tag)===D)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Vh(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.W.attachVEs=function(l){var D,U;(l==null?0:(D=l.content)==null?0:(U=D.productListRenderer)==null?0:U.trackingParams)&&_.he().graftServerVe(l.content.productListRenderer.trackingParams);var n,y;(l==null?0:(n=l.content)==null?0:(y=n.transcriptRenderer)==null?0:y.trackingParams)&&_.he().graftServerVe(l.content.transcriptRenderer.trackingParams)};
_.W.onYtUpdateEngagementPanelAction=function(l){var D,U=(D=this.data)==null?void 0:D.targetId;l=_.M(l,k8g);U&&(l==null?void 0:l.targetId)===U&&(this.updatePanel({engagementPanelSectionListRenderer:{header:l==null?void 0:l.header,content:l==null?void 0:l.content}},!1),this.attachVEs(l))};
_.W.onYtShowEngagementPanelScrimAction=function(l){var D,U=(D=this.data)==null?void 0:D.targetId;l=_.M(l,SGj);U&&(l==null?void 0:l.engagementPanelTargetId)===U&&(this.scrimmed=!0)};
_.W.onYtHideEngagementPanelScrimAction=function(l){var D,U=(D=this.data)==null?void 0:D.targetId;l=_.M(l,t_O);U&&(l==null?void 0:l.engagementPanelTargetId)===U&&(this.scrimmed=!1)};
_.W.getIdentifier=function(){var l,D,U;return((l=this.data)==null?void 0:l.panelIdentifier)||((D=this.data)==null?void 0:(U=D.identifier)==null?void 0:U.tag)};
_.W.getSurface=function(){var l,D;return(l=this.data)==null?void 0:(D=l.identifier)==null?void 0:D.surface};
_.QP.Object.defineProperties(vn.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var l=this.getIdentifier();return l==="engagement-panel-youchat"||l==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
vn.prototype.visibilityChanged=vn.prototype.visibilityChanged;vn.prototype.isFullscreenChanged=vn.prototype.isFullscreenChanged;vn.prototype.isTheaterModeChanged=vn.prototype.isTheaterModeChanged;vn.prototype.dataChanged=vn.prototype.dataChanged;vn.prototype.forwardPopupClosedToFlowRootRenderer=vn.prototype.forwardPopupClosedToFlowRootRenderer;vn.prototype.onYtRendererstamperFinished=vn.prototype.onYtRendererstamperFinished;
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],vn.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],vn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],vn.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],vn.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vn.prototype,"data",void 0);
_.E([_.K({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.T("design:type",Object)],vn.prototype,"headerData",void 0);_.E([_.K(),_.T("design:type",Object)],vn.prototype,"secondaryHeaderData",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vn.prototype,"visibility",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],vn.prototype,"contentEmpty",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],vn.prototype,"scrimmed",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],vn.prototype,"dialog",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],vn.prototype,"dropdown",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vn.prototype,"darkerPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vn.prototype,"matchContentTheme",void 0);_.E([_.K(),_.T("design:type",Object)],vn.prototype,"disableAutoFill",void 0);
_.E([_.K({reflectToAttribute:!0,value:_.q("optimal_reading_width_comments_ep")}),_.T("design:type",Boolean)],vn.prototype,"optimalReadingWidthComments",void 0);_.E([_.K(),_.T("design:type",Number)],vn.prototype,"hideDelayMs",void 0);_.E([_.K({selector:_.t1,reflectToAttribute:!0}),_.T("design:type",Object)],vn.prototype,"isFullscreen",void 0);_.E([_.K({selector:_.aL,reflectToAttribute:!0}),_.T("design:type",Object)],vn.prototype,"isTheaterMode",void 0);
_.E([_.K(),_.T("design:type",Number)],vn.prototype,"showDelayMs",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.targetId"),_.T("design:type",Object),_.T("design:paramtypes",[])],vn.prototype,"targetId",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],vn.prototype,"webSize",null);_.E([_.K(),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],vn.prototype,"hideFooterBorder",null);
_.E([_.K(),_.T("design:type",Object)],vn.prototype,"isWatch",void 0);_.E([_.K(),_.T("design:type",Object)],vn.prototype,"originalTheaterState",void 0);_.E([_.K(),_.T("design:type",Object)],vn.prototype,"theaterDisablementPanelIdentifier",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],vn.prototype,"isWatchWhilePanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],vn.prototype,"shortsPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],vn.prototype,"liveChatEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],vn.prototype,"learningChatEngagementPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vn.prototype,"liveChatReplyPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vn.prototype,"enableAnchoredPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vn.prototype,"disableBackdropFilter",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vn.prototype,"isPersistentPanel",void 0);_.E([_.K(),_.T("design:type",Object)],vn.prototype,"trackEngagementPanelVisibility",void 0);_.E([_.K(),_.T("design:type",Object)],vn.prototype,"overscrollContain",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],vn.prototype,"isAiCompanionPanel",null);
_.E([_.gP("#header"),_.T("design:type",HTMLElement)],vn.prototype,"headerElement",void 0);_.E([_.gP("#header > *"),_.T("design:type",HTMLElement)],vn.prototype,"header",void 0);_.E([_.gP("ytd-section-list-renderer"),_.T("design:type",Object)],vn.prototype,"sectionListRendererElement",void 0);_.E([_.gP("panel-ad-header-image-lockup-view-model"),_.T("design:type",HTMLElement)],vn.prototype,"adHeaderImageLockupViewModel",void 0);
_.E([_.gP("#content"),_.T("design:type",HTMLElement)],vn.prototype,"contentElement",void 0);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vn.prototype,"onYtRendererstamperFinished",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vn.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.E([_.GY("data","isFullscreen","isTheaterMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vn.prototype,"dataChanged",null);_.E([_.Pg("isTheaterMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vn.prototype,"isTheaterModeChanged",null);_.E([_.Pg("isFullscreen"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vn.prototype,"isFullscreenChanged",null);
_.E([_.Pg("visibility"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vn.prototype,"visibilityChanged",null);_.E([_.x({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],vn);
_.r(vn,"ytd-engagement-panel-section-list-renderer",function(){if(dMc!==void 0)return dMc;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return dMc=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var bSH;var QM=function(){var l=_.p.apply(this,arguments)||this;l.lastRenderedPanelIds=new Set;l.visiblePanels=[];l.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return l};
_.Z(QM,_.p);_.W=QM.prototype;_.W.dataChanged=function(){if(this.data){for(var l=[],D=_.B(this.data),U=D.next();!U.done;U=D.next()){U=U.value;var n=void 0,y=void 0,A=(n=U)==null?void 0:(y=n.engagementPanelSectionListRenderer)==null?void 0:y.visibility;y=n=void 0;((n=U)==null?0:(y=n.engagementPanelSectionListRenderer)==null?0:y.targetId)&&A!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&l.push(U)}this.visiblePanels=l}else this.visiblePanels=[]};
_.W.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}}};
_.W.withoutVisiblePanelById=function(l){return this.visiblePanels.filter(function(D){var U;return((U=D.engagementPanelSectionListRenderer)==null?void 0:U.targetId)!==l})};
_.W.onYtChangeEngagementPanelVisibilityAction=function(l){var D=this,U=_.M(l,_.FlH);if(this.data&&(U==null?0:U.targetId)&&(U==null?0:U.visibility)){var n,y=(n=this.data.find(function(C){var h;return((h=C.engagementPanelSectionListRenderer)==null?void 0:h.targetId)===U.targetId}))==null?void 0:n.engagementPanelSectionListRenderer;
if(y){var A=this.withoutVisiblePanelById(U.targetId);U.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(l=this.data.find(function(C){var h;return((h=C.engagementPanelSectionListRenderer)==null?void 0:h.targetId)===U.targetId}))&&(A=[l].concat(_.zz(A)));
this.hideDelayMs&&U.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&A.length===0?_.Tn.addJob(function(){y.visibility=U.visibility;D.visiblePanels=A},10,this.hideDelayMs):(y.visibility=U.visibility,this.visiblePanels=A);
_.iu(this.hostElement,"yt-engagement-panels-visible-changed",[A])}}};
_.W.onRendererstamperFinished=function(){var l=new Set(this.visiblePanels.map(function(D){var U;return(U=D.engagementPanelSectionListRenderer)==null?void 0:U.targetId}));
this.handlePanelVisibilityChange(l,this.lastRenderedPanelIds);this.lastRenderedPanelIds=l};
_.W.handlePanelVisibilityChange=function(l,D){l=l===void 0?new Set:l;D=D===void 0?new Set:D;if(this.data)for(var U=_.B(this.data),n=U.next();!n.done;n=U.next()){n=n.value;var y=void 0,A=void 0,C=(y=n)==null?void 0:(A=y.engagementPanelSectionListRenderer)==null?void 0:A.targetId;if(C&&(y=D.has(C),A=l.has(C),C=void 0,!y&&A?(A=y=void 0,C=(y=n)==null?void 0:(A=y.engagementPanelSectionListRenderer)==null?void 0:A.onShowCommands):y&&!A&&(A=y=void 0,C=(y=n)==null?void 0:(A=y.engagementPanelSectionListRenderer)==
null?void 0:A.onHideCommands),C))for(n=_.B(C),C=n.next();!C.done;C=n.next())this.ytComponentBehavior.resolveCommand(C.value)}};
QM.prototype.onRendererstamperFinished=QM.prototype.onRendererstamperFinished;QM.prototype.dataChanged=QM.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],QM.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],QM.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],QM.prototype,"lastRenderedPanelIds",void 0);_.E([_.K(),_.T("design:type",Number)],QM.prototype,"hideDelayMs",void 0);_.E([_.K(),_.T("design:type",Array)],QM.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Array)],QM.prototype,"visiblePanels",void 0);_.E([_.K(),_.T("design:type",Boolean)],QM.prototype,"isWatchWhilePanel",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QM.prototype,"dataChanged",null);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QM.prototype,"onRendererstamperFinished",null);_.E([_.x({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],QM);
_.r(QM,"ytd-watch-engagement-panels",function(){if(bSH!==void 0)return bSH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return bSH=l},{mode:1});var gxc;var Gx=function(){return _.p.apply(this,arguments)||this};
_.Z(Gx,_.p);Gx.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Cz(_.iJ(this.hostElement).querySelector("#text"),_.Vc7(_.DGk,this.data.companionLegalText))};
Gx.prototype.computeAutoScrollEnabled=function(l,D){return l&&!D};
Gx.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Gx.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Gx.prototype.expandedChanged=Gx.prototype.expandedChanged;Gx.prototype.dataChanged=Gx.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.SWO),_.T("design:type",Object)],Gx.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Gx.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],Gx.prototype,"expanded",void 0);
_.E([_.K({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.T("design:type",Boolean)],Gx.prototype,"autoScrollEnabled",void 0);_.E([_.K(),_.T("design:type",String)],Gx.prototype,"expanderIcon",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Gx.prototype,"dataChanged",null);
_.E([_.Pg("expanded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Gx.prototype,"expandedChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Gx);
_.r(Gx,"ytd-companion-legal-text-renderer",function(){if(gxc!==void 0)return gxc;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return gxc=l},{mode:1});var u4q;var Jm=function(){var l=_.p.apply(this,arguments)||this;l.buttonUpdate=_.q("web_modern_buttons");l.kevlarWatchGrid=_.q("kevlar_watch_grid");l.centerAlignDescription=_.q("action_companion_center_align_description");l.truncateDomain=_.q("action_companion_truncate_domain");l.enableMonoStyle=_.q("enable_default_mono_cta_migration_web_client");return l};
_.Z(Jm,_.p);_.W=Jm.prototype;_.W.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.W.getOnLayoutVisibleCallback=function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.onLayoutVisibleCallback:null};
_.W.getLayoutId=function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.layoutId:null};
_.W.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Jm.JSC$23337_DEFAULT_AD_BADGE_RENDERER);var l=this.getOnLayoutVisibleCallback();l&&l()}};
_.W.getButtonRenderer=function(l){return l.actionButton&&_.M(l.actionButton,_.yn)?(delete _.M(l.actionButton,_.yn).navigationEndpoint,_.M(l.actionButton,_.yn)):{}};
_.W.onClick=function(l){var D=this;if((!_.q("web_modern_buttons")||!_.$o(_.$f(l),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){l=_.T4();var U=this.getLayoutId();l&&U&&_.q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?l.getPlayerPromise().then(function(n){(new _.OR(n)).executeCommand(D.data.navigationEndpoint,U)}):_.q("kevlar_companion_resolve_command_killswitch")?_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Vh(this.hostElement,"yt-companion-ad-clicked",["action-companion",U])}};
_.QP.Object.defineProperties(Jm.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((l=this.data)==null?0:(D=l.detailsLine)==null?0:(U=D.adRating)==null?0:U.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 l,D,U,n;return((l=this.data)==null?0:(D=l.detailsLine)==null?0:(U=D.adRating)==null?0:(n=U.ratingIcon)==null?0:n.iconType)?_.UV(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n;return((l=this.data)==null?0:(D=l.detailsLine)==null?0:(U=D.texts)==null?0:(n=U[0])==null?0:n.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 l,D;return((l=this.data)==null?0:(D=l.description)==null?0:D.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var l=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return l?l.indexOf("/default_banner")!==-1:!0}}});
Jm.prototype.onClick=Jm.prototype.onClick;Jm.prototype.dataChanged=Jm.prototype.dataChanged;Jm.JSC$23337_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.C3("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Jm.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Jm.prototype,"rendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Jm.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Jm.prototype,"buttonUpdate",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Jm.prototype,"kevlarWatchGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Jm.prototype,"centerAlignDescription",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Jm.prototype,"truncateDomain",void 0);
_.E([_.K({computed:"computeButtonOverride(buttonUpdate)"}),_.T("design:type",Object)],Jm.prototype,"buttonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Jm.prototype,"enableMonoStyle",void 0);_.E([_.t("data.detailsLine.adRating.ratingText"),_.T("design:type",Object),_.T("design:paramtypes",[])],Jm.prototype,"getRating",null);_.E([_.t("getRating"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Jm.prototype,"computeRatingHidden",null);
_.E([_.t("data.detailsLine.adRating.ratingIcon.iconType"),_.T("design:type",Object),_.T("design:paramtypes",[])],Jm.prototype,"iconType",null);_.E([_.t("data.detailsLine.texts.0.text"),_.T("design:type",Object),_.T("design:paramtypes",[])],Jm.prototype,"getDetailsLine",null);_.E([_.t("getDetailsLine"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Jm.prototype,"computeDetailsLineHidden",null);
_.E([_.t("data.description.text"),_.T("design:type",Object),_.T("design:paramtypes",[])],Jm.prototype,"getDescriptionText",null);_.E([_.t("getDescriptionText"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Jm.prototype,"computeDescriptionTextHidden",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Jm.prototype,"interactionLoggingClientData",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Jm.prototype,"hideBanner",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Jm.prototype,"dataChanged",null);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],Jm.prototype,"onClick",null);_.E([_.x({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Jm);
_.r(Jm,"ytd-action-companion-ad-renderer",function(){if(u4q!==void 0)return u4q;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return u4q=l},{mode:_.Vj("kevlar_poly_si_batch_j067")?1:2});var vxw;var QAD;var LN=function(){var l=_.p.apply(this,arguments)||this;l.buttonUpdate=_.q("web_modern_buttons");l.hideLegacyBanner=_.q("enable_dsa_one_click_ata_translators_infeed_elements");l.adInfoButtonStyle="mono";l.adInfoButtonType="text";l.noDotAdBadge=!0;return l};
_.Z(LN,_.p);_.W=LN.prototype;_.W.getOnLayoutVisibleCallback=function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.onLayoutVisibleCallback:null};
_.W.getLayoutId=function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.layoutId:null};
_.W.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 l=this.data.image.thumbnail.thumbnails[0];this.imageSrc=l.url?_.Ng(l.url):void 0;this.imageWidth=l.width||0;this.imageHeight=l.height||0}this.data.clickthroughEndpoint&&_.M(this.data.clickthroughEndpoint,_.yE)&&(l=_.M(this.data.clickthroughEndpoint,_.yE).url,_.q("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
l||"":l?(l=_.Ng(l),this.clickThroughUrl=_.ol(l)):this.clickThroughUrl=void 0);(l=this.getOnLayoutVisibleCallback())&&l()}};
_.W.onClick=function(l){_.$o(_.$f(l),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(l)};
_.W.handleClick=function(){var l=this;this.data&&this.data.clickthroughEndpoint&&(_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(D){l.macroReplacementBehavior.sendServiceRequestAction([D])}),_.Vh(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.W.onLoad=function(){_.iu(this.hostElement,"yt-refit-popups-action")};
_.QP.Object.defineProperties(LN.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.interactionLoggingClientData:null}}});
LN.prototype.onLoad=LN.prototype.onLoad;LN.prototype.onClick=LN.prototype.onClick;LN.prototype.dataChanged=LN.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],LN.prototype,"rendererBehavior",void 0);_.E([_.m(etC.YtMacroReplacementBehavior),_.T("design:type",Object)],LN.prototype,"macroReplacementBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],LN.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],LN.prototype,"buttonUpdate",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],LN.prototype,"hideLegacyBanner",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],LN.prototype,"adInfoButtonStyle",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],LN.prototype,"adInfoButtonType",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],LN.prototype,"macros",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],LN.prototype,"interactionLoggingClientData",null);_.E([_.K(),_.T("design:type",String)],LN.prototype,"clickThroughUrl",void 0);_.E([_.K(),_.T("design:type",_.xC)],LN.prototype,"imageSrc",void 0);_.E([_.K(),_.T("design:type",Number)],LN.prototype,"imageWidth",void 0);_.E([_.K(),_.T("design:type",Number)],LN.prototype,"imageHeight",void 0);_.E([_.K(),_.T("design:type",Object)],LN.prototype,"noDotAdBadge",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],LN.prototype,"dataChanged",null);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],LN.prototype,"onClick",null);_.E([_.hj("load"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],LN.prototype,"onLoad",null);_.E([_.x({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],LN);
_.r(LN,"ytd-image-companion-renderer",function(){if(QAD!==void 0)return QAD;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return QAD=l},{mode:_.Vj("kevlar_poly_si_batch_j067")?1:2});var GsD;var qC=function(){return _.p.apply(this,arguments)||this};
_.Z(qC,_.p);_.W=qC.prototype;_.W.dataChanged=function(){this.set("data.adBadge",qC.JSC$23346_DEFAULT_AD_BADGE_RENDERER);if(this.data){var l=this.getOnLayoutVisibleCallback();l&&l()}};
_.W.getOnLayoutVisibleCallback=function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.onLayoutVisibleCallback:null};
_.W.getLayoutId=function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.layoutId:null};
_.W.onCompanionClicked=function(l){this.data&&(l.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Vh(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.W.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var l=_.T4(),D=this.getLayoutId(),U=this.data.clickToAdvSiteEndpoint;l&&D&&_.q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?l.getPlayerPromise().then(function(n){(new _.OR(n)).executeCommand(U,D)}):_.O9(this.hostElement,"yt-navigate",{endpoint:U})}};
_.W.sendTrackingPings=function(l){if(l&&l.length!==0&&l[0].loggingUrls&&(l=l[0].loggingUrls.map(this.getBaseUrl)))for(var D=0;D<l.length;D++)_.nB(l[D])};
_.W.getBaseUrl=function(l){return l.baseUrl||""};
_.QP.Object.defineProperties(qC.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var l=_.UG("yt.www.ads.eventcache.getLastCompanionData");return l?(l=l())&&l.interactionLoggingClientData:null}}});
qC.prototype.onCompanionClicked=qC.prototype.onCompanionClicked;qC.prototype.dataChanged=qC.prototype.dataChanged;qC.JSC$23346_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.C3("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],qC.prototype,"data",void 0);_.E([_.gP("#title"),_.T("design:type",HTMLElement)],qC.prototype,"shopTitle",void 0);
_.E([_.GY("data.impressionEndpoints"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],qC.prototype,"dataChanged",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],qC.prototype,"interactionLoggingClientData",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],qC.prototype,"onCompanionClicked",null);
_.E([_.x({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],qC);
_.r(qC,"ytd-shopping-companion-renderer",function(){if(GsD!==void 0)return GsD;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return GsD=l},{mode:1});_.Tt(_.w(function(l){var D=l.data;l=_.JH({visibilityCallback:function(n){var y,A=(y=D().interaction)==null?void 0:y.onFirstVisible;n&&A&&_.dh(A)},
showOption:_.mK});var U=_.dN(function(){return D().interaction},ogC);
_.fy(function(){var n,y;y=(y=_.UG("yt.www.ads.eventcache.getLastCompanionData"))?(y=y())&&y.onLayoutVisibleCallback:null;(n=y)==null||n()},"Vn");
return _.g("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.n0(function(n){_.iu(n.currentTarget,"yt-refit-popups-action")}),
el:_.fe(l,U),"aria-label":function(){var n,y;return(n=D().interaction)==null?void 0:(y=n.accessibility)==null?void 0:y.label}},_.g("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.g(_.uI,{data:function(){return D().adImage}},{adImageViewModel:function(n){return _.g(_.Nk,{data:n.data,
targetHeight:80,customCommandResolver:ogC})}})),_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.g(_.uI,{data:function(){return D().adBadge}},{adBadgeViewModel:function(n){return _.g(_.KK,{data:n.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.g(_.uI,{data:function(){return D().menu}},{buttonViewModel:_.t9}))))},"Wn"),"banner-image-layout-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;l=_.JH({visibilityCallback:function(n){var y,A=(y=D().interaction)==null?void 0:y.onFirstVisible;n&&A&&_.dh(A)},
showOption:_.mK});var U=_.dN(function(){return D().interaction},w3g);
_.fy(function(){var n,y;y=(y=_.UG("yt.www.ads.eventcache.getLastCompanionData"))?(y=y())&&y.onLayoutVisibleCallback:null;(n=y)==null||n()},"Xn");
return _.g("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.fe(l,U)},_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.g(_.uI,{data:function(){return D().adImage}},{adImageViewModel:function(n){return _.g(_.Nk,{data:n.data,
targetHeight:80,customCommandResolver:w3g})}})),_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.g(_.uI,{data:function(){return D().adAvatarLockup}},{adAvatarLockupViewModel:function(n){return _.g(C6D,{data:n.data,
customCommandResolver:w3g})}})),_.g(_.uI,{data:function(){return D().adButton}},{adButtonViewModel:function(n){return _.g(_.tg,{data:n.data,
customCommandResolver:w3g})}}),_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.g(_.uI,{data:function(){return D().menu}},{buttonViewModel:_.t9}))))},"Yn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.C$}});var JOW={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"},MC=function(){var l=_.p.apply(this,arguments)||this;l.updateCompanionDataJobId=0;l.contentVideoId=null;l.player=null;l.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return l};
_.Z(MC,_.p);_.W=MC.prototype;_.W.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:JOW}}};
_.W.attached=function(){var l=this,D=_.T4();D&&D.getPlayerPromise().then(function(U){l.getCachedDataAndListen(U)})};
_.W.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.W.updateRendererStamper=function(){var l={};if(this.data)for(var D in JOW)if(this.data[D]){l[D]=this.data[D];break}if(this.oneofRenderer!=void 0||Object.keys(l).length)this.oneofRenderer=l};
_.W.getCachedDataAndListen=function(l){var D=this.retrieveCachedCompanionData();D&&Object.keys(D).length&&this.receiveCompanionData(D);this.ytPlayerListenerBehavior.listenToPlayerEvent(l,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=l};
_.W.retrieveCachedCompanionData=function(){return _.nC.yt&&_.nC.yt.www&&_.nC.yt.www.ads&&_.nC.yt.www.ads.eventcache&&_.nC.yt.www.ads.eventcache.getLastCompanionData?_.nC.yt.www.ads.eventcache.getLastCompanionData():null};
_.W.receiveCompanionData=function(l){l&&Object.keys(l).length?(this.contentVideoId=l.contentVideoId,this.setCompanionData(l)):this.setCompanionData(l)};
_.W.setCompanionData=function(l){this.cancelPendingCompanionAdJobs();if(l){this.updateCompanionDataJobId=0;for(var D in JOW)JOW.hasOwnProperty(D)&&(this.data[D]=void 0);l.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",l.shoppingCompanionCarouselRenderer):l.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",l.imageCompanionAdRenderer):l.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",l.actionCompanionAdRenderer),_.iu(this.hostElement,
"yt-hide-unlimited-offer-module"),_.iu(this.hostElement,"yt-hide-tvfilm-offer-module")):l.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",l.bannerImageLayoutViewModel):l.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",l.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.W.dataChanged=function(){var l=this,D=_.T4();D?D.getPlayerPromise().then(function(U){l.contentVideoId&&U.getVideoUrl().includes("v="+l.contentVideoId)||(l.cancelPendingCompanionAdJobs(),l.updateRendererStamper())}):_.nt(Error("bp"))};
_.W.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Tn.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.W.handleCompanionAdClicked=function(l,D){this.player.onAdUxClicked(l,D);this.player.pauseVideo()};
MC.prototype.dataChanged=MC.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],MC.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],MC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],MC.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],MC.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],MC.prototype,"oneofRenderer",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],MC.prototype,"dataChanged",null);_.E([_.x({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],MC);
_.r(MC,"ytd-companion-slot-renderer",function(){if(vxw!==void 0)return vxw;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return vxw=l},{mode:_.Vj("kevlar_poly_si_batch_j067")?
1:2});var Lwh;var Rq=function(){return _.p.apply(this,arguments)||this};
_.Z(Rq,_.p);Rq.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Rq.prototype.dataChanged=Rq.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Rq.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Rq.prototype,"companionSlotData",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Rq.prototype,"dataChanged",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Rq);
_.r(Rq,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Lwh!==void 0)return Lwh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Lwh=l},{mode:1});var q2l;var Zi=function(){var l=_.p.apply(this,arguments)||this;l.skinnyMode=!1;l.COMPACT_EVENT_COUNT=4;l.onShelfToggleButtonTap=function(){l.logTap(l.data);l.showingMore=!l.showingMore};
l.onShelfToggleButtonFocus=function(){l.showingMore||(l.logTap(l.data),l.showingMore=!0,_.u6(l,function(){var D=l.COMPACT_EVENT_COUNT-1,U;(U=_.iJ(l.hostElement).querySelector("#event-"+D))==null||U.focus()}))};
return l};
_.Z(Zi,_.p);_.W=Zi.prototype;_.W.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.W.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.W.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.CY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.CY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.CY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.CY(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.CY(this.infoTooltip,this.infoTooltip.hide))};
_.W.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.CY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.CY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.CY(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.CY(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.CY(this.infoTooltip,this.infoTooltip.hide))};
_.W.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)};
_.W.onShowingMoreChanged=function(){var l;this.showingMoreChanged((l=this.showingMore)!=null?l:!1)};
_.W.showingMoreChanged=function(l){var D=this.get("data.events")||[];this.set("restEvents",D.slice(1,l?D.length:this.COMPACT_EVENT_COUNT).map(function(U){return U.ticketEventRenderer}));
D.slice(0,l?D.length:this.COMPACT_EVENT_COUNT).forEach(function(U){var n=_.t6();U=U.ticketEventRenderer.trackingParams;_.aS()&&n&&U&&(U=_.v9(U),n&&_.oe(n,U))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.W.computeAriaLabel=function(l){return l.subtitle1+", "+l.subtitle2};
_.W.logTap=function(l){_.aS()&&this.ytRendererBehavior.logExplicitClick(l)};
_.W.isKeyboardAction=function(l){return this.get("detail.x",l)===0&&this.get("detail.y",l)===0};
_.W.onFirstEventTap=function(l){l.target&&this.handleTap(l.target,this.firstEvent,this.isKeyboardAction(l))};
_.W.onTicketLinkTap=function(l){l.target&&this.handleTap(l.target,l.model.item,this.isKeyboardAction(l))};
_.W.handleTap=function(l,D,U){if(D.buttonCommand)if(D.hasMultipleOffers)Object.assign(_.M(D.buttonCommand,_.rA),{properties:{source:U?"keyboard":"tap"}}),this.logTap(D),this.popupPositionTarget=l,_.DP(this.hostElement,[D.buttonCommand],this.hostElement);else{var n;if((n=_.M(D.buttonCommand,_.yE))==null?0:n.url)this.logTap(D),_.DY(window,_.M(D.buttonCommand,_.yE).url)}};
Zi.prototype.onShowingMoreChanged=Zi.prototype.onShowingMoreChanged;Zi.prototype.dataChanged=Zi.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Zi.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Zi.prototype,"firstEvent",void 0);_.E([_.K(),_.T("design:type",Object)],Zi.prototype,"restEvents",void 0);_.E([_.K(),_.T("design:type",String)],Zi.prototype,"imageUrl",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Zi.prototype,"showingMore",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Zi.prototype,"canShowMore",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Zi.prototype,"skinnyMode",void 0);_.E([_.K(),_.T("design:type",HTMLElement)],Zi.prototype,"popupPositionTarget",void 0);_.E([_.gP("#banner-info-tooltip"),_.T("design:type",Object)],Zi.prototype,"infoTooltip",void 0);
_.E([_.gP("#info-container"),_.T("design:type",HTMLElement)],Zi.prototype,"infoContainer",void 0);_.E([_.gP("#shelf-toggler"),_.T("design:type",HTMLElement)],Zi.prototype,"shelfToggleButton",void 0);_.E([_.gP("#separator"),_.T("design:type",HTMLDivElement)],Zi.prototype,"separator",void 0);_.E([_.K(),_.T("design:type",String)],Zi.prototype,"shelfTogglerLabelText",void 0);_.E([_.K(),_.T("design:type",String)],Zi.prototype,"shelfTogglerIcon",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Zi.prototype,"dataChanged",null);_.E([_.GY("showingMore"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Zi.prototype,"onShowingMoreChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Zi);
_.r(Zi,"ytd-ticket-shelf-renderer",function(){if(q2l!==void 0)return q2l;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return q2l=l},{mode:1});var MVO;var R6w;var ZSq=function(){return _.p.apply(this,arguments)||this};
_.Z(ZSq,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ZSq.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ZSq.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],ZSq);
_.r(ZSq,"ytd-comments-entry-point-message-renderer",function(){if(R6w!==void 0)return R6w;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return R6w=l},{mode:1});var e6g;var e7=function(){return _.p.apply(this,arguments)||this};
_.Z(e7,_.p);_.QP.Object.defineProperties(e7.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.teaserAvatar)}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],e7.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],e7.prototype,"hasAvatar",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],e7);
_.r(e7,"ytd-comments-entry-point-teaser-renderer",function(){if(e6g!==void 0)return e6g;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return e6g=l},{mode:1});var mEW;var aBH=function(){return _.p.apply(this,arguments)||this};
_.Z(aBH,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],aBH.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],aBH.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],aBH);
_.r(aBH,"ytd-comments-simplebox-renderer",function(){if(mEW!==void 0)return mEW;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return mEW=l},{mode:1});var ms=function(){var l=_.p.apply(this,arguments)||this;l.fullHeight=!_.q("comment_teaser_full_height_kill_switch")&&_.q("kevlar_watch_grid");return l};
_.Z(ms,_.p);ms.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"}}}};
ms.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
ms.prototype.onTap=function(){var l=this.tapCommand;l&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(l))};
ms.prototype.onKeyUp=function(l){if(l.keyCode===13)this.onTap()};
_.QP.Object.defineProperties(ms.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null?0:l.onTap)return this.data.onTap;var D,U;if(((D=this.data)==null?0:D.teaserContent)||((U=this.data)==null?0:U.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)!=null&&l.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
ms.prototype.onKeyUp=ms.prototype.onKeyUp;ms.prototype.onTap=ms.prototype.onTap;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ms.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ms.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ms.prototype,"fullHeight",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ms.prototype,"tapCommand",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ms.prototype,"simpleboxPlaceholder",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ms.prototype,"hasSimpleboxPlaceholder",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ms.prototype,"simpleboxAvatar",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ms.prototype,"teaserContent",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ms.prototype,"hasTeaserContent",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ms.prototype,"teaserAvatar",null);
_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ms.prototype,"hasTeaserAvatar",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ms.prototype,"messageText",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],ms.prototype,"contentRenderer",null);_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ms.prototype,"hasContents",null);
_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ms.prototype,"hasContentRenderer",null);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ms.prototype,"onTap",null);_.E([_.hj("keypress"),_.T("design:type",Function),_.T("design:paramtypes",[_.ee]),_.T("design:returntype")],ms.prototype,"onKeyUp",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],ms);
_.r(ms,"ytd-comments-entry-point-header-renderer",function(){if(MVO!==void 0)return MVO;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return MVO=l},{mode:1});var tVI;_.Tt(_.r01,"yt-animated-rolling-number",{props:{numberText:_.C$,numberValue:_.C$,heightPx:_.C$,fontSizeMultiplier:_.C$,shouldAnimate:_.C$,forceRollUp:_.C$}});var XTC=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),S2q={numberText:"",heightPx:2*XTC,shouldAnimate:!1},aq=function(){var l=_.p.apply(this,arguments)||this;l.usingAnimatedComponents=!0;l.wasDetailed=!1;l.JSC$23383_browserSupportsAnimation=_.q("web_supports_animations_api");l.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};l.detailed=!1;l.shouldAnimate=!1;l.viewCountProps=S2q;l.dateTextProps=
S2q;l.metadataBadgesInDescription=_.q("web_metadata_badges_in_description");return l};
_.Z(aq,_.p);_.W=aq.prototype;_.W.attached=function(){var l=this;_.Jc().resolve(_.Xl).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(D){l.set("videoPrimaryInfoRenderer.subtitle",D)})};
_.W.detached=function(){_.Jc().resolve(_.Xl).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.W.resetAnimationState=function(){this.shouldAnimate=!1};
_.W.updateDynamicMetadata=function(){if(this.JSC$23383_browserSupportsAnimation){if(!this.detailed){var l,D,U,n;var y=(l=this.videoPrimaryInfoRenderer)==null?void 0:(D=l.viewCount)==null?void 0:(U=D.videoViewCountRenderer)==null?void 0:(n=U.extraShortViewCount)==null?void 0:n.simpleText;var A,C,h,b;var u=(A=this.videoPrimaryInfoRenderer)==null?void 0:(C=A.viewCount)==null?void 0:(h=C.videoViewCountRenderer)==null?void 0:(b=h.shortViewCount)==null?void 0:b.simpleText}if(!u){var Q,G,J,L;y=(Q=this.videoPrimaryInfoRenderer)==
null?void 0:(G=Q.viewCount)==null?void 0:(J=G.videoViewCountRenderer)==null?void 0:(L=J.unlabeledViewCountValue)==null?void 0:L.simpleText;var R,a,S,d;u=(R=this.videoPrimaryInfoRenderer)==null?void 0:(a=R.viewCount)==null?void 0:(S=a.videoViewCountRenderer)==null?void 0:(d=S.viewCount)==null?void 0:d.simpleText}var c,N,z;l=Number((c=this.videoPrimaryInfoRenderer)==null?void 0:(N=c.viewCount)==null?void 0:(z=N.videoViewCountRenderer)==null?void 0:z.originalViewCount);var f,I;c=(f=this.videoPrimaryInfoRenderer)==
null?void 0:(I=f.relativeDateText)==null?void 0:I.simpleText;var iG;f=!((iG=this.videoPrimaryInfoRenderer)==null||!iG.relativeDateText);if(y&&u&&l&&(c||!f)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;iG=u.split(new RegExp("("+y+")"));y=_.$B(iG[0]);var CC;u={numberText:(CC=iG[1])!=null?CC:"",numberValue:l,heightPx:2*XTC,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var vo;CC=((vo=iG[2])!=null?vo:"")+"  ";this.setViewCount(u,y,_.$B(CC));
if(!this.detailed&&f){y=c.split(/(\d+)/);vo=_.$B(y[0]);var td;CC={numberText:(td=y[1])!=null?td:"",heightPx:2*XTC,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var GN;td=((GN=y[2])!=null?GN:"")+"  ";this.setDateText(CC,vo,_.$B(td))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.W.setViewCount=function(l,D,U){_.Nl(D)!==_.Nl(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=D);this.viewCountProps.numberText!==(l==null?void 0:l.numberText)&&(this.viewCountProps=l||S2q);_.Nl(U)!==_.Nl(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=U)};
_.W.setDateText=function(l,D,U){_.Nl(D)!==_.Nl(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=D);this.dateTextProps.numberText!==(l==null?void 0:l.numberText)&&(this.dateTextProps=l||S2q);_.Nl(U)!==_.Nl(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=U)};
_.W.onYtUpdateViewershipAction=function(l){this.videoPrimaryInfoRenderer&&(_.M(l,DZl).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.M(l,DZl).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.M(l,DZl).viewCount)))};
_.W.onYtUpdateDateTextAction=function(l){if(this.videoPrimaryInfoRenderer){l=_.M(l,_.i6O).dateText;this.shouldAnimate=!0;var D;((D=this.videoPrimaryInfoRenderer)==null?0:D.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",l):this.set("videoPrimaryInfoRenderer.dateText",l)}};
_.QP.Object.defineProperties(aq.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return NtI(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Nl(NtI(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Nl(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Nl(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Nl(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Nl(this.dateTextPostNumberText)].join("")}}});
aq.prototype.updateDynamicMetadata=aq.prototype.updateDynamicMetadata;aq.prototype.resetAnimationState=aq.prototype.resetAnimationState;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],aq.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],aq.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],aq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],aq.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aq.prototype,"detailed",void 0);_.E([_.K(),_.T("design:type",Object)],aq.prototype,"shouldAnimate",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aq.prototype,"viewCountPreNumberText",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aq.prototype,"viewCountProps",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aq.prototype,"viewCountPostNumberText",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aq.prototype,"dateTextPreNumberText",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aq.prototype,"dateTextProps",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aq.prototype,"dateTextPostNumberText",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],aq.prototype,"metadataBadgesInDescription",void 0);_.E([_.t("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.T("design:type",Object),_.T("design:paramtypes",[])],aq.prototype,"infoText",null);
_.E([_.t("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.T("design:type",String),_.T("design:paramtypes",[])],aq.prototype,"descriptionInfoTooltipText",null);_.E([_.t("detailed"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],aq.prototype,"showDescriptionInfoTooltip",null);
_.E([_.t("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.T("design:type",String),_.T("design:paramtypes",[])],aq.prototype,"animatedViewCountAccessibilityLabel",null);_.E([_.t("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.T("design:type",String),_.T("design:paramtypes",[])],aq.prototype,"animatedDateTextAccessibilityLabel",null);
_.E([_.Pg("videoPrimaryInfoRenderer"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aq.prototype,"resetAnimationState",null);_.E([_.Pg("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aq.prototype,"updateDynamicMetadata",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-watch-info-text"})],aq);
_.r(aq,"ytd-watch-info-text",function(){if(tVI!==void 0)return tVI;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return tVI=l},{mode:1});var ksg;var dEC="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var KwW=_.w(function(l){var D=l.data;var U=l.setTapCommand;_.$i(function(){var n=_.te(D().onTap);U(n)},"CLm0Xe");
return _.g("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.g(_.uI,{data:function(){return D().avatar}},{avatarViewModel:_.iX}),_.g("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.g("span",null,function(){return D().simpleboxText})))},"$n");var cOW=_.w(function(l){return _.g("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.g(_.v,{cond:function(){return _.M(l.data().avatar,_.X7)},
then:function(D){return _.g(_.iX,{data:D,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.g("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.g(_.BO,{text:function(){return l.data().teaserText}})))},"ao");var pTO=_.w(function(l){var D=l.data;var U=l.setTapCommand;_.$i(function(){var n=_.te(D().onTap);U(n)},"qxjCCd");
return _.g("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.g(_.uI,{data:function(){return D().teasers}},{commentsEntryPointTeaserViewModel:cOW}))},"co");var xEW=_.w(function(l){var D=l.data;var U=l.setTapCommand;_.$i(function(){var n=_.te(D().onTap);U(n)},"CRZByf");
return _.g("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.g(_.BO,{text:function(){return D().messageText}}))},"fo");var jAH=_.w(function(l){var D=l.data;var U=l.setTapCommand;var n=l.isDisabled;_.$i(function(){var y=(n==null?0:n())?void 0:_.te(D().onTap);U(y)},"GZxRqd");
return _.g("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.g(_.C0,{icon:function(){return D().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.g(_.v,{cond:function(){return D().image},
then:function(y){return _.g(_.rh,{data:y,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.g(_.BO,{text:function(){return D().text},
className:function(){return D().image||D().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.g(_.uI,{data:function(){return D().button}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:n==null?void 0:n()}}})}}))},"ho");var FwD=_.w(function(l){var D=l.data;var U=l.itemIndex;var n=l.selectedIndex;var y=l.indexUpdatedCallback;var A=l.observer;l=l.title;var C=_.bP("yt-carousel-item-view-model",function(G){A&&A().observe(G)}),h=function(G){U()===n()&&y(G)},b=_.gf(QNl),u=_.gf(_.UXo),Q=function(){var G,J,L,R,a;
return((G=D())==null?void 0:G.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!b()||((J=D())==null?void 0:J.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((L=u())==null?void 0:L.includes("PAposts_by_host"))||((R=D())==null?void 0:R.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((a=u())==null?void 0:a.includes("PAyouchat"))};
return _.g("yt-carousel-item-view-model",{el:C,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":l},_.g(_.uI,{data:function(){var G,J;return(J=(G=_.M(D().carouselItem,egj))==null?void 0:G.textCarousel)!=null?J:D().carouselItem}},{textCarouselItemViewModel:function(G){return _.g(jAH,{data:G.data,
setTapCommand:h,isDisabled:Q})},
commentTeaserCarouselItemViewModel:function(G){return _.g(pTO,{data:G.data,setTapCommand:h})},
commentInputBoxCarouselItemViewModel:function(G){return _.g(KwW,{data:G.data,setTapCommand:h})},
commentsEntryPointMessageViewModel:function(G){return _.g(xEW,{data:G.data,setTapCommand:h})}}))},"io");var oxO=_.w(function(l){var D=l.numDots;var U=l.activeIndex;return _.g("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.g(_.wt,{each:function(){return Array.from({length:D()})},
keyBy:"INDEX"},function(n,y){return _.g("div",{class:function(){var A={};return _.MJ("ytCarouselDotsShapeDot",(A.ytCarouselDotsShapeDotActive=y===U(),A))}})}))},"jo");var wTw=_.w(function(l){var D=l.data;var U=l.handleCarouselNavigation;var n=l.numItems;var y=l.selectedIndex;var A=function(){return{disabled:y()===0}},C=function(){return{disabled:y()===n()-1}};
return _.g("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.g("div",null,_.g("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return D().title}),_.g(_.v,{cond:function(){return D().subtitle},
then:function(h){return _.g("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return D().subtitleAccessibilityText}},h)}})),_.g(_.v,{cond:function(){return n()>1},
then:function(){return _.g("div",{class:"ytCarouselTitleViewModelNavigation"},_.g(oxO,{numDots:n,activeIndex:y}),_.g(_.v,{cond:function(){return D().previousButton},
then:function(h){return _.g(_.uI,{data:h},{buttonViewModel:function(b){return _.g(_.t9,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return U(-1)},
buttonOverrides:A})}})}}),_.g(_.v,{cond:function(){return D().nextButton},
then:function(h){return _.g(_.uI,{data:h},{buttonViewModel:function(b){return _.g(_.t9,{data:b.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return U(1)},
buttonOverrides:C})}})}}))}}))},"ko");_.Tt(_.w(function(l){var D=l.data;var U,n=_.bP("yt-video-metadata-carousel-view-model"),y=_.bP("div",function(f){var I=function(){var iG=f.offsetWidth*a(),CC=24*(a()-1);J(iG+CC)};
I();window.ResizeObserver&&(U=new ResizeObserver(I),U.observe(f))}),A=_.H3("HTML_DIR")==="rtl",C=!1,h=0,b=0;
l=_.B(_.aw(0,void 0,"M49TDf"));var u=l.next().value,Q=l.next().value;l=_.B(_.aw(0,void 0,"zLIok"));var G=l.next().value,J=l.next().value;l=_.B(_.aw(!1,void 0,"bhelhc"));var L=l.next().value,R=l.next().value,a=function(){var f,I,iG;return(iG=(f=D())==null?void 0:(I=f.carouselTitles)==null?void 0:I.length)!=null?iG:0},S=function(){y.value&&y.value.scrollLeft!==h&&Q((A?y.value.scrollLeft<h:y.value.scrollLeft>h)?Math.min(u()+1,a()-1):Math.max(u()-1,0))},d;
window.IntersectionObserver&&(d=new IntersectionObserver(function(f){f=_.B(f);for(var I=f.next();!I.done;I=f.next())if(I.value.isIntersecting){if(C){C=!1;break}S()}else Q(b)},{threshold:.2}));
_.$i(function(){if(y.value){var f=(A?-1:1)*(G()/a()+12)*(L()&&d?b:u());typeof y.value.scrollTo==="function"?y.value.scrollTo({left:f,behavior:"smooth"}):y.value.scrollLeft=f;h=f;b=L()&&d?b:u()}},"s9rbgc");
var c,N=function(f){c=f};
_.NV(function(){var f;(f=U)==null||f.disconnect();var I;(I=d)==null||I.disconnect()});
var z=function(f){f=u()+f;f>=0&&f<a()&&(C=!0,Q(f))};
return _.g("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:n,"on:click":_.n0(function(f){if(_.ZX(_.RT(f),n.value,["BUTTON".toString()])||!c)return!1;_.Jc().resolve(_.qK).resolveCommand(c,{forceClickLogging:!0});return!1}),
"on:touchstart":_.n0(function(){R(!0);return!1}),
"on:touchend":_.n0(function(){d||S();R(!1);return!1}),
hidden:function(){var f,I;return!((f=D())==null?0:(I=f.carouselItems)==null?0:I.length)}},_.g("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.g(_.v,{cond:function(){return D().carouselTitles},
then:function(f){return _.g(_.uI,{data:function(){return f()[L()&&d?b:u()]}},{carouselTitleViewModel:function(I){return _.g(wTw,{data:I.data,
handleCarouselNavigation:z,numItems:a,selectedIndex:u})}})}})),_.g("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:y},_.g("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+G()+"px;"}},_.g(_.v,{cond:function(){return D().carouselItems},
then:function(f){return _.g(_.wt,{each:f},function(I,iG){return _.g(_.uI,{data:function(){return I}},{carouselItemViewModel:function(CC){return _.g(FwD,{data:CC.data,
itemIndex:iG,selectedIndex:u,indexUpdatedCallback:N,observer:d,title:function(){a:{var vo=iG();var td,GN=(td=D())==null?void 0:td.carouselTitles;if(GN&&(vo=GN[vo])){var Ms;vo=(Ms=_.M(vo,Zth))==null?void 0:Ms.title;break a}vo=void 0}return vo}})}})})}}))))},"mo"),"yt-video-metadata-carousel-view-model",{props:{data:_.C$}});var rOO=_.q("web_action_buttons_update_owner_width")?32:12,tm=function(){var l=_.p.apply(this,arguments)||this;l.isHovering=!1;l.enableColorSampling=_.q("web_delhi_colorful_sd");l.metadataBadgesInDescription=_.q("web_metadata_badges_in_description");l.descriptionCollapsed=!0;l.useFadedScrimDescription=_.q("kevlar_enable_faded_scrim_on_description");l.skinnyMode=!1;l.playlist=!1;l.isDark=document.documentElement.hasAttribute("dark");l.disableVideoOwnerOnTap=_.q("swatchie_video_owner_on_tap_ks");l.swatcherooDelayLoad=
_.q("swatcheroo_enable_ghost_cards");l.primaryMenuWidth=0;l.videoId="";l.titleHeadlineXs=_.q("web_watch_typography_title_headline_xs");l.titleHeadlineS=_.q("web_watch_typography_title_headline_s");l.titleHeadlineM=_.q("web_watch_typography_title_headline_m");l.titleHashtagBlackLinkified=_.q("web_title_hashtag_black_linkified");l.titleHashtagGreyLinkified=_.q("web_title_hashtag_grey_linkified");l.actionButtonsUpdateOwnerWidth=_.q("web_action_buttons_update_owner_width");l.shouldForceIconOnly=!1;l.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};l.isFullscreen=!1;l.isTheaterMode=!1;return l};
_.Z(tm,_.p);_.W=tm.prototype;_.W.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.W.updateOwnerAndDescriptionPosition=function(){_.q("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.cu(this.bottomRowElement,this.ownerElement)):(_.cu(this.bottomRowElement,this.descriptionElement),_.cu(this.topRowElement,this.ownerElement)))};
_.W.titleOnTap=function(l){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.$o(_.$f(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var D;((D=window.getSelection())==null?0:D.toString().length)||this.handleExpandDescriptionCommands()}};
_.W.videoOwnerOnTap=function(l){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.$o(_.$f(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.W.detached=function(){var l=this,D;return _.P(function(U){(D=l.resizeObserver)==null||D.disconnect();_.Kz(U)})};
_.W.maybeAttachResizeObserver=function(){var l=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.A1(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){l.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.W.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var l=this.hostElement.clientWidth,D=Math.max(this.largerItemWrap?400:350,l/2-rOO);_.q("web_action_buttons_update_owner_width")&&(D=this.ownerElement.clientWidth+rOO);this.actionsOnSeparateLine=this.primaryMenuWidth>l-D?!0:!1}};
_.W.stripAttributedDescription=function(l){return{content:l.content.replace(/[\r\n]{2,}/g,"\n")}};
_.W.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.q("web_modern_buttons"),forceIconButton:!_.q("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:_.q("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"}}}};
_.W.videoPrimaryInfoRendererChanged=function(){var l;if((l=this.videoPrimaryInfoRenderer)==null?0:l.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.W.videoSecondaryInfoRendererChanged=function(){var l,D;(l=this.descriptionInlineExpander)==null||(D=l.collapse)==null||D.call(l);this.descriptionExpandClientVe=_.UE(110509);this.descriptionCollapseClientVe=_.UE(110510);l=_.t6();D=_.aS();l&&D&&(_.q("combine_ve_grafts")?(_.cq(_.he(),this.descriptionExpandClientVe,D),_.cq(_.he(),this.descriptionCollapseClientVe,D)):_.FI(l,D,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.W.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.W.updateTopLevelIconsOnly=function(){var l=this;_.q("top_level_update_killswitch")||this.menu&&_.Tn.addLowPriorityJob(function(){l.menu.topLevelIconsOnly=l.skinnyMode},_.RG("swathceroo_delay_flexible_menu_update",100))};
_.W.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.q("web_action_buttons_minimize_subscribe")};
_.W.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.W.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.W.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.W.onYtTextInlineExpanderExpandedChanged=function(){if(!_.q("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var l,D;(D=(l=this.structuredDescriptionContentRendererElement).resize)==null||D.call(l)}};
_.W.onRenderStamperFinished=function(l){(l==null?void 0:l.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.W.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.W.onYtExpanderLessTapped=function(){var l,D=(l=this.videoSecondaryInfoRenderer)==null?void 0:l.showLessCommand;D&&this.ytComponentBehavior.resolveCommand(D)};
_.W.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.W.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.W.onDescriptionClick=function(l){if(!_.$o(_.$f(l)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var D;((D=window.getSelection())==null?0:D.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.q("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.W.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.W.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.W.logCollapseClick=function(){var l=_.t6();l&&this.descriptionCollapseClientVe&&_.zo(l,this.descriptionCollapseClientVe)};
_.W.logExpandClick=function(){var l=_.t6();l&&this.descriptionExpandClientVe&&_.zo(l,this.descriptionExpandClientVe)};
_.W.collapseDescription=function(){this.descriptionCollapsed=!0};
_.W.scrollToTopOfContainer=function(){_.Vh(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.W.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.W.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.W.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.W.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var l,D;(D=(l=this.descriptionInlineExpander).resize)==null||D.call(l)}else _.II(new _.rc("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var U;(U=this.menu)==null||U.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.W.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var l,D,U,n,y=_.q("web_action_buttons_update_owner_width")?(U=(l=_.iJ(this.menu).querySelector("#button-shape"))==null?void 0:l.clientWidth)!=null?U:0:(n=(D=_.iJ(this.menu).querySelector("#button"))==null?void 0:D.clientWidth)!=null?n:0,A,C;l=((C=(A=_.iJ(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:A.clientWidth)!=null?C:0)+8+y;var h,b;y=(b=(h=_.iJ(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:h.children.length)!=null?b:2;l<=8*y||(this.primaryMenuWidth=l)}};
_.W.onYtUpdateTitleAction=function(l){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.M(l,llT).title)};
_.W.onYtUpdateDescriptionAction=function(l){if(l=_.M(l,_.oam)){var D,U=!((D=this.videoSecondaryInfoRenderer)==null||!D.attributedDescription);l.isEmpty||!l.description&&!l.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):l.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",l.attributedDescription):l.description&&(U?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Zk(l.description)):this.set("videoSecondaryInfoRenderer.description",l.description))}};
_.W.onYtDarkModeToggledAction=function(l){this.isDark=l};
_.W.registerPanel=function(){if(!_.q("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var l=_.q("web_watch_imax_theater_mode")&&this.isTheaterMode;l=_.q("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||l;var D=_.Jc().resolve(_.IH);D&&!l&&D.registerPanel("engagement-panel-structured-description",this)}};
_.W.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.W.parseColorSamplingData=function(){var l;if(_.q("web_delhi_colorful_sd")&&((l=this.structuredDescriptionContentRenderer)==null?0:l.items)&&(l=this.structuredDescriptionContentRenderer.items.find(function(y){return!!_.M(y,pX)}))){var D,U;
this.hoverColor={lightTheme:(D=_.M(l,pX))==null?void 0:D.lightThemeColorPalette,darkTheme:(U=_.M(l,pX))==null?void 0:U.darkThemeColorPalette};var n;this.hoverText=(n=_.M(l,pX))==null?void 0:n.colorSampledDescriptionBodyText}};
_.W.updateHoverColor=function(){if(_.q("web_delhi_colorful_sd")){var l=this.hoverColor,D={},U;l=(U=this.isDark?l==null?void 0:l.darkTheme:l==null?void 0:l.lightTheme)!=null?U:{};U=_.B(dEC);for(var n=U.next();!n.done;n=U.next()){n=n.value;var y=l[n];D["--yt-saturated-"+_.CI(n)]=y?_.tu(y):"initial"}_.Wg(this.hostElement,D)}};
_.W.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.W.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.W.showPanel=function(l){this.expandDescription();var D=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;D.resize();var U,n=l==null?void 0:(U=l.sectionListEngagementPanelExtras)==null?void 0:U.scrollToItemSectionIdentifier;n?_.Tn.addJob(function(){D==null||D.scrollToSection(n)},8):this.scrollToTopOfContainer()};
_.W.isVisible=function(){return!this.descriptionCollapsed};
_.W.getReloadContinuation=function(){};
_.W.hidePanel=function(){};
_.W.updatePanel=function(){};
_.QP.Object.defineProperties(tm.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var l;return _.q("web_delhi_colorful_sd")&&(l=this.structuredDescriptionContentRenderer)!=null&&l.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(D){return!_.M(D,pX)&&!_.M(D,y3T)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.structuredDescriptionContentRendererComputed)!=null&&l.items){var D;l=_.B((D=this.structuredDescriptionContentRendererComputed)==null?void 0:D.items);for(D=l.next();!D.done;D=l.next())if(D=_.M(D.value,_.Sp_))return D}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.videoPrimaryInfoRenderer)==null?0:l.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return!!((l=this.videoSecondaryInfoRenderer)==null?0:(D=l.owner)==null?0:(U=D.videoOwnerRenderer)==null?0:U.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var l,D;if((l=this.videoSecondaryInfoRenderer)==null?0:(D=l.attributedDescription)==null?0:D.content){var U,n;return(n=this.stripAttributedDescription((U=this.videoSecondaryInfoRenderer)==null?void 0:U.attributedDescription))!=null?n:{runs:[]}}}if(_.q("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var y,A,C,h;return(h=(C=(y=this.videoSecondaryInfoRenderer)==
null?void 0:y.description)!=null?C:(A=this.videoSecondaryInfoRenderer)==null?void 0:A.attributedDescription)!=null?h:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=(l=this.videoSecondaryInfoRenderer)==null?void 0:l.headerRuns)!=null?D:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.commentsEntryPointHeaderRenderer)==null||!l.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.videoMetadataCarousel)==null||!l.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.RG("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var l,D,U=Object.assign({},(l=this.videoSecondaryInfoRenderer)==null?void 0:(D=l.metadataRowContainer)==null?void 0:D.metadataRowContainerRenderer);if(U&&U.rows&&U.collapsedItemCount!==void 0&&!(U.rows.length<=U.collapsedItemCount))return U.rows=U.rows.slice(U.collapsedItemCount),U.collapsedItemCount=0,U}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var l,D,U=Object.assign({},(l=this.videoSecondaryInfoRenderer)==null?void 0:(D=l.metadataRowContainer)==null?void 0:D.metadataRowContainerRenderer);if(U&&U.rows&&U.collapsedItemCount!==void 0)return U.rows=U.rows.slice(0,U.collapsedItemCount),U.collapsedItemCount=U.rows.length,U}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var l,D;return!!((l=this.structuredDescriptionContentRendererComputed)==null?0:(D=l.items)==null?0:D.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var l;return(l=this.videoSecondaryInfoRenderer)==null?void 0:l.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((l=this.videoSecondaryInfoRenderer)==null?0:(D=l.owner)==null?0:(U=D.videoOwnerRenderer)==null?0:U.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n;return!!((l=this.videoPrimaryInfoRenderer)==null?0:(D=l.videoActions)==null?0:(U=D.menuRenderer)==null?0:(n=U.flexibleItems)==null?0:n.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Fk(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Fk(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var l=this;if(_.q("web_title_hashtag_grey_delinkified")){var D,U=_.we.unsafeClone((D=this.videoPrimaryInfoRenderer)==null?void 0:D.title);(D=U==null?void 0:U.runs)&&D.forEach(function(n){if(n==null?0:n.navigationEndpoint)n.textColor=4284506208,l.isDark&&(n.textColor=4289374890)});
return U}return(U=this.videoPrimaryInfoRenderer)==null?void 0:U.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.q("web_title_hashtag_black_delinkified")||_.q("web_title_hashtag_grey_delinkified")}}});
tm.prototype.updateHoverColor=tm.prototype.updateHoverColor;tm.prototype.parseColorSamplingData=tm.prototype.parseColorSamplingData;tm.prototype.resetDescriptionState=tm.prototype.resetDescriptionState;tm.prototype.registerPanel=tm.prototype.registerPanel;tm.prototype.onYtExpanderLessTapped=tm.prototype.onYtExpanderLessTapped;tm.prototype.onYtExpanderMoreTapped=tm.prototype.onYtExpanderMoreTapped;tm.prototype.onRenderStamperFinished=tm.prototype.onRenderStamperFinished;
tm.prototype.onYtTextInlineExpanderExpandedChanged=tm.prototype.onYtTextInlineExpanderExpandedChanged;tm.prototype.onYtTextInlineExpanderCollapseClicked=tm.prototype.onYtTextInlineExpanderCollapseClicked;tm.prototype.onYtTextInlineExpanderExpandClicked=tm.prototype.onYtTextInlineExpanderExpandClicked;tm.prototype.moveActionsElement=tm.prototype.moveActionsElement;tm.prototype.updateShouldForceIconOnly=tm.prototype.updateShouldForceIconOnly;tm.prototype.updateTopLevelIconsOnly=tm.prototype.updateTopLevelIconsOnly;
tm.prototype.structuredDescriptionContentRendererChanged=tm.prototype.structuredDescriptionContentRendererChanged;tm.prototype.videoSecondaryInfoRendererChanged=tm.prototype.videoSecondaryInfoRendererChanged;tm.prototype.videoPrimaryInfoRendererChanged=tm.prototype.videoPrimaryInfoRendererChanged;tm.prototype.maybeUpdateActionsOnSeparateLine=tm.prototype.maybeUpdateActionsOnSeparateLine;tm.prototype.updateOwnerAndDescriptionPosition=tm.prototype.updateOwnerAndDescriptionPosition;
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],tm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],tm.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],tm.prototype,"ytdReduxBehavior",void 0);_.E([_.gP("#above-the-fold"),_.T("design:type",HTMLElement)],tm.prototype,"aboveTheFoldContainer",void 0);_.E([_.gP("#menu ytd-menu-renderer"),_.T("design:type",Object)],tm.prototype,"menu",void 0);_.E([_.gP("#description-inline-expander"),_.T("design:type",Object)],tm.prototype,"descriptionInlineExpander",void 0);
_.E([_.gP("#faded-structured-description"),_.T("design:type",Object)],tm.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.E([_.gP("#structured-description"),_.T("design:type",Object)],tm.prototype,"structuredDescriptionContentRendererElement",void 0);_.E([_.gP("#title"),_.T("design:type",HTMLElement)],tm.prototype,"titleElement",void 0);_.E([_.gP("#description"),_.T("design:type",HTMLElement)],tm.prototype,"descriptionElement",void 0);
_.E([_.gP("#description-interaction"),_.T("design:type",Object)],tm.prototype,"descriptionInteraction",void 0);_.E([_.gP("#owner"),_.T("design:type",HTMLElement)],tm.prototype,"ownerElement",void 0);_.E([_.gP("#top-row"),_.T("design:type",HTMLElement)],tm.prototype,"topRowElement",void 0);_.E([_.gP("#bottom-row"),_.T("design:type",HTMLElement)],tm.prototype,"bottomRowElement",void 0);_.E([_.gP("#actions"),_.T("design:type",HTMLElement)],tm.prototype,"actionsElement",void 0);
_.E([_.gP("#bottom-actions"),_.T("design:type",HTMLElement)],tm.prototype,"bottomActionsElement",void 0);_.E([_.gP("#ytd-watch-info-text"),_.T("design:type",Object)],tm.prototype,"watchInfoTextElement",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"videoSecondaryInfoRenderer",void 0);
_.E([_.K(),_.T("design:type",Object)],tm.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"videoMetadataCarousel",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.t("structuredDescriptionContentRenderer"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"structuredDescriptionContentRendererComputed",null);
_.E([_.K(),_.T("design:type",Object)],tm.prototype,"videoSummary",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"merchShelf",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"infoPanelBelowMetadata",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"hoverColor",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"hoverText",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"isHovering",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"enableColorSampling",void 0);_.E([_.t("structuredDescriptionContentRendererComputed"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"productShelf",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"metadataBadgesInDescription",void 0);_.E([_.t("videoPrimaryInfoRenderer"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"shouldHideBadges",null);
_.E([_.t("productShelf","descriptionCollapsed"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tm.prototype,"shouldShowProductShelf",null);_.E([_.K(),_.T("design:type",Boolean)],tm.prototype,"isWatchFlexy",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"descriptionCollapsed",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],tm.prototype,"useFadedScrimDescription",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"skinnyMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("videoSecondaryInfoRenderer"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"largerItemWrap",null);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"playlist",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"clarifyBox",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"playerAds",void 0);
_.E([_.K(),_.T("design:type",Boolean)],tm.prototype,"isDark",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],tm.prototype,"actionsOnSeparateLine",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"disableVideoOwnerOnTap",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"swatcherooDelayLoad",void 0);_.E([_.K(),_.T("design:type",Boolean)],tm.prototype,"suppressTopLevelMetadataRows",void 0);
_.E([_.K(),_.T("design:type",Object)],tm.prototype,"primaryMenuWidth",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"videoId",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"titleHeadlineXs",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"titleHeadlineS",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"titleHeadlineM",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"titleHashtagBlackLinkified",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"titleHashtagGreyLinkified",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.E([_.K(),_.T("design:type",Object)],tm.prototype,"shouldForceIconOnly",void 0);
_.E([_.GY("skinnyMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"updateOwnerAndDescriptionPosition",null);_.E([_.GY("skinnyMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.E([_.t("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"descriptionText",null);_.E([_.t("videoSecondaryInfoRenderer.headerRuns"),_.T("design:type",Array),_.T("design:paramtypes",[])],tm.prototype,"headerRuns",null);
_.E([_.K({value:!1}),_.t("commentsEntryPointHeaderRenderer"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"hasTeaser",null);_.E([_.K({value:!1,reflectToAttribute:!0}),_.t("videoMetadataCarousel"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"hasTeaserCarousel",null);_.E([_.K({value:3}),_.t("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"descriptionMaxLines",null);
_.E([_.t("videoSecondaryInfoRenderer.metadataRowContainer"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"collapsibleMetadataRows",null);_.E([_.t("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"alwaysVisibleMetadataRows",null);
_.E([_.t("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tm.prototype,"hasInlineStructuredDescription",null);_.E([_.t("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tm.prototype,"showInlineStructuredDescription",null);
_.E([_.t("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"descriptionExpandCommand",null);_.E([_.t("videoSecondaryInfoRenderer.owner"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"videoOwnerCommand",null);_.E([_.K({reflectToAttribute:!0}),_.t("videoPrimaryInfoRenderer.videoActions"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tm.prototype,"flexMenuEnabled",null);
_.E([_.K({selector:_.t1,reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"isFullscreen",void 0);_.E([_.K({selector:_.aL,reflectToAttribute:!0}),_.T("design:type",Object)],tm.prototype,"isTheaterMode",void 0);_.E([_.t("descriptionText","useFadedScrimDescription"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tm.prototype,"showAttributedStringDescription",null);
_.E([_.t("descriptionText","useFadedScrimDescription"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tm.prototype,"showFormattedStringDescription",null);_.E([_.t("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tm.prototype,"showFadedStructuredDescription",null);
_.E([_.GY("videoPrimaryInfoRenderer"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"videoPrimaryInfoRendererChanged",null);_.E([_.t("videoPrimaryInfoRenderer.title"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"videoTitle",null);_.E([_.t("videoPrimaryInfoRenderer"),_.T("design:type",Object),_.T("design:paramtypes",[])],tm.prototype,"noEndpoints",null);
_.E([_.GY("videoSecondaryInfoRenderer"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"videoSecondaryInfoRendererChanged",null);_.E([_.Pg("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"structuredDescriptionContentRendererChanged",null);
_.E([_.Pg("skinnyMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"updateTopLevelIconsOnly",null);_.E([_.Pg("skinnyMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"updateShouldForceIconOnly",null);_.E([_.Pg("skinnyMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"moveActionsElement",null);
_.E([_.hj("yt-text-inline-expander-expand-clicked"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"onYtTextInlineExpanderExpandClicked",null);_.E([_.hj("yt-text-inline-expander-collapse-clicked"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.E([_.hj("yt-text-inline-expander-expanded-changed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],tm.prototype,"onRenderStamperFinished",null);
_.E([_.hj("yt-expander-more-tapped"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"onYtExpanderMoreTapped",null);_.E([_.hj("yt-expander-less-tapped"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"onYtExpanderLessTapped",null);
_.E([_.Pg("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"registerPanel",null);_.E([_.Pg("videoSecondaryInfoRenderer"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"resetDescriptionState",null);
_.E([_.Pg("structuredDescriptionContentRenderer"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"parseColorSamplingData",null);_.E([_.Pg("hoverColor","isDark"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tm.prototype,"updateHoverColor",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-watch-metadata"})],tm);
_.r(tm,"ytd-watch-metadata",function(){if(ksg!==void 0)return ksg;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return ksg=l},{mode:2});_.IBg=function(l){_.xT.call(this);this.JSC$23408_watchApi=l;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;z6W(this);fBD(this);$Ec(this);N0H(this);sAj(this);Exk(this);T0D(this)};
_.Z(_.IBg,_.xT);var $Ec=function(l){var D=function(){_.q("kevlar_is_pupi_enabled")||Xh(l)};
l.JSC$23408_watchApi.getRoot().addEventListener("yt-player-updated",D);l.addOnDisposeCallback(function(){l.JSC$23408_watchApi.getRoot().removeEventListener("yt-player-updated",D)})},sAj=function(l){if(_.q("kevlar_endscreen_auto_theater_mode")){var D=l.JSC$23408_watchApi.subscribeToActiveChanged(function(){HSl(l)},!1);
l.addOnDisposeCallback(D)}},z6W=function(l){var D,U,n,y,A;
_.P(function(C){if(C.nextAddress==1)return C.yield(l.JSC$23408_watchApi.playerApi,2);D=C.yieldResult;U=function(h){h=!!h;Y2H(l)&&(h=h?2:1,_.RZ.getInstance().setState(h,!0,!1))};
n=function(h){h&&_.vgW(_.EB().getState())&&(_.Vh(l.JSC$23408_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),l.temporaryTheaterMode=!0)};
y=function(h){_.q("kevlar_player_update_autonav_on_new_data")&&h.type==="newdata"&&(_.q("kevlar_is_pupi_enabled")||Xh(l))};
A=function(h){l.onPlayerStateChange(h)};
_.q("kevlar_endscreen_auto_theater_mode")&&D.addEventListener("onAutonavCancelled",n);D.addEventListener("onAutonavChangeRequest",U);D.addEventListener("onVideoDataChange",y);D.addEventListener("onStateChange",A);l.addOnDisposeCallback(function(){D.removeEventListener("onAutonavChangeRequest",U);D.removeEventListener("onVideoDataChange",y);D.removeEventListener("onStateChange",A);_.q("kevlar_endscreen_auto_theater_mode")&&D.removeEventListener("onAutonavCancelled",n)});
_.Kz(C)})},fBD=function(l){l.JSC$23408_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){l.autonavCancelledBySignal=!0;
_.q("kevlar_is_pupi_enabled")||Xh(l)});
l.JSC$23408_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(D,U,n){U&&Xh(l,n)});
l.JSC$23408_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Y2H(l)&&_.RZ.getInstance().setState(2,!0,!0)});
l.JSC$23408_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Y2H(l)&&_.RZ.getInstance().setState(1,!0,!0)});
l.addOnDisposeCallback(function(){l.JSC$23408_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");l.JSC$23408_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");l.JSC$23408_watchApi.unregisterActionHandler("yt-enable-autoplay-command");l.JSC$23408_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},N0H=function(l){var D=l.JSC$23408_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){T0D(l)}),U=l.JSC$23408_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Exk(l)});
l.addOnDisposeCallback(function(){l.JSC$23408_watchApi.unsubscribeByKey(D);l.JSC$23408_watchApi.unsubscribeByKey(U)})},T0D=function(l){l.autonavCancelledBySignal=!1;
_.q("kevlar_is_pupi_enabled")||Xh(l)},Exk=function(l){var D=l.JSC$23408_watchApi.getWatchNextResponse(),U,n;
var y=(D=(n=_.M(D==null?void 0:(y=D.playerOverlays)==null?void 0:(U=y.playerOverlayRenderer)==null?void 0:U.autonavToggle,_.fq7))==null?void 0:n.enabled)?2:1;_.q("kevlar_is_pupi_enabled")?_.RZ.getInstance().setState(y,!1,!1):Xh(l);_.q("web_persist_server_autonav_state_on_client")&&typeof D==="boolean"&&_.hEB(y===2)},Y2H=function(l){if(l.autonavCancelledBySignal)return!1;
var D,U,n,y;return!!((D=l.JSC$23408_watchApi.getWatchNextResponse())==null?0:(U=D.contents)==null?0:(n=U.twoColumnWatchNextResults)==null?0:(y=n.autoplay)==null?0:y.autoplay)};
_.IBg.prototype.onPlayerStateChange=function(l){if(l===0){l=!_.RZ.getInstance().isAutoplaySetExplicitly();var D=this.JSC$23408_watchApi.getWatchNextResponse(),U,n,y,A;D=_.M(D==null?void 0:(U=D.contents)==null?void 0:(n=U.twoColumnWatchNextResults)==null?void 0:(y=n.autoplay)==null?void 0:(A=y.autoplay)==null?void 0:A.autoplayExplicitChoiceDialogRenderer,_.yKg);Y2H(this)&&l&&D&&_.yu.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:D},popupType:"DIALOG"}})}else HSl(this)};
var HSl=function(l){l.temporaryTheaterMode&&(l.temporaryTheaterMode=!1,_.Vh(l.JSC$23408_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Xh=function(l,D){D=D===void 0?!1:D;
var U;_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23408_watchApi.playerApi,2);U=n.yieldResult;Y2H(l)?U.setAutonavState(_.RZ.getInstance().getState(),D):U.setAutonavState(1,D);_.Kz(n)})};var OSW={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.iIc=function(l){_.xT.call(this);var D=this;this.JSC$23413_watchApi=l;var U=this.JSC$23413_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){VVO(D)});
this.addOnDisposeCallback(function(){D.JSC$23413_watchApi.unsubscribeByKey(U)});
VVO(this)};
_.Z(_.iIc,_.xT);var VVO=function(l){var D=l.JSC$23413_watchApi.getPlayerResponse(),U=l.JSC$23413_watchApi.getWatchNextResponse();if(!_.$bo(D==null?void 0:D.playabilityStatus,U==null?void 0:U.playerOverlays)){var n;var y=D==null?void 0:(n=D.playabilityStatus)==null?void 0:n.errorScreen}l.JSC$23413_watchApi.provideRenderingData("ERROR_SCREEN",y)};var l5D=_.w(function(l){return _.g("yt-player-grid-renderer",{class:_.DV("ytPlayerGridRendererHost",l.className)},_.g(_.uI,{data:l.data},{lockupViewModel:_.xd}))},"no");var DAj=_.w(function(l){var D=l.data;l=_.q("web_watch_video_details_hide_subtitle");var U=_.q("web_watch_video_details_single_line_title"),n=_.n0(function(){var h=D().onTap;h&&_.Jc().resolve(_.qK).resolveCommand(h)}),y={},A={},C={};
return _.g("yt-player-overlay-video-details-renderer",{class:_.DV("ytPlayerOverlayVideoDetailsRendererHost",(y.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.q("web_watch_video_details_transparent_background"),y)),"on:click":n,role:"button"},_.g("h2",{class:_.DV("ytPlayerOverlayVideoDetailsRendererTitle",(A.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return U},A))},_.g(_.BO,{text:function(){return D().title}})),_.g("div",{class:_.DV("ytPlayerOverlayVideoDetailsRendererSubtitle",
(C.ytPlayerOverlayVideoDetailsRendererHideSubtitle=l,C))},_.g(_.BO,{text:function(){return D().subtitle}})))},"oo");var S7={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},UAO=_.w(function(l){var D=l.data;var U=_.gf(_.t1),n=_.q("web_watch_action_bar_resize_buttons"),y=_.q("web_watch_video_action_dsdvb"),A=_.q("delhi_modern_web_player_icons")&&!_.q("enable_web_delhi_icons");l=_.q("delhi_modern_web_player_disable_frosted_glass");var C=_.q("delhi_modern_web_player_compact_video_actions_controls"),
h=_.q("web_player_quick_action_buttons_icon_only"),b=function(){var Q=n&&!U(),G={};C?G.size="S":Q&&(G.size="M");h&&(G.iconPosition="icon-only");if(Object.keys(G).length!==0)return G},u={};
return _.g("yt-player-quick-action-buttons",{class:_.DV("ytPlayerQuickActionButtonsHost",(u.ytPlayerQuickActionButtonsHostCompactControls=function(){return!U()||C},u.ytPlayerQuickActionButtonsHostDisableBackdropFilter=l,u))},_.g(_.wt,{each:function(){var Q=D();
if(A){Q=JSON.parse(JSON.stringify(Q));for(var G=_.B(Q),J=G.next();!J.done;J=G.next()){var L=J.value,R=void 0;J=_.M((R=_.M(L,_.Vw))==null?void 0:R.toggleButtonViewModel,_.Pq);var a=void 0;R=_.M((a=_.M(L,_.Oi))==null?void 0:a.toggleButtonViewModel,_.Pq);a=_.M(L,_.CM);L=_.M(L,_.Pq);if(J)R=_.M(J.defaultButtonViewModel,_.CM),J=_.M(J.toggledButtonViewModel,_.CM),R&&R.iconName&&(R.iconName=S7[R.iconName]),J&&J.iconName&&(J.iconName=S7[J.iconName]);else if(R)J=_.M(R.defaultButtonViewModel,_.CM),R=_.M(R.toggledButtonViewModel,
_.CM),J&&J.iconName&&(J.iconName=S7[J.iconName]),R&&R.iconName&&(R.iconName=S7[R.iconName]);else if(a)a.iconName&&(a.iconName=S7[a.iconName]);else if(L){J=_.M(L.defaultButtonViewModel,_.CM);R=_.M(L.toggledButtonViewModel,_.CM);L=void 0;if((L=J)==null?0:L.iconName)J.iconName=S7[J.iconName];J=void 0;if((J=R)==null?0:J.iconName)R.iconName=S7[R.iconName]}}}y&&(Q=sNh(Q));return Q}},function(Q){return _.g(_.uI,{data:function(){return Q}},{buttonViewModel:function(G){return _.g(_.t9,{data:G.data,
buttonOverrides:b})},
likeButtonViewModel:function(G){return _.g(_.n_,{data:G.data,buttonShapeOverrideables:b})},
dislikeButtonViewModel:function(G){return _.g(_.Uh,{data:G.data,buttonShapeOverrideables:b})},
toggleButtonViewModel:function(G){return _.g(_.s0,{data:G.data,buttonShapeOverrides:b})}})}))},"po");_.y6h=function(l){_.xT.call(this);var D=this;this.JSC$23418_watchApi=l;l=_.B(_.aw({},void 0,"OB6c5e"));this.quickActionsViewModel=l.next().value;this.setQuickActionsViewModel=l.next().value;l=_.B(_.aw({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=l.next().value;this.setPlayerOverlayVideoDetailsRenderer=l.next().value;l=_.B(_.aw([],void 0,"A7tRk"));this.lockupViewModels=l.next().value;this.setLockupViewModels=l.next().value;var U=this.JSC$23418_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){n2W(D)});
this.addOnDisposeCallback(function(){D.JSC$23418_watchApi.unsubscribeByKey(U)});
n2W(this)};
_.Z(_.y6h,_.xT);
var n2W=function(l){var D,U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d;_.P(function(c){if(c.nextAddress==1)return c.yield(l.JSC$23418_watchApi.playerApi,2);D=c.yieldResult;U=l.JSC$23418_watchApi.getWatchNextResponse();A=(n=U)==null?void 0:(y=n.playerOverlays)==null?void 0:y.playerOverlayRenderer;h=_.M((C=A)==null?void 0:C.fullscreenQuickActionsBar,_.r9k);(u=(b=l).setQuickActionsViewModel)==null||u.call(b,h||{});h&&A61(l,D);J=(Q=A)==null?void 0:(G=Q.videoDetails)==null?void 0:G.playerOverlayVideoDetailsRenderer;(R=
(L=l).setPlayerOverlayVideoDetailsRenderer)==null||R.call(L,J||{});J&&WQj(l,D);if(_.q("web_player_use_external_grid_component")){var N=[],z,f,I,iG,CC=U==null?void 0:(z=U.contents)==null?void 0:(f=z.twoColumnWatchNextResults)==null?void 0:(I=f.secondaryResults)==null?void 0:(iG=I.secondaryResults)==null?void 0:iG.results;if(CC)for(z=_.B(CC),f=z.next();!f.done;f=z.next())if(f=f.value,f.lockupViewModel)N.push(f);else if(I=void 0,(I=f.itemSectionRenderer)==null?0:I.contents)for(f=_.B(f.itemSectionRenderer.contents),
I=f.next();!I.done;I=f.next())I=I.value,I.lockupViewModel&&N.push(I);a=N;(d=(S=l).setLockupViewModels)==null||d.call(S,a||[]);BVD(l,D)}_.Kz(c)})},A61=function(l,D){if(!l.quickActionButtonsContainer)if(D.setFullscreenQuickActions){l.quickActionButtonsContainer=document.createElement("div");
D.setFullscreenQuickActions(l.quickActionButtonsContainer);var U=function(){return l.quickActionsViewModel().quickActionButtons||[]},n=_.fk(l.quickActionButtonsContainer,function(){return _.g(UAO,{data:U})},"qo");
l.addOnDisposeCallback(function(){D.setFullscreenQuickActions(void 0);n()})}else _.II(new _.rc("setFullscreenQuickActions not defined",{playerApi:Object.keys(D),
isReady:D.isReady(),appState:D.getAppState()}))},WQj=function(l,D){if(!l.playerOverlayVideoDetailsRendererContainer)if(D.setPlayerOverlayVideoDetailsRenderer){l.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
D.setPlayerOverlayVideoDetailsRenderer(l.playerOverlayVideoDetailsRendererContainer);var U=_.fk(l.playerOverlayVideoDetailsRendererContainer,function(){return _.g(DAj,{data:l.playerOverlayVideoDetailsRenderer})},"ro");
l.addOnDisposeCallback(function(){D.setPlayerOverlayVideoDetailsRenderer(void 0);U()})}else _.II(new _.rc("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(D),
isReady:D.isReady(),appState:D.getAppState()}))},BVD=function(l,D){if(!l.gridRendererContainer)if(D.setFullscreenGrid){l.gridRendererContainer=document.createElement("div");
D.setFullscreenGrid(l.gridRendererContainer);var U=_.fk(l.gridRendererContainer,function(){return _.g(l5D,{data:l.lockupViewModels})},"so");
l.addOnDisposeCallback(function(){D.setFullscreenGrid(void 0);U()})}else _.II(new _.rc("setFullscreenGrid not defined",{playerApi:Object.keys(D),
isReady:D.isReady(),appState:D.getAppState()}))};_.k7=function(l){_.xT.call(this);var D=this;this.JSC$23424_watchApi=l;this.JSC$23424_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;l=_.fM(_.EB(),_.t1,function(U){D.onFullscreenChanged(U)});
this.addOnDisposeCallback(l);l=_.fM(_.EB(),_.kb,function(U){D.onWatchScroll(U)});
this.addOnDisposeCallback(l);_.q("kevlar_watch_while_v2")&&(l=_.fM(_.EB(),_.Xo,function(U){CUC(D,U)}),this.addOnDisposeCallback(l));
hpH(this);PUk(this);bID();this.onWatchScroll(_.kb(_.EB().getState()));_.il("START_IN_FULL_WINDOW_MODE")&&this.JSC$23424_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.Z(_.k7,_.xT);var hpH=function(l){l.JSC$23424_watchApi.registerActionHandler("yt-fullscreen-change-action",function(D){var U=l.JSC$23424_watchApi.isActive();D&&!U||_.EB().dispatch(_.V0({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!D}}))});
l.addOnDisposeCallback(function(){l.JSC$23424_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},PUk=function(l){var D,U;
_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23424_watchApi.playerApi,2);D=n.yieldResult;U=function(){l.onFullerscreenEduClicked()};
D.addEventListener("onFullerscreenEduClicked",U);l.addOnDisposeCallback(function(){D.removeEventListener("onFullerscreenEduClicked",U)});
_.Kz(n)})};
_.k7.prototype.onFullscreenChanged=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return D.isFullscreen=!!_.Ta(),n.yield(D.JSC$23424_watchApi.playerApi,2);U=n.yieldResult;D.JSC$23424_miniplayerActive||U.setFauxFullscreen(D.isFullscreen);if(l&&(D.JSC$23424_watchApi.focusOnPlayer(),!D.fullerscreenEduButtonShownThisPlayback)){D.fullerscreenEduButtonShownThisPlayback=!0;var y=_.MN("yt-fullerscreen-edu-button-shown-count")||0;_.qN("yt-fullerscreen-edu-button-shown-count",y+1,31536E3);
D.updateFullerscreenEduButtonSubtleModeState()}_.Kz(n)})};
var CUC=function(l,D){var U;_.P(function(n){if(n.nextAddress==1)return l.JSC$23424_miniplayerActive=D,n.yield(l.JSC$23424_watchApi.playerApi,2);U=n.yieldResult;U.setFauxFullscreen(!l.JSC$23424_miniplayerActive&&l.isFullscreen);_.Kz(n)})};
_.k7.prototype.onWatchScroll=function(l){var D=this,U,n;return _.P(function(y){if(y.nextAddress==1)return _.q("external_fullscreen_with_edu")?y.yield(D.JSC$23424_watchApi.playerApi,2):y.return();U=y.yieldResult;n=l<=0;D.shouldShowFullerscreenEdu!==n&&(D.shouldShowFullerscreenEdu=n,U.updateFullerscreenEduButtonVisibility(!D.shouldShowFullerscreenEdu));_.Kz(y)})};
_.k7.prototype.onFullerscreenEduClicked=function(){this.JSC$23424_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var l=_.MN("yt-fullerscreen-edu-button-click-count")||0;_.qN("yt-fullerscreen-edu-button-click-count",l+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.k7.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var l=this,D,U,n,y,A,C;return _.P(function(h){if(h.nextAddress==1)return D=_.MN("yt-fullerscreen-edu-button-click-count")||0,U=_.MN("yt-fullerscreen-edu-button-shown-count")||0,n=_.RG("external_fullscreen_button_click_threshold"),y=_.RG("external_fullscreen_button_shown_threshold"),A=D>=n||U>=y,h.yield(l.JSC$23424_watchApi.playerApi,2);C=h.yieldResult;C.updateFullerscreenEduButtonSubtleModeState(A);_.Kz(h)})};
_.k7.prototype.disposeInternal=function(){_.xT.prototype.disposeInternal.call(this);var l=_.Ta();_.q("kevlar_exit_fullscreen_leaving_watch")&&l&&_.IS(l)};
var bID=function(){if(_.q("web_watch_add_viewport_meta_tag")){var l=document.querySelector("meta[name=viewport]"),D=document.head;D&&!l&&(l=document.createElement("meta"),l.name="viewport",l.content="width=device-width, initial-scale=1.0, viewport-fit=cover",D.appendChild(l))}};_.uGq=function(l){_.xT.call(this);var D=this;this.JSC$23427_watchApi=l;this.jobId=0;this.pendingRequestId=void 0;var U=this.JSC$23427_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){g21(D)});
this.addOnDisposeCallback(function(){D.JSC$23427_watchApi.unsubscribeByKey(U)});
g21(this)};
_.Z(_.uGq,_.xT);var v2l=function(l){_.Tn.cancelJob(l.jobId);l.pendingRequestId=void 0},g21=function(l){v2l(l);
var D=Egq(l.JSC$23427_watchApi.getWatchNextResponse());if(D){var U=250,n,y=(n=_.M(D,_.oW1))==null?void 0:n.initialDelayMs;_.q("web_watch_updated_metadata_server_initial_delay")&&y&&(U=y);l.jobId=_.Tn.addLowPriorityJob(function(){return l.fetchUpdatedMetadata(D)},U)}};
_.uGq.prototype.fetchUpdatedMetadata=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d;return _.P(function(c){switch(c.nextAddress){case 1:D&&(n={continuation:D});if(!_.q("web_get_updated_metadata_fantasy_panel_continuation_params")){c.jumpTo(2);break}y=_.Jc().resolve(_.IH);A="PAsports_fantasy";return c.yield(y.isVisible(A,!0),3);case 3:c.yieldResult&&(u=(h=(C=y).getUpdatePanelContinuationData)==null?void 0:(b=h.call(C,A))==null?void 0:b.updatePanelContinuationRequest)&&(n||(n={}),n.clientParams=
{panelContinuationParams:{panelContinuation:u}});case 2:Q=_.Jc().resolve(_.Ju);if(!Q)return _.EU(Error("cp")),c.return();G={};U.pendingRequestId=G;return c.yield(_.oL(Q,l,n),4);case 4:J=c.yieldResult;if(G!==U.pendingRequestId)return c.return();a=(L=J)==null?void 0:(R=L.continuation)==null?void 0:R.timedContinuationData;((S=a)==null?0:S.continuation)&&((d=a)==null?0:d.timeoutMs)&&(U.jobId=_.Tn.addLowPriorityJob(function(){return U.fetchUpdatedMetadata(l,a.continuation)},a.timeoutMs));
_.Kz(c)}})};
_.uGq.prototype.disposeInternal=function(){_.xT.prototype.disposeInternal.call(this);v2l(this)};var QSw=_.w(function(l){var D=_.n0(function(){var n=l.data().videoId;if(l.active())n=_.Ie(n),_.Jc().resolve(_.qK).resolveCommand(n);else{var y=l.playerApi(),A=y.getAvailableAudioTracks(),C,h,b=(C=l.sourceVideoConfig().audioTracks)==null?void 0:(h=C.find(function(u){return u.isDefaultForSource}))==null?void 0:h.id;
if(A=A.find(function(u){return u.getLanguageInfo().getId()===b}))y.setAudioTrack(A,!0),y.setCompositeParam({activeVideoId:n}),l.setActiveSourceId(n)}}),U={};
return _.g("ytw-composite-source-video-overlay",{class:_.DV("ytwCompositeSourceVideoOverlayHost",(U.ytwCompositeSourceVideoOverlayActive=l.active,U.ytwCompositeSourceVideoOverlayInteracting=l.interacting,U)),style:_.BK({left:function(){var n;return((n=l.data().topLeftCornerX)!=null?n:0)*100+"%"},
top:function(){var n;return((n=l.data().topLeftCornerY)!=null?n:0)*100+"%"},
width:function(){var n;return((n=l.data().width)!=null?n:0)*100+"%"},
height:function(){var n;return((n=l.data().height)!=null?n:0)*100+"%"}}),
"on:click":D},_.g("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"to");var GaD=_.w(function(l){var D=_.B(_.WK(function(){var C,h=(C=l.data().sources)==null?void 0:C.find(function(b){return b.isActive});
if(h)return h.videoId})),U=D.next().value,n=D.next().value;
D=_.B(_.aw(!1,void 0,"rmRJ8d"));var y=D.next().value,A=D.next().value;return _.g("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.n0(function(){A(!0)}),
"on:mouseout":_.n0(function(){A(!1)})},_.g(_.v,{cond:function(){return l.data().sources},
then:function(C){return _.g(_.wt,{each:C},function(h){return _.g(QSw,{data:h,active:function(){return h.videoId===U()},
setActiveSourceId:n,interacting:y,playerApi:l.playerApi,sourceVideoConfig:function(){return Ttk(l.compositeVideoConfig(),h.videoId)}})})}}))},"uo");_.q9j=function(l){_.xT.call(this);this.JSC$23443_watchApi=l;l=_.B(_.aw({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=l.next().value;this.setCompositeVideoOverlayRenderer=l.next().value;l=_.B(_.aw({},void 0,"OlaJpc"));this.compositeVideoConfig=l.next().value;this.setCompositeVideoConfig=l.next().value;J6T(this);LQC(this)};
_.Z(_.q9j,_.xT);var J6T=function(l){var D=l.JSC$23443_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){LQC(l)});
l.addOnDisposeCallback(function(){l.JSC$23443_watchApi.unsubscribeByKey(D)})},MGH=function(l){var D;
return _.P(function(U){if(U.nextAddress==1)return U.yield(l.JSC$23443_watchApi.playerApi,2);D=U.yieldResult;D.setCompositeVideoOverlayRendererComponent(l.container);_.Kz(U)})},RpD=function(l){var D;
return _.P(function(U){if(U.nextAddress==1)return U.yield(l.JSC$23443_watchApi.playerApi,2);D=U.yieldResult;D.setCompositeVideoOverlayRendererComponent(void 0);_.Kz(U)})},ZIh=function(l){var D,U;
return _.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23443_watchApi.playerApi,2);D=n.yieldResult;l.container=document.createElement("div");U=_.fk(l.container,function(){return _.g(GaD,{data:l.compositeVideoOverlayRenderer,compositeVideoConfig:l.compositeVideoConfig,playerApi:D})},"vo");
l.addOnDisposeCallback(U);_.Kz(n)})},LQC=function(l){var D,U,n,y,A,C,h,b;
_.P(function(u){return u.nextAddress==1?(D=l.JSC$23443_watchApi.getPlayerResponse(),A=_.M((U=D)==null?void 0:(n=U.overlay)==null?void 0:(y=n.playerControlsOverlayRenderer)==null?void 0:y.compositeVideoOverlay,sGk),b=(C=D)==null?void 0:(h=C.playerConfig)==null?void 0:h.compositeVideoConfig,A&&l.setCompositeVideoOverlayRenderer(A),b&&l.setCompositeVideoConfig(b),A&&b?l.container?u.jumpTo(6):u.yield(ZIh(l),6):eph(l)?u.yield(RpD(l),0):u.jumpTo(0)):eph(l)?u.jumpTo(0):u.yield(MGH(l),0)})},eph=function(l){var D;
return!((D=l.container)==null||!D.parentElement)};
_.q9j.prototype.disposeInternal=function(){eph(this)&&RpD(this);_.xT.prototype.disposeInternal.call(this)};_.S9q=function(l){_.xT.call(this);var D=this;this.JSC$23449_watchApi=l;var U=this.JSC$23449_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var n=D.JSC$23449_watchApi.getPlayerResponse();if(n){var y,A;if(n=_.M((y=n.endscreen)==null?void 0:(A=y.endscreenRenderer)==null?void 0:A.hideButton,_.Pq)){var C;(C=D.setEndscreenHideButton)==null||C.call(D,n);mAH(D)}}});
this.addOnDisposeCallback(function(){D.JSC$23449_watchApi.unsubscribeByKey(U)});
l=_.B(_.aw({},void 0,"ER3tqb"));this.endscreenHideButton=l.next().value;this.setEndscreenHideButton=l.next().value;a5T(this);tGc(this);XHW(this)};
_.Z(_.S9q,_.xT);
var mAH=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return l.creatorEndscreenHideButtonContainer?n.return():n.yield(l.JSC$23449_watchApi.playerApi,2);D=n.yieldResult;l.creatorEndscreenHideButtonContainer=document.createElement("div");_.Aq(l.creatorEndscreenHideButtonContainer,!1);D.setCreatorEndscreenHideButton(l.creatorEndscreenHideButtonContainer);U=_.fk(l.creatorEndscreenHideButtonContainer,function(){return _.g(_.s0,{data:l.endscreenHideButton,useOutlinedIcon:!0})},"wo");
l.addOnDisposeCallback(function(){U();var y;(y=D)==null||y.setCreatorEndscreenHideButton(void 0)});
_.Kz(n)})},a5T=function(l){var D,U;
_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23449_watchApi.playerApi,2);D=n.yieldResult;U=function(){l.creatorEndscreenHideButtonContainer&&_.Aq(l.creatorEndscreenHideButtonContainer,!0)};
D.addEventListener("endscreenelementshown",U);l.addOnDisposeCallback(function(){var y;(y=D)==null||y.removeEventListener("endscreenelementshown",U)});
_.Kz(n)})},tGc=function(l){var D=function(){l.creatorEndscreenHideButtonContainer&&_.Aq(l.creatorEndscreenHideButtonContainer,!1)},U=l.JSC$23449_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",D),n=l.JSC$23449_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",D);
l.addOnDisposeCallback(function(){l.JSC$23449_watchApi.unsubscribeByKey(U);l.JSC$23449_watchApi.unsubscribeByKey(n)})},XHW=function(l){l.JSC$23449_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(D){var U=_.M(D,wSD);
l.JSC$23449_watchApi.playerApi.then(function(n){n==null||n.setCreatorEndscreenVisibility(!!U.hide)})});
l.addOnDisposeCallback(function(){l.JSC$23449_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.dAO=function(l){_.xT.call(this);this.JSC$23455_watchApi=l;kak(this)};
_.Z(_.dAO,_.xT);var kak=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23455_watchApi.playerApi,2);D=n.yieldResult;U=function(y){_.EB().dispatch(_.V0({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:y}}))};
D.addEventListener("onRetroModeChanged",U);l.addOnDisposeCallback(function(){D.removeEventListener("onRetroModeChanged",U)});
_.Kz(n)})};var DK1=0,KX=0,nZO=0;var KQC;KQC=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.dQ=function(l){_.xT.call(this);this.JSC$23460_watchApi=l;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;c6h(this)};
_.Z(_.dQ,_.xT);
var c6h=function(l){var D,U,n;_.P(function(y){if(y.nextAddress==1)return y.yield(l.JSC$23460_watchApi.playerApi,2);D=y.yieldResult;if(l.isDisposed())return y.return();l.sessionStorage=_.Ac2("yt-sleep-timer");l.sessionStorage||_.II(new _.rc("SessionStorage for Sleep Timer is undefined."));((U=l.sessionStorage)==null?void 0:U.get("yt-sleep-timer"))==="true"&&(Wdk(),(n=l.sessionStorage)==null||n.remove("yt-sleep-timer"),D.syncVolume());pHT(l,D);xAk(l,D);jSh(l,D);_.Kz(y)})},pHT=function(l,D){var U=function(u){l.onSleepTimerSettingsChanged(u,
D)},n=function(u){l.onPlayerStateChange(u,D)},y=function(){l.onLoopChange(D)},A=function(){l.onCloseMiniplayer(D)},C=function(){lJC(D,(0,_.J3)(),Bcj(D),l.selectedOption==="End of video",D.getPlayerState()!==1)},h=function(){l.onSeekComplete(D)},b=function(){_.Tn.cancelJob(KX);
var u=D.getCurrentTime()>=D.getDuration(),Q=l.selectedOption==="End of video"||l.selectedOption==="End of playlist"&&!OkD(l.playlistId);u&&Q&&FQq(l,D)};
D.addEventListener("onSleepTimerSettingsChanged",U);D.addEventListener("onLoopChange",y);D.addEventListener("onLoopRangeChange",y);D.addEventListener("onStateChange",n);D.addEventListener("onCloseMiniplayer",A);D.addEventListener("onSleepTimerFeatureAvailable",C);D.addEventListener("SEEK_COMPLETE",h);D.addEventListener("onAdStart",b);l.addOnDisposeCallback(function(){D.removeEventListener("onSleepTimerSettingsChanged",U);D.removeEventListener("onLoopChange",y);D.removeEventListener("onLoopRangeChange",
y);D.removeEventListener("onStateChange",n);D.removeEventListener("onCloseMiniplayer",A);D.removeEventListener("onSleepTimerFeatureAvailable",C);D.removeEventListener("SEEK_COMPLETE",h);D.removeEventListener("onAdStart",b)})},xAk=function(l,D){var U=l.JSC$23460_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var n=D.getVideoData().video_id,y,A=(y=Hkl(l.JSC$23460_watchApi))==null?void 0:y.playlistId;
l.pauseAutonavPlayback&&(D.pauseVideo(),D.syncVolume(),l.pauseAutonavPlayback=!1);if(l.selectedOption==="End of video"&&n!==l.videoId)KN(l,D);else{if(l.selectedOption==="End of playlist"){y=OkD(l.playlistId);if(A!==l.playlistId){KN(l,D);break a}y?y&&o21(l,D):wHl(l,D)}l.videoId=n;l.playlistId=A}}});
l.addOnDisposeCallback(function(){l.JSC$23460_watchApi.unsubscribeByKey(U)})},jSh=function(l,D){var U=_.Jc().resolve(_.Op),n=_.fM(U,_.pOs,function(A){A&&l.selectedOption!=="Off"&&KN(l,D)}),y=l.JSC$23460_watchApi.subscribeToActiveChanged(function(A){var C,h;
return _.P(function(b){if(b.nextAddress==1)return b.yield(_.r3().navigationFinishPromise,2);C=!_.nek();h=_.Jc().resolve(_.kq).isMiniplayerActive();A||!IQj(l.selectedOption)||h||C||KN(l,D);_.Kz(b)})},!1);
U=_.fM(U,function(A){return A.entities.playlistLoopStateEntity||{}},function(A){A=A===void 0?{}:A;
var C=YZj(l.JSC$23460_watchApi);if(C){var h;((h=A[C])==null?void 0:h.state)==="PLAYLIST_LOOP_STATE_ALL"&&IQj(l.selectedOption)&&KN(l,D)}});
l.addOnDisposeCallback(n);l.addOnDisposeCallback(U);l.addOnDisposeCallback(y)};
_.dQ.prototype.onSleepTimerSettingsChanged=function(l,D){switch(l){case "Off":this.selectedOption!=="Off"&&KN(this,D);break;case "End of video":case "End of playlist":r6W(this,l,D);break;default:r6W(this,l,D,KQC.get(l))}};
_.dQ.prototype.onLoopChange=function(l){(l.getLoopVideo()||l.getLoopRange())&&IQj(this.selectedOption)&&KN(this,l)};
_.dQ.prototype.onCloseMiniplayer=function(l){IQj(this.selectedOption)&&KN(this,l)};
var r6W=function(l,D,U,n){zpk(l,U);l.selectedOption=D;l.videoId=U.getVideoData().video_id;l.playlistId="";var y;(y=l.sessionStorage)==null||y.set("yt-sleep-timer","true");l.adjustmentsCount++;lJC(U,(0,_.J3)(),Bcj(U),l.selectedOption==="End of video");if(l.selectedOption==="End of video")wHl(l,U),f5w(l,U);else if(l.selectedOption==="End of playlist"){f5w(l,U);var A,C;l.playlistId=(C=(A=Hkl(l.JSC$23460_watchApi))==null?void 0:A.playlistId)!=null?C:"";OkD(l.playlistId)||wHl(l,U)}else n&&(l.presetFadeSchedulerId=
_.Ji(_.Tn,function(){ycC(U,15E3)},n-15E3),l.presetPauseSchedulerId=_.Ji(_.Tn,function(){FQq(l,U)},n),UKw(U,(0,_.J3)(),n))},FQq=function(l,D){if(l.JSC$23460_watchApi.isActive()){var U={dismissDialogEndpoint:{}};
var n={commandExecutorCommand:{commands:[U,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};U={buttonViewModel:{title:_.C3("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:U}}};n={buttonViewModel:{title:_.C3("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:n}}};var y={dialogHeaderViewModel:{headline:{content:_.C3("SLEEP_TIMER_ENDED_TITLE")}}},
A={basicContentViewModel:{paragraphs:[{text:{content:_.C3("SLEEP_TIMER_ENDED_TEXT")}}]}};U={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:y,content:A,footer:{panelFooterViewModel:{primaryButton:U,secondaryButton:n,shouldHideDivider:!0}}}}}}};_.Jc().resolve(_.qK).resolveCommand(U,{form:{element:l}})}else Wdk();$Ac(l,!1);NVj(l,D);D.pauseVideo();_.RZ.getInstance().getState()===2&&D.getPlayerState()===5&&(l.pauseAutonavPlayback=!0)},KN=function(l,D){$Ac(l,!0);
NVj(l,D);Wdk()},NVj=function(l,D){zpk(l,D);
l.selectedOption="Off";l.videoId="";l.playlistId="";l.adjustmentsCount=0;var U;(U=l.sessionStorage)==null||U.remove("yt-sleep-timer");_.Tn.cancelJob(DK1);D.resetSleepTimerMenuSettings()},$Ac=function(l,D){D={timer_length_adjustment_times_during_session:l.adjustmentsCount-1,
is_session_cancelled:D};switch(l.selectedOption){case "Off":D.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":D.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":D.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:D.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",D.option_duration_in_minutes=KQC.get(l.selectedOption)/6E4}_.Na("sleepTimerSessionFinishEvent",D)};
_.dQ.prototype.onPlayerStateChange=function(l,D){l===1?lJC(D,(0,_.J3)(),Bcj(D),this.selectedOption==="End of video"):l===0?(_.Tn.cancelJob(KX),D.setVideoTimeLeft(itw(0,0))):l===2&&_.Tn.cancelJob(KX);this.selectedOption==="End of video"?l===0?FQq(this,D):l===2&&Ach(D):this.selectedOption!=="End of playlist"||OkD(this.playlistId)||(l===0?FQq(this,D):l===2&&Ach(D))};
_.dQ.prototype.onSeekComplete=function(l){l.getPlayerState()===2&&lJC(l,(0,_.J3)(),Bcj(l),this.selectedOption==="End of video",!0)};
_.dQ.prototype.onCueRangeEnter=function(l,D){l==="sleep-timer-fade-audio"&&ycC(D,(D.getDuration()-D.getProgressState().current)*1E3)};
_.dQ.prototype.onCueRangeExit=function(l,D){l==="sleep-timer-fade-audio"&&D.getPlayerState()!==0&&Ach(D,!0)};
var wHl=function(l,D){D.addCueRange("sleep-timer-fade-audio",D.getDuration()-15,D.getDuration());D.addEventListener("onCueRangeEnter",function(U){l.onCueRangeEnter(U,D)});
D.addEventListener("onCueRangeExit",function(U){l.onCueRangeExit(U,D)})},o21=function(l,D){D.removeCueRange("sleep-timer-fade-audio");
D.removeEventListener("onCueRangeEnter",function(U){l.onCueRangeEnter(U,D)});
D.removeEventListener("onCueRangeExit",function(U){l.onCueRangeExit(U,D)})},zpk=function(l,D){IQj(l.selectedOption)?o21(l,D):(_.Tn.cancelJob(l.presetPauseSchedulerId),_.Tn.cancelJob(l.presetFadeSchedulerId),l.presetPauseSchedulerId=0,l.presetFadeSchedulerId=0);
Ach(D,!0)},f5w=function(l,D){D.setLoop(!1);
D.setLoopVideo(!1);D.setLoopRange(null);(l=YZj(l.JSC$23460_watchApi))&&_.Jc().resolve(_.Op).dispatch(_.vr("playlistLoopStateEntity",l,{key:l,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.HIH=function(l){_.xT.call(this);var D=this;this.JSC$23463_watchApi=l;_.q("web_watch_force_start_in_theater_mode")&&sSW(this,!0,!1);E2D(this);TVO(this);I5C(this);var U=this.JSC$23463_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.RG("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.xZ.get("wide",void 0)==="1"&&_.j_("wide","1",_.RG("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){D.JSC$23463_watchApi.unsubscribeByKey(U)});
l=l.getRoot();if(l.is==="ytd-watch-flexy"||l.is==="ytd-watch-grid")l.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.GZw();_.q("web_watch_log_theater_mode_cookie_state")&&_.xZ.get("wide","0")==="1"&&_.m8C("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.Z(_.HIH,_.xT);var E2D=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23463_watchApi.playerApi,2);D=n.yieldResult;U=function(y){sSW(l,!!y)};
D.addEventListener("SIZE_CLICKED",U);l.addOnDisposeCallback(function(){D.removeEventListener("SIZE_CLICKED",U)});
_.Kz(n)})},TVO=function(l){l.JSC$23463_watchApi.registerActionHandler("yt-toggle-theater-mode",function(D,U){sSW(l,D,U===void 0?!0:U)});
l.addOnDisposeCallback(function(){l.JSC$23463_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.HIH.prototype.getState=function(){return _.aL(_.EB().getState())};
var sSW=function(l,D,U){U=U===void 0?!0:U;var n,y,A,C=_.q("enable_player_resize_transition")&&!!l.JSC$23463_watchApi.getWatchNextResponse()&&!((n=l.JSC$23463_watchApi.getWatchNextResponse())==null?0:(y=n.contents)==null?0:(A=y.twoColumnWatchNextResults)==null?0:A.conversationBar);_.SJ2(function(){_.EB().dispatch(_.V0({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:D}}));_.q("theater_mode_scroll_to_top_killswitch")||l.JSC$23463_watchApi.scrollWatchTo(0,!1);_.Ta()&&_.q("external_fullscreen")&&_.IS(document.documentElement);
I5C(l);U&&_.j_("wide",D?"1":"0",_.RG("theater_mode_cookie_max_age_seconds",-1));_.Vh(l.JSC$23463_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);l.JSC$23463_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:D});D&&_.GZw()},{shouldWrap:C})},I5C=function(l){var D;
_.P(function(U){if(U.nextAddress==1)return U.yield(l.JSC$23463_watchApi.playerApi,2);D=U.yieldResult;D.setSizeStyle(!0,l.getState());_.Kz(U)})};var VGO=function(l){_.xT.call(this);var D=this;this.playerApi=l;this.timeToPanelSyncKeyMap={};var U;if(l==null?0:(U=l.isReady)==null?0:U.call(l)){U=_.fM(_.Jc().resolve(_.Op),function(y){return y.entities.timedMarkersListSyncEntity||{}},function(y,A){y=y===void 0?{}:y;
A=A===void 0?{}:A;for(var C=_.B(Object.keys(A)),h=C.next();!h.done;h=C.next())h=h.value,y[h]!==A[h]&&Y9H(D,A[h]);A=_.B(Object.keys(y));for(C=A.next();!C.done;C=A.next())C=C.value,h=y[C],D.timeToPanelSyncKeyMap[C]&&OI1(D,h)});
this.addOnDisposeCallback(U);var n=function(y){D.onCueRangeEnter(y)};
l.addEventListener("onCueRangeEnter",n);this.addOnDisposeCallback(function(){var y;(y=l.removeEventListener)==null||y.call(l,"onCueRangeEnter",n)})}};
_.Z(VGO,_.xT);
var OI1=function(l,D){var U,n;if((U=l.playerApi)==null?0:(n=U.isReady)==null?0:n.call(U)){var y;if((U=D==null?void 0:(y=D.timedListData)==null?void 0:y.sections)&&D!=null&&D.key)for(y=_.B(U),U=y.next();!U.done;U=y.next())if(U=U.value,U.timedSyncDataList&&U.sectionId)for(n=0;n<U.timedSyncDataList.length;n++){var A=U.timedSyncDataList[n];A.syncItemId&&l.playerApi.addCueRange(U.sectionId+"_"+D.key+"_"+A.syncItemId,Number(A.videoTimeMs)/1E3,n===U.timedSyncDataList.length-1?0x8000000000000:Number(U.timedSyncDataList[n+
1].videoTimeMs)/1E3)}}},Y9H=function(l,D){var U,n;
if((U=l.playerApi)==null?0:(n=U.isReady)==null?0:n.call(U)){var y;if((U=D==null?void 0:(y=D.timedListData)==null?void 0:y.sections)&&D!=null&&D.key)for(y=_.B(U),U=y.next();!U.done;U=y.next())if(U=U.value,U.timedSyncDataList&&U.sectionId){n=_.B(U.timedSyncDataList);for(var A=n.next();!A.done;A=n.next())A=A.value,A.syncItemId&&l.playerApi.removeCueRange(U.sectionId+"_"+D.key+"_"+A.syncItemId)}}};
VGO.prototype.onCueRangeEnter=function(l){for(var D=_.B(Object.keys(this.timeToPanelSyncKeyMap)),U=D.next();!U.done;U=D.next()){U=U.value;var n=_.B(l.split("_"+U+"_")),y=n.next().value;n=n.next().value;if(y&&n){l=_.Jc().resolve(_.Op);D=this.timeToPanelSyncKeyMap[U];var A=_.uBd(l.getState(),D);U=i3h(U,y,n);if(U===-1)break;U={activeSyncId:n,activeItemIndex:U,activeSectionInfo:{sectionIdentifier:y}};A?l.dispatch(_.et("markersEngagementPanelSyncEntity",D,U)):l.dispatch(_.vr("markersEngagementPanelSyncEntity",
D,Object.assign({},{key:D},U)));break}}};
var i3h=function(l,D,U){var n=_.Jc().resolve(_.Op),y,A;l=(y=C0w(n.getState(),l))==null?void 0:(A=y.timedListData)==null?void 0:A.sections;if(!l)return-1;y=0;A=_.B(l);for(l=A.next();!l.done;l=A.next()){l=l.value;n=l.timedSyncDataList||[];if(l.sectionId===D)return D=n.findIndex(function(C){return C.syncItemId===U}),D===-1?D:y+D;
y+=n.length}return-1};_.UtI=function(l){_.xT.call(this);var D=this;this.JSC$23476_watchApi=l;this.unresolvedCommands=[];this.JSC$23476_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(U){lPl(D,U)});
this.addOnDisposeCallback(function(){D.JSC$23476_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
Dtl(this)};
_.Z(_.UtI,_.xT);var Dtl=function(l){var D;_.P(function(U){if(U.nextAddress==1)return U.yield(l.JSC$23476_watchApi.playerApi,2);D=U.yieldResult;if(l.isDisposed())return U.return();l.timedSyncObserver=new VGO(D);l.unresolvedCommands.length&&(l.unresolvedCommands.forEach(function(n){return lPl(l,n)}),l.unresolvedCommands=[]);
_.m7(l,l.timedSyncObserver);_.Kz(U)})},lPl=function(l,D){if(l.timedSyncObserver){var U=_.M(D,zgC);
if(U&&U.timedSyncEntityKey&&U.panelSyncEntityKey){l=l.timedSyncObserver;D=U.timedSyncEntityKey;var n=U.panelSyncEntityKey;U=!!U.isEnabled;U=U===void 0?!0:U;var y=_.Jc().resolve(_.Op);y=C0w(y.getState(),D);U?l.timeToPanelSyncKeyMap[D]||(l.timeToPanelSyncKeyMap[D]=n,OI1(l,y)):(delete l.timeToPanelSyncKeyMap[D],Y9H(l,y))}}else l.unresolvedCommands.push(D)};var nST=_.w(function(l){var D=l.data,U=l.maybeLogSmartSkipClientData,n=null,y=null,A=_.q("web_enable_auto_focus_for_timely_action_button"),C=function(){n=document.activeElement},h=function(){D().smartSkipMetadata&&(n=document.activeElement,_.aN2(function(){return y}))},b=function(Q){if(D().smartSkipMetadata&&(!Q||Q.key!=="Enter")){n&&n.isConnected&&(_.aN2(function(){return n}),n=null);
var G;(G=y)==null||G.blur()}};
l=_.n0(function(){U==null||U(!0,D());return!1});
var u=_.fe(_.aT(function(){return D().rendererContext},{onTap:function(Q,G){G({disableClickTracking:!0})}}),_.JH({visibilityCallback:function(Q){if(A)Q?y&&D().smartSkipMetadata&&(h(),document.addEventListener("focusin",C)):(document.removeEventListener("focusin",C),b());
else if(Q){Q=_.eq(D().rendererContext);var G=Number(D().maxVisibleDurationMilliseconds),J,L=(J=_.M(D().rendererContext,_.vF))==null?void 0:J.label;Q&&G&&L&&(J={label:L,command:Q,durationMs:G},_.Jc().resolve(_.ZH).enqueue(J))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.$g(function(){if(A){var Q;if((y=(Q=u.value)==null?void 0:Q.querySelector("button"))&&D().smartSkipMetadata){var G;(G=u.value)==null||G.addEventListener("keydown",b)}}});
_.NV(function(){A&&(y&&D().smartSkipMetadata&&y.removeEventListener("keydown",b),document.removeEventListener("focusin",C),b())});
return _.g("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:u,"on:click":l},_.g(_.uI,{data:function(){return D().content}},{buttonViewModel:_.t9}))},"yo");var yJH=_.w(function(l){var D=l.data,U=l.playerApi,n=_.Jc().resolve(_.tr$);l=_.B(_.WK(function(){D()}));
var y=l.next().value,A=l.next().value,C=function(){return Plq(D(),y())},h=function(u,Q){var G,J,L=(G=_.M(Q==null?void 0:Q.rendererContext,_.P9))==null?void 0:(J=G.loggingDirectives)==null?void 0:J.trackingParams;
if((Q=Q==null?void 0:Q.smartSkipMetadata)&&Q.loggingData&&(J=Q.loggingData,Q=J.algorithmId,G=J.startMilliseconds,J=J.endMilliseconds,Q&&G!==void 0&&J!==void 0)){var R,a;u={smartSkipData:Object.assign({},{versionName:Q,startMediaTimeMs:G,endMediaTimeMs:J},u&&{userInteractionMediaTimeMs:(Math.floor(((R=_.T4())==null?void 0:(a=R.getPlayer())==null?void 0:a.getCurrentTime())||0)*1E3).toString()})};R=_.t6();var S;L&&(S=_.v9(L));R&&S&&_.$S(R,S,u)}},b=function(u,Q){var G=Plq(D(),u);
if(G){var J=_.M(G,hgH),L;if(L=Q)L=U(),G=_.M(G,hgH),L=G!=null&&G.smartSkipMetadata?!(L==null?0:L.isSameMarkerTypeVisible((G==null?void 0:G.smartSkipMetadata.markerKey)||"")):!0;if(L){var R,a;(J==null?0:(R=J.smartSkipMetadata)==null?0:(a=R.loggingData)==null?0:a.isCounterfactual)||(h(!1,J),A(u))}else Q||y()!==u||A(void 0)}};
_.$i(function(){var u=D().timelyActions;if(u){u=_.B(u);for(var Q=u.next();!Q.done;Q=u.next()){Q=_.M(Q.value,hgH);var G=void 0;(G=Q)!=null&&G.cueRangeId&&n.timelyActionsMap.set(Q.cueRangeId,b)}_.NV(function(){n.timelyActionsMap.clear()})}},"l2RtC");
return _.g("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.g(_.uI,{data:C},{timelyActionViewModel:function(u){return _.g(nST,{data:u.data,maybeLogSmartSkipClientData:function(){h(!0,_.M(C(),hgH))}})}}))},"Ao");_.W0j=function(l){_.xT.call(this);this.JSC$23488_watchApi=l;l=_.B(_.aw({},void 0,"UN7k5e"));this.timelyActionsOverlay=l.next().value;this.setTimelyActionsOverlay=l.next().value;AJk(this)};
_.Z(_.W0j,_.xT);var AJk=function(l){var D,U,n,y;_.P(function(A){if(A.nextAddress==1)return BjD(l),CuW(l),l.timelyActionsContainer=document.createElement("div"),A.yield(l.JSC$23488_watchApi.playerApi,2);D=A.yieldResult;(n=(U=D).insertTimelyActionUi)==null||n.call(U,l.timelyActionsContainer);y=_.fk(l.timelyActionsContainer,function(){return _.g(yJH,{data:l.timelyActionsOverlay,playerApi:D})},"Bo");
l.addOnDisposeCallback(y);_.Kz(A)})},CuW=function(l){var D=l.JSC$23488_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){BjD(l)});
l.addOnDisposeCallback(function(){l.JSC$23488_watchApi.unsubscribeByKey(D)})},BjD=function(l){var D=l.JSC$23488_watchApi.getWatchNextResponse();
if(D){var U,n;if(D=_.M((U=D.playerOverlays)==null?void 0:(n=U.playerOverlayRenderer)==null?void 0:n.timelyActionsOverlayViewModel,fJD)){var y;(y=l.setTimelyActionsOverlay)==null||y.call(l,D)}}};_.Pul=function(l){_.xT.call(this);this.JSC$23492_watchApi=l;hQw(this)};
_.Z(_.Pul,_.xT);var hQw=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23492_watchApi.playerApi,2);D=n.yieldResult;U=function(y){_.yu.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.M(y,_.rAq)},popupType:"TOAST"}})};
D.addEventListener("onYtShowToast",U);l.addOnDisposeCallback(function(){D.removeEventListener("onYtShowToast",U)});
_.Kz(n)})};var b3I,vSc,qtq,gSW,uIO,L0k,GoI,JJj,Mzk,Z3k;b3I=!1;_.Qeg=function(l){_.xT.call(this);this.JSC$23495_watchApi=l;this.fullscreen=this.theater=!1;gSW(this);uIO(this);vSc(this)};
_.Z(_.Qeg,_.xT);vSc=function(l){var D,U,n;_.P(function(y){if(y.nextAddress==1)return y.yield(l.JSC$23495_watchApi.playerApi,2);D=y.yieldResult;if(l.isDisposed())return y.return();U=l.JSC$23495_watchApi.getElement("CINEMATICS");if(!U)return y.return();l.JSC$23495_cinematicController=new _.qS(U,D);_.m7(l,l.JSC$23495_cinematicController);_.Aqj(l.JSC$23495_cinematicController);GoI(l,_.Dbg());n=l.JSC$23495_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(A){JJj(l,A)});
l.addOnDisposeCallback(function(){l.JSC$23495_watchApi.unsubscribeByKey(n)});
L0k(l);JJj(l,l.JSC$23495_cinematicController.isAllowed());qtq(l);Mzk(l);_.Kz(y)})};
qtq=function(l){l.fullscreen=_.t1(_.EB().getState());l.theater=_.aL(_.EB().getState());_.RQD(l,l.fullscreen,l.theater);var D=_.fM(_.EB(),_.t1,function(n){l.fullscreen=n;_.RQD(l,l.fullscreen,l.theater)}),U=_.fM(_.EB(),_.aL,function(n){l.theater=n;
_.RQD(l,l.fullscreen,l.theater)});
l.addOnDisposeCallback(D);l.addOnDisposeCallback(U)};
gSW=function(l){var D=l.JSC$23495_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){L0k(l)});
l.addOnDisposeCallback(function(){l.JSC$23495_watchApi.unsubscribeByKey(D)})};
uIO=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23495_watchApi.playerApi,2);D=n.yieldResult;U=function(y){GoI(l,y)};
D.addEventListener("cinematicSettingsToggleChange",U);l.addOnDisposeCallback(function(){D.removeEventListener("cinematicSettingsToggleChange",U)});
_.Kz(n)})};
L0k=function(l){var D=l.JSC$23495_watchApi.getWatchNextResponse(),U;D=_.M(D==null?void 0:(U=D.pageVisualEffects)==null?void 0:U[0],_.l2);var n;(n=l.JSC$23495_cinematicController)==null||_.BMh(n,D)};
GoI=function(l,D){var U;(U=l.JSC$23495_cinematicController)==null||_.WUh(U,D);Z3k(l)};
JJj=function(l,D){var U;_.P(function(n){if(n.nextAddress==1)return _.q("kevlar_watch_cinematics_invisible")&&(D=!1),n.yield(l.JSC$23495_watchApi.playerApi,2);U=n.yieldResult;U.updateCinematicSettings(D);Z3k(l);_.Kz(n)})};
Mzk=function(l){var D=_.bu();if(_.q("kevlar_measure_ambient_mode_idle")&&!D.getFlag(192)&&!b3I){b3I=!0;var U=_.oI(_.Tn,function(){_.Jc().resolve(_.nZJ).start(1E4)},5E3);
l.addOnDisposeCallback(function(){_.Tn.cancelJob(U);_.Jc().resolve(_.nZJ).stop()})}};
_.RQD=function(l,D,U){l.fullscreen=D;l.theater=U;var n;(n=l.JSC$23495_cinematicController)==null||n.setFullscreen(l.fullscreen,l.theater);if(_.q("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(l.theater||l.fullscreen){var y;(y=l.JSC$23495_cinematicController)==null||_.Chj(y)}else if((l=l.JSC$23495_cinematicController)!=null){var A;(A=l.currentCinematicEffect)==null||A.pause()}};
Z3k=function(l){var D;l.JSC$23495_watchApi.getRoot().toggleCinematicsActive(!((D=l.JSC$23495_cinematicController)==null||!D.isEnabled()))};_.tzc=function(l){_.xT.call(this);var D=this;this.JSC$23498_watchApi=l;this.commentsReady=!1;this.setCommentsJobId=0;l=_.fM(_.EB(),_.kb,function(){eQ1(D)});
this.addOnDisposeCallback(l);var U=this.JSC$23498_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){mtw(D)}),n=this.JSC$23498_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){mtw(D)});
this.addOnDisposeCallback(function(){D.JSC$23498_watchApi.unsubscribeByKey(U);D.JSC$23498_watchApi.unsubscribeByKey(n)});
var y=function(){_.q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&aPk(D,"false")};
this.JSC$23498_watchApi.getRoot().addEventListener("yt-page-data-will-update",y);this.addOnDisposeCallback(function(){D.JSC$23498_watchApi.getRoot().removeEventListener("yt-page-data-will-update",y)});
mtw(this)};
_.Z(_.tzc,_.xT);var mtw=function(l){l.commentsReady=!1;_.Tn.cancelJob(l.setCommentsJobId);l.setCommentsJobId=_.oI(_.Tn,function(){eQ1(l)},1E3)},eQ1=function(l){if(!l.commentsReady){_.ae("cmi");
_.Tn.cancelJob(l.setCommentsJobId);var D,U,n,y,A=(D=l.JSC$23498_watchApi.getWatchNextResponse())==null?void 0:(U=D.contents)==null?void 0:(n=U.twoColumnWatchNextResults)==null?void 0:(y=n.results)==null?void 0:y.results.contents;D=void 0;if(A&&A.length)for(A=_.B(A),U=A.next();!U.done;U=A.next())if(U=U.value,y=n=void 0,((n=U)==null?void 0:(y=n.itemSectionRenderer)==null?void 0:y.sectionIdentifier)==="comment-item-section"){_.q("web_watch_provide_undefined_comments")?D=U.itemSectionRenderer:l.JSC$23498_watchApi.provideRenderingData("COMMENTS",
U.itemSectionRenderer);aPk(l,"true");break}_.q("web_watch_provide_undefined_comments")&&l.JSC$23498_watchApi.provideRenderingData("COMMENTS",D);l.commentsReady=!0;l.JSC$23498_watchApi.dispatchEvent("yt-watch-comments-ready")}},aPk=function(l,D){var U;
(U=l.JSC$23498_watchApi.getElement("COMMENTS"))==null||U.setAttribute("canScheduleJobs",D)};_.K0T=function(l){_.xT.call(this);var D=this;this.JSC$23501_watchApi=l;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.q("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.q("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.q("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.RG("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)X6I(this);
else{var U=this.JSC$23501_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){StI(D);cn(D)}),n=this.JSC$23501_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pN(D);
cn(D)});
this.JSC$23501_watchApi.getRoot().is==="ytd-watch-grid"&&_.q("swatcheroo_pbs_load_grid")&&(koT(this),dtj(this));this.addOnDisposeCallback(function(){D.JSC$23501_watchApi.unsubscribeByKey(U);D.JSC$23501_watchApi.unsubscribeByKey(n);_.Tn.cancelJob(D.provideRichGridJobId)});
StI(this);pN(this)}};
_.Z(_.K0T,_.xT);var X6I=function(l){var D=l.JSC$23501_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){l.providePlayerJobId=_.BI(_.Tn,function(){StI(l);cn(l)},l.provideAllDataDelayMs)}),U=l.JSC$23501_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){l.provideWatchNextJobId=_.BI(_.Tn,function(){pN(l);
cn(l)},l.provideAllDataDelayMs)}),n=l.JSC$23501_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){l.provideWatchNextJobId=_.BI(_.Tn,function(){pN(l);
cn(l)},l.provideAllDataDelayMs)});
l.JSC$23501_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.oI(_.Tn,function(){StI(l);pN(l);cn(l)},100)});
l.JSC$23501_watchApi.addPageDisposeJob(function(){_.Tn.cancelJob(l.provideWatchNextJobId);_.Tn.cancelJob(l.providePlayerJobId)});
l.addOnDisposeCallback(function(){l.JSC$23501_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");l.JSC$23501_watchApi.unsubscribeByKey(D);l.JSC$23501_watchApi.unsubscribeByKey(U);l.JSC$23501_watchApi.unsubscribeByKey(n);_.Tn.cancelJob(l.providePlayerJobId);_.Tn.cancelJob(l.provideWatchNextJobId)});
StI(l);pN(l)},StI=function(l){var D=l.JSC$23501_watchApi.getPlayerResponse(),U,n,y=(n=D==null?void 0:(U=D.playabilityStatus)==null?void 0:U.messageRenderers)!=null?n:[],A,C;
D=(C=D==null?void 0:(A=D.playabilityStatus)==null?void 0:A.messages)!=null?C:[];A=_.B(D);for(C=A.next();!C.done;C=A.next())y.push({alertRenderer:{text:_.$B(C.value),type:"WARNING"}});l.JSC$23501_watchApi.provideRenderingData("ALERTS",y)},pN=function(l){var D=[],U,n,y,A=l.JSC$23501_watchApi.getWatchNextResponse(),C,h,b,u,Q=A==null?void 0:(C=A.contents)==null?void 0:(h=C.twoColumnWatchNextResults)==null?void 0:(b=h.results)==null?void 0:(u=b.results)==null?void 0:u.contents;
if(Q)for(C=_.B(Q),h=C.next();!h.done;h=C.next())if(h=h.value,h.videoPrimaryInfoRenderer)var G=h;else if(h.videoSecondaryInfoRenderer){var J=h;u=b=void 0;h=Object.assign({},(b=h.videoSecondaryInfoRenderer)==null?void 0:(u=b.metadataRowContainer)==null?void 0:u.metadataRowContainerRenderer);if(h.rows&&h.collapsedItemCount!==void 0){h.rows=h.rows.slice(0,h.collapsedItemCount).filter(function(V_){return!!V_.richMetadataRowRenderer});
h.collapsedItemCount=h.rows.length;var L={metadataRowContainerRenderer:h}}}else if(h.merchandiseShelfRenderer)var R=h;else if(h.ticketShelfRenderer)var a=h;else if(h.expandableMetadataRenderer)var S=h;else if(h.itemSectionRenderer)if(b=h.itemSectionRenderer.contents,u=void 0,l.directlyProvideComments&&((u=h.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section")_.ae("cmi"),l.JSC$23501_watchApi.provideRenderingData("COMMENTS",h.itemSectionRenderer);else if(b)for(h=_.B(b),b=
h.next();!b.done;b=h.next())if(b=b.value,b.commentsEntryPointHeaderRenderer)var d=b;else if(b.clarificationRenderer||b.infoPanelContainerRenderer||b.infoPanelContentRenderer||b.emergencyOneboxRenderer){D.push(b);var c=c||!!J}else b.limitedStateMessageRenderer?n=b:b.videoMetadataCarouselViewModel&&(y=b);if(_.q("web_watch_merch_in_sd_when_ticket_shelf_present")&&R&&a){var N=R;R=void 0}if(l.provideWatchNextSecondaryResults){var z,f,I;l.JSC$23501_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
A==null?void 0:(z=A.contents)==null?void 0:(f=z.twoColumnWatchNextResults)==null?void 0:(I=f.secondaryResults)==null?void 0:I.secondaryResults)}if(l.JSC$23501_watchApi.getRoot().is==="ytd-watch-grid"){var iG,CC;l.JSC$23501_watchApi.provideRenderingData("LIVE_CHAT",A==null?void 0:(iG=A.contents)==null?void 0:(CC=iG.twoColumnWatchNextResults)==null?void 0:CC.conversationBar)}var vo,td,GN,Ms;(z=A==null?void 0:(vo=A.contents)==null?void 0:(td=vo.twoColumnWatchNextResults)==null?void 0:(GN=td.secondaryResults)==
null?void 0:(Ms=GN.secondaryResults)==null?void 0:Ms.offerModule)&&(z.donationShelfRenderer||z.donationUnavailableRenderer)&&l.JSC$23501_watchApi.getRoot().is!=="ytd-watch-grid"&&(U=z);vo=l.JSC$23501_watchApi.getPlayerResponse();if(!vo||!_.$bo(vo.playabilityStatus,A==null?void 0:A.playerOverlays)){var j3;if(A==null?0:(j3=A.contents)==null?0:j3.singleColumnWatchNextResults){var wl,zN;var Z7=A==null?void 0:(wl=A.contents.singleColumnWatchNextResults.results)==null?void 0:(zN=wl.results)==null?void 0:
zN.contents}else{var Lm,Vg,v5,mk;j3=!!(Q==null?0:(Lm=Q[0])==null?0:(Vg=Lm.itemSectionRenderer)==null?0:(v5=Vg.contents)==null?0:(mk=v5[0])==null?0:mk.backgroundPromoRenderer);var dy,eW;Lm=!!(A==null?0:(dy=A.contents)==null?0:(eW=dy.twoColumnWatchNextResults)==null?0:eW.secondaryResults);j3&&!Lm&&(Z7=Q)}}Q=D[0];dy=D[1];c&&D.length===1&&(dy=Q,Q=void 0);l.JSC$23501_watchApi.provideRenderingData("PRIMARY_INFO",G);l.JSC$23501_watchApi.provideRenderingData("SECONDARY_INFO",J);l.JSC$23501_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
d);l.JSC$23501_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",y);l.JSC$23501_watchApi.provideRenderingData("CLARIFICATION",Q);l.JSC$23501_watchApi.provideRenderingData("RICH_METADATA",L);l.JSC$23501_watchApi.provideRenderingData("MERCH_SHELF",R);_.q("web_watch_merch_in_sd_when_ticket_shelf_present")&&l.JSC$23501_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",N);l.JSC$23501_watchApi.provideRenderingData("TICKET_SHELF",a);l.JSC$23501_watchApi.provideRenderingData("LIMITED_STATE",n);l.JSC$23501_watchApi.getRoot().is!==
"ytd-watch-grid"&&l.JSC$23501_watchApi.provideRenderingData("DONATION_SHELF",U);l.JSC$23501_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Z7);l.JSC$23501_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",dy);l.JSC$23501_watchApi.provideRenderingData("EXPANDABLE_METADATA",S);if(l.swatcherooProvideAllDataOnScheduledJob){var Qq,Bo,D7,qr,H5,Mr;G=A==null?void 0:(Qq=A.contents)==null?void 0:(Bo=Qq.twoColumnWatchNextResults)==null?void 0:(D7=Bo.secondaryResults)==null?void 0:(qr=D7.secondaryResults)==
null?void 0:(H5=qr.results)==null?void 0:(Mr=H5[0])==null?void 0:Mr.richGridRenderer;l.JSC$23501_watchApi.provideRenderingData("RICH_GRID_RENDERER",G)}};
_.K0T.prototype.hasCompanionAds=function(l){var D,U;return(U=l==null?void 0:(D=l.adPlacements)==null?void 0:D.some(function(n){var y,A,C,h;return(n==null?void 0:(y=n.adPlacementRenderer)==null?void 0:(A=y.renderer)==null?void 0:A.actionCompanionAdRenderer)||(n==null?void 0:(C=n.adPlacementRenderer)==null?void 0:(h=C.renderer)==null?void 0:h.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?U:!1};
var cn=function(l){if(!_.q("swaterdoo_ps_wn_handle_ks")){l.swatcherooProvideAllDataOnScheduledJob||dtj(l,3E3);var D=l.JSC$23501_watchApi.getPlayerResponse(),U,n,y,A,C,h=(U=l.JSC$23501_watchApi.getWatchNextResponse())==null?void 0:(n=U.contents)==null?void 0:(y=n.twoColumnWatchNextResults)==null?void 0:(A=y.secondaryResults)==null?void 0:(C=A.secondaryResults)==null?void 0:C.offerModule;D=l.hasCompanionAds(D);var b,u;U=(h==null?void 0:(b=h.tvfilmOfferModuleRenderer)==null?void 0:b.clientShouldSuppressIfCompanionAdDisplayed)||
(h==null?void 0:(u=h.unlimitedOfferModuleRenderer)==null?void 0:u.suppressIfCompanionAds);b=D&&U;l.JSC$23501_watchApi.getRoot().is==="ytd-watch-grid"&&l.JSC$23501_watchApi.provideRenderingData("OFFER_MODULE",b?void 0:h)}},dtj=function(l,D){_.q("swatcheroo_pbs_load_grid")&&(l.provideRichGridJobId&&_.Tn.cancelJob(l.provideRichGridJobId),l.provideRichGridJobId=_.BI(_.Tn,function(){l.provideRichGridJobId=0;
var U,n,y,A,C,h,b,u=(U=l.JSC$23501_watchApi.getWatchNextResponse())==null?void 0:(n=U.contents)==null?void 0:(y=n.twoColumnWatchNextResults)==null?void 0:(A=y.secondaryResults)==null?void 0:(C=A.secondaryResults)==null?void 0:(h=C.results)==null?void 0:(b=h[0])==null?void 0:b.richGridRenderer;u&&l.JSC$23501_watchApi.provideRenderingData("RICH_GRID_RENDERER",u)},D))},koT=function(l){var D,U;
_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23501_watchApi.playerApi,2);D=n.yieldResult;U=function(){l.onPlaybackStart()};
D.addEventListener("onPlaybackStartExternal",U);l.addOnDisposeCallback(function(){D.removeEventListener("onPlaybackStartExternal",U)});
_.Kz(n)})};
_.K0T.prototype.onPlaybackStart=function(){dtj(this)};_.p6I=function(l){_.xT.call(this);var D=this;this.JSC$23513_watchApi=l;l.playerApi.then(function(U){D.player=U});
this.gestures=new _.Ca(this.JSC$23513_watchApi.getRoot(),l.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.ggj(_.EB().getState())&&_.kb(_.EB().getState())<=0)if(_.t1(_.EB().getState())){var U;(U=D.player)==null||U.toggleFullscreen()}else _.Vh(D.JSC$23513_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
cJh(this)};
_.Z(_.p6I,_.xT);var cJh=function(l){var D=_.fM(_.EB(),_.t1,function(U){l.onFullscreenChanged(U)});
l.addOnDisposeCallback(D);D=_.fM(_.EB(),_.kb,function(U){l.gestures&&(U>0?l.gestures.detach():l.gestures.attach())});
l.addOnDisposeCallback(D)};
_.p6I.prototype.onFullscreenChanged=function(l){this.gestures&&this.gestures.update(l)};var xtI;xtI=["PLAYLIST"];_.F0I=function(l){_.xT.call(this);var D=this;this.JSC$23516_watchApi=l;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(l.subscribeToActiveChanged(function(U){D.onActiveChanged(U)}));
jew(this)};
_.Z(_.F0I,_.xT);var oSO=function(l){l.pageDisposalDataTypes=Object.values(OSW).filter(function(D){return!xtI.includes(D)})},jew=function(l){if(_.q("swatcheroo_enable_ghost_cards")||_.q("web_watch_clear_data_on_page_dispose"))oSO(l),l.JSC$23516_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Tn.cancelJob(l.clearDataJobId);
l.clearDataJobId=0}),l.runPageDisposeJob=function(){var D=_.Jc().resolve(_.sm).getDestinationPageType()==="watch";
l.clearDataJobId=_.BI(_.Tn,l.runClearDataJob,D?0:_.RG("web_watch_delay_page_dispose_ms",1E4))},l.runClearDataJob=function(){w6c(l)},l.runOnYtNavigateAwayFinish=function(){l.clearDataJobId&&(_.Tn.cancelJob(l.clearDataJobId),l.clearDataJobId=0,w6c(l))},document.addEventListener("yt-navigate-finish",l.runOnYtNavigateAwayFinish),l.JSC$23516_watchApi.addPageDisposeJob(l.runPageDisposeJob),l.addOnDisposeCallback(function(){l.JSC$23516_watchApi.removePageDisposeJob(l.runPageDisposeJob);
l.JSC$23516_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",l.runOnYtNavigateAwayFinish)})},w6c=function(l){l.pageDisposalDataTypes.forEach(function(D){l.JSC$23516_watchApi.provideRenderingData(D,void 0)});
l.clearDataJobId=0};
_.F0I.prototype.onActiveChanged=function(l){l&&((l=document.querySelector("#watch-page-skeleton"))&&_.kT(l),rJq(this),document.body.removeAttribute("no-y-overflow"),_.il("IS_SHELL_LOAD")&&_.Av1())};
var rJq=function(l){_.P(function(D){if(D.nextAddress==1)return D.yield(l.JSC$23516_watchApi.playerApi,2);_.p4();_.Kz(D)})};var zQH;zQH=_.q("kevlar_watch_while_counterfactual")?0:.25;_.sej=function(l){_.xT.call(this);this.JSC$23519_watchApi=l;this.JSC$23519_watchWhileEnabled=_.q("kevlar_watch_while_v2");this.pipEnabled=_.q("web_enable_pip_on_miniplayer");fPI(this);$tI(this);Njc(this)};
_.Z(_.sej,_.xT);var fPI=function(l){l.JSC$23519_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){ES1(l)});
l.addOnDisposeCallback(function(){l.JSC$23519_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},$tI=function(l){var D,U;
_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23519_watchApi.playerApi,2);D=n.yieldResult;U=function(){ES1(l)};
D.addEventListener("onCollapseMiniplayer",U);l.addOnDisposeCallback(function(){D.removeEventListener("onCollapseMiniplayer",U)});
_.Kz(n)})},Njc=function(l){var D=l.JSC$23519_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&D&&l.JSC$23519_watchWhileEnabled&&(l.playerIntersectionObserver=new IntersectionObserver(function(U){l.handleIntersect(U)},{threshold:[zQH]}),l.playerIntersectionObserver.observe(D),l.addOnDisposeCallback(function(){var U;
(U=l.playerIntersectionObserver)==null||U.disconnect()}))},ES1=function(l){var D,U,n;
_.P(function(y){if(y.nextAddress==1){D=_.Jc().resolve(_.sm);U=D.data;n=_.a7(U.response,!1,U.playerResponse);_.r3().miniplayerButtonActivation=!0;if(l.pipEnabled)return _.r3().watchPipActivation=!0,y.jumpTo(2);_.Jc().resolve(_.kq).collapse();return y.yield(_.r3().navigationFinishPromise,2)}if(y.nextAddress!=4)return _.r3().currentEndpoint=n.watchEndpoint||null,y.yield(_.Jc().resolve(_.kq).activate(l.JSC$23519_watchApi.getElement("PLAYER"),n,U),4);_.r3().userActivation=!0;_.Kz(y)})};
_.sej.prototype.handleIntersect=function(l){Tjl(this,l[l.length-1])};
var Tjl=function(l,D){l.watchWhileJobId&&_.Tn.cancelJob(l.watchWhileJobId);l.watchWhileJobId=_.Tn.addLowPriorityJob(function(){var U,n;return _.P(function(y){if(y.nextAddress==1)return l.watchWhileJobId=void 0,U=_.Jc().resolve(_.kq),D.intersectionRatio>zQH?U.isMiniplayerActive()?y.yield(U.deactivate(),0):y.jumpTo(0):(n=!U.isMiniplayerActive())?y.yield(IPC(l),5):y.jumpTo(4);y.nextAddress!=4&&(n=y.yieldResult);if(!n)return y.jumpTo(0);_.r3().watchWhileActivation=!0;return y.yield(H3l(l),0)})},100)},
IPC=function(l){return _.P(function(D){return D.nextAddress==1?_.q("kevlar_watch_while_paused")?D.return(!0):D.yield(l.isPlayerPlaying(),2):D.return(D.yieldResult)})};
_.sej.prototype.isPlayerPlaying=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return U.yield(l.JSC$23519_watchApi.playerApi,2);D=U.yieldResult;return U.return(D.getPlayerStateObject().isPlaying)})};
var H3l=function(l){var D,U;return _.P(function(n){D=_.Jc().resolve(_.sm).data;U=_.a7(D.response,!1,D.playerResponse);_.r3().currentEndpoint=U.watchEndpoint||null;return n.yield(_.Jc().resolve(_.kq).activate(l.JSC$23519_watchApi.getElement("PLAYER"),U,D),0)})};_.VzH=function(l){_.xT.call(this);this.JSC$23523_watchApi=l;YtT(this);O3I(this)};
_.Z(_.VzH,_.xT);var O3I=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23523_watchApi.playerApi,2);D=n.yieldResult;U=function(y){var A;y.sessionData&&y.sessionData.itct&&(A=y.sessionData.itct);var C=y.watchEndpoint;if(C&&y.sessionData&&y.sessionData.autonav)C=_.wXK(C,A);else{var h;C=_.Ie(y.videoId,(h=y.listId)!=null?h:void 0,A)}A={endpoint:C};y.sessionData&&(A.tempData=y.sessionData);l.JSC$23523_watchApi.dispatchEvent("yt-navigate",A)};
D.addEventListener("onPlayVideo",U);l.addOnDisposeCallback(function(){D.removeEventListener("onPlayVideo",U)});
_.Kz(n)})},YtT=function(l){var D=function(U){l.onYtNavigate(U)};
l.JSC$23523_watchApi.getRoot().addEventListener("yt-navigate",D);l.addOnDisposeCallback(function(){l.JSC$23523_watchApi.getRoot().removeEventListener("yt-navigate",D)})};
_.VzH.prototype.onYtNavigate=function(l){var D=this,U,n,y,A,C,h,b,u,Q;return _.P(function(G){if(G.nextAddress==1){if(!((U=l.detail)==null?0:(n=U.endpoint)==null?0:n.watchEndpoint))return G.return();y=l.detail.endpoint.watchEndpoint;A=D.JSC$23523_watchApi.getWatchNextResponse();h=_.M((C=A)==null?void 0:C.currentVideoEndpoint,_.za);if(!h)return G.return();if(y.videoId!==h.videoId||y.playlistId&&y.playlistId!==h.playlistId||typeof y.startTimeSeconds!=="number")return G.jumpTo(0);l.stopPropagation();
(b=_.q("kevlar_watch_while_v2")&&!_.q("kevlar_watch_while_counterfactual"))&&_.Jc().resolve(_.kq).isMiniplayerActive()||D.JSC$23523_watchApi.scrollWatchTo(0,!0);return G.yield(D.JSC$23523_watchApi.playerApi,3)}u=G.yieldResult;Q=y.startTimeSeconds;u.seekTo(Q,void 0,void 0,void 0,84);u.wakeUpControls();Q<u.getDuration()&&u.playVideo();_.Kz(G)})};_.l1C=function(l){_.xT.call(this);var D=this;this.JSC$23526_watchApi=l;var U=this.JSC$23526_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){i7l(D)});
this.addOnDisposeCallback(function(){D.JSC$23526_watchApi.unsubscribeByKey(U)});
i7l(this);_.q("enable_ai_companion")&&(l=this.JSC$23526_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.dNJ(_.Jc().resolve(_.O3),l,"WATCH")};
_.Z(_.l1C,_.xT);var i7l=function(l){var D=l.JSC$23526_watchApi.getWatchNextResponse();if(D){var U,n=[].concat(_.zz((U=D==null?void 0:D.engagementPanels)!=null?U:[]));_.q("web_watch_comments_visible_by_default")&&(U=n.find(function(y){var A;return((A=y.engagementPanelSectionListRenderer)==null?void 0:A.targetId)==="engagement-panel-comments-section"}),U==null?0:U.engagementPanelSectionListRenderer)&&(U.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
n.unshift.apply(n,_.zz(DlD(D)));l.JSC$23526_watchApi.provideRenderingData("ENGAGEMENT_PANELS",n)}},Ull=function(l){var D,U,n,y=(D=l.engagementPanels)==null?void 0:(U=D.find(function(L){var R;
return((R=L.engagementPanelSectionListRenderer)==null?void 0:R.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(n=U.engagementPanelSectionListRenderer.content)==null?void 0:n.structuredDescriptionContentRenderer,A;
if(_.M(y==null?void 0:(A=y.items)==null?void 0:A.find(function(L){return!!_.M(L,A31)}),A31))return!0;
var C,h,b,u;if(l=(((C=l.contents)==null?void 0:(h=C.twoColumnWatchNextResults)==null?void 0:(b=h.results)==null?void 0:(u=b.results)==null?void 0:u.contents)||[]).find(function(L){return L.videoPrimaryInfoRenderer})){var Q,G,J;
return(((Q=l.videoPrimaryInfoRenderer)==null?void 0:(G=Q.videoActions)==null?void 0:(J=G.menuRenderer)==null?void 0:J.flexibleItems)||[]).some(function(L){L=_.M(L,_.W4h);if(!L)return!1;var R,a;L=(R=L.topLevelButton)==null?void 0:(a=R.buttonViewModel)==null?void 0:a.onTap;if(!L)return!1;R=_.te(L);if(!R)return!1;var S;return((S=_.M(R,_.ea))==null?void 0:S.panelIdentifier)==="PAyouchat"})}return!1},DlD=function(l){var D=[];
if(!_.q("web_watch_inject_placeholder_fantasy_panel_killswitch")){var U,n,y,A=(U=l.engagementPanels)==null?void 0:(n=U.find(function(h){var b;return((b=h.engagementPanelSectionListRenderer)==null?void 0:b.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(y=n.engagementPanelSectionListRenderer.content)==null?void 0:y.structuredDescriptionContentRenderer,C;
_.M(A==null?void 0:(C=A.items)==null?void 0:C.find(function(h){return!!_.M(h,jGh)}),jGh)&&(U=_.ZDK("PAsports_fantasy"),U.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D.push(U))}Ull(l)&&(l=_.ZDK("PAyouchat"),l.engagementPanelSectionListRenderer.targetId="PAyouchat",l.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D.push(l));
return D};_.y4C=function(l){_.xT.call(this);this.JSC$23529_watchApi=l;nBl(this)};
_.Z(_.y4C,_.xT);var nBl=function(l){l.JSC$23529_watchApi.registerActionHandler("yt-loop-command",function(D){A4w(l,D)});
l.JSC$23529_watchApi.registerActionHandler("yt-repeat-chapter-command",function(D){WFH(l,D)});
l.addOnDisposeCallback(function(){l.JSC$23529_watchApi.unregisterActionHandler("yt-loop-command");l.JSC$23529_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},A4w=function(l,D){var U;
_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23529_watchApi.playerApi,2);U=n.yieldResult;_.M(D,oZO).loop?(U.setLoopRange({startTimeMs:Number(_.M(D,oZO).startTimeMs),endTimeMs:Number(_.M(D,oZO).endTimeMs),postId:_.M(D,oZO).postId,type:"clips"}),U.playVideo()):U.setLoopRange(null);_.Kz(n)})},WFH=function(l,D){var U,n;
_.P(function(y){if(y.nextAddress==1)return y.yield(l.JSC$23529_watchApi.playerApi,2);U=y.yieldResult;n=_.M(D,$KC).repeat;n==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(U.setLoopRange({startTimeMs:Number(_.M(D,$KC).startTimeMs),endTimeMs:Number(_.M(D,$KC).endTimeMs),type:"repeatChapter"}),U.playVideo()):n==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&U.setLoopRange(null);_.Kz(y)})};_.CQl=function(l){_.xT.call(this);this.JSC$23534_watchApi=l;Bu1(this)};
_.Z(_.CQl,_.xT);var Bu1=function(l){l.JSC$23534_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(D){hfl(l,D)});
l.addOnDisposeCallback(function(){l.JSC$23534_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},hfl=function(l,D){var U,n,y,A,C,h,b,u,Q,G,J;
_.P(function(L){if(L.nextAddress==1)return L.yield(l.JSC$23534_watchApi.playerApi,2);U=L.yieldResult;if(A=(y=(n=_.M(D,NcI))==null?void 0:n.highlightedMenuItemKey)!=null?y:"")(h=(C=U).highlightSettingsMenuItem)==null||h.call(C,A);if(Q=(u=(b=_.M(D,NcI))==null?void 0:b.openMenuItemKey)!=null?u:"")(J=(G=U).openSettingsMenuItem)==null||J.call(G,Q);_.Kz(L)})};var PQT=_.n7("/youtube/app/watch/player_state","playerStateEntity");_.x7=function(l){_.xT.call(this);this.JSC$23537_watchApi=l;b7g(this)};
_.Z(_.x7,_.xT);var gBT=function(l){switch(l){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"}},b7g=function(l){var D,U,n,y,A;
_.P(function(C){if(C.nextAddress==1)return C.yield(l.JSC$23537_watchApi.playerApi,2);D=C.yieldResult;if(l.isDisposed())return C.return();U=function(h){l.onPlayerStateChange(h)};
n=function(h){l.onAdStateChange(h)};
y=function(){l.onAdSkip()};
A=function(h){l.onVideoDataChange(h)};
D.addEventListener("onStateChange",U);D.addEventListener("onAdStateChange",n);D.addEventListener("onAdSkip",y);D.addEventListener("onVideoDataChange",A);l.addOnDisposeCallback(function(){D.removeEventListener("onStateChange",U);D.removeEventListener("onAdStateChange",n);D.removeEventListener("onAdSkip",y);D.removeEventListener("onVideoDataChange",A)});
_.Kz(C)})},uoh=function(l){var D=_.fY(),U=D.dispatch;
a:switch(l.adsState){case -1:case 0:var n="ADS_STATE_NONE";break a;case 1:case 2:case 3:n="ADS_STATE_PLAYING";break a;default:n="ADS_STATE_UNKNOWN"}U.call(D,_.vr("playerStateEntity",PQT,{key:PQT,playerState:gBT(l.playerState),adsState:n,videoId:l.videoId}))};
_.x7.prototype.onPlayerStateChange=function(l){var D=this,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(D.JSC$23537_watchApi.playerApi,2);U=n.yieldResult;if(D.isDisposed())return n.return();D.playerState=l;D.videoId=U.getVideoData().video_id;uoh(D);_.Kz(n)})};
_.x7.prototype.onAdStateChange=function(l){this.adsState=l;uoh(this)};
_.x7.prototype.onAdSkip=function(){this.adsState=0;uoh(this)};
_.x7.prototype.onVideoDataChange=function(l){l.type==="newdata"&&(this.adsState=-1,uoh(this))};_.QJW=function(l){_.xT.call(this);var D=this;this.JSC$23541_watchApi=l;this.enableExternalPlaylistPanelInPlayer=_.q("delhi_web_player_use_external_playlist_panel");_.Jc().resolve(_.Cd).setPlayer(this.JSC$23541_watchApi.getElement("PLAYER"));l=this.JSC$23541_watchApi.subscribeToActiveChanged(function(U){D.onActiveChanged(U)});
this.addOnDisposeCallback(l);vBC(this)};
_.Z(_.QJW,_.xT);var vBC=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return l.enableExternalPlaylistPanelInPlayer?n.yield(l.JSC$23541_watchApi.playerApi,2):n.return();D=n.yieldResult;U=function(){if(l.playlistPanelElement)l.playlistPanelElement.onToggleExpanded()};
D.addEventListener("onToggleExternalPlaylistPanel",U);l.addOnDisposeCallback(function(){D.removeEventListener("onToggleExternalPlaylistPanel",U)});
_.Kz(n)})};
_.QJW.prototype.onActiveChanged=function(l){var D=this,U=_.Jc().resolve(_.Cd),n=function(){G3l(D)};
l?(this.playlistPanelElement=this.JSC$23541_watchApi.getElement("PLAYLIST_PANEL"))?(U.setPlaylistComponent(this.playlistPanelElement),U.addEventListener("yt-playlist-data-updated",n),this.addOnDisposeCallback(function(){U.removeEventListener("yt-playlist-data-updated",n)}),G3l(this)):_.nt(Error("dp")):(U.removeEventListener("yt-playlist-data-updated",n),U.cancelVideoSkip())};
var G3l=function(l){var D=_.Jc().resolve(_.Cd);l.JSC$23541_watchApi.provideRenderingData("PLAYLIST",D.getPlaylistData())};_.j7=function(l){_.xT.call(this);var D=this;this.JSC$23544_watchApi=l;this.onPageScroll=function(){D.scrollThrottle.fire();D.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.A1(this.onThrottledScroll,200,this);_.m7(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.A1(this.onMastheadThrottledScroll,50,this);_.m7(this,this.mastheadScrollThrottle);this.animation=new _.Qz(function(U){D.JSC$23544_watchApi.getRoot().setScrollTop(U)});
l=_.fM(_.EB(),_.t1,function(){D.onFullscreenChanged()});
this.addOnDisposeCallback(l);J4T(this);LFg(this);this.onThrottledScroll()};
_.Z(_.j7,_.xT);
_.j7.prototype.onFullscreenChanged=function(){var l=this,D=this.JSC$23544_watchApi.getRoot();!this.pageScrollElement&&D.pageScrollElement?(this.pageScrollElement=D.pageScrollElement,D.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){l.pageScrollElement&&l.pageScrollElement.removeEventListener("scroll",l.onPageScroll)})):this.pageScrollElement&&!D.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var J4T=function(l){window.addEventListener("scroll",l.onPageScroll);l.addOnDisposeCallback(function(){window.removeEventListener("scroll",l.onPageScroll)})},LFg=function(l){l.JSC$23544_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(D){a:{var U;
if(U=l.JSC$23544_watchApi.getRoot().contains(D)&&!l.animation.isAnimating()){U=D.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var n,y,A=(D==null?void 0:(n=D.parentElement)==null?void 0:(y=n.parentElement)==null?void 0:y.id)==="fixed-secondary";U=!(U&&A)}if(U){if(_.q("kevlar_watch_scroll_manager_absolute_offset_killswitch"))n=D.offsetTop;else for(n=0,y=D;y!==null;)n+=y.offsetTop,n-=y.scrollTop,y=y.offsetParent;y=n;n=y-24;D=y+D.offsetHeight+24;y=l.JSC$23544_watchApi.getRoot().getPageScrollingElement();
U=l.JSC$23544_watchApi.getRoot().getScrollTop();A=U+y.clientHeight-56;if(n<U+56)D=n-56;else if(D>A)D-=y.clientHeight;else break a;l.scrollWatchTo(Math.max(0,D),!0)}}});
l.addOnDisposeCallback(function(){l.JSC$23544_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.j7.prototype.onThrottledScroll=function(){var l=_.EB(),D=l.dispatch,U=this.JSC$23544_watchApi.getRoot().getScrollTop();D.call(l,_.V0({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:U}}))};
_.j7.prototype.onMastheadThrottledScroll=function(){this.JSC$23544_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23544_watchApi.getRoot().getScrollTop())};
_.j7.prototype.scrollWatchTo=function(l,D){(D===void 0?0:D)?this.animation.start(this.JSC$23544_watchApi.getRoot().getScrollTop(),Math.max(0,l),500):this.JSC$23544_watchApi.getRoot().setScrollTop(l)};_.Rfl=function(l){_.xT.call(this);var D=this;this.JSC$23547_watchApi=l;var U=this.JSC$23547_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){qBk(D)}),n=this.JSC$23547_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Msl(D)});
this.addOnDisposeCallback(function(){D.JSC$23547_watchApi.unsubscribeByKey(U);D.JSC$23547_watchApi.unsubscribeByKey(n)});
qBk(this);Msl(this)};
_.Z(_.Rfl,_.xT);
var qBk=function(l){var D,U,n,y=(n=(D=l.JSC$23547_watchApi.getPlayerResponse())==null?void 0:(U=D.videoDetails)==null?void 0:U.title)!=null?n:"";l.JSC$23547_watchApi.dispatchEvent("yt-update-title",y)},Msl=function(l){var D,U,n,y,A,C,h,b=(h=((C=(D=l.JSC$23547_watchApi.getWatchNextResponse())==null?void 0:(U=D.contents)==null?void 0:(n=U.twoColumnWatchNextResults)==null?void 0:(y=n.results)==null?void 0:(A=y.results)==null?void 0:A.contents)!=null?C:[]).find(function(u){return!!u.videoPrimaryInfoRenderer}))==null?
void 0:h.videoPrimaryInfoRenderer;
(D=_.Nl(b==null?void 0:b.title))&&l.JSC$23547_watchApi.dispatchEvent("yt-update-title",D)};_.efk=function(l){_.xT.call(this);this.JSC$23550_watchApi=l;Z7D(this)};
_.Z(_.efk,_.xT);var Z7D=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$23550_watchApi.playerApi,2);D=n.yieldResult;U=function(){l.onYpcContentRequest()};
D.addEventListener("onYpcContentRequest",U);l.addOnDisposeCallback(function(){D.removeEventListener("onYpcContentRequest",U)});
_.Kz(n)})};
_.efk.prototype.onYpcContentRequest=function(){var l,D,U,n,y,A=(l=this.JSC$23550_watchApi.getWatchNextResponse())==null?void 0:(D=l.contents)==null?void 0:(U=D.twoColumnWatchNextResults)==null?void 0:(n=U.secondaryResults)==null?void 0:(y=n.secondaryResults)==null?void 0:y.offerModule,C,h,b,u;l=(u=(b=(h=(C=A==null?void 0:A.episodeOfferModuleRenderer)!=null?C:A==null?void 0:A.movieOfferModuleRenderer)!=null?h:A==null?void 0:A.unlimitedOfferModuleRenderer)!=null?b:A==null?void 0:A.liveOfferModuleRenderer)!=
null?u:A==null?void 0:A.tvfilmOfferModuleRenderer;var Q,G,J;A=(J=A==null?void 0:(Q=A.tvfilmOfferModuleRenderer)==null?void 0:(G=Q.actionButtons)==null?void 0:G.length)!=null?J:0;G=Math.max(A-1,0);var L,R,a;Q=(a=l==null?void 0:(L=l.offerButton)==null?void 0:L.buttonRenderer)!=null?a:l==null?void 0:(R=l.actionButtons)==null?void 0:R[G].buttonRenderer;var S,d;(L=(d=(S=Q==null?void 0:Q.navigationEndpoint)!=null?S:Q==null?void 0:Q.serviceEndpoint)!=null?d:Q==null?void 0:Q.command)&&_.yu.instance.resolveCommand(L)};
}catch(e){_._DumpException(e)}
try{
var Jj8,vu8,gu$;_.usJ=function(){var l=_.we.clone(bYH),D;return(new _.X0(function(U,n){l.onSuccess=function(y){_.AJd(y)?U(new gu$(y)):n(new _.Ws("Request failed, status="+_.aG(y),"net.badstatus",y))};
l.onError=function(y){n(new _.Ws("Unknown request error","net.unknown",y))};
l.onTimeout=function(y){n(new _.Ws("Request timed out","net.timeout",y))};
D=_.dc("//googleads.g.doubleclick.net/pagead/id",l)})).thenCatch(function(U){if(U instanceof _.dk){var n;
(n=D)==null||n.abort()}return _.Le(U)})};
_.QrJ=function(l){a:{var D="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(D="EMBEDDED_PLAYER_MODE_PFL");var U=l.raw_embedded_player_response;if(!U&&(l=l.embedded_player_response))try{U=JSON.parse(l)}catch(y){break a}if(U)b:for(var n in vu8)if(vu8[n]==U.embeddedPlayerMode){D=vu8[n];break b}}return D==="EMBEDDED_PLAYER_MODE_PFL"};
_.GYv=function(){if(_.q("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.NDB())return Error("wf");var l=_.H3("PLAYER_VARS",{});if(_.we.get(l,"privembed",!1)=="1")return Error("xf");if(_.QrJ(l))return Error("yf")};
Jj8=function(l){switch(l){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:_.Tv(l,"unknown result type")}};
_.L28=function(l,D,U){D=_.O_l[D];U={detected:l===0,source:D.keX,detectionResult:Jj8(l),contentCpn:U};_.Na("biscottiBasedDetection",U);_.Ynz.increment(D.keX,l);D.zqX!==void 0&&_.IN("CATSTAT",_.H_3(l,D))};
_.Bs=function(l,D){var U={};U.key=l;U.value=D;return _.LK3().then(function(n){return new Promise(function(y,A){try{var C=n.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(U);C.onsuccess=function(){y()};
C.onerror=function(){A()}}catch(h){A(h)}})})};
_.M0v=function(){var l=_.RG("user_engagement_experiments_rate_limit_ms"),D=qlJ.get("last-user-engagement-exp-trigger-timestamp");return!D||(0,_.J3)()>=D+l?(qlJ.set("last-user-engagement-exp-trigger-timestamp",(0,_.J3)()),!0):!1};
_.CZ=function(l,D,U,n,y){D=D===void 0?null:D;U=U===void 0?null:U;n=n===void 0?null:n;y=y===void 0?null:y;l={youThereEventType:l};U&&(l.lactThresholdMs=U.lactThresholdMs,l.mediaPosSec=U.promptDelaySec,l.lactServerRequestMs=U.lactServerRequestMs,l.triggerReason=U.triggerReason);y!=null&&(l.renderingMediaPosSec=Math.round(y));D||(D=_.t6());D&&(l.clientScreenNonce=D);n&&(l.clientPlaybackNonce=n);_.Na("youThere",l)};
vu8={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"};gu$=function(l){this.xhr=l};
_.Ws=function(l,D,U){_.D9.call(this,l+", errorCode="+D);this.errorCode=D;this.xhr=U;this.name="PromiseAjaxError"};
_.Z(_.Ws,_.D9);var bYH={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var qlJ=new _.Vo("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.PJ8=function(l){return _.V0({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:l})};
}catch(e){_._DumpException(e)}
try{
var fN,iUc,DNj,UNO,nfw,yuk,WXO,QnO,GIl,Juw,AuH,lsc,PVW,h9C,Md1;_.Vsl=function(){var l=window.location.hash;l.charAt(0)==="#"&&(l=l.charAt(1)==="!"?l.substring(2):l.substring(1));return _.WS(l)};
fN=function(l,D,U){var n;return _.P(function(y){if(y.nextAddress==1)return y.yield(D(),2);n=y.yieldResult;U(n,l);_.Kz(y)})};
iUc=function(){return _.P(function(l){return l.nextAddress==1?l.yield((_.GYv()!==void 0?_.Le(Error("zf")):_.usJ()).then(function(){return 1},function(D){if(D.message==="Biscotti id is disabled")return 3;
_.II("Failed fetching bid");return 0}),2):l.return(l.yieldResult)})};
DNj=function(){var l=_.YB("cjNvc2o3ZHhmOWlmeXQtaGF2ZW4tZW1iZWQtcGxheWVyIw=="),D=_.YB("aGJ2dmcyYXZudjN6aWZyYW1lIw==");return document.querySelector(D+lsc+l)?0:1};
UNO=function(){return _.jY9(_.Ge)};
nfw=function(){return _.F$G()===0?0:_.oaC()};
yuk=function(){return _.$Pl(_.nag([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
WXO=function(){return _.XZG(AuH)};
_.BXc=function(l){_.P(function(D){switch(D.nextAddress){case 1:return D.yield(fN("b.f_",iUc,l),2);case 2:return D.yield(fN("j.s_",_.aq9,l),3);case 3:return D.yield(fN("r.s_",_.Z__,l),4);case 4:return D.yield(fN("e.h_",WXO,l),5);case 5:if(!_.q("ab_det_sc_inj")){D.jumpTo(6);break}return D.yield(fN("s.i_",_.pZc,l),6);case 6:if(_.q("ab_deg_unex_thr")){D.jumpTo(8);break}return D.yield(fN("a.o_",_.K$g,l),8);case 8:if(_.q("ks_get_o_pp")){D.jumpTo(10);break}return D.yield(fN("g.o_",_.dPG,l),10);case 10:if(_.q("ks_det_gpbl")){D.jumpTo(12);
break}return D.yield(fN("p.i_",_.kOs,l),12);case 12:return D.yield(fN("f.i_",_.b__,l),14);case 14:return D.yield(fN("a.b_",_.Mw$,l),15);case 15:return D.yield(fN("p.m_",_.va9,l),16);case 16:if(!_.q("ab_det_el_h_v2")){D.jumpTo(17);break}return D.yield(fN("n.h_",yuk,l),17);case 17:return D.yield(fN("o.p_",UNO,l),19);case 19:return D.yield(fN("e.i_",DNj,l),20);case 20:if(_.q("ab_det_apm"))return D.yield(fN("o.a_",nfw,l),0);D.jumpTo(0)}})};
_.CVh=function(l,D){l={videoId:l};D&&(l.playlistId=D);return l};
_.bUD=function(){if(_.NDB()){var l=_.H3("PLAYER_VARS",{});if(_.we.get(l,"privembed",!1)!="1"&&!_.QrJ(l)){var D=function(){h9C=!0;"google_ad_status"in window?_.IN("DCLKSTAT",1):_.IN("DCLKSTAT",2)};
try{_.pI(_.VD8,D)}catch(U){}PVW.push(_.Tn.addLowPriorityJob(function(){if(!(h9C||"google_ad_status"in window)){try{_.jxB(_.VD8.toString(),D)}catch(U){}h9C=!0;_.IN("DCLKSTAT",3)}},5E3))}}};
_.gfh=function(l,D,U){U=U===void 0?!1:U;var n=Math.max(l.width,_.BbO);if(_.q("kevlar_watch_feed_big_thumbs")&&l.width>=1550-_.Ih()&&l.height>=800)n-=_.uyg;else if(l.width>=_.jO){var y=_.Cd1+_.hvT+_.xb;_.q("kevlar_watch_feed_big_thumbs")&&(y=_.gHc);n-=y}else n-=_.Cd1;n=Math.min(n,_.Pdh);y=240;U&&(y=380);D<.5624||(!_.q("kevlar_watch_flexy_disable_small_window_sizing")&&(l.height<630&&l.width>=657||l.height>=630&&l.width>=_.jO&&l.width<1327)?y=360:!_.q("kevlar_watch_flexy_disable_large_window_sizing")&&
l.height>=630&&l.width>=1327&&(y=480));var A=Math.min(n*D,l.height-(56+_.WWT+_.b6h));A=Math.max(A,y);D<1?n=A/D:l.width>=_.jO&&(n=_.gfh(l,.5625,U).width);return new _.Sr(Math.round(n),Math.round(A))};
_.uPT=function(l){var D=0;l.indexOf("h")!=-1&&(l=l.split("h"),D=l[0]*60*60,l=l[1]);l.indexOf("m")!=-1&&(l=l.split("m"),D=l[0]*60+D,l=l[1]);l.indexOf("s")!=-1?(l=l.split("s"),D=l[0]*1+D):D=l*1+D;return D};
_.vfc=function(){_.RG("service_worker_push_logged_out_prompt_watches")!=-1&&_.YV("WatchCount").then(function(l){l>=100||_.Bs("WatchCount",l+1)})};
QnO=function(l){var D=l.externalVideoId||"";return D?l.isShortsEligible?"https://www.youtube.com/shorts/"+D:"https://www.youtube.com/watch?v="+D:""};
GIl=function(l){var D=[];l.viewCount&&D.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:l.viewCount});l.likeCount&&D.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:l.likeCount});return D};
Juw=function(l){var D,U,n={"@context":"https://schema.org","@type":"VideoObject",description:_.Nl(l.description),duration:"PT"+(l.lengthSeconds||"0")+"S",embedUrl:l.embed?l.embed.iframeUrl:"",name:_.Nl(l.title),thumbnailUrl:((D=l.thumbnail)==null?void 0:(U=D.thumbnails)==null?void 0:U.map(function(Q){return Q&&Q.url||""}))||[],
uploadDate:l.publishDate};_.q("mweb_video_schema_id_killswitch")||(n["@id"]=QnO(l));D=GIl(l);D.length&&(n.interactionStatistic=D);l.category&&(n.genre=l.category);l.ownerChannelName&&(n.author=l.ownerChannelName);l.liveBroadcastDetails&&(n.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:l.liveBroadcastDetails.startTimestamp,endDate:l.liveBroadcastDetails.endTimestamp}]);if(l.learningResource){l=l.learningResource;n["@type"]=["VideoObject","LearningResource"];var y;if((y=l.learningResourceType)==
null?0:y.length)n.learningResourceType=l.learningResourceType[0];var A;if((A=l.educationalAlignment)==null?0:A.length)n.educationalAlignment={"@type":"AlignmentObject",targetName:l.educationalAlignment[0]};var C;if((C=l.educationalLevel)==null?0:C.length){y=l.educationalLevel[0];var h;if((h=l.educationalLevelCountry)==null?0:h.length)y+=" ("+l.educationalLevelCountry+")";n.educationalLevel=y}var b,u;if(((b=l.learningResourceType)==null?0:b.length)&&l.learningResourceType[0]==="Problem walkthrough"&&
((u=l.problemDescriptions)==null?0:u.length))for(n.hasPart=[],h=_.B(l.problemDescriptions),b=h.next();!b.done;b=h.next())y=b.value,b=y.problemDescriptionText,u=y.startOffset,y=y.url,b&&u!==void 0&&y&&n.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:b,text:b,startOffset:u,url:y})}return n};
_.LXT=function(l){return _.V0({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:l}})};
AuH=[[["bnRoa3c3ajM2Y2phcHJpbWFyeSM=",null,null],[null,["MnVzbHk3b2F3NTJueXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIj","MnMyZnQyMjQ4NGtwc3R5bGUtc2NvcGUj"],null],["dGZybnhpYmE0cHc3bWFzdGhlYWQtYWQj",["Izh3c2t0eWJidndjeXRkLXJpY2gtZ3JpZC1yZW5kZXJlcg=="],null],[null,["I2ZnNGlrMmc3dGtxeXRkLXJpY2gtZ3JpZC1yZW5kZXJlcg==","I2xrNGxidHRiaXcwc3R5bGUtc2NvcGU="],null],[null,["bGw2bGk4azhnMG41eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM=","aGV4dDI2bmM1dTU1c3R5bGUtc2NvcGUj"],null],[null,["a2hwZnU3YXZ4eXA2eXRkLWFkLXNsb3QtcmVuZGVyZXIj"],
null]],[["cXhnZTJlOXJsY25ycGxheWVyLWFkcyM=",null,null]],[[null,null,"d213MGRncTNjOW15eXRsci1iYW5uZXItY3RhLXJlbmRlcmVyIw=="]]];lsc="#";PVW=[];h9C=!1;_.qJC=["engagement-panel-ads"];Md1=new _.y4("updateSentimentBarStateCommand");_.R9c=new _.y4("showSurveyCommand");_.$7=new _.y4("changeMarkersVisibilityCommand");var e9c,mNT,SJh,Xkq,td1,NC;_.ZUT=function(l,D){this.playerProvider_=l;this.actionSenderElement_=D;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.ZUT.prototype.reset=function(){e9c(this);this.isUserPredictedAbsent_=!1};
e9c=function(l,D){!l.youThereData_||l.showWarningJob_||D!==void 0&&D||(_.CZ("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.t6(),l.youThereData_,l.clientPlaybackNonce_),_.sU());_.Tn.cancelJob(l.showWarningJob_);l.showWarningJob_=0;_.Tn.cancelJob(l.showBlockingWarningJob_);l.showBlockingWarningJob_=0;_.Tn.cancelJob(l.pausePlaybackJob_);l.pausePlaybackJob_=0;l.youThereData_=null;l.clientPlaybackNonce_=void 0;l.inYouThereFlow_=!1};
_.ash=function(l,D){var U,n,y;_.P(function(A){if(A.nextAddress==1)return l.reset(),A.yield(l.playerProvider_().getPlayerPromise(),2);U=A.yieldResult;l.clientPlaybackNonce_=U.getVideoData().cpn;l.youThereData_=D.configData.youThereData;if(!l.youThereData_)return A.return();if(l.youThereData_.triggerReason&&l.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.M0v())return _.CZ("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.t6(),l.youThereData_,l.clientPlaybackNonce_),A.return();n=l.youThereData_.promptDelaySec;
y=U.getCurrentTime();l.showWarningJob_=_.Tn.addLowPriorityJob(function(){return _.P(function(C){l.showWarningJob_=0;return C.yield(mNT(l),0)})},Math.max(n-y,0)*1E3);
_.Kz(A)})};
mNT=function(l){var D,U,n,y,A,C;return _.P(function(h){if(h.nextAddress==1)return h.yield(l.playerProvider_().getPlayerPromise(),2);if(h.nextAddress!=3)return D=h.yieldResult,U=D.getCurrentTime(),h.yield(td1(l),3);n=h.yieldResult;if(!n||!l.youThereData_)return h.return();if(_.q("check_user_lact_at_prompt_shown_time_on_web")&&(y=parseInt(l.youThereData_.lactThresholdMs,10),_.Gj()<y))return _.CZ("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.t6(),l.youThereData_,l.clientPlaybackNonce_),h.return();if(l.youThereData_.playbackPauseDelayMs<=
0)return Xkq(l),h.return();!_.q("external_fullscreen")&&(A=_.Ta())&&(l.ignoreFullscreenExitUserActivity_=!0,_.Tn.addLowPriorityJob(function(){l.ignoreFullscreenExitUserActivity_=!1},2E3),_.IS(A));
l.youThereData_.showToastWarningPrompt&&(NC(l,l.youThereData_.showWarningActions),l.inYouThereFlow_=!0,_.CZ("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.t6(),l.youThereData_,l.clientPlaybackNonce_,U),_.CZ("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.t6(),l.youThereData_,l.clientPlaybackNonce_,U));C=0;l.youThereData_.blockingPromptDelayMs&&(C=l.youThereData_.blockingPromptDelayMs);l.showBlockingWarningJob_=_.Tn.addLowPriorityJob(function(){return _.P(function(b){l.showBlockingWarningJob_=0;return b.yield(SJh(l),
0)})},C);
_.Kz(h)})};
SJh=function(l){var D,U,n;return _.P(function(y){if(y.nextAddress==1)return y.yield(td1(l),2);D=y.yieldResult;if(!l.youThereData_)return y.return();D&&(l.youThereData_.showBlockingWarningAction&&(_.CZ("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.t6(),l.youThereData_,l.clientPlaybackNonce_),(U=_.M(l.youThereData_.showBlockingWarningAction,_.n3))?NC(l,U.commands):NC(l,[l.youThereData_.showBlockingWarningAction]),l.inYouThereFlow_=!0),n=l.youThereData_.playbackPauseDelayMs,l.pausePlaybackJob_=
_.Tn.addLowPriorityJob(function(){return _.P(function(A){l.pausePlaybackJob_=0;return A.yield(Xkq(l),0)})},n));
_.Kz(y)})};
Xkq=function(l){var D;return _.P(function(U){if(U.nextAddress==1)return U.yield(td1(l),2);D=U.yieldResult;if(!l.youThereData_)return U.return();D&&(_.CZ("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.t6(),l.youThereData_,l.clientPlaybackNonce_),NC(l,l.youThereData_.showPausedActions),l.inYouThereFlow_=!0);_.Kz(U)})};
_.ZUT.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var l=_.M(this.youThereData_.userActiveDuringFlowAction,_.n3);l?NC(this,l.commands):NC(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.CZ("YOU_THERE_EVENT_TYPE_LACT_RESET",_.t6(),this.youThereData_,this.clientPlaybackNonce_),_.sU());e9c(this,!0)}_.kIc(this,!1)};
_.dNO=function(l){_.CZ("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.t6(),l.youThereData_,l.clientPlaybackNonce_)};
td1=function(l){var D,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(l.playerProvider_().getPlayerPromise(),2);D=n.yieldResult;U=D.getPlayerState();return n.return(U==-1||U==1||U==3)})};
_.kIc=function(l,D){var U;_.P(function(n){if(n.nextAddress==1){if(l.isUserPredictedAbsent_==D)return n.jumpTo(0);l.isUserPredictedAbsent_=D;return n.yield(l.playerProvider_().getPlayerPromise(),3)}U=n.yieldResult;U.setUserEngagement(D);D&&_.CZ("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.t6(),l.youThereData_,l.clientPlaybackNonce_);_.Kz(n)})};
NC=function(l,D){if(_.q("handle_service_request_actions")||_.q("kevlar_youthere_service_endpoint_actions_killswitch"))_.DP(l.actionSenderElement_,D,l.actionSenderElement_);else{D=_.B(D);for(var U=D.next();!U.done;U=D.next())U=U.value,U.commandMetadata&&U.commandMetadata.webCommandMetadata&&U.commandMetadata.webCommandMetadata.sendPost?_.lu(l.actionSenderElement_,[U]):_.DP(l.actionSenderElement_,[U],l.actionSenderElement_)}};var KXh;var cuw;var sx=function(){var l=_.p.apply(this,arguments)||this;l.systemIcons=_.q("kevlar_system_icons");l.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return l};
_.Z(sx,_.p);sx.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var l=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(l=this.data.percentIfLiked||0,this.activated=!0):(l=this.data.percentIfIndifferent||0,this.activated=!1);_.iJ(this.hostElement).querySelector("#like-bar").style.width=l+"%"}};
sx.prototype.handleUpdateSentimentBarStateCommand=function(l){this.data&&this.set("data.likeStatus",_.M(l,Md1).likeStatus)};
sx.prototype.observeLikeStatus=sx.prototype.observeLikeStatus;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],sx.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],sx.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],sx.prototype,"activated",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],sx.prototype,"systemIcons",void 0);_.E([_.Pg("data.likeStatus"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sx.prototype,"observeLikeStatus",null);_.E([_.x({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],sx);
_.r(sx,"ytd-sentiment-bar-renderer",function(){if(cuw!==void 0)return cuw;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return cuw=l},{mode:1});var pkO;var Ex=function(){var l=_.p.apply(this,arguments)||this;l.small=!0;return l};
_.Z(Ex,_.p);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Ex.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ex.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ex.prototype,"small",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Ex);
_.r(Ex,"ytd-video-view-count-renderer",function(){if(pkO!==void 0)return pkO;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return pkO=l},{mode:_.Vj("kevlar_poly_si_batch_j080")?1:2});var Tx=function(){var l=_.p.apply(this,arguments)||this;l.infoFormattedStrings=[];l.wrapVideoActions=_.q("kevar_watch_wrap_video_actions");l.hideSentimentBar=_.q("kevlar_watch_hide_sentiment_bar");l.actionMap={};return l};
_.Z(Tx,_.p);_.W=Tx.prototype;_.W.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.q("web_modern_buttons"),forceIconButton:!_.q("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.W.dataChanged=function(){_.q("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.W.computeInfoFormattedStrings=function(l){if(!l)return[];var D=[];l.dateText&&D.push(l.dateText);l.stationName&&D.push(l.stationName);l.rating&&D.push(l.rating);l.startEndTimeTemplate&&l.startTimeUtcMillis&&l.endTimeUtcMillis&&D.push(_.$B(_.Jfq(_.Nl(l.startEndTimeTemplate),Number(l.startTimeUtcMillis),Number(l.endTimeUtcMillis))));l.upNextProgramText&&D.push(l.upNextProgramText);return D};
_.W.scheduleInitialUpdatedMetadataRequest=function(){var l,D=(l=this.data)==null?void 0:l.updatedMetadataEndpoint;if(D){var U;l=Number((U=_.M(D,_.oW1))==null?void 0:U.initialDelayMs);U=isNaN(l)?250:l;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),U)}};
_.W.setSentimentBarWidth=function(){var l=this;_.u6(this,function(){var D=_.iJ(l.hostElement).querySelector("ytd-menu-renderer");if(D){D=D.topLevelButtons;for(var U=0,n=0;n<D.length;n++){var y=D[n],A=l.get("toggleButtonSupportedData.toggleButtonIdData.id",y.data);if(A==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||A==="TOGGLE_BUTTON_ID_TYPE_LIKE")U+=y.clientWidth+8;else break}U&&(l.sentiment.style.width=U-8+" px")}})};
_.W.fetchUpdatedMetadata=function(l){var D;l&&(D={continuation:l});var U;(l=(U=this.data)==null?void 0:U.updatedMetadataEndpoint)&&_.Jc().resolve(_.qK).resolveCommand(l,{form:Object.assign({},D,{element:this.hostElement})})};
_.W.onYtServiceRequestSent=function(l,D){D.endpoint&&_.M(D.endpoint,_.kX)&&(this.hasUpdateSentimentBarStateCommands()&&!_.q("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.M(D.endpoint,_.kX).status),this.setSentimentBarWidth())};
_.W.hasUpdateSentimentBarStateCommands=function(){var l,D,U,n,y=(n=(l=this.data)==null?void 0:(D=l.videoActions)==null?void 0:(U=D.menuRenderer)==null?void 0:U.topLevelButtons)!=null?n:[];l=_.B(y);for(D=l.next();!D.done;D=l.next()){D=D.value;y=n=U=void 0;var A=(U=D.toggleButtonRenderer)==null?void 0:(n=U.toggleButtonSupportedData)==null?void 0:(y=n.toggleButtonIdData)==null?void 0:y.id;if(A==="TOGGLE_BUTTON_ID_TYPE_LIKE"||A==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){n=U=void 0;D=(n=_.M((U=D.toggleButtonRenderer)==
null?void 0:U.defaultServiceEndpoint,_.n3))==null?void 0:n.commands;if(!D)break;D=_.B(D);for(U=D.next();!U.done;U=D.next())if(_.M(U.value,Md1))return!0}}return!1};
_.W.onYtServiceRequestCompleted=function(l,D){var U;(l=(U=D.data)==null?void 0:U.loggingDirectives)&&_.HX9(_.he(),l);this.get("continuation.timedContinuationData",D.data)&&this.data&&this.data.updatedMetadataEndpoint&&(D=D.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,D.continuation),D.timeoutMs))};
_.W.computeHasDateText=function(l){return!!l&&!!l.dateText};
_.QP.Object.defineProperties(Tx.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n;return!((n=(l=this.data)==null?void 0:(D=l.videoActions)==null?void 0:(U=D.menuRenderer)==null?void 0:U.flexibleItems)==null||!n.length)}}});
Tx.prototype.onYtServiceRequestCompleted=Tx.prototype.onYtServiceRequestCompleted;Tx.prototype.onYtServiceRequestSent=Tx.prototype.onYtServiceRequestSent;Tx.prototype.dataChanged=Tx.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Tx.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.ua.YtTaskEmitterBehavior),_.T("design:type",Object)],Tx.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Tx.prototype,"data",void 0);_.E([_.K({computed:"computeInfoFormattedStrings(data)"}),_.T("design:type",Array)],Tx.prototype,"infoFormattedStrings",void 0);
_.E([_.K({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],Tx.prototype,"hasDateText",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Tx.prototype,"wrapVideoActions",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Tx.prototype,"hideSentimentBar",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Tx.prototype,"flexMenuEnabled",null);
_.E([_.gP("#sentiment"),_.T("design:type",Object)],Tx.prototype,"sentiment",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Tx.prototype,"dataChanged",null);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],Tx.prototype,"onYtServiceRequestSent",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],Tx.prototype,"onYtServiceRequestCompleted",null);
_.r(Tx,"ytd-video-primary-info-renderer",function(){if(KXh===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);KXh=l}l=KXh;return l},{mode:1});var xNc;var Iq=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return l};
_.Z(Iq,_.p);_.W=Iq.prototype;_.W.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"}}}};
_.W.dataChanged=function(){var l;this.descriptionToggled=!((l=this.data)==null||!l.defaultExpanded);var D;this.collapsed=this.descriptionAlwaysCollapsed||!((D=this.data)==null?0:D.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.UE(110509);this.showLessClientVe=_.UE(110510);l=_.t6();D=_.aS();l&&D&&_.FI(l,D,[this.showMoreClientVe,this.showLessClientVe])};
_.W.onYtExpanderMoreTapped=function(){var l,D=(l=this.data)==null?void 0:l.showMoreCommand;D&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(D);(l=_.t6())&&this.showMoreClientVe&&_.zo(l,this.showMoreClientVe)};
_.W.onYtExpanderLessTapped=function(){var l=_.t6();l&&this.showLessClientVe&&_.zo(l,this.showLessClientVe);var D;(l=(D=this.data)==null?void 0:D.showLessCommand)&&this.componentBehavior.resolveCommand(l)};
_.W.handleUpdateDateTextAction=function(l){this.data&&this.data.dateText&&this.set("data.dateText",_.M(l,_.i6O).dateText)};
_.W.handleUpdateDescriptionAction=function(l){if(l=_.M(l,_.oam))l.isEmpty||!l.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Zk(l.description)):this.set("data.description",l.description)};
_.W.onYtChangeEngagementPanelVisibilityAction=function(l){if(_.q("web_structured_description_show_more")||_.q("web_engagement_panel_open_description")){var D,U=(D=_.M(l,_.FlH))==null?void 0:D.targetId,n;l=((n=_.M(l,_.FlH))==null?void 0:n.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";U==="engagement-panel-structured-description"&&l&&(this.descriptionToggled=!0)}};
_.W.updateCollapsedFromBinding=function(l){this.collapsed=l.detail.value};
_.W.updateDescriptionToggledFromBinding=function(l){this.descriptionToggled=l.detail.value};
_.W.updateCanCollapseFromBinding=function(l){this.canCollapse=l.detail.value};
_.QP.Object.defineProperties(Iq.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(l=this.data)==null?void 0:(D=l.metadataRowContainer)==null?void 0:D.metadataRowContainerRenderer;return!!U&&!!U.rows&&U.rows.length>U.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.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}}});
Iq.prototype.onYtExpanderLessTapped=Iq.prototype.onYtExpanderLessTapped;Iq.prototype.onYtExpanderMoreTapped=Iq.prototype.onYtExpanderMoreTapped;Iq.prototype.dataChanged=Iq.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Iq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Iq.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Iq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Iq.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Iq.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],Iq.prototype,"collapsed",void 0);_.E([_.K(),_.T("design:type",Boolean)],Iq.prototype,"descriptionToggled",void 0);
_.E([_.K(),_.T("design:type",Boolean)],Iq.prototype,"canCollapse",void 0);_.E([_.K(),_.T("design:type",Object)],Iq.prototype,"subscribeButtonData",void 0);_.E([_.K(),_.T("design:type",Number)],Iq.prototype,"descriptionCollapsedHeight",void 0);_.E([_.K(),_.T("design:type",Object)],Iq.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.K({value:function(){return _.q("web_watch_description_always_collapsed")}}),
_.T("design:type",Boolean)],Iq.prototype,"descriptionAlwaysCollapsed",void 0);_.E([_.gP("#description"),_.T("design:type",HTMLDivElement)],Iq.prototype,"description",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Iq.prototype,"dataChanged",null);_.E([_.hj("yt-expander-more-tapped"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Iq.prototype,"onYtExpanderMoreTapped",null);
_.E([_.hj("yt-expander-less-tapped"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Iq.prototype,"onYtExpanderLessTapped",null);_.E([_.t("data.metadataRowContainer"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Iq.prototype,"metadataCollapsible",null);_.E([_.t("data","structuredDescriptionContentRenderer"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Iq.prototype,"hasInlineStructuredDescription",null);
_.E([_.t("data.attributedDescription"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Iq.prototype,"hasAttributedDescription",null);_.E([_.t("hasInlineStructuredDescription","collapsed"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Iq.prototype,"loadStructuredDescription",null);_.E([_.t("data","structuredDescriptionContentRenderer","collapsed"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Iq.prototype,"showInlineStructuredDescription",null);
_.E([_.t("data","hasInlineStructuredDescription","metadataCollapsible"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Iq.prototype,"descriptionAlwaysCollapsible",null);
_.r(Iq,"ytd-video-secondary-info-renderer",function(){if(xNc===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);xNc=l}l=xNc;return l},{mode:2});var jnT;var Hn=function(){return _.p.apply(this,arguments)||this};
_.Z(Hn,_.p);Hn.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:_.q("web_modern_buttons"),forceIconButton:!_.q("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Hn.prototype.activate=function(l){l.appendTo(this.player);l.getPlayerPromise().then(function(D){D.setMinimized(!0)});
this.active=!0};
Hn.prototype.deactivate=function(){var l=this.player.firstElementChild;l.getPlayerPromise().then(function(D){D.setMinimized(!1)});
this.active=!1;return l};
Hn.prototype.onScrollUpTap=function(){var l=_.Jc().resolve(_.sm).getCurrentPage();l&&l.setScrollTop(0)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Hn.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Hn.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Hn.prototype,"active",void 0);
_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.T("design:type",Boolean)],Hn.prototype,"darkLaunch",void 0);_.E([_.gP("#player"),_.T("design:type",HTMLDivElement)],Hn.prototype,"player",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Hn);
_.r(Hn,"ytd-miniplayer-bar-renderer",function(){if(jnT!==void 0)return jnT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return jnT=l},{mode:1});_.Tt(_.w(function(l){var D=_.bP("script");_.$i(function(){var U;if(U=JSON)U=Juw(l.data()),U=_.yr(JSON.stringify(U).replace(/</g,"\\u003C"));var n=l.data(),y=_.Nl(n.title).trim().length===0,A=!n.publishDate||n.publishDate.trim().length===0,C,h,b,u,Q=!((C=n.thumbnail)==null?0:(h=C.thumbnails)==null?0:h.length)||!((b=n.thumbnail)==null?0:b.thumbnails[0].url)||((u=n.thumbnail)==null?void 0:u.thumbnails[0].url.trim().length)===0;D.value&&U&&!(y||A||Q)&&_.WY(D.value,U)},"Vy9K7b");
return _.g("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.g("script",{el:D,type:"application/ld+json"}))},"Do"),"player-microformat-renderer",{props:{data:_.ND}});
}catch(e){_._DumpException(e)}
try{
var a1D,tsI,SBC;_.mlg=function(l){return l.watch.watchWindowSize};
a1D=function(l,D){var U=document.querySelector(l);U?D(U):setTimeout(function(){a1D(l,D)},1E3)};
tsI=function(l,D,U,n){if(l.isLockupToWatchTransitionEnabled){if(D){var y={};y=(y["watch-next-appears"]="player-watch-next-loaded",y);y["lockup-to-watch"]=l.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";l.viewTransitionCoordinator.registerElement(D,y)}U&&(D={},l.viewTransitionCoordinator.registerElement(U,(D["lockup-to-watch"]="below-lockup-to-watch",D["watch-next-appears"]="below-watch-next-loaded",D)));n&&(U={},l.viewTransitionCoordinator.registerElement(n,
(U["watch-next-appears"]="secondary-watch-next-loaded",U)))}};
_.XcI=function(l){return _.V0({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:l}})};
SBC=new _.y4("webWatchNextResponseExtensionData");var dlh=function(l){_.xT.call(this);var D=this;this.JSC$23554_watchApi=l;this.observer=null;var U=this.JSC$23554_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){k3T(D)});
this.addOnDisposeCallback(function(){D.JSC$23554_watchApi.unsubscribeByKey(U);D.observer&&(D.observer.disconnect(),D.observer=null)});
k3T(this)};
_.Z(dlh,_.xT);
var k3T=function(l){var D,U,n,y,A;_.P(function(C){if(C.nextAddress==1){l.observer&&(l.observer.disconnect(),l.observer=null);D=l.JSC$23554_watchApi.getWatchNextResponse();if(!D)return C.return();U=_.M(D,SBC);return((n=U)==null?0:n.enableCreatorChatbot)&&U.creatorChannelId?_.q("enable_creator_chatbot_link_out")?C.yield((0,_.Ud_)("NSzT5"),6):C.yield((0,_.Ud_)("NSzT5"),5):C.jumpTo(0)}if(C.nextAddress!=6)return y=_.KFT,y(U.creatorChannelId),a1D("ytd-watch-metadata",function(h){l.observer=new MutationObserver(function(){var b,
u;(b=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(u=b.closest("yt-button-view-model.ytd-menu-renderer"))==null||u.remove()});
l.observer.observe(h,{childList:!0,subtree:!0})}),C.jumpTo(0);
A=_.c4D;A(U.creatorChannelId);_.Kz(C)})};var Fh=function(l){_.xT.call(this);this.JSC$23558_watchApi=l;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;pcT(this)};
_.Z(Fh,_.xT);var pcT=function(l){_.P(function(D){if(D.nextAddress==1)return D.yield(xlI(l),2);jJh(l);_.Kz(D)})},xlI=function(l){var D,U,n,y,A,C,h,b,u;
return _.P(function(Q){if(Q.nextAddress==1)return Q.yield(l.JSC$23558_watchApi.playerApi,2);D=Q.yieldResult;l.JSC$23558_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){FFg(l)});
l.JSC$23558_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){l.isShelfVisible?oBT(l):oq(l)});
U=_.EB().subscribe(function(){l.isTheaterMode=_.aL(_.EB().getState());l.isTheaterMode?oq(l):wcl(l)});
n=l.JSC$23558_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jJh(l)});
y=function(G){l.onCueRangeEnter(G)};
D.addEventListener("onCueRangeEnter",y);A=function(G){l.onCueRangeExit(G)};
D.addEventListener("onCueRangeExit",A);C=function(){l.isSeeking=!0};
D.addEventListener("SEEK_TO",C);h=function(){l.onSeekComplete()};
D.addEventListener("SEEK_COMPLETE",h);b=function(){l.onAdStart()};
D.addEventListener("onAdStart",b);u=function(){l.onAdComplete()};
D.addEventListener("onAdComplete",u);l.addOnDisposeCallback(function(){U();l.JSC$23558_watchApi.unsubscribeByKey(n);D.removeEventListener("onCueRangeEnter",y);D.removeEventListener("onCueRangeExit",A);D.removeEventListener("SEEK_TO",C);D.removeEventListener("SEEK_COMPLETE",h);D.removeEventListener("onAdStart",b);D.removeEventListener("onAdComplete",u)});
_.Kz(Q)})},r4C=function(l){var D,U,n,y,A,C,h,b,u;
return(A=(D=l.contents)==null?void 0:(U=D.twoColumnWatchNextResults)==null?void 0:(n=U.results)==null?void 0:(y=n.results)==null?void 0:y.contents)==null?void 0:(C=A.find(function(Q){var G,J,L;return(G=Q.itemSectionRenderer)==null?void 0:(J=G.contents)==null?void 0:(L=J[0])==null?void 0:L.shoppingTimelyShelfViewModel}))==null?void 0:(h=C.itemSectionRenderer)==null?void 0:(b=h.contents)==null?void 0:(u=b[0])==null?void 0:u.shoppingTimelyShelfViewModel},jJh=function(l){var D;
_.P(function(U){if(U.nextAddress==1)return(D=l.JSC$23558_watchApi.getWatchNextResponse())?U.yield(FFg(l),2):U.return();l.shoppingTimelyShelfViewModel=r4C(D);zfk(l);f1H(l);_.Kz(U)})},zfk=function(l){var D,U=(D=l.shoppingTimelyShelfViewModel)==null?void 0:D.offerIdToVariants;
U&&(D=U.filter(function(n){return n.key&&n.value}).map(function(n){return[n.key,
n.value]}),l.variantsMap=new Map(D))},f1H=function(l){var D,U,n,y,A,C;
_.P(function(h){if(h.nextAddress==1)return(U=(D=l.shoppingTimelyShelfViewModel)==null?void 0:D.cueRanges)?h.yield(l.JSC$23558_watchApi.playerApi,2):h.return();n=h.yieldResult;l.cueRanges=U;y=_.B(U);for(A=y.next();!A.done;A=y.next())C=A.value,C.startTime!==void 0&&C.endTime!==void 0&&C.id!==void 0&&n.addCueRange("shopping_timely_shelf"+C.id,$l1(C.startTime),$l1(C.endTime));_.Kz(h)})},$l1=function(l){return Number(l.seconds||0)+(l.nanos||0)/1E9};
Fh.prototype.onCueRangeEnter=function(l){if(l.startsWith("shopping_timely_shelf")&&(this.activeCueId=l,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){l=l.substring(21);var D,U,n=(D=this.variantsMap)==null?void 0:(U=D.get(l))==null?void 0:U.shelf;n&&(this.JSC$23558_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",n),oBT(this))}};
Fh.prototype.onCueRangeExit=function(l){l.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||oq(this))};
Fh.prototype.onSeekComplete=function(){this.isSeeking=!1;wcl(this)};
var oBT=function(l){l.shoppingTimelyShelfViewModel&&(l.isShelfVisible=!0,_.AH.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},oq=function(l){l.shoppingTimelyShelfViewModel&&(l.isShelfVisible=!1,_.AH.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},FFg=function(l){var D,U,n,y,A;
return _.P(function(C){if(C.nextAddress==1)return C.yield(l.JSC$23558_watchApi.playerApi,2);D=C.yieldResult;if(l.cueRanges)for(U=_.B(l.cueRanges),n=U.next();!n.done;n=U.next())y=n.value,y.id&&(A="shopping_timely_shelf"+y.id,D.removeCueRange(A));l.JSC$23558_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});oq(l);l.shoppingTimelyShelfViewModel=void 0;l.cueRanges=void 0;l.variantsMap=void 0;l.isSeeking=!1;l.activeCueId=void 0;_.Kz(C)})};
Fh.prototype.onAdStart=function(){this.isAdPlaying=!0;oq(this)};
Fh.prototype.onAdComplete=function(){this.isAdPlaying=!1;wcl(this)};
var wcl=function(l){if(l.activeCueId)l.onCueRangeEnter(l.activeCueId);else oq(l)};var I1k=function(l){_.xT.call(this);var D=this;this.JSC$23565_watchApi=l;l=_.fM(_.EB(),_.DX9,function(){Nul(D)});
this.addOnDisposeCallback(l);l=_.fM(_.EB(),_.mlg,function(){Nul(D)});
this.addOnDisposeCallback(l);sJO(this);EBl(this);Tuj()};
_.Z(I1k,_.xT);var sJO=function(l){var D=function(n){_.EB().dispatch(_.Ldw(n.matches))},U=window.matchMedia("(max-width: "+(999+_.Ih())+"px)");
U.addListener(D);l.addOnDisposeCallback(function(){U.removeListener(D)});
D(U)},EBl=function(l){l.JSC$23565_watchApi.registerActionHandler("yt-window-resized",function(){Tuj()});
l.addOnDisposeCallback(function(){l.JSC$23565_watchApi.unregisterActionHandler("yt-window-resized")})},Tuj=function(){var l=_.uV();
_.EB().dispatch(_.V0({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:l.width,height:l.height}}}))},Nul=function(l){var D;
_.P(function(U){if(U.nextAddress==1)return U.yield(l.JSC$23565_watchApi.playerApi,2);D=U.yieldResult;D.setSize(NaN,NaN);_.Kz(U)})};var H71=function(l){_.xT.call(this);var D=_.Jc().resolve(_.NB);tsI(D,l.getElement("PLAYER_CONTAINER"),l.getElement("BELOW_THE_PLAYER"),l.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var U=l.getElement("PLAYER_CONTAINER"),n=l.getElement("BELOW_THE_PLAYER"),y=l.getElement("SECONDARY");D.isLockupToWatchTransitionEnabled&&(U&&_.kv(D.viewTransitionCoordinator,U),n&&_.kv(D.viewTransitionCoordinator,n),y&&_.kv(D.viewTransitionCoordinator,y))})};
_.Z(H71,_.xT);_.wQ=function(l){_.Ps.call(this);var D=this;this.rootElement=l;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return D.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(U){D.initOrDisposeActiveModules(U)}));
this.onAttached()};
_.Z(_.wQ,_.Ps);_.W=_.wQ.prototype;_.W.getRoot=function(){return this.rootElement};
_.W.getElement=function(l){return this.rootElement.getElement(l)};
_.W.setPlayerResponse=function(l){this.playerResponse=l;this.publish("PLAYER_RESPONSE_UPDATED",l)};
_.W.getPlayerResponse=function(){return this.playerResponse};
_.W.setWatchNextResponse=function(l){this.watchNextResponse===l?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=l,this.publish("WATCH_NEXT_RESPONSE_UPDATED",l))};
_.W.getWatchNextResponse=function(){return this.watchNextResponse};
_.W.registerActionHandler=function(l,D){var U=this;if(_.q("web_watch_controller_reg_multiple_handlers_killswitch")){var n={};_.Wd(_.AH.getInstance(),(n[l]=D,n),this.getRoot())}else this.actionHandlers.has(l)||(this.actionHandlers.set(l,[]),n={},_.Wd(_.AH.getInstance(),(n[l]=function(){var y=_.EW.apply(0,arguments);return(U.actionHandlers.get(l)||[]).map(function(A){return A.apply(null,_.zz(y))})},n),this.getRoot())),this.actionHandlers.get(l).push(D)};
_.W.unregisterActionHandler=function(l){if(_.q("web_watch_controller_reg_multiple_handlers_killswitch")){var D={};_.Bd(_.AH.getInstance(),(D[l]=!0,D),this.getRoot())}else(D=this.actionHandlers.get(l))?(D.pop(),D.length===0&&(D={},_.Bd(_.AH.getInstance(),(D[l]=!0,D),this.getRoot()),this.actionHandlers.delete(l))):_.II(new _.rc("Attempted to unregister an action handler which is not registered.",l))};
_.W.addPageDisposeJob=function(l){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.kNg(this.rootElement.pageDisposeJobs,l)};
_.W.removePageDisposeJob=function(l){this.rootElement.pageDisposeJobs&&_.fC(this.rootElement.pageDisposeJobs,l)};
_.W.dispatchEvent=function(l,D){_.O9(this.rootElement,l,D)};
_.W.provideRenderingData=function(l,D){this.rootElement.provideRenderingData(l,D)};
_.W.scrollWatchTo=function(l,D){var U;(U=this.watchScrollManager)==null||U.scrollWatchTo(l,D)};
_.W.focusOnPlayer=function(){var l=this.getElement("PLAYER");_.u6(l,function(){if(l&&l.firstElementChild){var D=l.querySelector(".html5-video-player");D&&(_.Lu(_.Jc().resolve(_.vK)),D.focus())}else _.II(Error("ep"))})};
_.W.subscribeToActiveChanged=function(l,D){D=D===void 0?!0:D;var U=_.fM(_.EB(),_.ggj,function(n){l(n)});
D&&l(_.ggj(_.EB().getState()));return U};
_.W.isActive=function(){return _.ggj(_.EB().getState())};
_.W.onAttached=function(){var l=_.q("external_fullscreen");_.q("use_unified_flag_accessor")&&(l=_.Jc().resolve(_.og8).retriever.getFlag(_.alH));(l||_.il("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var YBg=function(l){return l.getRoot().is==="ytd-watch-flexy"||l.getRoot().is==="ytd-watch-grid"},rQ=function(l){return l.getRoot().is==="ytd-watch-fixie"};
_.wQ.prototype.initPersistentModules=function(){if(rQ(this)||YBg(this)&&_.q("kevlar_watch_flexy_theater_manager")){var l=new _.HIH(this);_.m7(this,l)}l=new _.F0I(this);_.m7(this,l);l=new _.k7(this);_.m7(this,l);l=new _.K0T(this);_.m7(this,l);l=new _.x7(this);_.m7(this,l);l=new _.dQ(this);_.m7(this,l);if(rQ(this)||YBg(this)&&_.q("kevlar_watch_flexy_playlist_manager"))l=new _.QJW(this),_.m7(this,l);_.q("web_thumbnail_to_watch_transition")&&(l=new H71(this),_.m7(this,l))};
_.wQ.prototype.initOrDisposeActiveModules=function(l){l?(this.watchScrollManager=new _.j7(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.VzH(this)),_.q("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Fh(this)),this.activeModules.push(new _.IBg(this)),rQ(this)&&this.activeModules.push(new I1k(this)),this.activeModules.push(new _.Rfl(this)),this.activeModules.push(new _.sej(this)),(rQ(this)||_.q("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.iIc(this)),this.activeModules.push(new _.y4C(this)),(rQ(this)||_.q("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.efk(this)),(rQ(this)||_.q("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Pul(this)),_.q("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Qeg(this),this.activeModules.push(this.watchCinematicManager)),_.q("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.CQl(this)),_.q("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.p6I(this)),l=_.q("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.q("kevlar_watch_flexy_comments_manager")&&!l&&this.activeModules.push(new _.tzc(this)),_.q("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.uGq(this)),this.activeModules.push(new _.UtI(this)),this.activeModules.push(new _.l1C(this)),_.q("web_enable_timely_actions")&&this.activeModules.push(new _.W0j(this)),_.q("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.S9q(this)),_.q("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.q9j(this)),_.q("web_fullscreen_components")&&this.activeModules.push(new _.y6h(this)),_.q("web_player_rtr_ctrls")&&this.activeModules.push(new _.dAO(this)),(_.q("enable_creator_chatbot")||_.q("enable_creator_chatbot_link_out"))&&this.activeModules.push(new dlh(this))):(_.BE(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.wQ.prototype.disposeInternal=function(){_.Ps.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.QP.Object.defineProperties(_.wQ.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var BEq,Ub,C8q,hUg,bzc,gFj,P8W,uRT;BEq=function(){var l=_.uu();l.info||(l.info={});return l.info};
Ub=function(l){return Math.round(_.JJ()+l)};
C8q=function(){var l;if(_.q("csi_use_performance_navigation_timing")){var D,U,n,y=_.Go==null?void 0:(l=_.Go.getEntriesByType)==null?void 0:(D=l.call(_.Go,"navigation"))==null?void 0:(U=D[0])==null?void 0:(n=U.toJSON)==null?void 0:n.call(U);y?(y.requestStart=Ub(y.requestStart),y.responseEnd=Ub(y.responseEnd),y.redirectStart=Ub(y.redirectStart),y.redirectEnd=Ub(y.redirectEnd),y.domainLookupEnd=Ub(y.domainLookupEnd),y.connectStart=Ub(y.connectStart),y.connectEnd=Ub(y.connectEnd),y.responseStart=Ub(y.responseStart),
y.secureConnectionStart=Ub(y.secureConnectionStart),y.domainLookupStart=Ub(y.domainLookupStart),y.isPerformanceNavigationTiming=!0,l=y):l=_.Go.timing}else l=_.q("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Go.timing)):_.Go.timing;return l};
hUg=function(){if(_.Go.getEntriesByType){var l=_.Go.getEntriesByType("paint");if(l=_.pC(l,function(U){return U.name==="first-paint"}))return Ub(l.startTime)}var D;
_.q("csi_use_performance_navigation_timing")?D=_.Go.getEntriesByType("first-paint")[0].startTime:D=_.Go.timing.msFirstPaint;return D?Math.max(0,D):0};
bzc=function(){var l=window.location.protocol,D=_.Go.getEntriesByType("resource");D=_.O4(D,function(U){return U.name.indexOf(l+"//fonts.gstatic.com/s/")===0});
(D=P8W(D,function(U,n){return n.duration>U.duration?n:U}))&&D.startTime>0&&D.responseEnd>0&&(_.L3("wffs",Ub(D.startTime)),_.L3("wffe",Ub(D.responseEnd)))};
gFj=function(l,D){l=document.querySelector(l);if(!l)return!1;var U="",n=l.nodeName;n==="SCRIPT"?(U=l.src,U||(U=l.getAttribute("data-timing-href"))&&(U=window.location.protocol+U)):n==="LINK"&&(U=l.href);_.US(document)&&l.setAttribute("nonce",_.US(document));return U?(l=_.Go.getEntriesByName(U))&&l[0]&&(l=l[0],U=_.JJ(),_.L3("rsf_"+D,U+Math.round(l.fetchStart)),_.L3("rse_"+D,U+Math.round(l.responseEnd)),l.transferSize!==void 0&&l.transferSize===0)?!0:!1:!1};
_.vFI=function(l,D){_.DJ(function(){_.Q0("").info.actionType=l;D&&_.IN("TIMING_AFT_KEYS",D);_.IN("TIMING_ACTION",l);var U=_.x$o(_.H3("TIMING_INFO",{}));Object.keys(U).length>0&&_.qt(U);U={isNavigation:!0,actionType:_.REd(_.H3("TIMING_ACTION"))};var n=_.H3("PREVIOUS_ACTION");n&&(U.previousAction=_.REd(n));if(n=_.H3("CLIENT_PROTOCOL"))U.httpProtocol=n;if(n=_.H3("CLIENT_TRANSPORT"))U.transportProtocol=n;(n=_.t6())&&n!=="UNDEFINED_CSN"&&(U.clientScreenNonce=n);n=_.pLg();if(n===1||n===-1)U.isVisible=!0;
n=_.udo().loadType==="cold";var y=BEq();n||(n=y.yt_lt==="cold");if(n){U.loadType="cold";n=BEq();y=C8q();var A=_.JJ(),C=_.H3("CSI_START_TIMESTAMP_MILLIS",0);C>0&&!_.q("embeds_web_enable_csi_start_override_killswitch")&&(A=C);A&&(_.L3("srt",y.responseStart),n.prerender!==1&&_.tvd(A));n=hUg();n>0&&_.L3("fpt",n);n=C8q();n.isPerformanceNavigationTiming&&_.qt({performanceNavigationTiming:!0},void 0);_.L3("nreqs",n.requestStart,void 0);_.L3("nress",n.responseStart,void 0);_.L3("nrese",n.responseEnd,void 0);
n.redirectEnd-n.redirectStart>0&&(_.L3("nrs",n.redirectStart,void 0),_.L3("nre",n.redirectEnd,void 0));n.domainLookupEnd-n.domainLookupStart>0&&(_.L3("ndnss",n.domainLookupStart,void 0),_.L3("ndnse",n.domainLookupEnd,void 0));n.connectEnd-n.connectStart>0&&(_.L3("ntcps",n.connectStart,void 0),_.L3("ntcpe",n.connectEnd,void 0));n.secureConnectionStart>=_.JJ()&&n.connectEnd-n.secureConnectionStart>0&&(_.L3("nstcps",n.secureConnectionStart,void 0),_.L3("ntcpe",n.connectEnd,void 0));_.Go&&"getEntriesByType"in
_.Go&&bzc();n=[];if(document.querySelector&&_.Go&&_.Go.getEntriesByName)for(var h in uRT)uRT.hasOwnProperty(h)&&(y=uRT[h],gFj(h,y)&&n.push(y));if(n.length>0)for(U.resourceInfo=[],h=_.B(n),n=h.next();!n.done;n=h.next())U.resourceInfo.push({resourceCache:n.value})}_.qt(U);U=_.v6();U.preLoggedGelInfos||(U.preLoggedGelInfos=[]);h=U.preLoggedGelInfos;U=_.Q6B();n=void 0;for(y=0;y<h.length;y++)if(A=h[y],A.loadType){n=A.loadType;break}if(_.udo().loadType==="cold"&&(U.loadType==="cold"||n==="cold")){n=_.v09();
y=_.v6();y=y.gelTicks?y.gelTicks:y.gelTicks={};for(var b in n)if(!(b in y))if(typeof n[b]==="number")_.L3(b,_.Mt(b));else if(_.q("log_repeated_ytcsi_ticks"))for(A=_.B(n[b]),C=A.next();!C.done;C=A.next())C=C.value,_.L3(b.slice(1),C);b={};n=!1;h=_.B(h);for(y=h.next();!y.done;y=h.next())n=y.value,_.dV(U,n),_.dV(b,n),n=!0;n&&_.qt(b)}_.wL3(!0);b=_.H3("TIMING_ACTION");_.UG("ytglobal.timingready_")&&b&&_.Ix9()&&_.o0d()&&_.K53()})()};
P8W=function(l,D){return Array.prototype.reduce.call(l,D,{duration:0})};
uRT={'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 QVO={};QVO.YtVisibilityRootBehavior=[_.q8g.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.WE(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.H3("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var l=_.H3("INNERTUBE_CLIENT_NAME")!=="WEB";_.q("kevlar_use_vimio_behavior")&&l&&_.wQy()}}];_.ng={};_.ng.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(l){l.detail.contextProvider=this;l.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
QVO.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.wf();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(l){var D=this;this.pageCount+=1;_.q("kevlar_use_vimio_behavior")&&(_.H3("INNERTUBE_CLIENT_NAME")==="WEB"?_.Tn.addJob(function(){D.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(l)},
loadPage_:function(l){this.data=l},
ytPageBehaviorActiveObserver_:function(l){var D=this;_.q("kevlar_use_vimio_behavior")&&(l?_.H3("INNERTUBE_CLIENT_NAME")==="WEB"?_.Tn.addJob(function(){D.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(l){if(!this.setScrollTopJobId_){var D=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){D.setScrollTopJobId_=0;var U=_.Jc().resolve(_.G8(_.vK));U&&_.Lu(U);this.getPageScrollingElement().scrollTop=l}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.S8(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var W6c;var Dt=function(){var l=_.p.apply(this,arguments)||this;l.playerListenerConfig=null;l.actionMap={"yt-show-watch-page-survey":"openSurvey"};return l};
_.Z(Dt,_.p);_.W=Dt.prototype;_.W.dataChanged=function(){var l=this,D=_.T4();D&&D.getPlayerPromise().then(function(n){l.maybeRemovePlayerListeners(n)});
var U=this.data&&this.data.survey;U&&((U=(U=U.singleOptionSurveyRenderer||U.checkboxSurveyRenderer||U.multiStageSurveyRenderer)&&U.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(D,U):this.openSurvey())};
_.W.triggerWatchPageSurvey=function(l,D){var U=this,n,y,A,C,h,b,u,Q,G;return _.P(function(J){if(J.nextAddress==1)return l?J.yield(l.getPlayerPromise(),2):J.return();U.player=J.yieldResult;if(!U.player)return J.return();n={};y=_.B(D);for(A=y.next();!A.done;A=y.next())C=A.value,h=_.B(U.createEventListenerPair(C)),b=h.next().value,u=h.next().value,Q=b,G=u,Q&&G&&(n[Q]=G,U.ytPlayerListenerBehavior.listenToPlayerEvent(U.player,Q,G));U.playerListenerConfig=n;_.Kz(J)})};
_.W.createEventListenerPair=function(l){var D=l.playbackEventTrigger;return D?this.handlePlaybackTrigger(D):(l=l.watchTimeTrigger)?this.handleWatchTimeTrigger(l):[void 0,void 0]};
_.W.handleWatchTimeTrigger=function(l){var D=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var U=l.videoWatchFraction,n=l.watchTimeSec;return n&&U?["onVideoProgress",function(){D.player&&D.isWatchTimeConditionMet(D.player,U,n)&&D.showSurvey()}]:[void 0,
void 0]};
_.W.isWatchTimeConditionMet=function(l,D,U){var n=l.getProgressState(),y=n.current-this.lastKnownPlaybackPosition;y<5&&(this.accumulatedMediaTime+=y);this.lastKnownPlaybackPosition=n.current;n=Math.round(this.accumulatedMediaTime/n.duration*1E3)/1E3;return l.getPresentingPlayerType&&l.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>U||n>D)};
_.W.handlePlaybackTrigger=function(l){var D=this;l=l.playbackEvent;if(l==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var U="onStateChange";var n=function(y){y===0&&D.showSurvey()}}else l==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(U="onVideoProgress",n=function(y){D.player&&D.player.getPresentingPlayerType&&D.player.getPresentingPlayerType()===1&&y&&D.showSurvey()}):l==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(U="onAdEnd",n=this.showSurvey);
return[U,n]};
_.W.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.W.openSurvey=function(){var l=this,D=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.PJ8(!!D));_.Tn.addJob(function(){l.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:D}})},0,0)};
_.W.maybeRemovePlayerListeners=function(l){if(this.playerListenerConfig){for(var D=_.B(Object.keys(this.playerListenerConfig)),U=D.next();!U.done;U=D.next())U=U.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(l,U,this.playerListenerConfig[U]);this.playerListenerConfig=null}};
Dt.prototype.dataChanged=Dt.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],Dt.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],Dt.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Dt.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],Dt.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Dt.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Dt.prototype,"playerListenerConfig",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],Dt.prototype,"lastKnownPlaybackPosition",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],Dt.prototype,"accumulatedMediaTime",void 0);_.E([_.K(),_.T("design:type",Object)],Dt.prototype,"player",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Dt.prototype,"dataChanged",null);_.E([_.x({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Dt);
_.r(Dt,"ytd-survey-trigger-renderer",function(){if(W6c!==void 0)return W6c;var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return W6c=l},{mode:1});
}catch(e){_._DumpException(e)}
try{
var EuP;_.JF=function(l){var D=document.createElement("link");_.PY(D,l,"stylesheet");document.head.appendChild(D)};
_.LZ=function(l,D){var U,n;return _.P(function(y){U=document.createElement("div");U.id=l.id;l.className&&(U.className=l.className);n=l.element;if(!n)throw Error("gk");if(l.location==="prepend")n.prepend(U);else if(l.location==="appendChild")n.appendChild(U);else if(l.location==="after")n.after(U);else throw Error("hk");return y.return(_.fk(U,D,"jj"))})};
_.q6=function(l){var D;return _.P(function(U){(D=document.getElementById(l))&&D.remove();_.Kz(U)})};
_.M6=function(l,D){var U=document.querySelector(l);U?D(U):setTimeout(function(){_.M6(l,D)},1E3)};
_.TPW=function(l,D,U){var n;_.P(function(y){if(y.nextAddress==1)return(n=document.getElementById(l))?y.jumpTo(2):y.yield(EuP(l,D,U),2);if(n=document.getElementById(l))n.style.display="block";_.Kz(y)})};
EuP=function(l,D,U){return _.P(function(n){return n.return(new Promise(function(y){_.M6("div #panels",function(A){_.LZ({element:A,location:"appendChild",id:l,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+U},D);y()})}))})};_.RC=_.w(function(l){var D=l.text;var U=l.onClick;var n=l.color;var y=l.backgroundColor;var A=l.buttonSize;var C=l.disabled;var h=l.iconName;var b=l.iconSize;var u=l.className;var Q=l.iconClassName;l=l.ariaLabel;var G=_.n0(function(L){U(L)}),J={};
return _.g("button",{class:_.DV("ytpStandardButtonsHost",(J.ytpStandardButtonsLarge=function(){return(A==null?void 0:A())==="large"},J),u),
"on:click":G,style:_.BK({color:n,"background-color":y}),disabled:C,"aria-label":l},_.g(_.v,{cond:h,then:function(){return _.g(_.C0,{className:_.DV("ytpStandardButtonsIconContainer",Q),icon:h,size:b})}}),D)},"ij");_.INJ=_.w(function(l){var D,U,n={};return _.g("div",{class:_.DV("ytprototypesEngagementPanelComponentHost",(n.ytprototypesEngagementPanelComponentHostMweb=l.isMweb,n),l.className),id:l.id},_.g("div",{class:_.DV("ytprototypesEngagementPanelComponentEngagementPanelHeader",l.headerClassName)},_.g("div",null,l.header()),_.g("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.g("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(D=l.HeaderButton)==null?void 0:D.call(l)),
_.g(_.RC,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var y;(y=l.onHide)==null||y.call(l);var A;if((A=l.preventDefault)==null||!A.call(l))if(y=l.id(),y=document.getElementById(y))y.style.display="none"}}))),_.g("div",{class:_.DV("ytprototypesEngagementPanelComponentEngagementPanelContent",l.contentClassName),
style:function(){var y,A;return"height: "+(((y=l.height)==null?0:y.call(l))||((A=l.isMweb)==null?0:A.call(l))?"100%":"800px")+";"}},l.content()),_.g("div",null,(U=l.Footer)==null?void 0:U.call(l)))},"kj");
}catch(e){_._DumpException(e)}
try{
var Hcc=new _.y4("replaceFeedContentAction");var YWl;var Ocq;var VDI=function(){return _.p.apply(this,arguments)||this};
_.Z(VDI,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],VDI.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],VDI.prototype,"data",void 0);_.E([_.x({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],VDI);
_.r(VDI,"ytd-sub-feed-option-renderer",function(){if(Ocq!==void 0)return Ocq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Ocq=l},{mode:1});var izH;var IM=function(){return _.p.apply(this,arguments)||this};
_.Z(IM,_.p);IM.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],IM.prototype,"ytRendererStamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],IM.prototype,"data",void 0);_.E([_.x({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],IM);
_.r(IM,"ytd-sub-feed-selector-renderer",function(){if(izH!==void 0)return izH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return izH=l},{mode:1});var He=function(){return _.p.apply(this,arguments)||this};
_.Z(He,_.p);
He.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],He.prototype,"data",void 0);_.E([_.x({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],He);
_.r(He,"ytd-browse-feed-actions-renderer",function(){if(YWl!==void 0)return YWl;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return YWl=l},{mode:1});var lYO;var Dql;var YQ=function(){return _.p.apply(this,arguments)||this};
_.Z(YQ,_.p);YQ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],YQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],YQ.prototype,"data",void 0);_.E([_.x({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],YQ);
_.r(YQ,"ytd-mini-channel-renderer",function(){if(Dql!==void 0)return Dql;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Dql=l},{mode:1});var Uqk;var Oz=function(){return _.p.apply(this,arguments)||this};
_.Z(Oz,_.p);Oz.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Oz.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Oz);
_.r(Oz,"ytd-vertical-channel-section-renderer",function(){if(Uqk!==void 0)return Uqk;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Uqk=l},{mode:1});var VF=function(){return _.p.apply(this,arguments)||this};
_.Z(VF,_.p);VF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],VF.prototype,"data",void 0);_.E([_.x({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],VF);
_.r(VF,"ytd-browse-secondary-contents-renderer",function(){if(lYO!==void 0)return lYO;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
return lYO=l},{mode:1});var nFH;var i2=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};l.notActive=!1;l.isConstrainedList=!1;l.marginSettings=0;return l};
_.Z(i2,_.p);_.W=i2.prototype;
_.W.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]",marginSettings:"[[marginSettings]]"},matcher:function(l){var D;return(l==null?void 0:(D=l.webComponentHint)==null?void 0:D.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}}}}};
_.W.getPath=function(l,D){var U="data.tabs.#"+D+".";l.tabs[D].tabRenderer?U+="tabRenderer.":l.tabs[D].expandableTabRenderer&&(U+="expandableTabRenderer.");return U+"content.sectionListRenderer"};
_.W.computeDisplayedContent=function(l){this.unlinkPaths("content");if(l&&l.tabs)for(var D=l.tabs.length,U=0;U<D;U++){var n=l.tabs[U].tabRenderer||l.tabs[U].expandableTabRenderer;if(n.selected&&n.content)return this.linkPaths("content",this.getPath(l,U)),n.content}return null};
_.W.computeHasSecondaryColumnData=function(l){return!!l&&!!l.secondaryContents};
_.W.onRetrieveLocation=function(l,D){D.locationRetrieved(D.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);l.stopPropagation()};
_.W.onYtServiceRequestSent=function(l,D){_.q("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(D)};
_.W.onYtServiceRequestCompleted=function(l,D){_.q("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(D)};
_.W.onReplaceFeedContentAction=function(l){if(!_.q("replace_feed_content_action_killswitch")&&!this.notActive){var D;(l=(D=_.M(l,Hcc))==null?void 0:D.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(l)}};
_.W.handleServiceRequestActions=function(l){if(l=l.actions){l=_.B(l);for(var D=l.next();!D.done;D=l.next()){D=D.value;var U=void 0;((U=_.M(D,Hcc))==null?0:U.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.M(D,Hcc).items)}}};
i2.prototype.onYtServiceRequestCompleted=i2.prototype.onYtServiceRequestCompleted;i2.prototype.onYtServiceRequestSent=i2.prototype.onYtServiceRequestSent;i2.prototype.onRetrieveLocation=i2.prototype.onRetrieveLocation;_.E([_.m(_.yC),_.T("design:type",Object)],i2.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],i2.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],i2.prototype,"data",void 0);_.E([_.K({computed:"computeDisplayedContent(data)"}),_.T("design:type",Object)],i2.prototype,"content",void 0);
_.E([_.K({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],i2.prototype,"hasSecondaryColumnData",void 0);_.E([_.K({value:function(){return window.outerHeight>1024?3:2}}),
_.T("design:type",Number)],i2.prototype,"initialCount",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],i2.prototype,"pageSubtype",void 0);_.E([_.gP("ytd-section-list-renderer"),_.T("design:type",Object)],i2.prototype,"listRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],i2.prototype,"notActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],i2.prototype,"isConstrainedList",void 0);
_.E([_.K(),_.T("design:type",String)],i2.prototype,"responsiveSizing",void 0);_.E([_.K(),_.T("design:type",Number)],i2.prototype,"marginSettings",void 0);_.E([_.hj("yt-retrieve-location"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],i2.prototype,"onRetrieveLocation",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],i2.prototype,"onYtServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],i2.prototype,"onYtServiceRequestCompleted",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],i2);
_.r(i2,"ytd-two-column-browse-results-renderer",function(){if(nFH!==void 0)return nFH;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return nFH=l},{mode:2});
}catch(e){_._DumpException(e)}
try{
var FXC=function(l){if((l==null?void 0:l.value)===void 0||l==null||!l.unit)return"initial";a:{switch(l.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var D="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":D="%";break a}D=void 0}return D?""+l.value+D:"initial"};_.Tt(_.w(function(l){var D=l.data;l=_.B(_.aw(!1,void 0,"VotqNe"));var U=l.next().value,n=l.next().value;_.N1(function(){_.AH.getInstance().triggerAction("yt-request-timely-shelf-state")});
var y=_.dM(function(){var u,Q,G=(u=_.M(D().rendererContext,_.P9))==null?void 0:(Q=u.loggingDirectives)==null?void 0:Q.trackingParams;if(G)return _.v9(G)},void 0,"AvMXxb");
_.Wd(_.AH.getInstance(),{"yt-hide-shopping-timely-shelf":function(){n(!1);var u=_.t6(),Q=y();u&&Q&&_.rj(u,[Q])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){n(!0);var u=_.t6(),Q=y();u&&Q&&_.wj(u,[Q])})}});
var A=function(){var u;return(u=D().image)==null?void 0:u.image},C=function(){var u,Q;
return!!((u=A())==null?0:(Q=u.sources)==null?0:Q.some(function(G){var J;return!!(G==null?0:(J=G.clientResource)==null?0:J.imageName)}))},h=function(){var u;
return((u=D().image)==null?void 0:u.height)||40},b=function(){var u;
return(u=D().image)==null?void 0:u.backgroundColor};
l={};return _.g("yt-shopping-timely-shelf-content-view-model",{el:_.fe(_.aT(function(){return D().rendererContext})),
class:_.DV("ytShoppingTimelyShelfContentViewModelHost",(l.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(D().image||D().avatar||D().line1)&&U()},l)),
style:_.BK({"--shopping-timely-shelf-content-padding-top":function(){var u;return FXC((u=D().padding)==null?void 0:u.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var u;return FXC((u=D().padding)==null?void 0:u.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var u;return FXC((u=D().padding)==null?void 0:u.start)},
"--shopping-timely-shelf-content-padding-end":function(){var u;return FXC((u=D().padding)==null?void 0:u.end)},
"--yt-shopping-timely-shelf-background-color":function(){return D().backgroundColor!==void 0?_.tu(D().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var u,Q;return((Q=(u=D().image)==null?void 0:u.cornerRadius)!=null?Q:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return b()!==void 0?_.tu(b()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var u;return(((u=D().image)==null?void 0:u.width)||40)+"px"}})},_.g(_.v,{cond:A,
then:function(u){var Q={};return _.g(_.rh,{preserveHeight:!0,preserveWidth:!0,height:h,data:u,alt:"",className:_.DV("ytShoppingTimelyShelfContentViewModelImage",(Q.ytShoppingTimelyShelfContentViewModelIcon=C,Q))})}}),_.g(_.uI,{data:function(){return D().avatar}},{avatarViewModel:_.iX}),_.g("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.g(_.uI,{data:function(){return D().line1}},{shoppingContentLineViewModel:function(u){return _.g(_.vv,{data:u.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.g(_.uI,{data:function(){return D().line2}},{shoppingContentLineViewModel:function(u){return _.g(_.vv,{data:u.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.g("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.g(_.uI,{data:function(){var u;
return(u=D().button)!=null?u:[]}},{buttonViewModel:function(u){var Q=u.data;
return _.g(_.t9,{data:Q,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(G){Q().onTap&&G.stopPropagation()}})}})))},"Eo"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.C$}});_.ofH={};
_.ofH.YtdWatchBehavior=[_.Y.YtRendererBehavior,_.b5.YtPlayerListenerBehavior,_.J9.YtRendererstamperBehavior,_.K$.YtActionHandlerBehavior,_.ng.YtPageBehavior,_.d9.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.il("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.q("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 _.il("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.q("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 _.RG("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.RG("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.q("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.q("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.q("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.q("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("swatcheroo_enable_ghost_cards")||_.q("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("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 _.q("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("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 _.q("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.q("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(l,D,U){return l&&(D||!U)},
computeShowGhostRelated_:function(l,D,U){return l&&(D||!U)},
monitorScroll:!0,configureRendererStamper:function(){var l={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.rw(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.rw(["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"||_.q("swa_prov_panels_ks")?l.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(l.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},l.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return l},
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 l=this;this.watchController=void 0;this.pageDisposeJobs=[function(){l.showMetadataPlaceholder_()},
function(){_.q("web_watch_dont_clear_comments")||l.clearComments_()},
function(){l.clearPlayerAds_()},
function(){l.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.q("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.q("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.ZUT(function(){return _.Em(l)},this.hostElement);
this.pageDisposeJobs.push(function(){l.youThereManager_.reset()});
_.q("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){l.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.qT;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;_.q("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));_.q("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.CY(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(l){l&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:l}),l.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(l){_.q("kevlar_watch_flexy_theater_manager")&&(this.theater=l,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(l){!_.q("kevlar_watch_while_v2")&&!_.q("web_watch_pip")||l||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(l){this.active!==void 0&&(this.fullscreen=l,_.q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(l){this.active!==void 0&&(_.O9(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(l>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(l){this.initCsi_();this.updatePageData_(l)},
updatePageData_:function(l){var D=this;if(l)if(this.data===l){this.onPageLoadWithSameData_();var U;(U=this.watchController)==null||U.setWatchNextResponse(this.data)}else this.data=l;this.playlist&&_.ZP({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.ae("nw");this.loading=!1;_.oI(_.Tn,function(){D.initDclkstatus_();var n,y=((n=D.player)==null?void 0:n.getVideoData().cpn)||"";_.BXc(function(A,C){_.L28(A,C,y)})})},
onPageLoadWithSameData_:function(){_.q("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 l=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!l);this.set("loadingData.playlistLoading",l&&l!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),l=this.watchNextSkeletonEl_.firstElementChild;l;)l.classList.remove("hidden"),l=l.nextElementSibling;if(_.q("kevlar_watch_frame0_loading_state")){var D,U,n;l=(D=this.loadingData)==null?void 0:(U=D.endpoint)==null?void 0:(n=U.watchEndpoint)==null?void 0:n.videoId;var y;l&&(y="https://i.ytimg.com/vi/"+l+"/frame0.jpg");_.iJ(this.hostElement).querySelector("#player").style.backgroundImage=y?"url("+y+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var l=_.iJ(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&l&&(l.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var D,U;(U=(D=this.watchMetadata).updateSentimentBarWidth)==
null||U.call(D);var n,y;(y=(n=this.watchMetadata).resize)==null||y.call(n)}_.q("kevlar_watch_frame0_loading_state")&&(_.iJ(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(l){var D=_.iJ(this.hostElement).querySelector(l);D?_.HH(D,!1):_.II(new _.rc("Overscroll monitor not found for component: ",l))},
removeSplitScrollMouseTrap:function(l){var D=_.iJ(this.hostElement).querySelector(l);D?_.Y2(D):_.II(new _.rc("Disposal component for  overscroll monitoring not found: ",l))},
onLoadingChanged_:function(l){l?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.q("web_thumbnail_to_watch_transition")&&!_.y3H||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.q("web_thumbnail_to_watch_transition")&&!_.y3H||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(l){var D=this;l?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Tn.addLowPriorityJob(function(){D.onWindowResized_(_.uV(!0))})},
updateTheaterModeState_:function(l){if(!_.q("kevlar_watch_flexy_theater_manager")){l=l||this.fullWindowMode_;if(this.theater!==void 0||l)this.theater=l;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();l&&_.GZw()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var l=this.fullBleedPlayer?_.iJ(this.hostElement).querySelector("#player-full-bleed-container"):_.iJ(this.hostElement).querySelector("#player-container-inner");var D=this.getPlayerContainer(),U=_.q("kevlar_watch_while_v2")||_.q("web_watch_pip");D.parentElement!==l&&(U&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.Em(this).appendTo(l,D))},
updateErrorScreenLocation:function(){var l=_.iJ(this.hostElement).querySelector("#error-screen"),D=this.fullBleedPlayer?_.iJ(this.hostElement).querySelector("#player-full-bleed-container"):_.iJ(this.hostElement).querySelector("#player");l.parentElement!==D&&D.appendChild(l)},
deactivateMiniplayerAndResetPlayer:function(){var l=this;return _.P(function(D){if(D.nextAddress==1)return D.yield(_.Jc().resolve(_.kq).deactivate(),2);l.updatePlayerLocation();_.Kz(D)})},
updateCinematicsLocation:function(){var l=this.getElement("CINEMATICS");if(l){var D=this.getCinematicsLocationContainer();l.parentElement!==D&&D.appendChild(l)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.iJ(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.iJ(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(l,D,U){var n=document.documentElement.hasAttribute("dark"),y=!n&&this.cinematicLightTheme;return U||l&&n||D&&n||(D||l)&&y},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var l=this,D;(D=this.watchController)==null||D.setWatchNextResponse(this.data);_.q("kevlar_watch_flexy_comments_manager")||this.initComments_();_.q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Jc().resolve(_.Cd).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.q("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Tn.addLowPriorityJob(function(){_.iu(l.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.q("web_watch_start_chat_in_theater_mode")){var U,n,y;if((U=this.data)==null?0:(n=U.contents)==null?0:(y=n.twoColumnWatchNextResults)==null?0:y.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var A,C;((A=this.data)==null?0:(C=A.contents)==null?0:C.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(l){var D;(D=this.watchController)==null||D.setPlayerResponse(this.playerData);l&&l.playabilityStatus&&(D=this.isVideoPlayable_(l.playabilityStatus,this.getPlayerOverlays_(this.data)),l=this.isLiveStreamOffline_(l.playabilityStatus),D&&!l||_.u6(this,function(){_.ae("pbu")}));
this.setPlayerAds_();_.iu(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(l,D){if((_.q("kevlar_watch_while_v2")||_.q("web_watch_pip"))&&this.playerData&&D)return this.playerData.videoDetails},
watchPageActiveChanged_:function(l){_.EB().dispatch(_.XcI(this.active));l?this.activate_():this.deactivate_()},
attached:function(){var l=this;this.watchController=new _.wQ(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);_.q("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var D=_.Em(this);_.q("kevlar_disable_prepare_player")||
D.preparePlayer();_.q("kevlar_watch_flexy_playlist_manager")||_.Jc().resolve(_.Cd).setPlayer(D);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();D={"--ytd-watch-flexy-scrollbar-width":_.Ih()+"px"};this.is==="ytd-watch-grid"&&(_.EB().dispatch(_.V0({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),D["--ytd-watch-flexy-sidebar-width"]=_.hvT+"px",D["--ytd-watch-grid-horizontal-page-margins"]=_.xb+"px",D["--ytd-watch-grid-columns-top-margins"]=
_.WWT+"px",D["--ytd-watch-grid-min-player-height-medium"]="360px");!_.RG("kv_pl_mx_sz_ks")&&_.RG("kevlar_watch_max_player_width")&&(D["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Pdh+"px");_.RG("kevlar_watch_flexy_metadata_height")&&(D["--ytd-watch-flexy-space-below-player"]=_.b6h+"px");this.safeUpdateStyles(D);_.q("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Ca(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return l.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.iJ(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var l=_.Ih(),D=_.jO+l,U=D;this.fixedPanels&&(D+=_.hvT);var n=657+l;l=1327+l;_.iJ(this.hostElement).querySelector("#two-column-query").query="(min-width: "+D+"px)";_.iJ(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(n+"px), (min-height: 630px) and (min-width: ")+(D+"px) and (max-width: ")+(l+"px)");_.iJ(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(l+"px)");
_.iJ(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+U+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var l=_.iJ(this.hostElement).querySelector("#miniplayer-bar").firstChild,D=this.squeezeback&&!_.q("web_watch_squeezeback_player_size_killswitch");return l&&l.active||this.theater||_.q("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||D||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.Sr(NaN,NaN):_.gfh(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.gfh(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.WE(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var l=this;this.onWindowResized_(_.uV());_.q("browse_skeleton_removal_on_watch_killswitch")||_.il("IS_SHELL_LOAD")&&_.Av1();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var D=_.Em(this);D.addEventListener("yt-player-updated",_.CY(this,this.onPlayerUpdated_));D.getPlayerPromise().then(function(U){l.playerApiReady_(U)});
_.q("kevlar_watch_flexy_playlist_manager")||(D=_.Jc().resolve(_.Cd),_.q("kevlar_watch_observe_playlist_navigations_killswitch")&&D.addEventListener("yt-navigate",_.CY(this,this.onYtNavigate_)),D.setPlaylistComponent(_.iJ(this.hostElement).querySelector("#playlist")),D.addEventListener("yt-playlist-data-updated",_.CY(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Tn.addLowPriorityJob(function(){_.O9(l.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Em(this).removeEventListener("yt-player-updated",_.CY(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.q("kevlar_watch_flexy_playlist_manager")){var l=_.Jc().resolve(_.Cd);_.q("kevlar_watch_observe_playlist_navigations_killswitch")&&l.removeEventListener("yt-navigate",_.CY(this,this.onYtNavigate_));
l.cancelVideoSkip();l.removeEventListener("yt-playlist-data-updated",_.CY(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.O9(this.hostElement,"yt-autonav-pause-player",!1);l=_.Ta();_.q("kevlar_exit_fullscreen_leaving_watch")&&l&&_.IS(l)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(l){this.player&&this.player.updateVideoData({rvs:l.rvs})},
getPageContents:function(l){return l&&l.contents&&l.contents.twoColumnWatchNextResults&&l.contents.twoColumnWatchNextResults.results&&l.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(l){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",l)},
onRetrieveLocation_:function(l,D){D.hasComments?D.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):D.locationRetrieved("/related_ajax",void 0);l.stopPropagation()},
onSubscriptionChanged_:function(l,D){this.player&&(D?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.vFI("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.iJ(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.iJ(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(l){this.player=l;this.setPlayerState(l.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.q("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.q("kevlar_unified_player")||_.q("kevlar_player_new_bootstrap_adoption"))&&_.p4()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(l,D){D=D===void 0?!0:D;_.Ta()&&_.q("external_fullscreen")&&_.IS(document.documentElement);this.theaterRequested_=l;D&&_.j_("wide",l?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Vh(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.O9(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(l){_.HA(l,typeof this.player),this.player&&_.HA(l,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var l;((l=this.player)==null?0:l.isFullscreen())?this.player.toggleFullscreen():_.Vh(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(l,D){return this.loading?D:!!Object.keys(l).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(l){if(l){l=_.B(l);for(var D=l.next();!D.done;D=l.next())D=D.value,D.youThereRenderer&&_.ash(this.youThereManager_,D.youThereRenderer)}},
setPlaylistData_:function(l){return l||{}},
userEngagementConfigDataChanged_:function(l){if(l)if(l.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var D=this.youThereManager_;_.Gj()<l.lowEngagementThresholdMs||_.kIc(D,!0)}else l.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Vh(this.hostElement,"yt-autonav-pause-user-engagement",[l])},
isPlayerUnavailable_:function(l,D,U){return!!l&&!this.isVideoPlayable_(l,U)&&!D},
getPlayerOverlays_:function(l){return(l==null?void 0:l.playerOverlays)||null},
isVideoPlayable_:function(l,D){if(!l)return!1;var U=l.status==="OK"||l.status==="LIVE_STREAM_OFFLINE",n=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",l)||this.get("errorScreen.ypcTrailerRenderer",l);l=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",l);var y;D=D==null?void 0:(y=D.playerOverlayRenderer)==null?void 0:y.gatedActionsOverlayRenderer;return!!U||!!n||!!l||!!D},
hasWatchNextResponseErrorRenderer:function(l){var D=this.getPageContents(l),U,n,y,A,C;return!(l==null?0:(U=l.contents)==null?0:(n=U.twoColumnWatchNextResults)==null?0:n.secondaryResults)&&!!((y=D[0])==null?0:(A=y.itemSectionRenderer)==null?0:(C=A.contents[0])==null?0:C.backgroundPromoRenderer)},
isLiveStreamOffline_:function(l){return l?l.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(l,D,U){var n=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D),y=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];y=_.q("web_no_skip_video_on_verification_checks")?(l==null?void 0:l.status)&&y.includes(l.status):l&&l.status==="AGE_CHECK_REQUIRED";var A=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",l);A==void 0&&(A=!0);!U||this.isVideoPlayable_(l,this.getPlayerOverlays_(D))||
n||y||!A||_.Jc().resolve(_.Cd).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.vfc()},
onPlayerFeedbackStartRequest_:function(l){_.Vh(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:l}])},
onPlayerFeedbackArticleRequest_:function(l){_.Vh(this.hostElement,"yt-help-dialog-requested",[l])},
onPlayerYpcContentRequest_:function(){var l,D,U,n,y,A,C,h,b=((l=this.data)==null?NaN:(D=l.contents)==null?NaN:(U=D.twoColumnWatchNextResults)==null?NaN:(n=U.secondaryResults)==null?NaN:(y=n.secondaryResults)==null?NaN:(A=y.offerModule)==null?NaN:(C=A.tvfilmOfferModuleRenderer)==null?NaN:(h=C.actionButtons)==null?NaN:h.length)-1;l=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];D=_.B(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(U=D.next();!U.done;U=D.next())for(U=U.value,n=_.B(l),y=n.next();!y.done;y=n.next())if(y="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+U+y.value,y=this.get(y+"navigationEndpoint",this.data)||this.get(y+"serviceEndpoint",this.data)||this.get(y+"command",this.data)){_.Ae(y,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(l){_.O9(this.hostElement,"yt-autonav-pause-player",l)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(l){l()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(l){switch(l){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(l){switch(l){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.O9(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(l)},
setPlayerState:function(l){_.EB().dispatch(_.y2v(l))},
onPlayerSubscribe_:function(l){_.Vh(this.hostElement,"yt-player-subscribe",[l])},
onPlayerUnsubscribe_:function(l){_.Vh(this.hostElement,"yt-player-unsubscribe",[l])},
onPlayerAdYtShowToast_:function(l){_.Vh(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:l.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(l){if(l)return l},
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(l){return!_.q("web_watch_move_summary_to_sd")&&!!l},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.q("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var l,D,U,n;this.watchNextSecondaryResults=(l=this.data)==null?void 0:(D=l.contents)==null?void 0:(U=D.twoColumnWatchNextResults)==null?void 0:(n=U.secondaryResults)==null?void 0:n.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var l,D=(l=this.data)==null?void 0:l.engagementPanels;if(D==null?0:D.length){l=null;D=_.B(D);for(var U=D.next();!U.done;U=D.next()){U=U.value;var n=void 0;if(((n=U.engagementPanelSectionListRenderer)==null?void 0:n.targetId)==="engagement-panel-structured-description"){l=U;break}}var y,A,C;l=(y=l)==null?void 0:(A=y.engagementPanelSectionListRenderer)==null?void 0:(C=A.content)==null?void 0:C.structuredDescriptionContentRenderer;if(l==null?0:l.items){y=
[];A=_.B(l.items);for(C=A.next();!C.done;C=A.next()){C=C.value;if(!_.q("sd_horizontal_list_show_nav_killswitch")){var h=n=U=D=l=void 0,b=void 0,u=(l=C.horizontalCardListRenderer)==null?void 0:(D=l.header)==null?void 0:(U=D.richListHeaderRenderer)==null?void 0:(n=U.navigationButton)==null?void 0:(h=n.buttonRenderer)==null?void 0:(b=h.command)==null?void 0:b.commandExecutorCommand;u&&u.commands&&(u.commands=u.commands.filter(function(Q){return!_.M(Q,_.aJW)}))}(!C.expandableVideoDescriptionBodyRenderer&&
!C.videoDescriptionHeaderRenderer||_.q("web_delhi_colorful_sd"))&&y.push(C)}return{items:y}}}},
constructWarning_:function(l){return{text:_.$B(l),type:"WARNING"}},
isPlaShelfEnabled_:function(l){if((this.get("adPlacements",l)||[]).length)return!0;l=this.get("playerAds",l)||[];return!(!l.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",l[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var l=this;_.O9(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var D=this.getScrollTop()>0;this.gestures_&&(D?this.gestures_.detach():this.gestures_.attach());D!==this.showFullerscreenEdu_&&_.q("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=D,_.Em(this).getPlayerPromise().then(function(U){U.updateFullerscreenEduButtonVisibility(l.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.O9(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var l=this;this.commentsReady=!1;_.Tn.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.oI(_.Tn,function(){l.setComments_()},1E3)},
setComments_:function(){if(!_.q("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.ae("cmi");_.Tn.cancelJob(this.setCommentsJobId_);var l=this.getPageContents(this.data);if(l&&l.length){l=_.B(l);for(var D=l.next();!D.done;D=l.next())if(D=D.value,this.get("itemSectionRenderer.sectionIdentifier",D)==="comment-item-section"){this.comments=D.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.O9(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.ae("cmc")},
doRemoveComments_:function(){this.comments={};_.q("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Tn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Tn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(l,D){var U=_.M(D.endpoint,_.za);U&&(!(D=this.get("data.currentVideoEndpoint.watchEndpoint"))||U.videoId!==D.videoId||U.playlistId&&U.playlistId!==D.playlistId||U.index!==void 0&&U.index!==D.index||typeof U.startTimeSeconds!=="number"||(l.stopPropagation(),this.setScrollTop(0),_.Em(this).getPlayerPromise().then(function(n){var y=U.startTimeSeconds;n.seekTo(y);n.wakeUpControls();y<n.getDuration()&&n.playVideo()})))},
updatePlayerStartTime_:function(){var l=_.Vsl();"t"in l&&(l=_.uPT(l.t),this.player.seekTo(l,!0))},
updateTitleFromWatchNext:function(l){l=this.getPageContents(l);var D,U;(l=_.Nl(l==null?void 0:(D=l[0])==null?void 0:(U=D.videoPrimaryInfoRenderer)==null?void 0:U.title))&&_.O9(this.hostElement,"yt-update-title",l)},
updateTitle_:function(l){l=this.get("videoDetails.title",l)||"";_.O9(this.hostElement,"yt-update-title",l)},
syncWithRemoteVideo_:function(l,D,U){if(this.active&&this.player){var n=this.player.getVideoData();if(n.video_id===U&&(U=n.list,_.q("polymer_enable_mdx_queue")&&U&&U.startsWith("RQ")&&(U=void 0),n.video_id!==l||U!=D)){var y;_.q("kevlar_player_watch_endpoint_navigation")?y=_.wXK(_.CVh(l,D)):y=this.buildWatchEndpoint_(l,D);_.O9(this.hostElement,"yt-navigate",{endpoint:y,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(l,D,U){return _.Ie(l,D,U)},
initDclkstatus_:function(){_.bUD()},
attachWatchPageSkeleton_:function(){var l=document.querySelector("#watch-page-skeleton");if(l){var D=l.querySelector("#primary-info"),U=l.querySelector("#secondary-info"),n=l.querySelector("#related");D&&_.iJ(this.hostElement).querySelector("#info-skeleton").appendChild(D);U&&_.iJ(this.hostElement).querySelector("#meta-skeleton").appendChild(U);n&&(_.iJ(this.hostElement).querySelector("#related-skeleton").appendChild(n),this.watchNextSkeletonEl_=n);_.kT(l)}},
handlePlayerUpdated_:function(){_.Em(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(l,D){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof D!=="undefined"){var U=this.watchNextSkeletonEl_.children,n=l&&l.indexSplices.length?l.indexSplices[0].index:0;l=Math.min(this.watchNextShownItems.length,U.length);D||(n=0,l=U.length);if(!this.ghostCardsEnabled)for(D=n;D<l;D++)U[D].classList.add("hidden")}},
onPlayerFullscreenChange_:function(l){_.q("external_fullscreen")||_.Vh(this.hostElement,"yt-player-fullscreen",[l.fullscreen])},
onFullscreenChange_:function(l){this.fullscreen=l;this.gestures_&&this.gestures_.update(this.fullscreen);var D=_.Em(this);D.getPlayerPromise().then(function(U){U.setFauxFullscreen(!!_.Ta())});
this.updateFullBleedElementLocations();l&&(D.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(l,D){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!D},
computeIsDonationShelfCollapsed_:function(l){return l},
computeShouldShowMerchShelf:function(l,D){return D&&!!l},
computeResponseHasComments:function(l){var D,U,n,y,A;return!!(l==null?0:(D=l.contents)==null?0:(U=D.twoColumnWatchNextResults)==null?0:(n=U.results)==null?0:(y=n.results)==null?0:(A=y.contents)==null?0:A.some(function(C){var h;return(C==null?void 0:(h=C.itemSectionRenderer)==null?void 0:h.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(l,D,U,n){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&n?!1:!!l&&!!Object.keys(l).length&&!D},
identity:_.x9,onWindowResized_:function(l){this.windowSize_=l;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(l){var D=this;l&&l.type!=="dataloaded"&&l.type!=="dataupdated"||_.Em(this).getPlayerPromise().then(function(U){var n=U.getPlayerState();n!==5&&n!==0&&(U=1/U.getVideoAspectRatio(),D.videoHeightToWidthRatio_!==U&&(D.videoHeightToWidthRatio_=U))})},
schedulePlayerSizeUpdate_:function(l){var D=this,U=_.q("kevlar_watch_while_v2")||_.q("web_watch_pip"),n=function(){if(D.watchMetadata){var y,A;(A=(y=D.watchMetadata).resize)==null||A.call(y)}_.Em(D).getPlayerPromise().then(function(C){if(_.q("kevlar_set_internal_player_size")){if(!U||!D.isMiniplayerActive()){var h=D.calculateCurrentPlayerSize_();C.setInternalSize(h.width,h.height)}}else C.setSize(NaN,NaN);_.q("kevlar_watch_while")&&D.updateWatchWhileScrollThreshold_()})};
l?n():_.BI(_.Tn,n)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(l){this.set("data.survey",l.detail)},
onYtShowSurveyCommand_:function(l){this.set("data.survey",_.M(l,_.R9c).survey)},
onDownloadedVideoDeleted:function(l){var D=this,U,n;return _.P(function(y){if(y.nextAddress==1){if(!D.active||(U=D.playerData)==null||!U.offlineState||D.videoId!==l)return y.return();(n=D.player)==null||n.stopVideo();_.r3().navigatingAwayFromWatchDeletedVideo=!0;_.Ae(_.Tod,D.hostElement);return y.yield(_.r3().navigationFinishPromise,2)}_.r3().navigatingAwayFromWatchDeletedVideo=!1;_.Kz(y)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var l;this.theater?l=_.tS(.5625*this.windowSize_.width,480,this.windowSize_.height-185):l=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==l&&(this.watchWhileScrollThreshold_=l,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var l=_.iJ(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&l){var D=this.windowSize_.height>=624,U=this.active?this.getScrollTop():0;!l.active&&D&&U>=this.watchWhileScrollThreshold_?(l.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):l.active&&(!D||U<this.watchWhileScrollThreshold_&&!_.Ta())&&(l.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var l=_.iJ(this.hostElement).querySelector("#secondary-inner");if(l){var D=_.iJ(this.hostElement).querySelector("#below"),U=_.iJ(this.hostElement).querySelector("#secondary"),n=_.iJ(this.hostElement).querySelector("#comments");n&&U&&D&&(this.defaultTwoColumnLayout?(l.appendChild(n),U.appendChild(l)):(D.appendChild(n),_.cu(D,l)))}}},
isTwoColumnsChanged_:function(l,D){if(l!==!0||D!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(l=_.iJ(this.hostElement).querySelector("#secondary-inner"))){D=_.iJ(this.hostElement).querySelector("#below");var U=_.iJ(this.hostElement).querySelector("#secondary"),n=_.iJ(this.hostElement).querySelector("#comments");n&&U&&D&&(this.isTwoColumns_?(l.appendChild(n),U.appendChild(l)):(D.appendChild(n),_.cu(D,l)))}}else{l=!_.q("web_watch_enable_fs_squeezeback_panels");
D=_.iJ(this.hostElement).querySelector("#panels");var y=_.iJ(this.hostElement).querySelector("#alerts"),A=_.iJ(this.hostElement).querySelector("#shopping-timely-shelf");U=_.iJ(this.hostElement).querySelector("#playlist");n=_.iJ(this.hostElement).querySelector("#related");var C=_.iJ(this.hostElement).querySelector("#donation-shelf"),h=_.iJ(this.hostElement).querySelector("#comments"),b=_.iJ(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(y=_.iJ(this.hostElement).querySelector("#secondary-inner"),
l&&(y.appendChild(D),y.appendChild(U),this.aiCompanionEnabled&&b&&y.appendChild(b)),y.appendChild(C),y.appendChild(n)):(l&&(_.pT(D,y),_.pT(U,y),this.aiCompanionEnabled&&b&&_.pT(b,y),_.pT(A,U)),_.pT(C,y),h&&_.pT(n,h));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.q("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.q("web_watch_enable_fs_squeezeback_panels")&&_.q("web_watch_theater_chat")){var l=_.iJ(this.hostElement).querySelector("#chat-container"),D=this.theater&&!this.fullscreen||_.q("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&D?(D=_.iJ(this.hostElement).querySelector("#columns"),(l==null?void 0:l.parentElement)!==D&&D.append(l),this.fixedPanels=!0):(this.fixedPanels=
!1,D=_.iJ(this.hostElement).querySelector("#playlist"),l&&D?_.xh(l,D):_.II(new _.rc("Missing element when updating chat location",{"chatContainer defined":!!l,"playlist defined":!!D})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(l,D){return _.q("sw_metadata_vis_toggle_ks")?!0:!!l||!!D},
computeForceDarkPanelTheme:function(l){return _.q("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&l:!1},
safeUpdateStyles:function(l){try{_.Wg(this.hostElement,l)}catch(D){_.II(D)}},
videoHeightToWidthRatioChanged_:function(l,D){D&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(l){this.videoHeightToWidthRatio_=1/l},
computeIsVerticalVideo_:function(l){return l>=1},
computeIsFourThreeToSixteenNineVideo_:function(l){return l<=.7501&&l>=.5624},
computeIsExtraWideVideo_:function(l){return l<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Em(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Em(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.dNO(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(l){var D=_.MN(l)||0;_.qN(l,D+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var l=_.MN("yt-fullerscreen-edu-button-click-count")||0,D=_.MN("yt-fullerscreen-edu-button-shown-count")||0,U=_.RG("external_fullscreen_button_shown_threshold"),n=l>=_.RG("external_fullscreen_button_click_threshold")||D>=U;_.Em(this).getPlayerPromise().then(function(y){y.updateFullerscreenEduButtonSubtleModeState(n)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(l,D){return D},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Jc().resolve(_.Cd).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var l=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Tn.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Tn.addLowPriorityJob(function(){l.fullHeightPanelPositionUpdateJobId=0;var D=_.iJ(l.hostElement).querySelector("#secondary"),U=_.iJ(l.hostElement).querySelector("#fixed-secondary");D=D.getBoundingClientRect();var n=D.width;l.swatcherooSqueezeback&&
(n+=_.xb);if(l.swatcherooSqueezeback){var y=_.iJ(l.hostElement).querySelector("#squeezeback-constraining-container");y.style.width=n+"px";y.style.flex="0 0 "+n+"px"}U.style.width=n+"px";U.style.left=D.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var l=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Tn.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Tn.addLowPriorityJob(function(){l.panelMaxHeightUpdateJob_=0;var D;!l.isTwoColumns_||l.theater||l.fullscreen?D=460:D=l.calculateNormalPlayerSize_().height;var U=D+"px";_.q("live_chat_taller_height")&&!l.theater&&(U="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.q("live_chat_medium_height")&&!l.theater&&(U="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.q("live_chat_scaled_height")&&!l.theater&&(U="calc(100vh - var(--ytd-toolbar-height) - 238px)");l.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":D+"px","--ytd-watch-flexy-chat-max-height":U,"--ytd-watch-flexy-structured-description-max-height":D+"px","--ytd-watch-flexy-comments-panel-max-height":D+"px","--ytd-comments-engagement-panel-content-height":D+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(l){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",l)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.DP(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(l){var D=_.iJ(this.hostElement).querySelector("#engagement-panel-scrim");l?D.addEventListener("tap",_.CY(this,this.onEngagementPanelScrimClick_)):D.removeEventListener("tap",_.CY(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(l){if(this.hostElement.contains(l)&&!this.scrollToAnimation_.isAnimating()){var D=l.offsetTop-24;l=l.offsetTop+l.offsetHeight+24;var U=this.getPageScrollingElement(),n=this.getScrollTop(),y=n+U.clientHeight-56;if(D<n+56)D-=56;else if(l>y)D=l-U.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtSignalActionScrollToComments:function(){var l=this.hostElement.querySelector("#comments");if(l&&!this.scrollToAnimation_.isAnimating()){l=l.offsetTop-56-24;if(_.q("kevlar_comment_teaser_scroll_to_midpoint")&&(l-=_.km().height/3,l<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,l),500)}},
onYtEngagementPanelVisibleChanged:function(l,D,U){if(this.active&&this.trackEngagementPanelVisibility&&!_.qJC.includes(U)){if(D==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.iu(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var n=_.Jc().resolve(_.IH);this.visiblePanelIdentifiers_.forEach(function(y){y!==U&&n.hidePanel({identifier:y})})}this.visiblePanelIdentifiers_.add(U)}D!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&D!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(U);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(l){return l?"":"watch-active-metadata"},
computeNewMetadataClass:function(l){return l?"watch-active-metadata":""},
computeIsSingleColumn:function(l,D){return D&&!l},
computeFullBleedPlayer:function(l,D,U){return _.q("external_fullscreen")&&l||D||U},
computeDefaultLayout:function(l){return!l},
computeDefaultTwoColumnLayout:function(l,D){return!l&&D},
updatePanelsLocation:function(){if(_.q("web_watch_enable_fs_squeezeback_panels")){var l=_.iJ(this.hostElement).querySelector("#below"),D=_.iJ(this.hostElement).querySelector("#panels"),U=_.iJ(this.hostElement).querySelector("#playlist"),n=_.iJ(this.hostElement).querySelector("#chat-container"),y=_.iJ(this.hostElement).querySelector("#panels-full-bleed-container"),A=_.iJ(this.hostElement).querySelector("#secondary-inner"),C=_.iJ(this.hostElement).querySelector("#shopping-timely-shelf"),h=_.iJ(this.hostElement).querySelector("#persistent-panel-container");
if(l&&D&&U&&n&&y&&A&&C&&(this.aiCompanionEnabled?h:1)){var b=this.fullscreen||this.theater&&this.iMaxTheaterMode,u=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;u?(u=_.iJ(this.hostElement).querySelector("#columns"),(n==null?void 0:n.parentElement)!==u&&u.append(n),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):b?y.appendChild(n):this.isTwoColumns_?_.cu(A,n):_.cu(l,n);b?(y.appendChild(D),y.appendChild(U),
this.aiCompanionEnabled&&h&&y.appendChild(h)):(this.isTwoColumns_?(_.cu(A,D),_.cu(A,U),this.aiCompanionEnabled&&h&&_.cu(A,h)):(_.cu(l,D),_.cu(l,U),this.aiCompanionEnabled&&h&&_.cu(l,h)),_.cu(l,C))}}},
swatcherooUpdatePanelsLocation:function(l,D,U,n,y,A){if(this.is==="ytd-watch-grid"){D=l&&!D;this.swatcherooSplitScroll&&(D?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));U=_.iJ(this.hostElement).querySelector("#panels");var C=_.iJ(this.hostElement).querySelector("#playlist"),h=_.iJ(this.hostElement).querySelector("#persistent-panel-container"),
b=_.iJ(this.hostElement).querySelector("#fixed-secondary"),u=_.iJ(this.hostElement).querySelector("#fixed-below"),Q=_.iJ(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),G=_.iJ(this.hostElement).querySelector("#chat-container");A&&(l?(b.appendChild(U),this.aiCompanionEnabled&&h&&b.appendChild(h)):(u.appendChild(U),this.aiCompanionEnabled&&h&&u.appendChild(h)));y?l?b.appendChild(G):u.appendChild(G):_.xh(G,Q);n?l?b.appendChild(C):u.appendChild(C):_.xh(C,
Q);this.swatcherooSplitScroll&&(l=_.iJ(this.hostElement).querySelector("#secondary"),n=_.iJ(this.hostElement).querySelector("#columns"),y=_.iJ(this.hostElement).querySelector("#fixed-columns-secondary"),D?y.appendChild(l):n.appendChild(l))}},
computeMetadataSkinnyMode:function(l,D,U){return this.is!=="ytd-watch-grid"?!1:l?U:D},
computeWatchWhilePanelsActive:function(l,D){return l||D},
computeNoBorderOnChat:function(l){return _.q("web_watch_theater_chat_no_border")&&l},
computeLiveChatPresentAndExpanded:function(l,D){return l&&!D},
computePanelExpanded:function(l,D,U){return l||D||U},
computeSqueezeback:function(l,D,U,n){if(_.q("web_watch_enable_fs_squeezeback_panels")){var y=this.iMaxTheaterMode&&this.theater,A=this.theater&&!this.iMaxTheaterMode;return(l||D||U)&&(y||n)||D&&A}},
computeSwatcherooSqueezeback:function(l,D,U){return this.is!=="ytd-watch-grid"||_.q("ww_squeezeback_killswitch")?!1:l&&D&&U},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(l){_.Em(this).getPlayerPromise().then(function(D){var U;(U=D.changeMarkerVisibility)==null||U.call(D,_.M(l,_.$7).isVisible||!1,_.M(l,_.$7).entityKeys||[],_.M(l,_.$7).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(l){this.liveChatCollapsed=l.detail;_.EB().dispatch(_.LXT(l.detail));if(!this.liveChatCollapsed&&this.squeezeback){var D=_.Jc().resolve(_.IH);this.visiblePanelIdentifiers_.forEach(function(U){D.hidePanel({identifier:U})})}},
onSetPlaylistCollapsed:function(l){_.q("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!l)},
provideRenderingData:function(l,D){switch(l){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=D;break;case "PRIMARY_INFO":_.q("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=D);this.videoPrimaryInfoRendererValue=D==null?void 0:D.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.q("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=D);this.videoSecondaryInfoRendererValue=D==null?void 0:D.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
D;break;case "CLARIFICATION":this.clarifyBoxValue=D;break;case "LIVE_CHAT":this.conversationBar=D;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=D;break;case "PLAYLIST":this.externalPlaylistData_=D!=null?D:{};break;case "MERCH_SHELF":this.merchShelfValue=D==null?void 0:D.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=D;break;case "TICKET_SHELF":this.ticket=D;break;case "OFFER_MODULE":this.offerModule=D;break;case "LIMITED_STATE":this.limitedStateValue=
D;break;case "DONATION_SHELF":this.donation=D;break;case "ALERTS":this.alertsValue=D;break;case "COMMENTS":this.comments=D;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=D;break;case "ENGAGEMENT_PANELS":this.engagementPanels=D;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=D;break;case "RICH_GRID_RENDERER":this.richGridRendererData=D;break;case "EXPANDABLE_METADATA":this.expandableMetadata=D;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
D;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=D;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=D}},
toggleCinematicsActive:function(l){this.cinematicsActive=l},
isMiniplayerActive:function(){return _.Jc().resolve(_.kq).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var ZY$;_.Rs$=function(l){if(!(0,_.q7v)(l))throw Error("K``"+String(l));};
_.esq=function(l){return l.findIndex(function(D){return ZY$.indexOf(D.tagName)>-1})>-1};
_.mQJ=function(){var l=_.Jc().resolve(_.Fl);_.Bh$(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(l.isFullscreenEnabled()?_.IS(document.documentElement):_.OiG(document.documentElement))};
ZY$=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.b7=new Map;_.b7.set(32,59972);_.b7.set(27,50765);_.b7.set(70,60102);_.b7.set(76,60221);_.b7.set(77,60222);_.b7.set(74,60223);_.b7.set(84,60224);_.b7.set(38,61941);_.b7.set(40,61942);_.b7.set(73,62521);_.b7.set(67,62522);_.b7.set(80,63390);_.b7.set(78,63397);_.b7.set(75,59972);_.b7.set(188,63385);_.b7.set(190,63384);_.b7.set(36,63387);
_.b7.set(35,63386);_.b7.set(37,63388);_.b7.set(39,63389);_.b7.set(79,63423);_.b7.set(87,63424);_.b7.set(107,63426);_.b7.set(109,63425);_.b7.set(65,63428);_.b7.set(83,63430);_.b7.set(68,63429);_.b7.set(221,63431);_.b7.set(219,63432);_.b7.set(97,63439);_.b7.set(98,63440);_.b7.set(99,63441);_.b7.set(100,63442);_.b7.set(101,63443);_.b7.set(102,63444);_.b7.set(103,63445);_.b7.set(104,63446);_.b7.set(105,63447);_.g4=new Map;_.g4.set(80,63390);_.g4.set(78,63397);_.g4.set(188,63400);_.g4.set(190,63401);
_.g4.set(191,60765);_.g4.set(13,247917);_.u7=new Map;_.vs=new Map;
}catch(e){_._DumpException(e)}
try{
var ruw,$Nq,NXJ,sn$;_.jnH=function(l){return l.ui.guideIsVisibleButNotPersistent};
_.FX8=function(l){return l.ui.tabGesturesIsActive};
_.ofJ=function(){var l=_.e_("service_worker_scope");try{return navigator.serviceWorker.getRegistration(l)}catch(D){return Promise.reject(D)}};
_.wkP=function(l){return!(!l||!l.pushManager)};
ruw=function(){return _.ofJ().then(_.wkP).catch(function(){return!1})};
_.z9J=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?ruw():Promise.resolve(!1)};
_.fs5=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
$Nq=function(){var l,D,U;return _.P(function(n){switch(n.nextAddress){case 1:return n.yield(_.Hq.getInstance(),2);case 2:l=n.yieldResult;if(!l){D=void 0;n.jumpTo(3);break}return n.yield(l.get("lmqf"),4);case 4:D=n.yieldResult;case 3:switch((U=D)||(U="SD"),U){case "HD":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return n.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
NXJ=function(l){var D,U,n;return _.P(function(y){if(y.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.q("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(D=l===A)return y.jumpTo(2);n=U=l;return y.yield($Nq(),3)}y.nextAddress!=2&&(D=n===y.yieldResult);return y.return(D)})};var Ef5;var TX8=_.FH.IronButtonState,IsH=(0,_.Kn)(HTMLElement);
_.e0({_template:function(){if(Ef5!==void 0)return Ef5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;sn$===void 0&&(sn$=document.createElement("template"));var n=sn$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Ef5=l},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[TX8,_.xs,_.ox,_.z2],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(l){var D=(0,_.xY)(this);D.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:l});D.shadowRoot.appendChild(l);return IsH.prototype._attachDom.call(this,l)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var l=this.contentElement;l&&l.selectedItem&&this._setSelectedItem(l.selectedItem)},
get contentElement(){for(var l=_.Ga(this.$.content).getDistributedNodes(),D=0,U=l.length;D<U;D++)if(l[D].nodeType===Node.ELEMENT_NODE)return l[D]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(l){this._setSelectedItem(l.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(l){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l)===this&&this.open()},
_selectedItemChanged:function(l){var D="";l?D=l.label||l.getAttribute("label")||l.textContent.trim():D="";this.value=D;this._setSelectedItemLabel(D)},
_computeMenuVerticalOffset:function(l,D){return D?D:l?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var l=this.opened?"true":"false",D=this.contentElement;D&&D.setAttribute("aria-expanded",l)}});_.Yr=new _.y4("navigateAction");var HUr=new _.y4("formRenderer");var Oe=function(){var l=_.vg.apply(this,arguments)||this;l.showInput=!1;return l};
_.Z(Oe,_.vg);_.W=Oe.prototype;_.W.detached=function(){this.showInput&&window.removeEventListener("click",_.CY(this,this.closeOnOutsideClick_))};
_.W.stopPropagation_=function(l){this.showInput&&l.stopPropagation()};
_.W.closeOnOutsideClick_=function(l){this.closeOnOutsideClickCondition(l)&&(this.showInput=!1,window.removeEventListener("click",_.CY(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.W.closeOnOutsideClickCondition=function(){return!0};
_.W.closeOnOutsideClickHandler=function(){};
_.W.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.CY(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.W.openOnClickHandler=function(){};
_.W.showInputChanged=function(){};
_.W.setShowInput=function(l){this.showInput=l};
Oe.prototype.setShowInput=Oe.prototype.setShowInput;Oe.prototype.showInputChanged=Oe.prototype.showInputChanged;Oe.prototype.openOnClickHandler=Oe.prototype.openOnClickHandler;Oe.prototype.openOnClick_=Oe.prototype.openOnClick_;Oe.prototype.closeOnOutsideClickHandler=Oe.prototype.closeOnOutsideClickHandler;Oe.prototype.closeOnOutsideClickCondition=Oe.prototype.closeOnOutsideClickCondition;Oe.prototype.closeOnOutsideClick_=Oe.prototype.closeOnOutsideClick_;Oe.prototype.stopPropagation_=Oe.prototype.stopPropagation_;
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Oe.prototype,"showInput",void 0);_.E([_.hj("click"),_.hj("keydown"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],Oe.prototype,"stopPropagation_",null);_.E([_.Pg("showInput"),_.T("design:type",Function),_.T("design:paramtypes",[Boolean]),_.T("design:returntype")],Oe.prototype,"showInputChanged",null);_.E([_.Qj()],Oe);_.YJT=[Oe.prototype];var OUJ;var VdP;var VQ=function(){return _.p.apply(this,arguments)||this};
_.Z(VQ,_.p);_.W=VQ.prototype;_.W.computePreselectedOption=function(l,D){return D===this.itemSelected_?l:void 0};
_.W.dataChanged_=function(){var l=this;this.preselectedSubreason=this.itemSelected_=-1;var D;(D=this.data)!=null&&D.key&&_.u6(this,function(){var U,n=Number((U=l.data)==null?void 0:U.key);!Number.isNaN(n)&&(l.itemSelected_=n,U=(U=(l.data.items||[])[n])&&U.optionSelectableItemRenderer&&U.optionSelectableItemRenderer.preselectedIndex)&&(l.preselectedSubreason=U)})};
_.W.isSubReasonHidden_=function(l,D){return l!=D};
_.W.onTopItemSelected_=function(l,D){for(var U=_.iJ(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),n=0,y=U.length;n<y;n++)U[n].select(0);_.Vh(this.hostElement,"yt-report-form-update",[D.item.value]);l.stopPropagation()};
_.W.onItemSelected_=function(l,D){_.Vh(this.hostElement,"yt-report-form-update",[D.item.value]);l.stopPropagation()};
_.W.getItem_=function(l){return l.serviceItem?l.serviceItem:l.navigationItem?l.navigationItem:l.optionSelectableItemRenderer?l.optionSelectableItemRenderer:null};
_.W.computeText_=function(l){return(l=this.getItem_(l))?this.ytRendererBehavior.getSimpleString(l.text):null};
_.W.validate=function(){return this.itemSelected_!==-1};
_.W.computeAriaLabel_=function(l){var D=_.Nl(l.text);(l=l.accessibility&&l.accessibility.accessibilityData&&l.accessibility.accessibilityData.label)&&(D+=". "+l);return D};
_.W.computeItemSelected_=function(l){return l};
_.W.preventSelection_=function(l){l.stopPropagation();this.tooltipTapped=!0};
_.W.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.W.updateItemSelectedFromBinding=function(l){this.itemSelected_=l.detail.value};
_.W.save=function(){var l;this.validate()&&(l=this.data)!=null&&l.items&&(l=this.data.items[this.itemSelected_],l!=null&&l.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(l.optionSelectableItemRenderer.submitEndpoint)||_.lu(this.hostElement,[l.optionSelectableItemRenderer.submitEndpoint])))};
VQ.prototype.onPaperRippleTransitionEnd_=VQ.prototype.onPaperRippleTransitionEnd_;VQ.prototype.dataChanged_=VQ.prototype.dataChanged_;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],VQ.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],VQ.prototype,"data",void 0);_.E([_.K({value:-1}),_.T("design:type",Number)],VQ.prototype,"itemSelected_",void 0);
_.E([_.K({computed:"computeItemSelected_(itemSelected_)"}),_.T("design:type",Number)],VQ.prototype,"value",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],VQ.prototype,"restoreFocusOnClose",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],VQ.prototype,"tooltipTapped",void 0);_.E([_.K({value:-1}),_.T("design:type",Number)],VQ.prototype,"preselectedSubreason",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VQ.prototype,"dataChanged_",null);_.E([_.hj("transitionend"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VQ.prototype,"onPaperRippleTransitionEnd_",null);_.E([_.S0({is:"yt-options-renderer",disableElementRegistration:!0})],VQ);
_.r(VQ,"yt-options-renderer",function(){if(VdP===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;OUJ===void 0&&(OUJ=document.createElement("template"));var n=OUJ;U.call(D,n.content.cloneNode(!0),l.content.firstChild);VdP=l}l=VdP;return l},{mode:2});var iY2;var lN$;var DQ8;var UQw;var nuv;var yjq;var i7=function(){return _.p.apply(this,arguments)||this};
_.Z(i7,_.p);i7.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
i7.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
i7.prototype.onTap=function(l){if(this.hostElement.classList.contains("selected")||_.Vh(this.hostElement,"yt-share-panel-can-select-contact-action")[0])l&&l.detail&&(l.detail.x||l.detail.y)&&_.iJ(this.hostElement).querySelector("#target").blur(),(l=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),l={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:l?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Vh(this.hostElement,"yt-share-panel-select-contact-action",[l])};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.E([_.K({observer:"onDataChanged"}),_.T("design:type",Object)],i7.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.T("design:type",String)],i7.prototype,"componentTitle",void 0);_.E([_.gP("#thumbnail"),_.T("design:type",Object)],i7.prototype,"thumbnail",void 0);_.E([_.S0({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],i7);
_.r(i7,"yt-enrolled-contact-renderer",function(){if(yjq===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;nuv===void 0&&(nuv=document.createElement("template"));var n=nuv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);yjq=l}l=yjq;return l},{mode:2});var Aj8;var W25;var l7=function(){return _.p.apply(this,arguments)||this};
_.Z(l7,_.p);l7.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
l7.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
l7.prototype.onTap=function(l){if(this.hostElement.classList.contains("selected")||_.Vh(this.hostElement,"yt-share-panel-can-select-contact-action")[0])l&&l.detail&&(l.detail.x||l.detail.y)&&_.iJ(this.hostElement).querySelector("#target").blur(),(l=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),l={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:l?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Vh(this.hostElement,"yt-share-panel-select-contact-action",[l])};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.E([_.K({observer:"onDataChanged"}),_.T("design:type",Object)],l7.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.T("design:type",String)],l7.prototype,"componentTitle",void 0);_.E([_.gP("#thumbnail"),_.T("design:type",Object)],l7.prototype,"thumbnail",void 0);_.E([_.S0({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],l7);
_.r(l7,"yt-suggested-contact-renderer",function(){if(W25===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Aj8===void 0&&(Aj8=document.createElement("template"));var n=Aj8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);W25=l}l=W25;return l},{mode:2});var Db=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-share-panel-reset-action":"onReset"};return l};
_.Z(Db,_.p);Db.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"}}}}}};
Db.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Vh(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Db.prototype.onReset=function(){for(var l=_.iJ(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),D=l.length-1;D>=0;D--)l[D].classList.toggle("selected")};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Db.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Db.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({observer:"onDataChanged"}),_.T("design:type",Object)],Db.prototype,"data",void 0);
_.E([_.S0({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Db);
_.r(Db,"yt-contact-section-renderer",function(){if(UQw===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;DQ8===void 0&&(DQ8=document.createElement("template"));var n=DQ8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);UQw=l}l=UQw;return l},{mode:2});var Uf=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return l};
_.Z(Uf,_.p);_.W=Uf.prototype;_.W.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"}}}};
_.W.onYtRefreshFormCommand=function(l){var D;(l=_.M((D=_.M(l,_.T7v))==null?void 0:D.formRenderer,HUr))&&this.set("data",l)};
_.W.reset=function(){var l=_.iJ(this.hostElement).querySelector("#fields").children;l=_.B(l);for(var D=l.next();!D.done;D=l.next())D=D.value,D.reset&&D.reset()};
_.W.getForm=function(){var l={},D=_.iJ(this.hostElement).querySelector("#fields").children;D=_.B(D);for(var U=D.next();!U.done;U=D.next()){U=U.value;if(!U.validate())return null;l[U.data.key]=U.value}return l};
_.W.submitFormFields=function(){if(this.fields)for(var l=_.B(this.fields),D=l.next();!D.done;D=l.next())D=D.value,D.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?D.save():D.nodeName==="YT-OPTIONS-RENDERER"&&D.save()};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Uf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Uf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Uf.prototype,"data",void 0);_.E([_.uJ("#fields > *"),_.T("design:type",Array)],Uf.prototype,"fields",void 0);
_.E([_.S0({is:"yt-form-renderer",disableElementRegistration:!0})],Uf);
_.r(Uf,"yt-form-renderer",function(){if(lN$===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;iY2===void 0&&(iY2=document.createElement("template"));var n=iY2;U.call(D,n.content.cloneNode(!0),l.content.firstChild);lN$=l}l=lN$;return l},{mode:2});var BPJ;var nZ=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return l};
_.Z(nZ,_.p);nZ.prototype.onCheckboxChange=function(l){this.data&&(l=(this.checked=_.NN(l).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}})};
nZ.prototype.handleUpdateCheckboxCommand=function(l){(l=_.M(l,_.P37))&&this.data&&this.data.id===l.id&&(this.set("data.disabled",l.disabled),this.set("data.title",l.title))};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],nZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],nZ.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],nZ.prototype,"checked",void 0);_.E([_.x({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],nZ);
_.r(nZ,"ytd-settings-checkbox-renderer",function(){if(BPJ!==void 0)return BPJ;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return BPJ=l},{mode:1});var CJr;var y$=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return l};
_.Z(y$,_.p);y$.prototype.dataChanged=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return l.radio.removeAttribute("checked"),!l.data||!l.data.id||l.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.fs5()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(D=l.data&&l.data.id)?U.yield(NXJ(l.data.id),4):U.jumpTo(3):(l.set("data.hidden",!0),U.jumpTo(0));U.nextAddress!=3&&(D=U.yieldResult);D&&_.Vh(l.hostElement,"yt-select-settings-radio-option",[l.data.id]);_.Kz(U)})};
y$.prototype.onButtonChanged=function(l){_.NN(l).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.Jc().resolve(_.qK).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Vh(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
y$.prototype.onSelectOption=function(l){this.data&&this.data.id&&(this.data.id===l?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
y$.prototype.dataChanged=y$.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],y$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.gP("#radio"),_.T("design:type",Object)],y$.prototype,"radio",void 0);_.E([_.K(),_.T("design:type",Object)],y$.prototype,"data",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype",Promise)],y$.prototype,"dataChanged",null);_.E([_.x({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],y$);
_.r(y$,"ytd-settings-radio-option-renderer",function(){if(CJr!==void 0)return CJr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return CJr=l},{mode:1});var hs5;var AF=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return l};
_.Z(AF,_.p);
AF.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"}}}};
AF.prototype.handleUpdateTextCommand=function(l){(l=_.M(l,_.bih))&&this.data&&this.data.id===l.id&&this.set("data",l)};
AF.prototype.handleUpdateConnectedAppRendererCommand=function(l){if(_.M(l,_.vs_)&&this.data){var D,U;if(l=(D=_.M(l,_.vs_))==null?void 0:(U=D.newConnectedAppRenderer)==null?void 0:U.connectedAppRenderer)this.data=l}};
AF.prototype.computeConnectedAppStyle=function(l){return l.style?l.style.toLowerCase().replace(/_/g,"-"):""};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],AF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],AF.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.T("design:type",String)],AF.prototype,"connectedAppStyle",void 0);_.E([_.x({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],AF);
_.r(AF,"ytd-connected-app-renderer",function(){if(hs5!==void 0)return hs5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return hs5=l},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Nx("iuT5Oc");

_.sd();
}catch(e){_._DumpException(e)}
try{
_.Nx("NSzT5");
var lNw=function(){var l;return _.P(function(D){if(D.nextAddress==1)return D.yield(_.Jc().resolve(_.Vl),2);(l=D.yieldResult)&&l.pauseVideo();_.Kz(D)})};var DQI=_.wL(["https://portraits.google.com"]),UQg=_.wL(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),nuj=_.wL(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),yj1=_.Ja(DQI),AjI=_.w(function(l){function D(Q){var G;if(Q=(G=Q.detail)==null?void 0:G.endpoint){G=_.M(Q,_.Pk);var J;G&&((J=G.browseId)==null?0:J.startsWith("UC"))&&G.browseId!==y()&&(_.q6("creator_chatbots-panel-persistent"),b.removeEventListener("yt-navigate-start",D))}}
var U=l.usePlayerHeight;var n=l.isPersistentPanel;var y=l.creatorChannelId;var A=_.fe(function(Q){var G=y();G=_.Ja(UQg,G);_.l8(Q,1,G)}),C=function(){var Q,G,J;
return _.P(function(L){return L.nextAddress==1?L.yield(_.Jc().resolve(_.Vl),2):(Q=L.yieldResult)?L.return({video_id:(J=(G=Q.getVideoData())==null?void 0:G.video_id)!=null?J:"",timestamp_sec:Q.getCurrentTime().toString()}):L.return({})})};
_.QE("message",function(Q){var G,J,L,R,a,S;return _.P(function(d){if(d.nextAddress==1){if((G=n)==null?0:G())return d.return();if(Q.origin!==yj1.toString())return console.warn("Received message from untrusted origin:",Q.origin),d.return();J=Q.data;if(typeof J!=="object"||J===null||!J.action)return d.return();if(J.action==="pause")return d.yield(lNw(),0);if(J.action!=="getYouTubeContext"||!Q.source)return d.jumpTo(0);L=Q.source;R=L.postMessage;a=JSON;S=a.stringify;return d.yield(C(),7)}R.call(L,S.call(a,
{youTubeContext:d.yieldResult}),{targetOrigin:Q.origin});return d.jumpTo(0)})});
var h=function(){var Q,G;(Q=A.value)==null||(G=Q.contentWindow)==null||G.postMessage("ep_closed",yj1.toString())};
_.QE("yt-page-type-changed",function(){if(n==null?0:n()){var Q;((Q=_.Jc().resolve(_.sm).getCurrentPage())==null?void 0:Q.pageSubtype)!=="channels"&&(Q=document.getElementById("creator_chatbots-panel-persistent"))&&(Q.style.display="none")}});
var b=_.Jc().resolve(_.xp),u;(u=b)==null||u.addEventListener("yt-navigate-start",D);_.NV(function(){var Q;(Q=b)==null||Q.removeEventListener("yt-navigate-start",D)});
return _.g("div",{class:"ytprotoCreatorChatbotsAppHost",style:_.BK({height:function(){return(U==null?0:U())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.g(_.INJ,{id:function(){return(n==null?0:n())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:h,header:function(){return _.g("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.g("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.g(_.AQ,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.g(_.RC,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var Q=_.rT("https://portraits.google.com/gallery?ytChannelId="+y());Q&&_.DY(window,Q,"_blank");h()}})},
content:function(){return _.g("iframe",{el:A,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+yj1.toString()})}}))},"Fo"),W2W=_.w(function(l){var D=l.creatorChannelId;
var U=_.fe(function(y){var A=D();A=_.Ja(nuj,A);_.l8(y,1,A)}),n=_.Ce(_.he(),{veType:281629});
return _.g("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.g(_.INJ,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.g("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.g("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},
"Talk to the Creator"),_.g(_.AQ,{data:{text:"AI experiment",type:0}}))},
content:function(){return _.g("iframe",{el:U,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.g("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.g(_.RC,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var y=_.rT("https://portraits.google.com/gallery?ytChannelId="+D());y&&_.DY(window,y,"_blank");lNw();n&&_.xo(_.he(),{visualElement:n})},
"client-ve-type":281629}),_.g("div",null,"This will take you to Google Portraits"))}}))},"Go");var BPH,CJk,hsW;BPH=_.wL(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);CJk=_.Ja(BPH);
_.KFT=function(l){l=l===void 0?"":l;_.q6("creator_chatbots-entry-point");_.q6("creator_chatbots-panel");_.JF(CJk);_.M6("ytd-watch-metadata #top-level-buttons-computed",function(D){document.getElementById("creator_chatbots-entry-point")||(_.LZ({element:D,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.g(hsW,{creatorChannelId:l})}),_.TPW("creator_chatbots-panel",function(){return _.g(AjI,{usePlayerHeight:!0,
creatorChannelId:l})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};
_.c4D=function(l){l=l===void 0?"":l;_.q6("creator_chatbots-panel");_.M6("ytd-watch-metadata #top-level-buttons-computed",function(){_.TPW("creator_chatbots-panel",function(){return _.g(W2W,{creatorChannelId:l})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
hsW=_.w(function(l){var D=l.creatorChannelId;var U=function(){_.TPW("creator_chatbots-panel",function(){return _.g(AjI,{usePlayerHeight:!0,creatorChannelId:D})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.g("div",{class:"ytd-menu-renderer"},_.g(_.ey,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:U}},
icon:function(){return _.g(_.C0,{icon:"SPARK"})}}))},"Ho");
_.oZJ=function(l,D){l=l===void 0?"":l;D=D===void 0?!1:D;var U;return _.P(function(n){U=document.getElementById("creator_chatbots-panel-persistent");return!D||U?(!D&&U&&U.style.display==="none"&&(U.style.display="block"),n.jumpTo(0)):n.yield(new Promise(function(y){_.M6("ytd-app",function(A){_.LZ({element:A,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.g(AjI,
{isPersistentPanel:!0,creatorChannelId:l})});
y()})}),0)})};
_.sd();
}catch(e){_._DumpException(e)}
try{
_.Nx("L3n37");
var snl=function(l){return l.watch.isLearningJourneyActive},EfW=_.UE(115994),TXI=_.UE(115993),IsT=function(l,D,U){var n=this;
var y=U.dragDownAction;this.layer=0;this.JSC$23633_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.JSC$23633_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return n.dragDownAction()}}}};
this.fullscreen=!1;var A=_.he();_.pM(A,EfW,this.layer);_.pM(A,TXI,this.layer);this.dragDownAction=function(){y();_.xo(A,{visualElement:n.fullscreen?EfW:TXI})};
this.gesture=new _.oM(l,D,this.getConfig(!1),"pandown");this.attach()};
IsT.prototype.attach=function(){this.gesture.attach()};
IsT.prototype.detach=function(){this.gesture.detach()};
IsT.prototype.update=function(l){this.fullscreen=l;var D=this.gesture;l=this.getConfig(l);D.config=l};
IsT.prototype.getConfig=function(l){return l?this.JSC$23633_watchFullScreenConfig:this.JSC$23633_watchConfig};var HUk=function(l){_.Ps.call(this);var D=this;this.rootElement=l;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return D.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(U){D.initOrDisposeActiveModules(U)}));
this.onAttached()};
_.Z(HUk,_.Ps);_.W=HUk.prototype;_.W.getRoot=function(){return this.rootElement};
_.W.getElement=function(l){return this.rootElement.getElement(l)};
_.W.setPlayerResponse=function(l){this.playerResponse=l;this.publish("PLAYER_RESPONSE_UPDATED",l)};
_.W.getPlayerResponse=function(){return this.playerResponse};
_.W.setWatchNextResponse=function(l){this.watchNextResponse===l?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=l,this.publish("WATCH_NEXT_RESPONSE_UPDATED",l))};
_.W.getWatchNextResponse=function(){return this.watchNextResponse};
_.W.registerActionHandler=function(l,D){var U=this;if(_.q("web_watch_controller_reg_multiple_handlers_killswitch")){var n={};_.Wd(_.AH.getInstance(),(n[l]=D,n),this.getRoot())}else this.actionHandlers.has(l)||(this.actionHandlers.set(l,[]),n={},_.Wd(_.AH.getInstance(),(n[l]=function(){var y=_.EW.apply(0,arguments);return(U.actionHandlers.get(l)||[]).map(function(A){return A.apply(null,_.zz(y))})},n),this.getRoot())),this.actionHandlers.get(l).push(D)};
_.W.unregisterActionHandler=function(l){if(_.q("web_watch_controller_reg_multiple_handlers_killswitch")){var D={};_.Bd(_.AH.getInstance(),(D[l]=!0,D),this.getRoot())}else(D=this.actionHandlers.get(l))?(D.pop(),D.length===0&&(D={},_.Bd(_.AH.getInstance(),(D[l]=!0,D),this.getRoot()),this.actionHandlers.delete(l))):_.II(new _.rc("Attempted to unregister an action handler which is not registered.",l))};
_.W.addPageDisposeJob=function(l){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.kNg(this.rootElement.pageDisposeJobs,l)};
_.W.removePageDisposeJob=function(l){this.rootElement.pageDisposeJobs&&_.fC(this.rootElement.pageDisposeJobs,l)};
_.W.dispatchEvent=function(l,D){_.O9(this.rootElement,l,D)};
_.W.provideRenderingData=function(l,D){this.rootElement.provideRenderingData(l,D)};
_.W.scrollWatchTo=function(l,D){var U;(U=this.watchScrollManager)==null||U.scrollWatchTo(l,D)};
_.W.focusOnPlayer=function(){var l=this.getElement("PLAYER");_.u6(l,function(){if(l&&l.firstElementChild){var D=l.querySelector(".html5-video-player");D&&(_.Lu(_.Jc().resolve(_.vK)),D.focus())}else _.II(Error("ep"))})};
var YJq=function(l){var D=!!l.rootElement.theater,U=!!l.rootElement.fullscreen,n;(n=l.watchCinematicManager)==null||_.RQD(n,U,D)};
_.W=HUk.prototype;_.W.subscribeToActiveChanged=function(l,D){D=D===void 0?!0:D;var U=_.fM(_.EB(),snl,function(n){l(n)});
D&&l(snl(_.EB().getState()));return U};
_.W.isActive=function(){return snl(_.EB().getState())};
_.W.onAttached=function(){var l=_.q("external_fullscreen");_.q("use_unified_flag_accessor")&&(l=_.Jc().resolve(_.og8).retriever.getFlag(_.alH));(l||_.il("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.W.initPersistentModules=function(){if(_.q("kevlar_watch_flexy_theater_manager")){var l=new _.HIH(this);_.m7(this,l)}l=new _.F0I(this);_.m7(this,l);l=new _.k7(this);_.m7(this,l);l=new _.K0T(this);_.m7(this,l);l=new _.x7(this);_.m7(this,l);l=new _.dQ(this);_.m7(this,l);_.q("kevlar_watch_flexy_playlist_manager")&&(l=new _.QJW(this),_.m7(this,l))};
_.W.initOrDisposeActiveModules=function(l){l?(this.watchScrollManager=new _.j7(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.VzH(this)),this.activeModules.push(new _.IBg(this)),this.activeModules.push(new _.Rfl(this)),this.activeModules.push(new _.sej(this)),_.q("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.iIc(this)),this.activeModules.push(new _.y4C(this)),_.q("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.efk(this)),
_.q("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Pul(this)),_.q("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Qeg(this),this.activeModules.push(this.watchCinematicManager),YJq(this)),_.q("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.CQl(this)),_.q("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.p6I(this)),l=_.q("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.q("kevlar_watch_flexy_comments_manager")&&
!l&&this.activeModules.push(new _.tzc(this)),_.q("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.uGq(this)),this.activeModules.push(new _.UtI(this)),this.activeModules.push(new _.l1C(this)),_.q("web_enable_timely_actions")&&this.activeModules.push(new _.W0j(this)),_.q("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.S9q(this)),_.q("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.q9j(this)),_.q("web_fullscreen_components")&&
this.activeModules.push(new _.y6h(this)),_.q("web_player_rtr_ctrls")&&this.activeModules.push(new _.dAO(this))):(_.BE(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.W.disposeInternal=function(){_.Ps.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.QP.Object.defineProperties(HUk.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var OUO={},Vdc=["learning-journey-engagement-panel","PAlearning_chat"];
OUO.YtdLearningJourneyWatchBehavior=[_.Y.YtRendererBehavior,_.b5.YtPlayerListenerBehavior,_.J9.YtRendererstamperBehavior,_.K$.YtActionHandlerBehavior,_.ng.YtPageBehavior,_.d9.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 _.il("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.q("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 _.il("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 _.q("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.q("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 _.RG("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.RG("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("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 _.q("web_watch_rounded_player_large")||_.q("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 _.q("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.q("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("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 _.q("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("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:_.rw(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.rw(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var l=this;this.watchController=void 0;this.pageDisposeJobs=[function(){l.showMetadataPlaceholder_()},
function(){_.q("web_watch_dont_clear_comments")||l.clearComments_()},
function(){l.clearPlayerAds_()},
function(){l.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.q("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.q("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.ZUT(function(){return _.Em(l)},
this.hostElement);
this.pageDisposeJobs.push(function(){l.youThereManager_.reset()});
_.q("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){l.resetFullerscreenEduButtonForNewPlayback_()}));
_.q("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.qT;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;_.q("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.q("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));_.q("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.CY(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(l){l&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:l}),l.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(l){_.q("kevlar_watch_flexy_theater_manager")&&(this.theater=l,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.q("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(l){!_.q("kevlar_watch_while_v2")&&!_.q("web_watch_pip")||l||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(l){this.active!==void 0&&(this.fullscreen=l,_.q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(l){this.active!==void 0&&(_.O9(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(l>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(l){this.initCsi_();this.updatePageData_(l)},
updatePageData_:function(l){var D=this;if(l)if(this.data===l){this.onPageLoadWithSameData_();var U;(U=this.watchController)==null||U.setWatchNextResponse(this.data)}else this.data=l;this.playlist&&_.ZP({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.ae("nw");this.loading=!1;_.oI(_.Tn,function(){D.initDclkstatus_();var n,y=((n=D.player)==null?void 0:n.getVideoData().cpn)||"";_.BXc(function(A,C){_.L28(A,C,y)})})},
onPageLoadWithSameData_:function(){_.q("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 l=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!l);this.set("loadingData.playlistLoading",l&&l!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),l=this.watchNextSkeletonEl_.firstElementChild;l;)l.classList.remove("hidden"),l=l.nextElementSibling;var D,U,n;l=(D=this.loadingData)==null?void 0:(U=D.endpoint)==null?void 0:(n=U.watchEndpoint)==null?void 0:n.videoId;var y;l&&(y="https://i.ytimg.com/vi/"+l+"/frame0.jpg");_.iJ(this.hostElement).querySelector("#player").style.backgroundImage=y?"url("+y+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var l=_.iJ(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&l&&(l.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var D,U;(U=(D=this.watchMetadata).updateSentimentBarWidth)==
null||U.call(D);var n,y;(y=(n=this.watchMetadata).resize)==null||y.call(n)}_.iJ(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(l){var D=_.iJ(this.hostElement).querySelector(l);D?_.HH(D,!1):_.II(new _.rc("Overscroll monitor not found for component: ",l))},
removeSplitScrollMouseTrap:function(l){var D=_.iJ(this.hostElement).querySelector(l);D?_.Y2(D):_.II(new _.rc("Disposal component for  overscroll monitoring not found: ",l))},
onLoadingChanged_:function(l){l?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(l){var D=this;l?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Tn.addLowPriorityJob(function(){D.onWindowResized_(_.uV(!0))})},
updateTheaterModeState_:function(l){if(!_.q("kevlar_watch_flexy_theater_manager")){l=l||this.fullWindowMode_;if(this.theater!==void 0||l)this.theater=l;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();l&&_.GZw()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var l=this.theater;_.q("external_fullscreen")&&this.fullscreen&&(l=!0);l=l?_.iJ(this.hostElement).querySelector("#player-full-bleed-container"):_.iJ(this.hostElement).querySelector("#player-container-inner");var D=this.getPlayerContainer(),U=_.q("kevlar_watch_while_v2")||_.q("web_watch_pip");D.parentElement!==l&&(U&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Em(this).appendTo(l,D),l.appendChild(_.iJ(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var l=this;return _.P(function(D){if(D.nextAddress==1)return D.yield(_.Jc().resolve(_.kq).deactivate(),2);l.updatePlayerLocation();_.Kz(D)})},
updateCinematicsLocation:function(){var l=this.getElement("CINEMATICS");if(l){var D=this.getCinematicsLocationContainer();l.parentElement!==D&&D.appendChild(l);var U;(U=this.watchController)==null||YJq(U)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.iJ(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.iJ(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(l,D){var U=document.documentElement.hasAttribute("dark"),n=!U&&this.cinematicLightTheme;return l&&U||D&&U||(D||l)&&n},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var l;(l=this.watchController)==null||l.setWatchNextResponse(this.data);_.q("kevlar_watch_flexy_comments_manager")||this.initComments_();_.q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.Jc().resolve(_.Cd).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.q("web_watch_start_chat_in_theater_mode")){var D,
U,n;if((D=this.data)==null?0:(U=D.contents)==null?0:(n=U.twoColumnWatchNextResults)==null?0:n.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var y,A;((y=this.data)==null?0:(A=y.contents)==null?0:A.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(l){var D;(D=this.watchController)==null||D.setPlayerResponse(this.playerData);l&&l.playabilityStatus&&(D=this.isVideoPlayable_(l.playabilityStatus,this.getPlayerOverlays_(this.data)),l=this.isLiveStreamOffline_(l.playabilityStatus),D&&!l||_.u6(this,function(){_.ae("pbu")}));
this.setPlayerAds_();_.iu(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(l){_.EB().dispatch(_.V0({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));l?this.activate_():this.deactivate_()},
attached:function(){var l=this;this.watchController=new HUk(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.q("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var D=_.Em(this);_.q("kevlar_disable_prepare_player")||D.preparePlayer();_.q("kevlar_watch_flexy_playlist_manager")||_.Jc().resolve(_.Cd).setPlayer(D);this.updatePageMediaQueries();D={"--ytd-watch-flexy-scrollbar-width":_.Ih()+
"px"};!_.RG("kv_pl_mx_sz_ks")&&_.RG("kevlar_watch_max_player_width")&&(D["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Pdh+"px");_.RG("kevlar_watch_flexy_metadata_height")&&(D["--ytd-watch-flexy-space-below-player"]=_.b6h+"px");this.safeUpdateStyles(D);_.q("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new IsT(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return l.onPlayerTouchPanDown_()}}));
_.q("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.iJ(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var l=_.Ih(),D=_.jO+l,U=D;this.fixedPanels&&(D+=_.hvT);var n=657+l;l=1327+l;_.iJ(this.hostElement).querySelector("#two-column-query").query="(min-width: "+D+"px)";_.iJ(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(n+"px), (min-height: 630px) and (min-width: ")+(D+"px) and (max-width: ")+(l+"px)");_.iJ(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(l+"px)");
_.iJ(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+U+"px)"},
calculateCurrentPlayerSize_:function(){var l=_.iJ(this.hostElement).querySelector("#miniplayer-bar").firstChild;return l&&l.active||this.theater||_.q("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Sr(NaN,NaN):_.gfh(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.gfh(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.WE(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var l=this;this.onWindowResized_(_.uV());_.q("browse_skeleton_removal_on_watch_killswitch")||_.il("IS_SHELL_LOAD")&&_.Av1();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var D=_.Em(this);D.addEventListener("yt-player-updated",_.CY(this,this.onPlayerUpdated_));D.getPlayerPromise().then(function(U){l.playerApiReady_(U)});
_.q("kevlar_watch_flexy_playlist_manager")||(D=_.Jc().resolve(_.Cd),_.q("kevlar_watch_observe_playlist_navigations_killswitch")&&D.addEventListener("yt-navigate",_.CY(this,this.onYtNavigate_)),D.setPlaylistComponent(_.iJ(this.hostElement).querySelector("#playlist")),D.addEventListener("yt-playlist-data-updated",_.CY(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Tn.addLowPriorityJob(function(){_.O9(l.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Em(this).removeEventListener("yt-player-updated",_.CY(this,this.onPlayerUpdated_));if(!_.q("kevlar_watch_flexy_playlist_manager")){var l=_.Jc().resolve(_.Cd);_.q("kevlar_watch_observe_playlist_navigations_killswitch")&&l.removeEventListener("yt-navigate",_.CY(this,this.onYtNavigate_));l.cancelVideoSkip();l.removeEventListener("yt-playlist-data-updated",_.CY(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.q("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.O9(this.hostElement,"yt-autonav-pause-player",!1);l=_.Ta();_.q("kevlar_exit_fullscreen_leaving_watch")&&l&&_.IS(l)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(l){this.player&&this.player.updateVideoData({rvs:l.rvs})},
getPageContents:function(l){return l&&l.contents&&l.contents.twoColumnWatchNextResults&&l.contents.twoColumnWatchNextResults.results&&l.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(l){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",l)},
onRetrieveLocation_:function(l,D){D.hasComments?D.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):D.locationRetrieved("/related_ajax",void 0);l.stopPropagation()},
onSubscriptionChanged_:function(l,D){this.player&&(D?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.vFI("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.iJ(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.iJ(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(l){this.player=l;this.setPlayerState(l.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.q("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.q("kevlar_unified_player")||_.q("kevlar_player_new_bootstrap_adoption"))&&_.p4()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(l,D){D=D===void 0?!0:D;_.Ta()&&_.q("external_fullscreen")&&_.IS(document.documentElement);this.theaterRequested_=l;D&&_.j_("wide",l?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.q("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Vh(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.O9(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(l){_.HA(l,typeof this.player),this.player&&_.HA(l,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var l;((l=this.player)==null?0:l.isFullscreen())?this.player.toggleFullscreen():_.Vh(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(l,D){return this.loading?D:!!Object.keys(l).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(l){if(l){l=_.B(l);for(var D=l.next();!D.done;D=l.next())D=D.value,D.youThereRenderer&&_.ash(this.youThereManager_,D.youThereRenderer)}},
setPlaylistData_:function(l){return l||{}},
userEngagementConfigDataChanged_:function(l){if(l)if(l.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var D=this.youThereManager_;_.Gj()<l.lowEngagementThresholdMs||_.kIc(D,!0)}else l.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Vh(this.hostElement,"yt-autonav-pause-user-engagement",[l])},
isPlayerUnavailable_:function(l,D,U){return!!l&&!this.isVideoPlayable_(l,U)&&!D},
getPlayerOverlays_:function(l){return(l==null?void 0:l.playerOverlays)||null},
isVideoPlayable_:function(l,D){if(!l)return!1;var U=l.status==="OK"||l.status==="LIVE_STREAM_OFFLINE",n=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",l)||this.get("errorScreen.ypcTrailerRenderer",l);l=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",l);var y;D=D==null?void 0:(y=D.playerOverlayRenderer)==null?void 0:y.gatedActionsOverlayRenderer;return!!U||!!n||!!l||!!D},
hasWatchNextResponseErrorRenderer:function(l){var D=this.getPageContents(l),U,n,y,A,C;return!(l==null?0:(U=l.contents)==null?0:(n=U.twoColumnWatchNextResults)==null?0:n.secondaryResults)&&!!((y=D[0])==null?0:(A=y.itemSectionRenderer)==null?0:(C=A.contents[0])==null?0:C.backgroundPromoRenderer)},
isLiveStreamOffline_:function(l){return l?l.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(l,D,U){var n=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D),y=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];y=_.q("web_no_skip_video_on_verification_checks")?(l==null?void 0:l.status)&&y.includes(l.status):l&&l.status==="AGE_CHECK_REQUIRED";var A=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",l);A==void 0&&(A=!0);!U||this.isVideoPlayable_(l,this.getPlayerOverlays_(D))||
n||y||!A||_.Jc().resolve(_.Cd).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.vfc()},
onPlayerFeedbackStartRequest_:function(l){_.Vh(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:l}])},
onPlayerFeedbackArticleRequest_:function(l){_.Vh(this.hostElement,"yt-help-dialog-requested",[l])},
onPlayerYpcContentRequest_:function(){var l,D,U,n,y,A,C,h,b=((l=this.data)==null?NaN:(D=l.contents)==null?NaN:(U=D.twoColumnWatchNextResults)==null?NaN:(n=U.secondaryResults)==null?NaN:(y=n.secondaryResults)==null?NaN:(A=y.offerModule)==null?NaN:(C=A.tvfilmOfferModuleRenderer)==null?NaN:(h=C.actionButtons)==null?NaN:h.length)-1;l=[".offerButton.buttonRenderer.",".actionButtons."+(b>=0?b:0)+".buttonRenderer."];D=_.B(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(U=D.next();!U.done;U=D.next())for(U=U.value,n=_.B(l),y=n.next();!y.done;y=n.next())if(y="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+U+y.value,y=this.get(y+"navigationEndpoint",this.data)||this.get(y+"serviceEndpoint",this.data)||this.get(y+"command",this.data)){_.Ae(y,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(l){_.O9(this.hostElement,"yt-autonav-pause-player",l)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(l){l()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(l){switch(l){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(l){switch(l){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.O9(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(l)},
setPlayerState:function(l){_.EB().dispatch(_.y2v(l))},
onPlayerSubscribe_:function(l){_.Vh(this.hostElement,"yt-player-subscribe",[l])},
onPlayerUnsubscribe_:function(l){_.Vh(this.hostElement,"yt-player-unsubscribe",[l])},
onPlayerAdYtShowToast_:function(l){_.Vh(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:l.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(l){if(l)return l},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(l){return!_.q("web_watch_move_summary_to_sd")&&!!l},
computeWatchMetadataRefresh:function(){return _.q("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var l,D,U,n;this.watchNextSecondaryResults=(l=this.data)==null?void 0:(D=l.contents)==null?void 0:(U=D.twoColumnWatchNextResults)==null?void 0:(n=U.secondaryResults)==null?void 0:n.secondaryResults}},
setRichGridRendererData:function(l){this.richGridRendererData=l},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var l,D=(l=this.data)==null?void 0:l.engagementPanels;if(D==null?0:D.length){l=null;D=_.B(D);for(var U=D.next();!U.done;U=D.next()){U=U.value;var n=void 0;if(((n=U.engagementPanelSectionListRenderer)==null?void 0:n.targetId)==="engagement-panel-structured-description"){l=U;break}}var y,A,C;l=(y=l)==null?void 0:(A=y.engagementPanelSectionListRenderer)==null?void 0:(C=A.content)==null?void 0:C.structuredDescriptionContentRenderer;if(l==null?0:l.items){y=
[];A=_.B(l.items);for(C=A.next();!C.done;C=A.next()){C=C.value;if(!_.q("sd_horizontal_list_show_nav_killswitch")){var h=n=U=D=l=void 0,b=void 0,u=(l=C.horizontalCardListRenderer)==null?void 0:(D=l.header)==null?void 0:(U=D.richListHeaderRenderer)==null?void 0:(n=U.navigationButton)==null?void 0:(h=n.buttonRenderer)==null?void 0:(b=h.command)==null?void 0:b.commandExecutorCommand;u&&u.commands&&(u.commands=u.commands.filter(function(Q){return!_.M(Q,_.aJW)}))}C.expandableVideoDescriptionBodyRenderer||
C.videoDescriptionHeaderRenderer||y.push(C)}return{items:y}}}},
constructWarning_:function(l){return{text:_.$B(l),type:"WARNING"}},
isPlaShelfEnabled_:function(l){if((this.get("adPlacements",l)||[]).length)return!0;l=this.get("playerAds",l)||[];return!(!l.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",l[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var l=this;_.O9(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var D=this.getScrollTop()>0;this.gestures_&&(D?this.gestures_.detach():this.gestures_.attach());D!==this.showFullerscreenEdu_&&_.q("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=D,_.Em(this).getPlayerPromise().then(function(U){U.updateFullerscreenEduButtonVisibility(l.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.O9(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var l=this;this.commentsReady=!1;_.Tn.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.oI(_.Tn,function(){l.setComments_()},1E3)},
setComments_:function(){if(!_.q("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.ae("cmi");_.Tn.cancelJob(this.setCommentsJobId_);var l=this.getPageContents(this.data);if(l&&l.length){l=_.B(l);for(var D=l.next();!D.done;D=l.next())if(D=D.value,this.get("itemSectionRenderer.sectionIdentifier",D)==="comment-item-section"){this.comments=D.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.O9(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.ae("cmc")},
doRemoveComments_:function(){this.comments={};_.q("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Tn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Tn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(l,D){var U=_.M(D.endpoint,_.za);U&&(!(D=this.get("data.currentVideoEndpoint.watchEndpoint"))||U.videoId!==D.videoId||U.playlistId&&U.playlistId!==D.playlistId||U.index!==void 0&&U.index!==D.index||typeof U.startTimeSeconds!=="number"||(l.stopPropagation(),this.setScrollTop(0),_.Em(this).getPlayerPromise().then(function(n){var y=U.startTimeSeconds;n.seekTo(y);n.wakeUpControls();y<n.getDuration()&&n.playVideo()})))},
updatePlayerStartTime_:function(){var l=_.Vsl();"t"in l&&(l=_.uPT(l.t),this.player.seekTo(l,!0))},
updateTitleFromWatchNext:function(l){l=this.getPageContents(l);var D,U;(l=_.Nl(l==null?void 0:(D=l[0])==null?void 0:(U=D.videoPrimaryInfoRenderer)==null?void 0:U.title))&&_.O9(this.hostElement,"yt-update-title",l)},
updateTitle_:function(l){l=this.get("videoDetails.title",l)||"";_.O9(this.hostElement,"yt-update-title",l)},
syncWithRemoteVideo_:function(l,D,U){if(this.active&&this.player){var n=this.player.getVideoData();if(n.video_id===U&&(U=n.list,_.q("polymer_enable_mdx_queue")&&U&&U.startsWith("RQ")&&(U=void 0),n.video_id!==l||U!=D)){var y;_.q("kevlar_player_watch_endpoint_navigation")?y=_.wXK(_.CVh(l,D)):y=this.buildWatchEndpoint_(l,D);_.O9(this.hostElement,"yt-navigate",{endpoint:y,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(l,D,U){return _.Ie(l,D,U)},
initDclkstatus_:function(){_.bUD()},
attachWatchPageSkeleton_:function(){var l=document.querySelector("#watch-page-skeleton");if(l){var D=l.querySelector("#primary-info"),U=l.querySelector("#secondary-info"),n=l.querySelector("#related");D&&_.iJ(this.hostElement).querySelector("#info-skeleton").appendChild(D);U&&_.iJ(this.hostElement).querySelector("#meta-skeleton").appendChild(U);n&&(_.iJ(this.hostElement).querySelector("#related-skeleton").appendChild(n),this.watchNextSkeletonEl_=n);_.kT(l)}},
handlePlayerUpdated_:function(){_.Em(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(l,D){if(this.watchNextSkeletonEl_&&typeof D!=="undefined"){var U=this.watchNextSkeletonEl_.children,n=l&&l.indexSplices.length?l.indexSplices[0].index:0;l=Math.min(this.watchNextShownItems.length,U.length);D||(n=0,l=U.length);for(D=n;D<l;D++)U[D].classList.add("hidden")}},
onPlayerFullscreenChange_:function(l){_.q("external_fullscreen")||_.Vh(this.hostElement,"yt-player-fullscreen",[l.fullscreen])},
onFullscreenChange_:function(l){this.fullscreen=l;this.gestures_&&this.gestures_.update(this.fullscreen);var D=_.Em(this);D.getPlayerPromise().then(function(U){U.setFauxFullscreen(!!_.Ta())});
this.updateFullBleedElementLocations();l&&(D.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(l,D){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!D},
computeIsDonationShelfCollapsed_:function(l){return l},
computeShouldShowMerchShelf:function(l,D){return D&&!!l},
computeResponseHasComments:function(l){var D,U,n,y,A;return!!(l==null?0:(D=l.contents)==null?0:(U=D.twoColumnWatchNextResults)==null?0:(n=U.results)==null?0:(y=n.results)==null?0:(A=y.contents)==null?0:A.some(function(C){var h;return(C==null?void 0:(h=C.itemSectionRenderer)==null?void 0:h.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(l,D){this.responseHasComments=this.computeResponseHasComments(this.data);return!!l&&!!Object.keys(l).length&&!D},
identity:_.x9,onWindowResized_:function(l){this.windowSize_=l;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.q("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(l){var D=this;l&&l.type!=="dataloaded"&&l.type!=="dataupdated"||_.Em(this).getPlayerPromise().then(function(U){var n=U.getPlayerState();n!==5&&n!==0&&(U=1/U.getVideoAspectRatio(),D.videoHeightToWidthRatio_!==U&&(D.videoHeightToWidthRatio_=U))})},
schedulePlayerSizeUpdate_:function(l){var D=this,U=_.q("kevlar_watch_while_v2")||_.q("web_watch_pip"),n=function(){if(D.watchMetadata){var y,A;(A=(y=D.watchMetadata).resize)==null||A.call(y)}_.Em(D).getPlayerPromise().then(function(C){if(_.q("kevlar_set_internal_player_size")){if(!U||!D.isMiniplayerActive()){var h=D.calculateCurrentPlayerSize_();C.setInternalSize(h.width,h.height)}}else C.setSize(NaN,NaN);_.q("kevlar_watch_while")&&D.updateWatchWhileScrollThreshold_()})};
l?n():_.BI(_.Tn,n)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(l){this.set("data.survey",l.detail)},
onYtShowSurveyCommand_:function(l){this.set("data.survey",_.M(l,_.R9c).survey)},
onDownloadedVideoDeleted:function(l){var D=this,U,n;return _.P(function(y){if(y.nextAddress==1){if(!D.active||(U=D.playerData)==null||!U.offlineState||D.videoId!==l)return y.return();(n=D.player)==null||n.stopVideo();_.r3().navigatingAwayFromWatchDeletedVideo=!0;_.Ae(_.Tod,D.hostElement);return y.yield(_.r3().navigationFinishPromise,2)}_.r3().navigatingAwayFromWatchDeletedVideo=!1;_.Kz(y)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var l;this.theater?l=_.tS(.5625*this.windowSize_.width,480,this.windowSize_.height-185):l=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==l&&(this.watchWhileScrollThreshold_=l,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var l=_.iJ(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&l){var D=this.windowSize_.height>=624,U=this.active?this.getScrollTop():0;!l.active&&D&&U>=this.watchWhileScrollThreshold_?(l.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):l.active&&(!D||U<this.watchWhileScrollThreshold_&&!_.Ta())&&(l.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(l,D){if(l!==!0||D!==void 0){l=!_.q("live_chat_over_engagement_panels");D=_.iJ(this.hostElement).querySelector("#chat-container");var U=_.iJ(this.hostElement).querySelector("#plj-sidebar"),n=_.iJ(this.hostElement).querySelector("#panels"),y=_.iJ(this.hostElement).querySelector("#plj-panels"),A=_.iJ(this.hostElement).querySelector("#plj-playlist"),C=_.iJ(this.hostElement).querySelector("#alerts"),h=_.iJ(this.hostElement).querySelector("#playlist"),b=_.iJ(this.hostElement).querySelector("#related"),
u=_.iJ(this.hostElement).querySelector("#donation-shelf"),Q=_.iJ(this.hostElement).querySelector("#comments");this.isTwoColumns_?(C=_.iJ(this.hostElement).querySelector("#secondary-inner"),C.appendChild(U),U.appendChild(A),A.appendChild(h),U.appendChild(y),l&&C.appendChild(n),_.q("web_watch_theater_chat")||C.appendChild(D),l||C.appendChild(n),C.appendChild(u),C.appendChild(b)):(l&&_.pT(n,C),_.pT(h,C),_.q("web_watch_theater_chat")||_.pT(D,C),l||_.pT(n,C),_.pT(u,C),Q&&(y&&_.pT(y,Q),_.pT(b,Q)));_.q("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.q("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.q("web_watch_theater_chat")){var l=_.iJ(this.hostElement).querySelector("#chat-container"),D=this.theater&&!this.fullscreen||_.q("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&D?_.q("web_watch_theater_chat_beside_player")?(D=_.iJ(this.hostElement).querySelector("#panels-full-bleed-container"),(l==null?void 0:l.parentElement)!==D&&D.append(l),this.panelsBesidePlayer=!0):_.q("web_watch_theater_fixed_chat")&&
(D=_.iJ(this.hostElement).querySelector("#columns"),(l==null?void 0:l.parentElement)!==D&&D.append(l),this.fixedPanels=!0):(_.q("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.q("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),D=_.iJ(this.hostElement).querySelector("#playlist"),l&&D?_.xh(l,D):_.II(new _.rc("Missing element when updating chat location",{"chatContainer defined":!!l,"playlist defined":!!D})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(l,D){return _.q("sw_metadata_vis_toggle_ks")?!0:!!l||!!D},
computeForceDarkPanelTheme:function(l){return _.q("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&l:!1},
safeUpdateStyles:function(l){try{_.Wg(this.hostElement,l)}catch(D){_.II(D)}},
videoHeightToWidthRatioChanged_:function(l,D){D&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.q("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(l){this.videoHeightToWidthRatio_=1/l},
computeIsVerticalVideo_:function(l){return l>=1},
computeIsFourThreeToSixteenNineVideo_:function(l){return l<=.7501&&l>=.5624},
computeIsExtraWideVideo_:function(l){return l<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Em(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Em(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.dNO(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(l){var D=_.MN(l)||0;_.qN(l,D+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var l=_.MN("yt-fullerscreen-edu-button-click-count")||0,D=_.MN("yt-fullerscreen-edu-button-shown-count")||0,U=_.RG("external_fullscreen_button_shown_threshold"),n=l>=_.RG("external_fullscreen_button_click_threshold")||D>=U;_.Em(this).getPlayerPromise().then(function(y){y.updateFullerscreenEduButtonSubtleModeState(n)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(l,D){return D},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.Jc().resolve(_.Cd).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var l=this;this.panelMaxHeightUpdateJob_&&_.Tn.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Tn.addLowPriorityJob(function(){l.panelMaxHeightUpdateJob_=0;var D;!l.isTwoColumns_||l.theater||l.fullscreen?D=460:D=l.calculateNormalPlayerSize_().height;var U=D+"px";_.q("live_chat_taller_height")&&!l.theater&&(U="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.q("live_chat_medium_height")&&
!l.theater&&(U="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.q("live_chat_scaled_height")&&!l.theater&&(U="calc(100vh - var(--ytd-toolbar-height) - 238px)");l.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":D+"px","--ytd-watch-flexy-chat-max-height":U,"--ytd-watch-flexy-structured-description-max-height":D+"px","--ytd-watch-flexy-comments-panel-max-height":D+"px","--ytd-comments-engagement-panel-content-height":D+"px"})})},
onYtShowEngagementPanelScrimAction_:function(l){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",l)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.DP(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(l){var D=_.iJ(this.hostElement).querySelector("#engagement-panel-scrim");l?D.addEventListener("tap",_.CY(this,this.onEngagementPanelScrimClick_)):D.removeEventListener("tap",_.CY(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(l){if(this.hostElement.contains(l)&&!this.scrollToAnimation_.isAnimating()){var D=l.offsetTop-24;l=l.offsetTop+l.offsetHeight+24;var U=this.getPageScrollingElement(),n=this.getScrollTop(),y=n+U.clientHeight-56;if(D<n+56)D-=56;else if(l>y)D=l-U.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtSignalActionScrollToComments:function(){var l=this.hostElement.querySelector("#comments");if(l&&!this.scrollToAnimation_.isAnimating()){l=l.offsetTop-56-24;if(_.q("kevlar_comment_teaser_scroll_to_midpoint")&&(l-=_.km().height/3,l<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,l),500)}},
onYtEngagementPanelVisibleChanged:function(l,D,U){this.active&&this.trackEngagementPanelVisibility&&!_.qJC.includes(U)&&(D==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(U),D!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&D!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(U),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(l){return l?"":"watch-active-metadata"},
computeNewMetadataClass:function(l){return l?"watch-active-metadata":""},
computeFullBleedPlayer:function(l,D){return l||D},
computeDefaultLayout:function(l){return!l},
computeDefaultTwoColumnLayout:function(l,D){return!l&&D},
computeWatchWhilePanelsActive:function(l,D){return l||D},
computeNoBorderOnChat:function(l){return _.q("web_watch_theater_chat_no_border")&&l},
computeLiveChatPresentAndExpanded:function(l,D){return l&&!D},
computePanelExpanded:function(l,D,U){return l||D||U},
onChangeMarkersVisibility:function(l){_.Em(this).getPlayerPromise().then(function(D){var U;(U=D.changeMarkerVisibility)==null||U.call(D,_.M(l,_.$7).isVisible||!1,_.M(l,_.$7).entityKeys||[],_.M(l,_.$7).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(l){this.liveChatCollapsed=l.detail;_.EB().dispatch(_.LXT(l.detail))},
provideRenderingData:function(l,D){switch(l){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=D;break;case "PRIMARY_INFO":_.q("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=D);this.videoPrimaryInfoRendererValue=D==null?void 0:D.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.q("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=D);this.videoSecondaryInfoRendererValue=D==null?void 0:D.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
D;break;case "CLARIFICATION":this.clarifyBoxValue=D;break;case "LIVE_CHAT":this.conversationBar=D;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=D;break;case "PLAYLIST":this.externalPlaylistData_=D!=null?D:{};break;case "MERCH_SHELF":this.merchShelfValue=D==null?void 0:D.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=D;break;case "OFFER_MODULE":this.offerModule=D;break;case "LIMITED_STATE":this.limitedStateValue=D;break;case "DONATION_SHELF":this.donation=D;break;
case "ALERTS":this.alertsValue=D;break;case "COMMENTS":this.comments=D;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=D;break;case "ENGAGEMENT_PANELS":this.engagementPanels=D;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=D;break;case "RICH_GRID_RENDERER":this.richGridRendererData=D;break;case "EXPANDABLE_METADATA":this.expandableMetadata=D;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=D}},
toggleCinematicsActive:function(l){this.cinematicsActive=l},
isMiniplayerActive:function(){return _.Jc().resolve(_.kq).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(l){return Vdc.map(function(D){return l.find(function(U){var n;return(U==null?void 0:(n=U.engagementPanelSectionListRenderer)==null?void 0:n.targetId)===D})}).filter(function(D){return D!==void 0})},
getNonLearningJourneyEngagementPanels:function(l){return l.filter(function(D){var U;return!Vdc.includes((D==null?void 0:(U=D.engagementPanelSectionListRenderer)==null?void 0:U.targetId)||"")})}}];var iYh;var VM=function(){var l=_.p.apply(this,arguments)||this;l.flexy=!0;l.learningJourney=!0;l.viewTransitionEnabled=_.q("enable_player_resize_transition");l.smallerChatMinHeight=_.q("live_chat_smaller_min_height");l.isDarkTheme=document.documentElement.hasAttribute("dark");l.theaterLargerPlayer=_.q("web_watch_theater_larger_player");l.defaultCollapsePlaylist=_.q("web_watch_default_collapse_playlist");l.enableCanvasLayout=_.q("web_enable_canvas_on_learning_journey");return l};
_.Z(VM,_.p);_.W=VM.prototype;_.W.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.W.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.W.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.W.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.W.ready=function(){var l=this,D=function(){l.onColumnScroll()};
this.primary.addEventListener("scroll",D);this.secondary.addEventListener("scroll",D)};
_.W.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.W.updateIsTwoColumnsFromBinding=function(l){_.q("web_watch_update_narrow_width_killswitch")||_.EB().dispatch(_.Ldw(!l.detail.value));this.ytdWatchBehavior.isTwoColumns_=l.detail.value};
_.W.updateFlexySmallWindowFromBinding=function(l){this.ytdWatchBehavior.flexySmallWindow_=l.detail.value};
_.W.updateFlexyLargeWindowFromBinding=function(l){this.ytdWatchBehavior.flexyLargeWindow_=l.detail.value};
_.W.updateWatchWhileWindowSizeSufficientFromBinding=function(l){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=l.detail.value};
_.W.updateWatchNextCanShowMoreFromBinding=function(l){this.ytdWatchBehavior.watchNextCanShowMore=l.detail.value};
_.W.updateShownItemsFromBinding=function(l){l.detail.path?this.set(l.detail.path,l.detail.value):this.ytdWatchBehavior.watchNextShownItems=l.detail.value};
_.W.getElement=function(l){switch(l){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23642_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23642_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.QP.Object.defineProperties(VM.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.pageVisualEffects)return!1;for(var D=0;D<this.data.pageVisualEffects.length;D++)if(l=_.M(this.data.pageVisualEffects[D],_.l2))return D=void 0,(D=l.config)==null?void 0:D.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.learningJourneyEngagementPanels)==null?void 0:l.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var l,D=(l=this.learningJourneyEngagementPanels)==null?void 0:l.find(function(J){var L;return(J==null?void 0:(L=J.engagementPanelSectionListRenderer)==null?void 0:L.panelIdentifier)==="learning-journey-engagement-panel"});
if(D){var U,n,y,A,C,h,b,u,Q;if(l=(u=((b=(C=((A=D==null?void 0:(U=D.engagementPanelSectionListRenderer)==null?void 0:(n=U.content)==null?void 0:(y=n.sectionListRenderer)==null?void 0:y.contents)!=null?A:[])[0])==null?void 0:(h=C.itemSectionRenderer)==null?void 0:h.contents)!=null?b:[])[0])==null?void 0:(Q=u.accordionViewModel)==null?void 0:Q.onTitleTap){var G=_.te(l);if(G)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.yu.instance.resolveCommand(G)}}}}}}});
_.QP.Object.defineProperties(VM,{template:{configurable:!0,enumerable:!0,get:function(){if(iYh===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);iYh=l}l=iYh;return l}}});
VM.prototype.updateMiniplayerIsActiveValue=VM.prototype.updateMiniplayerIsActiveValue;VM.prototype.updateScrollTopValue=VM.prototype.updateScrollTopValue;VM.prototype.updateFullscreenValue=VM.prototype.updateFullscreenValue;VM.prototype.updateTheaterValue=VM.prototype.updateTheaterValue;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],VM.prototype,"ytComponentBehavior",void 0);
_.E([_.m(OUO.YtdLearningJourneyWatchBehavior),_.T("design:type",Object)],VM.prototype,"ytdWatchBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],VM.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],VM.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],VM.prototype,"playerData",void 0);_.E([_.K(),_.T("design:type",Object)],VM.prototype,"browseData",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VM.prototype,"flexy",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VM.prototype,"learningJourney",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VM.prototype,"viewTransitionEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VM.prototype,"smallerChatMinHeight",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VM.prototype,"isDarkTheme",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VM.prototype,"theaterLargerPlayer",void 0);_.E([_.K(),_.T("design:type",Object)],VM.prototype,"defaultCollapsePlaylist",void 0);_.E([_.K(),_.T("design:type",Object)],VM.prototype,"enableCanvasLayout",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("playerData","browseData","enableCanvasLayout"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],VM.prototype,"showBrowseResponse",null);
_.E([_.K({reflectToAttribute:!0}),_.t("playerData","enableCanvasLayout"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],VM.prototype,"showWatchResponse",null);_.E([_.K({selector:_.aL}),_.T("design:type",Object)],VM.prototype,"theaterValue",void 0);_.E([_.K({selector:_.t1}),_.T("design:type",Object)],VM.prototype,"fullscreenValue",void 0);_.E([_.K({selector:_.kb}),_.T("design:type",Object)],VM.prototype,"scrollTopValue",void 0);
_.E([_.K({selector:_.Xo}),_.T("design:type",Object)],VM.prototype,"miniplayerIsActiveValue",void 0);_.E([_.gP("#ytd-plj-player"),_.T("design:type",HTMLElement)],VM.prototype,"ytdPlayer",void 0);_.E([_.gP("#playlist"),_.T("design:type",HTMLElement)],VM.prototype,"JSC$23642_ytdPlaylistPanelRenderer",void 0);_.E([_.hF("ytd-comments"),_.T("design:type",HTMLElement)],VM.prototype,"ytdComments",void 0);_.E([_.gP("#primary"),_.T("design:type",HTMLElement)],VM.prototype,"primary",void 0);
_.E([_.gP("#secondary"),_.T("design:type",HTMLElement)],VM.prototype,"secondary",void 0);_.E([_.gP("#player-container"),_.T("design:type",HTMLElement)],VM.prototype,"playerContainer",void 0);_.E([_.gP("#cinematics"),_.T("design:type",HTMLElement)],VM.prototype,"JSC$23642_cinematics",void 0);_.E([_.Pg("theaterValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VM.prototype,"updateTheaterValue",null);
_.E([_.Pg("fullscreenValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VM.prototype,"updateFullscreenValue",null);_.E([_.Pg("scrollTopValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VM.prototype,"updateScrollTopValue",null);_.E([_.Pg("miniplayerIsActiveValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VM.prototype,"updateMiniplayerIsActiveValue",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],VM.prototype,"cinematicLightTheme",null);_.E([_.K({reflectToAttribute:!0}),_.t("learningJourneyEngagementPanels"),_.T("design:type",Object),_.T("design:paramtypes",[])],VM.prototype,"hasLearningJourneyPanels",null);_.E([_.t("learningJourneyEngagementPanels"),_.T("design:type",Object),_.T("design:paramtypes",[])],VM.prototype,"backButtonData",null);_.E([_.x({is:"ytd-watch-learning-journey"})],VM);_.Du.registerService(_.JmG,VM);
_.sd();
}catch(e){_._DumpException(e)}
try{
_.Nx("Tm0L3c");
var rug;var z9O;var fsW=function(){return _.p.apply(this,arguments)||this};
_.Z(fsW,_.p);_.E([_.x({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],fsW);
_.r(fsW,"ytd-ghost-comments-renderer",function(){if(z9O===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);z9O=l}l=z9O;return l},{mode:1});var $N1;var NXO=function(){return _.p.apply(this,arguments)||this};
_.Z(NXO,_.p);_.E([_.x({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],NXO);
_.r(NXO,"ytd-ghost-watch-metadata-renderer",function(){if($N1===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);$N1=l}l=$N1;return l},{mode:1});var Ox=function(){var l=_.p.apply(this,arguments)||this;l.ghostGridRenderer={rows:6};l.smallerChatMinHeight=_.q("live_chat_smaller_min_height");l.darkerPanels=_.q("web_watch_darker_panels");l.isDarkTheme=document.documentElement.hasAttribute("dark");return l};
_.Z(Ox,_.p);_.W=Ox.prototype;_.W.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.W.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.W.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.W.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.W.ready=function(){var l=this,D=function(){l.onColumnScroll()};
this.primary.addEventListener("scroll",D);this.secondary.addEventListener("scroll",D)};
_.W.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.W.updateIsTwoColumnsFromBinding=function(l){this.ytdWatchBehavior.isTwoColumns_=l.detail.value};
_.W.updateFlexySmallWindowFromBinding=function(l){this.ytdWatchBehavior.flexySmallWindow_=l.detail.value};
_.W.updateFlexyLargeWindowFromBinding=function(l){this.ytdWatchBehavior.flexyLargeWindow_=l.detail.value};
_.W.updateWatchWhileWindowSizeSufficientFromBinding=function(l){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=l.detail.value};
_.W.updateWatchNextCanShowMoreFromBinding=function(l){this.ytdWatchBehavior.watchNextCanShowMore=l.detail.value};
_.W.updateShownItemsFromBinding=function(l){_.q("swatcheroo_direct_use_rich_grid")||(l.detail.path?this.set(l.detail.path,l.detail.value):this.ytdWatchBehavior.watchNextShownItems=l.detail.value)};
_.W.getElement=function(l){switch(l){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23630_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23630_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.QP.Object.defineProperties(Ox.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.pageVisualEffects)return!1;for(var D=0;D<this.data.pageVisualEffects.length;D++)if(l=_.M(this.data.pageVisualEffects[D],_.l2))return D=void 0,(D=l.config)==null?void 0:D.enableInLightTheme;return!1}}});
Ox.prototype.updateMiniplayerIsActiveValue=Ox.prototype.updateMiniplayerIsActiveValue;Ox.prototype.updateScrollTopValue=Ox.prototype.updateScrollTopValue;Ox.prototype.updateFullscreenValue=Ox.prototype.updateFullscreenValue;Ox.prototype.updateTheaterValue=Ox.prototype.updateTheaterValue;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Ox.prototype,"ytComponentBehavior",void 0);
_.E([_.m(_.ofH.YtdWatchBehavior),_.T("design:type",Object)],Ox.prototype,"ytdWatchBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Ox.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ox.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Ox.prototype,"ghostGridRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],Ox.prototype,"playerData",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ox.prototype,"smallerChatMinHeight",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ox.prototype,"darkerPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ox.prototype,"isDarkTheme",void 0);_.E([_.K({selector:_.aL}),_.T("design:type",Object)],Ox.prototype,"theaterValue",void 0);_.E([_.K({selector:_.t1}),_.T("design:type",Object)],Ox.prototype,"fullscreenValue",void 0);_.E([_.K({selector:_.kb}),_.T("design:type",Object)],Ox.prototype,"scrollTopValue",void 0);
_.E([_.K({selector:_.Xo}),_.T("design:type",Object)],Ox.prototype,"miniplayerIsActiveValue",void 0);_.E([_.gP("#ytd-player"),_.T("design:type",HTMLElement)],Ox.prototype,"ytdPlayer",void 0);_.E([_.gP("#playlist"),_.T("design:type",HTMLElement)],Ox.prototype,"JSC$23630_ytdPlaylistPanelRenderer",void 0);_.E([_.gP("#ytd-comments"),_.T("design:type",HTMLElement)],Ox.prototype,"ytdComments",void 0);_.E([_.gP("#primary"),_.T("design:type",HTMLElement)],Ox.prototype,"primary",void 0);
_.E([_.gP("#secondary"),_.T("design:type",HTMLElement)],Ox.prototype,"secondary",void 0);_.E([_.gP("#player-container"),_.T("design:type",HTMLElement)],Ox.prototype,"playerContainer",void 0);_.E([_.gP("#cinematics"),_.T("design:type",HTMLElement)],Ox.prototype,"JSC$23630_cinematics",void 0);_.E([_.Pg("theaterValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ox.prototype,"updateTheaterValue",null);
_.E([_.Pg("fullscreenValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ox.prototype,"updateFullscreenValue",null);_.E([_.Pg("scrollTopValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ox.prototype,"updateScrollTopValue",null);_.E([_.Pg("miniplayerIsActiveValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ox.prototype,"updateMiniplayerIsActiveValue",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ox.prototype,"cinematicLightTheme",null);
_.r(Ox,"ytd-watch-grid",function(){if(rug===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);rug=l}l=rug;return l},{mode:2});_.Du.registerService(_.GxC,Ox);
_.sd();
}catch(e){_._DumpException(e)}
try{
_.Nx("CF909");
var wkc;var Y7=function(){var l=_.p.apply(this,arguments)||this;l.viewTransitionEnabled=_.q("enable_player_resize_transition");l.smallerChatMinHeight=_.q("live_chat_smaller_min_height");l.isDarkTheme=document.documentElement.hasAttribute("dark");l.defaultCollapsePlaylist=_.q("web_watch_default_collapse_playlist");l.respectAspectRatio=_.q("web_enable_aspect_ratio_fix");l.retroModeReduxValue=!1;l.persistentPanelVisibleValue=!1;return l};
_.Z(Y7,_.p);_.W=Y7.prototype;_.W.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.W.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.W.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.W.updateRetroModeReduxValue=function(){_.q("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.W.updatePersistentPanelVisibleValue=function(){_.q("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.W.ready=function(){var l=this,D=function(){l.onColumnScroll()};
this.primary.addEventListener("scroll",D);this.secondary.addEventListener("scroll",D)};
_.W.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.W.updateIsTwoColumnsFromBinding=function(l){_.q("web_watch_update_narrow_width_killswitch")||_.EB().dispatch(_.Ldw(!l.detail.value));this.ytdWatchBehavior.isTwoColumns_=l.detail.value};
_.W.updateFlexySmallWindowFromBinding=function(l){this.ytdWatchBehavior.flexySmallWindow_=l.detail.value};
_.W.updateFlexyLargeWindowFromBinding=function(l){this.ytdWatchBehavior.flexyLargeWindow_=l.detail.value};
_.W.updateWatchWhileWindowSizeSufficientFromBinding=function(l){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=l.detail.value};
_.W.updateWatchNextCanShowMoreFromBinding=function(l){this.ytdWatchBehavior.watchNextCanShowMore=l.detail.value};
_.W.updateShownItemsFromBinding=function(l){l.detail.path?this.set(l.detail.path,l.detail.value):this.ytdWatchBehavior.watchNextShownItems=l.detail.value};
_.W.getElement=function(l){switch(l){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23625_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23625_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.QP.Object.defineProperties(Y7.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.pageVisualEffects)return!1;for(var D=0;D<this.data.pageVisualEffects.length;D++)if(l=_.M(this.data.pageVisualEffects[D],_.l2))return D=void 0,(D=l.config)==null?void 0:D.enableInLightTheme;return!1}}});
_.QP.Object.defineProperties(Y7,{template:{configurable:!0,enumerable:!0,get:function(){if(wkc===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);wkc=l}l=wkc;return l}}});
Y7.prototype.updatePersistentPanelVisibleValue=Y7.prototype.updatePersistentPanelVisibleValue;Y7.prototype.updateRetroModeReduxValue=Y7.prototype.updateRetroModeReduxValue;Y7.prototype.updateScrollTopValue=Y7.prototype.updateScrollTopValue;Y7.prototype.updateFullscreenValue=Y7.prototype.updateFullscreenValue;Y7.prototype.updateTheaterValue=Y7.prototype.updateTheaterValue;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Y7.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.ofH.YtdWatchBehavior),_.T("design:type",Object)],Y7.prototype,"ytdWatchBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Y7.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Y7.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Y7.prototype,"playerData",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Y7.prototype,"viewTransitionEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Y7.prototype,"smallerChatMinHeight",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Y7.prototype,"isDarkTheme",void 0);_.E([_.K(),_.T("design:type",Object)],Y7.prototype,"defaultCollapsePlaylist",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Y7.prototype,"respectAspectRatio",void 0);
_.E([_.K({selector:_.aL}),_.T("design:type",Object)],Y7.prototype,"theaterValue",void 0);_.E([_.K({selector:_.t1}),_.T("design:type",Object)],Y7.prototype,"fullscreenValue",void 0);_.E([_.K({selector:_.kb}),_.T("design:type",Object)],Y7.prototype,"scrollTopValue",void 0);_.E([_.K({selector:_.Xo}),_.T("design:type",Object)],Y7.prototype,"miniplayerIsActive",void 0);_.E([_.K({selector:function(l){return l.watch.isWatchRetroMode}}),
_.T("design:type",Object)],Y7.prototype,"retroModeReduxValue",void 0);_.E([_.K({selector:_.xv.persistentPanelVisibleSelector}),_.T("design:type",Object)],Y7.prototype,"persistentPanelVisibleValue",void 0);_.E([_.hF("ytd-player"),_.T("design:type",HTMLElement)],Y7.prototype,"ytdPlayer",void 0);_.E([_.gP("#playlist"),_.T("design:type",HTMLElement)],Y7.prototype,"JSC$23625_ytdPlaylistPanelRenderer",void 0);_.E([_.hF("ytd-comments"),_.T("design:type",HTMLElement)],Y7.prototype,"ytdComments",void 0);
_.E([_.gP("#primary"),_.T("design:type",HTMLElement)],Y7.prototype,"primary",void 0);_.E([_.gP("#secondary"),_.T("design:type",HTMLElement)],Y7.prototype,"secondary",void 0);_.E([_.gP("#player-container"),_.T("design:type",HTMLElement)],Y7.prototype,"playerContainer",void 0);_.E([_.gP("#below"),_.T("design:type",HTMLElement)],Y7.prototype,"below",void 0);_.E([_.gP("#cinematics"),_.T("design:type",HTMLElement)],Y7.prototype,"JSC$23625_cinematics",void 0);
_.E([_.gP("#persistent-panel-container"),_.T("design:type",HTMLElement)],Y7.prototype,"persistentPanelContainer",void 0);_.E([_.Pg("theaterValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y7.prototype,"updateTheaterValue",null);_.E([_.Pg("fullscreenValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y7.prototype,"updateFullscreenValue",null);
_.E([_.Pg("scrollTopValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y7.prototype,"updateScrollTopValue",null);_.E([_.Pg("retroModeReduxValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y7.prototype,"updateRetroModeReduxValue",null);_.E([_.Pg("persistentPanelVisibleValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y7.prototype,"updatePersistentPanelVisibleValue",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Y7.prototype,"cinematicLightTheme",null);_.E([_.x({is:"ytd-watch-flexy"})],Y7);_.Du.registerService(_.QqK,Y7);
_.sd();
}catch(e){_._DumpException(e)}
try{
_.Nx("nmfa2d");
var O7j;var zx=function(){var l=_.p.apply(this,arguments)||this;l.hidden=!1;l.errorScreen=null;l.playlistData={};return l};
_.Z(zx,_.p);_.W=zx.prototype;_.W.getPlayer=function(){return this.ytdPlayer};
_.W.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:_.rw(["aa","eocs"])}}};
_.W.onActiveChanged=function(){_.EB().dispatch(_.XcI(this.ytPageBehavior.active))};
_.W.playerDataChanged=function(){var l;(l=this.watchController)==null||l.setPlayerResponse(this.playerData)};
_.W.dataChanged=function(){var l;(l=this.watchController)==null||l.setWatchNextResponse(this.data)};
_.W.sizeChanged=function(){var l,D;(D=(l=this.metadata).resize)==null||D.call(l)};
_.W.attached=function(){this.watchController=new _.wQ(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.W.detached=function(){_.WE(this.watchController);this.watchController=void 0};
_.W.getPlayerContainer=function(){return this.playerContainer};
_.W.getElement=function(l){switch(l){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.W.provideRenderingData=function(l,D){switch(l){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=D;break;case "ERROR_SCREEN":this.errorScreen=D!=null?D:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=D;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=D;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=D;break;case "RICH_METADATA":this.richMetadataRowContainer=D;break;case "CLARIFICATION":this.clarificationData=D;break;case "PLAYLIST":this.playlistData=
D!=null?D:{};break;case "MERCH_SHELF":this.merchShelf=D;break;case "TICKET_SHELF":this.ticketShelf=D;break;case "LIMITED_STATE":this.limitedState=D;break;case "DONATION_SHELF":this.donationShelf=D;break;case "ALERTS":this.alerts=D}};
_.QP.Object.defineProperties(zx.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return!this.hidden&&!!((l=this.data)==null?0:(D=l.contents)==null?0:(U=D.twoColumnWatchNextResults)==null?0:U.conversationBar)}}});
zx.prototype.sizeChanged=zx.prototype.sizeChanged;zx.prototype.dataChanged=zx.prototype.dataChanged;zx.prototype.playerDataChanged=zx.prototype.playerDataChanged;zx.prototype.onActiveChanged=zx.prototype.onActiveChanged;_.E([_.m(_.ng.YtPageBehavior),_.T("design:type",Object)],zx.prototype,"ytPageBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],zx.prototype,"ytComponentBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],zx.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"playerData",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],zx.prototype,"hidden",void 0);_.E([_.gP("#ytd-player"),_.T("design:type",HTMLElement)],zx.prototype,"ytdPlayer",void 0);_.E([_.gP("#player-container"),_.T("design:type",HTMLElement)],zx.prototype,"playerContainer",void 0);_.E([_.gP("#metadata"),_.T("design:type",Object)],zx.prototype,"metadata",void 0);_.E([_.gP("#playlist"),_.T("design:type",HTMLElement)],zx.prototype,"playlistPanel",void 0);
_.E([_.K({selector:_.vgW,reflectToAttribute:!0}),_.T("design:type",Object)],zx.prototype,"fixie",void 0);_.E([_.K({selector:_.u2h,reflectToAttribute:!0}),_.T("design:type",Object)],zx.prototype,"singleColumn",void 0);_.E([_.K({selector:function(l){return _.aL(l)&&!_.t1(l)},
reflectToAttribute:!0}),_.T("design:type",Object)],zx.prototype,"theater",void 0);_.E([_.K({selector:_.t1,reflectToAttribute:!0}),_.T("design:type",Object)],zx.prototype,"fullscreen",void 0);_.E([_.K({selector:_.mlg}),_.T("design:type",Object)],zx.prototype,"windowSize",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"singleColumnContents",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"errorScreen",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"playlistData",void 0);
_.E([_.K(),_.T("design:type",Object)],zx.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"videoSecondaryInfoRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"richMetadataRowContainer",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"clarificationData",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"ticketShelf",void 0);
_.E([_.K(),_.T("design:type",Object)],zx.prototype,"merchShelf",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"donationShelf",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"limitedState",void 0);_.E([_.K(),_.T("design:type",Object)],zx.prototype,"alerts",void 0);_.E([_.t("playlistData"),_.T("design:type",Object),_.T("design:paramtypes",[])],zx.prototype,"hasPlaylistData",null);
_.E([_.t("data","hidden"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],zx.prototype,"hasChat",null);_.E([_.Pg("active"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zx.prototype,"onActiveChanged",null);_.E([_.Pg("playerData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zx.prototype,"playerDataChanged",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zx.prototype,"dataChanged",null);_.E([_.Pg("windowSize","singleColumn"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zx.prototype,"sizeChanged",null);
_.r(zx,"ytd-watch-fixie",function(){if(O7j===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);O7j=l}l=O7j;return l},{mode:1});_.Du.registerService(_.v73,zx);
_.sd();
}catch(e){_._DumpException(e)}
try{
_.Nx("xwEKAe");
var hyk=function(l){l=l.command;var D=_.M(l,_.vk);return{command:l,reelPlayerOverlayRenderer:_.M(D==null?void 0:D.overlay,_.iFh),thumbnail:D==null?void 0:D.thumbnail,videoId:D.videoId}},Ph1=function(l){l=l.command;
var D=_.M(l,_.DS);return{command:l,reelNonVideoContentRenderer:_.M(D==null?void 0:D.renderer,_.nM)}},byh=function(l){return l.entries?l.entries.map(function(D){return _.M(D==null?void 0:D.command,_.vk)?hyk(D):Ph1(D)}):[]},gic=function(l){return l.prevEntries?l.prevEntries.map(function(D){return _.M(D==null?void 0:D.command,_.vk)?hyk(D):Ph1(D)}):[]},uxl=function(l){return _.PA(l)?l.getAttribute("jsname")==="coFSxe":!1},viT=function(l,D){D.id||(D.id="ow"+_.Ho(D));
l.setAttribute("jsowner",D.id);l.__owner=D;var U=_.sj(D,uxl);U&&(_.r67.has(U)||_.r67.set(U,[]),_.r67.get(U).push(l));(U=_.wHg.get(D))||_.wHg.set(D,U=[]);U.includes(l)||U.push(l);D.setAttribute("__IS_OWNER",!0)},Qwg=function(){var l=_.qLc(1);
l=_.bh(l,_.alG);if(!(_.LW9(l)||l[_.LQ9]&&!l.__hasBeenSet))return l.value},Gpq=function(l){return(l=_.Dm_(l))?_.nUc(l):0},Jqh=function(l){return l.shorts.isSmallScreenSqueezeback},LUT=function(l){return l.shorts.isPlaybackStarted},qPg=function(l){var D=_.bu();
if(D.getFlag(202))D=D.getFlag(201);else{var U;D=(l==null?void 0:(U=l.config)==null?void 0:U.settingOnByDefault)!==void 0?l.config.settingOnByDefault:!_.q("web_shorts_cinematics_disabled_by_default")}return D},MNg=function(l){var D=_.bu();
_.gj(0,201,l);_.gj(0,202,!0);D.save()},ey1=function(l){var D=_.qLc(2),U=new Set;
_.NV(function(){return void U.forEach(function(n){return void n()})});
return function(n){var y=_.P_(D);try{var A=Ryk(ZyH(l),n);U.add(A);return function(){A();U.delete(A)}}finally{_.P_(y)}}},mVH=function(l){var D=l.children;
var U=l.root;_.$g(function(){var n=ey1(U)(D);_.NV(n)});
return document.createTextNode("")},Ryk=function(l,D){var U=apw(l);
(l=Qwg())&&viT(U,l);_.aN.setUp();D=_.B(_.fX9(D,!0));l=D.next().value;var n=D.next().value;D=_.B(l);for(l=D.next();!l.done;l=D.next())U.appendChild(l.value);_.aN.log(U);_.aN.tearDown();return function(){n();U.remove()}},ZyH=function(l){if(typeof l==="string")return l=document.querySelector(l),_.Rs$(l),l;
if(_.q1(l)&&l.nodeType===Node.ELEMENT_NODE)return l;if(!l.__value&&!l.__optional){var D=_.MGB.USE_ELEMENT_NOT_ASSIGNED(l.__expectedTagName);l.__hasErrored=!0;throw D;}return l.value},apw=function(l){var D=document.createElementNS(l.namespaceURI,l.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return l.appendChild(D)},tN1=function(l,D,U,n){l=D-l;
U=n-U;return Math.sqrt(l*l+U*U)},X_H=function(l){var D=l>>8&255,U=l&255;
return"#"+(l>>16&255).toString(16).padStart(2,"0")+D.toString(16).padStart(2,"0")+U.toString(16).padStart(2,"0")},SPI=function(l,D){l&&_.Jc().resolve(_.qK).resolveCommand(l,{forceClickLogging:!0,
form:{element:D}})},kpg=function(){return _.Jc().resolve(_.Fl).dismissedIndices},dVH=function(l,D){var U,n,y,A,C,h,b,u,Q;
return _.P(function(G){if(G.nextAddress==1){U=_.Jc().resolve(_.pR);A=(n=U)==null?void 0:(y=n.reelWatchEndpointMap)==null?void 0:y.reelWatchSequence;h=(C=l.innertubeTransportService)!=null?C:_.Jc().resolve(_.Ju);if(!A)return G.jumpTo(2);b=A();return(u=b.JSC$14246_getRequest(D,{}))?G.yield(_.BN(h,u.innerTubeRequest,u.input,D.clickTrackingParams,u.config),4):G.jumpTo(2)}return G.nextAddress!=2?(Q=G.yieldResult,G.return(Q)):G.return(void 0)})},KUl=function(l,D,U){var n,y=(n=_.M(D,_.vk))==null?void 0:
n.videoId;
n=!(!y||!l.find(function(C){return C.videoId&&C.videoId===y}));
var A=!!l.find(function(C){var h;return((h=_.M(C.command,_.vk))==null?void 0:h.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
l=!!l.find(function(C){return!!_.M(C.command,_.DS)&&!!_.M(D,_.DS)&&C.command===D});
return U?n||l:n||A||l},cqw=function(l,D,U){var n=[].concat(_.zz(l)),y=0,A=U?byh(U):[];
U=U?gic(U):[];D&&!KUl(l,D.command)&&n.unshift(D);A.length&&!KUl(l,A[0].command,!0)&&n.push.apply(n,_.zz(A));D&&U.length&&!KUl(l,U[0].command)&&(n.unshift.apply(n,_.zz(U.reverse())),y=U.length);return{newContentList:n,indexChange:y}},p_T=function(l){return _.V0({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:l}})},xVk=function(l){return _.V0({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:l}})},jw1=function(l){return _.V0({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:l}})};var MS=function(l,D){if(l instanceof MS)this.array_=l.array_;else{var U;if(U=_.Ns(l))a:{for(var n=U=0;n<l.length;n++){if(!_.Ns(l[n])||U>0&&l[n].length!=U){U=!1;break a}for(var y=0;y<l[n].length;y++)if(typeof l[n][y]!=="number"){U=!1;break a}U==0&&(U=l[n].length)}U=U!=0}if(U)this.array_=_.$9(l);else if(l instanceof _.Sr)this.array_=FU1(l.height,l.width);else if(typeof l==="number"&&typeof D==="number"&&l>0&&D>0)this.array_=FU1(l,D);else throw Error("So");}this.size_=new _.Sr(this.array_[0].length,
this.array_.length)},oiw=function(l,D,U){for(var n=0;n<l.getSize().height;n++)for(var y=0;y<l.getSize().width;y++)D.call(U,l.array_[n][y],n,y,l)},w_I=function(l,D){var U=new MS(l.getSize());
oiw(l,function(n,y,A){U.array_[y][A]=D.call(void 0,n,y,A,l)});
return U},FU1=function(l,D){for(var U=[],n=0;n<l;n++){U[n]=[];
for(var y=0;y<D;y++)U[n][y]=0}return U};
MS.prototype.add=function(l){if(!_.wEI(this.size_,l.getSize()))throw Error("To");return w_I(this,function(D,U,n){return D+l.array_[U][n]})};
MS.prototype.equals=function(l,D){if(this.size_.width!=l.size_.width||this.size_.height!=l.size_.height)return!1;D=D||0;for(var U=0;U<this.size_.height;U++)for(var n=0;n<this.size_.width;n++)if(!_.oT1(this.array_[U][n],l.array_[U][n],D))return!1;return!0};
MS.prototype.getSize=function(){return this.size_};
var Ri=function(l,D,U){return D>=0&&D<l.size_.height&&U>=0&&U<l.size_.width?l.array_[D][U]:null};
MS.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var rqh=function(l,D,U,n){if(!(D>=0&&D<l.size_.height&&U>=0&&U<l.size_.width))throw Error("Uo`"+D+"`"+U+"`"+l.size_.height+"`"+l.size_.width);l.array_[D][U]=n};
MS.prototype.multiply=function(l){if(l instanceof MS){if(this.size_.width!=l.getSize().height)throw Error("Vo");return zyj(this,l)}if(typeof l==="number")return fpk(this,l);throw Error("Wo");};
var zyj=function(l,D){var U=new MS(l.size_.height,D.getSize().width);oiw(U,function(n,y,A){for(var C=n=0;C<this.size_.width;C++)n+=Ri(this,y,C)*Ri(D,C,A);rqh(U,y,A,n)},l);
return U},fpk=function(l,D){return w_I(l,function(U){return U*D})};var $VI=new _.y4("inlineSurveyRenderer");var NMD=new _.y4("interstitialViewModel");var swg=new _.y4("reelNavigateCommand");var Eih=new _.y4("reelNonVideoContentDismissalCommand");var TMl=new _.y4("showReelsCommentsOverlayCommand");var Ipl=new _.y4("videoInteractionPopUpRenderer");var HyD=new _.y4("pollChoiceData");var YPI;var Oyh;var VNh;var ZE=function(){var l=_.p.apply(this,arguments)||this;l.ctaVisualElement=null;l.currentCsn=null;return l};
_.Z(ZE,_.p);_.W=ZE.prototype;_.W.onDataChanged=function(){this.maybeLogShows()};
_.W.computeButtonShape=function(){var l=this;if(this.data)return{buttonText:_.Nl(this.data.text),state:"active",onTap:function(){l.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.W.maybeCreateCtaVe=function(){var l;if((l=this.data)!=null&&l.badgeInteractionLogging){var D;if(l=(D=this.data.badgeInteractionLogging)==null?void 0:D.trackingParams)this.ctaVisualElement=_.v9(l)}};
_.W.maybeLogClicks=function(){this.currentCsn=_.t6(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.zo(this.currentCsn,this.ctaVisualElement)};
_.W.maybeLogShows=function(){this.currentCsn=_.t6(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.wj(this.currentCsn,[this.ctaVisualElement])};
_.W.onTap=function(){var l;if((l=this.data)!=null&&l.onClickCommand){var D;this.ytComponentBehavior.resolveCommand((D=this.data)==null?void 0:D.onClickCommand);this.maybeLogClicks()}};
ZE.prototype.onDataChanged=ZE.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ZE.prototype,"ytComponentBehavior",void 0);_.E([_.K({}),_.T("design:type",Object)],ZE.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ZE.prototype,"onDataChanged",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],ZE);
_.r(ZE,"ytd-shopping-overlay-badge-renderer",function(){if(VNh!==void 0)return VNh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return VNh=l},{mode:1});_.Tt(_.AfJ,"reel-sound-metadata-view-model",{props:{data:_.ND,overlayDensity:_.ND}});_.Tt(_.VW$,"player-disclosure-view-model",{props:{data:_.C$,extractOverlay:_.C$}});_.Tt(_.YTh,"pivot-button-view-model",{props:{data:_.ND,className:_.ND}});_.Tt(_.Ojy,"reel-action-bar-view-model",{props:{data:_.C$,buttonShapeOverrideables:_.C$}});_.Tt(_.AL$,"yt-reel-metapanel-view-model",{props:{data:_.C$,overlayDensity:_.C$,extractOverlay:_.C$}});var ikh=_.w(function(l){var D=l.children;var U=l.region;l=_.B(_.aw(void 0,void 0,"flxBBc"));var n=l.next().value,y=l.next().value;l=_.B(_.aw("0px",void 0,"IAR7k"));var A=l.next().value,C=l.next().value;l=_.B(_.aw("0px",void 0,"QV4iWb"));var h=l.next().value,b=l.next().value;l=_.B(_.aw(0,void 0,"Q2oK6b"));var u=l.next().value,Q=l.next().value;l=_.B(_.aw(0,void 0,"hYKowe"));var G=l.next().value,J=l.next().value,L=function(){var N=n();if(N){var z;if(((z=_.Ai())==null?void 0:z.getPlayerState())!==-1){N.style.display=
"inherit";var f;(f=_.Ai())==null||f.removeEventListener("onStateChange",L)}else N.style.display="none";a()}},R=function(){var N;
return(N=_.T4())==null?void 0:N.querySelector("video")},a=function(){var N=R();
if(N){Q(N.getBoundingClientRect().width);J(N.getBoundingClientRect().height);var z;C((N==null?void 0:(z=N.style)==null?void 0:z.left)||"0px");var f;b((N==null?void 0:(f=N.style)==null?void 0:f.top)||"0px")}};
_.$i(function(){var N=n();if(N){var z,f,I;if(((z=_.Ai())==null?void 0:z.getPlayerState())===-1&&Math.round(((I=(f=_.Ai())==null?void 0:f.getVideoAspectRatio())!=null?I:0)*100)!==Math.round(u()/G()*100)){N.style.display="none";var iG,CC;J(u()/((CC=(iG=_.Ai())==null?void 0:iG.getVideoAspectRatio())!=null?CC:1))}}},"N29KDe");
var S=function(){a()},d;
_.$g(function(){a();var N;if(!(U==null?0:(N=U())==null?0:N.transformationMatrix))throw Error("$o");var z;(z=_.Ai())==null||z.addEventListener("onStateChange",L);if(window.ResizeObserver){if(N=R())d=new ResizeObserver(S),d.observe(N)}else window.addEventListener("resize",a);_.NV(function(){var f;(f=_.Ai())==null||f.removeEventListener("onStateChange",L);d?d.disconnect():window.removeEventListener("resize",a)})});
var c=function(){var N,z,f=(z=U==null?void 0:(N=U())==null?void 0:N.transformationMatrix)!=null?z:[];N=u();z=G();for(var I=[],iG=0,CC=-1;iG<f.length;iG++)iG%3===0&&(CC++,I[CC]=[]),I[CC].push(f[iG]);f=new MS(I);I=new MS([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);I=f.multiply(I);f=new MS([[0,0],[0,0],[0,0],[0,0]]);for(iG=0;iG<I.getSize().width;iG++){CC=Ri(I,0,iG);var vo=Ri(I,1,iG);if(CC===null||vo===null)throw Error("Zo`"+(iG+1).toString());rqh(f,iG,0,CC*N);rqh(f,iG,1,vo*z)}N=Ri(f,0,0);iG=Ri(f,1,0);z=Ri(f,0,
1);CC=Ri(f,1,1);if(N===null||iG===null||z===null||CC===null)throw Error("Xo");I=tN1(N,iG,z,CC);vo=Ri(f,3,0);f=Ri(f,3,1);if(vo===null||f===null)throw Error("Yo");f=tN1(N,vo,z,f);CC=(Number((CC*-1).toFixed(2))-Number((z*-1).toFixed(2)))/(Number(iG.toFixed(2))-Number(N.toFixed(2)));vo=Math.atan(CC)*180/Math.PI;iG=CC===Number.POSITIVE_INFINITY?-90:CC===Number.NEGATIVE_INFINITY?90:Object.is(CC,-0)?180:CC===0?0:CC>0?vo*-1:N<iG?vo*-1:Math.abs(vo)+180;return"left:calc("+N+"px + "+A()+"); top:calc("+(z+"px + "+
h()+"); width:")+(I+"px; height:")+(f+"px; transform:rotate(")+(iG+"deg);\n        --sticker-width:"+I+";")};
return _.g(mVH,{root:"#sticker-layer"},function(){return _.g("yt-overlay-sticker",{el:_.fe(y),style:c,class:"ytOverlayStickerHost"},D)})},"xn");var lQO=_.w(function(l){function D(){var L,R,a,S,d=(R=_.M((L=b())==null?void 0:L.command,_.t5r))==null?void 0:(a=R.item)==null?void 0:(S=a.notificationTextRenderer)==null?void 0:S.successResponseText;if(d)L=_.IJ(d),_.Vh(n.value,"yt-open-popup-action",[L,n.value]);else if(u())SPI(u(),n.value);else{var c;SPI((c=b())==null?void 0:c.command,n.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var U=l.data;var n=_.bP("svg"),y=_.B(_.aw(!1,void 0,"e9onLe"));l=y.next().value;var A=y.next().value,C=_.B(_.aw(!1,void 0,"ptnIQd"));y=C.next().value;var h=C.next().value,b=function(){var L;return _.M((L=U())==null?void 0:L.popUp,Ipl)},u=function(){var L;
return(L=U())==null?void 0:L.command},Q=function(){return _.M(u(),_.Qs)!==void 0};
C=_.n0(function(){D();return!1});
var G={},J={};return _.g("svg",{"on:mouseover":_.n0(function(){Q()&&A(!0);h(!0);return!1}),
"on:mouseout":_.n0(function(){A(!1);h(!1);return!1}),
"on:keydown":_.n0(function(L){L.key==="Enter"&&D();return!1}),
"on:focus":_.n0(function(){Q()&&A(!0);return!1}),
"on:blur":_.n0(function(){Q()&&A(!1);return!1}),
el:n,tabindex:0,"aria-label":function(){var L;return(L=U())==null?void 0:L.a11yString},
id:"player-overlay-video-interaction-svg",class:_.DV("ytPlayerOverlayInteractionInteractionsSvg",(G.ytPlayerOverlayInteractionInteractionsSvgHover=l,G),(J.ytPlayerOverlayInteractionInteractionsSvgHideOutline=y,J)),role:"button","on:click":C})},"An");_.Tt(_.w(function(l){var D=l.data;_.$g(function(){var U;if((U=D())==null?0:U.trackingParams){var n;_.he().graftServerVe((n=D().trackingParams)!=null?n:"")}});
return _.g("yt-player-overlay-interaction",null,_.g(ikh,{region:function(){var U,n;return(U=D())==null?void 0:(n=U.regions)==null?void 0:n[0]}},_.g(lQO,Object.assign({},l))))},"zn"),"yt-player-overlay-interaction",{props:{data:_.C$}});var D1c=_.w(function(l){var D=l.data;var U=l.index;var n=l.selectedChoice;var y=function(){var A;return _.M((A=D())==null?void 0:A.renderer,HyD)};
l={};return _.g("yt-overlay-poll-sticker-choice",{class:_.DV("ytOverlayPollStickerChoiceHost"),style:_.BK({"--displayed-percentage":function(){var A,C,h,b;return""+Math.ceil(Number((n==null?void 0:n())===U()?(A=y())==null?void 0:(C=A.selected)==null?void 0:C.progressBarWidth:(h=y())==null?void 0:(b=h.unselected)==null?void 0:b.progressBarWidth)*100)}})},_.g("div",{class:_.DV("ytOverlayPollStickerChoicePollChoice",(l.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(n==null?void 0:n())!==
void 0},l.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(n==null?void 0:n())===U()},l))},_.g("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var A;
return((A=y())==null?void 0:A.text)||""}),_.g("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(n==null?void 0:n())==="undefined")var A="";
else{var C,h,b,u;A=(n==null?void 0:n())===U()?(C=y())==null?void 0:(h=C.selected)==null?void 0:h.votePercentage:(b=y())==null?void 0:(u=b.unselected)==null?void 0:u.votePercentage}return A})))},"Bn");var U1g=_.w(function(l){var D=l.data;var U=_.gf(function(y){var A,C=((A=D())==null?void 0:A.postPollStateEntityKey)||"";y=_.yT(y.entities,"postPollStateEntity",C);var h;return((h=D())==null?0:h.viewerIsOwner)?Object.assign({},y,{selectedOptionId:-1,voted:!0}):y}),n=_.Jc().resolve(_.qK);
return _.g("yt-overlay-poll-sticker",null,_.g(ikh,{region:function(){var y,A;return(y=D())==null?void 0:(A=y.region)==null?void 0:A.interactionRegion}},_.g("div",{class:_.DV("ytOverlayPollStickerHost"),
style:_.BK({"--original-height":function(){var y;return""+(((y=D())==null?void 0:y.mainBodyHeight)||1)},
"--original-width":function(){var y;return""+(((y=D())==null?void 0:y.mainBodyWidth)||1)},
"--scaled-width":function(){var y;return""+(((y=D())==null?void 0:y.mainBodyWidth)||1)},
"--primary-surface":function(){var y,A;return X_H(((y=D())==null?void 0:(A=y.theme)==null?void 0:A.primarySurface)||0)},
"--raised-surface":function(){var y,A;return X_H(((y=D())==null?void 0:(A=y.theme)==null?void 0:A.raisedSurface)||0)},
"--secondary-surface":function(){var y,A;return X_H(((y=D())==null?void 0:(A=y.theme)==null?void 0:A.secondarySurface)||0)},
"--primary-text":function(){var y,A;return X_H(((y=D())==null?void 0:(A=y.theme)==null?void 0:A.primaryText)||0)},
"--secondary-text":function(){var y,A;return X_H(((y=D())==null?void 0:(A=y.theme)==null?void 0:A.secondaryText)||0)}})},_.g("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return D().questionText}," "),_.g(_.wt,{each:function(){return D().pollChoiceConfigs||[]}},function(y,A){return _.g("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.n0(function(){var C=A(),h;if((h=D())==null||!h.viewerIsOwner){var b,u;h=(b=D())==null?void 0:(u=b.pollChoiceConfigs)==null?void 0:u[C];if(u=(h==null?0:h.renderer)?_.M(h.renderer,HyD):void 0){var Q;b=((Q=U())==null?void 0:Q.selectedOptionId)!==C;var G;if(Q=(G=b?u.selectedPollCommand:u.deselectedPollCommand)==null?void 0:G.innertubeCommand){n.resolveCommand(Q);var J,L;_.fY().dispatch(_.vr("postPollStateEntity",((J=U())==null?void 0:J.key)||"",{key:((L=U())==null?void 0:L.key)||"",selectedOptionId:b?
C:-1,voted:b}))}}}})},_.g(D1c,{data:y,
index:A,selectedChoice:function(){var C,h;return((C=U())==null?0:C.voted)?(h=U())==null?void 0:h.selectedOptionId:void 0}}))}),_.g("div",{class:"ytOverlayPollStickerVoteCount"},function(){var y,A;
return((y=U())==null?0:y.voted)&&((A=U())==null?void 0:A.selectedOptionId)!==-1?D().postVoteCountText:D().preVoteCountText}))))},"Cn");_.Tt(_.w(function(l){var D=l.data;return _.g("yt-stickers-layer",null,_.g(_.wt,{each:function(){var U;return((U=D())==null?void 0:U.stickers)||[]}},function(U){return _.g(_.v,{cond:function(){return _.q("enable_shorts_poll_stickers_web")},
then:function(){return _.g(_.v,{cond:function(){return U==null?void 0:U.pollSticker},
then:function(n){return _.g(U1g,{data:n})}})}})}))},"Dn"),"yt-stickers-layer",{props:{data:_.C$}});var eO=function(){var l=_.p.apply(this,arguments)||this;l.showScrubber=!1;l.isWatchWhileMode=!1;l.enableAnchoredPanel=_.q("desktop_shorts_v2_anchored_panel");l.enablePollStickers=_.q("enable_shorts_poll_stickers_web");l.enableShortsModernControls=_.q("web_shorts_modern_controls");l.anchoredPanelActive=!1;l.enableLivingroomLayout=_.q("reels_enable_livingroom_layout");l.enablePlayerMetadataContainer=_.q("reels_web_enable_metadata_container");l.enableSqueezebackPanels=_.q("web_shorts_enable_squeezeback_panels");
l.useAspectRatio=_.q("web_use_aspect_ratio");l.isSqueezebackActive=!1;l.smallScreenSqueezeback=!1;l.isPlayerStarted=!1;l.overlayDensity=0;l.extractOverlay=!1;l.extractActionBar=!1;l.isOverlay=!1;l.isImmersive=!1;l.isImmersiveHorizontal=!1;l.isFullscreen=!1;l.onWindowResized=function(){var D;l.set("isImmersive",((D=window.getComputedStyle(l.hostElement))==null?void 0:D.getPropertyValue("--immersive-mode-on"))==="1");l.set("isImmersiveHorizontal",l.isImmersive&&l.enableLivingroomLayout&&!l.isWatchWhileMode)};
return l};
_.Z(eO,_.p);_.W=eO.prototype;_.W.updateIsOverlay=function(l){this.isOverlay=l.detail.value};
_.W.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.W.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.W.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.W.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.W.onOverlayDensityChange=function(){var l=_.iJ(this.hostElement).querySelector("ytd-info-panel-container-renderer");l&&(l.set("extractOverlay",this.extractOverlay),l.set("roundedContainer",this.extractOverlay))};
_.W.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.W.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.W.ready=function(){(_.q("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.q("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.e_("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.e_("reels_action_justified_content")||"flex-start")};
_.W.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.W.setFakeLoadingButtons=function(){_.q("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.C3("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.C3("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.C3("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.C3("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.C3("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()};
_.W.setEmptyOverlayMetadata=function(){_.q("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}))};
_.QP.Object.defineProperties(eO.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.infoPanel)}}});
eO.prototype.onOverlayDensityChange=eO.prototype.onOverlayDensityChange;eO.prototype.onIsActiveChanged=eO.prototype.onIsActiveChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],eO.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],eO.prototype,"ytdReduxBehavior",void 0);
_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],eO.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],eO.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],eO.prototype,"isActive",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],eO.prototype,"hidden",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],eO.prototype,"useShortsIcon",void 0);
_.E([_.K({value:"left"}),_.T("design:type",String)],eO.prototype,"buttonTooltipPosition",void 0);_.E([_.K({value:_.q("reels_enable_livingroom_layout")?"top":"left"}),_.T("design:type",String)],eO.prototype,"likeButtonTooltipPosition",void 0);_.E([_.K({value:"none"}),_.T("design:type",String)],eO.prototype,"textTransform",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"showScrubber",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"isWatchWhileMode",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.infoPanel"),_.T("design:type",Object),_.T("design:paramtypes",[])],eO.prototype,"hasInfoPanel",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"enableAnchoredPanel",void 0);_.E([_.K(),_.T("design:type",Object)],eO.prototype,"enablePollStickers",void 0);
_.E([_.K(),_.T("design:type",Object)],eO.prototype,"enableShortsModernControls",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"anchoredPanelActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"enableLivingroomLayout",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],eO.prototype,"enablePlayerMetadataContainer",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"enableSqueezebackPanels",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"useAspectRatio",void 0);_.E([_.K({selector:_.$yB,reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"isSqueezebackActive",void 0);_.E([_.K({selector:Jqh,reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"smallScreenSqueezeback",void 0);
_.E([_.K({selector:LUT}),_.T("design:type",Object)],eO.prototype,"isPlayerStarted",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"overlayDensity",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"extractOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"extractActionBar",void 0);_.E([_.K(),_.T("design:type",Object)],eO.prototype,"isOverlay",void 0);
_.E([_.K(),_.T("design:type",Object)],eO.prototype,"isImmersive",void 0);_.E([_.K(),_.T("design:type",Object)],eO.prototype,"isImmersiveHorizontal",void 0);_.E([_.K({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.T("design:type",Boolean)],eO.prototype,"isShortsImmersive",void 0);_.E([_.K({computed:"computeButtonOverride(extractActionBar)"}),_.T("design:type",Object)],eO.prototype,"buttonOverride",void 0);
_.E([_.K({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.T("design:type",Object)],eO.prototype,"actionBarButtonOverride",void 0);_.E([_.K({selector:_.Yv,reflectToAttribute:!0}),_.T("design:type",Object)],eO.prototype,"isFullscreen",void 0);_.E([_.Pg("isActive"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],eO.prototype,"onIsActiveChanged",null);
_.E([_.Pg("extractOverlay"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],eO.prototype,"onOverlayDensityChange",null);_.E([_.x({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],eO);
_.r(eO,"ytd-reel-player-overlay-renderer",function(){if(Oyh!==void 0)return Oyh;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Oyh=l},{mode:1});var ngO;var mZ=function(){var l=_.p.apply(this,arguments)||this;l.videoDuration=0;l.playedTime=0;l.isActive=!1;l.JSC$22833_playerEvents=new Map;return l};
_.Z(mZ,_.p);_.W=mZ.prototype;_.W.created=function(){this.JSC$22833_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22833_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.W.attached=function(){this.getPlayerAndInitializeListeners()};
_.W.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22833_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.CY(this,this.onPageChanged))};
_.W.getPlayerAndInitializeListeners=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return D=_.T4(),D?U.yield(D.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.CY(l,l.onPageChanged)),U.jumpTo(0));l.player=U.yieldResult;l.initializePlayerListeners();_.Kz(U)})};
_.W.onPageChanged=function(l){var D=this;return _.P(function(U){if(U.nextAddress==1)return l.detail.newPageType!=="ytd-shorts"?U.return():U.yield(_.IL().getPlayerPromise(),2);D.player=U.yieldResult;D.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.CY(D,D.onPageChanged));_.Kz(U)})};
_.W.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22833_playerEvents)};
_.W.onVideoDataChange=function(l){var D=this;return _.P(function(U){if(!D.player||l.type!=="newdata")return U.return();D.videoDuration=_.q("web_shorts_use_progress_state_for_gapless")?D.player.getProgressState(l.playertype).seekableEnd:D.player.getDuration(l.playertype);D.playedTime=0;_.Kz(U)})};
_.W.onVideoProgress=function(l){var D=this,U,n;return _.P(function(y){if(!D.player)return y.return();U=D.player.getPresentingPlayerType();n=D.player.getPlayerState();D.videoDuration=_.q("web_shorts_use_progress_state_for_gapless")?D.player.getProgressState(U).seekableEnd:D.player.getDuration(U);D.playedTime=n===0?D.videoDuration:l;_.Kz(y)})};
_.W.getPercentPlayed=function(l,D){return l?_.tS(D/l,0,1):0};
_.QP.Object.defineProperties(mZ.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 l="";return l=this.videoDuration&&this.playedTime?l+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):l+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],mZ.prototype,"componentBehavior",void 0);_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],mZ.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],mZ.prototype,"player",void 0);_.E([_.K(),_.T("design:type",Object)],mZ.prototype,"videoDuration",void 0);_.E([_.K(),_.T("design:type",Object)],mZ.prototype,"playedTime",void 0);_.E([_.K(),_.T("design:type",Object)],mZ.prototype,"isActive",void 0);
_.E([_.t("videoDuration","playedTime"),_.T("design:type",Number),_.T("design:paramtypes",[])],mZ.prototype,"percentPlayed",null);_.E([_.t("videoDuration","playedTime"),_.T("design:type",Object),_.T("design:paramtypes",[])],mZ.prototype,"percentPlayedStyle",null);_.E([_.t("videoDuration","isActive"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],mZ.prototype,"hideProgressBar",null);
_.r(mZ,"ytd-progress-bar-line",function(){if(ngO===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);ngO=l}l=ngO;return l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var yfc;_.Tt(_.S18,"ytm-closed-captioning-button",{props:{captionIconType:_.C$,onClick:_.ND,ariaLabel:_.C$,ariaPressed:_.C$,isOverlay:_.ND,isModern:_.ND}});_.Tt(_.l0J,"desktop-shorts-volume-controls",{props:{orientation:_.C$}});var ai=function(){var l=_.p.apply(this,arguments)||this;l.playerState=null;l.isMuted=!1;l.shortsModernControlsEnabled=_.q("web_shorts_modern_controls");l.volumeControlsOrientationState="horizontal_right";l.isOverlay=!0;l.isAdsOverlay=!1;l.captionIconType=-1;l.ariaLabel="";l.overlayDensity=0;l.JSC$22836_playerEvents=new Map;l.onClosedCaptionsButtonClick=function(){l.player&&_.$V(l.player)&&(l.player.toggleSubtitles(),l.updateCaptionIconType())};
return l};
_.Z(ai,_.p);_.W=ai.prototype;_.W.created=function(){this.JSC$22836_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22836_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22836_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.W.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.UE(28662);this.playPauseButtonClientVE=_.UE(36842);this.fullscreenButtonToggleOffClientVE=_.UE(222256);this.fullscreenButtonToggleOnClientVE=_.UE(222257);var l=_.t6(),D=_.aS();l&&D&&(_.q("combine_ve_grafts")?(_.cq(_.he(),this.muteButtonClientVE,D),_.cq(_.he(),this.playPauseButtonClientVE,D)):_.FI(l,D,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.W.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22836_playerEvents),this.player=null)};
_.W.updateCaptionIconType=function(){var l=-1,D=void 0,U=_.C3("CLOSED_CAPTIONS_DISABLED");this.player&&_.$V(this.player)&&(_.G7W(this.player)?(D=!0,U=_.C3("CLOSED_CAPTIONS_ON"),l=1):(D=!1,U=_.C3("CLOSED_CAPTIONS_OFF"),l=0));this.captionIconType=l;this.ariaPressedState=D;this.ariaLabel=U};
_.W.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.W.getPlayerAndInitializeListeners=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return D=_.T4(),D?U.yield(D.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.CY(l,l.onPageChanged)),U.jumpTo(0));l.player=U.yieldResult;l.initializePlayerListeners();_.Kz(U)})};
_.W.onPageChanged=function(l){var D=this;return _.P(function(U){if(U.nextAddress==1)return l.detail.newPageType!=="ytd-shorts"?U.return():U.yield(_.IL().getPlayerPromise(),2);D.player=U.yieldResult;D.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.CY(D,D.onPageChanged));_.Kz(U)})};
_.W.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22836_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.W.onPlayerStateChange=function(l){this.playerState=l};
_.W.onPlayerVolumeChange=function(l){this.isMuted=l.muted};
_.W.onPlayPauseButtonClick=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(_.IL().getPlayerPromise(),2);D=n.yieldResult;(U=_.t6())&&l.playPauseButtonClientVE&&_.zo(U,l.playPauseButtonClientVE);D.getPlayerState()!==1?D.playVideo():D.pauseVideo();_.Kz(n)})};
_.W.computePlayPauseIcon=function(l){return l===2||l===-1||l===5?_.q("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.q("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.q("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.W.computeFullscreenLabel=function(l){return l?_.C3("FULLSCREEN_EXIT_LABEL"):_.C3("FULLSCREEN_ENTER_LABEL")};
_.W.computePlayPauseLabel=function(l){return l===1||l===3?_.C3("PLAYER_LABEL_PAUSE"):_.C3("PLAYER_LABEL_PLAY")};
_.W.onMuteButtonClick=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(_.IL().getPlayerPromise(),2);D=n.yieldResult;(U=_.t6())&&l.muteButtonClientVE&&_.zo(U,l.muteButtonClientVE);D.isMuted()?D.unMute(!0):D.mute(!0);_.Kz(n)})};
_.W.computeMuteIcon=function(l){return l?"miniplayer:volume-off":"miniplayer:volume-up"};
_.W.computeMuteLabel=function(l){return l?_.C3("PLAYER_LABEL_UNMUTE"):_.C3("PLAYER_LABEL_MUTE")};
_.W.onFullscreenButtonClick=function(){var l=_.t6();l&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.zo(l,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.zo(l,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.mQJ()};
_.QP.Object.defineProperties(ai.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var l=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(){l.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.q("web_shorts_modern_controls")?"player_full_exit_alt":_.q("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.q("web_shorts_modern_controls")?"player_full_enter_alt":_.q("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ai.prototype,"componentBehavior",void 0);_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],ai.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],ai.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ai.prototype,"player",void 0);_.E([_.K(),_.T("design:type",Object)],ai.prototype,"playerState",void 0);_.E([_.K(),_.T("design:type",Object)],ai.prototype,"isMuted",void 0);
_.E([_.K({computed:"computePlayPauseIcon(playerState)"}),_.T("design:type",String)],ai.prototype,"playPauseIcon",void 0);_.E([_.K({computed:"computeMuteIcon(isMuted)"}),_.T("design:type",String)],ai.prototype,"muteIcon",void 0);_.E([_.K({selector:_.Yv}),_.T("design:type",Boolean)],ai.prototype,"isFullscreen",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ai.prototype,"shortsModernControlsEnabled",void 0);
_.E([_.K(),_.T("design:type",Object)],ai.prototype,"volumeControlsOrientationState",void 0);_.E([_.K(),_.T("design:type",Object)],ai.prototype,"isOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ai.prototype,"isAdsOverlay",void 0);_.E([_.K(),_.T("design:type",Object)],ai.prototype,"captionIconType",void 0);_.E([_.K(),_.T("design:type",Object)],ai.prototype,"ariaLabel",void 0);_.E([_.K(),_.T("design:type",Object)],ai.prototype,"ariaPressedState",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ai.prototype,"overlayDensity",void 0);_.E([_.K(),_.T("design:type",Object)],ai.prototype,"data",void 0);_.E([_.K({computed:"computeActionBarButtonOverride()"}),_.T("design:type",Object)],ai.prototype,"actionBarButtonOverride",void 0);_.E([_.t("playerState"),_.T("design:type",Object),_.T("design:paramtypes",[])],ai.prototype,"playPauseButtonData",null);
_.E([_.t("isFullscreen"),_.T("design:type",Object),_.T("design:paramtypes",[])],ai.prototype,"fullscreenButtonData",null);_.E([_.K(),_.T("design:type",Object)],ai.prototype,"onClosedCaptionsButtonClick",void 0);_.E([_.t("isFullscreen"),_.T("design:type",String),_.T("design:paramtypes",[])],ai.prototype,"fullscreenIcon",null);
_.r(ai,"ytd-shorts-player-controls",function(){if(yfc===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);yfc=l}l=yfc;return l},{mode:1});var AfH;_.Tt(_.sl8,"yt-interstitial-view-model",{props:{data:_.C$}});var WvT=_.w(function(l){var D=l.data;return _.g("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.g("h1",{class:"reelWatchBreakViewModelHostTitle"},_.g(_.BO,{text:function(){return D().title}})),_.g("h2",{class:"reelWatchBreakViewModelHostBody"},_.g(_.BO,{text:function(){return D().body},
isOverlay:!0})),_.g(_.uI,{data:function(){return D().buttons}},{buttonViewModel:function(U,n){return _.g("div",{class:function(){return n()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.g(_.t9,{data:U.data}))}}))},"En");
WvT.idomCompat=!0;_.Tt(WvT,"reel-watch-break-view-model",{props:{data:_.C$}});var tW=function(){return _.p.apply(this,arguments)||this};
_.Z(tW,_.p);tW.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}}};
_.QP.Object.defineProperties(tW.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var l;return!!_.M((l=this.data)==null?void 0:l.renderer,$VI)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var l;return!!_.M((l=this.data)==null?void 0:l.renderer,NMD)}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],tW.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],tW.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],tW.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("data.renderer"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tW.prototype,"isSurvey",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.renderer"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],tW.prototype,"isInterstitialViewModel",null);_.E([_.x({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],tW);
_.r(tW,"ytd-reel-non-video-content-renderer",function(){if(AfH!==void 0)return AfH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
return AfH=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var Btg;_.Tt(_.iBJ,"desktop-shorts-player-controls",{});var Xz=function(){var l=_.p.apply(this,arguments)||this;l.isPlayerPaused=!1;l.isPlayerStarted=!1;l.showPlayerControls=!1;l.showScrubber=!1;l.autoHideJobId=0;l.overlayType=_.e_("web_shorts_expanded_overlay_type");l.panelData=void 0;l.isWatchWhileMode=!1;l.hasError=!1;l.panelShowDelayMs=1;l.scrubberComponent={};l.isFullscreen=!1;l.shouldHideOverlay=!1;l.enableAnchoredPanel=_.q("desktop_shorts_v2_anchored_panel");l.enablePersistentAnchoredPanel=_.q("desktop_shorts_v2_persistent_anchored_panel");l.hideWatchWhilePanel=
_.q("web_shorts_hide_watch_while_panel");l.useAspectRatio=_.q("web_use_aspect_ratio");l.enableShortsModernControls=_.q("web_shorts_modern_controls");l.isPersistentPanelActive=!1;l.anchoredPanelActive=!1;l.isShortsPipActive=!1;l.smallScreenSqueezeback=!1;l.enableFlexibleOverlay=_.q("web_enable_flexible_overlay");l.overlayDensity=0;l.extractOverlay=!1;l.extractActionBar=!1;l.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
l.onWindowResized=function(){_.Fs(l,"calculateOverlayDensity",function(){l.calculateOverlayDensity()},100)};
return l};
_.Z(Xz,_.p);_.W=Xz.prototype;_.W.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.W.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.W.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var l=_.Jc().resolve(_.IH);this.isWatchWhileMode&&_.Tn.addJob(function(){l.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.W.handleShowReelsCommentsOverlayCommand=function(l){l=_.M(l,TMl);this.isActive&&(l==null?0:l.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))};
_.W.updateEngagementPanelVisibility=function(l,D){l&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:D?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:l}})};
_.W.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.W.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.Jc().resolve(_.Fl).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.W.handleWatchWhilePanelScrimClick=function(){var l=_.Jc().resolve(_.IH);this.activeWatchWhilePanel&&(l.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.W.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.W.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.W.handlePlayerClick=function(l){var D=this,U,n;if((n=(U=window).matchMedia)!=null&&n.call(U,"(any-pointer: coarse)").matches||!l)this.showPlayerControls=!0,_.Tn.cancelJob(this.autoHideJobId),this.autoHideJobId=_.oI(_.Tn,function(){D.showPlayerControls=!1},4E3)};
_.W.isFirstReel=function(){return this.index===0};
_.W.handleMouseenter=function(){_.Tn.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.W.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.W.handleScrubberEnter=function(){this.showScrubber=!0};
_.W.handleScrubberLeave=function(){this.showScrubber=!1};
_.W.maybeLogNonDefaultAspectRatio=function(){var l;(l=this.data)!=null&&l.thumbnail&&this.isActive&&.5625!==Gpq(this.data.thumbnail)&&_.m8C("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.W.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var l=document.querySelector("#shorts-container");if(l){var D=!1,U,n=this.playerContainer.offsetWidth,y=this.playerContainer.offsetHeight;l=l.offsetWidth/2-n/2;l>=368?(l=1,D=U=!0):l>=72?(l=0,U=!0):(l=2,U=!1);n>=600&&y>=840?l=1:window.innerWidth<=599&&(l=2,U=D=!1);this.isPersistentPanelActive&&(l=0,D=!1);this.extractActionBar=U;_.q("web_enable_flexible_overlay")&&(this.overlayDensity=l,this.extractOverlay=
D);var A;(A=this.onOverlayDensityChanged)==null||A.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.W.onOverlayDensityChange=function(){var l;(l=this.onOverlayDensityChanged)==null||l.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(l=_.iJ(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))l.set("overlayDensity",this.overlayDensity),l.set("extractOverlay",this.extractOverlay),l.set("extractActionBar",this.extractActionBar);if(l=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))l.overlayDensity=this.overlayDensity,l.extractOverlay=
this.extractOverlay,l.extractActionBar=this.extractActionBar};
_.W.isVideoContent=function(l){_.Jc().resolve(_.Fl);return!!_.M(l,_.vk)};
_.W.isNonVideoContent=function(l){_.Jc().resolve(_.Fl);return!!_.M(l,_.DS)};
_.W.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.QP.Object.defineProperties(Xz.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var l,D;return _.q("web_enable_format_first")||((l=this.data)==null?void 0:l.adsOverlay)&&_.q("web_enable_format_first_ads_only")||((D=this.data)==null?void 0:D.reelPlayerOverlayRenderer)&&_.q("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.q("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var l;return!this.isActive||!this.isPlayerStarted||(l=this.data)!=null&&l.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var l;if(((l=this.data)==null?0:l.command)&&this.isVideoContent(this.data.command)){var D,U;if(((D=this.data)==null?0:D.adsOverlay)&&Object.keys((U=this.data)==null?void 0:U.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var n,y;if(((n=this.data)==null?0:n.reelPlayerOverlayRenderer)&&Object.keys((y=this.data)==null?void 0:y.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Xz.prototype.onOverlayDensityChange=Xz.prototype.onOverlayDensityChange;Xz.prototype.calculateOverlayDensity=Xz.prototype.calculateOverlayDensity;Xz.prototype.maybeLogNonDefaultAspectRatio=Xz.prototype.maybeLogNonDefaultAspectRatio;Xz.prototype.onEngagementPanelsChanged=Xz.prototype.onEngagementPanelsChanged;Xz.prototype.onScrubberDataChange=Xz.prototype.onScrubberDataChange;Xz.prototype.updateShouldHideOverlay=Xz.prototype.updateShouldHideOverlay;
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Xz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Xz.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],Xz.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Xz.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],Xz.prototype,"index",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Xz.prototype,"isActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Xz.prototype,"isHiddenInDom",void 0);_.E([_.K(),_.T("design:type",Object)],Xz.prototype,"isPlayerPaused",void 0);_.E([_.K({selector:LUT}),_.T("design:type",Object)],Xz.prototype,"isPlayerStarted",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"showPlayerControls",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"showScrubber",void 0);_.E([_.K(),_.T("design:type",Object)],Xz.prototype,"autoHideJobId",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"overlayType",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Xz.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Xz.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],Xz.prototype,"watchWhileEngagementPanels",void 0);_.E([_.K(),_.T("design:type",Object)],Xz.prototype,"panelData",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"isWatchWhileMode",void 0);_.E([_.K(),_.T("design:type",String)],Xz.prototype,"activeWatchWhilePanel",void 0);_.E([_.K(),_.T("design:type",Object)],Xz.prototype,"hasError",void 0);_.E([_.K(),_.T("design:type",Object)],Xz.prototype,"panelShowDelayMs",void 0);
_.E([_.K(),_.T("design:type",Object)],Xz.prototype,"scrubberComponent",void 0);_.E([_.K({selector:_.Yv,reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"isFullscreen",void 0);_.E([_.K(),_.T("design:type",Object)],Xz.prototype,"shouldHideOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"enableAnchoredPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"enablePersistentAnchoredPanel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"hideWatchWhilePanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"useAspectRatio",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"enableShortsModernControls",void 0);_.E([_.K({selector:_.$yB,reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"isPersistentPanelActive",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"anchoredPanelActive",void 0);_.E([_.K({selector:_.OE,reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"isShortsPipActive",void 0);_.E([_.K({selector:Jqh,reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"smallScreenSqueezeback",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.adsOverlay"),_.T("design:type",Object),_.T("design:paramtypes",[])],Xz.prototype,"isAdsOverlay",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.T("design:type",Object),_.T("design:paramtypes",[])],Xz.prototype,"enableFormatFirst",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"enableFlexibleOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"overlayDensity",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"extractOverlay",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Xz.prototype,"extractActionBar",void 0);_.E([_.K(),_.T("design:type",Function)],Xz.prototype,"onOverlayDensityChanged",void 0);_.E([_.K(),_.t("isActive","hasError","isPlayerStarted"),_.T("design:type",Object),_.T("design:paramtypes",[])],Xz.prototype,"shouldRenderPlayerElements",null);_.E([_.K(),_.t("isActive","isWatchWhileMode"),_.T("design:type",Object),_.T("design:paramtypes",[])],Xz.prototype,"watchWhileOrPersistentActive",null);
_.E([_.Pg("isActive","hasError","showingExpandedOverlay"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Xz.prototype,"updateShouldHideOverlay",null);_.E([_.K({reflectToAttribute:!0}),_.t("isActive","isPlayerStarted","data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Xz.prototype,"shouldRenderScrubber",null);
_.E([_.Pg("shouldRenderScrubber"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Xz.prototype,"onScrubberDataChange",null);_.E([_.t("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.T("design:type",Object),_.T("design:paramtypes",[])],Xz.prototype,"overlayComponent",null);_.E([_.Pg("watchWhileEngagementPanels"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Xz.prototype,"onEngagementPanelsChanged",null);
_.E([_.gP("#player-container"),_.T("design:type",HTMLElement)],Xz.prototype,"playerContainer",void 0);_.E([_.gP("#cinematic-container"),_.T("design:type",HTMLElement)],Xz.prototype,"cinematicContainer",void 0);_.E([_.Pg("isPersistentPanelActive","data.thumbnail"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Xz.prototype,"maybeLogNonDefaultAspectRatio",null);
_.E([_.Pg("isPersistentPanelActive"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Xz.prototype,"calculateOverlayDensity",null);_.E([_.Pg("overlayDensity","extractOverlay","extractActionBar"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Xz.prototype,"onOverlayDensityChange",null);_.E([_.x({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Xz);
_.r(Xz,"ytd-reel-video-renderer",function(){if(Btg!==void 0)return Btg;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Btg=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var SO=function(){var l=_.p.apply(this,arguments)||this;l.isPreviousPageShorts=!1;l.index=0;l.delayedActiveIndex=0;l.playablePreviousIndex=null;l.isPlayerPaused=!1;l.isPlayerStarted=!1;l.intersectionObserverThreshold=.6;l.fitToVisibleBounds=!1;l.pageSubtype="shorts";l.enablePreviousContinuation=_.q("shorts_in_playlists_web");l.shortsPipEnabled=_.q("web_shorts_pip");l.isDark=document.documentElement.hasAttribute("dark");l.shortsViewTransitions=_.q("web_shorts_view_transitions");l.isFullscreen=!1;l.isShortsPipActive=
!1;l.buttonOverride={iconPosition:"icon-only",size:"XL"};l.anchoredPanelActive=!1;l.isActive=!1;l.smallScreenPersistentPanel=!1;l.isPersistentPanelActive=!1;l.smallScreenSqueezeBack=!1;l.enableScrollIntoViewCenter=_.q("web_scroll_into_view_center");l.formatFirst=_.q("web_enable_format_first")||_.q("web_enable_format_first_ads_only")||_.q("web_enable_format_first_organic_only");l.enableFlexibleOverlay=_.q("web_enable_flexible_overlay");l.extractOverlay=!1;l.useAspectRatio=_.q("web_use_aspect_ratio");
l.enableShortsSequenceRefactorUnify=_.q("web_enable_shorts_sequence_refactor_unify");l.carouselContainers=[];l.isShortsInitialized=!1;l.shortsContentList=[];l.hasDataUpdated=!1;l.playerInPosition=!1;l.hidePreviousButtonImmediately=!1;l.showPreviousButtonImmediately=!1;l.endOfNextContinuation=!1;l.currentPlayerIndex=0;l.nextReelVe=_.UE(56921);l.prevReelVe=_.UE(56922);l.loopToggleOffVe=_.UE(198013);l.loopToggleOnVe=_.UE(198014);l.ambientModeToggleVe=_.UE(227860);l.reelPlayerPausedStateRendererVe=_.UE(141313);
l.storedPlaybackSpeed=null;l.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"};l.onOverlayDensityChanged=function(D,U,n,y){D=l.getActiveReelVideo(D);l.extractOverlay=!!n;D==null||D.setAttribute("overlay-density",String(U));n===void 0||D!=null&&D.toggleAttribute("extract-overlay",
n);y===void 0||D!=null&&D.toggleAttribute("extract-action-bar",y)};
return l};
_.Z(SO,_.p);_.W=SO.prototype;_.W.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.W.setShortsContentList=function(){var l=this,D=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.zz(this.shortsContentList)):[],U=this.firstShortsData;if(U){var n=this.reelWatchSequenceResponse;if(U=this.shortsController==null?void 0:cqw(D,U,n!=null?n:null)){n=U.newContentList;var y=U.indexChange;if(n.length!==D.length){var A;(A=this.intersectionObserver)==null||A.disconnect();this.shortsContentList=n;y!==0&&(this.index=y,_.BI(_.Tn,function(){var C;(C=l.getActiveReelVideo(y))==
null||C.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});l.movePlayerToVideo(y)},100));
_.Tn.addLowPriorityJob(function(){l.observeShorts()},500)}}}};
_.W.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.W.onResize=function(){var l=_.EB(),D=l.dispatch,U=this.calculateIsSmallWidth();D.call(l,_.V0({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:U}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.W.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.W.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var l=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,D=l,U=0;l<250&&(D=l+this.shortsInnerContainer.clientWidth,U=24);_.Wg(this.hostElement,{"--ytd-shorts-header-width":D+"px","--ytd-shorts-top-spacing":U+"px"})}};
_.W.isFirstShorts=function(l){return l&&!this.enableShortsSequenceRefactorUnify?this.index===-l.length:this.index===0};
_.W.isActiveReel=function(l,D,U){U&&(D=this.calculatePrevIndex(D,U));return l===D};
_.W.onFullscreenChange=function(){_.q("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.Jc().resolve(_.kq).close(!0))};
_.W.engagementPanelsChanged=function(){var l;this.watchWhileEngagementPanels=(l=this.data)==null?void 0:l.engagementPanels};
_.W.unregisterPanels=function(){var l=_.Jc().resolve(_.IH);if(this.watchWhileEngagementPanels)for(var D=_.B(this.watchWhileEngagementPanels),U=D.next();!U.done;U=D.next()){var n=U.value,y=void 0,A=void 0;U=(y=n.engagementPanelSectionListRenderer)==null?void 0:(A=y.identifier)==null?void 0:A.tag;n=this.getPanelIdentifier(n.engagementPanelSectionListRenderer);l&&(U&&l.panelMap.delete(U),n&&_.q("web_shorts_panel_caching_bugfix")&&(y=U=void 0,(y=(U=l).unregisterPanelContent)==null||y.call(U,n)))}};
_.W.isVideoContent=function(l){return this.isVideoContentCommand(l==null?void 0:l.command)};
_.W.getActiveReelVideo=function(l){return _.iJ(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+l+'"]')};
_.W.calculatePrevIndex=function(l,D){return D?l-((D==null?void 0:D.length)||0):-1};
_.W.onKeydown=function(l){var D=_.$f(l)||[];if(!_.esq(D))if(l.code==="ArrowUp")l.preventDefault(),this.handlePrevButtonClick();else if(l.code==="ArrowDown")l.preventDefault(),this.handleNextButtonClick();else if(l.code==="KeyM")this.toggleMuteUnmuteVideo();else if(l.code==="KeyK"||l.code==="Space")this.togglePlayPauseVideo();else if((l.code==="KeyA"||l.code==="ArrowLeft")&&_.q("web_shorts_keyboard_enable_seek_shortcuts")){var U;(U=this.player)==null||U.seekBy(-5)}else if((l.code==="KeyD"||l.code===
"ArrowRight")&&_.q("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var n;(n=this.player)==null||n.seekBy(5)}};
_.W.onServiceRequestCompleted=function(l,D){l=D.data;if(this.enableShortsSequenceRefactorUnify){if(l.continuationEndpoint||l.prevContinuationEndpoint)this.reelWatchSequenceResponse=l}else l.continuationEndpoint&&l.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:l.entries,continuationEndpoint:l.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=l):l.prevContinuationEndpoint&&l.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:l.prevEntries,
prevContinuationEndpoint:l.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.W.handleEngagementPanelVisibilityChanged=function(l,D){var U=_.Jc().resolve(_.IH);if(l&&U){var n=this.getPanelIdentifier(l);if(D==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==n){U.hidePanel({identifier:this.activePanel});var y;this.activePanel=((y=l.identifier)==null?void 0:y.tag)||l.panelIdentifier}else this.isPersistentPanelActive=!0,_.EB().dispatch(p_T(!0)),this.anchoredPanelActive=!0,this.activePanel=n;else D==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===n&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.EB().dispatch(p_T(!1)))}};
_.W.handlePanelScrimClick=function(){var l=_.Jc().resolve(_.IH);this.activePanel&&(l.hidePanel({identifier:this.activePanel}),_.EB().dispatch(p_T(!1)))};
_.W.getShortsLoopSetting=function(){var l,D,U,n,y;return _.P(function(A){switch(A.nextAddress){case 1:return _.q("kevlar_shorts_auto_advance")?A.yield(_.Hq.getInstance(),2):A.return(!0);case 2:return(l=A.yieldResult)?A.yield(l.get("sfvles"),3):A.return(!0);case 3:return U=(D=A.yieldResult)!=null?D:!1,A.yield(l.get("sfvle"),4);case 4:return y=(n=A.yieldResult)!=null?n:!0,U?A.return(y):A.return(!0)}})};
_.W.handleSignalActionToggleLoopShortsOff=function(){var l=this,D,U,n;return _.P(function(y){switch(y.nextAddress){case 1:if(!l.player)return y.return();l.player.setLoopVideo(!1);D=_.he();_.xM(D,l.loopToggleOffVe);return y.yield(_.Hq.getInstance(),2);case 2:return(U=y.yieldResult)?y.yield(U.set("sfvle",!1),3):y.return();case 3:return y.yield(U.set("sfvles",!0),4);case 4:n=_.bu(),_.gj(0,203,!1),_.gj(0,204,!0),n.save(),_.Kz(y)}})};
_.W.handleSignalActionToggleLoopShortsOn=function(){var l=this,D,U,n;return _.P(function(y){switch(y.nextAddress){case 1:if(!l.player)return y.return();l.player.setLoopVideo(!0);D=_.he();_.xM(D,l.loopToggleOnVe);return y.yield(_.Hq.getInstance(),2);case 2:return(U=y.yieldResult)?y.yield(U.set("sfvle",!0),3):y.return();case 3:return y.yield(U.set("sfvles",!0),4);case 4:n=_.bu(),_.gj(0,203,!0),_.gj(0,204,!0),n.save(),_.Kz(y)}})};
_.W.handleSignalActionToggleCinematicShortsOn=function(){MNg(!0);var l;(l=this.JSC$22860_cinematicController)==null||_.WUh(l,!0);_.xM(_.he(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.W.handleSignalActionToggleCinematicShortsOff=function(){MNg(!1);var l;(l=this.JSC$22860_cinematicController)==null||_.WUh(l,!1);_.xM(_.he(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.W.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.W.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.W.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var l=this.overlayContainer.querySelector("#experiment-overlay");l&&_.Tn.addLowPriorityJob(function(){l.style.display="unset"},100)}else if(this.overlayContainer){var D;
((D=this.playerElement.getPlayer())==null?void 0:D.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.W.getCurrentShort=function(){if(this.currentEndpoint){var l=this.currentEndpoint;if(this.isNonVideoContentCommand(l)){var D=_.M(l,_.DS);return{reelNonVideoContentRenderer:_.M(D==null?void 0:D.renderer,_.nM),command:l}}if(this.data){var U;D=(U=_.M(this.currentEndpoint,_.vk))==null?void 0:U.thumbnail;var n;U=(n=this.data.overlay)==null?void 0:n.reelPlayerOverlayRenderer;_.Jc().resolve(_.Fl);l=this.data;var y,A;n=(y=l.overlay)==null?void 0:(A=y.shortsAdsRenderer)==null?void 0:A.adSlots;if(n!==void 0)n.length===
0?(_.jq("Shorts ads returned no ad slots."),l=void 0):(n.length>1&&_.jq("Shorts ads has more than one ad slots."),l=_.M(n[0],_.jpy));else{var C,h;l=_.M((C=l.overlay)==null?void 0:(h=C.shortsAdsRenderer)==null?void 0:h.overlay,_.jpy)}C=l;l=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.M(this.currentEndpoint,_.vk),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var b;return{reelPlayerOverlayRenderer:U,thumbnail:D,command:l,adsOverlay:C,
videoId:(b=_.M(this.currentEndpoint,_.vk))==null?void 0:b.videoId}}}};
_.W.created=function(){var l=this;this.scrollToVideoThrottle=new _.A1(function(D,U){U=U===void 0?"smooth":U;var n;(n=l.getActiveReelVideo(D))==null||n.scrollIntoView({behavior:U,block:"nearest",inline:l.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.Jc().resolve(_.Fl);this.maybeCreateIntersectionObserver()};
_.W.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.W.attached=function(){var l=this;_.Jc().resolve(_.Fl).registerRootElement(this);this.pageScrollElement=_.iJ(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.CY(this,this.processResetAction));_.q("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){l.maybeCreateIntersectionObserver();l.scrollToVideoThrottle.fire(l.activeIndex,"instant");l.shortsContainer.style.overflowY=
"scroll"}))};
_.W.updateReelWatchSequenceResponse=function(){var l=this,D;if(_.q("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((D=_.M(this.currentEndpoint,_.vk))==null?0:D.sequenceParams)&&!this.reelWatchSequenceResponse){var U;(U=this.shortsController)==null||dVH(U,this.currentEndpoint).then(function(n){n&&(l.reelWatchSequenceResponse=n,_.Tn.addLowPriorityJob(function(){l.observeShorts()}))})}};
_.W.calculateSqueezebackPanelSize=function(){var l=this,D=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Tn.addLowPriorityJob(function(){D<360?_.EB().dispatch(xVk(!0)):(l.hostElement.style.setProperty("--anchored-panel-width",Math.min(D,480)+"px"),_.EB().dispatch(xVk(!1)))})};
_.W.detached=function(){var l=_.Jc().resolve(_.Fl);l.rootElement=void 0;var D;(D=l.unsubscribeFromStore)==null||D.call(l);l.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.CY(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.W.onResizeFinished=function(l,D){var U=this,n=new ResizeObserver(function(){U.shortsContainer.style.overflowY="hidden";_.Tn.addLowPriorityJob(function(){D()},100)});
n.observe(l);return n};
_.W.resetDocumentScrollTop=function(){var l,D;if((l=document)==null?0:(D=l.scrollingElement)==null?0:D.scrollTop)document.scrollingElement.scrollTop=0};
_.W.loadPage_=function(l){var D=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),l){var U;if((U=_.M(this.currentEndpoint,_.vk))==null?0:U.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=l;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){D.isPlayerStarted&&
(D.handleOnPlaybackCommand(),D.afterPlayerStarted=function(){})};
this.registerPanel(l)}};
_.W.afterPlayerStarted=function(){};
_.W.handleOnPlaybackCommand=function(){if(_.q("web_shorts_comment_stickers")&&this.isPlayerStarted){var l,D=(l=_.M(this.currentEndpoint,_.vk))==null?void 0:l.onPlaybackCommand;D&&this.ytComponentBehavior.resolveCommand(D)}};
_.W.maybeCreateIntersectionObserver=function(){var l=this,D=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==D){this.intersectionObserverThreshold=D;var U={rootMargin:"0px",threshold:D},n;(n=this.intersectionObserver)==null||n.disconnect();this.intersectionObserver=new IntersectionObserver(function(y){y=_.B(y);for(var A=y.next();!A.done;A=y.next())if(A=A.value,A.intersectionRatio>D){A=Number(A.target.id);if(isNaN(A))break;if(A===l.index)break;
_.s69();l.loadVideo(A);_.XI("r_vtc")}},U);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.W.observeShorts=function(){var l,D,U,n=this.enableShortsSequenceRefactorUnify?((l=this.shortsContentList)==null?void 0:l.length)||0:(((D=this.shortsProcessedPrevSequence)==null?void 0:D.length)||0)+(((U=this.shortsProcessedSequence)==null?void 0:U.length)||0);this.carouselContainers.length<n&&(this.carouselContainers=[].concat(_.zz(_.iJ(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))));l=_.B(this.carouselContainers);for(D=l.next();!D.done;D=l.next())D=D.value,U=void 0,(U=this.intersectionObserver)==
null||U.observe(D)};
_.W.initCsi=function(){_.vFI("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var l={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"}},D,U;if((D=this.playerData)==null?0:(U=D.cacheMetadata)==null?0:U.isCacheHit)l.isCacheHit=!0;var n;if(D=(n=_.M(this.currentEndpoint,_.vk))==null?void 0:
n.prefetchTaskId)l.prefetchInfo={taskId:D};_.ZP(l)};
_.W.isAd=function(){var l,D;return!!((l=_.M(this.currentEndpoint,_.vk))==null?0:(D=l.adClientParams)==null?0:D.isAd)};
_.W.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.W.getPlayerContainer=function(){var l;return(l=_.iJ(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:l.playerContainer};
_.W.onPlayerStateChange=function(l){var D=this;this.isPlayerPaused=l===2;l!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?l===1&&this.index===0&&(this.isPlayerStarted||_.EB().dispatch(jw1(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.EB().dispatch(jw1(!0)));this.player&&!this.player.getLoopVideo()&&_.Tn.addLowPriorityJob(function(){D.getShortsLoopSetting().then(function(U){var n;(n=D.player)==null||n.setLoopVideo(U)})});
this.isPlayerPaused&&_.q("web_shorts_paused_state_logging")&&_.wj(_.t6(),[this.reelPlayerPausedStateRendererVe])};
_.W.isShortPlayable=function(){if(_.q("kevlar_playable_short_killswitch"))return!0;var l;return(l=this.playerData)!=null&&l.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.W.setNormalPlaybackSpeed=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(l.getPlayer().getPlayerPromise(),2);D=n.yieldResult;U=D.getPlaybackRate();U!==1&&(l.storedPlaybackSpeed=U,D.setPlaybackRate(1));_.Kz(n)})};
_.W.restorePlaybackSpeed=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1)return l.storedPlaybackSpeed===null?U.jumpTo(0):U.yield(l.getPlayer().getPlayerPromise(),3);D=U.yieldResult;D.setPlaybackRate(l.storedPlaybackSpeed);l.storedPlaybackSpeed=null;_.Kz(U)})};
_.W.playerDataChanged=function(){var l=this,D,U,n,y,A,C,h,b,u;return _.P(function(Q){if(Q.nextAddress==1){D=l.getPlayer();l.enableShortsSequenceRefactorUnify||(U=l.intersectionObserver)==null||U.disconnect();if(l.playerData){if(((n=l.playerData.videoDetails)==null?void 0:n.videoId)!==((y=D.getPlayer())==null?void 0:y.getVideoData().video_id)){A={};if(C=_.M(l.currentEndpoint,_.vk))A.watch_endpoint=C,C.endTimeSeconds&&(A.end=C.endTimeSeconds);D.loadVideoWithPlayerResponse(l.playerData,A)}}else return Q.return();
return l.player?Q.jumpTo(2):Q.yield(D.getPlayerPromise(),3)}Q.nextAddress!=2&&(l.player=Q.yieldResult,l.JSC$22860_playerStateChangeListener=l.onPlayerStateChange.bind(l),l.player.addEventListener("onStateChange",l.JSC$22860_playerStateChangeListener),_.q("kevlar_client_enable_shorts_player_bootstrap")&&_.p4(),l.scrollToVideoThrottle.fire(l.index),l.movePlayerToVideo(l.index),_.Tn.addLowPriorityJob(function(){l.getShortsLoopSetting().then(function(G){var J;(J=l.player)==null||J.setLoopVideo(G)})}),
_.T_g.resolve(l.player),l.player.syncVolume(),l.getPlayer().focusOnPlayer());
l.enableShortsSequenceRefactorUnify||_.Tn.addLowPriorityJob(function(){l.observeShorts()},100);
h=l.player.getPlayerState(l.player.getPresentingPlayerType());h!==1||l.isPlayerStarted||_.EB().dispatch(jw1(!0));l.updateBackNavContainerWidth();b=_.M(l.currentEndpoint,_.vk);((u=b)==null?0:u.startTimeSeconds)&&l.player.seekTo(b.startTimeSeconds);if(l.JSC$22860_cinematicController||l.cinematicsInitializeJobId)return Q.return();l.cinematicsInitializeJobId=_.Tn.addLowPriorityJob(function(){l.initCinematicController();l.cinematicsInitializeJobId=void 0});
_.Kz(Q)})};
_.W.onShortUndoDismiss=function(){var l=this,D=kpg().pop();D!==void 0&&(_.u6(this,function(){l.showCardWithIndex(D)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.W.onShortsDismiss=function(l){if(l=l.detail.reelDismissalActionRenderer)(l=_.M(l.onDismissalCompletionRenderer,_.rAq))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:l}}}),this.scrollAndDismissCard()};
_.W.processReelNonVideoContentDismissalCommand=function(l){var D=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);l=_.M(l,Eih);this.activeDimissalTimeout=setTimeout(function(){D.scrollAndDismissCard()},Number(l==null?void 0:l.delayMs))};
_.W.scrollAndDismissCard=function(){var l=this,D=this.index;kpg().push(D);_.u6(this,function(){var U=l.getPlayableNextIndex();U!==null&&(l.hideCardWithIndex(D),l.scrollToVideoThrottle.fire(U))})};
_.W.hideCardWithIndex=function(l){if(l=this.getActiveReelVideo(l))l.hidden=!0};
_.W.showCardWithIndex=function(l){if(l=this.getActiveReelVideo(l))l.hidden=!1};
_.W.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.W.activeChanged=function(l){_.EB().dispatch(_.V0({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:l}}));if(l)document.addEventListener("keydown",_.CY(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var D;(D=this.player)==null||D.sendAbandonmentPing()}var U;(U=this.player)==null||U.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.CY(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.W.graftClientVisualElements=function(){if(this.data){var l=_.he();_.$4r(l,_.Ut({response:this.reelWatchSequenceResponse}));_.cq(l,this.nextReelVe);_.cq(l,this.prevReelVe);_.q("kevlar_shorts_auto_advance")&&(_.cq(l,this.loopToggleOffVe),_.cq(l,this.loopToggleOnVe));_.cq(l,this.ambientModeToggleVe);_.wj(_.t6(),[this.nextReelVe,this.prevReelVe]);_.q("web_shorts_paused_state_logging")&&_.cq(l,this.reelPlayerPausedStateRendererVe)}};
_.W.graftNvcRenderer=function(){var l,D,U,n,y,A,C=this.enableShortsSequenceRefactorUnify?(l=this.shortsContentList)==null?void 0:(D=l[this.index])==null?void 0:D.command:this.index<0?(U=this.shortsProcessedPrevSequence)==null?void 0:(n=U[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:n.command:(y=this.shortsProcessedSequence)==null?void 0:(A=y[this.index])==null?void 0:A.command;if(C&&this.isNonVideoContentCommand(C)){l=_.M(C,_.DS);var h,b;(l=(h=_.M(l==null?void 0:l.renderer,_.nM))==
null?void 0:(b=h.loggingDirectives)==null?void 0:b.trackingParams)&&_.he().graftServerVe(l)}};
_.W.setActiveIndex=function(){_.Jc().resolve(_.Fl).setActiveIndex(this.index)};
_.W.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.W.lazyUpdateMiniplayerData=function(){var l=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Tn.addLowPriorityJob(function(){l.updateMiniplayerData();l.updateMiniplayerDataJobId=void 0}))};
_.W.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Tn.cancelJob(this.updateMiniplayerDataJobId)};
_.W.updateMiniplayerData=function(){var l,D,U,n=_.Jc().resolve(_.kq),y={shortsData:this.getCurrentShort(),previousButtonDisabled:!((l=this.prevButtonData)==null||!l.isDisabled),nextButtonDisabled:!((D=this.nextButtonData)==null||!D.isDisabled),playabilityStatus:(U=this.playerData)==null?void 0:U.playabilityStatus};_.F1(n,y)};
_.W.resetPlayerLocation=function(){var l=this.getPlayer();this.initialPlayerContainer&&l.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.W.movePlayerToVideo=function(l,D){var U=this;D=D===void 0?!0:D;var n=this.getActiveReelVideo(l),y=this.getPlayer();if(n){this.overlayContainer?n.appendChild(this.overlayContainer):(this.overlayContainer=_.iJ(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,n.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||y.appendTo(this.overlayContainer.playerContainer,void 0,!0));var A;(A=this.player)==null||A.setSize(NaN,NaN);this.isActive||_.oI(_.Tn,function(){U.isActive=
!0});
y.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.q("reels_web_disable_rtr_tick")||_.q("reels_web_use_pbs_first_shorts")&&l===0||_.ae("r_tr");this.currentPlayerIndex=l;n.appendChild(this.errorScreenContainer);var C;(C=this.JSC$22860_cinematicController)==null||_.Chj(C)}else D?_.Tn.addLowPriorityJob(function(){U.movePlayerToVideo(U.index,!1)}):Math.random()<=_.RG("web_shorts_error_logging_threshold")&&_.Tj(new _.rc("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:D,
index:l}))};
_.W.enableFormatFirst=function(l){return _.q("web_enable_format_first")||l.adsOverlay&&_.q("web_enable_format_first_ads_only")||l.reelPlayerOverlayRenderer&&_.q("web_enable_format_first_organic_only")};
_.W.getAspectRatio=function(l){if(this.enableFormatFirst(l))return(l==null?0:l.thumbnail)&&Gpq(l.thumbnail)?"--ytd-shorts-player-ratio: "+Gpq(l.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.W.getBackgroundImage=function(l){if(l!=null&&l.thumbnail)return(l=_.H9(l.thumbnail.thumbnails))?'background-image:url("'+l+'");':"background-color:black;"};
_.W.onPersistentPanelActiveChanged=function(){var l=this.getCurrentShort();if(l&&this.enableFormatFirst(l)&&(l==null?0:l.thumbnail)&&Gpq(l.thumbnail)!==.5625){var D;(D=this.player)==null||D.setSize(NaN,NaN)}};
_.W.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.W.moveCinematicsToVideo=function(){var l=_.iJ(this.hostElement).querySelector("ytd-reel-video-renderer");(l==null?0:l.cinematicContainer)&&l.cinematicContainer!==this.shortsCinematicContainer.parentElement&&l.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.W.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.W.updatePrevButtonData=function(){var l=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);l?this.prevButtonData=l=Object.assign({},l,{accessibility:{label:_.C3("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.C3("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=l=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.W.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.W.updateNextButtonData=function(){var l=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);l&&(this.nextButtonData=l=Object.assign({},l,{accessibility:{label:_.C3("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.C3("NEXT_VIDEO_LABEL")||""}))};
_.W.getPlayablePreviousIndex=function(){for(var l,D=this.index-1;D>=-(((l=this.prevShortsSequence)==null?void 0:l.length)||0);D--)if(!kpg().includes(D))return D;return null};
_.W.getIndexInSequence=function(l,D){return l.findIndex(function(U){var n;return((n=_.M(U.command,_.vk))==null?void 0:n.videoId)===D})};
_.W.handlePrevButtonClick=function(l){var D=this,U,n;return _.P(function(y){U=D.getPlayablePreviousIndex();if(U===null)return y.return();D.gestureType=((n=l)==null?void 0:n.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";U===0&&(D.hidePreviousButtonImmediately=!0);if(D.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){D.scrollToVideoThrottle.fire(U,"auto")}),y.return();
D.scrollToVideoThrottle.fire(U);_.Kz(y)})};
_.W.getPlayableNextIndex=function(){for(var l,D,U=this.index+1;U<(this.enableShortsSequenceRefactorUnify?(l=this.shortsContentList)==null?void 0:l.length:((D=this.shortsProcessedSequence)==null?void 0:D.length)||0);U++)if(!kpg().includes(U))return U;return null};
_.W.handleNextButtonClick=function(l,D){var U=this,n,y;return _.P(function(A){n=U.getPlayableNextIndex();if(n===null)return A.return();n===1&&(U.showPreviousButtonImmediately=!0);U.gestureType=((y=l)==null?void 0:y.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";D&&(U.gestureType=D);if(U.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){U.scrollToVideoThrottle.fire(n,"auto")}),A.return();
U.scrollToVideoThrottle.fire(n);_.Kz(A)})};
_.W.handleReelNavigateCommand=function(l,D,U){(l=_.M(l,swg))&&D&&l.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(U)};
_.W.loadVideo=function(l,D){D=D===void 0?!1:D;if(l!==this.currentPlayerIndex){_.EB().dispatch(jw1(!1));if(this.isAd()&&!D){var U;(U=this.player)==null||U.notifyShortsAdSwipeEvent()}if((D=this.JSC$22860_cinematicController)!=null){var n;(n=D.currentCinematicEffect)==null||n.pause()}if((n=this.JSC$22860_cinematicController)!=null){var y;(y=n.currentCinematicEffect)==null||y.clear()}n=l>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(n));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var A,C,h,b,u,Q;y=this.enableShortsSequenceRefactorUnify?(A=this.shortsContentList)==null?void 0:(C=A[l])==null?void 0:C.command:l<0?(h=this.shortsProcessedPrevSequence)==null?void 0:(b=h[this.shortsProcessedPrevSequence.length+l])==null?void 0:b.command:(u=this.shortsProcessedSequence)==null?void 0:(Q=u[l])==
null?void 0:Q.command;this.index=l;this.gestureType||(this.gestureType=n?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");y&&this.isVideoContentCommand(y)&&(this.ytComponentBehavior.resolveCommand(y,{form:{createScreenConfig:{clickedVisualElement:n?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(y&&this.isNonVideoContentCommand(y)){this.currentEndpoint=y;this.data=void 0;A=_.he();C=_.M(y,_.DS);var G,J;(C=(G=
_.M(C==null?void 0:C.renderer,_.nM))==null?void 0:(J=G.screenLoggingData)==null?void 0:J.screenVeType)&&_.KM(A,C);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(G=this.getActiveReelVideo(l))&&G.appendChild(this.overlayContainer)}var L,R;G=this.enableShortsSequenceRefactorUnify?((L=this.shortsContentList)==null?void 0:L.length)===l+1:((R=this.reelWatchSequenceResponse)==null?void 0:R.entries)&&l===this.reelWatchSequenceResponse.entries.length-1;var a;if(((a=
this.reelWatchSequenceResponse)==null?0:a.continuationEndpoint)&&G){var S,d;L={contentPlaybackContext:_.iD({},(d=_.M((S=this.currentEndpoint)==null?void 0:S.commandMetadata,_.W6))==null?void 0:d.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:L})}var c,N;l=this.enableShortsSequenceRefactorUnify?l===0:l===-(((c=this.reelWatchSequenceResponse)==null?void 0:(N=c.prevEntries)==null?void 0:N.length)||0);var z,f;((z=this.reelWatchSequenceResponse)==
null?0:z.prevContinuationEndpoint)&&((f=this.reelWatchSequenceResponse)==null?0:f.prevEntries)&&l&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.W.setMiniplayerPreview=function(l){l=(l===void 0?0:l)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var D,U,n,y,A=_.Jc().resolve(_.kq),C={shortsData:void 0,shortsPreviewThumbnail:l?this.enableShortsSequenceRefactorUnify?(D=this.shortsContentList)==null?void 0:(U=D[l])==null?void 0:U.thumbnail:(n=this.shortsProcessedSequence)==null?void 0:(y=n[l])==null?void 0:y.thumbnail:void 0};_.F1(A,C)};
_.W.updateTitle=function(l){var D,U;l=(l==null?0:l.adSlots)?"":(U=l==null?void 0:(D=l.videoDetails)==null?void 0:D.title)!=null?U:"";_.O9(this.hostElement,"yt-update-title",l)};
_.W.registerPanel=function(l){var D=_.Jc().resolve(_.IH);if(D){l=_.B(l.engagementPanels||[]);for(var U=l.next();!U.done;U=l.next()){U=U.value;var n=this.getPanelIdentifier(U.engagementPanelSectionListRenderer),y=void 0,A=void 0;(A=(y=D).registerPanelContent)==null||A.call(y,n,U)}}};
_.W.getPanelIdentifier=function(l){var D;return(l==null?void 0:(D=l.identifier)==null?void 0:D.tag)||(l==null?void 0:l.panelIdentifier)||(l==null?void 0:l.targetId)};
_.W.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.EB().dispatch(jw1(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=[];_.EB().dispatch(p_T(!1));
var l;(l=this.shortsController)!=null&&(l.dismissedIndices=[]);var D;(D=this.shortsController)!=null&&D.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.Jc().resolve(_.kq).close(!0)};
_.W.processAppendReelWatchSequenceContinuationEntriesAction=function(l){var D=this,U;(U=this.intersectionObserver)==null||U.disconnect();l=l.appendReelWatchSequenceContinuationEntriesAction;if(l==null?0:l.entries){var n;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.zz(((n=this.reelWatchSequenceResponse)==null?void 0:n.entries)||[]),_.zz(l.entries)),continuationEndpoint:l.continuationEndpoint})}else if(l==null?0:l.prevEntries){var y;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.zz(((y=this.reelWatchSequenceResponse)==null?void 0:y.prevEntries)||[]),_.zz(l.prevEntries)),prevContinuationEndpoint:l.prevContinuationEndpoint});_.Tn.addLowPriorityJob(function(){D.movePlayerToVideo(D.index);D.scrollToVideoThrottle.fire(D.index,"instant")})}else return;
_.Tn.addLowPriorityJob(function(){D.observeShorts()},100)};
_.W.processWatchSequence=function(l){var D=this;return l.map(function(U){U=U.command;if(D.isVideoContentCommand(U)){var n=_.M(U,_.vk);return{reelPlayerOverlayRenderer:_.M(n==null?void 0:n.overlay,_.iFh),thumbnail:n.thumbnail,command:U}}return D.isNonVideoContentCommand(U)?(n=_.M(U,_.DS),{reelNonVideoContentRenderer:_.M(n==null?void 0:n.renderer,_.nM),command:U}):{command:U}})};
_.W.calculateIntersectionObserverThreshold=function(){var l=_.iJ(this.hostElement).querySelector("ytd-reel-video-renderer"),D=1;(l==null?0:l.offsetHeight)&&(l==null?0:l.offsetWidth)&&(D=Math.min(l.offsetHeight,this.shortsContainer.offsetHeight)/l.offsetHeight*(Math.min(l.offsetWidth,this.shortsContainer.offsetWidth)/l.offsetWidth));return Math.round(D*.6*10)/10};
_.W.isVideoContentCommand=function(l){_.Jc().resolve(_.Fl);return!!_.M(l,_.vk)};
_.W.isNonVideoContentCommand=function(l){_.Jc().resolve(_.Fl);return!!_.M(l,_.DS)};
_.W.initCinematicController=function(){var l=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22860_cinematicController=new _.qS(this.shortsCinematicContainer,this.player);var D,U=_.M((D=this.data)==null?void 0:D.background,_.l2);_.BMh(this.JSC$22860_cinematicController,U);_.WUh(this.JSC$22860_cinematicController,qPg(U));_.Aqj(this.JSC$22860_cinematicController);_.Tn.addLowPriorityJob(function(){l.moveCinematicsToVideo()})}};
_.W.handleMiniplayerNavigateShorts=function(l){l==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():l==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.W.handleSignalActionToggleShortsPictureInPicture=function(){if(_.Jc().resolve(_.kq).pictureInPictureSupported()){var l=_.Jc().resolve(_.Fl);if(_.q("web_shorts_pip")){var D=_.Jc().resolve(_.kq);l.isShortsPipActive()?D.deactivate():D.isMiniplayerActive()||(_.r3().shortsPipActivation=!0,_.htr(D))}}else(l=this.player)==null||l.togglePictureInPicture()};
_.QP.Object.defineProperties(SO.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.reelWatchSequenceResponse)!=null&&l.prevEntries)return this.processWatchSequence([].concat(_.zz(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.zz(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.reelWatchSequenceResponse)!=null&&l.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var l=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var D;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((D=this.shortsProcessedSequence)==null?void 0:D.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var U;D=_.M((U=this.firstShortsData)==null?void 0:U.command,_.vk);if(D==null||!D.videoId)return this.shortsProcessedSequence;U=this.getIndexInSequence(this.shortsSequence,
D.videoId);if(U!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=U,_.Tn.addLowPriorityJob(function(){l.scrollToVideoThrottle.fire(l.index,"auto");l.movePlayerToVideo(l.index)}));
return[].concat(_.zz(this.shortsSequence))}_.BI(_.Tn,function(){l.observeShorts()},100);
return[this.firstShortsData].concat(_.zz(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var l=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;l&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(l)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var l;return this.index===((l=this.shortsContentList)==null?NaN:l.length)-1}if(this.endOfNextContinuation){var D,U;return this.index===((D=this.reelWatchSequenceResponse)==null?void 0:(U=D.entries)==null?void 0:U.length)}var n;return!((n=this.reelWatchSequenceResponse)==null?0:n.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var l;(l=this.delayedActiveIndexUpdateDebouncer)==null||l.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return this.isShortPlayable()||((D=_.M((l=this.data)==null?void 0:l.watchStatus,_.Ct_))==null?void 0:(U=D.style)==null?void 0:U.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var l=this,D=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),U;if((this.data||D)&&(((U=this.data)==null?0:U.engagementPanels)||this.isAd()||D)){D=!1;this.activePanel="shorts-comments-panel";var n;U=_.B(((n=this.data)==null?void 0:n.engagementPanels)||[]);for(n=U.next();!n.done;n=U.next())if(this.getPanelIdentifier(n.value.engagementPanelSectionListRenderer)===this.activePanel){D=!0;break}if(this.isPersistentPanelActive){var y=
_.Jc().resolve(_.IH);_.oI(_.Tn,function(){y.showPanel({identifier:l.activePanel,target:null})},100)}var A;
n=[].concat(_.zz(Object.values(((A=this.data)==null?void 0:A.engagementPanels)||{})));A=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);U=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return A===void 0&&U===void 0||(A==null?0:A.isDisabled)||(U==null?void 0:U.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!D?(D=n==null?void 0:n.findIndex(function(C){var h,b;return((h=C.engagementPanelSectionListRenderer)==null?void 0:(b=h.identifier)==null?void 0:b.tag)==="shorts-comments-panel"}),D===-1||D===void 0||n!=null&&n.splice(D,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.C3("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.C3("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:_.C3("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.C3("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(_.zz(Object.values(n||
{})))):n}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var l=this,D,U,n;if((D=this.playerData)==null?0:(U=D.playabilityStatus)==null?0:(n=U.errorScreen)==null?0:n.playerInterstitialRenderer)return _.Tn.addLowPriorityJob(function(){l.movePlayerToVideo(l.index)}),this.playerData.playabilityStatus.errorScreen;
var y,A;return((y=this.data)==null?void 0:y.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((A=this.data)==null?0:A.watchStatus)&&_.M(this.data.watchStatus,_.Si8)?(_.Tn.addLowPriorityJob(function(){l.movePlayerToVideo(l.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.QP.Object.defineProperties(SO,{template:{configurable:!0,enumerable:!0,get:function(){if(YPI===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);YPI=l}l=YPI;return l}}});
SO.prototype.onNextButtonDataChange=SO.prototype.onNextButtonDataChange;SO.prototype.onPrevButtonDataChange=SO.prototype.onPrevButtonDataChange;SO.prototype.onPersistentPanelActiveChanged=SO.prototype.onPersistentPanelActiveChanged;SO.prototype.lazyUpdateMiniplayerData=SO.prototype.lazyUpdateMiniplayerData;SO.prototype.onShortsPipActiveChanged=SO.prototype.onShortsPipActiveChanged;SO.prototype.setActiveIndex=SO.prototype.setActiveIndex;SO.prototype.graftNvcRenderer=SO.prototype.graftNvcRenderer;
SO.prototype.graftClientVisualElements=SO.prototype.graftClientVisualElements;SO.prototype.onActiveChanged=SO.prototype.onActiveChanged;SO.prototype.onShortsDismiss=SO.prototype.onShortsDismiss;SO.prototype.onShortUndoDismiss=SO.prototype.onShortUndoDismiss;SO.prototype.playerDataChanged=SO.prototype.playerDataChanged;SO.prototype.afterPlayerStarted=SO.prototype.afterPlayerStarted;SO.prototype.updateReelWatchSequenceResponse=SO.prototype.updateReelWatchSequenceResponse;
SO.prototype.unhideCurrentOverlay=SO.prototype.unhideCurrentOverlay;SO.prototype.onServiceRequestCompleted=SO.prototype.onServiceRequestCompleted;SO.prototype.engagementPanelsChanged=SO.prototype.engagementPanelsChanged;SO.prototype.onFullscreenChange=SO.prototype.onFullscreenChange;SO.prototype.onResize=SO.prototype.onResize;SO.prototype.setShortsContentList=SO.prototype.setShortsContentList;SO.prototype.setFirstShortsData=SO.prototype.setFirstShortsData;
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],SO.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.ng.YtPageBehavior),_.T("design:type",Object)],SO.prototype,"ytPageBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],SO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.$s),_.T("design:type",Object)],SO.prototype,"ironResizableBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],SO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],SO.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],SO.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],SO.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],SO.prototype,"playerData",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"reelWatchSequenceResponse",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"cachedReelWatchSequenceResponse",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"cachedSequenceParams",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"cachedSequenceProvider",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"currentEndpoint",void 0);
_.E([_.K(),_.T("design:type",Object)],SO.prototype,"nextButtonData",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"prevButtonData",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"isPreviousPageShorts",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"index",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"delayedActiveIndex",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"playablePreviousIndex",void 0);
_.E([_.K(),_.T("design:type",Object)],SO.prototype,"player",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"isPlayerPaused",void 0);_.E([_.K({selector:LUT}),_.T("design:type",Object)],SO.prototype,"isPlayerStarted",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"intersectionObserver",void 0);_.E([_.K(),_.T("design:type",Number)],SO.prototype,"cinematicsInitializeJobId",void 0);_.E([_.K(),_.T("design:type",Number)],SO.prototype,"updateMiniplayerDataJobId",void 0);
_.E([_.K(),_.T("design:type",Object)],SO.prototype,"fitToVisibleBounds",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"pageSubtype",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],SO.prototype,"enablePreviousContinuation",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"shortsPipEnabled",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"isDark",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"shortsViewTransitions",void 0);_.E([_.K({selector:_.Yv,reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"isFullscreen",void 0);_.E([_.K({selector:_.OE,reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"isShortsPipActive",void 0);_.E([_.gP("#shorts-inner-container"),_.T("design:type",HTMLElement)],SO.prototype,"shortsInnerContainer",void 0);
_.E([_.gP("#back-nav-button ytd-button-renderer"),_.T("design:type",_.M2)],SO.prototype,"backNavButton",void 0);_.E([_.gP("#shorts-container"),_.T("design:type",HTMLElement)],SO.prototype,"shortsContainer",void 0);_.E([_.hF("error-screen"),_.T("design:type",HTMLElement)],SO.prototype,"errorScreenContainer",void 0);_.E([_.hF("player"),_.T("design:type",Object)],SO.prototype,"playerElement",void 0);
_.E([_.hF("shorts-cinematic-container"),_.T("design:type",HTMLElement)],SO.prototype,"shortsCinematicContainer",void 0);_.E([_.hF("initial-player-container"),_.T("design:type",HTMLElement)],SO.prototype,"initialPlayerContainer",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"buttonOverride",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"anchoredPanelActive",void 0);_.E([_.K(),_.T("design:type",String)],SO.prototype,"activePanel",void 0);
_.E([_.K(),_.T("design:type",Object)],SO.prototype,"isActive",void 0);_.E([_.K({selector:Jqh,reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"smallScreenPersistentPanel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"isPersistentPanelActive",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"smallScreenSqueezeBack",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"enableScrollIntoViewCenter",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"formatFirst",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"enableFlexibleOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"extractOverlay",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"useAspectRatio",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],SO.prototype,"enableShortsSequenceRefactorUnify",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"shortsController",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"panelContainer",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"overlayContainer",void 0);_.E([_.K(),_.T("design:type",Array)],SO.prototype,"carouselContainers",void 0);
_.E([_.K(),_.T("design:type",Object)],SO.prototype,"isShortsInitialized",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"firstShortsData",void 0);_.E([_.K(),_.T("design:type",Object)],SO.prototype,"firstShortsDataModel",void 0);_.E([_.K(),_.T("design:type",Array)],SO.prototype,"shortsContentList",void 0);_.E([_.t("reelWatchSequenceResponse"),_.T("design:type",Object),_.T("design:paramtypes",[])],SO.prototype,"prevShortsSequence",null);
_.E([_.t("data","prevShortsSequence"),_.t("data","prevShortsSequence"),_.T("design:type",Object),_.T("design:paramtypes",[])],SO.prototype,"shortsProcessedPrevSequence",null);_.E([_.t("reelWatchSequenceResponse"),_.T("design:type",Object),_.T("design:paramtypes",[])],SO.prototype,"shortsSequence",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"setFirstShortsData",null);
_.E([_.Pg("reelWatchSequenceResponse","firstShortsData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"setShortsContentList",null);_.E([_.t("data","shortsSequence","firstShortsData"),_.T("design:type",Object),_.T("design:paramtypes",[])],SO.prototype,"shortsProcessedSequence",null);
_.E([_.K({reflectToAttribute:!0}),_.t("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],SO.prototype,"isUpArrowHidden",null);_.E([_.K({reflectToAttribute:!0}),_.t("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],SO.prototype,"isDownArrowHidden",null);
_.E([_.K(),_.t("index"),_.T("design:type",Number),_.T("design:paramtypes",[])],SO.prototype,"activeIndex",null);_.E([_.t("isShortPlayable","data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],SO.prototype,"shouldRenderOfflineContent",null);_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"onResize",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],SO.prototype,"anchoredEngagementPanels",null);
_.E([_.K(),_.T("design:type",Object)],SO.prototype,"watchWhileEngagementPanels",void 0);_.E([_.Pg("isFullscreen"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"onFullscreenChange",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"engagementPanelsChanged",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],SO.prototype,"onServiceRequestCompleted",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"unhideCurrentOverlay",null);_.E([_.Pg("currentEndpoint"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"updateReelWatchSequenceResponse",null);
_.E([_.Pg("isPlayerStarted"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"afterPlayerStarted",null);_.E([_.t("playerData","reelWatchSequenceResponse","data"),_.T("design:type",Object),_.T("design:paramtypes",[])],SO.prototype,"errorScreen",null);_.E([_.t("errorScreen"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],SO.prototype,"hasError",null);
_.E([_.Pg("playerData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype",Promise)],SO.prototype,"playerDataChanged",null);_.E([_.hj("yt-dismissible-item-undo-feedback"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"onShortUndoDismiss",null);_.E([_.hj("yt-disable-lockup-interaction"),_.T("design:type",Function),_.T("design:paramtypes",[Object]),_.T("design:returntype")],SO.prototype,"onShortsDismiss",null);
_.E([_.GY("active"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"onActiveChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"graftClientVisualElements",null);_.E([_.Pg("currentPlayerIndex"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"graftNvcRenderer",null);
_.E([_.Pg("index"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"setActiveIndex",null);_.E([_.Pg("isShortsPipActive"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"onShortsPipActiveChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"lazyUpdateMiniplayerData",null);
_.E([_.K(),_.T("design:type",Object)],SO.prototype,"onOverlayDensityChanged",void 0);_.E([_.Pg("isPersistentPanelActive"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"onPersistentPanelActiveChanged",null);_.E([_.Pg("index","data","isUpArrowHidden"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"onPrevButtonDataChange",null);
_.E([_.Pg("index","data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SO.prototype,"onNextButtonDataChange",null);_.E([_.x({is:"ytd-shorts"})],SO);_.Du.registerService(_.uh$,SO);
_.sd();
}catch(e){_._DumpException(e)}
try{
_.Nx("JzFVk");
var h31;var POc;var ix=function(){return _.p.apply(this,arguments)||this};
_.Z(ix,_.p);ix.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ix.prototype.computeBlueBottomLink=function(l){return l};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ix.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.bottomIcon)"}),_.T("design:type",String)],ix.prototype,"bottomIcon",void 0);
_.E([_.K({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.T("design:type",Boolean)],ix.prototype,"enableBlueBottomLink",void 0);_.E([_.x({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],ix);
_.r(ix,"ytd-web-answer-renderer",function(){if(POc!==void 0)return POc;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return POc=l},{mode:_.Vj("kevlar_poly_si_batch_j035")?1:2});var bwl;var lx=function(){var l=_.p.apply(this,arguments)||this;l.hasChipBar=!1;return l};
_.Z(lx,_.p);lx.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}}};
lx.prototype.computeHasChipBar=function(l){return!(l==null||!l.chipBar)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],lx.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.T("design:type",Object)],lx.prototype,"hasChipBar",void 0);_.E([_.x({is:"ytd-search-header-renderer",disableElementRegistration:!0})],lx);
_.r(lx,"ytd-search-header-renderer",function(){if(bwl!==void 0)return bwl;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return bwl=l},{mode:1});var gTl;var DE=function(){return _.p.apply(this,arguments)||this};
_.Z(DE,_.p);DE.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],DE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],DE.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-page-continuation"})],DE);
_.r(DE,"ytd-page-continuation",function(){if(gTl!==void 0)return gTl;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return gTl=l},{mode:1});var utC;var vTh;var Qjh;var GCC=function(){return _.p.apply(this,arguments)||this};
_.Z(GCC,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],GCC.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],GCC.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],GCC);
_.r(GCC,"ytd-watch-card-one-vs-one-event",function(){if(Qjh!==void 0)return Qjh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Qjh=l},{mode:1});var JAW=function(){return _.p.apply(this,arguments)||this};
_.Z(JAW,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],JAW.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],JAW.prototype,"data",void 0);_.E([_.x({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],JAW);
_.r(JAW,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(vTh!==void 0)return vTh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vTh=l},{mode:1});var L7k;var qdl=function(){return _.p.apply(this,arguments)||this};
_.Z(qdl,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qdl.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],qdl.prototype,"data",void 0);_.E([_.x({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],qdl);
_.r(qdl,"ytd-banner-and-box-hero-image-renderer",function(){if(L7k!==void 0)return L7k;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return L7k=l},{mode:1});var MUg;var U$=function(){var l=_.p.apply(this,arguments)||this;l.modern=_.q("web_modern_buttons");return l};
_.Z(U$,_.p);U$.prototype.computeIcon=function(){var l,D,U=(l=this.data)==null?void 0:(D=l.icon)==null?void 0:D.iconType;if(U)return _.UV(U)};
U$.prototype.computeButtonShape=function(){var l;return{buttonText:_.Nl((l=this.data)==null?void 0:l.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.QP.Object.defineProperties(U$.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],U$.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],U$.prototype,"modern",void 0);_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.style"),_.T("design:type",Object),_.T("design:paramtypes",[])],U$.prototype,"buttonColor",null);
_.E([_.x({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],U$);
_.r(U$,"ytd-call-to-action-button-renderer",function(){if(MUg!==void 0)return MUg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return MUg=l},{mode:1});var R3q;var nX=function(){return _.p.apply(this,arguments)||this};
_.Z(nX,_.p);nX.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.iJ(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.IO(this.data.leftThumbnail.thumbnails,216)+")")};
nX.prototype.onLeftThumbnailChanged=nX.prototype.onLeftThumbnailChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],nX.prototype,"data",void 0);_.E([_.Pg("data.leftThumbnail"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],nX.prototype,"onLeftThumbnailChanged",null);_.E([_.x({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],nX);
_.r(nX,"ytd-collage-hero-image-renderer",function(){if(R3q!==void 0)return R3q;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return R3q=l},{mode:1});var Zwq;var y2=function(){return _.p.apply(this,arguments)||this};
_.Z(y2,_.p);y2.prototype.computeStyle=function(l){return l};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],y2.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.T("design:type",String)],y2.prototype,"componentStyle",void 0);_.E([_.x({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],y2);
_.r(y2,"ytd-single-hero-image-renderer",function(){if(Zwq!==void 0)return Zwq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Zwq=l},{mode:1});var e3T;var AW=function(){return _.p.apply(this,arguments)||this};
_.Z(AW,_.p);_.W=AW.prototype;
_.W.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:_.q("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.W.computeSubtitle=function(l){if(this.data){var D;if(this.data.upcomingEventData){l=_.Nl(l.subtitle);var U=Number(this.data.upcomingEventData.startTime);isNaN(U)||(D=_.$B(_.Lq(l,U)))}else D=l.subtitle;return D}};
_.W.onHeroTap=function(l){l.preventDefault();var D=this.data&&this.data.navigationEndpoint;!D||!_.$o(_.$f(l),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.$o(_.$f(l),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.q("kevlar_watchcard_hero_video_renderer_killswitch")?_.O9(this.hostElement,"yt-navigate",{navigationEndpoint:D}):this.ytComponentBehavior.resolveCommand(D))};
_.W.computeHeroTabIndex=function(l){return l&&l.simpleText?-1:0};
_.W.computeHeroRole=function(l){return l&&l.simpleText?"":"link"};
_.W.computeIsReminderButtonPresent=function(l){return!(!l||!l.reminderButton)};
_.W.computeHideBottomItems=function(l){return!(this.computeIsReminderButtonPresent(l)||l.subtitle)};
_.W.dataChanged=function(){var l=this.get("data.buttons.buttonRenderer.serviceEndpoint"),D;((D=_.M(l==null?void 0:l.commandMetadata,_.zd))==null?0:D.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(l)};
AW.prototype.dataChanged=AW.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],AW.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],AW.prototype,"data",void 0);
_.E([_.K({computed:"computeSubtitle(data)"}),_.T("design:type",String)],AW.prototype,"subtitle",void 0);_.E([_.K({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],AW.prototype,"isReminderButtonPresent",void 0);_.E([_.K({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],AW.prototype,"hideBottomItems",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],AW.prototype,"dataChanged",null);_.E([_.x({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],AW);
_.r(AW,"ytd-watch-card-hero-video-renderer",function(){if(e3T!==void 0)return e3T;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return e3T=l},{mode:1});var mx1;var Wu=function(){return _.p.apply(this,arguments)||this};
_.Z(Wu,_.p);_.W=Wu.prototype;_.W.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"}}}};
_.W.computeTitleBadges=function(l){return l?[l]:[]};
_.W.computeHeaderStyle=function(l){return l?l.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.W.computeAvatarAriaLabel=function(l){if(l){var D,U,n,y;return(y=(D=l.avatar)==null?void 0:(U=D.accessibility)==null?void 0:(n=U.accessibilityData)==null?void 0:n.label)!=null?y:_.Nl(l==null?void 0:l.title)}};
_.W.computeAvatarHeight=function(l){return l==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.W.computeBadgeRowClass=function(l){return(l==null?0:l[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Wu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Wu.prototype,"data",void 0);_.E([_.K({computed:"computeTitleBadges(data.titleBadge)"}),_.T("design:type",Array)],Wu.prototype,"titleBadges",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.T("design:type",String)],Wu.prototype,"headerStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.T("design:type",String)],Wu.prototype,"badgeRowClass",void 0);_.E([_.x({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Wu);
_.r(Wu,"ytd-watch-card-rich-header-renderer",function(){if(mx1!==void 0)return mx1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return mx1=l},{mode:1});var ayh;var tUO;var Bu=function(){return _.p.apply(this,arguments)||this};
_.Z(Bu,_.p);Bu.prototype.onMetadataTap=function(l){var D=this.data&&this.data.navigationEndpoint;D&&!_.$o(_.$f(l),this.hostElement,["A".toString()])&&_.O9(this.hostElement,"yt-navigate",{endpoint:D})};
_.QP.Object.defineProperties(Bu.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 l;if(this.data.upcomingEventData){var D=_.Nl(this.data.subtitle),U=Number(this.data.upcomingEventData.startTime);isNaN(U)||(l=_.$B(_.Lq(D,U)))}else l=this.data.subtitle;return l}}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Bu.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data.style"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Bu.prototype,"isCondensed",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Bu.prototype,"subtitle",null);
_.E([_.x({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Bu);
_.r(Bu,"ytd-watch-card-compact-video-renderer",function(){if(tUO!==void 0)return tUO;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return tUO=l},{mode:1});var XEq;var SdT=function(){return _.p.apply(this,arguments)||this};
_.Z(SdT,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],SdT.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],SdT.prototype,"data",void 0);_.E([_.x({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],SdT);
_.r(SdT,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(XEq!==void 0)return XEq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return XEq=l},{mode:1});var CX=function(){return _.p.apply(this,arguments)||this};
_.Z(CX,_.p);CX.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],CX.prototype,"ytRendererStamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],CX.prototype,"data",void 0);_.E([_.x({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],CX);
_.r(CX,"ytd-vertical-watch-card-list-renderer",function(){if(ayh!==void 0)return ayh;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return ayh=l},{mode:1});var kCw;var hW=function(){var l=_.p.apply(this,arguments)||this;l.ariaExpanded="false";return l};
_.Z(hW,_.p);_.W=hW.prototype;_.W.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.W.dataChanged=function(){var l;this.currentSeasonIndex=((l=this.data)==null?void 0:l.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.W.computeEpisodesInfo=function(l,D,U){if(l!==void 0&&D.length===l.length)return l[U]};
_.W.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.W.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.W.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.W.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.W.getUppercaseSimpleString=function(l){return this.ytRendererBehavior.getSimpleString(l).toUpperCase()};
_.W.updateCurrentSeasonIndexFromBinding=function(l){this.currentSeasonIndex=l.detail.value};
hW.prototype.onIronOverlayClosed=hW.prototype.onIronOverlayClosed;hW.prototype.currentSeasonIndexChanged=hW.prototype.currentSeasonIndexChanged;hW.prototype.dataChanged=hW.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hW.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",String)],hW.prototype,"label",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],hW.prototype,"currentSeasonIndex",void 0);_.E([_.K({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.T("design:type",Object)],hW.prototype,"episodesInfo",void 0);_.E([_.K({value:"false"}),_.T("design:type",Object)],hW.prototype,"ariaExpanded",void 0);_.E([_.gP("#lists"),_.T("design:type",Object)],hW.prototype,"lists",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hW.prototype,"dataChanged",null);_.E([_.GY("currentSeasonIndex"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hW.prototype,"currentSeasonIndexChanged",null);_.E([_.hj("iron-overlay-closed"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],hW.prototype,"onIronOverlayClosed",null);
_.E([_.x({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],hW);
_.r(hW,"ytd-watch-card-section-dropdown-renderer",function(){if(kCw!==void 0)return kCw;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return kCw=l},{mode:1});var dxg;var Pu=function(){var l=_.p.apply(this,arguments)||this;l.isSearch=!1;return l};
_.Z(Pu,_.p);Pu.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Pu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Pu.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Pu.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Pu.prototype,"isSearch",void 0);_.E([_.x({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Pu);
_.r(Pu,"ytd-watch-card-section-sequence-renderer",function(){if(dxg!==void 0)return dxg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
return dxg=l},{mode:1});var K7g=_.w(function(l){return _.g("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.g(_.uI,{data:function(){return l.data().ctaButton}},{buttonViewModel:_.t9}),_.g(_.BO,{text:function(){return l.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"rn");
K7g.idomCompat=!0;_.Tt(K7g,"ytd-button-banner-view-model",{props:{data:_.C$}});var bx=function(){var l=_.p.apply(this,arguments)||this;l.isSearch=!1;return l};
_.Z(bx,_.p);
bx.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],bx.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!0}),_.T("design:type",Boolean)],bx.prototype,"rounded",void 0);_.E([_.K(),_.T("design:type",Object)],bx.prototype,"isSearch",void 0);
_.E([_.x({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],bx);
_.r(bx,"ytd-universal-watch-card-renderer",function(){if(utC!==void 0)return utC;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return utC=l},{mode:1});var cAD;_.Tt(_.w(function(l){var D=l.data;var U;l=!((U=_.Jc().resolve(_.G8(_.jQ)))==null||!U());U={};return _.g("overview-message-view-model",{class:_.DV("ytwOverviewMessageViewModelHost",(U.ytwOverviewMessageViewModelDarkBackground=l,U.ytwOverviewMessageViewModelLightBackground=!l,U))},_.g(_.v,{cond:function(){return D().primaryImage},
then:function(n){return _.g(_.rh,{data:n,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.g(_.v,{cond:function(){return D().primaryText},
then:function(){return _.g("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.g(_.BO,{text:function(){return D().primaryText}}))}}),_.g(_.v,{cond:function(){return D().secondaryText},
then:function(){return _.g("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.g(_.BO,{text:function(){return D().secondaryText}}))}}))},"sn"),"overview-message-view-model",{props:{data:_.C$}});_.Tt(_.bCw,"ytd-overview-answer-view-model",{props:{data:_.C$}});var gO=function(){return _.p.apply(this,arguments)||this};
_.Z(gO,_.p);gO.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"}}}};
gO.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.vf),_.T("design:type",Object)],gO.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],gO.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],gO.prototype,"isSearch",void 0);
_.E([_.x({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],gO);
_.r(gO,"ytd-secondary-search-container-renderer",function(){if(cAD!==void 0)return cAD;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
return cAD=l},{mode:1});var pEl;var ux=function(){var l=_.p.apply(this,arguments)||this;l.renderSecondarySearchContainer=!1;l.isSearch=!1;return l};
_.Z(ux,_.p);_.W=ux.prototype;_.W.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.W.created=function(){var l=this;this.boundStampSecondarySearchContainerIfFits=function(){l.stampSecondarySearchContainerIfFits()};
_.IN("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.W.computeIsSearchFrictionPage=function(l){var D,U,n,y,A;l=l==null?void 0:(D=l.primaryContents)==null?void 0:(U=D.sectionListRenderer)==null?void 0:(n=U.contents)==null?void 0:(y=n[0])==null?void 0:(A=y.itemSectionRenderer)==null?void 0:A.contents;if(!l)return!1;D=_.B(l);for(U=D.next();!U.done;U=D.next())if(n=void 0,(n=U.value)==null?0:n.searchFrictionViewModel)return!0;return!1};
_.W.computeShowSecondaryColumn=function(l,D){return!!(D&&D.secondaryContents&&l)};
_.W.activeChanged=function(){var l=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.CY(this,this.debounceStampSecondarySearchContainerIfFits)),_.j0(function(){l.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.CY(this,this.debounceStampSecondarySearchContainerIfFits))};
_.W.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.W.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.W.debounceStampSecondarySearchContainerIfFits=function(){_.Fs(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.W.onRetrieveLocation=function(l,D){D.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);l.stopPropagation()};
_.W.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
ux.prototype.dataChanged=ux.prototype.dataChanged;ux.prototype.onRetrieveLocation=ux.prototype.onRetrieveLocation;ux.prototype.persistentGuideChanged=ux.prototype.persistentGuideChanged;ux.prototype.activeChanged=ux.prototype.activeChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],ux.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.m(_.$s),_.T("design:type",Object)],ux.prototype,"ironResizableBehavior",void 0);_.E([_.K(),_.T("design:type",Boolean)],ux.prototype,"active",void 0);_.E([_.K(),_.T("design:type",Object)],ux.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.T("design:type",Boolean)],ux.prototype,"useBiggerThumbs",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.e_("desktop_search_bigger_thumbs_style")}}),
_.T("design:type",String)],ux.prototype,"biggerThumbsStyle",void 0);_.E([_.K(),_.T("design:type",Object)],ux.prototype,"renderSecondarySearchContainer",void 0);_.E([_.K({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.T("design:type",Boolean)],ux.prototype,"showSecondaryColumn",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.T("design:type",Boolean)],ux.prototype,"isSearchFrictionPage",void 0);
_.E([_.K(),_.T("design:type",Object)],ux.prototype,"isSearch",void 0);_.E([_.Pg("active"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ux.prototype,"activeChanged",null);_.E([_.Pg("guidePersistentAndVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ux.prototype,"persistentGuideChanged",null);
_.E([_.hj("yt-retrieve-location"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],ux.prototype,"onRetrieveLocation",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ux.prototype,"dataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],ux);
_.r(ux,"ytd-two-column-search-results-renderer",function(){if(pEl!==void 0)return pEl;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return pEl=l},{mode:1});var vu=function(){var l=_.p.apply(this,arguments)||this;l.hasSearchHeader=!1;l.hasSecondaryContent=!1;l.hasBiggerThumbs=_.q("enable_desktop_search_bigger_thumbs");l.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return l};
_.Z(vu,_.p);_.W=vu.prototype;_.W.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:_.rw(["aa","eocs"])}}};
_.W.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.W.loadPage_=function(l){this.initCsi();l&&(this.data=l,_.IN("REFINEMENTS_TUPLE",["FromSearchResponse",l.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.hL(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.W.initCsi=function(){_.vFI("results",["ol","cpt"])};
_.W.updateTitle=function(){var l=_.ih(window.location.href,"q");l||(l=_.ih(window.location.href,"search_query"));_.O9(this.hostElement,"yt-update-title",l||"")};
_.W.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.W.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.q("web_srp_data_changed_terminate_imp_killswitch")||_.Vh(this.hostElement,"yt-terminate-video-preview-action")};
_.W.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.W.computeHasSearchHeader=function(l){var D;l=l==null?void 0:(D=l.header)==null?void 0:D.searchHeaderRenderer;return!!l&&(!!l.searchFilterButton||!!l.chipBar)};
_.W.computeHasSecondaryContent=function(l){var D,U;return!!(l==null?0:(D=l.contents)==null?0:(U=D.twoColumnSearchResultsRenderer)==null?0:U.secondaryContents)};
_.QP.Object.defineProperties(vu,{template:{configurable:!0,enumerable:!0,get:function(){if(h31===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);h31=l}l=h31;return l}}});
vu.prototype.onReloadContinuationFinish=vu.prototype.onReloadContinuationFinish;vu.prototype.dataChanged=vu.prototype.dataChanged;_.E([_.m(_.ng.YtPageBehavior),_.T("design:type",Object)],vu.prototype,"ytPageBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],vu.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vu.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],vu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.vf),_.T("design:type",Object)],vu.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vu.prototype,"data",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],vu.prototype,"monitorScroll",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vu.prototype,"hasSearchHeader",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vu.prototype,"hasSecondaryContent",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vu.prototype,"hasBiggerThumbs",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vu.prototype,"dataChanged",null);
_.E([_.hj("yt-reload-continuation-finish"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vu.prototype,"onReloadContinuationFinish",null);_.E([_.x({is:"ytd-search"})],vu);_.Du.registerService(_.g7G,vu);
_.sd();
}catch(e){_._DumpException(e)}
try{
_.Nx("h8y2qb");
var GzO=function(l){if(l=_.Dm_(l)){var D;(D=l.sources)!=null&&D[0]?(D=_.nUc(l),D=D<1?"VERTICAL":D>1?"HORIZONTAL":"SQUARE"):D=void 0;return D}},yD=function(l){_.XC.call(this,"upload");
this.opts.query=l},L6I=function(l,D){return _.g(Jvh,{data:l,
onYtNavigate:D})},qSW=function(l,D){return _.yT(l.entities,"pageHeaderEntity",D)},RUk=function(l,D){return l.map(function(U){if(U.tabRenderer)return Mcl(U.tabRenderer);
if(U.expandableTabRenderer&&D){var n=U.expandableTabRenderer;return{customTabRenderable:function(){return D(n)}}}return{}})},Mcl=function(l){return{identifier:l.tabIdentifier,
aTagConfig:_.SQ({innertubeCommand:l.endpoint,forceNewState:!0}),title:l.title,selected:l.selected,disabled:l.unselectable,icon:l.icon}},Zzg=function(l){return _.V0({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:l})},eUD=function(l){if(!_.HK(document,"gtm-noscript")){var D=document.createElement("noscript");
D.id="gtm-noscript";D.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+l+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(D)}};_.HI(yD,_.XC);yD.prototype.JSC$10155_setLabel=function(l){yD.superClass_.JSC$10155_setLabel.call(this,l);return this};
yD.prototype.addUploadMetadata=function(l,D){yD.superClass_.addUploadMetadata.call(this,l,D);return this};var mqC=function(l){if(l!=="youtubebanner"&&l!=="youtube-channel-banner")throw Error("Oo");yD.call(this,l)};
_.Z(mqC,yD);mqC.prototype.JSC$10155_setLabel=function(l){yD.prototype.JSC$10155_setLabel.call(this,l);return this};
mqC.prototype.addUploadMetadata=function(l,D){yD.prototype.addUploadMetadata.call(this,l,D);return this};var aYw=[_.$s,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(l){_.Ga(l).path[0]!==this&&(this.resetLayout(),l.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var l=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Qb(this._layoutDebouncer,_.Je,l);_.GL(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var l=this;requestAnimationFrame(function(){l.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(l){this.resizerShouldNotify(l)&&this._notifyDescendant(l)},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 tck=[_.lo_,{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(l,D){var U=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[l];if(!U)throw new ReferenceError(this._getUndefinedMsg(l));l=this._boundEffect(U,D||{});l.setUp();return l},
_effectsChanged:function(l,D,U){this._tearDownEffects();l&&U&&(l.split(" ").forEach(function(n){var y;n!==""&&((y=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[n])?this._effects.push(this._boundEffect(y,D[n])):console.warn(this._getUndefinedMsg(n)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(l,D){D=D||{};var U=parseFloat(D.startsAt||0),n=parseFloat(D.endsAt||1),y=n-U,A=function(){};
n=U===0&&n===1?l.run:function(C,h){l.run.call(this,Math.max(0,(C-U)/y),h)};
return{setUp:l.setUp?l.setUp.bind(this,D):A,run:l.run?n.bind(this):A,tearDown:l.tearDown?l.tearDown.bind(this):A}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(l){l.setUp()!==!1&&this._effectsRunFn.push(l.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(l){l.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(l,D){this._effectsRunFn&&this._effectsRunFn.forEach(function(U){U(l,D)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var l=this._clampedScrollTop;this._updateScrollState(l);this.threshold>0&&this._setThresholdTriggered(l>=this.threshold)}},
_getDOMRef:function(l){console.warn("_getDOMRef","`"+l+"` is undefined")},
_getUndefinedMsg:function(l){return"Scroll effect `"+l+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+l+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Po`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(l){var D={};l=parseFloat(l.scalar);D.background=this._getDOMRef("background");D.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");D.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");D.deltaBg=D.backgroundFrontLayer.offsetHeight-D.background.offsetHeight;D.deltaBg===0?(isNaN(l)&&(l=.8),D.deltaBg=(this._dHeight||0)*l):(isNaN(l)&&(l=
1),D.deltaBg*=l);this._fxParallaxBackground=D},
run:function(l){var D=this._fxParallaxBackground;this.transform("translate3d(0px, "+D.deltaBg*Math.min(1,l)+"px, 0px)",D.backgroundFrontLayer);D.backgroundRearLayer&&this.transform("translate3d(0px, "+D.deltaBg*Math.min(1,l)+"px, 0px)",D.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var XYO;var SSO;var kzk=function(){};
_.W=kzk.prototype;_.W._scrollTargetChanged=function(){};
_.W.scroll=function(){};
_.W._isValidScrollTarget=function(){};
_.W._toggleScrollListener=function(){};
_.W.toggleScrollListener=function(){};
_.W.createEffect=function(){};
_.W._effectsChanged=function(){};
_.W._layoutIfDirty=function(){};
_.W._boundEffect=function(){};
_.W._setUpEffect=function(){};
_.W._tearDownEffects=function(){};
_.W._runEffects=function(){};
_.W._scrollHandler=function(){};
_.W._scrollStateChanged=function(){};
_.W._getUndefinedMsg=function(){};
_.W.notifyResize=function(){};
_.W.assignParentResizable=function(){};
_.W.stopResizeNotificationsFor=function(){};
_.W._subscribeIronResize=function(){};
_.W._unsubscribeIronResize=function(){};
_.W.resizerShouldNotify=function(){};
_.W._onDescendantIronResize=function(){};
_.W._fireResize=function(){};
_.W._onIronRequestResizeNotifications=function(){};
_.W._parentResizableChanged=function(){};
_.W._notifyDescendant=function(){};
_.W._requestResizeNotifications=function(){};
_.W._findParent=function(){};
_.W._appResetLayoutHandler=function(){};
_.W.resetLayout=function(){};
_.W._notifyLayoutChanged=function(){};
_.W._notifyDescendantResize=function(){};
_.W._setThresholdTriggered=function(){};
kzk=_.e0({_template:function(){if(SSO!==void 0)return SSO;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;XYO===void 0&&(XYO=document.createElement("template"));var n=XYO;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return SSO=l},
is:"tp-yt-app-header",behaviors:[tck,aYw],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 l=_.Ga(this.$.slot).getDistributedNodes(),D=0,U;U=l[D];D++)if(U.nodeType===Node.ELEMENT_NODE)if(U.hasAttribute("sticky")){this._stickyElRef=U;break}else this._stickyElRef||(this._stickyElRef=U);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var l=this._clampedScrollTop,D=this._height===0||l===0,U=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;D||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();D?this._updateScrollState(l,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=U}},
_updateScrollState:function(l,D){if(this._height!==0){var U=0,n=this._top;var y=this._maxHeaderTop;var A=l-this._lastScrollTop,C=Math.abs(A),h=l>this._lastScrollTop,b=performance.now();this._mayMove()&&(U=this._clamp(this.reveals?n+A:l,0,y));l>=this._dHeight&&(U=this.condenses&&!this.fixed?Math.max(this._dHeight,U):U,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&C<100){if(b-this._initTimestamp>300||this._wasScrollingDown!==h)this._initScrollTop=l,this._initTimestamp=b;l>=y&&
(Math.abs(this._initScrollTop-l)>30||C>10?(h&&l>=y?U=y:!h&&l>=this._dHeight&&(U=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((U-n)/(A/(b-this._lastTimestamp)),0,300)+"ms"):U=this._top)}y=this._dHeight===0?l>0?1:0:U/this._dHeight;D||(this._lastScrollTop=l,this._top=U,this._wasScrollingDown=h,this._lastTimestamp=b);if(D||y!==this._progress||n!==U||l===0)this._progress=y,this._runEffects(y,U),this._transformHeader(U)}},
_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(l){this.translate3d(0,-l+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&l>=this._stickyElTop?Math.min(l,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(l,D,U){return Math.min(U,Math.max(D,l))},
_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),_.Ga(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(l){switch(l){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Ga(this).querySelector("[main-title]");case "condensedTitle":return _.Ga(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var dqc;var K6O;_.e0({_template:function(){if(K6O!==void 0)return K6O;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;dqc===void 0&&(dqc=document.createElement("template"));var n=dqc;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return K6O=l},
is:"tp-yt-app-header-layout",behaviors:[aYw],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Ga(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var l=this.header;if(this.isAttached&&l){this.$.wrapper.classList.remove("initializing");l.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)l.style.left=
"",l.style.right="";else{var D=this.getBoundingClientRect(),U=document.documentElement.clientWidth-D.right;l.style.left=D.left+"px";l.style.right=U+"px"}D=this.$.contentContainer.style;U=l.offsetHeight;l.fixed&&!l.condenses&&this.hasScrollingRegion?(D.marginTop=U+"px",D.paddingTop=""):(D.paddingTop=U+"px",D.marginTop="")}}});var cvO=new _.y4("alertCommand");var pYh=new _.y4("manageLabsStateCommand");var xqk=new _.y4("inlineFormRenderer");var jVj=new _.y4("playlistSidebarPrimaryInfoRenderer");var F6O=new _.y4("productDetailsThumbnailRenderer"),oFh=new _.y4("productDetailsVariantRenderer"),wYh=new _.y4("productDetailsVariantOptionRenderer"),rvO=new _.y4("productDetailsOffersContainerRenderer"),zUO=new _.y4("productDetailsOfferRenderer");var fYO=new _.y4("shoppingFlaggingRenderer");var $qD=new _.y4("playlistBylineRenderer");var NET=new _.y4("insertChannelTabCommand");var An=function(){return _.vg.apply(this,arguments)||this};
_.Z(An,_.vg);_.W=An.prototype;_.W.activeChanged=function(){if(this.active){var l=_.iJ(this.hostElement).querySelector("#header");l&&_.O9(l,"iron-resize");window.addEventListener("scroll",_.CY(this,this.onScroll))}else window.removeEventListener("scroll",_.CY(this,this.onScroll)),_.O9(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.W.guideVisibleChanged=function(){var l=_.iJ(this.hostElement).querySelector("#header");l&&_.O9(l,"iron-resize")};
_.W.onScroll=function(){var l=this;_.Fs(this,"onScroll",function(){var D=_.iJ(l.hostElement).querySelector("#header");D&&D.polymerController&&(D=D.polymerController.getScrollState().progress===1?"standard":"seamed",_.O9(l.hostElement,"yt-request-panel-mode-change",{mode:D}))},10)};
_.W.tabsChanged=function(){if(this.tabs){for(var l=null,D=0,U=this.tabs.length;D<U;++D){var n=this.tabs[D].tabRenderer;if(n&&n.selected){l=D;break}}this.selected=l}};
_.W.onTabsActivate=function(l){_.O9(this.hostElement,"yt-navigate",{endpoint:this.tabs[l.detail.selected].tabRenderer.endpoint})};
An.prototype.tabsChanged=An.prototype.tabsChanged;An.prototype.guideVisibleChanged=An.prototype.guideVisibleChanged;An.prototype.activeChanged=An.prototype.activeChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],An.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.K(),_.T("design:type",Array)],An.prototype,"tabs",void 0);
_.E([_.K(),_.T("design:type",Object)],An.prototype,"selected",void 0);_.E([_.K(),_.T("design:type",Boolean)],An.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],An.prototype,"disableHeaderFluidWidth",void 0);_.E([_.Pg("active"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],An.prototype,"activeChanged",null);
_.E([_.Pg("guidePersistentAndVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],An.prototype,"guideVisibleChanged",null);_.E([_.Pg("tabs"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],An.prototype,"tabsChanged",null);_.E([_.Qj()],An);var sVh=[_.Y.YtRendererBehavior,_.W0.YtdGuideStateAwareBehavior,An.prototype];var EFq=2/3,TEC=_.UE(130749),IYk=function(l,D){var U=this;this.element=l;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){U.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:EFq,moveAction:function(n){U.moveAction(n)},
triggerAction:function(){U.element.isReloading=!0;_.xo(_.he(),{visualElement:TEC});_.yu.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:U.element}})}}}};
_.pM(_.he(),TEC,this.layer);this.gesture=new _.oM(l,D,this.refreshConfig,"pan-down");this.attach()};
_.W=IYk.prototype;_.W.attach=function(){this.gesture.attach()};
_.W.detach=function(){this.gesture.detach()};
_.W.reset=function(){this.element.close()};
_.W.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.W.moveAction=function(l){this.element.rotation=l*360};var Hzk=_.UE(130750),Ozk=function(l,D,U,n,y){var A=this;this.element=l;this.parent=U;this.channelHeader=n;this.ytdReduxDispatch=y;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 C;(C=A.selectedTab)!=null&&C.title&&(C=_.Jc().resolve(_.G8(_.sm)))&&(C=C.getCurrentPage(),A.lastVisitedTabScrollPosition=C.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,C.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:YSq(),triggerAction:function(){A.navigate(A.previousTab)},
moveAction:function(C,h){A.moveAction(C,h)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-YSq(),triggerAction:function(){A.navigate(A.nextTab)},
moveAction:function(C,h){A.moveAction(C,h)}}}};
_.pM(_.he(),Hzk,this.layer);this.gesture=new _.oM(l,D,this.tabConfig);this.attach()};
_.W=Ozk.prototype;_.W.attach=function(){this.gesture.attach()};
_.W.detach=function(){this.gesture.detach()};
_.W.tabsChanged=function(l){if(l){var D=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;l=_.B(l);for(var U=l.next();!U.done;U=l.next()){U=U.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=U);var n=void 0;if((n=U)==null?0:n.selected)this.previousTab=D,this.selectedTab=U;D=U}D=this.gesture;l=this.getConfig();D.config=l;this.scrollPositionNeedsUpdate=!0}};
_.W.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.W.moveAction=function(l,D){if(!this.tabsElement){var U;this.tabsElement=(U=this.parent.header)==null?void 0:U.tabsElement;D==="right"&&this.previousTab?(U=this.previousTab.endpoint,_.COq(_.Jc().resolve(_.JS),U,{},"")):D==="left"&&this.nextTab&&(U=this.nextTab.endpoint,_.COq(_.Jc().resolve(_.JS),U,{},""));if(!this.tabsElement)return}U=this.tabsElement._pos;D==="right"&&(l*=-1);this.tabsElement._positionBar(U.width,U.left*1+U.width*l)};
var YSq=function(){var l,D;return(D=(l=_.Jc().resolve(_.sm).getCurrentPage())==null?void 0:l.clientWidth)!=null?D:0};
Ozk.prototype.navigate=function(l){this.element.data=void 0;if(l=l==null?void 0:l.endpoint)this.ytdReduxDispatch(Zzg(!0)),_.xo(_.he(),{visualElement:Hzk}),_.yu.instance.resolveCommand({navigateAction:{endpoint:l}},{form:{element:this.element}})};var Vcj;var i2O;var WM=function(){return _.p.apply(this,arguments)||this};
_.Z(WM,_.p);WM.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],WM.prototype,"data",void 0);_.E([_.x({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],WM);
_.r(WM,"ytd-labs-edit-renderer",function(){if(i2O!==void 0)return i2O;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return i2O=l},{mode:1});var lUT;var BM=function(){var l=_.p.apply(this,arguments)||this;l.dark=!1;l.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";l.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(BM,_.p);BM.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
BM.prototype.ready=function(){var l=document.documentElement.hasAttribute("dark");this.setBackgroundImage(l);this.dark=l};
BM.prototype.onDarkModeToggledAction=function(l){this.setBackgroundImage(l);this.dark=l};
BM.prototype.setBackgroundImage=function(l){_.Wg(this.hostElement,{"--yt-labs-header-background":"url("+(l?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],BM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],BM.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],BM.prototype,"dark",void 0);
_.E([_.x({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],BM);
_.r(BM,"ytd-labs-header-renderer",function(){if(lUT!==void 0)return lUT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return lUT=l},{mode:1});var DGH;var Cg=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return l};
_.Z(Cg,_.p);Cg.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"}}}}}};
Cg.prototype.onYtToggleButton=function(l){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",l.detail.toggled)};
Cg.prototype.onManageLabsState=function(l){if(l=_.M(l,pYh))l.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?l.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&l.labsItemId===this.data.labsItemId&&(l.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Vh(this.hostElement,"yt-check-labs-opted-in-state").some(function(D){return D})&&this.data.confirmationDialogCommand?_.DP(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.Jc().resolve(_.qK).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&l.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.Jc().resolve(_.qK).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Cg.prototype.onCheckLabsOptedInState=function(){var l=this.get("data.primaryButton.toggleButtonRenderer");return l?l.isToggled:!1};
_.QP.Object.defineProperties(Cg.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Cg.prototype.onYtToggleButton=Cg.prototype.onYtToggleButton;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Cg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Cg.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Cg.prototype,"itemStyle",null);_.E([_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Cg.prototype,"onYtToggleButton",null);_.E([_.x({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Cg);
_.r(Cg,"ytd-labs-item-renderer",function(){if(DGH!==void 0)return DGH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return DGH=l},{mode:1});var UGl;var nmO;var ya1=function(){return _.p.apply(this,arguments)||this};
_.Z(ya1,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ya1.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ya1.prototype,"data",void 0);_.E([_.x({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],ya1);
_.r(ya1,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(nmO!==void 0)return nmO;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return nmO=l},{mode:1});var AaC;var hn=function(){return _.p.apply(this,arguments)||this};
_.Z(hn,_.p);hn.prototype.observeSuperchatChip=function(){if(this.data){var l={"--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)};_.Wg(this.hostElement,l)}};
hn.prototype.colorFromDecimal=function(l){return _.tu(Number(l||0))};
hn.prototype.observeSuperchatChip=hn.prototype.observeSuperchatChip;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hn.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hn.prototype,"observeSuperchatChip",null);_.E([_.x({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],hn);
_.r(hn,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(AaC!==void 0)return AaC;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return AaC=l},{mode:1});var PM=function(){return _.p.apply(this,arguments)||this};
_.Z(PM,_.p);PM.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"}}}};
_.QP.Object.defineProperties(PM.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.U3),_.T("design:type",Object)],PM.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],PM.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],PM.prototype,"hideMessageBlock",null);
_.E([_.x({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],PM);
_.r(PM,"ytd-live-chat-history-entry-renderer",function(){if(UGl!==void 0)return UGl;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return UGl=l},{mode:1});var WLT;var BeH=function(){return _.p.apply(this,arguments)||this};
_.Z(BeH,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],BeH.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],BeH.prototype,"data",void 0);_.E([_.x({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],BeH);
_.r(BeH,"ytd-channel-options-renderer",function(){if(WLT!==void 0)return WLT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return WLT=l},{mode:1});var CpI;var b2=function(){return _.p.apply(this,arguments)||this};
_.Z(b2,_.p);b2.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],b2.prototype,"data",void 0);_.E([_.x({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],b2);
_.r(b2,"ytd-settings-email-item-renderer",function(){if(CpI!==void 0)return CpI;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return CpI=l},{mode:1});var hhq;var gF=function(){return _.p.apply(this,arguments)||this};
_.Z(gF,_.p);gF.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"}}}};
gF.prototype.getExpansionIcon=function(l){return l?"COLLAPSE":"EXPAND"};
gF.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.QP.Object.defineProperties(gF.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],gF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],gF.prototype,"data",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],gF.prototype,"expanded",void 0);_.E([_.t("expanded"),_.T("design:type",String),_.T("design:paramtypes",[])],gF.prototype,"emailListExpanded",null);
_.E([_.gP("#options"),_.T("design:type",Object)],gF.prototype,"options",void 0);_.E([_.x({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],gF);
_.r(gF,"ytd-settings-email-list-renderer",function(){if(hhq!==void 0)return hhq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return hhq=l},{mode:1});var Ppj;var u2=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return l};
_.Z(u2,_.p);u2.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"}}}};
u2.prototype.handleSignalActionSubmitForm=function(){var l,D=(l=this.formRenderer)==null?void 0:l.getForm();D&&this.data.serviceEndpoint&&_.Jc().resolve(_.qK).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},D,{element:this.hostElement})})};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],u2.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],u2.prototype,"data",void 0);_.E([_.gP("yt-form-renderer"),_.T("design:type",Object)],u2.prototype,"formRenderer",void 0);
_.E([_.x({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],u2);
_.r(u2,"ytd-settings-gaia-link-renderer",function(){if(Ppj!==void 0)return Ppj;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Ppj=l},{mode:1});var b2k;var vM=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return l};
_.Z(vM,_.p);vM.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.fs5()&&this.set("data.hidden",!1)};
vM.prototype.onSwitchReady=function(){var l=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.q("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.z9J().then(function(D){D&&(Notification.permission==="default"?l.set("data.hidden",!1):Notification.permission==="granted"&&_.YV("NotificationsDisabled").then(function(U){U||_.Vh(l.hostElement,"yt-toggle-settings-switch",[l.data.id,!U]);l.set("data.hidden",!1)}).catch(function(){}))})})};
vM.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}}}}};
vM.prototype.handleUpdateOptionsCommand=function(l){(l=_.M(l,_.gsk))&&this.data&&this.data.id===l.id&&(this.set("data.hidden",l.hidden),l.text!==void 0&&this.set("data.text",l.text),l.clearOptions&&this.set("data.options",[]))};
vM.prototype.onSwitchReady=vM.prototype.onSwitchReady;vM.prototype.dataChanged=vM.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],vM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vM.prototype,"data",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vM.prototype,"dataChanged",null);_.E([_.hj("yt-settings-switch-ready"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vM.prototype,"onSwitchReady",null);_.E([_.x({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],vM);
_.r(vM,"ytd-settings-options-renderer",function(){if(b2k!==void 0)return b2k;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return b2k=l},{mode:1});var gmC;var QD=function(){return _.p.apply(this,arguments)||this};
_.Z(QD,_.p);QD.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
QD.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
QD.prototype.onYtExpanderMoreTapped=QD.prototype.onYtExpanderMoreTapped;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],QD.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],QD.prototype,"data",void 0);
_.E([_.hj("yt-expander-more-tapped"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QD.prototype,"onYtExpanderMoreTapped",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],QD);
_.r(QD,"ytd-product-details-description-renderer",function(){if(gmC!==void 0)return gmC;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return gmC=l},{mode:1});var umc;var GX=function(){var l=_.p.apply(this,arguments)||this;l.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";l.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";l.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";l.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return l};
_.Z(GX,_.p);GX.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.QP.Object.defineProperties(GX.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:(D=l.offerData)==null?void 0:D.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?void 0:l.purchaseButtonRenderers)!==void 0&&((D=this.data)==null?void 0:D.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var l,D;return!((l=this.data)==null||!l.formattedFromMerchantText)&&(!((D=this.data)==null||!D.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],GX.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],GX.prototype,"data",void 0);
_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0}),_.T("design:type",Object)],GX.prototype,"shippingIcon",void 0);_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0}),_.T("design:type",Object)],GX.prototype,"shippingAddressIcon",void 0);_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0}),_.T("design:type",Object)],GX.prototype,"googleGuaranteeIcon",void 0);
_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0}),_.T("design:type",Object)],GX.prototype,"returnPolicyIcon",void 0);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],GX.prototype,"showAdditionalFees",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],GX.prototype,"showMultiPurchaseButtons",null);
_.E([_.t("data","showMultiPurchaseButtons"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],GX.prototype,"showPurchaseData",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],GX);
_.r(GX,"ytd-product-details-hero-offer-renderer",function(){if(umc!==void 0)return umc;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return umc=l},{mode:1});var vmk;var QBT;var Jn=function(){return _.p.apply(this,arguments)||this};
_.Z(Jn,_.p);_.W=Jn.prototype;_.W.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.W.onKeyDown=function(l){l=l.keyCode;l!==13&&l!==32||this.handleSelection()};
_.W.onMouseEnterImage=function(){var l;((l=this.data)==null?void 0:l.thumbnailDetails)!==void 0&&_.iu(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.W.onMouseLeaveImage=function(){_.iu(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.W.handleSelection=function(){this.data&&_.O9(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.QP.Object.defineProperties(Jn.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.isSelected)}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Jn.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Jn.prototype,"isSelected",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Jn);
_.r(Jn,"ytd-product-details-thumbnail-renderer",function(){if(QBT!==void 0)return QBT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return QBT=l},{mode:1});var Lg=function(){var l=_.p.apply(this,arguments)||this;var D={};l.actionMap=(D["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",D["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",D);l.selectedThumbnailIndex=0;l.selectItem=function(U){U.target.onKeyDown(U)};
return l};
_.Z(Lg,_.p);_.W=Lg.prototype;_.W.handlePreviewImageSelect=function(l){this.hoverThumbnail=l};
_.W.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.W.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.W.onThumbnailSelected=function(l,D){this.selectedThumbnailIndex=D};
_.W.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.W.updateOffset=function(){var l=_.iJ(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-l));this.ytdHorizontalListBehavior.reposition_()};
_.QP.Object.defineProperties(Lg.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null?0:l.imageRenderer){var D,U;return((D=this.data)==null?void 0:(U=D.imageRenderer)==null?void 0:U.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var l;if((l=this.data)==null?0:l.imageRenderer){var D;return(D=_.M(this.data.imageRenderer[this.selectedThumbnailIndex],F6O))==null?void 0:D.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var l=this,D,U,n,y=(n=(D=this.data)==null?void 0:(U=D.imageRenderer)==null?void 0:U.map(function(A,C){return{productDetailsThumbnailRenderer:Object.assign({},_.M(A,F6O),{index:C,isSelected:C===l.selectedThumbnailIndex})}}))!=null?n:[];
return Object.assign({},this.data,{imageRenderer:y})}}});
Lg.prototype.updateOffset=Lg.prototype.updateOffset;Lg.prototype.dataChanged=Lg.prototype.dataChanged;Lg.prototype.onThumbnailSelected=Lg.prototype.onThumbnailSelected;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.RH.YtdHorizontalListBehavior),_.T("design:type",Object)],Lg.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Lg.prototype,"componentBehavior",void 0);_.E([_.m([_.K$.YtActionHandlerBehavior]),_.T("design:type",Object)],Lg.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Lg.prototype,"data",void 0);_.E([_.K({value:"$.items.children"}),_.T("design:type",String)],Lg.prototype,"itemsPath",void 0);_.E([_.K({value:3}),_.T("design:type",Number)],Lg.prototype,"initialCount",void 0);
_.E([_.gP("#items"),_.T("design:type",Object)],Lg.prototype,"items",void 0);_.E([_.K(),_.T("design:type",Object)],Lg.prototype,"selectedThumbnailIndex",void 0);_.E([_.K(),_.T("design:type",Object)],Lg.prototype,"hoverThumbnail",void 0);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Lg.prototype,"showThumbnails",null);
_.E([_.hj("ytd-product-details-thumbnail-renderer-selected"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Number]),_.T("design:returntype")],Lg.prototype,"onThumbnailSelected",null);_.E([_.t("data","selectedThumbnailIndex","hoverThumbnail"),_.T("design:type",Object),_.T("design:paramtypes",[])],Lg.prototype,"thumbnailDetails",null);_.E([_.t("data","selectedThumbnailIndex"),_.T("design:type",Object),_.T("design:paramtypes",[])],Lg.prototype,"populatedData",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Lg.prototype,"dataChanged",null);_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Lg.prototype,"updateOffset",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Lg);
_.r(Lg,"ytd-product-details-image-carousel-renderer",function(){if(vmk!==void 0)return vmk;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return vmk=l},{mode:_.Vj("kevlar_poly_si_batch_j079")?1:2});var GPI;var qb=function(){return _.p.apply(this,arguments)||this};
_.Z(qb,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],qb.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],qb.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],qb);
_.r(qb,"ytd-product-details-offer-renderer",function(){if(GPI!==void 0)return GPI;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return GPI=l},{mode:1});var Jak;var Mb=function(){var l=_.p.apply(this,arguments)||this;l.isOffersHidden=!0;return l};
_.Z(Mb,_.p);Mb.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var l,D=_.M((l=this.data)==null?void 0:l.viewOffersButton,_.yn);D&&this.ytRendererBehavior.logExplicitClick(D)};
Mb.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.QP.Object.defineProperties(Mb.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n;return(U=_.M((l=this.data)==null?void 0:(D=l.offers)==null?void 0:D[0],zUO))==null?void 0:(n=U.offerData)==null?void 0:n.vendorLogoUrl}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Mb.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Mb.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Mb.prototype,"isOffersHidden",void 0);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Mb.prototype,"firstOfferVendorLogoUrl",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Mb);
_.r(Mb,"ytd-product-details-offers-container-renderer",function(){if(Jak!==void 0)return Jak;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Jak=l},{mode:1});var LLC;var qjO;var RQ=function(){return _.p.apply(this,arguments)||this};
_.Z(RQ,_.p);RQ.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
RQ.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.iu(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
RQ.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.iu(this,"ytd-product-details-variant-image-unselect")};
_.QP.Object.defineProperties(RQ.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 l;return((l=this.data)==null?void 0:l.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((l=this.data)==null?void 0:l.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((D=this.data)==null?void 0:D.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((U=this.data)==null?void 0:U.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var l;if(((l=this.data)==null?void 0:l.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var l,D;return this.isUnavailable?(l=this.data)==null?void 0:l.variantOptionUnavailableAccessibilityLabel:(D=this.data)==null?void 0:D.variantOptionAccessibilityLabel}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],RQ.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],RQ.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],RQ.prototype,"displayType",void 0);
_.E([_.t("displayType","data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],RQ.prototype,"isImageButton",null);_.E([_.t("displayType","data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],RQ.prototype,"isPillButton",null);_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],RQ.prototype,"isActive",null);
_.E([_.t("data"),_.K({reflectToAttribute:!0}),_.T("design:type",Boolean),_.T("design:paramtypes",[])],RQ.prototype,"isUnavailable",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],RQ.prototype,"thumbnailDetails",null);_.E([_.t("isUnavailable","data"),_.T("design:type",Object),_.T("design:paramtypes",[])],RQ.prototype,"accessibilityLabel",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],RQ);
_.r(RQ,"ytd-product-details-variant-option-renderer",function(){if(qjO!==void 0)return qjO;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return qjO=l},{mode:1});var Mrg;var Zt=function(){var l=_.p.apply(this,arguments)||this;l.variantsExpanded=!1;l.hideShowMoreLessVariantButton=!0;l.initialized=!1;l.computeVariantsDebouncer=null;l.computeVariants=function(D){D=D===void 0?!1:D;l.variantsExpanded||l.showOptions()||!D||(l.variantsExpanded=!0);if(l.variantsExpanded){D=_.B(l.items.children);for(var U=D.next();!U.done;U=D.next())U.value.hidden=!1}l.initialized=!0};
return l};
_.Z(Zt,_.p);_.W=Zt.prototype;_.W.ready=function(){var l=this;setTimeout(function(){l.computeVariants(!0)})};
_.W.showOptions=function(){for(var l=_.B(this.items.children),D=l.next();!D.done;D=l.next())D.value.hidden=!0;var U=this.container.getBoundingClientRect().width,n=0,y=l=0;D=!1;for(var A=_.B(this.items.children),C=A.next();!C.done;C=A.next()){C=C.value;C.hidden=!1;var h=C.getBoundingClientRect().width;if(n+h<U)n+=h;else if(++y<2)n=h;else break;l+=1;C.hasAttribute("is-active")&&(D=!0)}for(U=l;U<this.items.children.length;U++)this.items.children[U].hidden=!0;this.hideShowMoreLessVariantButton=l===this.items.children.length;
return D};
_.W.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Qb(this.computeVariantsDebouncer,_.nn.after(100),this.computeVariants)};
_.W.onShowMoreLessVariantsButtonClick=function(){var l;(l=this.data)!=null&&l.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.W.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.QP.Object.defineProperties(Zt.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(l=this.data)==null?void 0:(D=l.variantOptionRenderers)==null?void 0:D.find(function(A){return _.M(A,wYh).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),n,y;
return(y=(n=_.M(U,wYh))==null?void 0:n.name)!=null?y:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.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"}}}});
Zt.prototype.debouncedComputeVariants=Zt.prototype.debouncedComputeVariants;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Zt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Zt.prototype,"componentBehavior",void 0);_.E([_.m(_.$s),_.T("design:type",Object)],Zt.prototype,"ironResizableBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],Zt.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Zt.prototype,"variantsExpanded",void 0);_.E([_.K(),_.T("design:type",Object)],Zt.prototype,"hideShowMoreLessVariantButton",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Zt.prototype,"initialized",void 0);_.E([_.gP("#items"),_.T("design:type",HTMLDivElement)],Zt.prototype,"items",void 0);_.E([_.gP("#container"),_.T("design:type",HTMLDivElement)],Zt.prototype,"container",void 0);
_.E([_.gP("#more-variants-button"),_.T("design:type",HTMLElement)],Zt.prototype,"moreVariantsButton",void 0);_.E([_.t("data"),_.T("design:type",String),_.T("design:paramtypes",[])],Zt.prototype,"selectedOptionName",null);_.E([_.Pg("data","variantsExpanded"),_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Zt.prototype,"debouncedComputeVariants",null);
_.E([_.t("data"),_.T("design:type",String),_.T("design:paramtypes",[])],Zt.prototype,"displayType",null);_.E([_.t("displayType"),_.T("design:type",Object),_.T("design:paramtypes",[])],Zt.prototype,"variantItemsClassname",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Zt);
_.r(Zt,"ytd-product-details-variant-renderer",function(){if(Mrg!==void 0)return Mrg;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Mrg=l},{mode:1});var eA=function(){return _.p.apply(this,arguments)||this};
_.Z(eA,_.p);
eA.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"}}}};
_.QP.Object.defineProperties(eA.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(D=_.M((l=this.data)==null?void 0:l.offersContainerRenderer,rvO))==null?void 0:D.offers;return U!==void 0&&(U==null?void 0:U.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 l,D,U;return((U=(l=this.data)==null?void 0:(D=l.variants)==null?void 0:D.map(function(n){var y,A;n=(A=(y=_.M(n,oFh))==null?void 0:y.variantOptionRenderers)==null?void 0:A.find(function(h){var b;return((b=_.M(h,wYh))==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var C;return(C=_.M(n,wYh))==null?void 0:C.name}).filter(function(n){return typeof n==="string"}))!=null?U:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var l,D,U,n=(D=_.M((l=this.data)==null?void 0:l.shoppingFlaggingRenderer,fYO))==null?void 0:(U=D.reportButton)==null?void 0:U.buttonRenderer;if(n)return{text:n.text,command:n.command,icon:{iconType:"FLAG"},accessibilityData:n.accessibilityData,trackingParams:n.trackingParams,loggingDirectives:n.loggingDirectives}}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],eA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],eA.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],eA.prototype,"data",void 0);_.E([_.gP("#image-carousel-renderer"),_.T("design:type",Object)],eA.prototype,"imageCarouselRenderer",void 0);
_.E([_.gP("#hero-offer-renderer"),_.T("design:type",Object)],eA.prototype,"productDetailsHeroOfferRenderer",void 0);_.E([_.gP("#variants"),_.T("design:type",Object)],eA.prototype,"productDetailsVariantRenderer",void 0);_.E([_.gP("#offers"),_.T("design:type",Object)],eA.prototype,"productDetailsOffersContainerRenderer",void 0);_.E([_.gP("#description-renderer"),_.T("design:type",Object)],eA.prototype,"productDetailsDescriptionRenderer",void 0);
_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],eA.prototype,"showPurchaseData",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],eA.prototype,"showHeroOfferRenderer",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],eA.prototype,"showBrandText",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],eA.prototype,"showOffers",null);
_.E([_.t("showOffers","showPurchaseData"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],eA.prototype,"showBuySeparator",null);_.E([_.t("showOffers","showPurchaseData"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],eA.prototype,"showBuyCard",null);_.E([_.t("data"),_.T("design:type",String),_.T("design:paramtypes",[])],eA.prototype,"selectedVariantsText",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],eA.prototype,"shoppingReportingButtonData",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],eA);
_.r(eA,"ytd-product-details-renderer",function(){if(LLC!==void 0)return LLC;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return LLC=l},{mode:1});var RhI;var Z2W;var ehg;var mg=function(){return _.p.apply(this,arguments)||this};
_.Z(mg,_.p);mg.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.QP.Object.defineProperties(mg.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],mg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],mg.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],mg.prototype,"formattedAmount",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],mg.prototype,"ariaLabel",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("data.style"),_.T("design:type",String),_.T("design:paramtypes",[])],mg.prototype,"vcBalanceWidgetStyle",null);_.E([_.S0({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],mg);
_.r(mg,"yt-vc-balance-renderer",function(){if(ehg===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Z2W===void 0&&(Z2W=document.createElement("template"));var n=Z2W;U.call(D,n.content.cloneNode(!0),l.content.firstChild);ehg=l}l=ehg;return l},{mode:2});_.RL("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var aQ=function(){return _.p.apply(this,arguments)||this};
_.Z(aQ,_.p);_.QP.Object.defineProperties(aQ.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],aQ.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],aQ.prototype,"data",void 0);_.E([_.K({selectorArgs:["data.vcBalanceEntityKey"],selector:function(l,D){return _.yT(l.entities,"vcBalanceEntity",D)}}),
_.T("design:type",Object)],aQ.prototype,"vcBalanceEntity",void 0);_.E([_.t("vcBalanceEntity"),_.T("design:type",String),_.T("design:paramtypes",[])],aQ.prototype,"formattedAmount",null);_.E([_.t("vcBalanceEntity"),_.T("design:type",String),_.T("design:paramtypes",[])],aQ.prototype,"vcBalanceAriaLabel",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],aQ);
_.r(aQ,"ytd-vc-balance-renderer",function(){if(RhI!==void 0)return RhI;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return RhI=l},{mode:1});var mGh;var tn=function(){var l=_.p.apply(this,arguments)||this;l.rotation=0;l.isReloading=!1;return l};
_.Z(tn,_.p);tn.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
tn.prototype.reset=function(){this.hostElement.style.opacity=""};
tn.prototype.close=function(){var l=this;return _.P(function(D){if(D.nextAddress==1)return D.yield(l.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);l.hostElement.style.opacity="0";_.Kz(D)})};
tn.prototype.rotationChanged=tn.prototype.rotationChanged;_.E([_.K(),_.T("design:type",Object)],tn.prototype,"rotation",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tn.prototype,"isReloading",void 0);_.E([_.gP("#icon"),_.T("design:type",HTMLElement)],tn.prototype,"icon",void 0);_.E([_.Pg("rotation"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tn.prototype,"rotationChanged",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-refresh"})],tn);
_.r(tn,"ytd-refresh",function(){if(mGh!==void 0)return mGh;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return mGh=l},{mode:1});var aUI;var Xe=function(){return _.p.apply(this,arguments)||this};
_.Z(Xe,_.p);Xe.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"}}}};
Xe.prototype.dataChanged=function(){if(this.data){var l=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var D=_.IO(this.data.banner.thumbnails,this.hostElement.clientWidth);D&&(D.indexOf("//")===0&&(D="https:"+D),this.hasBannerArt=!0,_.Wg(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+D+")"}))}this.hasBannerArt!==l&&_.iJ(this.hostElement).querySelector("#header").fire("iron-resize")}};
Xe.prototype.updateSelectedFromBinding=function(l){this.selected=l.detail.value};
Xe.prototype.dataChanged=Xe.prototype.dataChanged;_.E([_.m(sVh),_.T("design:type",Object)],Xe.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.yC),_.T("design:type",Object)],Xe.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],Xe.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Xe.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Xe.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],Xe.prototype,"selected",void 0);_.E([_.K(),_.T("design:type",Boolean)],Xe.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],Xe.prototype,"hasBannerArt",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Xe.prototype,"dataChanged",null);_.E([_.x({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Xe);
_.r(Xe,"ytd-interactive-tabbed-header-renderer",function(){if(aUI!==void 0)return aUI;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return aUI=l},{mode:1});var trl;var SA=function(){return _.p.apply(this,arguments)||this};
_.Z(SA,_.p);SA.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
SA.prototype.computeActionsAlignment=function(l){return(l==null?void 0:l.actionsAlignment)||""};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],SA.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.T("design:type",String)],SA.prototype,"actionsAlignment",void 0);_.E([_.x({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],SA);
_.r(SA,"ytd-page-footer-renderer",function(){if(trl!==void 0)return trl;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return trl=l},{mode:1});var X7H;var SjD;var k5=function(){var l=_.p.apply(this,arguments)||this;l.isEditing=!1;l.useSlot=!1;l.isMultiline=!1;return l};
_.Z(k5,_.p);_.W=k5.prototype;_.W.onKeydown=function(l){if(l.keyCode===13&&!this.isMultiline)this.onSave();else if(l.keyCode===27)this.onCancel()};
_.W.computeComponentStyle=function(l){return(l==null?0:l.style)?l.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.W.computeisMultiline=function(l){if(this.multilineOverride!==void 0)return this.multilineOverride;var D,U;return!!(l==null?0:(D=l.formField)==null?0:(U=D.textInputFormFieldRenderer)==null?0:U.isMultiline)};
_.W.computeTextDisplayed=function(l,D){if(l)return l;if(D)return D};
_.W.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.W.onSave=function(){if(this.textForm.validate()){this.textForm.save();var l=this.textForm.value;if(l)this.set("data.textDisplayed",_.$B(l));else{var D;((D=this.data)==null?0:D.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.gS("inline-form-changed",this.data));this.isEditing=!1}};
_.W.onCancel=function(){var l=_.Nl(this.data.textDisplayed);l===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(l);this.isEditing=!1};
k5.prototype.onKeydown=k5.prototype.onKeydown;_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],k5.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],k5.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],k5.prototype,"isEditing",void 0);_.E([_.K(),_.T("design:type",Object)],k5.prototype,"useSlot",void 0);_.E([_.K(),_.T("design:type",Boolean)],k5.prototype,"multilineOverride",void 0);_.E([_.K(),_.T("design:type",Boolean)],k5.prototype,"enableOverlayTheme",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.T("design:type",String)],k5.prototype,"componentStyle",void 0);
_.E([_.K({computed:"computeisMultiline(data)"}),_.T("design:type",Object)],k5.prototype,"isMultiline",void 0);_.E([_.gP("#text-form"),_.T("design:type",Object)],k5.prototype,"textForm",void 0);_.E([_.hj("keydown"),_.T("design:type",Function),_.T("design:paramtypes",[KeyboardEvent]),_.T("design:returntype")],k5.prototype,"onKeydown",null);_.E([_.x({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],k5);
_.r(k5,"ytd-inline-form-renderer",function(){if(SjD!==void 0)return SjD;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return SjD=l},{mode:1});var kPT;var dF=function(){var l=_.p.apply(this,arguments)||this;l.previousSelectValue=void 0;l.selectedItemMessage=void 0;return l};
_.Z(dF,_.p);dF.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
dF.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var l,D,U,n,y=(l=this.data)==null?void 0:(D=l.dropdown)==null?void 0:(U=D.dropdownRenderer)==null?void 0:(n=U.entries)==null?void 0:n.map(function(h){return h.privacyDropdownItemRenderer});
l=_.B(y!=null?y:[]);for(D=l.next();!D.done;D=l.next())if((D=D.value)&&D.int32Value===this.selectedValue){this.selectedItemMessage=D.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 C;(C=this.data)!=null&&C.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
dF.prototype.onValueChangedForSelectedValue=function(l){this.selectedValue=l.detail.value};
dF.prototype.selectedValueChanged=dF.prototype.selectedValueChanged;_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],dF.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],dF.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],dF.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],dF.prototype,"theme",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Number)],dF.prototype,"selectedValue",void 0);_.E([_.K(),_.T("design:type",Function)],dF.prototype,"onValueChanged",void 0);
_.E([_.GY("selectedValue"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],dF.prototype,"selectedValueChanged",null);_.E([_.x({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],dF);
_.r(dF,"ytd-dropdown-form-field-renderer",function(){if(kPT!==void 0)return kPT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return kPT=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var dGc;var Kg=function(){return _.p.apply(this,arguments)||this};
_.Z(Kg,_.p);_.QP.Object.defineProperties(Kg.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var l=[],D=_.B(this.data||[]),U=D.next();!U.done;U=D.next())(U=_.M(U.value,$qD))&&l.push(U);return l}}});
_.E([_.K(),_.T("design:type",Array)],Kg.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Kg.prototype,"byline",null);_.E([_.x({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Kg);
_.r(Kg,"ytd-playlist-byline-renderer",function(){if(dGc!==void 0)return dGc;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return dGc=l},{mode:1});var KLh;var cM=function(){var l=_.p.apply(this,arguments)||this;l.rtlBullet=_.q("web_playlist_stats_rtl_bullet_icon_killswitch");l.modern=_.q("web_modern_buttons");l.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return l};
_.Z(cM,_.p);_.W=cM.prototype;_.W.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"}}}}};
_.W.attached=function(){};
_.W.computeIsCustomThumbnail=function(l){return l?!!l.playlistCustomThumbnailRenderer:!1};
_.W.onYtNavigate=function(l,D){if(D&&D.actions&&D.actions.indexOf("shuffle")>-1){l=_.Jc().resolve(_.Cd);var U=D.tempData||{};U.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);D.tempData=U;l.isShuffleNextPlaylist=!0}};
_.W.onUpdatePlaylistAction=function(l){var D;l=(D=_.M(l,_.fWz))==null?void 0:D.updatedRenderer;if(D=_.M(l,jVj))this.data=D};
_.W.computeStyleType=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.W.computeThumbnailWidth=function(l){return l==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.W.computeHideThumbnailAria=function(l){if(l==null?0:l.thumbnailOverlays)for(var D=0;D<l.thumbnailOverlays.length;D++){var U=void 0;if((U=l.thumbnailOverlays[D])==null?0:U.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
cM.prototype.onYtNavigate=cM.prototype.onYtNavigate;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],cM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],cM.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],cM.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],cM.prototype,"rtlBullet",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.T("design:type",String)],cM.prototype,"styleType",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.T("design:type",Number)],cM.prototype,"thumbnailWidth",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],cM.prototype,"modern",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.T("design:type",Boolean)],cM.prototype,"isCustomThumbnail",void 0);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[Event,Object]),_.T("design:returntype")],cM.prototype,"onYtNavigate",null);_.E([_.x({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],cM);
_.r(cM,"ytd-playlist-sidebar-primary-info-renderer",function(){if(KLh!==void 0)return KLh;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return KLh=l},{mode:1});var cac;var pg=function(){return _.p.apply(this,arguments)||this};
_.Z(pg,_.p);pg.prototype.computeOwnerVisibility=function(l){return!(!l.videoOwner&&!l.button)};
pg.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],pg.prototype,"data",void 0);_.E([_.x({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],pg);
_.r(pg,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(cac!==void 0)return cac;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return cac=l},{mode:1});var p7C;var x5=function(){var l=_.p.apply(this,arguments)||this;l.expanded=!1;l.isCompact=!1;return l};
_.Z(x5,_.p);_.W=x5.prototype;_.W.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.W.dataChanged=function(){this.data&&_.Cz(_.iJ(this.text),_.Vc7(_.DGk,_.Nl(this.data.text||null)))};
_.W.computeAutoScrollEnabled=function(l,D){return l&&!D};
_.W.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.W.toggleOnTap=function(){this.expanded=!this.expanded};
x5.prototype.expandedChanged=x5.prototype.expandedChanged;x5.prototype.dataChanged=x5.prototype.dataChanged;_.E([_.m(_.SWO),_.T("design:type",Object)],x5.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],x5.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],x5.prototype,"expanded",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],x5.prototype,"isCompact",void 0);_.E([_.K({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.T("design:type",Boolean)],x5.prototype,"autoScrollEnabled",void 0);_.E([_.gP("#text"),_.T("design:type",Object)],x5.prototype,"text",void 0);_.E([_.gP("#expander-icon"),_.T("design:type",Object)],x5.prototype,"expanderIcon",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],x5.prototype,"dataChanged",null);_.E([_.Pg("expanded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],x5.prototype,"expandedChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],x5);
_.r(x5,"ytd-channel-legal-info-renderer",function(){if(p7C!==void 0)return p7C;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return p7C=l},{mode:1});var xG1;var jBk=_.C3("DOWNLOAD",{},"Download"),FLD=_.C3("DOWNLOADING",{},"Downloading"),omI=_.C3("DOWNLOADED",{},"Downloaded"),jA=function(){var l=_.p.apply(this,arguments)||this;l.downloadProgress=0;l.isDownloadComplete=!1;l.transferState="TRANSFER_STATE_UNKNOWN";return l};
_.Z(jA,_.p);_.W=jA.prototype;_.W.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.W.dataChanged=function(){var l;(l=this.data)!=null&&l.tooltip||(l=_.K7(_.EB().getState(),this.playlistId),this.updateButtonState(l))};
_.W.computePlaylistId=function(l){return l};
_.W.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.W.updateButtonState=function(l){if(this.data&&(this.data.tooltip!==FLD||!_.uQ(l))){this.isDownloadComplete=!1;switch(l){case "TRANSFER_STATE_UNKNOWN":l=jBk;var D="OFFLINE_DOWNLOAD";var U="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":l=omI;D="OFFLINE_PIN";U="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":l=FLD;D="OFFLINE_DOWNLOADING_ZERO";U="ACTION_REMOVE_WITH_PROMPT";
break;default:l=jBk,D="OFFLINE_DOWNLOAD",U="ACTION_ADD"}var n=Object.assign({},this.data);n.tooltip=l;n.accessibilityData={accessibilityData:{label:l}};n.icon={iconType:D};n.size="SIZE_DEFAULT";_.M(n.command,_.hi)&&(_.M(n.command,_.hi).action=U);this.set("data",n)}};
_.W.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var l="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?l="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?l="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?l="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?l="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?l="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(l="OFFLINE_PIN",this.isDownloadComplete=!0);var D;l!==((D=this.data.icon)==null?void 0:D.iconType)&&(D=Object.assign({},this.data),D.tooltip=FLD,D.accessibilityData={accessibilityData:{label:FLD}},D.icon={iconType:l},_.M(D.command,_.hi)&&(_.M(D.command,_.hi).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",D))}};
jA.prototype.updateProgress=jA.prototype.updateProgress;jA.prototype.onTransferStateChanged=jA.prototype.onTransferStateChanged;jA.prototype.dataChanged=jA.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],jA.prototype,"ytdReduxBehavior",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],jA.prototype,"forceIconButton",void 0);
_.E([_.K({value:!0}),_.T("design:type",Boolean)],jA.prototype,"forceIconOnly",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],jA.prototype,"overrides",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],jA.prototype,"buttonTooltipPosition",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],jA.prototype,"styleActionButton",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],jA.prototype,"disableTextTransform",void 0);
_.E([_.K({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.T("design:type",String)],jA.prototype,"playlistId",void 0);_.E([_.K(),_.T("design:type",Object)],jA.prototype,"data",void 0);_.E([_.K({selector:_.N9_,selectorArgs:["playlistId"]}),_.T("design:type",Object)],jA.prototype,"downloadProgress",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],jA.prototype,"isDownloadComplete",void 0);
_.E([_.K({selector:_.K7,selectorArgs:["playlistId"]}),_.T("design:type",String)],jA.prototype,"transferState",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],jA.prototype,"showTooltips",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],jA.prototype,"sendCommandWhenDisabled",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],jA.prototype,"disabled",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jA.prototype,"dataChanged",null);_.E([_.GY("transferState"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jA.prototype,"onTransferStateChanged",null);_.E([_.GY("downloadProgress"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jA.prototype,"updateProgress",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],jA);
_.r(jA,"ytd-download-playlist-button-renderer",function(){if(xG1!==void 0)return xG1;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return xG1=l},{mode:1});var w7T;_.Tt(_.RT8,"thumbnail-overlay-button-view-model",{props:{data:_.C$,lockupExperiments:_.C$}});var Fe=function(){var l=_.p.apply(this,arguments)||this;l.isSquare=!1;l.isVertical=!1;return l};
_.Z(Fe,_.p);Fe.prototype.computeIsSquare=function(l){return l!=null&&l.thumbnail?GzO(l.thumbnail)==="SQUARE":!1};
Fe.prototype.computeIsVertical=function(l){return l!=null&&l.thumbnail?GzO(l.thumbnail)==="VERTICAL":!1};
Fe.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Fe.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Fe.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.T("design:type",Object)],Fe.prototype,"isSquare",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.T("design:type",Object)],Fe.prototype,"isVertical",void 0);
_.E([_.K(),_.T("design:type",Object)],Fe.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Fe);
_.r(Fe,"ytd-hero-playlist-thumbnail-renderer",function(){if(w7T!==void 0)return w7T;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return w7T=l},{mode:1});var oQ=function(){var l=_.p.apply(this,arguments)||this;l.isDarkTheme=!1;l.isUltraWide=!1;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return l};
_.Z(oQ,_.p);_.W=oQ.prototype;_.W.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.Jc();var l;(l=_.Jc().resolve(_.G8(_.s8)))!=null&&(l.headerElement=this.hostElement)};
_.W.detached=function(){var l;(l=_.Jc().resolve(_.G8(_.s8)))!=null&&(l.headerElement=void 0)};
_.W.onUpdateHeader=function(l){(l=l.detail)&&this.set("data",l)};
_.W.computeTextDisplayed=function(l){if(l)return l.textDisplayed?l.textDisplayed:l.placeholder};
_.W.gradientColorToLinearGradientStop=function(l){var D=this.isDarkTheme?l.darkThemeColor:l.lightThemeColor;return D?_.tu(D)+" "+((l==null?void 0:l.startLocation)||0)*100+"%":"transparent"};
_.W.onWindowResize=function(){var l;((l=this.data)==null?0:l.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.W.onIronResize=function(l){this.isUltraWide=!l.detail.value};
_.W.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.W.onUpdatePlaylistName=function(l){var D=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},l.detail.value));_.u6(this,function(){var U;(U=D.editableTitle)==null||U.resize()})};
_.W.onUpdatePlaylistDescription=function(l){var D=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},l.detail.value));_.u6(this,function(){var U;(U=D.editableDescriptionInlineExpander)==null||U.resize()})};
_.W.getCinematicData=function(l){return _.M(l==null?void 0:l.cinematicContainer,_.l2)};
_.QP.Object.defineProperties(oQ.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 l,D=(l=this.getCinematicData(this.data))==null?void 0:l.config;return(l=this.isDarkTheme?D==null?void 0:D.darkThemeBackgroundColor:D==null?void 0:D.lightThemeBackgroundColor)?"background-color:"+_.an(l)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var l;return _.M((l=this.data)==null?void 0:l.descriptionForm,xqk)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var l=this,D,U,n;return"background:linear-gradient(to bottom, "+(((n=(D=this.getCinematicData(this.data))==null?void 0:(U=D.gradientColorConfig)==null?void 0:U.map(function(y){return l.gradientColorToLinearGradientStop(y)}))==null?void 0:n.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var l;return _.Nl((l=this.data)==null?void 0:l.descriptionTapText)}}});
oQ.prototype.onUpdateHeader=oQ.prototype.onUpdateHeader;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],oQ.prototype,"actionHandlerBehavior",void 0);_.E([_.gP("#description-inline-expander"),_.T("design:type",Object)],oQ.prototype,"descriptionInlineExpander",void 0);
_.E([_.gP("#editable-description-inline-expander"),_.T("design:type",Object)],oQ.prototype,"editableDescriptionInlineExpander",void 0);_.E([_.K(),_.T("design:type",Object)],oQ.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],oQ.prototype,"isUltraWide",void 0);_.E([_.gP("#editable-title-display"),_.T("design:type",Object)],oQ.prototype,"editableTitle",void 0);_.E([_.t("isUltraWide"),_.T("design:type",Object),_.T("design:paramtypes",[])],oQ.prototype,"maxDescriptionLines",null);
_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],oQ.prototype,"noCinematicData",null);_.E([_.hj("yt-new-playlist-header"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],oQ.prototype,"onUpdateHeader",null);_.E([_.t("data","isDarkTheme"),_.T("design:type",Object),_.T("design:paramtypes",[])],oQ.prototype,"backgroundStyle",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],oQ.prototype,"descriptionFormData",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],oQ.prototype,"getDropdownTheme",null);_.E([_.t("data","isDarkTheme"),_.T("design:type",String),_.T("design:paramtypes",[])],oQ.prototype,"gradientStyle",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],oQ.prototype,"descriptionTapText",null);
_.E([_.x({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],oQ);
_.r(oQ,"ytd-playlist-header-renderer",function(){if(X7H!==void 0)return X7H;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return X7H=l},{mode:_.Vj("kevlar_poly_si_batch_j078")?1:2});var raD;var zhk;var wF=function(){return _.p.apply(this,arguments)||this};
_.Z(wF,_.p);wF.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],wF.prototype,"data",void 0);_.E([_.x({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],wF);
_.r(wF,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(zhk!==void 0)return zhk;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return zhk=l},{mode:1});var rF=function(){return _.p.apply(this,arguments)||this};
_.Z(rF,_.p);
rF.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}}}}};
rF.prototype.computeUsePremiumShowStyle=function(l){if(!l||!l.items)return!1;for(var D=0;D<l.items.length;D++)if(_.M(l.items[D],jVj)){var U=void 0;return((U=_.M(l.items[D],jVj))==null?void 0:U.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],rF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],rF.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.T("design:type",Boolean)],rF.prototype,"usePremiumShowStyle",void 0);
_.E([_.x({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],rF);
_.r(rF,"ytd-playlist-sidebar-renderer",function(){if(raD!==void 0)return raD;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return raD=l},{mode:1});var fUq;var $Gj;var NeC=function(l,D,U,n,y,A,C,h){this.minWidth=l;this.minHeight=D;this.recommendedWidth=U;this.recommendedHeight=n;this.JSC$22637_maxFileSize=y;this.title=A;this.bannerGalleryTitle=C;this.channelId=h;this.picker_=null;l=_.h5g("yt-banner");D=l.addView;U=(new mqC("youtubebanner")).addUploadMetadata("silo_id","19");U.opts.ytMaxFileSize=this.JSC$22637_maxFileSize;n=this.recommendedHeight;U.opts.ytRecWidth=this.recommendedWidth;U.opts.ytRecHeight=n;D.call(l,U);l.addView(new _.dI);D=l.addView;U=new _.dI;
U.opts.type="ytbanner";D.call(l,U.JSC$10155_setLabel(this.bannerGalleryTitle));D=l.setTitle(this.title).setSize(1E3);D.urlParamMap_.set("thumbs","orig");U=this.minWidth;n=this.minHeight;if(isNaN(U)||isNaN(n))throw Error("gb`"+U+"`"+n);D.urlParamMap_.set("minSize",U+"x"+n);D.urlParamMap_.set("cropMode","ytcb");this.builder_=l};
NeC.prototype.open=function(){var l=this;return new _.X0(function(D,U){_.oYz(l.builder_,function(n){n.action=="picked"?D(n):n.action=="cancel"&&U(Error("Qo"))});
l.picker_&&l.picker_.dispose();l.picker_=l.builder_.build();l.picker_.setVisible(!0)})};
NeC.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var sBw=function(l){this.channelId=l};
sBw.prototype.upload=function(l){var D="";l.viewToken&&(D=l.viewToken[2].type);var U=l.docs[0];l=U.crop;D={channel_id:this.channelId,fife_url:U.thumbnails[0].url,photo_id:U.id,is_gallery_image:D=="ytbanner"};l&&(D.crop_top=l.top,D.crop_right=l.right,D.crop_bottom=l.bottom,D.crop_left=l.left);return _.GBN("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:D})};var zX=function(){var l=_.p.apply(this,arguments)||this;l.ariaLabel=null;return l};
_.Z(zX,_.p);_.W=zX.prototype;_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.W.detached=function(){this.picker&&this.picker.dispose()};
_.W.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.W.computeAriaLabel=function(l){return l};
_.W.onTap=function(){var l=this,D;if((D=this.data)==null||!D.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new NeC(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 U;(U=this.picker)==null||U.open().then(function(n){l.handleBannerPicked(n)},function(){})}};
_.W.handleBannerPicked=function(l){var D=this;this.uploader||(this.uploader=new sBw(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(l).then(function(U){D.handleBannerUploadSucceeded(U)},function(U){D.handleBannerUploadFailed(U)})};
_.W.handleBannerUploadSucceeded=function(l){l&&l.errors?this.handleBannerUploadFailed(l):(_.O9(this.hostElement,"yt-banner-updated",l),this.message=null)};
_.W.handleBannerUploadFailed=function(l){this.message=l&&l.errors&&l.errors.length?l.errors[0]:null};
zX.prototype.dataChanged=zX.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],zX.prototype,"componentBehavior",void 0);_.E([_.m(_.sC),_.T("design:type",Object)],zX.prototype,"ironButtonState",void 0);_.E([_.K(),_.T("design:type",Object)],zX.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.T("design:type",Object)],zX.prototype,"ariaLabel",void 0);
_.E([_.K(),_.T("design:type",Object)],zX.prototype,"message",void 0);_.E([_.K(),_.T("design:type",Object)],zX.prototype,"picker",void 0);_.E([_.K(),_.T("design:type",Object)],zX.prototype,"uploader",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zX.prototype,"dataChanged",null);_.E([_.x({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],zX);
_.r(zX,"ytd-channel-banner-editor-renderer",function(){if($Gj!==void 0)return $Gj;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return $Gj=l},{mode:1});var Emw;var Teq=_.wL(["#"]),fg=function(){return _.p.apply(this,arguments)||this};
_.Z(fg,_.p);fg.prototype.computeHrefWithDefault=function(l){return this.ytComponentBehavior.computeHref_(l,!0)||_.BEN(Teq)};
fg.prototype.dataChanged=function(){var l=this.data;l&&l.targetId&&_.dWz(_.jp(),l.targetId,this.moreIcon)};
fg.prototype.dataChanged=fg.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],fg.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fg.prototype,"data",void 0);_.E([_.gP("#more-icon"),_.T("design:type",Object)],fg.prototype,"moreIcon",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fg.prototype,"dataChanged",null);
_.E([_.x({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],fg);
_.r(fg,"ytd-channel-tagline-renderer",function(){if(Emw!==void 0)return Emw;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Emw=l},{mode:1});var IUW;var $5=function(){return _.p.apply(this,arguments)||this};
_.Z($5,_.p);_.W=$5.prototype;_.W.ready=function(){var l=this;_.iJ(this.hostElement).querySelector("#form").addEventListener("submit",function(D){l.onSubmit(D)})};
_.W.onDataChanged=function(){var l;((l=this.data)==null?0:l.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.W.onIconButtonKeydown=function(l){l.keyCode===13&&this.iconButton.click()};
_.W.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.W.openOnClickHandler=function(){this.input.focus()};
_.W.onSubmit=function(l){l.preventDefault();return!1};
_.W.submitOnEnterKeyUp=function(l){var D;if(l.keyCode===13&&((D=this.data)==null?0:D.expandedText)){l=this.data.endpoint;D=_.we.unsafeClone(l);var U;((U=_.M(D==null?void 0:D.commandMetadata,_.W6))==null?0:U.url)?(_.M(D.commandMetadata,_.W6).url=_.VX(_.M(D.commandMetadata,_.W6).url,"query",this.data.expandedText),_.M(D,_.Pk)&&(_.M(D,_.Pk).query=this.data.expandedText),_.O9(this.hostElement,"yt-navigate",{endpoint:D,tempData:{disableCache:!0}})):(U=new _.rc("Error: Trying to navigate to an endpoint without url",
l),_.EU(U))}};
_.W.updateDataExpandedTextFromBinding=function(l){this.set("data.expandedText",l.detail.value)};
_.QP.Object.defineProperties($5.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
$5.prototype.onDataChanged=$5.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.YJT),_.T("design:type",Object)],$5.prototype,"ytdExpandableInputBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$5.prototype,"data",void 0);_.E([_.gP("#input"),_.T("design:type",Object)],$5.prototype,"input",void 0);_.E([_.gP("#icon-button"),_.T("design:type",HTMLElement)],$5.prototype,"iconButton",void 0);
_.E([_.K(),_.T("design:type",String),_.T("design:paramtypes",[])],$5.prototype,"searchIcon",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$5.prototype,"onDataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],$5);
var Jvh=_.Ol()($5,"ytd-expandable-tab-renderer",function(){if(IUW===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);IUW=l}l=IUW;return l},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var H2T;var Nb=function(){var l=_.p.apply(this,arguments)||this;l.avatarSize=80;l.ariaLabel=_.C3("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return l};
_.Z(Nb,_.p);Nb.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Nb.prototype.computeHref=function(l){var D;return((D=_.M(l,_.yE))==null?0:D.url)?this.componentBehavior.computeHref_(l):null};
Nb.prototype.onTap=function(){var l,D;(l=this.data)==null||!l.editAvatarServiceEndpoint||((D=_.M(this.data.editAvatarServiceEndpoint,_.yE))==null?0:D.url)||_.Jc().resolve(_.qK).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.E([_.m(_.sC),_.T("design:type",Object)],Nb.prototype,"ironButtonState",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Nb.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Nb.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Nb.prototype,"avatarSize",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],Nb.prototype,"ariaLabel",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Nb);
_.r(Nb,"ytd-channel-avatar-editor",function(){if(H2T!==void 0)return H2T;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return H2T=l},{mode:1});var Yjh=_.w(function(l){var D=l.data;var U=l.noPadding;var n=l.enableBanner;var y=l.cinematicContainerTopbarOffset;var A=l.allowCinematicContainerOverflow;var C=l.displayAsSidebar;l=l.className;_.$i(function(){D().tagManagerId&&(_.fd(D().tagManagerId,_.H3("GL")),eUD(D().tagManagerId))},"vUc8md");
var h=_.Pr(qSW,function(){return D().pageHeaderEntityKey});
return _.g("yt-page-header-renderer",{class:_.DV("pageHeaderRendererHost",l)},_.g(_.uI,{data:function(){var b;return((b=h())==null?0:b.header)?h().header:(C==null?0:C())&&D().sidebarContent?D().sidebarContent:D().content}},{pageHeaderViewModel:function(b){return _.g(_.AdW,{data:b.data,
noPadding:U,enableBanner:n,cinematicContainerTopbarOffset:y,allowCinematicContainerOverflow:A,displayAsSidebar:function(){return(C==null?void 0:C())&&D().enableSidebarView}})}}))},"on");
Yjh.idomCompat=!0;_.Tt(Yjh,"yt-page-header-renderer",{props:{data:_.C$,noPadding:_.C$,enableBanner:_.C$,cinematicContainerTopbarOffset:_.C$,allowCinematicContainerOverflow:_.C$,displayAsSidebar:_.C$,className:_.C$}});_.Tt(_.bZ,"yt-image-banner-view-model",{props:{data:_.C$,isPositionRelative:_.C$}});_.Tt(_.ms2,"yt-tab-group-shape",{props:{shape:_.C$}});var O2c=_.xv.persistentPanelVisibleSelector,sb=function(){var l=_.p.apply(this,arguments)||this;l.expandableCustomTabRenderable=function(D){return L6I(D,function(){return void l.onSearchNavigate()})};
l.isRichGrid=!1;l.isConstrainedList=!1;l.richGridMiniMode=!1;l.richGridStyle="RICH_GRID_STYLE_UNKNOWN";l.isRichGridShorts=!1;l.responsiveSizing="COMPACT";l.disableGridStateAware=!1;l.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return l};
_.Z(sb,_.p);_.W=sb.prototype;_.W.computeHeaderDisabled=function(l,D){return D||!l||this.tabsHidden};
_.W.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.W.computeIsRichGridShorts=function(l){return l==="RICH_GRID_STYLE_SHORTS_GRID"||l==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.W.computeImageBannerViewModel=function(){var l,D;return _.M((D=_.M((l=this.data)==null?void 0:l.content,_.JYv))==null?void 0:D.banner,_.P5H)};
_.W.computeHasCinematicContainer=function(){var l,D;return!((D=_.M((l=this.data)==null?void 0:l.content,_.JYv))==null||!D.background)};
_.W.handleHeaderResize=function(){var l=_.iJ(this.hostElement).querySelector("#header");l&&_.O9(l,"iron-resize")};
_.W.handleInsertTabCommand=function(l){var D=_.M(l,NET);D&&(D.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(U){return U.tabRenderer&&U.tabRenderer.tabIdentifier===D.tabIdentifier})||this.splice("tabs",D.tabIndex||-1,0,D.tab))};
_.W.handleRefreshChannelTabAction=function(l){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===l&&_.O9(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.W.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.W.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Wg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.W.observerRichGridSlimItemsPerRow=function(){_.Wg(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.W.updateCssVars=function(){this.richGridItemsPerRow&&_.Wg(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.RG("rich_grid_max_item_width",500))+16)-16+"px"})};
_.W.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Wg(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.W.onDataChanged=function(){this.handleHeaderResize()};
_.W.onWindowResize=function(){this.handleHeaderResize()};
_.W.onFocusedChanged=function(l){(l=_.NN(l))&&l.is==="tp-yt-paper-tab"&&l.hasRipple()&&(l.getRipple().holdDown=!l.pointerDown&&l.focused)};
_.W.updateSelectedFromBinding=function(l){this.ytdTabbedHeaderBehavior.selected=l.detail.value};
_.W.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.QP.Object.defineProperties(sb.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:RUk(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.imageBannerViewModel)==null?void 0:l.style)==="IMAGE_BANNER_STYLE_INSET"}}});
sb.prototype.onDataChanged=sb.prototype.onDataChanged;sb.prototype.updateCssVarsForResponsiveGrid=sb.prototype.updateCssVarsForResponsiveGrid;sb.prototype.updateCssVars=sb.prototype.updateCssVars;sb.prototype.observerRichGridSlimItemsPerRow=sb.prototype.observerRichGridSlimItemsPerRow;sb.prototype.observerRichGridItemsPerRow=sb.prototype.observerRichGridItemsPerRow;sb.prototype.persistentPanelVisibleChanged=sb.prototype.persistentPanelVisibleChanged;
_.E([_.m(_.yC),_.T("design:type",Object)],sb.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.m(sVh),_.T("design:type",Object)],sb.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],sb.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],sb.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],sb.prototype,"ytdReduxBehavior",void 0);_.E([_.gP("#tabs"),_.T("design:type",Object)],sb.prototype,"tabsElement",void 0);_.E([_.K(),_.T("design:type",Array)],sb.prototype,"tabs",void 0);_.E([_.K(),_.T("design:type",Object)],sb.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.t("tabs.*"),_.T("design:type",Object),_.T("design:paramtypes",[])],sb.prototype,"tabGroupShape",null);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],sb.prototype,"isRichGrid",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],sb.prototype,"isConstrainedList",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Object)],sb.prototype,"richGridMiniMode",void 0);_.E([_.K({selector:function(l){return l.ui.richGridStyle}}),
_.T("design:type",Object)],sb.prototype,"richGridStyle",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.T("design:type",Object)],sb.prototype,"isRichGridShorts",void 0);_.E([_.K({selector:_.t4}),_.T("design:type",Number)],sb.prototype,"richGridItemsPerRow",void 0);_.E([_.K({selector:function(l){return l.ui.richGridContainerWidth}}),
_.T("design:type",Number)],sb.prototype,"richGridContainerWidth",void 0);_.E([_.K({selector:_.k9d}),_.T("design:type",Number)],sb.prototype,"richGridSlimItemsPerRow",void 0);_.E([_.K(),_.T("design:type",Object)],sb.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],sb.prototype,"responsiveSizing",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],sb.prototype,"disableGridStateAware",void 0);
_.E([_.K({computed:"computeImageBannerViewModel(data)"}),_.T("design:type",Object)],sb.prototype,"imageBannerViewModel",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.T("design:type",Boolean)],sb.prototype,"hasCinematicContainer",void 0);_.E([_.K({selector:_.jnH,reflectToAttribute:!0}),_.T("design:type",Boolean)],sb.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.K({selector:O2c}),_.T("design:type",Boolean)],sb.prototype,"persistentPanelVisible",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("imageBannerViewModel"),_.T("design:type",Object),_.T("design:paramtypes",[])],sb.prototype,"hasBanner",null);_.E([_.K({reflectToAttribute:!0}),_.t("imageBannerViewModel"),_.T("design:type",Object),_.T("design:paramtypes",[])],sb.prototype,"hasInsetBanner",null);
_.E([_.K({computed:"computeTabsHidden(tabs)",value:!0}),_.T("design:type",Boolean)],sb.prototype,"tabsHidden",void 0);_.E([_.Pg("persistentPanelVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sb.prototype,"persistentPanelVisibleChanged",null);_.E([_.Pg("richGridItemsPerRow","isRichGrid"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sb.prototype,"observerRichGridItemsPerRow",null);
_.E([_.Pg("richGridSlimItemsPerRow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sb.prototype,"observerRichGridSlimItemsPerRow",null);_.E([_.Pg("richGridItemsPerRow","richGridMiniMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sb.prototype,"updateCssVars",null);
_.E([_.Pg("richGridContainerWidth"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sb.prototype,"updateCssVarsForResponsiveGrid",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sb.prototype,"onDataChanged",null);_.E([_.x({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],sb);
_.r(sb,"ytd-tabbed-page-header",function(){if(fUq!==void 0)return fUq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return fUq=l},{mode:1});var VrH;var Eb=function(){return _.p.apply(this,arguments)||this};
_.Z(Eb,_.p);Eb.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Wg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.QP.Object.defineProperties(Eb.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var l,D;return this.componentBehavior.computeIcon_(((D=_.M((l=this.data)==null?void 0:l.badge,_.mTg))==null?void 0:D.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=_.M((l=this.data)==null?void 0:l.badge,_.mTg))==null?void 0:D.label}}});
Eb.prototype.observerRichGridItemsPerRow=Eb.prototype.observerRichGridItemsPerRow;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Eb.prototype,"componentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Eb.prototype,"ytdReduxBehavior",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.aJ}),_.T("design:type",Boolean)],Eb.prototype,"richGridMiniMode",void 0);
_.E([_.K({selector:_.t4}),_.T("design:type",Number)],Eb.prototype,"richGridItemsPerRow",void 0);_.E([_.K(),_.T("design:type",Object)],Eb.prototype,"data",void 0);_.E([_.Pg("richGridItemsPerRow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Eb.prototype,"observerRichGridItemsPerRow",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Eb.prototype,"badgeIconName",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Eb.prototype,"badgeLabel",null);_.E([_.x({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Eb);
_.r(Eb,"ytd-member-hub-profile-renderer",function(){if(VrH!==void 0)return VrH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return VrH=l},{mode:1});var iwH;var TX=function(){return _.p.apply(this,arguments)||this};
_.Z(TX,_.p);TX.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],TX.prototype,"data",void 0);_.E([_.x({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],TX);
_.r(TX,"ytd-settings-sidebar-renderer",function(){if(iwH!==void 0)return iwH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return iwH=l},{mode:1});var lyC;var IQ=function(){var l=_.p.apply(this,arguments)||this;l.expandableCustomTabRenderable=function(D){return L6I(D,function(){return void l.onSearchNavigate()})};
return l};
_.Z(IQ,_.p);IQ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
IQ.prototype.onSearchNavigate=function(){this.selected=void 0};
IQ.prototype.onTabsChange=function(){var l,D=(l=this.tabs)==null?void 0:l.findIndex(function(U){var n;return U==null?void 0:(n=U.tabRenderer)==null?void 0:n.selected});
D!==void 0&&(this.selected=D)};
IQ.prototype.onTabsActive=function(l){if(this.tabs!==void 0){var D,U;(l=(D=this.tabs[l.detail.selected])==null?void 0:(U=D.tabRenderer)==null?void 0:U.endpoint)&&_.O9(this.hostElement,"yt-navigate",{endpoint:l})}};
_.QP.Object.defineProperties(IQ.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:RUk(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
IQ.prototype.onTabsChange=IQ.prototype.onTabsChange;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.yC),_.T("design:type",Object)],IQ.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],IQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],IQ.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Array)],IQ.prototype,"tabs",void 0);_.E([_.K(),_.T("design:type",Number)],IQ.prototype,"selected",void 0);_.E([_.t("tabs.*"),_.T("design:type",Object),_.T("design:paramtypes",[])],IQ.prototype,"tabGroupShape",null);_.E([_.K(),_.T("design:type",Object)],IQ.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.t("tabs"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],IQ.prototype,"tabsEnabled",null);_.E([_.GY("tabs"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],IQ.prototype,"onTabsChange",null);_.E([_.x({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],IQ);
_.r(IQ,"ytd-topic-channel-details-renderer",function(){if(lyC!==void 0)return lyC;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return lyC=l},{mode:1});var DxH;var HM=function(){var l=_.p.apply(this,arguments)||this;l.disableGridStateAware=!1;return l};
_.Z(HM,_.p);HM.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]]"}}}}}};
HM.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
HM.prototype.updateCssVars=function(){_.Wg(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.RG("rich_grid_max_item_width",500))+16)-16+"px"})};
HM.prototype.updateCssVars=HM.prototype.updateCssVars;HM.prototype.activeChanged=HM.prototype.activeChanged;_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],HM.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],HM.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],HM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],HM.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Array)],HM.prototype,"tabs",void 0);_.E([_.K(),_.T("design:type",Boolean)],HM.prototype,"active",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],HM.prototype,"disableGridStateAware",void 0);
_.E([_.K({selector:_.t4}),_.T("design:type",Number)],HM.prototype,"richGridItemsPerRow",void 0);_.E([_.K({selector:_.aJ}),_.T("design:type",Boolean)],HM.prototype,"richGridMiniMode",void 0);_.E([_.gP("ytd-carousel-item-renderer"),_.T("design:type",Object)],HM.prototype,"carousel",void 0);_.E([_.Pg("active"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HM.prototype,"activeChanged",null);
_.E([_.Pg("richGridItemsPerRow","richGridMiniMode"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HM.prototype,"updateCssVars",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],HM);
_.r(HM,"ytd-carousel-header-renderer",function(){if(DxH!==void 0)return DxH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return DxH=l},{mode:1});var Ux1;var nTW=_.wL(["https://www.google-analytics.com/analytics.js"]),Y5=function(){var l=_.p.apply(this,arguments)||this;l.scriptAnalyticsAdded=!1;return l};
_.Z(Y5,_.p);Y5.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var l,D=(l=this.data)==null?void 0:l.tagManagerId;D&&(_.fd(D,_.H3("GL")),eUD(D))};
Y5.prototype.sendGoogleAnalyticsPageview=function(l){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var U=_.EW.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(U)};
var D=window.ga;D("set","page",window.location.pathname);D.l=+new Date;D("set","forceSSL",!0);D("create",l,"'auto'");D("send","pageview")};
Y5.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var l=_.SU("SCRIPT");l.name="ga-analytics";var D=_.Ja(nTW);_.BY(l,D);l.async=!0;_.iJ(this.hostElement).appendChild(l)};
Y5.prototype.dataChanged=Y5.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],Y5.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Y5.prototype,"dataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Y5);
_.r(Y5,"ytd-channel-metadata-renderer",function(){if(Ux1!==void 0)return Ux1;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Ux1=l},{mode:1});var yAj;var AAH;var Ob=function(){var l=_.p.apply(this,arguments)||this;l.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"]);l.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"]);l.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return l};
_.Z(Ob,_.p);_.W=Ob.prototype;_.W.attached=function(){this.requestElementsPerRow()};
_.W.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_]]"}}}}}};
_.W.onUpdateElementsPerRowAction=function(l){l&&this.elementsPerRow!==l&&(this.elementsPerRow=l)};
_.W.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.W.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.W.computeAlertStyle_=function(l){return l};
_.W.observerElementsPerRow=function(){this.elementsPerRow&&_.Wg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.W.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.W.requestElementsPerRow=function(){_.O9(this.hostElement,"yt-request-elements-per-row")};
Ob.prototype.onIsVisibleChanged_=Ob.prototype.onIsVisibleChanged_;Ob.prototype.observerElementsPerRow=Ob.prototype.observerElementsPerRow;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Ob.prototype,"actionHandlerBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],Ob.prototype,"data",void 0);_.E([_.K({value:6,reflectToAttribute:!0}),_.T("design:type",Number)],Ob.prototype,"elementsPerRow",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],Ob.prototype,"wrapButtons",void 0);_.E([_.K({value:_.H3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.T("design:type",Boolean)],Ob.prototype,"isMusic",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.T("design:type",String)],Ob.prototype,"alertStyle",void 0);_.E([_.K({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.T("design:type",Function)],Ob.prototype,"dismissBoundButtonTap_",void 0);_.E([_.K({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.T("design:type",Function)],Ob.prototype,"acceptBoundButtonTap_",void 0);_.E([_.Pg("elementsPerRow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ob.prototype,"observerElementsPerRow",null);_.E([_.Pg("data.isVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ob.prototype,"onIsVisibleChanged_",null);_.E([_.S0({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Ob);
_.r(Ob,"yt-alert-with-actions-renderer",function(){if(AAH===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;yAj===void 0&&(yAj=document.createElement("template"));var n=yAj;U.call(D,n.content.cloneNode(!0),l.content.firstChild);AAH=l}l=AAH;return l},{mode:2});var W7D=_.w(function(l){var D={};return _.g(_.BO,{text:l.text,className:_.DV("ytPersonalGreetingViewModelHeadline",(D.ytPersonalGreetingViewModelHeadlineSmall=l.isSmallHeadline,D))})},"qn");_.Tt(_.w(function(l){var D=_.aT(function(){var J;return(J=l.data())==null?void 0:J.rendererContext},void 0,void 0,void 0,!0),U=function(){return l.data().canvasPromoData},n=function(){var J;
return(J=l.data().bannerHeight)!=null?J:56},y=_.B(_.uq({throttleMs:100})),A=y.next().value;
y=y.next().value;var C=_.B(_.uq({throttleMs:100})),h=C.next().value;C=C.next().value;var b=_.B(_.uq({throttleMs:100})),u=b.next().value;b=b.next().value;var Q=function(){return h.width()-A.width()>1},G=function(){return n()===48};
return _.g("yt-personal-greeting-view-model",{el:_.fe(D,y),"aria-hidden":Q,class:_.DV(l.className,"ytPersonalGreetingViewModelHost"),style:_.BK({height:(0,_.yO)(function(){return Q()?0:n()})})},_.g(_.v,{cond:function(){return l.data().avatar&&!(u.width()+(l.data().avatar?48:0)-A.width()>1)},
then:function(){return _.g(_.uI,{data:function(){return l.data().avatar}},{decoratedAvatarViewModel:function(J){return _.g(_.lX,{data:J.data,
className:_.DV("ytPersonalGreetingViewModelAvatar")})}})}}),_.g("h1",null,_.g(W7D,{text:function(){var J;
return(U==null?void 0:(J=U())==null?void 0:J.headline)||(u.width()+(l.data().avatar?48:0)-A.width()>1?l.data().shorterGreeting:l.data().greeting)},
isSmallHeadline:G})),_.g("span",{el:_.fe(b),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.g(W7D,{text:function(){return l.data().greeting},
isSmallHeadline:G})),_.g("span",{el:_.fe(C),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.g(W7D,{text:function(){return l.data().shorterGreeting},
isSmallHeadline:G})))},"pn"),"yt-personal-greeting-view-model",{props:{data:_.C$,
className:_.C$}});var VD=function(){var l=_.p.apply(this,arguments)||this;l.hidden=!1;l.isConstrainedList=!1;l.responsiveSizing="COMPACT";l.attachedPlayers=_.q("kevlar_channel_trailer_multi_attach")?[]:void 0;l.player=null;l.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return l};
_.Z(VD,_.p);_.W=VD.prototype;
_.W.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}}}}};
_.W.created=function(){var l=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){l.disposeMastheadAd()}]};
_.W.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new IYk(this.refresh,this.contents))};
_.W.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.W.activeChanged=function(){var l=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=l)};
_.W.tabsChanged=function(){var l=this,D,U;if(this.pageSubtype==="channels"||_.q("kevlar_tab_gestures_for_tabbed_header_data")&&((D=this.data)==null?0:(U=D.header)==null?0:U.carouselHeaderRenderer))this.tabGestures=new Ozk(this.contents,this.contents,this.hostElement,this.header,function(C){l.ytdReduxBehavior.dispatch(C)});
var n,y,A;D=(n=this.data)==null?void 0:(y=n.contents)==null?void 0:(A=y.twoColumnBrowseResultsRenderer)==null?void 0:A.tabs;this.tabGestures&&this.tabGestures.tabsChanged(D)};
_.W.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.W.engagementPanelsChanged=function(){var l=_.Jc().resolve(_.IH);if(l){if(this.engagementPanels)for(var D=_.B(this.engagementPanels),U=D.next();!U.done;U=D.next()){var n=void 0;(U=(n=U.value.identifier)==null?void 0:n.tag)&&l.panelMap.delete(U)}this.engagementPanels=[];var y;D=_.B(((y=this.data)==null?void 0:y.panels)||[]);for(y=D.next();!y.done;y=D.next()){y=_.M(y.value,_.RII);var A=U=void 0,C=void 0,h=void 0;if(n=((U=y)==null?void 0:U.targetId)||((A=y)==null?void 0:A.panelIdentifier)||((C=y)==
null?void 0:(h=C.identifier)==null?void 0:h.tag))A=U=void 0,(A=(U=l).registerPanelContent)==null||A.call(U,n,{engagementPanelSectionListRenderer:y}),this.engagementPanels.push(y)}}};
_.W.onStampFinished=function(){var l=this;_.u6(this,function(){if(l.tabGestures){var D=l.tabGestures;if(D.scrollPositionNeedsUpdate){var U=_.Jc().resolve(_.G8(_.sm)),n;if((n=D.selectedTab)!=null&&n.title&&U&&(n=U.getCurrentPage())){if(D.scrollPositionForTabs.has(D.selectedTab.title)){var y,A;U=(A=(y=U.getCurrentPage())==null?void 0:y.clientHeight)!=null?A:0;y=D.scrollPositionForTabs.get(D.selectedTab.title);n.setScrollTop(y);U>y+100&&(D.scrollPositionNeedsUpdate=!1)}else n.setScrollTop(Math.min(D.lastVisitedTabScrollPosition!==
void 0?D.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,D.tabsStartAtInPx)),D.scrollPositionNeedsUpdate=!1;D.ytdReduxDispatch(Zzg(!1))}}}})};
_.W.loadPage_=function(l){this.initCsi();l&&(this.data=l);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.W.getTitle=function(l){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",l))return this.get("microformat.microformatDataRenderer.title",l);if(this.get("header.feedTabbedHeaderRenderer.title",l))return _.Nl(this.get("header.feedTabbedHeaderRenderer.title",l));if(this.get("header.interactiveTabbedHeaderRenderer.title",l))return this.get("header.interactiveTabbedHeaderRenderer.title",l);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
l))return _.Nl(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",l));var D,U;return(l==null?0:(D=l.header)==null?0:(U=D.pageHeaderRenderer)==null?0:U.pageTitle)?l.header.pageHeaderRenderer.pageTitle:""};
_.W.updateTitle=function(l){_.O9(this.hostElement,"yt-update-title",this.getTitle(l))};
_.W.initCsi=function(){_.vFI(this.pageSubtype||"browse",["ol","cpt"])};
_.W.getPlayer=function(){if(_.q("kevlar_channel_trailer_multi_attach")){for(var l=_.B(this.attachedPlayers),D=l.next();!D.done;D=l.next())if(D=D.value,D.isConnected||_.Vp(this.hostElement,D))return D;return null}return this.player};
_.W.getPlayerContainer=function(){return null};
_.W.onPlayerAttached=function(l,D){_.q("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(D):this.player=D};
_.W.onPlayerDetached=function(l,D){_.q("kevlar_channel_trailer_multi_attach")?(l=this.attachedPlayers.indexOf(D),l<0||this.attachedPlayers.splice(l,1)):this.player=null};
_.W.getServiceTrackingParams=function(){var l,D;return((l=this.data)==null?void 0:(D=l.responseContext)==null?void 0:D.serviceTrackingParams)||[]};
_.W.setMastheadAd=function(l){l&&l.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=l&&l.mastheadAd};
_.W.dataChanged=function(){var l=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Av1();_.u6(this,function(){_.iu(l.hostElement,"ytd-update-grid-state-action")})};
_.W.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.W.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var l=this.data.alerts;return l&&l.find(function(D){return!!D.alertWithActionsRenderer})}};
_.W.computeGreetingData=function(){if(this.data&&this.data.alerts){var l=this.data.alerts;return l&&l.find(function(D){return!!D.personalGreetingViewModel})}};
_.W.computeHasMemberHubProfileRenderer=function(l){var D;return!!(l==null?0:(D=l.header)==null?0:D.memberHubProfileRenderer)};
_.W.handleAlertCommand=function(l){this.get("alertCommand.alert.alertWithActionsRenderer",l)&&(l=_.M(l,cvO),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",l.alert))};
_.W.handleYtPlaylistDeletionRedirect=function(l){l=this.get("playlistDeletionRedirectCommand.redirectEndpoint",l);_.O9(this.hostElement,"yt-navigate",{endpoint:l})};
_.W.computeFluidWidth=function(l,D,U){if(D==="mini_app"||U)return!0;var n,y,A;l=l==null?void 0:(n=l.contents)==null?void 0:(y=n.twoColumnBrowseResultsRenderer)==null?void 0:(A=y.tabs)==null?void 0:A.find(function(b){var u;return b==null?void 0:(u=b.tabRenderer)==null?void 0:u.selected});
if(!l)return!1;var C,h;return!!((C=l.tabRenderer)==null?0:(h=C.content)==null?0:h.richGridRenderer)&&!["channel","channels","playables"].includes(D)};
_.W.computeHeaderFluidWidth=function(l){return l==="hashtag-landing-page"};
_.W.computeHasSidebar=function(l){var D;return!!(l.sidebar||((D=l.header)==null?0:D.playlistHeaderRenderer))};
_.W.computeHasPageHeaderSidebar=function(l){var D,U;return!!((D=l.header)==null?0:(U=D.pageHeaderRenderer)==null?0:U.enableSidebarView)};
_.W.computeUseUnifiedShowPageLayout=function(l){if(!l||this.pageSubtype!=="show"||!l.sidebar||!l.sidebar.playlistSidebarRenderer)return!1;l=l.sidebar.playlistSidebarRenderer;if(!l.items)return!1;for(var D=0;D<l.items.length;D++)if(_.M(l.items[D],jVj)){var U=void 0;return((U=_.M(l.items[D],jVj))==null?void 0:U.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.W.computeIsConstrainedList=function(l){return _.q("web_enable_constrained_list_subscriptions_channels")&&l==="subscriptions-channels"};
_.W.computeResponsiveSizing=function(l){return l==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.QP.Object.defineProperties(VD.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var l,D;return((l=this.data)==null?0:(D=l.header)==null?0:D.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var l,D;if(!((l=this.data)==null?0:(D=l.sidebar)==null?0:D.playlistSidebarRenderer))return!1;var U;return(U=this.data)!=null&&U.header?!1:!0}}});
_.QP.Object.defineProperties(VD,{template:{configurable:!0,enumerable:!0,get:function(){if(Vcj===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);Vcj=l}l=Vcj;return l}}});
VD.prototype.dataChanged=VD.prototype.dataChanged;VD.prototype.onPlayerDetached=VD.prototype.onPlayerDetached;VD.prototype.onPlayerAttached=VD.prototype.onPlayerAttached;VD.prototype.onStampFinished=VD.prototype.onStampFinished;VD.prototype.engagementPanelsChanged=VD.prototype.engagementPanelsChanged;VD.prototype.scrollAtTopChanged=VD.prototype.scrollAtTopChanged;VD.prototype.tabsChanged=VD.prototype.tabsChanged;VD.prototype.activeChanged=VD.prototype.activeChanged;
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],VD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],VD.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],VD.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.ng.YtPageBehavior),_.T("design:type",Object)],VD.prototype,"ytPageBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],VD.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],VD.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],VD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],VD.prototype,"hidden",void 0);
_.E([_.K(),_.T("design:type",Object)],VD.prototype,"mastheadAdData",void 0);_.E([_.K({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.T("design:type",Object)],VD.prototype,"alertBannerData",void 0);_.E([_.K({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.T("design:type",Object)],VD.prototype,"greetingData",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],VD.prototype,"pageSubtype",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.T("design:type",Boolean)],VD.prototype,"hasMemberHubProfileRenderer",void 0);_.E([_.K({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],VD.prototype,"hasSidebar",void 0);_.E([_.K({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],VD.prototype,"hasPageHeaderSidebar",void 0);
_.E([_.K({reflectToAttribute:!0,value:!0}),_.T("design:type",Boolean)],VD.prototype,"roundedContainer",void 0);_.E([_.K({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],VD.prototype,"useUnifiedShowPageLayout",void 0);_.E([_.K({computed:"computeIsConstrainedList(pageSubtype)"}),_.T("design:type",Object)],VD.prototype,"isConstrainedList",void 0);
_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],VD.prototype,"usePlaylistHeaderRenderer",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],VD.prototype,"useOldPlaylistSidebarRenderer",null);_.E([_.K({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.T("design:type",Boolean)],VD.prototype,"fluidWidth",void 0);_.E([_.K({selector:function(l){return l.ui.scrollAtTop}}),
_.T("design:type",Boolean)],VD.prototype,"scrollAtTop",void 0);_.E([_.K({selector:_.FX8}),_.T("design:type",Boolean)],VD.prototype,"tabGesturesIsActive",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.T("design:type",Boolean)],VD.prototype,"disableHeaderFluidWidth",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.T("design:type",String)],VD.prototype,"responsiveSizing",void 0);
_.E([_.gP("ytd-two-column-browse-results-renderer"),_.T("design:type",HTMLElement)],VD.prototype,"contents",void 0);_.E([_.gP("#header"),_.T("design:type",HTMLElement)],VD.prototype,"header",void 0);_.E([_.gP("ytd-refresh"),_.T("design:type",Object)],VD.prototype,"refresh",void 0);_.E([_.Pg("active"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VD.prototype,"activeChanged",null);
_.E([_.Pg("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VD.prototype,"tabsChanged",null);_.E([_.Pg("scrollAtTop"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VD.prototype,"scrollAtTopChanged",null);_.E([_.K(),_.T("design:type",Object)],VD.prototype,"engagementPanels",void 0);
_.E([_.Pg("data.panels"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VD.prototype,"engagementPanelsChanged",null);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VD.prototype,"onStampFinished",null);_.E([_.hj("yt-player-attached"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Element]),_.T("design:returntype")],VD.prototype,"onPlayerAttached",null);
_.E([_.hj("yt-player-detached"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Element]),_.T("design:returntype")],VD.prototype,"onPlayerDetached",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],VD.prototype,"dataChanged",null);_.E([_.x({is:"ytd-browse"})],VD);_.Du.registerService(_.bN3,VD);
_.sd();
}catch(e){_._DumpException(e)}
try{
_.Nx("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 Zb,HY$,Yl5,OYq,V0W,iew,lk8,DD2,UD8,nt8,yer,AeP,BhJ,Cmw,PmW,beH,gtq,vt$,QO$,Gtw,Jev,e$,qV2,ma,MQ5,RHr,Ze5,eHJ,mDJ,tQr,SVv,akH,Wp$,ktW,dDT,Kpr,ceT,p9$,xD2,jOr,FpJ,otP,reJ,zHr,$Dv,sO8,Etq,Thr,HeW,Oew,VQ2,i0T,lV5,Dh$,Uhq,noH,y1J,A1v,W8H,Bf8,C_v,P_r,b0$,goJ,uE5,voq,QLr,G4J,J12,qmq,MZv,R0w,Z05,e0$,mh5,aV8,tZ8,XK8,Sm8,k48,dh2,K85,c1$,pKH,xhT,jLq,F8W,oo$,wKq,r1H,z0w,fV8,$hJ,pZ,Nfr,sLT,Ym$,AiH,hdv,PI$,QTJ,Ji2,vvr,gv5,mJT,Xr$,prW,bqW,kyW,aX$,GyP,jTJ,wrJ,fX8,riT,zdW,$Jr,TN$,sTT,IXv,HqJ,Ev$,NN5,YEq,oC,Ud$,
nX$,yBq,w4,ABT,WGr,Bk5,uZT,vXq,r4,zf,GMP,Qzv,JBP,LGv,qr5,Mtv,fZ,SrJ,$3,kM8,ddJ,KGP,N6,oXJ,pFr,FG$,wF2,xdJ,zWv,jz2,NkJ,ffW,$d8,szJ,Tk5,EXJ,O4$,D95,IC,Hs,iE$,nq8,lLJ,U9J,Y3,V$,iS,lS,aLJ,Q78,S4$,khJ,d9P,KCv,pI8,PDw,bEv,n8,uw8,DK,Uk,vqP,cS8,ta$,gq2,AN,EqJ,ILw,HEq,TL5,fL8,OEH,loq,rSJ,oqv,wIv,nzT,zFr,C8,ih$,$9q,Va$,s7H,FCw,NLP,AU8,Wev,B6J,hMw,bhv,gz8,u9W,vz$,GlP,Qm8,LeW,qyq,RMT,ZhP,mFH,aoW,tYr,XmP,SyH,klT,dFq,cUT,Ke$,pmJ,jmJ,Fe$,bS,oz8,wmH,rU$,zM8,$F8,N65,sm$,Ezr,T6v,IoT,Hh5,OhH,VY$,iT$,lR$,nhW,AzJ,Wb8,
CWr,BUH,hL2,PWv,bT5,up8,vhT,QR8,G5J,Jz$,Lb5,qFw,M85,RLP,ZTW,eLJ,Xl5,SFv,aRJ,t8J,mU5,k52,cz$,dUH,Kb5,jR2,plw,xUq,FbT,ohT,wl8,rz5,fR8,$U8,NUW,Eh8,TUW,HT2,OTT,ibW,Di$,nN8,AX$,BxW,hmJ,gNH,vNP,QPJ,Gmq,LOW,JXJ,MeW,Rmq,ZbJ,emJ,uS,miv,az$,te2,wbJ,zmH,fz$,EN$,GQ,TxP,IzT,HbJ,Obv,YYH,Ve5,iL$,lr8,DHP,UH8,Eow,nPW,y85,lzT,A8W,WS$,Nhv,BIq,Cor,hNP,PoJ,bLJ,gP$;
Zb=function(l){if(!l)return"browse";var D=l.page,U=l.url,n,y,A,C=(n=l.response)==null?void 0:(y=n.responseContext)==null?void 0:(A=y.webResponseContextExtensionData)==null?void 0:A.pageTheme;if(C)D=C.toLowerCase().replace(/_/g,"-");else if(D!=="watch"&&D!=="learning_journey_watch"){var h,b;if((D==="browse"||D==="settings")&&((h=l.response)==null?0:(b=h.sidebar)==null?0:b.settingsSidebarRenderer))D="WEB_PAGE_TYPE_SETTINGS";else{var u,Q;D==="browse"&&((u=l.response)==null?0:(Q=u.metadata)==null?0:Q.channelMetadataRenderer)?
D="channel":U&&(D=_.ndK(U)||D)}}return D};
HY$=function(){var l=_.UG("yt.aba.att");return l?l:_.jI.instance!==void 0?_.jI.instance.zKu.bind(_.jI.instance):null};
Yl5=function(l,D){var U;return _.P(function(n){return(U=HY$())?n.return(U(l,D,6E4)):n.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
OYq=function(l,D,U,n,y){D=D===void 0?[]:D;y=y?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:y}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.H6(l),dialogMessages:D.map(function(A){return _.H6(A)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.H6(U),serviceEndpoint:y}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.H6(n)}}}}}};
V0W=function(l,D,U){U=U===void 0?!1:U;var n=_.r3(),y=!!_.uN().queueProxy,A,C,h;l=l==null?void 0:(A=l.response)==null?void 0:(C=A.currentVideoEndpoint)==null?void 0:(h=C.watchEndpoint)==null?void 0:h.playlistId;if((y||l)&&!_.q("web_watch_disable_playlist_auto_miniplayer"))return U&&(n.playlistWatchPageActivation=!0),!0;switch(Zb(D)){case "yts-products":return U&&(n.productDetailsPageActivation=!0),!0;case "mini_app":return U&&(n.miniAppPageActivation=!0),!0;case "playables":return U&&(n.playablesDestPageActivation=
!0),!0;case "companion-canvas":return U&&(n.companionCanvasActivation=!0),!0;default:return!1}};
iew=function(l){l=_.WBg(l);l.length>0&&l[0].focus()};
lk8=function(l,D,U){for(var n=typeof l==="string"?l.split(""):l,y=l.length-1;y>=0;--y)y in n&&D.call(U,n[y],y,l)};
DD2=function(l,D){D=_.XoN(l,D);D>=0&&_.dsg(l,D)};
UD8=function(l){return Array.prototype.concat.apply([],arguments)};
nt8=function(l){var D=0;D=D===void 0?0:D;if(!_.U5(l))throw _.lH("uint64");var U=typeof l;switch(D){case 512:switch(U){case "string":return _.drK(l);case "bigint":return String((0,_.Jr)(64,l));default:return _.S7g(l)}case 1024:switch(U){case "string":return _.Kkd(l);case "bigint":return _.F8((0,_.Jr)(64,l));default:return _.kvK(l)}case 0:switch(U){case "string":return _.drK(l);case "bigint":return _.F8((0,_.Jr)(64,l));default:return _.X5$(l)}default:return _.Tv(D,"Unknown format requested type for int64")}};
yer=function(l){l!=null&&(l=l.JSC$8901_value_||"",l=typeof l==="string"?l:new Uint8Array(l));return l};
AeP=function(l,D){if(/-[a-z]/.test(D))return null;if(_.vT5&&l.dataset){if(_.LB3()&&!(D in l.dataset))return null;l=l.dataset[D];return l===void 0?null:l}return l.getAttribute("data-"+_.CI(D))};
BhJ=function(){var l=Wp$;_.UG("yt.ads.biscotti.getId_")||_.vG("yt.ads.biscotti.getId_",l)};
Cmw=function(l){_.vG("yt.ads.biscotti.lastId_",l)};
PmW=function(){var l={};for(_.sG=new hHJ(l.handleError===void 0?_.Tj:l.handleError,l.logEvent===void 0?_.Na:l.logEvent);_.EG.length>0;)switch(l=_.EG.shift(),l.type){case "ERROR":_.sG.logError(l.payload);break;case "EVENT":_.sG.logEvent(l.eventType,l.payload)}};
beH=function(l,D,U){return _.CQ_(function(n){return U?n.userIdentifier!==void 0&&!l.includes(n.userIdentifier)&&U.includes(n.publicName):n.userIdentifier!==void 0&&!l.includes(n.userIdentifier)},D)};
gtq=function(l){var D,U;return _.P(function(n){if(n.nextAddress==1)return D=_.oG("YtIdbMeta hasAnyMeta other"),n.yield(_.CQ_(function(y){return y.userIdentifier!==void 0&&y.userIdentifier!==D},l),2);
U=n.yieldResult;return n.return(U.length>0)})};
vt$=function(l,D){ukJ||(ukJ=_.Tn.addLowPriorityJob(function(){var U,n,y,A,C;return _.P(function(h){switch(h.nextAddress){case 1:return h.yield(_.Qo(),2);case 2:U=h.yieldResult;if(!U)return h.return();n=!0;_.ZY(h,3);return h.yield(beH(l,U,D),5);case 5:y=h.yieldResult;if(!y.length){n=!1;h.jumpTo(6);break}A=y[0];return h.yield(_.BG(A.actualName),7);case 7:return h.yield(_.PG(A.actualName,U),6);case 6:_.WG(h,4);break;case 3:C=_.kF(h),_.T8(C),n=!1;case 4:_.Tn.cancelJob(ukJ),ukJ=0,n&&vt$(l,D),_.Kz(h)}})}))};
QO$=function(){var l;return _.P(function(D){return D.nextAddress==1?D.yield(_.Qo(),2):(l=D.yieldResult)?D.return(gtq(l)):D.return(!1)})};
Gtw=function(l){var D=100;D=D===void 0?500:D;var U,n,y,A,C,h;return _.P(function(b){return b.nextAddress==1?(U=_.H3("INNERTUBE_CONTEXT_CLIENT_NAME",0),n=[U,(0,_.J3)()-2592E6],y=[U,(0,_.J3)()],A=IDBKeyRange.bound(n,y),b.yield(_.xQc(l),2)):b.nextAddress!=3?(C=b.yieldResult,h=[],b.yield(_.h3(C,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(u){h.length=0;return _.L6(u.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:A,direction:"prev"},function(Q){if(Q.getValue()&&h.length<
D)return h.push(Q.getValue()),Q.delete().then(function(){return Q.continue()})})}),3)):b.return(h)})};
Jev=function(){var l;return _.P(function(D){if(D.nextAddress==1)return D.yield(_.Qo(),2);l=D.yieldResult;if(!l||!_.wc()&&!_.q("nwl_init_require_datasync_id_killswitch")||!_.lk9())return D.jumpTo(0);_.UD9=!0;_.DDo.isNwlInitialized=_.UD9;return D.yield(_.KFy().awaitInitialization(),0)})};
e$=function(l,D){_.qVo[l]=!0;var U=_.JL();U&&U.publish.apply(U,arguments);_.qVo[l]=!1};
qV2=function(){if(_.YJN()&&!Lpq){var l=function(U){U=U.data;if(U.op==="serializedGelBatch"){var n=_.MZ9.get(U.key);n&&(_.Z0c(U.serializedBatch,n.client,n.resolve,n.networklessOptions,n.isIsolated,n.useVSSEndpoint,n.dangerousLogToVisitorSession,n.requestsOutstanding),_.MZ9.delete(U.key))}},D=_.HUd();
D&&(D.addEventListener("message",l),D.onerror=function(){_.MZ9.clear()});
Lpq=!0}};
ma=function(){this.relativeTimeStart_=_.I7()};
MQ5=function(l,D){l!=null&&this.append.apply(this,arguments)};
RHr=function(){return _.KI("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
Ze5=function(l,D,U){U=U===void 0?!1:U;var n,y,A,C,h;return _.P(function(b){switch(b.nextAddress){case 1:_.j_("SOCS",l,34128E3,"youtube.com",!0);if(_.nh)return y=fetch(D,{method:"POST",mode:_.oS(D),credentials:_.FG(D),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),A=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.oS("/upgrade_visitor_cookie?eom=1"),credentials:_.FG("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),b.yield(Promise.all([y,A]).then(function(u){return u[1]}),5);
fetch(D,{method:"POST",mode:_.oS(D),credentials:_.FG(D),cache:"no-store",headers:{"Content-Type":"text/plain"}});return b.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.oS("/upgrade_visitor_cookie?eom=1"),credentials:_.FG("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:n=b.yieldResult;b.jumpTo(3);break;case 5:n=C=b.yieldResult;case 3:if(!n.ok)throw Error("uf");return b.yield(n.text(),7);case 7:h=b.yieldResult,
!h.includes('"state_switch":true')&&!U||h.includes("skip_reload_for_test")||window.location.reload(),_.Kz(b)}})};
eHJ=function(l){return _.P(function(D){return D.nextAddress==1?D.yield(Ze5(l.socsCookie,l.savePreferenceUrl,!0),2):D.return()})};
mDJ=function(l){return _.P(function(D){return D.nextAddress==1?D.yield(Ze5(l.socsCookie,l.savePreferenceUrl),2):D.return()})};
tQr=function(l){l=l.xhr.responseText;if(!_.Ad(l,")]}'"))throw new aC;l=JSON.parse(l.substr(4));if((l.type||1)>1)throw new aC;l=l.id;Cmw(l);tF=_.Qn(l);akH(18E5,2);return l};
SVv=function(l,D){D=new X9W(D);Cmw("");tF=_.xYv(D);l>0&&akH(12E4,l-1);throw D;};
akH=function(l,D){_.tc(function(){_.usJ().then(tQr,function(U){return SVv(D,U)}).thenCatch(_.RR)},l)};
Wp$=function(){var l=_.GYv();if(l!==void 0)return _.Le(l);tF||(tF=_.usJ().then(tQr).thenCatch(function(D){return SVv(2,D)}));
return tF};
ktW=function(){var l=document;return _.pC(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(D){return"on"+D.toLowerCase()in l})};
dDT=function(l){l.addEventListener("click",function(D){var U=D.target;U&&U.getAttribute("href")&&(U=U.getAttribute("href"),_.DY(window,U,"_blank"),D.preventDefault(),D.stopImmediatePropagation())})};
Kpr=function(l){var D,U,n,y=(n=(U=((D=l.mainDownloadsListEntity)!=null?D:{})[_.RZ$])==null?void 0:U.refresh)!=null?n:"",A;l=(A=l.refresh)==null?void 0:A[y];y=l!=null?l:{};return(y==null?0:y.refreshTime)?Number(y==null?void 0:y.refreshTime):0};
ceT=function(l,D){var U=_.Ml(l);return D.every(function(n){var y;n=n==null?void 0:(y=n.playbackDataEntity)==null?void 0:y.key;if(!n)return!1;y=_.n7(_.lQ(n).entityId,"mainVideoEntity");return!!U[y]})};
p9$=function(l){l=_.QT(l.entities);return _.jfc(l).length};
xD2=function(l,D){if(D){var U;l=(U=_.yT(l.entities,"downloadQualityPickerEntity",D))!=null?U:void 0}else l=void 0;return l};
jOr=function(l){var D=document.getElementsByTagName("ytd-enforcement-message-view-model");D.length===0||getComputedStyle(D[0]).display==="none"?l(0,"p.h_"):l(1,"p.h_")};
FpJ=function(){Xg=0;var l=[_.uV(!0)];S$&&_.iu(S$,"yt-window-resized",l)};
otP=function(){Xg||(Xg=_.Tn.addLowPriorityJob(FpJ,200))};
reJ=function(){k3=0;w9q=_.QBy(document);var l=[w9q];S$&&_.iu(S$,"yt-window-scrolled",l)};
zHr=function(){k3||(k3=_.Tn.addLowPriorityJob(reJ,200))};
$Dv=function(l){l=l===void 0?null:l;fk5.push(_.uy(window,"resize",otP));fk5.push(_.uy(window,"scroll",zHr));l&&(S$=l)};
sO8=function(){var l=_.LU.getLocalStorage();l&&Nhv(l,l.mechanism.__iterator__(!0))};
Etq=function(l){_.P(function(D){if(D.nextAddress==1)return D.yield(l.delete("yt-appshell-assets"),2);_.Kz(D)})};
Thr=function(l){return _.C6((0,_.rwg)(),l)};
HeW=function(){var l;_.P(function(D){return D.nextAddress==1?D.yield(d4.getInstance(),2):(l=D.yieldResult)?D.yield(Ik8(l),0):D.jumpTo(0)})};
Oew=function(){var l;_.P(function(D){return D.nextAddress==1?D.yield(KZ.getInstance(),2):(l=D.yieldResult)?D.yield(YVJ(l),0):D.jumpTo(0)})};
VQ2=function(l){Etq(l);HeW();Oew()};
i0T=function(l){var D,U;return _.P(function(n){if(n.nextAddress==1)return n.yield(_.aD3(l),2);if(D=n.yieldResult){var y;a:{if(D.headers&&(y=D.headers.get("date"))&&(y=Date.parse(y),!isNaN(y))){y=Math.round((0,_.J3)()-y);break a}y=-1}U=y;if(U>-1)return n.return(U)}return n.return(-1)})};
lV5=function(){var l=_.nC.caches,D=_.il("IS_SHELL_LOAD"),U,n;_.P(function(y){if(y.nextAddress==1)return U=-1,D?y.yield(i0T(l),3):(n=_.JJ(),U=Math.round((0,_.J3)()-n),y.jumpTo(2));y.nextAddress!=2&&(U=y.yieldResult);U>=0&&U<2147483648&&_.ZP({appInstallDataAgeMs:U});_.Kz(y)})};
Dh$=function(l){var D=_.Dp(_.nC.location.href),U={};"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(n){var y=D.JSC$10113_queryData_.getValues(n);if(y==null?0:y.length)U[n]=y});
return _.L2(l,new Map(Object.entries(U)))};
Uhq=function(l){l=l.match(/(.*)::.*::.*/);if(l!==null)return l[1]};
noH=function(l){if(_.NR9()){var D=Object.keys(window.localStorage);D=_.B(D);for(var U=D.next();!U.done;U=D.next()){U=U.value;var n=Uhq(U);n===void 0||l.includes(n)||self.localStorage.removeItem(U)}}};
y1J=function(){if(!_.NR9())return!1;var l=_.oG(),D=Object.keys(window.localStorage);D=_.B(D);for(var U=D.next();!U.done;U=D.next())if(U=Uhq(U.value),U!==void 0&&U!==l)return!0;return!1};
A1v=function(l){return _.Bs("NotificationsDisabled",l)};
W8H=function(){return Notification.permission!="granted"?Promise.resolve():_.ofJ().then(function(l){return l?l.pushManager.getSubscription().then(function(D){if(D)return Promise.resolve();D={userVisibleOnly:!0,applicationServerKey:_.Oc("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return l.pushManager.subscribe(D).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
Bf8=function(l){return _.ofJ().then(function(D){if(!D||!D.active)return Promise.reject(new _.rc("serviceworker.postMessage",l,D));try{return D.active.postMessage(l),Promise.resolve()}catch(U){return Promise.reject(U)}})};
C_v=function(){Bf8({type:"notifications_register",data:_.H3("ID_TOKEN")})};
P_r=function(){var l={isWide:_.xZ.get("wide","0")==="1"},D=_.bu();if(D=D.getFlag(165)||D.getFlag(174))l.theme=_.pU(!0);if(_.CTc()){var U=_.ck()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";l.systemTheme=U}!D&&_.q("parent_tools_enable_app_settings")&&_.BS(window.location.href).theme!==void 0&&(l.theme=_.pU());if((D=cs)?!_.we.equals(D,l):l)D={currentValue:l},h02&&(D.timeSinceLastSnapshotSecs=Math.round(((0,_.J3)()-h02)/1E3)),cs&&(D.previousValue=cs),_.Na("appSettingsCaptured",D),cs=l,h02=
(0,_.J3)()};
b0$=function(){if(!_.il("LOGGED_IN"))return Promise.resolve(!1);var l=_.e_("service_worker_push_force_notification_prompt_tag");return l?_.YV("PromptTags").then(function(D){if(!D)return!0;var U=[];try{U=JSON.parse(D)}catch(n){return!1}return U&&U.indexOf(l)==-1}):Promise.resolve(!1)};
goJ=function(){var l=_.RG("service_worker_push_prompt_delay_microseconds");return l?_.YV("PromptTime").then(function(D){return Promise.resolve(Date.now()-l>(D||0))}):Promise.resolve(!0)};
uE5=function(){var l=_.RG("service_worker_push_logged_out_prompt_watches");return l==-1?Promise.resolve(!1):_.YV("WatchCount").then(function(D){return D>=l})};
voq=function(){var l=_.HK(document,"yt-push-prompt-modal-bg");l&&_.kT(l)};
QLr=function(){return _.RG("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.YV("PromptCount").then(function(l){l||(l=0);return Promise.resolve(l<_.RG("service_worker_push_prompt_cap"))})};
G4J=function(l){return _.il("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.il("LOGGED_IN")&&(l===void 0?0:l)?b0$().then(function(D){if(D)return!0;D=[QLr(),goJ()];_.il("LOGGED_IN")||D.push(uE5());return Promise.all(D).then(function(U){return U.every(function(n){return n})})}):Promise.resolve(!1)};
J12=function(){_.YV("PromptCount").then(function(l){return _.Bs("PromptCount",l+1)}).then(function(){return _.Bs("PromptTime",Date.now())}).then(function(){var l=_.e_("service_worker_push_force_notification_prompt_tag");
if(l)return _.YV("PromptTags").then(function(D){var U=[];if(D)try{U=JSON.parse(D)}catch(n){return!1}U||(U=[]);U.push(l);return _.Bs("PromptTags",JSON.stringify(U))})})};
qmq=function(){L88||voq()};
MZv=function(l){l.style.zIndex=2147483648;l.style.pointerEvents="auto";l.style.backgroundColor="rgba(0, 0, 0, 0.6)";l.style.width="100%";l.style.height="100vh";l.style.position="absolute";l.style.top="0";l.style.left="0";l.style.border="none"};
R0w=function(){var l=_.HK(document,"yt-push-prompt-modal-bg");L88=_.q("service_worker_push_prompt_modal_ignore_click");l?MZv(l):(l=_.kh("div",{id:"yt-push-prompt-modal-bg"}),MZv(l),document.body.appendChild(l),_.vt_(document,"click",qmq))};
Z05=function(){var l=arguments;_.q("service_worker_push_prompt_modal_enable")&&R0w();return Notification.requestPermission().then(function(D){voq();var U=document.getElementById("ticker");U&&(U.className=U.classList.remove("show"));if(D=="granted")return W8H().then(function(){A1v(!1);C_v();return Promise.resolve(!0)});
D=="denied"&&C_v();return Promise.resolve(!1)}).catch(function(){voq();
return Promise.reject.apply(Promise,_.zz(l))})};
e0$=function(l){l=l===void 0?!1:l;var D=_.uDG().client;if(D&&D.browserVersion){var U=D.browserVersion,n=D.browserName=="CHROME"&&_.Qg(U,"50.0.0")<0;D=D.browserName=="OPERA"&&_.Qg(U,"42.0.0")<0;if(n||D)return Promise.resolve()}return _.z9J().then(function(y){if(!y)return Promise.resolve();y=W8H().then(function(){return Bf8({type:"notifications_check_registration",data:_.H3("ID_TOKEN")})});
return Notification.permission!="default"?y.catch(function(){}):y.then(function(){return G4J(l)}).then(function(A){if(A)return J12(),Z05().then(function(){})}).catch(function(){})})};
mh5=function(l){return _.wkP(l)?e0$():Promise.resolve()};
aV8=function(l){var D=l.installing||l.waiting;return l.active||!D?Promise.resolve(l):new Promise(function(U){var n=function(y){y=y.target;if(y.state==="activated"||y.state==="redundant")D.removeEventListener("statechange",n),U(l)};
D.addEventListener("statechange",n)})};
tZ8=function(){var l=new _.ZiG("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.yI(l,{mainAppWeb:_.on()});var D=_.WqH;_.q("service_worker_forward_exp_params")&&(D=Dh$(D));try{var U=_.G69(D).catch(function(){_.AS(l,"FAILURE");return new Promise(function(){})});
_.q("service_worker_push_enabled")&&U.then(function(n){_.AS(l,"SUCCESS");return n}).then(aV8).then(mh5)}catch(n){if(_.AS(l,"FAILURE"),n.name!=="SecurityError")throw n;
}};
XK8=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&tZ8()};
Sm8=function(l,D){var U={};D&&(U.serializedYpcFamilyCreateLoggingParams=D);_.Na(l,U);_.sU()};
k48=function(l,D){var U={};U.serializedYpcRefundFlowLoggingParams=D;l&&(U.eventType=l);_.Na("ypcRefundFlowEvent",U);_.sU()};
dh2=function(l){l&&_.LoB("transactionFlowSucceeded",l)};
K85=function(l){l&&_.ww("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",l,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
c1$=function(l){var D,U,n,y,A,C,h;_.P(function(b){if(b.nextAddress==1)return b.yield(_.iHd(),2);if(b.nextAddress!=3){if(!b.yieldResult)return b.return(!1);D=[];return b.yield(_.i_.keys(),3)}U=b.yieldResult;n=_.B(U);for(y=n.next();!y.done;y=n.next())A=y.value,C=_.OR3(A),h=C.datasyncId,!h||l.includes(h)||D.push(_.i_.delete(A));return b.return(Promise.all(D).then(function(u){return u.some(function(Q){return Q})}))})};
pKH=function(){var l,D,U,n,y,A,C;return _.P(function(h){if(h.nextAddress==1)return h.yield(_.iHd(),2);if(h.nextAddress!=3){if(!h.yieldResult)return h.return(!1);l=_.oG("cache contains other");return h.yield(_.i_.keys(),3)}D=h.yieldResult;U=_.B(D);for(n=U.next();!n.done;n=U.next())if(y=n.value,A=_.OR3(y),(C=A.datasyncId)&&C!==l)return h.return(!0);return h.return(!1)})};
xhT=function(){var l=_.Jc().resolve(_.G8(_.Wa7));return l?l.getCurrentTime():0};
jLq=function(){var l,D,U,n,y,A,C,h,b,u,Q,G,J,L;return _.P(function(R){switch(R.nextAddress){case 1:l={},D=_.nr_(),U=_.B(Object.entries(D)),n=U.next();case 4:if(n.done){R.jumpTo(3);break}y=n.value;A=_.B(y);C=A.next().value;h=A.next().value;b=C;u=h;if(!u){R.jumpTo(5);break}return R.yield(u(),8);case 8:l[b]=R.yieldResult;case 5:n=U.next();R.jumpTo(4);break;case 2:Q=_.B(),G=Q.next();case 9:if(G.done){R.jumpTo(3);break}J=G.value;L=D[J];if(!L){R.jumpTo(10);break}return R.yield(L(),13);case 13:l[J]=R.yieldResult;
case 10:G=Q.next();R.jumpTo(9);break;case 3:return R.return(l)}})};
F8W=function(){var l;_.P(function(D){if(D.nextAddress==1)return D.yield(jLq(),2);l=D.yieldResult;return D.yield(navigator.clipboard.writeText(JSON.stringify(l,null,2)),0)})};
oo$=function(l,D){return _.yT(l.entities,"superThanksSelectedTierEntity",D)};
wKq=function(l,D){return{popup:{searchSuggestionReportDialog:{searchQuery:l,title:_.C3("SBOX_INAPPROPRIATE_TITLE"),suggestions:D,categoryLabel:_.C3("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.C3("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.C3("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.C3("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.C3("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.C3("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.C3("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.C3("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.C3("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.C3("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
r1H=function(l){var D,U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N;return _.P(function(z){switch(z.nextAddress){case 1:return z.yield(_.Bc(),2);case 2:return(D=z.yieldResult)?z.yield(_.QQd(D),3):z.return();case 3:U=z.yieldResult;if(!U)return z.return();y=((n=U.offlineVideos)==null?void 0:n.length)||0;C=((A=U.offlinePlaylists)==null?void 0:A.length)||0;if(y===0&&C===0)return z.return();h=0;if(U.offlineVideos)for(b=_.B(U.offlineVideos),u=b.next();!u.done;u=b.next())Q=u.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
Q.videoState&&(h+=1);l.offline_videos_count=y.toString();_.q("kevlar_log_offline_current_network_type_ks")||(l.offline_current_network_type=(G=_.F0K())!=null?G:"CONN_INVALID");_.q("kevlar_log_updated_time_for_smart_downloads")&&(J=_.EB().getState().entities,L=_.mF(J),R=Kpr(J),l.offline_smart_downloads_last_sync_time_ms=L.toString(),l.offline_smart_downloads_next_sync_time_ms=R.toString());l.offline_videos_playable=h.toString();l.offline_playlists_count=C.toString();U.offlineVideos&&(a=U.offlineVideos.reduce(function(f,
I){I.downloadedBytes&&(f+=Number(I.downloadedBytes));return f},0).toString())&&(l.offline_used_disk_space_bytes=a);
if(!((S=navigator)==null?0:(d=S.storage)==null?0:d.estimate)){z.jumpTo(4);break}return z.yield(navigator.storage.estimate(),5);case 5:c=z.yieldResult,l.offline_free_disk_space_bytes=(((N=c)==null?void 0:N.quota)||0).toString();case 4:l.offline_client_state=JSON.stringify(U),_.Kz(z)}})};
z0w=function(l){l=l.match(/(.*)::.*::.*/);if(l!==null)return l[1]};
fV8=function(l){if(_.ji3()){var D=Object.keys(window.sessionStorage);D=_.B(D);for(var U=D.next();!U.done;U=D.next()){U=U.value;var n=z0w(U);n===void 0||l.includes(n)||self.sessionStorage.removeItem(U)}}};
$hJ=function(){if(!_.ji3())return!1;var l=_.oG(),D=Object.keys(window.sessionStorage);D=_.B(D);for(var U=D.next();!U.done;U=D.next())if(U=z0w(U.value),U!==void 0&&U!==l)return!0;return!1};
pZ=function(l,D,U){(_.q("desktop_keyboard_shortcut_usage_log")||U&&_.q("web_shorts_keyboard_shortcut_usage_log"))&&(D?_.g4.get(l):_.b7.get(l))&&(l=D?_.vs.get(l):_.u7.get(l))&&_.zo(_.t6(),l)};
Nfr=function(l,D){return l.findIndex(function(U){return U.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(D.keyCode):!1};
sLT=function(l,D){D.stack&&(l.stack+="\n"+D.stack);return l};
Ym$=function(l){var D=Eow(l,"Content-Type");if(!D)return null;D=D.toLowerCase();if(D.startsWith("application/json"))return D.startsWith("application/json+protobuf")?new Tf$:new _.G2;if(D.startsWith("application/x-protobuf")){l=Eow(l,"Content-Transfer-Encoding");if(!l)return new IV5;if(l.toLowerCase()=="base64")return new H0r}return null};
AiH=function(l,D,U,n){var y=new O0r(function(h,b){return VZr.has(b)?h.sentinel==="gal"&&h.event!==void 0:!1},function(h){h.event?(h=iqP(h.event),h=!h||lXH(n,h)?!0:_.bB(l.lastEvent,x3,2,j$)?!_.bB(h,Fg,1,j$)&&!_.bB(h,x3,2,j$):!_.bB(h,Fg,1,j$)&&!_.bB(h,x3,3,j$)):h=!0;
return h});
U=_.L2(l.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",DJ5(U)]]));if(l.nestedOrigins!==void 0)for(var A=_.B(l.nestedOrigins),C=A.next();!C.done;C=A.next())U=_.L2(U,new Map([["origin",C.value]]));return UJw(y,U,D).then(function(h){h=nv8(h.event);if(_.bB(h,Fg,1,j$)){var b,u=(b=_.tU(h,Fg,1,j$))==null?void 0:_.eY(b,2);u&&n.JSC$19801_logErrorEvent(yiP(u));b=_.tU(h,Fg,1,j$);_.eY(b,2)===4?(h=_.tU(h,Fg,1,j$),h={statusCode:11,statusMessage:_.Zo(h,
3)}):(h=_.tU(h,Fg,1,j$),h={statusCode:12,statusMessage:_.Zo(h,3)});return h}_.bB(h,x3,3,j$)?(h=_.tU(h,x3,3,j$),h={statusCode:1,consentLanguageKeys:_.Zo(h,2)}):h={statusCode:1};return h}).catch(function(h){return h.errorCode!==void 0?{statusCode:h.errorCode,
statusMessage:h.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
hdv=function(l){var D={};if(l===void 0||l===null)return D;l.getToken()!==void 0&&WrJ(l.getToken())&&WrJ(l.getToken()).length>0&&(D.scopes=new Set(WrJ(l.getToken())));l.getToken()!==void 0&&BNT(l.getToken())&&BNT(l.getToken()).length>0&&(D.capabilities=new Set(BNT(l.getToken())));_.Zo(l,3)!==void 0&&(D.consistencyKey=_.Zo(l,3));l.getName()!==void 0&&l.getName()!==""&&(D.linkName=l.getName());_.Pm(l,CI2,4)&&(l=_.MZ(l,CI2,4),l=Object.assign({},_.Zo(l,1)&&{userId:_.Zo(l,1)},_.Zo(l,2)&&{displayName:_.Zo(l,
2)},_.Zo(l,3)&&{email:_.Zo(l,3)},_.Zo(l,5)&&{username:_.Zo(l,5)},_.Zo(l,4)&&{profilePicture:_.Zo(l,4)}),D.profile=l);return D};
PI$=function(l,D){var U=l.flowParams,n;return{serviceId:U.serviceId,sessionId:U.sessionId,currentFlow:l.currentFlow,googleScopesString:D,linkingSessionSerialized:l.session.serialize(),consentLanguageKeys:U.consentLanguageKeys,callerState:l.callerState,dynamicUrlParameters:U.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(n=U.partnerConfigMinReadTimestamp)==null?void 0:n.serialize()}};
QTJ=function(l){var D=l.googleScopes!==void 0?Array.from(l.googleScopes).join(","):"";bqW(PI$(l,D));D=gv5(l);return D===null?Promise.resolve(u7P):D.start().then(function(U){var n,y=(n=U.link)==null?void 0:n.consistencyKey;return U.statusCode===1&&l.googleScopes!==void 0&&l.googleScopes.size>0&&y!==void 0?(n=l.flowParams,vvr(n.serviceId,n.sessionId,l.googleScopes,y,n.galService,l.config,U)):U})};
Ji2=function(l){var D=gv5(l);return D===null?Promise.resolve(GyP({statusCode:7,statusMessage:"Failed to create flow object"},l.callerState)):D.complete().then(function(U){var n,y=(n=U.link)==null?void 0:n.consistencyKey;return U.statusCode===1&&l.googleScopes!==void 0&&l.googleScopes.size>0&&y!==void 0?(n=l.flowParams,vvr(n.serviceId,n.sessionId,l.googleScopes,y,n.galService,l.config,U)):GyP(U,l.callerState)},function(U){return GyP({statusCode:12,
statusMessage:"Failed to complete the flow: "+U.message},l.callerState)})};
vvr=function(l,D,U,n,y,A,C){return Lrv(y,{serviceId:l,sessionId:D,googleScopes:U,consistencyKey:n}).then(function(){return C},function(h){return y.deleteLink({serviceId:l,
sessionId:D,accountLinkingEntryPoint:A.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+h.message}},function(b){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+b.message}})})};
gv5=function(l){switch(l.currentFlow){case 1:var D=l.flowParams;l=_.MZ(l.session,qE$,1);return Mq8.createOAuthFlow(D,l);case 2:case 3:return D=l.flowParams,l=_.MZ(l.session,RdT,6),ZqJ.createStreamlinedFlow(D,l);default:return null}};
mJT=function(l,D){l===2&&(l=3);var U=0;edJ.indexOf(l)!==-1&&(U=edJ.indexOf(l)+1);for(l=U;l<edJ.length;l++)if(D.has(edJ[l]))return edJ[l]};
Xr$=function(l){var D=l.serviceId;var U=l.sessionId;var n=l.config;var y=l.galService;var A=l.capabilities;var C=l.scopes;var h=l.loginHint;var b=l.callerState;var u=l.consentLanguageKeys;var Q=l.linkName;var G=l.dynamicUrlParameters;var J=l.partnerConfigMinReadTimestamp;l=n.dataUsageNoticeConfig?n.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return y.startLinkingSession({serviceId:D,sessionId:U,capabilities:A,scopes:C,loginHint:h,callerState:b,supportedFlows:aX$(n.supportedFlows),completionUrl:n.completionUrl,
accountLinkingEntryPoint:n.accountLinkingEntryPoint,consentLanguageKeys:u,dataUsageNoticeConfig:l,linkName:Q,dynamicUrlParameters:G,partnerConfigMinReadTimestamp:J}).then(function(L){return new tqP(D,U,n,y,L,void 0,b,u,G,J)})};
prW=function(l,D,U){var n=(new SE5).getSession(l);if(n===null)return Promise.resolve({statusCode:2});kyW(l);var y=dJW(n.linkingSessionSerialized),A=n.googleScopesString!==""&&n.googleScopesString!==void 0?new Set(n.googleScopesString.split(",")):void 0,C=n.partnerConfigMinReadTimestampSerialized?KrT(n.partnerConfigMinReadTimestampSerialized):void 0;return ciW(new tqP(l,n.sessionId,D,U,y,A,n.callerState,n.consentLanguageKeys,n.dynamicUrlParameters,C),n.currentFlow,n.consentLanguageKeys)};
bqW=function(l){var D=new SE5;D.storage!==null&&D.storage.set("SAVED_SESSION",l)};
kyW=function(l){var D=new SE5;if(D.storage!==null){var U=D.storage.get("SAVED_SESSION");U!==void 0&&U.serviceId===l&&D.storage.remove("SAVED_SESSION")}};
aX$=function(l){var D=new Set;l=_.B(l);for(var U=l.next();!U.done;U=l.next())U=U.value,U!==1&&xJT.has(U)&&D.add(xJT.get(U));return D};
GyP=function(l,D){D!==void 0&&(l.callerState=D);return l};
jTJ=function(l){switch(l){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
wrJ=function(l){return new Fr8(l,new ovP(l))};
fX8=function(l,D){D=D===void 0?!1:D;var U=document.createElement("div");l&&(U.style.transform="scaleX(-1)");U.style.backgroundColor=D?"rgba(138,180,248,.24)":"#e8f0fe";U.style.height="4px";U.style.overflow="hidden";U.style.position="absolute";U.style.top="0";U.style.width="100%";U.style.zIndex="1500";U.setAttribute("aria-label","Loading");U.setAttribute("aria-live","polite");l=document.createElement("style");l.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  }";
U.appendChild(l);l=riT();l.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";l.style.left="-145.166611%";var n=zdW(D);n.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";l.appendChild(n);U.appendChild(l);l=riT();l.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";l.style.left="-54.888891%";D=zdW(D);D.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
l.appendChild(D);U.appendChild(l);return U};
riT=function(){var l=document.createElement("div");l.style.height="100%";l.style.position="absolute";l.style.transformOrigin="top left";l.style.width="100%";return l};
zdW=function(l){var D=document.createElement("span");D.style.borderTop=l?"4px solid #669df6":"4px solid #4285f4";D.style.display="inline-block";D.style.position="absolute";D.style.width="100%";return D};
$Jr=function(l){return l==null?void 0:_.Zwv(l).valueOf()};
TN$=function(l){var D=document.body,U=!1,n=function(){U||(U=!0,NN5(y,A),setTimeout(function(){D.removeChild(A);D.removeChild(y)},150))},y=sTT(l,getComputedStyle(D).direction==="rtl",n),A=Ev$(n);
NN5(y,A);D.appendChild(A);D.appendChild(y);window.requestAnimationFrame(function(){A.style.opacity="1";y.style.opacity="1";y.style.transform="translate(-50%, -50%) scale(1)";y.children[0].focus()})};
sTT=function(l,D,U){var n=document.createElement("div");n.style.position="fixed";n.style.alignItems="center";n.style.backgroundColor=l?"rgb(32, 33, 36)":"white";n.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";n.style.display="flex";n.style.flexDirection="column";n.style.justifyContent="center";n.style.left="50%";n.style.top="50%";n.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";n.style.zIndex="2002";document.body.clientWidth>=
660?(n.style.borderRadius="8px",n.style.minHeight="220px",n.style.maxHeight="90%",n.style.maxWidth="90%",n.style.minWidth="540px"):(n.style.height="100%",n.style.width="100%");n.setAttribute("aria-label","Error");n.setAttribute("aria-modal","true");n.setAttribute("role","alertdialog");n.addEventListener("keydown",function(A){A.key==="Escape"&&U()});
D=IXv(l,D,U);n.appendChild(HqJ(D));n.appendChild(D);var y=document.createElement("img");y.src=l?"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";y.style.height="72px";y.style.width="72px";y.style.color="#9aa0a6";y.setAttribute("alt","");n.appendChild(y);y=document.createElement("h1");y.textContent="Something went wrong.  Try again.";
y.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";y.style.lineHeight="24px";y.style.fontSize="16px";y.style.textAlign="center";y.style.letterSpacing="0.1px";y.style.color=l?"rgb(232,234,237)":"#3c4043";n.appendChild(y);n.appendChild(HqJ(D));return n};
IXv=function(l,D,U){var n=document.createElement("button");n.style.backgroundColor="transparent";n.style.border="none";n.style.borderRadius="50%";n.style.cursor="pointer";n.style.outline="none";n.style.padding="12px";n.setAttribute("aria-label","Close dialog");n.style.position="absolute";n.style.top="0";D?n.style.right="0":n.style.left="0";n.addEventListener("focus",function(){n.style.backgroundColor=l?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
n.addEventListener("blur",function(){n.style.backgroundColor="transparent"});
n.addEventListener("mouseenter",function(){n.style.backgroundColor=l?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
n.addEventListener("mouseleave",function(){n.style.backgroundColor="transparent"});
n.addEventListener("click",U);n.addEventListener("keydown",function(y){y.key!=="Enter"&&y.key!=="Space"||U()});
D=document.createElement("img");D.src=l?"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";D.style.display="block";D.style.height="24px";D.style.width="24px";D.setAttribute("alt","");n.appendChild(D);return n};
HqJ=function(l){var D=document.createElement("div");D.setAttribute("tabindex","0");D.setAttribute("aria-hidden","true");D.addEventListener("focus",function(){return void l.focus()});
return D};
Ev$=function(l){var D=document.createElement("div");D.style.backgroundColor="rgba(32,33,36,0.6)";D.style.bottom="0";D.style.left="0";D.style.position="fixed";D.style.right="0";D.style.top="0";D.style.transition=" opacity 150 ms linear";D.style.zIndex="2001";D.addEventListener("click",l);return D};
NN5=function(l,D){D.style.opacity="0";l.style.opacity="0";l.style.transform="translate(-50%, -50%) scale(0.8)"};
YEq=function(l,D){l.sandbox&&l.sandbox.add&&(l.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),l.sandbox.add("allow-downloads"));l.src=D};
oC=function(l){Oq$.call(this,l)};
Ud$=function(l,D){D=D===void 0?!1:D;this.parsedImageUrl_=null;l instanceof Vq8||(i4W==void 0&&(i4W=new lf8),l=i4W.parse(l.toString(),D));l=this.parsedImageUrl_=l;l.JSC$20013_parsedOptions_==void 0&&((D=l.getOptions())||(D=""),l.JSC$20013_parsedOptions_=(new DdJ).parse(D));Oq$.call(this,l.JSC$20013_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;l=this.parsedImageUrl_;D=l.uri_.JSC$10113_port_;this.JSC$20015_domain_=l.uri_.JSC$10113_domain_+(D?":"+D:"");this.JSC$20015_query_=
this.parsedImageUrl_.uri_.JSC$10113_queryData_.toString()};
nX$=function(l){this.mode=4;this.data=l;this.parsedData=[];l=0;for(var D=this.data.length;l<D;l++){var U=[],n=this.data.charCodeAt(l);n>65536?(U[0]=240|(n&1835008)>>>18,U[1]=128|(n&258048)>>>12,U[2]=128|(n&4032)>>>6,U[3]=128|n&63):n>2048?(U[0]=224|(n&61440)>>>12,U[1]=128|(n&4032)>>>6,U[2]=128|n&63):n>128?(U[0]=192|(n&1984)>>>6,U[1]=128|n&63):U[0]=n;this.parsedData.push(U)}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))};
yBq=function(l){this.typeNumber=0;this.errorCorrectLevel=l===void 0?2:l;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
w4=function(l,D){if(l.length==void 0)throw Error("Pk`"+l.length+"`"+D);for(var U=0;U<l.length&&l[U]==0;)U++;this.num=Array(l.length-U+D);for(D=0;D<l.length-U;D++)this.num[D]=l[D+U]};
ABT=function(l,D){this.totalCount=l;this.dataCount=D};
WGr=function(){this.buffer=[];this.length=0};
Bk5=function(){var l=!1;if(_.ZCc()){l=_.LC();var D="";_.a9l()?(D=/Windows (?:NT|Phone) ([0-9.]+)/,D=(l=D.exec(l))?l[1]:"0.0"):_.dl()?(D=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,D=(l=D.exec(l))&&l[1].replace(/_/g,".")):_.mso()?(D=/Mac OS X ([0-9_.]+)/,D=(l=D.exec(l))?l[1].replace(/_/g,"."):"10"):_.gl(_.LC(),"KaiOS")?(D=/(?:KaiOS)\/(\S+)/i,D=(l=D.exec(l))&&l[1]):_.ZCc()?(D=/Android\s+([^\);]+)(\)|;)/,D=(l=D.exec(l))&&l[1]):_.t3_()&&(D=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,D=(l=D.exec(l))&&l[1]);l=
D||""}return l};
uZT=function(l,D){this.JSC$20038__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(D)for(var U in D)this.JSC$20038__htOption[U]=D[U];this.JSC$20038__htOption.useSVG&&(CqJ=hWT);this.JSC$20038__android=Bk5();this.JSC$20038__el=l;this._oQRCode=null;this._oDrawing=new CqJ(this.JSC$20038__el,this.JSC$20038__htOption);this.JSC$20038__htOption.text&&(l=this.JSC$20038__htOption.text,this._oQRCode=new yBq(this.JSC$20038__htOption.correctLevel),PqJ(this._oQRCode,
l),D=this._oQRCode,b4P(D,!1,gXW(D)),this.JSC$20038__el.title=l,this._oDrawing.draw(this._oQRCode),this.makeImage())};
vXq=function(l,D,U,n,y){l.save();var A=new Path2D;A.roundRect(D,U,n*7,n*7,n*2);A.roundRect(D+n,U+n,n*5,n*5,n*1.3);A.roundRect(D+2*n,U+2*n,n*3,n*3,n);l.clip(A,"evenodd");l.fillStyle=y;l.fillRect(0,0,l.canvas.width,l.canvas.height);l.restore()};
r4=function(l,D){if(typeof l!=="function")throw Error("Sk");return _.nC.setTimeout(function(){l()},D)};
zf=function(){};
GMP=function(l,D,U,n,y){(new zf).debug("TestLoadImageWithRetries: "+y);if(n==0)U(!1);else{var A=y||0;n--;Qzv(l,D,function(C){C?U(!0):_.nC.setTimeout(function(){GMP(l,D,U,n,A)},A)})}};
Qzv=function(l,D,U){var n=new zf;n.debug("TestLoadImage: loading "+l);var y=new Image;y.onload=function(){try{n.debug("TestLoadImage: loaded"),JBP(y),U(!0)}catch(A){}};
y.onerror=function(){try{n.debug("TestLoadImage: error"),JBP(y),U(!1)}catch(A){}};
y.onabort=function(){try{n.debug("TestLoadImage: abort"),JBP(y),U(!1)}catch(A){}};
y.ontimeout=function(){try{n.debug("TestLoadImage: timeout"),JBP(y),U(!1)}catch(A){}};
_.nC.setTimeout(function(){if(y.ontimeout)y.ontimeout()},D);
y.src=l};
JBP=function(l){l.onload=null;l.onerror=null;l.onabort=null;l.ontimeout=null};
LGv=function(){this.front_=[];this.back_=[]};
qr5=function(l,D){this.action=l;this.params=D||{}};
Mtv=function(l,D){_.xT.call(this);this.delay_=new _.oj(this.JSC$20164_onTick_,0,this);_.m7(this,this.delay_);this.JSC$20162_interval_=5E3;this.nextTickTime_=0;if(typeof l==="function")D&&(l=(0,_.jU)(l,D));else if(l&&typeof l.handleEvent==="function")l=(0,_.jU)(l.handleEvent,l);else throw Error("ya");this.JSC$20164_listener_=l};
fZ=function(l,D,U,n,y,A,C,h,b,u,Q,G,J,L,R){var a=this;U=U===void 0?!1:U;n=n===void 0?function(){return""}:n;
y=y===void 0?!1:y;A=A===void 0?!1:A;C=C===void 0?!1:C;h=h===void 0?function(){return _.Ut({})}:h;
b=b===void 0?!1:b;Q=Q===void 0?!1:Q;G=G===void 0?!1:G;J=J===void 0?!1:J;L=L===void 0?!1:L;this.JSC$20165_pathPrefix_=l;this.defaultQueryParams_=D;this.pubsub_=new _.cS;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!R)?R(function(){a.safeReconnect_()}):new Mtv(this.safeReconnect_,this);
this.JSC$20165_channel_=null;this.JSC$20165_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20165_pendingMessages_=[];this.enableAsyncTest_=U;this.JSC$20165_getXsrfToken_=n;this.useAsyncBrowserChannelHandler_=A;this.getAuthorizationHeader_=h;this.getAuthorizationHeaderSync_=u;this.enableCachedUpdateAuthorizationHeader_=C;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Ut();this.enableLoungeTokenRefresh_=y;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
b;this.disableMdxAuthForNonPlaybackMessages_=Q;this.disableMdxAuthForAdMessages_=G;this.enableMdxAuthForConnectionOnly_=J;this.disableMdxAuthForShortsMessages_=L;this.JSC$20165_channelOpenedCounter=new RWH;this.JSC$20165_channelClosedCounter=new Z4$;this.channelMessageSentCounter=new eW5;this.JSC$20165_channelMessageReceivedCounter=new md5;this.JSC$20165_channelErrorCounter=new afP;this.pendingMapsOnClosedCounter=new tt5;this.undeliveredMapsOnClosedCounter=new XFP};
SrJ=function(l){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;l=l||document.location.href;var D=Number(_.PS(l)[4]||null)||"";D&&(this.port=":"+D);this.domain=_.bl(l)||"";l=_.LC();l.search("MSIE")>=0&&_.Qg(l.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
$3=function(l){l=l||{};this.name=l.name||"";this.id=l.id||l.screenId||"";this.token=l.token||l.loungeToken||"";this.uuid=l.uuid||l.dialId||"";this.idType=l.screenIdType||"normal";this.secret=l.screenIdSecret||""};
kM8=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){var D=Math.random()*16|0;return(l=="x"?D:D&3|8).toString(16)})};
ddJ=function(l){return _.re(l,function(D){return{key:D.id,name:D.name}})};
KGP=function(l,D){return _.pC(l,function(U){return U||D?!U!=!D?!1:U.id==D.id:!0})};
N6=function(l,D){return _.pC(l,function(U){return cBw(U,D)})};
oXJ=function(){var l=pFr(),D=xdJ();if(jz2()){var U=l,n=_.j_3(U,D);n<0&&_.cdG(U,-(n+1),0,D)}l=FG$(l);if(l.length==0)try{_.cJo("remote_sid")}catch(y){}else try{_.j_("remote_sid",l.join(","),-1)}catch(y){}};
pFr=function(){var l=_.MN("yt-remote-connected-devices")||[];l.sort(_.xs$);return l};
FG$=function(l){if(l.length==0)return[];var D=l[0].indexOf("#"),U=D==-1?l[0]:l[0].substring(0,D);return _.re(l,function(n,y){return y==0?n:n.substring(U.length)})};
wF2=function(l){_.qN("yt-remote-connected-devices",l,86400)};
xdJ=function(){if(rBH)return rBH;var l=_.MN("yt-remote-device-id");l||(l=kM8(),_.qN("yt-remote-device-id",l,31536E3));for(var D=pFr(),U=1,n=l;_.rl(D,n);)U++,n=l+"#"+U;return rBH=n};
zWv=function(){return _.MN("yt-remote-session-browser-channel")};
jz2=function(){return _.MN("yt-remote-session-screen-id")};
NkJ=function(l){l.length>5&&(l=l.slice(l.length-5));var D=_.re(ffW(),function(n){return n.loungeToken}),U=_.re(l,function(n){return n.loungeToken});
_.z59(U,function(n){return!_.rl(D,n)})&&$d8();
_.qN("yt-remote-local-screens",l,31536E3)};
ffW=function(){return _.MN("yt-remote-local-screens")||[]};
$d8=function(){_.qN("yt-remote-lounge-token-expiration",!0,86400)};
szJ=function(l){l||(_.Rn("yt-remote-session-screen-id"),_.Rn("yt-remote-session-video-id"));oXJ();l=pFr();_.fC(l,xdJ());wF2(l)};
Tk5=function(){EXJ();return sf?!!sf.get("yt-remote-use-staging-server"):!1};
EXJ=function(){if(!sf){var l=_.fPK();l&&(sf=new _.z8(l))}};
O4$=function(l,D,U,n,y){U=U===void 0?function(){return""}:U;
var A=function(){return new fZ(Ef(l,"/bc"),D,!1,U,n)};
return _.q("enable_mdx_web_channel_desktop")?new IfW(function(){return new H4P(Ef(l,"/wc"),D,U)}):new YrH(A,y)};
D95=function(){var l=Vtw;iE$();Tf.push(l);lLJ()};
IC=function(l,D){iE$();var U=U9J(l,String(D));Tf.length==0?nq8(U):(lLJ(),_.Ac(Tf,function(n){n(U)}))};
Hs=function(l){IC("CP",l)};
iE$=function(){Tf||(Tf=_.UG("yt.mdx.remote.debug.handlers_")||[],_.vG("yt.mdx.remote.debug.handlers_",Tf))};
nq8=function(l){var D=(ySJ+1)%50;ySJ=D;AS$[D]=l;WCv||(WCv=D==49)};
lLJ=function(){var l=Tf;if(AS$[0]){var D=WCv?ySJ:-1,U={};do U={record$jscomp$15:void 0},D=(D+1)%50,U.record$jscomp$15=AS$[D],_.Ac(l,function(n){return function(y){y(n.record$jscomp$15)}}(U));
while(D!=ySJ);AS$=Array(50);ySJ=-1;WCv=!1}};
U9J=function(l,D){var U=(Date.now()-BL2)/1E3;U.toFixed&&(U=U.toFixed(3));var n=[];n.push("[",U+"s","] ");n.push("[","yt.mdx.remote","] ");n.push(l+": "+D,"\n");return n.join("")};
Y3=function(l){_.Ps.call(this);this.JSC$20190_logName_=l;this.screens=[]};
V$=function(l){Y3.call(this,"LocalScreenService");this.JSC$20197_http_=l;this.loungeTokenRefreshTimer_=NaN;Of(this);this.info("Initializing with "+CDH(this.screens))};
iS=function(l,D){D=D===void 0?!1:D;Y3.call(this,"ScreenService");this.JSC$20203_http_=l;this.disableAutomaticScreenCache_=D;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};hFq(this)};
lS=function(l,D,U){_.Ps.call(this);this.JSC$20207_logName_=U;this.JSC$20207_screenService_=l;this.receiver_=D;this.screen_=null};
aLJ=function(l,D,U){U.disableCastApi?DK("Cannot initialize because disabled by Mdx config."):PDw()?bEv(l,U)&&(gq2(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?uw8(D):(window.__onGCastApiAvailable=function(n,y){n?uw8(D):(Uk("Failed to load cast API: "+y),vqP(!1),gq2(!1),_.Rn("yt-remote-cast-available"),_.Rn("yt-remote-cast-receiver"),Q78(),D(!1))},U.loadCastApiSetupScript?_.pI(Ghw):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
JSH()>=60&&LC5():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?q4H():JSH()>=89?Ma5():(RF8(),ZEv(eFW.map(m9$))))):DK("Cannot initialize because not running Chrome")};
Q78=function(){DK("dispose");var l=n8();l&&l.dispose();_.vG("yt.mdx.remote.cloudview.instance_",null);ta$(!1);_.MQc(XI2);XI2.length=0};
S4$=function(){return!!_.MN("yt-remote-cast-installed")};
khJ=function(){var l=_.MN("yt-remote-cast-receiver");return l?l.friendlyName:null};
d9P=function(){DK("clearCurrentReceiver");_.Rn("yt-remote-cast-receiver")};
KCv=function(){return S4$()?n8()?n8().getCastSession():(Uk("getCastSelector: Cast is not initialized."),null):(Uk("getCastSelector: Cast API is not installed!"),null)};
pI8=function(l,D){cS8()?n8().setConnectedScreenStatus(l,D):Uk("setConnectedScreenStatus called before ready.")};
PDw=function(){var l=_.LC().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.yJ||l};
bEv=function(l,D){var U=!1;n8()||(l=new yN(l,D),l.subscribe("yt-remote-cast2-availability-change",function(n){_.qN("yt-remote-cast-available",n);e$("yt-remote-cast2-availability-change",n)}),l.subscribe("yt-remote-cast2-receiver-selected",function(n){DK("onReceiverSelected: "+n.friendlyName);
_.qN("yt-remote-cast-receiver",n);e$("yt-remote-cast2-receiver-selected",n)}),l.subscribe("yt-remote-cast2-receiver-resumed",function(n){DK("onReceiverResumed: "+n.friendlyName);
_.qN("yt-remote-cast-receiver",n);e$("yt-remote-cast2-receiver-resumed",n)}),l.subscribe("yt-remote-cast2-session-change",function(n){DK("onSessionChange: "+x9q(n));
n||_.Rn("yt-remote-cast-receiver");e$("yt-remote-cast2-session-change",n)}),_.vG("yt.mdx.remote.cloudview.instance_",l),U=!0);
DK("cloudview.createSingleton_: "+U);return U};
n8=function(){return _.UG("yt.mdx.remote.cloudview.instance_")};
uw8=function(l){vqP(!0);gq2(!1);n8().init(!1,function(D){D?(ta$(!0),_.RHd("yt-remote-cast2-api-ready")):(Uk("Failed to initialize cast API."),vqP(!1),_.Rn("yt-remote-cast-available"),_.Rn("yt-remote-cast-receiver"),Q78());l(D)})};
DK=function(l){IC("cloudview",l)};
Uk=function(l){IC("cloudview",l)};
vqP=function(l){DK("setCastInstalled_ "+l);_.qN("yt-remote-cast-installed",l)};
cS8=function(){return!!_.UG("yt.mdx.remote.cloudview.apiReady_")};
ta$=function(l){DK("setApiReady_ "+l);_.vG("yt.mdx.remote.cloudview.apiReady_",l)};
gq2=function(l){_.vG("yt.mdx.remote.cloudview.initializing_",l)};
AN=function(l){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(l)};
EqJ=function(l){EXJ();if(!sf||!sf.get("yt-remote-disable-remote-module-for-dev")){l=_.H3("MDX_CONFIG")||l;sO8();oXJ();j7q||(j7q=new SrJ(l?l.loungeApiHost:void 0),Tk5()&&(j7q.basePath="/api/loungedev"));WB||(WB=_.UG("yt.mdx.remote.deferredProxies_")||[],_.vG("yt.mdx.remote.deferredProxies_",WB));FCw();var D=oqv();if(!D){var U=new iS(j7q,l?l.disableAutomaticScreenCache||!1:!1);_.vG("yt.mdx.remote.screenService_",U);D=oqv();var n={};l&&(n={appId:l.appId,disableDial:l.disableDial,theme:l.theme,loadCastApiSetupScript:l.loadCastApiSetupScript,
disableCastApi:l.disableCastApi,enableDialLoungeToken:l.enableDialLoungeToken,enableCastLoungeToken:l.enableCastLoungeToken,forceMirroring:l.forceMirroring});_.vG("yt.mdx.remote.enableConnectWithInitialState_",l?l.enableConnectWithInitialState||!1:!1);aLJ(U,function(A){A?wIv()&&pI8(wIv(),"YouTube TV"):U.subscribe("onlineScreenChange",function(){e$("yt-remote-receiver-availability-change")})},n)}if(l&&!_.UG("yt.mdx.remote.initialized_")){_.vG("yt.mdx.remote.initialized_",!0);
rSJ("Initializing: "+(0,_.xN)(l));BB.push(_.Ma("yt-remote-cast2-api-ready",function(){e$("yt-remote-api-ready")}));
BB.push(_.Ma("yt-remote-cast2-availability-change",function(){e$("yt-remote-receiver-availability-change")}));
BB.push(_.Ma("yt-remote-cast2-receiver-selected",function(){zFr();e$("yt-remote-auto-connect","cast-selector-receiver")}));
BB.push(_.Ma("yt-remote-cast2-receiver-resumed",function(){e$("yt-remote-receiver-resumed","cast-selector-receiver")}));
BB.push(_.Ma("yt-remote-cast2-session-change",fL8));BB.push(_.Ma("yt-remote-connection-change",function(A){A?pI8(wIv(),"YouTube TV"):$9q()||(pI8(null,null),d9P())}));
BB.push(_.Ma("yt-remote-cast2-session-failed",function(){e$("yt-remote-connection-failed")}));
n=NLP();l.isAuto&&(n.id+="#dial");var y=l.capabilities||[];y.length>0&&(n.capabilities=y);n.name=l.device;n.app=l.app;(l=l.theme)&&(n.theme=l);rSJ(" -- with channel params: "+(0,_.xN)(n));n?(_.qN("yt-remote-session-app",n.app),_.qN("yt-remote-session-name",n.name)):(_.Rn("yt-remote-session-app"),_.Rn("yt-remote-session-name"));_.vG("yt.mdx.remote.channelParams_",n);D.start();wIv()||s7H()}}};
ILw=function(){var l=oqv().instance_.$_gos();var D=TL5();D&&C8()&&(KGP(l,D)||l.push(D));return ddJ(l)};
HEq=function(){var l=ILw(),D=TL5();D||(D=$9q());return _.pC(l,function(U){return D&&cBw(D,U.key)?!0:!1})};
TL5=function(){var l=wIv();if(!l)return null;var D=oqv().getScreens();return N6(D,l)};
fL8=function(l){rSJ("remote.onCastSessionChange_: "+x9q(l));if(l){var D=TL5();if(D&&D.id==l.id){if(pI8(D.id,"YouTube TV"),l.idType=="shortLived"&&(l=l.token))Y4$&&(Y4$.token=l),(D=C8())&&D.setLoungeToken(l)}else D&&OEH(),Va$(l,1)}else C8()&&OEH()};
OEH=function(){cS8()?n8().stopSession():Uk("stopSession called before API ready.");var l=C8();l&&(l.disconnect(1),ih$(null))};
loq=function(){var l=C8();return l&&l.getProxyState()!=3?new hN(C8(),void 0):null};
rSJ=function(l){IC("remote",l)};
oqv=function(){if(!DF$){var l=_.UG("yt.mdx.remote.screenService_");DF$=l?new UFJ(l):null}return DF$};
wIv=function(){return _.UG("yt.mdx.remote.currentScreenId_")};
nzT=function(l){_.vG("yt.mdx.remote.currentScreenId_",l)};
zFr=function(){_.vG("yt.mdx.remote.connectData_",null)};
C8=function(){return _.UG("yt.mdx.remote.connection_")};
ih$=function(l){var D=C8();zFr();l||nzT("");_.vG("yt.mdx.remote.connection_",l);WB&&(_.Ac(WB,function(U){U(l)}),WB.length=0);
D&&!l?e$("yt-remote-connection-change",!1):!D&&l&&e$("yt-remote-connection-change",!0)};
$9q=function(){var l=jz2();if(!l)return null;var D=oqv();if(!D)return null;D=D.getScreens();return N6(D,l)};
Va$=function(l,D){yUT?Y4$=l:(nzT(l.id),l=new PB(j7q,l,NLP(),_.UG("yt.mdx.remote.enableConnectWithInitialState_")||!1),l.connect(D,_.UG("yt.mdx.remote.connectData_")),l.subscribe("beforeDisconnect",function(U){e$("yt-remote-before-disconnect",U)}),l.subscribe("beforeDispose",function(){C8()&&ih$(null)}),l.subscribe("browserChannelAuthError",function(){var U=TL5();
U&&U.idType=="shortLived"&&(cS8()?n8().handleBrowserChannelAuthError():Uk("refreshLoungeToken called before API ready."))}),ih$(l))};
s7H=function(){var l=$9q();l?(rSJ("Resume connection to: "+x9q(l)),Va$(l,0)):(szJ(),d9P(),rSJ("Skipping connecting because no session screen found."))};
FCw=function(){var l=NLP();if(_.we.isEmpty(l)){l=xdJ();var D=_.MN("yt-remote-session-name")||"",U=_.MN("yt-remote-session-app")||"";l={device:"REMOTE_CONTROL",id:l,name:D,app:U,mdxVersion:3};l.authuser=String(_.H3("SESSION_INDEX","0"));(D=_.H3("DELEGATED_SESSION_ID"))&&(l.pageId=String(D));_.vG("yt.mdx.remote.channelParams_",l)}};
NLP=function(){return _.UG("yt.mdx.remote.channelParams_")||{}};
AU8=function(){var l,D;return _.P(function(U){if(U.nextAddress==1)return(_.nt9()||_.q("use_new_nwl"))&&_.ies().isNetworkAvailable()?U.yield(_.Qo(),2):U.return();if(U.nextAddress!=3)return(l=U.yieldResult)?U.yield(Gtw(l),3):U.return();D=U.yieldResult;if(!D.length)return U.return();D.forEach(function(n){var y={timestamp:n.timestamp};n=n.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:n.appShellAssetLoadReport,options:y}:n.clientError?{payloadName:"clientError",payload:n.clientError,
options:y}:void 0;n&&_.Na(n.payloadName,n.payload,n.options)});
D.length===100&&_.Tn.addLowPriorityJob(AU8);_.Kz(U)})};
Wev=function(l){if(l.playerResponse){if(l=l.playerResponse,l.messages&&l.messages.length>0&&(l=l.messages.find(function(D){return!(!D||!D.mealbarPromoRenderer)}))&&l.mealbarPromoRenderer)return l.mealbarPromoRenderer}else if(l.response&&(l=l.response)&&l.overlay&&l.overlay.mealbarPromoRenderer)return l.overlay.mealbarPromoRenderer};
B6J=function(l){if(l.response){var D=l.response;if(D&&D.overlay&&D.overlay.tooltipRenderer)return D.overlay.tooltipRenderer}if(l.playerResponse&&(l=l.playerResponse,l.messages&&l.messages.length>0&&(l=l.messages.find(function(U){return!(!U||!U.tooltipRenderer)}))&&l.tooltipRenderer))return l.tooltipRenderer};
hMw=function(l){if(!CBJ&&(l=l||_.H3("ZWIEBACK_PING_URLS"))&&l.length){CBJ=!0;for(var D=0;D<l.length;D++)_.nB(l[D])}};
bhv=function(l){if(_.we.get(_.H3("PLAYER_VARS",{}),"privembed",!1)!="1"){l&&BhJ();try{PBJ().then(function(){},function(){}),_.tc(bhv,18E5)}catch(D){_.ll(D)}}};
gz8=function(){var l=_.bu(),D=l.getFlag(119),U=window.devicePixelRatio>1;document.body&&_.IP(document.body,"exp-invert-logo")&&(U&&!_.IP(document.body,"inverted-hdpi")?_.zt(document.body,"inverted-hdpi"):!U&&_.IP(document.body,"inverted-hdpi")&&_.wh(document.body,"inverted-hdpi"));D!=U&&(_.gj(0,119,U),l.save())};
u9W=function(l){return l.filter(function(D){return"ypcGetCartEndpoint"in D||"ypcFixInstrumentEndpoint"in D})};
vz$=function(l){return l.filter(function(D){return!_.M(D,_.qRy)})};
GlP=function(l,D){var U,n,y,A,C,h,b;_.P(function(u){switch(u.nextAddress){case 1:U=_.FP.getInstance();n=_.yu.instance;y=_.jZ.instance;if(!y)return Qm8(l,n,D),u.return();_.ZY(u,2);l.onLoadingCommand&&n.resolveCommand(l.onLoadingCommand);return u.yield(U.getCurrentPositionFromGeolocation(),4);case 4:A=u.yieldResult;if(!l.resolveLocationCommand){u.jumpTo(5);break}C=U.createLocationInfo(A);return u.yield(_.oL(y,l.resolveLocationCommand,{locationInfo:C}),6);case 6:h=u.yieldResult;if(!h||"error"in h&&h.error||
h.errorMetadata)return Qm8(l,n,D),u.return();var Q;if(h==null?0:(Q=h.onResponseReceivedActions)==null?0:Q.length){Q=_.B(h.onResponseReceivedActions);for(var G=Q.next();!G.done;G=Q.next())n.resolveCommand(G.value)}(_.M(l.onSuccessCommand,_.za)||_.M(l.onSuccessCommand,_.Pk))&&_.O9(D.hostElement,"yt-navigate",{endpoint:l.onSuccessCommand,reload:!0});case 5:_.WG(u,0);break;case 2:b=_.kF(u);if(b instanceof GeolocationPositionError&&b.code===GeolocationPositionError.PERMISSION_DENIED)return l.onDeniedCommand&&
n.resolveCommand(l.onDeniedCommand),u.return();Qm8(l,n,D);_.Kz(u)}})};
Qm8=function(l,D,U){l.onFailureCommand&&(D.resolveCommand(l.onFailureCommand),_.Vh(U.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
LeW=function(l,D){var U=_.M(l,_.$fy);if(U&&D){l=U.videoIds||[U.videoId];var n;D=(n=_.O9(D,"yt-lockup-requested",{videoIds:l}).detail)==null?void 0:n.returnValue;var y;U.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?y=D?D:l.map(function(A){return{videoId:A,navigationEndpoint:U.videoCommand}}):D&&(y=D);
y&&(n=y.map(function(A){var C=Object,h=C.assign;var b=A.navigationEndpoint;if(!_.M(b,_.vk)){var u=_.M(b,_.za);if(u){if(delete u.index,delete u.playlistId,u=_.M(b==null?void 0:b.commandMetadata,_.W6),u==null?0:u.url){var Q=u.url;Q=_.E9(Q,"list");Q=_.E9(Q,"index");u.url=Q}}else b=void 0}return h.call(C,{},A,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:b})}),JU8(n,U))}};
qyq=function(l){var D=_.uN();if(l=_.M(l,_.N7k))l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&D.clearQueue(),l.closeMiniplayer&&_.Jc().resolve(_.kq).close(!0)};
RMT=function(l){MY8(_.uN(),l)};
ZhP=function(l){var D;(l=(D=_.M(l,_.zVr))==null?void 0:D.setVideoIds)&&l.forEach(function(U){_.xvh(_.uN(),U)})};
mFH=function(l){eMH(_.uN(),l)};
aoW=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(l){return!1}};
tYr=function(l){var D=["h","m","s"],U=_.$9(D);U.reverse();var n={};l=(l.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(C){var h=(C.match(/[hms]/)||[""])[0];return h?(n[h]=parseInt(C.match(/\d+/)[0],10),!1):!0});
for(l.reverse();l.length&&U.length;){var y=U.shift();y in n||(n[y]=parseInt(l.shift(),10))}if(l.length||n.s>59||n.m>59||n.h>9)return null;var A="";D.forEach(function(C){n[C]&&(A+=""+n[C]+C)});
return A||null};
XmP=function(l,D){var U=_.bpz(D,{},l,!0);return new Promise(function(n,y){U.listenOnce("n",function(){y(Error("Dl`"+U.JSC$29996_getErrorDescription()))});
U.listenOnce("l",function(){var A=U.getResponseCode();if(A!==200)y(Error("El`"+D+"`"+l.type+"`"+l.size+"`"+A));else try{n(JSON.parse(U.getResponseText()).encryptedBlobId)}catch(C){y(C)}});
U.run()})};
SyH=function(l){return l.substring(l.indexOf(":")+1,l.indexOf(";"))};
klT=function(l){return new Promise(function(D,U){var n=new FileReader;n.onloadend=function(){try{var y=new Uint8Array(n.result);y.length<8&&U(void 0);var A=y.subarray(0,8);y="";for(var C=0;C<A.length;C++)y+=("0"+A[C].toString(16)).substr(-2);y.startsWith("ffd8ff")?D("image/jpeg"):y.startsWith("47494638")?D("image/gif"):y.startsWith("89504e470d0a1a0a")?D("image/png"):y.startsWith("424d")?D("image/bmp"):D(void 0)}catch(h){U(h)}};
n.onerror=U;n.readAsArrayBuffer(l)})};
dFq=function(l){return new Promise(function(D,U){var n=new Image;n.crossOrigin="anonymous";n.onload=function(){var y=document.createElement("canvas");y.width=n.naturalWidth;y.height=n.naturalHeight;var A=y.getContext("2d");if(!A)throw Error("Fl");A.drawImage(n,0,0);A=SyH(l);y.toBlob(function(C){C?D(C):U()},A)};
n.src=l})};
cUT=function(l,D){var U;if(((U=_.M(l,_.vk))==null?void 0:U.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var n;_.O9((n=D.hostElement)!=null?n:D,"yt-shorts-reset");_.AAJ(_.Jc().resolve(_.Fl),l).then(function(A){Ke$(A,D,l)})}else{var y;
_.lu((y=D.hostElement)!=null?y:D,[l]).then(function(A){A&&Ke$(A.data,D,l)})}};
Ke$=function(l,D,U){if(l){var n=_.M(l.replacementEndpoint,_.vk);if(n){l.sequenceContinuation&&(n.sequenceParams=l.sequenceContinuation);var y;_.O9((y=D.hostElement)!=null?y:D,"yt-navigate",{endpoint:l.replacementEndpoint})}else if((l==null?void 0:l.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(l==null?0:l.watchStatus)&&_.M(l.watchStatus,_.Si8)){var A;_.O9((A=D.hostElement)!=null?A:D,"yt-navigate",{endpoint:U})}}};
pmJ=function(l){var D=_.Jc().resolve(_.Op),U=_.xv.currentPageTypeSelector(D.getState())||"";D=_.xv.currentPageSubTypeSelector(D.getState())||"";U=U==="ytd-browse"&&D==="home";return _.q("web_guide_entry_enable_cache_for_non_home_pages")?(l=(l==null?void 0:l.navigationEndpoint)&&_.hu(l.navigationEndpoint)==="home",{disableCache:U&&l}):{disableCache:U}};
jmJ=function(l,D,U,n){if(D!=null&&D.isPrimary){a:{var y=D.formattedTitle,A=n===1?D.navigationEndpoint:void 0;if(U&&U.length){var C={};if(y){var h=void 0;A&&(h={commandContext:{onTap:{innertubeCommand:A||{}}}});C.header={panelHeaderViewModel:{title:_.Zk(y),rendererContext:h}}}y=[];U=_.B(U);for(A=U.next();!A.done;A=U.next()){A=_.M(A.value,xF$);var b=void 0,u=void 0;h=((b=A)==null?0:b.formattedTitle)?_.Zk((u=A)==null?void 0:u.formattedTitle):void 0;b=void 0;u=(b=A)==null?void 0:b.isPrimary;if(A&&h&&
!u){h={title:h};A.navigationEndpoint&&(h.rendererContext={commandContext:{onTap:{innertubeCommand:A.navigationEndpoint}}});b=[];var Q=u=void 0;if(((u=A)==null?0:(Q=u.thumbnail)==null?0:Q.thumbnails)&&A.thumbnail.thumbnails.length>0){u=_.B(A.thumbnail.thumbnails);for(Q=u.next();!Q.done;Q=u.next())b.push({url:Q.value.url});h.leadingAccessory={avatarViewModel:{image:{sources:b},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(u=void 0,(u=A.icon)==null?0:u.iconType)b.push({clientResource:{imageName:A.icon.iconType||
""}}),h.leadingImage={sources:b};u=b=void 0;((b=A)==null?0:(u=b.badges)==null?0:u.liveBroadcasting)?(h.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",h.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},h.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):A.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?h.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":A.count&&(h.trailingLabel={content:A.count.toString()});
y.push({listItemViewModel:h})}}y.length!==0?(C.content={listViewModel:{listItems:y}},n===0&&(C.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):C=void 0;if(C){y=void 0;n===0&&(y={preventCloseWhileHovered:!0,hideDelayMs:3E3});C={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:C}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:y}}};break a}}C=void 0}n===1&&C?(D.serviceEndpoint=C,D.navigationEndpoint=void 0):n===0&&C&&(D.mouseEnterEndpoint=
C,D.mouseLeaveEndpoint={hideSheetCommand:{}});l.push({guideEntryRenderer:D})}};
Fe$=function(l){if(!l)return!1;try{if(l.host&&l.host.tagName==="YT-FORMATTED-STRING"&&l.host.id==="contenteditable-textarea"||l.nodeType===Node.ELEMENT_NODE&&l.tagName==="YTD-COMMENT-INPUT")return!0}catch(D){return!1}return Fe$(l.parentNode)};
bS=function(l){return l?l.tagName==="A"&&l.href&&l.classList.contains("yt-simple-endpoint"):!1};
oz8=function(l){return l?l.tagName==="IMG"&&l.classList.contains("emoji"):!1};
wmH=function(l,D,U){if(!l)return null;var n=bS(l);if(n&&U)return D=l.pathname.substring(l.pathname.indexOf("/channel/")+9),document.createTextNode("@"+D);if(n&&!U)return document.createTextNode("");if(oz8(l))return U=l.alt,l=l.dataset.emojiId,!l&&D&&(D=_.iq(D,U))&&D.isCustomEmoji&&(l=D.emojiId),l?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+l+">"):document.createTextNode(U);n=l.cloneNode(!1);for(var y=0;y<l.childNodes.length;++y){var A=wmH(l.childNodes[y],D,U);A&&n.appendChild(A)}return n};
rU$=function(l){return l?bS(l)?l:rU$(l.lastChild):null};
zM8=function(l){return l?bS(l)?l:zM8(l.firstChild):null};
$F8=function(l){if(!l)return null;for(var D=l.previousSibling;D;)if(D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="BR")D=D.previousSibling;else if(D.nodeType===Node.TEXT_NODE&&/\s+/.test(D.textContent))D=D.previousSibling;else break;(D=rU$(D))?l=D:l=(l=l.parentNode)?rU$(l.previousElementSibling):null;return l};
N65=function(l){if(!l)return null;for(var D=l.nextSibling;D;)if(D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="BR")D=D.nextSibling;else if(D.nodeType===Node.TEXT_NODE&&/\s+/.test(D.textContent))D=D.nextSibling;else break;return(D=zM8(D))?D:N65(l.parentNode)};
sm$=function(l){var D=_.Df(),U=D.JSC$11424_getStartNode();if(!Fe$(U.parentNode))return null;D=D.JSC$11424_getStartOffset();if(U.nodeType===Node.TEXT_NODE){var n=_.sj(U,bS);if(n){if(l&&D===0||!l&&D===U.length)return n}else{if(l&&D===U.length)return!U||U.nodeName==="BR"||U.nextElementSibling&&_.Ur(U.nextElementSibling,"display")==="block"?null:zM8(U.nextElementSibling);if(!l&&D===0)return U?rU$(U.previousElementSibling):null}}if(U.nodeType===Node.ELEMENT_NODE)if(l){if(0<=D&&D<U.childNodes.length)return zM8(U.childNodes[D])}else if(0<
D&&D<=U.childNodes.length)return rU$(U.childNodes[D-1]);return null};
Ezr=function(l,D,U){if(!l)return null;if(l.nodeType===Node.TEXT_NODE)if(U){var n=$F8(l);if(n&&!/^\s+\S/.test(l.wholeText.substr(0,D)))return n}else if((n=N65(l))&&!/\S\s+/.test(l.wholeText.substr(D,l.wholeText.length)))return n;return l.nodeType===Node.ELEMENT_NODE?U?$F8(l.childNodes[D]):N65(l.childNodes[D]):Ezr(l.parentNode,D,U)};
T6v=function(l){if(l.hasChildNodes())switch(l.tagName){case "DIV":case "A":case "SPAN":var D="";for(l=l.firstChild;l;l=l.nextSibling)D+=T6v(l);return D;default:return""}else switch(l.nodeType){case 3:return l.textContent;default:return""}};
IoT=function(l){switch(l){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"}};
Hh5=function(l){return l.map(function(D){return{settingsRadioOptionRenderer:{title:_.Ot(D.name),asideText:_.Ot(D.approximateSize),id:IoT(D.format)}}})};
OhH=function(l){if(l&&l.length!==0)return l.filter(Yyw()).map(function(D){return{settingsRadioOptionRenderer:{title:D.name,asideText:D.approximateSize,id:IoT(D.formatType)}}})};
VY$=function(l){if(l)return l.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
iT$=function(l,D){l=new Set(l!=null?l:[]);if(l.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(l.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(l.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(l.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(l.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(D)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
lR$=function(l){var D=l.indexOf("(");return D!==-1?l.substring(D+1,l.length-1):l};
_.UUT=function(l,D,U,n,y){U||(U=DUr);var A;(A=_.M(U.commandMetadata,_.W6))!=null&&A.url||(U=Error("Kl`"+JSON.stringify(U)),_.EU(U),U=DUr);U=_.we.unsafeClone(U);A=_.VX(_.M(U.commandMetadata,_.W6).url,"search_query",l);_.ih(location.href,"sv")==="1"&&(_.M(U,_.bV).params="EgOAAgE%3D",A=_.VX(A,"sv","1"));_.M(U,_.bV)&&(_.M(U,_.bV).query=l);A=A.replace(/%20/g,"+");_.M(U.commandMetadata,_.W6).url=A;y=_.q("desktop_enable_entity_suggest")?{entityMid:y}:{};_.Jc().resolve(_.qK).resolveCommand(U,{form:{tempData:Object.assign({},
{gs_l:D,oq:n!=null?n:l},y),isFromShorts:_.zy()==="shorts"}})};
nhW=function(l){switch(l){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
AzJ=function(l,D,U,n,y,A){var C=_.we.clone(yzT);C.locale=_.H3("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;C.report={description:y||"<empty>"};y=_.H3("SBOX_SETTINGS",{});D=D.join(",");var h=Date.now();l={choice_cc:n,choice_id_cc:U,choices_sc:D,gl:y.REQUEST_DOMAIN,hl:y.REQUEST_LANGUAGE,query:l,time:h};A&&(l.choice_additional_comment_cc=A);_.G_y(C,l)};
Wb8=function(l){var D=new Map;D.set("authuser",_.H3("SESSION_INDEX","0"));return _.L2(l,D)};
CWr=function(l){var D;return _.P(function(U){switch(U.nextAddress){case 1:if(!l||!BUH(l))return U.return(null);D=null;switch(_.H3("INNERTUBE_CLIENT_NAME")){case "WEB":return U.jumpTo(2);case "WEB_REMIX":D=l.getPlayer()}U.jumpTo(3);break;case 2:return U.yield(l.getPlayerPromise(),4);case 4:D=U.yieldResult;U.jumpTo(3);break;case 3:return U.return(D)}})};
BUH=function(l){return["ytd-player","ytmusic-player"].includes(String(l.tagName||"").toLowerCase())};
hL2=function(l){l=Math.round(l);return l%2?l-1:l};
PWv=function(l){l=Math.round(l);return l%2===0?l-1:l};
bT5=function(l){var D,U,n;if(l=(D=l.createPlaylistDialogFormSchema)==null?void 0:(U=D.fieldSchemas)==null?void 0:(n=U.title)==null?void 0:n.validationSchema)for(D=[l.syncStep,l.asyncStep].filter(function(y){return y!==void 0}),D=_.B(D),U=D.next();!U.done;U=D.next()){U=U.value.rules;
if(!U)break;U=_.B(U);for(U=U.next();!U.done;U=U.next())return _.M(U.value,_.mE5)}};
up8=function(l){var D,U,n;if(l=(D=l.createPlaylistDialogFormSchema)==null?void 0:(U=D.fieldSchemas)==null?void 0:(n=U.visibility)==null?void 0:n.validationSchema)for(D=[l.syncStep,l.asyncStep].filter(function(y){return y!==void 0}),D=_.B(D),U=D.next();!U.done;U=D.next()){U=U.value.rules;
if(!U)break;U=_.B(U);for(n=U.next();!n.done;n=U.next())if(n=_.M(n.value,gh2))return D=void 0,(D=n.translations)==null?void 0:D.visibilityNotValidErrorMessage}};
vhT=function(){var l,D;return(D=(l=_.Jc().resolve(_.G8(_.jQ)))==null?void 0:l())!=null?D:!1};
QR8=function(l){var D=21;if(!l)return D;D+=l.headerTitle?27:0;D+=l.headerTitle&&l.hasHeaderActionHeader?4:0;return D+=l.headerTitle&&l.headerSubtitle?16:0};
G5J=function(l){var D=0;if(!l)return D;D+=l.hasFooterPrimaryButton||l.hasFooterSecondaryButton?48:0;D+=l.footerTrailingLabel||l.footerLeadingLabel?30:0;return D+=l.hasFooterPrimaryButton||l.hasFooterSecondaryButton||!l.footerTrailingLabel&&!l.footerLeadingLabel?0:12};
Jz$=function(l){var D=new _.cS,U=l;return{subscribe:function(n){D.subscribe("changed",n)},
dispatch:function(n,y){var A=U;if(n==="Touch Start")U=Object.assign({},A,{isAnimating:!1,initialY:y.event.touches[0].clientY});else if(n==="Touch Move"){n=y.contentScrollable?-1*(A.initialY-24):0;var C,h=(C=y.headerDivHeight)!=null?C:QR8(y.header),b;C=(b=y.footerDivHeight)!=null?b:G5J(y.footer);b=Math.min(y.fullContentWrapperHeight,y.heightMap[y.contentWrapperId]+h-C);U=Object.assign({},A,{currentY:Math.max(n,y.event.touches[0].clientY-A.initialY),maxHeightForContentWrapper:Math.min(b,Math.max(0,
(A.isFullScreen?b:y.contentWrapperHeight)-A.currentY))})}else U=n==="Snap To Full Screen"?Object.assign({},A,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:y.maxHeight}):n==="Snap To Neutral Position"?Object.assign({},A,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:y.maxHeight}):n==="Close Sheet"?Object.assign({},A,{isAnimating:!0,currentY:y.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:y.maxHeight}):A;D.publish("changed",U)}}};
Lb5=function(){_.Jc().resolve(_.H0).closeSheet()};
qFw=function(l){var D,U,n,y,A,C,h,b,u,Q,G;return{headerTitle:(D=l.headerTitle)==null?void 0:D.call(l),headerSubtitle:(U=l.headerSubtitle)==null?void 0:U.call(l),headerActionHeader:l.headerActionHeader,footerPrimaryButton:l.footerPrimaryButton,footerSecondaryButton:l.footerSecondaryButton,footerButtonType:(n=l.footerButtonType)==null?void 0:n.call(l),footerLeadingLabel:(y=l.footerLeadingLabel)==null?void 0:y.call(l),footerTrailingLabel:(A=l.footerTrailingLabel)==null?void 0:A.call(l),shouldShowIcons:(C=
l.shouldShowIcons)==null?void 0:C.call(l),skipContentClick:(h=l.skipContentClick)==null?void 0:h.call(l),additionalClassName:(b=l.additionalClassName)==null?void 0:b.call(l),onClosedCallback:l.onClosedCallback,focusOnClose:(u=l.focusOnClose)==null?void 0:u.call(l),isDisabled:(Q=l.isDisabled)==null?void 0:Q.call(l),disabledCommand:(G=l.disabledCommand)==null?void 0:G.call(l),headerFn:l.headerFn,contentFn:l.contentFn,footerFn:l.footerFn,hasHeaderFn:l.hasHeaderFn(),hasContentFn:l.hasContentFn(),hasFooterFn:l.hasFooterFn(),
hasFooterPrimaryButton:l.hasFooterPrimaryButton(),hasFooterSecondaryButton:l.hasFooterSecondaryButton(),hasHeaderActionHeader:l.hasHeaderActionHeader()}};
M85=function(l){switch(l){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""}};
RLP=function(l){switch(l){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""}};
ZTW=function(l){switch(l){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""}};
eLJ=function(l,D,U){D.forEach(function(n){_.jm(_.Jc().resolve(_.$k),n)});
_.Vh(l,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",U])};
Xl5=function(l,D,U,n){var y=_.M(U,_.bc).commandLifeCycleConfig;y&&y.onStartCommand&&_.DP(l,[y.onStartCommand],D);_.K4(D);var A=_.jZ.instance;A&&_.FE(A,U)?_.oL(A,U,n).then(function(C){if(!C||(C==null?0:C.error))return C=_.M(U,_.bc).serializedTransactionFlowLoggingParams,_.cF(D),_.Le(new gz("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",C));_.cF(D);return{data:C}}).then(function(C){_.cF(D);
mU5(C.data);var h=C.data.command;h&&_.DP(l,[h],D);h=aRJ(U,C.data);if(!h){var b=C.data;C=!1;if(b&&b.command&&_.M(b.command,_.n3)){var u;b=((u=_.M(b.command,_.n3))==null?void 0:u.commands)||[];for(u=0;u<b.length;u++)if(_.M(b[u],_.UY8)){C=!0;break}}C||_.$p('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!h&&y&&y.onSuccessCommand?_.DP(l,[y.onSuccessCommand],D):h&&y&&y.onFailureCommand&&_.DP(l,[y.onFailureCommand],D)},function(){_.cF(D);
y&&y.onFailureCommand&&_.DP(l,[y.onFailureCommand],D);t8J(U)}):_.EU(Error("Wl"),"ERROR")};
SFv=function(l,D,U){var n=[D];U&&n.push(U);return _.lu(l,n).then(function(y){var A=_.M(D,_.bc).serializedTransactionFlowLoggingParams,C=y.data,h=aRJ(D,C);h?y=_.Le(new gz(h,A)):mU5(C);return y},function(){var y=_.M(D,_.bc).serializedTransactionFlowLoggingParams;
t8J(D);return _.Le(new gz("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",y))})};
aRJ=function(l,D){l=_.M(l,_.bc).serializedTransactionFlowLoggingParams;var U=null;switch(D.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":U="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":U="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":U="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}U?_.rX(U,l):dh2(l);return U};
t8J=function(l){_.rX("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.M(l,_.bc).serializedTransactionFlowLoggingParams)};
mU5=function(l){if(l.trackingParams){var D=_.t6(),U=_.aS();D&&U&&_.jz(D,U,_.v9(l.trackingParams))}};
k52=function(l,D,U){var n=_.jZ.instance,y=_.oQ9(_.H3("YPC_MB_URL")),A=(new _.jM$).init(),C=_.FMc(),h=_.M(U,_.Vwz).languageCode;h===void 0?_.EU(Error("Ii"),"ERROR"):_.dx([A,y]).then(function(){var b={ctk:_.Nd.payments.business.integration.ClientTokenFactory.createClientToken(h,C)};n&&_.FE(n,U)?_.oL(n,U,b).then(function(u){return{data:u}}).then(function(u){_.O9(D,"yt-service-request-completed",u);
u.code!=="ERROR"&&(u=u.data.command)&&_.DP(l,[u],D)}):_.EU(Error("Wl"),"ERROR")})};
cz$=function(l,D,U,n){var y=_.jZ.instance;y&&_.FE(y,U)?_.oL(y,U,n).then(function(A){return{data:A}}).then(function(A){dUH(l,D,U,A)},function(){Kb5(U)}):(y=_.Jc().resolve(_.G8(_.GI)))&&y.requestDataForServiceEndpoint(U,n).then(function(A){dUH(l,D,U,A)},function(){Kb5(U)})};
dUH=function(l,D,U,n){_.O9(D,"yt-service-request-completed",n);if(n.code&&n.code=="ERROR")Kb5(U);else{(n=n.data.commands)&&_.DP(l,n,D);var y;(l=(y=_.M(U,_.yg7))==null?void 0:y.serializedYpcPauseFlowLoggingParams)&&l&&_.ww("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",l)}};
Kb5=function(l){var D;(l=(D=_.M(l,_.yg7))==null?void 0:D.serializedYpcPauseFlowLoggingParams)&&l&&_.ww("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",l,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
jR2=function(l,D,U){var n=_.jZ.instance;n&&_.FE(n,U)?_.oL(n,U).then(function(y){return{data:y}}).then(function(y){plw(l,D,U,y)},function(){xUq(U)}):(n=_.Jc().resolve(_.G8(_.GI)))&&n.requestDataForServiceEndpoint(U).then(function(y){plw(l,D,U,y)},function(){xUq(U)})};
plw=function(l,D,U,n){_.O9(D,"yt-service-request-completed",n);n.code&&n.code=="ERROR"?xUq(U):((n=n.data.commands)&&_.DP(l,n,D),(l=_.M(U,_.Agg).serializedYpcResumeFlowLoggingParams)&&l&&_.ww("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",l))};
xUq=function(l){(l=_.M(l,_.Agg).serializedYpcResumeFlowLoggingParams)&&l&&_.ww("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",l,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
FbT=function(l){l=l===void 0?{}:l;_.Jc().resolve(_.oC8).showFeedbackDialog(l.customProductData,l.feedbackContent,l.onFeedbackSubmitted,l.bucket)};
ohT=function(l){l=l===void 0?{}:l;_.Jc().resolve(_.oC8).showHelpDialog(l.helpContext,l.articleId,l.productData)};
wl8=function(){ohT()};
rz5=function(){FbT()};
fR8=function(l,D,U){var n,y,A,C,h,b,u;return _.P(function(Q){switch(Q.nextAddress){case 1:n=_.M(l,zL2);if((y=n)==null?0:y.productId){b={productId:n.productId,bucket:n.bucket,enableAnonymousFeedback:(h=n.enableAnonymousFeedback)!=null?h:!0,allowNonLoggedInFeedback:!0};u={feedbackChoice:U.feedbackChoice};if(!_.q("web_collect_offline_state")){Q.jumpTo(8);break}_.ZY(Q,9);return Q.yield(r1H(u),11)}C={bucket:(A=n)==null?void 0:A.bucket};if(!_.q("web_collect_offline_state")){Q.jumpTo(4);break}C.customProductData=
{};_.ZY(Q,5);return Q.yield(r1H(C.customProductData),7);case 7:_.WG(Q,4);break;case 5:_.kF(Q);case 4:FbT(C);Q.jumpTo(0);break;case 11:_.WG(Q,8);break;case 9:_.kF(Q);case 8:_.ejc(u),_.Zsl("GFEEDBACK",u),n.productId==="5295751"&&(u.client_attestation=Number(_.H3("CATSTAT",0))),n.productId==="5295751"&&(u.client_time=Date.now()/1E3/3600),n.productId==="5295751"&&(u.original_playback_id=_.E4v||""),_.G_y(b,u),_.Kz(Q)}})};
$U8=function(l){if(l=_.M(l,_.ea3)){var D={bucket:l.bucketIdentifier};l.additionalDatas&&(D.customProductData={},l.additionalDatas.forEach(function(U){if(U=U.userFeedbackEndpointProductSpecificValueData)D.customProductData[U.key]=U.value}));
FbT(D)}};
NUW=function(l){var D=_.AH.getInstance();var U=_.C3("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var n=_.C3("DELETE",void 0,"Delete"),y=_.C3("CANCEL",void 0,"Cancel");U=OYq(U,void 0,n,y,{signal:"DELETE_ALL_DOWNLOADS"});_.z_(D,[{openPopupAction:U}],l)};
Eh8=function(){return _.P(function(l){return l.nextAddress==1?l.yield(_.Jc().resolve(_.hl),2):l.yield(sRW(),0)})};
TUW=function(l){var D,U;return _.P(function(n){return n.nextAddress==1?(U=(D=_.M(l,_.lP))==null?void 0:D.targetId)?n.yield(_.Jc().resolve(_.hl),3):n.jumpTo(0):n.yield(_.Jc().resolve(_.Co).deleteVideo(U),0)})};
HT2=function(l){var D,U;return _.P(function(n){return n.nextAddress==1?(U=(D=_.M(l,_.lP))==null?void 0:D.targetId)?n.yield(_.Jc().resolve(_.hl),3):n.jumpTo(0):n.yield(IRv(_.Jc().resolve(_.Co),U),0)})};
OTT=function(l){var D,U;return _.P(function(n){return(U=(D=_.M(l,_.lP))==null?void 0:D.targetId)?n.yield(YFW(U),0):n.jumpTo(0)})};
ibW=function(){_.q("kevlar_woffle_refresh_dl_load_killswitch")||V8J()};
Di$=function(){_.q("kevlar_woffle")&&_.jd.instance&&lzT()};
nN8=function(l){var D;if((D=_.M(l,_.Cq))==null||!D.videoId)return!1;Ui5(_.Jc().resolve(_.Co),_.M(l,_.Cq),l.clickTrackingParams);return!0};
AX$=function(l){var D;if((D=_.M(l,_.hi))==null||!D.playlistId)return!1;yX8(_.Jc().resolve(_.Co),_.M(l,_.hi),l.clickTrackingParams);return!0};
BxW=function(l){var D=_.M(l,_.rKy);(D==null?void 0:D.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(D==null?void 0:D.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||WO8(_.Jc().resolve(_.Co),_.M(l,_.rKy))};
hmJ=function(l){l=_.M(l,_.G97);var D;(l==null?0:(D=l.actions)==null?0:D.length)&&Cnw(l)};
gNH=function(l){var D,U;return _.P(function(n){D=_.M(l,Pnv);return(U=D)!=null&&U.localWatchHistoryCommandType?n.yield(bb2(D),0):n.return()})};
vNP=function(){return _.P(function(l){return _.q("kevlar_enable_download_to_mobile")?l.yield(uaW(),0):l.return()})};
QPJ=function(l){setTimeout(function(){requestAnimationFrame(l)},80)};
Gmq=function(l){return Object.entries(l).map(function(D){return D.join(":")}).join(";")};
LOW=function(l){var D,U,n;_.P(function(y){if(y.nextAddress==1)return y.yield(JXJ(),2);D=y.yieldResult;U=_.yu.instance;switch(D){case "granted":n=l.getLocationCommand;break;case "denied":n=l.openDeniedDialogAction;break;case "prompt":n=l.openCollectionDialogAction;break;default:n=l.openCollectionDialogAction}n&&U.resolveCommand(n);_.Kz(y)})};
JXJ=function(){var l,D;return _.P(function(U){if(U.nextAddress==1)return l="prompt",navigator.permissions?U.yield(navigator.permissions.query({name:"geolocation"}),3):U.jumpTo(2);U.nextAddress!=2&&(D=U.yieldResult,l=D.state);return U.return(l)})};
MeW=function(){_.P(function(l){return l.yield(_.qYJ(),0)})};
Rmq=function(){var l,D,U;return _.P(function(n){if(n.nextAddress==1)return l=_.Jc().resolve(_.Ju),l?n.yield(_.oL(l,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.II(Error("Zl")),n.return(void 0));if(D=n.yieldResult){if(D.errorMetadata)return _.II(Error("$l`"+D.errorMetadata.status+"`"+D.error)),n.return(void 0);U=D.datasyncIds;_.Ozr=U.length;return n.return(U)}_.II(Error("am"));return n.return(void 0)})};
ZbJ=function(){Rmq().then(function(l){l&&(vt$(l),c1$(l),noH(l),fV8(l))})};
emJ=function(l){_.Tn.addLowPriorityJob(function(){var D,U,n,y,A;return _.P(function(C){switch(C.nextAddress){case 1:if(_.q("ytidb_clear_optimizations_killswitch")){C.jumpTo(2);break}D=_.oG("clear");if(D.startsWith("V")&&D.endsWith("||")){var h=[D];vt$(h);c1$(h);noH(h);fV8(h);return C.return()}U=y1J();n=$hJ();return C.yield(pKH(),3);case 3:return y=C.yieldResult,C.yield(QO$(),4);case 4:if(A=C.yieldResult,!(U||n||y||A))return C.return();case 2:l.isNetworkAvailable()?ZbJ():l.listenOnce("publicytnetworkstatus-online",
ZbJ),_.Kz(C)}})})};
uS=function(l){l={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.$B(l)}}}};_.yu.instance&&_.yu.instance.resolveCommand(l)};
miv=function(l){if(l){var D=_.he();_.KM(D,3854,void 0,{layer:0,parentLayer:4});switch(l){case 1:var U=238708;break;case 2:U=238715;break;case 3:U=238710;break;case 6:U=238709}U&&(l=_.Ce(D,{veType:U}))&&_.xM(D,l)}};
az$=function(l){if(l){var D=_.he();_.KM(D,3854,void 0,{layer:0,parentLayer:4});switch(l){case 1:var U=238714;break;case 2:U=238711;break;case 8:U=238709;break;case 7:U=238713;break;case 3:case 4:case 5:U=238712}U&&(l=_.Ce(D,{veType:U}))&&_.xM(D,l)}};
te2=function(l){switch(l.latencyType){case 0:_.m0("consent_primitive_flow");_.ae("cpit",l.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.ae("cpist",l.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.ae("cprtif",l.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.ae("cprtli",l.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.ae("cprt",l.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.ae("cpdt",l.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.ae("cpjct",l.timestampEpochMillis,"consent_primitive_flow")}};
wbJ=function(l,D){var U,n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f;return _.P(function(I){switch(I.nextAddress){case 1:_.ZY(I,2);(n=(U=_.M(l,XbJ))==null?void 0:U.serializedConsentRequest)||(n=(y=_.M(l,SY5))==null?void 0:y.serializedConsentRequest);n&&(A=kmq(_.Oc(n)));if(A===void 0)return I.return();C=diW(A);C.latencyCallback=te2;D&&KO2(C,function(){D.then(function(iG){iG.pauseVideo();(new cX$).increment()})});
return((h=_.M(l,XbJ))==null?void 0:h.consentAction)==="CONSENT_ACTION_PREWARM"||((b=_.M(l,SY5))==null?void 0:b.consentAction)==="CONSENT_ACTION_PREWARM"?I.yield(pb8(C),5):I.yield(xi8(C),6);case 6:u=I.yieldResult;Q=_.QJ(u,vB);if(Q===1){if(((G=_.tU(u,jP$,1,vB))==null?void 0:_.eY(G,1))===1||((J=_.tU(u,jP$,1,vB))==null?void 0:_.eY(J,1))===2||((L=_.tU(u,jP$,1,vB))==null?void 0:_.eY(L,1))===3)_.M(l,SY5)?uS(_.C3("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
uS(_.C3("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));miv((R=_.tU(u,jP$,1,vB))==null?void 0:_.eY(R,1),_.uO(u,FOP,3,_.vE()))}else Q===2?(((a=oNw(u))==null?void 0:_.eY(a,1))===5?_.M(l,SY5)?uS(_.C3("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):uS(_.C3("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((S=oNw(u))==null?void 0:_.eY(S,1))===1||((d=oNw(u))==null?void 0:_.eY(d,1))===4?
uS(_.C3("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((c=oNw(u))==null?void 0:_.eY(c,1))===7&&((N=A)==null?void 0:(z=_.MZ(N,QN,4))==null?void 0:_.eY(z,4))!==1&&uS(_.C3("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),az$((f=oNw(u))==null?void 0:_.eY(f,1))):uS(_.C3("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));I.jumpTo(5);break;case 5:_.WG(I,0);break;case 2:_.kF(I),uS(_.C3("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.Kz(I)}})};
zmH=function(){if(!rX$.has("Worker")){rX$.set("Worker",!0);var l={api:"BROWSER_API_WEB_WORKER"};l.available="Worker"in window?!0:!1;_.Na("apiTest",l)}};
fz$=function(l){return typeof l==="undefined"?"-1":String(Math.ceil(l/1048576))};
EN$=function(l,D){$i$(new Nx$(_.M(D,sP8).addToken,_.M(D,sP8).commonToken)).then(function(){_.O9(l,"yt-invoke-instrument-manager-action-completed")},function(U){_.O9(l,"yt-invoke-instrument-manager-action-error",U)})};
GQ=function(){return _.H3("HTML_DIR")==="rtl"};
TxP=function(){var l,D;return(D=(l=window).matchMedia)==null?void 0:D.call(l,"(prefers-reduced-motion: reduce)").matches};
IzT=function(l){var D=_.Jc().resolve(_.G8(_.NB));if(D&&D.isAnyTransitionEnabled){var U={};D.viewTransitionCoordinator.registerElement(l,(U.slide="miniplayer-page-transition",U["lockup-to-watch"]="miniplayer-page-transition",U["learning-journey"]="miniplayer-page-transition",U))}};
HbJ=function(l,D,U){return{horizontalAlignment:l.x+U.width/2<D.width/2?"west":"east",verticalAlignment:l.y+U.height/2<D.height/2?"north":"south"}};
Obv=function(l,D,U,n,y){y=y===void 0?new _.zP(0,0):y;l=YYH(l,D,U,n,!1);return new _.zP(l.x+y.x,l.y+y.y)};
YYH=function(l,D,U,n,y){y=(y===void 0?0:y)?400:0;return new _.zP(l==="west"?16+(GQ()?y:0):U.width-n.width-16-(GQ()?0:y),D==="north"?16:U.height-n.height-16)};
Ve5=function(l,D){var U=0;l&&(U+=76);D&&(U+=285);return U};
iL$=function(l){return _.Kh(l)};
lr8=function(l){var D=1;l=l.split(":");for(var U=[];D>0&&l.length;)U.push(l.shift()),D--;l.length&&U.push(l.join(":"));return U};
DHP=function(l){var D=new _.vb;return _.X9(D,11,l)};
UH8=function(l){var D={};l=l.getAllResponseHeaders().split("\r\n");for(var U=0;U<l.length;U++)if(!_.hd(l[U])){var n=lr8(l[U]),y=n[0];n=n[1];if(typeof n==="string"){n=n.trim();var A=D[y]||[];D[y]=A;A.push(n)}}return _.we.map(D,function(C){return C.join(", ")})};
Eow=function(l,D){return l.JSC$9877_xhr_?l.JSC$9877_xhr_.getResponseHeader(D):null};
nPW=function(l,D){if(l.isDisposed())throw Error("Ea");l.es.vy("n");var U=_.wx(l.es,function(){return l.f6S([D.rK,D.sDt,D.iJd,D.wUi])},"n");
l.es.bBi(U.length);l.es.wa();return U};
y85=function(l,D,U){Array.isArray(U)||(U=[String(U)]);_.M2k(l.JSC$10113_queryData_,D,U);return l};
lzT=function(){var l=_.jd.instance;_.P(function(D){return l.deferredInstallPrompt?D.yield(l.deferredInstallPrompt.prompt(),0):D.jumpTo(0)})};
A8W=function(l,D,U){if(_.Ns(l))_.Ac(l,D,U);else for(l=_.dt7(l);;){var n=l.next();if(n.done)break;D.call(U,n.value,void 0,l)}};
WS$=function(l,D){var U=[];A8W(D,function(n){try{var y=_.mw.prototype.getWrapper.call(this,n,!0)}catch(A){if(A=="Storage: Invalid value was encountered")return;throw A;}y===void 0?U.push(n):_.koy(y)&&U.push(n)},l);
return U};
Nhv=function(l,D){WS$(l,D).forEach(function(U){_.mw.prototype.remove.call(this,U)},l)};
BIq=function(l){var D=_.n5;D._minimumZ=Math.max(D._minimumZ,l)};
Cor=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];hNP=function(l,D){_.WE(l.vm);l.vm=D};
PoJ=function(l,D,U,n){l.setState(5);var y=!!l.sTu&&Cor.includes(_.bl(l.sTu)||"");try{var A=new _.rx({program:D,globalName:U,xu6:{disable:!_.q("att_web_record_metrics")||!_.q("att_skip_metrics_for_cookieless_domains_ks")&&y,vA:"aGIf"}});A.vAW.then(function(){l.setState(6);n&&n(D)});
hNP(l,A)}catch(C){l.setState(7),C instanceof Error&&_.II(C)}};
bLJ=function(l,D,U,n,y,A){var C=C===void 0?"trayride":C;U?(l.setState(2),_.pI(_.ws(U),function(){if(window[C])PoJ(l,n,C,y);else{l.setState(3);var h=_.FRs(U),b=document.getElementById(h);b&&(_.eH$(h),b.parentNode.removeChild(b));_.II(new _.rc("BL:ULB",U))}},A)):D?(A=_.SU("SCRIPT"),D instanceof _.nz?_.WY(A,D):A.textContent=D,A.nonce=_.US(document),document.head.appendChild(A),document.head.removeChild(A),window[C]?PoJ(l,n,C,y):(l.setState(4),_.II(new _.rc("BL:ULBJ")))):_.II(new _.rc("BL:ULV"))};
gP$=function(){this.state=1;this.vm=null;this.sTu=void 0};
_.W=gP$.prototype;_.W.initialize=function(l,D,U,n){this.sTu=n;if(l.program){var y;n=(y=l.interpreterUrl)!=null?y:null;if(l.interpreterSafeScript)y=_.sn_(l.interpreterSafeScript);else{var A;y=(A=l.interpreterScript)!=null?A:null}l.interpreterSafeUrl&&(n=_.I2(l.interpreterSafeUrl).toString());bLJ(this,y,n,l.program,D,U)}else _.II(Error("sf"))};
_.W.isInitialized=function(){return!!this.vm};
_.W.getState=function(){return this.state};
_.W.isLoading=function(){return this.state===2};
_.W.invoke=function(l){l=l===void 0?{}:l;var D;this.vm?D=nPW(this.vm,{rK:l}):D=null;return D};
_.W.dispose=function(){hNP(this,null);this.setState(8)};
_.W.setState=function(l){this.state=l};
var uCJ=function(l,D){return l.vm.snapshot(D)},vPq=function(l,D){var U=_.RG("botguard_async_snapshot_timeout_ms",3E3);
D=D===void 0?{}:D;U=U===void 0?3E3:U;return l.vm?new Promise(function(n,y){var A=!1,C=_.Tn.addJob(function(){A=!0;y(Error("tf"))},1,U);
l.vm?uCJ(l,{rK:D}).then(function(h){_.Tn.cancelJob(C);A||n(h)}).catch(function(h){_.Tn.cancelJob(C);
A||y(h)}):(_.Tn.cancelJob(C),n(null))}):Promise.resolve(null)},Q8$=["att/log"],DUr;
DUr={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var Grv={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},J8q=function(l,D){return _.Pc(l,{mode:"readwrite",enableRetries:!0},function(U){return _.Mp_(U,D,"settingEntity")})},LSv=function(l,D,U){return _.Pc(l,{mode:"readonly",
enableRetries:!0},function(n){return _.tg8(n,D,U)})},qg5=function(l){if(!l.storage)return!1;
a:{if(l.storage){try{var D=l.storage.get("TLPQtimestamp")}catch(U){}l=Number(D);if(!isNaN(l))break a}l=void 0}return l?Date.now()-l<864E5:!1},MlJ=function(l){if(l.storage){try{var D=l.storage.get("TLPQindex")}catch(U){}l=Number(D);
if(!isNaN(l))return l}},RNT=function(l,D){l.queueProxy&&D.forEach(function(U){if(U.videoId&&U.trackingParams&&l.queueProxy instanceof _.AC){var n=_.t6();
l.queueProxy.attributionData.set(U.videoId,{enqueueingVe:_.v9(U.trackingParams).getAsJson(),enqueueingCsn:n?n:void 0,clientEnqueueingTimeMs:Math.floor((0,_.J3)()).toString()})}})},ZLH=function(l){var D=_.PZ8(l);
D!=l.currentSnapState_&&(l.currentSnapState_=D,l.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},JN=function(l){this.JSC$13299_networkManager_=l;
this.partCallbacks_=[]};
JN.prototype.getCacheKeyForEndpoint=function(l){return _.CX$(l,!1)};
JN.prototype.onPartsCallback_=function(l){this.partCallbacks_.forEach(function(D){l&&D(l)})};
var L8=function(l,D,U){JN.call(this,l);this.player_=D;this.autoplayData_=U};
_.Z(L8,JN);L8.prototype.getCacheKeyForEndpoint=function(l){return _.CX$(l,!!this.autoplayData_)};
L8.prototype.getTempData=function(l,D){D=D.timeBeforeNextVideo;l={itct:l.clickTrackingParams,lact:_.Gj(),pbis:D,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(l.autonav=1);return l};
L8.prototype.getXhrParams=function(l){return Object.assign({pbj:"prefetch"},l)};
L8.prototype.getParams=function(l){l={frags:l.fragmentsRequested.join(",")};_.q("kevlar_droppable_prefetchable_requests")&&(l.prefetch=1);return l};
var eNP=function(l){l.playerEvents_.forEach(function(D){l.player.removeEventListener(D.eventName,D.callback)});
l.playerEvents_.length=0},mHv=function(l,D,U){this.player=l;
this.JSC$13309_taskManager=D;this.prefetchDelay=U;this.completionResolver_=null;this.playerEvents_=[]};
mHv.prototype.start=function(){var l=this;this.completionResolver_=_.wf();_.Kb(this.completionResolver_.promise,function(){eNP(l);l.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var ar$=function(l,D,U){l.player.addEventListener(D,U);l.playerEvents_.push({eventName:D,callback:U})},tlv={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},XpJ={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},Sg8=function(l,D,U){mHv.call(this,l,D,U);this.cueId_="playbackTrigger-"+Math.random()};
_.Z(Sg8,mHv);
Sg8.prototype.prepareTrigger=function(l){var D=this,U=this.player.getDuration(),n=this.player.getVideoData(),y=n.isLive&&n.hasProgressBarBoundaries;if(y&&n.progressBarEndPositionUtcTimeMillis){var A=n.progressBarEndPositionUtcTimeMillis/1E3;isNaN(A)||(U=A)}var C=0;this.prefetchDelay>=0?y?n.progressBarStartPositionUtcTimeMillis&&(n=n.progressBarStartPositionUtcTimeMillis/1E3,isNaN(n)||(C=n+this.prefetchDelay)):C=this.prefetchDelay:C=U+this.prefetchDelay;y?this.player.addUtcCueRange(this.cueId_,C,U):
this.player.addCueRange(this.cueId_,C,U);_.Kb(l.promise,function(){D.player.removeCueRange(D.cueId_)});
ar$(this,"onCueRangeEnter",function(h){h==D.cueId_&&l.resolve(U-C)})};
var kr2=function(l,D){l.fragmentConfiguration_[D].requiredKeys.every(function(U){return!!l.prefetchedData_[U]})&&(l.validatedFragments_.push(D),D=l.missingFragments_.indexOf(D),D!==-1&&l.missingFragments_.splice(D,1))},dHq=function(l){l.prefetchedFragments_.forEach(function(D){kr2(l,D)})},KSv=function(l,D,U){this.pageFragments_=l;
this.prefetchedFragments_=D;this.fragmentConfiguration_=XpJ;this.prefetchedData_=U;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;dHq(this)},c8J=function(){},ppJ=function(l){this.JSC$13323_playlistManager_=l};
_.Z(ppJ,c8J);ppJ.prototype.getPrefetchEndpoint=function(){return this.JSC$13323_playlistManager_.getAutoplayEndpoint()};
var xH8=function(l){this.autonavEndpoints_=l};
_.Z(xH8,c8J);xH8.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var j88=function(l,D,U,n,y){this.autonavEndpoints=l;this.foregroundTrigger=D;this.backgroundTrigger=U;this.pageType=n;this.isInPlaylist=y},FS8=function(l,D){if(l.webPrefetchData&&l.webPrefetchData.navigationEndpoints&&l.webPrefetchData.navigationEndpoints.length){l=l.webPrefetchData.navigationEndpoints;
var U=_.M(l[0],_.za);if(U.watchEndpointSupportedPrefetchConfig&&U.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var n=U.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;U=n.playbackRelativeSecondsPrefetchCondition;U=typeof U==="number"&&Math.abs(U)<D.videoDuration?U:void 0;n=n.countdownUiRelativeSecondsPrefetchCondition;n=typeof n!=="number"||_.q("prefetch_job_config_cleanup_ks")&&D.inPlaylist?void 0:n;if(typeof n==="number")return new j88(l,D.makeUpNextTrigger(n),D.makePlaybackTrigger(n),
"watch",D.inPlaylist);if(typeof U==="number")return new j88(l,D.makePlaybackTrigger(U),null,"watch",D.inPlaylist)}}},oPq=function(l){return l.prefetchJobConfig_.backgroundTrigger?_.DJ(_.pLg)()==0?l.prefetchJobConfig_.backgroundTrigger:l.prefetchJobConfig_.foregroundTrigger:l.prefetchJobConfig_.foregroundTrigger},wpv=function(l){_.tX(document,"visibilitychange",l.onVisibilityChange_,!1,l)},q8=function(l){JN.call(this,l)};
_.Z(q8,JN);q8.prototype.getCacheKeyForEndpoint=function(l){return JN.prototype.getCacheKeyForEndpoint.call(this,l)};
q8.prototype.getTempData=function(){return{}};
q8.prototype.getXhrParams=function(l){return l};
q8.prototype.getParams=function(){return{}};
var r8P=function(l,D,U){var n=l.prefetchDelay*1E3;if(Math.abs(n)>D)U.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var y=n,A=D-n;n<0&&(y=D+n,A=Math.abs(n));var C=l.JSC$13309_taskManager.addJob(function(){U.resolve(A/1E3)},10,y);
U.promise.thenCatch(function(){l.JSC$13309_taskManager.cancelJob(C)})}},zNT=function(l,D,U){mHv.call(this,l,D,U)};
_.Z(zNT,mHv);zNT.prototype.prepareTrigger=function(l){var D=this;ar$(this,"onAutonavCoundownStarted",function(U){r8P(D,U,l)})};
var fr$=function(l){l.pendingPrefetchJob_&&(l.pendingPrefetchJob_.cancel(),l.pendingPrefetchJob_=null)},$HP=function(l,D,U){if(!l.triggeredTargets.has(D)){var n=_.kDr(l,D);
n.action=U;_.Xvz(l,D,n)}},NIq=function(l){_.qq5();
_.TA9("cpt")&&_.II(Error("lh"));_.nC.requestAnimationFrame(function(){_.nC.setTimeout(function(){_.ae("cpt");var D=_.dj("vpl"),U=_.dj("cpt");D&&U&&_.ae("ol",Math.max(D,U))})});
try{_.ae("fr_s"),l()}catch(D){_.EU(D)}_.nC.requestAnimationFrame(function(){_.ae("bcp")})},s8H=function(l,D){l.serviceEndpointHandlers.push(D)},EP$=function(l,D){D=l.pendingPages_.indexOf(D);
D>-1&&l.pendingPages_.splice(D,1)},TIJ=function(l,D){var U=_.T15.indexOf(D);
U>-1&&_.T15.splice(U,1);l.targetPage_==D?(l.abort(),_.HJ5(l)):EP$(l,D)},IrT=function(l,D,U,n){D={challenge:D};
U&&(D.webResponse=U);return _.BN(l.innertubeTransportService,D,_.T3(Q8$),n)},HL5=function(l,D,U){if(!D.challenge)throw Error("qi");
if(D.botguardData&&D.botguardData.program){var n=new gP$;n.initialize(D.botguardData,function(){vPq(n,{atr_challenge:D.challenge}).then(function(y){if(!y)throw Error("ri");return IrT(l,D.challenge,y,U)}).catch(function(y){_.II(y);
return IrT(l,D.challenge,void 0,U)})},void 0)}else IrT(l,D.challenge,void 0,U)},Ygq=function(l,D,U){var n={};
D.ids&&(n.ids=[].concat(_.zz(D.ids)));D.engagementType&&(n.engagementType=D.engagementType);return _.BN(l.innertubeTransportService,n,_.T3(_.NR7),U).then(function(y){if(!y)throw new _.rc("GetAttestationChallenge returned falsy");HL5(l,y,U)}).thenCatch(function(y){_.EU(y)})},OLP=function(l,D,U){return new _.X0(function(n,y){var A;
return _.P(function(C){if(C.nextAddress==1){var h=C.yield,b=D.engagementType,u=D.ids,Q={};u=_.B(u!=null?u:[]);for(var G=u.next();!G.done;G=u.next())G=G.value,G.encryptedVideoId?Q.encryptedVideoId=G.encryptedVideoId:G.externalChannelId?Q.externalChannelId=G.externalChannelId:G.commentId?Q.commentId=G.commentId:G.externalOwnerId?Q.externalOwnerId=G.externalOwnerId:G.artistId?Q.artistId=G.artistId:G.playlistId?Q.playlistId=G.playlistId:G.externalPostId?Q.externalPostId=G.externalPostId:G.shareId&&(Q.shareId=
G.shareId);return h.call(C,Yl5(b,Q),2)}A=C.yieldResult;if(!A.challenge)return _.II(Error("si")),Ygq(l,D,U).then(n,y),C.return();h=A;b={challenge:h.challenge};b.webResponse=h.webResponse;b.engagementType=D.engagementType;b.ids=D.ids;_.BN(l.innertubeTransportService,b,_.T3(Q8$),U).then(n,y);_.Kz(C)})})},eMH=function(l,D){var U,n,y,A;
_.P(function(C){if(C.nextAddress==1){U=_.M(D,_.EAg);if(!(U&&U.listId&&l.response&&l.response.playingVideoId)||l.listId!==U.listId)return C.return();l.index===void 0&&(l.index=0);return C.yield(_.g4_(l.JSC$13162_playlistNetworkManager,U.listId,l.index,l.response.playingVideoId),2)}n=C.yieldResult;if(!n)return C.return();y=n.playlistId;A=n.playlistPanelRenderer;l.setPlaylistData(y,A,n.autoplayRenderer);_.Kz(C)})},VlW=function(l,D,U){var n=l.getParams(U),y=_.lXl(D,n),A=l.getTempData(D,U);
A.endpoint=JSON.stringify(D);_.q("enable_unknown_lact_fix_on_html5")&&(_.Jc().resolve(_.vK),A.lact=_.Gj());var C={headers:{"X-YouTube-STS":_.H3("STS"),"x-youtube-csoc":1}};_.s9(y,A);return new _.X0(function(h,b){var u=l.getXhrParams(n),Q;_.q("kevlar_cache_on_ttl_player")&&(Q=_.Jc().resolve(_.JS));Q&&_.Uxq(Q,D)?_.COq(Q,D,A,window.location.href).then(function(G){G?h(G):b()},b):_.$om(l.JSC$13299_networkManager_,D,u,l.onPartsCallback_.bind(l),C).then(function(G){G?h(G):b()},b)})},ipH=function(l,D){l.triggerPromise_=
D.start();
l.triggerPromise_.then(function(U){var n=l.prefetchEndpointProvider_.getPrefetchEndpoint();if(n){var y=tlv[l.prefetchJobConfig_.pageType].prefetchedFragments;l.prefetchRequestPromise_=VlW(l.JSC$13335_networkPrefetchRequest_,n,{fragmentsRequested:y,timeBeforeNextVideo:U});l.prefetchResponseCacheKey_=l.JSC$13335_networkPrefetchRequest_.getCacheKeyForEndpoint(n);wpv(l);l.prefetchRequestPromise_.then(function(A){l.storePrefetchedDataCallback_(l.prefetchResponseCacheKey_,A);if(_.q("web_prefetch_preload_video")&&
y.length===1&&y[0]==="pl"&&A&&!A.playerAds&&!A.adPlacements){var C=_.M(n,_.vk),h=C!=null,b={raw_player_response:A,watch_endpoint:C};(A=_.Jc().resolve(h?_.I4k:_.Vl))&&n&&A.then(function(u){h&&_.q("web_queue_preload_video")?(b.prefer_gapless=!0,u.queueNextVideo(b)):u.preloadVideoByPlayerVars(b)})}})}})},M8=function(l,D,U,n){this.prefetchEndpointProvider_=l;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=D;this.prefetchJobConfig_=U;this.JSC$13335_networkPrefetchRequest_=n;this.prefetchResponseCacheKey_=null};
M8.prototype.enqueue=function(){this.triggerPromise_||(ipH(this,oPq(this)),_.Gt(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
M8.prototype.resolve=function(){this.cancel()};
M8.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.");wpv(this)};
M8.prototype.onVisibilityChange_=function(){var l=this;_.DJ(_.pLg)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){l.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||ipH(this,oPq(this))};
var lO8=function(l,D,U,n,y){D&&(D==null?0:D.videoId)&&U&&U.entries&&_.q("kevlar_enable_shorts_prefetch_in_sequence")&&(fr$(l),D=U.entries.map(function(A){var C;return(C=_.M(A.command,_.vk))==null?void 0:C.videoId}).indexOf(D.videoId),U=U.entries[D+1],U!=null&&U.command&&!_.M(U==null?void 0:U.command,_.DS)&&(n=new j88([U.command],new Sg8(n,_.Tn,1),null,"shorts",!1),l.pendingPrefetchJob_=new M8(new xH8(n.autonavEndpoints),function(){return!1},n,new q8(y)),l.pendingPrefetchJob_.enqueue()))},Dcv=function(l,
D,U,n,y,A){var C=_.RZ.getInstance();
if(!_.q("block_all_player_prefetch_requests")){fr$(l);var h=!!U.getPlaylistId(),b=U.getVideoData().isLive&&U.getVideoData().hasProgressBarBoundaries;if((C.getState()==2||h||b)&&(!U.getVideoData().isLive||b)){C={inPlaylist:h,videoDuration:U.getDuration(),makeUpNextTrigger:function(Q){return new zNT(U,_.Tn,Q)},
makePlaybackTrigger:function(Q){return new Sg8(U,_.Tn,Q)}};
var u=FS8(D,C);u&&(l.pendingPrefetchJob_=new M8(u.isInPlaylist?new ppJ(y):new xH8(u.autonavEndpoints),function(Q,G){G=new KSv(tlv[u.pageType].pageFragments,tlv[u.pageType].prefetchedFragments,G);return _.Lnr(G)?(l.prefetchCache_.set(Q,G),!0):!1},u,new L8(n,U,A,y)),l.pendingPrefetchJob_.enqueue())}}},Ucr=function(){var l=_.uN();
l.signals.parkOrScheduleJob(function(){var D=l.storage;if(D.storage)if(qg5(D)){var U=D.getPlaylistId();D=MlJ(D);U=!!U&&D!==void 0}else D.clear(),U=!1;else U=!1;if(U){U=l.JSC$13162_pageManager.isOnWatch();a:{var n=l.storage;if(n.storage&&qg5(n)&&(D=n.getPlaylistId(),n=MlJ(n),D&&n!==void 0)){U={recoverPlaylistCommand:{listId:D,index:n,openMiniplayer:!U,openListPanel:U,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}U=void 0}U&&_.z_(l.JSC$13162_actionRouter,[U],null)}},0,"ma")},nKw=function(l,D,U,
n,y,A){var C=_.UE(7111);
_.cq(l.JSC$18673_screenManager,C,A?_.v9(A):void 0);_.xM(l.JSC$18673_screenManager,C,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:n,offlineId:D,offlineabilityFormatType:U,isDefaultFormatType:y==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:y}})},y7r=function(l,D,U,n,y){var A,C,h,b,u;
return _.P(function(Q){if(Q.nextAddress==1)return Q.yield(l.JSC$18673_playerApiPromise,2);A=Q.yieldResult;nKw(l,D,U,"OFFLINE_OBJECT_TYPE_PLAYLIST",n,y);if(h=_.pxr[l.entityTypeMap.listEntityType])u={},C=(u[h]={maximumDownloadQuality:(b=U)!=null?b:void 0},u);return Q.yield(A.queueOfflineAction(D,l.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",C),0)})},A7$=function(l,D){var U,n,y,A;
return _.P(function(C){if(C.nextAddress==1)return C.yield(l.JSC$18673_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3){U=C.yieldResult;if(!U)return _.II(new _.rc("PES is undefined")),C.return();n=_.n7(D,"downloadStatusEntity");return C.yield(LSv(U,n,"downloadStatusEntity"),3)}y=C.yieldResult;return C.return((A=y)==null?void 0:A.downloadState)})},WmJ=function(l,D,U,n,y){var A,C,h,b,u,Q;
return _.P(function(G){switch(G.nextAddress){case 1:return G.yield(l.JSC$18673_playerApiPromise,2);case 2:A=G.yieldResult;nKw(l,D,U,"OFFLINE_OBJECT_TYPE_VIDEO",n,y);if(h=_.pxr[l.entityTypeMap.singleEntityType])u={},C=(u[h]={maximumDownloadQuality:(b=U)!=null?b:void 0},u);return G.yield(A7$(l,D),3);case 3:Q=G.yieldResult;if(Q!=="DOWNLOAD_STATE_USER_DELETED"){G.jumpTo(4);break}return G.yield(l.deleteVideo(D),4);case 4:return G.yield(A.queueOfflineAction(D,l.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
C),0)}})},BCv=function(l,D,U,n,y){return _.P(function(A){return A.nextAddress==1?A.yield(l.deleteVideo(D,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):A.yield(WmJ(l,D,U,n,y),0)})},CLw=function(l,D,U){var n,y;
return _.P(function(A){if(A.nextAddress==1)return A.yield(l.JSC$18673_playerApiPromise,2);n=A.yieldResult;y=_.n7(D,"mainVideoDownloadStateEntity");return A.yield(n.updateDownloadState(y,U),0)})},YFW=function(l){var D=_.Jc().resolve(_.Co);
return _.P(function(U){if(U.nextAddress==1)return D.previousDownloadStateForVideo[l]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&D.previousDownloadStateForVideo[l]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?U.jumpTo(2):U.yield(D.resumeVideoDownload(l),2);if(U.nextAddress!=4)return U.yield(CLw(D,l,D.previousDownloadStateForVideo[l]),4);delete D.previousDownloadStateForVideo[l];_.Kz(U)})},IRv=function(l,D){var U;
return _.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$18673_playerApiPromise,2);U=n.yieldResult;return n.yield(U.queueOfflineAction(D,l.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},sRW=function(){var l=_.Jc().resolve(_.Co),D,U;
return _.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$18673_playerApiPromise,2);if(n.nextAddress!=3)return D=n.yieldResult,U={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},n.yield(D.queueOfflineAction("!*$_ALL_ENTITIES_!*$",l.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",U),3);var y=l.JSC$18673_commandHandler,A=y.resolveCommand,C=_.C3("DELETING_ALL",void 0,"Downloads are being deleted");A.call(y,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.H6(C)}},
popupType:"TOAST"}});_.Kz(n)})},hnW=function(l,D){var U,n,y,A,C,h;
return _.P(function(b){if(b.nextAddress==1)return b.yield(l.JSC$18673_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3)return U=b.yieldResult,U?b.yield(LSv(U,_.RJ,"downloadsPageViewConfigurationEntity"),3):(_.II(new _.rc("PES is undefined")),b.return());y=(n=b.yieldResult)!=null?n:{};h=(C=(A=y)==null?void 0:A.downloadsUpsellBannerVisibility)!=null?C:{};return h.visibleWithConnection?b.yield(D.refreshAllStaleEntities(0),0):b.jumpTo(0)})},PLH=function(l){var D,U;
return _.P(function(n){if(n.nextAddress==1)return n.yield(l.JSC$18673_prefStorage,2);D=n.yieldResult;return n.return((U=D)==null?void 0:U.get("sdois"))})},bp8=function(l){var D,U,n,y,A,C;
return _.P(function(h){if(h.nextAddress==1)return h.yield(l.JSC$18673_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3){D=h.yieldResult;if(!D)return _.II(new _.rc("PES is undefined")),h.return();U=_.n7("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return h.yield(LSv(D,U,"settingEntity"),3)}n=h.yieldResult;return h.return((C=(y=n)==null?void 0:(A=y.settingOptionValue)==null?void 0:A.boolValue)!=null?C:!1)})},gKP=function(l,D){var U,n,y,A;
return _.P(function(C){switch(C.nextAddress){case 1:return((U=D)==null?void 0:U.formatType)===void 0?C.return():C.yield(l.JSC$18673_prefStorage,2);case 2:n=C.yieldResult;if(n===void 0)return C.return();if(((y=D)==null?void 0:y.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return C.yield(n.set("lmqf",D.formatType),8);if(((A=D)==null?void 0:A.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){C.jumpTo(0);break}return C.yield(n.set("lmqf",D.formatType),6);case 6:return C.yield(n.set("lmqflst",
Math.floor((0,_.J3)())),0);case 8:return C.yield(n.remove("lmqflst"),0)}})},u6J=function(l){var D,U;
return _.P(function(n){switch(n.nextAddress){case 1:return n.yield(l.JSC$18673_prefStorage,2);case 2:D=n.yieldResult;if(!D){n.jumpTo(3);break}return n.yield(D.get("lmqflst"),4);case 4:if(U=n.yieldResult,U!==void 0)return n.return(U);case 3:return n.return(0)}})},vKT=function(l){var D,U,n;
return _.P(function(y){return y.nextAddress==1?y.yield(l.JSC$18673_prefStorage,2):y.nextAddress!=3?(D=y.yieldResult,y.yield((U=D)==null?void 0:U.get("ldtmes"),3)):y.return((n=y.yieldResult)!=null?n:!1)})},uaW=function(){var l=_.Jc().resolve(_.Co),D;
return _.P(function(U){if(U.nextAddress==1)return U.yield(l.JSC$18673_prefStorage,2);D=U.yieldResult;return D===void 0?U.return():U.yield(D.set("ldtmes",!0),0)})},QpW=function(l){var D,U;
return _.P(function(n){switch(n.nextAddress){case 1:return n.yield(l.JSC$18673_prefStorage,2);case 2:D=n.yieldResult;if(D===void 0){n.jumpTo(3);break}return n.yield(D.get("lmqf"),4);case 4:if(U=n.yieldResult,U!==void 0)return n.return(U);case 3:return n.return("SD")}})},yX8=function(l,D,U){var n,y,A,C,h,b,u,Q;
_.P(function(G){switch(G.nextAddress){case 1:return G.yield(gKP(l,(n=D)==null?void 0:n.actionParams),2);case 2:y=D.playlistId;if(!y)return G.return();if(D.action==="ACTION_ADD")return((C=D.actionParams)==null?0:C.formatType)?G.yield(y7r(l,y,D.actionParams.formatType,(Q=D.actionParams)==null?void 0:Q.settingsAction,U),0):G.yield(l.offlineWebClientEligibility,14);if(D.action==="ACTION_REMOVE_WITH_PROMPT"){var J=l.JSC$18673_commandHandler,L=J.resolveCommand,R=_.H3("INNERTUBE_CLIENT_NAME");var a=R===
"WEB_REMIX"?_.C3("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.C3("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var S=R==="WEB_REMIX"?[_.C3("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];R=R==="WEB_REMIX"?_.C3("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.C3("DELETE",void 0,"Delete");var d=_.C3("CANCEL",void 0,"Cancel");a=OYq(a,S,R,d,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:y});L.call(J,{openPopupAction:a});return G.return()}if(D.action===
"ACTION_REMOVE")return G.yield(IRv(l,y),0);if(D.action!=="ACTION_SYNC"){G.jumpTo(0);break}return G.yield(l.JSC$18673_playerApiPromise,9);case 9:return A=G.yieldResult,G.yield(A.queueOfflineAction(y,l.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return h=G.yieldResult,G.yield(QpW(l),15);case 15:return b=G.yieldResult,G.yield(u6J(l),16);case 16:u=G.yieldResult,D.onAddCommand&&l.JSC$18673_commandHandler.resolveCommand(D.onAddCommand,{form:{preferredFormatType:b,
offlineWebClientEligibility:h,lastOfflineQualitySettingsSavedMs:u.toString()}}),G.jumpTo(0)}})},Ui5=function(l,D,U){var n,y,A,C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z,f,I;
_.P(function(iG){switch(iG.nextAddress){case 1:return iG.yield(gKP(l,(n=D)==null?void 0:n.actionParams),2);case 2:y=D.videoId;if(!y)return iG.return();if(D.action==="ACTION_REMOVE_WITH_PROMPT"){var CC=l.JSC$18673_commandHandler,vo=CC.resolveCommand,td=_.H3("INNERTUBE_CLIENT_NAME");var GN=td==="WEB_REMIX"?_.C3("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.C3("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Ms=td==="WEB_REMIX"?[_.C3("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];td=td==="WEB_REMIX"?_.C3("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.C3("DELETE",void 0,"Delete");var j3=_.C3("CANCEL",void 0,"Cancel");GN=OYq(GN,Ms,td,j3,{signal:"DELETE_DOWNLOAD",targetId:y});vo.call(CC,{openPopupAction:GN});return iG.return()}if(D.action==="ACTION_ADD")return((c=D.actionParams)==null?0:c.formatType)?iG.yield(WmJ(l,y,D.actionParams.formatType,(I=D.actionParams)==null?void 0:I.settingsAction,U),0):iG.yield(l.offlineWebClientEligibility,
28);if(D.action==="ACTION_RETRY")return iG.yield(QpW(l),24);if(D.action==="ACTION_PAUSE")return iG.yield(l.pauseVideoDownload(y),0);if(D.action==="ACTION_RESUME")return iG.yield(l.resumeVideoDownload(y),0);if(D.action==="ACTION_REMOVE")return iG.yield(A7$(l,y),18);if(!_.q("kevlar_enable_download_to_mobile")){iG.jumpTo(0);break}A=_.M(D.onAddCommand,_.f0);h=(C=A)==null?void 0:C.isCrossDeviceDownload;if(!D.onAddCommand||!h){iG.jumpTo(0);break}b="HD";return iG.yield(u6J(l),16);case 16:return u=iG.yieldResult,
iG.yield(vKT(l),17);case 17:Q=iG.yieldResult;l.JSC$18673_commandHandler.resolveCommand(D.onAddCommand,{form:{preferredFormatType:b,lastOfflineQualitySettingsSavedMs:u.toString(),downloadToMobileEduShown:Q}});iG.jumpTo(0);break;case 18:return G=iG.yieldResult,l.previousDownloadStateForVideo[y]=(J=G)!=null?J:"DOWNLOAD_STATE_UNKNOWN",iG.yield(CLw(l,y,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(l.previousDownloadStateForVideo[y]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&l.previousDownloadStateForVideo[y]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){iG.jumpTo(20);break}return iG.yield(l.pauseVideoDownload(y),20);case 20:CC=_.C3("DELETED_VIDEO",void 0,"Video deleted from downloads.");vo=_.C3("UNDO_ACTION",void 0,"Undo");GN=_.C3("CLOSE",void 0,"Close");L={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.H6(CC),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.H6(vo),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:y}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:CC+" "+vo}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:y}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:GN}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};l.JSC$18673_commandHandler.resolveCommand(L);
iG.jumpTo(0);break;case 24:R=iG.yieldResult;R==="UNKNOWN_FORMAT_TYPE"&&(R="SD");a="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((S=D.actionParams)==null?0:S.formatType)R=D.actionParams.formatType,a=(d=D.actionParams)==null?void 0:d.settingsAction;return iG.yield(BCv(l,y,R,a,U),25);case 25:return iG.return();case 28:return N=iG.yieldResult,iG.yield(QpW(l),29);case 29:return z=iG.yieldResult,iG.yield(u6J(l),30);case 30:f=iG.yieldResult,D.onAddCommand&&l.JSC$18673_commandHandler.resolveCommand(D.onAddCommand,
{form:{preferredFormatType:z,offlineWebClientEligibility:N,lastOfflineQualitySettingsSavedMs:f.toString()}}),iG.jumpTo(0)}})},G_H=function(l,D){var U,n,y,A,C,h,b;
return _.P(function(u){if(u.nextAddress==1)return u.yield(l.JSC$18673_persistentStorePromiseAccessor(),2);U=u.yieldResult;if(!U)return _.II(new _.rc("PES is undefined")),u.return();if((n=D)==null||!n.settingItemId)return u.return();y=D;A=y.settingItemId;C=y.boolValue;h=_.n7(A,"settingEntity");b={key:h,settingOptionValue:{boolValue:C}};return u.yield(J8q(U,b),0)})},J7w=function(l,D){var U,n,y,A,C,h,b;
return _.P(function(u){switch(u.nextAddress){case 1:return u.yield(l.JSC$18673_prefStorage,2);case 2:return U=u.yieldResult,n=_.bu(),u.yield(l.JSC$18673_persistentStorePromiseAccessor(),3);case 3:return y=u.yieldResult,U?y?u.yield(U.get("sdois"),4):(_.II(new _.rc("PES is undefined")),u.return()):(_.II(new _.rc("prefStorage is undefined")),u.return());case 4:A=u.yieldResult;h=(C=D)==null?void 0:C.boolValue;h===void 0||_.q("kevlar_set_sd_enabled_flag_killswitch")||_.gj(0,197,!0);A===void 0&&h===void 0&&
(h=!1);if(h===void 0){u.jumpTo(0);break}return u.yield(U.set("sdois",h),6);case 6:return _.q("kevlar_set_sd_enabled_flag_killswitch")||(_.gj(0,196,h),n.save()),b={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:h},u.yield(G_H(l,b),0)}})},Lm8=function(l,D,U){var n,y,A,C,h;
return _.P(function(b){switch(b.nextAddress){case 1:return b.yield(PLH(l),2);case 2:return n=b.yieldResult,b.yield(J7w(l,U),3);case 3:return b.yield(PLH(l),4);case 4:return y=b.yieldResult,A=y!==n,b.yield(bp8(l),5);case 5:C=b.yieldResult&&!_.q("kevlar_modern_downloads_page");if((h=!y&&!C)||A)return b.yield(D.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);b.jumpTo(0)}})},V8J=function(){var l=_.Jc().resolve(_.Co),
D;
_.P(function(U){switch(U.nextAddress){case 1:return U.yield(l.JSC$18673_playerApiPromise,2);case 2:D=U.yieldResult;if(!_.q("kevlar_force_refresh_smart_downloads")){U.jumpTo(3);break}return U.yield(D.refreshAllStaleEntities(0),4);case 4:return U.return();case 3:return U.yield(D.refreshAllStaleEntities(),5);case 5:return U.yield(Lm8(l,D),6);case 6:if(_.q("enable_download_pep_for_premium_countries_web"))return U.yield(hnW(l,D),0);U.jumpTo(0)}})},WO8=function(l,D){var U,n;
_.P(function(y){switch(y.nextAddress){case 1:return y.yield(l.JSC$18673_playerApiPromise,2);case 2:U=y.yieldResult;switch((n=D)==null?void 0:n.settingItemId){case "SMART_DOWNLOADS_ENABLED":return y.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return y.jumpTo(4)}y.jumpTo(0);break;case 3:return y.yield(Lm8(l,U,D),6);case 6:y.jumpTo(0);break;case 4:return y.yield(G_H(l,D),7);case 7:y.jumpTo(0)}})},qaW=function(l,D){var U,n,y;
return _.P(function(A){if(A.nextAddress==1)return A.yield(l.JSC$18673_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3){U=A.yieldResult;if(!U)return _.II(new _.rc("PES is undefined")),A.return(!1);if(!D)return A.return(!1);n=_.n7(D,"mainVideoEntity");return A.yield(LSv(U,n,"mainVideoEntity"),3)}y=A.yieldResult;return A.return(y!==void 0)})},Cnw=function(l){var D=_.Jc().resolve(_.Co),U,n,y,A,C,h,b,u,Q,G,J;
_.P(function(L){switch(L.nextAddress){case 1:return L.yield(D.JSC$18673_playerApiPromise,2);case 2:U=L.yieldResult;y=(n=l)==null?void 0:n.actions;if(!y)return L.return();A=_.B(y);C=A.next();case 3:if(C.done){L.jumpTo(0);break}h=C.value;u=b=void 0;if(!(((b=h)==null?0:b.entityKey)&&((u=h)==null?0:u.actionType))){L.jumpTo(4);break}Q=_.lQ(h.entityKey);G=Q.entityId;J=Q.entityType;return L.yield(U.queueOfflineAction(G,J,h.actionType),4);case 4:C=A.next(),L.jumpTo(3)}})},M5w=function(l,D){var U,n,y,A,C;
return _.P(function(h){if(h.nextAddress==1)return h.yield(l.JSC$18673_prefStorage,2);if(h.nextAddress!=3)return(U=h.yieldResult)?h.yield(U.get("psi"),3):h.return();n=h.yieldResult;C={isPaused:D,lastSyncTimestamp:(A=(y=n)==null?void 0:y.lastSyncTimestamp)!=null?A:"0"};return h.yield(U.set("psi",C),0)})},bb2=function(l){var D=_.Jc().resolve(_.Co),U,n,y,A,C,h,b,u;
return _.P(function(Q){switch(Q.nextAddress){case 1:return Q.yield(D.JSC$18673_playerApiPromise,2);case 2:U=Q.yieldResult;y=((n=l)==null?void 0:n.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((h=l)==null?void 0:h.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":A="!*$_ALL_ENTITIES_!*$";C="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return Q.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return Q.jumpTo(4)}Q.jumpTo(5);break;case 3:return Q.yield(M5w(D,y),6);case 6:Q.jumpTo(5);break;case 4:return Q.yield(qaW(D,(b=l)==null?void 0:b.videoId),7);case 7:Q.yieldResult&&(A=(u=l)==null?void 0:u.videoId,C="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");Q.jumpTo(5);break;case 5:if(A&&C)return Q.yield(U.queueOfflineAction(A,"videoPlaybackPositionEntity",C),0);Q.jumpTo(0)}})},Rnr=function(l,D){var U;
D!==1||((U=l.currentPersistentToast)==null?0:U.isOpened())?l.openToast():l.currentPersistentToast=void 0},ZpP=function(l,D){var U;
return(U=l.transitionTasksMap.get(D))!=null?U:[]},enr=function(l,D){var U=[];
l.elementTasksMap.forEach(function(n){(n=n.get(D))&&U.push(n)});
return U},mcH=function(l,D,U,n,y){y=y===void 0?{}:y;
var A=D.defaultViewTransitionOptions;return Object.assign({},A,y,{beforeTransition:function(){n.forEach(function(u){u.beforeTransition()});
var C;(C=A.beforeTransition)==null||C.call(A);var h,b;(b=(h=y).beforeTransition)==null||b.call(h);U.forEach(function(u){u.beforeTransition()})},
afterTransition:function(){n.forEach(function(u){u.afterTransition()});
var C;(C=A.afterTransition)==null||C.call(A);var h,b;(b=(h=y).afterTransition)==null||b.call(h);U.forEach(function(u){u.afterTransition()})},
ignoredErrors:l.config.ignoredErrors})},aOv=function(l,D,U){l.transitionTasksMap.has(D)?l.transitionTasksMap.get(D).push(U):(l=new _.rc("Transition task registered for unknown transition type",D),_.EU(l))},t5w=function(l,D,U){if(l.transitionTasksMap.has(D)){var n=l.transitionTasksMap.get(D).filter(function(y){return y!==U});
l.transitionTasksMap.set(D,n)}},XPr=function(l,D){var U=ZpP(l,D);
U=_.B(U);for(var n=U.next();!n.done;n=U.next())n=n.value,n.runOnce&&t5w(l,D,n);l.elementTasksMap.forEach(function(y,A){y.forEach(function(C,h){C.runOnce&&D===h&&(y.delete(h),y.size===0&&l.elementTasksMap.delete(A))})})},Sa8=function(l,D,U){var n,y,A,C,h,b,u,Q,G;
_.P(function(J){if(J.nextAddress==1){if(l.config.disableAllTransitions)return J.return(D());if((n=U)==null||!n.transitionType)return J.return(_.SJ2(D,Object.assign({},(y=U)==null?void 0:y.viewTransitionOptions,{ignoredErrors:l.config.ignoredErrors})));A=U;C=A.transitionType;h=A.viewTransitionOptions;b=l.config.transitionConfigs.get(C);if(!b)return J.return(D());u=ZpP(l,C);Q=enr(l,C);G=_.SJ2(D,mcH(l,b,u,Q,h));return J.yield(G,2)}XPr(l,C);_.Kz(J)})},k_r=function(){var l,D,U,n;
return _.P(function(y){if(y.nextAddress==1)return l=navigator,(D=l.storage)!=null&&D.persisted?y.yield((U=l.storage)==null?void 0:U.persisted(),2):y.return("PERSISTED_STATE_NOT_SUPPORTED");n=y.yieldResult;return y.return(n?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},dcP=function(){var l,D,U,n;
return _.P(function(y){if(y.nextAddress==1)return l=navigator,(D=l.storage)!=null&&D.persist?y.yield((U=l.storage)==null?void 0:U.persist(),2):y.return("PERSISTED_STATE_NOT_SUPPORTED");n=y.yieldResult;return y.return(n?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Kmv=function(){var l,D;
return _.P(function(U){switch(U.nextAddress){case 1:return l="PERSISTED_STATE_NOT_SUPPORTED",_.ZY(U,2),U.yield(k_r(),4);case 4:l=U.yieldResult;if(l!=="PERSISTED_STATE_NOT_GRANTED"){U.jumpTo(5);break}return U.yield(dcP(),6);case 6:l=U.yieldResult;case 5:_.WG(U,3);break;case 2:D=_.kF(U),D instanceof Error&&_.EU(D);case 3:return _.Na("persistentStorageStateChecked",{persistedState:l}),U.return(l)}})},c7H=function(l,D){var U=[],n=!1;
D=_.B(D);for(var y=D.next();!y.done;y=D.next()){y=l.moduleRegistry[y.value];var A=void 0,C=void 0;((A=y)==null?0:A.isFetching)&&((C=y)==null?0:C.resolver)?(U.push(y.resolver.promise),n=!0):(y=new _.Au,y.resolve(void 0),U.push(y.promise))}return n?Promise.all(U):void 0},pPq=function(l,D,U){if(l.isAnyTransitionEnabled){var n={beforeTransition:function(){U(!0);
D.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){D.style.viewTransitionName&&(D.style.viewTransitionName="",U(!1))}};
aOv(l.viewTransitionCoordinator,"slide",n);aOv(l.viewTransitionCoordinator,"lockup-to-watch",n);aOv(l.viewTransitionCoordinator,"watch-next-appears",n);aOv(l.viewTransitionCoordinator,"learning-journey",n)}},xcT=function(l,D){l.isBrowseTransitionEnabled?Sa8(l.viewTransitionCoordinator,D,{transitionType:"slide"}):(D(),Promise.resolve())},jpr=function(l,D){l.isLockupToWatchTransitionEnabled?Sa8(l.viewTransitionCoordinator,D,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){l.registeredLockupThumbnail=void 0;l.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(D(),Promise.resolve())},FmJ=function(l,D){l.isLockupToWatchTransitionEnabled?Sa8(l.viewTransitionCoordinator,D,{transitionType:"watch-next-appears"}):(D(),Promise.resolve())},oKw=function(l,D){l.isLearningJourneyTransitionEnabled?Sa8(l.viewTransitionCoordinator,D,{transitionType:"learning-journey"}):(D(),Promise.resolve())},wPv=function(l,D,U){if(l.isInitialized()){var n=
Zb(U),y=n==="watch";
n=n==="shorts";var A=Zb(D)==="watch";if(y)A||(l.backgroundPageData=D),l.watchPipMode&&A||l.deactivate(U.endpoint);else if(n){if(Zb(D)!=="shorts"){var C;(C=l.getPlayerElement())==null||C.pause()}}else A&&!l.watchPipMode&&(V0W(D,U,!0)?(l.watchWhileMode&&_.vGW(l,!1),_.Cy2(l,D)):l.isMiniplayerActive()&&l.watchWhileMode&&l.deactivate());A&&_.Gjv(l);l.shortsPipMode&&!n&&(window.focus(),l.deactivate());if(l.pictureInPictureEnabled())if(n&&l.shortsPipEnabled||y&&l.watchPipEnabled)_.mbK(l.handleMediaSessionPipActivation);
else if(!l.isMiniplayerActive()&&(l.shortsPipEnabled||l.watchPipEnabled)&&window.documentPictureInPicture&&_.X$()&&_.RKc("Chromium")>=120){l=_.eYs().mediaSession;try{l.setActionHandler("enterpictureinpicture",null)}catch(h){}}}},r7J=function(l,D){var U,n;
_.P(function(y){if(y.nextAddress==1){if(!l||!l.navigationEndpoint)return y.return();_.r3().lockupActivation=!0;var A;D?A=_.$B(_.C3("QUEUE",void 0,"Queue")):A=l.longBylineText;n=(U=A)&&l.title?{miniplayerTitle:l.title,miniplayerSubtitle:U,playlistData:null}:void 0;return y.yield(_.siy(_.Jc().resolve(_.kq),l.navigationEndpoint,!0,n),2)}_.r3().userActivation=!0;_.Kz(y)})},MY8=function(l,D){var U,n,y,A,C,h;
_.P(function(b){if(b.nextAddress==1){U=_.M(D,_.sdy);if(!U||!U.listId)return b.return();l.index=U.index||l.index||0;n=l.response&&l.response.playingVideoId||void 0;return b.yield(_.g4_(l.JSC$13162_playlistNetworkManager,U.listId,l.index,n),2)}y=b.yieldResult;if(!y)return b.return();A=y.playlistId;C=y.playlistPanelRenderer;!l.queueProxy&&A&&C&&A.startsWith("TLPQ")&&(l.queueProxy=new _.AC(l.JSC$13162_playlistNetworkManager,A,l.setPlaylistData.bind(l),l.clearQueue.bind(l),_.VKl(C),l.storage));if(U.openMiniplayer&&
(h=_.i_N(C))&&!l.JSC$13162_pageManager.isOnWatch()){var u=h,Q=U.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";l.isMiniplayerActive()?l.openToast(u):r7J(u,Q)}l.setPlaylistData(A,C,y.autoplayRenderer);_.Kz(b)})},JU8=function(l,D){var U=_.uN();
U.index===void 0&&(U.index=0);U.temporaryItems.push.apply(U.temporaryItems,_.zz(l));if((D.videoId||D.videoIds)&&U.index!==void 0&&D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!U.queueProxy){var n=[];if(U.response){var y=_.Jc().resolve(_.kq).isMiniplayerActive();if(U.response.playlistPanelRenderer&&U.response.playlistId&&!U.response.playlistId.startsWith("TLPQ")){if(U.JSC$13162_pageManager.isOnWatch()||y)n=_.VKl(U.response.playlistPanelRenderer)}else U.response.playingVideoId&&!D.openMiniplayer?
n.push(U.response.playingVideoId):y&&U.response.playingVideoId&&D.openMiniplayer&&n.push(U.response.playingVideoId)}U.queueProxy=new _.AC(U.JSC$13162_playlistNetworkManager,"",U.setPlaylistData.bind(U),U.clearQueue.bind(U),n,U.storage);U.queueProxy.JSC$13108_setCurrentIndex(U.index)}U.queueProxy.addVideos(D.videoIds||[D.videoId],D)}RNT(U,l);U.response&&_.vN(U,_.QS(U,U.response.autoplayRenderer));U.JSC$13162_pageManager.isOnWatch()?U.isMiniplayerActive()&&U.openToast(l[0]):(l=l[0],D=D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
U.isMiniplayerActive()?U.openToast(l):r7J(l,D))},znP=function(l){var D=_.i$(l);
if(D=="object"||D=="array"){if(typeof l.clone==="function")return l.clone();if(typeof Map!=="undefined"&&l instanceof Map)return new Map(l);if(typeof Set!=="undefined"&&l instanceof Set)return new Set(l);D=D=="array"?[]:{};for(var U in l)D[U]=znP(l[U]);return D}return l},Rv=function(l,D){return _.Jys(_.hU(l,D,void 0,_.Ch))},ZK=function(l,D){return _.CP(_.hU(l,D,void 0,_.Ch))},eT=function(l,D){return _.jg$(_.hU(l,D,void 0,_.Ch))},mf=function(l,D){return _.hU(l,D,void 0,_.Ch,_.O7)},fO8=_.Ph(function(l,
D,U,n){if(l.nextWireType_!==0)return!1;
_.uB(D,U,n,_.d6(l.decoder_,_.Qgs));return!0},_.Jk,_.jY),$c$=_.Ph(function(l,D,U){if(l.nextWireType_!==1)return!1;
var n=l.decoder_;l=_.cm(n);n=_.cm(n);l=_.fm(l,n);_.bw(D,U,l);return!0},_.FHc,_.BH8),NCP=_.Ph(function(l,D,U){if(l.nextWireType_!==2)return!1;
l=_.sg7(l);_.bw(D,U,l===_.Km()?void 0:l);return!0},_.fj$,_.P$g),spW=_.XhB(function(l,D,U){if(l.nextWireType_!==0&&l.nextWireType_!==2)return!1;
D=_.lw(D,D[_.y_]|0,U);l.nextWireType_==2?_.E1_(l,iL$,D):D.push(_.Kh(l.decoder_));return!0},function(l,D,U){D=_.tDK(_.CP,D,!0);
if(D!=null&&D.length){U=_.Vhh(l,U);for(var n=0;n<D.length;n++)_.phC(l.encoder_,D[n]);_.iPk(l,U)}},_.bPk),EK$=_.Ph(function(l,D,U,n){if(l.nextWireType_!==0)return!1;
_.uB(D,U,n,_.Kh(l.decoder_));return!0},_.NTC,_.bPk),TCH=function(l){return l.previousElementSibling!==void 0?l.previousElementSibling:_.Z27(l.previousSibling,!1)},IO5=function(l,D){var U=[];
for(D=D||0;D<l.length;D+=2)_.bwg(l[D],l[D+1],U);return U.join("&")},Hpr=function(l,D){var U=arguments.length==2?IO5(arguments[1],0):IO5(arguments,1);
return _.POm(l,U)},KrT=_.eD(_.mG),YaW=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(YaW,_.Bh);YaW.prototype.getTypeName=function(){return _.Zo(this,1).split("/").pop()};
YaW.prototype.getValue=function(){var l=_.hU(this,2);if(Array.isArray(l)||l instanceof _.Bh)throw Error("W");return _.g6(this,2)};
var RWH=function(){var l=_.Ds();this.JSC$9998_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Lw("channel_type"))};
RWH.prototype.increment=function(l){this.JSC$9998_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",l)};
var Z4$=function(){var l=_.Ds();this.JSC$10001_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Lw("channel_type"))};
Z4$.prototype.increment=function(l){this.JSC$10001_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",l)};
var md5=function(){var l=_.Ds();this.JSC$10004_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Lw("channel_type"))};
md5.prototype.increment=function(l){this.JSC$10004_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",l)};
var eW5=function(){var l=_.Ds();this.JSC$10007_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
eW5.prototype.increment=function(){this.JSC$10007_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var afP=function(){var l=_.Ds();this.JSC$10010_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Lw("channel_type"),_.Lw("error_type"))};
afP.prototype.increment=function(l,D){this.JSC$10010_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",l,D)};
var tt5=function(){var l=_.Ds();this.JSC$10013_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
tt5.prototype.increment=function(){this.JSC$10013_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var XFP=function(){var l=_.Ds();this.JSC$10016_streamzService=l;l.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
XFP.prototype.increment=function(){this.JSC$10016_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var cX$=function(){var l=_.Ds();this.JSC$10022_streamzService=l;l.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
cX$.prototype.increment=function(){this.JSC$10022_streamzService.JSC$9868_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Opw=function(l){return l.getCount&&typeof l.getCount=="function"?l.getCount():_.Ns(l)||typeof l==="string"?l.length:_.we.getCount(l)},V5J=function(l,D){if(typeof l.every=="function")return l.every(D,void 0);
if(_.Ns(l)||typeof l==="string")return Array.prototype.every.call(l,D,void 0);for(var U=_.bBH(l),n=_.nL(l),y=n.length,A=0;A<y;A++)if(!D.call(void 0,n[A],U&&U[A],l))return!1;return!0},in5=function(l,D,U,n){var y=new _.fI(null);
l&&_.y8(y,l);D&&_.A8(y,D);U&&_.Wp(y,U);n&&_.Bp(y,n);return y},lWP=function(){var l=_.id&&_.Qg(_.aBk,10)>=0,D;
if(D=_.V3_)D=_.Qg(_.mE7,10)>=0;var U=_.yJ&&_.Qg(_.aBk,85)>=0;return _.lB||l||D||U},DfJ=function(l){var D=_.sBH(l);
return D&&lWP()?-l.scrollLeft:D&&_.Od(l,"overflowX")!="visible"?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft},Uf2=function(l,D){D=Math.max(D,0);
_.sBH(l)?lWP()?l.scrollLeft=-D:l.scrollLeft=l.scrollWidth-D-l.clientWidth:l.scrollLeft=D},ukJ=0,Lpq=!1;
ma.prototype.set=function(l){this.relativeTimeStart_=l};
ma.prototype.reset=function(){this.set(_.I7())};
ma.prototype.get=function(){return this.relativeTimeStart_};
var nA$=null,yVP=function(){nA$||(nA$=new ma)},AVT=function(){nA$||(nA$=new ma)};
_.HI(AVT,yVP);_.W=MQ5.prototype;_.W.JSC$11433_buffer_="";_.W.set=function(l){this.JSC$11433_buffer_=""+l};
_.W.append=function(l,D,U){this.JSC$11433_buffer_+=String(l);if(D!=null)for(var n=1;n<arguments.length;n++)this.JSC$11433_buffer_+=arguments[n];return this};
_.W.clear=function(){this.JSC$11433_buffer_=""};
_.W.getLength=function(){return this.JSC$11433_buffer_.length};
_.W.toString=function(){return this.JSC$11433_buffer_};
var WlP=!1,X9W=function(l){_.D9.call(this,l.message||l.description||l.name);this.isMissing=l instanceof aC;this.isTimeout=l instanceof _.Ws&&l.errorCode=="net.timeout";this.isCanceled=l instanceof _.dk};
_.Z(X9W,_.D9);X9W.prototype.name="BiscottiError";var aC=function(){_.D9.call(this,"Biscotti ID is missing from server")};
_.Z(aC,_.D9);aC.prototype.name="BiscottiMissingError";var tF=null,PBJ=function(){try{var l=_.UG("yt.ads.biscotti.getId_");return l?l():Wp$()}catch(D){return _.Le(D)}},B7T=function(l,D){return _.V0({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:l,command:D}})},CKW=function(l){return _.V0({type:"SET_GUIDE_IS_EXPANDED",
payload:l})},hV$=function(l){return _.V0({type:"SET_ONLINE_STATUS",
payload:l})},PK8=function(l,D){return _.V0({type:"SET_TRANSCRIPTION_STATE",
payload:{high:l,low:D}})},bn8=function(l){return _.V0({type:"SET_OVERLAY_STATE",
payload:l})},gAw=0,uXT=function(l,D,U){var n=this;
this.priority=D;this.delay=U;this.jobId=0;this.completionCallback=_.RR;this.wrappedJob=function(){l();n.completionCallback()};
this.id=++gAw};
uXT.prototype.enqueue=function(l){this.completionCallback=l;this.jobId=_.Tn.addJob(this.wrappedJob,this.priority,this.delay)};
var av=function(){_.Cp.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.Z(av,_.Cp);av.prototype.addJob=function(l,D,U){l=new uXT(l,D,U);this.taskIdToTask.set(l.id,l);this.isActive?vAq(this,l):this.suspendedTasks.add(l);return l.id};
var vAq=function(l,D){l.scheduledTasks.add(D);D.enqueue(function(){l.scheduledTasks.delete(D)})};
av.prototype.cancelJob=function(l){(l=this.taskIdToTask.get(l))&&(this.scheduledTasks.delete(l)?_.Tn.cancelJob(l.jobId):this.suspendedTasks.delete(l))};
av.prototype.pause=function(){var l=this;this.isActive=!1;this.scheduledTasks.forEach(function(D){_.Tn.cancelJob(D.jobId);l.suspendedTasks.add(D)});
this.scheduledTasks.clear()};
av.prototype.start=function(){var l=this;this.isActive=!0;this.suspendedTasks.forEach(function(D){vAq(l,D)});
this.suspendedTasks.clear()};
av.prototype.reset=function(){this.scheduledTasks.forEach(function(l){_.Tn.cancelJob(l.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var QdJ=function(l,D){this.JSC$13288_networkService_=l;this.pageRequestPromise=D};
QdJ.prototype.fetchData=function(l){GLP(this,this.JSC$13288_networkService_.fetchData(l))};
QdJ.prototype.postData=function(l,D){GLP(this,this.JSC$13288_networkService_.postData(l,D))};
QdJ.prototype.requestDataForServiceEndpoint=function(l,D){GLP(this,this.JSC$13288_networkService_.requestDataForServiceEndpoint(l,D))};
var GLP=function(l,D){D.then(l.pageRequestPromise.onSuccess,l.pageRequestPromise.onFailure,l.pageRequestPromise)};
QdJ.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var JV5=function(l){this.buildNetworkRequest_=l;this.pendingRequests_=new Set};
JV5.prototype.reset=function(){this.pendingRequests_.forEach(function(l){l.cancel()});
this.pendingRequests_.clear()};
JV5.prototype.fetchData=function(l){var D=Ll8(this);D.fetchData(l);return D.pageRequestPromise};
JV5.prototype.postData=function(l,D){var U=Ll8(this);U.postData(l,D);return U.pageRequestPromise};
JV5.prototype.requestDataForServiceEndpoint=function(l,D){var U=Ll8(this);U.requestDataForServiceEndpoint(l,D);return U.pageRequestPromise};
var Ll8=function(l){var D=l.buildNetworkRequest_();l.pendingRequests_.add(D);var U=function(){l.pendingRequests_.delete(D)};
D.pageRequestPromise.then(U,U);return D},qI5=function(l){var D=new av;
this.JSC$13295_networkService_=l;this.JSC$13295_taskManager_=D;this.JSC$13295_networkManager_=new JV5(this.networkRequestFactory_.bind(this))};
_.W=qI5.prototype;_.W.networkRequestFactory_=function(){return new QdJ(this.JSC$13295_networkService_,new _.cN(this.JSC$13295_taskManager_))};
_.W.reset=function(){this.JSC$13295_taskManager_.reset();this.JSC$13295_networkManager_.reset()};
_.W.start=function(){this.JSC$13295_taskManager_.start()};
_.W.pause=function(){this.JSC$13295_taskManager_.pause()};
_.W.getTaskManager=function(){return this.JSC$13295_taskManager_};
_.W.getNetworkManager=function(){return this.JSC$13295_networkManager_};
var w9q=null,fk5=[],Xg=0,k3=0,S$=null,KZ=function(l){this.token=l};
KZ.getInstance=function(){var l;return _.P(function(D){if(D.nextAddress==1)return D.yield(_.Qo(),2);l=D.yieldResult;if(!l)return D.return();KZ.instance||(KZ.instance=new KZ(l));return D.return(KZ.instance)})};
var YVJ=function(l){var D;return _.P(function(U){if(U.nextAddress==1)return U.yield(Thr(l.token),2);D=U.yieldResult;return U.return(D.clear("resource-manifest-assets"))})},d4=function(l){this.token=l};
d4.getInstance=function(){var l;return _.P(function(D){if(D.nextAddress==1)return D.yield(_.Qo(),2);l=D.yieldResult;if(!l)return D.return();d4.instance||(d4.instance=new d4(l));return D.return(d4.instance)})};
var Ik8=function(l){var D;return _.P(function(U){if(U.nextAddress==1)return U.yield(Thr(l.token),2);D=U.yieldResult;return U.yield(D.clear("auth"),0)})},MLT=!1,cs=null,h02=void 0,L88=!1,RVJ=function(l){_.D9.call(this,l)};
_.Z(RVJ,_.rs7);var JSH=function(){var l=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return l?parseInt(l[1],10):0},Znw=function(l){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+l)!=-1||document.currentScript.src.indexOf("&"+l)!=-1)},eVW=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},ZEv=function(l){l.length?mfJ(l.shift(),function(){ZEv(l)}):q4H()},m9$=function(l){return"chrome-extension://"+l+"/cast_sender.js"},mfJ=function(l,
D,U){var n=document.createElement("script");
n.onerror=D;U&&(n.onload=U);_.BY(n,_.ws(l));(document.head||document.documentElement).appendChild(n)},aWH=function(){var l=JSH(),D=[];
if(l>1){var U=l-1;D.push("//www.gstatic.com/eureka/clank/"+l+"/cast_sender.js");D.push("//www.gstatic.com/eureka/clank/"+U+"/cast_sender.js")}return D},q4H=function(){var l=eVW();
l&&l(!1,"No cast extension found")},RF8=function(){if(tL$){var l=2,D=eVW(),U=function(){l--;
l==0&&D&&D(!0)};
window.__onGCastApiAvailable=U;mfJ("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",q4H,U)}},LC5=function(){RF8();
var l=aWH();l.push("//www.gstatic.com/eureka/clank/cast_sender.js");ZEv(l)},Ma5=function(){RF8();
var l=aWH();l.push.apply(l,_.zz(eFW.map(m9$)));l.push("//www.gstatic.com/eureka/clank/cast_sender.js");ZEv(l)},tL$=Znw("loadCastFramework")||Znw("loadCastApplicationFramework"),eFW=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var XzJ=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(XzJ,_.Bh);var SI2=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(SI2,_.Bh);var kL$=function(){var l=new SI2;return _.SY(l,1,3)};var tN=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(tN,_.Bh);var CI2=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(CI2,_.Bh);var df8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(df8,_.Bh);df8.prototype.getToken=function(){return _.Zo(this,1)};
df8.prototype.setToken=function(l){return _.jt(this,1,l)};
var WrJ=function(l){return _.H2(l,3,_.Zv,_.vE())},BNT=function(l){return _.H2(l,6,_.Zv,_.vE())};var XM=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(XM,_.Bh);XM.prototype.getToken=function(){return _.MZ(this,df8,2)};
XM.prototype.setToken=function(l){return _.al(this,2,l)};
XM.prototype.getName=function(){return _.Zo(this,6)};
var Klr=_.eD(XM);var cVH=function(l,D,U){this.requestMessage=l;this.methodDescriptor=D;this.metadata=U};
cVH.prototype.getMetadata=function(){return this.metadata};var pzJ=function(l,D){D=D===void 0?{}:D;this.responseMessage=l;this.metadata=D;this.status=null};
pzJ.prototype.getMetadata=function(){return this.metadata};
pzJ.prototype.getStatus=function(){return this.status};var ST=function(l,D,U,n,y){this.name=l;this.methodType="unary";this.requestType=D;this.responseType=U;this.requestSerializeFn=n;this.responseDeserializeFn=y},xfJ=function(l,D,U){U=U===void 0?{}:U;
return new cVH(D,l,U)};
ST.prototype.getName=function(){return this.name};var k6=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(k6,_.Bh);k6.prototype.getHeader=function(){return _.MZ(this,tN,1)};
k6.prototype.setHeader=function(l){return _.al(this,1,l)};
k6.prototype.hasHeader=function(){return _.Pm(this,tN,1)};var jd$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(jd$,_.Bh);var Fl$=new ST("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",k6,jd$,function(l){return l.serialize()},_.eD(jd$));var dz=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(dz,_.Bh);dz.prototype.getHeader=function(){return _.MZ(this,tN,1)};
dz.prototype.setHeader=function(l){return _.al(this,1,l)};
dz.prototype.hasHeader=function(){return _.Pm(this,tN,1)};var oAP=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(oAP,_.Bh);var wzH=new ST("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",dz,oAP,function(l){return l.serialize()},_.eD(oAP));var K8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(K8,_.Bh);K8.prototype.getHeader=function(){return _.MZ(this,tN,1)};
K8.prototype.setHeader=function(l){return _.al(this,1,l)};
K8.prototype.hasHeader=function(){return _.Pm(this,tN,1)};var rV5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(rV5,_.Bh);rV5.prototype.getLink=function(){return _.MZ(this,XM,1)};var zVw=new ST("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",K8,rV5,function(l){return l.serialize()},_.eD(rV5));var cB=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(cB,_.Bh);cB.prototype.getHeader=function(){return _.MZ(this,tN,1)};
cB.prototype.setHeader=function(l){return _.al(this,1,l)};
cB.prototype.hasHeader=function(){return _.Pm(this,tN,1)};var fW8=new ST("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",cB,XM,function(l){return l.serialize()},Klr);var $fr=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z($fr,_.Bh);var N7J=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(N7J,_.Bh);N7J.prototype.getUrl=function(){return _.Zo(this,2)};
N7J.prototype.setUrl=function(l){return _.jt(this,2,l)};var sdr=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(sdr,_.Bh);var EA$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(EA$,_.Bh);var T7T=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(T7T,_.Bh);var RdT=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(RdT,_.Bh);var qE$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(qE$,_.Bh);var IWv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(IWv,_.Bh);var dJW=_.eD(IWv);var HnH=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(HnH,_.Bh);var YIv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(YIv,_.Bh);_.W=YIv.prototype;_.W.getHeader=function(){return _.MZ(this,tN,1)};
_.W.setHeader=function(l){return _.al(this,1,l)};
_.W.hasHeader=function(){return _.Pm(this,tN,1)};
_.W.getCompletionUrl=function(){return _.Zo(this,6)};
_.W.getDeviceId=function(){return _.Zo(this,11)};var OnP=new ST("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",YIv,IWv,function(l){return l.serialize()},dJW);var VL8=new Set(["SAPISIDHASH","APISIDHASH"]);var ii$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(ii$,_.Bh);ii$.prototype.getMessage=function(){return _.Zo(this,2)};
var leJ=_.eD(ii$);var UT5=function(l,D){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=l.nodeReadableStream;this.grpcResponseDeserializeFn=D;this.xhr=l.xhr;this.xhrNodeReadableStream&&DT8(this)},hRq=function(l,D){var U=new nsT;
_.Gt(l.xhr,"complete",function(){if(l.xhr.isSuccess()){var n=l.xhr.getResponseText();var y;if(y=D)y=l.xhr,y.JSC$9877_xhr_&&y.isComplete()?(y=y.JSC$9877_xhr_.getResponseHeader("Content-Type"),y=y===null?void 0:y):y=void 0,y=y==="text/plain";if(y){if(!atob)throw Error("ik");n=atob(n)}try{var A=l.grpcResponseDeserializeFn(n)}catch(h){yZJ(l,sLT(new _.pb(13,"Error when deserializing response data; error: "+h+(", response: "+n)),U));return}n=_.hgB(l.xhr.getStatus());AZ2(l,WR$(l));n===0?BDq(l,A):yZJ(l,sLT(new _.pb(n,
"Xhr succeeded but the status code is not 200"),U))}else{n=l.xhr.getResponseText();A=WR$(l);if(n){var C=C3H(l,n);n=C.code;y=C.details;C=C.metadata}else n=2,y="Rpc failed due to xhr error. uri: "+String(l.xhr.JSC$9877_lastUri_)+", error code: "+(l.xhr.JSC$9877_lastErrorCode_+", error: ")+l.xhr.getLastError(),C=A;AZ2(l,A);yZJ(l,sLT(new _.pb(n,y,C),U))}})},DT8=function(l){l.xhrNodeReadableStream.on("data",function(D){if("1"in D){var U=D["1"];
try{var n=l.grpcResponseDeserializeFn(U)}catch(y){yZJ(l,new _.pb(13,"Error when deserializing response data; error: "+y+(", response: "+U)))}n&&BDq(l,n)}if("2"in D)for(D=C3H(l,D["2"]),U=0;U<l.onStatusCallbacks.length;U++)l.onStatusCallbacks[U](D)});
l.xhrNodeReadableStream.on("end",function(){AZ2(l,WR$(l));for(var D=0;D<l.onEndCallbacks.length;D++)l.onEndCallbacks[D]()});
l.xhrNodeReadableStream.on("error",function(){if(l.onErrorCallbacks.length!==0){var D=l.xhr.JSC$9877_lastErrorCode_;D!==0||l.xhr.isSuccess()||(D=6);var U=-1;switch(D){case 0:var n=2;break;case 7:n=10;break;case 8:n=4;break;case 6:U=l.xhr.getStatus();n=_.hgB(U);break;default:n=14}AZ2(l,WR$(l));D=_.$1g(D)+", error: "+l.xhr.getLastError();U!==-1&&(D+=", http status code: "+U);yZJ(l,new _.pb(n,D))}})},WR$=function(l){var D={},U=UH8(l.xhr);
Object.keys(U).forEach(function(n){D[n]=U[n]});
return D},C3H=function(l,D){var U=2,n={};
try{var y=leJ(D);U=_.Qp(y,1);var A=y.getMessage();_.uO(y,YaW,3,_.vE()).length&&(n["grpc-web-status-details-bin"]=D)}catch(C){l.xhr&&l.xhr.getStatus()===404?(U=5,A="Not Found: "+String(l.xhr.JSC$9877_lastUri_)):(U=14,A="Unable to parse RpcStatus: "+C)}return{code:U,details:A,metadata:n}};
UT5.prototype.on=function(l,D){l==="data"?this.onDataCallbacks.push(D):l==="metadata"?this.onMetadataCallbacks.push(D):l==="status"?this.onStatusCallbacks.push(D):l==="end"?this.onEndCallbacks.push(D):l==="error"&&this.onErrorCallbacks.push(D);return this};
var P3v=function(l,D){D=l.indexOf(D);D>-1&&l.splice(D,1)};
UT5.prototype.removeListener=function(l,D){l==="data"?P3v(this.onDataCallbacks,D):l==="metadata"?P3v(this.onMetadataCallbacks,D):l==="status"?P3v(this.onStatusCallbacks,D):l==="end"?P3v(this.onEndCallbacks,D):l==="error"&&P3v(this.onErrorCallbacks,D);return this};
UT5.prototype.cancel=function(){this.xhr.abort()};
var BDq=function(l,D){for(var U=0;U<l.onDataCallbacks.length;U++)l.onDataCallbacks[U](D)},AZ2=function(l,D){for(var U=0;U<l.onMetadataCallbacks.length;U++)l.onMetadataCallbacks[U](D)},yZJ=function(l,D){for(var U=0;U<l.onErrorCallbacks.length;U++)l.onErrorCallbacks[U](D)},nsT=function(){var l=Error.call(this);
this.message=l.message;"stack"in l&&(this.stack=l.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(nsT,Error);var biW=function(l){this.JSC$19736_worker_=l.worker||null;this.JSC$19736_streamBinaryChunks_=l.streamBinaryChunks||!1;this.JSC$19736_credentialsMode_=void 0};
_.HI(biW,_.btB);biW.prototype.createInstance=function(){var l=new p8(this.JSC$19736_worker_,this.JSC$19736_streamBinaryChunks_);this.JSC$19736_credentialsMode_&&l.setCredentialsMode(this.JSC$19736_credentialsMode_);return l};
biW.prototype.setCredentialsMode=function(l){this.JSC$19736_credentialsMode_=l};
var p8=function(l,D){_.Xa.call(this);this.JSC$19740_worker_=l;this.JSC$19740_streamBinaryChunks_=D;this.JSC$19740_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19740_responseHeaders_=null;this.JSC$19740_method_="GET";this.JSC$19740_url_="";this.inProgress_=!1;this.JSC$19740_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.HI(p8,_.Xa);p8.prototype.open=function(l,D){if(this.readyState!=0)throw this.abort(),Error("jk");this.JSC$19740_method_=l;this.JSC$19740_url_=D;this.readyState=1;gsJ(this)};
p8.prototype.send=function(l){if(this.readyState!=1)throw this.abort(),Error("kk");if(this.abortController_.signal.aborted)throw this.abort(),Error("lk");this.inProgress_=!0;var D={headers:this.requestHeaders_,method:this.JSC$19740_method_,credentials:this.JSC$19740_credentialsMode_,cache:void 0,signal:this.abortController_.signal};l&&(D.body=l);(this.JSC$19740_worker_||_.nC).fetch(new Request(this.JSC$19740_url_,D)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
p8.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,uH8(this));this.readyState=0};
p8.prototype.handleResponse_=function(l){if(this.inProgress_&&(this.fetchResponse_=l,this.JSC$19740_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19740_responseHeaders_=l.headers,this.readyState=2,gsJ(this)),this.inProgress_&&(this.readyState=3,gsJ(this),this.inProgress_)))if(this.responseType==="arraybuffer")l.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.nC.ReadableStream!==
"undefined"&&"body"in l){this.currentReader_=l.body.getReader();if(this.JSC$19740_streamBinaryChunks_){if(this.responseType)throw Error("mk");this.response=[]}else this.response=this.responseText="",this.JSC$19740_textDecoder_=new TextDecoder;vsq(this)}else l.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var vsq=function(l){l.currentReader_.read().then(l.handleDataFromStream_.bind(l)).catch(l.handleSendFailure_.bind(l))};
p8.prototype.handleDataFromStream_=function(l){if(this.inProgress_){if(this.JSC$19740_streamBinaryChunks_&&l.value)this.response.push(l.value);else if(!this.JSC$19740_streamBinaryChunks_){var D=l.value?l.value:new Uint8Array(0);if(D=this.JSC$19740_textDecoder_.decode(D,{stream:!l.done}))this.response=this.responseText+=D}l.done?uH8(this):gsJ(this);this.readyState==3&&vsq(this)}};
p8.prototype.handleResponseText_=function(l){this.inProgress_&&(this.response=this.responseText=l,uH8(this))};
p8.prototype.handleResponseArrayBuffer_=function(l){this.inProgress_&&(this.response=l,uH8(this))};
p8.prototype.handleSendFailure_=function(){this.inProgress_&&uH8(this)};
var uH8=function(l){l.readyState=4;l.fetchResponse_=null;l.currentReader_=null;l.JSC$19740_textDecoder_=null;gsJ(l)};
p8.prototype.setRequestHeader=function(l,D){this.requestHeaders_.append(l,D)};
p8.prototype.getResponseHeader=function(l){return this.JSC$19740_responseHeaders_?this.JSC$19740_responseHeaders_.get(l.toLowerCase())||"":""};
p8.prototype.getAllResponseHeaders=function(){if(!this.JSC$19740_responseHeaders_)return"";for(var l=[],D=this.JSC$19740_responseHeaders_.entries(),U=D.next();!U.done;)U=U.value,l.push(U[0]+": "+U[1]),U=D.next();return l.join("\r\n")};
p8.prototype.setCredentialsMode=function(l){this.JSC$19740_credentialsMode_=l};
var gsJ=function(l){l.onreadystatechange&&l.onreadystatechange.call(l)};
Object.defineProperty(p8.prototype,"withCredentials",{get:function(){return this.JSC$19740_credentialsMode_==="include"},
set:function(l){this.setCredentialsMode(l?"include":"same-origin")}});var Qx8=function(l){var D="";_.we.forEach(l,function(U,n){D+=n;D+=":";D+=U;D+="\r\n"});
return D},G2v=function(l,D,U){if(_.we.isEmpty(U))return l;
U=Qx8(U);if(typeof l==="string")return _.sF(l,_.yy(D),U);_.ny(l,D,U);return l};var JZH=function(){this.isInputValid_=!0;this.JSC$19746_streamPos_=0;this.leftoverInput_=""};
JZH.prototype.isInputValid=function(){return this.isInputValid_};
JZH.prototype.decode=function(l){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("nk`"+this.JSC$19746_streamPos_+"`stream already broken`"+l);this.leftoverInput_+=l;l=Math.floor(this.leftoverInput_.length/4);if(l==0)return null;try{var D=_.w1B(this.leftoverInput_.slice(0,l*4))}catch(U){throw D=this.leftoverInput_,l=U.message,this.isInputValid_=!1,Error("nk`"+this.JSC$19746_streamPos_+"`"+l+"`"+D);}this.JSC$19746_streamPos_+=l*4;this.leftoverInput_=this.leftoverInput_.slice(l*4);return D};var IV5=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19749_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
IV5.prototype.isInputValid=function(){return this.state_!=3};
var LR8=function(l,D,U,n){l.state_=3;l.errorMessage_="The stream is broken @"+l.JSC$19749_streamPos_+"/"+U+". Error: "+n+". With input:\n"+D;throw Error(l.errorMessage_);};
IV5.prototype.acceptsBinaryInput=function(){return!0};
IV5.prototype.parse=function(l){function D(b){b&128&&LR8(A,C,h,"invalid tag");(b&7)!=2&&LR8(A,C,h,"invalid wire type");A.tag_=b>>>3;A.tag_!=1&&A.tag_!=2&&A.tag_!=15&&LR8(A,C,h,"unexpected tag");A.state_=1;A.length_=0;A.countLengthBytes_=0}
function U(b){A.countLengthBytes_++;A.countLengthBytes_==5&&b&240&&LR8(A,C,h,"message length too long");A.length_|=(b&127)<<(A.countLengthBytes_-1)*7;b&128||(A.state_=2,A.countMessageBytes_=0,typeof Uint8Array!=="undefined"?A.messageBuffer_=new Uint8Array(A.length_):A.messageBuffer_=Array(A.length_),A.length_==0&&y())}
function n(b){A.messageBuffer_[A.countMessageBytes_++]=b;A.countMessageBytes_==A.length_&&y()}
function y(){if(A.tag_<15){var b={};b[A.tag_]=A.messageBuffer_;A.result_.push(b)}A.state_=0}
for(var A=this,C=l instanceof Array?l:new Uint8Array(l),h=0;h<C.length;){switch(A.state_){case 3:LR8(A,C,h,"stream already broken");break;case 0:D(C[h]);break;case 1:U(C[h]);break;case 2:n(C[h]);break;default:throw Error("ok`"+A.state_);}A.JSC$19749_streamPos_++;h++}l=A.result_;A.result_=[];return l.length>0?l:null};var H0r=function(){this.errorMessage_=null;this.JSC$19752_streamPos_=0;this.base64Decoder_=new JZH;this.pbParser_=new IV5};
H0r.prototype.isInputValid=function(){return this.errorMessage_===null};
var qCH=function(l,D,U){l.errorMessage_="The stream is broken @"+l.JSC$19752_streamPos_+". Error: "+U+". With input:\n"+D;throw Error(l.errorMessage_);};
H0r.prototype.acceptsBinaryInput=function(){return!1};
H0r.prototype.parse=function(l){this.errorMessage_!==null&&qCH(this,l,"stream already broken");var D=null;try{var U=this.base64Decoder_.decode(l);D=U===null?null:this.pbParser_.parse(U)}catch(n){qCH(this,l,n.message)}this.JSC$19752_streamPos_+=l.length;return D};var Tf$=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19755_streamPos_=0;this.result_=[];this.statusParsed_=!1};
Tf$.prototype.isInputValid=function(){return this.errorMessage_===null};
Tf$.prototype.acceptsBinaryInput=function(){return!1};
Tf$.prototype.parse=function(l){function D(b){A.state_=6;A.errorMessage_="The stream is broken @"+A.JSC$19755_streamPos_+"/"+C+". Error: "+b+". With input:\n";throw Error(A.errorMessage_);}
function U(){A.jsonStreamParser_=new _.G2({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function n(b){if(b)for(var u=0;u<b.length;u++){var Q={};Q[1]=b[u];A.result_.push(Q)}}
function y(b){if(b){(A.statusParsed_||b.length>1)&&D("extra status: "+b);A.statusParsed_=!0;var u={};u[2]=b[0];A.result_.push(u)}}
for(var A=this,C=0;C<l.length;){var h;if(h=A.state_!==2){a:{for(;C<l.length;){if(!_.Qi(l[C])){h=!0;break a}C++;A.JSC$19755_streamPos_++}h=!1}h=!h}if(h)return null;switch(A.state_){case 6:D("stream already broken");break;case 0:l[C]==="["?(A.state_=1,C++,A.JSC$19755_streamPos_++):D("unexpected input token");break;case 1:l[C]==="["?(A.state_=2,U()):l[C]===","||l.slice(C,C+5)=="null,"?A.state_=3:l[C]==="]"?(A.state_=5,C++,A.JSC$19755_streamPos_++):D("unexpected input token");break;case 2:h=A.jsonStreamParser_.parse(l.substring(C));
n(h);A.jsonStreamParser_.done()?(A.state_=3,h=A.jsonStreamParser_.JSC$11560_buffer_,A.JSC$19755_streamPos_+=l.length-C-h.length,l=h,C=0):(A.JSC$19755_streamPos_+=l.length-C,C=l.length);break;case 3:l[C]===","||l.slice(C,C+5)=="null,"?(A.state_=4,U(),A.jsonStreamParser_.parse("["),C+=l[C]===","?1:5,A.JSC$19755_streamPos_++):l[C]==="]"&&(A.state_=5,C++,A.JSC$19755_streamPos_++);break;case 4:h=A.jsonStreamParser_.parse(l.substring(C));y(h);A.jsonStreamParser_.done()?(A.state_=5,h=A.jsonStreamParser_.JSC$11560_buffer_,
A.JSC$19755_streamPos_+=l.length-C-h.length,l=h,C=0):(A.JSC$19755_streamPos_+=l.length-C,C=l.length);break;case 5:D("extra input after stream end")}}return A.result_.length>0?(l=A.result_,A.result_=[],l):null};var Mfw=function(l){this.JSC$19758_xhr_=l;this.JSC$19758_parser_=null;this.status_=this.JSC$19758_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19758_textDecoder_=null;this.JSC$19758_eventHandler_=new _.ZB(this);this.JSC$19758_eventHandler_.listen(this.JSC$19758_xhr_,"readystatechange",this.JSC$19760_readyStateChangeHandler_)},x6=function(l,D){l.status_!=D&&(l.status_=D,l.statusHandler_&&l.statusHandler_())},RRH=function(l){l.JSC$19758_eventHandler_.removeAll();
if(l.JSC$19758_xhr_){var D=l.JSC$19758_xhr_;l.JSC$19758_xhr_=null;D.abort();D.dispose()}};
Mfw.prototype.getStatus=function(){return this.status_};
Mfw.prototype.JSC$19760_readyStateChangeHandler_=function(l){l=l.target;try{if(l==this.JSC$19758_xhr_)a:{var D=_.Fa(this.JSC$19758_xhr_),U=this.JSC$19758_xhr_.JSC$9877_lastErrorCode_,n=this.JSC$19758_xhr_.getStatus(),y=this.JSC$19758_xhr_.getResponseText();l=[];if(this.JSC$19758_xhr_.getResponse()instanceof Array){var A=this.JSC$19758_xhr_.getResponse();A.length>0&&A[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,l=A)}if(!(D<3||D==3&&!y&&l.length==0))if(n=n==200||n==206,D==4&&(U==8?x6(this,
7):U==7?x6(this,8):n||x6(this,3)),this.JSC$19758_parser_||(this.JSC$19758_parser_=Ym$(this.JSC$19758_xhr_),this.JSC$19758_parser_==null&&x6(this,5)),this.status_>2)RRH(this);else{if(l.length>this.JSC$19758_pos_){var C=l.length;U=[];try{if(this.JSC$19758_parser_.acceptsBinaryInput())for(var h=0;h<C;h++){var b=this.JSC$19758_parser_.parse(Array.from(l[h]));b&&(U=U.concat(b))}else{b="";if(!this.JSC$19758_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("pk");this.JSC$19758_textDecoder_=
new TextDecoder}for(h=0;h<C;h++)b+=this.JSC$19758_textDecoder_.decode(l[h],{stream:D==4&&h==C-1});U=this.JSC$19758_parser_.parse(b)}l.splice(0,C);U&&this.dataHandler_(U)}catch(Q){x6(this,5);RRH(this);break a}}else if(y.length>this.JSC$19758_pos_){h=y.slice(this.JSC$19758_pos_);this.JSC$19758_pos_=y.length;try{var u=this.JSC$19758_parser_.parse(h);u!=null&&this.dataHandler_&&this.dataHandler_(u)}catch(Q){x6(this,5);RRH(this);break a}}D==4?(y.length!=0||this.hasStreamingResponseData_?x6(this,2):x6(this,
4),RRH(this)):x6(this,1)}}}catch(Q){x6(this,6),RRH(this)}};var Zi$=function(l){l=this.xhrReader_=l;var D=(0,_.jU)(this.onData_,this);l.dataHandler_=D;l=this.xhrReader_;D=(0,_.jU)(this.onStatusChange_,this);l.statusHandler_=D;this.JSC$19762_callbackMap_={};this.callbackOnceMap_={}};
_.W=Zi$.prototype;_.W.on=function(l,D){var U=this.JSC$19762_callbackMap_[l];U||(U=[],this.JSC$19762_callbackMap_[l]=U);U.push(D);return this};
_.W.addListener=function(l,D){this.on(l,D);return this};
_.W.removeListener=function(l,D){var U=this.JSC$19762_callbackMap_[l];U&&_.fC(U,D);(l=this.callbackOnceMap_[l])&&_.fC(l,D);return this};
_.W.once=function(l,D){var U=this.callbackOnceMap_[l];U||(U=[],this.callbackOnceMap_[l]=U);U.push(D);return this};
_.W.onData_=function(l){var D=this.JSC$19762_callbackMap_.data;D&&eR2(l,D);(D=this.callbackOnceMap_.data)&&eR2(l,D);this.callbackOnceMap_.data=[]};
var eR2=function(l,D){for(var U={},n=0;n<l.length;U={message$jscomp$1008:void 0},n++)U.message$jscomp$1008=l[n],D.forEach(function(y){return function(A){try{A(y.message$jscomp$1008)}catch(C){}}}(U))};
Zi$.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:mT$(this,"readable");break;case 5:case 6:case 4:case 7:case 3:mT$(this,"error");break;case 8:mT$(this,"close");break;case 2:mT$(this,"end")}};
var mT$=function(l,D){var U=l.JSC$19762_callbackMap_[D];U&&U.forEach(function(n){try{n()}catch(y){}});
(U=l.callbackOnceMap_[D])&&U.forEach(function(n){n()});
l.callbackOnceMap_[D]=[]};var aeJ=function(){var l={format:"jspb"};l=l===void 0?{}:l;this.suppressCorsPreflight=l.suppressCorsPreflight||_.UG("suppressCorsPreflight",l)||!1;this.withCredentials=l.withCredentials||_.UG("withCredentials",l)||!1;this.streamInterceptors=l.streamInterceptors||[];this.unaryInterceptors=l.unaryInterceptors||[];this.workerScope=l.workerScope;this.chunkedServerStreaming=l.useFetchDownloadStreams||!1},SCW=function(l,D,U,n,y,A){A=A===void 0?{}:A;
var C=D.substring(0,D.length-y.name.length),h,b=(h=A)==null?void 0:h.signal;return tfw(function(u){return new Promise(function(Q,G){if(b==null?0:b.aborted){var J=new _.pb(1,"Aborted");J.cause=b.reason;G(J)}else{var L={},R=XyW(l,u,C);R.on("error",function(a){return void G(a)});
R.on("metadata",function(a){L=a});
R.on("data",function(a){var S=L;S=S===void 0?{}:S;Q(new pzJ(a,S))});
b&&b.addEventListener("abort",function(){R.cancel();var a=new _.pb(1,"Aborted");a.cause=b.reason;G(a)})}})},l.unaryInterceptors).call(l,xfJ(y,U,n)).then(function(u){return u.responseMessage})},k25=function(l,D,U,n,y,A){A=A===void 0?{}:A;
return SCW(l,D,U,n,y,A)};
aeJ.prototype.serverStreaming=function(l,D,U,n){var y=this,A=l.substring(0,l.length-n.name.length);return dT$(function(C){var h=C.methodDescriptor,b=C.getMetadata(),u=KR$(y,!1);b=cZJ(y,b,u,A+h.getName());var Q=pyP(u,h.responseDeserializeFn,!0);C=h.requestSerializeFn(C.requestMessage);u.send(b,"POST",C);return Q},this.streamInterceptors).call(this,xfJ(n,D,U))};
var XyW=function(l,D,U){var n=D.methodDescriptor,y=D.getMetadata(),A=KR$(l,!0);l=cZJ(l,y,A,U+n.getName());U=pyP(A,n.responseDeserializeFn,!1);hRq(U,y["X-Goog-Encode-Response-If-Executable"]==="base64");D=n.requestSerializeFn(D.requestMessage);A.send(l,"POST",D);return U},KR$=function(l,D){D=l.chunkedServerStreaming&&!D;
return l.workerScope||D?new _.je(new biW({worker:l.workerScope,streamBinaryChunks:D})):new _.je},cZJ=function(l,D,U,n){D["Content-Type"]="application/json+protobuf";
D["X-User-Agent"]="grpc-web-javascript/0.1";var y=D.Authorization;if(y&&VL8.has(y.split(" ")[0])||l.withCredentials)U.JSC$9877_withCredentials_=!0;if(l.suppressCorsPreflight)n=G2v(n,"$httpHeaders",D);else for(l=_.B(Object.keys(D)),y=l.next();!y.done;y=l.next())y=y.value,U.headers.set(y,D[y]);return n},pyP=function(l,D,U){if(U){U=new Mfw(l);
var n=new Zi$(U)}return new UT5({xhr:l,nodeReadableStream:n},D)},dT$=function(l,D){return D.reduce(function(U,n){return function(y){return n.intercept(y,U)}},l)},tfw=function(l,D){return D.reduce(function(U,n){return function(y){return n.intercept(y,U)}},l)};var xTH=function(l){this.client_=new aeJ;this.hostname_=l==void 0?l:l.replace(/\/+$/,"")};
_.W=xTH.prototype;_.W.JSC$19780_depositGoogleCredential=function(l,D,U){return k25(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",l,D||{},wzH,U)};
_.W.deleteLink=function(l,D,U){return k25(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",l,D||{},Fl$,U)};
_.W.JSC$19780_finishOAuth=function(l,D,U){return k25(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",l,D||{},zVw,U)};
_.W.getLink=function(l,D,U){return k25(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",l,D||{},fW8,U)};
_.W.startLinkingSession=function(l,D,U){return k25(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",l,D||{},OnP,U)};var jxJ=[0,_.sy,1,spW,[0,_.Hm,[0,_.Tl,-1]],[0,NCP],[0,_.lW,-1],[0,NCP]];var FRw=function(){this.storage=new Map},wyJ=function(l,D,U,n,y){if(!l.storage.has(D))return null;
l=_.B(l.storage.get(D));for(D=l.next();!D.done;D=l.next())if(D=D.value,!y||D.linkName===y)if(U&&D.scopes&&osr(D.scopes,U)||n&&D.capabilities&&osr(D.capabilities,n))return D;return null},rZJ=function(l,D,U){if(!U)l.storage.delete(D);
else if(l.storage.has(D)){var n=l.storage.get(D).filter(function(y){return y.linkName!==U});
n.length>0?l.storage.set(D,n):l.storage.delete(D)}},osr=function(l,D){D=_.B(D);
for(var U=D.next();!U.done;U=D.next())if(!l.has(U.value))return!1;return!0};var zR8=function(){var l=_.H3("LINK_GAL_DOMAIN");this.alsDomain1p=_.H3("LINK_GAL_DOMAIN");this.alsDomain3p=l;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},feT=function(l,D){l.apiKey=D;
return l};
zR8.prototype.build=function(){var l={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("qk");l.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("rk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("sk");l.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(l.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)l.apiKey=
this.apiKey,l.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("tk");l.oauthToken=this.oauthToken;l.alsDomain=this.alsDomain3p}l.clientXd3=this.clientXd3;l.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(l.authUser=this.authUser);this.bucket!==void 0&&(l.bucket=this.bucket);this.completionUrl!==void 0&&(l.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(l.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(l.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(l.locale=this.locale);l.loggerType=this.loggerType;l.clientEnvironment=this.clientEnvironment;l.colorScheme=this.colorScheme;l.showCloseOption=this.showCloseOption;return l};var x3=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(x3,_.Bh);var $TT=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z($TT,_.Bh);var NDJ=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(NDJ,_.Bh);var Fg=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Fg,_.Bh);var sxH=function(l){return _.eY(l,1)};var Es2=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Es2,_.Bh);var nv8=_.eD(Es2),j$=[1,2,3,4,5];var iqP=function(l){try{return nv8(l)}catch(D){return null}},TDv=function(){},lXH=function(l,D){switch(_.QJ(D,j$)){case 4:return(D=_.tU(D,NDJ,4,j$))&&l.logStateTransition(_.eY(D,1)),!0;
case 5:return(D=_.tU(D,$TT,5,j$))&&l.logInternalEvent(_.eY(D,1)),!0}return!1},yiP=function(l){switch(l){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Tv(l)}};var O0r=function(l,D){var U=this;this.validator=l;this.messageListener=D;this.dismissCallback=function(){Ie5(U,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19809_receiveMessage=function(n){n.type==="message"&&(n=n.event_,n!==null&&(new URL(U.iframe.src)).origin===n.origin&&U.validator(n.data,n.origin)&&!U.messageListener(n.data)&&(U.JSC$19809_resolveCb!==void 0&&U.JSC$19809_resolveCb(n.data),Hi5(U)))}},UJw=function(l,D,U){l.uiHandler!==void 0&&Ie5(l,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(n,y){l.JSC$19809_resolveCb=n;l.JSC$19809_rejectCb=y;l.iframe=document.createElement("iframe");_.i8(l.iframe,D);l.uiHandler=U.displayContent(l.iframe,l.dismissCallback);_.Gt(window,"message",l.JSC$19809_receiveMessage,!1,l)})},Ie5=function(l,D){l.JSC$19809_rejectCb!==void 0&&l.JSC$19809_rejectCb(D);
Hi5(l)},Hi5=function(l){l.uiHandler!==void 0&&l.uiHandler.hideContent();
_.tX(window,"message",l.JSC$19809_receiveMessage,!1,l);l.JSC$19809_resolveCb=void 0;l.JSC$19809_rejectCb=void 0;l.uiHandler=void 0;l.iframe=void 0};var YC5=function(l){if(l===2){var D;l=((D=window)==null?0:D.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return l},DJ5=function(l){l=YC5(l);
switch(l){case 0:return"light";case 1:return"dark";default:_.Tv(l)}};var VZr=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Oi$=function(l,D){this.JSC$19821_linkingSession=l;this.noticeConfig=D;this.displayInfoMap=new Map;var U=new Map;if(_.Pm(this.JSC$19821_linkingSession,sdr,7))for(l=_.MZ(this.JSC$19821_linkingSession,sdr,7),l=_.uO(l,N7J,1,_.vE()),l=_.B(l),D=l.next();!D.done;D=l.next())D=D.value,U.set(_.eY(D,1),_.aJc(_.MZ(D,_.NKG,3)));if(U.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){D=this.noticeConfig.enabledDataUsageNoticeUis;l=D.has(0)?U.get(1):void 0;D=D.has(1)?U.get(2):void 0;U=l!==void 0&&D!==void 0?U.get(3):void 0;var n=this.noticeConfig.nestedOrigins;var y=new Es2;var A=new x3;y=_.tk(y,2,j$,A);A=new Es2;var C=new x3;A=_.tk(A,3,j$,C);C=[];l!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:l,lastEvent:y,nestedOrigins:n}]),C.push({trustedUrl:l,lastEvent:y,nestedOrigins:n}));D!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:D,lastEvent:A,nestedOrigins:n}]),C.push({trustedUrl:D,lastEvent:A,nestedOrigins:n}));U!==void 0?this.displayInfoMap.set(3,[{trustedUrl:U,lastEvent:A,nestedOrigins:n}]):this.displayInfoMap.set(3,C)}};var Vfr=function(l){var D=new FRw;this.galService=l;this.galCache=D};
Vfr.prototype.getLink=function(l){var D=l.serviceId;var U=l.scopes;var n=l.capabilities;var y=l.linkName;var A=this,C;return _.P(function(h){if(n!==void 0&&U!==void 0)throw Error("uk");C=wyJ(A.galCache,D,U,n,y);return C!==null?h.return(C):h.return(A.galService.getLink({serviceId:D,sessionId:Math.floor(Math.random()*2147483648),scopes:U,capabilities:n,linkName:y}).then(function(b){b=hdv(b);var u=A.galCache;u.storage.has(D)?u.storage.get(D).push(b):u.storage.set(D,[b]);return b}))})};
Vfr.prototype.deleteLink=function(l,D,U){var n=this;return _.P(function(y){rZJ(n.galCache,l,U);return y.return(n.galService.deleteLink({serviceId:l,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:D,linkName:U}).then(function(){return!0}))})};var lxq=function(l,D){var U=this;this.validator=l;this.msgHandler=D;this.closedPopupTimeout=this.JSC$19843_rejectCb=this.JSC$19843_resolveCb=this.popup=null;this.JSC$19843_receiveMessage=function(n){if(n!==null&&(n=n.event_,n.source===U.popup)){var y=n.data;if(U.validator(y,n.origin)){var A;(A=U.msgHandler)!=null&&A.call(U,y)||(U.JSC$19843_resolveCb!==null&&U.JSC$19843_resolveCb(y),i5J(U))}}}};
lxq.prototype.open=function(l,D){var U=this;this.popup!==null&&D$H(this);return new Promise(function(n,y){U.JSC$19843_resolveCb=n;U.JSC$19843_rejectCb=y;U.popup=_.DY(window,l,"",D);_.Gt(window,"message",U.JSC$19843_receiveMessage,!1,U);U$W(U)})};
var D$H=function(l,D){l.JSC$19843_rejectCb!==null&&l.JSC$19843_rejectCb(D);i5J(l)},i5J=function(l){l.closedPopupTimeout&&(l.closedPopupTimeout.cancel(),l.closedPopupTimeout=null);
l.popup&&l.popup.close();_.tX(window,"message",l.JSC$19843_receiveMessage,!1,l);l.popup=null;l.JSC$19843_resolveCb=null;l.JSC$19843_rejectCb=null},U$W=function(l){l.closedPopupTimeout=_.og1(100).then(function(){l.popup?l.popup.closed?n0$(l):U$W(l):D$H(l,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},n0$=function(l){l.closedPopupTimeout=_.og1(100).then(function(){D$H(l,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var yMJ=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),AM$=function(l,D,U,n,y,A,C,h,b,u){var Q=this;this.serviceId=l;this.sessionId=D;this.galService=U;this.oauthDetails=n;this.galLogger=y;this.interactionMode=A;this.redirectServiceUrl=C;this.consentLanguageKeys=h;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=u;this.started=!1;this.JSC$19849_dataValidator=function(G,
J){var L=yMJ.has(J);L||Q.redirectServiceUrl===void 0||(L=Q.redirectServiceUrl===J);return L?G.sentinel==="gdi":!1}};
AM$.prototype.complete=function(){var l=this,D;return _.P(function(U){if(l.interactionMode!==1)return U.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));D=Mq8.getRedirectStateFromUri();return D===null?U.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):U.return(W5v(l,D))})};
AM$.prototype.start=function(){var l=this,D;return _.P(function(U){if(l.started)return U.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Zo(l.oauthDetails,1))return U.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(l.interactionMode===1)return Mq8.setLocation(_.Zo(l.oauthDetails,1)),U.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));l.started=!0;l.galLogger.logStateTransition(5);
D=Mq8.getPostMessagePopup(l.JSC$19849_dataValidator);return U.return(D.open(_.Zo(l.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(n){l.started=!1;var y=l.galLogger;if((n==null?void 0:n.error)!==void 0)throw y.logInternalEvent(59),Error("vk");if((n==null?void 0:n.redirect_state)===void 0)throw y.logInternalEvent(131),Error("wk");return W5v(l,n.redirect_state)}).catch(function(n){l.started=
!1;
return n.errorCode!==void 0?{statusCode:n.errorCode,statusMessage:n.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var W5v=function(l,D){return _.P(function(U){return U.return(BAW(l.galService,{serviceId:l.serviceId,sessionId:l.sessionId,dynamicUrlParameters:l.dynamicUrlParameters,redirectState:D,consentLanguageKeys:l.consentLanguageKeys,partnerConfigMinReadTimestamp:l.partnerConfigMinReadTimestamp}).then(function(n){var y={statusCode:1,link:hdv(n.getLink())};yer(_.g6(n,3))!==void 0&&(y.callerState=yer(_.g6(n,3)));l.galLogger.logInternalEvent(134);return y}))})},Mq8={getPostMessagePopup:function(l){return new lxq(l)},
getRedirectStateFromUri:function(){var l=_.Dp(Mq8.getLocation()).fragment_;return(new _.bo(l)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(l){_.Jvo(window.location,_.Ng(l))},
createOAuthFlow:function(l,D){return new AM$(l.serviceId,l.sessionId,l.galService,D,l.galLogger,l.interactionMode,l.redirectServiceUrl,l.consentLanguageKeys,l.dynamicUrlParameters,l.partnerConfigMinReadTimestamp)}};var Cv$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Cv$,_.Bh);var hEJ=_.eD(Cv$);var Pv8=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),b5P=function(l,D,U,n,y,A,C,h,b){var u=this;this.serviceId=l;this.sessionId=D;this.galService=U;this.gsiWebFlowDetails=n;this.colorScheme=y;this.showCloseOption=A;this.galLogger=C;this.interactionMode=h;this.redirectServiceUrl=b;this.started=!1;this.JSC$19861_dataValidator=function(Q,G){var J=Pv8.has(G);J||u.redirectServiceUrl===
void 0||(J=u.redirectServiceUrl===G);return J?Q.sentinel==="gal":!1};
this.logEventProcessor=function(Q){return Q.result?(Q=iqP(Q.result))?lXH(u.galLogger,Q):!1:!1}};
b5P.prototype.complete=function(){var l=this,D,U;return _.P(function(n){if(l.interactionMode!==1)return n.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));D=ZqJ.getRedirectStateFromUri();if(D===void 0)return l.galLogger.JSC$19801_logErrorEvent(131),n.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return U=g0J(l,D),n.return(ud2(l,U))}catch(y){return n.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
b5P.prototype.start=function(){var l=this,D;return _.P(function(U){if(l.started)return U.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Zo(l.gsiWebFlowDetails,1))return U.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(l.interactionMode===1)return ZqJ.setLocation(v0v(l,_.Zo(l.gsiWebFlowDetails,1))),U.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
l.started=!0;D=ZqJ.getPostMessagePopup(l.JSC$19861_dataValidator,l.logEventProcessor);return U.return(D.open(v0v(l,_.Zo(l.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(n){l.started=!1;if((n==null?void 0:n.result)===void 0)throw l.galLogger.JSC$19801_logErrorEvent(131),Error("wk");n=g0J(l,n.result);return ud2(l,n)}).catch(function(n){l.started=!1;
return n.errorCode!==void 0?{statusCode:n.errorCode,statusMessage:n.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var v0v=function(l,D){l=["result_channel",l.interactionMode===1?"2":"1","color_scheme",DJ5(l.colorScheme),"show_close_option",l.showCloseOption];return Hpr(D,l)},ud2=function(l,D){if(D!==null&&_.Pm(D,Fg,2)){var U,n=D==null?void 0:(U=_.MZ(D,Fg,2))==null?void 0:_.eY(U,2);
n&&l.galLogger.JSC$19801_logErrorEvent(yiP(n));return sxH(_.MZ(D,Fg,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 l.galService.getLink({serviceId:l.serviceId,sessionId:l.sessionId,consistencyKey:_.Zo(D,1)}).then(function(y){y=hdv(y);l.galLogger.logInternalEvent(134);return{statusCode:1,link:y}})},g0J=function(l,D){D=hEJ(D);
if(!_.Pm(D,Fg,2)&&_.Zo(D,1)==="")throw l.galLogger.JSC$19801_logErrorEvent(5),Error("xk");return D},ZqJ={getPostMessagePopup:function(l,D){return new lxq(l,D)},
getRedirectStateFromUri:function(){return _.UP(_.Dp(ZqJ.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(l){_.Jvo(window.location,_.Ng(l))},
createStreamlinedFlow:function(l,D){return new b5P(l.serviceId,l.sessionId,l.galService,D,l.colorScheme,l.showCloseOption,l.galLogger,l.interactionMode,l.redirectServiceUrl)}};var SE5=function(){var l=_.$tK("GAL");this.storage=l?new _.z8(l):null};
SE5.prototype.getSession=function(l){if(this.storage!==null)try{var D=this.storage.get("SAVED_SESSION");if(D===void 0)return null;if(D.serviceId===l)return D}catch(U){}return null};var Q6J=function(){};
_.Z(Q6J,TDv);Q6J.prototype.logStateTransition=function(){};
Q6J.prototype.logInternalEvent=function(){};
Q6J.prototype.JSC$19801_logErrorEvent=function(){};var Gd2=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Gd2,_.Bh);Gd2.prototype.getCompletionUrl=function(){return _.Zo(this,15)};var jT=function(l,D,U,n,y,A){this.serviceId=l;this.environment=D;this.sessionId=U;this.colorSchemeSelected=n;this.colorThemeDisplayed=y;this.JSC$19874_transport=A;this.currentState=1};
_.Z(jT,TDv);jT.prototype.logStateTransition=function(l){var D=JM8(this);D=_.R2(D,3,this.currentState);D=_.R2(D,1,l);this.currentState=l;l=DHP(1);this.dispatch(D,l)};
jT.prototype.logInternalEvent=function(l){l=DHP(l);this.dispatch(JM8(this),l)};
jT.prototype.JSC$19801_logErrorEvent=function(l){var D=JM8(this);D=_.R2(D,1,10);l=DHP(l);this.dispatch(D,l)};
var JM8=function(l){var D=new Gd2;D=_.R2(D,1,l.currentState);D=_.c7(D,7,l.serviceId);var U,n;var y=((U=window)==null?0:(n=U.location)==null?0:n.href)?_.Dp(window.location.href).JSC$10113_domain_:"NO_PACKAGE_NAME";U=_.c7(D,8,y);U=_.R2(U,6,l.environment);U=_.c7(U,5,"100");U=_.R2(U,11,l.colorSchemeSelected);return _.R2(U,12,l.colorThemeDisplayed)};
jT.prototype.dispatch=function(l,D){D===void 0&&(D=new _.vb);var U=D;l=l.serialize();U=_.c7(U,8,l);_.j2(U,12,this.sessionId);this.JSC$19874_transport.dispatch(D)};var L5J=function(l,D){this.loggerType=l;this.sessionIndex=D!=null?D:0},qi$;
L5J.prototype.create=function(l,D,U,n,y){switch(this.loggerType){case 0:return new Q6J;case 1:return qi$||(qi$=(new _.Zy(555,this.sessionIndex.toString())).build()),new jT(l,D,U,n,y,qi$);default:_.Tv(this.loggerType,"unknown logger type")}};var edJ=[6,2,3,1],xJT=new Map([[4,1],[1,6],[2,2],[3,3]]),u7P={statusCode:7,statusMessage:"Failed to create flow object"},tqP=function(l,D,U,n,y,A,C,h,b,u){this.serviceId=l;this.sessionId=D;this.config=U;this.galService=n;this.JSC$19881_linkingSession=y;this.googleScopes=A;this.callerState=C;this.consentLanguageKeys=h;this.dynamicUrlParameters=b;this.partnerConfigMinReadTimestamp=u;this.currentFlow=0;n=this.JSC$19881_linkingSession;y=new Set;_.Pm(n,qE$,1)&&y.add(1);_.Pm(n,T7T,2)&&_.Pm(n,RdT,6)&&y.add(2);
_.Pm(n,EA$,3)&&_.Pm(n,RdT,6)&&y.add(3);_.Pm(n,$fr,4)&&y.add(6);this.supportedFlows=y;n=U.loggerType;y=U.clientEnvironment;a:{A=U.colorScheme;switch(A){case 0:A=1;break a;case 1:A=2;break a;case 2:A=3;break a;default:_.Tv(A)}A=void 0}a:{C=U.colorScheme;C=YC5(C);switch(C){case 0:C=1;break a;case 1:C=2;break a;default:_.Tv(C)}C=void 0}this.galLogger=(new L5J(n,U.authUser)).create(l,y,D,A,C)},REr=function(l){return new Promise(function(D){var U,n,y,A,C,h,b,u,Q,G;
return _.P(function(J){switch(J.nextAddress){case 1:U=mJT(l.currentFlow,l.supportedFlows),n=!1,y=new Oi$(l.JSC$19881_linkingSession,l.config.dataUsageNoticeConfig);case 2:if(U===void 0){J.jumpTo(4);break}_.ZY(J,5);var L=y,R=U,a=void 0;n?R===1&&(a=L.displayInfoMap.get(2)):R===2||R===3?a=L.displayInfoMap.get(1):R===1&&(a=L.displayInfoMap.get(3));A=a?a:[];C=l.consentLanguageKeys;h=_.B(A);b=h.next();case 7:if(b.done)return l.currentFlow=U,J.yield(QTJ(MvJ(l,C)),11);u=b.value;return J.yield(AiH(u,l.config.dataUsageNoticeConfig.uiAdapter,
l.config.colorScheme,l.galLogger),10);case 10:Q=J.yieldResult;if(Q.statusCode!==1)return kyW(l.serviceId),l.currentFlow=0,D(GyP({statusCode:Q.statusCode,statusMessage:Q.statusMessage},l.callerState)),J.return();Q.consentLanguageKeys!==void 0&&(C=Q.consentLanguageKeys);b=h.next();J.jumpTo(7);break;case 11:G=J.yieldResult;if(G.statusCode!==10)return G.statusCode!==6&&(kyW(l.serviceId),l.currentFlow=0),G.statusCode!==1&&l.callerState!==void 0&&(G.callerState=l.callerState),D(G),J.return();_.WG(J,6);
break;case 5:_.kF(J);case 6:U=mJT(l.currentFlow,l.supportedFlows);n=!0;J.jumpTo(2);break;case 4:kyW(l.serviceId),l.currentFlow=0,D(GyP({statusCode:12,statusMessage:"Linking failed"},l.callerState)),_.Kz(J)}})})},ciW=function(l,D,U){l.currentFlow=D;
return Ji2(MvJ(l,U)).then(function(n){return n.statusCode===10&&l.config.interactionMode===1&&mJT(l.currentFlow,l.supportedFlows)!==void 0?REr(l):n})},MvJ=function(l,D){return{flowParams:{serviceId:l.serviceId,
sessionId:l.sessionId,galService:l.galService,galLogger:l.galLogger,interactionMode:l.config.interactionMode,redirectServiceUrl:l.config.redirectServiceUrl,colorScheme:l.config.colorScheme,consentLanguageKeys:D,dynamicUrlParameters:l.dynamicUrlParameters,showCloseOption:l.config.showCloseOption,partnerConfigMinReadTimestamp:l.partnerConfigMinReadTimestamp},currentFlow:l.currentFlow,config:l.config,session:l.JSC$19881_linkingSession,googleScopes:l.googleScopes,callerState:l.callerState}};var Fr8=function(l,D){this.config=l;this.galService=D.getService();this.JSC$19894_galRepository=D.JSC$19912_galRepository};
Fr8.prototype.getLink=function(l,D){return Z5$(this,l,D)};
var Z5$=function(l,D,U){return l.JSC$19894_galRepository.getLink({serviceId:D,scopes:void 0,capabilities:void 0,linkName:U}).then(function(n){return{statusCode:1,link:n}}).catch(function(n){return{statusCode:jTJ(n.code),
statusMessage:n.message}})};
Fr8.prototype.deleteLink=function(l,D){return this.JSC$19894_galRepository.deleteLink(l,this.config.accountLinkingEntryPoint,D).then(function(){return{statusCode:1}}).catch(function(U){return{statusCode:jTJ(U.code),
statusMessage:U.message}})};
Fr8.prototype.startLinkingSession=function(l){var D=l.serviceId;var U=l.sessionId;return Xr$({serviceId:D,sessionId:U!==void 0?U:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:l.loginHint,callerState:l.callerState,consentLanguageKeys:l.consentLanguageKeys,linkName:l.linkName,dynamicUrlParameters:l.dynamicUrlParameters,partnerConfigMinReadTimestamp:l.partnerConfigMinReadTimestamp})};var FM=function(l,D,U,n,y,A,C){this.apiKey=D;this.authUser=U;this.oauthToken=n;this.bucket=y;this.locale=A;this.galSdkEventHandler=C;if(n===void 0){if(D===void 0)throw Error("yk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new xTH(l)};
FM.prototype.deleteLink=function(l){var D=l.serviceId;var U=l.sessionId;var n=l.accountLinkingEntryPoint;var y=l.linkName;var A=this,C;return _.P(function(h){var b=(new k6).setHeader(A.getHeader(U));var u=eEw({serviceId:D,linkName:y});b=_.al(b,2,u);C=_.SY(b,3,n);return h.return(A.makeRequest(A.galServiceClient.deleteLink,C,[1,3],[2,4]))})};
var BAW=function(l,D){var U=D.serviceId;var n=D.sessionId;var y=D.dynamicUrlParameters;var A=D.redirectState;var C=D.consentLanguageKeys;var h=D.partnerConfigMinReadTimestamp;var b;return _.P(function(u){var Q=(new K8).setHeader(l.getHeader(n,y));Q=_.jt(Q,2,U);b=_.jt(Q,4,A);C!==void 0&&_.jt(b,5,C);h!==void 0&&_.al(b,6,h);return u.return(l.makeRequest(l.galServiceClient.JSC$19780_finishOAuth,b,[1,3],[2,4]))})};
FM.prototype.getLink=function(l){var D=l.serviceId;var U=l.sessionId;var n=l.scopes;var y=l.capabilities;var A=l.consistencyKey;var C=l.linkName;var h=this,b;return _.P(function(u){var Q=(new cB).setHeader(h.getHeader(U)),G=eEw({serviceId:D,scopes:n,capabilities:y,linkName:C});b=_.al(Q,2,G);A!==void 0&&(Q=kL$(),Q=_.jt(Q,2,A),_.al(b,3,Q));return u.return(h.makeRequest(h.galServiceClient.getLink,b,[1,3],[2,4]))})};
var Lrv=function(l,D){var U=D.serviceId;var n=D.sessionId;var y=D.googleScopes;var A=D.consistencyKey;var C;return _.P(function(h){var b=(new dz).setHeader(l.getHeader(n));b=_.jt(b,2,U);var u=Array.from(y.values());b=_.Vq(b,3,u,_.LP);u=kL$();u=_.jt(u,2,A);C=_.al(b,4,u);return h.return(l.makeRequest(l.galServiceClient.JSC$19780_depositGoogleCredential,C,[1,3],[2,4]))})};
FM.prototype.startLinkingSession=function(l){var D=l.serviceId;var U=l.sessionId;var n=l.scopes;var y=l.capabilities;var A=l.loginHint;var C=l.supportedFlows;var h=l.completionUrl;var b=l.usePingPong;var u=l.twoWayLinking;var Q=l.accountLinkingEntryPoint;var G=l.callerState;var J=l.consentLanguageKeys;var L=l.googleScopes;var R=l.dataUsageNoticeConfig;var a=l.linkName;var S=l.dynamicUrlParameters;var d=l.partnerConfigMinReadTimestamp;var c=this,N,z;return _.P(function(f){if(y!==void 0&&n!==void 0)throw Error("uk");
var I=(new YIv).setHeader(c.getHeader(U,S));N=_.jt(I,2,D);a!==void 0&&_.jt(N,14,a);if(y!==void 0){I=N;var iG=Array.from(y.values());_.Vq(I,5,iG,_.LP)}else n!==void 0&&(I=N,iG=Array.from(n.values()),_.Vq(I,3,iG,_.LP));h!==void 0&&_.jt(N,6,h);b!==void 0&&_.RS(N,15,b);C!==void 0&&(I=N,iG=Array.from(C.values()),_.Vq(I,4,iG,_.Ar));if(u!==void 0){if(u&&(!L||L.size===0))throw Error("zk");_.RS(N,8,u)}Q!==void 0&&_.SY(N,9,Q);A!==void 0&&_.jt(N,13,A);G!==void 0&&(I=N,iG=(new TextEncoder).encode(G),_.iw(I,12,
_.c5(iG,!1),_.Km()));J!==void 0&&_.jt(N,16,J);d!==void 0&&_.al(N,18,d);if(R!==void 0&&R.size>0||L!==void 0&&L.size>0)z=new HnH,L!==void 0&&L.size>0&&(I=z,iG=Array.from(L.values()),_.Vq(I,1,iG,_.LP)),R!==void 0&&(R.has(0)&&_.z89(z,2,_.Ar,1,_.W2),R.has(1)&&_.z89(z,2,_.Ar,2,_.W2)),_.al(N,17,z);return f.return(c.makeRequest(c.galServiceClient.startLinkingSession,N,[1],[2]))})};
FM.prototype.getMetadata=function(){var l=this,D,U;return _.P(function(n){D={};l.useFpa?(D["X-Goog-Api-Key"]=l.apiKey,D["X-Goog-AuthUser"]=l.authUser!==void 0?l.authUser.toString():"0",(U=_.vuK([]))&&(D.Authorization=U)):D.Authorization="Bearer "+l.oauthToken;l.locale&&(D["accept-language"]=l.locale);return n.return(D)})};
FM.prototype.makeRequest=function(l,D,U,n){var y=this,A;return _.P(function(C){if(C.nextAddress==1)return C.yield(y.getMetadata(),2);A=C.yieldResult;m$J(y,U);return C.return(l.bind(y.galServiceClient)(D,A).finally(function(){m$J(y,n)}))})};
var m$J=function(l,D){l.galSdkEventHandler!==void 0&&D.forEach(function(U){l.galSdkEventHandler.onEvent(U)})};
FM.prototype.getHeader=function(l,D){var U=new tN;l=_.iw(U,2,_.B2(l),0);l=_.SY(l,5,3);D=_.Vq(l,8,D,_.LP);this.bucket!==void 0&&_.jt(D,1,this.bucket);return D};
var eEw=function(l){var D=l.serviceId;var U=l.scopes;var n=l.capabilities;l=l.linkName;if(n!==void 0&&U!==void 0)throw Error("uk");var y=new XzJ;D=_.jt(y,1,D);n!==void 0?(U=Array.from(n.values()),_.Vq(D,5,U,_.LP)):U!==void 0&&(U=Array.from(U.values()),_.Vq(D,3,U,_.LP));l!==void 0&&_.jt(D,6,l);return D};var ovP=function(l){this.galService=new FM(l.alsDomain,l.apiKey,l.authUser,l.oauthToken,l.bucket,l.locale,l.galSdkEventHandler);this.JSC$19912_galRepository=new Vfr(this.galService)};
ovP.prototype.getService=function(){return this.galService};var axq=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(axq,_.Bh);var tvr=function(l){var D=new axq;return _.R2(D,1,l)};
axq.prototype.setErrorMessage=function(l){return _.c7(this,2,l)};var XLJ=[0,_.iW,_.Ey,_.iW];var ov=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(ov,_.Bh);var SiJ=[0,[1,2,3],_.Yz,[0,_.Jr7,_.kar,-1],_.Yz,[0,$c$,-1],_.Im];var kdW=[0,_.zl,1,_.iW,_.Ey,-1,1,_.Oy,_.om,_.iW,-1,SiJ];var d$J=[0,_.iW,[0,_.Oy,_.om,[0,_.Ey]],_.fh,[0,_.iW,-1]];var QN=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(QN,_.Bh);var K5W=[0,_.Ey,_.iW,-2,_.zl,_.iW,_.zl,_.iW,-2,1,_.fh];var cMv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(cMv,_.Bh);var pLq=[0,_.zl];var x$2=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(x$2,_.Bh);var j6$=[0,_.iW,d$J,pLq,K5W,kdW];var kmq=_.qg(x$2,j6$);var F5r=[0,jxJ];var FOP=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(FOP,_.Bh);var o0r=[0,[1,3],EK$,_.iW,EK$];var jP$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(jP$,_.Bh);var wLW=[0,_.iW];var rMv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(rMv,_.Bh);var oNw=function(l){return _.tU(l,axq,2,vB)},zET=function(l){var D=new rMv;
return _.tk(D,2,vB,l)},vB=[1,
2];var fxJ=[0,vB,_.Yz,wLW,_.Yz,XLJ,_.Hm,o0r,1,_.iW,F5r];var $$8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z($$8,_.Bh);var s68=function(l){var D=new $$8;return _.tk(D,3,NA8,l)},NA8=[2,
3];var E0J=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(E0J,_.Bh);var TAv=function(l,D){return _.al(l,2,D)},Ix8=function(l,D){return _.al(l,8,D)},H5$=function(l,D){return _.al(l,3,D)};var Yiq=[0,_.iW,fxJ,j6$,_.ym,[0,[5,6,7],[0,_.iW,-2],[0,_.zl,_.iW,_.Ey],[0,SiJ],[0,_.Ey,_.iW,-1,_.nb,_.iW],_.Yz,[0,[0,_.zl],_.iW,-1],_.Yz,[0,[3,4],_.iW,-1,_.Yz,[0,[0,_.iW,_.fh]],_.Yz,[0,[0,[0,[1,2,3],_.Yz,[0],_.Yz,[0],_.Yz,[0]]]]],_.Yz,[0,_.iW]],_.ym,-1,[0,NA8,_.iW,_.Yz,wLW,_.Yz,XLJ,_.Hm,o0r,[0,jxJ]]];var O5P=_.qg(E0J,Yiq),VvP=_.Mg(Yiq);var iM$=function(){_.xT.call(this)};
_.Z(iM$,_.xT);iM$.prototype.init=function(){};
new iM$;var lSr=_.wL(["data-"]),D3v=_.wL(["aria-"]),U3P=_.wL(["aria-"]),wz=function(l,D){this.isLatencyMeasurementExperiment=l===void 0?!1:l;this.enableDialogA11yFix=D===void 0?!1:D;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.W7h(_.nC.location.href)},KO2=function(l,D){l.onConsentPrimitiveShownCallback=D},nM5=function(l,D){return l.overriddenIframeLoadTimeout?l.overriddenIframeLoadTimeout:D!==void 0?D:5E3},pb8=function(l){if(l.prewarmPromise!==void 0)return l.prewarmPromise;
l.prewarmPromise=new Promise(function(D,U){rz(l,1);yxJ(l,AxW(l,!0),WzT(l));l.iframe?l.prewarmChannel||B3$(l,l.iframe,D):U(Error("Ak"))});
l.prewarmPromise.finally(function(){l.prewarmPromise=void 0});
return l.prewarmPromise};
wz.prototype.showPrimitive=function(){var l=this;if(this.consentPromise!==void 0)return this.consentPromise;var D=Date.now();CcJ(this,D);this.consentPromise=new Promise(function(U,n){rz(l,0,D);var y=l.isDarkTheme();l.isLatencyMeasurementExperiment||l.initialLoadingStrategy===1||l.initialLoadingStrategy===2||(l.loadingBar||(l.loadingBar=fX8(getComputedStyle(document.body).direction==="rtl",y),l.loadingBar.style.position="fixed",l.loadingBar.style.zIndex="15000"),document.body.appendChild(l.loadingBar));
yxJ(l,AxW(l),WzT(l));l.iframe?l.channel||hr8(l,l.iframe,U,n):(PcH(l),n(Error("Ak")))});
this.consentPromise.finally(function(){l.consentPromise=void 0});
return this.consentPromise};
var hr8=function(l,D,U,n){var y,A;_.P(function(C){switch(C.nextAddress){case 1:rz(l,3);y=!1;setTimeout(function(){if(!y){PcH(l);bMH(l);gM$(l);var h=tvr(7).setErrorMessage("Timeout connecting to iframe");U(Ix8(TAv(new E0J,zET(h)),s68(h)))}},nM5(l,urq(l)));
if(!l.prewarmPromise){C.jumpTo(2);break}_.ZY(C,3);return C.yield(l.prewarmPromise,5);case 5:_.WG(C,2);break;case 3:_.kF(C),A=tvr(4).setErrorMessage("Error while prewarming."),U(Ix8(TAv(new E0J,zET(A)),s68(A)));case 2:l.prewarmChannel&&l.prewarmChannel.send(VvP(H5$(new E0J,l.consentPrimitiveRequest))),l.channel=_.nT({destination:l.win,iframe:D,origin:vMJ(l),channelName:"cpw",onEstablished:function(){y=!0;PcH(l);l.isLatencyMeasurementExperiment||(l.JSC$19941_previousBodyOverflow=document.body.style.overflow,
l.JSC$19941_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,l.JSC$19941_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",l.enableDialogA11yFix&&window.addEventListener("blur",l.focusChangeListener));var h=l.iframe;h.style.bottom="0";h.style.position="fixed";h.style.right="0";h.style.border="none";h.style.left="0";h.style.top=
"0";h.style.zIndex="5000";h.style.pointerEvents="";h.style.visibility="";l.initialLoadingStrategy===2||l.initialLoadingStrategy===3?rz(l,4):rz(l,6);var b;(b=l.onConsentPrimitiveShownCallback)==null||b.call(l)},
onMessage:function(h){h=O5P(h.data);switch(_.eY(h,1)){case 1:bMH(l);var b=$Jr(_.MZ(h,_.mG,7));b&&(l.initialLoadingStrategy!==2&&l.initialLoadingStrategy!==3||rz(l,6,b),rz(l,5,b));if(b=$Jr(_.MZ(h,_.mG,6)))rz(l,7,b),rz(l,8);var u,Q;((u=_.MZ(h,rMv,2))==null?void 0:_.QJ(u,vB))!==0&&((Q=_.MZ(h,$$8,8))==null?void 0:_.QJ(Q,NA8))!==0||n(Error("Bk"));U(h);break;case 2:gM$(l)}}}),_.Kz(C)}})},B3$=function(l,D,U){l.prewarmChannel=_.nT({destination:l.win,
iframe:D,origin:vMJ(l),channelName:"pwcp",onEstablished:function(){rz(l,2);U()}})},vMJ=function(l){var D=_.Kc(l.src).toString();
return D&&D.indexOf("://")<0&&D.indexOf("//")!==0?l.origin:_.W7h(D)},AxW=function(l,D){D=D===void 0?!1:D;
var U,n=new Map([["origin",l.origin],["hl",(U=QZJ(l))!=null?U:null]]);D&&n.set("pw","1");D=_.B([["cpr",l.consentPrimitiveRequest.serialize()]]);for(U=D.next();!U.done;U=D.next()){var y=_.B(U.value);U=y.next().value;y=y.next().value;n.set(U,y)}l.isDarkTheme()&&n.set("color_scheme","dark");return _.L2(l.src,n)},PcH=function(l){l.isLatencyMeasurementExperiment||l.loadingBar&&document.body.removeChild(l.loadingBar)};
wz.prototype.getSrc=function(){var l=_.bl(this.origin),D;var U=(D=_.MZ(this.consentPrimitiveRequest,cMv,3))==null?void 0:_.Qp(D,1);D="consent.google.com";U=U?"/u/"+encodeURIComponent(U.toString()):"";(l==null?0:l.endsWith("youtube.com"))?D="consent.youtube.com":(l=l==null?void 0:l.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(D="consent.google."+((l[1]?"co.":"")+encodeURIComponent(l[2])));return _.dT("https://"+D+"/signedin"+U+"/landing")};
var yxJ=function(l,D,U){l.iframe||(l.iframe=document.createElement("iframe"),l.iframe.style.width="100%",l.iframe.style.height="100%",U!==112496729&&(l.iframe.style.colorScheme="auto"),l.isLatencyMeasurementExperiment&&(l.iframe.style.display="none"),_.i8(l.iframe,D),l.iframe.setAttribute("jsname","C5o1O"),GAJ(l.iframe),document.body.appendChild(l.iframe))},GAJ=function(l){l.style.bottom="-200vh";
l.style.position="fixed";l.style.right="-200vw";l.style.border="";l.style.left="";l.style.top="";l.style.zIndex="";l.style.pointerEvents="none";l.style.visibility="hidden"},bMH=function(l){l.iframe&&(l.isLatencyMeasurementExperiment||(l.JSC$19941_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=l.JSC$19941_previousHtmlOverscroll),l.JSC$19941_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=l.JSC$19941_previousBodyOverscroll),l.JSC$19941_previousBodyOverflow!==
void 0&&(document.body.style.overflow=l.JSC$19941_previousBodyOverflow),l.enableDialogA11yFix&&JxT(l,!1)),GAJ(l.iframe))};
wz.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(JxT(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var JxT=function(l,D){var U,n,y=(U=l.iframe)==null?void 0:(n=U.parentElement)==null?void 0:n.children;if(y)for(U=0;U<y.length;U++)n=y[U],n!==l.iframe&&(D?(n.hasAttribute("aria-hidden")&&_.hv([_.QK(lSr)],n,"data-old-aria-hidden",n.getAttribute("aria-hidden")),_.hv([_.QK(D3v)],n,"aria-hidden","true")):(n.removeAttribute("aria-hidden"),n.hasAttribute("data-old-aria-hidden")&&(_.hv([_.QK(U3P)],n,"aria-hidden",n.getAttribute("data-old-aria-hidden")),n.removeAttribute("data-old-aria-hidden"))))},rz=function(l,
D,U){var n;
(n=l.latencyCallback)==null||n.call(l,{latencyType:D,timestampEpochMillis:U!=null?U:Date.now()})};var Lzw=function(l,D,U){wz.call(this,D,U===void 0?!1:U);this.consentPrimitiveRequest=l;l=QZJ(this);_.Rs$(l);this.src=this.getSrc();var n;this.initialLoadingStrategy=(n=_.MZ(this.consentPrimitiveRequest,QN,4))==null?void 0:_.eY(n,4)},qQq;
_.Z(Lzw,wz);var diW=function(l){var D=_.q("enable_primitive_dialog_aria_hide_siblings");l={request:l,enableDialogA11yFix:D===void 0?!1:D};qQq||(qQq=new Lzw(l.request,l.isLatencyMeasurementExperiment||_.eY(l.request,1)===2,l.enableDialogA11yFix));return qQq},QZJ=function(l){var D;
return(D=_.MZ(l.consentPrimitiveRequest,QN,4))==null?void 0:_.Zo(D,1)},CcJ=function(l,D){if(!_.Pm(l.consentPrimitiveRequest,ov,5)){var U=l.consentPrimitiveRequest,n=new ov;
_.al(U,5,n)}var y;if((y=_.MZ(l.consentPrimitiveRequest,ov,5))==null||_.p5c(_.hU(y,8))==null){var A;(A=_.MZ(l.consentPrimitiveRequest,ov,5))!=null&&_.j2(A,8,D)}},WzT=function(l){var D;
return(D=_.MZ(l.consentPrimitiveRequest,ov,5))==null?void 0:_.Qp(D,1)};
Lzw.prototype.isDarkTheme=function(){var l;return((l=_.MZ(this.consentPrimitiveRequest,QN,4))==null?void 0:_.eY(l,2))===2};
var urq=function(l){var D;return((D=_.MZ(l.consentPrimitiveRequest,QN,4))==null?void 0:_.Qp(D,5))||void 0},gM$=function(l){l.channel=void 0;
l.prewarmChannel=void 0;l.iframe&&(document.body.contains(l.iframe)&&document.body.removeChild(l.iframe),l.iframe=void 0);qQq=void 0},xi8=function(l){return wz.prototype.showPrimitive.call(l).then(function(D){return _.MZ(D,rMv,2)})};for(var zQ={},Mm$=(zQ[64]="ma",zQ[73]="ogb",zQ[89]="cr",zQ[21]="test",zQ[0]="unkn",zQ[137]="con",zQ[155]="hl",zQ[78]="yt",zQ[171]="lp",zQ[172]="ap",zQ[177]="amo",zQ[178]="pqe",zQ[74]="gg",zQ[1]="gm",zQ[140]="am",zQ[193]="sc",zQ),Rrr=_.B(Object.keys(Mm$)),ZMq=Rrr.next();!ZMq.done;ZMq=Rrr.next());var erv=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(erv,_.Bh);var m35=[0,[2,3,4],_.iW,fO8,EK$,_.Im];var aS8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(aS8,_.Bh);var tm8=_.qg(aS8,[0,_.lW,_.Ey,_.iW,_.Ey,_.iW,m35]);var Xq8=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Xq8,_.Bh);Xq8.prototype.getCommand=function(){return _.eY(this,1)};
var SQ8=function(){var l=new Xq8;return _.SY(l,1,0)};var kAH=_.Mg([0,_.lW,_.Ey,[0,_.iW,_.Ey,-1]]);var d3q=new _.RP("s"),Kz$=new _.RP("t"),cx8=new _.RP("u"),pqP=new _.RP("v"),x3T=function(l,D,U){_.Zz.call(this,d3q);this.mediaKey=l;this.photoUrl=D;this.photoSource=U};
_.Z(x3T,_.Zz);var jZq=function(){_.Zz.call(this,Kz$)};
_.Z(jZq,_.Zz);var FzH=function(l){l=l===void 0?!1:l;_.Zz.call(this,cx8);this.isError=l};
_.Z(FzH,_.Zz);var oMJ=function(){_.Zz.call(this,pqP)};
_.Z(oMJ,_.Zz);var wq$=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,$3$=function(l){if(typeof l=="string"){if(l.charAt(0)==".")return rx8(l.substr(1));if(l.charAt(0)=="["){var D=wq$.exec(l);l=l.indexOf("=")==-1?void 0:D[3];return zrJ(D[1],l)}return fSv(l)}return l},rx8=function(l){return function(D){return D.getAttribute&&_.IP(D,l)}},zrJ=function(l,D){return function(U){return D!==void 0?U.getAttribute&&U.getAttribute(l)==D:U.hasAttribute&&U.hasAttribute(l)}},fSv=function(l){l=l.toUpperCase();
return function(D){return(D=D.tagName)&&D.toUpperCase()==l}},N3$=function(){return!0};var f8=function(l,D){this.JSC$19969_key_=l;this.JSC$19969_value_=D},sZ$=function(l){throw Error("Ck`"+l.JSC$19969_key_);
},EM8=function(l,D){return new TypeError("Dk`"+D+"`"+l.JSC$19969_key_+"`"+l.JSC$19969_value_+"`"+typeof l.JSC$19969_value_)};
f8.prototype.string=function(l){return arguments.length==0?T3J(this):IS8(this,l)};
var IS8=function(l,D){var U;return(U=HMP(l))!=null?U:D},T3J=function(l){var D=HMP(l);
D===null&&sZ$(l);return D},HMP=function(l){var D=l.JSC$19969_value_;
if(D==null)return null;if(typeof D==="string")return D;throw EM8(l,"string");};
f8.prototype.bool=function(l){if(arguments.length==0){var D=this.optionalBool();D===null&&sZ$(this)}else{var U;D=(U=this.optionalBool())!=null?U:l}return D};
f8.prototype.optionalBool=function(){var l=this.JSC$19969_value_;if(l==null)return null;if(typeof l==="boolean")return l;if(typeof l==="string"){l=l.toLowerCase();if(l==="true"||l==="1")return!0;if(l==="false"||l==="0")return!1}throw EM8(this,"boolean");};
f8.prototype.number=function(l){if(arguments.length==0){var D=YQq(this);D===null&&sZ$(this)}else D=OMq(this,l);return D};
var OMq=function(l,D){var U;return(U=YQq(l))!=null?U:D},YQq=function(l){var D=l.JSC$19969_value_;
if(D==null)return null;if(typeof D==="number")return D;if(typeof D==="string"){var U=Number(D);if(!isNaN(U)&&(U!==0||D.trim().length!==0))return U}throw EM8(l,"number");};
f8.prototype.toString=function(){return T3J(this)};
f8.prototype.enum=function(l,D){var U=!0,n=void 0,y;for(y in l){var A=l[y];U&&(U=!1,n=typeof A==="number"?OMq(this,D):IS8(this,D));if(A==n)return n}JSON.stringify(l);return n};
f8.prototype.array=function(l){if(arguments.length==0){var D=VmP(this);D===null&&sZ$(this);return D}D=VmP(this);return D==null?l:D};
var VmP=function(l){var D=l.JSC$19969_value_;if(D==null)return null;Array.isArray(D)||(typeof D!=="string"?D=[D]:(D=D.trim(),D=D==""?[]:D.split(",").map(function(U){return U.trim()})));
return idP(l,D)},idP=function(l,D){var U=l.JSC$19969_key_+"[";
return Array.from(D,function(n,y){return new f8(U+y+"]",n)})};
f8.prototype.object=function(l){var D=this.JSC$19969_value_;if(D==null)return l===void 0&&sZ$(this),l;if(typeof D==="object"&&D.constructor===Object){l={};var U=this.JSC$19969_key_+".",n;for(n in D)l[n]=new f8(U+n,D[n]);return l}throw EM8(this,"object");};var $6=function(l){this.list_=l2q(l)},l2q=function(l){if(l instanceof $6)l=l.list_;
else if(l[0]instanceof $6){for(var D=new Set,U=0;U<l.length;U++)for(var n=_.B(l[U].list_),y=n.next();!y.done;y=n.next())D.add(y.value);l=D}return[].concat(_.zz(l))};
_.W=$6.prototype;_.W.each=function(l,D,U){((U===void 0?0:U)?lk8:_.Ac)(this.list_,l,D);return this};
_.W.size=function(){return this.list_.length};
_.W.isEmpty=function(){return this.list_.length===0};
_.W.get=function(l){return this.list_[l]||null};
_.W.el=function(){return this.list_[0]||null};
_.W.map=function(l,D){return _.re(this.list_,l,D)};
_.W.equals=function(l){return this===l||_.Y9(this.list_,l.list_)};
_.W.first=function(){return this.list_.length==0?null:new N8(this.list_[0])};
_.W.last=function(){return this.list_.length==0?null:new N8(this.list_[this.list_.length-1])};
_.W.find=function(l){var D=[];this.each(function(U){U=U.querySelectorAll(String(l));for(var n=0;n<U.length;n++)D.push(U[n])});
return new $6(D)};
_.W.parent=function(){var l=[];this.each(function(D){(D=D.parentElement||null)&&!_.rl(l,D)&&l.push(D)});
return new $6(l)};
_.W.children=function(){var l=[];this.each(function(D){D=_.j8(D);for(var U=0;U<D.length;U++)l.push(D[U])});
return new $6(l)};
_.W.filter=function(l){l=_.O4(this.list_,$3$(l));return new $6(l)};
_.W.closest=function(l){var D=[],U=$3$(l),n=function(y){return _.PA(y)&&U(y)};
this.each(function(y){(y=_.sj(y,n,!0))&&!_.rl(D,y)&&D.push(y)});
return new $6(D)};
_.W.next=function(l){return Dj8(this,_.ehr,l)};
_.W.prev=function(l){return Dj8(this,TCH,l)};
var Dj8=function(l,D,U){var n=[];var y=U?$3$(U):N3$;l.each(function(A){(A=D(A))&&y(A)&&n.push(A)});
return new $6(n)};
$6.prototype.setClass=function(l){return this.each(function(D){_.Tm(D,l)})};
var Uj5=function(l,D){return l.each(function(U){_.zt(U,D)})},np8=function(l,D){return l.each(function(U){_.wh(U,D)})};
$6.prototype.toggleClass=function(l,D){return D===!0?Uj5(this,l):D===!1?np8(this,l):this.each(function(U){_.IP(U,l)?_.wh(U,l):_.zt(U,l)})};
$6.prototype.setText=function(l){return this.each(function(D){_.Fp(D,l)})};
var yCJ=function(l){l.each(function(D){D.removeAttribute("aria-hidden")})};
$6.prototype.getStyle=function(l){if(this.list_.length>0){var D=this.list_[0],U=D.style[_.h6(l)];return typeof U!=="undefined"?U:D.style[_.FLh(D,l)]||""}};
$6.prototype.getData=function(l){if(this.list_.length===0)return new f8(l,null);var D=AeP(this.list_[0],l);return new f8(l,D)};
$6.prototype.focus=function(l){try{l?this.el().focus(l):this.el().focus()}catch(D){}return this};
$6.prototype.click=function(){var l=_.$m(this.el());if(l.createEvent){var D=l.createEvent("MouseEvents");D.initMouseEvent("click",!0,!0,l.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(D)}else l=l.createEventObject(),l.clientX=0,l.clientY=0,l.screenX=0,l.screenY=0,l.altKey=!1,l.ctrlKey=!1,l.shiftKey=!1,l.button=0,this.el().fireEvent("onclick",l)};
var sk=function(l,D,U,n){function y(h,b,u){var Q=b;b&&b.parentNode&&(Q=b.cloneNode(!0));h(Q,u)}
n=n===void 0?!1:n;if(l.list_.length==1){var A=l.list_[0],C=function(h){return D(h,A)};
U instanceof $6?U.each(C,void 0,n):Array.isArray(U)?(n?lk8:_.Ac)(U,C):C(U);return l}return l.each(function(h){U instanceof $6?U.each(function(b){y(D,b,h)}):Array.isArray(U)?_.Ac(U,function(b){y(D,b,h)}):y(D,U,h)})};
_.W=$6.prototype;_.W.append=function(l){return sk(this,function(D,U){D&&U.appendChild(D)},l)};
_.W.appendTo=function(l){(new $6([l])).append(this);return this};
_.W.remove=function(){return sk(this,function(l,D){_.kT(D)},null)};
_.W.empty=function(){return sk(this,function(l,D){_.cl(D)},null)};
_.W.after=function(l,D){return sk(this,function(U,n){U&&_.xh(U,n)},l,!(D===void 0||D))};
_.W.before=function(l){return sk(this,function(D,U){D&&_.pT(D,U)},l)};
_.W.replaceWith=function(l){return sk(this,function(D,U){D&&_.Mrr(D,U)},l)};
_.W.toggle=function(l){return this.each(function(D){_.Aq(D,l)})};
_.W.show=function(){return this.toggle(!0)};
_.W.hide=function(){return this.toggle(!1)};
_.W.trigger=function(l,D,U,n){return ACW(this,l,D,U,n)};
var ACW=function(l,D,U,n,y){return l.each(function(A){_.Gnc(_.$m(A)).triggerWizEventInternal(A,D,U,n,y)})},N8=function(l,D){l instanceof $6&&(D=l.list_,l=null);
this.list_=l2q(l!=null?[l]:D)};
_.HI(N8,$6);_.W=N8.prototype;_.W.children=function(){return new $6(Array.prototype.slice.call(_.j8(this.list_[0])))};
_.W.each=function(l,D){l.call(D,this.list_[0],0);return this};
_.W.size=function(){return 1};
_.W.el=function(){return this.list_[0]};
_.W.first=function(){return this};var Ek=function(l,D){D=D===void 0?window:D;this.hostId=l;this.win=D;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$19980_previousHtmlOverscroll=this.JSC$19980_previousBodyOverscroll=this.JSC$19980_previousBodyOverflow="";this.eventTarget=new _.Xa;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},CN$=function(l){var D=
WtH(WtH(WtH(new BvP(78),"po"),"hppp"),"hhc");
D.authUser=Number(_.H3("SESSION_INDEX","0"));D.colorScheme=l;return D};
Ek.prototype.getOrigin=function(){return this.origin?this.origin:_.Wp(_.A8(_.y8(new _.fI,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
Ek.prototype.getTargetOrigin=function(){return _.Wp(_.A8(_.y8(new _.fI,this.scheme),this.domain),this.port)};
Ek.prototype.preloadIframe=function(l){var D=this;if(this.iframeLoadPromise===void 0){var U=document.createElement("iframe");this.iframe=U;YEq(U,l);this.iframeLoadPromise=new Promise(function(n,y){var A=!1,C=function(h){h.stopPropagation();U.removeEventListener("error",C);U.removeEventListener("securitypolicyviolation",C);y(Error("Ek",{cause:h}))};
U.addEventListener("error",C);U.addEventListener("securitypolicyviolation",C);setTimeout(function(){A||y(Error("Fk"))},3E4);
h1$(D,U,function(){A=!0;U.removeEventListener("error",C);U.removeEventListener("securitypolicyviolation",C);n()})});
PNW(this);l=this.getTargetOrigin().toString();U.setAttribute("allow","camera "+l+"; display-capture "+l);this.parentElement.appendChild(U)}return this.iframeLoadPromise};
var uc$=function(l,D){var U,n;return _.P(function(y){if(y.nextAddress==1)return U=fX8(getComputedStyle(l.parentElement).direction==="rtl"),l.parentElement.appendChild(U),document.activeElement instanceof HTMLElement&&(l.elementToFocusAfterClose=document.activeElement),_.ZY(y,2),y.yield(l.preloadIframe(D),4);if(y.nextAddress!=2){l.parentElement.removeChild(U);l.JSC$19980_previousBodyOverflow=l.parentElement.style.overflow;l.JSC$19980_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
l.JSC$19980_previousBodyOverscroll=l.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";l.parentElement.style.overscrollBehavior="contain";l.parentElement.style.overflow="hidden";var A=l.iframe;A.style.bottom="0";A.style.border="none";A.style.height="100%";A.style.left="0";A.style.position=l.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");
l.opened=!0;bdq(l);return _.WG(y,0)}n=_.kF(y);l.parentElement.removeChild(U);TN$(l.isDarkTheme());gp5(l,!1);throw Error("Gk",{cause:n});})},gp5=function(l,D){D=D===void 0?!0:D;
l.iframe!==void 0&&(vpq(l),document.documentElement.style.overscrollBehavior=l.JSC$19980_previousHtmlOverscroll,l.parentElement.style.overscrollBehavior=l.JSC$19980_previousBodyOverscroll,l.parentElement.style.overflow=l.JSC$19980_previousBodyOverflow,l.elementToFocusAfterClose!==void 0&&(l.elementToFocusAfterClose.focus(),l.elementToFocusAfterClose=void 0),D?PNW(l):(l.parentElement.removeChild(l.iframe),l.iframe=void 0,l.iframeLoadPromise=void 0,l.mainChannel=void 0),l.opened=!1)},vpq=function(l){l.backgroundElementsAriaHiddenIsNull&&
(yCJ(l.backgroundElementsAriaHiddenIsNull),l.backgroundElementsAriaHiddenIsNull=void 0);
l.backgroundElementsAriaHiddenIsFalse&&(l.backgroundElementsAriaHiddenIsFalse.each(function(D){D.setAttribute("aria-hidden","false")}),l.backgroundElementsAriaHiddenIsFalse=void 0);
l.backgroundElementsWithoutInert&&(l.backgroundElementsWithoutInert.each(function(D){D.removeAttribute("inert")}),l.backgroundElementsWithoutInert=void 0)},bdq=function(l){l.backgroundElementsAriaHiddenIsNull=(new N8(l.iframe.parentElement)).children().filter(function(D){return D.getAttribute("aria-hidden")===null&&D!==l.iframe});
l.backgroundElementsAriaHiddenIsNull.each(function(D){D.setAttribute("aria-hidden","true")});
l.backgroundElementsAriaHiddenIsFalse=(new N8(l.iframe.parentElement)).children().filter(function(D){return D.getAttribute("aria-hidden")==="false"&&D!==l.iframe});
l.backgroundElementsAriaHiddenIsFalse.each(function(D){D.setAttribute("aria-hidden","true")});
l.backgroundElementsWithoutInert=(new N8(l.iframe.parentElement)).children().filter(function(D){return!D.hasAttribute("inert")&&D!==l.iframe});
l.backgroundElementsWithoutInert.each(function(D){D.setAttribute("inert","true")})},PNW=function(l){l=l.iframe;
l.style.bottom="-1000px";l.style.position="fixed";l.style.right="-1000px";l.style.border="";l.style.height="";l.style.left="";l.style.top="";l.style.width="";l.style.zIndex="";l.setAttribute("aria-hidden","true");l.setAttribute("aria-modal","false")};
Ek.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var BvP=function(l,D){Ek.call(this,Mm$[l],D);this.options=[];this.style=""};
_.Z(BvP,Ek);var Qfv=function(l){l.style="youtube";return l},Ge8=function(l,D){l.eventTarget.listen(cx8,D);
return l},JCJ=function(l,D){l.eventTarget.listen(d3q,D);
return l},WtH=function(l,D){l.options.push(D);
return l},Lt5=function(l){var D=[l.getOrigin()];
l.ancestorOrigins&&D.push.apply(D,_.zz(l.ancestorOrigins));var U=new _.fI(l.win.location.href),n=l.startUrl?l.startUrl:l.options.includes("po")?"profile-picture/art":"profile-picture";D=y85(_.Bp(l.getTargetOrigin(),n),"origin",D);l.startUrl&&_.ny(D,"startPath",l.startUrl);l.authUser>0&&_.ny(D,"authuser",l.authUser);l.pageId!==void 0&&_.ny(D,"pageId",l.pageId);_.ny(D,"hostId",l.hostId);l.jsMode!==void 0&&_.ny(D,"jsmode",l.jsMode);l.rectangleRatio!==void 0&&_.ny(D,"rectangleRatio",l.rectangleRatio);
l.options.length>0&&_.ny(D,"opts",l.options.join(","));try{for(var y=_.B(["utm_source","utm_medium","utm_campaign","utm_content"]),A=y.next();!A.done;A=y.next()){var C=A.value;_.UP(U,C)&&_.ny(D,C,_.UP(U,C))}var h,b=(h=l.hl)!=null?h:_.UP(U,"hl");b!==void 0&&_.ny(D,"hl",b)}catch(u){if(!(u instanceof URIError))throw u;}l.colorScheme&&_.ny(D,"theme",l.colorScheme);l.style&&_.ny(D,"style",l.style);return D},qp$=function(l,D){l.mainChannel=_.nT({destination:l.win,
iframe:D,origin:l.getTargetOrigin().toString(),channelName:"ow",onMessage:function(U){U=tm8(U.data);if(D===l.iframe)switch(_.eY(U,1)){case 1:l.eventTarget.dispatchEvent(new FzH);gp5(l);break;case 2:l.eventTarget.dispatchEvent(new x3T(_.Zo(U,4),_.Zo(U,2),_.eY(U,5),_.MZ(U,erv,6)));break;case 0:var n;l.eventTarget.dispatchEvent(new jZq(_.Zo(U,2),(n=_.eY(U,3))!=null?n:0));break;case 3:l.eventTarget.dispatchEvent(new FzH(!0));gp5(l,!1);break;case 4:l.eventTarget.dispatchEvent(new oMJ)}}})},h1$=function(l,
D,U){_.nT({destination:l.win,
iframe:D,origin:_.Wp(_.A8(_.y8(new _.fI,l.scheme),l.domain),l.port).toString(),channelName:"owi",onMessage:function(n){D===l.iframe&&(U!==void 0&&U(),qp$(l,D),l.opened&&l.mainChannel.send(kAH(SQ8())),n.reply(),h1$(l,D))}})};
BvP.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Ek.prototype.preloadIframe.call(this,Lt5(this).toString()):this.iframeLoadPromise};
BvP.prototype.openPicker=function(l){var D=this;return _.P(function(U){if(U.nextAddress==1)return D.startUrl=l?l:D.options.includes("po")?"profile-picture/art":"profile-picture",U.yield(uc$(D,Lt5(D).toString()),2);if(D.mainChannel){var n=D.mainChannel,y=n.send;var A=SQ8();A=_.c7(A,2,D.startUrl);y.call(n,kAH(A))}_.Kz(U)})};var Mp$=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(Mp$,_.Bh);_.W=Mp$.prototype;_.W.getSize=function(){return ZK(this,1)};
_.W.setSize=function(l){return _.X9(this,1,l)};
_.W.getWidth=function(){return ZK(this,12)};
_.W.getHeight=function(){return ZK(this,13)};
_.W.setCenterCrop=function(l){return _.qx(this,20,l)};
_.W.getHtml=function(){return _.qF(this,4)};
_.W.getToken=function(){return _.Xt(this,24)};
_.W.setToken=function(l){return _.c7(this,24,l)};
_.W.getBackgroundColor=function(){return ZK(this,87)};
_.W.hasBackgroundColor=function(){return _.CP(_.hU(this,87))!=null};
_.W.getStoryboardLevel=function(){return ZK(this,109)};var TQ=function(l){this.JSC$19988_value_=void 0;this.childNodes_={};if(l){var D=_.bBH(l);l=_.nL(l);for(var U=0;U<D.length;U++)this.set(D[U],l[U])}};
TQ.prototype.set=function(l,D){R12(this,l,D,!1)};
TQ.prototype.add=function(l,D){R12(this,l,D,!0)};
var R12=function(l,D,U,n){for(var y=0;y<D.length;y++){var A=D.charAt(y);l.childNodes_[A]||(l.childNodes_[A]=new TQ);l=l.childNodes_[A]}if(n&&l.JSC$19988_value_!==void 0)throw Error("Hk`"+D);l.JSC$19988_value_=U},ZdH=function(l,D){for(var U=0;U<D.length;U++)if(l=l.childNodes_[D.charAt(U)],!l)return;
return l};
TQ.prototype.get=function(l){return(l=ZdH(this,l))?l.JSC$19988_value_:void 0};
TQ.prototype.getValues=function(){var l=[];e1$(this,l);return l};
var e1$=function(l,D){l.JSC$19988_value_!==void 0&&D.push(l.JSC$19988_value_);for(var U in l.childNodes_)e1$(l.childNodes_[U],D)};
TQ.prototype.getKeys=function(l){var D=[];if(l){for(var U=this,n=0;n<l.length;n++){var y=l.charAt(n);if(!U.childNodes_[y])return[];U=U.childNodes_[y]}mjP(U,l,D)}else mjP(this,"",D);return D};
var mjP=function(l,D,U){l.JSC$19988_value_!==void 0&&U.push(D);for(var n in l.childNodes_)mjP(l.childNodes_[n],D+n,U)};
_.W=TQ.prototype;_.W.containsKey=function(l){return this.get(l)!==void 0};
_.W.containsValue=function(l){if(this.JSC$19988_value_===l)return!0;for(var D in this.childNodes_)if(this.childNodes_[D].containsValue(l))return!0;return!1};
_.W.clear=function(){this.childNodes_={};this.JSC$19988_value_=void 0};
_.W.remove=function(l){for(var D=this,U=[],n=0;n<l.length;n++){var y=l.charAt(n);if(!D.childNodes_[y])throw Error("Ik`"+l);U.push([D,y]);D=D.childNodes_[y]}l=D.JSC$19988_value_;for(delete D.JSC$19988_value_;U.length>0;)if(n=U.pop(),D=n[0],n=n[1],D.childNodes_[n].isEmpty())delete D.childNodes_[n];else break;return l};
_.W.clone=function(){return new TQ(this)};
_.W.getCount=function(){return Opw(this.getValues())};
_.W.isEmpty=function(){return this.JSC$19988_value_===void 0&&_.we.isEmpty(this.childNodes_)};var DdJ=function(){if(!a28){var l=a28=new TQ,D;for(D in tpT)l.add(D,tpT[D])}},a28,Iv=function(l,D){this.types=l;
this.setters=D},tpT={a:new Iv([3,
0],[function(l,D){_.qx(l,21,D)},
function(l,D){_.X9(l,56,D)}]),
al:new Iv([3],[function(l,D){_.qx(l,74,D)}]),
b:new Iv([3,0],[function(l,D){_.qx(l,23,D)},
function(l,D){_.X9(l,38,D)}]),
ba:new Iv([0],[function(l,D){_.X9(l,85,D)}]),
bc:new Iv([0],[function(l,D){_.X9(l,87,D)}]),
br:new Iv([0],[function(l,D){_.X9(l,86,D)}]),
c:new Iv([3,0],[function(l,D){_.qx(l,2,D)},
function(l,D){_.X9(l,39,D)}]),
cc:new Iv([3],[function(l,D){_.qx(l,51,D)}]),
ci:new Iv([3],[function(l,D){_.qx(l,32,D)}]),
ckm:new Iv([3],[function(l,D){_.qx(l,104,D)}]),
cp:new Iv([0],[function(l,D){_.X9(l,92,D)}]),
cr:new Iv([3],[function(l,D){_.qx(l,108,D)}]),
cv:new Iv([0],[function(l,D){_.X9(l,94,D)}]),
d:new Iv([3],[function(l,D){_.qx(l,3,D)}]),
dc:new Iv([5],[function(l,D){_.c7(l,99,D)}]),
df:new Iv([3],[function(l,D){_.qx(l,80,D)}]),
dv:new Iv([3],[function(l,D){_.qx(l,90,D)}]),
e:new Iv([0],[function(l,D){_.X9(l,15,D)}]),
em:new Iv([0],[function(l,D){_.X9(l,107,D)}]),
f:new Iv([4],[function(l,D){_.c7(l,16,D)}]),
fg:new Iv([3],[function(l,D){_.qx(l,34,D)}]),
fh:new Iv([3],[function(l,D){_.qx(l,30,D)}]),
fm:new Iv([3],[function(l,D){_.qx(l,84,D)}]),
fo:new Iv([2],[function(l,D){_.Zl(l,79,_.Y1(D))}]),
ft:new Iv([3],[function(l,D){_.qx(l,50,D)}]),
fv:new Iv([3],[function(l,D){_.qx(l,31,D)}]),
g:new Iv([3],[function(l,D){_.qx(l,14,D)}]),
gce:new Iv([4],[function(l,D){_.c7(l,112,D)}]),
gd:new Iv([3],[function(l,D){_.qx(l,83,D)}]),
gm:new Iv([3],[function(l,D){_.qx(l,105,D)}]),
h:new Iv([3,0],[function(l,D){_.qx(l,4,D)},
function(l,D){_.X9(l,13,D)}]),
i:new Iv([3],[function(l,D){_.qx(l,22,D)}]),
ic:new Iv([0],[function(l,D){_.X9(l,71,D)}]),
id:new Iv([3],[function(l,D){_.qx(l,70,D)}]),
il:new Iv([3],[function(l,D){_.qx(l,96,D)}]),
ip:new Iv([3],[function(l,D){_.qx(l,54,D)}]),
iv:new Iv([0],[function(l,D){_.j2(l,75,D)}]),
j:new Iv([1],[function(l,D){D=D==null?D:nt8(D);_.Zl(l,29,D)}]),
k:new Iv([3,0],[function(l,D){_.qx(l,17,D)},
function(l,D){_.X9(l,42,D)}]),
l:new Iv([0],[function(l,D){_.X9(l,44,D)}]),
lf:new Iv([3],[function(l,D){_.qx(l,65,D)}]),
lo:new Iv([3],[function(l,D){_.qx(l,97,D)}]),
m:new Iv([0],[function(l,D){_.X9(l,63,D)}]),
md:new Iv([3],[function(l,D){_.qx(l,91,D)}]),
mm:new Iv([4],[function(l,D){_.c7(l,81,D)}]),
mo:new Iv([3],[function(l,D){_.qx(l,73,D)}]),
mp:new Iv([0],[function(l,D){_.X9(l,115,D)}]),
mv:new Iv([3],[function(l,D){_.qx(l,66,D)}]),
n:new Iv([3],[function(l,D){l.setCenterCrop(D)}]),
nc:new Iv([3],[function(l,D){_.qx(l,55,D)}]),
nd:new Iv([3],[function(l,D){_.qx(l,53,D)}]),
ng:new Iv([3],[function(l,D){_.qx(l,95,D)}]),
ngm:new Iv([3],[function(l,D){_.qx(l,106,D)}]),
no:new Iv([3],[function(l,D){_.qx(l,37,D)}]),
ns:new Iv([3],[function(l,D){_.qx(l,40,D)}]),
nt0:new Iv([4],[function(l,D){_.c7(l,36,D)}]),
ntm:new Iv([3],[function(l,D){_.qx(l,114,D)}]),
nu:new Iv([3],[function(l,D){_.qx(l,46,D)}]),
nw:new Iv([3],[function(l,D){_.qx(l,48,D)}]),
o:new Iv([1,3],[function(l,D){D=D==null?D:nt8(D);_.Zl(l,7,D)},
function(l,D){_.qx(l,27,D)}]),
p:new Iv([3,0],[function(l,D){_.qx(l,19,D)},
function(l,D){_.X9(l,43,D)}]),
pa:new Iv([3],[function(l,D){_.qx(l,61,D)}]),
pc:new Iv([0],[function(l,D){_.X9(l,88,D)}]),
pd:new Iv([3],[function(l,D){_.qx(l,60,D)}]),
pf:new Iv([3],[function(l,D){_.qx(l,67,D)}]),
pg:new Iv([3],[function(l,D){_.qx(l,72,D)}]),
pi:new Iv([2],[function(l,D){_.Zl(l,76,_.Y1(D))}]),
pp:new Iv([3],[function(l,D){_.qx(l,52,D)}]),
pt:new Iv([4],[function(l,D){_.c7(l,111,D)}]),
q:new Iv([4],[function(l,D){_.c7(l,28,D)}]),
r:new Iv([3,0],[function(l,D){_.qx(l,6,D)},
function(l,D){_.X9(l,26,D)}]),
ra:new Iv([3],[function(l,D){_.qx(l,103,D)}]),
rf:new Iv([3],[function(l,D){_.qx(l,100,D)}]),
rg:new Iv([3],[function(l,D){_.qx(l,59,D)}]),
rh:new Iv([3],[function(l,D){_.qx(l,49,D)}]),
rj:new Iv([3],[function(l,D){_.qx(l,57,D)}]),
ro:new Iv([2],[function(l,D){_.Zl(l,78,_.Y1(D))}]),
rp:new Iv([3],[function(l,D){_.qx(l,58,D)}]),
rw:new Iv([3],[function(l,D){_.qx(l,35,D)}]),
rwa:new Iv([3],[function(l,D){_.qx(l,64,D)}]),
rwu:new Iv([3],[function(l,D){_.qx(l,41,D)}]),
s:new Iv([3,0],[function(l,D){_.qx(l,33,D)},
function(l,D){l.setSize(D)}]),
sb:new Iv([0],[function(l,D){_.X9(l,110,D)}]),
sc:new Iv([0],[function(l,D){_.X9(l,89,D)}]),
sg:new Iv([3],[function(l,D){_.qx(l,82,D)}]),
sl:new Iv([0],[function(l,D){_.X9(l,109,D)}]),
sm:new Iv([3],[function(l,D){_.qx(l,93,D)}]),
t:new Iv([4],[function(l,D){l.setToken(D)}]),
tm:new Iv([3],[function(l,D){_.qx(l,113,D)}]),
u:new Iv([3],[function(l,D){_.qx(l,18,D)}]),
ut:new Iv([3],[function(l,D){_.qx(l,45,D)}]),
v:new Iv([0],[function(l,D){_.X9(l,62,D)}]),
vb:new Iv([0],[function(l,D){_.j2(l,68,D)}]),
vf:new Iv([4],[function(l,D){_.c7(l,102,D)}]),
vl:new Iv([0],[function(l,D){_.j2(l,69,D)}]),
vm:new Iv([3],[function(l,D){_.qx(l,98,D)}]),
w:new Iv([0],[function(l,D){_.X9(l,12,D)}]),
x:new Iv([0],[function(l,D){_.X9(l,9,D)}]),
y:new Iv([0],[function(l,D){_.X9(l,10,D)}]),
ya:new Iv([2],[function(l,D){_.Zl(l,77,_.Y1(D))}]),
z:new Iv([0],[function(l,D){_.X9(l,11,D)}])};
DdJ.prototype.parse=function(l){var D=new Mp$,U=new Mp$;if(l=="")l=!0;else{l=l.split("-");for(var n=!0,y=0;y<l.length;y++){var A=l[y];if(A.length==0)n=!1;else{var C=A,h=!1;var b=C;var u=C.charAt(0);u!=u.toLowerCase()&&(h=!0,b=C.charAt(0).toLowerCase()+C.substring(1));var Q=a28;for(u=1;u<=b.length;++u){var G=Q,J=b.substring(0,u);if(J.length==0?G.isEmpty():!ZdH(G,J))break}b=u==1?null:(b=Q.get(b.substring(0,u-1)))?{option:C.substring(0,u-1),value:C.substring(u-1),signed:h,attributes:b}:null;if(b){C=
[];h=[];u=!1;for(Q=0;Q<b.attributes.types.length;Q++){G=b.attributes.types[Q];var L=b.value;J=y;if(b.signed&&G==1)for(var R=L.length;R<12&&J<l.length-1;)L+="-"+l[J+1],R=L.length,++J;else if(G==2)for(;J<l.length-1&&l[J+1].match(/^[\d\.]/);)L+="-"+l[J+1],++J;R=b.attributes.setters[Q];L=XNr(this,G)(b.option,L,D,U,R);if(L===null){u=!0;y=J;break}else C.push(G),h.push(L)}if(!u)for(b=0;b<h.length;b++)Q=C[b],L=h[b],Spq(this,Q)(A,L);n=n&&u}else n=!1}}l=n}return new ke$(D,U,l)};
var djH=function(l,D,U,n,y,A){y(U,D);l=l.charAt(0);A=A(l==l.toUpperCase());y(n,A)};
_.W=DdJ.prototype;_.W.parseAndSetIntOption_=function(l,D,U,n,y){if(D=="")return 0;isFinite(D)&&(D=String(D));D=typeof D==="string"?/^\s*-?0x/i.test(D)?parseInt(D,16):parseInt(D,10):NaN;if(isNaN(D))return 1;djH(l,D,U,n,y,Number);return null};
_.W.logIntParseError_=function(){};
_.W.parseAndSetFloatOption_=function(l,D,U,n,y){if(D=="")return 0;var A=Number(D);D=A==0&&_.hd(D)?NaN:A;if(isNaN(D))return 1;djH(l,D,U,n,y,Number);return null};
_.W.logFloatParseError_=function(){};
_.W.parseAndSetBoolOption_=function(l,D,U,n,y){if(D!="")return 2;djH(l,!0,U,n,y,Boolean);return null};
_.W.logBoolParseError_=function(){};
_.W.parseAndSetStringOption_=function(l,D,U,n,y){if(D=="")return 0;djH(l,D,U,n,y,function(A){return A?"1":""});
return null};
_.W.logStringParseError_=function(){};
_.W.parseAndSetUint64Base64Option_=function(l,D,U,n,y){if(D=="")return 0;djH(l,D,U,n,y,function(A){return A?1:0});
return null};
var XNr=function(l,D){switch(D){case 0:return(0,_.jU)(l.parseAndSetIntOption_,l);case 2:return(0,_.jU)(l.parseAndSetFloatOption_,l);case 3:return(0,_.jU)(l.parseAndSetBoolOption_,l);case 4:return(0,_.jU)(l.parseAndSetStringOption_,l);case 1:return(0,_.jU)(l.parseAndSetUint64Base64Option_,l);default:return function(){}}},Spq=function(l,D){switch(D){case 0:return(0,_.jU)(l.logIntParseError_,l);
case 2:return(0,_.jU)(l.logFloatParseError_,l);case 3:return(0,_.jU)(l.logBoolParseError_,l);case 4:case 1:return(0,_.jU)(l.logStringParseError_,l);default:return function(){}}},ke$=function(l,D,U){this.valueProto_=l;
this.signatureFlagProto_=D;this.JSC$20000_valid_=U};
ke$.prototype.isValid=function(){return this.JSC$20000_valid_};var Oq$=function(l){this.JSC$20001_parser_=null;this.JSC$20001_components_=[];this.JSC$20001_parsedOptions_=null;Kt$(this,l)},cCJ=function(l){l.JSC$20001_parser_==null&&(l.JSC$20001_parser_=new DdJ);
return l.JSC$20001_parser_},Kt$=function(l,D){l.JSC$20001_parsedOptions_=D?typeof D==="string"?cCJ(l).parse(D):D:cCJ(l).parse("")},HB=function(l,D){return l==D?!1:!0};
_.W=Oq$.prototype;_.W.JSC$20003_setCrop=function(l){l=l||void 0;var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,_.qF(U,2),_.qF(D.signatureFlagProto_,2))&&_.qx(U,2,l);return this};
_.W.JSC$20003_setCircleCrop=function(l){l=l||void 0;var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,Rv(U,51),Rv(D.signatureFlagProto_,51))&&_.qx(U,51,l);return this};
_.W.JSC$20003_setImageCrop=function(l){l=l||void 0;var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,Rv(U,32),Rv(D.signatureFlagProto_,32))&&_.qx(U,32,l);return this};
_.W.JSC$20003_setHeight=function(l){var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,U.getHeight(),D.signatureFlagProto_.getHeight())&&_.X9(U,13,l);return this};
_.W.setCenterCrop=function(l){l=l||void 0;var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,_.qF(U,20),_.qF(D.signatureFlagProto_,20))&&U.setCenterCrop(l);return this};
_.W.JSC$20003_setSmartCrop=function(l){l=l||void 0;var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,_.qF(U,19),_.qF(D.signatureFlagProto_,19))&&_.qx(U,19,l);return this};
_.W.JSC$20003_setPad=function(l){l=l||void 0;var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,Rv(U,60),Rv(D.signatureFlagProto_,60))&&_.qx(U,60,l);return this};
_.W.JSC$20003_setSmartCropUseFace=function(l){l=l||void 0;var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,_.qF(U,67),_.qF(D.signatureFlagProto_,67))&&_.qx(U,67,l);return this};
_.W.JSC$20003_setSmartCropNoClip=function(l){l=l||void 0;var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,_.qF(U,52),_.qF(D.signatureFlagProto_,52))&&_.qx(U,52,l);return this};
_.W.setSize=function(l){var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,U.getSize(),D.signatureFlagProto_.getSize())&&U.setSize(l);return this};
_.W.setToken=function(l){l=l||void 0;var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,U.getToken(),D.signatureFlagProto_.getToken())&&U.setToken(l);return this};
_.W.JSC$20003_setWidth=function(l){var D=this.JSC$20001_parsedOptions_,U=D.valueProto_;HB(l,U.getWidth(),D.signatureFlagProto_.getWidth())&&_.X9(U,12,l);return this};
_.W.clearOptions=function(){Kt$(this,"");return this};
_.W.build=function(){this.JSC$20001_components_.length=0;var l=this.JSC$20001_parsedOptions_,D=l.valueProto_;l=l.signatureFlagProto_;Y6(this,"s",D.getSize(),l.getSize());Y6(this,"w",D.getWidth(),l.getWidth());Ok(this,"c",_.qF(D,2),_.qF(l,2));Ok(this,"d",_.qF(D,3),_.qF(l,3));Y6(this,"h",D.getHeight(),l.getHeight());Ok(this,"s",Rv(D,33),Rv(l,33));Ok(this,"h",D.getHtml(),l.getHtml());Ok(this,"p",_.qF(D,19),_.qF(l,19));Ok(this,"pp",_.qF(D,52),_.qF(l,52));Ok(this,"pf",_.qF(D,67),_.qF(l,67));Ok(this,"n",
_.qF(D,20),_.qF(l,20));Y6(this,"r",ZK(D,26),ZK(l,26));Ok(this,"r",_.qF(D,6),_.qF(l,6));Ok(this,"o",Rv(D,27),Rv(l,27));var U=_.Lh(D,7,_.Ch);VN(this,"o",U,_.Lh(l,7,_.Ch));U=_.Lh(D,29,_.Ch);VN(this,"j",U,_.Lh(l,29,_.Ch));Y6(this,"x",ZK(D,9),ZK(l,9));Y6(this,"y",ZK(D,10),ZK(l,10));Y6(this,"z",ZK(D,11),ZK(l,11));Ok(this,"g",_.qF(D,14),_.qF(l,14));Y6(this,"e",ZK(D,15),ZK(l,15));VN(this,"f",_.Xt(D,16),_.Xt(l,16));Ok(this,"k",Rv(D,17),Rv(l,17));Ok(this,"u",Rv(D,18),!0);Ok(this,"ut",Rv(D,45),!0);Ok(this,"i",
Rv(D,22),!0);Ok(this,"a",Rv(D,21),Rv(l,21));Ok(this,"b",_.qF(D,23),_.qF(l,23));Y6(this,"b",ZK(D,38),ZK(l,38));Y6(this,"c",ZK(D,39),ZK(l,39),16,8);VN(this,"q",_.Xt(D,28),_.Xt(l,28));Ok(this,"fh",Rv(D,30),Rv(l,30));Ok(this,"fv",Rv(D,31),Rv(l,31));Ok(this,"fg",_.qF(D,34),_.qF(l,34));Ok(this,"ci",Rv(D,32),Rv(l,32));VN(this,"t",D.getToken(),l.getToken());VN(this,"nt0",_.Xt(D,36),_.Xt(l,36));Ok(this,"rw",_.qF(D,35),_.qF(l,35));Ok(this,"rwu",_.qF(D,41),_.qF(l,41));Ok(this,"rwa",_.qF(D,64),_.qF(l,64));Ok(this,
"nw",_.qF(D,48),_.qF(l,48));Ok(this,"rh",_.qF(D,49),_.qF(l,49));Ok(this,"no",_.qF(D,37),_.qF(l,37));Ok(this,"ns",Rv(D,40),Rv(l,40));Y6(this,"k",ZK(D,42),ZK(l,42));Y6(this,"p",ZK(D,43),ZK(l,43));Y6(this,"l",ZK(D,44),ZK(l,44));Y6(this,"v",ZK(D,62),ZK(l,62));Ok(this,"nu",Rv(D,46),Rv(l,46));Ok(this,"ft",Rv(D,50),Rv(l,50));Ok(this,"cc",Rv(D,51),Rv(l,51));Ok(this,"nd",Rv(D,53),Rv(l,53));Ok(this,"ip",Rv(D,54),Rv(l,54));Ok(this,"nc",Rv(D,55),Rv(l,55));Y6(this,"a",ZK(D,56),ZK(l,56));Ok(this,"rj",Rv(D,57),
Rv(l,57));Ok(this,"rp",Rv(D,58),Rv(l,58));Ok(this,"rg",Rv(D,59),Rv(l,59));Ok(this,"pd",Rv(D,60),Rv(l,60));Ok(this,"pa",Rv(D,61),Rv(l,61));Y6(this,"m",ZK(D,63),ZK(l,63));Y6(this,"vb",eT(D,68),eT(l,68));Y6(this,"vl",eT(D,69),eT(l,69));Ok(this,"lf",Rv(D,65),Rv(l,65));Ok(this,"mv",Rv(D,66),Rv(l,66));Ok(this,"id",Rv(D,70),Rv(l,70));Y6(this,"ic",ZK(D,71),!0);Ok(this,"pg",_.qF(D,72),_.qF(l,72));Ok(this,"mo",Rv(D,73),Rv(l,73));Ok(this,"al",Rv(D,74),Rv(l,74));Y6(this,"iv",eT(D,75),eT(l,75));Y6(this,"pi",mf(D,
76),mf(l,76));Y6(this,"ya",mf(D,77),mf(l,77));Y6(this,"ro",mf(D,78),mf(l,78));Y6(this,"fo",mf(D,79),mf(l,79));Ok(this,"df",Rv(D,80),Rv(l,80));VN(this,"mm",_.Xt(D,81),_.Xt(l,81));Ok(this,"sg",Rv(D,82),Rv(l,82));Ok(this,"gd",Rv(D,83),Rv(l,83));Ok(this,"fm",Rv(D,84),Rv(l,84));Y6(this,"ba",ZK(D,85),ZK(l,85));Y6(this,"br",ZK(D,86),ZK(l,86));Y6(this,"bc",D.getBackgroundColor(),l.getBackgroundColor(),16,8);Y6(this,"pc",ZK(D,88),ZK(l,88),16,8);Y6(this,"sc",ZK(D,89),ZK(l,89),16,8);Ok(this,"dv",Rv(D,90),Rv(l,
90));Ok(this,"md",Rv(D,91),Rv(l,91));Y6(this,"cp",ZK(D,92),ZK(l,92));Ok(this,"sm",Rv(D,93),Rv(l,93));Y6(this,"cv",ZK(D,94),ZK(l,94));Ok(this,"ng",Rv(D,95),Rv(l,95));Ok(this,"il",Rv(D,96),Rv(l,96));Ok(this,"lo",Rv(D,97),Rv(l,97));Ok(this,"vm",Rv(D,98),Rv(l,98));VN(this,"dc",_.Xt(D,99),_.Xt(l,99));Ok(this,"rf",Rv(D,100),Rv(l,100));VN(this,"vf",_.Xt(D,102),_.Xt(l,102));Ok(this,"ra",_.qF(D,103),_.qF(l,103));Ok(this,"ckm",Rv(D,104),Rv(l,104));Ok(this,"gm",Rv(D,105),Rv(l,105));Ok(this,"ngm",Rv(D,106),Rv(l,
106));Y6(this,"em",ZK(D,107),ZK(l,107));Ok(this,"cr",Rv(D,108),Rv(l,108));Y6(this,"sl",D.getStoryboardLevel(),l.getStoryboardLevel());Y6(this,"sb",ZK(D,110),ZK(l,110));VN(this,"pt",_.Xt(D,111),_.Xt(l,111));VN(this,"gce",_.Xt(D,112),_.Xt(l,112));Ok(this,"tm",Rv(D,113),Rv(l,113));Ok(this,"ntm",Rv(D,114),Rv(l,114));Y6(this,"mp",ZK(D,115),ZK(l,115));return this.JSC$20001_components_.join("-")};
var Y6=function(l,D,U,n,y,A){if(U!=null){var C=y==void 0||y!=10&&y!=16?10:y;U=Number(U).toString(C);y=new MQ5;y.append(C==16?"0x":"");C=y.append;A==void 0?A="":(A-=U.length,A=A<=0?"":(0,_.C8v)("0",A));C.call(y,A);y.append(U);pNP(l,D,y.toString(),!!Number(n))}},Ok=function(l,D,U,n){U&&pNP(l,D,"",!!n)},VN=function(l,D,U,n){U&&pNP(l,D,String(U),!!Number(n))},pNP=function(l,D,U,n){n&&(D=D.charAt(0).toUpperCase()+D.substring(1));
l.JSC$20001_components_.push(D+U)};_.HI(oC,Oq$);_.W=oC.prototype;_.W.JSC$20003_setCrop=function(l){l&&iC(this);return oC.superClass_.JSC$20003_setCrop.call(this,l)};
_.W.JSC$20003_setHeight=function(l){l=l==null||l<0?void 0:l;l!=null&&this.setSize();return oC.superClass_.JSC$20003_setHeight.call(this,l)};
_.W.JSC$20003_setImageCrop=function(l){l&&iC(this);return oC.superClass_.JSC$20003_setImageCrop.call(this,l)};
_.W.JSC$20003_setCircleCrop=function(l){l&&iC(this);return oC.superClass_.JSC$20003_setCircleCrop.call(this,l)};
_.W.setSize=function(l){_.I_(l)&&(l=Math.max(l.width,l.height));l=l==null||l<0?void 0:l;l!=null&&(this.JSC$20003_setWidth(),this.JSC$20003_setHeight());return oC.superClass_.setSize.call(this,l)};
_.W.JSC$20003_setSmartCrop=function(l){l&&iC(this);return oC.superClass_.JSC$20003_setSmartCrop.call(this,l)};
_.W.JSC$20003_setSmartCropNoClip=function(l){l&&iC(this);return oC.superClass_.JSC$20003_setSmartCropNoClip.call(this,l)};
_.W.JSC$20003_setSmartCropUseFace=function(l){l&&iC(this);return oC.superClass_.JSC$20003_setSmartCropUseFace.call(this,l)};
_.W.setCenterCrop=function(l){l&&iC(this);return oC.superClass_.setCenterCrop.call(this,l)};
_.W.JSC$20003_setPad=function(l){l&&iC(this);return oC.superClass_.JSC$20003_setPad.call(this,l)};
_.W.JSC$20003_setWidth=function(l){l=l==null||l<0?void 0:l;l!=null&&this.setSize();return oC.superClass_.JSC$20003_setWidth.call(this,l)};
var xjq=function(l){l.clearOptions();var D=l.JSC$20001_parsedOptions_,U=D.valueProto_;HB(!0,_.qF(U,3),_.qF(D.signatureFlagProto_,3))&&_.qx(U,3,!0);return l},iC=function(l){l.setCenterCrop();
l.JSC$20003_setCircleCrop();l.JSC$20003_setCrop();l.JSC$20003_setImageCrop();l.JSC$20003_setPad();l.JSC$20003_setSmartCrop();l.JSC$20003_setSmartCropNoClip();l.JSC$20003_setSmartCropUseFace()};
oC.prototype.build=function(){var l=this.JSC$20001_parsedOptions_.valueProto_;Rv(l,18)||Rv(l,45)?l.getSize()||this.setSize(0):(l=this.JSC$20001_parsedOptions_.valueProto_,l.getSize()||l.getWidth()||l.getHeight()||(this.setSize(),this.JSC$20003_setHeight(),this.JSC$20003_setWidth(),iC(this)));return oC.superClass_.build.call(this)};var jf5=/^[^\/]*\/\//,FtJ=function(l,D){D=D===void 0?!1:D;this.original_=l;this.originalPrefix_="";(l=this.original_.match(jf5))&&l[0]?(this.originalPrefix_=l[0],l=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):l="http://"+this.original_;this.uri_=_.Dp(l,!0);this.isFreeformUrl_=D;this.JSC$20007_valid_=!0;this.obfuscated_=!1},opW=function(l,D){l.JSC$20009_pathPrefix_=l.JSC$20009_pathPrefix_?l.JSC$20009_pathPrefix_+("/"+D):D},lC=function(l){if(l.JSC$20009_components_==
void 0){var D=l.uri_.getPath().substring(1);
l.JSC$20009_pathPrefix_=null;if(l.isFreeformUrl_){l.JSC$20009_components_=[];if((D.match(/=/g)||[]).length>1)return l.JSC$20007_valid_=!1,l.JSC$20009_components_;var U=D.indexOf("=");U!=-1?(l.JSC$20009_components_.push(D.substr(0,U)),l.JSC$20009_components_.push(D.substr(U+1))):l.JSC$20009_components_.push(D);return l.JSC$20009_components_}l.JSC$20009_components_=D.split("/");D=l.JSC$20009_components_.length;D>2&&l.JSC$20009_components_[0]=="u"&&(opW(l,l.JSC$20009_components_[0]+"/"+l.JSC$20009_components_[1]),
l.JSC$20009_components_.shift(),l.JSC$20009_components_.shift(),D-=2);if(D==0||D==4||D>7)return l.JSC$20007_valid_=!1,l.JSC$20009_components_;if(D==2)opW(l,l.JSC$20009_components_[0]);else if(l.JSC$20009_components_[0]=="image")opW(l,l.JSC$20009_components_[0]);else if(D==7||D==3)return l.JSC$20007_valid_=!1,l.JSC$20009_components_;if(D<=3){l.obfuscated_=!0;D==3&&(opW(l,l.JSC$20009_components_[1]),l.JSC$20009_components_.shift(),--D);--D;U=l.JSC$20009_components_[D];var n=U.indexOf("=");n!=-1&&(l.JSC$20009_components_[D]=
U.substr(0,n),l.JSC$20009_components_.push(U.substr(n+1)))}}return l.JSC$20009_components_};
FtJ.prototype.isValid=function(){lC(this);return this.JSC$20007_valid_};
FtJ.prototype.isObfuscated=function(){lC(this);return this.obfuscated_};
var wN8=function(l){lC(l);return l.isFreeformUrl_},DT=function(l){lC(l);
l.JSC$20009_pathPrefix_==void 0&&(l.JSC$20009_pathPrefix_=null);return l.JSC$20009_pathPrefix_},rCJ=function(l){switch(lC(l).length){case 7:return!0;
case 6:return DT(l)==null;case 5:return!1;case 3:return!0;case 2:return DT(l)==null;case 1:return!1;default:return!1}},UX=function(l,D){if(wN8(l))a:{switch(D){case 7:D=0;
break;case 4:if(!rCJ(l)){l=null;break a}D=1;break;default:l=null;break a}l=lC(l)[D]}else if(l.isObfuscated())a:{var U=DT(l)!=null?1:0;switch(D){case 6:D=U;break;case 4:if(!rCJ(l)){l=null;break a}D=1+U;break;default:l=null;break a}l=lC(l)[D]}else a:{U=DT(l)!=null?1:0;switch(D){case 0:D=U;break;case 1:D=1+U;break;case 2:D=2+U;break;case 3:D=3+U;break;case 4:if(!rCJ(l)){l=null;break a}D=4+U;break;case 5:D=rCJ(l)?1:0;D=4+U+D;break;default:l=null;break a}l=lC(l)[D]}return l};
FtJ.prototype.getOptions=function(){this.options_==void 0&&(this.options_=UX(this,4));return this.options_};var lf8=function(){};
lf8.prototype.parse=function(l,D){return new Vq8(l,D===void 0?!1:D)};
var Vq8=function(l,D){FtJ.call(this,l,D===void 0?!1:D)};
_.Z(Vq8,FtJ);_.HI(Ud$,oC);var i4W;Ud$.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Ud$.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var l=Ud$.superClass_.build.call(this),D=[];DT(this.parsedImageUrl_)!=null&&D.push(DT(this.parsedImageUrl_));var U=wN8(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var n=this.parsedImageUrl_;n.obfuscatedData_==void 0&&(n.obfuscatedData_=UX(n,6));D.push(n.obfuscatedData_+(l?"="+l:""))}else if(U){n=D.push;var y=this.parsedImageUrl_;y.freeformUrlPath_===void 0&&(y.freeformUrlPath_=
UX(y,7));n.call(D,y.freeformUrlPath_);l&&D.push(l)}else n=D.push,y=this.parsedImageUrl_,y.obfuscatedGaiaId_==void 0&&(y.obfuscatedGaiaId_=UX(y,0)),n.call(D,y.obfuscatedGaiaId_),n=D.push,y=this.parsedImageUrl_,y.photoId_==void 0&&(y.photoId_=UX(y,1)),n.call(D,y.photoId_),n=D.push,y=this.parsedImageUrl_,y.imageVersion_==void 0&&(y.imageVersion_=UX(y,2)),n.call(D,y.imageVersion_),n=D.push,y=this.parsedImageUrl_,y.signature_==void 0&&(y.signature_=UX(y,3)),n.call(D,y.signature_),l&&D.push(l),l=D.push,
n=this.parsedImageUrl_,n.filename_==void 0&&(n.filename_=UX(n,5)),l.call(D,n.filename_);D=U?D.join("="):D.join("/");D=_.Dp(this.protocolPrefix_+this.JSC$20015_domain_+"/"+D+(this.JSC$20015_query_?"?"+this.JSC$20015_query_:"")).toString();D.startsWith("%3a//")&&(D=D.replace("%3a//","://"));return D};var z1P=_.wL(["viewBox"]),f2q=_.wL(["width"]),$j2=_.wL(["height"]),Nvv=_.wL(["fill"]),sf8=_.wL(["id"]),Ep8=_.wL(["x"]),Tv$=_.wL(["y"]);nX$.prototype.getLength=function(){return this.parsedData.length};
nX$.prototype.write=function(l){for(var D=0,U=this.parsedData.length;D<U;D++)l.put(this.parsedData[D],8)};
var PqJ=function(l,D){var U=new nX$(D);l.dataList.push(U);U=l.errorCorrectLevel;var n=1,y=encodeURI(D).toString().replace(/%[0-9a-fA-F]{2}/g,"a");D=y.length+(y.length!=D?3:0);y=0;for(var A=nr.length;y<=A;y++){var C=0;switch(U){case 1:C=nr[y][0];break;case 0:C=nr[y][1];break;case 3:C=nr[y][2];break;case 2:C=nr[y][3]}if(D<=C)break;else n++}if(n>nr.length)throw Error("Rk");l.typeNumber=n;l.dataCache=null};
yBq.prototype.isDark=function(l,D){if(l<0||this.moduleCount<=l||D<0||this.moduleCount<=D)throw Error("Jk`"+l+"`"+D);return this.modules[l][D]};
for(var b4P=function(l,D,U){l.moduleCount=l.typeNumber*4+17;l.modules=Array(l.moduleCount);for(var n=0;n<l.moduleCount;n++){l.modules[n]=Array(l.moduleCount);for(var y=0;y<l.moduleCount;y++)l.modules[n][y]=null}I22(l,0,0);I22(l,l.moduleCount-7,0);I22(l,0,l.moduleCount-7);n=Hd$[l.typeNumber-1];for(y=0;y<n.length;y++)for(var A=0;A<n.length;A++){var C=n[y],h=n[A];if(l.modules[C][h]==null)for(var b=-2;b<=2;b++)for(var u=-2;u<=2;u++)l.modules[C+b][h+u]=b==-2||b==2||u==-2||u==2||b==0&&u==0?!0:!1}for(n=
8;n<l.moduleCount-8;n++)l.modules[n][6]==null&&(l.modules[n][6]=n%2==0);for(n=8;n<l.moduleCount-8;n++)l.modules[6][n]==null&&(l.modules[6][n]=n%2==0);n=l.errorCorrectLevel<<3|U;for(y=n<<10;yA(y)-yA(1335)>=0;)y^=1335<<yA(y)-yA(1335);n=(n<<10|y)^21522;for(y=0;y<15;y++)A=!D&&(n>>y&1)==1,y<6?l.modules[y][8]=A:y<8?l.modules[y+1][8]=A:l.modules[l.moduleCount-15+y][8]=A;for(y=0;y<15;y++)A=!D&&(n>>y&1)==1,y<8?l.modules[8][l.moduleCount-y-1]=A:y<9?l.modules[8][15-y-1+1]=A:l.modules[8][15-y-1]=A;l.modules[l.moduleCount-
8][8]=!D;if(l.typeNumber>=7){n=l.typeNumber;for(y=n<<12;yA(y)-yA(7973)>=0;)y^=7973<<yA(y)-yA(7973);n=n<<12|y;for(y=0;y<18;y++)A=!D&&(n>>y&1)==1,l.modules[Math.floor(y/3)][y%3+l.moduleCount-8-3]=A;for(y=0;y<18;y++)A=!D&&(n>>y&1)==1,l.modules[y%3+l.moduleCount-8-3][Math.floor(y/3)]=A}if(l.dataCache==null){y=l.typeNumber;A=l.dataList;D=l.errorCorrectLevel;n=Yp5(y,D);if(n==void 0)throw Error("Qk`"+y+"`"+D);C=n.length/3;D=[];for(h=0;h<C;h++){b=n[h*3];u=n[h*3+1];for(var Q=n[h*3+2],G=0;G<b;G++)D.push(new ABT(u,
Q))}n=new WGr;for(C=0;C<A.length;C++)h=A[C],n.put(h.mode,4),n.put(h.getLength(),Odv(h.mode,y)),h.write(n);for(C=y=0;C<D.length;C++)y+=D[C].dataCount;if(n.length>y*8)throw Error("Kk`"+n.length+"`"+y*8);for(n.length+4<=y*8&&n.put(0,4);n.length%8!=0;)Vp$(n,!1);for(;!(n.length>=y*8);){n.put(236,8);if(n.length>=y*8)break;n.put(17,8)}A=y=u=0;C=Array(D.length);h=Array(D.length);for(b=0;b<D.length;b++){G=D[b].dataCount;var J=D[b].totalCount-G;y=Math.max(y,G);A=Math.max(A,J);C[b]=Array(G);for(Q=0;Q<C[b].length;Q++)C[b][Q]=
255&n.buffer[Q+u];u+=G;Q=J;G=new w4([1],0);for(J=0;J<Q;J++)G=G.multiply(new w4([1,i$J(J)],0));Q=G;G=(new w4(C[b],Q.getLength()-1)).mod(Q);h[b]=Array(Q.getLength()-1);for(Q=0;Q<h[b].length;Q++)J=Q+G.getLength()-h[b].length,h[b][Q]=J>=0?G.get(J):0}for(Q=n=0;Q<D.length;Q++)n+=D[Q].totalCount;n=Array(n);for(Q=u=0;Q<y;Q++)for(b=0;b<D.length;b++)Q<C[b].length&&(n[u++]=C[b][Q]);for(Q=0;Q<A;Q++)for(b=0;b<D.length;b++)Q<h[b].length&&(n[u++]=h[b][Q]);l.dataCache=n}D=l.dataCache;n=-1;y=l.moduleCount-1;A=7;C=
0;for(h=l.moduleCount-1;h>0;h-=2)for(h==6&&h--;;){for(b=0;b<2;b++)l.modules[y][h-b]==null&&(u=!1,C<D.length&&(u=(D[C]>>>A&1)==1),l8P(U,y,h-b)&&(u=!u),l.modules[y][h-b]=u,A--,A==-1&&(C++,A=7));y+=n;if(y<0||l.moduleCount<=y){y-=n;n=-n;break}}},I22=function(l,D,U){for(var n=-1;n<=7;n++)if(!(D+n<=-1||l.moduleCount<=D+n))for(var y=-1;y<=7;y++)U+y<=-1||l.moduleCount<=U+y||(l.modules[D+n][U+y]=0<=n&&n<=6&&(y==0||y==6)||0<=y&&y<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=y&&y<=4?!0:!1)},gXW=function(l){for(var D=0,
U=0,n=0;n<8;n++){b4P(l,!0,n);
var y=l;for(var A=y.moduleCount,C=0,h=0;h<A;h++)for(var b=0;b<A;b++){for(var u=0,Q=y.isDark(h,b),G=-1;G<=1;G++)if(!(h+G<0||A<=h+G))for(var J=-1;J<=1;J++)b+J<0||A<=b+J||(G!=0||J!=0)&&Q==y.isDark(h+G,b+J)&&u++;u>5&&(C+=3+u-5)}for(h=0;h<A-1;h++)for(b=0;b<A-1;b++)if(u=0,y.isDark(h,b)&&u++,y.isDark(h+1,b)&&u++,y.isDark(h,b+1)&&u++,y.isDark(h+1,b+1)&&u++,u==0||u==4)C+=3;for(h=0;h<A;h++)for(b=0;b<A-6;b++)y.isDark(h,b)&&!y.isDark(h,b+1)&&y.isDark(h,b+2)&&y.isDark(h,b+3)&&y.isDark(h,b+4)&&!y.isDark(h,b+5)&&
y.isDark(h,b+6)&&(C+=40);for(b=0;b<A;b++)for(h=0;h<A-6;h++)y.isDark(h,b)&&!y.isDark(h+1,b)&&y.isDark(h+2,b)&&y.isDark(h+3,b)&&y.isDark(h+4,b)&&!y.isDark(h+5,b)&&y.isDark(h+6,b)&&(C+=40);for(b=u=0;b<A;b++)for(h=0;h<A;h++)y.isDark(h,b)&&u++;y=C+=Math.abs(100*u/A/A-50)/5*10;if(n==0||D>y)D=y,U=n}return U},Hd$=[[],
[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]],yA=function(l){for(var D=0;l!=0;)D++,l>>>=1;return D},l8P=function(l,D,U){switch(l){case 0:return(D+U)%2==0;
case 1:return D%2==0;case 2:return U%3==0;case 3:return(D+U)%3==0;case 4:return(Math.floor(D/2)+Math.floor(U/3))%2==0;case 5:return D*U%2+D*U%3==0;case 6:return(D*U%2+D*U%3)%2==0;case 7:return(D*U%3+(D+U)%2)%2==0;default:throw Error("Lk`"+l);}},Odv=function(l,D){if(1<=D&&D<10)switch(l){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Mk`"+l);}else if(D<27)switch(l){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Mk`"+l);}else if(D<41)switch(l){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Mk`"+l);}else throw Error("Nk`"+D);},UOr=function(l){if(l<1)throw Error("Ok`"+l);
return DOw[l]},i$J=function(l){for(;l<0;)l+=255;
for(;l>=256;)l-=255;return Ao[l]},Ao=Array(256),DOw=Array(256),nkH=0;nkH<8;nkH++)Ao[nkH]=1<<nkH;
for(var Wj=8;Wj<256;Wj++)Ao[Wj]=Ao[Wj-4]^Ao[Wj-5]^Ao[Wj-6]^Ao[Wj-8];for(var y9P=0;y9P<255;y9P++)DOw[Ao[y9P]]=y9P;w4.prototype.get=function(l){return this.num[l]};
w4.prototype.getLength=function(){return this.num.length};
w4.prototype.multiply=function(l){for(var D=Array(this.getLength()+l.getLength()-1),U=0;U<this.getLength();U++)for(var n=0;n<l.getLength();n++)D[U+n]^=i$J(UOr(this.get(U))+UOr(l.get(n)));return new w4(D,0)};
w4.prototype.mod=function(l){if(this.getLength()-l.getLength()<0)return this;for(var D=UOr(this.get(0))-UOr(l.get(0)),U=Array(this.getLength()),n=0;n<this.getLength();n++)U[n]=this.get(n);for(n=0;n<l.getLength();n++)U[n]^=i$J(UOr(l.get(n))+D);return(new w4(U,0)).mod(l)};
var A9J=[[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]],Yp5=function(l,D){switch(D){case 1:return A9J[(l-1)*4];case 0:return A9J[(l-1)*4+1];case 3:return A9J[(l-1)*4+2];case 2:return A9J[(l-1)*4+3]}};
WGr.prototype.get=function(l){return(this.buffer[Math.floor(l/8)]>>>7-l%8&1)==1};
WGr.prototype.put=function(l,D){for(var U=0;U<D;U++)Vp$(this,(l>>>D-U-1&1)==1)};
var Vp$=function(l,D){var U=Math.floor(l.length/8);l.buffer.length<=U&&l.buffer.push(0);D&&(l.buffer[U]|=128>>>l.length%8);l.length++},nr=[[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]],hWT=function(){var l=function(D,U){this.JSC$20035__el=D;this.JSC$20035__htOption=U};
l.prototype.draw=function(D){function U(Q,G){Q=document.createElementNS("http://www.w3.org/2000/svg",Q);for(var J in G)G.hasOwnProperty(J)&&(J==="href"?_.kIP(Q,G[J]):_.hv([_.QK(z1P),_.QK(f2q),_.QK($j2),_.QK(Nvv),_.QK(sf8),_.QK(Ep8),_.QK(Tv$)],Q,J,G[J]));return Q}
var n=this.JSC$20035__htOption,y=this.JSC$20035__el,A=D.moduleCount;this.clear();var C=U("svg",{viewBox:"0 0 "+String(A)+" "+String(A),width:"100%",height:"100%",fill:n.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});y.appendChild(C);C.appendChild(U("rect",{fill:n.colorLight,width:"100%",height:"100%"}));C.appendChild(U("rect",{fill:n.colorDark,width:"1",height:"1",id:"template"}));for(var h=0;h<A;h++)for(var b=0;b<A;b++)if(D.isDark(h,b)){var u=U("use",{x:String(h),y:String(b),href:"#template"});
C.appendChild(u)}};
l.prototype.clear=function(){for(;this.JSC$20035__el.hasChildNodes();)this.JSC$20035__el.removeChild(this.JSC$20035__el.lastChild)};
return l}(),CqJ=document.documentElement.tagName.toLowerCase()==="svg"?hWT:typeof CanvasRenderingContext2D!="undefined"?function(){var l=function(D,U){this._bIsPainted=!1;
Bk5();this.JSC$20035__htOption=U;this._elCanvas=document.createElement("canvas");this._elCanvas.width=U.width;this._elCanvas.height=U.height;D.appendChild(this._elCanvas);this.JSC$20035__el=D;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$20035__el.appendChild(this._elImage);this._bSupportDataURI=null};
l.prototype._onMakeImage=function(){var D=this._elCanvas.toDataURL("image/png");this._elImage.src=D;this._elImage.style.display="block";this._elCanvas.style.display="none"};
l.prototype._safeSetDataURI=function(D,U){var n=this;n._fFail=U;n._fSuccess=D;n._bSupportDataURI===null?(D=_.SU("IMG"),U=function(){n._bSupportDataURI=!1;n._fFail&&n._fFail.call(n)},D.onabort=U,D.onerror=U,D.onload=function(){n._bSupportDataURI=!0;
n._fSuccess&&n._fSuccess.call(n)},D.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):n._bSupportDataURI===!0&&n._fSuccess?n._fSuccess.call(n):n._bSupportDataURI===!1&&n._fFail&&n._fFail.call(n)};
l.prototype.draw=function(D){var U=this._oContext,n=this.JSC$20035__htOption,y=D.moduleCount,A=n.width/y,C=n.height/y,h=Math.round(A),b=Math.round(C);this._elImage.style.display="none";this.clear();for(var u=0;u<y;u++)for(var Q=0;Q<y;Q++){var G=D.isDark(u,Q),J=Q*A,L=u*C;U.strokeStyle=G?n.colorDark:n.colorLight;U.lineWidth=1;U.fillStyle=G?n.colorDark:n.colorLight;U.fillRect(J,L,A,C);U.strokeRect(Math.floor(J)+.5,Math.floor(L)+.5,h,b);U.strokeRect(Math.ceil(J)-.5,Math.ceil(L)-.5,h,b)}this._bIsPainted=
!0};
l.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
l.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
l.prototype.round=function(D){return D?Math.floor(D*1E3)/1E3:D};
return l}():function(){var l=function(D,U){this.JSC$20035__el=D;
this.JSC$20035__htOption=U};
l.prototype.draw=function(D){for(var U=this.JSC$20035__htOption,n=this.JSC$20035__el,y=D.moduleCount,A=Math.floor(U.width/y),C=Math.floor(U.height/y),h=['<table style="border:0;border-collapse:collapse;">'],b=0;b<y;b++){h.push("<tr>");for(var u=0;u<y;u++)h.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+A+"px;height:"+C+"px;background-color:"+(D.isDark(b,u)?U.colorDark:U.colorLight)+';"></td>');h.push("</tr>")}h.push("</table>");D=h.join("");D=_.Vc7(_.lUy,D);_.Cz(n,D);
D=n.childNodes[0];y=(U.width-D.offsetWidth)/2;A=(U.height-D.offsetHeight)/2;y>0&&A>0&&(D.style.margin=A+"px "+y+"px")};
l.prototype.clear=function(){this.JSC$20035__el.textContent=""};
return l}();
uZT.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20038__android||this.JSC$20038__android>=3)&&this._oDrawing.makeImage()};
uZT.prototype.clear=function(){this._oDrawing.clear()};
_.nC.QRCode=uZT;var WP$={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var B9T=function(){};
B9T.prototype.stringify=function(l){return _.nC.JSON.stringify(l,void 0)};
B9T.prototype.parse=function(l){return _.nC.JSON.parse(l,void 0)};var CaW=function(){_.Zz.call(this,"z")};
_.HI(CaW,_.Zz);var hZH=function(){_.Zz.call(this,"y")};
_.HI(hZH,_.Zz);var Pa$=null,b$$=function(){return Pa$=Pa$||new _.Xa},gk8=function(l){_.Zz.call(this,"serverreachability",l)};
_.HI(gk8,_.Zz);var uuT=function(l){var D=b$$();D.dispatchEvent(new gk8(D,l))},vk5=function(l,D){_.Zz.call(this,"statevent",l);
this.stat=D};
_.HI(vk5,_.Zz);var Bj=function(l){var D=b$$();D.dispatchEvent(new vk5(D,l))},Q4H=function(l,D,U,n){_.Zz.call(this,"timingevent",l);
this.size=D;this.rtt=U;this.retries=n};
_.HI(Q4H,_.Zz);var G95=function(l,D,U){var n=b$$();n.dispatchEvent(new Q4H(n,l,D,U))},J9T=function(l,D){if(typeof l!=="function")throw Error("Sk");
return _.nC.setTimeout(function(){l()},D)};var Cr=function(){this.redactEnabled_=!0};
Cr.prototype.disableRedact=function(){this.redactEnabled_=!1};
var LP2=function(l,D,U,n,y,A){l.info(function(){if(l.redactEnabled_)if(A){var C="";for(var h=A.split("&"),b=0;b<h.length;b++){var u=h[b].split("=");if(u.length>1){var Q=u[0];u=u[1];var G=Q.split("_");C=G.length>=2&&G[1]=="type"?C+(Q+"="+u+"&"):C+(Q+"=redacted&")}}}else C=null;else C=A;return"XMLHTTP REQ ("+n+") [attempt "+y+"]: "+D+"\n"+U+"\n"+C})},q0T=function(l,D,U,n,y,A,C){l.info(function(){return"XMLHTTP RESP ("+n+") [ attempt "+y+"]: "+D+"\n"+U+"\n"+A+" "+C})},ho=function(l,D,U,n){l.info(function(){return"XMLHTTP TEXT ("+
D+"): "+My$(l,U)+(n?" "+n:"")})},RZJ=function(l,D){l.info(function(){return"TIMEOUT: "+D})};
Cr.prototype.debug=function(){};
Cr.prototype.info=function(){};
Cr.prototype.warning=function(){};
var My$=function(l,D){if(!l.redactEnabled_)return D;if(!D)return null;try{var U=JSON.parse(D);if(U)for(var n=0;n<U.length;n++)if(Array.isArray(U[n])){var y=U[n];if(!(y.length<2)){var A=y[1];if(Array.isArray(A)&&!(A.length<1)){var C=A[0];if(C!="noop"&&C!="stop"&&C!="close")for(var h=1;h<A.length;h++)A[h]=""}}}return(0,_.xN)(U)}catch(b){return l.debug("Exception parsing expected JS array - probably was not JS"),D}};var Pj=function(l,D,U,n,y){this.JSC$20060_channel_=l;this.JSC$20060_channelDebug_=D;this.sid_=U;this.JSC$20060_rid_=n;this.JSC$20060_retryId_=y||1;this.JSC$20060_eventHandler_=new _.ZB(this);this.timeout_=45E3;this.JSC$20060_extraHeaders_=null;this.JSC$20060_successful_=!1;this.JSC$20060_postData_=this.JSC$20060_requestUri_=this.JSC$20060_baseUri_=this.JSC$20060_type_=this.JSC$20060_requestStartTime_=this.JSC$20060_watchDogTimeoutTime_=this.JSC$20060_watchDogTimerId_=null;this.JSC$20060_pendingMessages_=
[];this.JSC$20060_xmlHttp_=null;this.JSC$20060_xmlHttpChunkStart_=0;this.JSC$20060_lastError_=this.JSC$20060_verb_=null;this.JSC$20060_lastStatusCode_=-1;this.JSC$20060_cancelled_=!1;this.JSC$20060_readyStateChangeThrottleMs_=0;this.JSC$20060_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Z$r},Z$r=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},eZP=function(l,D){switch(l){case 0:return"Non-200 return code ("+D+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},mOP={},a88={};
Pj.prototype.setTimeout=function(l){this.timeout_=l};
var XOT=function(l,D,U){l.JSC$20060_type_=1;l.JSC$20060_baseUri_=_.uo(D.clone());l.JSC$20060_postData_=U;l.decodeChunks_=!0;ty8(l,null)},ty8=function(l,D){l.JSC$20060_requestStartTime_=Date.now();
S05(l);l.JSC$20060_requestUri_=l.JSC$20060_baseUri_.clone();y85(l.JSC$20060_requestUri_,"t",l.JSC$20060_retryId_);l.JSC$20060_xmlHttpChunkStart_=0;var U=l.JSC$20060_channel_.JSC$20079_supportsCrossDomainXhrs_;l.fetchResponseState_=new Z$r;l.JSC$20060_xmlHttp_=k9r(l.JSC$20060_channel_,U?D:null,!l.JSC$20060_postData_);l.JSC$20060_readyStateChangeThrottleMs_>0&&(l.JSC$20060_readyStateChangeThrottle_=new _.A1((0,_.jU)(l.JSC$20064_xmlHttpHandler_,l,l.JSC$20060_xmlHttp_),l.JSC$20060_readyStateChangeThrottleMs_));
l.JSC$20060_eventHandler_.listen(l.JSC$20060_xmlHttp_,"readystatechange",l.JSC$20064_readyStateChangeHandler_);D=l.JSC$20060_extraHeaders_?_.we.clone(l.JSC$20060_extraHeaders_):{};l.JSC$20060_postData_?(l.JSC$20060_verb_||(l.JSC$20060_verb_="POST"),D["Content-Type"]="application/x-www-form-urlencoded",l.JSC$20060_xmlHttp_.send(l.JSC$20060_requestUri_,l.JSC$20060_verb_,l.JSC$20060_postData_,D)):(l.JSC$20060_verb_="GET",l.JSC$20060_xmlHttp_.send(l.JSC$20060_requestUri_,l.JSC$20060_verb_,null,D));uuT(1);
LP2(l.JSC$20060_channelDebug_,l.JSC$20060_verb_,l.JSC$20060_requestUri_,l.JSC$20060_rid_,l.JSC$20060_retryId_,l.JSC$20060_postData_)};
Pj.prototype.JSC$20064_readyStateChangeHandler_=function(l){l=l.target;var D=this.JSC$20060_readyStateChangeThrottle_;D&&_.Fa(l)==3?(this.JSC$20060_channelDebug_.debug("Throttling readystatechange."),D.fire()):this.JSC$20064_xmlHttpHandler_(l)};
Pj.prototype.JSC$20064_xmlHttpHandler_=function(l){try{l==this.JSC$20060_xmlHttp_?dOq(this):this.JSC$20060_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(D){this.JSC$20060_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),KP5(this)}finally{}};
var dOq=function(l){var D=_.Fa(l.JSC$20060_xmlHttp_),U=l.JSC$20060_xmlHttp_.JSC$9877_lastErrorCode_,n=l.JSC$20060_xmlHttp_.getStatus();if(!(D<3||D==3&&!KP5(l))){l.JSC$20060_cancelled_||D!=4||U==7||(U==8||n<=0?uuT(3):uuT(2));c98(l);var y=l.JSC$20060_xmlHttp_.getStatus();l.JSC$20060_lastStatusCode_=y;U=pOw(l);KP5(l)||l.JSC$20060_channelDebug_.debug(function(){return"No response text for uri "+l.JSC$20060_requestUri_+" status "+y});
l.JSC$20060_successful_=y==200;q0T(l.JSC$20060_channelDebug_,l.JSC$20060_verb_,l.JSC$20060_requestUri_,l.JSC$20060_rid_,l.JSC$20060_retryId_,D,y);if(l.JSC$20060_successful_){if(l.decodeInitialResponse_&&!l.initialResponseDecoded_)if(n=xOr(l))ho(l.JSC$20060_channelDebug_,l.JSC$20060_rid_,n,"Initial handshake response via X-HTTP-Initial-Response"),l.initialResponseDecoded_=!0,j42(l,n);else{l.JSC$20060_successful_=!1;l.JSC$20060_lastError_=3;Bj(12);l.JSC$20060_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
l.JSC$20060_rid_+")");bC(l);FP2(l);return}l.decodeChunks_?ok8(l,D,U):(ho(l.JSC$20060_channelDebug_,l.JSC$20060_rid_,U,null),j42(l,U));D==4&&bC(l);l.JSC$20060_successful_&&!l.JSC$20060_cancelled_&&(D==4?wO2(l.JSC$20060_channel_,l):(l.JSC$20060_successful_=!1,S05(l)))}else UH8(l.JSC$20060_xmlHttp_),y==400&&U.indexOf("Unknown SID")>0?(l.JSC$20060_lastError_=3,Bj(12),l.JSC$20060_channelDebug_.warning("XMLHTTP Unknown SID ("+l.JSC$20060_rid_+")")):(l.JSC$20060_lastError_=0,Bj(13),l.JSC$20060_channelDebug_.warning("XMLHTTP Bad status "+
y+" ("+l.JSC$20060_rid_+")")),bC(l),FP2(l)}},xOr=function(l){return l.JSC$20060_xmlHttp_&&(l=Eow(l.JSC$20060_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.hd(l)?l:null},pOw=function(l){if(!r9J(l))return l.JSC$20060_xmlHttp_.getResponseText();
var D=l.JSC$20060_xmlHttp_.getResponse();if(D==="")return"";var U="",n=D.length,y=_.Fa(l.JSC$20060_xmlHttp_)==4;if(!l.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return bC(l),FP2(l),"";l.fetchResponseState_.textDecoder=new _.nC.TextDecoder}for(var A=0;A<n;A++)l.fetchResponseState_.responseArrivedForFetch=!0,U+=l.fetchResponseState_.textDecoder.decode(D[A],{stream:!(y&&A==n-1)});D.length=0;l.fetchResponseState_.responseBuffer+=U;l.JSC$20060_xmlHttpChunkStart_=0;return l.fetchResponseState_.responseBuffer},
KP5=function(l){return l.JSC$20060_xmlHttp_?l.fetchResponseState_.responseArrivedForFetch?!0:!(!l.JSC$20060_xmlHttp_.getResponseText()&&!l.JSC$20060_xmlHttp_.getResponse()):!1},r9J=function(l){return l.JSC$20060_xmlHttp_?l.JSC$20060_verb_=="GET"&&l.JSC$20060_type_!=2&&l.JSC$20060_channel_.usesFetchStreams_:!1},ok8=function(l,D,U){for(var n=!0,y;!l.JSC$20060_cancelled_&&l.JSC$20060_xmlHttpChunkStart_<U.length;)if(y=zZq(l,U),y==a88){D==4&&(l.JSC$20060_lastError_=4,Bj(14),n=!1);
ho(l.JSC$20060_channelDebug_,l.JSC$20060_rid_,null,"[Incomplete Response]");break}else if(y==mOP){l.JSC$20060_lastError_=4;Bj(15);ho(l.JSC$20060_channelDebug_,l.JSC$20060_rid_,U,"[Invalid Chunk]");n=!1;break}else ho(l.JSC$20060_channelDebug_,l.JSC$20060_rid_,y,null),j42(l,y);r9J(l)&&l.JSC$20060_xmlHttpChunkStart_!=0&&(l.fetchResponseState_.responseBuffer=l.fetchResponseState_.responseBuffer.slice(l.JSC$20060_xmlHttpChunkStart_),l.JSC$20060_xmlHttpChunkStart_=0);D!=4||U.length!=0||l.fetchResponseState_.responseArrivedForFetch||
(l.JSC$20060_lastError_=1,Bj(16),n=!1);l.JSC$20060_successful_=l.JSC$20060_successful_&&n;n?U.length>0&&!l.firstByteReceived_&&(l.firstByteReceived_=!0,D=l.JSC$20060_channel_,D.JSC$20079_backChannelRequest_==l&&D.detectBufferingProxy_&&!D.bpDetectionDone_&&(D.JSC$20079_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+U.length),f8$(D),D.bpDetectionDone_=!0,Bj(11))):(ho(l.JSC$20060_channelDebug_,l.JSC$20060_rid_,U,"[Invalid Chunked Response]"),bC(l),FP2(l))},zZq=function(l,
D){var U=l.JSC$20060_xmlHttpChunkStart_,n=D.indexOf("\n",U);
if(n==-1)return a88;U=Number(D.substring(U,n));if(isNaN(U))return mOP;n+=1;if(n+U>D.length)return a88;D=D.slice(n,n+U);l.JSC$20060_xmlHttpChunkStart_=n+U;return D};
Pj.prototype.cancel=function(){this.JSC$20060_cancelled_=!0;bC(this)};
var S05=function(l){l.JSC$20060_watchDogTimeoutTime_=Date.now()+l.timeout_;$O2(l,l.timeout_)},$O2=function(l,D){if(l.JSC$20060_watchDogTimerId_!=null)throw Error("Tk");
l.JSC$20060_watchDogTimerId_=J9T((0,_.jU)(l.JSC$20064_onWatchDogTimeout_,l),D)},c98=function(l){l.JSC$20060_watchDogTimerId_&&(_.nC.clearTimeout(l.JSC$20060_watchDogTimerId_),l.JSC$20060_watchDogTimerId_=null)};
Pj.prototype.JSC$20064_onWatchDogTimeout_=function(){this.JSC$20060_watchDogTimerId_=null;var l=Date.now();l-this.JSC$20060_watchDogTimeoutTime_>=0?(RZJ(this.JSC$20060_channelDebug_,this.JSC$20060_requestUri_),this.JSC$20060_type_!=2&&(uuT(3),Bj(17)),bC(this),this.JSC$20060_lastError_=2,FP2(this)):(this.JSC$20060_channelDebug_.warning("WatchDog timer called too early"),$O2(this,this.JSC$20060_watchDogTimeoutTime_-l))};
var FP2=function(l){l.JSC$20060_channel_.state_==0||l.JSC$20060_cancelled_||wO2(l.JSC$20060_channel_,l)},bC=function(l){c98(l);
_.WE(l.JSC$20060_readyStateChangeThrottle_);l.JSC$20060_readyStateChangeThrottle_=null;l.JSC$20060_eventHandler_.removeAll();if(l.JSC$20060_xmlHttp_){var D=l.JSC$20060_xmlHttp_;l.JSC$20060_xmlHttp_=null;D.abort();D.dispose()}};
Pj.prototype.getLastError=function(){return this.JSC$20060_lastError_};
var j42=function(l,D){try{var U=l.JSC$20060_channel_;if(U.state_!=0&&(U.JSC$20079_backChannelRequest_==l||N9$(U.forwardChannelRequestPool_,l)))if(!l.initialResponseDecoded_&&N9$(U.forwardChannelRequestPool_,l)&&U.state_==3){try{var n=U.wireCodec_.JSC$20074_parser_.parse(D)}catch(h){n=null}if(Array.isArray(n)&&n.length==3){D=n;if(D[0]==0)a:if(U.JSC$20079_channelDebug_.debug("Server claims our backchannel is missing."),U.JSC$20079_backChannelTimerId_)U.JSC$20079_channelDebug_.debug("But we are currently starting the request.");
else{if(U.JSC$20079_backChannelRequest_)if(U.JSC$20079_backChannelRequest_.JSC$20060_requestStartTime_+3E3<l.JSC$20060_requestStartTime_)s4P(U),EkP(U);else break a;else U.JSC$20079_channelDebug_.warning("We do not have a BackChannel established");T95(U);Bj(18)}else{U.JSC$20079_lastPostResponseArrayId_=D[1];var y=U.JSC$20079_lastPostResponseArrayId_-U.JSC$20079_lastArrayId_;if(0<y){var A=D[2];U.JSC$20079_channelDebug_.debug(A+" bytes (in "+y+" arrays) are outstanding on the BackChannel");A<37500&&
U.enableStreaming_&&U.JSC$20079_backChannelRetryCount_==0&&!U.JSC$20079_deadBackChannelTimerId_&&(U.JSC$20079_deadBackChannelTimerId_=J9T((0,_.jU)(U.JSC$20081_onBackChannelDead_,U),6E3))}}if(I8q(U.forwardChannelRequestPool_)<=1&&U.forwardChannelFlushedCallback_){try{U.forwardChannelFlushedCallback_()}catch(h){}U.forwardChannelFlushedCallback_=void 0}}else U.JSC$20079_channelDebug_.debug("Bad POST response data returned"),gB(U,11)}else if((l.initialResponseDecoded_||U.JSC$20079_backChannelRequest_==
l)&&s4P(U),!_.hd(D)){var C=U.wireCodec_.JSC$20074_parser_.parse(D);U.onInput_(C,l)}uuT(4)}catch(h){}};var H$J=function(l,D){this.JSC$20067_mapId=l;this.map=D;this.context=null};var Y0W=function(l){this.maxPoolSizeConfigured_=l||10;_.nC.PerformanceNavigationTiming?(l=_.nC.performance.getEntriesByType("navigation"),l=l.length>0&&(l[0].nextHopProtocol=="hq"||l[0].nextHopProtocol=="h2")):l=!!(_.nC.chrome&&_.nC.chrome.loadTimes&&_.nC.chrome.loadTimes()&&_.nC.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20070_maxSize_=l?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20070_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20070_request_=null;this.JSC$20070_pendingMessages_=
[]},O$w=function(l){return l.JSC$20070_request_?!0:l.requestPool_?l.requestPool_.size>=l.JSC$20070_maxSize_:!1},I8q=function(l){return l.JSC$20070_request_?1:l.requestPool_?l.requestPool_.size:0},N9$=function(l,D){return l.JSC$20070_request_?l.JSC$20070_request_==D:l.requestPool_?l.requestPool_.has(D):!1},VyW=function(l,D){l.requestPool_?l.requestPool_.add(D):l.JSC$20070_request_=D},iFW=function(l,D){l.JSC$20070_request_&&l.JSC$20070_request_==D?l.JSC$20070_request_=null:l.requestPool_&&l.requestPool_.has(D)&&
l.requestPool_.delete(D)};
Y0W.prototype.cancel=function(){this.JSC$20070_pendingMessages_=luv(this);if(this.JSC$20070_request_)this.JSC$20070_request_.cancel(),this.JSC$20070_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var l=_.B(this.requestPool_.values()),D=l.next();!D.done;D=l.next())D.value.cancel();this.requestPool_.clear()}};
var luv=function(l){if(l.JSC$20070_request_!=null)return l.JSC$20070_pendingMessages_.concat(l.JSC$20070_request_.JSC$20060_pendingMessages_);if(l.requestPool_!=null&&l.requestPool_.size!==0){var D=l.JSC$20070_pendingMessages_;l=_.B(l.requestPool_.values());for(var U=l.next();!U.done;U=l.next())D=D.concat(U.value.JSC$20060_pendingMessages_);return D}return _.$9(l.JSC$20070_pendingMessages_)},D22=function(l,D){l.JSC$20070_pendingMessages_=l.JSC$20070_pendingMessages_.concat(D)};var U2w=function(l,D){var U=new Cr;U.debug("TestLoadImage: loading "+l);if(_.nC.Image){var n=new Image;n.onload=_.P6(uC,U,"TestLoadImage: loaded",!0,D,n);n.onerror=_.P6(uC,U,"TestLoadImage: error",!1,D,n);n.onabort=_.P6(uC,U,"TestLoadImage: abort",!1,D,n);n.ontimeout=_.P6(uC,U,"TestLoadImage: timeout",!1,D,n);_.nC.setTimeout(function(){if(n.ontimeout)n.ontimeout()},1E4);
n.src=l}else D(!1)},nW8=function(l,D){var U=new Cr,n=new AbortController,y=setTimeout(function(){n.abort();
uC(U,"TestPingServer: timeout",!1,D)},1E4);
fetch(l,{signal:n.signal}).then(function(A){clearTimeout(y);A.ok?uC(U,"TestPingServer: ok",!0,D):uC(U,"TestPingServer: server error",!1,D)}).catch(function(){clearTimeout(y);
uC(U,"TestPingServer: error",!1,D)})},uC=function(l,D,U,n,y){try{l.debug(D),y&&(y.onload=null,y.onerror=null,y.onabort=null,y.ontimeout=null),n(U)}catch(A){}};var yK$=function(){this.JSC$20074_parser_=new B9T};var AKH=function(l,D,U){return U&&U.internalChannelParams?U.internalChannelParams[l]||D:D},vj=function(l){this.serverVersion_=0;
this.JSC$20079_outgoingMaps_=[];this.JSC$20079_channelDebug_=new Cr;this.JSC$20079_hostPrefix_=this.JSC$20079_backChannelUri_=this.JSC$20079_forwardChannelUri_=this.JSC$20079_path_=this.JSC$20079_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20079_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20079_extraHeaders_=null;this.JSC$20079_nextMapId_=this.JSC$20079_nextRid_=0;this.JSC$20079_failFast_=AKH("failFast",!1,l);this.enableStreaming_=this.JSC$20079_deadBackChannelTimerId_=
this.JSC$20079_backChannelTimerId_=this.JSC$20079_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20079_lastPostResponseArrayId_=this.JSC$20079_lastArrayId_=-1;this.JSC$20079_backChannelAttemptId_=this.JSC$20079_backChannelRetryCount_=this.JSC$20079_forwardChannelRetryCount_=0;this.JSC$20079_baseRetryDelayMs_=AKH("baseRetryDelayMs",5E3,l);this.JSC$20079_retryDelaySeedMs_=AKH("retryDelaySeedMs",1E4,l);this.JSC$20079_forwardChannelMaxRetries_=
AKH("forwardChannelMaxRetries",2,l);this.JSC$20079_forwardChannelRequestTimeoutMs_=AKH("forwardChannelRequestTimeoutMs",2E4,l);this.JSC$20079_xmlHttpFactory_=l&&l.xmlHttpFactory||void 0;this.networkTestUrl_=l&&l.networkTestUrl||void 0;this.usesFetchStreams_=l&&l.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$20079_supportsCrossDomainXhrs_=l&&l.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new Y0W(l&&l.concurrentRequestLimit);this.wireCodec_=new yK$;
this.fastHandshake_=l&&l.fastHandshake||!1;this.encodeInitMessageHeaders_=l&&l.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20079_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=l&&l.blockingHandshake||!1;l&&l.disableRedact&&this.JSC$20079_channelDebug_.disableRedact();l&&l.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&l&&l.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;l&&l.longPollingTimeout&&l.longPollingTimeout>0&&(this.longPollingTimeout_=l.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
vj.prototype.JSC$20081_channelVersion_=8;vj.prototype.state_=1;
vj.prototype.connect=function(l,D,U,n){this.JSC$20079_channelDebug_.debug("connect()");Bj(0);this.JSC$20079_path_=l;this.JSC$20079_extraParams_=D||{};U&&n!==void 0&&(this.JSC$20079_extraParams_.OSID=U,this.JSC$20079_extraParams_.OAID=n);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20079_channelDebug_.debug("connectChannel_()");l=W4W(this,null,this.JSC$20079_path_);this.JSC$20079_channelDebug_.debug("GetForwardChannelUri: "+l);this.JSC$20079_forwardChannelUri_=l;BSv(this)};
vj.prototype.disconnect=function(){this.JSC$20079_channelDebug_.debug("disconnect()");Ctq(this);if(this.state_==3){var l=this.JSC$20079_nextRid_++,D=this.JSC$20079_forwardChannelUri_.clone();_.ny(D,"SID",this.sid_);_.ny(D,"RID",l);_.ny(D,"TYPE","terminate");hcT(this,D);l=new Pj(this,this.JSC$20079_channelDebug_,this.sid_,l);l.JSC$20060_type_=2;l.JSC$20060_baseUri_=_.uo(D.clone());D=!1;if(_.nC.navigator&&_.nC.navigator.sendBeacon)try{D=_.nC.navigator.sendBeacon(l.JSC$20060_baseUri_.toString(),"")}catch(U){}!D&&
_.nC.Image&&((new Image).src=l.JSC$20060_baseUri_,D=!0);D||(l.JSC$20060_xmlHttp_=k9r(l.JSC$20060_channel_,null),l.JSC$20060_xmlHttp_.send(l.JSC$20060_baseUri_));l.JSC$20060_requestStartTime_=Date.now();S05(l)}PtJ(this)};
var EkP=function(l){l.JSC$20079_backChannelRequest_&&(f8$(l),l.JSC$20079_backChannelRequest_.cancel(),l.JSC$20079_backChannelRequest_=null)},Ctq=function(l){EkP(l);
l.JSC$20079_backChannelTimerId_&&(_.nC.clearTimeout(l.JSC$20079_backChannelTimerId_),l.JSC$20079_backChannelTimerId_=null);s4P(l);l.forwardChannelRequestPool_.cancel();l.JSC$20079_forwardChannelTimerId_&&(typeof l.JSC$20079_forwardChannelTimerId_==="number"&&_.nC.clearTimeout(l.JSC$20079_forwardChannelTimerId_),l.JSC$20079_forwardChannelTimerId_=null)};
vj.prototype.getState=function(){return this.state_};
var BSv=function(l){O$w(l.forwardChannelRequestPool_)||l.JSC$20079_forwardChannelTimerId_||(l.JSC$20079_forwardChannelTimerId_=!0,_.kN(l.JSC$20081_onStartForwardChannelTimer_,l),l.JSC$20079_forwardChannelRetryCount_=0)},gWP=function(l,D){if(I8q(l.forwardChannelRequestPool_)>=l.forwardChannelRequestPool_.JSC$20070_maxSize_-(l.JSC$20079_forwardChannelTimerId_?1:0))return!1;
if(l.JSC$20079_forwardChannelTimerId_)return l.JSC$20079_channelDebug_.debug("Use the retry request that is already scheduled."),l.JSC$20079_outgoingMaps_=D.JSC$20060_pendingMessages_.concat(l.JSC$20079_outgoingMaps_),!0;if(l.state_==1||l.state_==2||l.JSC$20079_forwardChannelRetryCount_>=(l.JSC$20079_failFast_?0:l.JSC$20079_forwardChannelMaxRetries_))return!1;l.JSC$20079_channelDebug_.debug("Going to retry POST");l.JSC$20079_forwardChannelTimerId_=J9T((0,_.jU)(l.JSC$20081_onStartForwardChannelTimer_,
l,D),bFq(l,l.JSC$20079_forwardChannelRetryCount_));l.JSC$20079_forwardChannelRetryCount_++;return!0};
vj.prototype.JSC$20081_onStartForwardChannelTimer_=function(l){if(this.JSC$20079_forwardChannelTimerId_)if(this.JSC$20079_forwardChannelTimerId_=null,this.JSC$20079_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!l){this.JSC$20079_channelDebug_.debug("open_()");this.JSC$20079_nextRid_=Math.floor(Math.random()*1E5);l=this.JSC$20079_nextRid_++;var D=new Pj(this,this.JSC$20079_channelDebug_,"",l),U=this.JSC$20079_extraHeaders_;this.initHeaders_&&(U?(U=_.we.clone(U),_.we.extend(U,this.initHeaders_)):
U=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(D.JSC$20060_extraHeaders_=U,U=null);var n;if(this.fastHandshake_)a:{for(var y=n=0;y<this.JSC$20079_outgoingMaps_.length;y++){b:{var A=this.JSC$20079_outgoingMaps_[y];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;n+=A;if(n>4096){n=y;break a}if(n===4096||y===this.JSC$20079_outgoingMaps_.length-1){n=y+1;break a}}n=1E3}else n=1E3;n=uL8(this,D,n);
y=this.JSC$20079_forwardChannelUri_.clone();_.ny(y,"RID",l);_.ny(y,"CVER",22);this.httpSessionIdParam_&&_.ny(y,"X-HTTP-Session-Id",this.httpSessionIdParam_);hcT(this,y);U&&(this.encodeInitMessageHeaders_?n="headers="+_.yy(Qx8(U))+"&"+n:this.httpHeadersOverwriteParam_&&G2v(y,this.httpHeadersOverwriteParam_,U));VyW(this.forwardChannelRequestPool_,D);this.blockingHandshake_&&_.ny(y,"TYPE","init");this.fastHandshake_?(_.ny(y,"$req",n),_.ny(y,"SID","null"),D.decodeInitialResponse_=!0,XOT(D,y,null)):XOT(D,
y,n);this.state_=2}}else this.state_==3&&(l?vWv(this,l):this.JSC$20079_outgoingMaps_.length==0?this.JSC$20079_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):O$w(this.forwardChannelRequestPool_)||(vWv(this),this.JSC$20079_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var vWv=function(l,D){var U;D?U=D.JSC$20060_rid_:U=l.JSC$20079_nextRid_++;var n=l.JSC$20079_forwardChannelUri_.clone();_.ny(n,"SID",l.sid_);_.ny(n,"RID",U);_.ny(n,"AID",l.JSC$20079_lastArrayId_);hcT(l,n);l.httpHeadersOverwriteParam_&&l.JSC$20079_extraHeaders_&&G2v(n,l.httpHeadersOverwriteParam_,l.JSC$20079_extraHeaders_);U=new Pj(l,l.JSC$20079_channelDebug_,l.sid_,U,l.JSC$20079_forwardChannelRetryCount_+1);l.httpHeadersOverwriteParam_===null&&(U.JSC$20060_extraHeaders_=l.JSC$20079_extraHeaders_);
D&&(l.JSC$20079_outgoingMaps_=D.JSC$20060_pendingMessages_.concat(l.JSC$20079_outgoingMaps_));D=uL8(l,U,1E3);U.setTimeout(Math.round(l.JSC$20079_forwardChannelRequestTimeoutMs_*.5)+Math.round(l.JSC$20079_forwardChannelRequestTimeoutMs_*.5*Math.random()));VyW(l.forwardChannelRequestPool_,U);XOT(U,n,D)},hcT=function(l,D){l.JSC$20079_extraParams_&&_.we.forEach(l.JSC$20079_extraParams_,function(U,n){_.ny(D,n,U)});
l.handler_&&_.we.forEach({},function(U,n){_.ny(D,n,U)})},uL8=function(l,D,U){U=Math.min(l.JSC$20079_outgoingMaps_.length,U);
var n=l.handler_?(0,_.jU)(l.handler_.JSC$20085_badMapError,l.handler_,l):null;a:{for(var y=l.JSC$20079_outgoingMaps_,A=-1;;){var C=["count="+U];A==-1?U>0?(A=y[0].JSC$20067_mapId,C.push("ofs="+A)):A=0:C.push("ofs="+A);for(var h=!0,b=0;b<U;b++){var u=y[b].JSC$20067_mapId,Q=y[b].map;u-=A;if(u<0)A=Math.max(0,y[b].JSC$20067_mapId-100),h=!1;else try{u="req"+u+"_"||"";try{var G=Q instanceof Map?Q:Object.entries(Q);for(var J=_.B(G),L=J.next();!L.done;L=J.next()){var R=_.B(L.value),a=R.next().value,S=R.next().value,
d=S;_.I_(S)&&(d=(0,_.xN)(S));C.push(u+a+"="+encodeURIComponent(d))}}catch(c){throw C.push(u+"type="+encodeURIComponent("_badmap")),c;}}catch(c){n&&n(Q)}}if(h){G=C.join("&");break a}}G=void 0}l=l.JSC$20079_outgoingMaps_.splice(0,U);D.JSC$20060_pendingMessages_=l;return G},Qo8=function(l){l.JSC$20079_backChannelRequest_||l.JSC$20079_backChannelTimerId_||(l.JSC$20079_backChannelAttemptId_=1,_.kN(l.JSC$20081_onStartBackChannelTimer_,l),l.JSC$20079_backChannelRetryCount_=0)},T95=function(l){if(l.JSC$20079_backChannelRequest_||
l.JSC$20079_backChannelTimerId_||l.JSC$20079_backChannelRetryCount_>=3)return!1;
l.JSC$20079_channelDebug_.debug("Going to retry GET");l.JSC$20079_backChannelAttemptId_++;l.JSC$20079_backChannelTimerId_=J9T((0,_.jU)(l.JSC$20081_onStartBackChannelTimer_,l),bFq(l,l.JSC$20079_backChannelRetryCount_));l.JSC$20079_backChannelRetryCount_++;return!0};
vj.prototype.JSC$20081_onStartBackChannelTimer_=function(){this.JSC$20079_backChannelTimerId_=null;GWT(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20079_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20079_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20079_backChannelRequest_+" "+this.handshakeRttMs_);else{var l=4*this.handshakeRttMs_;this.JSC$20079_channelDebug_.info("BP detection timer enabled: "+l);this.bpDetectionTimerId_=J9T((0,_.jU)(this.onBpDetectionTimer_,
this),l)}};
vj.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20079_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20079_backChannelRequest_.JSC$20060_xmlHttp_!=null){var l=this.JSC$20079_backChannelRequest_.JSC$20060_xmlHttp_.getResponseText();l&&this.JSC$20079_channelDebug_.warning("Timer should have been cancelled : "+l)}this.JSC$20079_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Bj(10);EkP(this);GWT(this)}else this.JSC$20079_channelDebug_.warning("Invalid operation.")};
var f8$=function(l){l.bpDetectionTimerId_!=null&&(l.JSC$20079_channelDebug_.debug("Cancel the BP detection timer."),_.nC.clearTimeout(l.bpDetectionTimerId_),l.bpDetectionTimerId_=null)},GWT=function(l){l.JSC$20079_channelDebug_.debug("Creating new HttpRequest");
l.JSC$20079_backChannelRequest_=new Pj(l,l.JSC$20079_channelDebug_,l.sid_,"rpc",l.JSC$20079_backChannelAttemptId_);l.httpHeadersOverwriteParam_===null&&(l.JSC$20079_backChannelRequest_.JSC$20060_extraHeaders_=l.JSC$20079_extraHeaders_);l.JSC$20079_backChannelRequest_.JSC$20060_readyStateChangeThrottleMs_=0;var D=l.JSC$20079_backChannelUri_.clone();_.ny(D,"RID","rpc");_.ny(D,"SID",l.sid_);_.ny(D,"AID",l.JSC$20079_lastArrayId_);_.ny(D,"CI",l.enableStreaming_?"0":"1");!l.enableStreaming_&&l.longPollingTimeout_&&
_.ny(D,"TO",l.longPollingTimeout_);_.ny(D,"TYPE","xmlhttp");hcT(l,D);l.httpHeadersOverwriteParam_&&l.JSC$20079_extraHeaders_&&G2v(D,l.httpHeadersOverwriteParam_,l.JSC$20079_extraHeaders_);l.backChannelRequestTimeoutMs_&&l.JSC$20079_backChannelRequest_.setTimeout(l.backChannelRequestTimeoutMs_);var U=l.JSC$20079_backChannelRequest_,n=l.JSC$20079_hostPrefix_;U.JSC$20060_type_=1;U.JSC$20060_baseUri_=_.uo(D.clone());U.JSC$20060_postData_=null;U.decodeChunks_=!0;ty8(U,n);l.JSC$20079_channelDebug_.debug("New Request created")};
vj.prototype.JSC$20081_onBackChannelDead_=function(){this.JSC$20079_deadBackChannelTimerId_!=null&&(this.JSC$20079_deadBackChannelTimerId_=null,EkP(this),T95(this),Bj(19))};
var s4P=function(l){l.JSC$20079_deadBackChannelTimerId_!=null&&(_.nC.clearTimeout(l.JSC$20079_deadBackChannelTimerId_),l.JSC$20079_deadBackChannelTimerId_=null)},wO2=function(l,D){l.JSC$20079_channelDebug_.debug("Request complete");
var U=null;if(l.JSC$20079_backChannelRequest_==D){s4P(l);f8$(l);l.JSC$20079_backChannelRequest_=null;var n=2}else if(N9$(l.forwardChannelRequestPool_,D))U=D.JSC$20060_pendingMessages_,iFW(l.forwardChannelRequestPool_,D),n=1;else return;if(l.state_!=0)if(D.JSC$20060_successful_)n==1?(G95(D.JSC$20060_postData_?D.JSC$20060_postData_.length:0,Date.now()-D.JSC$20060_requestStartTime_,l.JSC$20079_forwardChannelRetryCount_),BSv(l)):Qo8(l);else{var y=D.JSC$20060_lastStatusCode_,A=D.getLastError();if(A==3||
A==0&&y>0)l.JSC$20079_channelDebug_.debug("Not retrying due to error type"),y>200&&(l.errorResponseStatusCode_=D.JSC$20060_lastStatusCode_);else{l.JSC$20079_channelDebug_.debug(function(){return"Maybe retrying, last error: "+eZP(A,l.errorResponseStatusCode_)});
if(n==1&&gWP(l,D)||n==2&&T95(l))return;l.JSC$20079_channelDebug_.debug("Exceeded max number of retries")}U&&U.length>0&&D22(l.forwardChannelRequestPool_,U);l.JSC$20079_channelDebug_.debug("Error: HTTP request failed");switch(A){case 1:gB(l,5);break;case 4:gB(l,10);break;case 3:gB(l,6);break;default:gB(l,2)}}},bFq=function(l,D){var U=l.JSC$20079_baseRetryDelayMs_+Math.floor(Math.random()*l.JSC$20079_retryDelaySeedMs_);
l.isActive()||(l.JSC$20079_channelDebug_.debug("Inactive channel"),U*=2);return U*D};
vj.prototype.onInput_=function(l,D){for(var U=0;U<l.length;U++){var n=l[U],y=n[0];if(y<=this.JSC$20079_lastArrayId_)this.JSC$20079_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+y+", lastArrayId: "+this.JSC$20079_lastArrayId_);else if(y>this.JSC$20079_lastArrayId_+1&&this.JSC$20079_lastArrayId_>-1&&this.JSC$20079_channelDebug_.warning("Received non-consecutive message with arrayId: "+y+", lastArrayId: "+this.JSC$20079_lastArrayId_),this.JSC$20079_lastArrayId_=y,
n=n[1],this.state_==2)if(n[0]=="c"){this.sid_=n[1];this.JSC$20079_hostPrefix_=n[2];y=n[3];y!=null&&(this.JSC$20081_channelVersion_=y,this.JSC$20079_channelDebug_.info("VER="+this.JSC$20081_channelVersion_));y=n[4];y!=null&&(this.serverVersion_=y,this.JSC$20079_channelDebug_.info("SVER="+this.serverVersion_));n=n[5];n!=null&&typeof n==="number"&&n>0&&(this.backChannelRequestTimeoutMs_=n*=1.5,this.JSC$20079_channelDebug_.info("backChannelRequestTimeoutMs_="+n));if(n=D.JSC$20060_xmlHttp_){var A=Eow(n,
"X-Client-Wire-Protocol");A&&(y=this.forwardChannelRequestPool_,!y.requestPool_&&(_.bG(A,"spdy")||_.bG(A,"quic")||_.bG(A,"h2"))&&(y.JSC$20070_maxSize_=y.maxPoolSizeConfigured_,y.requestPool_=new Set,y.JSC$20070_request_&&(VyW(y,y.JSC$20070_request_),y.JSC$20070_request_=null)));this.httpSessionIdParam_&&((n=Eow(n,"X-HTTP-Session-Id"))?(this.httpSessionId_=n,_.ny(this.JSC$20079_forwardChannelUri_,this.httpSessionIdParam_,n)):this.JSC$20079_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20085_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-D.JSC$20060_requestStartTime_,this.JSC$20079_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));n=D;y=W4W(this,this.JSC$20079_supportsCrossDomainXhrs_?this.JSC$20079_hostPrefix_:null,this.JSC$20079_path_);this.JSC$20079_channelDebug_.debug("GetBackChannelUri: "+y);this.JSC$20079_backChannelUri_=y;n.initialResponseDecoded_?(this.JSC$20079_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
iFW(this.forwardChannelRequestPool_,n),y=n,(A=this.backChannelRequestTimeoutMs_)&&y.setTimeout(A),y.JSC$20060_watchDogTimerId_&&(c98(y),S05(y)),this.JSC$20079_backChannelRequest_=n):Qo8(this);this.JSC$20079_outgoingMaps_.length>0&&BSv(this)}else n[0]!="stop"&&n[0]!="close"||gB(this,7);else this.state_==3&&(n[0]=="stop"||n[0]=="close"?n[0]=="stop"?gB(this,7):this.disconnect():n[0]!="noop"&&this.handler_&&this.handler_.JSC$20085_channelHandleArray(n),this.JSC$20079_backChannelRetryCount_=0)}};
var gB=function(l,D){l.JSC$20079_channelDebug_.info("Error code "+D);if(D==2){var U=(0,_.jU)(l.testNetworkCallback_,l),n=l.networkTestUrl_,y=!n;n=new _.fI(n||"//www.google.com/images/cleardot.gif");_.nC.location&&_.nC.location.protocol=="http"||_.y8(n,"https");_.uo(n);y?U2w(n.toString(),U):nW8(n.toString(),U)}else Bj(2);l.onError_(D)};
vj.prototype.testNetworkCallback_=function(l){l?(this.JSC$20079_channelDebug_.info("Successfully pinged google.com"),Bj(2)):(this.JSC$20079_channelDebug_.info("Failed to ping google.com"),Bj(1))};
vj.prototype.onError_=function(l){this.JSC$20079_channelDebug_.debug("HttpChannel: error - "+l);this.state_=0;this.handler_&&this.handler_.JSC$20085_channelError(l);PtJ(this);Ctq(this)};
var PtJ=function(l){l.state_=0;l.nonAckedMapsAtChannelClose_=[];if(l.handler_){var D=luv(l.forwardChannelRequestPool_);if(D.length!=0||l.JSC$20079_outgoingMaps_.length!=0)l.JSC$20079_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+D.length+", outgoing: "+l.JSC$20079_outgoingMaps_.length}),_.sc(l.nonAckedMapsAtChannelClose_,D),_.sc(l.nonAckedMapsAtChannelClose_,l.JSC$20079_outgoingMaps_),l.forwardChannelRequestPool_.JSC$20070_pendingMessages_.length=0,_.$9(l.JSC$20079_outgoingMaps_),
l.JSC$20079_outgoingMaps_.length=0;
l.handler_.JSC$20085_channelClosed()}},JKq=function(l){if(l.state_==0)return l.nonAckedMapsAtChannelClose_;
var D=[];_.sc(D,luv(l.forwardChannelRequestPool_));_.sc(D,l.JSC$20079_outgoingMaps_);return D},W4W=function(l,D,U){var n=_.Dp(U);
n.JSC$10113_domain_!=""?(D&&_.A8(n,D+"."+n.JSC$10113_domain_),_.Wp(n,n.JSC$10113_port_)):(n=_.nC.location,n=in5(n.protocol,D?D+"."+n.hostname:n.hostname,+n.port,U));D=l.httpSessionIdParam_;U=l.httpSessionId_;D&&U&&_.ny(n,D,U);_.ny(n,"VER",l.JSC$20081_channelVersion_);hcT(l,n);return n},k9r=function(l,D,U){if(D&&!l.JSC$20079_supportsCrossDomainXhrs_)throw Error("Uk");
D=l.usesFetchStreams_&&!l.JSC$20079_xmlHttpFactory_?new _.je(new biW({streamBinaryChunks:U})):new _.je(l.JSC$20079_xmlHttpFactory_);D.JSC$9877_withCredentials_=l.JSC$20079_supportsCrossDomainXhrs_;return D};
vj.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var L42=function(){};
_.W=L42.prototype;_.W.JSC$20085_channelOpened=function(){};
_.W.JSC$20085_channelHandleArray=function(){};
_.W.JSC$20085_channelError=function(){};
_.W.JSC$20085_channelClosed=function(){};
_.W.isActive=function(){return!0};
_.W.JSC$20085_badMapError=function(){};var qAP=function(){},Gb=function(l,D){_.Xa.call(this);
this.JSC$20088_channel_=new vj(D);this.JSC$20088_url_=l;this.messageUrlParams_=D&&D.messageUrlParams||null;l=D&&D.messageHeaders||null;D&&D.clientProtocolHeaderRequired&&(l?_.we.set(l,"X-Client-Protocol","webchannel"):l=_.we.create("X-Client-Protocol","webchannel"));this.JSC$20088_channel_.JSC$20079_extraHeaders_=l;l=D&&D.initMessageHeaders||null;D&&D.messageContentType&&(l?_.we.set(l,"X-WebChannel-Content-Type",D.messageContentType):l=_.we.create("X-WebChannel-Content-Type",D.messageContentType));
D&&D.clientProfile&&(l?_.we.set(l,"X-WebChannel-Client-Profile",D.clientProfile):l=_.we.create("X-WebChannel-Client-Profile",D.clientProfile));this.JSC$20088_channel_.initHeaders_=l;(l=D&&D.httpHeadersOverwriteParam)&&!_.hd(l)&&(this.JSC$20088_channel_.httpHeadersOverwriteParam_=l);this.supportsCrossDomainXhr_=D&&D.supportsCrossDomainXhr||!1;this.sendRawJson_=D&&D.sendRawJson||!1;(D=D&&D.httpSessionIdParam)&&!_.hd(D)&&(this.JSC$20088_channel_.httpSessionIdParam_=D,_.we.containsKey(this.messageUrlParams_,
D)&&_.we.remove(this.messageUrlParams_,D));this.channelHandler_=new QA(this)};
_.HI(Gb,_.Xa);Gb.prototype.open=function(){this.JSC$20088_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20088_channel_.JSC$20079_supportsCrossDomainXhrs_=!0);this.JSC$20088_channel_.connect(this.JSC$20088_url_,this.messageUrlParams_||void 0)};
Gb.prototype.close=function(){this.JSC$20088_channel_.disconnect()};
Gb.prototype.send=function(l){var D=this.JSC$20088_channel_;if(typeof l==="string"){var U={};U.__data__=l;l=U}else this.sendRawJson_&&(U={},U.__data__=(0,_.xN)(l),l=U);D.JSC$20079_outgoingMaps_.push(new H$J(D.JSC$20079_nextMapId_++,l));D.state_==3&&BSv(D)};
Gb.prototype.disposeInternal=function(){this.JSC$20088_channel_.handler_=null;delete this.channelHandler_;this.JSC$20088_channel_.disconnect();delete this.JSC$20088_channel_;Gb.superClass_.disposeInternal.call(this)};
var MP5=function(l){CaW.call(this);l.__headers__&&(this.headers=l.__headers__,this.statusCode=l.__status__,delete l.__headers__,delete l.__status__);var D=l.__sm__;D?this.data=(this.metadataKey=_.we.getAnyKey(D))?_.we.get(D,this.metadataKey):D:this.data=l};
_.HI(MP5,CaW);var Rcr=function(l){hZH.call(this);this.status=1;this.errorCode=l};
_.HI(Rcr,hZH);var QA=function(l){this.JSC$20095_channel_=l};
_.HI(QA,L42);QA.prototype.JSC$20085_channelOpened=function(){this.JSC$20095_channel_.dispatchEvent("w")};
QA.prototype.JSC$20085_channelHandleArray=function(l){this.JSC$20095_channel_.dispatchEvent(new MP5(l))};
QA.prototype.JSC$20085_channelError=function(l){this.JSC$20095_channel_.dispatchEvent(new Rcr(l))};
QA.prototype.JSC$20085_channelClosed=function(){this.JSC$20095_channel_.dispatchEvent("x")};
var ZFP=function(l,D){this.transportChannel_=l;this.JSC$20098_channel_=D},ecq=function(l){return JKq(l.JSC$20098_channel_).map(function(D){var U=l.transportChannel_;
D=D.map;"__data__"in D?(D=D.__data__,U=U.sendRawJson_?(0,_.fQ8)(D):D):U=D;return U})};
ZFP.prototype.commit=function(l){this.JSC$20098_channel_.forwardChannelFlushedCallback_=l};var Jo=function(l){m2w.dispatchEvent(new auW(m2w,l))},m2w=new _.Xa,auW=function(l,D){_.Zz.call(this,"statevent",l);
this.stat=D};
_.Z(auW,_.Zz);var Lr=function(l,D,U,n,y){this.JSC$20103_channel_=l;this.JSC$20103_channelDebug_=D;this.sid_=U;this.JSC$20103_rid_=n;this.JSC$20103_retryId_=y||1;this.timeout_=45E3;this.JSC$20103_eventHandler_=new _.ZB(this);this.pollingTimer_=new _.RA;this.pollingTimer_.setInterval(250)};
_.W=Lr.prototype;_.W.JSC$20105_extraHeaders_=null;_.W.JSC$20105_successful_=!1;_.W.JSC$20105_watchDogTimerId_=null;_.W.JSC$20105_watchDogTimeoutTime_=null;_.W.JSC$20105_requestStartTime_=null;_.W.JSC$20105_type_=null;_.W.JSC$20105_baseUri_=null;_.W.JSC$20105_requestUri_=null;_.W.JSC$20105_postData_=null;_.W.JSC$20105_xmlHttp_=null;_.W.JSC$20105_xmlHttpChunkStart_=0;_.W.trident_=null;_.W.JSC$20105_verb_=null;_.W.JSC$20105_lastError_=null;_.W.JSC$20105_lastStatusCode_=-1;_.W.sendClose_=!0;
_.W.JSC$20105_cancelled_=!1;_.W.JSC$20105_readyStateChangeThrottleMs_=0;_.W.JSC$20105_readyStateChangeThrottle_=null;var tPW=function(l,D){switch(l){case 0:return"Non-200 return code ("+D+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},XRJ={},SAv={};
Lr.prototype.setTimeout=function(l){this.timeout_=l};
var d2J=function(l,D,U){l.JSC$20105_type_=1;l.JSC$20105_baseUri_=_.uo(D.clone());l.JSC$20105_postData_=U;l.decodeChunks_=!0;kWv(l,null)},K4r=function(l,D,U,n,y){l.JSC$20105_type_=1;
l.JSC$20105_baseUri_=_.uo(D.clone());l.JSC$20105_postData_=null;l.decodeChunks_=U;y&&(l.sendClose_=!1);kWv(l,n)},kWv=function(l,D){l.JSC$20105_requestStartTime_=Date.now();
cK8(l);l.JSC$20105_requestUri_=l.JSC$20105_baseUri_.clone();y85(l.JSC$20105_requestUri_,"t",l.JSC$20103_retryId_);l.JSC$20105_xmlHttpChunkStart_=0;l.JSC$20105_xmlHttp_=l.JSC$20103_channel_.JSC$20112_createXhrIo(l.JSC$20103_channel_.JSC$20112_shouldUseSecondaryDomains()?D:null);l.JSC$20105_readyStateChangeThrottleMs_>0&&(l.JSC$20105_readyStateChangeThrottle_=new _.A1((0,_.jU)(l.JSC$20105_xmlHttpHandler_,l,l.JSC$20105_xmlHttp_),l.JSC$20105_readyStateChangeThrottleMs_));l.JSC$20103_eventHandler_.listen(l.JSC$20105_xmlHttp_,
"readystatechange",l.JSC$20105_readyStateChangeHandler_);D=l.JSC$20105_extraHeaders_?_.we.clone(l.JSC$20105_extraHeaders_):{};l.JSC$20105_postData_?(l.JSC$20105_verb_="POST",D["Content-Type"]="application/x-www-form-urlencoded",l.JSC$20105_xmlHttp_.send(l.JSC$20105_requestUri_,l.JSC$20105_verb_,l.JSC$20105_postData_,D)):(l.JSC$20105_verb_="GET",l.sendClose_&&!_.Do&&(D.Connection="close"),l.JSC$20105_xmlHttp_.send(l.JSC$20105_requestUri_,l.JSC$20105_verb_,null,D));l.JSC$20103_channel_.notifyServerReachabilityEvent(1);
D=l.JSC$20103_channelDebug_;var U=l.JSC$20105_postData_;if(U){var n="";U=U.split("&");for(var y=0;y<U.length;y++){var A=U[y].split("=");if(A.length>1){var C=A[0];A=A[1];var h=C.split("_");n=h.length>=2&&h[1]=="type"?n+(C+"="+A+"&"):n+(C+"=redacted&")}}}else n=null;D.info("XMLHTTP REQ ("+l.JSC$20103_rid_+") [attempt "+l.JSC$20103_retryId_+"]: "+l.JSC$20105_verb_+"\n"+l.JSC$20105_requestUri_+"\n"+n)};
Lr.prototype.JSC$20105_readyStateChangeHandler_=function(l){l=l.target;var D=this.JSC$20105_readyStateChangeThrottle_;D&&_.Fa(l)==3?(this.JSC$20103_channelDebug_.debug("Throttling readystatechange."),D.fire()):this.JSC$20105_xmlHttpHandler_(l)};
Lr.prototype.JSC$20105_xmlHttpHandler_=function(l){try{if(l==this.JSC$20105_xmlHttp_)a:{var D=_.Fa(this.JSC$20105_xmlHttp_),U=this.JSC$20105_xmlHttp_.JSC$9877_lastErrorCode_,n=this.JSC$20105_xmlHttp_.getStatus();if(_.Do&&!_.Uy("420+")){if(D<4)break a}else if(D<3||D==3&&!this.JSC$20105_xmlHttp_.getResponseText())break a;this.JSC$20105_cancelled_||D!=4||U==7||(U==8||n<=0?this.JSC$20103_channel_.notifyServerReachabilityEvent(3):this.JSC$20103_channel_.notifyServerReachabilityEvent(2));pRP(this);var y=
this.JSC$20105_xmlHttp_.getStatus();this.JSC$20105_lastStatusCode_=y;var A=this.JSC$20105_xmlHttp_.getResponseText();A||this.JSC$20103_channelDebug_.debug("No response text for uri "+this.JSC$20105_requestUri_+" status "+y);this.JSC$20105_successful_=y==200;this.JSC$20103_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20103_rid_+") [ attempt "+this.JSC$20103_retryId_+"]: "+this.JSC$20105_verb_+"\n"+this.JSC$20105_requestUri_+"\n"+D+" "+y);if(this.JSC$20105_successful_){D==4&&x25(this);if(this.decodeChunks_){for(l=
!0;!this.JSC$20105_cancelled_&&this.JSC$20105_xmlHttpChunkStart_<A.length;){var C=jor(this,A);if(C==SAv){D==4&&(this.JSC$20105_lastError_=4,Jo(15),l=!1);F4T(this.JSC$20103_channelDebug_,this.JSC$20103_rid_,null,"[Incomplete Response]");break}else if(C==XRJ){this.JSC$20105_lastError_=4;Jo(16);F4T(this.JSC$20103_channelDebug_,this.JSC$20103_rid_,A,"[Invalid Chunk]");l=!1;break}else F4T(this.JSC$20103_channelDebug_,this.JSC$20103_rid_,C,null),oW8(this,C)}D==4&&A.length==0&&(this.JSC$20105_lastError_=
1,Jo(17),l=!1);this.JSC$20105_successful_=this.JSC$20105_successful_&&l;l||(F4T(this.JSC$20103_channelDebug_,this.JSC$20103_rid_,A,"[Invalid Chunked Response]"),x25(this),wR8(this))}else F4T(this.JSC$20103_channelDebug_,this.JSC$20103_rid_,A,null),oW8(this,A);this.JSC$20105_successful_&&!this.JSC$20105_cancelled_&&(D==4?this.JSC$20103_channel_.JSC$20112_onRequestComplete(this):(this.JSC$20105_successful_=!1,cK8(this)))}else y==400&&A.indexOf("Unknown SID")>0?(this.JSC$20105_lastError_=3,Jo(13),this.JSC$20103_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20103_rid_+")")):(this.JSC$20105_lastError_=0,Jo(14),this.JSC$20103_channelDebug_.warning("XMLHTTP Bad status "+y+" ("+this.JSC$20103_rid_+")")),x25(this),wR8(this)}else this.JSC$20103_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(h){this.JSC$20103_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var jor=function(l,D){var U=l.JSC$20105_xmlHttpChunkStart_,n=D.indexOf("\n",U);if(n==-1)return SAv;U=Number(D.substring(U,n));if(isNaN(U))return XRJ;n+=1;if(n+U>D.length)return SAv;D=D.slice(n,n+U);l.JSC$20105_xmlHttpChunkStart_=n+U;return D};
Lr.prototype.cancel=function(){this.JSC$20105_cancelled_=!0;x25(this)};
var cK8=function(l){l.JSC$20105_watchDogTimeoutTime_=Date.now()+l.timeout_;rKH(l,l.timeout_)},rKH=function(l,D){if(l.JSC$20105_watchDogTimerId_!=null)throw Error("Tk");
l.JSC$20105_watchDogTimerId_=r4((0,_.jU)(l.JSC$20105_onWatchDogTimeout_,l),D)},pRP=function(l){l.JSC$20105_watchDogTimerId_&&(_.nC.clearTimeout(l.JSC$20105_watchDogTimerId_),l.JSC$20105_watchDogTimerId_=null)};
Lr.prototype.JSC$20105_onWatchDogTimeout_=function(){this.JSC$20105_watchDogTimerId_=null;var l=Date.now();l-this.JSC$20105_watchDogTimeoutTime_>=0?(this.JSC$20103_channelDebug_.info("TIMEOUT: "+this.JSC$20105_requestUri_),this.JSC$20105_type_!=2&&this.JSC$20103_channel_.notifyServerReachabilityEvent(3),x25(this),this.JSC$20105_lastError_=2,Jo(18),wR8(this)):(this.JSC$20103_channelDebug_.warning("WatchDog timer called too early"),rKH(this,this.JSC$20105_watchDogTimeoutTime_-l))};
var wR8=function(l){l.JSC$20103_channel_.JSC$20112_isClosed()||l.JSC$20105_cancelled_||l.JSC$20103_channel_.JSC$20112_onRequestComplete(l)},x25=function(l){pRP(l);
_.WE(l.JSC$20105_readyStateChangeThrottle_);l.JSC$20105_readyStateChangeThrottle_=null;l.pollingTimer_.stop();l.JSC$20103_eventHandler_.removeAll();if(l.JSC$20105_xmlHttp_){var D=l.JSC$20105_xmlHttp_;l.JSC$20105_xmlHttp_=null;D.abort();D.dispose()}l.trident_&&(l.trident_=null)};
Lr.prototype.getLastError=function(){return this.JSC$20105_lastError_};
var oW8=function(l,D){try{l.JSC$20103_channel_.JSC$20112_onRequestData(l,D),l.JSC$20103_channel_.notifyServerReachabilityEvent(4)}catch(U){}};var F4T=function(l,D,U,n){var y=l.info;a:if(U&&U!="y2f%"){try{var A=JSON.parse(U);if(A)for(var C=0;C<A.length;C++)if(Array.isArray(A[C])){var h=A[C];if(!(h.length<2)){var b=h[1];if(Array.isArray(b)&&!(b.length<1)){var u=b[0];if(u!="noop"&&u!="stop")for(var Q=1;Q<b.length;Q++)b[Q]=""}}}var G=(0,_.xN)(A);break a}catch(J){l.debug("Exception parsing expected JS array - probably was not JS");G=U;break a}G=void 0}else G=U;y.call(l,"XMLHTTP TEXT ("+D+"): "+G+(n?" "+n:""))};
zf.prototype.debug=function(l){this.info(l)};
zf.prototype.info=function(){};
zf.prototype.warning=function(){};var zc8=function(l,D){this.JSC$20110_channel_=l;this.JSC$20110_channelDebug_=D;this.JSC$20110_parser_=new B9T};
_.W=zc8.prototype;_.W.JSC$20112_extraHeaders_=null;_.W.JSC$20112_request_=null;_.W.receivedIntermediateResult_=!1;_.W.JSC$20112_path_=null;_.W.state_=null;_.W.JSC$20112_lastStatusCode_=-1;_.W.JSC$20112_hostPrefix_=null;_.W.blockedPrefix_=null;
_.W.connect=function(l){this.JSC$20112_path_=l;l=fu8(this.JSC$20110_channel_,this.JSC$20112_path_);Jo(3);Date.now();var D=this.JSC$20110_channel_.firstTestResults_;D!=null?(this.JSC$20112_hostPrefix_=D[0],(this.blockedPrefix_=D[1])?(this.state_=1,$2r(this)):(this.state_=2,NS8(this))):(y85(l,"MODE","init"),this.JSC$20112_request_=new Lr(this,this.JSC$20110_channelDebug_),this.JSC$20112_request_.JSC$20105_extraHeaders_=this.JSC$20112_extraHeaders_,K4r(this.JSC$20112_request_,l,!1,null,!0),this.state_=
0)};
var $2r=function(l){var D=soT(l.JSC$20110_channel_,l.blockedPrefix_,"/mail/images/cleardot.gif");_.uo(D);GMP(D.toString(),5E3,(0,_.jU)(l.checkBlockedCallback_,l),3,2E3);l.notifyServerReachabilityEvent(1)};
zc8.prototype.checkBlockedCallback_=function(l){if(l)this.state_=2,NS8(this);else{Jo(4);var D=this.JSC$20110_channel_;D.JSC$20113_channelDebug_.debug("Test Connection Blocked");D.JSC$20117_lastStatusCode_=D.connectionTest_.JSC$20112_lastStatusCode_;qz(D,9)}l&&this.notifyServerReachabilityEvent(2)};
var NS8=function(l){l.JSC$20110_channelDebug_.debug("TestConnection: starting stage 2");var D=l.JSC$20110_channel_.secondTestResults_;D!=null?(l.JSC$20110_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+D?"Buffered":"Unbuffered"),Jo(5),D?(Jo(11),EW2(l.JSC$20110_channel_,l,!1)):(Jo(12),EW2(l.JSC$20110_channel_,l,!0))):(l.JSC$20112_request_=new Lr(l,l.JSC$20110_channelDebug_),l.JSC$20112_request_.JSC$20105_extraHeaders_=l.JSC$20112_extraHeaders_,D=TS5(l.JSC$20110_channel_,
l.JSC$20112_hostPrefix_,l.JSC$20112_path_),Jo(5),y85(D,"TYPE","xmlhttp"),K4r(l.JSC$20112_request_,D,!1,l.JSC$20112_hostPrefix_,!1))};
_.W=zc8.prototype;_.W.JSC$20112_createXhrIo=function(l){return this.JSC$20110_channel_.JSC$20112_createXhrIo(l)};
_.W.abort=function(){this.JSC$20112_request_&&(this.JSC$20112_request_.cancel(),this.JSC$20112_request_=null);this.JSC$20112_lastStatusCode_=-1};
_.W.JSC$20112_isClosed=function(){return!1};
_.W.JSC$20112_onRequestData=function(l,D){this.JSC$20112_lastStatusCode_=l.JSC$20105_lastStatusCode_;if(this.state_==0)if(this.JSC$20110_channelDebug_.debug("TestConnection: Got data for stage 1"),D){try{var U=this.JSC$20110_parser_.parse(D)}catch(n){Iu$(this.JSC$20110_channel_,this);return}this.JSC$20112_hostPrefix_=U[0];this.blockedPrefix_=U[1]}else this.JSC$20110_channelDebug_.debug("TestConnection: Null responseText"),Iu$(this.JSC$20110_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Jo(7),Date.now()):D=="11111"?(Jo(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20112_lastStatusCode_=200,this.JSC$20112_request_.cancel(),this.JSC$20110_channelDebug_.debug("Test connection succeeded; using streaming connection"),Jo(12),EW2(this.JSC$20110_channel_,this,!0)):(Jo(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.W.JSC$20112_onRequestComplete=function(){this.JSC$20112_lastStatusCode_=this.JSC$20112_request_.JSC$20105_lastStatusCode_;this.JSC$20112_request_.JSC$20105_successful_?this.state_==0?(this.JSC$20110_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,$2r(this)):(this.state_=2,NS8(this))):this.state_==2&&(this.JSC$20110_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20110_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Jo(12),EW2(this.JSC$20110_channel_,this,!0)):(this.JSC$20110_channelDebug_.debug("Test connection failed; not using streaming"),Jo(11),EW2(this.JSC$20110_channel_,this,!1))):(this.JSC$20110_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Jo(9):this.state_==2&&Jo(10),Iu$(this.JSC$20110_channel_,this,this.JSC$20112_request_.getLastError()))};
_.W.JSC$20112_shouldUseSecondaryDomains=function(){return this.JSC$20110_channel_.JSC$20112_shouldUseSecondaryDomains()};
_.W.isActive=function(){return this.JSC$20110_channel_.isActive()};
_.W.notifyServerReachabilityEvent=function(l){this.JSC$20110_channel_.notifyServerReachabilityEvent(l)};var Mz=function(l,D,U){this.state_=1;this.JSC$20113_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20113_channelDebug_=new zf;this.JSC$20113_parser_=new B9T;this.firstTestResults_=l||null;this.secondTestResults_=D!=null?D:null;this.asyncTest_=U||!1},HF2=function(l,D){this.JSC$20115_mapId=l;
this.map=D;this.context=null};
_.W=Mz.prototype;_.W.JSC$20117_extraHeaders_=null;_.W.JSC$20117_extraParams_=null;_.W.forwardChannelRequest_=null;_.W.JSC$20117_backChannelRequest_=null;_.W.JSC$20117_path_=null;_.W.JSC$20117_forwardChannelUri_=null;_.W.JSC$20117_backChannelUri_=null;_.W.JSC$20117_hostPrefix_=null;_.W.JSC$20117_nextRid_=0;_.W.JSC$20117_nextMapId_=0;_.W.handler_=null;_.W.JSC$20117_forwardChannelTimerId_=null;_.W.JSC$20117_backChannelTimerId_=null;_.W.JSC$20117_deadBackChannelTimerId_=null;_.W.connectionTest_=null;
_.W.useChunked_=null;_.W.JSC$20117_lastArrayId_=-1;_.W.JSC$20117_lastPostResponseArrayId_=-1;_.W.JSC$20117_lastStatusCode_=-1;_.W.JSC$20117_forwardChannelRetryCount_=0;_.W.JSC$20117_backChannelRetryCount_=0;_.W.JSC$20117_channelVersion_=8;var YAv={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},OF$=function(l,D,U,n){_.Zz.call(this,"timingevent",l);this.size=D;this.rtt=U;this.retries=n};
_.HI(OF$,_.Zz);var VPW=function(l){_.Zz.call(this,"serverreachability",l)};
_.HI(VPW,_.Zz);Mz.prototype.connect=function(l,D,U,n,y){this.JSC$20113_channelDebug_.debug("connect()");Jo(0);this.JSC$20117_path_=D;this.JSC$20117_extraParams_=U||{};n&&y!==void 0&&(this.JSC$20117_extraParams_.OSID=n,this.JSC$20117_extraParams_.OAID=y);this.asyncTest_?(r4((0,_.jU)(this.connectTest_,this,l),100),iuT(this)):this.connectTest_(l)};
Mz.prototype.disconnect=function(){this.JSC$20113_channelDebug_.debug("disconnect()");lZr(this);if(this.state_==3){var l=this.JSC$20117_nextRid_++,D=this.JSC$20117_forwardChannelUri_.clone();_.ny(D,"SID",this.sid_);_.ny(D,"RID",l);_.ny(D,"TYPE","terminate");Dn8(this,D);l=new Lr(this,this.JSC$20113_channelDebug_,this.sid_,l);l.JSC$20105_type_=2;l.JSC$20105_baseUri_=_.uo(D.clone());(new Image).src=l.JSC$20105_baseUri_.toString();l.JSC$20105_requestStartTime_=Date.now();cK8(l)}UnJ(this)};
Mz.prototype.connectTest_=function(l){this.JSC$20113_channelDebug_.debug("connectTest_()");this.connectionTest_=new zc8(this,this.JSC$20113_channelDebug_);this.connectionTest_.JSC$20112_extraHeaders_=this.JSC$20117_extraHeaders_;this.connectionTest_.JSC$20110_parser_=this.JSC$20113_parser_;this.connectionTest_.connect(l)};
var iuT=function(l){l.JSC$20113_channelDebug_.debug("connectChannel_()");l.JSC$20117_ensureInState_(1,0);l.JSC$20117_forwardChannelUri_=fu8(l,l.JSC$20117_path_);nO8(l)},lZr=function(l){l.connectionTest_&&(l.connectionTest_.abort(),l.connectionTest_=null);
l.JSC$20117_backChannelRequest_&&(l.JSC$20117_backChannelRequest_.cancel(),l.JSC$20117_backChannelRequest_=null);l.JSC$20117_backChannelTimerId_&&(_.nC.clearTimeout(l.JSC$20117_backChannelTimerId_),l.JSC$20117_backChannelTimerId_=null);yYv(l);l.forwardChannelRequest_&&(l.forwardChannelRequest_.cancel(),l.forwardChannelRequest_=null);l.JSC$20117_forwardChannelTimerId_&&(_.nC.clearTimeout(l.JSC$20117_forwardChannelTimerId_),l.JSC$20117_forwardChannelTimerId_=null)},AY$=function(l,D){if(l.state_==0)throw Error("Wk");
l.JSC$20113_outgoingMaps_.length==1E3&&l.JSC$20113_parser_.stringify(D);l.JSC$20113_outgoingMaps_.push(new HF2(l.JSC$20117_nextMapId_++,D));l.state_!=2&&l.state_!=3||nO8(l)};
Mz.prototype.JSC$20112_isClosed=function(){return this.state_==0};
Mz.prototype.getState=function(){return this.state_};
var nO8=function(l){l.forwardChannelRequest_||l.JSC$20117_forwardChannelTimerId_||(l.JSC$20117_forwardChannelTimerId_=r4((0,_.jU)(l.JSC$20117_onStartForwardChannelTimer_,l),0),l.JSC$20117_forwardChannelRetryCount_=0)};
Mz.prototype.JSC$20117_onStartForwardChannelTimer_=function(l){this.JSC$20117_forwardChannelTimerId_=null;Wu2(this,l)};
var Wu2=function(l,D){l.JSC$20113_channelDebug_.debug("startForwardChannel_");if(l.state_==1){if(!D){l.JSC$20113_channelDebug_.debug("open_()");l.JSC$20117_nextRid_=Math.floor(Math.random()*1E5);D=l.JSC$20117_nextRid_++;var U=new Lr(l,l.JSC$20113_channelDebug_,"",D);U.JSC$20105_extraHeaders_=l.JSC$20117_extraHeaders_;var n=BZJ(l),y=l.JSC$20117_forwardChannelUri_.clone();_.ny(y,"RID",D);_.ny(y,"CVER","1");Dn8(l,y);d2J(U,y,n);l.forwardChannelRequest_=U;l.state_=2}}else l.state_==3&&(D?C5H(l,D):l.JSC$20113_outgoingMaps_.length==
0?l.JSC$20113_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):l.forwardChannelRequest_||(C5H(l),l.JSC$20113_channelDebug_.debug("startForwardChannel_ finished, sent request")))},C5H=function(l,D){if(D)if(l.JSC$20117_channelVersion_>6){l.JSC$20113_outgoingMaps_=l.pendingMaps_.concat(l.JSC$20113_outgoingMaps_);
l.pendingMaps_.length=0;var U=l.JSC$20117_nextRid_-1;D=BZJ(l)}else U=D.JSC$20103_rid_,D=D.JSC$20105_postData_;else U=l.JSC$20117_nextRid_++,D=BZJ(l);var n=l.JSC$20117_forwardChannelUri_.clone();_.ny(n,"SID",l.sid_);_.ny(n,"RID",U);_.ny(n,"AID",l.JSC$20117_lastArrayId_);Dn8(l,n);U=new Lr(l,l.JSC$20113_channelDebug_,l.sid_,U,l.JSC$20117_forwardChannelRetryCount_+1);U.JSC$20105_extraHeaders_=l.JSC$20117_extraHeaders_;U.setTimeout(1E4+Math.round(1E4*Math.random()));l.forwardChannelRequest_=U;d2J(U,n,
D)},Dn8=function(l,D){l.handler_&&(l=l.handler_.JSC$20124_getAdditionalParams())&&_.we.forEach(l,function(U,n){_.ny(D,n,U)})},BZJ=function(l){var D=Math.min(l.JSC$20113_outgoingMaps_.length,1E3),U=["count="+D];
if(l.JSC$20117_channelVersion_>6&&D>0){var n=l.JSC$20113_outgoingMaps_[0].JSC$20115_mapId;U.push("ofs="+n)}else n=0;for(var y={},A=0;A<D;y={mapId$jscomp$3:void 0},A++){y.mapId$jscomp$3=l.JSC$20113_outgoingMaps_[A].JSC$20115_mapId;var C=l.JSC$20113_outgoingMaps_[A].map;y.mapId$jscomp$3=l.JSC$20117_channelVersion_<=6?A:y.mapId$jscomp$3-n;try{_.we.forEach(C,function(h){return function(b,u){U.push("req"+h.mapId$jscomp$3+"_"+u+"="+encodeURIComponent(b))}}(y))}catch(h){U.push("req"+y.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}l.pendingMaps_=l.pendingMaps_.concat(l.JSC$20113_outgoingMaps_.splice(0,D));
return U.join("&")},he$=function(l){l.JSC$20117_backChannelRequest_||l.JSC$20117_backChannelTimerId_||(l.JSC$20117_backChannelAttemptId_=1,l.JSC$20117_backChannelTimerId_=r4((0,_.jU)(l.JSC$20117_onStartBackChannelTimer_,l),0),l.JSC$20117_backChannelRetryCount_=0)},buq=function(l){if(l.JSC$20117_backChannelRequest_||l.JSC$20117_backChannelTimerId_||l.JSC$20117_backChannelRetryCount_>=3)return!1;
l.JSC$20113_channelDebug_.debug("Going to retry GET");l.JSC$20117_backChannelAttemptId_++;l.JSC$20117_backChannelTimerId_=r4((0,_.jU)(l.JSC$20117_onStartBackChannelTimer_,l),P5$(l,l.JSC$20117_backChannelRetryCount_));l.JSC$20117_backChannelRetryCount_++;return!0};
Mz.prototype.JSC$20117_onStartBackChannelTimer_=function(){this.JSC$20117_backChannelTimerId_=null;this.JSC$20113_channelDebug_.debug("Creating new HttpRequest");this.JSC$20117_backChannelRequest_=new Lr(this,this.JSC$20113_channelDebug_,this.sid_,"rpc",this.JSC$20117_backChannelAttemptId_);this.JSC$20117_backChannelRequest_.JSC$20105_extraHeaders_=this.JSC$20117_extraHeaders_;this.JSC$20117_backChannelRequest_.JSC$20105_readyStateChangeThrottleMs_=0;var l=this.JSC$20117_backChannelUri_.clone();_.ny(l,
"RID","rpc");_.ny(l,"SID",this.sid_);_.ny(l,"CI",this.useChunked_?"0":"1");_.ny(l,"AID",this.JSC$20117_lastArrayId_);Dn8(this,l);_.ny(l,"TYPE","xmlhttp");K4r(this.JSC$20117_backChannelRequest_,l,!0,this.JSC$20117_hostPrefix_,!1);this.JSC$20113_channelDebug_.debug("New Request created")};
var EW2=function(l,D,U){l.JSC$20113_channelDebug_.debug("Test Connection Finished");l.useChunked_=l.secondTestResults_==null?U:!l.secondTestResults_;l.JSC$20117_lastStatusCode_=D.JSC$20112_lastStatusCode_;l.asyncTest_||iuT(l)},Iu$=function(l,D){l.JSC$20113_channelDebug_.debug("Test Connection Failed");
l.JSC$20117_lastStatusCode_=D.JSC$20112_lastStatusCode_;qz(l,2)};
Mz.prototype.JSC$20112_onRequestData=function(l,D){if(this.state_!=0&&(this.JSC$20117_backChannelRequest_==l||this.forwardChannelRequest_==l))if(this.JSC$20117_lastStatusCode_=l.JSC$20105_lastStatusCode_,this.forwardChannelRequest_==l&&this.state_==3)if(this.JSC$20117_channelVersion_>7){try{var U=this.JSC$20113_parser_.parse(D)}catch(n){U=null}if(Array.isArray(U)&&U.length==3)if(D=U,D[0]==0)a:if(this.JSC$20113_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20117_backChannelTimerId_)this.JSC$20113_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20117_backChannelRequest_)if(this.JSC$20117_backChannelRequest_.JSC$20105_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20105_requestStartTime_)yYv(this),this.JSC$20117_backChannelRequest_.cancel(),this.JSC$20117_backChannelRequest_=null;else break a;else this.JSC$20113_channelDebug_.warning("We do not have a BackChannel established");buq(this);Jo(19)}else this.JSC$20117_lastPostResponseArrayId_=D[1],l=this.JSC$20117_lastPostResponseArrayId_-this.JSC$20117_lastArrayId_,0<
l&&(D=D[2],this.JSC$20113_channelDebug_.debug(D+" bytes (in "+l+" arrays) are outstanding on the BackChannel"),D<37500&&this.useChunked_&&this.JSC$20117_backChannelRetryCount_==0&&!this.JSC$20117_deadBackChannelTimerId_&&(this.JSC$20117_deadBackChannelTimerId_=r4((0,_.jU)(this.JSC$20117_onBackChannelDead_,this),6E3)));else this.JSC$20113_channelDebug_.debug("Bad POST response data returned"),qz(this,11)}else D!="y2f%"&&(this.JSC$20113_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
qz(this,11));else this.JSC$20117_backChannelRequest_==l&&yYv(this),_.hd(D)||(l=this.JSC$20113_parser_.parse(D),this.onInput_(l))};
Mz.prototype.JSC$20117_onBackChannelDead_=function(){this.JSC$20117_deadBackChannelTimerId_!=null&&(this.JSC$20117_deadBackChannelTimerId_=null,this.JSC$20117_backChannelRequest_.cancel(),this.JSC$20117_backChannelRequest_=null,buq(this),Jo(20))};
var yYv=function(l){l.JSC$20117_deadBackChannelTimerId_!=null&&(_.nC.clearTimeout(l.JSC$20117_deadBackChannelTimerId_),l.JSC$20117_deadBackChannelTimerId_=null)};
Mz.prototype.JSC$20112_onRequestComplete=function(l){this.JSC$20113_channelDebug_.debug("Request complete");if(this.JSC$20117_backChannelRequest_==l){yYv(this);this.JSC$20117_backChannelRequest_=null;var D=2}else if(this.forwardChannelRequest_==l)this.forwardChannelRequest_=null,D=1;else return;this.JSC$20117_lastStatusCode_=l.JSC$20105_lastStatusCode_;if(this.state_!=0)if(l.JSC$20105_successful_)if(D==1){D=l.JSC$20105_postData_?l.JSC$20105_postData_.length:0;l=Date.now()-l.JSC$20105_requestStartTime_;
var U=m2w;U.dispatchEvent(new OF$(U,D,l,this.JSC$20117_forwardChannelRetryCount_));nO8(this);this.handler_&&this.handler_.JSC$20124_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else he$(this);else{U=l.getLastError();if(U==3||U==7||U==0&&this.JSC$20117_lastStatusCode_>0)this.JSC$20113_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20113_channelDebug_.debug("Maybe retrying, last error: "+tPW(U,this.JSC$20117_lastStatusCode_));var n;if(n=D==1)this.forwardChannelRequest_||
this.JSC$20117_forwardChannelTimerId_||this.state_==1||this.JSC$20117_forwardChannelRetryCount_>=2?n=!1:(this.JSC$20113_channelDebug_.debug("Going to retry POST"),this.JSC$20117_forwardChannelTimerId_=r4((0,_.jU)(this.JSC$20117_onStartForwardChannelTimer_,this,l),P5$(this,this.JSC$20117_forwardChannelRetryCount_)),this.JSC$20117_forwardChannelRetryCount_++,n=!0);if(n||D==2&&buq(this))return;this.JSC$20113_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20113_channelDebug_.debug("Error: HTTP request failed");
switch(U){case 1:qz(this,5);break;case 4:qz(this,10);break;case 3:qz(this,6);break;case 7:qz(this,12);break;default:qz(this,2)}}};
var P5$=function(l,D){var U=5E3+Math.floor(Math.random()*1E4);l.isActive()||(l.JSC$20113_channelDebug_.debug("Inactive channel"),U*=2);return U*D};
Mz.prototype.onInput_=function(l){for(var D=0;D<l.length;D++){var U=l[D];this.JSC$20117_lastArrayId_=U[0];U=U[1];this.state_==2?U[0]=="c"?(this.sid_=U[1],this.JSC$20117_hostPrefix_=U[2],U=U[3],U!=null?this.JSC$20117_channelVersion_=U:this.JSC$20117_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20124_channelOpened(),this.JSC$20117_backChannelUri_=TS5(this,this.JSC$20117_hostPrefix_,this.JSC$20117_path_),he$(this)):U[0]=="stop"&&qz(this,7):this.state_==3&&(U[0]=="stop"?qz(this,7):
U[0]!="noop"&&this.handler_&&this.handler_.JSC$20124_channelHandleArray(U),this.JSC$20117_backChannelRetryCount_=0)}};
Mz.prototype.JSC$20117_ensureInState_=function(l){if(!_.rl(arguments,this.state_))throw Error("Xk`"+this.state_);};
var qz=function(l,D){l.JSC$20113_channelDebug_.info("Error code "+D);if(D==2||D==9){var U=null;l.handler_&&(U=null);var n=(0,_.jU)(l.testGoogleComCallback_,l);U||(U=new _.fI("//www.google.com/images/cleardot.gif"),_.uo(U));Qzv(U.toString(),1E4,n)}else Jo(2);l.onError_(D)};
Mz.prototype.testGoogleComCallback_=function(l){l?(this.JSC$20113_channelDebug_.info("Successfully pinged google.com"),Jo(2)):(this.JSC$20113_channelDebug_.info("Failed to ping google.com"),Jo(1),this.onError_(8))};
Mz.prototype.onError_=function(l){this.JSC$20113_channelDebug_.debug("HttpChannel: error - "+l);this.state_=0;this.handler_&&this.handler_.JSC$20124_channelError(l);UnJ(this);lZr(this)};
var UnJ=function(l){l.state_=0;l.JSC$20117_lastStatusCode_=-1;if(l.handler_)if(l.pendingMaps_.length==0&&l.JSC$20113_outgoingMaps_.length==0)l.handler_.JSC$20124_channelClosed();else{l.JSC$20113_channelDebug_.debug("Number of undelivered maps, pending: "+l.pendingMaps_.length+", outgoing: "+l.JSC$20113_outgoingMaps_.length);var D=_.$9(l.pendingMaps_),U=_.$9(l.JSC$20113_outgoingMaps_);l.pendingMaps_.length=0;l.JSC$20113_outgoingMaps_.length=0;l.handler_.JSC$20124_channelClosed(D,U)}},fu8=function(l,
D){D=soT(l,null,D);
l.JSC$20113_channelDebug_.debug("GetForwardChannelUri: "+D);return D},TS5=function(l,D,U){D=soT(l,l.JSC$20112_shouldUseSecondaryDomains()?D:null,U);
l.JSC$20113_channelDebug_.debug("GetBackChannelUri: "+D);return D},soT=function(l,D,U){var n=_.Dp(U);
if(n.JSC$10113_domain_!="")D&&_.A8(n,D+"."+n.JSC$10113_domain_),_.Wp(n,n.JSC$10113_port_);else{var y=window.location;n=in5(y.protocol,D?D+"."+y.hostname:y.hostname,+y.port,U)}l.JSC$20117_extraParams_&&_.we.forEach(l.JSC$20117_extraParams_,function(A,C){_.ny(n,C,A)});
_.ny(n,"VER",l.JSC$20117_channelVersion_);Dn8(l,n);return n};
Mz.prototype.JSC$20112_createXhrIo=function(l){if(l)throw Error("Uk");l=new _.je;l.JSC$9877_withCredentials_=!1;return l};
Mz.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Mz.prototype.notifyServerReachabilityEvent=function(l){var D=m2w;D.dispatchEvent(new VPW(D,l))};
Mz.prototype.JSC$20112_shouldUseSecondaryDomains=function(){return!1};
new AVT;var gO$=function(){};
_.W=gO$.prototype;_.W.JSC$20124_channelOpened=function(){};
_.W.JSC$20124_channelHandleArray=function(){};
_.W.JSC$20124_channelSuccess=function(){};
_.W.JSC$20124_channelError=function(){};
_.W.JSC$20124_channelClosed=function(){};
_.W.JSC$20124_getAdditionalParams=function(){return{}};
_.W.isActive=function(){return!0};var uY$=function(l){l.front_.length===0&&(l.front_=l.back_,l.front_.reverse(),l.back_=[])};
_.W=LGv.prototype;_.W.enqueue=function(l){this.back_.push(l)};
_.W.peek=function(){uY$(this);return _.co(this.front_)};
_.W.getCount=function(){return this.front_.length+this.back_.length};
_.W.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.W.clear=function(){this.front_=[];this.back_=[]};
_.W.contains=function(l){return _.rl(this.front_,l)||_.rl(this.back_,l)};
_.W.remove=function(l){var D=this.front_;var U=Array.prototype.lastIndexOf.call(D,l,D.length-1);U>=0?(_.dsg(D,U),D=!0):D=!1;return D||_.fC(this.back_,l)};
_.W.getValues=function(){for(var l=[],D=this.front_.length-1;D>=0;--D)l.push(this.front_[D]);D=this.back_.length;for(var U=0;U<D;++U)l.push(this.back_[U]);return l};var Ru=function(l){this.JSC$20128_map_=new _.qT;this.size=0;l&&this.addAll(l)},vO8=function(l){var D=typeof l;
return D=="object"&&l||D=="function"?"o"+_.Ho(l):D.charAt(0)+l};
_.W=Ru.prototype;_.W.getCount=function(){return this.JSC$20128_map_.size};
_.W.add=function(l){this.JSC$20128_map_.set(vO8(l),l);this.size=this.JSC$20128_map_.size};
_.W.addAll=function(l){l=_.nL(l);for(var D=l.length,U=0;U<D;U++)this.add(l[U]);this.size=this.JSC$20128_map_.size};
_.W.removeAll=function(l){l=_.nL(l);for(var D=l.length,U=0;U<D;U++)this.remove(l[U]);this.size=this.JSC$20128_map_.size};
_.W.delete=function(l){l=this.JSC$20128_map_.remove(vO8(l));this.size=this.JSC$20128_map_.size;return l};
_.W.remove=function(l){return this.delete(l)};
_.W.clear=function(){this.JSC$20128_map_.clear();this.size=0};
_.W.isEmpty=function(){return this.JSC$20128_map_.size===0};
_.W.has=function(l){return this.JSC$20128_map_.containsKey(vO8(l))};
_.W.contains=function(l){return this.JSC$20128_map_.containsKey(vO8(l))};
_.W.getValues=function(){return this.JSC$20128_map_.getValues()};
_.W.values=function(){return this.JSC$20128_map_.values()};
_.W.clone=function(){return new Ru(this)};
_.W.equals=function(l){return this.getCount()==Opw(l)&&QHJ(this,l)};
var QHJ=function(l,D){var U=Opw(D);if(l.getCount()>U)return!1;!(D instanceof Ru)&&U>5&&(D=new Ru(D));return V5J(l,function(n){var y=D;return y.contains&&typeof y.contains=="function"?y.contains(n):y.containsValue&&typeof y.containsValue=="function"?y.containsValue(n):_.Ns(y)||typeof y==="string"?_.rl(y,n):_.we.containsValue(y,n)})};
Ru.prototype.__iterator__=function(){return this.JSC$20128_map_.__iterator__(!1)};
Ru.prototype[Symbol.iterator]=function(){return this.values()};var GwW={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(l){return(this._clampValue(l)-this.min)/(this.max-this.min)},
_clampValue:function(l){return Math.min(this.max,Math.max(this.min,this._calcStep(l)))},
_calcStep:function(l){l=parseFloat(l);if(!this.step)return l;l=Math.round((l-this.min)/this.step);return this.step<1?l/(1/this.step)+this.min:l*this.step+this.min},
_validateValue:function(){var l=this._clampValue(this.value);this.value=this.oldValue=isNaN(l)?this.oldValue:l;return this.value!==l},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var JYT;var Luv;_.e0({_template:function(){if(Luv!==void 0)return Luv;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;JYT===void 0&&(JYT=document.createElement("template"));var n=JYT;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return Luv=l},
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(){_.u6(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(l){l.keyCode===27&&(l.preventDefault(),this.close())},
_track:function(l){if(!this.persistent&&!this.disableSwipe)switch(l.preventDefault(),l.detail.state){case "start":this._trackStart(l);break;case "track":this._trackMove(l);break;case "end":this._trackEnd(l)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var l=this.$.contentContainer.getBoundingClientRect();this._savedWidth=l.width;this._translateOffset=this.position==="left"?l.left:l.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(l){this._trackDetails&&(this._translateDrawer(l.detail.dx+this._translateOffset),this._trackDetails.push({dx:l.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(l){if(this._trackDetails){var D=l.detail.dx+this._translateOffset,U=this.getWidth();D=this.position==="left"?D>=0||D<=-U:D<=0||D>=U;if(!D){var n=this._trackDetails;this._trackDetails=null;this._flingDrawer(l,n);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}U/=2;l.detail.dx<-U?this.opened=this.position==="right":l.detail.dx>U&&(this.opened=this.position==="left");D?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(l,D){for(var U=Date.now(),n=U-100,y,A=0,C=D.length-1;A<=C;){var h=A+C>>1,b=D[h];b.timeStamp>=n?(y=b,C=h-1):A=h+1}return y?(l.detail.dx-y.dx)/(U-y.timeStamp||1):0},
_flingDrawer:function(l,D){D=this._calculateVelocity(l,D);if(!(Math.abs(D)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;l=l.detail.dx+this._translateOffset;var U=this.getWidth(),n=this.position==="left",y=D>0;y?(D=Math.max(D,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(D=Math.min(D,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");D=this._FLING_INITIAL_SLOPE*(!y&&n?-(l+U):y&&!n?U-l:-l)/D;this._styleTransitionDuration(D);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,D)}},
_styleTransitionDuration:function(l){this.style.transitionDuration=l+"ms";this.$.contentContainer.style.transitionDuration=l+"ms";this.$.scrim.style.transitionDuration=l+"ms"},
_styleTransitionTimingFunction:function(l){this.$.contentContainer.style.transitionTimingFunction=l;this.$.scrim.style.transitionTimingFunction=l},
_translateDrawer:function(l){var D=this.getWidth();this.position==="left"?(l=Math.max(-D,Math.min(l,0)),this.$.scrim.style.opacity=1+l/D):(l=Math.max(0,Math.min(l,D)),this.$.scrim.style.opacity=1-l/D);this.translate3d(l+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var l=this._drawerState;l===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;l!==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=""),l!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var l=_.Ga(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"])');l.length>0?(this._firstTabStop=l[0],this._lastTabStop=l[l.length-1]):
this._lastTabStop=this._firstTabStop=null;(l=this.getAttribute("tabindex"))&&parseInt(l,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(l){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||l.keyCode!==9||(l.shiftKey?this._firstTabStop&&_.Ga(l).localTarget===this._firstTabStop&&(l.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Ga(l).localTarget===this._lastTabStop&&(l.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(l,D){this.toggleClass("visible",l&&!D,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 q32;var MKq;_.e0({_template:function(){if(MKq!==void 0)return MKq;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;q32===void 0&&(q32=document.createElement("template"));var n=q32;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return MKq=l},
is:"tp-yt-paper-progress",behaviors:[GwW],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(l){this.toggleClass("indeterminate",l,this.$.primaryProgress)},
_transformProgress:function(l,D){l.style.transform=l.style.webkitTransform="scaleX("+D/100+")"},
_mainRatioChanged:function(l){this._transformProgress(this.$.primaryProgress,l)},
_progressChanged:function(l,D,U,n,y){l=this._clampValue(l);D=this._clampValue(D);var A=this._calcRatio(l)*100,C=this._calcRatio(D)*100;this._setSecondaryRatio(A);this._transformProgress(this.$.secondaryProgress,A);this._transformProgress(this.$.primaryProgress,C);this.secondaryProgress=l;y?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",D);this.setAttribute("aria-valuemin",U);this.setAttribute("aria-valuemax",n)},
_disabledChanged:function(l){this.setAttribute("aria-disabled",l?"true":"false")},
_hideSecondaryProgress:function(l){return l===0}});var ReJ;var ZuP;var ee$=function(){};
_.W=ee$.prototype;_.W.registered=function(){};
_.W.addOwnKeyBinding=function(){};
_.W.removeOwnKeyBindings=function(){};
_.W.keyboardEventMatchesKeys=function(){};
_.W._collectKeyBindings=function(){};
_.W._prepKeyBindings=function(){};
_.W._addKeyBinding=function(){};
_.W._resetKeyEventListeners=function(){};
_.W._listenKeyEventListeners=function(){};
_.W._unlistenKeyEventListeners=function(){};
_.W._onKeyBindingEvent=function(){};
_.W._triggerKeyHandler=function(){};
_.W._tapHandler=function(){};
_.W._focusChanged=function(){};
_.W._detectKeyboardFocus=function(){};
_.W._userActivate=function(){};
_.W._upHandler=function(){};
_.W._spaceKeyDownHandler=function(){};
_.W._spaceKeyUpHandler=function(){};
_.W._asyncClick=function(){};
_.W._pressedChanged=function(){};
_.W._ariaActiveAttributeChanged=function(){};
_.W._activeChanged=function(){};
_.W._controlStateChanged=function(){};
_.W._changedButtonState=function(){};
_.W._focusBlurHandler=function(){};
_.W._disabledChanged=function(){};
_.W._changedControlState=function(){};
_.W._buttonStateChanged=function(){};
_.W._downHandler=function(){};
_.W.ensureRipple=function(){};
_.W.getRipple=function(){};
_.W.hasRipple=function(){};
_.W._noinkChanged=function(){};
_.W._calcRatio=function(){};
_.W._clampValue=function(){};
_.W._calcStep=function(){};
_.W._validateValue=function(){};
_.W._update=function(){};
_.W._setImmediateValue=function(){};
_.W._setExpand=function(){};
_.W._setDragging=function(){};
_.W._setTransiting=function(){};
_.W._setMarkers=function(){};
_.W._setPressed=function(){};
_.W._setPointerDown=function(){};
_.W._setReceivedFocusFromKeyboard=function(){};
_.W._setFocused=function(){};
_.W._setRatio=function(){};
ee$=_.e0({_template:function(){if(ZuP!==void 0)return ZuP;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;ReJ===void 0&&(ReJ=document.createElement("template"));var n=ReJ;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return ZuP=l},
is:"tp-yt-paper-slider",behaviors:[_.pi,_.ox,_.yXz,GwW],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&&_.YY(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(l,D,U){this.setAttribute("aria-valuemin",D);this.setAttribute("aria-valuemax",U);this.setAttribute("aria-valuenow",l);this._positionKnob(this._calcRatio(l)*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(l){this._setImmediateValue(this._calcStep(this._calcKnobPosition(l)));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(l){return(this.max-this.min)*l/100+this.min},
_onTrack:function(l){l.stopPropagation();switch(l.detail.state){case "start":this._trackStart(l);break;case "track":this._trackX(l);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(l){this.dragging||this._trackStart(l);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,l.detail.dx*(this._isRTL?-1:1)));l=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(l);l=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(l+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var l=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;l.transform=l.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(l){this._expandKnob();l.preventDefault();this.focus()},
_bartrack:function(l){this._allowBarEvent(l)&&this._onTrack(l)},
_barclick:function(l){this._w=this.$.sliderBar.offsetWidth;var D=this.$.sliderBar.getBoundingClientRect();D=(l.detail.x-D.left)/this._w*100;this._isRTL&&(D=100-D);var U=this.ratio;this._setTransiting(!0);this._positionKnob(D);U===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
l.preventDefault();this.focus()},
_bardown:function(l){this._allowBarEvent(l)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(l))},
_knobTransitionEnd:function(l){l.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(l,D,U,n){n||this._setMarkers([]);D=Math.round((U-D)/this.step);D>l&&(D=l);if(D<0||!isFinite(D))D=0;this._setMarkers(Array(D))},
_mergeClasses:function(l){return Object.keys(l).filter(function(D){return l[D]}).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(l){return!this.ignoreBarTouch||l.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(l){this._isRTL?this._incrementKey(l):this._decrementKey(l)},
_rightKey:function(l){this._isRTL?this._decrementKey(l):this._incrementKey(l)},
_incrementKey:function(l){this.disabled||(l.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),l.preventDefault())},
_decrementKey:function(l){this.disabled||(l.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),l.preventDefault())},
_changeValue:function(l){this.value=l.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(l){l.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.nN1._createRipple.call(this)},
_focusedChanged:function(l){l&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=l?"":"none",this._ripple.holdDown=l)}});var mnJ;var aZ$;var ZT=null,tK8=function(){};
_.W=tK8.prototype;_.W.fit=function(){};
_.W._discoverInfo=function(){};
_.W.resetFit=function(){};
_.W.refit=function(){};
_.W.position=function(){};
_.W.constrain=function(){};
_.W._sizeDimension=function(){};
_.W.__sizeDimension=function(){};
_.W.center=function(){};
_.W.__getNormalizedRect=function(){};
_.W.__getOffscreenArea=function(){};
_.W.__getPosition=function(){};
_.W.notifyResize=function(){};
_.W.assignParentResizable=function(){};
_.W.stopResizeNotificationsFor=function(){};
_.W._subscribeIronResize=function(){};
_.W._unsubscribeIronResize=function(){};
_.W.resizerShouldNotify=function(){};
_.W._onDescendantIronResize=function(){};
_.W._fireResize=function(){};
_.W._onIronRequestResizeNotifications=function(){};
_.W._parentResizableChanged=function(){};
_.W._notifyDescendant=function(){};
_.W._requestResizeNotifications=function(){};
_.W._findParent=function(){};
_.W.toggle=function(){};
_.W.open=function(){};
_.W.close=function(){};
_.W.cancel=function(){};
_.W.invalidateTabbables=function(){};
_.W._ensureSetup=function(){};
_.W._canceledChanged=function(){};
_.W._withBackdropChanged=function(){};
_.W._prepareRenderOpened=function(){};
_.W._finishRenderOpened=function(){};
_.W._finishRenderClosed=function(){};
_.W._preparePositioning=function(){};
_.W._finishPositioning=function(){};
_.W._applyFocus=function(){};
_.W._onCaptureClick=function(){};
_.W._onCaptureFocus=function(){};
_.W._onCaptureEsc=function(){};
_.W._onCaptureTab=function(){};
_.W._onIronResize=function(){};
_.W._onNodesChange=function(){};
_.W.__ensureFirstLastFocusables=function(){};
_.W.__openedChanged=function(){};
_.W.__deraf=function(){};
_.W.__updateScrollObservers=function(){};
_.W.__addScrollListeners=function(){};
_.W.__removeScrollListeners=function(){};
_.W.__isValidScrollAction=function(){};
_.W.__onCaptureScroll=function(){};
_.W.__saveScrollPosition=function(){};
_.W.__restoreScrollPosition=function(){};
_.W._setCanceled=function(){};
tK8=_.e0({_template:function(){if(aZ$!==void 0)return aZ$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;mnJ===void 0&&(mnJ=document.createElement("template"));var n=mnJ;U.call(D,n.content.cloneNode(!0),l.content.firstChild);return aZ$=l},
is:"tp-yt-paper-toast",behaviors:[_.AM],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(){_.cz._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.lv.requestAvailability()},
show:function(l){typeof l=="string"&&(l={text:l});for(var D in l)D.indexOf("_")===0?_.cz._warn('The property "'+D+'" is private and was not set.'):D in this?this[D]=l[D]:_.cz._warn('The property "'+D+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(l){l&&l.target===this&&l.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(ZT&&ZT!==this&&ZT.close(),ZT=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):ZT===this&&(ZT=null);_.yw._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(l){this.positionTarget=l},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var X0P=new _.y4("disablePersonalizationAction");var XbJ=new _.y4("showDmaConsentFlowCommand");var SY5=new _.y4("showMmgNoticeCommand");var S3v=new _.y4("saveConsentAction");var kw5=function(l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.FJ(l)};
_.Z(kw5,_.Bh);var dnJ=_.TTl(kw5);var Kuq=new _.y4("updateTopbarAvatarAction");var cYw=new _.y4("channelHandleValidationResultRenderer");var p0T=new _.y4("generateHandleFromNameResultRenderer");var xnq=new _.y4("channelHandleInputRenderer");var ZG2=new _.y4("copyLinkRenderer");var eqv=new _.y4("timedCommand");var mkJ=new _.y4("clearCookieAction");var aFT=new _.y4("getMultiPageMenuAction");var tuv=new _.y4("addToGuideSectionAction"),XfJ=new _.y4("removeFromGuideSectionAction");var SDJ=new _.y4("updateNotificationsUnseenCountAction");var k65=new _.y4("resetChannelUnreadCountCommand");var dkP=new _.y4("resetSubscriptionsUnreadDotCommand");var KoW=new _.y4("selectLanguageCommand");var zL2=new _.y4("sendFeedbackAction");var cRT=new _.y4("uploadImageToScottyCommand");var pf$=new _.y4("registerPromoCommand");var xkP=new _.y4("setPushNotificationsEnabledCommand");var jb8=new _.y4("desktopTopbarRenderer");var Fo$=new _.y4("surveyFollowUpRenderer");var oRP=new _.y4("handlesClaimingRadioOptionRenderer");var wf8=new _.y4("hotkeyDialogRenderer");var rRr=new _.y4("modifyReportFormCommand");var zq5=new _.y4("accountLinkCommand");var fFw=new _.y4("accountUnlinkCommand");var $kT=new _.y4("logAccountLinkingEventCommand");var NiJ=new _.y4("guideCollapsibleEntryRenderer");var sbH=new _.y4("guideDownloadsEntryRenderer");var xF$=new _.y4("guideEntryRenderer");var ERJ=new _.y4("getLocationCommand");var Ti8=new _.y4("locationCollectionCommand");var IF5=new _.y4("storiesItemViewModel");var HGP=new _.y4("addToRemoteQueueAction");var YD2=new _.y4("insertInRemoteQueueAction");var OG$=new _.y4("removeFromRemoteQueueAction");var VuT=new _.y4("notificationRenderer");var Pnv=new _.y4("localWatchHistoryCommand");var ixH=new _.y4("pdgBuyFlowHeaderRenderer");var lcH=new _.y4("pdgColorSliderRenderer");var D4r=new _.y4("pdgCommentOptionRenderer");var U4$=new _.y4("pdgCommentPreviewRenderer");var nnv=new _.y4("superVodSelectableItemButtonRenderer");var yPq=new _.y4("switchButtonRenderer");var AP8=new _.y4("upsellDialogRenderer");var Wh2=new _.y4("feedbackQuestionRenderer"),BpP=new _.y4("feedbackOptionRenderer");var CiT=new _.y4("sponsorshipsTierRenderer"),hlr=new _.y4("sponsorshipsPromotionChannelRenderer");var Piv=new _.y4("simpleSurveyMessageRenderer");var sP8=new _.y4("invokeInstrumentManagerAction");var bxJ=new _.y4("logYpcFlowDismissCommand");var gn2=new _.y4("logYpcFlowStartCommand");var u5P=new _.y4("unlimitedCreateFamilyEndpoint");var vn8=new _.y4("iconBadgeRenderer");var gh2=new _.y4("collaborativePlaylistVisibilityValidationRule");var QW8=function(l){_.Zz.call(this,"channelMessage");this.message=l};
_.Z(QW8,_.Zz);var Gi8=function(l){_.Zz.call(this,"channelError");this.error=l};
_.Z(Gi8,_.Zz);var JP8={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},LhP={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},qM8={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Mk8={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Rlr={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var e4=function(l){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 _.qT;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;l&&(this.id=l.id||l.name,this.name=l.name,this.clientName=l.clientName?l.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=l.app,this.type=l.type||"REMOTE_CONTROL",this.username=l.user||"",this.avatar=l.userAvatarUri||"",this.obfuscatedGaiaId=l.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=l.ownerObfuscatedGaiaId||"",this.castUserId=l.castUserId||"",this.theme=l.theme||"u",Zxq(this,l.capabilities||""),elq(this,
l.compatibleSenderThemes||""),m42(this,l.experiments||""),this.remoteControllerUrl=l.remoteControllerUrl||"",this.localChannelEncryptionKey=l.localChannelEncryptionKey||"",this.deviceContext=l.deviceContext,this.brand=l.brand||"",this.model=l.model||"",this.year=l.year||0,this.os=l.os||"",this.osVersion=l.osVersion||"",this.chipset=l.chipset||"",this.mdxDialServerType=l.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=l.pairingType||"unknown",l=l.deviceInfo)&&(l=JSON.parse(l),this.brand=
l.brand||"",this.model=l.model||"",this.year=l.year||0,this.os=l.os||"",this.osVersion=l.osVersion||"",this.chipset=l.chipset||"",this.clientName=l.clientName?l.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=l.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
e4.prototype.copy=function(){var l={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&&(l.brand=this.brand);
this.model&&(l.model=this.model);this.year&&(l.year=this.year);this.os&&(l.os=this.os);this.osVersion&&(l.osVersion=this.osVersion);this.chipset&&(l.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(l.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(l.mdxDialServerType=this.mdxDialServerType);l=new e4(l);l.connected=this.connected;l.remoteControllerUrl=this.remoteControllerUrl;l.localChannelEncryptionKey=this.localChannelEncryptionKey;l.deviceContext=
this.deviceContext;l.castUserId=this.castUserId;return l};
e4.prototype.equals=function(l){return l?this.id==l.id:!1};
var Zxq=function(l,D){l.capabilities.clear();_.O4(D.split(","),_.P6(_.we.contains,JP8)).forEach(function(U){l.capabilities.add(U)})},elq=function(l,D){l.compatibleSenderThemes.clear();
_.O4(D.split(","),_.P6(_.we.contains,LhP)).forEach(function(U){l.compatibleSenderThemes.add(U)})},m42=function(l,D){l.experiments.clear();
D.split(",").forEach(function(U){l.experiments.add(U)})};_.HI(Mtv,_.xT);_.W=Mtv.prototype;_.W.JSC$20164_onTick_=function(){this.JSC$20162_interval_=Math.min(3E5,this.JSC$20162_interval_*2);this.JSC$20164_listener_();this.nextTickTime_&&this.start()};
_.W.start=function(){var l=this.JSC$20162_interval_+15E3*Math.random(),D=this.delay_;D.isActive()||D.start(l);this.nextTickTime_=Date.now()+l};
_.W.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.W.isActive=function(){return this.delay_.isActive()};
_.W.reset=function(){this.delay_.stop();this.JSC$20162_interval_=5E3};_.HI(fZ,gO$);_.W=fZ.prototype;_.W.subscribe=function(l,D,U){return this.pubsub_.subscribe(l,D,U)};
_.W.unsubscribe=function(l,D,U){return this.pubsub_.unsubscribe(l,D,U)};
_.W.unsubscribeByKey=function(l){return this.pubsub_.unsubscribeByKey(l)};
_.W.publish=function(l,D){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.W.dispose=function(){this.JSC$20165_disposed_||(this.JSC$20165_disposed_=!0,_.WE(this.pubsub_),this.disconnect(),_.WE(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20165_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Ut({})})};
_.W.isDisposed=function(){return this.JSC$20165_disposed_};
_.W.connect=function(l,D,U){var n=this,y,A,C,h;return _.P(function(b){if(b.nextAddress==1)return _.tv(b,2),n.useAsyncBrowserChannelHandler_?b.yield(n.connectPromise_,2):b.jumpTo(2);_.aV(b);if(n.JSC$20165_disposed_||n.JSC$20165_channel_&&n.JSC$20165_channel_.getState()==2)return b.return();n.sCookie_="";n.reconnectTimer_.stop();n.connectionParams_=l||null;n.connectUi_=D||0;y=n.JSC$20165_pathPrefix_+"/test";A=n.JSC$20165_pathPrefix_+"/bind";C=new Mz(U?U.firstTestResults:null,U?U.secondTestResults:null,
n.enableAsyncTest_);if(h=n.JSC$20165_channel_)h.handler_=null;C.handler_=n;n.JSC$20165_channel_=C;if(n.useAsyncBrowserChannelHandler_)return n.connectPromise_=ac$(n).then(function(){return tkv(n,y,A,h,U)}),b.return(n.connectPromise_.then(function(){n.connectPromise_=_.Ut()}));
tkv(n,y,A,h,U);return _.Sc(b,0)})};
var tkv=function(l,D,U,n,y){XQ$(l);if(l.JSC$20165_channel_){var A=_.H3("ID_TOKEN"),C=l.JSC$20165_channel_.JSC$20117_extraHeaders_||{};A?C["x-youtube-identity-token"]=A:delete C["x-youtube-identity-token"];l.JSC$20165_channel_.JSC$20117_extraHeaders_=C}SMJ(l);n?(n.getState(),l.JSC$20165_channel_.connect(D,U,l.defaultQueryParams_,n.sid_,n.JSC$20117_lastArrayId_)):y?l.JSC$20165_channel_.connect(D,U,l.defaultQueryParams_,y.sessionId,y.arrayId):l.JSC$20165_channel_.connect(D,U,l.defaultQueryParams_)};
fZ.prototype.disconnect=function(l){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Ut())}finally{this.disconnectUi_=l||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),XQ$(this),this.JSC$20165_channel_&&(this.JSC$20165_channel_.getState()==3&&Wu2(this.JSC$20165_channel_),this.JSC$20165_channel_.disconnect()),this.disconnectUi_=0}};
fZ.prototype.sendMessage=function(l,D){var U=this,n;return _.P(function(y){switch(y.nextAddress){case 1:_.tv(y,2);if(!U.useAsyncBrowserChannelHandler_){y.jumpTo(2);break}return y.yield(U.connectPromise_,2);case 2:_.aV(y);if(U.JSC$20165_disposed_)return y.return();n={_sc:l};D&&_.we.extend(n,D);if(U.reconnectTimer_.isActive()||(U.JSC$20165_channel_?U.JSC$20165_channel_.getState():0)==2){U.JSC$20165_pendingMessages_.push(n);y.jumpTo(6);break}if(!U.isChannelOpened()){y.jumpTo(6);break}_.tv(y,8);if(!U.useAsyncBrowserChannelHandler_||
ki5(U,l)){y.jumpTo(8);break}return y.yield(ac$(U),8);case 8:_.aV(y,0,0,1);U.isChannelOpened()&&(ki5(U,l)||SMJ(U),XQ$(U),AY$(U.JSC$20165_channel_,n));_.Sc(y,6,1);break;case 6:_.Sc(y,0)}})};
var ki5=function(l,D){return l.enableMdxAuthForConnectionOnly_?!0:l.disableMdxAuthForAdMessages_?Object.values(qM8).includes(D):l.disableMdxAuthForNonPlaybackMessages_?!Object.values(Mk8).includes(D):l.disableMdxAuthForShortsMessages_?Object.values(Rlr).includes(D):!1};
fZ.prototype.JSC$20124_channelOpened=function(){this.isInitialReconnectTimer_?(_.WE(this.reconnectTimer_),this.reconnectTimer_=new Mtv(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20165_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)d4J(this);else{var l=this.JSC$20165_pendingMessages_;this.JSC$20165_pendingMessages_=[];var D=l.length;SMJ(this);Kh8(this,l,D);cPT(this)}else cPT(this)};
var d4J=function(l){var D,U;_.P(function(n){if(n.nextAddress==1)return _.tv(n,2),n.yield(ac$(l),2);_.aV(n);D=l.JSC$20165_pendingMessages_;l.JSC$20165_pendingMessages_=[];U=D.length;Kh8(l,D,U);cPT(l);return _.Sc(n,0)})},Kh8=function(l,D,U){for(var n=0;n<U;++n)AY$(l.JSC$20165_channel_,D[n]);
cPT(l)},cPT=function(l){l.publish("handlerOpened");
l.JSC$20165_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.W=fZ.prototype;_.W.JSC$20124_channelError=function(l){var D=l==2&&this.JSC$20165_channel_.JSC$20117_lastStatusCode_==401;l==4||D||this.reconnectTimer_.start();this.publish("handlerError",l,D);D=Object.keys(YAv).find(function(U){return YAv[U]===l});
this.JSC$20165_channelErrorCounter.increment("BROWSER_CHANNEL",D!=null?D:"UNKNOWN")};
_.W.JSC$20124_channelClosed=function(l,D){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(D)for(var U=D.length,n=0;n<U;++n){var y=D[n].map;y&&this.JSC$20165_pendingMessages_.push(y)}this.JSC$20165_channelClosedCounter.increment("BROWSER_CHANNEL");l&&this.pendingMapsOnClosedCounter.JSC$10013_streamzService.JSC$9868_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",l.length);D&&this.undeliveredMapsOnClosedCounter.JSC$10016_streamzService.JSC$9868_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
D.length)};
_.W.JSC$20124_channelSuccess=function(l,D){D!=null&&l!=null&&this.channelMessageSentCounter.increment()};
_.W.JSC$20124_getAdditionalParams=function(){var l={v:2};this.sCookie_&&(l.gsessionid=this.sCookie_);this.connectUi_!=0&&(l.ui=""+this.connectUi_);this.disconnectUi_!=0&&(l.ui=""+this.disconnectUi_);this.connectionParams_&&_.we.extend(l,this.connectionParams_);return l};
_.W.JSC$20124_channelHandleArray=function(l){l[0]=="S"?this.sCookie_=l[1]:l[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20165_channel_.disconnect()):this.publish("handlerMessage",new qr5(l[0],l[1]));this.JSC$20165_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.W.isChannelOpened=function(){return!!this.JSC$20165_channel_&&this.JSC$20165_channel_.getState()==3};
var XQ$=function(l){if(l.JSC$20165_channel_){var D=l.JSC$20165_getXsrfToken_(),U=l.JSC$20165_channel_.JSC$20117_extraHeaders_||{};D?U["x-youtube-lounge-xsrf-token"]=D:delete U["x-youtube-lounge-xsrf-token"];l.JSC$20165_channel_.JSC$20117_extraHeaders_=U}},ac$=function(l){if(l.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Ut();
if(!l.enableCachedUpdateAuthorizationHeader_)return pQq(l);l.updateAuthorizationHeaderPromise_===null&&(l.updateAuthorizationHeaderPromise_=pQq(l));return l.updateAuthorizationHeaderPromise_},pQq=function(l){return _.Kb(l.getAuthorizationHeader_().then(function(D){x4q(l,D)}).thenCatch(function(){}),function(){l.updateAuthorizationHeaderPromise_=null})},x4q=function(l,D){if(l.JSC$20165_channel_){var U=l.JSC$20165_channel_.JSC$20117_extraHeaders_||{};
D&&Object.keys(D).length>0?U=Object.assign({},U,D):delete U.Authorization;l.JSC$20165_channel_.JSC$20117_extraHeaders_=U}},SMJ=function(l){l.getAuthorizationHeaderSync_&&!l.useAsyncBrowserChannelHandler_&&x4q(l,l.getAuthorizationHeaderSync_())};
_.W=fZ.prototype;_.W.setLoungeToken=function(l){(this.defaultQueryParams_.loungeIdToken=l)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20165_channel_){var D=this.JSC$20165_channel_.JSC$20117_extraHeaders_||{};l?D["X-YouTube-LoungeId-Token"]=l:delete D["X-YouTube-LoungeId-Token"];this.JSC$20165_channel_.JSC$20117_extraHeaders_=D}};
_.W.getDeviceId=function(){return this.defaultQueryParams_.id};
_.W.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.W.reconnect=function(){var l=this.reconnectTimer_;l.delay_.fire();l.start()};
_.W.safeReconnect_=function(){var l=this.JSC$20165_channel_,D=0;l.JSC$20117_backChannelRequest_&&D++;l.forwardChannelRequest_&&D++;D==0&&this.connect(this.connectionParams_,this.connectUi_)};var Ef=function(l,D){var U=l.basePath;l.supportCors&&(U=l.scheme+"://"+l.domain+l.port+l.basePath);return _.hc(U+D,{})};
SrJ.prototype.sendRequest=function(l,D,U,n,y,A,C){l={format:A?"RAW":"JSON",method:l,context:this,timeout:5E3,withCredentials:!!C,onSuccess:_.P6(this.JSC$20171_onSuccess_,n,!A),onError:_.P6(this.onError_,y),onTimeout:_.P6(this.JSC$20171_onTimeout_,y)};U&&(l.postParams=U,l.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.dc(D,l)};
SrJ.prototype.JSC$20171_onSuccess_=function(l,D,U,n){D?l(n):l({text:U.responseText})};
SrJ.prototype.onError_=function(l,D){l(Error("Yk`"+D.status))};
SrJ.prototype.JSC$20171_onTimeout_=function(l){l(Error("Zk"))};var cBw=function(l,D){return!!D&&(l.id==D||l.uuid==D)},jWJ=function(l){return{name:l.name,
screenId:l.id,loungeToken:l.token,dialId:l.uuid,screenIdType:l.idType,screenIdSecret:l.secret}},Fhw=function(l){return new $3(l)},onH=function(l){return Array.isArray(l)?_.re(l,Fhw):[]},x9q=function(l){if(!l)return"null";
var D=l.token?".."+l.token.slice(-6):"-",U=l.uuid?".."+l.uuid.slice(-6):"-",n=l.secret?".."+l.secret.slice(-6):"-";return'{name:"'+l.name+'",id:'+l.id.substr(0,6)+"..,token:"+(D+",uuid:"+U+",idType:"+l.idType+",secret:")+(n+"}")},CDH=function(l){return Array.isArray(l)?"["+_.re(l,x9q).join(",")+"]":"null"};var rBH="",sf=null;var YrH=function(l,D){_.Xa.call(this);var U=this;this.handler=l();this.handler.subscribe("handlerOpened",this.JSC$20178_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(n,y){U.onError(y)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=D};
_.Z(YrH,_.Xa);_.W=YrH.prototype;_.W.connect=function(l,D,U){this.handler.connect(l,D,U)};
_.W.disconnect=function(l){this.handler.disconnect(l)};
_.W.reconnect=function(){this.handler.reconnect()};
_.W.getDeviceId=function(){return this.handler.getDeviceId()};
_.W.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.W.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.W.JSC$20178_onOpened=function(){this.dispatchEvent("channelOpened");var l=this.handler,D=this.currentScreenId;_.qN("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!l.JSC$20165_channel_.useChunked_,sessionId:l.JSC$20165_channel_.sid_,arrayId:l.JSC$20165_channel_.JSC$20117_lastArrayId_});_.qN("yt-remote-session-screen-id",D);l=pFr();D=xdJ();_.rl(l,D)||l.push(D);wF2(l);oXJ()};
_.W.onClosed=function(){this.dispatchEvent("channelClosed")};
_.W.onMessage=function(l){this.dispatchEvent(new QW8(l))};
_.W.onError=function(l){this.dispatchEvent(new Gi8(l?1:0))};
_.W.sendMessage=function(l,D){this.handler.sendMessage(l,D)};
_.W.setLoungeToken=function(l){this.handler.setLoungeToken(l)};
_.W.dispose=function(){this.handler.dispose()};var H4P=function(l,D,U){var n=this;U=U===void 0?function(){return""}:U;
var y=y===void 0?new qAP:y;var A=A===void 0?new _.cS:A;this.pathPrefix=l;this.defaultQueryParams=D;this.getXsrfToken=U;this.JSC$20181_pubsub=A;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new Mtv(function(){var C;((C=n.channel)==null?void 0:I8q((new ZFP(C,C.JSC$20088_channel_)).JSC$20098_channel_.forwardChannelRequestPool_))===0&&n.connect(n.connectionParams,n.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20181_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20181_channelOpenedCounter=new RWH;this.JSC$20181_channelClosedCounter=new Z4$;this.JSC$20181_channelMessageReceivedCounter=new md5;this.JSC$20181_channelErrorCounter=new afP};
H4P.prototype.connect=function(l,D){l=l===void 0?{}:l;D=D===void 0?0:D;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=l,this.connectUi=D,wQH(this),(l=_.H3("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=l: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 Gb(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,rPJ(this))};
var rPJ=function(l){_.Gt(l.channel,"w",function(){l.channelState=3;l.reconnectTimer.reset();l.connectionParams=null;l.connectUi=0;for(var D=_.B(l.nonAckedMessagesOnChannelClosed),U=D.next();!U.done;U=D.next())U=U.value,l.channel&&l.channel.send(U);l.nonAckedMessagesOnChannelClosed=[];l.publish("webChannelOpened");l.JSC$20181_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Gt(l.channel,"x",function(){l.channelState=0;l.reconnectTimer.isActive()||l.publish("webChannelClosed");var D,U=(D=l.channel)==null?void 0:ecq(new ZFP(D,D.JSC$20088_channel_));U&&(l.nonAckedMessagesOnChannelClosed=[].concat(_.zz(U)));l.JSC$20181_channelClosedCounter.increment("WEB_CHANNEL")});
_.Gt(l.channel,"z",function(D){var U=D.data;U[0]==="gracefulReconnect"?(l.reconnectTimer.start(),l.channel&&l.channel.close()):l.publish("webChannelMessage",new qr5(U[0],U[1]));l.lastStatusCode=D.statusCode;l.JSC$20181_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Gt(l.channel,"y",function(){l.lastStatusCode===401||l.reconnectTimer.start();l.publish("webChannelError");l.JSC$20181_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.W=H4P.prototype;_.W.disconnect=function(l){this.disconnectUi=l===void 0?0:l;this.reconnectTimer.stop();wQH(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.W.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.W.reconnect=function(){var l=this.reconnectTimer;l.delay_.fire();l.start()};
_.W.sendMessage=function(l,D){this.channel&&(wQH(this),l=Object.assign({},{_sc:l},D),this.channel.send(l))};
_.W.setLoungeToken=function(l){l||this.reconnectTimer.stop();l?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=l:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var wQH=function(l){var D=l.getXsrfToken();D?l.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=D:delete l.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.W=H4P.prototype;_.W.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.W.publish=function(l){return this.JSC$20181_pubsub.publish.apply(this.JSC$20181_pubsub,[l].concat(_.zz(_.EW.apply(1,arguments))))};
_.W.subscribe=function(l,D,U){return this.JSC$20181_pubsub.subscribe(l,D,U)};
_.W.unsubscribe=function(l,D,U){return this.JSC$20181_pubsub.unsubscribe(l,D,U)};
_.W.unsubscribeByKey=function(l){return this.JSC$20181_pubsub.unsubscribeByKey(l)};
_.W.dispose=function(){this.JSC$20181_disposed||(this.JSC$20181_disposed=!0,_.WE(this.JSC$20181_pubsub),this.disconnect(),_.WE(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.W.isDisposed=function(){return this.JSC$20181_disposed};var IfW=function(l){_.Xa.call(this);this.webChannelService=l();this.webChannelService.subscribe("webChannelOpened",this.JSC$20189_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.Z(IfW,_.Xa);_.W=IfW.prototype;_.W.connect=function(l,D){this.webChannelService.connect(l,D)};
_.W.disconnect=function(l){this.webChannelService.disconnect(l)};
_.W.reconnect=function(){this.webChannelService.reconnect()};
_.W.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.W.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.W.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.W.JSC$20189_onOpened=function(){this.dispatchEvent("channelOpened")};
_.W.onClosed=function(){this.dispatchEvent("channelClosed")};
_.W.onMessage=function(l){this.dispatchEvent(new QW8(l))};
_.W.onError=function(){this.dispatchEvent(new Gi8(this.webChannelService.lastStatusCode===401?1:0))};
_.W.sendMessage=function(l,D){this.webChannelService.sendMessage(l,D)};
_.W.setLoungeToken=function(l){this.webChannelService.setLoungeToken(l)};
_.W.dispose=function(){this.webChannelService.dispose()};var BL2=Date.now(),Tf=null,AS$=Array(50),ySJ=-1,WCv=!1;_.HI(Y3,_.Ps);Y3.prototype.getScreens=function(){return this.screens};
Y3.prototype.contains=function(l){return!!KGP(this.screens,l)};
Y3.prototype.get=function(l){return l?N6(this.screens,l):null};
var zlH=function(l,D){var U=l.get(D.uuid)||l.get(D.id);if(U)return l=U.name,U.id=D.id||U.id,U.name=D.name,U.token=D.token,U.uuid=D.uuid||U.uuid,U.name!=l;l.screens.push(D);return!0},fcP=function(l,D){var U=l.screens.length!=D.length;
l.screens=_.O4(l.screens,function(A){return!!KGP(D,A)});
for(var n=D.length,y=0;y<n;y++)U=zlH(l,D[y])||U;return U},$4w=function(l,D){var U=l.screens.length;
l.screens=_.O4(l.screens,function(n){return!(n||D?!n!=!D?0:n.id==D.id:1)});
return l.screens.length<U};
Y3.prototype.info=function(l){IC(this.JSC$20190_logName_,l)};var Npq=function(l,D,U,n,y){_.Ps.call(this);this.JSC$20193_http_=l;this.pairingCode_=D;this.deviceId_=U;this.friendlyName_=n;this.enableShortLivedLoungeToken_=y;this.pollIndex_=0;this.JSC$20193_xhr_=null;this.JSC$20193_timer_=NaN};
_.Z(Npq,_.Ps);_.W=Npq.prototype;_.W.start=function(){!this.JSC$20193_xhr_&&isNaN(this.JSC$20193_timer_)&&this.poll_()};
_.W.stop=function(){this.JSC$20193_xhr_&&(this.JSC$20193_xhr_.abort(),this.JSC$20193_xhr_=null);isNaN(this.JSC$20193_timer_)||(_.S_(this.JSC$20193_timer_),this.JSC$20193_timer_=NaN)};
_.W.disposeInternal=function(){this.stop();_.Ps.prototype.disposeInternal.call(this)};
_.W.poll_=function(){this.JSC$20193_timer_=NaN;this.JSC$20193_xhr_=_.dc(Ef(this.JSC$20193_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.jU)(this.JSC$20195_onSuccess_,this),onError:(0,_.jU)(this.onError_,this),onTimeout:(0,_.jU)(this.JSC$20195_onTimeout_,this)})};
_.W.JSC$20195_onSuccess_=function(l,D){this.JSC$20193_xhr_=null;l=D.screen||{};l.dialId=this.deviceId_;l.name=this.friendlyName_;D=-1;this.enableShortLivedLoungeToken_&&l.shortLivedLoungeToken&&l.shortLivedLoungeToken.value&&l.shortLivedLoungeToken.refreshIntervalMs&&(l.screenIdType="shortLived",l.loungeToken=l.shortLivedLoungeToken.value,D=l.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new $3(l),D)};
_.W.onError_=function(l){this.JSC$20193_xhr_=null;l.status&&l.status==404?this.pollIndex_>=sWT.length?this.publish("pairingFailed",Error("$k")):(l=sWT[this.pollIndex_],this.JSC$20193_timer_=_.tc((0,_.jU)(this.poll_,this),l),this.pollIndex_++):this.publish("pairingFailed",Error("al`"+l.status))};
_.W.JSC$20195_onTimeout_=function(){this.JSC$20193_xhr_=null;this.publish("pairingFailed",Error("bl"))};
var sWT=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.HI(V$,Y3);_.W=V$.prototype;_.W.start=function(){Of(this)&&this.publish("screenChange");!_.MN("yt-remote-lounge-token-expiration")&&En8(this);_.S_(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.tc((0,_.jU)(this.start,this),1E4)};
_.W.add=function(l,D){Of(this);zlH(this,l);TpT(this,!1);this.publish("screenChange");D(l);l.token||En8(this)};
_.W.remove=function(l,D){var U=Of(this);$4w(this,l)&&(TpT(this,!1),U=!0);D(l);U&&this.publish("screenChange")};
_.W.updateName=function(l,D,U,n){var y=Of(this),A=this.get(l.id);A?(A.name!=D&&(A.name=D,TpT(this,!1),y=!0),U(l)):n(Error("cl"));y&&this.publish("screenChange")};
_.W.disposeInternal=function(){_.S_(this.loungeTokenRefreshTimer_);V$.superClass_.disposeInternal.call(this)};
var En8=function(l){if(l.screens.length){var D=_.re(l.screens,function(n){return n.id}),U=Ef(l.JSC$20197_http_,"/pairing/get_lounge_token_batch");
l.JSC$20197_http_.sendRequest("POST",U,{screen_ids:D.join(",")},(0,_.jU)(l.handleLoungeTokens_,l),(0,_.jU)(l.handleLoungeTokenError_,l))}};
V$.prototype.handleLoungeTokens_=function(l){Of(this);var D=this.screens.length;l=l&&l.screens||[];for(var U=l.length,n=0;n<U;++n){var y=l[n],A=this.get(y.screenId);A&&(A.token=y.loungeToken,--D)}TpT(this,!D);D&&IC(this.JSC$20190_logName_,"Missed "+D+" lounge tokens.")};
V$.prototype.handleLoungeTokenError_=function(l){IC(this.JSC$20190_logName_,"Requesting lounge tokens failed: "+l)};
var Of=function(l){if(_.q("deprecate_pair_servlet_enabled"))return fcP(l,[]);var D=onH(ffW());D=_.O4(D,function(U){return!U.uuid});
return fcP(l,D)},TpT=function(l,D){NkJ(_.re(l.screens,jWJ));
D&&$d8()};var mD=function(l,D){_.Ps.call(this);this.getScreensToCheck_=D;D=(D=_.MN("yt-remote-online-screen-ids")||"")?D.split(","):[];for(var U={},n=this.getScreensToCheck_(),y=n.length,A=0;A<y;++A){var C=n[A].id;U[C]=_.rl(D,C)}this.screenIdSet_=U;this.JSC$20200_http_=l;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Icr("Initialized with "+(0,_.xN)(this.screenIdSet_))};
_.Z(mD,_.Ps);mD.prototype.isOnline=function(l){return!!this.screenIdSet_[l]};
mD.prototype.start=function(){var l=parseInt(_.MN("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.I7()-144E5<l?0:l)?HxH(this):(this.fastCheckEndTime_=_.I7()+3E5,_.qN("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
mD.prototype.isEmpty=function(){return _.we.isEmpty(this.screenIdSet_)};
mD.prototype.update=function(){Icr("Updating availability on schedule.");var l=this.getScreensToCheck_(),D=_.we.filter(this.screenIdSet_,function(U,n){return U&&!!N6(l,n)},this);
YM$(this,D)};
var OxT=function(l,D,U){var n=Ef(l.JSC$20200_http_,"/pairing/get_screen_availability");l.JSC$20200_http_.sendRequest("POST",n,{lounge_token:D.token},(0,_.jU)(function(y){y=y.screens||[];for(var A=y.length,C=0;C<A;++C)if(y[C].loungeToken==D.token){U(y[C].status=="online");return}U(!1)},l),(0,_.jU)(function(){U(!1)},l))};
mD.prototype.disposeInternal=function(){_.S_(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Ps.prototype.disposeInternal.call(this)};
var YM$=function(l,D){a:if(_.we.getCount(D)!=_.we.getCount(l.screenIdSet_))var U=!1;else{U=_.we.getKeys(D);for(var n=U.length,y=0;y<n;++y)if(!l.screenIdSet_[U[y]]){U=!1;break a}U=!0}U||(Icr("Updated online screens: "+(0,_.xN)(l.screenIdSet_)),l.screenIdSet_=D,l.publish("screenChange"));Vk5(l)},HxH=function(l){isNaN(l.refreshTimer_)||_.S_(l.refreshTimer_);
l.refreshTimer_=_.tc((0,_.jU)(l.requestScreenAvailability_,l),l.fastCheckEndTime_>0&&l.fastCheckEndTime_<_.I7()?2E4:1E4)};
mD.prototype.requestScreenAvailability_=function(){_.S_(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var l=iOv(this);if(_.we.getCount(l)){var D=Ef(this.JSC$20200_http_,"/pairing/get_screen_availability"),U={lounge_token:_.we.getKeys(l).join(",")};this.currentRequest_=this.JSC$20200_http_.sendRequest("POST",D,U,(0,_.jU)(this.onScreenAvailability_,this,l),(0,_.jU)(this.onScreenAvailabilityError_,this))}else YM$(this,{}),HxH(this)};
mD.prototype.onScreenAvailability_=function(l,D){this.currentRequest_=null;var U=_.we.getKeys(iOv(this));if(_.Y9(U,_.we.getKeys(l))){D=D.screens||[];U={};for(var n=D.length,y=0;y<n;++y)U[l[D[y].loungeToken]]=D[y].status=="online";YM$(this,U);HxH(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
mD.prototype.onScreenAvailabilityError_=function(l){this.warn_("Screen availability failed: "+l);this.currentRequest_=null;HxH(this)};
var Icr=function(l){IC("OnlineScreenService",l)};
mD.prototype.warn_=function(l){IC("OnlineScreenService",l)};
var iOv=function(l){var D={};_.Ac(l.getScreensToCheck_(),function(U){U.token?D[U.token]=U.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return D},Vk5=function(l){l=_.we.getKeys(_.we.filter(l.screenIdSet_,function(D){return D}));
l.sort(_.xs$);l.length?_.qN("yt-remote-online-screen-ids",l.join(","),60):_.Rn("yt-remote-online-screen-ids")};_.HI(iS,Y3);_.W=iS.prototype;_.W.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.W.add=function(l,D,U){this.localScreenService_.add(l,D,U)};
_.W.remove=function(l,D,U){this.localScreenService_.remove(l,D,U);this.onlineScreenService_.update()};
_.W.updateName=function(l,D,U,n){this.localScreenService_.contains(l)?this.localScreenService_.updateName(l,D,U,n):(l="Updating name of unknown screen: "+l.name,IC(this.JSC$20190_logName_,l),n(Error(l)))};
_.W.getScreens=function(l){return l?this.screens:UD8(this.screens,_.O4(this.automaticScreens_,function(D){return!this.contains(D)},this))};
_.W.JSC$20205_getOnlineScreens=function(){return _.O4(this.getScreens(!0),function(l){return this.onlineScreenService_.isOnline(l.id)},this)};
var DBw=function(l,D,U,n,y,A){l.info("getAutomaticScreenByIds "+U+" / "+D);U||(U=l.deviceToScreenId_[D]);var C=l.getScreens(),h=U?N6(C,U):null;U&&(l.disableAutomaticScreenCache_||h)||(h=N6(C,D));if(h){h.uuid=D;var b=au(l,h);OxT(l.onlineScreenService_,b,function(u){y(u?b:null)})}else U?l4q(l,U,(0,_.jU)(function(u){var Q=au(this,new $3({name:n,
screenId:U,loungeToken:u,dialId:D||""}));OxT(this.onlineScreenService_,Q,function(G){y(G?Q:null)})},l),A):y(null)};
iS.prototype.JSC$20205_getScreenByPollingPairingCode=function(l,D,U,n,y,A){var C=this;this.info("getDialScreenByPairingCode "+l+" / "+D);var h=new Npq(this.JSC$20203_http_,l,D,U,n);h.subscribe("pairingComplete",function(b,u){_.WE(h);y(au(C,b),u)});
h.subscribe("pairingFailed",function(b){_.WE(h);A(b)});
h.start();return(0,_.jU)(h.stop,h)};
var UBT=function(l,D){for(var U=l.screens.length,n=0;n<U;++n)if(l.screens[n].name==D)return l.screens[n];return null};
iS.prototype.JSC$20205_getScreenByPairingCode=function(l,D,U,n){_.dc(Ef(this.JSC$20203_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:l},timeout:5E3,onSuccess:(0,_.jU)(function(y,A){y=new $3(A.screen||{});if(!y.name||UBT(this,y.name)){a:{A=y.name;for(var C=2,h=D(A,C);UBT(this,h);){C++;if(C>20)break a;h=D(A,C)}A=h}y.name=A}U(au(this,y))},this),
onError:(0,_.jU)(function(y){n(Error("dl`"+y.status))},this),
onTimeout:(0,_.jU)(function(){n(Error("el"))},this)})};
var neJ=function(l,D,U){OxT(l.onlineScreenService_,D,U)};
iS.prototype.disposeInternal=function(){_.WE(this.localScreenService_);_.WE(this.onlineScreenService_);iS.superClass_.disposeInternal.call(this)};
var l4q=function(l,D,U,n){l.info("requestLoungeToken_ for "+D);var y={postParams:{screen_ids:D},method:"POST",context:l,onSuccess:function(A,C){A=C&&C.screens||[];A[0]&&A[0].screenId==D?U(A[0].loungeToken):n(Error("fl"))},
onError:function(){n(Error("gl"))}};
_.dc(Ef(l.JSC$20203_http_,"/pairing/get_lounge_token_batch"),y)},y5P=function(l){l.screens=l.localScreenService_.getScreens();
for(var D=_.we.transpose(l.deviceToScreenId_),U=l.screens.length,n=0;n<U;++n){var y=l.screens[n];y.uuid=D[y.id]||""}l.info("Updated manual screens: "+CDH(l.screens))};
iS.prototype.handleScreenChange_=function(){y5P(this);this.publish("screenChange");this.onlineScreenService_.update()};
var hFq=function(l){A5$(l);l.localScreenService_=new V$(l.JSC$20203_http_);l.localScreenService_.subscribe("screenChange",(0,_.jU)(l.handleScreenChange_,l));y5P(l);l.disableAutomaticScreenCache_||(l.automaticScreens_=onH(_.MN("yt-remote-automatic-screen-cache")||[]));A5$(l);l.info("Initializing automatic screens: "+CDH(l.automaticScreens_));l.onlineScreenService_=new mD(l.JSC$20203_http_,(0,_.jU)(l.getScreens,l,!0));l.onlineScreenService_.subscribe("screenChange",(0,_.jU)(function(){this.publish("onlineScreenChange")},
l))},au=function(l,D){var U=l.get(D.id);
U?(U.uuid=D.uuid,D=U):((U=N6(l.automaticScreens_,D.uuid))?(U.id=D.id,U.token=D.token,D=U):l.automaticScreens_.push(D),l.disableAutomaticScreenCache_||W_$(l));A5$(l);l.deviceToScreenId_[D.uuid]=D.id;_.qN("yt-remote-device-id-map",l.deviceToScreenId_,31536E3);return D},W_$=function(l){l=_.O4(l.automaticScreens_,function(D){return D.idType!="shortLived"});
_.qN("yt-remote-automatic-screen-cache",_.re(l,jWJ))},A5$=function(l){l.deviceToScreenId_=_.MN("yt-remote-device-id-map")||{}};
iS.prototype.dispose=iS.prototype.dispose;_.HI(lS,_.Ps);var to=function(l,D){l.screen_=D;l.publish("sessionScreen",l.screen_)},B_$=function(l,D){l.screen_&&(l.screen_.token=D,au(l.JSC$20207_screenService_,l.screen_));
l.publish("sessionScreen",l.screen_)};
lS.prototype.onSessionStopped=function(l){this.isDisposed()||(l&&(XK(this,""+l),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
lS.prototype.info=function(l){IC(this.JSC$20207_logName_,l)};
var XK=function(l,D){IC(l.JSC$20207_logName_,D)};
lS.prototype.JSC$20209_getCastSession=function(){return null};
lS.prototype.setDisplayStatus=function(l){var D=this.receiver_;l?(D.displayStatus=new chrome.cast.ReceiverDisplayStatus(l,[]),D.displayStatus.showStop=!0):D.displayStatus=null;chrome.cast.setReceiverDisplayStatus(D,(0,_.jU)(function(){this.info("Updated receiver status for "+D.friendlyName+": "+l)},this),(0,_.jU)(function(){XK(this,"Failed to update receiver status for: "+D.friendlyName)},this))};
lS.prototype.disposeInternal=function(){this.setDisplayStatus("");lS.superClass_.disposeInternal.call(this)};var S4=function(l,D,U){lS.call(this,l,D,"CastSession");var n=this;this.config_=U;this.JSC$20212_session_=null;this.JSC$20212_boundSessionUpdate_=(0,_.jU)(this.JSC$20214_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.jU)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.tc(function(){C9$(n,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20212_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20212_isInitLoungeToken_=!1;this.JSC$20212_lastLoungeTokenRefreshError_="unknown"};
_.Z(S4,lS);_.W=S4.prototype;
_.W.setCastSession=function(l){if(this.JSC$20212_session_){if(this.JSC$20212_session_==l)return;XK(this,"Overriding cast session with new session object");hAw(this);this.JSC$20212_isInitLoungeToken_=!1;this.JSC$20212_lastLoungeTokenRefreshError_="unknown";this.JSC$20212_session_.removeUpdateListener(this.JSC$20212_boundSessionUpdate_);this.JSC$20212_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20212_session_=l;this.JSC$20212_session_.addUpdateListener(this.JSC$20212_boundSessionUpdate_);this.JSC$20212_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);P9W(this,"getMdxSessionStatus")};
_.W.launchWithParams=function(l){this.info("launchWithParams no-op for Cast: "+(0,_.xN)(l))};
_.W.stop=function(){if(this.JSC$20212_session_)this.JSC$20212_session_.stop((0,_.jU)(function(){this.onSessionStopped()},this),(0,_.jU)(function(){this.onSessionStopped(Error("hl"))},this));
else this.onSessionStopped(Error("il"))};
_.W.setDisplayStatus=function(){};
_.W.disposeInternal=function(){this.info("disposeInternal");hAw(this);this.JSC$20212_session_&&(this.JSC$20212_session_.removeUpdateListener(this.JSC$20212_boundSessionUpdate_),this.JSC$20212_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20212_session_=null;lS.prototype.disposeInternal.call(this)};
var geJ=function(l,D){_.S_(l.getLoungeTokenTimeoutKey_);l.getLoungeTokenTimeoutKey_=0;D==0?bO$(l):l.getLoungeTokenTimeoutKey_=_.tc(function(){bO$(l)},D)},bO$=function(l){P9W(l,"getLoungeToken");
_.S_(l.onLoungeTokenTimeoutKey_);l.onLoungeTokenTimeoutKey_=_.tc(function(){u3$(l,null)},3E4)},P9W=function(l,D){l.info("sendYoutubeMessage_: "+D+" "+(0,_.xN)(void 0));
var U={};U.type=D;l.JSC$20212_session_?l.JSC$20212_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",U,function(){},(0,_.jU)(function(){XK(this,"Failed to send message: "+D+".")},l)):XK(l,"Sending yt message without session: "+(0,_.xN)(U))};
S4.prototype.onYoutubeMessage_=function(l,D){if(!this.isDisposed())if(D)if(D=(0,_.MA)(D),_.I_(D))switch(l=""+D.type,D=D.data||{},this.info("onYoutubeMessage_: "+l+" "+(0,_.xN)(D)),l){case "mdxSessionStatus":C9$(this,D);break;case "loungeToken":u3$(this,D);break;default:XK(this,"Unknown youtube message: "+l)}else XK(this,"Unable to parse message.");else XK(this,"No data in message.")};
var vew=function(l,D){if(D)l.info("onConnectedScreenId_: Received screenId: "+D),l.screen_&&l.screen_.id==D||l.getScreen_(D,function(U){to(l,U)},function(){return l.onSessionStopped()},5);
else l.onSessionStopped(Error("jl"))},GS5=function(l,D,U){l.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(D));
var n=new $3(D);QDJ(l,n,function(y){y?(l.JSC$20212_isInitLoungeToken_=!0,au(l.JSC$20207_screenService_,n),to(l,n),l.JSC$20212_lastLoungeTokenRefreshError_="unknown",geJ(l,U)):(_.ll(Error("kl`"+JSON.stringify(D))),l.onSessionStopped())},5)},C9$=function(l,D){_.S_(l.sessionStatusTimeoutKey_);
l.sessionStatusTimeoutKey_=0;if(D)l.config_.enableCastLoungeToken&&D.loungeToken?D.deviceId?l.screen_&&l.screen_.uuid==D.deviceId||(D.loungeTokenRefreshIntervalMs?GS5(l,{name:l.receiver_.friendlyName,screenId:D.screenId,loungeToken:D.loungeToken,dialId:D.deviceId,screenIdType:"shortLived"},D.loungeTokenRefreshIntervalMs):(_.ll(Error("ml`"+JSON.stringify(D))),vew(l,D.screenId))):(_.ll(Error("ll`"+JSON.stringify(D))),vew(l,D.screenId)):vew(l,D.screenId);else l.onSessionStopped(Error("jl"))},u3$=function(l,
D){_.S_(l.onLoungeTokenTimeoutKey_);
l.onLoungeTokenTimeoutKey_=0;var U=null;if(D)if(D.loungeToken){var n;((n=l.screen_)==null?void 0:n.token)==D.loungeToken&&(U="staleLoungeToken")}else U="missingLoungeToken";else U="noLoungeTokenResponse";U?(l.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(D)+", error: "+U)),l.JSC$20212_lastLoungeTokenRefreshError_=U,geJ(l,3E4)):(B_$(l,D.loungeToken),l.JSC$20212_isInitLoungeToken_=!1,l.JSC$20212_lastLoungeTokenRefreshError_="unknown",geJ(l,D.loungeTokenRefreshIntervalMs))};
S4.prototype.getScreen_=function(l,D,U,n){_.S_(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;DBw(this.JSC$20207_screenService_,this.receiver_.label,l,this.receiver_.friendlyName,(0,_.jU)(function(y){y?D(y):n>=0?(XK(this,"Screen "+l+" appears to be offline. "+n+" retries left."),this.getScreenTimeoutKey_=_.tc((0,_.jU)(this.getScreen_,this,l,D,U,n-1),300)):U(Error("nl"))},this),U)};
var QDJ=function(l,D,U,n){_.S_(l.JSC$20212_checkScreenAvailabilityTimeoutKey_);l.JSC$20212_checkScreenAvailabilityTimeoutKey_=0;neJ(l.JSC$20207_screenService_,D,function(y){y||n<0?U(y):l.JSC$20212_checkScreenAvailabilityTimeoutKey_=_.tc(function(){QDJ(l,D,U,n-1)},300)})};
S4.prototype.JSC$20209_getCastSession=function(){return this.JSC$20212_session_};
S4.prototype.JSC$20214_onSessionUpdate_=function(l){this.isDisposed()||l||(XK(this,"Cast session died."),this.onSessionStopped())};
var hAw=function(l){_.S_(l.getScreenTimeoutKey_);l.getScreenTimeoutKey_=0;_.S_(l.JSC$20212_checkScreenAvailabilityTimeoutKey_);l.JSC$20212_checkScreenAvailabilityTimeoutKey_=0;_.S_(l.sessionStatusTimeoutKey_);l.sessionStatusTimeoutKey_=0;_.S_(l.onLoungeTokenTimeoutKey_);l.onLoungeTokenTimeoutKey_=0;_.S_(l.getLoungeTokenTimeoutKey_);l.getLoungeTokenTimeoutKey_=0};var k$=function(l,D,U,n){lS.call(this,l,D,"DialSession");this.config_=n;this.JSC$20216_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20216_theme_=U;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20216_deferredLaunchDeadlineTimer_=NaN;this.JSC$20216_boundSessionUpdate_=(0,_.jU)(this.JSC$20218_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20216_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20216_isInitLoungeToken_=!1;this.JSC$20216_lastLoungeTokenRefreshError_="unknown"};
_.Z(k$,lS);k$.prototype.setCastSession=function(l){this.JSC$20216_session_=l;this.JSC$20216_session_.addUpdateListener(this.JSC$20216_boundSessionUpdate_)};
k$.prototype.launchWithParams=function(l){this.connectData_=l;this.deferredLaunch_()};
k$.prototype.stop=function(){J5T(this);if(this.JSC$20216_session_)this.JSC$20216_session_.stop((0,_.jU)(this.onSessionStopped,this,null),(0,_.jU)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
k$.prototype.disposeInternal=function(){J5T(this);this.JSC$20216_session_&&this.JSC$20216_session_.removeUpdateListener(this.JSC$20216_boundSessionUpdate_);this.JSC$20216_session_=null;lS.prototype.disposeInternal.call(this)};
var L_w=function(l){var D;return!!(l.config_.enableDialLoungeToken&&((D=l.JSC$20216_session_)==null?0:D.getDialAppInfo))},Mg8=function(l){l.cancelPolling_=l.JSC$20207_screenService_.JSC$20205_getScreenByPollingPairingCode(l.reversePairingCode_,l.receiver_.label,l.receiver_.friendlyName,L_w(l),function(D,U){l.cancelPolling_=function(){};
l.JSC$20216_isInitLoungeToken_=!0;to(l,D);D.idType=="shortLived"&&U>0&&q_8(l,U)},function(D){l.cancelPolling_=function(){};
l.onSessionStopped(D)})};
k$.prototype.JSC$20218_onSessionUpdate_=function(l){this.isDisposed()||l||(XK(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var RAJ=function(l){var D={};D.pairingCode=l.reversePairingCode_;D.theme=l.JSC$20216_theme_;Tk5()&&(D.env_useStageMdx=1);return _.Kt(D)},ZOv=function(l){return new Promise(function(D){l.reversePairingCode_=kM8();
if(l.connectData_){var U=new chrome.cast.DialLaunchResponse(!0,RAJ(l));D(U);Mg8(l)}else l.deferredLaunch_=function(){_.S_(l.JSC$20216_deferredLaunchDeadlineTimer_);l.deferredLaunch_=function(){};
l.JSC$20216_deferredLaunchDeadlineTimer_=NaN;var n=new chrome.cast.DialLaunchResponse(!0,RAJ(l));D(n);Mg8(l)},l.JSC$20216_deferredLaunchDeadlineTimer_=_.tc(function(){l.deferredLaunch_()},100)})},mBT=function(l,D,U){l.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(D));
var n=new $3(D);return(new Promise(function(y){eA2(l,n,function(A){A?(l.JSC$20216_isInitLoungeToken_=!0,au(l.JSC$20207_screenService_,n),to(l,n),q_8(l,U)):_.ll(Error("pl`"+JSON.stringify(D)));y(A)},5)})).then(function(y){return y?new chrome.cast.DialLaunchResponse(!1):ZOv(l)})},a4q=function(l,D){var U=l.launchData_.receiver.label,n=l.receiver_.friendlyName;
return(new Promise(function(y){DBw(l.JSC$20207_screenService_,U,D,n,function(A){A&&A.token&&to(l,A);y(A)},function(A){XK(l,"Failed to get DIAL screen: "+A);
y(null)})})).then(function(y){return y&&y.token?new chrome.cast.DialLaunchResponse(!1):ZOv(l)})},eA2=function(l,D,U,n){_.S_(l.JSC$20216_checkScreenAvailabilityTimeoutKey_);
l.JSC$20216_checkScreenAvailabilityTimeoutKey_=0;neJ(l.JSC$20207_screenService_,D,function(y){y||n<0?U(y):l.JSC$20216_checkScreenAvailabilityTimeoutKey_=_.tc(function(){eA2(l,D,U,n-1)},300)})},q_8=function(l,D){l.info("getDialAppInfoWithTimeout_ "+D);
L_w(l)&&(_.S_(l.getDialAppInfoTimeoutKey_),l.getDialAppInfoTimeoutKey_=0,D==0?tgJ(l):l.getDialAppInfoTimeoutKey_=_.tc(function(){tgJ(l)},D))},tgJ=function(l){L_w(l)&&l.JSC$20216_session_.getDialAppInfo(function(D){l.info("getDialAppInfo dialLaunchData: "+JSON.stringify(D));
D=D.extraData||{};var U=null;if(D.loungeToken){var n;((n=l.screen_)==null?void 0:n.token)==D.loungeToken&&(U="staleLoungeToken")}else U="missingLoungeToken";U?(l.JSC$20216_lastLoungeTokenRefreshError_=U,q_8(l,3E4)):(l.JSC$20216_isInitLoungeToken_=!1,l.JSC$20216_lastLoungeTokenRefreshError_="unknown",B_$(l,D.loungeToken),q_8(l,D.loungeTokenRefreshIntervalMs))},function(D){l.info("getDialAppInfo error: "+D);
l.JSC$20216_lastLoungeTokenRefreshError_="noLoungeTokenResponse";q_8(l,3E4)})},J5T=function(l){_.S_(l.JSC$20216_checkScreenAvailabilityTimeoutKey_);
l.JSC$20216_checkScreenAvailabilityTimeoutKey_=0;_.S_(l.getDialAppInfoTimeoutKey_);l.getDialAppInfoTimeoutKey_=0;l.cancelPolling_();l.cancelPolling_=function(){};
_.S_(l.JSC$20216_deferredLaunchDeadlineTimer_)};var dB=function(l,D){lS.call(this,l,D,"ManualSession");this.JSC$20220_deferredLaunchDeadlineTimer_=_.tc((0,_.jU)(this.launchWithParams,this,null),150)};
_.Z(dB,lS);dB.prototype.stop=function(){this.onSessionStopped()};
dB.prototype.setCastSession=function(){};
dB.prototype.launchWithParams=function(){_.S_(this.JSC$20220_deferredLaunchDeadlineTimer_);this.JSC$20220_deferredLaunchDeadlineTimer_=NaN;var l=N6(this.JSC$20207_screenService_.getScreens(),this.receiver_.label);if(l)to(this,l);else this.onSessionStopped(Error("ql"))};
dB.prototype.disposeInternal=function(){_.S_(this.JSC$20220_deferredLaunchDeadlineTimer_);this.JSC$20220_deferredLaunchDeadlineTimer_=NaN;lS.prototype.disposeInternal.call(this)};var yN=function(l,D){_.Ps.call(this);this.config_=D;this.JSC$20223_screenService_=l;this.JSC$20223_appId_=D.appId||"233637DE";this.JSC$20223_theme_=D.theme||"cl";this.disableDial_=D.disableCastApi||!1;this.forceMirroring_=D.forceMirroring||!1;this.JSC$20223_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.jU)(this.onReceiverAction_,this)};
_.Z(yN,_.Ps);
yN.prototype.init=function(l,D){chrome.cast.timeout.requestSession=3E4;var U=new chrome.cast.SessionRequest(this.JSC$20223_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.q("desktop_enable_cast_connect")&&(U.androidReceiverCompatible=!0);this.disableDial_||(U.dialRequest=new chrome.cast.DialRequest("YouTube"));var n=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;l=l||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var y=(0,_.jU)(this.onReceiverUpdated_,
this);U=new chrome.cast.ApiConfig(U,(0,_.jU)(this.onSessionEstablished_,this),y,n,l);U.customDialLaunchCallback=(0,_.jU)(this.onDialLaunchRequested_,this);chrome.cast.initialize(U,(0,_.jU)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),D95(),this.JSC$20223_screenService_.subscribe("onlineScreenChange",(0,_.jU)(this.JSC$20225_onScreenChange_,this)),this.customReceivers_=XxP(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.jU)(function(A){this.warn_("Failed to set initial custom receivers: "+(0,_.xN)(A))},this)),this.publish("yt-remote-cast2-availability-change",S_2(this)),D(!0))},this),(0,_.jU)(function(A){this.warn_("Failed to initialize API: "+(0,_.xN)(A));
D(!1)},this))};
yN.prototype.setConnectedScreenStatus=function(l,D){Kr("Setting connected screen ID: "+l+" -> "+D);if(this.JSC$20223_session_){var U=this.JSC$20223_session_.screen_;if(!l||U&&U.id!=l)Kr("Unsetting old screen status: "+this.JSC$20223_session_.receiver_.friendlyName),cj(this,null)}if(l&&D){if(!this.JSC$20223_session_){l=N6(this.JSC$20223_screenService_.getScreens(),l);if(!l){Kr("setConnectedScreenStatus: Unknown screen.");return}if(l.idType=="shortLived"){Kr("setConnectedScreenStatus: Screen with id type to be short lived.");
return}U=kSq(this,l);U||(Kr("setConnectedScreenStatus: Connected receiver not custom..."),U=new chrome.cast.Receiver(l.uuid?l.uuid:l.id,l.name),U.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(U),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.jU)(function(n){this.warn_("Failed to set initial custom receivers: "+(0,_.xN)(n))},this)));
Kr("setConnectedScreenStatus: new active receiver: "+U.friendlyName);cj(this,new dB(this.JSC$20223_screenService_,U),!0)}this.JSC$20223_session_.setDisplayStatus(D)}else Kr("setConnectedScreenStatus: no screen.")};
var kSq=function(l,D){return D?_.pC(l.customReceivers_,function(U){return cBw(D,U.label)},l):null};
yN.prototype.setLaunchParams=function(l){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20223_session_?this.JSC$20223_session_.launchWithParams(l):this.warn_("Setting connection data without a session")};
yN.prototype.JSC$20225_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20223_session_?(this.JSC$20223_session_.stop(),cj(this,null)):Kr("Stopping non-existing session")};
yN.prototype.requestSession=function(){chrome.cast.requestSession((0,_.jU)(this.onSessionEstablished_,this),(0,_.jU)(this.onSessionRequestFailed_,this))};
yN.prototype.disposeInternal=function(){this.JSC$20223_screenService_.unsubscribe("onlineScreenChange",(0,_.jU)(this.JSC$20225_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.fC(_.UG("yt.mdx.remote.debug.handlers_")||[],Vtw);_.WE(this.JSC$20223_session_);_.Ps.prototype.disposeInternal.call(this)};
var Kr=function(l){IC("Controller",l)};
yN.prototype.warn_=function(l){IC("Controller",l)};
var Vtw=function(l){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(l)},S_2=function(l){return l.hasCastReceiver_||!!l.customReceivers_.length||!!l.JSC$20223_session_},cj=function(l,D,U){D!=l.JSC$20223_session_&&(_.WE(l.JSC$20223_session_),(l.JSC$20223_session_=D)?(U?l.publish("yt-remote-cast2-receiver-resumed",D.receiver_):l.publish("yt-remote-cast2-receiver-selected",D.receiver_),D.subscribe("sessionScreen",(0,_.jU)(l.onSessionScreen_,l,D)),D.subscribe("sessionFailed",
function(){return dBJ(l,D)}),D.screen_?l.publish("yt-remote-cast2-session-change",D.screen_):U&&l.JSC$20223_session_.launchWithParams(null)):l.publish("yt-remote-cast2-session-change",null))},dBJ=function(l,D){l.JSC$20223_session_==D&&l.publish("yt-remote-cast2-session-failed")};
_.W=yN.prototype;_.W.onSessionScreen_=function(l,D){this.JSC$20223_session_==l&&(D||cj(this,null),this.publish("yt-remote-cast2-session-change",D))};
_.W.onReceiverAction_=function(l,D){if(!this.isDisposed())if(l)switch(l.friendlyName=chrome.cast.unescape(l.friendlyName),Kr("onReceiverAction_ "+l.label+" / "+l.friendlyName+"-- "+D),D){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20223_session_)if(this.JSC$20223_session_.receiver_.label!=l.label)Kr("onReceiverAction_: Stopping active receiver: "+this.JSC$20223_session_.receiver_.friendlyName),this.JSC$20223_session_.stop();else{Kr("onReceiverAction_: Casting to active receiver.");this.JSC$20223_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20223_session_.screen_);break}switch(l.receiverType){case chrome.cast.ReceiverType.CUSTOM:cj(this,new dB(this.JSC$20223_screenService_,l));break;case chrome.cast.ReceiverType.DIAL:cj(this,new k$(this.JSC$20223_screenService_,l,this.JSC$20223_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:cj(this,new S4(this.JSC$20223_screenService_,l,this.config_));break;default:this.warn_("Unknown receiver type: "+l.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20223_session_&&
this.JSC$20223_session_.receiver_.label==l.label?this.JSC$20223_session_.stop():this.warn_("Stopping receiver w/o session: "+l.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.W.onDialLaunchRequested_=function(l){if(this.isDisposed())return Promise.reject(Error("rl"));var D=l.receiver;D.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+D.friendlyName),D.receiverType=chrome.cast.ReceiverType.DIAL);var U=this.JSC$20223_session_?this.JSC$20223_session_.receiver_:null;if(!U||U.label!=D.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+D.friendlyName),Promise.reject(Error("sl"));if(U&&U.label==D.label&&U.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20223_session_.screen_)return Kr("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20223_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+U.receiverType+'" to "dial" for '+D.friendlyName);cj(this,new k$(this.JSC$20223_screenService_,D,this.JSC$20223_theme_,this.config_))}D=this.JSC$20223_session_;D.launchData_=l;D.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(l=D.launchData_.extraData||{},U=l.screenId||null,L_w(D)&&l.loungeToken?l.loungeTokenRefreshIntervalMs?l=mBT(D,{name:D.receiver_.friendlyName,screenId:l.screenId,loungeToken:l.loungeToken,dialId:D.launchData_.receiver.label,screenIdType:"shortLived"},l.loungeTokenRefreshIntervalMs):(_.ll(Error("ol`"+JSON.stringify(l))),l=a4q(D,U)):l=a4q(D,U)):l=ZOv(D);return l};
_.W.onSessionEstablished_=function(l){var D=this;if(!this.isDisposed()&&!this.forceMirroring_){Kr("New cast session ID: "+l.sessionId);var U=l.receiver;if(U.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20223_session_)if(U.receiverType==chrome.cast.ReceiverType.CAST)Kr("Got resumed cast session before resumed mdx connection."),U.friendlyName=chrome.cast.unescape(U.friendlyName),cj(this,new S4(this.JSC$20223_screenService_,U,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var n=this.JSC$20223_session_.receiver_,y=N6(this.JSC$20223_screenService_.getScreens(),n.label);y&&cBw(y,U.label)&&n.receiverType!=chrome.cast.ReceiverType.CAST&&U.receiverType==chrome.cast.ReceiverType.CAST&&(Kr("onSessionEstablished_: manual to cast session change "+U.friendlyName),_.WE(this.JSC$20223_session_),this.JSC$20223_session_=new S4(this.JSC$20223_screenService_,U,this.config_),this.JSC$20223_session_.subscribe("sessionScreen",(0,_.jU)(this.onSessionScreen_,this,this.JSC$20223_session_)),
this.JSC$20223_session_.subscribe("sessionFailed",function(){return dBJ(D,D.JSC$20223_session_)}),this.JSC$20223_session_.launchWithParams(null));
this.JSC$20223_session_.setCastSession(l)}}};
_.W.JSC$20225_getCastSession=function(){return this.JSC$20223_session_?this.JSC$20223_session_.JSC$20209_getCastSession():null};
_.W.onSessionRequestFailed_=function(l){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.xN)(l)),l.code!=chrome.cast.ErrorCode.CANCEL&&cj(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.W.onReceiverUpdated_=function(l){Kr("Receiver availability updated: "+l);if(!this.isDisposed()){var D=S_2(this);this.hasCastReceiver_=l==chrome.cast.ReceiverAvailability.AVAILABLE;S_2(this)!=D&&this.publish("yt-remote-cast2-availability-change",S_2(this))}};
var XxP=function(l){var D=l.JSC$20223_screenService_.JSC$20205_getOnlineScreens(),U=l.JSC$20223_session_&&l.JSC$20223_session_.receiver_;l=_.re(D,function(n){U&&cBw(n,U.label)&&(U=null);var y=n.uuid?n.uuid:n.id,A=kSq(this,n);A?(A.label=y,A.friendlyName=n.name):(A=new chrome.cast.Receiver(y,n.name),A.receiverType=chrome.cast.ReceiverType.CUSTOM);return A},l);
U&&(U.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(U=new chrome.cast.Receiver(U.label,U.friendlyName),U.receiverType=chrome.cast.ReceiverType.CUSTOM),l.push(U));return l};
yN.prototype.JSC$20225_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=XxP(this),Kr("Updating custom receivers: "+(0,_.xN)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.jU)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",S_2(this)))};
yN.prototype.setLaunchParams=yN.prototype.setLaunchParams;yN.prototype.setConnectedScreenStatus=yN.prototype.setConnectedScreenStatus;yN.prototype.stopSession=yN.prototype.JSC$20225_stopSession;yN.prototype.getCastSession=yN.prototype.JSC$20225_getCastSession;yN.prototype.requestSession=yN.prototype.requestSession;yN.prototype.init=yN.prototype.init;yN.prototype.dispose=yN.prototype.dispose;var K_8=_.wL(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),XI2=[],Ghw=_.Ja(K_8);var c52=function(l){l.audioTrackId=null;l.trackData=null;l.playerState=-1;l.hasPrevious=!1;l.hasNext=!1;l.playerTime_=0;l.playerTimeAt_=_.I7();l.seekableStart_=0;l.seekableEnd_=0;l.duration_=0;l.loadedTime=0;l.liveIngestionTime_=NaN;l.isLive_=!1};
_.W=AN.prototype;
_.W.reset=function(l){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;l&&(this.index=l.index,this.listId=l.listId,this.videoId=l.videoId,this.playerState=l.playerState,this.volume=l.volume,this.muted=l.muted,this.audioTrackId=l.audioTrackId,this.trackData=l.trackData,this.hasPrevious=l.hasPrevious,this.hasNext=l.hasNext,this.playerTime_=l.playerTime,this.playerTimeAt_=l.playerTimeAt,this.seekableStart_=l.seekableStart,this.seekableEnd_=l.seekableEnd,this.duration_=l.duration,this.loadedTime=
l.loadedTime,this.liveIngestionTime_=l.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.W.stopPlayer=function(){this.index=-1;this.videoId="";c52(this)};
_.W.isPlaying=function(){return this.playerState==1};
_.W.isBuffering=function(){return this.playerState==3};
_.W.isAdPlaying=function(){return this.playerState==1081};
var pr=function(l,D){l.playerTime_=D;l.playerTimeAt_=_.I7()},pxw=function(l){switch(l.playerState){case 1:case 1081:return(_.I7()-l.playerTimeAt_)/1E3+l.playerTime_;
case -1E3:return 0}return l.playerTime_};
AN.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.I7()-this.playerTimeAt_)/1E3:0):this.duration_};
var xBJ=function(l,D,U){var n=l.videoId;l.videoId=D;l.index=U;D!=n&&c52(l)},jD8=function(l){var D={};
D.index=l.index;D.listId=l.listId;D.videoId=l.videoId;D.playerState=l.playerState;D.volume=l.volume;D.muted=l.muted;D.audioTrackId=l.audioTrackId;D.trackData=_.we.unsafeClone(l.trackData);D.hasPrevious=l.hasPrevious;D.hasNext=l.hasNext;D.playerTime=l.playerTime_;D.playerTimeAt=l.playerTimeAt_;D.seekableStart=l.seekableStart_;D.seekableEnd=l.seekableEnd_;D.duration=l.duration_;D.loadedTime=l.loadedTime;D.liveIngestionTime=l.liveIngestionTime_;return D};
AN.prototype.clone=function(){return new AN(jD8(this))};var hN=function(l,D){_.Ps.call(this);var U=this;this.state_=0;this.connection_=l;this.contextSubscriptions_=[];this.actionQueue_=new LGv;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.jU)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.jU)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.jU)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.jU)(this.onCloudviewAvailabilityChange_,this);var n=0;l?(n=l.getProxyState(),
n!=3&&(l.subscribe("proxyStateChange",this.setState_,this),F_W(this))):n=3;n!=0&&(D?this.setState_(n):_.tc(function(){U.setState_(n)},0));
(l=KCv())&&oeP(this,l);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.Z(hN,_.Ps);hN.prototype.getState=function(){return this.state_};
hN.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
hN.prototype.reconnect=function(){this.connection_.reconnect()};
var x$=function(l){return new AN(l.connection_.getPlayerContextData())};
_.W=hN.prototype;_.W.play=function(){j4(this)?(this.castMedia_?this.castMedia_.play(null,_.RR,wx2(this,"play")):FK(this,"play"),r5$(this,1,pxw(x$(this))),this.publish("remotePlayerChange")):ou(this,this.play)};
_.W.pause=function(){j4(this)?(this.castMedia_?this.castMedia_.pause(null,_.RR,wx2(this,"pause")):FK(this,"pause"),r5$(this,2,pxw(x$(this))),this.publish("remotePlayerChange")):ou(this,this.pause)};
_.W.seekTo=function(l){if(j4(this)){if(this.castMedia_){var D=x$(this),U=new chrome.cast.media.SeekRequest;U.currentTime=l;D.isPlaying()||D.isBuffering()?U.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:U.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(U,_.RR,wx2(this,"seekTo",{newTime:l}))}else FK(this,"seekTo",{newTime:l});r5$(this,3,l);this.publish("remotePlayerChange")}else ou(this,_.P6(this.seekTo,l))};
_.W.stop=function(){if(j4(this)){this.castMedia_?this.castMedia_.stop(null,_.RR,wx2(this,"stopVideo")):FK(this,"stopVideo");var l=x$(this);l.stopPlayer();wB(this,l);this.publish("remotePlayerChange")}else ou(this,this.stop)};
_.W.setVolume=function(l,D){if(j4(this)){var U=x$(this);if(this.castSession_){if(U.volume!=l){var n=Math.round(l)/100;this.castSession_.setReceiverVolumeLevel(n,(0,_.jU)(function(){Hs("set receiver volume: "+n)},this),(0,_.jU)(function(){this.warn_("failed to set receiver volume.")},this))}U.muted!=D&&this.castSession_.setReceiverMuted(D,(0,_.jU)(function(){Hs("set receiver muted: "+D)},this),(0,_.jU)(function(){this.warn_("failed to set receiver muted.")},this))}else{var y={volume:l,
muted:D};U.volume!=-1&&(y.delta=l-U.volume);FK(this,"setVolume",y)}U.muted=D;U.volume=l;wB(this,U)}else ou(this,_.P6(this.setVolume,l,D))};
_.W.setAudioTrack=function(l,D){j4(this)?(D=D.getLanguageInfo().getId(),FK(this,"setAudioTrack",{videoId:l,audioTrackId:D}),l=x$(this),l.audioTrackId=D,wB(this,l)):ou(this,_.P6(this.setAudioTrack,l,D))};
_.W.addVideo=function(l){j4(this)?FK(this,"addVideo",{videoId:l}):ou(this,_.P6(this.addVideo,l))};
_.W.addPlaylist=function(l){j4(this)?FK(this,"addVideos",{listId:l}):ou(this,_.P6(this.addPlaylist,l))};
_.W.addVideos=function(l){l.length==0?this.warn_("Ignore add videos request due to empty list"):j4(this)?FK(this,"addVideos",{videoIds:l.join(",")}):ou(this,_.P6(this.addVideos,l))};
_.W.JSC$20235_removeVideo=function(l){j4(this)?FK(this,"removeVideo",{videoId:l}):ou(this,_.P6(this.JSC$20235_removeVideo,l))};
_.W.JSC$20235_insertVideo=function(l){j4(this)?FK(this,"insertVideo",{videoId:l}):ou(this,_.P6(this.JSC$20235_insertVideo,l))};
_.W.playVideo=function(l,D,U,n,y,A,C){n=n===void 0?null:n;y=y===void 0?null:y;A=A===void 0?null:A;C=C===void 0?null:C;var h=x$(this),b={videoId:l};U!==void 0&&(b.currentIndex=U);xBJ(h,l,U||0);D!==void 0&&(pr(h,D),b.currentTime=D);n&&(b.listId=n);y&&(b.playerParams=y);A&&(b.clickTrackingParams=A);C&&(b.locationInfo=(0,_.xN)(C));FK(this,"setPlaylist",b);n||wB(this,h)};
_.W.nextVideo=function(l,D){if(j4(this)){if(l&&D){var U=x$(this);xBJ(U,l,D);wB(this,U)}FK(this,"next")}else ou(this,_.P6(this.nextVideo,l,D))};
_.W.clearPlaylist=function(){if(j4(this)){FK(this,"clearPlaylist");var l=x$(this);l.reset();wB(this,l);this.publish("remotePlayerChange")}else ou(this,this.clearPlaylist)};
_.W.dispose=function(){if(this.state_!=3){var l=this.state_;this.state_=3;this.publish("proxyStateChange",l,this.state_)}_.Ps.prototype.dispose.call(this)};
_.W.disposeInternal=function(){zA8(this);this.connection_=null;this.actionQueue_.clear();oeP(this,null);_.Ps.prototype.disposeInternal.call(this)};
var F_W=function(l){_.Ac("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(D){this.contextSubscriptions_.push(this.connection_.subscribe(D,_.P6(this.onProxyEvent_,D),this))},l)},zA8=function(l){_.Ac(l.contextSubscriptions_,function(D){this.connection_.unsubscribeByKey(D)},l);
l.contextSubscriptions_.length=0},j4=function(l){return l.getState()==1},ou=function(l,D){l.actionQueue_.getCount()<50&&l.actionQueue_.enqueue(D)},r5$=function(l,D,U){var n=x$(l);
pr(n,U);n.playerState!=-1E3&&(n.playerState=D);wB(l,n)},FK=function(l,D,U){l.connection_.sendMessage(D,U)},wB=function(l,D){zA8(l);
l.connection_.setPlayerContextData(jD8(D));F_W(l)};
hN.prototype.setState_=function(l){if((l!=this.state_||l==2)&&this.state_!=3&&l!=0){var D=this.state_;this.state_=l;this.publish("proxyStateChange",D,l);if(l==1)for(;!this.actionQueue_.isEmpty();)l=this.actionQueue_,uY$(l),l.front_.pop().apply(this);else l==3&&this.dispose()}};
hN.prototype.onProxyEvent_=function(l,D){this.publish(l,D)};
var oeP=function(l,D){l.castSession_&&(l.castSession_.removeUpdateListener(l.boundCastStatusListener_),l.castSession_.removeMediaListener(l.boundCastMediaListener_),l.onCastMediaChange_(null));l.castSession_=D;if(l.castSession_&&(Hs("Setting cast session: "+l.castSession_.sessionId),l.castSession_.addUpdateListener(l.boundCastStatusListener_),l.castSession_.addMediaListener(l.boundCastMediaListener_),l.castSession_.media.length))l.onCastMediaChange_(l.castSession_.media[0])};
hN.prototype.onCastStatusUpdate_=function(l){if(!l)this.onCastMediaChange_(null),oeP(this,null);else if(this.castSession_.receiver.volume){l=this.castSession_.receiver.volume;var D=x$(this),U=Math.round(100*l.level||0);if(D.volume!=U||D.muted!=l.muted)Hs("Cast volume update: "+l.level+(l.muted?" muted":"")),D.volume=U,D.muted=!!l.muted,wB(this,D)}};
hN.prototype.onCastMediaChange_=function(l){Hs("Cast media: "+!!l);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=l)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),f48(this),this.publish("remotePlayerChange")};
var f48=function(l){var D=l.castMedia_.media,U=l.castMedia_.customData;if(D&&U){var n=x$(l);D.contentId!=n.videoId&&Hs("Cast changing video to: "+D.contentId);n.videoId=D.contentId;n.playerState=U.playerState;pr(n,l.castMedia_.getEstimatedTime());wB(l,n)}else Hs("No cast media video. Ignoring state update.")};
hN.prototype.onCastMediaUpdate_=function(l){if(l)f48(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
hN.prototype.onCloudviewAvailabilityChange_=function(){var l=KCv();l&&oeP(this,l)};
hN.prototype.warn_=function(l){IC("CP",l)};
var wx2=function(l,D,U){return(0,_.jU)(function(n){this.warn_("Failed to "+D+" with cast v2 channel. Error code: "+n.code);n.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+D+" using MDx browser channel."),FK(this,D,U))},l)};var PB=function(l,D,U,n){n=n===void 0?!1:n;_.Ps.call(this);var y=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$20240_http_=l;this.enableConnectWithInitialState_=n;this.listeners_.push(_.uy(window,"beforeunload",function(){y.JSC$20243_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new AN;this.currentScreenId_=D.id;this.currentScreenIdType_=D.idType;this.channelService=O4$(this.JSC$20240_http_,U,this.JSC$20243_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){$Br(y)});
this.channelService.listen("channelClosed",function(){rB("Channel closed");isNaN(y.connectTimerId_)?szJ(!0):szJ();y.dispose()});
this.channelService.listen("channelError",function(A){szJ();isNaN(y.getReconnectTimeout_())?(A==1&&y.currentScreenIdType_=="shortLived"&&y.publish("browserChannelAuthError",A),rB("Channel error: "+A+" without reconnection"),y.dispose()):(y.reconnecting_=!0,rB("Channel error: "+A+" with reconnection in "+y.getReconnectTimeout_()+" ms"),N_J(y,2))});
this.channelService.listen("channelMessage",function(A){sDr(y,A)});
this.channelService.setLoungeToken(D.token);this.subscribe("remoteQueueChange",function(){var A=y.playerContext_.videoId;jz2()&&_.qN("yt-remote-session-video-id",A)})};
_.Z(PB,_.Ps);
PB.prototype.connect=function(l,D){if(D){var U=D.listId,n=D.videoId,y=D.videoIds,A=D.playerParams,C=D.clickTrackingParams,h=D.index,b={videoId:n},u=D.currentTime,Q=D.locationInfo;D=D.loopMode;u!==void 0&&(b.currentTime=u<=5?0:u);A&&(b.playerParams=A);Q&&(b.locationInfo=Q);C&&(b.clickTrackingParams=C);U&&(b.listId=U);y&&y.length>0&&(b.videoIds=y.join(","));h!==void 0&&(b.currentIndex=h);this.enableConnectWithInitialState_&&(b.loopMode=D||"LOOP_MODE_OFF");U&&(this.playerContext_.listId=U);this.playerContext_.videoId=
n;this.playerContext_.index=h||0;this.playerContext_.state=3;pr(this.playerContext_,u);this.autoplayMode_="UNSUPPORTED";U=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";rB("Connecting with "+U+" and params: "+(0,_.xN)(b));this.channelService.connect({method:U,params:(0,_.xN)(b)},l,zWv())}else rB("Connecting without params"),this.channelService.connect({},l,zWv());Eer(this)};
PB.prototype.setLoungeToken=function(l){this.channelService.setLoungeToken(l)};
PB.prototype.dispose=function(){this.isDisposed()||(_.vG("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),N_J(this,3));_.Ps.prototype.dispose.call(this)};
PB.prototype.disposeInternal=function(){T_$(this);I4J(this);HOH(this);_.S_(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.S_(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.uk$(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Ps.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Y_H=function(l){return _.pC(l.connectedDevices_,function(D){return D.type=="LOUNGE_SCREEN"})},rB=function(l){IC("conn",l)},N_J=function(l,D){l.publish("proxyStateChange",D)},Eer=function(l){l.connectTimerId_=_.tc(function(){rB("Connecting timeout");
l.JSC$20243_disconnect_(1)},2E4)},T_$=function(l){_.S_(l.connectTimerId_);
l.connectTimerId_=NaN},HOH=function(l){_.S_(l.reconnectedCheckScreenTimeout_);
l.reconnectedCheckScreenTimeout_=NaN},Vgw=function(l){I4J(l);
l.playingSyncTimerId_=_.tc(function(){OOP(l,"getNowPlaying")},2E4)},I4J=function(l){_.S_(l.playingSyncTimerId_);
l.playingSyncTimerId_=NaN},$Br=function(l){rB("Channel opened");
l.reconnecting_&&(l.reconnecting_=!1,HOH(l),l.reconnectedCheckScreenTimeout_=_.tc(function(){rB("Timing out waiting for a screen.");l.JSC$20243_disconnect_(1)},15E3))},l$W=function(l,D){var U=null;
if(D){var n=Y_H(l);n&&(U={clientName:n.clientName,deviceMake:n.brand,deviceModel:n.model,osVersion:n.osVersion})}_.vG("yt.mdx.remote.remoteClient_",U);D&&(T_$(l),HOH(l));U=l.channelService.isChannelOpened()&&isNaN(l.connectTimerId_);D==U?D&&(N_J(l,1),OOP(l,"getSubtitlesTrack")):D?(l.getOtherConnectedRemoteId_()&&l.playerContext_.reset(),N_J(l,1),OOP(l,"getNowPlaying"),iV8(l)):l.JSC$20243_disconnect_(1)},Dvr=function(l,D){var U=D.params.videoId;
delete D.params.videoId;U==l.playerContext_.videoId&&(_.we.isEmpty(D.params)?l.playerContext_.trackData=null:l.playerContext_.trackData=D.params,l.publish("remotePlayerChange"))},Uv8=function(l,D,U){var n=D.params.videoId||D.params.video_id,y=parseInt(D.params.currentIndex,10);
l.playerContext_.listId=D.params.listId||l.playerContext_.listId;xBJ(l.playerContext_,n,y);l.publish("remoteQueueChange",U)},n4P=function(l,D){D.params=D.params||{};
Uv8(l,D,"NOW_PLAYING_MAY_CHANGE");l.onStateChange_(D);l.publish("autoplayDismissed")};
PB.prototype.onStateChange_=function(l){var D=parseInt(l.params.currentTime||l.params.current_time,10);pr(this.playerContext_,isNaN(D)?0:D);D=parseInt(l.params.state,10);D=isNaN(D)?-1:D;D==-1&&this.playerContext_.playerState==-1E3&&(D=-1E3);this.playerContext_.playerState=D;D=Number(l.params.loadedTime);this.playerContext_.loadedTime=isNaN(D)?0:D;D=Number(l.params.duration);this.playerContext_.duration_=isNaN(D)?0:D;D=this.playerContext_;var U=Number(l.params.liveIngestionTime);D.liveIngestionTime_=
U;D.isLive_=isNaN(U)?!1:!0;D=this.playerContext_;U=Number(l.params.seekableStartTime);l=Number(l.params.seekableEndTime);D.seekableStart_=isNaN(U)?0:U;D.seekableEnd_=isNaN(l)?0:l;this.playerContext_.playerState==1?Vgw(this):I4J(this);this.publish("remotePlayerChange")};
PB.prototype.onAdStateChange_=function(l){if(this.playerContext_.playerState!=-1E3){var D=1085;switch(parseInt(l.params.adState,10)){case 1:D=1081;break;case 2:D=1084;break;case 0:D=1083}this.playerContext_.playerState=D;l=parseInt(l.params.currentTime,10);pr(this.playerContext_,isNaN(l)?0:l);this.publish("remotePlayerChange")}};
var y2T=function(l,D){var U=D.params.muted=="true";l.playerContext_.volume=parseInt(D.params.volume,10);l.playerContext_.muted=U;l.publish("remotePlayerChange")},A2H=function(l,D){l.autoplayVideoId_=D.params.videoId;
l.publish("nowAutoplaying",parseInt(D.params.timeout,10))},W1r=function(l,D){l.autoplayVideoId_=D.params.videoId||null;
l.publish("autoplayUpNext",l.autoplayVideoId_)},BrJ=function(l,D){l.autoplayMode_=D.params.autoplayMode;
l.publish("autoplayModeChange",l.autoplayMode_);l.autoplayMode_=="DISABLED"&&l.publish("autoplayDismissed")},C45=function(l,D){var U=D.params.hasNext=="true";
l.playerContext_.hasPrevious=D.params.hasPrevious=="true";l.playerContext_.hasNext=U;l.publish("previousNextChange")};
PB.prototype.isCapabilitySupportedOnConnectedDevices_=function(l){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var D=_.B(this.connectedDevices_),U=D.next();!U.done;U=D.next())if(!U.value.capabilities.has(l))return!1;return!0};
var sDr=function(l,D){D=D.message;D.params?rB("Received: action="+D.action+", params="+(0,_.xN)(D.params)):rB("Received: action="+D.action+" {}");switch(D.action){case "loungeStatus":D=(0,_.MA)(D.params.devices);l.connectedDevices_=_.re(D,function(n){return new e4(n)});
D=!!_.pC(l.connectedDevices_,function(n){return n.type=="LOUNGE_SCREEN"});
l$W(l,D);D=l.isCapabilitySupportedOnConnectedDevices_("mlm");l.publish("multiStateLoopEnabled",D);break;case "loungeScreenDisconnected":DD2(l.connectedDevices_,function(n){return n.type=="LOUNGE_SCREEN"});
l$W(l,!1);break;case "remoteConnected":var U=new e4((0,_.MA)(D.params.device));_.pC(l.connectedDevices_,function(n){return n.equals(U)})||_.kNg(l.connectedDevices_,U);
break;case "remoteDisconnected":U=new e4((0,_.MA)(D.params.device));DD2(l.connectedDevices_,function(n){return n.equals(U)});
break;case "gracefulDisconnect":break;case "playlistModified":Uv8(l,D,"QUEUE_MODIFIED");break;case "nowPlaying":n4P(l,D);break;case "onStateChange":l.onStateChange_(D);break;case "onAdStateChange":l.onAdStateChange_(D);break;case "onVolumeChanged":y2T(l,D);break;case "onSubtitlesTrackChanged":Dvr(l,D);break;case "nowAutoplaying":A2H(l,D);break;case "autoplayDismissed":l.publish("autoplayDismissed");break;case "autoplayUpNext":W1r(l,D);break;case "onAutoplayModeChanged":BrJ(l,D);break;case "onHasPreviousNextChanged":C45(l,
D);break;case "requestAssistedSignIn":l.publish("assistedSignInRequested",D.params.authCode);break;case "onLoopModeChanged":l.publish("loopModeChange",D.params.loopMode);break;default:rB("Unrecognized action: "+D.action)}};
_.W=PB.prototype;_.W.getProxyState_=function(){var l=3;this.isDisposed()||(l=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(l=1):l=2);return l};
_.W.JSC$20243_disconnect_=function(l){rB("Disconnecting with "+l);_.vG("yt.mdx.remote.remoteClient_",null);T_$(this);this.publish("beforeDisconnect",l);l==1&&szJ();this.channelService.disconnect(l);this.dispose()};
_.W.getPlayerContextData_=function(){var l=this.playerContext_;this.clientVideoId_&&(l=this.playerContext_.clone(),xBJ(l,this.clientVideoId_,l.index));return jD8(l)};
_.W.setPlayerContextData_=function(l){var D=this,U=new AN(l);U.videoId&&U.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=U.videoId,_.S_(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.tc(function(){if(D.clientVideoId_){var y=D.clientVideoId_;D.clientVideoId_=null;D.playerContext_.videoId!=y&&OOP(D,"getNowPlaying")}},5E3));
var n=[];this.playerContext_.listId==U.listId&&this.playerContext_.videoId==U.videoId&&this.playerContext_.index==U.index||n.push("remoteQueueChange");this.playerContext_.playerState==U.playerState&&this.playerContext_.volume==U.volume&&this.playerContext_.muted==U.muted&&pxw(this.playerContext_)==pxw(U)&&(0,_.xN)(this.playerContext_.trackData)==(0,_.xN)(U.trackData)||n.push("remotePlayerChange");this.playerContext_.reset(l);_.Ac(n,function(y){this.publish(y)},this)};
_.W.getOtherConnectedRemoteId_=function(){var l=this.channelService.getDeviceId(),D=_.pC(this.connectedDevices_,function(U){return U.type=="REMOTE_CONTROL"&&U.id!=l});
return D?D.id:""};
_.W.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.W.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.W.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.W.JSC$20243_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var iV8=function(l){_.S_(l.idleDisconnectTimerId_);l.idleDisconnectTimerId_=_.tc(function(){l.JSC$20243_disconnect_(1)},864E5)},OOP=function(l,D,U){U?rB("Sending: action="+D+", params="+(0,_.xN)(U)):rB("Sending: action="+D);
l.channelService.sendMessage(D,U)};
PB.prototype.sendMessageWithUserAction_=function(l,D){OOP(this,l,D);iV8(this)};
PB.prototype.JSC$20243_getXsrfToken_=function(){var l=_.xZ.get("SAPISID","")||_.xZ.get("__Secure-1PAPISID",void 0)||"",D=_.xZ.get("__Secure-3PAPISID","")||"";if(!l&&!D)return"";l=_.c2(_.pw(l),2);D=_.c2(_.pw(D),2);return _.c2(_.pw(","+l+","+D),2)};
PB.prototype.subscribe=PB.prototype.subscribe;PB.prototype.unsubscribeByKey=PB.prototype.unsubscribeByKey;PB.prototype.getProxyState=PB.prototype.getProxyState_;PB.prototype.disconnect=PB.prototype.JSC$20243_disconnect_;PB.prototype.getPlayerContextData=PB.prototype.getPlayerContextData_;PB.prototype.setPlayerContextData=PB.prototype.setPlayerContextData_;PB.prototype.getOtherConnectedRemoteId=PB.prototype.getOtherConnectedRemoteId_;PB.prototype.getReconnectTimeout=PB.prototype.getReconnectTimeout_;
PB.prototype.getAutoplayMode=PB.prototype.getAutoplayMode_;PB.prototype.getAutoplayVideoId=PB.prototype.getAutoplayVideoId_;PB.prototype.reconnect=PB.prototype.JSC$20243_reconnect_;PB.prototype.sendMessage=PB.prototype.sendMessageWithUserAction_;PB.prototype.getXsrfToken=PB.prototype.JSC$20243_getXsrfToken_;PB.prototype.isCapabilitySupportedOnConnectedDevices=PB.prototype.isCapabilitySupportedOnConnectedDevices_;var UFJ=function(l){Y3.call(this,"ScreenServiceProxy");this.instance_=l;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.jU)(this.JSC$20246_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.jU)(this.onOnlineScreenChange_,this)))};
_.Z(UFJ,Y3);_.W=UFJ.prototype;_.W.getScreens=function(l){return this.instance_.$_gs(l)};
_.W.contains=function(l){return!!this.instance_.$_c(l)};
_.W.get=function(l){return this.instance_.$_g(l)};
_.W.start=function(){this.instance_.$_st()};
_.W.add=function(l,D,U){this.instance_.$_a(l,D,U)};
_.W.remove=function(l,D,U){this.instance_.$_r(l,D,U)};
_.W.updateName=function(l,D,U,n){this.instance_.$_un(l,D,U,n)};
_.W.disposeInternal=function(){for(var l=this.subscriptionKeys_.length,D=0;D<l;++D)this.instance_.$_ubk(this.subscriptionKeys_[D]);this.subscriptionKeys_.length=0;this.instance_=null;Y3.prototype.disposeInternal.call(this)};
_.W.JSC$20246_onScreenChange_=function(){this.publish("screenChange")};
_.W.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
iS.prototype.$_st=iS.prototype.start;iS.prototype.$_gspc=iS.prototype.JSC$20205_getScreenByPairingCode;iS.prototype.$_gsppc=iS.prototype.JSC$20205_getScreenByPollingPairingCode;iS.prototype.$_c=iS.prototype.contains;iS.prototype.$_g=iS.prototype.get;iS.prototype.$_a=iS.prototype.add;iS.prototype.$_un=iS.prototype.updateName;iS.prototype.$_r=iS.prototype.remove;iS.prototype.$_gs=iS.prototype.getScreens;iS.prototype.$_gos=iS.prototype.JSC$20205_getOnlineScreens;iS.prototype.$_s=iS.prototype.subscribe;
iS.prototype.$_ubk=iS.prototype.unsubscribeByKey;var Y4$=null,yUT=!1,j7q=null,WB=null,DF$=null,BB=[];var h_$=new _.Vo("yt-menu"),P48=function(){},g4q=function(l,D,U){l=D=="right-click"?U.rightClickMenuPopupHint:U.menuPopupHint;
if(!(bVw(D)>10))return D=D||"default",h_$.set(D+"-impression",bVw(D)+1),l},bVw=function(l){return parseInt(h_$.get((l||"default")+"-impression")||0,10)};
_.Th(P48);var unW=function(){this.contexts_=new WeakMap;this.JSC$20252_networkService_=this.activeContext_=null},v4$=function(l,D,U){var n=l.contexts_.get(D);
n||(n=new qI5(l.JSC$20252_networkService_),l.contexts_.set(D,n));l.activeContext_=n;U&&l.activeContext_.reset();l.activeContext_.start();return l.activeContext_};var zb=function(){};
zb.prototype.enqueue=function(){var l=this,D;return _.P(function(U){if(l.isCounterfactual())return(D=l.getCounterfactualData())&&l.shouldLogCounterfactualImpression()&&l.sendImpressionEndpoints(D),U.return();l.doEnqueue();_.Kz(U)})};
zb.prototype.sendImpressionEndpoints=function(l){_.AH.getInstance().triggerOptionalAction("yt-service-request",{},l[0])};var fr=function(l,D){this.renderer=l;this.page=D};
_.Z(fr,zb);fr.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
fr.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
fr.prototype.shouldLogCounterfactualImpression=function(){return!0};
fr.prototype.doEnqueue=function(){var l=_.Em(this.page);l&&l.pause();this.renderer.impressionCommand&&_.AH.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.z_(_.AH.getInstance(),[this.renderer.promoCommand],this.page)};var Qa$=function(l,D){this.renderer=l;this.resolver=_.wf();this.JSC$20264_enforcementCounter=new _.hvy;D?this.JSC$20264_playerManager=_.Em(D):this.JSC$20264_playerManager=null;_.CU(1,!0)};
_.Z(Qa$,zb);_.W=Qa$.prototype;_.W.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var l=[];this.renderer.impressionEndpoints.forEach(function(D){(D=_.te(D))&&l.push(D)});
return l}};
_.W.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.W.shouldLogCounterfactualImpression=function(){var l=_.cEl();l?(this.JSC$20264_enforcementCounter.increment("POPUP"),_.CU(3)):_.CU(2);return l};
_.W.cancel=function(){this.resolver.promise.cancel()};
_.W.doEnqueue=function(){var l=this;_.cEl()?(this.JSC$20264_enforcementCounter.increment("POPUP"),_.CU(3),Gc$(this)):this.JSC$20264_playerManager?(this.resolver.promise.then(function(){Gc$(l)}),J25(this.resolver,this.JSC$20264_playerManager)):_.CU(2)};
var J25=function(l,D){var U=_.wf();D.getPlayerPromise().then(function(n){U.resolve(n)});
U.promise.then(function(n){n.addEventListener("onAbnormalityDetected",l.resolve);_.Kb(l.promise,function(){n.removeEventListener("onAbnormalityDetected",l.resolve)})});
l.promise.thenCatch(function(){U.promise.cancel()})},Gc$=function(l){_.CU(3);
var D={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:l.renderer}};D=_.AH.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:D},{});Promise.all(D).then(function(){L1T();l.JSC$20264_playerManager&&l.JSC$20264_playerManager.pause()})},L1T=function(){jOr(function(l,D){_.L28(l,D);
l===0?_.CU(7):_.CU(4)})};var qnr=function(l,D){this.renderer=l;this.page=D;this.resolver=_.wf()};
_.Z(qnr,zb);_.W=qnr.prototype;_.W.cancel=function(){this.resolver.promise.cancel()};
_.W.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.W.isCounterfactual=function(){return!this.renderer.isVisible};
_.W.shouldLogCounterfactualImpression=function(){return!0};
_.W.doEnqueue=function(){var l=this;this.resolver.promise.then(function(){var U={popup:{mealbarPromoRenderer:l.renderer},popupType:"MEALBAR"};_.AH.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:U},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var D=_.Em(this.page);D&&MJw(this.resolver,D)}break;default:this.resolver.resolve()}};
var MJw=function(l,D){var U=_.wf();D.getPlayerPromise().then(function(n){U.resolve(n)});
U.promise.then(function(n){n.addEventListener("onAdEnd",l.resolve);_.Kb(l.promise,function(){n.removeEventListener("onAdEnd",l.resolve)})});
l.promise.thenCatch(function(){U.promise.cancel()})};var R_8=function(l,D){this.renderer=l;this.page=D};
_.Z(R_8,zb);_.W=R_8.prototype;_.W.cancel=function(){this.JSC$20272_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20272_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20272_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.W.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.W.isCounterfactual=function(){return!this.renderer.isVisible};
_.W.shouldLogCounterfactualImpression=function(){return!0};
_.W.doEnqueue=function(){var l=this,D,U;((D=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(U=D.playbackUpsellDialogTriggerConditionData)==null?void 0:U.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20272_downloadedVideosCountSelectorUnsubscriber=_.fM(_.EB(),p9$,function(n,y){n>y&&(ZVr(l),l.cancel())}):ZVr(this)};
var ZVr=function(l){var D={popup:{upsellDialogRenderer:l.renderer},popupType:"MODAL"};_.AH.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:D},{});(l=_.Em(l.page))&&l.pause()};var $$={},e_5=($$.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",$$.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",$$.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",$$.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",$$.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",$$.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",$$.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",$$),mvq=function(l,D){this.renderer=l;this.targetManager=
D};
_.Z(mvq,zb);_.W=mvq.prototype;_.W.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20279_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20279_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20279_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.W.getCounterfactualData=function(){if(this.isCounterfactual()){var l;return(l=this.renderer.promoConfig)==null?void 0:l.impressionEndpoints}};
_.W.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.W.shouldLogCounterfactualImpression=function(){return!0};
_.W.doEnqueue=function(){var l=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20279_downloadedVideosCountSelectorUnsubscriber=_.fM(_.EB(),p9$,function(D,U){l.renderer.targetId&&D>U&&($HP(l.targetManager,l.renderer.targetId,a$w(l)),l.cancel())});
break;default:$HP(this.targetManager,this.renderer.targetId,a$w(this))}};
var a$w=function(l){var D;if((D=l.renderer.suggestedPosition)==null?0:D.type)var U=e_5[l.renderer.suggestedPosition.type];U||(U="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:l.renderer},popupType:"HINT",position:U}}};var tJJ=function(){this.previousPage=null},X$8;
tJJ.prototype.registerPromoCommand=function(l,D){Snq(this,void 0,void 0,_.M(l.roadblock,AP8),void 0,void 0,D)};
var Snq=function(l,D,U,n,y,A,C){l.previousPage!==C&&l.pendingTooltipPromo&&l.pendingTooltipPromo.cancel();l.previousPage=C;y?(l.pendingEnforcementPromo&&l.pendingEnforcementPromo.cancel(),l.pendingEnforcementPromo=new Qa$(y,C),l.pendingEnforcementPromo.enqueue()):A?(l.pendingCommandWrapperPromo=new fr(A,C),l.pendingCommandWrapperPromo.enqueue()):n?(l.pendingRoadblockPromo&&l.pendingRoadblockPromo.cancel(),l.pendingRoadblockPromo=new R_8(n,C),l.pendingRoadblockPromo.enqueue()):D?(l.pendingMealbarPromo&&
l.pendingMealbarPromo.cancel(),l.pendingMealbarPromo=new qnr(D,C),l.pendingMealbarPromo.enqueue()):U&&(l.pendingTooltipPromo&&l.pendingTooltipPromo.cancel(),l.pendingTooltipPromo=new mvq(U,_.jp()),l.pendingTooltipPromo.enqueue())},kcJ=function(){X$8||(X$8=new tJJ);
return X$8};var CBJ=!1;var Nx$=function(l,D){var U=_.H3("SESSION_INDEX");this.actionToken_=l;this.commonToken_=D;this.sessionIndex_=U},$i$=function(l){var D=_.wf(),U=_.UG("payments.business.integration.bootstrap"),n=_.UG("payments.business.integration"),y=n.Style.create().withMaterialDesignStyle(),A=n.mashupMode.popup("instrument-manager");
U.asMashupMode(A).usingUserIndex(l.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(y).inStandaloneContext(n.standaloneContextAuthId.forUserId()).instrumentManager(l.actionToken_,l.commonToken_.length>0?l.commonToken_:void 0,function(C){var h=C.instrumentId;h?D.resolve(h):(h=_.UG("payments.business.integration.scenario.InstrumentManager"),D.reject(C.errorCode&&C.errorCode===h.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(C){_.ll(C);
D.reject("instrumentManagerLoadError")});
return D.promise};var gz=function(l,D,U){this.payloadName="transactionFlowFailed";this.payload={errorType:l,serializedTransactionFlowLoggingParams:D,isUserDismiss:U===void 0?!1:U}};
_.vG("yt.ypc.shared.YpcTransactionFlowError",gz);var Nz=function(){return _.vg.apply(this,arguments)||this};
_.Z(Nz,_.vg);Nz.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Nz.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Nz.prototype.onErrorMessageDismiss=Nz.prototype.onErrorMessageDismiss;_.E([_.K({readOnly:!0,observer:"errorRendererChanged"}),_.T("design:type",Object)],Nz.prototype,"errorRenderer",void 0);_.E([_.hj("yt-live-chat-error-message-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Nz.prototype,"onErrorMessageDismiss",null);_.E([_.Qj()],Nz);var dvw=[Nz.prototype];var K1W;var c2W;var p$W=new _.Vo("yt-live-chat"),xvW=new Map;xvW.set("timestamp_toggle","show-timestamps");xvW.set("reactions_toggle","allow-reactions");var sX=function(){return _.p.apply(this,arguments)||this};
_.Z(sX,_.p);_.W=sX.prototype;_.W.menuItemIdentifierChanged=function(){var l;(l=this.data)!=null&&l.menuItemIdentifier&&(l=xvW.get(this.data.menuItemIdentifier))&&(_.q("enable_lwe_web_mute")?(l=p$W.get(l),this.isToggled=!(l===void 0?!this.data.isToggled:!l)):this.isToggled=p$W.get(l))};
_.W.onFocus=function(){this.toggleButton.focus()};
_.W.onTap=function(){var l=this.data.command;l&&this.componentBehavior.resolveCommand(l)};
_.W.computeText=function(l,D,U){return this.componentBehavior.getSimpleString(l?U:D)};
_.W.computeIcon=function(l,D,U){return(l=l?U:D)&&l.iconType?_.UV(l.iconType):""};
sX.prototype.onTap=sX.prototype.onTap;sX.prototype.onFocus=sX.prototype.onFocus;sX.prototype.menuItemIdentifierChanged=sX.prototype.menuItemIdentifierChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],sX.prototype,"componentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],sX.prototype,"data",void 0);
_.E([_.K({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.T("design:type",String)],sX.prototype,"icon",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],sX.prototype,"isToggled",void 0);_.E([_.gP("tp-yt-paper-toggle-button"),_.T("design:type",Object)],sX.prototype,"toggleButton",void 0);_.E([_.Pg("data.menuItemIdentifier"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sX.prototype,"menuItemIdentifierChanged",null);
_.E([_.hj("focus"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sX.prototype,"onFocus",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sX.prototype,"onTap",null);_.E([_.S0({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],sX);
_.r(sX,"yt-live-chat-toggle-renderer",function(){if(c2W===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;K1W===void 0&&(K1W=document.createElement("template"));var n=K1W;U.call(D,n.content.cloneNode(!0),l.content.firstChild);c2W=l}l=c2W;return l},{mode:0});var jav=new _.A7("NAVIGATION_PROGRESS_TOKEN");var F15={},o4J={},w$T=(o4J[Ti8.name]=!0,o4J),EX=function(){var l=_.vg.apply(this,arguments)||this;l._noAccessors=!0;l.tabGesturesIsActive=!1;l.actionRouterIsRoot=!0;l.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"};l.pageTitle="";l.titleSuffix="YouTube";l.unseenNotificationCount=
0;l.hasNavigated=!1;l.hasSetScrollTopForNavigation=!1;l.pagePreparer=null;l.zwiebackInitJobId=0;l.dataUpdatePromise=null;l.loadDepsPromise=_.Ut();l.hasPendingNavigation=!1;l.pendingPlayerOnResponseReceivedActions=[];return l};
_.Z(EX,_.vg);EX.prototype.attached=function(){r2$(this);document.addEventListener("yt-navigate-cache",_.CY(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var l=Tb();l.init();l.dispatchElement=this.hostElement};
var r2$=function(l,D){D=D===void 0?0:D;var U=_.Jc().resolve(_.G8(_.xp));if(U)z_P(l,U);else{if(D>=5)throw Error("tl");setTimeout(function(){r2$(l,D+1)},0)}},z_P=function(l,D){D.addEventListener("yt-navigate-start",_.CY(l,l.onYtNavigateStart));
D.addEventListener("yt-navigate-finish",_.CY(l,l.onYtNavigateFinish));D.addEventListener("yt-navigate-error",_.CY(l,l.onYtNavigateError));D.addEventListener("yt-page-data-fetched",_.CY(l,l.onYtPageDataFetched))};
_.W=EX.prototype;_.W.detached=function(){var l=_.Jc().resolve(_.xp);l.removeEventListener("yt-navigate-start",_.CY(this,this.onYtNavigateStart));l.removeEventListener("yt-navigate-finish",_.CY(this,this.onYtNavigateFinish));l.removeEventListener("yt-navigate-error",_.CY(this,this.onYtNavigateError));l.removeEventListener("yt-page-data-fetched",_.CY(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.CY(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.W.setPageOffset=function(l,D){l?_.Vh(this.hostElement,"yt-set-page-offset",[l,D]):_.EU(Error("ul"))};
_.W.setPageOffsetForNavigation=function(l,D){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(l,D))};
_.W.onYtNavigateSetPageOffset=function(l,D){this.setPageOffsetForNavigation(D.page,D.offset)};
_.W.getPageOffset=function(){var l=_.iJ(this.hostElement).querySelector("#page-manager").getCurrentPage(),D=0;l&&(D=_.Vh(this.hostElement,"yt-get-page-offset",[l])[0]);return D};
_.W.onYtHistoryPop=function(l,D){if(_.il("DISABLE_WARM_LOADS"))l.preventDefault(),window.location.reload();else{var U=_.Jc().resolve(_.xp);U.hasPendingNavigation()&&l.preventDefault();U.cancelPendingNavigation();_.iu(this.hostElement,"yt-pending-navigation-cancelled");D.errorMsg&&(l=D.errorMsg.split(" - "),D=Error(l[0]),l.length==2&&l[1]&&(_.HA(D,l[1]),_.II(D)),window.location.reload())}};
_.W.onYtHistoryLoad=function(l,D){var U=this;if(_.il("DISABLE_WARM_LOADS"))window.location.reload();else{(l=D.endpoint)&&Object.keys(l).length||(l=null);var n=D.historyEntry,y=_.Jc().resolve(_.xp),A=_.Jc().resolve(_.sm),C=null;n&&n.rootData&&(C=n.rootData);var h=C&&f$H(C);!C||h||C.filler?l?(y.navigate(l,!0),$vv(this,l)):(D.legacyBorder||h||(D.JSC$30689_savedComponentState==null&&C==null?_.II(new _.rc("Incomplete history entry",D.forward)):_.Tj(new _.rc("Malformed history entry",D.JSC$30689_savedComponentState,
D.forward,C))),window.location.reload()):(_.s69({isHot:!0}),_.ZP({webInfo:{navigationReason:"h"}}),_.LV$(),_.ae("srt"),_.ae("pdc"),this.cancelPendingTasks(),NrJ(this,D.forward,C),C.player&&(C.player.loaded=!1),$vv(this,l),_.d8y(y,l||{},C,2,{},!1,D).then(function(){U.setPageOffset(A.getCurrentPage(),n.scrollTop||0)}))}};
_.W.initHistoryManager=function(l){if(!this.hasNavigated){this.hasNavigated=!0;var D=_.iJ(this.hostElement).querySelector("#page-manager").getCurrentData();l=isNaN(l)?this.getPageOffset():l;var U=_.Jc().resolve(_.xp).currentEndpoint;this.replaceState(U,D,l)}};
_.W.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.W.onYtNavigateStart=function(l,D){this.cancelPendingTasks();D.noProgressBar||(l=_.Jc().resolve(_.G8(jav)))&&l.start();l=this.hasPendingNavigation?null:this.data;var U=_.Jc().resolve(_.sm),n,y,A;_.q("kevlar_use_vimio_behavior")&&!((n=D.endpoint)==null?0:(y=n.commandMetadata)==null?0:(A=y.webCommandMetadata)==null?0:A.ignoreNavigation)&&(n=U.getCurrentPage())&&n.disconnectVisibilityRoot();U.prepareForNavigation(D.pageType,D.endpoint);_.q("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Q6(1,
"pcl"),_.G9(this.pagePreparer,U.preparePage.bind(U,D.pageType,D.endpoint)));n=this.getPageOffset();this.initHistoryManager(n);D.reload||this.hasPendingNavigation?(D.pageType==="shorts"&&D.reload&&_.O9(this.hostElement,"yt-shorts-reset"),this.replaceState(D.endpoint,l,n)):(l==null?void 0:l.page)==="watch"&&D.pageType==="watch"&&_.q("kevlar_replace_watch_to_watch_history_state")?this.replaceState(D.endpoint,l,n):(l==null?void 0:l.page)!=="shorts"||D.pageType!=="shorts"||D.endpoint.reelWatchEndpoint.sequenceParams||
_.q("short_to_short_back_nav_killswitch")?D.type!="navigate-back"&&D.type!="navigate-forward"&&(D.pageType==="shorts"&&_.O9(this.hostElement,"yt-shorts-reset"),this.saveAndPush(D.url,D.endpoint,l,n)):this.replaceState(D.endpoint,l,0);this.hasPendingNavigation=!0};
var sar=function(l){l.hasPendingNavigation=!1;(l=_.Jc().resolve(_.G8(jav)))&&l.finish()};
EX.prototype.onYtNavigateError=function(l,D){sar(this);l=this.get("endpoint.commandMetadata.webCommandMetadata.url",D);var U=_.BS(window.location.href);l&&!U.pbjreload&&(D=D.navigationErrorReason||"10",_.q("kevlar_parent_on_pbjreload")&&(U={csn:_.t6()},this.get("data.endpoint.clickTrackingParams")&&(U.itct=this.data.endpoint.clickTrackingParams),_.s9(l,U)),_.KU(_.Ct(l,{pbjreload:D})))};
EX.prototype.onYtNavigateCache=function(l,D){var U=this,n=D.url,y=D.endpoint,A=D.data;l=!!D.miniplayer;D=!!D.skipHistory;if(n&&y&&A){var C=this.getPageOffset(),h=this.data||null;D||this.saveAndPush(n,y,h,C);n=_.d8y(_.Jc().resolve(_.xp),y,A,l?4:3,{},l);l&&n.then(function(){U.dataUpdatePromise&&U.dataUpdatePromise.then(function(){var b=_.Jc().resolve(_.sm);U.setPageOffset(b.getCurrentPage(),0)})})}};
EX.prototype.onYtNavigateFinish=function(l,D){var U=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){E4T(U,D.fromHistory)})};
var E4T=function(l,D){sar(l);if(l.pendingPlayerOnResponseReceivedActions){for(var U=_.B(l.pendingPlayerOnResponseReceivedActions),n=U.next();!n.done;n=U.next())_.Ae(n.value,l.hostElement);l.pendingPlayerOnResponseReceivedActions=[]}U=_.Jc().resolve(_.sm);D||!l.hasNavigated||_.q("web_disable_scroll_on_navigate_finish")||((D=U.getCurrentPage())?D.is==="ytd-shorts"||l.tabGesturesIsActive||l.setPageOffsetForNavigation(D,0):_.II(Error("vl")));_.j0(function(){_.j0(function(){_.ae("pda")})})};
EX.prototype.onYtNavigate=function(l){if(!l.detail.endpoint){var D=new _.rc("Error: Missing yt-navigate endpoint from target:",l.target,l.target.nodeName);_.EU(D)}if(D=_.q("cold_missing_history"))D=Tb(),D.init(!1),D=!(D.browserHistory.boundHistoryReplaceState&&D.browserHistory.boundHistoryPushState);if(D){_.IN("DISABLE_WARM_LOADS",!0);D=new _.rc("Failed to initialize history manager",this.getDebugString());var U=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
U?_.II(D):_.EU(D)}D=l.detail.endpoint;var n,y;_.q("debug_forward_web_query_parameters")&&((n=D.commandMetadata)==null?0:(y=n.webCommandMetadata)==null?0:y.url)&&(D=JSON.parse(JSON.stringify(D)),D.commandMetadata.webCommandMetadata.url=_.uI$(D.commandMetadata.webCommandMetadata.url,window.location.search));l={type:0,command:D,form:{params:l.detail.params,tempData:l.detail.tempData||{},requestType:l.detail.type,createScreenConfig:l.detail.createScreenConfig,reload:l.detail.reload?l.detail.reload:!1,
requestForm:l.detail}};_.q("kevlar_yt_navigate_command_handler")?(n=_.Jc().resolve(_.qK),l.form.skipDefaultElement=!0,n.resolveCommand(D,{form:l.form})):this.handleNavigate(l)};
EX.prototype.handleNavigate=function(l){this.hasSetScrollTopForNavigation=!1;var D=_.Jc().resolve(_.xp),U=l.form||{};D.navigate(l.command,U.reload,U.params,U.tempData,U.requestType,U.createScreenConfig,U.ignoreConfirmation,U.requestForm)&&$vv(this,l.command,U.tempData)};
EX.prototype.onYtPageDataFetched=function(l,D){try{_.qq5().reset();this.data=D.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.Jc().resolve(_.sm).updatePageData(this.data);var U=this.get("playerResponse.onResponseReceivedActions",this.data);U&&(U=Tr5(this,U));U&&_.DP(this.hostElement,U,this.hostElement);var n=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),y=this.get("response.responseContext.consistencyTokenJar",this.data);if(n||y){var A=_.gRN(),C=(0,_.we.getValues)(A.tokenJars);n&&A.replace(C,n);y&&A.replace(C,y)}}catch(h){_.EU(h)}};
var $vv=function(l,D,U){try{l.onYtEndpointChangeHandler(D,U)}catch(n){_.EU(n)}};
_.W=EX.prototype;_.W.onYtEndpointChangeHandler=function(){};
_.W.setPageTitle=function(l){l=(this.pageTitle=l)?l+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+l};
_.W.onYtUpdateTitle=function(l,D){this.setPageTitle(D)};
_.W.setUnseenNotificationCount=function(l){this.unseenNotificationCount=l;this.setPageTitle(this.pageTitle)};
_.W.handleUpdateNotificationsUnseenCountAction=function(l){_.M(l,SDJ)&&((l=_.M(l,SDJ).unseenCount)?this.setUnseenNotificationCount(l):this.setUnseenNotificationCount(0))};
_.W.handleClearCookieAction=function(l){var D;(l=(D=_.M(l,mkJ))==null?void 0:D.cookieName)&&_.cJo(l)};
_.W.onYtUpdateUnseenNotificationCount=function(l,D){this.setUnseenNotificationCount(D)};
_.W.loadData=function(l){var D=this;this.loadDepsPromise.then(function(){var U=_.Jc().resolve(_.G8(_.xp));U||_.EU(Error("wl"));if(l&&l.response){if(!l.endpoint){var n=_.jG(window.document.location.href)||"/",y="";if(n==="/"||n.startsWith("/?"))y="WEB_PAGE_TYPE_BROWSE";l.endpoint={commandMetadata:{webCommandMetadata:{url:n,webPageType:y,rootVe:3854}}}}_.d8y(U,l.endpoint,l,5,{})}else l.endpoint?U.navigate(l.endpoint):U.navigate(_.zA);_.Tn.cancelJob(D.zwiebackInitJobId);D.zwiebackInitJobId=_.Tn.addLowPriorityJob(hMw)})};
var Tb=function(){return _.Jc().resolve(_.jK)};
EX.prototype.getDebugString=function(){return Tb().getDebugString()};
EX.prototype.getThirdPartyManipulationSuspected=function(){return Tb().getThirdPartyManipulationSuspected()};
EX.prototype.replaceState=function(l,D,U){Tb().saveAndReplace(l,D,U)};
EX.prototype.saveAndPush=function(l,D,U,n){Tb().saveAndPush(l,D,U,n)};
var f$H=function(l){return _.M(l.endpoint,_.za)||_.M(l.endpoint,_.vk)?!0:!l||isNaN(l.expirationTime)?!1:(0,_.J3)()>l.expirationTime},NrJ=function(l,D,U){var n=l.get("response.trackingParams",U),y=_.aS(),A=_.t6();
if(n&&y&&A&&(n=l.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",U),!n&&U.rootVe&&(n=U.rootVe),y=D?"forwardButton":"backButton",D=l.get("playerResponse.topbar.desktopTopbarRenderer."+y+".buttonRenderer.command.clickTrackingParams",l.data),l=l.get("response.topbar.desktopTopbarRenderer."+y+".buttonRenderer.command.clickTrackingParams",l.data),D=(l=D||l)?_.v9(l):void 0,l=_.he(),y=[_.Ut(U)],_.KM(l,n,D,{dataPromises:y,csnToClone:U.csn}),U.graftedVes))for(U=
_.B(U.graftedVes),n=U.next();!n.done;n=U.next())_.cq(l,n.value)};
EX.prototype.onStoreGraftedVeAction=function(l){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(l)):_.II(Error("xl"))};
var Tr5=function(l,D){return D.filter(function(U){for(var n in U)if(w$T[n])return l.pendingPlayerOnResponseReceivedActions.push(U),!0;return!1})};
_.QP.Object.defineProperties(EX.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
EX.prototype.onStoreGraftedVeAction=EX.prototype.onStoreGraftedVeAction;EX.prototype.loadData=EX.prototype.loadData;EX.prototype.onYtUpdateUnseenNotificationCount=EX.prototype.onYtUpdateUnseenNotificationCount;EX.prototype.handleClearCookieAction=EX.prototype.handleClearCookieAction;EX.prototype.handleUpdateNotificationsUnseenCountAction=EX.prototype.handleUpdateNotificationsUnseenCountAction;EX.prototype.setUnseenNotificationCount=EX.prototype.setUnseenNotificationCount;
EX.prototype.onYtUpdateTitle=EX.prototype.onYtUpdateTitle;EX.prototype.setPageTitle=EX.prototype.setPageTitle;EX.prototype.onYtEndpointChangeHandler=EX.prototype.onYtEndpointChangeHandler;EX.prototype.onYtPageDataFetched=EX.prototype.onYtPageDataFetched;EX.prototype.handleNavigate=EX.prototype.handleNavigate;EX.prototype.onYtNavigate=EX.prototype.onYtNavigate;EX.prototype.onYtNavigateFinish=EX.prototype.onYtNavigateFinish;EX.prototype.onYtNavigateCache=EX.prototype.onYtNavigateCache;
EX.prototype.onYtNavigateError=EX.prototype.onYtNavigateError;EX.prototype.onYtNavigateStart=EX.prototype.onYtNavigateStart;EX.prototype.cancelPendingTasks=EX.prototype.cancelPendingTasks;EX.prototype.initHistoryManager=EX.prototype.initHistoryManager;EX.prototype.onYtHistoryLoad=EX.prototype.onYtHistoryLoad;EX.prototype.onYtHistoryPop=EX.prototype.onYtHistoryPop;EX.prototype.onYtNavigateSetPageOffset=EX.prototype.onYtNavigateSetPageOffset;EX.prototype.setPageOffset=EX.prototype.setPageOffset;
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],EX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],EX.prototype,"data",void 0);_.E([_.hj("yt-navigate-set-page-offset"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],EX.prototype,"onYtNavigateSetPageOffset",null);
_.E([_.hj("yt-history-pop"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],EX.prototype,"onYtHistoryPop",null);_.E([_.hj("yt-history-load"),_.T("design:type",Function),_.T("design:paramtypes",[Event,_.T41]),_.T("design:returntype")],EX.prototype,"onYtHistoryLoad",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],EX.prototype,"onYtNavigate",null);
_.E([_.hj("yt-update-title"),_.T("design:type",Function),_.T("design:paramtypes",[Event,String]),_.T("design:returntype")],EX.prototype,"onYtUpdateTitle",null);_.E([_.hj("yt-update-unseen-notification-count"),_.T("design:type",Function),_.T("design:paramtypes",[Event,Number]),_.T("design:returntype")],EX.prototype,"onYtUpdateUnseenNotificationCount",null);_.E([_.Qj()],EX);F15.YtdAppBehavior=[_.K$.YtActionHandlerBehavior,EX.prototype];var Iu=function(){var l=_.vg.apply(this,arguments)||this;l._noAccessors=!0;return l};
_.Z(Iu,_.vg);Iu.prototype.ready=function(){var l=this;_.iJ(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){l.onChange_()})};
Iu.prototype.dataChanged_=function(){_.iJ(this.hostElement).querySelector("#checkbox").checked=!1};
Iu.prototype.onChange_=function(){var l=_.iJ(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.O9(this.hostElement,"yt-dismissal-reason-"+l,this.data.feedbackToken)};
Iu.prototype.dataChanged_=Iu.prototype.dataChanged_;_.E([_.K(),_.T("design:type",Object)],Iu.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Iu.prototype,"dataChanged_",null);_.E([_.Qj()],Iu);var I$5=[Iu.prototype];var Hj=function(){var l=_.vg.apply(this,arguments)||this;l.timeoutJobId=0;l.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return l};
_.Z(Hj,_.vg);Hj.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Hj.prototype.startTimeout=function(){var l=this,D=this.data&&this.data.displayDurationSeconds;D&&!this.timeoutJobId&&(this.timeoutJobId=_.oI(_.Tn,function(){_.Vh(l.hostElement,"yt-close-popup-action",[l.is]);l.timeoutJobId=0},D*1E3))};
Hj.prototype.cancelTimeout=function(){_.Tn.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Hj.prototype.ytdHatsSurveyBehaviorDataChanged=Hj.prototype.ytdHatsSurveyBehaviorDataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Hj.prototype,"ytActionHandlerBehavior",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Hj.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.E([_.Qj()],Hj);var HV$=[_.K$.YtActionHandlerBehavior,Hj.prototype];var Yn8=function(l,D){var U;return((U=l.prefixMapping)==null?0:U[D])?l.prefixMapping[D]:l.SHARED_RENDERERS_.hasOwnProperty(D)?"yt":l.prefix},Y$={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}};Y$.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.q("kevlar_mealbar_above_player"),modern:!0,noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
Y$.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Y$.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Y$.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Y$.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)"}};
Y$.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};
Y$.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};
Y$.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};
Y$.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
Y$.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"}};Y$.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Y$.TOAST={component:null,properties:{}};var OV$=new function(l,D,U){this.supportedPopups=l;this.navigationEndpointPopupMap=D;this.popupTypeMap=U;this.supportedPopups=l;this.navigationEndpointPopupMap=D;this.popupTypeMap=U}({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:_.q("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"}),VJw=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$20330_popupConfig=Y$;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 i9$=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.i5.getInstance()},OX=function(l,D){var U=l.pageNameToElement.get(D);
if(!U){switch(D){case "watch":var n=_.q("web_watch_force_learning_journey_for_testing")?_.vO("ytd-watch-learning-journey"):_.q("kevlar_watch_fixie")?_.vO("ytd-watch-fixie"):_.q("kevlar_watch_grid")?_.vO("ytd-watch-grid"):_.vO("ytd-watch-flexy");break;case "learning_journey_watch":n=_.vO("ytd-watch-learning-journey");break;case "shorts":n=_.vO("ytd-shorts");break;case "search":n=_.vO("ytd-search");break;case "channel":n=_.vO("ytd-browse");n.pageSubtype="channels";break;case "trending":n=_.vO("ytd-browse");
n.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":n=
_.vO("ytd-browse");n.pageSubtype=D;break;case "browse":n=_.vO("ytd-browse");break;default:_.II(new _.rc("Error getting page element for type",D))}U=n;l.pageNameToElement.set(D,U)}return U};
i9$.prototype.preparePage=function(l,D,U){U&&(l=_.hu(U)||l);if(l!=="watch"&&l!=="learning_journey_watch"){var n=this.elementPoolPopulator,y=l;y!=n.targetPage_&&n.pendingPages_.indexOf(y)>-1&&(n.targetPage_&&(n.pendingPages_.unshift(n.targetPage_),n.abort()),EP$(n,y),_.IC8(n,y))}if((n=OX(this,l))||!_.M(U,_.yE)){n.isAttached||n===D||(n.hidden=!0);if(!n.data&&(l!=="watch"&&l!=="learning_journey_watch"||!_.q("swatcheroo_page_pool_dont_provide_filler_data"))){var A;if(l=(A=_.H3("FILLER_DATA",{})[l])==
null?void 0:A.response)n.data=l}return n}};var laJ=function(l){this.JSC$32670_clientRoot=l;this.playlistHandlerActionMap={"yt-add-to-playlist-command":LeW,"yt-end-playlist-command":qyq,"yt-recover-playlist-command":RMT,"yt-refresh-playlist-command":mFH,"yt-playlist-remove-videos-action":ZhP};_.Wd(_.AH.getInstance(),this.playlistHandlerActionMap,this.JSC$32670_clientRoot);Ucr()},DWT;var VA=function(l,D,U){this.apiKey=l;this.endpoint=D;this.confidenceThreshold=U===void 0?.5:U;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=D==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||D==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
D==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||D==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new qAP};
_.W=VA.prototype;
_.W.start=function(l){if(this.state===0)if(this.isOnline()){l.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=l.supportsHttpHeadersOverwriteParam);l.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=l.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.m0("voice_assistant");_.tJ("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=l.languageCode||"en-US";this.supportsCrossDomainXhr=l.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=l.youtubeAssistantRequest||null;this.listeningHandler=l.listeningHandler||this.listeningHandler;this.audioDetectedHandler=l.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=l.stopHandler||this.stopHandler;this.completeHandler=l.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=l.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=l.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
l.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=l.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=l.accessToken;this.additionalHeaders=l.additionalHeaders||{};var D;this.prefetchResponseTimeoutMs=(D=l.prefetchResponseTimeoutMs)!=null?D:this.prefetchResponseTimeoutMs;UWJ(this);this.startAudio();nwH(this)}else this.errorHandler("OFFLINE")};
_.W.stop=function(l){var D=l===void 0?{}:l;l=D.logCancel===void 0?!0:D.logCancel;var U=D.logMicClosed===void 0?!0:D.logMicClosed;var n=D.handleError===void 0?!0:D.handleError;D=D.handleStop===void 0?!0:D.handleStop;this.state!==0&&(l&&iR("voz_cx"),lR(this,{logMicClosed:U,handleStop:D}),n&&this.errorHandler("ABORTED"))};
_.W.getState=function(){return this.state};
_.W.isSupported=function(){return!0};
_.W.stopAudio=function(l){(l===void 0||l)&&iR("voz_mf")};
_.W.startAudio=function(){iR("voz_vp");return _.Ut(null)};
var ywJ=function(l,D){l.channelOpen&&(l.state!==2&&(l.state=2,iR("voz_ss"),l.listeningHandler()),D=new Uint8Array(D),D='{ "audioIn": "'+_.c2(D)+'" }',l.channel.send(D))},lR=function(l,D){var U=D===void 0?{}:D;
D=U.logMicClosed===void 0?!0:U.logMicClosed;U=U.handleStop===void 0?!0:U.handleStop;l.vozEndOfDataTimeout>-1&&(clearTimeout(l.vozEndOfDataTimeout),l.vozEndOfDataTimeout=-1);AwW(l);l.stopAudio(D);l.channel&&(l.channelOpen=!1,l.manuallyClosedChannel=!0,l.channel.close(),l.channel=void 0);l.transcribedSpeechResults=[];l.state=0;U&&l.stopHandler()},UWJ=function(l){var D={httpHeadersOverwriteParam:l.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},l.additionalHeaders,l.accessToken&&l.isUsingVoz?{Authorization:"Bearer "+l.accessToken}:{"x-goog-api-key":l.apiKey}),supportsCrossDomainXhr:l.supportsCrossDomainXhr};l.channel=new Gb(l.endpoint,D);l.channel.open();_.Gt(l.channel,"w",function(){var U=l.channel,n=U.send,y=l.isUsingVoz?"PLACEHOLDER":"example";y={config:{dialogStateIn:{languageCode:l.languageCode},deviceConfig:{deviceId:y,deviceModelId:y},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!l.isUsingVoz)y.config.requestType=4;else if(l.isUsingVoz&&l.youtubeAssistantRequest){var A=JSON.stringify(l.youtubeAssistantRequest);y.config.internalIn={youtubeAssistantS3InputJson:A}}n.call(U,y);l.channelOpen=!0;l.manuallyClosedChannel=!1});
_.Gt(l.channel,"x",function(){l.manuallyClosedChannel||(l.channelOpen=!1,l.channel=void 0,lR(l))});
_.Gt(l.channel,"z",function(U){if(U.data){AwW(l);for(var n=0;n<U.data.length;n++){var y=l,A=U.data[n],C=A.speechResults;if(C)a:{var h=[];A=[];var b=!1;C=_.B(C);for(var u=C.next();!u.done;u=C.next()){u=u.value;if(u.noSpeech){lR(y);y.errorHandler("NO_SPEECH");break a}u.transcript!==void 0&&u.stability!==void 0&&(u.stability<y.confidenceThreshold&&(b=!0),b?A.push(u.transcript):h.push(u.transcript))}if(h.length!==0||A.length!==0)h=h.join(" "),A=A.join(" "),y.receivedEndOfUtterance&&!y.isUsingVoz?y.isUsingVoz||
y.completeHandler([h,A]):(b=y,C=h,u=A,iR("voz_sf"),b.transcriptionUpdateHandler(C,u),b.transcribedSpeechResults=[C,u]),y.receivedEndOfUtterance&&(iR("voz_eou"),y.transcriptionCompleteHandler([h,A]),y.isUsingVoz&&(y.prefetchResponseTimeoutMs===0?lR(y,{logMicClosed:!1,handleStop:!0}):y.prefetchResponseTimeoutMs>0&&Wn5(y)))}else y.isUsingVoz&&(A==null?0:A.internalOut)?(A=JSON.parse(A.internalOut.youtubeAssistantS3OutputJson),A.userHasOptedInToVaa||A.vaaConsent?y.vaaConsentUpdateHandler(!!A.userHasOptedInToVaa,
!!A.vaaConsent):(B8w(y),A&&(h=y.transcribedSpeechResults,iR("voz_rqf"),y.completeHandler(h,A)))):A.eventType==="END_OF_UTTERANCE"?y.receivedEndOfUtterance=!0:(iR("voz_err"),y.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.II(Error("yl")))}}});
_.Gt(l.channel,"y",function(U){lR(l);switch(U.status){case 1:U="WEBCHANNEL_NETWORK_ERROR";break;case 2:U="WEBCHANNEL_SERVER_ERROR";break;default:U="WEBCHANNEL_UNKNOWN_ERROR"}l.errorHandler(U);l.logError(Error(U))})};
VA.prototype.logError=function(l){_.EU(l)};
VA.prototype.isOnline=function(){return!0};
var Wn5=function(l){B8w(l);l.prefetchResponseSetTimeoutId=setTimeout(function(){lR(l,{logMicClosed:!1,handleStop:!0})},l.prefetchResponseTimeoutMs)},B8w=function(l){l.prefetchResponseSetTimeoutId>-1&&(clearTimeout(l.prefetchResponseSetTimeoutId),l.prefetchResponseSetTimeoutId=-1)},nwH=function(l){AwW(l);
l.noResponseReceivedTimeout=window.setTimeout(function(){lR(l);l.errorHandler("NO_SPEECH")},11E3)},AwW=function(l){l.noResponseReceivedTimeout>-1&&(window.clearTimeout(l.noResponseReceivedTimeout),l.noResponseReceivedTimeout=-1)},iR=function(l){_.ae(l,void 0,"voice_assistant")};var Dg=function(){VA.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.Z(Dg,VA);Dg.prototype.isSupported=function(){return aoW()};
Dg.prototype.startAudio=function(){var l=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Le(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(n){CZJ(l,n)};
this.processor.connect(this.audioContext.destination);var D=function(n){l.stream=n;if(!l.audioContext)return _.Ut(null);n=l.audioContext.createMediaStreamSource(n);l.processor&&n.connect(l.processor);return _.Ut(null)},U={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?D(this.stream):(U=navigator.mediaDevices.getUserMedia(U))?U.then(D).catch(function(n){lR(l);n.name&&n.name==="NotAllowedError"?l.errorHandler("NO_MICROPHONE_PERMISSION"):(l.errorHandler("AUDIO_ERROR"),l.logError(n));return _.Le(null)}):(lR(this),this.errorHandler("AUDIO_ERROR"),_.II(Error("zl")));
return VA.prototype.startAudio.call(this)};
Dg.prototype.stopAudio=function(l){l=l===void 0?!0:l;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(D){D.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;VA.prototype.stopAudio.call(this,l)};
Dg.prototype.isOnline=function(){return navigator.onLine};
var CZJ=function(l,D){if(l.audioContext)if(window.OfflineAudioContext){var U=l.audioContext.sampleRate,n=D.inputBuffer.getChannelData(0);D=new window.OfflineAudioContext(1,n.length,16E3);for(var y=D.createBuffer(1,n.length,U),A=y.getChannelData(0),C=0,h=0;h<n.length;h++)A[h]=n[h],C+=A[h]*A[h];!l.audioDetected&&Math.sqrt(C/n.length)>.01&&(l.audioDetected=!0,l.audioDetectedHandler());n=D.createBufferSource();n.buffer=y;n.connect(D.destination);n.start(0);D.oncomplete=function(b){b=b.renderedBuffer.getChannelData(0);
for(var u=Math.floor(16384E3/U),Q=new Int16Array(u),G=0;G<u;++G)Q[G]=Math.max(-1,Math.min(1,b[G]))*32767;ywJ(l,Q.buffer)};
D.startRendering()}else hPq(l,D)},hPq=function(l,D){var U=l.audioContext.sampleRate,n=D.inputBuffer.getChannelData(0),y=Math.floor((U+8E3)/16E3);
U=n.length/y;D=new Float32Array(U);for(var A=0;A<U;++A)D[A]=n[A*y];n=new Int16Array(U);for(y=0;y<U;++y)n[y]=Math.max(-1,Math.min(1,D[y]))*32767;ywJ(l,n.buffer)};var PZJ={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var b98=function(){this.JSC$20395_audioEnabled=!0;this.audioFeedbackHolder={}};
b98.prototype.isPlaying=function(l){return l.currentTime>0&&!l.paused&&!l.ended&&l.readyState>2};
var gwW=function(l){for(var D=_.B(Object.values(PZJ)),U=D.next();!U.done;U=D.next())U=U.value,l.audioFeedbackHolder[U]=new Audio,l.audioFeedbackHolder[U].src="/s/search/audio/"+U+".mp3",l.audioFeedbackHolder[U].load()},Uu=function(l,D){if(l.JSC$20395_audioEnabled!==!1&&D in l.audioFeedbackHolder){for(var U=_.B(Object.values(l.audioFeedbackHolder)),n=U.next();!n.done;n=U.next())n=n.value,l.isPlaying(n)&&n.pause();
l.audioFeedbackHolder[D].currentTime=0;l.audioFeedbackHolder[D].play().catch(function(){})}};var uv8=function(l,D){var U=this;this.store=l;this.service=D;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){U.setState("offline");U.stop()};
this.audioPlayer=new b98;var n;(n=this.audioPlayer)==null||gwW(n)};
_.W=uv8.prototype;_.W.getService=function(){return this.service};
_.W.isEnabled=function(){return!!this.service};
_.W.isSupported=function(){var l;return(l=this.service)==null?void 0:l.isSupported()};
_.W.start=function(){var l=this,D,U,n,y,A,C,h,b,u,Q,G,J,L;return _.P(function(R){switch(R.nextAddress){case 1:l.store.dispatch(PK8("",""));if(!navigator.onLine)return l.setState("offline"),R.return();window.addEventListener("offline",l.handleOfflineEvent);l.stream=null;if(!l.permissionsSupported){R.jumpTo(2);break}_.ZY(R,3);return R.yield(vw8(l),5);case 5:D=R.yieldResult;if(!D)return(U=l.audioPlayer)==null||Uu(U,"failure"),R.return();l.service.stream=l.stream;l.setState("listening");_.WG(R,2);break;
case 3:_.kF(R),l.permissionsSupported=!1;case 2:n={context:_.wc_(_.qZ())},n.youtubeAssistantParams={searchParams:{inlineSearchResponse:l.enableInlineSearchResponse}},y=function(a,S){l.store.dispatch(bn8("transcribing"));l.store.dispatch(PK8(a,S))},A=function(){var a;
(a=l.audioPlayer)==null||Uu(a,"open");l.setState("listening")},C=function(){l.setState("transcribing")},h=function(a){l.setErrorState(a)},b=function(a,S){var d;
(d=l.audioPlayer)==null||Uu(d,"success");S&&(_.q("kevlar_voice_search_inline_search")&&(l.responseProcessor=_.Jc().resolve(_.aiK),l.responseProcessor&&(d=S.navigationAction,a=S.prefetchedSearchResponse,d&&a&&(d=(new _.R3T).JSC$14253_getStoreKey(d),_.pE(l.responseProcessor,a,d)))),l.JSC$20413_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",S))},u=function(){window.removeEventListener("offline",l.handleOfflineEvent)},Q=_.I1d(!1),G=Q.Authorization!=null,J=l.enableFirstPartyAuth||
l.enableFPAForSignedInUsers&&G?Q:{"X-Goog-Visitor-Id":Q["X-Goog-Visitor-Id"]},L={completeHandler:b,
errorHandler:h,listeningHandler:A,audioDetectedHandler:C,stopHandler:u,transcriptionUpdateHandler:y,youtubeAssistantRequest:n,languageCode:QtT(),additionalHeaders:J,supportsCrossDomainXhr:l.enableFirstPartyAuth||l.enableFPAForSignedInUsers&&G,supportsHttpHeadersOverwriteParam:!l.disableHttpHeadersOverwrite},l.service.start(L),_.Kz(R)}})};
_.W.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.W.reset=function(){this.store.dispatch(_.V0({type:"RESET_VOICE_SEARCH_STATE"}))};
_.W.setState=function(l){this.store.dispatch(bn8(l))};
_.W.setErrorState=function(l){switch(l){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var D;(D=this.audioPlayer)==null||Uu(D,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)vw8(this);else{var U;(U=this.audioPlayer)==null||Uu(U,"failure");this.setState("permission-denied")}break;case "ABORTED":var n;(n=this.audioPlayer)==null||Uu(n,"no_input");break;default:var y;(y=this.audioPlayer)==
null||Uu(y,"no_input");this.setState("timeout")}};
var vw8=function(l){var D,U;return _.P(function(n){switch(n.nextAddress){case 1:return n.yield(navigator.permissions.query({name:"microphone"}),2);case 2:D=n.yieldResult;if(D.state==="granted")return n.return(!0);if(D.state==="denied")return l.setState("permission-denied"),n.return(!1);l.setState("permission");U={audio:{sampleSize:16,channelCount:1},video:!1};_.ZY(n,3);return n.yield(navigator.mediaDevices.getUserMedia(U),5);case 5:return l.stream=n.yieldResult,n.return(!0);case 3:return _.kF(n),
l.setState("permission-denied"),n.return(!1)}})},QtT=function(){var l=_.H3("INNERTUBE_CONTEXT_HL"),D=_.H3("INNERTUBE_CONTEXT_GL");
return l.indexOf("-")>-1?l:l+"-"+D};var GDT=function(l,D,U){uv8.call(this,D,U);this.JSC$20413_actionRouter=l;this.enableInlineSearchResponse=_.q("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.q("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.q("kevlar_voice_search_enable_fpa_signedin_users")},Jww;
_.Z(GDT,uv8);
var Lnw=function(){if(!Jww){var l="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.q("kevlar_voice_search_auth_enabled")||_.q("kevlar_voice_search_use_yt_endpoint")?l="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.q("kevlar_voice_search_use_fp_endpoint")&&(l="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Jww=
new GDT(_.AH.getInstance(),_.EB(),new Dg(_.H3("VOZ_API_KEY"),l,.5))}return Jww};var qo8=function(l){this.JSC$20417_clientRoot=l;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$20417_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));l=_.B(this.eventListeners);for(var D=l.next();!D.done;D=l.next()){var U=
_.B(D.value);D=U.next().value;U=U.next().value;U=_.B(U);for(var n=U.next();!n.done;n=U.next()){var y=_.B(n.value);n=y.next().value;y=y.next().value;D.addEventListener(n,y)}}_.Wd(_.AH.getInstance(),this.autonavPauseActionMap,this.JSC$20417_clientRoot)},Mj2,RPr=function(l){return _.q("kevlar_autonav_popup_filtering")?(l=_.NN(l))?l.hasAttribute("prevent-autonav"):!0:!0};
_.W=qo8.prototype;_.W.onIronOverlayOpened=function(l){RPr(l)&&(this.autonavPauseReasons.overlayOpen=!0,nl(this))};
_.W.onIronOverlayClosed=function(l){RPr(l)&&(this.autonavPauseReasons.overlayOpen=!1,nl(this))};
_.W.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;nl(this)};
_.W.onYtAutonavPauseBlur=function(){var l=this;_.Tn.addJob(function(){Z9J()||(l.autonavPauseReasons.inputBoxFocus=!1,nl(l))},8,0)};
_.W.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;nl(this)};
_.W.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;nl(this)};
_.W.onYtAutonavPauseScroll=function(){var l=_.Jc().resolve(_.sm);l.isOnWatch()&&(l=l.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=l.getBoundingClientRect().top<-200,nl(this))};
_.W.onYtAutonavPauseUserEngagement=function(l){var D=this;if(_.q("user_engagement_enable_autoplay_pause_feature")){var U=Number(l.lowEngagementThresholdMs);isNaN(U)||U<=0||l.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.CZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.Jc().resolve(_.vK),_.Gj()<U?_.oI(_.Tn,function(){_.CZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.M0v()?(this.userEngagementCsn=_.t6(),_.oI(_.Tn,function(){_.CZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
D.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,nl(this)):_.CZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.O0d(Error("Al`"+JSON.stringify(l)))};
_.W.onYtAutonavPausePlayer=function(l){this.autonavPauseReasons.requestedByPlayer=!!l.detail;nl(this)};
_.W.onYtAutonavVisibilityChanged=function(){var l=this,D,U,n;return _.P(function(y){if(y.nextAddress==1)return(D=_.T4())?y.yield(D.getPlayerPromise(),2):y.return();U=y.yieldResult;n=U.isMuted()||U.getVolume()===0;l.autonavPauseReasons.backgroundAndMute=Z9J()&&n;nl(l);_.Kz(y)})};
_.W.onYtAutonavPausePlayerEnded=function(){_.Jc().resolve(_.vK);var l=144E5;_.q("user_engagement_enable_autoplay_pause_feature")||_.q("is_part_of_any_user_engagement_experiment")||(l=45E5);this.autonavPauseReasons.longIdle=_.Gj()>l;ePw(this);nl(this)};
_.W.onYtUserActivity=function(){var l=this;this.autonavPauseReasons.userEngagement&&(_.oI(_.Tn,function(){_.CZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",l.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,nl(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.oI(_.Tn,function(){_.CZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",l.userEngagementCsn);_.sU()}),this.autonavPauseReasons.youthereLactExperiment=!1,nl(this));
this.autonavPauseReasons.longIdle&&!_.q("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,nl(this))};
var Z9J=function(){var l=window.document.visibilityState;return!(!l||l==="visible")},nl=function(l){for(var D=!1,U=_.B(Object.values(l.autonavPauseReasons)),n=U.next();!n.done;n=U.next())n=n.value,D=D||n;
D?_.RZ.getInstance().pause(l.autonavPauseReasons):(l=_.RZ.getInstance(),l.autonavState_==3?(l.setState(2,!1,!1),l.autonavPauseReason_=void 0):l.autonavState_==1&&(l.disabledAutonavPauseReason_=void 0))},ePw=function(l){var D=!1;
if(_.q("enable_autoplay_pause_by_lact")){_.Jc().resolve(_.vK);D=_.RG("autoplay_pause_by_lact_sec")*1E3;var U=_.RG("autoplay_pause_by_lact_sampling_fraction");(D=_.Gj()>=D&&Math.random()<U)&&!_.M0v()&&(_.oI(_.Tn,function(){_.CZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),D=!1)}D!==l.autonavPauseReasons.youthereLactExperiment&&(l.autonavPauseReasons.youthereLactExperiment=D)&&(l.userEngagementCsn=_.t6(),_.oI(_.Tn,function(){_.CZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",l.userEngagementCsn)}));
l.autonavPauseReasons.userEngagement&&_.oI(_.Tn,function(){_.CZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",l.userEngagementCsn)})};
qo8.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.CZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.sU(),this.autonavPauseReasons.youthereLactExperiment=!1,nl(this));this.autonavPauseReasons.userEngagement&&(_.CZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,nl(this))};
qo8.prototype.onYtEngagementPanelVisibleChanged=function(l){l.detail&&l.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=l.detail.visible,nl(this))};
qo8.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var mWq=_.xv.persistentPanelVisibleSelector,y3=function(){var l=_.p.apply(this,arguments)||this;l.miniGuideVisible=!1;l.guideOpened=_.q("disable_initial_guide_state_fix")?!1:l.canFitPersistentGuide(l.initialBodyClientWidth);l.guideUserStateOpened=l.getInitialGuideUserStateOpened();l.isFullscreenShorts=!1;l.miniGuideWidthThreshold=_.RG("kevlar_mini_guide_width_threshold",791);l.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
l.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");l.persistentGuideBlockedPagePathRegex=new RegExp(l.persistentGuideBlockedPagesPatterns.join("|"));l.animationTransitionDuration=0;l.lateDataResolver=_.wf();l.initialGuideDataFetchFailed=!1;l.initialLoad=!0;l.guideRenderers=new Set;l.isMouseOverGuide=!1;l.sessionUserManuallyExpandedGuideState=
!1;l.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return l};
_.Z(y3,_.p);_.W=y3.prototype;_.W.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.W.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.W.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.W.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.W.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.W.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.W.ready=function(){_.Jc().addProvider({provide:_.AY,useValue:this.hostElement})};
_.W.attached=function(){var l=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.CY(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.CY(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.CY(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.CY(this,this.onYtGuideShow));_.u6(this,function(){l.animationTransitionDuration=200})};
_.W.detached=function(){document.removeEventListener("yt-navigate-finish",_.CY(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.CY(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.CY(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.CY(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.CY(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.CY(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.CY(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.W.getData=function(){return this.data};
_.W.load=function(){var l=this,D,U,n,y;return _.P(function(A){switch(A.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=l.lateDataResolver.resolve.bind(l),A.return(l.lateDataResolver.promise);if(window.ytInitialGuideData)return D=_.wf(),D.resolve(window.ytInitialGuideData),A.return(D.promise);n=!1;_.ZY(A,2);return A.yield(l.fetchGuideData(),4);case 4:U=A.yieldResult;_.WG(A,3);break;case 2:y=_.kF(A),y.message==="Returned error"&&(n=
!0);case 3:if(U)return A.return(U);l.onYtGuideClose();n||(l.initialGuideDataFetchFailed=!0);return A.return(l.lateDataResolver.promise)}})};
_.W.fetchGuideData=function(){var l=this,D,U,n,y,A,C,h;return _.P(function(b){if(b.nextAddress==1)return D=_.Jc(),l.guidePromise||(U=D.resolve(_.Ju),l.guidePromise=_.oL(U,Grv)),b.yield(l.guidePromise,2);if(b.nextAddress!=3)return n=b.yieldResult,y=D.resolve(_.lY),b.yield(y(),3);(A=b.yieldResult)&&((C=n)==null?void 0:(h=C.responseContext)==null?void 0:h.maxAgeSeconds)!==0&&A.put("service:guide:fallback",new _.Ku({innertubeResponse:n}));return b.return(n)})};
_.W.initializeGuideDataIfEmpty=function(){var l=this,D,U;return _.P(function(n){if(n.nextAddress==1){if(!l.initialGuideDataFetchFailed||l.data)return n.return();_.ZY(n,2);return n.yield(l.fetchGuideData(),4)}if(n.nextAddress!=2)return(D=n.yieldResult)&&l.lateDataResolver.resolve(D),_.WG(n,0);U=_.kF(n);_.II(U);_.Kz(n)})};
_.W.initializeGuideData=function(){var l=this,D;return _.P(function(U){switch(U.nextAddress){case 1:return _.yI(RHr(),{mainAppWeb:_.on()}),_.ZY(U,2),U.yield(l.load(),4);case 4:l.data=U.yieldResult;_.WG(U,3);break;case 2:_.kF(U),_.AS(RHr(),"FAILURE");case 3:D=l.data&&l.data.items&&l.data.items.length>0?"SUCCESS":"FAILURE",_.AS(RHr(),D),_.Kz(U)}})};
_.W.setGuideData=function(l){var D=this,U,n;return _.P(function(y){if(y.nextAddress==1)return D.disabled?y.return():D.data?(l.data=D.data,D.guideRenderers.add(l),y.return()):y.yield(D.initializeGuideData(),2);D.graftGuideToPage();U=_.il("IS_HOMEPAGE_COLD")?"eop":void 0;_.q("disable_element_pool_populator")?D.setGuideDataAfterInit(l):(n=new _.Q6(1,U),_.G9(n,D.setGuideDataAfterInit.bind(D,l)));_.Kz(y)})};
_.W.setGuideDataAfterInit=function(l){l.data=this.data;l.markDirty();this.guideRenderers.add(l);_.j0(function(){_.ae("gle")});
_.u6(this,function(){_.ae("gpe")})};
_.W.graftGuideToPage=function(){if(this.data){var l=this.data&&this.data.trackingParams;l&&(l=_.v9(l),_.pM(_.he(),l))}};
_.W.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.CY(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.W.onDrawerOpenedChanged=function(l,D){!D.value&&this.guideOpened&&(this.guideOpened=!1)};
_.W.onYtGuideToggle=function(l){var D=this.guideOpened;this.guideOpened=!D;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var U=_.bu();_.gj(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;U.save()}this.updateGuideDrawerElementState();if(this.guideElement){var n;this.guideOpened&&((n=l.detail)==null?0:n.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.CY(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.CY(this,this.onAppDrawerTransitioned))}D||this.initializeGuideDataIfEmpty()};
_.W.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.CY(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.hL(this.guideElement)};
_.W.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.CY(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(CKW(this.guideOpened))};
_.W.guidePersistentAndVisibleChanged=function(){_.iu(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.W.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.V0({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.W.miniGuideVisibleChanged=function(){_.iu(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.W.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(CKW(this.guideOpened)),this.initialLoad=!1);_.iu(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.W.activeEndpointChanged=function(){_.iu(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.W.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.W.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()};
_.W.cachedClientWidthChanged=function(){this.updateGuideState()};
_.W.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.W.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var l=this.canFitPersistentGuide(this.cachedClientWidth);l?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=l}this.updateGuideDrawerElementState()};
_.W.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.W.getGuideOpened=function(){return this.guideOpened};
_.W.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.W.getActiveEndpoint=function(){return this.activeEndpoint};
_.W.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.W.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&&_.O9(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.W.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.q("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.W.handleGuideMouseLeave=function(){var l=this;!this.sessionUserManuallyExpandedGuideState&&_.q("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Fs(this,"handleGuideMouseLeave",function(){l.isMouseOverGuide||!l.guideOpened||l.miniGuideVisible||(l.guideOpened=!1,l.updateGuideDrawerElementState())},100))};
_.W.computeGuidePersistentAndVisible=function(){var l=this;_.Fs(this,"computeGuidePersistentAndVisible",function(){l.guidePersistentAndVisible=l.guideOpened&&l.guidePersistent;l.guideIsVisibleButNotPersistent=!(!l.guideOpened||l.guidePersistent)})};
_.W.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.W.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.W.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.W.startLoadingWatch=function(){this.closeGuide()};
_.W.startLoadingShorts=function(){_.q("web_hide_guide_on_shorts")&&this.closeGuide()};
_.W.onYtNavigateFinish=function(l,D){if(!_.iB||D){this.activeEndpoint=D.endpoint;this.pageType=D.pageType;this.pageUrl=D.response.url;var U,n;l=(n=_.M((U=D.endpoint)==null?void 0:U.commandMetadata,_.W6))==null?void 0:n.url;!this.pageUrl&&l&&(this.pageUrl=l);_.q("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.W.getVisibleGuideRenderer=function(){for(var l=_.B(this.guideRenderers),D=l.next();!D.done;D=l.next())if(D=D.value,this.miniGuideVisible&&D.is==="ytd-mini-guide-renderer"||this.guideOpened&&D.is==="ytd-guide-renderer")return D;return null};
_.W.markGuideRendererDirty=function(l){if(l){typeof l.markDirty==="function"&&l.markDirty();l=_.B([].concat(_.zz(_.iJ(l).children)));for(var D=l.next();!D.done;D=l.next())this.markGuideRendererDirty(D.value)}};
_.W.persistentGuideEnabled=function(l,D){if(!D||l==="watch"||l==="settings"||l==="shorts"&&this.isFullscreenShorts||_.q("reels_web_disable_persistent_guide_shorts")&&l==="shorts")return!1;var U=_.kZ(D)||"";return _.q("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(n){return U===n}):!this.persistentGuideBlockedPagePathRegex.test(U)};
_.W.canFitPersistentGuide=function(l){var D=_.RG("kevlar_persistent_guide_width_threshold",1312);return D===-1||_.q("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:l>this.calculateGuideThreshold(D)};
_.W.calculateGuideThreshold=function(l){return _.q("enable_ai_companion")?l+(this.persistentPanelVisible?400:0):l};
_.W.canFitMiniGuide=function(l){return this.miniGuideWidthThreshold===-1?!1:l>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.W.onResize=function(){var l=this;_.Fs(this,"calculateGuideState",function(){l.onResizeDebounced()})};
_.W.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.W.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.W.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.W.getInitialGuideUserStateOpened=function(){return _.q("web_force_mini_guide_default")?!1:!_.bu().getFlag(109)};
_.QP.Object.defineProperties(y3.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.H3("initialBodyClientWidth")||window.innerWidth}}});
y3.prototype.onResize=y3.prototype.onResize;y3.prototype.observeForMiniGuideVisible=y3.prototype.observeForMiniGuideVisible;y3.prototype.computeGuidePersistentAndVisible=y3.prototype.computeGuidePersistentAndVisible;y3.prototype.persistentPanelVisibleChanged=y3.prototype.persistentPanelVisibleChanged;y3.prototype.cachedClientWidthChanged=y3.prototype.cachedClientWidthChanged;y3.prototype.resetGuide=y3.prototype.resetGuide;y3.prototype.activeEndpointChanged=y3.prototype.activeEndpointChanged;
y3.prototype.guideOpenedChanged=y3.prototype.guideOpenedChanged;y3.prototype.miniGuideVisibleChanged=y3.prototype.miniGuideVisibleChanged;y3.prototype.guideIsVisibleButNotPersistentChanged=y3.prototype.guideIsVisibleButNotPersistentChanged;y3.prototype.guidePersistentAndVisibleChanged=y3.prototype.guidePersistentAndVisibleChanged;y3.prototype.onGuideElementChanged=y3.prototype.onGuideElementChanged;y3.prototype.onGuidePersistentChanged=y3.prototype.onGuidePersistentChanged;
y3.prototype.onRenderGuideChanged=y3.prototype.onRenderGuideChanged;y3.prototype.onActiveEndpointChanged=y3.prototype.onActiveEndpointChanged;y3.prototype.onMiniGuideVisibleChanged=y3.prototype.onMiniGuideVisibleChanged;y3.prototype.onGuideIsVisibleButNotPersistentChanged=y3.prototype.onGuideIsVisibleButNotPersistentChanged;y3.prototype.onGuidePersistendAndVisibleChanged=y3.prototype.onGuidePersistendAndVisibleChanged;
_.E([_.m(_.$s),_.T("design:type",Object)],y3.prototype,"ironResizableBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],y3.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],y3.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],y3.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],y3.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Boolean)],y3.prototype,"disabled",void 0);_.E([_.K(),_.T("design:type",Boolean)],y3.prototype,"guidePersistentAndVisible",void 0);_.E([_.Pg("guidePersistentAndVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"onGuidePersistendAndVisibleChanged",null);_.E([_.K(),_.T("design:type",Boolean)],y3.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.Pg("guideIsVisibleButNotPersistent"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.E([_.K(),_.T("design:type",Object)],y3.prototype,"miniGuideVisible",void 0);_.E([_.Pg("miniGuideVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"onMiniGuideVisibleChanged",null);_.E([_.K(),_.T("design:type",Boolean)],y3.prototype,"forceMiniGuideClose",void 0);
_.E([_.K(),_.T("design:type",Object)],y3.prototype,"activeEndpoint",void 0);_.E([_.Pg("activeEndpoint"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"onActiveEndpointChanged",null);_.E([_.K(),_.T("design:type",Boolean)],y3.prototype,"renderGuide",void 0);_.E([_.Pg("renderGuide"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"onRenderGuideChanged",null);
_.E([_.K({selector:mWq}),_.T("design:type",Boolean)],y3.prototype,"persistentPanelVisible",void 0);_.E([_.K(),_.T("design:type",Object)],y3.prototype,"guideOpened",void 0);_.E([_.K(),_.T("design:type",Boolean)],y3.prototype,"guidePersistent",void 0);_.E([_.Pg("guidePersistent"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"onGuidePersistentChanged",null);_.E([_.K(),_.T("design:type",Object)],y3.prototype,"guideUserStateOpened",void 0);
_.E([_.K(),_.T("design:type",String)],y3.prototype,"pageUrl",void 0);_.E([_.K(),_.T("design:type",String)],y3.prototype,"pageType",void 0);_.E([_.K(),_.T("design:type",Number)],y3.prototype,"cachedClientWidth",void 0);_.E([_.K(),_.T("design:type",Object)],y3.prototype,"guideElement",void 0);_.E([_.K({selector:_.Yv}),_.T("design:type",Object)],y3.prototype,"isFullscreenShorts",void 0);
_.E([_.Pg("guideElement"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"onGuideElementChanged",null);_.E([_.Pg("guidePersistentAndVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"guidePersistentAndVisibleChanged",null);
_.E([_.GY("guideIsVisibleButNotPersistent"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"guideIsVisibleButNotPersistentChanged",null);_.E([_.Pg("miniGuideVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"miniGuideVisibleChanged",null);_.E([_.GY("guideOpened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"guideOpenedChanged",null);
_.E([_.Pg("activeEndpoint"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"activeEndpointChanged",null);_.E([_.GY("pageUrl"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"resetGuide",null);_.E([_.GY("cachedClientWidth"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"cachedClientWidthChanged",null);
_.E([_.GY("persistentPanelVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"persistentPanelVisibleChanged",null);_.E([_.Pg("guideOpened","guidePersistent"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"computeGuidePersistentAndVisible",null);
_.E([_.GY("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"observeForMiniGuideVisible",null);_.E([_.hj("iron-resize"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],y3.prototype,"onResize",null);_.E([_.x({disableElementRegistration:!0,is:"yt-guide-manager"})],y3);
var aa$=_.r(y3,"yt-guide-manager",void 0,{mode:_.Vj("kevlar_poly_si_batch_j081")?1:2});var AG=function(){var l=_.p.apply(this,arguments)||this;l.JSC$20427_keyboardInUse=!1;l.boundHandleCapturedKeydownEvent=function(D){l.handleCapturedKeydownEvent(D)};
return l};
_.Z(AG,_.p);_.W=AG.prototype;_.W.attached=function(){this.listenToDocument(document)};
_.W.listenToDocument=function(l){l.addEventListener("keydown",_.CY(this,this.onKeyDownEvent));l.addEventListener("keyup",_.CY(this,this.onKeyUpEvent));l.addEventListener("mousedown",_.CY(this,this.onMouseDownEvent));_.q("desktop_keyboard_capture_keydown_killswitch")||l.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);l.addEventListener("yt-page-data-updated",_.CY(this,this.onPageUpdate))};
_.W.detached=function(){this.unlistenFromDocument(document)};
_.W.unlistenFromDocument=function(l){l.removeEventListener("keydown",_.CY(this,this.onKeyDownEvent));l.removeEventListener("keyup",_.CY(this,this.onKeyUpEvent));l.removeEventListener("mousedown",_.CY(this,this.onMouseDownEvent));_.q("desktop_keyboard_capture_keydown_killswitch")||l.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);l.removeEventListener("yt-page-data-updated",_.CY(this,this.onPageUpdate))};
_.W.ready=function(){_.Jc().addProvider({provide:_.L$,useValue:this})};
_.W.isKeyBoardInUse=function(){return this.JSC$20427_keyboardInUse};
_.W.handleCapturedKeydownEvent=function(l){if(l.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(l)};
_.W.onMouseDownEvent=function(){this.JSC$20427_keyboardInUse=!1};
_.W.onPageUpdate=function(){if(_.q("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.q("web_shorts_keyboard_shortcut_usage_log")){_.u7.clear();for(var l=_.B(_.b7),D=l.next();!D.done;D=l.next()){var U=_.B(D.value);D=U.next().value;U=U.next().value;U=_.UE(U);_.u7.set(D,U);_.jz(_.t6(),_.aS(),U)}_.vs.clear();l=_.B(_.g4);for(D=l.next();!D.done;D=l.next())U=_.B(D.value),D=U.next().value,U=U.next().value,U=_.UE(U),_.vs.set(D,U),_.jz(_.t6(),_.aS(),U);_.FI(_.t6(),_.aS(),[].concat(_.zz(_.vs.values()),
_.zz(_.u7.values())));_.wj(_.t6(),[].concat(_.zz(_.vs.values()),_.zz(_.u7.values())))}};
_.W.onMiniplayerActiveChange=function(){var l;(l=_.Jc().resolve(_.kq).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(l.document):this.unlistenFromDocument(l.document))};
_.W.ignoreKeyEvent=function(l){if(l.ctrlKey||l.altKey)if(_.q("kevlar_macro_markers_keyboard_shortcut")){if(l.keyCode!==37&&l.keyCode!==39)return!0}else return!0;var D=_.$f(l)||[];return _.esq(D)?(_.q("web_button_or_anchor_list_item")&&Nfr(D,l)&&(this.JSC$20427_keyboardInUse=!0),!0):l.defaultPrevented?(pZ(l.keyCode,l.shiftKey,this.isShortsPage),!0):l.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(l):!1};
_.W.isSpacebarClick=function(l){var D=l||window.event;var U;D.composedPath&&typeof D.composedPath==="function"?U=D.composedPath():U=D.path;U&&U.length?D=U[0]:(D=D||window.event,D=D.target||D.srcElement,D.nodeType==3&&(D=D.parentNode));return D&&l.keyCode===32&&(l=D.tagName==="BUTTON"||D.tagName==="A"||D.tagName==="INPUT",D=(D=D.getAttribute("role"))&&(D==="option"||D==="button"||D.indexOf("menuitem")===0),l||D)?!0:!1};
_.W.onKeyDownEvent=function(l){if(!this.ignoreKeyEvent(l)&&(l.keyCode===191&&(l.shiftKey||l.metaKey?l.repeat!=null&&l.repeat||(this.openHotkeyDialog(),pZ(l.keyCode,l.shiftKey,this.isShortsPage)):(this.focusSearchBox(),l.preventDefault())),!l.metaKey)){var D=_.Jc().resolve(_.kq);switch(l.keyCode){case 9:this.JSC$20427_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(l);break;case 84:D.pipController.getWindow()&&window.focus();this.toggleTheaterMode(l.keyCode,l.shiftKey);break;case 73:D.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(l.keyCode,l.shiftKey);break;case 70:if(this.isShortsPage){_.mQJ();break}this.isMiniplayerActive()?D.pipController.getWindow()&&(D.close(!0),window.focus()):this.passEventToPlayer(l);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(l.keyCode,l.shiftKey):this.closeMiniplayer(l.keyCode,l.shiftKey)||this.passEventToPlayer(l);break;case 13:l.shiftKey&&_.Jc().resolve(_.ZH).activate(l);break;default:this.passEventToPlayer(l)}}};
_.W.onKeyUpEvent=function(l){if(!this.ignoreKeyEvent(l))if(_.q("web_speedmaster_spacebar_control")&&l.keyCode===32)this.handlePlayerSpaceKey(l,!0);else{var D=this.getPlayerManager();D&&(D=D.getPlayer())&&D.handleGlobalKeyUp(l.keyCode,l.shiftKey,l.ctrlKey,l.altKey,l.metaKey,l.key,l.code)}};
_.W.getPlayerManager=function(){var l=_.T4(),D=_.Jc().resolve(_.G8(_.sm));return l&&D&&D.isOnWatch()?l:null};
_.W.passEventToPlayer=function(l,D){var U=this,n,y,A,C;return _.P(function(h){if(h.nextAddress==1){if(!_.q("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&U.isMiniplayerActive())n=_.Jc().resolve(_.kq).getPlayerElement();else if(U.inlinePreviewIsActive){if(y=_.iu(U.hostElement,"yt-get-inline-preview-player-action"),(A=y)==null?0:A[0])n=y[0]}else n=_.T4();return n?h.yield(n.getPlayerPromise(),3):h.jumpTo(0)}C=h.yieldResult;D?C.handleGlobalKeyUp(l.keyCode,l.shiftKey,l.ctrlKey,l.altKey,l.metaKey,
l.key,l.code):C.handleGlobalKeyDown(l.keyCode,l.shiftKey,l.ctrlKey,l.altKey,l.metaKey,l.key,l.code,l.repeat);l.keyCode!==38&&l.keyCode!==40&&pZ(l.keyCode,l.shiftKey,U.isShortsPage);_.Kz(h)})};
_.W.focusSearchBox=function(){_.O9(this.hostElement,"yt-focus-searchbox")};
_.W.openHotkeyDialog=function(){_.O9(this.hostElement,"yt-open-hotkey-dialog")};
_.W.isMiniplayerActive=function(){return _.Jc().resolve(_.kq).isMiniplayerActive()};
_.W.closeMiniplayer=function(l,D){return this.isMiniplayerActive()?(_.Jc().resolve(_.kq).close(),pZ(l,D,this.isShortsPage),!0):!1};
_.W.toggleTheaterMode=function(l,D){var U=_.aL(_.EB().getState()),n=this.getPlayerManager(),y=_.q("disable_theater_mode_keyboard")||_.il("START_IN_FULL_WINDOW_MODE");n&&!y&&(U=!U,_.Ta()&&_.q("external_fullscreen")&&(U=!0),_.Vh(this.hostElement,"yt-toggle-theater-mode",[U]),pZ(l,D,this.isShortsPage))};
_.W.toggleMiniplayer=function(l,D){var U=this.getPlayerManager();if(this.isMiniplayerActive()){var n;((n=_.Jc().resolve(_.G8(_.sm)))==null?0:n.isOnWatch())?_.Jc().resolve(_.kq).close(!0):_.cX(_.Jc().resolve(_.kq));pZ(l,D,this.isShortsPage)}else U&&(_.Vh(this.hostElement,"yt-activate-miniplayer-from-watch-action"),pZ(l,D,this.isShortsPage))};
_.W.handlePlayerSpaceKey=function(l,D){var U=!!_.T4()||this.isMiniplayerActive();U=_.q("disable_space_scroll_fix")||U;_.q("global_spacebar_pause")&&!this.isKeyBoardInUse()&&U&&(l.preventDefault(),this.passEventToPlayer(l,D))};
_.W.isPresentingTheaterMode=function(){return _.q("web_watch_enable_tm_esc_key")?_.aL(_.EB().getState())&&!_.Ta():!1};
AG.prototype.onMiniplayerActiveChange=AG.prototype.onMiniplayerActiveChange;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],AG.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],AG.prototype,"ytdReduxBehavior",void 0);_.E([_.K({selector:_.xOd}),_.T("design:type",Boolean)],AG.prototype,"inlinePreviewIsActive",void 0);_.E([_.K({selector:_.fgo}),_.T("design:type",Boolean)],AG.prototype,"isShortsPage",void 0);
_.E([_.K({selector:_.Xo}),_.T("design:type",Boolean)],AG.prototype,"miniplayerIsActive",void 0);_.E([_.Pg("miniplayerIsActive"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],AG.prototype,"onMiniplayerActiveChange",null);_.E([_.x({disableElementRegistration:!0,is:"yt-hotkey-manager"})],AG);_.r(AG,"yt-hotkey-manager",void 0,{mode:_.Vj("kevlar_poly_si_batch_j081")?1:2});var WU=function(){var l=_.p.apply(this,arguments)||this;l.loopStateEntityKey_=null;l.playlistLoopStateEntity_=null;l.isShuffleNextPlaylist=!1;l.PLAYER_EVENTS_=new Map;l.playerListenersSetup_=!1;l.videoSkipJob_=0;l.canAutoAdvance_=!1;l.playerManager_=null;l.TEST_ONLY={};return l};
_.Z(WU,_.p);_.W=WU.prototype;_.W.ready=function(){_.Jc().addProvider({provide:_.Cd,useValue:this.hostElement})};
_.W.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_)};
_.W.attached=function(){document.addEventListener("yt-navigate-start",_.CY(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.CY(this,this.onYtNavigateFinish_))};
_.W.detached=function(){document.removeEventListener("yt-navigate-start",_.CY(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.CY(this,this.onYtNavigateFinish_))};
_.W.updatePlaylistEventListeners=function(l,D){D&&!this.playerListenersSetup_?(this.playerManager_=l,this.registerPlaylistEventListeners_(l)):!D&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(l))};
_.W.setPlayer=function(l){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=l};
_.W.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.W.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.W.registerPlaylistEventListeners_=function(l){var D=this;l.getPlayerPromise().then(function(U){D.playerListenersSetup_||(D.ytPlayerListenerBehavior.listenToPlayerEvents(U,D.PLAYER_EVENTS_),D.playerListenersSetup_=!0)})};
_.W.removePlaylistEventListeners_=function(l){var D=this;l.getPlayerPromise().then(function(U){D.playerListenersSetup_&&(D.ytPlayerListenerBehavior.unlistenFromPlayerEvents(U,D.PLAYER_EVENTS_),D.playerListenersSetup_=!1)})};
_.W.setPlaylistComponent=function(l){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.CY(this,this.onPlaylistYtNavigate_)),l&&(l.data&&this.playlistComponent.data&&l.data.playlistId==this.playlistComponent.data.playlistId?(l.loopOn=this.playlistComponent.loopOn,l.shuffleOn=this.playlistComponent.shuffleOn):(l.loopOn=!1,l.shuffleOn=!1),this.isShuffleNextPlaylist&&(l.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=l;this.playlistComponent.addEventListener("yt-navigate",
_.CY(this,this.onPlaylistYtNavigate_))};
_.W.setAutoplayRenderer=function(l){this.autoplayData=l};
_.W.setPlaylistData=function(l){this.currentPlaylistData_=l;_.O9(this.hostElement,"yt-playlist-data-updated");_.we.isEmpty(l)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(l)};
_.W.setPlayerPlaybackControlData=function(l){this.playerManager_&&this.playerManager_.updatePlayerComponents(l.playlistPanelRenderer)};
_.W.getPlaylistData=function(){return this.currentPlaylistData_};
_.W.getTempData_=function(l,D){if(this.playlistComponent==null)return null;l={};this.playlistComponent.shuffleOn&&(l.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(l.loop_on=this.playlistComponent.loopOn);D&&(l.autonav="1",_.Jc().resolve(_.vK),D=_.Gj(),D>0&&(l.lact=D),this.playerManager_&&(D=this.playerManager_.getPlayer())&&D.shouldSendVisibilityState()&&(D=D.getVisibilityState(),D!=0&&(l.vis=D)));_.q("enable_unknown_lact_fix_on_html5")&&(_.Jc().resolve(_.vK),l.lact=
_.Gj());return l};
_.W.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.W.setLoopStateEntityKey_=function(l){var D;this.loopStateEntityKey_=((D=this.getPlaylistLoopData_(l))==null?void 0:D.playlistLoopStateEntityKey)||null};
_.W.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.W.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.W.skipVideo=function(){var l=this,D=_.q("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||D)D=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Ji(_.Tn,function(){l.onPlaylistNext();l.videoSkipJob_=0},D)};
_.W.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Tn.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.W.isInBackground_=function(){var l=window.document.visibilityState;return!(!l||l=="visible")};
_.W.onPlaylistIndex_=function(l){this.playlistComponent&&(l=this.playlistComponent.data.contents[l].playlistPanelVideoRenderer.navigationEndpoint,_.O9(this.hostElement,"yt-navigate",{endpoint:l,tempData:this.getTempData_(l)}))};
_.W.onPlayerStateChange_=function(l){if(l=l==0&&this.playlistComponent&&this.canAutoAdvance_)l=_.RZ.getInstance(),l=!(l.autonavState_===3?l.autonavPauseReason_&&l.autonavPauseReason_.inputBoxFocus===!0:l.autonavState_===1&&l.disabledAutonavPauseReason_&&l.disabledAutonavPauseReason_.inputBoxFocus===!0);l&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.W.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.W.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.W.navigateToAutoplayWatchEndpoint_=function(l,D,U){var n=this.playlistComponent.data.currentIndex,y=this.getNumPlayableVideos_();l=="NORMAL"&&D=="autoplayVideo"&&n+1>=y&&U||!(l=this.getVideoEndpoint_(l,D))||(U=this.getTempData_(l,U),_.O9(this.hostElement,"yt-navigate",{endpoint:l,tempData:U}))};
_.W.getNumPlayableVideos_=function(){for(var l=0,D=_.B(this.playlistComponent.data.contents||[]),U=D.next();!U.done;U=D.next())U.value.playlistPanelVideoRenderer&&(l+=1);return l};
_.W.getVideoEndpoint_=function(l,D){if(this.autoplayData&&this.autoplayData.sets)for(var U=0,n=this.autoplayData.sets.length;U<n;U++){var y=this.autoplayData.sets[U];if(y.mode==l){if(y[D])return y[D];break}}else l=new _.rc("AutoplayData is undefined in playlist manager","Mode: "+l+" endpoint: "+D),_.II(l)};
_.W.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.W.onPlaylistYtNavigate_=function(l){if(l.detail.endpoint){l.stopPropagation();var D=l.detail;D.tempData=this.getTempData_(l.detail.endpoint);_.O9(this.hostElement,"yt-navigate",D)}};
_.W.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.W.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.W.playlistLoopStateEntityChanged_=function(l){var D=this,U,n,y;return _.P(function(A){if(A.nextAddress==1){if(!l)return A.return();U=l.state==="PLAYLIST_LOOP_STATE_ONE";return D.playerManager_?A.yield(D.playerManager_.getPlayerPromise(),3):A.jumpTo(2)}A.nextAddress!=2&&(n=A.yieldResult,n.setLoopVideo(U));y=l.state==="PLAYLIST_LOOP_STATE_ALL";D.playlistComponent&&(D.playlistComponent.loopOn=y);_.Kz(A)})};
_.W.getPlaylistLoopData_=function(l){var D,U;if(l=l==null?void 0:(D=l.playlistButtons)==null?void 0:(U=D.menuRenderer)==null?void 0:U.topLevelButtons)for(D=_.B(l),U=D.next();!U.done;U=D.next())if(U=U.value,U.playlistLoopButtonRenderer)return U.playlistLoopButtonRenderer};
_.W.getLoopStateCommand_=function(l){var D=this.getPlaylistData(),U;D=((U=this.getPlaylistLoopData_(D))==null?void 0:U.states)||[];var n;l=(n=_.M(D[l?1:2],_.tfr))==null?void 0:n.button;var y;return(y=_.M(l,_.yn))==null?void 0:y.command};
_.W.onPlayerLoopChange_=function(l){this.playlistLoopStateEntity_&&(l?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(l=this.getLoopStateCommand_(l))&&this.ytComponentBehavior.resolveCommand(l)};
_.W.onSleepTimerSettingsChanged_=function(l){this.canAutoAdvance_=l!=="End of video"};
WU.prototype.onPlaylistLoopStateEntityChanged=WU.prototype.onPlaylistLoopStateEntityChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],WU.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.b5.YtPlayerListenerBehavior),_.T("design:type",_.gZ)],WU.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],WU.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],WU.prototype,"loopStateEntityKey_",void 0);
_.E([_.K({selectorArgs:["loopStateEntityKey_"],selector:_.NO.playlistLoopStateEntitySelector}),_.T("design:type",Object)],WU.prototype,"playlistLoopStateEntity_",void 0);_.E([_.Pg("playlistLoopStateEntity_"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],WU.prototype,"onPlaylistLoopStateEntityChanged",null);_.E([_.x({disableElementRegistration:!0,is:"yt-playlist-manager"})],WU);_.r(WU,"yt-playlist-manager",void 0,{mode:_.Vj("kevlar_poly_si_batch_j081")?1:2});var tjW,Xv8=function(){if(tjW!==void 0)return tjW;var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return tjW=l};var BU=function(){var l=_.p.apply(this,arguments)||this;l.lastCallback=null;l.getAccountLinkPromises={};l.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);l.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return l};
_.Z(BU,_.p);_.W=BU.prototype;_.W.getLocation=function(){return window.location.href};
_.W.getCompletionUrl=function(){return _.NA(this.getLocation())};
_.W.containsRedirectState=function(l){return(l=_.q9(_.gr_(l)))?(new URLSearchParams(l)).get("redirect_state")!==null:!1};
_.W.createGalConfig=function(l,D){var U=new zR8;l=U=D?this.getPopupOrRedirectSetting(U,_.H3("LINK_API_KEY"),_.H3("LINK_API_KEY_REDIRECT"),l):feT(U,_.H3("LINK_API_KEY"));l.authUser=_.H3("SESSION_INDEX")||0;l.supportedFlows=new Set([4]);return l.build()};
_.W.getPopupOrRedirectSetting=function(l,D,U,n){this.isGalInteractionPopupMode(n)?(l.interactionMode=0,l=feT(l,D)):(l.interactionMode=1,D=this.getCompletionUrl(),l.completionUrl=D,l=feT(l,U));return l};
_.W.isGalInteractionPopupMode=function(l){if(this.redirectModeProviderAllowlist.has(l))switch(l){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.W.getStatusEntityKeyForProviderId=function(l){return _.n7(l+":all","accountLinkStatusEntity")};
_.W.findNestedPropValue=function(l,D){var U=!1,n=null;JSON.stringify(l,function(y,A){U||y!==D||(U=!0,n=A);return U?null:A});
return n};
_.W.findAccountLinkButtonViewModel=function(l,D){var U=null,n=!1;JSON.stringify(l,function(y,A){n||A.accountLinkStatusEntityKey!==D||A.accountLinkStatusSecondaryEntityKey||(n=!0,U=A);return n?null:A});
return U};
_.W.executeLinkingSuccessOrFailureCommands=function(l,D,U){var n=null,y;(D==null?0:(y=D.url)==null?0:y.includes("account_sharing"))?n=D==null?void 0:D.response:n=D==null?void 0:D.response;(D=this.findAccountLinkButtonViewModel(n,l))?(l=U?this.findNestedPropValue(D,"onSuccessCommand"):this.findNestedPropValue(D,"onFailureCommand"))?_.y0([l],this.hostElement):_.nt(Error("Bl")):_.nt(Error("Cl`"+l))};
_.W.handleInitializeRequest=function(l,D){var U=this,n=wrJ(this.createGalConfig(l,!0));this.containsRedirectState(this.getLocation())?prW(l,n.config,n.galService).then(function(y){var A=U.getStatusEntityKeyForProviderId(l);if(y.statusCode===1)D&&U.executeLinkingSuccessOrFailureCommands(A,D,!0),y=U.getLocation().indexOf("#"),y!==-1&&window.history.pushState(null,"",U.getLocation().substring(0,y));else return D&&U.executeLinkingSuccessOrFailureCommands(A,D,!1),Promise.reject(Error(y.statusMessage))}).catch(function(y){_.II(y);
_.Na("gamingAccountLinkStatusChanged",{serviceId:l,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(y)}):this.getAccountLinkPromises[l]=n.startLinkingSession({serviceId:l})};
_.W.handleAccountLinkCommand=function(l){_.M(l,zq5)&&this.handleLinkRequest(_.M(l,zq5))};
_.W.handleLinkRequest=function(l){var D=this,U=l.thirdPartyId;if(U)if(this.isGalInteractionPopupMode(U)){var n=function(){D.closeAndFire("ytd-gaming-account-link-setting-renderer",l.onFailureCommand)},y=function(){D.closeAndFire("ytd-gaming-account-link-setting-renderer",l.onSuccessCommand)};
this.lastCallback=y;this.getAccountLinkPromises[U].then(function(A){REr(A).then(function(C){C.statusCode===1?y():n()})}).catch(function(){n()})}else this.getAccountLinkPromises[U].then(function(A){REr(A).then(function(C){if(C.statusCode!==1)return Promise.reject(Error(C.statusMessage))})}).catch(function(A){_.II(A);
_.Na("gamingAccountLinkStatusChanged",{serviceId:U,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(A)})};
_.W.closeAndFire=function(l,D){_.Vh(this.hostElement,"yt-close-popup-action",[l]);D&&_.y0([D],this.hostElement)};
_.W.handleAccountUnlinkCommand=function(l){_.M(l,fFw)&&this.handleUnlinkRequest(_.M(l,fFw))};
_.W.handleUnlinkRequest=function(l){var D=this,U=l.thirdPartyId;if(U){var n=function(){D.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",l.onFailureCommand)},y=function(){D.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",l.onSuccessCommand)};
this.lastCallback=y;var A=wrJ(this.createGalConfig(U,!1));this.unlinkUserGal(A,U).then(function(C){C.statusCode===1?y():n()}).catch(function(){n()})}};
_.W.unlinkUserGal=function(l,D){return l.deleteLink(D)};
_.W.handleLogAccountLinkingEventCommand=function(l){_.q("enable_gel_log_commands")&&_.M(l,$kT)&&(l=_.M(l,$kT).event)&&_.Na("gamingAccountLinkStatusChanged",l)};
_.QP.Object.defineProperties(BU,{template:{configurable:!0,enumerable:!0,get:function(){return Xv8()}}});
_.E([_.m(_.kk.YtOpenPopupBehavior),_.T("design:type",Object)],BU.prototype,"ytOpenPopupBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],BU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-third-party-manager"})],BU);_.r(BU,"ytd-third-party-manager",function(){return Xv8()},{mode:_.Vj("kevlar_poly_si_batch_j081")?1:2});var SoJ,kDw=function(){if(SoJ!==void 0)return SoJ;var l=document.createElement("template");_.e(l,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return SoJ=l};var Cl=function(){var l=_.p.apply(this,arguments)||this;l.currentPage=void 0;l.renderLoadingStateJobId=0;l.updatePageDataJobId=0;l.pageDisposeJobsets=new WeakMap;l.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"};l.shouldApplyLockupToWatchTransition=_.q("web_thumbnail_to_watch_transition");l.shouldApplySlideTransition=_.e_("web_page_transition_type")==="slide"||_.q("enable_plj_landing_page");l.shouldApplyLearningJourneyTransition=_.q("enable_plj_landing_page");l.TEST_ONLY=void 0;return l};
_.Z(Cl,_.p);_.W=Cl.prototype;_.W.ready=function(){var l=_.Jc();l.addProvider({provide:_.sm,useValue:this});l.addProvider({provide:_.icH,useValue:this})};
_.W.created=function(){this.pagePool=new i9$;this.contextSwitcher=new unW};
_.W.attached=function(){_.O9(this.hostElement,"attached");var l=_.Jc().resolve(_.G8(_.GI));l&&(this.contextSwitcher.JSC$20252_networkService_=l);this.viewTransitionManager=_.Jc().resolve(_.NB)};
_.W.getPageOffset=function(l){return l.getScrollTop()};
_.W.setPageOffset=function(l,D){try{l.setScrollTop(D)}catch(U){}};
_.W.setPageOffsetForNavigation=function(l,D){_.O9(this.hostElement,"yt-navigate-set-page-offset",{page:l,offset:D===void 0?0:D})};
_.W.pauseActiveContext=function(){var l=this.contextSwitcher;l.activeContext_&&l.activeContext_.pause()};
_.W.getModuleNameForType=function(l){return l==="watch"?_.q("kevlar_watch_fixie")?"watchFixie":_.q("kevlar_watch_grid")?"watchGrid":"watchFlexy":l==="shorts"||l==="search"?l:"browse"};
_.W.attachPage=function(l){var D,U=!_.q("pc_is_attached_ks")&&(l==null?void 0:(D=l.polymerController)==null?void 0:D.isAttached);if(!l.isAttached&&!U)try{_.iJ(this.hostElement).appendChild(l)}catch(y){var n;_.II(new _.rc("Error attaching page element for component",{origin:(n=this.currentPage)==null?void 0:n.is,component:l.is}))}};
_.W.setActivePage=function(l,D){var U=this,n=!1,y=function(){var A=U.isOnWatch(),C=U.currentPage;if(l)if(l!==U.currentPage){C&&(C.hidden=!0,C.active=!1,C.removeAttribute("role"));U.currentPage=l;var h,b=D!=null?D:_.hu((h=U.data)==null?void 0:h.endpoint);C&&_.O9(U.hostElement,"yt-page-type-changed",{oldPageType:C.is,newPageType:l.is,newPageSubtype:b});_.fY().dispatch(_.V0({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:l.is}));_.fY().dispatch(_.V0({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:b||""}));
l.hidden=!1;U.attachPage(l);l.active=!0;l.setAttribute("role","main");C&&U.setPageOffsetForNavigation(l,0);_.q("kevlar_remove_page_dom_on_switch")&&!A&&C&&_.iJ(U.hostElement).removeChild(C)}else n=!0;else U.handleMissingDestinationPage(C)};
this.shouldRunBrowseTransition(this.currentPage,l)?xcT(this.viewTransitionManager,y):this.shouldRunLearningJourneyTransition(this.currentPage,l)?oKw(this.viewTransitionManager,y):y();return n};
_.W.handleMissingDestinationPage=function(l){if(this.isColdLoadForUnknownPage(l))_.II(new _.rc("Cold load for unknown page"));else{var D;l=new _.rc("Unable to set active page",l?l.is:"unknown origin",(D=this.data)==null?void 0:D.endpoint);_.EU(l)}};
_.W.isColdLoadForUnknownPage=function(l){return!l&&Zb(this.data)==="unknown"};
_.W.shouldRunBrowseTransition=function(l,D){return this.shouldApplySlideTransition&&(l==null?void 0:l.is)==="ytd-browse"&&(D==null?void 0:D.is)==="ytd-browse"&&l!==D};
_.W.shouldRunLearningJourneyTransition=function(l,D){return this.shouldApplyLearningJourneyTransition&&(l==null?void 0:l.is)==="ytd-browse"&&((D==null?void 0:D.is)==="ytd-watch-learning-journey"||(D==null?void 0:D.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.W.shouldRunWatchNextLoadedTransition=function(l,D){return this.viewTransitionManager&&l.is==="ytd-watch-flexy"&&D};
_.W.updatePageData=function(l){var D=this,U=this.data;this.updatePageDataJobId&&_.Tn.cancelJob(this.updatePageDataJobId);this.data=l;return new _.X0(function(n){var y=function(){l.filler?D.performDataUpdate(l,U):NIq(function(){D.performDataUpdate(l,U)});
var b=_.PN();_.bN(b,"cr")||b.processSignal("cr");n()},A=function(){l&&(l.page==="watch"||_.q("web_shorts_delay_shorts_page_update")&&l.page==="shorts")?D.updatePageDataJobId=_.Ji(_.Tn,y):y()};
if(_.q("kevlar_enable_mss_page_modules_client")&&l){var C=_.Jc().resolve(_.KE),h=D.getModuleNameForType(l.page);(C=c7H(C,[h]))?C.then(A):A()}else A()})};
_.W.isDownloadsPage=function(l){var D,U;return(l==null?void 0:(D=l.endpoint)==null?void 0:(U=D.browseEndpoint)==null?void 0:U.browseId)==="FEdownloads"};
_.W.setPlayerSyncInterval=function(l){var D;return _.P(function(U){if(U.nextAddress==1)return U.yield(_.Jc().resolve(_.Vl),2);D=U.yieldResult;D.setUpPositionSyncInterval(l);_.Kz(U)})};
_.W.performDataUpdate=function(l,D){_.q("kevlar_early_popup_close")||_.Vh(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var U=!l.filler;U&&(_.ae("lps"),_.q("config_age_report_killswitch")||lV5());var n=Zb(l),y,A=!1;if(_.q("kevlar_remove_page_dom_on_switch")){var C=D&&Zb(D);n===C&&(y=this.getCurrentPage())}y||(y=OX(this.pagePool,n));U&&TIJ(this.pagePool.elementPoolPopulator,n);U&&!this.renderLoadingStateJobId&&(A=this.setActivePage(y));if(y){C=n==="watch";var h=
n==="shorts",b=n==="learning_journey_watch";_.q("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(y);if(C||h||b)y.playerData=l.playerResponse;if(h){l.reelWatchSequenceResponse?y.reelWatchSequenceResponse=l.reelWatchSequenceResponse:y.cachedReelWatchSequenceResponse&&!y.reelWatchSequenceResponse&&(y.reelWatchSequenceResponse=y.cachedReelWatchSequenceResponse);l.reelWatchSequenceResponse&&(D==null?void 0:D.page)!=="shorts"&&(y.cachedReelWatchSequenceResponse=l.reelWatchSequenceResponse);
y.currentEndpoint=l.endpoint;var u;y.isPreviousPageShorts=!!(D==null?0:(u=D.endpoint)==null?0:u.reelWatchEndpoint)}u=this.isDownloadsPage(l);var Q=this.isDownloadsPage(D);u&&!Q?this.setPlayerSyncInterval(6E5):!u&&Q&&this.setPlayerSyncInterval();_.q("block_all_player_prefetch_requests")||this.preparePrefetchRequest(l,y,U,C,h,b);wPv(_.Jc().resolve(_.kq),D,l);if(_.q("enable_ai_companion")){var G;(G=_.Jc().resolve(_.G8(_.O3)))==null||_.dVJ(G,this.getPersistentPanelSurface(n))}_.Lu(_.Jc().resolve(_.vK));
_.q("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(y);U?(U=typeof y.loadPage,U==="function"?(y.pageContext=v4$(this.contextSwitcher,y,y.data!==l.response),U=function(){y.loadPage(l.response)},this.shouldApplySlideTransition&&y.is==="ytd-browse"&&A&&(n==="learning"||this.isDifferentBrowseId(l==null?void 0:l.endpoint,D==null?void 0:D.endpoint))?xcT(this.viewTransitionManager,U):this.shouldRunWatchNextLoadedTransition(y,A)?FmJ(this.viewTransitionManager,U):U()):_.Tj(new _.rc("b/38014653 ",
[n,
y.is,y.nodeName,U,y.isAttached,D&&Zb(D),this.hostElement.children.length])),_.ae("pdl")):(y.hidden=!0,l.response.filler=!0,y.data=l.response,this.attachPage(y));_.O9(this.hostElement,"yt-page-data-updated",{pageType:n})}_.oI(_.Tn,function(){_.q("logging_avoid_blocking_during_navigation")&&_.mhc().transition("none");var J=kcJ(),L=y;if(l){var R=Wev(l),a=B6J(l),S;a:{if(l.playerResponse){var d=l.playerResponse,c;if((S=d.auxiliaryUi)==null?0:(c=S.messageRenderers)==null?0:c.upsellDialogRenderer){S=d.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(l.response&&(S=l.response,(d=S.overlay)==null?0:d.upsellDialogRenderer)){S=S.overlay.upsellDialogRenderer;break a}S=void 0}var N;var z;c=(N=l.playerResponse)==null?void 0:(z=N.auxiliaryUi)==null?void 0:z.messageRenderers;N=(c==null?void 0:c.enforcementMessageViewModel)||(c==null?void 0:c.bkaEnforcementMessageViewModel);N=(N==null?void 0:N.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?N:void 0;var f;a:{if(l.response&&(z=l.response,(f=z.overlay)==null?0:f.commandWrapperPromoRenderer)){f=
z.overlay.commandWrapperPromoRenderer;break a}f=void 0}Snq(J,R,a,S,N,f,L)}})};
_.W.preparePrefetchRequest=function(l,D,U,n,y,A){var C,h,b,u,Q,G,J,L,R,a,S,d,c,N,z;return _.P(function(f){if(f.nextAddress==1)return!U||!(n||y||A)||_.q("kevlar_disable_background_prefetch")&&_.DJ(_.pLg)()===0?f.return():(C=_.Em(D))?f.yield(C.getPlayerPromise(),2):f.return();h=f.yieldResult;b=_.Jc().resolve(_.G8(_.GI));if(!b)return f.return();if(y)return u=_.sr(_.pd),lO8(u,(Q=l.endpoint)==null?void 0:Q.reelWatchEndpoint,D.reelWatchSequenceResponse,h,b),f.return();L=(G=l.response)==null?void 0:(J=G.responseContext)==
null?void 0:J.webResponseContextExtensionData;if(!L)return f.return();c=(R=l.response)==null?void 0:(a=R.contents)==null?void 0:(S=a.twoColumnWatchNextResults)==null?void 0:(d=S.autoplay)==null?void 0:d.autoplay;N=_.Jc().resolve(_.Cd);z=_.sr(_.pd);Dcv(z,L,h,b,N,c);_.Kz(f)})};
_.W.movePlayerToWatch=function(l){var D=this,U,n;return _.P(function(y){U=OX(D.pagePool,"watch");n=U.getPlayerContainer();l.appendTo(n);_.Kz(y)})};
_.W.movePlayerToShorts=function(l){var D=this,U,n,y;return _.P(function(A){U=OX(D.pagePool,"shorts");n=U.getPlayerContainer();(y=l)==null||y.appendTo(n,void 0,!0);_.Kz(A)})};
_.W.getPlayerFromWatch=function(){var l=OX(this.pagePool,"watch");return _.Em(l)};
_.W.getPlayerFromShorts=function(){var l=OX(this.pagePool,"shorts");return _.Em(l)};
_.W.startLoadingWatch=function(){var l=this,D=OX(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Tn.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.q("web_watch_transition_enable_start_loading_watch_callsite")?jpr(this.viewTransitionManager,function(){l.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(D,"watch");
if(_.q("enable_ai_companion")){var U;(U=_.Jc().resolve(_.G8(_.O3)))==null||_.dVJ(U,this.getPersistentPanelSurface("watch"))}};
_.W.startLoadingShorts=function(){var l=OX(this.pagePool,"shorts");this.setActivePage(l,"shorts")};
_.W.startLoadingLearningJourney=function(){var l=OX(this.pagePool,"learning_journey_watch");this.setActivePage(l,"learning_journey_watch")};
_.W.getCurrentPage=function(){return this.currentPage};
_.W.getDestinationPageType=function(){return this.destinationPageType};
_.W.getCurrentData=function(){return this.data};
_.W.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.W.isOnShorts=function(){var l;return((l=this.currentPage)==null?void 0:l.is)==="ytd-shorts"};
_.W.isWatchPage=function(l){return!!l&&(l.is==="ytd-watch-flexy"||l.is==="ytd-watch-fixie"||l.is==="ytd-watch-grid")};
_.W.preparePage=function(l,D){var U=this,n=function(){var C=U.pagePool.preparePage(l,U.currentPage,D);C&&U.attachPage(C)},y=function(C){_.HA(C,D);
_.II(C)};
if(_.q("kevlar_enable_mss_page_modules_client")){var A=this.getModuleNameForType(l);if(A=c7H(_.Jc().resolve(_.KE),[A])){A.then(n.bind(this)).catch(y.bind(this));return}}try{n()}catch(C){y(C)}};
_.W.lazyPrepareCriticalPages=function(l,D){l=_.hu(D)||l;_.q("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(l).then(this.maybePrepareWatchPage.bind(this,l)):this.maybePrepareWatchPage(l)};
_.W.maybePrepareWatchPage=function(l){l==="watch"||l==="learning_journey_watch"&&_.q("web_watch_learning_journey_disable_lazy_pages")||_.oI(_.Tn,this.preparePage.bind(this,"watch"))};
_.W.downloadPageModules=function(l){l=this.getModuleNameForType(l);var D=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);D.delete(l);var U=_.Jc().resolve(_.KE);U.JSC$18930_loadModules(l);return U.JSC$18930_loadModules.apply(U,_.zz(D))};
_.W.renderPageLoadingState=function(l,D){this.preparePage(l,D);var U=OX(this.pagePool,l);U.loadingData&&(U.loadingData.endpoint=D);U.loading=!0;this.setActivePage(U,l);l!=="watch"&&l!=="learning_journey_watch"||_.O9(this.hostElement,"yt-guide-close")};
_.W.prepareForNavigation=function(l,D){var U=this;if(this.currentPage&&this.data){var n=_.hu(D)||l;this.destinationPageType=n;Zb(this.data)==n&&_.O9(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((l==="watch"||l==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Tn.cancelJob(this.renderLoadingStateJobId);_.Jc().resolve(_.kq).deactivate(D);_.BI(_.Tn,function(){var A=U.viewTransitionManager,C=U.currentPage;
if(A.isLockupToWatchTransitionEnabled&&A.isLockupThumbnailRegistrationEnabled&&C)if(A.registeredLockupThumbnail)A.lockupThumbnailRegisteredFromWatchEndpoint&&_.II(new _.rc("Lockup thumbnail already registered from watch endpoint."));else{a:{var h=_.M(D,_.za);if(h==null?0:h.videoId){var b="yt-lockup-view-model ."+_.ITC(h.videoId)+" yt-thumbnail-view-model";C=C.querySelectorAll(b);if(C.length===1){h=C[0];break a}C.length>1?_.II(new _.rc("Multiple LockupViewModel thumbnails found for videoId: "+h.videoId+
". Selector: "+b)):_.q("web_thumbnail_to_watch_transition_debug")&&_.II(new _.rc("No LockupViewModel thumbnail found for videoId: "+h.videoId+". Selector: "+b))}h=void 0}h&&(A.registeredLockupThumbnail=h,A.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.Pd2(A,h))}});
var y=this.data;this.renderLoadingStateJobId=_.BI(_.Tn,function(){jpr(U.viewTransitionManager,function(){if(U.data!=y){var A=OX(U.pagePool,l);U.setActivePage(A)}else U.renderPageLoadingState(l,D);U.renderLoadingStateJobId=0})},150)}};
_.W.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var l=new _.Q6(1);this.currentPage.pageDisposeJobs.forEach(function(D){_.G9(l,D)});
this.pageDisposeJobsets.set(this.currentPage,l)}};
_.W.flushPageDisposeJobset=function(l){var D=this.pageDisposeJobsets.get(l);D&&(D.flushJobs(),this.pageDisposeJobsets.delete(l))};
_.W.onYtStopOldPlayer=function(l,D){D=D===void 0?!1:D;var U,n=_.md("kevlar_new_stop_old_player_logic_pages");if(_.q("kevlar_check_current_page_on_stop_old_player")&&(n.length===0||this.currentPage&&n.includes(this.currentPage.is)))if(this.data&&(U=Zb(this.data)),Zb(l)===U&&this.currentPage&&Zb(this.currentPage.data)!==U)var y=_.Em(this.currentPage);else U=Zb(this.data),y=OX(this.pagePool,U),y=_.Em(y);else this.data&&(U=Zb(this.data),y=OX(this.pagePool,U),y=_.Em(y));if(y){n=Zb(l);var A=OX(this.pagePool,
n);A=_.Em(A);if(y==A)D&&!_.q("kevlar_disable_preemptive_player_reset")&&y.resetForNewPlayback();else if(D=U==="watch"&&n!=="watch",!D||n==="shorts"||_.nek()&&!V0W(this.data,l))l=_.Jc().resolve(_.kq),D&&l.isMiniplayerActive()&&l.pipController.getWindow()||y.stop()}};
_.W.isDifferentBrowseId=function(l,D){l=_.M(l,_.Pk);D=_.M(D,_.Pk);return(l==null?void 0:l.browseId)!==(D==null?void 0:D.browseId)};
_.W.getPersistentPanelSurface=function(l){switch(l){case "watch":return"WATCH";default:return"APP"}};
_.QP.Object.defineProperties(Cl,{template:{configurable:!0,enumerable:!0,get:function(){return kDw()}}});
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Cl.prototype,"ytActionHandlerBehavior",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-page-manager"})],Cl);_.r(Cl,"ytd-page-manager",function(){return kDw()},{mode:_.Vj("kevlar_poly_si_batch_j081")?1:2});var dW8;var hG=function(){var l=_.p.apply(this,arguments)||this;l.useListItemStyles=_.q("web_list_item_style_for_menu_items");l.systemIcons=_.q("kevlar_system_icons");return l};
_.Z(hG,_.p);_.W=hG.prototype;_.W.ready=function(){this.hostElement.addEventListener("tap",_.CY(this,this.onEndpointTapExtra))};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.W.onFocus=function(){var l;(l=_.iJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||l.focus()};
_.W.onEndpointTapExtra=function(l){_.O9(this.hostElement,"iron-activate");var D=this.data.navigationEndpoint;D&&_.M(D,_.ea3)&&(l.stopPropagation(),_.DP(this.hostElement,[D],this.hostElement))};
_.W.computeIcon=function(l){return l&&l.iconType?_.UV(l.iconType):""};
_.W.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.W.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.W.forceUpdateStylesOnLegacyBrowsers=function(){_.q("kevlar_legacy_browsers")&&_.Wg(this.hostElement)};
hG.prototype.forceUpdateStylesOnLegacyBrowsers=hG.prototype.forceUpdateStylesOnLegacyBrowsers;hG.prototype.onFocus=hG.prototype.onFocus;_.E([_.m(_.LF),_.T("design:type",Object)],hG.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.tD8.YtConditionalRendererBehavior),_.T("design:type",Object)],hG.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.m(_.d9.YtEndpointBehavior),_.T("design:type",Object)],hG.prototype,"ytEndpointBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],hG.prototype,"data",void 0);_.E([_.K({computed:"computeIcon(data.icon)",value:""}),_.T("design:type",String)],hG.prototype,"icon",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],hG.prototype,"useIcons",void 0);_.E([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.T("design:type",Boolean)],hG.prototype,"hasSeparator",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],hG.prototype,"useListItemStyles",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],hG.prototype,"systemIcons",void 0);_.E([_.hj("focus"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hG.prototype,"onFocus",null);_.E([_.Pg("useIcons","hasSeparator"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],hG.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.r(hG,"ytd-menu-navigation-item-renderer",function(){if(dW8===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);dW8=l}l=dW8;return l},{mode:1});var KnP;var cw2=_.$B(_.C3("DOWNLOAD",{},"Download")),pvw=_.$B(_.C3("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),xWw=_.$B(_.C3("RETRY",{},"Retry")),jtw=_.$B(_.C3("PAUSE_DOWNLOADING",{},"Pause downloading")),Fn2=_.$B(_.C3("RESUME_DOWNLOAD",{},"Resume download")),PU=function(){var l=_.p.apply(this,arguments)||this;l.primaryText=cw2;l.primaryIconType="OFFLINE_DOWNLOAD";l.hasSecondaryContent=!1;l.hasSeparator=!1;l.transferState="TRANSFER_STATE_UNKNOWN";l.isVideoDeletedByUser=!1;l.isHidden=!1;l.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return l};
_.Z(PU,_.p);_.W=PU.prototype;_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.W.onFocus=function(){this.primaryEntry.focus()};
_.W.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.W.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.W.getRemoveAction=function(){return"ACTION_REMOVE"};
_.W.sendOfflineAction=function(l){var D=this.data.serviceEndpoint;if(D){var U=_.M(D,_.Cq);U&&l&&(U.action=l);this.ytComponentBehavior.resolveCommand(D)}};
_.W.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=cw2,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=cw2;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=xWw;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=pvw;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Fn2;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=pvw;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
jtw;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=pvw;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=pvw;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=cw2,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.W.showHideButton=function(){var l;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((l=this.playerStateEntity)==null?void 0:l.adsState)==="ADS_STATE_PLAYING"};
_.W.isSecondaryEntryHidden=function(l,D){return l?!0:!D};
_.W.computeHasSeparator=function(){var l;return!((l=this.data)==null||!l.hasSeparator)};
_.W.computePlayerStateEntityKey=function(l){return l};
PU.prototype.showHideButton=PU.prototype.showHideButton;PU.prototype.onTransferStateChange=PU.prototype.onTransferStateChange;PU.prototype.onFocus=PU.prototype.onFocus;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],PU.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],PU.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],PU.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],PU.prototype,"primaryText",void 0);_.E([_.K(),_.T("design:type",String)],PU.prototype,"primaryIconType",void 0);_.E([_.K(),_.T("design:type",String)],PU.prototype,"primaryAction",void 0);_.E([_.K(),_.T("design:type",Object)],PU.prototype,"secondaryText",void 0);_.E([_.K(),_.T("design:type",String)],PU.prototype,"secondaryIconType",void 0);
_.E([_.K(),_.T("design:type",String)],PU.prototype,"secondaryAction",void 0);_.E([_.K(),_.T("design:type",Object)],PU.prototype,"hasSecondaryContent",void 0);_.E([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.T("design:type",Object)],PU.prototype,"hasSeparator",void 0);_.E([_.K({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.T("design:type",String)],PU.prototype,"playerStateEntityKey",void 0);
_.E([_.K({selector:_.Um,selectorArgs:["playerStateEntityKey"]}),_.T("design:type",Object)],PU.prototype,"playerStateEntity",void 0);_.E([_.K({selector:_.du,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.T("design:type",String)],PU.prototype,"transferState",void 0);_.E([_.K({selector:_.iF3,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.T("design:type",Object)],PU.prototype,"isVideoDeletedByUser",void 0);
_.E([_.K(),_.T("design:type",Object)],PU.prototype,"isHidden",void 0);_.E([_.K({selector:_.EkC,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.T("design:type",Object)],PU.prototype,"offlineabilityState",void 0);_.E([_.gP("#primary-entry"),_.T("design:type",Object)],PU.prototype,"primaryEntry",void 0);_.E([_.hj("focus"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],PU.prototype,"onFocus",null);
_.E([_.GY("transferState","isVideoDeletedByUser"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],PU.prototype,"onTransferStateChange",null);_.E([_.GY("offlineabilityState","playerStateEntity"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],PU.prototype,"showHideButton",null);
_.r(PU,"ytd-menu-service-item-download-renderer",function(){if(KnP===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);KnP=l}l=KnP;return l},{mode:1});var owq;var bR=function(){var l=_.p.apply(this,arguments)||this;l.useIcons=!1;l.systemIcons=_.q("kevlar_system_icons");l.useListItemStyles=_.q("web_list_item_style_for_menu_items");return l};
_.Z(bR,_.p);_.W=bR.prototype;_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.W.onFocus=function(){var l;(l=_.iJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||l.focus()};
_.W.onTap=function(){_.iu(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var l=this.data.serviceEndpoint,D=this.data.command;if(l){var U,n=(U=this.data)==null?void 0:U.trackingParams;U=!!_.M(l,_.b$g);n&&U&&_.EB().dispatch(_.V0({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:n}}));this.ytComponentBehavior.resolveCommand(l)||_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}})}D&&(this.ytComponentBehavior.resolveCommand(D)||_.DP(this.hostElement,
[D],this.hostElement))};
_.W.computeIcon=function(l){return l&&l.iconType?_.UV(l.iconType):""};
_.W.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.W.computeHasSeparator=function(){var l;return!((l=this.data)==null||!l.hasSeparator)};
_.W.forceUpdateStylesOnLegacyBrowsers=function(){_.q("kevlar_legacy_browsers")&&_.Wg(this.hostElement)};
_.W.computeIsSelected=function(){var l;return!((l=this.data)==null||!l.isSelected)};
bR.prototype.forceUpdateStylesOnLegacyBrowsers=bR.prototype.forceUpdateStylesOnLegacyBrowsers;bR.prototype.onTap=bR.prototype.onTap;bR.prototype.onFocus=bR.prototype.onFocus;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],bR.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],bR.prototype,"ytComponentBehavior",void 0);
_.E([_.m(_.tD8.YtConditionalRendererBehavior),_.T("design:type",Object)],bR.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],bR.prototype,"data",void 0);_.E([_.K({computed:"computeIcon(data.icon)",value:""}),_.T("design:type",String)],bR.prototype,"icon",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],bR.prototype,"useIcons",void 0);
_.E([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.T("design:type",Boolean)],bR.prototype,"hasSeparator",void 0);_.E([_.K({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.T("design:type",Boolean)],bR.prototype,"isSelected",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],bR.prototype,"systemIcons",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],bR.prototype,"useListItemStyles",void 0);
_.E([_.hj("focus"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bR.prototype,"onFocus",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],bR.prototype,"onTap",null);_.E([_.Pg("useIcons","hasSeparator"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bR.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.r(bR,"ytd-menu-service-item-renderer",function(){if(owq===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);owq=l}l=owq;return l},{mode:2});var wvJ;var g5=function(){return _.p.apply(this,arguments)||this};
_.Z(g5,_.p);_.W=g5.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.onDataChanged=function(){var l=this;_.u6(this,function(){l.postbox.openDialog();l.focus();_.O9(l.hostElement,"yt-refit")})};
_.W.focus=function(){this.postbox.focus()};
_.W.closePopup=function(){_.Vh(this.hostElement,"yt-close-popup-action")};
_.W.onYtCommentboxDismiss=function(){this.closePopup()};
g5.prototype.onYtCommentboxDismiss=g5.prototype.onYtCommentboxDismiss;g5.prototype.onDataChanged=g5.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],g5.prototype,"data",void 0);_.E([_.K({value:function(){return _.C3("SBOX_INAPPROPRIATE_CANCEL")}}),
_.T("design:type",String)],g5.prototype,"closeButtonAriaLabel",void 0);_.E([_.gP("#postbox"),_.T("design:type",Object)],g5.prototype,"postbox",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],g5.prototype,"onDataChanged",null);_.E([_.hj("yt-commentbox-dismiss"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],g5.prototype,"onYtCommentboxDismiss",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],g5);
_.r(g5,"ytd-backstage-post-dialog-popup-renderer",function(){if(wvJ!==void 0)return wvJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return wvJ=l},{mode:1});var rw$;var zPW;var far=function(){return _.p.apply(this,arguments)||this};
_.Z(far,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],far.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],far.prototype,"data",void 0);_.E([_.S0({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],far);
_.r(far,"yt-sender-id-section-renderer",function(){if(zPW===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);zPW=l}l=
zPW;return l},{mode:1});var $Wv;var N82;var uR=function(){return _.p.apply(this,arguments)||this};
_.Z(uR,_.p);uR.prototype.closePopup=function(){_.Vh(this.hostElement,"yt-close-popup-action")};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],uR.prototype,"data",void 0);_.E([_.S0({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],uR);
_.r(uR,"yt-community-post-section-renderer",function(){if(N82===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;$Wv===void 0&&($Wv=document.createElement("template"));var n=$Wv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);N82=l}l=N82;return l},{mode:2});var st$;var EwT;var T8J;var Ia8;var H9$;var Yo$;var O9q=function(){return _.p.apply(this,arguments)||this};
_.Z(O9q,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],O9q.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],O9q.prototype,"data",void 0);_.E([_.S0({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],O9q);
_.r(O9q,"yt-share-start-time-with-context-renderer",function(){if(Yo$===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;H9$===void 0&&(H9$=document.createElement("template"));var n=H9$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Yo$=l}l=Yo$;return l},{mode:2});var vU=function(){return _.p.apply(this,arguments)||this};
_.Z(vU,_.p);vU.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vU.prototype,"data",void 0);_.E([_.S0({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],vU);
_.r(vU,"yt-share-panel-title-v15-renderer",function(){if(Ia8===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;T8J===void 0&&(T8J=document.createElement("template"));var n=T8J;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Ia8=l}l=Ia8;return l},{mode:2});var Q3=function(){return _.p.apply(this,arguments)||this};
_.Z(Q3,_.p);Q3.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Q3.prototype,"data",void 0);_.E([_.S0({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Q3);
_.r(Q3,"yt-share-panel-header-renderer",function(){if(EwT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;st$===void 0&&(st$=document.createElement("template"));var n=st$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);EwT=l}l=EwT;return l},{mode:2});var VjP;var if$;var GF=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-open-popup-action":"onOpen"};return l};
_.Z(GF,_.p);_.W=GF.prototype;_.W.attached=function(){this.onOpen()};
_.W.updateTimeSecs=function(l){this.currentTimeSecs=l};
_.W.computeTimeString=function(l){l=l.toString();var D=Math.floor(Number(l)/3600),U=Math.floor(Number(l)%3600%60);return(D>0?D+":":"")+_.Wl(Math.floor(Number(l)%3600/60),D>0?2:1)+":"+_.Wl(U,2)};
_.W.computeTimeStringA11y=function(l){return _.W43({seconds:l})};
_.W.getTimeParam=function(){return tYr(this.timeString)};
_.W.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var l={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},D;_.jm(_.he(),(D=this.data)==null?void 0:D.trackingParams,l,7)};
_.W.onChangeStartAtTimestamp=function(){for(var l=this.startAtTimestamp.value.split(":"),D=0,U=1,n=l.length-1;n>=0;n--)D+=Number(l[n])*U,U*=60;this.updateTimeSecs(D);this.setTimestamp()};
_.W.onOpen=function(){var l=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var D=_.T4();D?D.getPlayerPromise().then(function(U){U=U.getCurrentTime();l.updateTimeSecs(U)}):xhT()&&this.updateTimeSecs(xhT())};
_.W.setTimestamp=function(){var l=Math.floor(this.currentTimeSecs);_.Vh(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!l,timestamp:l||""}])};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],GF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],GF.prototype,"data",void 0);_.E([_.K({value:!1,notify:!0}),_.T("design:type",Boolean)],GF.prototype,"isStartAtChecked",void 0);_.E([_.K(),_.T("design:type",Number)],GF.prototype,"currentTimeSecs",void 0);
_.E([_.K({computed:"computeTimeString(currentTimeSecs)"}),_.T("design:type",String)],GF.prototype,"timeString",void 0);_.E([_.K({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.T("design:type",String)],GF.prototype,"timeStringA11y",void 0);_.E([_.gP("#start-at-timestamp"),_.T("design:type",Object)],GF.prototype,"startAtTimestamp",void 0);_.E([_.S0({is:"yt-start-at-renderer",disableElementRegistration:!0})],GF);
_.r(GF,"yt-start-at-renderer",function(){if(if$===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;VjP===void 0&&(VjP=document.createElement("template"));var n=VjP;U.call(D,n.content.cloneNode(!0),l.content.firstChild);if$=l}l=if$;return l},{mode:2});var ldT;var DIv;var UI2={};UI2.YtBindingExpressionsBehavior={identity:_.x9,msg:function(l,D){D=D===void 0?{}:D;return _.C3(l,D,l)},
msgPlural:function(l,D){return _.hJ(l,D)},
getMusicIconFromType:function(l){return _.UV(l)}};var nE5;var yT8;var AT2;var Wq$=document.head,Bn8=Wq$.appendChild,CAT;if(AT2===void 0){var hu5=document.createElement("template");_.e(hu5,'\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>');AT2=hu5}CAT=AT2;Bn8.call(Wq$,CAT.content);var JG=function(){var l=_.p.apply(this,arguments)||this;l.screenLayer=7;return l};
_.Z(JG,_.p);JG.prototype.getScreenLayer=function(){return this.screenLayer};
JG.prototype.onTap=function(l){l&&l.detail&&(l.detail.x||l.detail.y)&&_.iJ(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.lu(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(l=this.getScreenLayer(),_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:l}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.QP.Object.defineProperties(JG.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()}}});
JG.prototype.onTap=JG.prototype.onTap;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],JG.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],JG.prototype,"data",void 0);_.E([_.t("data.title"),_.T("design:type",Object),_.T("design:paramtypes",[])],JG.prototype,"title",null);
_.E([_.t("data.serviceName"),_.T("design:type",String),_.T("design:paramtypes",[])],JG.prototype,"icon",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],JG.prototype,"onTap",null);_.E([_.S0({is:"yt-share-target-renderer",disableElementRegistration:!0})],JG);
_.r(JG,"yt-share-target-renderer",function(){if(yT8===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;nE5===void 0&&(nE5=document.createElement("template"));var n=nE5;U.call(D,n.content.cloneNode(!0),l.content.firstChild);yT8=l}l=yT8;return l},{mode:2});var PA8;var bf$;var Ll=function(){var l=_.p.apply(this,arguments)||this;l.SHARE_TARGET_WIDTH=70;l.SHARE_TARGET_MARGIN_RIGHT=8;l.PAGE_SCROLL_SPEED=9;l.actionMap={"yt-share-panel-reset-action":"onReset_"};return l};
_.Z(Ll,_.p);_.W=Ll.prototype;_.W.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.W.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.iJ(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.iJ(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.W.onReset_=function(){if(_.iJ(this.hostElement).querySelector("#list")){var l=_.iJ(this.hostElement).querySelector("#list");var D=_.iJ(this.hostElement).querySelector("#list");var U=D.offsetLeft,n=D.offsetParent;n||_.w7y(D)!="fixed"||(n=_.$m(D).documentElement);if(n){if(_.lB&&!_.Uy(58)){var y=_.Tev(n);U+=y.left}else Number(_.CH8)>=8&&!(Number(_.CH8)>=9)&&(y=_.Tev(n),U-=y.left);D=_.sBH(n)?n.clientWidth-(U+D.offsetWidth):U}else D=U;Uf2(l,D);this.updateScrollButtons_()}};
_.W.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.W.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.W.onScrollWheel_=function(l){l.stopPropagation();l.preventDefault();var D=DfJ(_.iJ(this.hostElement).querySelector("#list"));l=Math.abs(l.deltaX)>Math.abs(l.deltaY)?l.deltaX:l.deltaY;Uf2(_.iJ(this.hostElement).querySelector("#list"),D+l);this.updateScrollButtons_()};
_.W.smoothScrollByOnePage_=function(l){var D=_.iJ(this.hostElement).querySelector("#list"),U=(Math.floor(D.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,n=DfJ(D),y=U*(l?1:-1),A=this.PAGE_SCROLL_SPEED,C=this.updateScrollButtons_.bind(this),h=0,b;(function Q(){h+=A;b=h/U*2;Uf2(D,n+y*(b<1?b*b:-b*b+4*b-2));h<U?window.requestAnimationFrame(Q):C()})()};
_.W.updateScrollButtons_=function(){var l=DfJ(_.iJ(this.hostElement).querySelector("#list")),D=_.iJ(this.hostElement).querySelector("#list").scrollWidth-_.iJ(this.hostElement).querySelector("#list").clientWidth;_.iJ(this.hostElement).querySelector("#scroll-button-back").hidden=l<=0;_.iJ(this.hostElement).querySelector("#scroll-button-forward").hidden=l>=D};
Ll.prototype.onScrollWheel_=Ll.prototype.onScrollWheel_;Ll.prototype.onDataChanged_=Ll.prototype.onDataChanged_;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ll.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Ll.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(UI2.YtBindingExpressionsBehavior),_.T("design:type",Object)],Ll.prototype,"ytBindingExpressionsBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ll.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ll.prototype,"onDataChanged_",null);_.E([_.hj("wheel"),_.T("design:type",Function),_.T("design:paramtypes",[WheelEvent]),_.T("design:returntype")],Ll.prototype,"onScrollWheel_",null);
_.E([_.S0({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Ll);
_.r(Ll,"yt-third-party-share-target-section-renderer",function(){if(bf$===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;PA8===void 0&&(PA8=document.createElement("template"));var n=PA8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);bf$=l}l=bf$;return l},{mode:2});var qy=function(){return _.p.apply(this,arguments)||this};
_.Z(qy,_.p);qy.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],qy.prototype,"data",void 0);_.E([_.S0({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],qy);
_.r(qy,"yt-third-party-network-section-renderer",function(){if(DIv===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;ldT===void 0&&(ldT=document.createElement("template"));var n=ldT;U.call(D,n.content.cloneNode(!0),l.content.firstChild);DIv=l}l=DIv;return l},{mode:2});_.Tt(_.w(function(l){return _.g("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.g("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.g(_.uI,{data:function(){return l.data().firstPartyItems}},{listItemViewModel:_.Bv})))},"lj"),"first-party-network-section-view-model",{props:{data:_.C$}});var gE5=(0,_.KgH)(_.w_.share,{parentClickTrackingParamsSelector:function(l){return l.parentClickTrackingParams}});var uSP=_.wL(["data:image/svg+xml;charset=UTF-8;base64,",""]),My=function(){var l=_.p.apply(this,arguments)||this;l.screenLayer=7;l.qrCodeEnabled=_.q("web_enable_sharing_qr_code");l.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return l};
_.Z(My,_.p);_.W=My.prototype;_.W.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.W.attached=function(){this.JSC$20493_scroller&&(this.JSC$20493_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20493_scroller.attached&&typeof this.JSC$20493_scroller.attached==="function"&&this.JSC$20493_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.W.onDataChanged=function(){var l=this,D;(D=this.data)!=null&&D.contents&&(this.hostElement.setAttribute("links-only","true"),_.yj(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.u6(this,function(){_.O9(l.hostElement,"yt-refit");l.focusSharePanelHeader()}))};
_.W.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.W.handleSetTimestamp=function(l){var D=this.shortUrl();l.isSet&&(D=_.sF(D,"t",l.timestamp));this.maybeRenderQrCode(D)};
_.W.shortUrl=function(){var l,D=(l=this.data)==null?void 0:l.contents;if(D)for(l=0;l<D.length;l++){var U=void 0,n=void 0;if((U=D[l])==null?0:(n=U.thirdPartyNetworkSection)==null?0:n.copyLinkContainer){var y=n=U=void 0;return(y=_.M((U=D[l])==null?void 0:(n=U.thirdPartyNetworkSection)==null?void 0:n.copyLinkContainer,ZG2))==null?void 0:y.shortUrl}}};
_.W.maybeRenderQrCode=function(l){var D=this,U,n,y,A,C,h,b,u,Q;return _.P(function(G){if(G.nextAddress==1){U=_.iJ(D.hostElement).querySelector("#qr-code");if(!D.qrCodeEnabled||!l)return U&&(U.style.display="none"),G.return();n=_.olc(_.Jc().resolve(_.ne),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});y=document.createElement("div");return typeof n==="function"?(n(y),G.jumpTo(2)):G.yield(n,3)}G.nextAddress!=2&&(A=G.yieldResult,A(y));b=(C=y)==null?void 0:(h=C.firstChild)==null?void 0:h.firstChild;
u=document.createElement("img");Q=_.BEN(uSP,btoa(b.outerHTML));u.onload=function(){var J={canvas:U,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:u},L=new yBq;PqJ(L,l);b4P(L,!1,gXW(L));var R=L.modules,a=Object.assign({},WP$,J);R=structuredClone(R);J=R.length;var S,d=(S=a.canvas)!=null?S:document.createElement("canvas");S=a.cellSize;L=a.logo;var c,N=(c=a.logoSize)!=null?c:Math.floor(J/4);J%2!==N%2&&N++;var z=a.logoPadding,f=a.backgroundColor;c=J*S;var I=
a.width,iG=0;I&&(iG=a.padding,iG=Math.ceil(iG*c/(I-iG*2)),d.style.width=I+"px",d.style.height=I+"px");d.width!==c+iG*2&&(d.width=c+iG*2);d.height!==c+iG*2&&(d.height=c+iG*2);c=d.getContext("2d");a.autoClear&&c.clearRect(0,0,d.width,d.height);c.fillStyle=f;c.beginPath();c.roundRect(0,0,d.width,d.height,a.borderRadius);c.fill();c.save();c.translate(iG,iG);if(L)for(d=Math.floor(J-N)/2-z,z=Math.floor(J+N)/2+z,f=d;f<z;f++)for(I=d;I<z;I++)R[f][I]=!1;for(d=0;d<J;d++)for(z=0;z<J;z++)(d<7&&z<7||d<7&&z>=J-
7||d>=J-7&&z<7)&&(R[d][z]=!1);var CC;d=(CC=a.markerColor)!=null?CC:a.color;vXq(c,0,0,S,d);vXq(c,S*(J-7),0,S,d);vXq(c,0,S*(J-7),S,d);switch(a.cellStyle){case 0:CC=R;R=CC.length;d=a.cellSize;c.beginPath();for(z=0;z<R;z++)for(f=0;f<R;f++)CC[z][f]&&c.rect(z*d,f*d,d,d);c.fillStyle=a.color;c.fill();break;case 1:CC=R;R=CC.length;d=a.cellSize;z=d*a.relativeCircleSize;c.fillStyle=a.color;c.beginPath();for(a=0;a<R;a++)for(f=0;f<R;f++)CC[a][f]&&(c.beginPath(),c.ellipse((a+.5)*d,(f+.5)*d,z/2,z/2,0,0,2*Math.PI),
c.fill());c.fill();break;case 2:CC=R;R=CC.length;d=a.cellSize;c.fillStyle=a.color;a=[[1,1],[-1,1],[-1,-1],[1,-1]];c.beginPath();for(z=0;z<R;z++)for(f=0;f<R;f++)if(CC[z][f])c.roundRect(z*d,f*d,d,d,d/2),z+1<R&&CC[z+1][f]&&c.rect(z*d+d/2,f*d,d,d),f+1<R&&CC[z][f+1]&&c.rect(z*d,f*d+d/2,d,d);else{I=z*d+d/2;iG=f*d+d/2;for(var vo=0;vo<4;vo++){var td=_.B(a[vo]),GN=td.next().value;td=td.next().value;z+GN>=0&&z+GN<R&&f+td>=0&&f+td<R&&CC[z+GN][f]&&CC[z][f+td]&&CC[z+GN][f+td]&&(GN=vo*Math.PI/2,td=d/2,c.moveTo(I+
td*Math.cos(GN),iG+td*Math.sin(GN)),c.arc(I,iG,d/2,GN,GN+Math.PI/2,!1),c.lineTo(I+td*(Math.cos(GN)-Math.sin(GN)),iG+td*(Math.cos(GN)+Math.sin(GN))),c.lineTo(I+td*Math.cos(GN),iG+td*Math.sin(GN)))}}c.fill()}L&&c.drawImage(L,(J-N)*S/2,(J-N)*S/2,N*S,N*S);c.restore();U.style.removeProperty("display")};
u.src=_.ol(Q);_.Kz(G)})};
_.W.hasCommunityPostRenderer=function(){var l,D,U,n;return!!((l=this.data)==null?0:(D=l.header)==null?0:(U=D.sharePanelHeaderRenderer)==null?0:(n=U.communityPost)==null?0:n.communityPostSectionRenderer)};
_.W.onTapClose=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.W.getScreenLayer=function(){return this.screenLayer};
_.W.logSharePanelPage=function(){if(!_.q("enable_share_panel_navigation_logging_fix_on_web")){var l;if((l=this.data)!=null&&l.trackingParams){l=this.data.trackingParams;var D=this.parentClickTrackingParams;D=D?_.v9(D):void 0;var U=_.he();_.KM(U,21760,D,{layer:7,parentLayer:0});U.graftServerVe(l,void 0,7);_.EB().dispatch(_.V0({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
My.prototype.onDataChanged=My.prototype.onDataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],My.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],My.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],My.prototype,"data",void 0);_.E([_.K({value:_.C3("SBOX_INAPPROPRIATE_CANCEL")}),_.T("design:type",String)],My.prototype,"closeButtonAriaLabel",void 0);_.E([_.gP("yt-share-panel-header-renderer"),_.T("design:type",HTMLElement)],My.prototype,"header",void 0);_.E([_.K({selector:gE5.parentClickTrackingParamsSelector}),_.T("design:type",String)],My.prototype,"parentClickTrackingParams",void 0);_.E([_.K(),_.T("design:type",Object)],My.prototype,"qrCodeEnabled",void 0);
_.E([_.gP("#scroller"),_.T("design:type",Object)],My.prototype,"JSC$20493_scroller",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],My.prototype,"onDataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],My);
_.r(My,"ytd-unified-share-panel-renderer",function(){if(rw$!==void 0)return rw$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return rw$=l},{mode:1});var vEJ;var Ry=function(){var l=_.p.apply(this,arguments)||this;l.modernModal=!0;return l};
_.Z(Ry,_.p);Ry.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Ry.prototype.computeShouldHideOldButtons=function(){var l;return!((l=this.data)==null?0:l.button)};
_.QP.Object.defineProperties(Ry.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var l,D;return(l=this.data)==null?void 0:(D=l.button)==null?void 0:D.buttonRenderer}}});
_.E([_.K(),_.T("design:type",Object)],Ry.prototype,"data",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],Ry.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Ry.prototype,"modernModal",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ry.prototype,"buttonRendererData",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Ry);
_.r(Ry,"ytd-modal-with-title-and-button-renderer",function(){if(vEJ!==void 0)return vEJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vEJ=l},{mode:1});var QK$;var Zg=function(){return _.p.apply(this,arguments)||this};
_.Z(Zg,_.p);Zg.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("page-changed",this.page))};
Zg.prototype.pageChangedForBinding=Zg.prototype.pageChangedForBinding;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Zg.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],Zg.prototype,"page",void 0);_.E([_.Pg("page"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Zg.prototype,"pageChangedForBinding",null);
_.E([_.x({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Zg);
_.r(Zg,"ytd-account-item-section-header-renderer",function(){if(QK$!==void 0)return QK$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return QK$=l},{mode:1});var GG$;var eH=function(){return _.p.apply(this,arguments)||this};
_.Z(eH,_.p);eH.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"}}}};
eH.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.vf),_.T("design:type",Object)],eH.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],eH.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!1}),_.T("design:type",Function)],eH.prototype,"onAccountItemTap",void 0);
_.E([_.x({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],eH);
_.r(eH,"ytd-account-item-section-renderer",function(){if(GG$!==void 0)return GG$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return GG$=l},{mode:1});var JT$;var Lq$;var qN2=function(){return _.p.apply(this,arguments)||this};
_.Z(qN2,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qN2.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],qN2.prototype,"data",void 0);_.E([_.x({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],qN2);
_.r(qN2,"ytd-accounts-dialog-header-renderer",function(){if(Lq$!==void 0)return Lq$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Lq$=l},{mode:1});var MI$;var mY=function(){return _.p.apply(this,arguments)||this};
_.Z(mY,_.p);mY.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],mY.prototype,"data",void 0);_.E([_.x({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],mY);
_.r(mY,"ytd-google-account-header-renderer",function(){if(MI$!==void 0)return MI$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return MI$=l},{mode:1});var ay=function(){return _.p.apply(this,arguments)||this};
_.Z(ay,_.p);ay.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"}}}};
ay.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("page-changed",this.page))};
ay.prototype.pageChangedForBinding=ay.prototype.pageChangedForBinding;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ay.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],ay.prototype,"page",void 0);
_.E([_.Pg("page"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ay.prototype,"pageChangedForBinding",null);_.E([_.x({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],ay);
_.Ol()(ay,"ytd-account-section-list-renderer",function(){if(JT$===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);JT$=l}l=JT$;return l},{allowedProps:["data"],
mode:1});var RuP;var tG=function(){var l=_.p.apply(this,arguments)||this;l.enableHandlesAccountMenuSwitcher=_.q("enable_handles_account_menu_switcher");return l};
_.Z(tG,_.p);tG.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
tG.prototype.dataChanged=tG.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],tG.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],tG.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.E([_.gP("#avatar"),_.T("design:type",Object)],tG.prototype,"avatar",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tG.prototype,"dataChanged",null);_.E([_.x({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],tG);
_.Ol()(tG,"ytd-active-account-header-renderer",function(){if(RuP===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);RuP=l}l=RuP;return l},{allowedProps:["data"],
mode:1});var Zf5;var eu8;var XW=function(){return _.p.apply(this,arguments)||this};
_.Z(XW,_.p);XW.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
XW.prototype.onBackTap=function(){_.O9(this.hostElement,"yt-menu-back-tapped")};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],XW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],XW.prototype,"data",void 0);_.E([_.x({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],XW);
_.Ol()(XW,"ytd-simple-menu-header-renderer",function(){if(eu8===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);eu8=l}l=eu8;return l},{allowedProps:["data"],
mode:2});var mIT;var adv=function(){return _.p.apply(this,arguments)||this};
_.Z(adv,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],adv.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],adv.prototype,"data",void 0);_.E([_.x({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],adv);
_.r(adv,"ytd-comment-video-thumbnail-header-renderer",function(){if(mIT!==void 0)return mIT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return mIT=l},{mode:1});var tIP;var Xir=function(){return _.p.apply(this,arguments)||this};
_.Z(Xir,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Xir.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Xir.prototype,"data",void 0);_.E([_.x({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Xir);
_.r(Xir,"ytd-abuse-type-selector-renderer",function(){if(tIP!==void 0)return tIP;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return tIP=l},{mode:1});var SN$;var kGJ=(0,_.KgH)(_.w_.reportChannelAbuse,{isVideoIdSelectedSelector:function(l,D){return D in l.selectedVideoIds},
additionalContextSelector:function(l){return l.additionalContext},
impersonatedChannelUrlSelector:function(l){return l.impersonatedChannelUrl},
reportChannelAbuseSelector:function(l){return l}});var SH=function(){return _.p.apply(this,arguments)||this};
_.Z(SH,_.p);SH.prototype.attached=function(){var l=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){l.additionalContextInput.focusTextInput()})};
SH.prototype.handleAdditionalContextChanged=function(){var l=this;_.Fs(this,"ytd-report-channel-additional-context-update",function(){l.ytdReduxBehavior.dispatch(_.V0({type:"ADDITIONAL_CONTEXT_UPDATED",payload:l.additionalContext}))},300)};
SH.prototype.updateAdditionalContextFromBinding=function(l){this.additionalContext=l.detail.value};
SH.prototype.handleAdditionalContextChanged=SH.prototype.handleAdditionalContextChanged;_.E([_.m(_.l5),_.T("design:type",Object)],SH.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",String)],SH.prototype,"additionalContext",void 0);_.E([_.K({selector:kGJ.additionalContextSelector}),_.T("design:type",String)],SH.prototype,"additionalContextRedux",void 0);_.E([_.K(),_.T("design:type",Object)],SH.prototype,"data",void 0);
_.E([_.gP("yt-text-input-form-field-renderer"),_.T("design:type",Object)],SH.prototype,"additionalContextInput",void 0);_.E([_.Pg("additionalContext"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SH.prototype,"handleAdditionalContextChanged",null);_.E([_.x({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],SH);
_.r(SH,"ytd-report-channel-modal-additional-context-renderer",function(){if(SN$!==void 0)return SN$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return SN$=l},{mode:1});var dI$;var kJ=function(){var l=_.p.apply(this,arguments)||this;l.nextButtonDisabled=null;l.submitEndpoint=null;l.navigationEndpoint=null;l.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return l};
_.Z(kJ,_.p);_.W=kJ.prototype;_.W.computeNextButtonData=function(l,D,U){var n={};D&&(n.navigationEndpoint=D);U&&(n.serviceEndpoint=U);l&&l.buttonRenderer&&_.we.extend(n,l.buttonRenderer);return n};
_.W.handleReportChannelModalDisableNextButtonAction=function(l){this.setNextButtonIsDisabled(l)};
_.W.handleReportFormEndpointUpdateAction=function(l){this.setNextButtonIsDisabled(!!l.disableSubmitButton);this.resetEndpointData();l.submitEndpoint?this.submitEndpoint=l.submitEndpoint:l.submitNavigationEndpoint&&(this.navigationEndpoint=l.submitNavigationEndpoint)};
_.W.handleSignalActionSubmitForm=function(){var l,D=Object.keys(((l=this.reportChannelAbuseForm)==null?void 0:l.selectedVideoIds)||{}),U;l=((U=this.reportChannelAbuseForm)==null?void 0:U.additionalContext)||"";var n;U=((n=this.reportChannelAbuseForm)==null?void 0:n.impersonatedChannelUrl)||"";var y;if((y=this.data)==null?0:y.submitEndpoint){D={impersonated_channel_url:U,text:l,video_ids:D};var A;_.Jc().resolve(_.qK).resolveCommand((A=this.data)==null?void 0:A.submitEndpoint,{form:Object.assign({},
D,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.W.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.W.onYtServiceRequestError=function(l){this.setNextButtonIsDisabled(!1);_.F7(this.hostElement,l.detail.error.message)};
_.W.setNextButtonIsDisabled=function(l){this.set("data.nextButton.buttonRenderer.isDisabled",l)};
_.W.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
kJ.prototype.onYtServiceRequestError=kJ.prototype.onYtServiceRequestError;kJ.prototype.onYtServiceRequestCompleted=kJ.prototype.onYtServiceRequestCompleted;_.E([_.K(),_.T("design:type",Object)],kJ.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],kJ.prototype,"nextButtonDisabled",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],kJ.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],kJ.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],kJ.prototype,"submitEndpoint",void 0);_.E([_.K(),_.T("design:type",Object)],kJ.prototype,"navigationEndpoint",void 0);_.E([_.K({selector:kGJ.reportChannelAbuseSelector}),_.T("design:type",Object)],kJ.prototype,"reportChannelAbuseForm",void 0);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],kJ.prototype,"onYtServiceRequestCompleted",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],kJ.prototype,"onYtServiceRequestError",null);_.E([_.x({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],kJ);
_.r(kJ,"ytd-report-channel-modal-footer-renderer",function(){if(dI$!==void 0)return dI$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return dI$=l},{mode:1});var KqH;var d5=function(){var l=_.p.apply(this,arguments)||this;l.boundOnTapDismissButton=function(){l.closePopup()};
return l};
_.Z(d5,_.p);d5.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
d5.prototype.handleDataChanged=function(){_.CB(this.hostElement)};
d5.prototype.closePopup=function(){_.Vh(this.hostElement,"yt-close-popup-action")};
d5.prototype.handleDataChanged=d5.prototype.handleDataChanged;_.E([_.K(),_.T("design:type",Object)],d5.prototype,"boundOnTapDismissButton",void 0);_.E([_.K(),_.T("design:type",Object)],d5.prototype,"data",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],d5.prototype,"handleDataChanged",null);_.E([_.x({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],d5);
_.r(d5,"ytd-report-channel-modal-header-renderer",function(){if(KqH!==void 0)return KqH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return KqH=l},{mode:1});var cT8;var Kl=function(){var l=_.p.apply(this,arguments)||this;l.autoValidate=!1;l.invalid=!1;l.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return l};
_.Z(Kl,_.p);_.W=Kl.prototype;_.W.attached=function(){var l=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){l.channelUrlInput.focusTextInput()})};
_.W.disableNextButton=function(l){_.Vh(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[l])};
_.W.handleImpersonatedChannelUrlChanged=function(){var l=this;this.disableNextButton(!0);this.invalid=!1;_.Fs(this,"ytd-report-channel-impersonated-channel-update",function(){var D=l.impersonatedChannelUrl.trim();l.ytdReduxBehavior.dispatch(_.V0({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:D}));var U;((U=l.data)==null?0:U.submitEndpoint)&&D&&_.Jc().resolve(_.qK).resolveCommand(l.data.submitEndpoint,{form:{impersonated_channel_url:D,element:l.hostElement}})},500)};
_.W.handleModifyReportFormCommand=function(l){this.invalid=this.get("modifyReportFormCommand.action",l)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.W.updateInvalidFromBinding=function(l){this.invalid=l.detail.value};
_.W.updateImpersonatedChannelUrlFromBinding=function(l){this.impersonatedChannelUrl=l.detail.value};
Kl.prototype.handleImpersonatedChannelUrlChanged=Kl.prototype.handleImpersonatedChannelUrlChanged;_.E([_.m(_.l5),_.T("design:type",Object)],Kl.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Kl.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Kl.prototype,"autoValidate",void 0);_.E([_.K(),_.T("design:type",Object)],Kl.prototype,"invalid",void 0);
_.E([_.K(),_.T("design:type",String)],Kl.prototype,"impersonatedChannelUrl",void 0);_.E([_.K({selector:kGJ.impersonatedChannelUrlSelector}),_.T("design:type",String)],Kl.prototype,"impersonatedChannelUrlRedux",void 0);_.E([_.K(),_.T("design:type",Object)],Kl.prototype,"data",void 0);_.E([_.gP("#text-input"),_.T("design:type",Object)],Kl.prototype,"channelUrlInput",void 0);
_.E([_.Pg("impersonatedChannelUrl"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Kl.prototype,"handleImpersonatedChannelUrlChanged",null);_.E([_.x({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Kl);
_.r(Kl,"ytd-report-channel-modal-impersonation-renderer",function(){if(cT8!==void 0)return cT8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return cT8=l},{mode:1});var pi2;var xI2;var cU=function(){return _.p.apply(this,arguments)||this};
_.Z(cU,_.p);cU.prototype.onCheckboxToggled=function(l){var D,U,n=(U=_.M((D=this.data)==null?void 0:D.video,_.Wq))==null?void 0:U.videoId;n&&this.ytdReduxBehavior.dispatch(l.target.checked?_.V0({type:"VIDEO_SELECTED",payload:n}):_.V0({type:"VIDEO_UNSELECTED",payload:n}))};
cU.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.QP.Object.defineProperties(cU.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var l,D=(l=this.data)==null?void 0:l.video;if(!D)return{};var U;l=(U=_.M(D,_.Wq))==null?void 0:U.navigationEndpoint;if(!l)return D;_.M(l==null?void 0:l.commandMetadata,_.W6)&&(_.M(l.commandMetadata,_.W6).ignoreNavigation=!0);return D}}});
_.E([_.K({reflectToAttribute:!0,selector:kGJ.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.T("design:type",Boolean)],cU.prototype,"checked",void 0);_.E([_.K(),_.T("design:type",Object)],cU.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],cU.prototype,"video",null);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],cU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],cU.prototype,"ytdReduxBehavior",void 0);_.E([_.x({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],cU);
_.r(cU,"ytd-selectable-video-renderer",function(){if(xI2!==void 0)return xI2;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return xI2=l},{mode:1});var pl=function(){var l=_.p.apply(this,arguments)||this;l.monitorScroll=!0;return l};
_.Z(pl,_.p);pl.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],pl.prototype,"data",void 0);_.E([_.x({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],pl);
_.r(pl,"ytd-selectable-video-list-renderer",function(){if(pi2!==void 0)return pi2;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return pi2=l},{mode:1});var jKv;_.RL("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var xJ=function(){return _.p.apply(this,arguments)||this};
_.Z(xJ,_.p);xJ.prototype.onChange=function(l){if(l=_.NN(l).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.q("kevlar_command_handler_migration_killswitch"))_.DP(this.hostElement,l,this.hostElement);else{l=_.B(l);for(var D=l.next();!D.done;D=l.next())this.ytComponentBehavior.resolveCommand(D.value)}};
xJ.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
xJ.prototype.updateDataToggledFromBinding=function(l){this.set("data.toggled",l.detail.value)};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],xJ.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],xJ.prototype,"data",void 0);_.E([_.K({computed:"isEnabled(data)"}),_.T("design:type",Boolean)],xJ.prototype,"enabled",void 0);_.E([_.x({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],xJ);
_.r(xJ,"ytd-toggle-item-renderer",function(){if(jKv!==void 0)return jKv;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return jKv=l},{mode:1});var Fq8;var oEr;var wi8;var jH=function(){var l=_.p.apply(this,arguments)||this;l.setVisible=!1;l.boundOnSubmitButtonClick=function(){l.onSubmitButtonClick()};
l.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return l};
_.Z(jH,_.p);jH.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}}}}}};
jH.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
jH.prototype.onSubmitButtonClick=function(){var l;((l=this.data)==null?0:l.submitEndpoint)&&!_.q("enable_ytc_refunds_submit_form_signal_action")&&_.lu(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
jH.prototype.handleSignalActionSubmitForm=function(){var l;((l=this.data)==null?0:l.submitEndpoint)&&_.lu(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.QP.Object.defineProperties(jH.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.hiddenByDefault)&&!this.setVisible}}});
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],jH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],jH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jH.prototype,"setVisible",void 0);_.E([_.K(),_.T("design:type",Object)],jH.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],jH.prototype,"surveyFeedbackData",void 0);_.E([_.K(),_.T("design:type",Object)],jH.prototype,"boundOnSubmitButtonClick",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data","setVisible"),_.T("design:type",Object),_.T("design:paramtypes",[])],jH.prototype,"visibilityHidden",null);_.E([_.S0({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],jH);
_.r(jH,"yt-flow-footer-renderer",function(){if(wi8===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;oEr===void 0&&(oEr=document.createElement("template"));var n=oEr;U.call(D,n.content.cloneNode(!0),l.content.firstChild);wi8=l}l=wi8;return l},{mode:2});var rTq=(0,_.KgH)(_.w_.ypc,{surveyFeedbackDataSelector:function(l){return l.surveyFeedbackData}});var FW=function(){return _.p.apply(this,arguments)||this};
_.Z(FW,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],FW.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],FW.prototype,"data",void 0);_.E([_.K({selector:rTq.surveyFeedbackDataSelector}),_.T("design:type",Object)],FW.prototype,"surveyFeedbackData",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],FW);
_.r(FW,"ytd-flow-footer-renderer",function(){if(Fq8!==void 0)return Fq8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Fq8=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var zu$;var fdT;var oy=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return l};
_.Z(oy,_.p);_.W=oy.prototype;_.W.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.ZV("multiPageMenuSectionItems")}}};
_.W.handleHideEnclosingAction_=function(l){if(this.data&&this.data.items)for(var D=0;D<this.data.items.length;D++){var U=this.data.items[D].notificationRenderer;if(U&&U.notificationId==l.hideEnclosingAction.notificationId){this.splice("data.items",D,1);_.Vh(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.W.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.yj(this.hostElement,"hidden",!0)};
_.W.updateMenu_=function(l){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&l&&!l.doNotRefreshInbox){l=this.data.continuations;for(var D=0;D<l.length;D++)if(l[D].invalidationContinuationData){var U=void 0;var n=(U=l[D].invalidationContinuationData)==null?void 0:U.continuation;break}l=_.we.clone(this.data.continuationUpdateEndpoint||null);l.continuation=n;l.click_tracking_params=this.data.trackingParams;_.lu(this.hostElement,[l])}};
_.W.onServiceRequestCompleted_=function(l,D){if(this.data&&(l=D.actions)){D=0;for(var U=l.length;D<U;D++){var n=_.M(l[D],_.jdH);if(!n)break;if((n.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||n.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&n.continuationItems&&this.data.items){var y=this.data.items.length-1;this.data.items[y].continuationItemRenderer&&(n=["data.items",y,1].concat(n.continuationItems),this.splice.apply(this,n))}}}};
oy.prototype.onServiceRequestCompleted_=oy.prototype.onServiceRequestCompleted_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],oy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],oy.prototype,"data",void 0);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],oy.prototype,"onServiceRequestCompleted_",null);_.E([_.S0({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],oy);
_.Ol()(oy,"yt-multi-page-menu-section-renderer",function(){if(fdT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;zu$===void 0&&(zu$=document.createElement("template"));var n=zu$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);fdT=l}l=fdT;return l},{allowedProps:["data"],
mode:2});var $I8;var Nnr;var w5=function(){return _.p.apply(this,arguments)||this};
_.Z(w5,_.p);w5.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.QP.Object.defineProperties(w5.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.progress)==null?0:this.data.progress*100}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],w5.prototype,"data",void 0);_.E([_.t("data.progress"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],w5.prototype,"showProgressBar",null);
_.E([_.t("data.progress"),_.T("design:type",Number),_.T("design:paramtypes",[])],w5.prototype,"progress",null);_.E([_.S0({is:"yt-flow-header-renderer",disableElementRegistration:!0})],w5);
_.r(w5,"yt-flow-header-renderer",function(){if(Nnr===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;$I8===void 0&&($I8=document.createElement("template"));var n=$I8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Nnr=l}l=Nnr;return l},{mode:2});var sKr;var EE2;var r5=function(){return _.p.apply(this,arguments)||this};
_.Z(r5,_.p);r5.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],r5.prototype,"data",void 0);_.E([_.S0({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],r5);
_.r(r5,"yt-post-confirmation-flow-step-renderer",function(){if(EE2===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;sKr===void 0&&(sKr=document.createElement("template"));var n=sKr;U.call(D,n.content.cloneNode(!0),l.content.firstChild);EE2=l}l=EE2;return l},{mode:2});var Tnw;var Id8;var zF=function(){return _.p.apply(this,arguments)||this};
_.Z(zF,_.p);
zF.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],zF.prototype,"data",void 0);_.E([_.S0({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],zF);
_.r(zF,"yt-refund-confirmation-flow-step-renderer",function(){if(Id8===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Tnw===void 0&&(Tnw=document.createElement("template"));var n=Tnw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Id8=l}l=Id8;return l},{mode:2});var Hf$=_.w(function(l){var D=l.data;return _.g("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.g("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.g(_.rh,{data:function(){return{thumbnails:[{url:D().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.g("div",{class:"profileBadgeViewModelContent"},_.g("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return D().badgeDesc}),_.g(_.v,{cond:function(){return D().badgeSubtitle},
then:function(){return _.g("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return D().badgeSubtitle})}})))},"mj");
Hf$.idomCompat=!0;var YN2=_.w(function(l){var D=l.data;return _.g("yt-comment-interaction-view-model",{el:_.fe(_.aT(function(){return D().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.g("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return D().onTapA11yLabel},
"on:keydown":_.o6c(),tabindex:0},_.g("div",{class:"ytCommentInteractionViewModelHeader"},_.g("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return D().headerPrefix},' "',function(){return D().videoTitle}),_.g("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.g("div",{class:"ytCommentInteractionViewModelContent"},_.g("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return D().commentContent}),_.g("div",{class:"ytCommentInteractionViewModelChevron"},
_.g(_.rh,{data:function(){return{thumbnails:[{url:D().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"nj");
YN2.idomCompat=!0;var OfP=_.w(function(l){var D=l.data;return _.g("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.g(_.uI,{data:function(){return D().avatar}},{avatarViewModel:_.iX}),_.g("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return D().channelName}))},"oj");
OfP.idomCompat=!0;var Up2=_.w(function(l){var D=l.data;l={};return _.g("yt-profile-info-view-model",{class:_.DV("ytProfileInfoViewModelHost",(l.ytProfileInfoViewModelWithVideoShelf=function(){return D().videosHorizontalShelf},l))},_.g(VIq,{profileInfo:D}),_.g(_.uI,{data:function(){return D().videosHorizontalShelf}},{horizontalShelfViewModel:function(U){return _.g("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.g(_.Pv,{data:U.data}))}}),_.g(_.v,{cond:function(){return D().comments},
then:function(){return _.g(ivv,{profileInfo:D})}}),_.g(_.v,{cond:function(){return D().sharedSubscriptionsTitle},
then:function(){return _.g(_.v,{cond:function(){return D().subscriptionsAccessButtonCommand},
then:function(){return _.g(l6$,{profileInfo:D})},
else:function(){return _.g(DpT,{profileInfo:D})}})}}))},"pj");
Up2.idomCompat=!0;var ivv=_.w(function(l){var D=l.profileInfo;return _.g("div",{class:"ytProfileInfoViewModelActivity"},_.g("div",{class:"ytProfileInfoViewModelHeader"},_.g("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return D().commentsInteractionTitle})),_.g(_.uI,{data:function(){return D().comments}},{commentInteractionViewModel:function(U){return _.g("div",{class:"ytProfileInfoViewModelActivity"},_.g(YN2,{data:U.data}))}}))},"qj"),l6$=_.w(function(l){var D=l.profileInfo;
return _.g("div",{class:"ytProfileInfoViewModelSubSection"},_.g("div",{class:"ytProfileInfoViewModelSubHeader"},_.g(_.qO,{command:function(){return D().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.g("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return D().sharedSubscriptionsTitle}),_.g("div",null,_.g(_.uI,{data:function(){return D().subscriptionsAccessButton}},{buttonViewModel:_.t9})))),_.g(njv,{sharedSubscriptions:function(){var U;
return((U=D().sharedSubscriptions)==null?void 0:U.slice(0,5))||[]}}))},"rj"),DpT=_.w(function(l){var D=l.profileInfo;
return _.g("div",{class:"ytProfileInfoViewModelSubSection"},_.g("div",{class:"ytProfileInfoViewModelSubHeader"},_.g("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return D().sharedSubscriptionsTitle})),_.g(njv,{sharedSubscriptions:function(){var U;
return((U=D().sharedSubscriptions)==null?void 0:U.slice(0,5))||[]}}))},"sj"),njv=_.w(function(l){return _.g("div",{class:"ytProfileInfoViewModelSubs"},_.g(_.uI,{data:l.sharedSubscriptions},{sharedSubscriptionViewModel:function(D){return _.g("div",{class:"ytProfileInfoViewModelSub"},_.g(OfP,{data:D.data}))}}))},"tj"),VIq=_.w(function(l){var D=l.profileInfo;
return _.g("div",{class:"ytProfileInfoViewModelActivity"},_.g(_.wt,{each:function(){return[D().profileBadgeInfoYtWide,D().profileBadgeInfoChannelWide].filter(function(U){return!!U})},
keyBy:"INDEX"},function(U){return _.g(_.GZ,null,_.g("div",{class:"ytProfileInfoViewModelHeader"},_.g("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return U().profileSectionTitle}),_.g("div",{class:"ytProfileInfoViewModelSectionDesc"},_.g("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var n;
return(n=U().commentBadge)==null?void 0:n.commentDesc}),_.g(_.v,{cond:function(){var n;
return(n=U().commentBadge)==null?void 0:n.blackHeartDesc},
then:function(){return _.g("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.g("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.g(_.rh,{data:function(){var n;
return{thumbnails:[{url:(n=U().commentBadge)==null?void 0:n.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.g("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var n;return(n=U().commentBadge)==null?void 0:n.blackHeartDesc}))),_.g("div",{class:"ytProfileInfoViewModelBadge"},_.g(_.wt,{each:function(){return U().badges||[]}},function(n){return _.g(Hf$,{data:n})})))}))},"uj");var ytJ=_.w(function(l){var D=l.data;var U=function(){return D().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.g("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.g(_.uI,{data:function(){return D().profileIdentityInfo}},{profileIdentityInfoViewModel:function(n){return _.g(_.gS5,{data:n.data,
hideDivider:U,isChannelInfoCard:U})},
profileInfoViewModel:Up2}),_.g(_.uI,{data:function(){return D().profileInfo}},{profileIdentityInfoViewModel:_.gS5,
profileInfoViewModel:Up2}))},"vj");
ytJ.idomCompat=!0;_.Tt(ytJ,"yt-profile-card-view-model",{props:{data:_.C$}});var fl=function(){var l=_.p.apply(this,arguments)||this;l.enableFocusFix=_.q("music_web_enable_focus_on_setting_menu_fix")&&_.il("IS_MOBILE_WEB",!1);l.covered=!1;l.hideMenu=!1;l.isCommentNotificationOnProfileCard=!1;l.scrolledByTouch=!1;l.disableBackdropFilter=_.q("web_disable_backdrop_filter");l.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return l};
_.Z(fl,_.p);_.W=fl.prototype;
_.W.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"}}}};
_.W.ready=function(){var l=this;this.JSC$20594_containerElement.addEventListener("scroll",function(){l.ytRendererBehavior.markDirty()})};
_.W.attributeChanged=function(l,D){l==="menu-style"&&_.Vh(this.hostElement,"yt-multi-page-menu-closed-action",[D])};
_.W.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.CY(this,this.focusOnStampFinished))};
_.W.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.CY(this,this.focusOnStampFinished))};
_.W.reset=function(){this.closeJobId&&(_.Tn.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.W.focusOnStampFinished=function(l){l.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.CY(this,this.focusOnStampFinished)),this.doFocus())};
_.W.doFocus=function(){var l=_.ohv(this.sectionsElement);l.length&&l[0].focus()};
_.W.computeMenuStyle=function(l){return l?l.toLowerCase().replace(/_/g,"-"):""};
_.W.computeIsCommentNotificationOnProfileCard=function(l){return _.q("enable_profile_cards_on_comments")&&l.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.W.computeHideMenu=function(l,D){return l||!(!D||!D.showLoadingSpinner)};
_.W.onPopupClosed=function(){this.isPopUpOpen=!1;_.Vh(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.W.onPopupOpened=function(l,D){this.isPopUpOpen=!0;D.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.O9(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.V0({type:"CHANNEL_REPORT_RESET"})))};
_.W.onYtNavigate=function(l,D){this.shouldCloseOnNavigateEvent(D.endpoint)&&_.Vh(this.hostElement,"yt-close-all-popups-action")};
_.W.handleEndpoint=function(l){l=_.M(l,_.ic);!this.isCommentNotificationOnProfileCard&&l&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20594_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.W.handleActions=function(l){for(var D=0,U=l.length;D<U;D++){var n=_.M(l[D],aFT);n&&this.handleGetMultiPageMenuAction(n);(n=_.M(l[D],_.jdH))&&this.handleAppendContinuationItemsAction(n)}};
_.W.onServiceRequestSentOrCompleted=function(l,D){l.detail&&l.detail.endpoint&&this.handleEndpoint(l.detail.endpoint);D.actions&&this.handleActions(D.actions)};
_.W.handleGetMultiPageMenuAction=function(l){var D=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.iJ(this.submenuElement).appendChild(D);(l=l.menu.multiPageMenuRenderer)&&this.logSubmenu(l);D.data=l;D.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.W.handleAppendContinuationItemsAction=function(l){if(this.data&&l.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&l.continuationItems&&this.data.sections){var D=this.data.sections.length-1;this.data.sections[D].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),D--);if(this.data.sections[D].multiPageMenuNotificationSectionRenderer&&l.continuationItems){l=_.B(l==null?void 0:l.continuationItems);for(var U=l.next();!U.done;U=l.next())if(U=U.value,_.M(U,VuT)){var n=
void 0,y=void 0,A=void 0,C=void 0,h=void 0;((n=this)==null?0:(y=n.data)==null?0:(A=y.sections)==null?0:(C=A[D])==null?0:(h=C.multiPageMenuNotificationSectionRenderer)==null?0:h.items)&&this.push("data.sections."+D+".multiPageMenuNotificationSectionRenderer.items",U)}else if(_.M(U,_.ae8)||_.M(U,_.$X))this.push("data.sections",U),D++}}};
_.W.logSubmenu=function(l){if(!_.q("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var D=this.ytRendererBehavior.getScreenLayer(),U=_.t6(D),n=_.aS(D);if((l=l.trackingParams)&&U&&n){var y=_.v9(l);_.q("combine_ve_grafts")?_.he().graftServerVe(l,n,D):_.jz(U,n,y)}}};
_.W.emptySubmenuContainer=function(){for(var l=_.iJ(this.submenuElement);l.firstChild;)l.removeChild(l.firstChild)};
_.W.onMenuBackTap=function(l){_.O9(this.hostElement,"yt-submenu-closed");l.stopPropagation()};
_.W.onSubmenuClosed=function(l){_.NN(l)!==this.hostElement&&(this.covered=!1,_.O9(this.hostElement,"yt-refit"),l.stopPropagation())};
_.W.onRetrieveLocation=function(l,D){D.hasComments&&(D.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),l.stopPropagation())};
_.W.shouldCloseOnNavigateEvent=function(l){if(!l)return!0;if(_.M(l,_.y9m)||_.M(l,_.A9k)||_.M(l,_.nky)||_.M(l,_.yE))return!1;var D;return((D=_.M(l==null?void 0:l.commandMetadata,_.W6))==null?0:D.ignoreNavigation)?!1:!0};
_.W.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.W.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.W.refitAfterRender=function(){var l=this;_.u6(this,function(){_.O9(l.hostElement,"yt-refit")})};
fl.prototype.refitAfterRender=fl.prototype.refitAfterRender;fl.prototype.onRetrieveLocation=fl.prototype.onRetrieveLocation;fl.prototype.onSubmenuClosed=fl.prototype.onSubmenuClosed;fl.prototype.onMenuBackTap=fl.prototype.onMenuBackTap;fl.prototype.onServiceRequestSentOrCompleted=fl.prototype.onServiceRequestSentOrCompleted;fl.prototype.onYtNavigate=fl.prototype.onYtNavigate;fl.prototype.onPopupOpened=fl.prototype.onPopupOpened;fl.prototype.onPopupClosed=fl.prototype.onPopupClosed;
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],fl.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],fl.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fl.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],fl.prototype,"enableFocusFix",void 0);_.E([_.K(),_.T("design:type",Object)],fl.prototype,"covered",void 0);_.E([_.K({computed:"computeHideMenu(covered, data)"}),_.T("design:type",Object)],fl.prototype,"hideMenu",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.T("design:type",String)],fl.prototype,"menuStyle",void 0);
_.E([_.K({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.T("design:type",Object)],fl.prototype,"isCommentNotificationOnProfileCard",void 0);_.E([_.K(),_.T("design:type",Boolean)],fl.prototype,"isPopUpOpen",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fl.prototype,"scrolledByTouch",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],fl.prototype,"disableBackdropFilter",void 0);
_.E([_.gP("#sections"),_.T("design:type",HTMLElement)],fl.prototype,"sectionsElement",void 0);_.E([_.gP("#spinner"),_.T("design:type",HTMLElement)],fl.prototype,"spinnerElement",void 0);_.E([_.gP("#header"),_.T("design:type",HTMLElement)],fl.prototype,"headerElement",void 0);_.E([_.gP("#container"),_.T("design:type",HTMLElement)],fl.prototype,"JSC$20594_containerElement",void 0);_.E([_.gP("#submenu"),_.T("design:type",HTMLElement)],fl.prototype,"submenuElement",void 0);
_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fl.prototype,"onPopupClosed",null);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],fl.prototype,"onPopupOpened",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],fl.prototype,"onYtNavigate",null);
_.E([_.hj("yt-service-request-completed"),_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],fl.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.hj("yt-menu-back-tapped"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],fl.prototype,"onMenuBackTap",null);
_.E([_.hj("yt-submenu-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],fl.prototype,"onSubmenuClosed",null);_.E([_.hj("yt-retrieve-location"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],fl.prototype,"onRetrieveLocation",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fl.prototype,"refitAfterRender",null);
_.E([_.x({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],fl);
_.r(fl,"ytd-multi-page-menu-renderer",function(){if(Zf5!==void 0)return Zf5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Zf5=l},{mode:1});var At8;var $J=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return l};
_.Z($J,_.p);_.W=$J.prototype;_.W.created=function(){this.showTooltips=!0};
_.W.computeAccessibility_=function(l){return this.get("accessibility.accessibilityData",l)||null};
_.W.onTap=function(){var l=_.iu(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(l&&l.length===1&&l[0])_.Vh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var D;if((D=this.data)==null?0:D.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var U;((U=this.data)==null?0:U.menuRequest)&&_.lu(this.hostElement,[this.data.menuRequest])}}};
_.W.handleTopbarMenuClosedAction=function(l){var D,U;(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(l)===((D=this.data)==null?void 0:(U=D.icon)==null?void 0:U.iconType)&&this.toggleIconState(!1)};
_.W.toggleIconState=function(l){_.q("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=l)};
_.W.handleUpdateTopbarAvatarAction=function(l){var D;l=(D=_.M(l,Kuq))==null?void 0:D.avatarUrl;var U,n;D=(U=this.data)==null?void 0:(n=U.avatar)==null?void 0:n.thumbnails;l&&D&&(U={thumbnails:[Object.assign({},D[0],{url:l})]},this.set("data.avatar",U))};
_.QP.Object.defineProperties($J.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.iJ(this.hostElement).querySelector("#button")}}});
$J.prototype.onTap=$J.prototype.onTap;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],$J.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],$J.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.ZHv.YtButtonBehavior),_.T("design:type",Object)],$J.prototype,"ytButtonBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$J.prototype,"data",void 0);
_.E([_.gP("yt-icon-button#button"),_.T("design:type",Object)],$J.prototype,"iconButton",void 0);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$J.prototype,"onTap",null);_.E([_.x({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],$J);
_.Ol()($J,"ytd-topbar-menu-button-renderer",function(){if(At8===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);At8=l}l=At8;return l},{allowedProps:["data"],
mode:1});var Wyq;var Ny=function(){return _.p.apply(this,arguments)||this};
_.Z(Ny,_.p);Ny.prototype.getSelected=function(){return this.reasons.selected};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ny.prototype,"data",void 0);_.E([_.gP("#reasons"),_.T("design:type",Object)],Ny.prototype,"reasons",void 0);_.E([_.x({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Ny);
_.r(Ny,"ytd-ad-feedback-content",function(){if(Wyq!==void 0)return Wyq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Wyq=l},{mode:1});var B2q;var su=function(){return _.p.apply(this,arguments)||this};
_.Z(su,_.p);_.W=su.prototype;_.W.onPopupOpened=function(){_.Vh(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.W.computeConfirmButton=function(l){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:l.confirmLabel}};
_.W.computeCancelButton=function(l){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:l.cancelLabel}};
_.W.onConfirmTap=function(){var l=this.content.getSelected();l!==void 0&&(l=this.data.reasons[l].endpoint)&&(_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}}),_.Vh(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.W.sendFeedbackSubmitToastAction=function(){var l;(l=this.data)!=null&&l.completionMessage&&(l=_.IJ(this.data.completionMessage),_.Vh(this.hostElement,"yt-open-popup-action",[l,this]))};
_.W.onCancelTap=function(){_.Vh(this.hostElement,"yt-close-popup-action")};
su.prototype.onPopupOpened=su.prototype.onPopupOpened;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],su.prototype,"data",void 0);_.E([_.gP("#content"),_.T("design:type",Object)],su.prototype,"content",void 0);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],su.prototype,"onPopupOpened",null);
_.E([_.x({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],su);
_.r(su,"ytd-ad-feedback-renderer",function(){if(B2q!==void 0)return B2q;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return B2q=l},{mode:1});var Cj8;var hSv=function(){return _.p.apply(this,arguments)||this};
_.Z(hSv,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hSv.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hSv.prototype,"data",void 0);_.E([_.x({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],hSv);
_.r(hSv,"ytd-ad-info-dialog-content",function(){if(Cj8!==void 0)return Cj8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Cj8=l},{mode:1});var PjW;var Eu=function(){return _.p.apply(this,arguments)||this};
_.Z(Eu,_.p);Eu.prototype.computeConfirmButton=function(l){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:l.confirmLabel}};
Eu.prototype.onConfirmTap=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Eu.prototype.computeShouldShowTitle=function(){var l;return!((l=this.data)==null||!l.title)};
Eu.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.Jc().resolve(_.qK).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Eu.prototype.onPopupClosed=Eu.prototype.onPopupClosed;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Eu.prototype,"data",void 0);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Eu.prototype,"onPopupClosed",null);_.E([_.x({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Eu);
_.r(Eu,"ytd-ad-info-dialog-renderer",function(){if(PjW!==void 0)return PjW;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return PjW=l},{mode:1});var bvq;var TF=function(){var l=_.p.apply(this,arguments)||this;l.actionButtonClass="action-button";l.dismissButtonId="dismiss-button";l.dialogDismiss=!0;return l};
_.Z(TF,_.p);_.W=TF.prototype;_.W.computeInPlayer=function(l){return(l==null?void 0:l.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.W.computedLogo=function(){var l,D;return this.isDarkTheme()?(l=this.data)==null?void 0:l.logoDark:(D=this.data)==null?void 0:D.logo};
_.W.computedHeaderImage=function(){var l,D;return this.isDarkTheme()?(l=this.data)==null?void 0:l.headerImageDark:(D=this.data)==null?void 0:D.headerImage};
_.W.computeLogoIconId=function(){var l,D,U,n=(l=this.computedLogo())==null?void 0:(D=l.sources)==null?void 0:(U=D[0])==null?void 0:U.height;return n&&n%31===0?"logo-icon-with-padding":"logo-icon"};
_.W.computeLogoIconHeight=function(){var l,D,U,n=(l=this.computedLogo())==null?void 0:(D=l.sources)==null?void 0:(U=D[0])==null?void 0:U.height;return n&&n%31===0?"31":"24"};
_.W.onPopupClosed=function(){_.Jc().resolve(_.NI).dispose()};
_.W.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.W.onShow=function(){this.inPlayer&&_.CU(6);this.titleElement.focus()};
_.W.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var l=0;l<this.data.impressionEndpoints.length;l++){var D=_.M(this.data.impressionEndpoints[l],_.aO);D&&this.ytComponentBehavior.resolveCommand(D)}};
_.W.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Vh(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.QP.Object.defineProperties(TF.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var l,D;return!((l=this.data)==null||!l.headerImageDark)&&!((D=this.data)==null||!D.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.secondaryButton)}}});
TF.prototype.onPopupClosed=TF.prototype.onPopupClosed;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],TF.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.n$.YtVisibilityBehavior),_.T("design:type",Object)],TF.prototype,"ytVisibilityBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],TF.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],TF.prototype,"actionButtonClass",void 0);_.E([_.K(),_.T("design:type",Object)],TF.prototype,"dismissButtonId",void 0);_.E([_.K(),_.T("design:type",Object)],TF.prototype,"dialogDismiss",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],TF.prototype,"hasHeaderImage",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],TF.prototype,"hasPremiumButton",null);
_.E([_.K({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.T("design:type",Boolean)],TF.prototype,"inPlayer",void 0);_.E([_.gP("#dismiss-button"),_.T("design:type",HTMLElement)],TF.prototype,"dismissButton",void 0);_.E([_.gP("#title"),_.T("design:type",HTMLElement)],TF.prototype,"titleElement",void 0);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],TF.prototype,"onPopupClosed",null);
_.E([_.x({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],TF);
_.r(TF,"ytd-enforcement-message-view-model",function(){if(bvq!==void 0)return bvq;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return bvq=l},{mode:1});var gjv;var uf8;var Iy=function(){var l=_.p.apply(this,arguments)||this;l.TEST_ONLY={immediateValidation:function(){l.immediateValidation()},
onValidationResponse:function(D){l.onValidationResponse(D)},
onGenerateHandleFromNameResponse:function(D){l.onGenerateHandleFromNameResponse(D)}};
return l};
_.Z(Iy,_.p);_.W=Iy.prototype;_.W.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.W.validate=function(){this.immediateValidation()};
_.W.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.W.setHandleInputValue=function(l){this.handleDir=this.getHandleDir(l);this.handleInput.value=l;this.validationState={status:"PENDING"};this.immediateValidation()};
_.W.getHandleDir=function(l){var D=l===""&&!1;return(D=_.Dtg.test.call(_.Dtg,l))?"rtl":"ltr"};
_.W.onDataChanged=function(){var l,D;this.handleDir=this.getHandleDir((D=(l=this.data)==null?void 0:l.handle)!=null?D:"");var U;this.validationState=((U=this.data)==null?0:U.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var n;((n=this.data)==null?0:n.validateOnInit)&&this.immediateValidation()};
_.W.stopPropagation=function(l){l.stopPropagation()};
_.W.onInput=function(){var l;this.handleDir=this.getHandleDir((l=this.handleInput.value)!=null?l:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.W.onFocusout=function(l){this.handleInput.contains(l.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.W.delayedValidation=function(){var l,D;this.debouncedValidation((D=(l=this.data)==null?void 0:l.validationDelayMs)!=null?D:1E3)};
_.W.immediateValidation=function(){this.debouncedValidation(0)};
_.W.debouncedValidation=function(l){var D=this;_.Fs(this,"debouncedValidation",function(){var U,n=D.staticValidation((U=D.handleInput.value)!=null?U:"");if(n!==void 0)D.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:n};else{var y;if((y=D.data)!=null&&y.validateChannelHandleCommand){D.validationState={status:"LOADING"};var A;D.ytComponentBehavior.resolveCommand(D.data.validateChannelHandleCommand,{form:{handle:(A=D.handleInput.value)!=null?A:""},commandController:{onSuccess:function(C,
h){D.onValidationResponse(h)},
onServerError:function(C,h){D.onValidationServerError(h)}}})}else D.handleUnexpectedValidationError(new _.rc("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",D.data))}},l)};
_.W.staticValidation=function(l){var D;if(((D=this.data)==null?void 0:D.channelHandleStaticValidationParams)!==void 0){D=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(l)&&D.validValueRegexpErrorMessage!==void 0)return D.validValueRegexpErrorMessage;if(D.minLength!==void 0&&l.length<D.minLength&&D.minLengthErrorMessage!==void 0)return D.minLengthErrorMessage;if(D.maxLength!==void 0&&l.length>D.maxLength&&D.maxLengthErrorMessage!==void 0)return D.maxLengthErrorMessage}};
_.W.onValidationResponse=function(l){var D=_.M(l.result,cYw);D===void 0?this.handleUnexpectedValidationError(new _.rc("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",l)):this.handleValidationResultRenderer(D)};
_.W.onValidationServerError=function(l){this.handleUnexpectedValidationError(new _.rc("ValidateChannelHandle request failed.",l))};
_.W.handleValidationResultRenderer=function(l){if(l.handle===void 0)this.handleUnexpectedValidationError(new _.rc("ChannelHandleValidationResultRenderer does not contain handle.",l));else if(l.handle===this.handleInput.value)switch(l.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:l.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:l.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.rc("Unrecognized ChannelHandleValidationResult",l));break;default:_.Tv(l.result)}};
_.W.handleUnexpectedValidationError=function(l){var D;this.validationState={status:"UNKNOWN",handle:(D=this.handleInput.value)!=null?D:""};_.II(l)};
_.W.stopEventPropagation=function(l){l.stopPropagation()};
_.W.updateHandleOnChannelNameInputChange=function(l){if(!this.wasEdited){var D,U;this.debouncedGenerateHandleFromName(l,(U=(D=this.data)==null?void 0:D.validationDelayMs)!=null?U:1E3)}};
_.W.debouncedGenerateHandleFromName=function(l,D){var U=this;_.Fs(this,"debouncedGenerateHandleFromName",function(){var n;(n=U.data)!=null&&n.validateChannelHandleCommand?U.ytComponentBehavior.resolveCommand(U.data.validateChannelHandleCommand,{form:{name:l},commandController:{onSuccess:function(y,A){U.onGenerateHandleFromNameResponse(A)},
onServerError:function(y,A){_.II(new _.rc("Error calling GenerateHandleFromName",A))}}}):_.II(new _.rc("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",U.data))},D)};
_.W.onGenerateHandleFromNameResponse=function(l){this.wasEdited||((l=_.M(l.result,p0T))?this.setHandleInputValue(l.handle):_.II(new _.rc("Invalid results when generate handle from name")))};
_.QP.Object.defineProperties(Iy.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var l;if(l=this.validationState)l=this.validationState,l=l.status==="OK"||l.status==="UNKNOWN";if(l)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var l;if(((l=this.validationState)==null?void 0:l.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 l,D=(l=this.channelHandleEntity)==null?void 0:l.handleEdit;this.handleDir=this.getHandleDir(D!=null?D:"");return D}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var l,D;if(((l=this.data)==null?void 0:(D=l.channelHandleStaticValidationParams)==null?void 0:D.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Iy.prototype.stopEventPropagation=Iy.prototype.stopEventPropagation;Iy.prototype.onDataChanged=Iy.prototype.onDataChanged;Iy.prototype.applyHandleEdit=Iy.prototype.applyHandleEdit;Iy.prototype.onValueChanged=Iy.prototype.onValueChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Iy.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Iy.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Iy.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Boolean)],Iy.prototype,"wasEdited",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],Iy.prototype,"handleDir",void 0);_.E([_.gP("#handle-input"),_.T("design:type",Object)],Iy.prototype,"handleInput",void 0);_.E([_.K(),_.t("validationState"),_.T("design:type",Object),_.T("design:paramtypes",[])],Iy.prototype,"value",null);
_.E([_.Pg("value"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Iy.prototype,"onValueChanged",null);_.E([_.t("validationState"),_.T("design:type",Object),_.T("design:paramtypes",[])],Iy.prototype,"errorIndicator",null);_.E([_.K({reflectToAttribute:!0}),_.t("errorIndicator"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Iy.prototype,"borderErrorIndicator",null);
_.E([_.K({selectorArgs:["data.channelHandleEntityKey"],selector:function(l,D){return _.yT(l.entities,"channelHandle",D)}}),
_.T("design:type",Object)],Iy.prototype,"channelHandleEntity",void 0);_.E([_.t("channelHandleEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],Iy.prototype,"handleEdit",null);_.E([_.Pg("handleEdit"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Iy.prototype,"applyHandleEdit",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Iy.prototype,"onDataChanged",null);
_.E([_.t("data.channelHandleStaticValidationParams.validValueRegexp"),_.T("design:type",Object),_.T("design:paramtypes",[])],Iy.prototype,"validValueRegexp",null);_.E([_.hj("yt-service-request-sent"),_.hj("yt-service-request-completed"),_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],Iy.prototype,"stopEventPropagation",null);_.E([_.x({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Iy);
_.r(Iy,"ytd-channel-handle-input-renderer",function(){if(uf8!==void 0)return uf8;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return uf8=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var HU=function(){var l=_.p.apply(this,arguments)||this;l.data=null;l.errorMessage=null;l.isLoading=!0;l.hideContainer=!1;l.enableNewChannelCreationOnIdForAll=_.q("enable_new_channel_creation_for_id4all");l.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"};l.testOnly={setErrorMessage:function(D){l.resetErrorState();
l.setErrorState(D)}};
return l};
_.Z(HU,_.p);_.W=HU.prototype;_.W.created=function(){this.logScreenVe()};
_.W.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")};
_.W.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var l;((l=this.zeroStepErrorMessageEntity)==null?0:l.value)&&this.set("errorMessage",_.$B(this.zeroStepErrorMessageEntity.value))};
_.W.onCreateTap=function(){var l=this;if(this.data&&this.data.channelCreationEndpoint){var D,U;if(!((D=this.data.createChannelButton)==null?0:(U=D.buttonRenderer)==null?0:U.isDisabled)){var n;if((n=this.nameInput)!=null&&n.value){this.setLoadingState();var y,A;D=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(y=this.handleInput)==null?void 0:y.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:D,commandController:{onSuccess:function(C,h){l.onChannelCreationEndpointSuccess(h);l.obakeImageSource&&_.Na("channelCreatedWithObakeImage",{imageSourceType:l.obakeImageSource})},
onServerError:function(){l.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.W.endpointRequiresServiceRequestAction=function(l){return!!_.M(l,_.ea)||!!_.M(l,Kuq)};
_.W.isNavigateAction=function(l){var D;return!!_.M(l,_.Yr)||!!_.M((D=_.M(l,eqv))==null?void 0:D.command,_.Yr)};
_.W.isPlaylistAction=function(l){return!!_.M(l,_.lc)||!!_.M(l,_.Bq)};
_.W.onChannelCreationEndpointSuccess=function(l){if(l.createChannelError){var D;this.setErrorState((D=l.createChannelError)==null?void 0:D.errorMessage);this.handleInput&&this.handleInput.validate()}else{l.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(l.navigationEndpoint);if(l.actions){D=_.B(l.actions);for(var U=D.next();!U.done;U=D.next())if(U=U.value,this.endpointRequiresServiceRequestAction(U)&&this.ytComponentBehavior.resolveCommand(U),this.isNavigateAction(U)){var n=void 0;U=_.M((n=
_.M(U,eqv))==null?void 0:n.command,_.Yr);n=void 0;this.isPlaylistAction((n=U)==null?void 0:n.endpoint)&&(_.Vh(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),n=void 0,this.ytComponentBehavior.resolveCommand((n=U)==null?void 0:n.endpoint))}}l.actions&&l.actions.some(function(y){var A;return _.M(y,_.Yr)||_.M((A=_.M(y,eqv))==null?void 0:A.command,_.Yr)})||_.Vh(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.W.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.W.onCancelTap=function(){var l,D,U;if(!((l=this.data)==null?0:(D=l.cancelButton)==null?0:(U=D.buttonRenderer)==null?0:U.isDisabled)){var n,y,A;l=(n=this.data)==null?void 0:(y=n.cancelButton)==null?void 0:(A=y.buttonRenderer)==null?void 0:A.command;if(!l||!_.M(l,_.R4s)){var C;this.nameInput&&((C=this.data)==null?0:C.name)&&(this.nameInput.value=this.data.name);var h;this.handleInput&&((h=this.data)==null?0:h.channelHandleInput)&&(this.handleInput.data=_.M(this.data.channelHandleInput,xnq));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.W.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.W.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.W.onClearProfilePhotoTap=function(){var l,D,U;((l=this.data)==null?0:(D=l.clearProfilePhotoButton)==null?0:(U=D.buttonRenderer)==null?0:U.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.W.onEditAvatarTap=function(){var l,D,U;((l=this.data)==null?0:(D=l.editAvatarButton)==null?0:(U=D.buttonRenderer)==null?0:U.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.W.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)};
_.W.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var l;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((l=this.data)==null?0:l.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.W.setErrorState=function(l){this.resetErrorState();if(l)this.set("errorMessage",l);else{var D;if((D=this.zeroStepErrorMessageEntity)==null?0:D.value)this.set("errorMessage",_.$B(this.zeroStepErrorMessageEntity.value));else{var U;((U=this.data)==null?0:U.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.W.fetchImageBlobWithAlr=function(l,D){D=D===void 0?5:D;var U=this,n,y,A,C,h;return _.P(function(b){switch(b.nextAddress){case 1:return b.yield(fetch(l,{method:"GET",mode:"cors"}),2);case 2:n=b.yieldResult;if(n.ok){b.jumpTo(3);break}if(D===0)throw Error();y=U.addJitter(Math.pow(2,5-D));return b.yield(new Promise(function(u){setTimeout(u,y*1E3)}),4);
case 4:return b.return(U.fetchImageBlobWithAlr(l,D-1));case 3:if(!n.headers.get("content-type").split(";").some(function(u){return u.trim()==="text/plain"})){b.jumpTo(5);
break}A=U;C=A.fetchImageBlobWithAlr;return b.yield(n.text(),6);case 6:return b.return(C.call(A,b.yieldResult,D-1));case 5:return b.yield(n.blob(),7);case 7:return h=b.yieldResult,b.return(h)}})};
_.W.addJitter=function(l){var D=l*.3*Math.random();Math.random()>.5&&(D*=-1);return l+D};
_.W.openProfilePicturePicker=function(){var l=this,D,U,n,y,A,C;return _.P(function(h){if(h.nextAddress==1){D=l.data.scottyUploadUrl;if(!D)return h.return();U=document.documentElement.hasAttribute("dark");n=document.body.style.colorScheme;U&&(document.body.style.colorScheme="dark");y=Ge8(JCJ(Qfv(CN$(U?"dark":"light")),function(b){var u,Q,G,J,L;return _.P(function(R){if(R.nextAddress==1)return u=_.sF(xjq(new Ud$(b.photoUrl,!1)).build(),"alr","yes"),l.obakeImageSource=l.pictureChangeSourceToObakeImageSourceType(b.photoSource),
_.ZY(R,2),l.setLoadingState(),R.yield(l.fetchImageBlobWithAlr(u),4);if(R.nextAddress!=2)return Q=R.yieldResult,G=new FileReader,G.addEventListener("load",function(){var a,S,d,c,N,z;return _.P(function(f){if(f.nextAddress==1){if(Q.size>15728640)return l.setErrorState((a=l.data)==null?void 0:a.imageSizeErrorMessage),_.II(Error("Gl")),f.return();if(!G.result)return l.setErrorState((S=l.data)==null?void 0:S.genericImageLoadErrorMessage),_.II(Error("Hl")),f.return();d=G.result;_.ZY(f,2);return f.yield(XmP(Q,
D),4)}if(f.nextAddress!=2)return c=f.yieldResult,l.handleImageUpdatedAction(d,c),l.resetErrorState(),_.WG(f,0);N=_.kF(f);l.setErrorState((z=l.data)==null?void 0:z.uploadErrorMessage);if(N instanceof Error)_.EU(N);else{var I=new _.rc(JSON.stringify(N));_.EU(I)}_.Kz(f)})}),G.readAsDataURL(Q),_.WG(R,0);
J=_.kF(R);l.setErrorState((L=l.data)==null?void 0:L.genericImageLoadErrorMessage);J instanceof Error?_.EU(J):_.Tj(new _.rc(JSON.stringify(J)));_.Kz(R)})}),function(){l.hideContainer=!1;
document.body.style.colorScheme=n});
_.ZY(h,2);return((A=l.data)==null?0:A.shouldViewChannelCreationFormForSupex)?h.yield(y.openPicker("profile-picture/art-selection"),5):h.yield(y.openPicker(),5)}if(h.nextAddress!=2)return _.WG(h,0);_.kF(h);l.setErrorState((C=l.data)==null?void 0:C.selectImageErrorMessage);_.Kz(h)})};
_.W.pictureChangeSourceToObakeImageSourceType=function(l){switch(l){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.W.logScreenVe=function(){_.KM(_.he(),124448)};
_.W.graftServerVe=function(){var l=_.aS(),D,U,n=(D=this.data)==null?void 0:(U=D.loggingDirectives)==null?void 0:U.trackingParams;n&&l&&(this.channelCreationFormVe=_.he().graftServerVe(n,l),l={visualElement:this.channelCreationFormVe},_.B9().reportShown(l))};
_.W.isNameChanged=function(l){var D;return((D=this.data)==null?void 0:D.name)!==l};
_.W.isHandleChanged=function(l){var D,U=_.M((D=this.data)==null?void 0:D.channelHandleInput,xnq);return U&&l?U.handle!==l:!1};
_.W.handleImageUpdatedAction=function(l,D){this.hideContainer=!1;this.previewDataUrl=l;this.encryptedBlobId=D};
_.W.handleImageSelectionErrorAction=function(l){this.hideContainer=!1;this.setErrorState(l)};
_.W.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.W.showContainer=function(){this.hideContainer=!1};
_.W.maybeWipeZeroStepErrorMessage=function(){var l,D=(l=this.data)==null?void 0:l.zeroStepErrorMessageEntityKey,U;D&&((U=this.zeroStepErrorMessageEntity)==null?0:U.value)&&this.ytdReduxBehavior.dispatch(_.vr("stringEntity",D,{key:D,value:""}))};
_.QP.Object.defineProperties(HU.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 l;return((l=this.photoThumbnail)==null?0:l.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 l;return!((l=this.data)==null||!l.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.descriptionInfo}}});
HU.prototype.dataChanged=HU.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],HU.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],HU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],HU.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],HU.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],HU.prototype,"errorMessage",void 0);
_.E([_.K(),_.T("design:type",Object)],HU.prototype,"isLoading",void 0);_.E([_.K(),_.T("design:type",String)],HU.prototype,"previewDataUrl",void 0);_.E([_.K(),_.T("design:type",Number)],HU.prototype,"obakeImageSource",void 0);_.E([_.K(),_.T("design:type",Object)],HU.prototype,"hideContainer",void 0);_.E([_.gP("#title-input"),_.T("design:type",Object)],HU.prototype,"nameInput",void 0);_.E([_.gP("#handle-input"),_.T("design:type",Object)],HU.prototype,"handleInput",void 0);
_.E([_.K(),_.T("design:type",Boolean)],HU.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.E([_.K({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.yld}),_.T("design:type",Object)],HU.prototype,"zeroStepErrorMessageEntity",void 0);_.E([_.t("data","data.isDefaultProfilePhoto","previewDataUrl"),_.T("design:type",Object),_.T("design:paramtypes",[])],HU.prototype,"photoThumbnail",null);
_.E([_.t("data","data.isDefaultProfilePhoto","photoThumbnail"),_.T("design:type",Object),_.T("design:paramtypes",[])],HU.prototype,"userSetPhotoThumbnailUrl",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],HU.prototype,"hideProfilePhotoButtonLayer",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],HU.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.E([_.GY("data","zeroStepErrorMessageEntity"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],HU.prototype,"dataChanged",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.descriptionInfo","zeroStepErrorMessageEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],HU.prototype,"description",null);_.E([_.x({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],HU);
_.r(HU,"ytd-channel-creation-dialog-renderer",function(){if(gjv!==void 0)return gjv;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return gjv=l},{mode:1});var vj5;var YJ=function(){var l=_.p.apply(this,arguments)||this;l.isLoading=!1;l.isDisabled=!1;return l};
_.Z(YJ,_.p);YJ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
YJ.prototype.updateDisabled=function(){var l;this.isDisabled=this.isLoading||((l=this.handleInput)==null?void 0:l.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
YJ.prototype.onSaveClick=function(){var l=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var D;((D=this.data)==null?void 0:D.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 U;if((U=l.data)==null?0:U.nextEndpoint){var n;l.ytComponentBehavior.resolveCommand((n=l.data)==null?void 0:n.nextEndpoint)}else l.isLoading=
!1,l.closeDialog()},
onServerError:function(){l.isLoading=!1;l.handleInput.validate();var U;l.errorMessage=(U=l.data)==null?void 0:U.errorMessage}}}))}};
YJ.prototype.closeDialog=function(){_.Vh(this.hostElement,"yt-close-popup-action",[this.is])};
YJ.prototype.updateDisabled=YJ.prototype.updateDisabled;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],YJ.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],YJ.prototype,"data",void 0);_.E([_.gP("#handle-input"),_.T("design:type",Object)],YJ.prototype,"handleInput",void 0);_.E([_.Pg("isLoading"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],YJ.prototype,"updateDisabled",null);
_.E([_.x({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],YJ);
_.r(YJ,"ytd-channel-handle-edit-dialog-renderer",function(){if(vj5!==void 0)return vj5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vj5=l},{mode:1});var QcT;var Ou=function(){return _.p.apply(this,arguments)||this};
_.Z(Ou,_.p);Ou.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ou.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ou.prototype,"data",void 0);_.E([_.x({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Ou);
_.r(Ou,"ytd-channel-switcher-footer-renderer",function(){if(QcT!==void 0)return QcT;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return QcT=l},{mode:1});var GHP;var Jtq;var V3=function(){return _.p.apply(this,arguments)||this};
_.Z(V3,_.p);V3.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
V3.prototype.onIronChange=V3.prototype.onIronChange;_.E([_.K(),_.T("design:type",Object)],V3.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!1}),_.T("design:type",Function)],V3.prototype,"onDontAskAgainChanged",void 0);_.E([_.gP("#checkbox"),_.T("design:type",Object)],V3.prototype,"checkbox",void 0);_.E([_.hj("iron-change"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],V3.prototype,"onIronChange",null);
_.E([_.x({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],V3);
_.r(V3,"ytd-identity-prompt-footer-renderer",function(){if(Jtq!==void 0)return Jtq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Jtq=l},{mode:1});var iF=function(){var l=_.p.apply(this,arguments)||this;l.dontAskAgain=!1;l.showPopup=!1;l.boundDontAskAgainChanged=function(D){l.dontAskAgainChanged(D)};
l.boundOnAccountItemTap=function(D){l.onAccountItemTap(D)};
return l};
_.Z(iF,_.p);_.W=iF.prototype;
_.W.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]]"}}}}}};
_.W.ready=function(){var l=this;_.iJ(this.hostElement).querySelector("#container").addEventListener("scroll",function(){l.ytRendererBehavior.markDirty()})};
_.W.dontAskAgainChanged=function(l){this.dontAskAgain=l};
_.W.onAccountItemTap=function(l){if(l){var D={};this.dontAskAgain&&(D={dont_ask_again:this.dontAskAgain});_.KU(l,D)}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.W.redirectOnlyAccount=function(l){l.sections&&l.sections.length>0&&(l=_.M(l.sections[0],_.Rny),(l==null?0:l.contents)&&(l==null?void 0:l.contents.length)<=1?(l=_.BS(window.location.href),(l==null?0:l.next)&&_.sSc(l.next)?_.KU(l.next):_.KU("/")):this.showPopup=!0)};
iF.prototype.dataChanged=iF.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],iF.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!1}),_.T("design:type",Object)],iF.prototype,"dontAskAgain",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],iF.prototype,"showPopup",void 0);_.E([_.K({reflectToAttribute:!1}),_.T("design:type",Object)],iF.prototype,"boundDontAskAgainChanged",void 0);_.E([_.K({reflectToAttribute:!1}),_.T("design:type",Object)],iF.prototype,"boundOnAccountItemTap",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],iF.prototype,"dataChanged",null);
_.E([_.x({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],iF);
_.r(iF,"ytd-channel-switcher-renderer",function(){if(GHP!==void 0)return GHP;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return GHP=l},{mode:1});var Lyr;var lF=function(){return _.p.apply(this,arguments)||this};
_.Z(lF,_.p);_.QP.Object.defineProperties(lF.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.E([_.K(),_.T("design:type",Object)],lF.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Array),_.T("design:paramtypes",[])],lF.prototype,"steps",null);_.E([_.x({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],lF);
_.r(lF,"ytd-channel-transfer-stepper-renderer",function(){if(Lyr!==void 0)return Lyr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Lyr=l},{mode:1});var q8$;var DG=function(){var l=_.p.apply(this,arguments)||this;l.data=null;l.isError=!1;l.isLoading=!1;return l};
_.Z(DG,_.p);_.W=DG.prototype;_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.W.computeProfileName=function(l){return l?l.givenNameValue+" "+l.familyNameValue:""};
_.W.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)};
_.W.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)};
DG.prototype.onYtServiceRequestError=DG.prototype.onYtServiceRequestError;DG.prototype.onYtServiceRequestSent=DG.prototype.onYtServiceRequestSent;DG.prototype.dataChanged=DG.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],DG.prototype,"data",void 0);
_.E([_.K({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.T("design:type",String)],DG.prototype,"profileName",void 0);_.E([_.K(),_.T("design:type",Object)],DG.prototype,"isError",void 0);_.E([_.K(),_.T("design:type",Object)],DG.prototype,"isLoading",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],DG.prototype,"dataChanged",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],DG.prototype,"onYtServiceRequestSent",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],DG.prototype,"onYtServiceRequestError",null);_.E([_.x({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],DG);
_.r(DG,"ytd-channel-warm-welcome-cont-renderer",function(){if(q8$!==void 0)return q8$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return q8$=l},{mode:1});var MbW;var Uv=function(){var l=_.p.apply(this,arguments)||this;l.data=null;return l};
_.Z(Uv,_.p);Uv.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Uv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Uv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Uv.prototype,"data",void 0);_.E([_.x({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Uv);
_.r(Uv,"ytd-channel-warm-welcome-renderer",function(){if(MbW!==void 0)return MbW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return MbW=l},{mode:1});var RS$;var nQ=function(){return _.p.apply(this,arguments)||this};
_.Z(nQ,_.p);_.QP.Object.defineProperties(nQ.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.authorThumbnail)||{}}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],nQ.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],nQ.prototype,"thumbnailDetails",null);_.E([_.x({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],nQ);
_.r(nQ,"ytd-comment-preview-renderer",function(){if(RS$!==void 0)return RS$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return RS$=l},{mode:1});var ZvJ;var yx=function(){return _.p.apply(this,arguments)||this};
_.Z(yx,_.p);yx.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.QP.Object.defineProperties(yx.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.submitButton}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],yx.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],yx.prototype,"submitButton",null);_.E([_.x({is:"ytd-notice-renderer",disableElementRegistration:!0})],yx);
_.r(yx,"ytd-notice-renderer",function(){if(ZvJ!==void 0)return ZvJ;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return ZvJ=l},{mode:1});var eSq;var AD=function(){return _.p.apply(this,arguments)||this};
_.Z(AD,_.p);AD.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],AD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],AD.prototype,"data",void 0);_.E([_.x({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],AD);
_.r(AD,"ytd-preview-comment-dialog-content",function(){if(eSq!==void 0)return eSq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return eSq=l},{mode:1});var mpq;var WW=function(){return _.p.apply(this,arguments)||this};
_.Z(WW,_.p);WW.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
WW.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],WW.prototype,"data",void 0);_.E([_.x({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],WW);
_.r(WW,"ytd-preview-comment-dialog-renderer",function(){if(mpq!==void 0)return mpq;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return mpq=l},{mode:1});var a65;var tb2=_.q("web_button_rework")&&_.il("BUTTON_REWORK")||_.q("web_button_rework_with_live"),BW=function(){var l=_.p.apply(this,arguments)||this;l.closeLabel=_.C3("CLOSE");l.selectedAmountIndex=1;l.privacyCheckboxValue=!1;l.useAmsterdamStyle=tb2;l.amountPlaceholderIndex=-1;return l};
_.Z(BW,_.p);_.W=BW.prototype;_.W.onAmountClick=function(l){this.selectedAmountIndex=_.iJ(this.hostElement).querySelector("#amounts").indexForElement(l.currentTarget)};
_.W.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Vh(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.W.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Vh(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Vh(this.hostElement,"yt-close-popup-action",[this.is]);var l;(l=_.T4())==null||l.getPlayerPromise().then(function(D){D.pauseVideo()})}};
_.W.donationCallback=function(l){l.success?(this.hostElement.hasAttribute("live-chat")&&l.response&&l.response.data&&l.response.data.actions&&_.Vh(this.hostElement,"yt-live-chat-open-popup",[l.response.data.actions[0]]),_.Vh(this.hostElement,"yt-close-popup-action",[this.is]),_.Vh(this.hostElement,"yt-live-chat-close-buy-flow")):l.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(l.errorMessageRenderer)};
_.W.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.iJ(this.hostElement).querySelector("#custom-amount-input").focus()};
_.W.updateConfirmationDialogTextWithAmount=function(l){var D=this.getConfirmDialogRuns();D&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(D),"text"],this.getFormattedAmount(l))};
_.W.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.W.getAmountPlaceholderIndex=function(l){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=l.findIndex(function(D){return D.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.W.getFormattedAmount=function(l){var D;return(new _.oJ(4,((D=this.data)==null?void 0:D.currencyCode)||"")).format(l)};
_.W.isAmountValid=function(l){if(l==="")return!1;l=Number(l)*1E6;var D=this.get("minAmountMicros",this.data),U=this.get("maxAmountMicros",this.data);return D&&l<D||U&&l>U?!1:!0};
_.W.setInputError=function(){this.shouldShowValidationError?_.iJ(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.iJ(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.W.setInitialCheckboxValue=function(){var l;this.privacyCheckboxValue=!((l=this.data)==null||!l.privacyCheckboxInitialState)};
_.W.updateCustomAmountInputFromBinding=function(l){this.customAmountInput=l.detail.value};
_.W.updatePrivacyCheckboxValueFromBinding=function(l){this.privacyCheckboxValue=l.detail.value};
_.QP.Object.defineProperties(BW.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var l=this,D,U;return((D=this.data)==null?void 0:(U=D.suggestedAmounts)==null?void 0:U.map(function(n,y){return{buttonRenderer:{style:l.selectedAmountIndex===y?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:n.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 l;return!((l=this.data)==null||!l.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 l=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(l&&this.amountMicros!==null)return Object.assign({},l,{ypcGetCartEndpoint:Object.assign({},l.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 l=this.get("confirmLargeAmount",this.data);if(l&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),l}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var l=this.get("donateButton.buttonRenderer",this.data);if(l)return Object.assign({},l,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
BW.prototype.setInitialCheckboxValue=BW.prototype.setInitialCheckboxValue;BW.prototype.setInputError=BW.prototype.setInputError;BW.prototype.setFocusOnCustomAmountInput=BW.prototype.setFocusOnCustomAmountInput;_.E([_.m(dvw),_.T("design:type",Object)],BW.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],BW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],BW.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],BW.prototype,"closeLabel",void 0);_.E([_.K(),_.T("design:type",Object)],BW.prototype,"selectedAmountIndex",void 0);_.E([_.K(),_.T("design:type",String)],BW.prototype,"customAmountInput",void 0);_.E([_.K(),_.T("design:type",Object)],BW.prototype,"privacyCheckboxValue",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],BW.prototype,"useAmsterdamStyle",void 0);_.E([_.Pg("customAmount"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],BW.prototype,"setFocusOnCustomAmountInput",null);_.E([_.t("data","selectedAmountIndex"),_.T("design:type",Array),_.T("design:paramtypes",[])],BW.prototype,"suggestedAmountButtons",null);
_.E([_.t("data","selectedAmountIndex"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BW.prototype,"isCustomAmountSelected",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BW.prototype,"showPrivacyCheckbox",null);_.E([_.t("data","selectedAmountIndex","customAmount"),_.T("design:type",Object),_.T("design:paramtypes",[])],BW.prototype,"amountMicros",null);
_.E([_.t("isCustomAmountSelected","customAmountInput"),_.T("design:type",Object),_.T("design:paramtypes",[])],BW.prototype,"customAmount",null);_.E([_.t("customAmount"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BW.prototype,"shouldShowValidationError",null);_.E([_.t("customAmount"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],BW.prototype,"isDonateButtonEnabled",null);
_.E([_.t("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.T("design:type",Object),_.T("design:paramtypes",[])],BW.prototype,"donateCommand",null);_.E([_.t("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.T("design:type",Object),_.T("design:paramtypes",[])],BW.prototype,"donateCommandWithConfirmation",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],BW.prototype,"largeDonationThreshold",null);
_.E([_.t("customAmount","donateCommand","amountMicros"),_.T("design:type",Object),_.T("design:paramtypes",[])],BW.prototype,"confirmLargeAmountCommand",null);_.E([_.t("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.T("design:type",Object),_.T("design:paramtypes",[])],BW.prototype,"donateButtonRenderer",null);_.E([_.Pg("shouldShowValidationError"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],BW.prototype,"setInputError",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],BW.prototype,"setInitialCheckboxValue",null);_.E([_.x({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],BW);
_.r(BW,"ytd-donation-amount-picker-renderer",function(){if(a65!==void 0)return a65;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return a65=l},{mode:1});var X42;var S8w=function(){return _.p.apply(this,arguments)||this};
_.Z(S8w,_.p);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],S8w.prototype,"ytComponentBehavior",void 0);_.E([_.K({}),_.T("design:type",Object)],S8w.prototype,"data",void 0);_.E([_.x({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],S8w);
_.r(S8w,"ytd-donation-post-transaction-content",function(){if(X42!==void 0)return X42;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return X42=l},{mode:1});var kHH;var CQ=function(){return _.p.apply(this,arguments)||this};
_.Z(CQ,_.p);CQ.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.E([_.K({}),_.T("design:type",Object)],CQ.prototype,"data",void 0);_.E([_.x({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],CQ);
_.r(CQ,"ytd-donation-post-transaction-renderer",function(){if(kHH!==void 0)return kHH;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return kHH=l},{mode:1});var dpq;var KyH;var hD=function(){return _.p.apply(this,arguments)||this};
_.Z(hD,_.p);hD.prototype.computeIsStreamingProvider=function(l){return!!l.isStreamingShelf};
hD.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hD.prototype,"data",void 0);_.E([_.K({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],hD.prototype,"isStreamingProvider",void 0);
_.E([_.x({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],hD);
_.r(hD,"ytd-media-provider-renderer",function(){if(KyH!==void 0)return KyH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return KyH=l},{mode:1});var ct2;var PW=function(){return _.p.apply(this,arguments)||this};
_.Z(PW,_.p);PW.prototype.observeLightsourcePalette=function(){var l,D=(l=this.data)==null?void 0:l.vibrantsourceColorPaletteData;D&&_.qh(this.hostElement,D)};
PW.prototype.observeLightsourcePalette=PW.prototype.observeLightsourcePalette;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],PW.prototype,"data",void 0);
_.E([_.Pg("data.vibrantsourceColorPaletteData"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],PW.prototype,"observeLightsourcePalette",null);_.E([_.x({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],PW);
_.r(PW,"ytd-streaming-pop-up-dialog",function(){if(ct2!==void 0)return ct2;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ct2=l},{mode:1});var bF=function(){return _.p.apply(this,arguments)||this};
_.Z(bF,_.p);bF.prototype.onPopupOpened_=function(){var l;((l=this.data)==null?0:l.serviceEndpoint)&&_.Jc().resolve(_.qK).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
bF.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
bF.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"}}}}};
bF.prototype.onPopupOpened_=bF.prototype.onPopupOpened_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.vf),_.T("design:type",Object)],bF.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],bF.prototype,"data",void 0);
_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],bF.prototype,"onPopupOpened_",null);_.E([_.x({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],bF);
_.r(bF,"ytd-brandconnect-popup-renderer",function(){if(dpq!==void 0)return dpq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return dpq=l},{mode:1});var p4r;var go=function(){return _.p.apply(this,arguments)||this};
_.Z(go,_.p);_.W=go.prototype;_.W.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(){for(var l=0;l<this.getOptionRenderers().length;l++)this.notifyPath("data.options."+l+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+l+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.W.updateSubmitButton=function(l){this.set("data.submitButton.buttonRenderer.isDisabled",!l)};
_.W.computeAlt=function(l){return _.Nl(l)};
_.W.onDismissTap=function(){_.Vh(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Jc().resolve(_.qK).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.W.getOptionRenderers=function(l){return(l=l||this.data)&&l.options?l.options.reduce(function(D,U){U.checkboxSurveyOptionRenderer&&D.push(U.checkboxSurveyOptionRenderer);return D},[]):[]};
_.W.onOptionChange=function(l){var D=this,U=!1;if(l.detail.checked)for(var n=this.getOptionRenderers().find(function(h){return h.value===l.detail.value}),y=this.getOptionRenderers(),A=0;A<y.length;A++){var C=y[A];
this.notifyPath("data.options."+A+".checkboxSurveyOptionRenderer.checked");C.checked&&((n==null?0:n.isExclusiveOption)?!C.isExclusiveOption:C.isExclusiveOption)?this.set("data.options."+A+".checkboxSurveyOptionRenderer.checked",!1):C.checked&&(U=!0)}else U=this.getOptionRenderers().some(function(h,b){D.notifyPath("data.options."+b+".checkboxSurveyOptionRenderer.checked");return h.checked});
this.updateSubmitButton(U)};
_.W.onSubmitTap=function(){var l=this.getOptionRenderers().filter(function(A){return A.checked});
if(l.length!==0){var D=l.map(function(A){return A.responseEndpoint});
l=[];for(var U=1;U<D.length;U++){var n=void 0,y=(n=_.M(D[U],_.mC))==null?void 0:n.feedbackToken;y&&l.push(y)}D=[D[0]];l.length&&D.push({extra_feedback_tokens:l});_.lu(this.hostElement,D);_.Vh(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);l=this.data&&this.data.submitActions||[];if(_.q("kevlar_command_handler_migration_killswitch"))_.DP(this.hostElement,l,this.hostElement);else for(l=_.B(l),D=l.next();!D.done;D=l.next())this.ytComponentBehavior.resolveCommand(D.value)}};
go.prototype.onOptionChange=go.prototype.onOptionChange;go.prototype.dataChanged=go.prototype.dataChanged;_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],go.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],go.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],go.prototype,"ytComponentBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.E([_.m(HV$),_.T("design:type",Object)],go.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],go.prototype,"data",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],go.prototype,"dataChanged",null);
_.E([_.hj("ytd-checkbox-survey-option-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],go.prototype,"onOptionChange",null);_.E([_.x({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],go);
_.r(go,"ytd-checkbox-survey-renderer",function(){if(p4r!==void 0)return p4r;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return p4r=l},{mode:1});var xp5;var jcr;var uF=function(){return _.p.apply(this,arguments)||this};
_.Z(uF,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.E([_.m(I$5),_.T("design:type",Object)],uF.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],uF.prototype,"data",void 0);_.E([_.x({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],uF);
_.r(uF,"ytd-dismissal-reason-text-renderer",function(){if(jcr!==void 0)return jcr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return jcr=l},{mode:1});var FyJ;var vW=function(){return _.p.apply(this,arguments)||this};
_.Z(vW,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.E([_.m(I$5),_.T("design:type",Object)],vW.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vW.prototype,"data",void 0);_.E([_.x({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],vW);
_.r(vW,"ytd-dismissal-reason-video-renderer",function(){if(FyJ!==void 0)return FyJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return FyJ=l},{mode:1});var Qx=function(){return _.p.apply(this,arguments)||this};
_.Z(Qx,_.p);_.W=Qx.prototype;_.W.created=function(){this.selectedFeedbackTokens=new Ru};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.W.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.W.onDismissalReasonSelected=function(l,D){_.O9(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(D);this.hasReasonsSelected=!0};
_.W.onDismissalReasonDeselected=function(l,D){_.O9(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(D);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.W.onCancelTap=function(){_.Vh(this.hostElement,"yt-close-popup-action")};
_.W.onSubmitTap=function(){var l=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(l={feedback_tokens:l},_.Jc().resolve(_.qK).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},l,{element:this.hostElement})}));_.Vh(this.hostElement,"yt-close-popup-action")};
Qx.prototype.onDismissalReasonDeselected=Qx.prototype.onDismissalReasonDeselected;Qx.prototype.onDismissalReasonSelected=Qx.prototype.onDismissalReasonSelected;Qx.prototype.dataChanged=Qx.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Qx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Qx.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Boolean)],Qx.prototype,"hasReasonsSelected",void 0);_.E([_.K(),_.T("design:type",Ru)],Qx.prototype,"selectedFeedbackTokens",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Qx.prototype,"dataChanged",null);_.E([_.hj("yt-dismissal-reason-selected"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,String]),_.T("design:returntype")],Qx.prototype,"onDismissalReasonSelected",null);
_.E([_.hj("yt-dismissal-reason-deselected"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,String]),_.T("design:returntype")],Qx.prototype,"onDismissalReasonDeselected",null);_.E([_.x({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Qx);
_.r(Qx,"ytd-dismissal-follow-up-renderer",function(){if(xp5!==void 0)return xp5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return xp5=l},{mode:1});var oj5;var GK=function(){return _.p.apply(this,arguments)||this};
_.Z(GK,_.p);_.W=GK.prototype;_.W.onCheckedChange=function(){this.multiselect||_.O9(this.hostElement,"yt-feedback-single-select-changed");_.iJ(this.hostElement).querySelector("#freeform").focus();_.O9(this.hostElement,"yt-refit")};
_.W.showTextBox=function(l,D){return l&&D};
_.W.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))};
_.W.updateDataCheckedFromBinding=function(l){this.set("data.checked",l.detail.value)};
_.W.updateDataResultTextFromBinding=function(l){this.set("data.resultText",l.detail.value)};
GK.prototype.dataChanged=GK.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],GK.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],GK.prototype,"multiselect",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],GK.prototype,"dataChanged",null);
_.E([_.x({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],GK);
_.r(GK,"ytd-feedback-option-renderer",function(){if(oj5!==void 0)return oj5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return oj5=l},{mode:1});var w4H;var JD=function(){return _.p.apply(this,arguments)||this};
_.Z(JD,_.p);JD.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
JD.prototype.onSingleSelectCheckedChanged=function(l){l=_.NN(l);for(var D=0;D<this.data.options.length;D++)if(l.data!==_.M(this.data.options[D],BpP)){var U="data.options."+D+".feedbackOptionRenderer.checked";this.notifyPath(U);this.set(U,!1)}};
JD.prototype.onSingleSelectCheckedChanged=JD.prototype.onSingleSelectCheckedChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],JD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],JD.prototype,"data",void 0);
_.E([_.hj("yt-feedback-single-select-changed"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],JD.prototype,"onSingleSelectCheckedChanged",null);_.E([_.x({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],JD);
_.r(JD,"ytd-feedback-question-renderer",function(){if(w4H!==void 0)return w4H;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return w4H=l},{mode:1});var rtW;var LQ=function(){return _.p.apply(this,arguments)||this};
_.Z(LQ,_.p);LQ.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
LQ.prototype.getSelectedFeedbackResults=function(){for(var l={},D=0;D<this.data.questions.length;D++)for(var U=_.M(this.data.questions[D],Wh2),n=0;n<U.options.length;n++){var y=_.M(U.options[n],BpP);y&&y.checked&&(l[y.optionKey]=y.resultText)}return l};
LQ.prototype.onKeyUp=function(){var l=this;_.Vu(_.Tn,function(){_.O9(l.hostElement,"yt-refit")});
_.Tn.start()};
LQ.prototype.submitSurvey=function(){var l=this.getSelectedFeedbackResults();Object.keys(l).length>0&&this.data.submitFeedbackEndpoint&&(l={survey_results:l,is_feedback_token_unencrypted:!0},_.Jc().resolve(_.qK).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},l,{element:this.hostElement})}))};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],LQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],LQ.prototype,"data",void 0);_.E([_.x({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],LQ);
_.r(LQ,"ytd-feedback-survey-renderer",function(){if(rtW!==void 0)return rtW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return rtW=l},{mode:1});var zS8;var f6J;var q5=function(){return _.p.apply(this,arguments)||this};
_.Z(q5,_.p);q5.prototype.computeAlt=function(l){return _.Nl(l)};
q5.prototype.submitResponse=function(){var l,D;(l=this.data)!=null&&l.feedbackToken&&((D=this.data)==null?void 0:D.nextStageIndex)!==void 0&&(_.iu(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.iu(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
q5.prototype.onClick=function(){this.submitResponse()};
q5.prototype.onClick=q5.prototype.onClick;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],q5.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],q5.prototype,"vertical",void 0);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],q5.prototype,"onClick",null);
_.E([_.x({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],q5);
_.r(q5,"ytd-single-select-answer-option-renderer",function(){if(f6J!==void 0)return f6J;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return f6J=l},{mode:1});var $p$;var M5=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return l};
_.Z(M5,_.p);M5.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
M5.prototype.dataChanged=function(){var l,D;this.vertical=((D=(l=this.data)==null?void 0:l.answerOrientation)!=null?D:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
M5.prototype.submitFeedback=function(l){var D;((D=this.data)==null?0:D.responseEndpoint)&&l&&_.lu(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[l]}])};
M5.prototype.dataChanged=M5.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],M5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],M5.prototype,"eventForwardingBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],M5.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],M5.prototype,"vertical",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],M5.prototype,"dataChanged",null);_.E([_.x({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],M5);
_.r(M5,"ytd-single-select-question-renderer",function(){if($p$!==void 0)return $p$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return $p$=l},{mode:1});var RX=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return l};
_.Z(RX,_.p);_.W=RX.prototype;_.W.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"}}}};
_.W.dataChanged=function(){this.jumpToStage(0)};
_.W.jumpToStage=function(l){var D,U;if((D=this.data)==null?0:(U=D.stages)==null?0:U[l])this.currentStage=this.data.stages[l],this.refitAfterRender()};
_.W.computeAlt=function(l){return _.Nl(l)};
_.W.computeSimpleMessage=function(l){var D;return(D=_.M(l,Piv))==null?void 0:D.messageText};
_.W.computeHideDismiss=function(l){var D;return(D=_.M(l,Fo$))==null?void 0:D.hideParentDismissButton};
_.W.onDismissTap=function(){_.Vh(this.hostElement,"yt-close-popup-action");_.M(this.currentStage,Piv)||this.data.dismissalEndpoint&&_.Jc().resolve(_.qK).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.W.refitAfterRender=function(){var l=this;_.u6(this,function(){_.O9(l.hostElement,"yt-refit")})};
RX.prototype.dataChanged=RX.prototype.dataChanged;_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],RX.prototype,"eventForwardingBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],RX.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m(HV$),_.T("design:type",Object)],RX.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],RX.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],RX.prototype,"currentStage",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],RX.prototype,"dataChanged",null);_.E([_.x({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],RX);
_.r(RX,"ytd-multi-stage-survey-renderer",function(){if(zS8!==void 0)return zS8;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return zS8=l},{mode:1});var N2J;var ZG=function(){return _.p.apply(this,arguments)||this};
_.Z(ZG,_.p);ZG.prototype.computeAlt=function(l){return _.Nl(l)};
ZG.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.Jc().resolve(_.qK).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Vh(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.PJ8(!1)))};
ZG.prototype.onTap=function(){this.vertical&&this.submitResponse()};
ZG.prototype.onTap=ZG.prototype.onTap;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],ZG.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ZG.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],ZG.prototype,"vertical",void 0);
_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ZG.prototype,"onTap",null);_.E([_.x({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],ZG);
_.r(ZG,"ytd-single-option-survey-option-renderer",function(){if(N2J!==void 0)return N2J;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return N2J=l},{mode:1});var scq;var e1=function(){return _.p.apply(this,arguments)||this};
_.Z(e1,_.p);_.W=e1.prototype;_.W.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(){var l,D;this.vertical=(((l=this.data)==null?void 0:(D=l.surveyOrientation)==null?void 0:D.type)||"HORIZONTAL")==="VERTICAL"};
_.W.computeAlt=function(l){return _.Nl(l)};
_.W.onDismissTap=function(){_.Vh(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.Jc().resolve(_.qK).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.PJ8(!1))};
e1.prototype.dataChanged=e1.prototype.dataChanged;_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],e1.prototype,"eventForwardingBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(HV$),_.T("design:type",Object)],e1.prototype,"ytdHatsSurveyBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],e1.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],e1.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],e1.prototype,"vertical",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],e1.prototype,"dataChanged",null);_.E([_.x({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],e1);
_.r(e1,"ytd-single-option-survey-renderer",function(){if(scq!==void 0)return scq;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return scq=l},{mode:1});var Ej2;var mA=function(){return _.p.apply(this,arguments)||this};
_.Z(mA,_.p);mA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mA.prototype.onDismissTap=function(){_.Vh(this.hostElement,"yt-close-popup-action")};
mA.prototype.onNavigate=function(){_.Vh(this.hostElement,"yt-close-popup-action")};
mA.prototype.onNavigate=mA.prototype.onNavigate;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],mA.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],mA.prototype,"data",void 0);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],mA.prototype,"onNavigate",null);
_.E([_.x({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],mA);
_.r(mA,"ytd-survey-follow-up-renderer",function(){if(Ej2!==void 0)return Ej2;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Ej2=l},{mode:1});var T2H;var I62;var Hvv;var aX=function(){var l=_.p.apply(this,arguments)||this;l.polymer2="Element"in Polymer;return l};
_.Z(aX,_.p);_.W=aX.prototype;_.W.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.W.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.W.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.W.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("minutes-changed",this.minutes))};
_.W.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("seconds-changed",this.seconds))};
_.W.updateMinutesFromBinding=function(l){this.minutes=l.detail.value};
_.W.updateSecondsFromBinding=function(l){this.seconds=l.detail.value};
aX.prototype.secondsChangedForBinding=aX.prototype.secondsChangedForBinding;aX.prototype.minutesChangedForBinding=aX.prototype.minutesChangedForBinding;aX.prototype.secondsChanged=aX.prototype.secondsChanged;_.E([_.K(),_.T("design:type",String)],aX.prototype,"minutes",void 0);_.E([_.K(),_.T("design:type",String)],aX.prototype,"seconds",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],aX.prototype,"polymer2",void 0);
_.E([_.gP("#seconds"),_.T("design:type",Object)],aX.prototype,"secondsEl",void 0);_.E([_.Pg("seconds"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aX.prototype,"secondsChanged",null);_.E([_.Pg("minutes"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aX.prototype,"minutesChangedForBinding",null);
_.E([_.Pg("seconds"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],aX.prototype,"secondsChangedForBinding",null);_.E([_.S0({is:"yt-timestamp-input",disableElementRegistration:!0})],aX);
_.r(aX,"yt-timestamp-input",function(){if(Hvv===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;I62===void 0&&(I62=document.createElement("template"));var n=I62;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Hvv=l}l=Hvv;return l},{mode:2});var tD=function(){return _.p.apply(this,arguments)||this};
_.Z(tD,_.p);_.W=tD.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20766_scroller.dialogElement=this.hostElement.parentNode};
_.W.dataChanged=function(){var l=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.IL().getPlayerPromise().then(function(D){D=D.getCurrentTime();l.minutes=Math.floor(D/60).toString();l.seconds=(Math.floor(D)%60).toString()})};
_.W.onTapSubmit=function(l){l.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(l={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(l.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(l.minutes=this.minutes,l.seconds=this.seconds),_.Jc().resolve(_.qK).resolveCommand(this.serviceEndpoint,{form:Object.assign({},l,{element:this.hostElement})}))};
_.W.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.W.onYtServiceRequestCompleted=function(l,D){D=D.actions;if(Array.isArray(D))for(var U=0,n=D.length;U<n;U++)_.M(D[U],_.rA)&&(l.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(D[U]))};
_.W.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.W.toggleSubmitButton=function(l){this.set("submitButton.isDisabled",!l)};
_.W.handleInput=function(){var l=this.issueType,D=this.affiliation,U=this.minutes,n=this.seconds;U=!this.showTimestamp||!!U&&!!n;this.toggleSubmitButton(!!this.descriptionText&&!!l&&!!D&&U)};
_.W.computeServiceEndpoint=function(l){return this.get("submitButton.buttonRenderer.serviceEndpoint",l)};
_.W.computeSubmitButton=function(l){(l=this.get("submitButton.buttonRenderer",l))&&(l=Object.assign({},l,{serviceEndpoint:void 0}));return l};
_.W.computeShowTimestamp=function(l){return!!l};
_.W.onValueChangedForIssueType=function(l){this.issueType=l.detail.value};
_.W.onValueChangedForAffiliation=function(l){this.affiliation=l.detail.value};
_.W.updateDescriptionTextFromBinding=function(l){this.descriptionText=l.detail.value};
_.W.updateFullNameTextFromBinding=function(l){this.fullNameText=l.detail.value};
_.W.updateMinutesFromBinding=function(l){this.minutes=l.detail.value};
_.W.updateSecondsFromBinding=function(l){this.seconds=l.detail.value};
tD.prototype.handleInput=tD.prototype.handleInput;tD.prototype.onYtServiceRequestError=tD.prototype.onYtServiceRequestError;tD.prototype.onYtServiceRequestCompleted=tD.prototype.onYtServiceRequestCompleted;tD.prototype.onYtServiceRequestSent=tD.prototype.onYtServiceRequestSent;tD.prototype.dataChanged=tD.prototype.dataChanged;_.E([_.m(_.kk.YtOpenPopupBehavior),_.T("design:type",Object)],tD.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.E([_.gP("#scroller"),_.T("design:type",Object)],tD.prototype,"JSC$20766_scroller",void 0);_.E([_.gP("#description"),_.T("design:type",HTMLInputElement)],tD.prototype,"description",void 0);_.E([_.gP("#full-name"),_.T("design:type",Object)],tD.prototype,"fullName",void 0);_.E([_.K(),_.T("design:type",Object)],tD.prototype,"data",void 0);
_.E([_.K({computed:"computeShowTimestamp(data.timestampLabel)"}),_.T("design:type",Boolean)],tD.prototype,"showTimestamp",void 0);_.E([_.K({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.T("design:type",Object)],tD.prototype,"serviceEndpoint",void 0);_.E([_.K({computed:"computeSubmitButton(data)"}),_.T("design:type",Object)],tD.prototype,"submitButton",void 0);_.E([_.K(),_.T("design:type",String)],tD.prototype,"descriptionText",void 0);
_.E([_.K(),_.T("design:type",Number)],tD.prototype,"issueType",void 0);_.E([_.K(),_.T("design:type",Number)],tD.prototype,"affiliation",void 0);_.E([_.K(),_.T("design:type",String)],tD.prototype,"fullNameText",void 0);_.E([_.K(),_.T("design:type",String)],tD.prototype,"minutes",void 0);_.E([_.K(),_.T("design:type",String)],tD.prototype,"seconds",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tD.prototype,"dataChanged",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],tD.prototype,"onYtServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],tD.prototype,"onYtServiceRequestCompleted",null);
_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],tD.prototype,"onYtServiceRequestError",null);_.E([_.Pg("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],tD.prototype,"handleInput",null);_.E([_.x({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],tD);
_.r(tD,"ytd-legal-report-details-form-renderer",function(){if(T2H!==void 0)return T2H;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return T2H=l},{mode:1});var Y88;var XV=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return l};
_.Z(XV,_.p);XV.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
XV.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var l=this.formRenderer.getForm();l&&this.data.submitEndpoint&&(_.Jc().resolve(_.qK).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},l,{element:this.hostElement})}),_.Vh(this.hostElement,"yt-close-popup-action"))}};
XV.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Vh(this.hostElement,"yt-close-popup-action"))};
XV.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
XV.prototype.onPopupClosed=XV.prototype.onPopupClosed;_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],XV.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],XV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);
_.E([_.gP("yt-form-renderer"),_.T("design:type",Object)],XV.prototype,"formRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],XV.prototype,"data",void 0);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],XV.prototype,"onPopupClosed",null);_.E([_.x({is:"ytd-form-popup-content",disableElementRegistration:!0})],XV);
_.r(XV,"ytd-form-popup-content",function(){if(Y88!==void 0)return Y88;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Y88=l},{mode:1});var Ovq;var S1=function(){return _.p.apply(this,arguments)||this};
_.Z(S1,_.p);S1.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
S1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
S1.prototype.onPopupOpened=function(){_.O9(this.hostElement,"yt-invalidate-popup-tabbables")};
S1.prototype.onYtServiceRequestCompleted=function(l,D){D.data&&D.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.O9(this.hostElement,"yt-invalidate-popup-tabbables"))};
S1.prototype.onYtServiceRequestCompleted=S1.prototype.onYtServiceRequestCompleted;S1.prototype.onPopupOpened=S1.prototype.onPopupOpened;_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],S1.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],S1.prototype,"data",void 0);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],S1.prototype,"onPopupOpened",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],S1.prototype,"onYtServiceRequestCompleted",null);_.E([_.x({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],S1);
_.r(S1,"ytd-form-popup-renderer",function(){if(Ovq!==void 0)return Ovq;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Ovq=l},{mode:1});var VbJ;var kD=function(){var l=_.p.apply(this,arguments)||this;l.isLoading=!1;return l};
_.Z(kD,_.p);_.W=kD.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");dDT(this.hostElement)};
_.W.onYtServiceRequestSent=function(){this.isLoading=!0};
_.W.onYtServiceRequestCompleted=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.W.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.DP(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.W.closePopupHandler=function(){this.fireOnCloseActions()};
_.W.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var l=this.get("data.headerImage.thumbnails");l&&(l=_.IO(l,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+l+")")}};
_.W.onYtNavigate=function(l){(l=_.NN(l))&&l.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
kD.prototype.onYtNavigate=kD.prototype.onYtNavigate;kD.prototype.onHeaderImageChanged=kD.prototype.onHeaderImageChanged;kD.prototype.closePopupHandler=kD.prototype.closePopupHandler;kD.prototype.onYtServiceRequestCompleted=kD.prototype.onYtServiceRequestCompleted;kD.prototype.onYtServiceRequestSent=kD.prototype.onYtServiceRequestSent;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],kD.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],kD.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],kD.prototype,"isLoading",void 0);_.E([_.gP("#header"),_.T("design:type",HTMLDivElement)],kD.prototype,"header",void 0);_.E([_.gP("#confirm-button"),_.T("design:type",_.r9)],kD.prototype,"confirmButton",void 0);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],kD.prototype,"onYtServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],kD.prototype,"onYtServiceRequestCompleted",null);
_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],kD.prototype,"closePopupHandler",null);_.E([_.Pg("data.headerImage"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kD.prototype,"onHeaderImageChanged",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],kD.prototype,"onYtNavigate",null);
_.E([_.x({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],kD);
_.r(kD,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(VbJ!==void 0)return VbJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return VbJ=l},{mode:1});var iR2;var KQ=function(){var l=_.p.apply(this,arguments)||this;l.isLoading=!1;return l};
_.Z(KQ,_.p);_.W=KQ.prototype;_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);dDT(this.hostElement)};
_.W.onYtServiceRequestCompleted=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.W.onYtServiceRequestError=function(l){_.F7(this.hostElement,l.detail.error.message)};
_.W.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.W.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Vh(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.W.onDataChanged=function(){this.isLoading=!1;var l=this.get("data.headerImage.thumbnails");l&&(l=_.IO(l,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+l+")");l=_.t6();var D=_.aS(),U=this.get("data.trackingParams");U&&D&&l&&_.jz(l,D,_.v9(U))};
_.QP.Object.defineProperties(KQ.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
KQ.prototype.onDataChanged=KQ.prototype.onDataChanged;KQ.prototype.onDomChange=KQ.prototype.onDomChange;KQ.prototype.onYtServiceRequestError=KQ.prototype.onYtServiceRequestError;KQ.prototype.onYtServiceRequestCompleted=KQ.prototype.onYtServiceRequestCompleted;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],KQ.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],KQ.prototype,"isLoading",void 0);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],KQ.prototype,"hasDescription",null);_.E([_.gP("tp-yt-paper-dialog-scrollable"),_.T("design:type",Object)],KQ.prototype,"scrollable",void 0);_.E([_.gP("#header"),_.T("design:type",HTMLElement)],KQ.prototype,"header",void 0);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],KQ.prototype,"onYtServiceRequestCompleted",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],KQ.prototype,"onYtServiceRequestError",null);
_.E([_.hj("dom-change"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],KQ.prototype,"onDomChange",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],KQ.prototype,"onDataChanged",null);_.E([_.x({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],KQ);
_.r(KQ,"ytd-gaming-account-link-setting-renderer",function(){if(iR2!==void 0)return iR2;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return iR2=l},{mode:1});var lMW;var Dm$;var cW=function(){var l=_.p.apply(this,arguments)||this;l.isHeader=!1;l.getEndpointForm=function(){return pmJ(l.data)};
return l};
_.Z(cW,_.p);_.W=cW.prototype;_.W.triggerHintActions=function(){var l=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var D=_.iu(l.hostElement,"yt-get-opened-popups-action");!(D&&D.length===1?D[0]:[]).some(function(U){U=U.openPopupAction.popupType;return U==="SURVEY"||U==="MEALBAR"||U==="HINT"})&&l.data.hintActions&&l.guideOpened&&(_.DP(l.hostElement,l.data.hintActions,l.hostElement),l.data.hintActions=void 0)})};
_.W.getBadgeIconType=function(l){return l&&l.liveBroadcasting?"live":null};
_.W.onDown=function(){this.interaction.triggerDown()};
_.W.onUp=function(){this.interaction.triggerUp()};
_.W.onTap=function(l){if(this.data.serviceEndpoint){var D;_.q("shorts_controller_retrieve_seedless_sequence_v2")&&((D=_.M(this.data.serviceEndpoint,_.vk))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):cUT(this.data.serviceEndpoint,this);l.preventDefault()}else this.data.navigationEndpoint&&!_.$o(_.$f(l),this.hostElement,["A".toString()])&&_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.W.computeActive=function(l,D){if(!l)return!1;var U=l.navigationEndpoint;l=l.serviceEndpoint;if(!U&&!l||!D)return!1;if(U){l=(l=_.hu(D))&&["subscriptions","filteredsubscriptions"].includes(l);if(_.M(U,_.Pk)&&_.M(D,_.Pk)&&!l){var n=_.M(U,_.Pk).browseId;D=_.M(D,_.Pk).browseId;return n!==void 0&&D!==void 0&&(n===D||n==="VLWL"&&D==="FEwatch_later"||n==="FEwatch_later"&&D==="VLWL")}var y;U=(y=_.M(U.commandMetadata,_.W6))==null?void 0:y.url;D=(n=_.M(D.commandMetadata,_.W6))==null?void 0:n.url;return!(!U||
!D||U!==D&&U!==_.kZ(D))}return this.isActiveShortsTab(l,D)};
_.W.isActiveShortsTab=function(l,D){D=!!_.M(D,_.vk)||!!_.M(D,_.DS);return(!!_.M(l,_.vk)||!!_.M(l,_.DS))&&D};
_.W.computeIsPrimary=function(l){return!!l};
_.QP.Object.defineProperties(cW.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 l=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&l)return l}}});
cW.prototype.onTap=cW.prototype.onTap;cW.prototype.onUp=cW.prototype.onUp;cW.prototype.onDown=cW.prototype.onDown;cW.prototype.triggerHintActions=cW.prototype.triggerHintActions;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],cW.prototype,"componentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],cW.prototype,"rendererBehavior",void 0);_.E([_.m(_.ua.YtTaskEmitterBehavior),_.T("design:type",Object)],cW.prototype,"taskEmitterBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],cW.prototype,"activeEndpoint",void 0);_.E([_.K(),_.T("design:type",Object)],cW.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],cW.prototype,"guideOpened",void 0);_.E([_.K(),_.T("design:type",String)],cW.prototype,"type",void 0);_.E([_.gP("yt-interaction"),_.T("design:type",Object)],cW.prototype,"interaction",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],cW.prototype,"isHeader",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("data","activeEndpoint"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],cW.prototype,"active",null);_.E([_.K({reflectToAttribute:!0}),_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],cW.prototype,"isPrimary",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.count","data.presentationStyle","data.badges.*"),_.T("design:type",String),_.T("design:paramtypes",[])],cW.prototype,"lineEndStyle",null);
_.E([_.t("lineEndStyle"),_.T("design:type",Object),_.T("design:paramtypes",[])],cW.prototype,"ariaLabel",null);_.E([_.Pg("data.hintActions","guideOpened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],cW.prototype,"triggerHintActions",null);_.E([_.hj("down"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],cW.prototype,"onDown",null);
_.E([_.hj("up"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],cW.prototype,"onUp",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],cW.prototype,"onTap",null);_.E([_.x({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],cW);
_.r(cW,"ytd-guide-entry-renderer",function(){if(Dm$!==void 0)return Dm$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Dm$=l},{mode:1});var pQ=function(){var l=_.p.apply(this,arguments)||this;l.userToggled=!1;return l};
_.Z(pQ,_.p);_.W=pQ.prototype;_.W.getItemsPath=function(){return"data.expandableItems"};
_.W.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.W.onExpanderItemTapped=function(l){var D=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.q("kevlar_guide_expandable_items_killswitch")&&_.u6(this,function(){_.hL(D.expandableItems)});
l.preventDefault()};
_.W.onCollapserItemTapped=function(l){var D=this;this._setExpanded(!1);this.userToggled=!0;l.preventDefault();this.expandableItems&&!_.q("kevlar_guide_collapsible_items_killswitch")&&_.u6(this,function(){_.CB(D.hostElement)})};
_.W.observeActiveEndpoint=function(){for(var l=this.activeEndpoint,D=this.data,U=this.expandableItems.children,n=0,y=U.length;n<y;n++)U[n].activeEndpoint=l;D&&D.autoExpandCommand&&l&&!this.userToggled&&(U=this.data.autoExpandCommand,D=!(!_.M(U,_.Pk)||!_.M(l,_.Pk)||_.M(U,_.Pk).browseId!==_.M(l,_.Pk).browseId),l=this.get("commandMetadata.webCommandMetadata.url",l),U=this.get("commandMetadata.webCommandMetadata.url",U),D=D||!!(l&&U&&l.includes(U)),this._setExpanded(D),D&&this.ytLazyListBehavior.fillRemainingListItems())};
pQ.prototype.observeActiveEndpoint=pQ.prototype.observeActiveEndpoint;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],pQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Mn.YtLazyListBehavior),_.T("design:type",Object)],pQ.prototype,"ytLazyListBehavior",void 0);_.E([_.gP("#expandable-items"),_.T("design:type",HTMLElement)],pQ.prototype,"expandableItems",void 0);
_.E([_.K(),_.T("design:type",Object)],pQ.prototype,"data",void 0);_.E([_.K({readOnly:!0,reflectToAttribute:!0}),_.T("design:type",Boolean)],pQ.prototype,"expanded",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],pQ.prototype,"initialCount",void 0);_.E([_.K(),_.T("design:type",Object)],pQ.prototype,"activeEndpoint",void 0);_.E([_.Pg("data","activeEndpoint","canShowMore"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pQ.prototype,"observeActiveEndpoint",null);
_.E([_.x({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],pQ);
_.r(pQ,"ytd-guide-collapsible-entry-renderer",function(){if(lMW!==void 0)return lMW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return lMW=l},{mode:_.Vj("kevlar_poly_si_batch_j079")?1:2});var Um$;var nU5;var xD=function(){var l=_.p.apply(this,arguments)||this;l.allVideosCount=0;l.renderGuideEntry=!1;return l};
_.Z(xD,_.p);xD.prototype.observeRenderEntry=function(){var l;this.renderGuideEntry=!((l=this.data)==null||!l.alwaysShow)||!!this.allVideosCount};
xD.prototype.observeRenderEntry=xD.prototype.observeRenderEntry;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],xD.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],xD.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],xD.prototype,"activeEndpoint",void 0);_.E([_.K({selector:_.zZg}),_.T("design:type",Object)],xD.prototype,"allVideosCount",void 0);
_.E([_.K(),_.T("design:type",Object)],xD.prototype,"renderGuideEntry",void 0);_.E([_.GY("allVideosCount","data.alwaysShow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xD.prototype,"observeRenderEntry",null);_.E([_.x({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],xD);
_.r(xD,"ytd-guide-downloads-entry-renderer",function(){if(nU5===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);nU5=l}l=nU5;return l},{mode:1});var j1=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return l};
_.Z(j1,_.p);_.W=j1.prototype;_.W.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]]"}}}}}};
_.W.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var l=this.sectionItems.children,D=0,U=l.length;D<U;D++)l[D].activeEndpoint=this.activeEndpoint}};
_.W.handleAddToGuideSectionAction=function(l){var D=_.M(l,tuv);if(D&&this.data&&(l=D.items,D=D.handlerData,l&&D&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(D)>-1)){D=0;for(var U=l.length;D<U;D++)l[D].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,l[D])}};
_.W.handleRemoveFromGuideSectionAction=function(l){var D=_.M(l,XfJ);D&&this.data&&(l=D.guideEntryId,D=D.handlerData,l&&D&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(D)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(l,this.data.sectionItems),this.removeFromCollapsedSection(l,this.data.sectionItems)))};
_.W.removeFromExpandedSection=function(l,D){l=this.getEntryIndexMatchingId(l,D);l!==-1&&this.splice("data.sectionItems",l,1)};
_.W.removeFromCollapsedSection=function(l,D){var U=D.findIndex(function(n){return!!_.M(n,NiJ)});
U&&U!==-1&&D[U]&&_.M(D[U],NiJ)&&(D=_.M(D[U],NiJ).expandableItems)&&(l=this.getEntryIndexMatchingId(l,D),l!==-1&&this.splice("data.sectionItems."+U+".guideCollapsibleEntryRenderer.expandableItems",l,1))};
_.W.getEntryIndexMatchingId=function(l,D){var U=this;return D.findIndex(function(n){return U.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",n)===l})};
j1.prototype.activeEndpointChanged=j1.prototype.activeEndpointChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],j1.prototype,"actionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.gP("#section-items"),_.T("design:type",HTMLDivElement)],j1.prototype,"sectionItems",void 0);
_.E([_.gP("#header-entry"),_.T("design:type",Object)],j1.prototype,"headerEntry",void 0);_.E([_.K(),_.T("design:type",Object)],j1.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],j1.prototype,"activeEndpoint",void 0);_.E([_.Pg("activeEndpoint"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],j1.prototype,"activeEndpointChanged",null);_.E([_.x({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],j1);
_.r(j1,"ytd-guide-collapsible-section-entry-renderer",function(){if(Um$===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);Um$=l}l=Um$;return l},{mode:1});var y0J;var A0q;var FV=function(){var l=_.p.apply(this,arguments)||this;l.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 l};
_.Z(FV,_.p);_.W=FV.prototype;
_.W.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}}}}};
_.W.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var l=_.iu(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);l&&l.length===1&&l[0]&&_.iu(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.W.handleResetChannelUnreadCountCommand=function(l){var D;(l=(D=_.M(l,k65))==null?void 0:D.channelId)&&this.data&&this.data.items&&(D=this.getPathToEntryMatchingId(l))&&(this.set(D+".guideEntryRenderer.count",0),this.set(D+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.W.handleResetSubscriptionsUnreadDotCommand=function(l){var D,U=(D=_.M(l,dkP))==null?void 0:D.targetId,n;U&&(n=this.data)!=null&&n.items&&(l=this.data.items.findIndex(function(y){var A;return((A=y.guideEntryRenderer)==null?void 0:A.targetId)===U}),l<0||this.set("data.items."+l+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.W.getPathToEntryMatchingId=function(l){if(this.data&&this.data.items){var D=this.getEntryIndexMatchingId(l,this.data.items);if(D>-1)return"data.items."+D;for(var U=0;U<this.data.items.length;U++)if(D=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[U]))if(D=this.getEntryIndexMatchingId(l,D),D>-1)return"data.items."+U+".guideCollapsibleEntryRenderer.expandableItems."+D}};
_.W.handleAddToGuideSectionAction=function(l){var D=this;if(_.M(l,tuv)){var U=_.M(l,tuv).items;l=_.M(l,tuv).handlerData;var n,y;if(U&&l&&((n=this.data)==null?void 0:(y=n.handlerDatas)==null?void 0:y.indexOf(l))>-1){U=U.filter(function(C){return(C=D.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",C))&&!D.isGuideItemPresent(C)});
var A;if(l==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((A=this.data)==null?0:A.items)&&(n=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),n>-1)){this.splice.apply(this,["data.items",n+1,0].concat(_.zz(U)));return}this.unshift.apply(this,["data.items"].concat(_.zz(U)))}}};
_.W.isGuideItemPresent=function(l){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(l,this.data.items)!==-1)return!0;var D=this.data.items.find(function(U){return!!U.guideCollapsibleEntryRenderer});
if((D==null?0:D.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(l,D.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.W.getEntryIndexMatchingId=function(l,D){var U=this;return D.findIndex(function(n){return U.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",n)===l})};
_.W.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(l,D){var U=this;return D.findIndex(function(n){return U.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",n)===l})};
_.W.handleRemoveFromGuideSectionAction=function(l){if(_.M(l,XfJ)){var D=_.M(l,XfJ).guideEntryId;l=_.M(l,XfJ).handlerData;var U,n;D&&l&&((U=this.data)==null?void 0:(n=U.handlerDatas)==null?void 0:n.indexOf(l))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(D,this.data.items),this.removeFromCollapsedSection(D,this.data.items))}};
_.W.removeFromExpandedSection=function(l,D){l=this.getEntryIndexMatchingId(l,D);l!==-1&&this.splice("data.items",l,1)};
_.W.removeFromCollapsedSection=function(l,D){var U=D.findIndex(function(n){return!!n.guideCollapsibleEntryRenderer});
U!==-1&&(D=D[U].guideCollapsibleEntryRenderer.expandableItems)&&(l=this.getEntryIndexMatchingId(l,D),l!==-1&&this.splice("data.items."+U+".guideCollapsibleEntryRenderer.expandableItems",l,1))};
_.W.activeEndpointChanged=function(){for(var l=_.iJ(this.hostElement).querySelector("#items").children,D=0,U=l.length;D<U;D++)l[D].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.W.guideOpenedChanged=function(){for(var l=_.iJ(this.hostElement).querySelector("#items").children,D=0,U=l.length;D<U;D++)l[D].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
FV.prototype.guideOpenedChanged=FV.prototype.guideOpenedChanged;FV.prototype.activeEndpointChanged=FV.prototype.activeEndpointChanged;FV.prototype.persistentGuideChanged=FV.prototype.persistentGuideChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],FV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Mn.YtLazyListBehavior),_.T("design:type",Object)],FV.prototype,"ytLazyListBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],FV.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],FV.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],FV.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",String)],FV.prototype,"type",void 0);_.E([_.K({value:20}),_.T("design:type",Number)],FV.prototype,"initialCount",void 0);_.E([_.K({value:10}),_.T("design:type",Number)],FV.prototype,"targetFramerate",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],FV.prototype,"autoFill",void 0);_.E([_.K({value:50}),_.T("design:type",Number)],FV.prototype,"renderDelay",void 0);
_.E([_.Pg("guidePersistentAndVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],FV.prototype,"persistentGuideChanged",null);_.E([_.GY("activeEndpoint"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],FV.prototype,"activeEndpointChanged",null);_.E([_.GY("guideOpened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],FV.prototype,"guideOpenedChanged",null);
_.E([_.x({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],FV);
_.r(FV,"ytd-guide-section-renderer",function(){if(A0q!==void 0)return A0q;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return A0q=l},{mode:_.Vj("kevlar_poly_si_batch_j073")?1:2});var WNW;var oX=function(){return _.p.apply(this,arguments)||this};
_.Z(oX,_.p);_.QP.Object.defineProperties(oX.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],oX.prototype,"rendererBehaviors",void 0);_.E([_.K(),_.T("design:type",Object)],oX.prototype,"data",void 0);_.E([_.K(),_.t("data.signInButton.buttonRenderer.style"),_.T("design:type",Object),_.T("design:paramtypes",[])],oX.prototype,"alignByText",null);_.E([_.x({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],oX);
_.r(oX,"ytd-guide-signin-promo-renderer",function(){if(WNW===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);WNW=l}l=WNW;return l},{mode:1});var wo=function(){var l=_.p.apply(this,arguments)||this;l.showFooter=!1;return l};
_.Z(wo,_.p);wo.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}}}}};
wo.prototype.attached=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1){D=_.Jc().resolve(_.G8(_.AY));if(!D)return U.jumpTo(0);D.setGuideData(l.hostElement);return U.yield(0,3)}l.ytLazyListBehavior.initialCount=2;return U.return()})};
wo.prototype.onMouseExit=function(){_.q("web_guide_hover_expansion")&&_.iu(this.hostElement,"yt-guide-mouseleaved",[])};
wo.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
wo.prototype.dataChanged=wo.prototype.dataChanged;wo.prototype.onMouseExit=wo.prototype.onMouseExit;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],wo.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Mn.YtLazyListBehavior),_.T("design:type",Object)],wo.prototype,"ytLazyListBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],wo.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],wo.prototype,"showFooter",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],wo.prototype,"autoFill",void 0);_.E([_.hj("mouseleave"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wo.prototype,"onMouseExit",null);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wo.prototype,"dataChanged",null);_.E([_.x({is:"ytd-guide-renderer",disableElementRegistration:!0})],wo);
_.r(wo,"ytd-guide-renderer",function(){if(y0J!==void 0)return y0J;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return y0J=l},{mode:_.Vj("kevlar_poly_si_batch_j073")?1:2});var BJP;var ro=function(){var l=_.p.apply(this,arguments)||this;l.systemIcons=_.q("kevlar_system_icons");l.frostedGlass=_.q("web_frosted_glass");l.getEndpointForm=function(){return pmJ(l.data)};
return l};
_.Z(ro,_.p);_.W=ro.prototype;_.W.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0");this.JSC$20819_sheetController=_.Jc().resolve(_.H0)};
_.W.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Nl(this.data.formattedTitle))};
_.W.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.W.onDown=function(){this.interaction.triggerDown()};
_.W.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var l;if((l=this.JSC$20819_sheetController)!=null){var D=this.mouseEnterCallback.bind(this),U=this.mouseLeaveCallback.bind(this);l.hoverEnterCallback=D!=null?D:void 0;l.hoverLeaveCallback=U!=null?U:void 0}}};
_.W.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.W.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.W.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.W.onUp=function(){this.interaction.triggerUp()};
_.W.onTap=function(l){if(this.data.serviceEndpoint){var D;if(_.q("shorts_controller_retrieve_seedless_sequence_v2")&&((D=_.M(this.data.serviceEndpoint,_.vk))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(_.M(this.data.serviceEndpoint,_.Qs)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);l.preventDefault();return}cUT(this.data.serviceEndpoint,this)}l.preventDefault()}else{var U;((U=this.data)==
null?0:U.navigationEndpoint)&&!_.$o(_.$f(l),this.hostElement,["A".toString()])&&_.O9(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.W.computeActive=function(l,D){if(!l)return!1;var U=l.navigationEndpoint;l=l.serviceEndpoint;if(!U&&!l||!D)return!1;if(U){l=_.M(U,_.Pk);var n=_.M(D,_.Pk);if(l&&n)return l.browseId===n.browseId&&l.params===n.params;var y;U=(y=_.M(U.commandMetadata,_.W6))==null?void 0:y.url;var A;D=(A=_.M(D.commandMetadata,_.W6))==null?void 0:A.url;return!(!U||!D||U!==D&&U!==_.kZ(D))}return this.isActiveShortsTab(l,D)};
_.W.isActiveShortsTab=function(l,D){D=!!_.M(D,_.vk)||!!_.M(D,_.DS);return(!!_.M(l,_.vk)||!!_.M(l,_.DS))&&D};
_.W.computeTitle=function(l,D){return D?"":_.Nl(l)};
_.QP.Object.defineProperties(ro.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
ro.prototype.onTap=ro.prototype.onTap;ro.prototype.onUp=ro.prototype.onUp;ro.prototype.onMouseLeave=ro.prototype.onMouseLeave;ro.prototype.onMouseEnter=ro.prototype.onMouseEnter;ro.prototype.onDown=ro.prototype.onDown;ro.prototype.onActiveStateChange=ro.prototype.onActiveStateChange;ro.prototype.dataChanged=ro.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ro.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.sC),_.T("design:type",Object)],ro.prototype,"ironButtonState",void 0);_.E([_.K(),_.T("design:type",Object)],ro.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],ro.prototype,"activeEndpoint",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],ro.prototype,"noLabels",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.T("design:type",Boolean)],ro.prototype,"isActive",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ro.prototype,"systemIcons",void 0);_.E([_.gP("yt-interaction"),_.T("design:type",Object)],ro.prototype,"interaction",void 0);_.E([_.t("isActive"),_.T("design:type",Object),_.T("design:paramtypes",[])],ro.prototype,"ariaSelected",null);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],ro.prototype,"frostedGlass",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ro.prototype,"dataChanged",null);_.E([_.Pg("isActive"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ro.prototype,"onActiveStateChange",null);_.E([_.hj("down"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ro.prototype,"onDown",null);
_.E([_.hj("mouseenter"),_.T("design:type",Function),_.T("design:paramtypes",[MouseEvent]),_.T("design:returntype")],ro.prototype,"onMouseEnter",null);_.E([_.hj("mouseleave"),_.T("design:type",Function),_.T("design:paramtypes",[MouseEvent]),_.T("design:returntype")],ro.prototype,"onMouseLeave",null);_.E([_.hj("up"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],ro.prototype,"onUp",null);
_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],ro.prototype,"onTap",null);_.E([_.x({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],ro);
_.r(ro,"ytd-mini-guide-entry-renderer",function(){if(BJP!==void 0)return BJP;var l=document.createElement("template");_.e(l,'\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="0" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return BJP=l},{mode:_.Vj("kevlar_poly_si_batch_j063")?1:2});var Cfv;var zK=function(){var l=_.p.apply(this,arguments)||this;l.allVideosCount=0;l.noLabels=_.q("kevlar_mini_guide_no_labels")||_.q("kevlar_modern_mini_guide");l.frostedGlass=_.q("web_frosted_glass");return l};
_.Z(zK,_.p);_.W=zK.prototype;_.W.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.W.onMouseEnter=function(){_.q("web_guide_hover_expansion")&&_.iu(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.W.visibleChanged=function(){if(this.visible&&!this.data){var l=_.Jc().resolve(_.G8(_.AY));l&&l.setGuideData(this.hostElement)}};
_.W.dataChanged=function(){var l=_.q("kevlar_guide_menu_on_hover")&&_.q("kevlar_modern_mini_guide"),D=_.q("kevlar_guide_menu_on_click")&&_.q("kevlar_modern_mini_guide"),U;var n=(U=this.data)==null?void 0:U.items;U=this.allVideosCount;var y=[];l=l?0:D?1:void 0;D=l!==void 0;if(n){for(var A=[],C=_.B(n),h=C.next();!h.done;h=C.next())if(h=h.value,h.guideSubscriptionsSectionRenderer){var b=void 0;A=((b=h.guideSubscriptionsSectionRenderer)==null?void 0:b.items)||[]}n=_.B(n);for(C=n.next();!C.done;C=n.next())if(C=
C.value,h=void 0,(h=C.guideSectionRenderer)==null?0:h.items)for(h=void 0,C=_.B((h=C.guideSectionRenderer)==null?void 0:h.items),h=C.next();!h.done;h=C.next()){h=h.value;var u=void 0,Q=void 0;b=h.guideEntryRenderer||_.M((u=h)==null?void 0:(Q=u.guideCollapsibleSectionEntryRenderer)==null?void 0:Q.headerEntry,xF$);u=[];Q=[];var G=void 0;if(((G=b)==null?void 0:G.targetId)==="subscriptions-guide-item")u=A;else{var J=G=void 0;if((G=h)==null?0:(J=G.guideCollapsibleSectionEntryRenderer)==null?0:J.sectionItems)Q=
u=h.guideCollapsibleSectionEntryRenderer.sectionItems}jmJ(y,b,D?u:[],l);if(Q.length>0)for(h=_.B(Q),b=h.next();!b.done;b=h.next())b=b.value,Q=_.M(b,sbH),u=void 0,Q=Q&&(Q.alwaysShow||U)?_.M((u=Q)==null?void 0:u.entryRenderer,xF$):_.M(b,xF$),jmJ(y,Q,[])}}this.miniGuideItems=y};
_.W.activeEndpointChanged=function(){for(var l=this.items.children,D=0;D<l.length;D++)l[D].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.W.registerWithViewTransitionManager=function(){var l=this;_.oI(_.Tn,function(){var D=_.Jc().resolve(_.G8(_.NB));if(D&&D.isAnyTransitionEnabled){var U={};D.viewTransitionCoordinator.registerElement(l.hostElement,(U.slide="mini-guide-page-transition",U))}})};
zK.prototype.activeEndpointChanged=zK.prototype.activeEndpointChanged;zK.prototype.dataChanged=zK.prototype.dataChanged;zK.prototype.visibleChanged=zK.prototype.visibleChanged;zK.prototype.onMouseEnter=zK.prototype.onMouseEnter;_.E([_.m(_.l5),_.T("design:type",Object)],zK.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],zK.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],zK.prototype,"ytComponentBehavior",void 0);_.E([_.gP("#items"),_.T("design:type",Object)],zK.prototype,"items",void 0);_.E([_.K(),_.T("design:type",Object)],zK.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Boolean)],zK.prototype,"visible",void 0);_.E([_.K(),_.T("design:type",Object)],zK.prototype,"miniGuideItems",void 0);_.E([_.K({selector:_.zZg}),_.T("design:type",Object)],zK.prototype,"allVideosCount",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],zK.prototype,"noLabels",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],zK.prototype,"frostedGlass",void 0);
_.E([_.hj("mouseenter"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zK.prototype,"onMouseEnter",null);_.E([_.GY("visible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zK.prototype,"visibleChanged",null);_.E([_.GY("data","allVideosCount"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zK.prototype,"dataChanged",null);
_.E([_.GY("activeEndpoint"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],zK.prototype,"activeEndpointChanged",null);_.E([_.x({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],zK);
_.r(zK,"ytd-mini-guide-renderer",function(){if(Cfv===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);Cfv=l}l=Cfv;return l},{mode:1});var hiH;var Pf8=/^[\x00-\x7F]+$/,fQ=function(){return _.p.apply(this,arguments)||this};
_.Z(fQ,_.p);_.QP.Object.defineProperties(fQ.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var l,D=_.Nl((l=this.data)==null?void 0:l.handle);if(D)return _.$B("@"+D)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var l=_.Nl(this.displayHandle),D,U=_.Nl((D=this.data)==null?void 0:D.handleUrl);if(l&&U)return _.$B(U+l)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var l=_.Nl(this.displayHandle);if(l&&!Pf8.test(l)){var D;return(D=this.data)==null?void 0:D.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var l=_.Nl(this.displayHandleUrl),D,U=_.Nl((D=this.data)==null?void 0:D.urlInfoText);if(l&&U)return _.$B(U+" "+l)}}});
_.E([_.K(),_.T("design:type",Object)],fQ.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],fQ.prototype,"displayHandle",null);_.E([_.t("displayHandle"),_.T("design:type",Object),_.T("design:paramtypes",[])],fQ.prototype,"displayHandleUrl",null);_.E([_.t("displayHandle"),_.T("design:type",Object),_.T("design:paramtypes",[])],fQ.prototype,"warningText",null);
_.E([_.t("displayHandleUrl"),_.T("design:type",Object),_.T("design:paramtypes",[])],fQ.prototype,"urlInfoTextWithUrl",null);_.E([_.x({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],fQ);
_.r(fQ,"ytd-handles-claiming-confirm-dialog-content",function(){if(hiH!==void 0)return hiH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return hiH=l},{mode:1});var bR5;var $D=function(){var l=_.p.apply(this,arguments)||this;l.okButtonOverride={style:"mono",type:"outline",size:"M"};return l};
_.Z($D,_.p);$D.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$D.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$D.prototype,"okButtonOverride",void 0);_.E([_.K(),_.T("design:type",Object)],$D.prototype,"data",void 0);_.E([_.x({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],$D);
_.r($D,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(bR5!==void 0)return bR5;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return bR5=l},{mode:1});var gUH;var ul$=/^[\x00-\x7F]+$/,N5=function(){var l=_.p.apply(this,arguments)||this;l.isLoading=!1;return l};
_.Z(N5,_.p);N5.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var l;this.selectedHandle=(l=this.handleInput)==null?void 0:l.value;this.onSelectedHandleChanged(this.selectedHandle);_.iu(this.hostElement,"yt-refit-popups-action")}};
_.QP.Object.defineProperties(N5.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var l;return(l=this.data)==null?void 0:l.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.$B("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.$B(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!ul$.test(this.selectedHandle)){var l;return(l=this.data)==null?void 0:l.warningText}}}});
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],N5.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],N5.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],N5.prototype,"selectedHandle",void 0);_.E([_.K(),_.T("design:type",Object)],N5.prototype,"isLoading",void 0);_.E([_.K(),_.T("design:type",Function)],N5.prototype,"onSelectedHandleChanged",void 0);_.E([_.gP("#channel-handle-input"),_.T("design:type",Object)],N5.prototype,"handleInput",void 0);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],N5.prototype,"handleUrlPrefix",null);_.E([_.t("selectedHandle"),_.T("design:type",Object),_.T("design:paramtypes",[])],N5.prototype,"displayHandle",null);_.E([_.t("selectedHandle"),_.T("design:type",Object),_.T("design:paramtypes",[])],N5.prototype,"displayHandleUrl",null);_.E([_.t("selectedHandle"),_.T("design:type",Object),_.T("design:paramtypes",[])],N5.prototype,"warningText",null);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.E([_.x({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],N5);
_.r(N5,"ytd-handles-claiming-edit-dialog-content",function(){if(gUH!==void 0)return gUH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return gUH=l},{mode:1});var vUv;var sv=function(){var l=_.p.apply(this,arguments)||this;l.actionButtonOverride={style:"mono",type:"filled",size:"M"};l.cancelButtonOverride={style:"mono",type:"text",size:"M"};l.selectButtonDisabled=!1;l.isLoading=!1;l.hasSelectedHandleEventListener=!1;l.selectedHandleChanged=function(D){l.selectedHandle=D};
return l};
_.Z(sv,_.p);_.W=sv.prototype;_.W.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.W.onDataChanged=function(){var l,D;this.selectedHandle=(D=_.M((l=this.data)==null?void 0:l.inputField,xnq))==null?void 0:D.handle};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.onCancel=function(){this.selectedHandle="";_.Vh(this.hostElement,"yt-close-popup-action",[this.is])};
_.W.onSelectHandle=function(){var l=this;if(this.selectedHandle!==void 0){var D;((D=this.data)==null?void 0:D.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(U,n){if(n.newHandleUpdateStatus!==void 0&&n.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&n.newHandleUpdateStatus.errorMessage)_.F7(l.hostElement,_.Nl(n.newHandleUpdateStatus.errorMessage)),
l.isLoading=!1;else{var y;if((y=l.data)==null?0:y.onChannelUpdateSuccess){U=l.data.onChannelUpdateSuccess;var A,C;if(n=(A=_.M(U,_.rA))==null?void 0:(C=A.popup)==null?void 0:C.handlesClaimingConfirmDialogRenderer)n.handle=_.$B(l.selectedHandle);l.ytComponentBehavior.resolveCommand(U);_.Vh(l.hostElement,"yt-close-popup-action",[l.is])}else l.isLoading=!1}},
onServerError:function(){var U;l.content&&((U=l.content)==null?0:U.handleInput)&&l.content.handleInput.validate();l.isLoading=!1;_.F7(l.hostElement,_.C3("TRY_AGAIN_LATER"))}}}))}};
_.W.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
sv.prototype.onDataChanged=sv.prototype.onDataChanged;sv.prototype.onSelectedHandleChanged=sv.prototype.onSelectedHandleChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],sv.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],sv.prototype,"actionButtonOverride",void 0);_.E([_.K(),_.T("design:type",Object)],sv.prototype,"cancelButtonOverride",void 0);_.E([_.K(),_.T("design:type",Object)],sv.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",String)],sv.prototype,"selectedHandle",void 0);_.E([_.K(),_.T("design:type",Object)],sv.prototype,"selectButtonDisabled",void 0);_.E([_.K(),_.T("design:type",Object)],sv.prototype,"isLoading",void 0);_.E([_.K(),_.T("design:type",Object)],sv.prototype,"hasSelectedHandleEventListener",void 0);_.E([_.K(),_.T("design:type",Object)],sv.prototype,"handleInput",void 0);
_.E([_.Pg("selectedHandle"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sv.prototype,"onSelectedHandleChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],sv.prototype,"onDataChanged",null);_.E([_.gP("ytd-handles-claiming-edit-dialog-content"),_.T("design:type",Object)],sv.prototype,"content",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],sv.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],sv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.x({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],sv);
_.r(sv,"ytd-handles-claiming-edit-dialog-renderer",function(){if(vUv!==void 0)return vUv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vUv=l},{mode:1});var Q3v;var Ev=function(){return _.p.apply(this,arguments)||this};
_.Z(Ev,_.p);_.QP.Object.defineProperties(Ev.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null?0:l.handle){var D;return _.$B("@"+_.Nl((D=this.data)==null?void 0:D.handle))}}}});
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ev.prototype,"formattedHandle",null);_.E([_.K(),_.T("design:type",Object)],Ev.prototype,"data",void 0);_.E([_.x({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Ev);
_.r(Ev,"ytd-handles-claiming-radio-option-renderer",function(){if(Q3v!==void 0)return Q3v;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Q3v=l},{mode:1});var GR$;var J0$=/^[\x00-\x7F]+$/,TK=function(){var l=_.p.apply(this,arguments)||this;l.initialRadioIndex="-1";l.isLoading=!1;l.maybeSubmitFeedback=function(){l.feedbackSurveyRenderer.submitSurvey()};
return l};
_.Z(TK,_.p);TK.prototype.updateSelectedHandleIndexFromBinding=function(l){this.selectedRadioIndex=+l.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(l)};
TK.prototype.selectedHandleChanged=function(l){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var D;this.selectedHandle=(D=this.handleInput)==null?void 0:D.value;this.onSelectedHandleChanged(l)}};
_.QP.Object.defineProperties(TK.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var l;return this.ytRendererBehavior.getSimpleString((l=this.data)==null?void 0:l.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.$B("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.$B(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!J0$.test(this.selectedHandle)){var l;return(l=this.data)==null?void 0:l.warningText}}}});
_.E([_.K(),_.T("design:type",Object)],TK.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],TK.prototype,"initialRadioIndex",void 0);_.E([_.K(),_.T("design:type",Number)],TK.prototype,"selectedRadioIndex",void 0);_.E([_.K(),_.T("design:type",String)],TK.prototype,"selectedHandle",void 0);_.E([_.K(),_.T("design:type",Object)],TK.prototype,"isLoading",void 0);_.E([_.K(),_.T("design:type",Function)],TK.prototype,"onSelectedHandleChanged",void 0);
_.E([_.K(),_.T("design:type",Function)],TK.prototype,"onSelectedRadioIndexChanged",void 0);_.E([_.gP("#channel-handle-input"),_.T("design:type",Object)],TK.prototype,"handleInput",void 0);_.E([_.gP("ytd-feedback-survey-renderer"),_.T("design:type",Object)],TK.prototype,"feedbackSurveyRenderer",void 0);_.E([_.t("data"),_.T("design:type",Number),_.T("design:paramtypes",[])],TK.prototype,"radioButtonLength",null);
_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],TK.prototype,"handleUrlPrefix",null);_.E([_.t("selectedHandle"),_.T("design:type",Object),_.T("design:paramtypes",[])],TK.prototype,"displayHandle",null);_.E([_.t("selectedHandle"),_.T("design:type",Object),_.T("design:paramtypes",[])],TK.prototype,"displayHandleUrl",null);_.E([_.t("selectedHandle"),_.T("design:type",Object),_.T("design:paramtypes",[])],TK.prototype,"warningText",null);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.E([_.x({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],TK);
_.r(TK,"ytd-handles-claiming-select-dialog-content",function(){if(GR$!==void 0)return GR$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return GR$=l},{mode:1});var LN$;var IX=function(){var l=_.p.apply(this,arguments)||this;l.actionButtonOverride={style:"mono",type:"filled",size:"M"};l.cancelButtonOverride={style:"mono",type:"text",size:"M"};l.initialRadioIndex="-1";l.selectButtonDisabled=!1;l.isLoading=!1;l.selectedRadioIndexChanged=function(D){l.selectedRadioIndex=Number(D.detail.value)};
l.selectedHandleChanged=function(D){l.selectedHandle=D.detail.value};
return l};
_.Z(IX,_.p);_.W=IX.prototype;_.W.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.W.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.W.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.iu(this.hostElement,"yt-refit-popups-action")};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Vh(this.hostElement,"yt-close-popup-action",[this.is])};
_.W.onSelectHandle=function(){var l=this;if(this.selectedHandle!==void 0){var D;((D=this.data)==null?void 0:D.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(U,n){if(n.newHandleUpdateStatus!==void 0&&n.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&n.newHandleUpdateStatus.errorMessage)_.F7(l.hostElement,_.Nl(n.newHandleUpdateStatus.errorMessage)),
l.isLoading=!1;else{var y;if((y=l.data)==null?0:y.onChannelUpdateSuccess){U=l.data.onChannelUpdateSuccess;n=_.M(U,_.rA);var A;if(n==null?0:(A=n.popup)==null?0:A.handlesClaimingConfirmDialogRenderer)n.popup.handlesClaimingConfirmDialogRenderer.handle=_.$B(l.selectedHandle);l.ytComponentBehavior.resolveCommand(U);_.Vh(l.hostElement,"yt-close-popup-action",[l.is])}else l.isLoading=!1}},
onServerError:function(){if(l.selectedRadioIndex===l.radioButtonLength){var U;l.content&&((U=l.content)==null?0:U.handleInput)&&l.content.handleInput.validate()}l.isLoading=!1;_.F7(l.hostElement,_.C3("TRY_AGAIN_LATER"))}}}))}};
_.W.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var l,D;this.selectedHandle=(l=this.content)==null?void 0:(D=l.handleInput)==null?void 0:D.value}else this.selectedRadioIndex>=0&&((l=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(l==null?void 0:l.handle):this.selectedHandle=void 0)};
_.W.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.W.getRadioItem=function(l){if(this.radioButtonLength>l&&l>=0)return _.M(this.data.radioButton[l],oRP)};
_.QP.Object.defineProperties(IX.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var l;return(((l=this.data)==null?void 0:l.radioButton)||[]).length}}});
IX.prototype.onSelectedHandleChanged=IX.prototype.onSelectedHandleChanged;IX.prototype.onSelectedHandleIndexChanged=IX.prototype.onSelectedHandleIndexChanged;IX.prototype.onDataChanged=IX.prototype.onDataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],IX.prototype,"actionButtonOverride",void 0);_.E([_.K(),_.T("design:type",Object)],IX.prototype,"cancelButtonOverride",void 0);
_.E([_.K(),_.T("design:type",Object)],IX.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],IX.prototype,"initialRadioIndex",void 0);_.E([_.K(),_.T("design:type",Number)],IX.prototype,"selectedRadioIndex",void 0);_.E([_.K(),_.T("design:type",String)],IX.prototype,"selectedHandle",void 0);_.E([_.K(),_.T("design:type",Object)],IX.prototype,"selectButtonDisabled",void 0);_.E([_.K(),_.T("design:type",Object)],IX.prototype,"isLoading",void 0);
_.E([_.t("data"),_.T("design:type",Number),_.T("design:paramtypes",[])],IX.prototype,"radioButtonLength",null);_.E([_.gP("ytd-handles-claiming-select-dialog-content"),_.T("design:type",Object)],IX.prototype,"content",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],IX.prototype,"onDataChanged",null);
_.E([_.Pg("selectedRadioIndex"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],IX.prototype,"onSelectedHandleIndexChanged",null);_.E([_.Pg("selectedHandle"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],IX.prototype,"onSelectedHandleChanged",null);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.x({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],IX);
_.r(IX,"ytd-handles-claiming-select-dialog-renderer",function(){if(LN$!==void 0)return LN$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return LN$=l},{mode:1});var qq2;var ME5;var HW=function(){return _.p.apply(this,arguments)||this};
_.Z(HW,_.p);HW.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],HW.prototype,"data",void 0);_.E([_.x({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],HW);
_.r(HW,"ytd-hotkey-dialog-section-option-renderer",function(){if(ME5!==void 0)return ME5;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return ME5=l},{mode:1});var RiW;var YD=function(){return _.p.apply(this,arguments)||this};
_.Z(YD,_.p);YD.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],YD.prototype,"data",void 0);_.E([_.x({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],YD);
_.r(YD,"ytd-hotkey-dialog-section-renderer",function(){if(RiW!==void 0)return RiW;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return RiW=l},{mode:1});var Ov=function(){return _.p.apply(this,arguments)||this};
_.Z(Ov,_.p);Ov.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Ov.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ov.prototype,"data",void 0);_.E([_.x({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Ov);
_.r(Ov,"ytd-hotkey-dialog-content",function(){if(qq2!==void 0)return qq2;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return qq2=l},{mode:1});var ZR$;var Vx=function(){return _.p.apply(this,arguments)||this};
_.Z(Vx,_.p);Vx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var l=document.querySelector("ytd-hotkey-dialog-content #scrollable");l&&(l.dialogElement=this.hostElement.parentElement)};
Vx.prototype.onCloseTap=function(){_.Vh(this.hostElement,"yt-close-popup-action")};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Vx.prototype,"data",void 0);_.E([_.x({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Vx);
_.r(Vx,"ytd-hotkey-dialog-renderer",function(){if(ZR$!==void 0)return ZR$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ZR$=l},{mode:1});var eiP;var ik=function(){return _.p.apply(this,arguments)||this};
_.Z(ik,_.p);ik.prototype.onYtServiceRequestError=function(){if(this.blocked){var l;var D=(l=this.data)==null?void 0:l.defaultServiceEndpoint}else{var U;D=(U=this.data)==null?void 0:U.toggledServiceEndpoint}var n;(D=(n=_.M(D,_.d$k))==null?void 0:n.onFailureAction)&&this.ytComponentBehavior.resolveCommand(D);this.updateBlockState(!this.blocked)};
ik.prototype.onYtToggleButton=function(l){this.updateBlockState(l.detail.toggled)};
ik.prototype.updateBlockState=function(l){if(l!==this.blocked){var D=this.blockedEntityKey;D&&this.ytdReduxBehavior.dispatch(_.vr("blockStateEntity",D,{key:D,blocked:l}));this.set("data.isToggled",l)}};
_.QP.Object.defineProperties(ik.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)}}});
ik.prototype.onYtToggleButton=ik.prototype.onYtToggleButton;ik.prototype.onYtServiceRequestError=ik.prototype.onYtServiceRequestError;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],ik.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],ik.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ik.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],ik.prototype,"blockedEntityKey",void 0);
_.E([_.K({selectorArgs:["blockedEntityKey"],selector:function(l,D){return _.yT(l.entities,"blockStateEntity",D)}}),
_.T("design:type",Object)],ik.prototype,"blockStateEntity",void 0);_.E([_.t("data","blockStateEntity"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],ik.prototype,"blocked",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],ik.prototype,"onYtServiceRequestError",null);
_.E([_.hj("yt-toggle-button"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],ik.prototype,"onYtToggleButton",null);_.E([_.x({is:"ytd-block-button",disableElementRegistration:!0})],ik);
_.r(ik,"ytd-block-button",function(){if(eiP!==void 0)return eiP;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return eiP=l},
{mode:1});var mmW;var aMW;var lk=function(){return _.p.apply(this,arguments)||this};
_.Z(lk,_.p);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],lk.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],lk.prototype,"data",void 0);_.E([_.x({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],lk);
_.r(lk,"ytd-kids-blocklist-picker-item-renderer",function(){if(aMW!==void 0)return aMW;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return aMW=l},{mode:1});var DI=function(){return _.p.apply(this,arguments)||this};
_.Z(DI,_.p);DI.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],DI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],DI.prototype,"data",void 0);_.E([_.x({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],DI);
_.r(DI,"ytd-kids-blocklist-picker-content",function(){if(mmW!==void 0)return mmW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return mmW=
l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var tE$;var UK=function(){var l=_.p.apply(this,arguments)||this;l.hasAnyRequestSucceeded=!1;l.hasAnyRequestFailed=!1;l.numPendingRequests=0;return l};
_.Z(UK,_.p);_.W=UK.prototype;_.W.attached=function(){this.hostElement.setAttribute("dialog","")};
_.W.onDoneButtonTap=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.W.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.W.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.W.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.W.onPopupClosed=function(l){var D,U;if(((D=l.detail)==null?void 0:(U=D.popup)==null?void 0:U.is)==="tp-yt-paper-dialog"){var n;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((n=this.data)==null?0:n.successfulToastActionMessage)&&(l=_.IJ(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(l));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
UK.prototype.onPopupClosed=UK.prototype.onPopupClosed;UK.prototype.onYtServiceRequestError=UK.prototype.onYtServiceRequestError;UK.prototype.onYtServiceRequestCompleted=UK.prototype.onYtServiceRequestCompleted;UK.prototype.onYtServiceRequestSent=UK.prototype.onYtServiceRequestSent;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],UK.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],UK.prototype,"data",void 0);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],UK.prototype,"onYtServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],UK.prototype,"onYtServiceRequestCompleted",null);
_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],UK.prototype,"onYtServiceRequestError",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],UK.prototype,"onPopupClosed",null);_.E([_.x({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],UK);
_.r(UK,"ytd-kids-blocklist-picker-renderer",function(){if(tE$!==void 0)return tE$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return tE$=l},{mode:1});var XJr;var Sq8;var nW=function(){return _.p.apply(this,arguments)||this};
_.Z(nW,_.p);nW.prototype.setTip=function(l){var D=this;this.data&&(this.tip=g4q(P48.getInstance(),l,this.data),_.u6(this,function(){_.O9(D.hostElement,"yt-refit")}))};
nW.prototype.clearTip=function(){this.tip=void 0};
nW.prototype.computeHidden=function(l){return!l};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],nW.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.T("design:type",Boolean)],nW.prototype,"hidden",void 0);_.E([_.K(),_.T("design:type",Object)],nW.prototype,"tip",void 0);_.E([_.x({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],nW);
_.r(nW,"ytd-menu-popup-tip-renderer",function(){if(Sq8!==void 0)return Sq8;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);
return Sq8=l},{mode:1});var kRJ;var As=function(){var l=_.p.apply(this,arguments)||this;l.useIcons=!1;l.systemIcons=_.q("kevlar_system_icons");return l};
_.Z(As,_.p);_.W=As.prototype;_.W.onFocus=function(){var l;(l=_.iJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||l.focus()};
_.W.onTap=function(){var l=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(l&&_.M(l,_.n3))this.componentBehavior.resolveCommand(l),this.updateToggledStateInEntity();else if(l){this.componentBehavior.resolveCommand(l)||_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}});var D;((D=_.M(l,_.AJ))==null?void 0:D.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.W.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.W.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.W.updateToggledStateInEntity=function(){var l=this.data.toggleMenuServiceItemEntityKey,D=!this.data.isToggled;l&&this.ytdReduxBehavior.dispatch(_.vr("toggleMenuServiceItemEntity",l,{key:l,isToggled:D}))};
_.W.computeIcon=function(l,D,U){return(l=l?U:D)&&l.iconType?_.UV(l.iconType):""};
_.W.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.W.isIconActive=function(l){return!_.q("toggle_menu_active_icon_killswitch")&&l};
_.QP.Object.defineProperties(As.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((l=this.data)==null?0:l.isToggled)?(D=this.data)==null?void 0:D.toggledText:(U=this.data)==null?void 0:U.defaultText}}});
As.prototype.toggledStateEntityChanged=As.prototype.toggledStateEntityChanged;As.prototype.onYtServiceRequestCompleted=As.prototype.onYtServiceRequestCompleted;As.prototype.onTap=As.prototype.onTap;As.prototype.onFocus=As.prototype.onFocus;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],As.prototype,"componentBehavior",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],As.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],As.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],As.prototype,"useIcons",void 0);_.E([_.K({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.T("design:type",String)],As.prototype,"icon",void 0);
_.E([_.K({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.NO.toggleMenuServiceItemEntitySelector}),_.T("design:type",Object)],As.prototype,"toggleMenuServiceItemEntity",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],As.prototype,"systemIcons",void 0);_.E([_.hj("focus"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],As.prototype,"onFocus",null);
_.E([_.t("data.isToggled"),_.T("design:type",Object),_.T("design:paramtypes",[])],As.prototype,"toggleButtonText",null);_.E([_.hj("tap"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],As.prototype,"onTap",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],As.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Pg("toggleMenuServiceItemEntity.isToggled","data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],As.prototype,"toggledStateEntityChanged",null);_.E([_.x({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],As);
_.r(As,"ytd-toggle-menu-service-item-renderer",function(){if(kRJ!==void 0)return kRJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return kRJ=l},{mode:1});var dmJ;var Wt=function(){return _.p.apply(this,arguments)||this};
_.Z(Wt,_.p);Wt.prototype.onFocus=function(){var l;(l=_.iJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||l.focus()};
_.QP.Object.defineProperties(Wt.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Ng(this.data.iconUrl)}}});
Wt.prototype.onFocus=Wt.prototype.onFocus;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Wt.prototype,"rendererBehavior",void 0);_.E([_.m(_.d9.YtEndpointBehavior),_.T("design:type",Object)],Wt.prototype,"ytEndpointBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Wt.prototype,"data",void 0);_.E([_.hj("focus"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Wt.prototype,"onFocus",null);
_.E([_.t("data.iconUrl"),_.T("design:type",Object),_.T("design:paramtypes",[])],Wt.prototype,"imageSource",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Wt);
_.r(Wt,"ytd-menu-custom-icon-item-renderer",function(){if(dmJ!==void 0)return dmJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return dmJ=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});_.Tt(_.Bv,"yt-list-item-view-model",{props:{data:_.C$,isMenuItem:_.C$,isCompact:_.C$,onTap:_.ND,trailingAccessory:_.ND,hideSelectionTextChevron:_.C$,disabled:_.C$,inPopup:_.C$,disableHorizontalPadding:_.C$,isOverlay:_.C$,isToggled:_.C$,ariaLabel:_.C$,ariaPressed:_.C$,shouldNotFillIcon:_.C$}});var Bt=function(){var l=_.p.apply(this,arguments)||this;l.disableBackdropFilter=_.q("web_disable_backdrop_filter");return l};
_.Z(Bt,_.p);_.W=Bt.prototype;
_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.W.computeAriaLabel=function(l){return l};
_.W.onPopupOpened=function(){this.items.selected=0;for(var l=_.B(_.iJ(this.items).children),D=l.next();!D.done;D=l.next())D.value.popupPositionTarget=this.positionTarget;if(l=this.popupTip||void 0)l.setTip(this.source||""),this.source=void 0;this.veData&&(l=_.t6())&&_.wj(l,[this.veData])};
_.W.onPopupClosed=function(){var l=this.popupTip||void 0;l&&l.clearTip()};
_.W.onIronActivate=function(l){this.shouldPersist(l)||_.Vh(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(l=_.t6())&&_.zo(l,this.veData)};
_.W.shouldPersist=function(l){var D,U;if(((D=l.detail)==null?void 0:D.selected)===void 0||(U=this.data)==null||!U.items)return!1;var n,y;return!((y=(n=this.data.items[l.detail.selected])==null?void 0:n.toggleMenuServiceItemRenderer)==null||!y.persistentOnMenuPopup)};
_.W.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(l){return l.menuNavigationItemRenderer?!!l.menuNavigationItemRenderer.icon:l.menuServiceItemRenderer?!!l.menuServiceItemRenderer.icon:l.menuConditionalServiceItemRenderer?!!l.menuConditionalServiceItemRenderer.icon:l.menuConditionalNavigationItemRenderer?!!l.menuConditionalNavigationItemRenderer.icon:l.toggleMenuServiceItemRenderer?!!l.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Bt.prototype.onPopupClosed=Bt.prototype.onPopupClosed;Bt.prototype.onPopupOpened=Bt.prototype.onPopupOpened;_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],Bt.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],Bt.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Bt.prototype,"veData",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.T("design:type",String)],Bt.prototype,"ariaLabel",void 0);_.E([_.K({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],Bt.prototype,"useIcons",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Bt.prototype,"disableBackdropFilter",void 0);_.E([_.gP("#items"),_.T("design:type",Object)],Bt.prototype,"items",void 0);_.E([_.gP("ytd-menu-popup-tip-renderer"),_.T("design:type",Object)],Bt.prototype,"popupTip",void 0);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Bt.prototype,"onPopupOpened",null);
_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Bt.prototype,"onPopupClosed",null);_.E([_.x({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Bt);
_.r(Bt,"ytd-menu-popup-renderer",function(){if(XJr!==void 0)return XJr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return XJr=l},{mode:1});var KNP;var c0T=_.w(function(l){l=_.sl(l,{icon:void 0});var D=l.data;l=l.icon;var U=function(){return D().iconBadgeText},n={},y=_.DV("yt-spec-icon-badge-shape",function(){a:switch(D().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(D().iconBadgeStyle){case "overlay":var A="yt-spec-icon-badge-shape--style-overlay";
break a;default:A=""}return A},(n["yt-spec-icon-badge-shape--text-size-small"]=function(){var A=U();
return!!((A==null?0:A.length)&&A.length>2)},n));
return _.g("yt-icon-badge-shape",null,_.g(_.v,{cond:l,then:function(A){return _.g("div",{class:y},_.g("div",{class:"yt-spec-icon-badge-shape__icon"},_.g(_.C0,{icon:A})),_.g(_.v,{cond:U,then:function(C){return _.g("div",{class:"yt-spec-icon-badge-shape__badge"},C)}}))}}))},"wj");
c0T.idomCompat=!0;_.Tt(c0T,"yt-icon-badge-shape",{props:{data:_.C$,icon:_.C$}});var CW=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};l.unseenCount=0;l.isOverlay=!1;return l};
_.Z(CW,_.p);_.W=CW.prototype;_.W.attached=function(){var l=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(D){l.onServiceWorkerMessage(D)})};
_.W.onDataChanged=function(){this.isAttached&&!this.JSC$20906_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20906_lastData=this.data};
_.W.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.W.computeIcon=function(){var l,D;return(l=this.data)==null?void 0:(D=l.icon)==null?void 0:D.iconType};
_.W.onServiceWorkerMessage=function(l){l.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.W.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.M(this.data.updateUnseenCountEndpoint,_.AJ)&&_.M(this.data.updateUnseenCountEndpoint,_.AJ).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.W.handleUpdateNotificationsUnseenCountAction=function(l){var D=this;l=_.M(l,SDJ);l!=null&&l.unseenCount&&l.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(l.unseenCount),_.Tn.addLowPriorityJob(function(){D.data.updateUnseenCountEndpoint&&D.ytComponentBehavior.resolveCommand(D.data.updateUnseenCountEndpoint)},l.timeoutMs))};
_.W.onClick=function(){_.O9(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var l=_.iu(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),D=this.data.menuRequest;l&&l.length===1&&l[0]?_.Vh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):D&&this.ytComponentBehavior.resolveCommand(D)};
_.W.handleTopbarMenuClosedAction=function(l){l==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.W.toggleIconState=function(l){this.iconButton&&(this.iconButton.pressed=l)};
_.W.sendUnseenCountRequest=function(l){var D=this;_.oI(_.Tn,function(){D.ytComponentBehavior.resolveCommand(l)})};
_.W.updateCountUI=function(l){this.set("unseenCount",l<9?l:"9+")};
_.QP.Object.defineProperties(CW.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
CW.prototype.handleUpdateNotificationsUnseenCountAction=CW.prototype.handleUpdateNotificationsUnseenCountAction;CW.prototype.onDataChanged=CW.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],CW.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.LF),_.T("design:type",Object)],CW.prototype,"ytdOpenPopupBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],CW.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],CW.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],CW.prototype,"unseenCount",void 0);_.E([_.K(),_.T("design:type",Object)],CW.prototype,"isOverlay",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],CW.prototype,"showTooltips",void 0);_.E([_.gP("yt-icon-button"),_.T("design:type",Object)],CW.prototype,"iconButton",void 0);
_.E([_.t("unseenCount"),_.T("design:type",Object),_.T("design:paramtypes",[])],CW.prototype,"showNotificationCount",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],CW.prototype,"onDataChanged",null);_.E([_.hj("yt-update-notifications-unseen-count-action"),_.T("design:type",Function),_.T("design:paramtypes",[Object]),_.T("design:returntype")],CW.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.E([_.x({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],CW);
_.r(CW,"ytd-notification-topbar-button-renderer",function(){if(KNP!==void 0)return KNP;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return KNP=l},{mode:_.Vj("kevlar_poly_si_batch_j025")?1:2});var pJT;var hs=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return l};
_.Z(hs,_.p);hs.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}}}}}};
hs.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
hs.prototype.onDarkModeToggled=function(l){this.dark=l};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],hs.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],hs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],hs.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],hs.prototype,"data",void 0);_.E([_.K({value:!0,reflectToAttribute:!0}),_.T("design:type",Boolean)],hs.prototype,"dark",void 0);
_.E([_.x({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],hs);
_.r(hs,"yt-pdg-buy-flow-header-renderer",function(){if(pJT!==void 0)return pJT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return pJT=l},{mode:1});var xm8;var j3H;var Pt=function(){var l=_.p.apply(this,arguments)||this;l.immediateValue=0;l.isDarkTheme=!1;l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(Pt,_.p);_.W=Pt.prototype;_.W.created=function(){_.lv.requestAvailability()};
_.W.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.W.dataChanged=function(){var l=_.iJ(this.hostElement).querySelector("#color-slider");l.immediateValue&&this.updateSliderKnobAndGradientStyles(l.immediateValue);this.data.notches[0].knobColorArgb&&_.Wg(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.tu(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.H3("HTML_DIR")==="rtl"&&_.iJ(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.W.onSliderImmediateChange=function(){var l=_.iJ(this.hostElement).querySelector("#color-slider");l.dragging&&(l.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(l.immediateValue),this.updateSliderKnobAndGradientStyles(l.immediateValue)),this.updateSliderAria())};
_.W.onSliderChange=function(){var l=_.iJ(this.hostElement).querySelector("#color-slider");l.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(l.immediateValue),this.updateSliderKnobAndGradientStyles(l.immediateValue));this.updateSliderAria()};
_.W.updateSliderAria=function(){var l=_.iJ(this.hostElement).querySelector("#color-slider"),D=_.iJ(this.hostElement).querySelector("#color-slider");D=_.Nl(this.data.notches[D.immediateValue].tierValue);_.JdN()&&_.O9(this.hostElement,"iron-announce",{text:D});l.setAttribute("aria-valuetext",D)};
_.W.updateSuperThanksSelectedTierEntity=function(l){if(l!==this.immediateValue){var D,U,n=this==null?void 0:(D=this.data)==null?void 0:(U=D.superThanksSelectedTierEntity)==null?void 0:U.key;n&&n.length>0&&this.ytdReduxBehavior.dispatch(_.vr("superThanksSelectedTierEntity",n,{key:n,index:l}))}};
_.W.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.W.updateSliderKnobAndGradientStyles=function(l){this.immediateValue=l;l=this.data.notches[l];if(l==null?0:l.knobColorArgb)var D={"--ytd-pdg-color-slider-knob-color":_.tu(l.knobColorArgb)};(l==null?0:l.linearGradientCssStyle)&&D!==null&&(D=Object.assign({},D,{"--ytd-pdg-color-slider-active-color":l==null?void 0:l.linearGradientCssStyle}));D!==null&&_.Wg(this.hostElement,D)};
Pt.prototype.onSliderChange=Pt.prototype.onSliderChange;Pt.prototype.onSliderImmediateChange=Pt.prototype.onSliderImmediateChange;Pt.prototype.dataChanged=Pt.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],Pt.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Pt.prototype,"immediateValue",void 0);_.E([_.K(),_.T("design:type",Number)],Pt.prototype,"maxMarkers",void 0);
_.E([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:oo$}),_.T("design:type",Object)],Pt.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],Pt.prototype,"isDarkTheme",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],Pt.prototype,"ytdReduxBehavior",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Pt.prototype,"dataChanged",null);
_.E([_.hj("immediate-value-change"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Pt.prototype,"onSliderImmediateChange",null);_.E([_.hj("change"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Pt.prototype,"onSliderChange",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Pt);
_.r(Pt,"ytd-pdg-color-slider-renderer",function(){if(j3H!==void 0)return j3H;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return j3H=l},{mode:1});var FN$;var oUq;var bk=null;
_.e0({is:"ytd-comment-input",_template:function(){if(oUq!==void 0)return oUq;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return oUq=l},
behaviors:[_.l4g.YtHostElementBehavior,_.pi,_.la.YtComponentBehavior,_.J9.YtRendererstamperBehavior,_.yF5.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 _.CF}},
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",_.CY(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;_.Mf();this.focus()},
detached:function(){document.removeEventListener("tap",_.CY(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(l){l=l.detail;l=l.isCustomEmoji?l.shortcuts[0]:l.emojiId;var D=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(D,l);this.maybeUpdateTextDirection_();_.O9(this.hostElement,"input")},
getInputRange_:function(){var l=_.Df();if(l){l=l.getBrowserRangeObject();for(var D=l.commonAncestorContainer;D;){if(D===this.getEditableTextArea_())return l;D=D.parentNode}}l=this.getEditableTextArea_();l=_.EI(l,l.childNodes.length);l.select();return l.getBrowserRangeObject()},
insertTextWithEmojis_:function(l,D,U){(D=this.emojiManager.createDocumentFragment(D,!0,!1,U===void 0?!0:U))&&D.childNodes.length!==0&&(l.collapsed||l.deleteContents(),U=D.lastChild,l.insertNode(D),_.uE7(U).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var l=_.Df();if(l){var D=l.JSC$11424_getStartNode(),U=l.JSC$11424_getEndNode();if(Fe$(D)&&Fe$(U)){var n=l.JSC$11424_getStartOffset(),y;if(_.nh&&D.nodeType===Node.ELEMENT_NODE&&(y=_.gm1(D)))_.EI(y,0).select();else{y=bS(D)?D:_.sj(D,bS);var A=bS(U)?U:_.sj(U,bS);if(y||A)if(l.isCollapsed()){if(D.nodeType===Node.TEXT_NODE){l=!0;n===D.length&&(l=!1);if(bk==="end"||bk==="right")l=!1;D=D.parentNode;l=[].concat(_.zz(D.parentNode.childNodes)).indexOf(D)+(l?0:1);_.EI(D.parentNode,
l).select()}}else y?y.previousSibling&&y.previousSibling.length>0?_.TL(U,l.JSC$11424_getEndOffset(),y.previousSibling,y.previousSibling.length-1).select():(D=document.createTextNode("\u200b"),y.parentNode.insertBefore(D,y),_.TL(U,l.JSC$11424_getEndOffset(),D,0).select()):A&&(A.nextSibling&&A.nextSibling.length>0?_.TL(D,l.JSC$11424_getStartOffset(),A.nextSibling,1).select():(U=document.createTextNode("\u200b"),A.parentNode.insertBefore(U,A.nextSibling),_.TL(D,l.JSC$11424_getStartOffset(),U,U.length).select()));
bk=null}}else bk=null}else bk=null},
leftKeyPressed_:function(){bk="left"},
rightKeyPressed_:function(){bk="right"},
endKeyPressed_:function(){bk="end"},
maybeDeleteChip_:function(){var l=sm$(!0);if(l){var D=_.Df(),U=D.JSC$11424_getStartNode();D=D.JSC$11424_getStartOffset();_.zL(U,D,l,l.childNodes.length).select()}},
maybeBackspaceChip_:function(){var l=sm$(!1);if(l){var D=_.Df(),U=D.JSC$11424_getStartNode();D=D.JSC$11424_getStartOffset();_.zL(U,D,l,0).select()}},
maybeBackspaceChipWordMode_:function(l){var D=_.Df();if(D.isCollapsed()){var U=D.JSC$11424_getStartNode();D=D.JSC$11424_getStartOffset();var n=Ezr(U,D,!0);n&&(_.zL(U,D,n,0).select(),document.execCommand("delete"),l.preventDefault(),l.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(l){var D=_.Df();if(D.isCollapsed()){var U=D.JSC$11424_getStartNode();D=D.JSC$11424_getStartOffset();var n=Ezr(U,D,!1);n&&(_.zL(U,D,n,n.childNodes.length).select(),document.execCommand("delete"),l.preventDefault(),l.stopImmediatePropagation())}},
onContentClick:function(l){l.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(l){l.defaultPrevented||l.currentTarget.tagName==="YTD-COMMENT-INPUT"&&bS(l.target)&&l.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.iJ(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.iJ(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(l,D){l=wmH(l,this.emojiManager,D).cloneNode(!0);for(D=l.firstChild;D;)if(D.nodeType!==1)D=D.nextSibling;else switch(D.tagName){case "BR":var U=_.dU();_.Mrr(U,D);D=U.nextSibling;break;case "DIV":(U=D.lastChild)&&D.nextSibling&&_.xh(_.dU(),U);D.previousSibling&&(D.previousSibling.nodeType===1||D.previousSibling.nodeType===3&&!D.previousSibling.textContent.endsWith("\n"))&&_.pT(_.dU(),D);U&&U.nodeName==="BR"&&_.kT(U);U=D;D.hasChildNodes()?(D=D.firstChild,
_.Rhz(U)):(D=D.nextSibling,_.kT(U));break;default:D=D.nextSibling}return T6v(l)},
setTextAreaValue:function(l){l||(l="");var D=this.getEditableFormattedString_();D.text="";this.getEditableTextArea_().innerText="";typeof l==="string"&&(l={runs:[{text:l}]});D.text=l},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();bk=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var l=this.getEditableTextArea_();l&&(_.EI(l,l.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.H3("HTML_DIR")==="rtl"){var l=this.getEditableTextArea_(),D=this.getTextAreaValue()!==""?"auto":"rtl";l.setAttribute("dir",D)}},
handleInputEvent_:function(){var l=null;if(this.isEmojiButtonDisplayed){var D=this.getInputRange_();D&&(l=this.emojiInput.retrieveTextBeforeRange(D))}this.insertText_(l,!0);this.updateCharCount_();l=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=l.scrollHeight>l.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var l=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:l})},
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(l){this.isEmojiButtonDisplayed&&(l.preventDefault(),l.stopImmediatePropagation(),l=l.clipboardData.getData("text/plain"),this.insertText_(l,!1,!1),_.O9(this.hostElement,"input"))},
insertText_:function(l,D,U){D=D===void 0?!1:D;U=U===void 0?!0:U;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&l){var n=this.getInputRange_().cloneRange();this.emojiManager&&n&&(D&&this.emojiInput.offsetStartOfRangeBy(n,l.length),this.insertTextWithEmojis_(n,l,U),oz8(this.getEditableTextArea_().lastChild)||(n=this.getInputRange_().cloneRange()),n&&(this.emojiInput.updateSuggestions(n,l),this.updateSuggestionOffset_(n)))}},
getSimpleString:_.Nl,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(l){return l?"focused":"not-focused"},
computePlaceholderText_:function(l){return this.getSimpleString(l)},
computeEditableText_:function(l){return this.getSimpleString(l)},
onPrefilledContentDismissed_:function(l){l.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(l,D){l?this.fire("yt-autonav-pause-focus"):D!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(l){var D=this.getEditableTextArea_();[].concat(_.zz(l.dataTransfer.items)).forEach(function(U){U.kind==="string"&&U.type.match("^text/plain")&&U.getAsString(function(n){D.appendChild(document.createTextNode(n))})});
l.preventDefault()},
preventDefault_:function(l){l.preventDefault()},
onSuggestionInsert_:function(l){this.insertTextWithEmojis_(l.detail.range,l.detail.text)},
onEmojiSuggestionClick_:function(l){this.emojiInput.insertSuggestion(l.detail)},
updateSuggestionOffset_:function(l){if(this.emojiInput&&_.iJ(this.emojiInput).querySelector("#dropdown")){var D=this.getEditableTextArea_().getBoundingClientRect().bottom,U=l.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(D-U)+5;D=this.getEditableTextArea_().getBoundingClientRect().left;l=l.getBoundingClientRect().left-D;_.iJ(this.emojiInput).querySelector("#dropdown").style.marginLeft=l+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Vo("yt-post"));return this.localStorage}});var gq=function(){var l=_.p.apply(this,arguments)||this;l.currentCommentOptionIndex=0;l.isEmojiPickerDisplayed=!1;l.emojiManager=_.CF;l.isUgcEmpty=!1;l.userGeneratedCommentChangedHandler=function(){_.O9(l.hostElement,"ytd-pdg-user-generated-comment-changed");l.isEmojiYtdCommentInputEnabled&&(l.isUgcEmpty=!l.ytdCommentInputEl.getTextAreaValue())};
l.pasteHandler=function(D){D.preventDefault();D.stopImmediatePropagation();var U;if(D=(U=D.clipboardData)==null?void 0:U.getData("text/plain"))U=document.getSelection().getRangeAt(0),U.collapsed||U.deleteContents(),D=document.createTextNode(D),U.insertNode(D),U.selectNodeContents(D),U.collapse(!1),D=window.getSelection(),D.removeAllRanges(),D.addRange(U)};
l.onDocumentClick=function(D){if(l.isEmojiPickerDisplayed){var U,n,y;!(D.target instanceof Node)||(U=D.composedPath())!=null&&U.includes(l.editableTextEl)||(n=D.composedPath())!=null&&n.includes(l.emojiButtonEl)||(y=D.composedPath())!=null&&y.includes(l.emojiPickerEl)||(l.isEmojiPickerDisplayed=!1)}};
return l};
_.Z(gq,_.p);_.W=gq.prototype;_.W.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.W.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.W.detached=function(){var l;(l=this.contentEl)==null||l.removeEventListener("input",this.userGeneratedCommentChangedHandler);var D;(D=this.contentEl)==null||D.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.W.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.W.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var l;this.contentEl.textContent=this.rendererBehavior.getSimpleString((l=this.data)==null?void 0:l.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.W.reloadEmojis=function(){this.emojiPickerEl&&_.M(this.emojiPicker,_.bMy)&&this.emojiPickerEl.updateEmojiCategories()};
_.W.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Wg(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.W.handleBackgroundColorStyling=function(){var l;if((l=this.currentCommentOption)==null?0:l.commentBackgroundColorArgb){var D;_.Wg(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.tu((D=this.currentCommentOption)==null?void 0:D.commentBackgroundColorArgb)})}else _.Wg(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.W.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var l;(l=this.contentEl)==null||l.focus()}};
_.W.onEditButtonClick=function(l){var D=document.getSelection();D&&this.contentEl&&(l.stopPropagation(),l.preventDefault(),D.selectAllChildren(this.contentEl),D.collapseToEnd())};
_.W.onContentDrop=function(l){var D=this;if(l.dataTransfer){l=_.B(l.dataTransfer.items);for(var U=l.next();!U.done;U=l.next())U=U.value,U.kind==="string"&&U.type.match("^text/plain")&&U.getAsString(function(n){var y;(y=D.contentEl)==null||y.appendChild(document.createTextNode(n))})}};
_.W.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.W.getUserGeneratedCommentText=function(){var l,D=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(l=this.contentEl)==null?void 0:l.textContent;return D?D.trim():""};
_.W.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.W.onEmojiSelect=function(l){this.ytdCommentInputEl.onEmojiSelect(l)};
_.QP.Object.defineProperties(gq.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.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 l;return!((l=this.currentCommentOption)==null||!l.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var l;if(_.M((l=this.currentCommentOption)==null?void 0:l.chipRenderer,_.pOr)){var D;return _.M((D=this.currentCommentOption)==null?void 0:D.chipRenderer,_.pOr)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var l,D;return((l=this.data)==null?0:l.commentOptionRenderers)?_.M((D=this.data)==null?void 0:D.commentOptionRenderers[this.superThanksSelectedTierEntity.index],D4r):void 0}var U,n;return((U=this.data)==null?0:U.commentOptionRenderers)?_.M((n=this.data)==null?void 0:n.commentOptionRenderers[this.currentCommentOptionIndex],D4r):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var l;return this.rendererBehavior.getSimpleString((l=this.data)==null?void 0:l.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var l;return this.rendererBehavior.getSimpleString((l=this.data)==null?void 0:l.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=_.M((l=this.data)==null?void 0:l.commentDialog,_.SI5))==null?void 0:D.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=_.M((l=this.data)==null?void 0:l.commentDialog,_.SI5))==null?void 0:D.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=_.M((l=this.data)==null?void 0:l.commentDialog,_.SI5))==null?void 0:D.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(D=_.M((l=this.data)==null?void 0:l.commentDialog,_.SI5))==null?void 0:D.emojiPicker;if(!_.M(U,_.bMy)||!_.M(U,_.bMy).categories)return!1;l=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 n,y;return((n=_.M(U,_.bMy))==null?0:(y=n.categories)==null?0:y.find(l))?!0:!1}}});
gq.prototype.onEmojiSelect=gq.prototype.onEmojiSelect;gq.prototype.dataChanged=gq.prototype.dataChanged;gq.prototype.currentCommentOptionChanged=gq.prototype.currentCommentOptionChanged;_.E([_.m(_.l5),_.T("design:type",Object)],gq.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],gq.prototype,"rendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],gq.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.gP("#content-dom-if"),_.T("design:type",_.ar)],gq.prototype,"contentDomIfEl",void 0);_.E([_.gP("#content-no-emojis"),_.T("design:type",HTMLElement)],gq.prototype,"contentEl",void 0);_.E([_.gP("#container"),_.T("design:type",HTMLElement)],gq.prototype,"containerEl",void 0);_.E([_.gP("#comment-chip-container"),_.T("design:type",HTMLElement)],gq.prototype,"paidCommentChipContainerEl",void 0);_.E([_.gP("#text-input"),_.T("design:type",HTMLElement)],gq.prototype,"editableTextEl",void 0);
_.E([_.gP("#emoji-button"),_.T("design:type",HTMLElement)],gq.prototype,"emojiButtonEl",void 0);_.E([_.gP("#emoji-picker > yt-emoji-picker-renderer"),_.T("design:type",Object)],gq.prototype,"emojiPickerEl",void 0);_.E([_.gP("#text-input > ytd-comment-input"),_.T("design:type",Object)],gq.prototype,"ytdCommentInputEl",void 0);_.E([_.K(),_.T("design:type",Object)],gq.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],gq.prototype,"currentCommentOptionIndex",void 0);
_.E([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:oo$}),_.T("design:type",Object)],gq.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.K(),_.T("design:type",Object)],gq.prototype,"isEmojiPickerDisplayed",void 0);_.E([_.K(),_.T("design:type",Object)],gq.prototype,"emojiManager",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],gq.prototype,"isUgcEmpty",void 0);
_.E([_.Pg("currentCommentOption"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gq.prototype,"currentCommentOptionChanged",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gq.prototype,"dataChanged",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gq.prototype,"isEmojiYtdCommentInputEnabled",null);
_.E([_.t("data.title"),_.T("design:type",Object),_.T("design:paramtypes",[])],gq.prototype,"title",null);_.E([_.t("data.authorText"),_.T("design:type",Object),_.T("design:paramtypes",[])],gq.prototype,"channelName",null);_.E([_.t("data.commentOptionRenderers","currentCommentOption"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gq.prototype,"shouldShowPaidCommentChipRenderer",null);
_.E([_.t("data.commentOptionRenderers","currentCommentOption"),_.T("design:type",Object),_.T("design:paramtypes",[])],gq.prototype,"paidCommentChipRenderer",null);_.E([_.t("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],gq.prototype,"currentCommentOption",null);
_.E([_.t("data.defaultCommentText","superThanksSelectedTierEntity"),_.T("design:type",Object),_.T("design:paramtypes",[])],gq.prototype,"commentText",null);_.E([_.t("data.placeholderText"),_.T("design:type",Object),_.T("design:paramtypes",[])],gq.prototype,"placeholderText",null);_.E([_.t("data.commentDialog.commentDialogRenderer.editableText"),_.T("design:type",Object),_.T("design:paramtypes",[])],gq.prototype,"editableText",null);
_.E([_.t("data.commentDialog.commentDialogRenderer.emojiButton"),_.T("design:type",Object),_.T("design:paramtypes",[])],gq.prototype,"emojiButton",null);_.E([_.t("data.commentDialog.commentDialogRenderer.emojiPicker"),_.T("design:type",Object),_.T("design:paramtypes",[])],gq.prototype,"emojiPicker",null);
_.E([_.t("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],gq.prototype,"isEmojiButtonDisplayed",null);_.E([_.hj("yt-emoji-select"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],gq.prototype,"onEmojiSelect",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],gq);
_.r(gq,"ytd-pdg-comment-preview-renderer",function(){if(FN$!==void 0)return FN$;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return FN$=l},{mode:2});var wJ$;var uk=function(){var l=_.p.apply(this,arguments)||this;l.selected=!1;return l};
_.Z(uk,_.p);_.W=uk.prototype;_.W.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.W.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.W.dataChanged=function(){this.data&&(_.lJ(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Wg(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.tu(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.tu(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.W.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.W.onClick=function(){this.logClick()};
_.W.onKeyboardSelect=function(){_.O9(this.hostElement,"tap");this.onClick()};
_.W.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
uk.prototype.onClick=uk.prototype.onClick;uk.prototype.selectedChanged=uk.prototype.selectedChanged;uk.prototype.dataChanged=uk.prototype.dataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],uk.prototype,"componentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.pi),_.T("design:type",Object)],uk.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.m(_.wP),_.T("design:type",Object)],uk.prototype,"ironSelectableBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],uk.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],uk.prototype,"shownThumbnail",void 0);_.E([_.K(),_.T("design:type",Object)],uk.prototype,"basePriceText",void 0);_.E([_.K(),_.T("design:type",Object)],uk.prototype,"purchaseCommand",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],uk.prototype,"selected",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],uk.prototype,"dataChanged",null);_.E([_.Pg("selected"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],uk.prototype,"selectedChanged",null);_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],uk.prototype,"onClick",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],uk);
_.r(uk,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(wJ$!==void 0)return wJ$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return wJ$=l},{mode:1});var vt=function(){var l=_.p.apply(this,arguments)||this;l.selectedItemIndex=0;l.buyButtonDisabled=!1;return l};
_.Z(vt,_.p);_.W=vt.prototype;
_.W.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]]"}}}}}};
_.W.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var l;var D=(l=_.M(this.data.colorSlider,lcH))==null?void 0:l.notches[this.selectedItemIndex].purchaseCommand}else{var U;D=(U=_.M(this.data.selectableItemButtons[this.selectedItemIndex],nnv))==null?void 0:U.purchaseCommand}if(D){l=_.M(D,_.qRy);l.productData||(l.productData={});var n;l.productData={pdgData:{commentMessageText:(n=this.commentPreviewRenderer)==null?void 0:n.getUserGeneratedCommentText()}};
_.O9(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(D)}}};
_.W.dataChanged=function(){if(this.data){_.CF.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.xok(_.CF,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.CF.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var l;this.buyButtonDisabled=!((l=_.M(this.data.commentPreview,U4$))==null||!l.placeholderText);this.updatePriceSelectorStatus();var D;if((D=this.data)==null?0:D.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;l=[];this.data.preloadImages&&(l=this.data.preloadImages);
l=l.map(function(U){return _.IO(U.thumbnails,1920)});
l=_.B(l);for(D=l.next();!D.done;D=l.next())(D=D.value)&&_.clg(D).thenCatch(function(){_.II(Error("Il"))})}};
_.W.superThanksSelectedTierEntityChanged=function(){var l;(this==null?void 0:(l=this.superThanksSelectedTierEntity)==null?void 0:l.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.W.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.W.updatePriceSelectorStatus=function(){this.isColorSlider?(_.iJ(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.iJ(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.iJ(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.iJ(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.W.closeBuyFlow=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.W.onUserGeneratedContentChanged=function(){var l;this.buyButtonDisabled=!((l=this.commentPreviewRenderer)==null?0:l.getUserGeneratedCommentText())};
_.W.updateSelectedItemIndexFromBinding=function(l){this.selectedItemIndex=l.detail.value};
_.QP.Object.defineProperties(vt.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var l;return!((l=this.data)==null||!l.disclaimerText)}}});
vt.prototype.onUserGeneratedContentChanged=vt.prototype.onUserGeneratedContentChanged;vt.prototype.closeBuyFlow=vt.prototype.closeBuyFlow;vt.prototype.selectedItemIndexChanged=vt.prototype.selectedItemIndexChanged;vt.prototype.superThanksSelectedTierEntityChanged=vt.prototype.superThanksSelectedTierEntityChanged;vt.prototype.dataChanged=vt.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],vt.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vt.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],vt.prototype,"selectedItemIndex",void 0);_.E([_.K(),_.T("design:type",Boolean)],vt.prototype,"isColorSlider",void 0);
_.E([_.K(),_.T("design:type",Object)],vt.prototype,"buyButtonDisabled",void 0);_.E([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:oo$}),_.T("design:type",Object)],vt.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.gP("ytd-pdg-comment-preview-renderer"),_.T("design:type",Object)],vt.prototype,"commentPreviewRenderer",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],vt.prototype,"ytdReduxBehavior",void 0);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vt.prototype,"dataChanged",null);_.E([_.Pg("superThanksSelectedTierEntity"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vt.prototype,"superThanksSelectedTierEntityChanged",null);_.E([_.Pg("selectedItemIndex"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vt.prototype,"selectedItemIndexChanged",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vt.prototype,"closeBuyFlow",null);_.E([_.hj("ytd-pdg-user-generated-comment-changed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vt.prototype,"onUserGeneratedContentChanged",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],vt.prototype,"isDisclaimerTextShown",null);
_.E([_.x({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],vt);
_.r(vt,"yt-super-vod-buy-flow-content-renderer",function(){if(xm8!==void 0)return xm8;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return xm8=l},{mode:1});var r08;var Qv=function(){var l=_.p.apply(this,arguments)||this;l.lottieAnimationRef={};return l};
_.Z(Qv,_.p);_.W=Qv.prototype;_.W.created=function(){_.lv.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.CY(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.W.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.O9(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.W.detached=function(){this.autoCloseJobId&&_.Tn.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.CY(this,this.onPopupIronOverlayOpened))};
_.W.dataChanged=function(){var l=this;this.data&&this.data.autoCloseDelay&&(_.Vh(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Vu(_.Tn,function(){l.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Wg(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.W.onDOMLoadedLottie=function(){var l=this,D,U,n=Number((D=this.data)==null?void 0:(U=D.autoCloseDelay)==null?void 0:U.seconds)||0;this.fadeOutJobId=_.Vu(_.Tn,function(){l.lottiePlayerEl.classList.add("fadeout")},(n-.25)*1E3);
this.autoCloseJobId=_.Vu(_.Tn,function(){l.closePopup()},n*1E3)};
_.W.openPopup=function(){this.ironOverlayBehavior.open()};
_.W.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Vh(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.DP(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.Jc().resolve(_.qK).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Tn.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Tn.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.W.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var l,D;(l=this.lottieAnimationRef)==null||(D=l.lottieEl)==null||D.destroy();l=this.data.lottie;var U,n;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:l.url+"_"+Math.random(),path:l.url,autoplay:!0,loop:(n=(U=l.settings)==null?void 0:U.loop)!=null?n:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.QP.Object.defineProperties(Qv.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var l,D;return!!((l=this.data)==null?0:(D=l.lottie)==null?0:D.url)}}});
Qv.prototype.maybeInitializeLottie=Qv.prototype.maybeInitializeLottie;Qv.prototype.dataChanged=Qv.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Qv.prototype,"rendererBehavior",void 0);_.E([_.m(_.AM),_.T("design:type",Object)],Qv.prototype,"ironOverlayBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Qv.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Qv.prototype,"lottiePlayerProps",void 0);
_.E([_.K(),_.T("design:type",Object)],Qv.prototype,"lottieAnimationRef",void 0);_.E([_.gP("ytd-lottie-player"),_.T("design:type",HTMLElement)],Qv.prototype,"lottiePlayerEl",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Qv.prototype,"dataChanged",null);_.E([_.t("data"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Qv.prototype,"hasLottieAnimation",null);
_.E([_.Pg("data.lottie.url"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Qv.prototype,"maybeInitializeLottie",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Qv);
_.r(Qv,"ytd-desktop-image-overlay-renderer",function(){if(r08!==void 0)return r08;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return r08=l},{mode:1});var zi$;var Gu=function(){return _.p.apply(this,arguments)||this};
_.Z(Gu,_.p);_.W=Gu.prototype;_.W.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"}}}}};
_.W.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",_.CY(this,this.closePopup))};
_.W.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.CY(this,this.closePopup))};
_.W.dataChanged=function(){_.iu(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.M(this.data.header,ixH)&&(this.hasBackgroundBanner=!!_.M(this.data.header,ixH).backgroundBanner)};
_.W.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.CY(this,this.closePopup))};
_.W.closePopup=function(){this.data&&this.data.onCloseCommand&&_.lu(this.hostElement,[this.data.onCloseCommand])};
Gu.prototype.handleBuyflowSelectionSubmitted=Gu.prototype.handleBuyflowSelectionSubmitted;Gu.prototype.dataChanged=Gu.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Gu.prototype,"data",void 0);
_.E([_.K({value:!0,reflectToAttribute:!0}),_.T("design:type",Boolean)],Gu.prototype,"hasBackgroundBanner",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Gu.prototype,"dataChanged",null);_.E([_.hj("yt-pdg-buy-flow-selection-submitted"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Gu.prototype,"handleBuyflowSelectionSubmitted",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Gu);
_.r(Gu,"ytd-pdg-buy-flow-renderer",function(){if(zi$!==void 0)return zi$;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return zi$=l},{mode:1});var fMv;var Js=function(){var l=_.p.apply(this,arguments)||this;l.isOpen=!1;l.isPlaylistCreated=!1;return l};
_.Z(Js,_.p);_.W=Js.prototype;_.W.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.W.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.O9(this.hostElement,"yt-refit")};
_.W.onCreateTap=function(){var l=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.lu(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(D,U){if(!_.q("killswitch_ep_in_create_playlist_response")&&(U==null?0:U.actions))for(D=_.B(U.actions),U=D.next();!U.done;U=D.next())U=U.value,_.M(U,_.ea)&&l.ytComponentBehavior.resolveCommand(U)}}]),this.isPlaylistCreated=!0)};
_.W.onKeydown=function(l){if(l.keyCode===13)this.onCreateTap()};
_.W.onServiceRequestCompleted=function(l){l.stopPropagation();_.Vh(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.W.computePrivacyBadge=function(l){return l?[{metadataBadgeRenderer:l}]:[]};
Js.prototype.onServiceRequestCompleted=Js.prototype.onServiceRequestCompleted;Js.prototype.onKeydown=Js.prototype.onKeydown;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Js.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Js.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Js.prototype,"isOpen",void 0);
_.E([_.K(),_.T("design:type",Object)],Js.prototype,"isPlaylistCreated",void 0);_.E([_.K({value:{REQUIRED_LABEL:_.C3("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.C3("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.T("design:type",Object)],Js.prototype,"addToStrings",void 0);_.E([_.K({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.T("design:type",Array)],Js.prototype,"privacyBadge",void 0);
_.E([_.gP("#privacy-input"),_.T("design:type",Object)],Js.prototype,"privacyInput",void 0);_.E([_.gP("#name-input"),_.T("design:type",Object)],Js.prototype,"nameInput",void 0);_.E([_.hj("keydown"),_.T("design:type",Function),_.T("design:paramtypes",[KeyboardEvent]),_.T("design:returntype")],Js.prototype,"onKeydown",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],Js.prototype,"onServiceRequestCompleted",null);
_.E([_.x({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Js);
_.r(Js,"ytd-add-to-playlist-create-renderer",function(){if(fMv!==void 0)return fMv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return fMv=l},{mode:1});var $mv;var NJr;var LW=function(){var l=_.p.apply(this,arguments)||this;l.transferState="TRANSFER_STATE_UNKNOWN";return l};
_.Z(LW,_.p);LW.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
LW.prototype.onCheckboxChange=function(l){var D=this;this.data&&_.Fs(this,"yt-playlist-checkbox-changed",function(){var U=_.NN(l).checked?D.data.addToPlaylistServiceEndpoint:D.data.removeFromPlaylistServiceEndpoint;U&&_.Jc().resolve(_.qK).resolveCommand(U,{form:{element:D.hostElement}});_.q("dl_playlist_killswitch")||D.transferState!=="TRANSFER_STATE_UNKNOWN"&&D.transferState!=="TRANSFER_STATE_FAILED"&&D.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:D.data.playlistId,action:"ACTION_SYNC"}})},
100)};
LW.prototype.computeIconType=function(l){return l?"yt-icons:"+l.toLowerCase():null};
LW.prototype.dataChanged=LW.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],LW.prototype,"data",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],LW.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],LW.prototype,"ytComponentBehavior",void 0);_.E([_.gP("#checkbox"),_.T("design:type",HTMLInputElement)],LW.prototype,"checkbox",void 0);
_.E([_.K({selector:_.K7,selectorArgs:["data.playlistId"]}),_.T("design:type",String)],LW.prototype,"transferState",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],LW.prototype,"dataChanged",null);_.E([_.x({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],LW);
_.r(LW,"ytd-playlist-add-to-option-renderer",function(){if(NJr!==void 0)return NJr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return NJr=l},{mode:1});var s3P=_.w(function(l){var D=l.data;return _.g("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.g("div",null,_.g(_.BO,{text:function(){return D().title}})),_.g(_.v,{cond:function(){return D().subtitle},
then:function(U){return _.g("div",{class:"ytdMenuTitleRendererSubtitle"},_.g(_.BO,{text:U}))}}))},"xj");
s3P.idomCompat=!0;_.Tt(s3P,"ytd-menu-title-renderer",{props:{data:_.C$}});var qR=function(){var l=_.p.apply(this,arguments)||this;l.addToStrings={ADD_TO_DROPDOWN_LABEL:_.C3("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};l.closeButtonAriaLabel=_.C3("SBOX_INAPPROPRIATE_CANCEL");l.dialog=_.q("desktop_add_to_playlist_renderer_dialog_popup");return l};
_.Z(qR,_.p);_.W=qR.prototype;_.W.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"}}}};
_.W.onPopupOpened=function(){_.nY(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.W.onPopupClosed=function(){_.nY(this.playlists,"scrollable",!1)};
_.W.computeAriaLabel=function(){var l;if(this==null?0:(l=this.data)==null?0:l.actions){l=_.B(this.data.actions);for(var D=l.next();!D.done;D=l.next())if(D=D.value,D.menuTitleRenderer)return _.Nl(D.menuTitleRenderer.title)}};
_.W.onTapClose=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.QP.Object.defineProperties(qR.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var l;if(this==null?0:(l=this.data)==null?0:l.actions){l=_.B(this.data.actions);for(var D=l.next();!D.done;D=l.next())if(D=D.value,D.menuTitleRenderer)return D.menuTitleRenderer}return!1}}});
qR.prototype.onPopupClosed=qR.prototype.onPopupClosed;qR.prototype.onPopupOpened=qR.prototype.onPopupOpened;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],qR.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],qR.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],qR.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],qR.prototype,"addToStrings",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.T("design:type",String)],qR.prototype,"ariaLabel",void 0);_.E([_.K(),_.T("design:type",String)],qR.prototype,"closeButtonAriaLabel",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],qR.prototype,"dialog",void 0);
_.E([_.gP("#playlists"),_.T("design:type",HTMLElement)],qR.prototype,"playlists",void 0);_.E([_.gP("ytd-add-to-playlist-create-renderer"),_.T("design:type",Object)],qR.prototype,"createRenderer",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],qR.prototype,"menuTitleRenderer",null);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],qR.prototype,"onPopupOpened",null);
_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],qR.prototype,"onPopupClosed",null);_.E([_.x({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],qR);
_.r(qR,"ytd-add-to-playlist-renderer",function(){if($mv!==void 0)return $mv;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return $mv=l},{mode:1});var EUJ;var MR=function(){var l=_.p.apply(this,arguments)||this;l.isPlaylistEditComplete=!1;l.isCollabEngagementDisabled=!1;l.closeButtonAriaLabel=_.C3("SBOX_INAPPROPRIATE_CANCEL");l.saveButton={title:_.C3("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"};l.onValueChanged=function(){l.updateSaveButtonState();l.computeCollabEngagementDisabled()};
return l};
_.Z(MR,_.p);_.W=MR.prototype;_.W.attached=function(){this.JSC$20960_scroller&&(this.JSC$20960_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20960_scroller.attached&&typeof this.JSC$20960_scroller.attached==="function"&&this.JSC$20960_scroller.attached())};
_.W.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.W.onPopupClosed=function(){this.reset()};
_.W.close=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.W.onClickSave=function(){var l=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var D=[];this.nameInput.value!==null&&D.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&D.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var U=Number(this.privacyInput.value);isNaN(U)||D.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:U})}this.votingInput.value!==null&&(U=this.votingInput.value)&&D.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:U});if(D.length>0){var n;_.M((n=this.data)==null?void 0:n.updateSettingsEndpoint,_.lc).actions=D;var y;if((y=this.data)==null?0:y.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){l.close()}}}),this.isPlaylistEditComplete=!0}}};
_.W.computePrivacyBadge=function(l){return l?[{metadataBadgeRenderer:l}]:[]};
_.W.computeEditorData=function(l){var D,U;return l==null?void 0:(D=l.sections)==null?void 0:(U=D[0])==null?void 0:U.playlistSettingsEditorCasualSectionRenderer};
_.W.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.W.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}}}}}};
_.W.computeAriaLabel=function(){var l,D,U,n=(l=this.data)==null?void 0:(D=l.sections)==null?void 0:(U=D[0])==null?void 0:U.playlistSettingsEditorCasualSectionRenderer;return _.Nl(n==null?void 0:n.title)};
_.W.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"}))};
_.W.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.W.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.W.isNameChanged=function(){var l,D,U;return(((l=this.editorData)==null?void 0:(D=l.name)==null?void 0:(U=D.textInputFormFieldRenderer)==null?void 0:U.value)||"")!==(this.nameInput.value||"")};
_.W.isDescriptionChanged=function(){var l,D,U;return(((l=this.editorData)==null?void 0:(D=l.description)==null?void 0:(U=D.textInputFormFieldRenderer)==null?void 0:U.value)||"")!==(this.descriptionInput.value||"")};
_.W.isPrivacyChanged=function(){var l,D,U,n,y,A,C,h;return((C=(l=this.editorData)==null?void 0:(D=l.privacy)==null?void 0:(U=D.dropdownFormFieldRenderer)==null?void 0:(n=U.dropdown)==null?void 0:(y=n.dropdownRenderer)==null?void 0:(A=y.entries)==null?void 0:A.find(function(b){var u;return b==null?void 0:(u=b.privacyDropdownItemRenderer)==null?void 0:u.isSelected}))==null?void 0:(h=C.privacyDropdownItemRenderer)==null?void 0:h.int32Value)!==this.privacyInput.value};
_.W.isVotingChanged=function(){var l,D,U,n,y,A,C,h;return((C=(l=this.editorData)==null?void 0:(D=l.voting)==null?void 0:(U=D.dropdownFormFieldRenderer)==null?void 0:(n=U.dropdown)==null?void 0:(y=n.dropdownRenderer)==null?void 0:(A=y.entries)==null?void 0:A.find(function(b){var u;return b==null?void 0:(u=b.privacyDropdownItemRenderer)==null?void 0:u.isSelected}))==null?void 0:(h=C.privacyDropdownItemRenderer)==null?void 0:h.int32Value)!==this.votingInput.value};
MR.prototype.onPopupClosed=MR.prototype.onPopupClosed;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],MR.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],MR.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],MR.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],MR.prototype,"data",void 0);_.E([_.K({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.T("design:type",Array)],MR.prototype,"privacyBadge",void 0);_.E([_.K({computed:"computeEditorData(data)"}),_.T("design:type",Object)],MR.prototype,"editorData",void 0);_.E([_.K(),_.T("design:type",Object)],MR.prototype,"isPlaylistEditComplete",void 0);_.E([_.K(),_.T("design:type",Object)],MR.prototype,"isCollabEngagementDisabled",void 0);
_.E([_.K({value:{REQUIRED_LABEL:_.C3("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.C3("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.T("design:type",Object)],MR.prototype,"addToStrings",void 0);_.E([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.T("design:type",String)],MR.prototype,"ariaLabel",void 0);_.E([_.K(),_.T("design:type",String)],MR.prototype,"closeButtonAriaLabel",void 0);
_.E([_.K(),_.T("design:type",Object)],MR.prototype,"saveButton",void 0);_.E([_.gP("#name-input"),_.T("design:type",Object)],MR.prototype,"nameInput",void 0);_.E([_.gP("#description-input"),_.T("design:type",Object)],MR.prototype,"descriptionInput",void 0);_.E([_.gP("#privacy-input"),_.T("design:type",Object)],MR.prototype,"privacyInput",void 0);_.E([_.gP("#voting-input"),_.T("design:type",Object)],MR.prototype,"votingInput",void 0);
_.E([_.gP("#scroller"),_.T("design:type",Object)],MR.prototype,"JSC$20960_scroller",void 0);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],MR.prototype,"onPopupClosed",null);_.E([_.K(),_.T("design:type",Object)],MR.prototype,"onValueChanged",void 0);_.E([_.x({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],MR);
_.r(MR,"ytd-playlist-settings-editor-renderer",function(){if(EUJ===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);EUJ=l}l=EUJ;return l},{mode:1});var TJT;_.RL("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var R0=function(){return _.p.apply(this,arguments)||this};
_.Z(R0,_.p);_.W=R0.prototype;_.W.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}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.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 l=this.get("data.nextButton.buttonRenderer.navigationEndpoint");l&&(this.nextNavigationEndpoint=l,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.W.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 l={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",l)}}};
_.W.onPopupOpened=function(l){l.detail!==this&&l.detail!==this.hostElement||!_.q("enable_premium_voluntary_pause")||_.Vh(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.W.onNextButtonTap=function(){var l=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);l&&this.ytdOpenPopupBehavior.openPopup(l)};
_.W.updateSelectedResponseIndexFromBinding=function(l){this.selectedResponseIndex=l.detail.value};
R0.prototype.onPopupOpened=R0.prototype.onPopupOpened;R0.prototype.onSelectedResponseIndexChange=R0.prototype.onSelectedResponseIndexChange;R0.prototype.dataChanged=R0.prototype.dataChanged;_.E([_.m(_.LF),_.T("design:type",Object)],R0.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],R0.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],R0.prototype,"selectedResponseIndex",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],R0.prototype,"dataChanged",null);_.E([_.Pg("selectedResponseIndex"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],R0.prototype,"onSelectedResponseIndexChange",null);
_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],R0.prototype,"onPopupOpened",null);_.E([_.x({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],R0);
_.r(R0,"ytd-red-cancel-survey-renderer",function(){if(TJT!==void 0)return TJT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return TJT=l},{mode:1});var IM8;var ZI=function(){var l=_.p.apply(this,arguments)||this;l.closeButtonAriaLabel=_.C3("SBOX_INAPPROPRIATE_CANCEL");return l};
_.Z(ZI,_.p);ZI.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
ZI.prototype.onClickClose=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ZI.prototype,"rendererStamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ZI.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],ZI.prototype,"closeButtonAriaLabel",void 0);_.E([_.x({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],ZI);
_.r(ZI,"ytd-search-filter-options-dialog-renderer",function(){if(IM8!==void 0)return IM8;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return IM8=l},{mode:1});var HRH;var Yyw=function(){return function(l){l=l.availabilityType;return l===void 0||l==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||l==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var eF=function(){var l=_.p.apply(this,arguments)||this;l.qualityOptions=[];l.upsellOptions=[];l.showUpsellSection=!1;l.rememberSettingsChecked=!1;return l};
_.Z(eF,_.p);_.W=eF.prototype;_.W.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}}}}};
_.W.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.W.updateQualityOptions=function(){if(this.formats===void 0)_.Vh(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var l=[],D=[];this.showUpsellSection=!1;for(var U=_.B(this.formats),n=U.next();!n.done;n=U.next())(n=n.value)&&(n.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?D.push(n):l.push(n));l.length&&(this.qualityOptions=Hh5(l));D.length&&(this.showUpsellSection=!0,this.upsellOptions=Hh5(D))}};
_.W.updateRememberString=function(){if(this.downloadQualityPickerEntity)var l=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var D;l=(D=this.data)==null?void 0:D.premiumRememberSettingString}else{var U;l=(U=this.data)==null?void 0:U.rememberSettingString}l=l===void 0?_.C3("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):l;this.rememberSettingsCheckboxRenderer={title:_.H6(l),disabled:!1}};
_.W.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.QP.Object.defineProperties(eF.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var l;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(l=this.data)==null?void 0:l.qualityFormats}}});
eF.prototype.updateRememberString=eF.prototype.updateRememberString;eF.prototype.updateQualityOptions=eF.prototype.updateQualityOptions;eF.prototype.dataChanged=eF.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],eF.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],eF.prototype,"data",void 0);
_.E([_.m(_.l5),_.T("design:type",Object)],eF.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Boolean)],eF.prototype,"selectedUpsellQuality",void 0);_.E([_.K({computed:"computeIcon_(data.premiumIcon)",value:""}),_.T("design:type",String)],eF.prototype,"premiumIcon",void 0);_.E([_.K({selector:xD2,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.T("design:type",Object)],eF.prototype,"downloadQualityPickerEntity",void 0);
_.E([_.K(),_.T("design:type",Array)],eF.prototype,"qualityOptions",void 0);_.E([_.K(),_.T("design:type",Array)],eF.prototype,"upsellOptions",void 0);_.E([_.K(),_.T("design:type",Object)],eF.prototype,"showUpsellSection",void 0);_.E([_.K(),_.T("design:type",Object)],eF.prototype,"rememberSettingsCheckboxRenderer",void 0);_.E([_.gP("#remember-settings"),_.T("design:type",HTMLInputElement)],eF.prototype,"rememberSettingsCheckbox",void 0);
_.E([_.K(),_.T("design:type",Object)],eF.prototype,"rememberSettingsChecked",void 0);_.E([_.K(),_.T("design:type",Function)],eF.prototype,"onRememberSettingsCheckedChanged",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],eF.prototype,"dataChanged",null);_.E([_.Pg("downloadQualityPickerEntity"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],eF.prototype,"updateQualityOptions",null);
_.E([_.Pg("selectedUpsellQuality"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],eF.prototype,"updateRememberString",null);_.E([_.x({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],eF);
_.r(eF,"ytd-download-quality-selector-content",function(){if(HRH!==void 0)return HRH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return HRH=l},{mode:1});var Yqq;var mT=function(){var l=_.p.apply(this,arguments)||this;l.selectedUpsellQuality=!1;l.qualityOptions=[];l.useUpsellDismissAlternate=_.q("use_not_now_dl_upsell_dismiss_cta");l.shouldShowAlternateUpsellDimiss=!1;l.rememberSettings=!1;l.rememberSettingsChecked=!1;l.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};l.rememberSettingsCheckedChanged=function(D){l.rememberSettingsChecked=D};
return l};
_.Z(mT,_.p);_.W=mT.prototype;
_.W.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.H6(_.C3("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.H6(_.C3("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.H6(_.C3("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.H6(_.C3("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.W.updateQualityOptions=function(){this.formats===void 0?_.Vh(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Hh5(this.formats)};
_.W.onQualityOptionsSelect=function(l){if(this.qualityOptions&&l){l!==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 D=_.B(this.qualityOptions.entries()),U=D.next();!U.done;U=
D.next()){U=_.B(U.value);var n=U.next().value;U=U.next().value;var y=void 0,A=void 0;if(((y=U)==null?void 0:(A=y.settingsRadioOptionRenderer)==null?void 0:A.id)===l){this.selectedQualityIndex=n;l=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((l=this.formats[n])==null?void 0:l.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.W.onClickSubmit=function(){var l;if((l=this.downloadButtonRenderer)==null||!l.isDisabled){var D,U;l=(U=(D=this.data)==null?void 0:D.onSubmitEndpoint)!=null?U:{};var n,y;if(this.formats&&(((n=_.M(l,_.Cq))==null?0:n.videoId)||((y=_.M(l,_.hi))==null?0:y.playlistId))){var A,C,h,b,u,Q;D={formatType:(b=(A=this.formats)==null?void 0:(C=A[(h=this.selectedQualityIndex)!=null?h:0])==null?void 0:C.format)!=null?b:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(u=this.getOfflineEndpoint(l))==null?void 0:(Q=u.actionParams)==null?void 0:Q.settingsAction)};this.getOfflineEndpoint(l).actionParams=D;this.ytComponentBehavior.resolveCommand(l)}_.Vh(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.W.onClickUpsell=function(){var l;if((l=this.upsellButtonRenderer)==null||!l.isDisabled){var D,U;l=(U=(D=this.data)==null?void 0:D.upsellEndpoint)!=null?U:{};this.ytComponentBehavior.resolveCommand(l);_.Vh(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);D="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var n,y,A,C;D=(C=(n=this.formats)==null?void 0:(y=n[(A=this.selectedQualityIndex)!=null?A:0])==null?void 0:y.format)!=null?C:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:D}})}};
_.W.onClickClose=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.W.getOfflineSettingsAction=function(l,D){return l?D===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":D:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.W.getOfflineEndpoint=function(l){return _.M(l,_.Cq)?_.M(l,_.Cq):_.M(l,_.hi)};
_.QP.Object.defineProperties(mT.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.H6(_.C3("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var l;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(l=this.data)==null?void 0:l.qualityFormats}}});
mT.prototype.updateQualityOptions=mT.prototype.updateQualityOptions;mT.prototype.dataChanged=mT.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],mT.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],mT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],mT.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Number)],mT.prototype,"selectedQualityIndex",void 0);_.E([_.K(),_.T("design:type",Object)],mT.prototype,"selectedUpsellQuality",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],mT.prototype,"ytdReduxBehavior",void 0);
_.E([_.K({selector:xD2,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.T("design:type",Object)],mT.prototype,"downloadQualityPickerEntity",void 0);_.E([_.K(),_.T("design:type",Array)],mT.prototype,"qualityOptions",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],mT.prototype,"useUpsellDismissAlternate",void 0);_.E([_.K(),_.T("design:type",Object)],mT.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.E([_.K(),_.T("design:type",Object)],mT.prototype,"downloadButtonRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],mT.prototype,"upsellButtonRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],mT.prototype,"cancelButtonRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],mT.prototype,"upsellCancelButtonRenderer",void 0);_.E([_.K(),_.T("design:type",Object)],mT.prototype,"rememberSettings",void 0);_.E([_.K(),_.T("design:type",Object)],mT.prototype,"rememberSettingsChecked",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],mT.prototype,"dataChanged",null);_.E([_.Pg("downloadQualityPickerEntity"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],mT.prototype,"updateQualityOptions",null);_.E([_.x({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],mT);
_.r(mT,"ytd-download-quality-selector-renderer",function(){if(Yqq!==void 0)return Yqq;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Yqq=l},{mode:1});var ORW;var a0=function(){return _.p.apply(this,arguments)||this};
_.Z(a0,_.p);a0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
a0.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],a0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],a0.prototype,"data",void 0);_.E([_.K({computed:"computeIcon_(data.infoIcon)"}),_.T("design:type",Object)],a0.prototype,"infoIcon",void 0);
_.E([_.K({computed:"computeIcon_(data.warningIcon)"}),_.T("design:type",Object)],a0.prototype,"warningIcon",void 0);_.E([_.x({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],a0);
_.r(a0,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(ORW!==void 0)return ORW;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return ORW=l},{mode:1});var VE8;var ts=function(){return _.p.apply(this,arguments)||this};
_.Z(ts,_.p);ts.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ts.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ts.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ts.prototype,"data",void 0);_.E([_.x({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],ts);
_.r(ts,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(VE8!==void 0)return VE8;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return VE8=l},{mode:1});var iHr;var XF=function(){return _.p.apply(this,arguments)||this};
_.Z(XF,_.p);XF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
XF.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"}}}}};
XF.prototype.onServiceRequestSentOrCompleted=function(l,D){D&&D.actions&&D.actions.length>0&&_.Vh(this.hostElement,"yt-close-popup-action",[this.is])};
XF.prototype.onServiceRequestSentOrCompleted=XF.prototype.onServiceRequestSentOrCompleted;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],XF.prototype,"data",void 0);
_.E([_.hj("yt-service-request-completed"),_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],XF.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.x({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],XF);
_.r(XF,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(iHr!==void 0)return iHr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return iHr=l},{mode:1});var lw2;var SF=function(){var l=_.p.apply(this,arguments)||this;l.submitButtonDisabled=!0;return l};
_.Z(SF,_.p);_.W=SF.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.W.onDataChanged=function(){var l,D,U;if(((l=this.data)==null?void 0:(D=l.confirmButton)==null?void 0:(U=D.buttonRenderer)==null?void 0:U.isDisabled)!==void 0){var n,y,A;this.submitButtonDisabled=(n=this.data)==null?void 0:(y=n.confirmButton)==null?void 0:(A=y.buttonRenderer)==null?void 0:A.isDisabled}};
_.W.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.W.updateSubmitButtonDisabledFromBinding=function(l){this.submitButtonDisabled=l.detail.value};
_.W.updateSubmitButtonDisabledFromConfirmCheckbox=function(l){this.submitButtonDisabled=!l.detail.value};
SF.prototype.onDataChanged=SF.prototype.onDataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],SF.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],SF.prototype,"submitButtonDisabled",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SF.prototype,"onDataChanged",null);_.E([_.x({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],SF);
_.r(SF,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(lw2!==void 0)return lw2;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return lw2=l},{mode:1});var D_5;var kI=function(){return _.p.apply(this,arguments)||this};
_.Z(kI,_.p);_.QP.Object.defineProperties(kI.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var l,D,U;return((l=this.data)==null?void 0:l.title)+" "+((D=this.data)==null?void 0:D.metadataPrimary)+" "+((U=this.data)==null?void 0:U.metadataSecondary)}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],kI.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],kI.prototype,"data",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],kI.prototype,"ariaLabel",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],kI);
_.r(kI,"ytd-compact-product-list-item-renderer",function(){if(D_5!==void 0)return D_5;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return D_5=l},{mode:1});var U_$;var dq=function(){return _.p.apply(this,arguments)||this};
_.Z(dq,_.p);dq.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]]"}}}}}};
_.QP.Object.defineProperties(dq.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],dq.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],dq.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],dq);
_.r(dq,"ytd-compact-product-list-renderer",function(){if(U_$!==void 0)return U_$;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return U_$=l},{mode:1});var ncq;var KW=function(){return _.p.apply(this,arguments)||this};
_.Z(KW,_.p);_.W=KW.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.W.getBackgroundUrl=function(){var l=this.get("data.headerImage.thumbnails");return l?"url("+_.IO(l,this.hostElement.clientWidth)+")":""};
_.W.onDataChanged=function(){var l=this.getBackgroundUrl();l&&(this.header.style.backgroundImage=l);l=_.t6();var D=_.aS(),U=this.get("data.trackingParams");U&&D&&l&&_.jz(l,D,_.v9(U));l=_.B(this.hostElement.querySelectorAll("yt-img-shadow"));for(D=l.next();!D.done;D=l.next())D.value.onShow()};
_.W.onPopupClosed=function(l){_.NN(l).localName==="ytd-membership-post-cancel-renderer"&&_.Vh(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
KW.prototype.onPopupClosed=KW.prototype.onPopupClosed;KW.prototype.onDataChanged=KW.prototype.onDataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],KW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],KW.prototype,"data",void 0);_.E([_.gP("#header"),_.T("design:type",HTMLDivElement)],KW.prototype,"header",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],KW.prototype,"onDataChanged",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],KW.prototype,"onPopupClosed",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],KW);
_.r(KW,"ytd-membership-post-cancel-renderer",function(){if(ncq!==void 0)return ncq;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return ncq=l},{mode:1});var y$q;var ct=function(){return _.p.apply(this,arguments)||this};
_.Z(ct,_.p);ct.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
ct.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ct.prototype,"data",void 0);_.E([_.gP("ytd-feedback-survey-renderer"),_.T("design:type",Object)],ct.prototype,"feedbackSurveyRenderer",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],ct);
_.r(ct,"ytd-sponsorship-confirm-cancel-content",function(){if(y$q!==void 0)return y$q;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return y$q=l},{mode:1});var A$w;var pW=function(){var l=_.p.apply(this,arguments)||this;l.maybeSubmitFeedback=function(){l.content&&l.content.maybeSubmitFeedback()};
return l};
_.Z(pW,_.p);_.W=pW.prototype;_.W.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.W.onYtPopupOpened=function(l,D){D===this&&this.data&&this.data.onOpenCommands&&_.DP(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Vh(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.W.onYtPopupClosed=function(l,D){(D&&D.canceled===!0||D&&D.canceled===!1&&D.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.DP(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.W.onYtServiceRequestCompleted=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.W.onYtServiceRequestError=function(l){_.F7(this.hostElement,l.detail.error.message)};
_.W.onDataChanged=function(){if(this.isAttached){var l=this.backgroundUrl;l&&(_.iJ(this.hostElement).querySelector("#header").style.backgroundImage=l)}};
_.QP.Object.defineProperties(pW.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var l=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return l?"url("+_.IO(l,this.hostElement.clientWidth)+")":""}}});
pW.prototype.onDataChanged=pW.prototype.onDataChanged;pW.prototype.onYtServiceRequestError=pW.prototype.onYtServiceRequestError;pW.prototype.onYtServiceRequestCompleted=pW.prototype.onYtServiceRequestCompleted;pW.prototype.onYtPopupClosed=pW.prototype.onYtPopupClosed;pW.prototype.onYtPopupOpened=pW.prototype.onYtPopupOpened;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],pW.prototype,"data",void 0);_.E([_.K({value:function(){return _.C3("SBOX_INAPPROPRIATE_CANCEL")}}),
_.T("design:type",String)],pW.prototype,"closeButtonAriaLabel",void 0);_.E([_.gP("#scrollable"),_.T("design:type",Object)],pW.prototype,"scrollable",void 0);_.E([_.gP("ytd-sponsorship-confirm-cancel-content"),_.T("design:type",Object)],pW.prototype,"content",void 0);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],pW.prototype,"onYtPopupOpened",null);
_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],pW.prototype,"onYtPopupClosed",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],pW.prototype,"onYtServiceRequestCompleted",null);
_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],pW.prototype,"onYtServiceRequestError",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],pW.prototype,"onDataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],pW);
_.r(pW,"ytd-sponsorship-confirm-cancel-renderer",function(){if(A$w!==void 0)return A$w;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return A$w=l},{mode:_.Vj("kevlar_poly_si_batch_j081")?1:2});var WcH;var xI=function(){return _.p.apply(this,arguments)||this};
_.Z(xI,_.p);xI.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],xI.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],xI);
_.r(xI,"ytd-sponsorships-celebration-content",function(){if(WcH!==void 0)return WcH;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return WcH=
l},{mode:1});var Baw;var CE8=_.wL(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),jF=function(){var l=_.p.apply(this,arguments)||this;l.scriptsAppended=!1;l.useFullWidthPrimaryButton=!1;l.buttonOverrides={type:"tonal",style:"overlay-dark"};return l};
_.Z(jF,_.p);_.W=jF.prototype;_.W.dataChanged=function(){var l;this.useFullWidthPrimaryButton=!((l=this.data)==null||!l.useFullWidthPrimaryButton)};
_.W.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:_.q("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.onDataChanged=function(){var l;(l=this.header)==null||l.style.setProperty("background-color",this.backgroundColor);if(l=this.headerImageUrl){var D;(D=this.header)==null||D.style.setProperty("background-image",l)}D=_.t6(4);l=_.aS(4);var U=this.get("data.trackingParams");if(U&&l&&D){var n=_.v9(U);_.jz(D,l,n);_.q("combine_ve_grafts")?_.he().graftServerVe(U,l,4):_.jz(D,l,n)}D=_.B(this.hostElement.querySelectorAll("yt-img-shadow"));for(l=D.next();!l.done;l=D.next())l.value.onShow();if(D=this.get("data.gtmId"))_.fd(D,
_.H3("GL","")),this.setupConversionTracking()};
_.W.setupConversionTracking=function(){if(!this.scriptsAppended){var l=document.createElement("script");_.WY(l,_.yr(CE8.join("")));document.head.appendChild(l);l=document.createElement("noscript");l.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(l);this.scriptsAppended=!0}};
_.W.onPopupClosed=function(l){if(_.NN(l).localName==="ytd-sponsorships-celebration-renderer"){_.Vh(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var D;this.data&&((D=this.data)==null?0:D.dismissCommand)&&_.yu.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.QP.Object.defineProperties(jF.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var l=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.tu(l)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var l=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return l?"url("+_.IO(l,this.hostElement.getBoundingClientRect().width)+")":""}}});
jF.prototype.onPopupClosed=jF.prototype.onPopupClosed;jF.prototype.onDataChanged=jF.prototype.onDataChanged;jF.prototype.dataChanged=jF.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],jF.prototype,"data",void 0);
_.E([_.gP("#header"),_.T("design:type",HTMLElement)],jF.prototype,"header",void 0);_.E([_.K(),_.T("design:type",Object)],jF.prototype,"scriptsAppended",void 0);_.E([_.K({type:Boolean,reflectToAttribute:!0}),_.T("design:type",Object)],jF.prototype,"useFullWidthPrimaryButton",void 0);_.E([_.K(),_.T("design:type",Object)],jF.prototype,"buttonOverrides",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jF.prototype,"dataChanged",null);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],jF.prototype,"onDataChanged",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],jF.prototype,"onPopupClosed",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],jF);
_.r(jF,"ytd-sponsorships-celebration-renderer",function(){if(Baw!==void 0)return Baw;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Baw=l},{mode:1});var hOP;var FF=function(){var l=_.p.apply(this,arguments)||this;l.isToggleChecked=!1;return l};
_.Z(FF,_.p);FF.prototype.onDataChanged=function(){var l;this.isToggleChecked=((l=this.data)==null?void 0:l.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
FF.prototype.close=function(){var l;((l=this.data)==null?0:l.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
FF.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var l,D=_.M((l=this.data)==null?void 0:l.switchButton,yPq);D&&(this.isToggleChecked&&D.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(D.switchOnInnertubeCommand),!this.isToggleChecked&&D.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(D.switchOffInnertubeCommand))};
FF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
FF.prototype.onDataChanged=FF.prototype.onDataChanged;_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],FF.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],FF.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],FF.prototype,"isToggleChecked",void 0);_.E([_.K({value:_.C3("CLOSE")}),_.T("design:type",String)],FF.prototype,"closeButtonAriaLabel",void 0);
_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],FF.prototype,"onDataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],FF);
_.r(FF,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(hOP!==void 0)return hOP;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return hOP=l},{mode:1});var PEP;var o0=function(){return _.p.apply(this,arguments)||this};
_.Z(o0,_.p);_.W=o0.prototype;_.W.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"}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.detached=function(){this.playerElement.stop()};
_.W.onYtServiceRequestCompleted=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.W.onYtServiceRequestError=function(l){_.F7(this.hostElement,l.detail.error.message)};
_.W.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.W.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.W.getTier=function(l,D){return!l||!l.tiers||D<0?null:_.M(l.tiers[D],CiT)};
_.W.moreThanOne=function(l){return!!(l&&l.length>1)};
_.W.tierOverviewTap=function(l){var D=this;this.selectedTier=l.model.index;_.u6(this,function(){_.O9(D.hostElement,"yt-refit")})};
_.W.computeSelectedClass=function(l,D){return this.isSelected(l,D)?"selected":""};
_.W.computeButtonAriaPressed=function(l,D){return this.isSelected(l,D)?"true":"false"};
_.W.isSelected=function(l,D){return l===D};
_.W.onDataChanged=function(){_.iJ(this.hostElement).querySelector("#header-overlay").style.visibility="";_.iJ(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 l=_.B(this.hostElement.querySelectorAll("yt-img-shadow")),
D=l.next();!D.done;D=l.next())D.value.onShow();var U;this.set("selectedTier",(U=this.get("data.targetTierIndex"))!=null?U:0);var n;(l=(n=this.data)==null?void 0:n.onVisible)&&this.ytComponentBehavior.resolveCommand(l)};
_.W.initializeVe=function(l){var D=_.t6(),U=_.aS(),n=this.get("data.trackingParams");U&&D&&(this.screenLayer=4,D=_.DJ(_.nMc)(void 0,69877,{clientScreenNonce:D,visualElement:U},void 0,void 0,void 0),_.SG(D,69877,4),U=_.aS(4),n&&U&&(n=_.v9(n),_.jz(D,U,n),l&&(this.offerVideoVe=_.UE(74659),_.jz(D,n,this.offerVideoVe))))};
_.W.setHeaderBackground=function(){var l=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.iJ(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.tu(l);if(l=this.getHeaderImage())l=_.IO(l,screen.width),_.iJ(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+l+")"};
_.W.getHeaderImage=function(){var l=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&l?l:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.W.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.W.setupVideoPlayer=function(l){var D=this,U,n,y,A;return _.P(function(C){if(C.nextAddress==1)return U=D.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),n=D.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.q("kevlar_player_update_killswitch")?D.playerElement.update({args:{autoplay:U,video_id:l,player_params:n}}):D.playerElement.loadVideoWithPlayerVars({autoplay:U,video_id:l,player_params:n}),
C.yield(D.playerElement.getPlayerPromise(),2);y=C.yieldResult;y.addEventListener("onStateChange",function(h){D.onPlayerStateChange(h)});
y.setScreenLayer(D.screenLayer);(A=_.t6(4))&&D.offerVideoVe&&_.oe(A,D.offerVideoVe);U&&(D.pauseOtherPlayers(),D.playerElement.focusOnPlayer(),D.playerElement.getPlayer().hideControls(),_.oI(_.Tn,function(){D.fadeOutHeaderOverlay()},4E3));
_.Kz(C)})};
_.W.onPlayerStateChange=function(l){l===1?this.backgroundPlayerElement&&(l=this.backgroundPlayerElement.player_.getPlayerState(),l!==1&&l!==3||this.backgroundPlayerElement.pause()):l===0&&(_.iJ(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.iJ(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.W.fadeOutHeaderOverlay=function(){_.iJ(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.W.onHeaderTap=function(){if(this.offerVideo){_.iJ(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var l;((l=this.playerElement.player_)==null?void 0:l.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(l=_.t6(4))&&this.offerVideoVe&&_.zo(l,this.offerVideoVe)}};
_.W.getBackgroundImageLayerClass=function(l){return l?"background-image-layer-with-video":""};
_.W.getHeaderClass=function(l){return l?"header-with-video":""};
_.W.getHeaderOverlayClass=function(l){return l?"header-overlay-with-video":""};
_.W.getTitleContainerClass=function(l,D){return l?"title-container-with-video":D?"title-container-without-video-flexible":"title-container-without-video"};
_.W.tierTitleDisplayStatus=function(l){return this.moreThanOne(l)?"hide":"show"};
_.W.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.Jc().resolve(_.kq).getPlayerElement():this.backgroundPlayerElement=_.T4();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var l=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=l===1||l===3;this.backgroundPlayerElement.pause()}};
_.W.isMiniplayerActive=function(){return _.Jc().resolve(_.kq).isMiniplayerActive()};
_.W.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("selected-tier-changed",this.selectedTier))};
o0.prototype.selectedTierChangedForBinding=o0.prototype.selectedTierChangedForBinding;o0.prototype.onDataChanged=o0.prototype.onDataChanged;o0.prototype.onYtPopupClosed=o0.prototype.onYtPopupClosed;o0.prototype.onYtPopupOpened=o0.prototype.onYtPopupOpened;o0.prototype.onYtServiceRequestError=o0.prototype.onYtServiceRequestError;o0.prototype.onYtServiceRequestCompleted=o0.prototype.onYtServiceRequestCompleted;
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],o0.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],o0.prototype,"data",void 0);_.E([_.K({value:0}),_.T("design:type",Number)],o0.prototype,"selectedTier",void 0);
_.E([_.K({value:""}),_.T("design:type",String)],o0.prototype,"offerVideo",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],o0.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.E([_.K({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Ho(this)}}),
_.T("design:type",String)],o0.prototype,"playerId",void 0);_.E([_.gP("tp-yt-paper-dialog-scrollable"),_.T("design:type",Object)],o0.prototype,"scrollable",void 0);_.E([_.gP("ytd-sponsorships-tier-renderer"),_.T("design:type",Object)],o0.prototype,"tierRenderer",void 0);_.E([_.gP("#player"),_.T("design:type",Object)],o0.prototype,"playerElement",void 0);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],o0.prototype,"onYtServiceRequestCompleted",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],o0.prototype,"onYtServiceRequestError",null);
_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],o0.prototype,"onYtPopupOpened",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],o0.prototype,"onYtPopupClosed",null);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],o0.prototype,"onDataChanged",null);
_.E([_.Pg("selectedTier"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],o0.prototype,"selectedTierChangedForBinding",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],o0);
_.r(o0,"ytd-sponsorships-offer-renderer",function(){if(PEP!==void 0)return PEP;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return PEP=l},{mode:_.Vj("kevlar_poly_si_batch_j077")?1:2});var bHr;var wq=function(){var l=_.p.apply(this,arguments)||this;l.buttonOverrides={type:"filled",style:"mono"};return l};
_.Z(wq,_.p);wq.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}}}}}};
wq.prototype.backgroundColorChanged=function(){var l,D,U,n=(D=_.M((l=this.data)==null?void 0:l.content,hlr))==null?void 0:(U=D.backgroundColor)==null?void 0:U.backgroundColor;n&&(l=_.an(n),_.iJ(this.hostElement).querySelector("#banner").style.backgroundColor=l,_.iJ(this.hostElement).querySelector("#abstract-art").style.backgroundColor=l)};
wq.prototype.attached=function(){this.JSC$21045_scroller&&(this.JSC$21045_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21045_scroller.attached&&typeof this.JSC$21045_scroller.attached==="function"&&this.JSC$21045_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wq.prototype.backgroundColorChanged=wq.prototype.backgroundColorChanged;_.E([_.K(),_.T("design:type",Object)],wq.prototype,"data",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.gP("#scroller"),_.T("design:type",Object)],wq.prototype,"JSC$21045_scroller",void 0);_.E([_.K(),_.T("design:type",Object)],wq.prototype,"buttonOverrides",void 0);
_.E([_.Pg("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],wq.prototype,"backgroundColorChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],wq);
_.r(wq,"ytd-sponsorships-promotion-celebration-renderer",function(){if(bHr!==void 0)return bHr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return bHr=l},{mode:_.Vj("kevlar_poly_si_batch_j077")?1:2});var gcP;var uBr;var rq=function(){return _.p.apply(this,arguments)||this};
_.Z(rq,_.p);rq.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
rq.prototype.computeIsInitiallyChecked=function(l){return l===1};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],rq.prototype,"data",void 0);_.E([_.gP("#checkbox"),_.T("design:type",Object)],rq.prototype,"checkbox",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],rq);
_.r(rq,"ytd-subscription-toggle-option-renderer",function(){if(uBr!==void 0)return uBr;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return uBr=l},{mode:1});var zu=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return l};
_.Z(zu,_.p);zu.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"}}}};
zu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zu.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var l=_.iJ(this.hostElement).querySelector("#options").selected;l=this.data.options[l].subscriptionRadioOptionRenderer.serviceEndpoint;var D=_.iJ(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");D&&l&&l.modifyChannelNotificationPreferenceEndpoint&&(D=D.getValue())&&(l.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[D]);_.Jc().resolve(_.qK).resolveCommand(l,{form:{element:this.hostElement}});
_.Vh(this.hostElement,"yt-close-popup-action")};
_.QP.Object.defineProperties(zu.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var l=this.data.options,D=0;D<l.length;D++){var U=l[D].subscriptionRadioOptionRenderer;if(U&&U.selected)return D}return null}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],zu.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],zu.prototype,"eventForwardingBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],zu.prototype,"data",void 0);_.E([_.t("data.options"),_.T("design:type",Object),_.T("design:paramtypes",[])],zu.prototype,"initialIndex",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],zu);
_.r(zu,"ytd-subscription-notification-options-renderer",function(){if(gcP!==void 0)return gcP;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return gcP=l},{mode:1});var vcJ;var QkT=function(){return _.p.apply(this,arguments)||this};
_.Z(QkT,_.p);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],QkT.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],QkT.prototype,"data",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],QkT);
_.r(QkT,"ytd-tvfilm-offer-groups-renderer",function(){if(vcJ!==void 0)return vcJ;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return vcJ=l},{mode:1});var GJw;var fW=function(){return _.p.apply(this,arguments)||this};
_.Z(fW,_.p);_.W=fW.prototype;_.W.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"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.W.computeThumbnailClass=function(l){return l.thumbnailOverlays?l.isShow?"thumbnail-show":"thumbnail-movie":l.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.W.computeCommerceSectionClass=function(l){return l.offers&&l.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.W.computeTitleClass=function(l){return l.offers&&l.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.W.onDataChanged=function(){[].concat(_.zz(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(l){l.onShow()})};
fW.prototype.onDataChanged=fW.prototype.onDataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],fW.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],fW.prototype,"onDataChanged",null);
_.E([_.x({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],fW);
_.r(fW,"ytd-ypc-offers-overlay-renderer",function(){if(GJw!==void 0)return GJw;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return GJw=l},{mode:_.Vj("kevlar_poly_si_batch_j028")?1:2});var J$W;var LcP=function(){this.usedMethods=new Set};
LcP.prototype.add=function(l){this.usedMethods.add(l)};
LcP.prototype.reset=function(){this.usedMethods.clear()};var ROv=function(l,D){this.query=l;this.previousSearchQuery=D;this.id=q6$++;if(!MB5){D=_.H3("SBOX_SETTINGS");l="https://"+((D==null?void 0:D.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var U=D==null?void 0:D.REQUEST_LANGUAGE;U&&(l+="&hl="+U);(U=D==null?void 0:D.REQUEST_DOMAIN)&&(l+="&gl="+U);l+="&client=youtube&gs_ri=youtube";(U=D==null?void 0:D.SUGG_EXP_ID)&&(l+="&sugexp="+encodeURIComponent(U));(U=D==null?void 0:D.PSUGGEST_TOKEN)&&(l+="&tok="+U);(D=
D==null?void 0:D.SESSION_INDEX)&&(l+="&authuser="+D);_.q("desktop_enable_visual_suggest")&&(l+="&h=180&w=320&ytvs=1");MB5=l}},ZHT=function(l){var D="q="+encodeURIComponent(l.query);
l.previousSearchQuery&&(D+="&pq="+encodeURIComponent(l.previousSearchQuery));return D},eOH=function(){var l=_.H3("SBOX_SETTINGS"),D={};
if(l==null?0:l.SEND_VISITOR_DATA)D["X-Goog-Visitor-Id"]=l==null?void 0:l.VISITOR_DATA;return D},m_r=function(l){var D=MB5;
D+="&gs_id="+l.id.toString(36);D+="&q="+encodeURIComponent(l.query);D+="&cp="+l.query.length;l.previousSearchQuery&&(D+="&pq="+encodeURIComponent(l.previousSearchQuery));(l=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(D+="&video_id="+l);return D},q6$=0,MB5="";var awJ=_.se.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,tBH=_.se.SEARCH_ENTITY_SUGGESTION_MOVIE,X88=_.se.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,S6W=_.se.SEARCH_ENTITY_SUGGESTION_TV_SHOW,kJw=function(l,D){this.text=l;this.bold=D},d_8=function(l,D,U){this.input=D;
this.index=U;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=l[0];this.type=l[1];this.subtypes=l[2];var n;this.displayText=VY$((n=l[3])==null?void 0:n.b);var y;this.ignoredPrefix=VY$((y=l[3])==null?void 0:y.a);var A,C;this.hasNewVideo=((A=l[3])==null?void 0:(C=A.zam)==null?void 0:C.toString())==="true"?!0:!1;var h;this.visualSuggestUrl=(h=l[3])==null?void 0:h.zai;var b;this.entityType=VY$((b=l[3])==null?void 0:b.zap);var u;this.entityName=VY$((u=l[3])==null?void 0:u.zao);var Q;D=
VY$((Q=l[3])==null?void 0:Q.zaf);var G;this.entityMid=(G=l[3])==null?void 0:G.zae;Q=iT$(this.subtypes,this.entityMid);if(D&&Q){if(D){G="";switch(Q){case "YOUTUBE_ENTITY_TYPE_SONG":G=X88;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":G=awJ;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":G=S6W;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":G=tBH}Q=Q==="YOUTUBE_ENTITY_TYPE_SONG"||Q==="YOUTUBE_ENTITY_TYPE_ALBUM"?G+" \u2022  \u2022 "+D:D}else Q="";this.entitySubtitle=Q}var J;this.externalChannelId=(J=l[3])==null?void 0:J.zav;
var L;this.entityThumbnailAttributionUrl=(L=l[3])==null?void 0:L.zaq},c$P=function(l,D){var U=[],n,y=(n=l.displayText)!=null?n:l.text;
(D==null?0:D.useEntityName)&&KcJ(l)&&l.entityName&&(y=l.entityName);if(l.type===33)return U.push(new kJw(y,!1)),U;if(y.length>=l.input.length&&y.substring(0,l.input.length)===l.input)U.push(new kJw(l.input,!1)),U.push(new kJw(y.substring(l.input.length),!0));else{var A=new Set(l.input.split(/\s/)),C=y.split(/\s/);U=C.map(function(h,b){return new kJw(h.trim()+(b===C.length-1?"":" "),!A.has(h))})}return U},KcJ=function(l){var D=!!iT$(l.subtypes);
l=!!l.entityMid;return D||l};var p85=function(l){this.rawResponse=["",[],{}];this.suggestions=[];try{var D=JSON.parse(lR$(l));if(typeof D==="object"&&D!==null)this.rawResponse=D;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(n){console.log("Suggest: Failed to parse SuggestResponse!");return}var U=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(n,y){return new d_8(n,U,y)})};var x_$=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new LcP;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21082_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},jkJ,FcT=function(){jkJ||(jkJ=new x_$);
return jkJ};
x_$.prototype.updateSuggestions=function(l){var D=this;this.availableSuggestions.forEach(function(U){D.previousSuggestions[U]=!0});
this.availableSuggestions=l.map(function(U){var n=U.type.toString();U.subtypes.length>0&&(n+="i"+U.subtypes.join("i"),n+="k"+U.suggestionSources.COMPLETE_SERVER.toString());return n})};
var ocW=function(l,D){var U=Date.now();l.firstEditTime<0&&(l.firstEditTime=U);D&&(l.lastQueryBuildTime=U);l.lastEditTime=U};
x_$.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21082_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var w8$=function(l){var D="";l.availableSuggestions.forEach(function(y){delete l.previousSuggestions[y]});
for(var U=_.B(Object.keys(l.previousSuggestions)),n=U.next();!n.done;n=U.next())n=n.value,l.previousSuggestions[n]&&(D+=(D?"j":"")+n);return D},r$$=function(l,D){var U=[];
D&&(U[1]=D.toString());U[0]="youtube";U[7]=Date.now()-l.startTime;U[6]=l.sessionNumber;l.zeroPrefixSuggestionCount>=0&&(U[33]=l.zeroPrefixSuggestionCount);U[13]=l.outOfSyncResponseCount;if(l.availableSuggestions.length>0){for(var n=D="",y=0,A=_.B(l.availableSuggestions),C=A.next();!C.done;C=A.next())C=C.value,C!==n&&(y>1&&(D+="l"+y),D+=(n?"j":"")+C,y=0,n=C),y+=1;y>1&&(D+="l"+y);U[3]=D}U[35]=w8$(l);l.selectedSuggestionIndex>=0&&(U[2]=l.selectedSuggestionIndex);var h;if(D=(h=_.H3("SBOX_SETTINGS"))==
null?void 0:h.SUGG_EXP_ID)U[19]=l.normalize(D),h=0,l.experimentTriggeredBeforeFinal&&(h|=1),l.experimentTriggeredFinal&&(h|=2),U[20]=h;U[26]=Array.from(l.inputMethodsTracker.usedMethods).join("j");if(l.JSC$21082_totalRoundTripTime>0){U[15]=l.JSC$21082_totalRoundTripTime;U[14]=l.maxRoundTripTime;h=[];for(y=D=0;y<10;y++)n=l.roundTripTimeHistogram[y],n===0?D++:(D>1?h.push(y+"-"+n):D===1?h.push("0j"+n):h.push(n.toString()),D=0);h=h.join("j");U[16]=h}l.zeroPrefixRoundTripTime>0&&(U[36]=l.zeroPrefixRoundTripTime);
l.lastQueryBuildTime>0&&(U[18]=l.lastQueryBuildTime-l.startTime);l.firstEditTime>0&&(U[4]=l.firstEditTime-l.startTime);l.lastEditTime>0&&(U[5]=l.lastEditTime-l.startTime);return U.join(".")};
x_$.prototype.normalize=function(l){return l.replaceAll(".","-")};
var zO5=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var $I=function(){var l=_.p.apply(this,arguments)||this;l.microphoneSpinnerActive=!1;l.noAnimations=!1;l.boundExitClick=function(){l.onExitButtonClick()};
l.speechOverlayClassName="";l.isLevelAnimating=!1;l.playCloseDialogAudioFeedback=!0;l.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return l};
_.Z($I,_.p);_.W=$I.prototype;_.W.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.W.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Lnw()};
_.W.dataChanged=function(){this.logDialog()};
_.W.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var l;(l=this.manager.audioPlayer)!=null&&(l.JSC$20395_audioEnabled=!1)}this.manager.stop();(l=this.manager.audioPlayer)!=null&&(l.JSC$20395_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.W.handleSpeechQueryCompleteAction=function(l){var D=l.navigationAction;D&&(l.trackingParams&&_.he().graftServerVe(l.trackingParams,this.dialogVe,5),_.O9(this.hostElement,"yt-navigate",{endpoint:D,tempData:this.getNavigationParams(D),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.W.onExitButtonClick=function(){this.closeDialog()};
_.W.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var l;if((l=this.manager)!=null){var D;(D=l.audioPlayer)==null||Uu(D,"failure");l.setState("microphone-off");l.stop()}}else(l=this.manager)==null||l.start()};
_.W.transcriptionChanged=function(){var l,D;(((l=this.transcription)==null?0:l.low)||((D=this.transcription)==null?0:D.high))&&this.setState("transcribing",this.transcription)};
_.W.stateChanged=function(){this.setState(this.state,this.transcription)};
_.W.logDialog=function(){var l;(l=this.data)!=null&&l.trackingParams&&(l=_.he(),_.KM(l,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=l.graftServerVe(this.data.trackingParams,void 0,5))};
_.W.getNavigationParams=function(l){var D={};if(_.q("web_yt_searchbox")){var U=FcT();U.inputMethodsTracker.add(6);U=r$$(U,15);D.gs_l=U;var n;D.oq=((n=_.M(l,_.bV))==null?void 0:n.query)||""}else if(l=window.ytvoicesearchloggingparams){if(l=l())D.oq=l.oq,D.gs_l=l.gs_l}else _.nt(Error("Jl"));return D};
_.W.closeDialog=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.W.setState=function(l,D){if(this.data){var U=this.data,n={};switch(l){case "listening":n={headerText:U.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:U.microphoneButtonAriaLabel};break;case "timeout":n={headerText:U.promptHeader,microphoneState:"try-again",microphoneLabel:U.promptMicrophoneLabel,microphoneAriaLabel:U.promptMicrophoneLabel};break;case "microphone-off":n={headerText:U.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:U.promptMicrophoneLabel,
microphoneAriaLabel:U.promptMicrophoneLabel};break;case "transcribing":(D==null?0:D.low)||(D==null?0:D.high)?n={transcriptionLow:D==null?void 0:D.low,transcriptionHigh:D==null?void 0:D.high,microphoneState:"speaking",microphoneAriaLabel:U.microphoneButtonAriaLabel}:n={headerText:U.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:U.microphoneButtonAriaLabel};break;case "processing":n={headerText:U.loadingHeader,microphoneState:"processing",microphoneAriaLabel:U.microphoneButtonAriaLabel};
break;case "offline":n={headerText:U.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:U.connectionErrorMicrophoneLabel,microphoneAriaLabel:U.connectionErrorMicrophoneLabel};break;case "permission":n={headerText:U.permissionsHeader,bodyLine1:U.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:U.permissionsSubtext};break;case "permission-denied":n={headerText:U.disabledHeader,bodyLine1:U.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:U.disabledSubtext}}n.className=
l;this.speechOverlayState=n;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.W.setMicrophoneState=function(l){var D=this.isLevelAnimating;this.isLevelAnimating=l==="speaking";!D&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=l==="processing"&&!this.noAnimations};
_.W.setClass=function(l){this.speechOverlayClassName&&_.nY(this.hostElement,this.speechOverlayClassName,!1);l&&(this.speechOverlayClassName=l,_.nY(this.hostElement,l,!0))};
_.W.runLevelAnimation=function(){var l=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var D=1+Math.random()*.75,U=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+U/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+D+")");_.Tn.addJob(function(){l.runLevelAnimation()},3,U)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
$I.prototype.stateChanged=$I.prototype.stateChanged;$I.prototype.transcriptionChanged=$I.prototype.transcriptionChanged;$I.prototype.onPopupClosed=$I.prototype.onPopupClosed;$I.prototype.dataChanged=$I.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],$I.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],$I.prototype,"rendererStamperBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],$I.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],$I.prototype,"eventForwardingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],$I.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],$I.prototype,"speechOverlayState",void 0);
_.E([_.K(),_.T("design:type",Object)],$I.prototype,"microphoneSpinnerActive",void 0);_.E([_.K({type:_.q("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.T("design:type",Object)],$I.prototype,"noAnimations",void 0);_.E([_.K({selector:function(l){var D;return(D=l.voiceSearch)==null?void 0:D.transcription}}),
_.T("design:type",Object)],$I.prototype,"transcription",void 0);_.E([_.K({selector:function(l){var D;return(D=l.voiceSearch)==null?void 0:D.overlay}}),
_.T("design:type",String)],$I.prototype,"state",void 0);_.E([_.K(),_.T("design:type",Object)],$I.prototype,"boundExitClick",void 0);_.E([_.gP("#microphone-levels"),_.T("design:type",HTMLElement)],$I.prototype,"level",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$I.prototype,"dataChanged",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$I.prototype,"onPopupClosed",null);
_.E([_.GY("transcription"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$I.prototype,"transcriptionChanged",null);_.E([_.GY("state"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],$I.prototype,"stateChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],$I);
_.r($I,"ytd-voice-search-dialog-renderer",function(){if(J$W!==void 0)return J$W;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return J$W=l},{mode:1});var fwq;var NR=function(){var l=_.p.apply(this,arguments)||this;l.isOverlay=!1;l.hidden=!1;return l};
_.Z(NR,_.p);_.W=NR.prototype;_.W.onPopupClosed=function(){this.toggleIconState(!1)};
_.W.computeIcon=function(){var l,D,U;return(D=_.M((l=this.data)==null?void 0:l.icon,vn8))==null?void 0:(U=D.icon)==null?void 0:U.iconType};
_.W.computeIconBadgeShape=function(){var l;return{iconBadgeType:"cart",iconBadgeText:(l=this.iconBadgeEntity)==null?void 0:l.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.W.onClick=function(){var l;(l=this.data)!=null&&l.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.W.computeHidden=function(l){return!l};
_.W.toggleIconState=function(l){this.iconButton&&(this.iconButton.pressed=l)};
NR.prototype.onPopupClosed=NR.prototype.onPopupClosed;_.E([_.m(_.l5),_.T("design:type",Object)],NR.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],NR.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],NR.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],NR.prototype,"isOverlay",void 0);
_.E([_.K({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.T("design:type",Object)],NR.prototype,"hidden",void 0);_.E([_.K({selectorArgs:["data.iconBadgeEntityKey"],selector:function(l,D){return _.yT(l.entities,"iconBadgeEntity",D)}}),
_.T("design:type",Object)],NR.prototype,"iconBadgeEntity",void 0);_.E([_.gP("yt-icon-button"),_.T("design:type",HTMLButtonElement)],NR.prototype,"iconButton",void 0);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],NR.prototype,"onPopupClosed",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],NR);
_.r(NR,"ytd-icon-badge-topbar-button-renderer",function(){if(fwq!==void 0)return fwq;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return fwq=l},{mode:1});var $_8;var sK=function(){var l=_.p.apply(this,arguments)||this;l.premiumOptions=[];return l};
_.Z(sK,_.p);sK.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.QP.Object.defineProperties(sK.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],sK.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Array)],sK.prototype,"premiumOptions",void 0);_.E([_.t("premiumOptions"),_.T("design:type",Object),_.T("design:paramtypes",[])],sK.prototype,"hasPremiumOptions",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],sK);
_.r(sK,"ytd-offline-promo-content",function(){if($_8!==void 0)return $_8;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return $_8=l},{mode:1});var NaT;var EK=function(){var l=_.p.apply(this,arguments)||this;l.premiumOptions=[];return l};
_.Z(EK,_.p);EK.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var l;this.premiumOptions=OhH((l=this.data)==null?void 0:l.formats)};
EK.prototype.onClickSubmit=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var l;(l=_.T4())==null||l.pause()};
EK.prototype.attached=function(){this.JSC$21102_scroller&&(this.JSC$21102_scroller.dialogElement=this.hostElement.parentNode)};
_.QP.Object.defineProperties(EK.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
EK.prototype.dataChanged=EK.prototype.dataChanged;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],EK.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],EK.prototype,"data",void 0);
_.E([_.K({computed:"computeIcon_(data.headersIcon)",value:""}),_.T("design:type",String)],EK.prototype,"headersIcon",void 0);_.E([_.K(),_.T("design:type",Array)],EK.prototype,"premiumOptions",void 0);_.E([_.gP("#scroller"),_.T("design:type",Object)],EK.prototype,"JSC$21102_scroller",void 0);_.E([_.t("headersIcon"),_.T("design:type",Object),_.T("design:paramtypes",[])],EK.prototype,"showIcon",null);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],EK.prototype,"dataChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],EK);
_.r(EK,"ytd-offline-promo-renderer",function(){if(NaT!==void 0)return NaT;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return NaT=l},{mode:1});var sk5;var Tu=function(){var l=_.p.apply(this,arguments)||this;l.playbackPauseInterval=NaN;l.isLoading=!1;l.hasError=!1;l.dialogClass="";l.youtubeLabel=_.C3("LOGO_ALT_LABEL",{},"YouTube Home");l.logoName="yt-logos-ext:yt-logo-updated";l.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return l};
_.Z(Tu,_.p);_.W=Tu.prototype;_.W.onDataChange=function(){var l;if(this.showEOMV1Text=!((l=this.data)==null||!l.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.W.attached=function(){this.pausePlayer()};
_.W.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.W.handleLangSelect=function(l){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[l.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.W.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.W.handleSaveConsent=function(l){var D=this;this.showLoadingSpinner();this.showLoadingSpinner();eHJ(_.M(l,S3v)).catch(function(U){_.II(new _.rc("Something went wrong when save consent "+(U.message?U.message:U)+"."));D.hideLoadingSpinner();D.showErrorMessage()})};
_.W.handleDisablePersonalization=function(l){var D=this;this.showLoadingSpinner();mDJ(_.M(l,X0P)).then(function(){D.dialog.close();D.resumePlayer()}).catch(function(U){_.II(new _.rc("Something went wrong when disable personalization "+(U.message?U.message:U)+"."));
D.hideLoadingSpinner();D.showErrorMessage()})};
_.W.showLoadingSpinner=function(){var l=this;this.showSpinnerJobId=_.Tn.addLowPriorityJob(function(){l.isLoading=!0},500)};
_.W.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Tn.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.W.showErrorMessage=function(){var l=this;this.hasError=!0;_.Tn.addLowPriorityJob(function(){l.hasError=!1},2E3)};
_.W.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Xi(function(){try{var l=_.T4();l&&l.pause()}catch(D){}},100))};
_.W.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var l=_.T4();l&&l.play()}catch(D){}};
_.QP.Object.defineProperties(Tu.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.eomV1Text)return[];l=[];for(var D=["SHIELD","WARNING","BAR_CHART"],U=this.data.eomV1Text.essentialCookieMsg.items,n=0;n<D.length&&n<U.length;n++)l.push({icon:D[n],text:U[n]});return l}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var l;if((l=this.data)==null||!l.eomV1Text)return[];l=[];for(var D=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],U=this.data.eomV1Text.nonEssentialCookieMsg.items,n=0;n<D.length&&n<U.length;n++)l.push({icon:D[n],text:U[n]});return l}}});
Tu.prototype.onDataChange=Tu.prototype.onDataChange;_.E([_.K(),_.T("design:type",Object)],Tu.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],Tu.prototype,"showEOMV1Text",void 0);_.E([_.K(),_.T("design:type",Object)],Tu.prototype,"isLoading",void 0);_.E([_.K(),_.T("design:type",Object)],Tu.prototype,"hasError",void 0);_.E([_.K(),_.T("design:type",Number)],Tu.prototype,"showSpinnerJobId",void 0);_.E([_.K(),_.T("design:type",Object)],Tu.prototype,"dialogClass",void 0);
_.E([_.gP("#dialog"),_.T("design:type",Object)],Tu.prototype,"dialog",void 0);_.E([_.gP("#cb-header"),_.T("design:type",HTMLElement)],Tu.prototype,"header",void 0);_.E([_.gP("#lang-select"),_.T("design:type",HTMLElement)],Tu.prototype,"langSelect",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Tu.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Tu.prototype,"ytComponentBehavior",void 0);
_.E([_.K(),_.T("design:type",String)],Tu.prototype,"youtubeLabel",void 0);_.E([_.K(),_.T("design:type",Object)],Tu.prototype,"logoName",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Tu.prototype,"onDataChange",null);_.E([_.t("data"),_.T("design:type",Array),_.T("design:paramtypes",[])],Tu.prototype,"eomEssentialCookieMsgItems",null);
_.E([_.t("data"),_.T("design:type",Array),_.T("design:paramtypes",[])],Tu.prototype,"eomNonEssentialCookieMsgItems",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Tu);
_.r(Tu,"ytd-consent-bump-v2-lightbox",function(){if(sk5!==void 0)return sk5;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return sk5=l},{mode:1});var Ec8;var I0=function(){return _.p.apply(this,arguments)||this};
_.Z(I0,_.p);I0.prototype.ready=function(){if(!_.Fi()||WlP)var l=!0;else WlP=!0,l=!1;l||(l=document.querySelector("ytd-app"),l||(l=document.body),this.internalLightBox=_.iJ(l).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.E([_.K(),_.T("design:type",Object)],I0.prototype,"data",void 0);_.E([_.gP("#lightbox"),_.T("design:type",Object)],I0.prototype,"lightBox",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],I0);
_.r(I0,"ytd-consent-bump-v2-renderer",function(){if(Ec8!==void 0)return Ec8;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Ec8=l},{mode:1});var Ta$;var Iw$;var HHT;var Ht=function(){return _.p.apply(this,arguments)||this};
_.Z(Ht,_.p);_.W=Ht.prototype;_.W.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Rnr(this.toastManager,this.toastType)};
_.W.open=function(l){this.toast&&(this.ephemeralAction&&_.Jc().resolve(_.ZH).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=l!=null?l:0,this.toastManager.enqueue(this.toast,l)):this.toast.open())};
_.W.close=function(l){var D;(D=this.toast)==null||D.close();this.toastManager&&l===1&&Rnr(this.toastManager,l)};
_.W.refit=function(){var l;(l=this.toast)==null||l.refit()};
_.W.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var l;(l=this.toast)==null||l.close()}};
_.W.setVerticalOffset=function(l){this.toast&&(this.toast.verticalOffset=l,this.toast.fit())};
_.W.computeButtonClass_=function(l){return l?"toast-button":""};
_.W.computeText_=function(l){return _.Nl(l)};
_.W.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gS("toast-opened-changed",this.toastOpened))};
_.W.updateToastOpenedFromBinding=function(l){this.toastOpened=l.detail.value};
_.QP.Object.defineProperties(Ht.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var l,D,U=(l=this.data)==null?void 0:(D=l.actionButton)==null?void 0:D.buttonRenderer;return(U==null?void 0:U.command)||(U==null?void 0:U.serviceEndpoint)||(U==null?void 0:U.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var l=[],D;((D=this.data)==null?0:D.responseText)&&l.push(_.Nl(this.data.responseText));var U;((U=this.data)==null?0:U.subText)&&l.push(_.Nl(this.data.subText));var n,y;if((n=this.data)==null?0:(y=n.actionButton)==null?0:y.buttonRenderer){var A,C;l.push(((A=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(C=A.accessibilityData)==null?void 0:C.label)||_.Nl(this.data.actionButton.buttonRenderer.text))}return l.filter(function(h){return h}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var l,D;return(D=(l=this.toast)==null?void 0:l.opened)!=null?D:!1}}});
Ht.prototype.toastOpenedChangedForBinding=Ht.prototype.toastOpenedChangedForBinding;Ht.prototype.toastOpenedChanged=Ht.prototype.toastOpenedChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],Ht.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Ht.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],Ht.prototype,"duration",void 0);
_.E([_.K(),_.T("design:type",Number)],Ht.prototype,"toastType",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],Ht.prototype,"useCloseButton",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],Ht.prototype,"closeToastOnActionButtonClick",void 0);_.E([_.K({value:function(){return _.C3("SBOX_INAPPROPRIATE_CANCEL")}}),
_.T("design:type",String)],Ht.prototype,"closeButtonAriaLabel",void 0);_.E([_.K(),_.T("design:type",Boolean)],Ht.prototype,"toastOpened",void 0);_.E([_.K(),_.T("design:type",Boolean)],Ht.prototype,"hasOpened",void 0);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ht.prototype,"command",null);_.E([_.t("labelText","command","duration"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ht.prototype,"ephemeralAction",null);
_.E([_.t("ephemeralAction"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Ht.prototype,"hasEphemeralAction",null);_.E([_.gP("#toast"),_.T("design:type",Object)],Ht.prototype,"toast",void 0);_.E([_.K({value:function(){return{style:"call-to-action-inverse"}}}),
_.T("design:type",Object)],Ht.prototype,"buttonOverrides",void 0);_.E([_.K({value:{style:"mono-inverse"}}),_.T("design:type",Object)],Ht.prototype,"closeButtonOverrides",void 0);_.E([_.K({value:function(){return _.Jc().resolve(_.G8(_.Jl))}}),
_.T("design:type",Object)],Ht.prototype,"toastManager",void 0);_.E([_.t("data.responseText","data.subText","data.actionButton"),_.T("design:type",Object),_.T("design:paramtypes",[])],Ht.prototype,"labelText",null);_.E([_.Pg("toastOpened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ht.prototype,"toastOpenedChanged",null);
_.E([_.Pg("toastOpened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Ht.prototype,"toastOpenedChangedForBinding",null);_.E([_.S0({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Ht);
_.r(Ht,"yt-notification-action-renderer",function(){if(HHT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Iw$===void 0&&(Iw$=document.createElement("template"));var n=Iw$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);HHT=l}l=HHT;return l},{mode:2});var YI=function(){var l=_.p.apply(this,arguments)||this;l.duration=4E3;l.downloadingCount=0;l.downloadedCount=0;l.downloadingOnlySmartDownloads=!1;l.sessionTotalDownloads=0;l.sessionDownloaded=0;l.previousSessionsDownloaded=0;l.totalDownloadPercentage=0;l.currentDownloadProgress=0;l.currentDownloadPercentage=0;l.isLeaderTab=!0;l.isFullScreen=!1;l.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};l.boundBeforeUnload=function(D){l.isLeaderTab&&l.downloadingCount>0&&(D.preventDefault(),
D.returnValue=!0)};
return l};
_.Z(YI,_.p);_.W=YI.prototype;
_.W.open=function(){this.updateDownloadState();if(this.data){var l=this.sessionDownloaded+1,D=this.sessionTotalDownloads>1?_.C3("VIDEOS_DOWNLOADING_RATIO",{downloaded:l.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+l+"/"+this.sessionTotalDownloads):_.C3("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(D=this.sessionTotalDownloads>1?_.C3("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:l.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
l+"/"+this.sessionTotalDownloads):_.C3("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));l=this.isLeaderTab?_.C3("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Nl(this.data.responseText)!==D||_.Nl(this.data.subText)!==l)this.set("data.responseText",_.$B(D)),this.set("data.subText",_.$B(l)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.W.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.W.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.W.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.W.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var l=this.downloadedCount-this.previousSessionsDownloaded;l<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-l);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.W.handleFullscreenChange=function(l){(this.isFullScreen=l)||this.updatePopup()};
YI.prototype.updateCurrentDownloadProgress=YI.prototype.updateCurrentDownloadProgress;YI.prototype.updatePopup=YI.prototype.updatePopup;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],YI.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],YI.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],YI.prototype,"actionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],YI.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],YI.prototype,"duration",void 0);_.E([_.K({selector:function(l){return _.rCB(l.entities).length}}),
_.T("design:type",Object)],YI.prototype,"downloadingCount",void 0);_.E([_.K({selector:p9$}),_.T("design:type",Object)],YI.prototype,"downloadedCount",void 0);_.E([_.K({selector:function(l){var D=_.rCB(l.entities);return ceT(l.entities,D)}}),
_.T("design:type",Object)],YI.prototype,"downloadingOnlySmartDownloads",void 0);_.E([_.K(),_.T("design:type",Object)],YI.prototype,"sessionTotalDownloads",void 0);_.E([_.K(),_.T("design:type",Object)],YI.prototype,"sessionDownloaded",void 0);_.E([_.K(),_.T("design:type",Object)],YI.prototype,"previousSessionsDownloaded",void 0);_.E([_.K(),_.T("design:type",Object)],YI.prototype,"totalDownloadPercentage",void 0);
_.E([_.K({selector:function(l){var D;l=(D=_.rCB(l.entities))!=null?D:[];return l.length>0?_.Spg(l.slice(-1)):0}}),
_.T("design:type",Object)],YI.prototype,"currentDownloadProgress",void 0);_.E([_.K(),_.T("design:type",Object)],YI.prototype,"currentDownloadPercentage",void 0);_.E([_.K({selector:_.s4C}),_.T("design:type",Object)],YI.prototype,"isLeaderTab",void 0);_.E([_.gP("yt-notification-action-renderer"),_.T("design:type",Object)],YI.prototype,"notificationActionRenderer",void 0);
_.E([_.GY("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],YI.prototype,"updatePopup",null);_.E([_.GY("currentDownloadProgress"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],YI.prototype,"updateCurrentDownloadProgress",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],YI);
_.r(YI,"ytd-video-download-toast-renderer",function(){if(Ta$!==void 0)return Ta$;var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return Ta$=l},{mode:1});var Y68;var OH5;var OK=function(){return _.p.apply(this,arguments)||this};
_.Z(OK,_.p);OK.prototype.computeIsRedLogo=function(l,D){!l&&D&&(l=D);return l==="YOUTUBE_RED_LOGO"||l==="YOUTUBE_PREMIUM_LOGO"};
OK.prototype.computeLogoName=function(l){l=this.componentBehavior.computeIcon_(l);return l===""?"yt-logos-ext:yt-logo-updated":l};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],OK.prototype,"componentBehavior",void 0);_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.T("design:type",Boolean)],OK.prototype,"isRedLogo",void 0);_.E([_.K({computed:"computeLogoName(data)"}),_.T("design:type",String)],OK.prototype,"logoName",void 0);_.E([_.K({value:{}}),_.T("design:type",Object)],OK.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],OK.prototype,"logoType",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-logo"})],OK);
_.r(OK,"ytd-logo",function(){if(OH5!==void 0)return OH5;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return OH5=l},{mode:_.Vj("kevlar_poly_si_batch_j074")?1:2});var Vv=function(){var l=_.p.apply(this,arguments)||this;l.animationRef={};return l};
_.Z(Vv,_.p);_.W=Vv.prototype;_.W.attached=function(){document.addEventListener("yt-navigate-finish",_.CY(this,this.logYoodle))};
_.W.detached=function(){document.removeEventListener("yt-navigate-finish",_.CY(this,this.logYoodle))};
_.W.logYoodle=function(){var l,D;if((l=this.data)==null?0:(D=l.loggingDirectives)==null?0:D.trackingParams)this.ytRendererBehavior.markDirty(),_.he().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.W.computeHideImg=function(l,D){return!!l||!!D};
_.W.computeHideYtdLogo=function(l,D){return!l||!!D};
_.W.computeHideLottie=function(l){return!l};
_.W.computeIsRedLogo=function(l){return l==="YOUTUBE_RED_LOGO"||l==="YOUTUBE_PREMIUM_LOGO"};
_.W.renderLogoEntity=function(){var l=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),D=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),U=this.getLogoTitleText(this.data),n=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==l&&(this.url=l);this.animatedUrl!==D&&(this.animatedUrl=D);this.logoTitleText!==U&&(this.logoTitleText=U);this.lottieUrl!==n&&(this.lottieUrl=n,this.lottiePlayerProps=this.computeLottiePlayerProps(n))};
_.W.getSanitizedThumbnail=function(l){return l&&l.thumbnails?_.fM9(l.thumbnails,122)||"":""};
_.W.getThumbnailUrl=function(l,D){if(!D)return"";var U,n;l=l?(U=D.darkThemeLogo)==null?void 0:U.thumbnail:(n=D.lightThemeLogo)==null?void 0:n.thumbnail;return this.getSanitizedThumbnail(l)};
_.W.getAnimatedThumbnailUrl=function(l,D){return D?this.getSanitizedThumbnail(l?D.darkThemeAnimatedLogo:D.lightThemeAnimatedLogo):""};
_.W.getLogoTitleText=function(l){if(l)return _.Nl(l.tooltipText)};
_.W.computeLogoIcon=function(l,D){if(D){var U,n;return l?(U=D.darkThemeLogo)==null?void 0:U.icon:(n=D.lightThemeLogo)==null?void 0:n.icon}};
_.W.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.W.getLottieUrl=function(l,D){var U,n,y,A;return l?D==null?void 0:(U=D.darkThemeLogo)==null?void 0:(n=U.lottieAnimation)==null?void 0:n.url:D==null?void 0:(y=D.lightThemeLogo)==null?void 0:(A=y.lottieAnimation)==null?void 0:A.url};
_.W.computeLottiePlayerProps=function(l){if(l){var D;if((D=this.animationRef)==null?0:D.lottieEl){var U;(U=this.animationRef)==null||U.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:l,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.W.onLottieError=function(){this.data&&this.lottieUrl&&_.O9(this.hostElement,"yoodle-error")};
_.W.onImgError=function(){this.data&&!this.lottieUrl&&_.O9(this.hostElement,"yoodle-error")};
Vv.prototype.playAnimation=Vv.prototype.playAnimation;Vv.prototype.renderLogoEntity=Vv.prototype.renderLogoEntity;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Vv.prototype,"data",void 0);_.E([_.K({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.T("design:type",Boolean)],Vv.prototype,"hideImg",void 0);
_.E([_.K({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.T("design:type",Boolean)],Vv.prototype,"hideYtdLogo",void 0);_.E([_.K({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.T("design:type",Boolean)],Vv.prototype,"hideLottie",void 0);_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.T("design:type",Boolean)],Vv.prototype,"isRedLogo",void 0);
_.E([_.K(),_.T("design:type",Boolean)],Vv.prototype,"useDarkThemeYoodle",void 0);_.E([_.K(),_.T("design:type",String)],Vv.prototype,"url",void 0);_.E([_.K(),_.T("design:type",String)],Vv.prototype,"animatedUrl",void 0);_.E([_.K(),_.T("design:type",String)],Vv.prototype,"logoTitleText",void 0);_.E([_.K({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.T("design:type",Object)],Vv.prototype,"logoIcon",void 0);_.E([_.K(),_.T("design:type",Object)],Vv.prototype,"logoType",void 0);
_.E([_.K(),_.T("design:type",String)],Vv.prototype,"lottieUrl",void 0);_.E([_.K(),_.T("design:type",Object)],Vv.prototype,"lottiePlayerProps",void 0);_.E([_.K(),_.T("design:type",Object)],Vv.prototype,"animationRef",void 0);_.E([_.Pg("data"),_.Pg("useDarkThemeYoodle"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Vv.prototype,"renderLogoEntity",null);
_.E([_.hj("click"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],Vv.prototype,"playAnimation",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Vv);
_.r(Vv,"ytd-yoodle-renderer",function(){if(Y68!==void 0)return Y68;var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Y68=l},{mode:_.Vj("kevlar_poly_si_batch_j074")?1:2});var VBq;var i1r;var l_2=_.xv.currentPageTypeSelector,Do8=_.xv.currentPageSubTypeSelector,i1=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return l};
_.Z(i1,_.p);_.W=i1.prototype;_.W.onYoodleError=function(){_.q("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.W.computeLogoName=function(l){l=this.componentBehavior.computeIcon_(l);return l===""?"yt-logos-ext:yt-logo-updated":l};
_.W.computeTitle=function(l,D,U){return U&&(D==null?0:D.tooltipText)?_.Nl(D.tooltipText):_.Nl(l)};
_.W.computeAriaLabel=function(l,D,U){return U&&(D==null?0:D.tooltipText)?_.Nl(l):""};
_.W.computeShowYoodle=function(l,D,U){return!l||!D&&!!U&&!_.we.isEmpty(U)};
_.W.onNavigateHomeAction=function(){if(_.q("kevlar_miniplayer_navigate_home_from_app_killswitch")){var l;(l=_.iJ(this.hostElement).querySelector(".yt-simple-endpoint"))==null||l.click()}};
_.W.computeLogoHref=function(l,D,U){var n;(U==null?0:U.onTapCommand)?n=this.componentBehavior.computeHref_(U.onTapCommand):l&&(n=this.componentBehavior.computeHref_(l));return n?n:D};
_.W.computeCommand=function(l,D){return(D==null?void 0:D.onTapCommand)||l};
_.W.getEndpointForm=function(){if(_.q("kevlar_topbar_disable_cache_only_home")){var l=_.Jc().resolve(_.Op),D=l_2(l.getState())||"";l=Do8(l.getState())||"";return{disableCache:D==="ytd-browse"&&l==="home"}}return{disableCache:!0}};
i1.prototype.onYoodleError=i1.prototype.onYoodleError;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],i1.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],i1.prototype,"componentBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],i1.prototype,"ytdReduxBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],i1.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],i1.prototype,"countryCode",void 0);_.E([_.K({selectorArgs:["data.overrideEntityKey"],selector:function(l,D){return _.yT(l.entities,"logoEntity",D)}}),
_.T("design:type",Object)],i1.prototype,"logoEntity",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.T("design:type",Boolean)],i1.prototype,"showYoodle",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],i1.prototype,"yoodleError",void 0);_.E([_.K({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.T("design:type",String)],i1.prototype,"titleText",void 0);
_.E([_.K({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.T("design:type",String)],i1.prototype,"ariaLabelText",void 0);_.E([_.K({value:"/"}),_.T("design:type",String)],i1.prototype,"defaultEndpointUrl",void 0);_.E([_.K({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.T("design:type",String)],i1.prototype,"endpointUrl",void 0);
_.E([_.K({computed:"computeCommand(data.endpoint, logoEntity)"}),_.T("design:type",String)],i1.prototype,"command",void 0);_.E([_.K(),_.T("design:type",Object)],i1.prototype,"logoType",void 0);_.E([_.K({}),_.T("design:type",Boolean)],i1.prototype,"useDarkThemeYoodle",void 0);_.E([_.hj("yoodle-error"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],i1.prototype,"onYoodleError",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],i1);
_.r(i1,"ytd-topbar-logo-renderer",function(){if(i1r!==void 0)return i1r;var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return i1r=l},{mode:_.Vj("kevlar_poly_si_batch_j027")?1:2});var Uow=0;var nlv=_.se.SEARCH_APPEND_LABEL,ypT=_.se.SUGGESTION_NEW_VIDEOS_TEXT,Apq=_.se.SUGGESTION_THUMBNAIL_LABEL,WxJ=_.se.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,BdP=_.w(function(l){function D(UW){var GT,$8;return _.P(function(hA){if(hA.nextAddress==1)return GT=new Request(UW),_.ZY(hA,2),hA.yield(fetch(GT,{credentials:"include"}),4);if(hA.nextAddress!=2)return Bo(!0),_.WG(hA,0);$8=_.kF(hA);_.II($8);_.Kz(hA)})}
var U=l.isHighlighted;var n=l.suggestion;var y=l.onClickCallback;var A=l.onHoverUpdateCallback;var C=l.labels;var h=l.queryBuilderFunction;var b=l.onRemoveCallback;var u=l.suggestionIndex;var Q=l.generateUniqueId;var G=l.highlightedId;var J=l.useScrollMargin;var L=l.isKeyboardMode;var R=null,a=null,S=null,d=_.bP("div"),c=_.bP("span");l=_.B(_.aw(!1,void 0,"LafNkf"));var N=l.next().value,z=l.next().value,f=_.gm("a",function(UW){UW&&_.qd(237477,UW,a,function(GT){a=GT})}),I=_.gm("button",function(UW){UW&&
_.qd(237477,UW,a,function(GT){a=GT})}),iG=_.gm("div",function(UW){UW&&_.qd(281939,UW,S,function(GT){S=GT})}),CC=_.n0(function(UW){if((UW==null?void 0:UW.button)===2)return UW.preventDefault(),!1;
var GT=_.t6();GT&&R&&_.f3(GT,R,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var $8;y(UW,n().text,n().index,n().entityMid,UW==null?void 0:($8=UW.detail)==null?void 0:$8.wasSelectedByKeyboard);return!1}),vo=function(){return n().type===35},td=function(){return _.q("desktop_enable_single_suggestion_highlight")},GN=function(){return _.RG("desktop_suggestions_panel_row_height")||0},Ms=function(){var UW;
return _.q("desktop_enable_new_video_metadata")&&((UW=n())==null?void 0:UW.hasNewVideo)===!0},j3=function(){return _.q("desktop_enable_visual_suggest")},wl=function(){return _.q("desktop_enable_entity_suggest")&&KcJ(n())},zN=function(){return n().entitySubtitle},Z7=function(){return td()?(U==null?void 0:U())||H5()&&!(L==null?0:L()):(U==null?void 0:U())||H5()},Lm=function(){var UW=_.H3("SBOX_SETTINGS");
return vo()&&!(UW==null?0:UW.HIDE_REMOVE_LINK)},Vg=function(){return c$P(n(),{useEntityName:wl()})},v5,mk=!((v5=_.Jc().resolve(_.G8(_.jQ)))==null||!v5()),dy=function(){return vo()?_.q("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},eW=function(){return C==null?void 0:C().SUGGESTION_DISMISS_LABEL},Qq=function(){return C==null?void 0:C().SUGGESTION_DISMISSED_LABEL};
l=_.B(_.aw(!1,void 0,"JyfUlf"));v5=l.next().value;var Bo=l.next().value;l=_.B(_.aw(!1,void 0,"QKfAGe"));var D7=l.next().value,qr=l.next().value,H5=D7,Mr=_.n0(function(){h(c.value.innerText);return!1}),V_=_.n0(function(UW){UW.preventDefault();
return!1}),ec=_.n0(function(UW){var GT=n().text,$8=_.H3("SBOX_SETTINGS"),hA="https://"+($8.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
hA+="&delq="+encodeURIComponent(GT);(GT=$8==null?void 0:$8.PSUGGEST_TOKEN)&&(hA+="&tok="+GT);($8=$8==null?void 0:$8.SESSION_INDEX)&&(hA+="&authuser="+$8);D(hA);UW.preventDefault();(UW=_.t6())&&a&&_.f3(UW,a,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");b(u==null?void 0:u());return!1}),Nr=_.n0(function(){if(td()&&(L==null?0:L()))return!1;
qr(!0);A(!0);return!1}),gy=_.n0(function(){qr(!1);
A(!1);return!1}),uH=_.n0(function(){z(!0);
return!1}),yq=_.n0(function(){z(!1);
return!1}),TN=_.n0(function(UW){UW.preventDefault();
if(n().entityThumbnailAttributionUrl){S&&_.xM(_.he(),S);var GT=n().entityThumbnailAttributionUrl;UW=n().entityName;var $8={dismissDialogEndpoint:{}};GT={commandExecutorCommand:{commands:[$8,{urlEndpoint:{url:GT,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:GT}}}]}};$8={buttonViewModel:{title:_.C3("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:$8}}};GT={buttonViewModel:{title:_.C3("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:GT}}};UW={dialogHeaderViewModel:{headline:{content:UW!=null?UW:_.C3("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var hA={basicContentViewModel:{paragraphs:[{text:{content:_.C3("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};UW={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:UW,footer:{panelFooterViewModel:{primaryButton:GT,
secondaryButton:$8,shouldHideDivider:!0}},content:hA}}}}};_.Jc().resolve(_.qK).resolveCommand(UW)}return!1});
l=_.B(_.aw("",void 0,"MvIBn"));var l$=l.next().value,uw=l.next().value;_.$g(function(){Lm()&&uw(Q==null?void 0:Q(u==null?void 0:u()));d.value&&_.qd(12453,d.value,R,function(UW){R=UW})});
return _.g(_.v,{cond:v5,then:function(){var UW={};return _.g("div",{class:_.DV("ytSuggestionComponentRemovedText",(UW.ytSuggestionComponentLargerRemovedText=function(){return j3()},UW)),
style:function(){return GN()>0?"height: "+GN()+"px;":""},
role:"button"},Qq)},
else:function(){var UW={},GT={};return _.g("div",{class:_.DV("ytSuggestionComponentSuggestion",(UW.ytSuggestionComponentSuggestionHover=function(){return!td()},UW.ytSuggestionComponentHighlighted=Z7,UW.ytSuggestionComponentPersonalizedSuggestion=vo,UW.ytSuggestionComponentMweb=!1,UW.ytSuggestionComponentLargerSuggestion=function(){return Ms()||j3()},UW.ytSuggestionComponentThumbnailSuggestion=function(){return j3()},UW.ytSuggestionComponentRoundedSuggestion=function(){return _.q("desktop_enable_scrollable_suggestions_panel")&&
_.q("desktop_enable_suggestions_panel_padding")},UW.ytSuggestionComponentThumbnailPadding=function(){return j3()&&!vo()},UW)),
style:function(){return GN()>0?"height: "+GN()+"px;":""},
role:"presentation","on:mousedown":CC,"on:mouseover":Nr,"on:mouseout":gy,el:d},_.g("div",{class:_.DV("ytSuggestionComponentText",(GT.ytSuggestionComponentScrollMargin=J,GT)),"aria-label":function(){return Ms()?n().text+" "+ypT:n().text},
id:function(){return Q==null?void 0:Q(u==null?void 0:u())},
"on:mousedown":CC,role:"option"},_.g(_.v,{cond:function(){return n().type!==33},
then:function(){return _.g(_.C0,{icon:dy,className:"ytSuggestionComponentIcon"})}}),_.g("div",{class:"ytSuggestionComponentLeftContainer"},_.g("span",{el:c,
role:"button",tabindex:0},_.g(_.wt,{each:Vg},function($8){return $8.bold?_.g("span",{class:"ytSuggestionComponentBold"},$8.text):_.g("span",null,$8.text)})),_.g(_.v,{cond:function(){return wl()&&!!n().entitySubtitle||Ms()},
then:function(){return _.g("div",{class:"ytSuggestionComponentMetadataContainer"},_.g(_.v,{cond:function(){return wl()&&!!n().entitySubtitle},
then:function(){return _.g("div",{class:"ytSuggestionComponentEntitySubtitle"},zN)}}),_.g(_.v,{cond:function(){return Ms()},
then:function(){return _.g("div",{class:"ytSuggestionComponentNewVideoContainer"},_.g("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.g("div",{class:"ytSuggestionComponentNewVideoText"},ypT))}}))}}))),_.g("div",{class:"ytSuggestionComponentRightContainer"},_.g(_.v,{cond:function(){return j3()&&n().visualSuggestUrl!==void 0},
then:function(){var $8={};return _.g("div",{class:"ytSuggestionComponentThumbnailContainer"},_.g("img",{"aria-label":Apq,class:_.DV("ytSuggestionComponentVisualSuggestThumbnail",($8.ytSuggestionComponentCircularFrame=function(){return wl()&&n().subtypes.includes(790)},$8.ytSuggestionComponentEntitySuggestThumbnail=function(){return wl()},$8)),
src:function(){return n().visualSuggestUrl}}),_.g(_.v,{cond:function(){return wl()&&!!n().entityThumbnailAttributionUrl},
then:function(){var hA={};return _.g("span",{title:WxJ,role:"tooltip"},_.g("div",{el:iG,"on:mouseover":uH,"on:mouseout":yq,"on:mousedown":TN,class:_.DV("ytSuggestionComponentThumbnailOverlay",(hA.ytSuggestionComponentThumbnailOverlayHidden=function(){return!N()},hA))},_.g(_.C0,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.g(_.rt,null,_.g(_.F2,{when:function(){return j3()&&Lm()}},function(){var $8={};
return _.g("button",{class:_.DV("ytSuggestionComponentRemoveLinkClearButton",($8.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return l$()&&l$()===(G==null?void 0:G())},$8.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Z7()},$8)),
el:I,"on:mousedown":ec,"aria-label":eW,id:function(){return l$()}},_.g(_.C0,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.g(_.F2,{when:function(){return!(j3()&&n().visualSuggestUrl!==void 0)&&Lm()}},function(){var $8={};
return _.g("a",{class:_.DV("ytSuggestionComponentRemoveLink",($8.ytSuggestionComponentRemoveLinkDark=mk,$8.ytSuggestionComponentRemoveLinkSelected=function(){return l$()&&l$()===(G==null?void 0:G())},$8)),
el:f,"on:mousedown":ec,"aria-label":eW,tabindex:0,role:"button",id:function(){return l$()}},eW)}),_.g(_.F2,{when:function(){return!1}},function(){return _.g("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Mr,"on:mousedown":V_,role:"button","aria-label":nlv},_.g(_.C0,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"zj");var CM$=_.wL(["//www.google.com/textinputassistant/","/","_tia.js"]),ha5=_.w(function(){return _.g("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.g("button",{class:"ytdTextInputAssistantButton","on:click":_.n0(function(){FcT().inputMethodsTracker.add(3);var l,D=(l=_.H3("SBOX_SETTINGS"))==null?void 0:l.REQUEST_LANGUAGE;if(D)return _.pI(_.Ja(CM$,14,D)),!1})},_.g("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Aj");var PMq=function(){this.cache=new Map},b1T=function(l){for(var D=_.B(l.cache.entries()),U=D.next();!U.done;U=D.next()){var n=_.B(U.value);
U=n.next().value;n=n.next().value;n.suggestions.some(function(y){return y.type===35})&&l.cache.delete(U)}};var glJ=_.se.SEARCH,uqP=_.se.SEARCH_CLEAR_LABEL,vlH=new _.A7("FAKE_SUGGEST_RESPONSE"),QE5=_.w(function(l){function D(){Nr||(Nr=setTimeout(function(){uH()},1E3))}
function U(X8,ag,zT){if(X8.trim()){ec=X8;_.IN("REFINEMENTS_TUPLE",void 0);Mr=!0;var fc;ag=r$$(Qq,ag);var Jy=(fc=l.searchEndpoint)==null?void 0:fc.call(l);_.UUT(X8,ag,Jy,v5.value.value,zT);uH();v5.value.value=X8;v5.value.blur();Qq.reset()}}
function n(X8){return _.P(function(ag){return ag.return(new Promise(function(zT){var fc=new XMLHttpRequest;fc.open("GET",m_r(X8),!0);fc.withCredentials=!0;var Jy=_.H3("SBOX_SETTINGS");(Jy==null?0:Jy.SEND_VISITOR_DATA)&&fc.setRequestHeader("X-Goog-Visitor-Id",Jy==null?void 0:Jy.VISITOR_DATA);fc.onload=function(){zT(fc.responseText)};
fc.onerror=function(){_.II(Error("Ll"));zT(null)};
setTimeout(function(){fc.abort()},1E4);
fc.send(null)}))})}
function y(X8){var ag,zT,fc,Jy;return _.P(function(TP){switch(TP.nextAddress){case 1:return ag={credentials:"include",headers:eOH()},window.AbortController&&(zT=new AbortController,setTimeout(function(){zT.abort("ytsbox-suggest-timeout")},1E4),ag.signal=zT.signal),_.ZY(TP,2),TP.yield(fetch(m_r(X8),ag),4);
case 4:fc=TP.yieldResult.text();_.WG(TP,3);break;case 2:return Jy=_.kF(TP),Jy!=="ytsbox-abort-last"&&Jy!=="ytsbox-suggest-timeout"&&_.II(Jy),TP.return(null);case 3:return TP.return(fc)}})}
function A(X8){var ag,zT,fc;return _.P(function(Jy){switch(Jy.nextAddress){case 1:if(ag=_.Jc().resolve(_.G8(vlH)))return Jy.return(ag);zT=Date.now();D();return _.q("yt_searchbox_xhr")?Jy.yield(n(X8),5):Jy.yield(y(X8),4);case 4:fc=Jy.yieldResult;Jy.jumpTo(3);break;case 5:fc=Jy.yieldResult;case 3:if(fc){Nr&&(clearTimeout(Nr),Nr=null);var TP=Qq,yH=zT,$C=X8.query.length===0;yH=Date.now()-yH;$C?TP.zeroPrefixRoundTripTime=yH:(TP.JSC$21082_totalRoundTripTime+=yH,TP.maxRoundTripTime=Math.max(TP.maxRoundTripTime,
yH),$C=Math.floor(yH/100),$C>=zO5.length?++TP.roundTripTimeHistogram[9]:++TP.roundTripTimeHistogram[zO5[$C]])}return Jy.return(fc)}})}
function C(X8){var ag,zT,fc;return _.P(function(Jy){if(Jy.nextAddress==1)return(ag=eW.cache.get(ZHT(X8)))?Jy.return(ag):Jy.yield(A(X8),2);zT=Jy.yieldResult;if(zT===null)return Jy.return(null);fc=new p85(zT);X8.query.length===0&&fc.suggestions.length===0||eW.cache.set(ZHT(X8),fc);return Jy.return(fc)})}
function h(X8){var ag,zT;return _.P(function(fc){if(fc.nextAddress==1){V_=!1;var Jy=ec;Jy=_.zy()==="search"?(_.ih(location.href,"search_query")||_.ih(location.href,"q"))===Jy:!1;ag=new ROv(X8,Jy?ec:null);return fc.yield(C(ag),2)}zT=fc.yieldResult;if(zT===null)return fc.return();ag.query.length===0&&(Qq.zeroPrefixSuggestionCount=zT.suggestions.length);if(ag.id<=gy)return Qq.outOfSyncResponseCount++,fc.return();if(document.activeElement!==v5.value)return fc.return();gy=ag.id;var TP=Qq,yH=zT.rawResponse[2]||
{};TP.experimentTriggeredBeforeFinal||(TP.experimentTriggeredBeforeFinal=TP.experimentTriggeredFinal);TP.experimentTriggeredFinal=!!yH.e;Qq.updateSuggestions(zT.suggestions);S(-1);zN([]);zT.suggestions!==L()&&gs(zT.suggestions.length);R(zT.suggestions);CC(zT.suggestions.length>0&&zT.suggestions[0].type===33);dy&&(dy.hidden=zT.suggestions.length===0,iG()?(dy.style.minWidth="",TP=dy.style,yH=(Jy=L()[0])==null?void 0:Jy.ignoredPrefix,TP.marginLeft=(yH?Math.min(yH.length*6,mk.value.offsetWidth):0).toString()+
"px"):(dy.style.minWidth=mk.value.offsetWidth+"px",dy.style.marginLeft="0"),ip());_.Kz(fc)})}
function b(){if(!Mr)return!1;var X8=_.H3("REFINEMENTS_TUPLE");return X8?(X8=X8[1].map(function(ag,zT){return new d_8([ag,0,[71]],v5.value.value,zT)}),L()!==X8&&gs(X8.length),zN([]),R(X8),Qq.updateSuggestions(X8),Mr=!1,dy.hidden=X8.length===0,V_=X8.length>0,!0):!1}
function u(){var X8=v5.value.value;(typeof X8==="string"||X8 instanceof String)&&X8!==""?z(!0):z(!1)}
function Q(){if(_.zy()==="search"){var X8=window.location.href;try{var ag=_.ih(X8,"search_query")||_.ih(X8,"q")||""}catch(zT){ag=""}ag&&(v5.value.value=ag,z(!0))}}
var G=_.B(_.aw([],void 0,"OC8EPc")),J=G.next().value;G=G.next().value;var L=J,R=G;J=_.B(_.aw(-1,void 0,"t2tVQb"));var a=J.next().value,S=J.next().value;J=_.B(_.aw(-1,void 0,"v0RZCe"));var d=J.next().value,c=J.next().value;J=_.B(_.aw(!1,void 0,"rjAnI"));var N=J.next().value,z=J.next().value;J=_.B(_.aw(!1,void 0,"SyGLvb"));var f=J.next().value,I=J.next().value;G=_.B(_.aw(!1,void 0,"tL09Cb"));J=G.next().value;G=G.next().value;var iG=J,CC=G;G=_.B(_.aw(!1,void 0,"FlH7mc"));J=G.next().value;var vo=G.next().value;
G=_.B(_.aw(!1,void 0,"ea3fwe"));var td=G.next().value,GN=G.next().value;G=_.B(_.aw(1,void 0,"vSK1xe"));var Ms=G.next().value,j3=G.next().value;G=_.B(_.aw([],void 0,"ijlw4b"));var wl=G.next().value,zN=G.next().value;G=_.B(_.aw(!1,void 0,"HcRey"));var Z7=G.next().value,Lm=G.next().value;G=_.q("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Vg=_.bP("yt-searchbox"),v5=_.bP("input"),mk=_.bP("div"),dy,eW=
new PMq,Qq=FcT(),Bo=_.Jc().resolve(_.G8(_.jQ)),D7=function(){var X8;return((X8=l.forceDarkMode)==null?void 0:X8.call(l))||!(Bo==null||!Bo())},qr=function(){return _.q("desktop_enable_scrollable_suggestions_panel")},H5="i"+Uow++,Mr=!1,V_=!1,ec="",Nr=null,gy=-1,uH=function(){zN([]);
R([]);CC(!1);dy&&(dy.hidden=!0);Nr&&(clearTimeout(Nr),Nr=null);S(-1)},yq=function(X8,ag){X8.preventDefault();
Lm(!0);dy&&(dy.hidden=!1);var zT=a();X8=L();var fc=wl();ag=nhW(ag);zT+=ag;for(zT>=X8.length?zT=-1:zT<-1&&(zT=X8.length-1);zT!==-1&&(fc.includes(zT)||zT>=X8.length||zT<0);)zT+=ag,zT>=X8.length&&(zT=-1);S(zT);a()>=0&&(v5.value.value=L()[a()].text,c(0),u(),X8=a(),fc=d(),(fc=document.getElementById(PE[X8][fc]))&&qr()&&(X8===L().length-1?dy.scrollTop=dy.scrollHeight:fc.scrollIntoView({block:"nearest",inline:"start"})))},TN=_.n0(function(X8){if(!(X8.relatedTarget instanceof Element&&X8.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){I(!0);
var ag;(ag=l.focusCallback)==null||ag.call(l,!0);b()||(V_?dy.hidden=!1:(_.O9(Vg.value,"yt-autonav-pause-focus",{}),h(X8.target.value)))}}),l$=_.n0(function(X8){if(!(X8.relatedTarget instanceof Element&&X8.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){I(!1);
var ag;(ag=l.focusCallback)==null||ag.call(l,!1);dy.scrollTop=0;dy.hidden=!0;_.O9(Vg.value,"yt-autonav-pause-blur",{})}}),uw=function(X8){X8=nhW(X8);
var ag;((ag=PE[a()])==null?0:ag[d()+X8])&&c(d()+X8)},UW=_.n0(function(X8){var ag=X8.target;
switch(X8.keyCode){case 13:X8.preventDefault();var zT;if((zT=PE[a()])==null?0:zT[d()]){var fc;(fc=document.getElementById(PE[a()][d()]))==null||fc.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}X8=X8.shiftKey?4:3;zT=Qq;fc=a();zT.selectedSuggestionIndex=fc;U(ag.value,X8);break;case 27:dy&&(dy.hidden=!0);break;case 40:yq(X8,40);break;case 38:yq(X8,38);break;case 39:uw(39);break;case 37:uw(37);break;case 229:Qq.inputMethodsTracker.add(4);break;default:Qq.inputMethodsTracker.add(1),
ocW(Qq)}return!1}),GT=_.n0(function(X8){h(X8.target.value);
u();qr()&&dy&&(dy.scrollTop=0);return!1}),$8=_.n0(function(){Qq.inputMethodsTracker.add(2);
ocW(Qq);return!1});
_.$g(function(){if(dy){Qq.reset();if(window.ResizeObserver){var X8=new ResizeObserver(function(){iG()||(dy.style.minWidth=mk.value.offsetWidth+"px")});
X8.observe(mk.value);(new ResizeObserver(function(){ip()})).observe(dy);
_.NV(function(){X8.disconnect()})}Q();
window.addEventListener("yt-navigate-finish",Q);window.addEventListener("yt-focus-searchbox",function(){v5.value.focus()});
var ag;vo((ag=_.H3("SBOX_SETTINGS"))==null?void 0:ag.HAS_ON_SCREEN_KEYBOARD)}else _.EU(new _.rc("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var hA=_.n0(function(X8){X8.preventDefault();U(v5.value.value,12);return!1}),qG=_.n0(function(X8){X8.preventDefault();
var ag,zT;(ag=v5)==null||(zT=ag.value)==null||zT.focus();var fc,Jy;((fc=v5)==null?void 0:(Jy=fc.value)==null?void 0:Jy.value)!==""&&(v5.value.value="",v5.value.dispatchEvent(new Event("input")));return!1}),zv=_.n0(function(){var X8=wKq(v5.value.value,L().filter(function(ag){return ag.type!==35}).map(function(ag){return{label:ag.text}}));
_.Vh(Vg.value,"yt-open-popup-action",[{openPopupAction:X8},document.body]);return!1}),mJ=_.n0(function(){v5.value.focus();
return!1}),nP=function(X8,ag,zT,fc,Jy){Qq.selectedSuggestionIndex=zT;
U(ag,Jy?3:1,fc)},Ft=function(X8){v5.value.value=X8;
v5.value.dispatchEvent(new Event("input"));Qq.inputMethodsTracker.add(5);ocW(Qq,!0)},PE=[[]],bO=function(X8){var ag="searchbox-suggestion"+_.o8(_.n9);
PE[X8].push(ag);return ag},gs=function(X8){if(L()){PE=[[]];
for(var ag=0;ag<X8;ag++)PE.push([])}},ip=function(){if(qr()){var X8=dy,ag=X8.scrollTop;
X8=X8.scrollHeight-X8.clientHeight;GN(ag>=X8);ag=Math.abs(X8-ag);ag<=40?j3(1-(40-ag)/40):j3(1)}},G3=function(){return"opacity: "+Ms()*100+"%"},S3=_.n0(function(){ip();
return!1}),F$=_.n0(function(){Lm(!1);
return!1}),Ec,Rg={},R$={},ch={},k8={};
return _.g("yt-searchbox",{class:_.DV("ytSearchboxComponentHost",(Rg.ytSearchboxComponentMweb=!1,Rg.ytSearchboxComponentDesktop=!0,Rg["yt-searchbox-filled-query"]=function(){return N()},Rg["ytd-masthead"]=function(){return!f()},Rg.ytSearchboxComponentHostDark=D7,Rg)),
role:"search",el:Vg,"client-ve-type":10349},_.g("div",{el:mk,"on:click":mJ,class:_.DV("ytSearchboxComponentInputBox",(R$.ytSearchboxComponentInputBoxDark=D7,R$.ytSearchboxComponentInputBoxHasFocus=f,R$))},_.g("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":hA},_.g(_.v,{cond:f,then:function(){return _.g("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.g(_.C0,{icon:"SEARCH"}))}}),_.g("input",{el:v5,
class:_.DV("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":H5,"aria-expanded":!((Ec=dy)==null?0:Ec.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":l$,"on:focus":TN,"on:input":GT,"on:keydown":UW,"on:paste":$8,placeholder:l.placeholderText,"aria-activedescendant":function(){var X8;return(X8=PE[a()])==null?void 0:X8[d()]},
"aria-autocomplete":"list",role:"combobox"})),_.g(_.v,{cond:J,then:function(){return _.g("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.g(ha5,null))}}),_.g(_.v,{cond:N,
then:function(){return _.g("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.g("button",{class:"ytSearchboxComponentClearButton","on:click":qG,"aria-label":l.clearButtonAriaLabel||uqP},_.g(_.C0,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.g(_.MO,{model:{}})))}})),_.g("button",{class:_.DV("ytSearchboxComponentSearchButton",(ch.ytSearchboxComponentSearchButtonDark=D7,ch)),
"on:click":hA,"aria-label":glJ,title:l.placeholderText},_.g(_.C0,{icon:"SEARCH"})),_.g(_.v,{cond:function(){if(aoW()&&_.q("mweb_voice_search")&&l.voiceSearchButton)return l.voiceSearchButton()},
then:function(X8){var ag={};return _.g("div",{class:_.DV("ytSearchboxComponentVoiceSearchWrapper",(ag.ytSearchboxComponentHideVoiceSearchButton=function(){return N()},ag))},_.g(_.uI,{data:X8},{buttonRenderer:function(zT){return _.g(_.Jg,{data:zT.data,
onButtonClickCallback:function(){}})}}))}}),_.g("div",{el:_.fe(function(X8){return void(dy=X8)}),
id:H5,class:_.DV("ytSearchboxComponentSuggestionsContainer",(k8.ytSearchboxComponentSuggestionsContainerDark=D7,k8["yt-searchbox-suggestions-container"]=!1,k8.ytSearchboxComponentSuggestionsContainerScrollable=qr(),k8.ytSearchboxComponentSuggestionsContainerAnimated=G,k8)),"on:scroll":S3,"on:mousemove":F$,role:"listbox",hidden:!0},_.g(_.wt,{each:L},function(X8,ag){return _.g(BdP,{suggestion:X8,isHighlighted:function(){return ag()===a()},
onClickCallback:nP,onHoverUpdateCallback:function(zT){if(_.q("desktop_enable_single_suggestion_highlight")){var fc=ag();zT&&(c(0),S(fc))}},
onRemoveCallback:function(zT){b1T(eW);zT===void 0||zT<0||wl().includes(zT)||zN([].concat(_.zz(wl()),[zT]))},
labels:l.labels,queryBuilderFunction:Ft,suggestionIndex:ag,generateUniqueId:bO,highlightedId:function(){var zT;return(zT=PE[a()])==null?void 0:zT[d()]},
useScrollMargin:qr(),isKeyboardMode:Z7})}),_.g(_.v,{cond:function(){return!iG()&&L().find(function(X8){return X8.type!==35})&&_.q("searchbox_reporting")},
then:function(){return _.g("button",{class:"ytSearchboxComponentReportButton","on:mousedown":zv},_.C3("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.g(_.v,{cond:function(){return!td()&&qr()},
then:function(){return _.g("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.g("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:G3}))}})))},"Cj");
QE5.idomCompat={callbacks:{focusCallback:!0}};_.Tt(QE5,"yt-searchbox",{props:{searchEndpoint:_.C$,placeholderText:_.C$,labels:_.C$,voiceSearchButton:_.C$,focusCallback:_.ND,clearButtonAriaLabel:_.C$,forceDarkMode:_.C$}});var l1=function(){var l=_.p.apply(this,arguments)||this;l.menuButtonTargetId="topbar-guide-menu";l.narrow=!1;l.menuStrings={BACK_ALT_LABEL:_.C3("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.C3("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.C3("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.C3("SBOX_PLACEHOLDER",void 0,"Search")};l.pageDarkTheme=document.documentElement.hasAttribute("dark");l.watchPageScrollTop=0;l.theater=!1;l.fullscreen=!1;l.disableFrostedGlassDuringViewTransition=
!1;l.desktopUnifiedSearchPanelMode=_.q("desktop_enable_unified_search_panel");l.aiCompanionEnabled=_.q("enable_ai_companion");l.ytSearchboxFocused=!1;l.searchboxLabels=_.H3("SBOX_LABELS");l.topbarIsAboveChipbar=!1;l.isDarkThemeForced=!1;l.areGhostCardsHidden=!1;l.guideKeyboardToggle=!1;l.voiceSearchManager=Lnw();l.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};l.setYtSearchboxFocused=function(D){l.ytSearchboxFocused=D};
l.toggleFrostedGlassDuringViewTransition=function(D){l.disableFrostedGlassDuringViewTransition=D};
return l};
_.Z(l1,_.p);_.W=l1.prototype;_.W.computeSimpleText=function(l){return _.Nl(l)};
_.W.onDarkChanged=function(){for(var l=_.B(this.buttons||[]),D=l.next();!D.done;D=l.next())D.value.isOverlay=!!this.dark;l=_.B(this.buttonRenderers||[]);for(D=l.next();!D.done;D=l.next())D.value.overrides=this.computeButtonOverride()};
_.W.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.W.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var l=_.bN(_.PN(),"aa");_.nY(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||l||(this.isDarkThemeForced=this.dark=!0);this.logoType?(l=this.hostElement.querySelector("#masthead-logo"))&&(_.q("polymer_on_demand_shady_dom")?l.setAttribute("slot","masthead-logo-old"):_.kT(l)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.CY(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.CY(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.W.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.CY(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.CY(this,this.onSetTheaterModeEnabled))};
_.W.dataChanged=function(){var l=this.data;l&&(this.voiceEnabled=l.voiceSearchButton?Lnw().isSupported():!1,_.dWz(_.jp(),this.menuButtonTargetId,this.guideButton),l.onReceivedActions&&l.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.DP(this.hostElement,l.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&l&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.nY(this.hostElement,"dark",!1),_.nY(this.hostElement,"theater",!1),
(l=this.hostElement.querySelector("#masthead-logo"))&&(_.q("polymer_on_demand_shady_dom")?l.setAttribute("slot","masthead-logo-old"):_.kT(l))))};
_.W.computeCenterHidden=function(){var l;return this.data&&!((l=this.data.searchbox)==null?0:l.fusionSearchboxRenderer)};
_.W.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.nY(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.W.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.W.onWatchScroll=function(l){this.watchPageScrollTop=l.detail||0;this.updateMastheadBackgroundOpacity()};
_.W.onFullscreenChangeAction=function(l){l||(this.watchPageScrollTop=0);this.fullscreen=l;this.updateMastheadBackgroundOpacity()};
_.W.onSetTheaterModeEnabled=function(l){this.theater=l.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.W.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.W.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.W.setBackgroundOpacity=function(l){l=this.calculateBackgroundOpacity(l);this.background.style.opacity=""+l};
_.W.calculateBackgroundOpacity=function(l){var D=this.theater?.6:0,U=this.hostElement.clientHeight/2;return Math.min(Math.max(l,0),U)/U*(1-D)+D};
_.W.shouldShowCinematicMastHead=function(){var l=_.q("kevlar_watch_grid")&&!_.q("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(l||this.pageDarkTheme)};
_.W.focusGuide=function(){this.guideButton.focus()};
_.W.onGuideToggleTap=function(){_.O9(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.W.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.W.onGuideToggleHover=function(){_.O9(this.hostElement,"yt-guide-hover")};
_.W.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.W.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.W.closeOnOutsideClickCondition=function(l){for(l=_.$f(l);l[0];){var D=l.shift();if(D instanceof Element&&D.id==="kbd")return!1}return!0};
_.W.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.W.pausePlayer=function(){var l;(l=_.T4())==null||l.pause();this.pauseMiniplayer()};
_.W.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var l;(l=_.Jc().resolve(_.kq).getPlayerElement())==null||l.pause()}};
_.W.isMiniplayerActive=function(){return _.Jc().resolve(_.kq).isMiniplayerActive()};
_.W.updateNarrowFromBinding=function(l){this.narrow=l.detail.value};
_.W.onYtSendFeedbackAction=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.W.registerWithViewTransitionManager=function(){pPq(_.Jc().resolve(_.NB),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.QP.Object.defineProperties(l1.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var l;return!!(this.aiCompanionEnabled&&((l=this.data)==null?0:l.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var l;return(l=this.data)==null?void 0:l.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
l1.prototype.narrowChanged=l1.prototype.narrowChanged;l1.prototype.onWatchPageChange=l1.prototype.onWatchPageChange;l1.prototype.onRendererStamperFinished=l1.prototype.onRendererStamperFinished;l1.prototype.dataChanged=l1.prototype.dataChanged;l1.prototype.onDarkChanged=l1.prototype.onDarkChanged;_.E([_.m(_.$s),_.T("design:type",Object)],l1.prototype,"ironResizableBehavior",void 0);_.E([_.m(_.YJT),_.T("design:type",Object)],l1.prototype,"ytdExpandableInputBehavior",void 0);
_.E([_.m(_.W0.YtdGuideStateAwareBehavior),_.T("design:type",Object)],l1.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],l1.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],l1.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.l5),_.T("design:type",Object)],l1.prototype,"ytdReduxBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],l1.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],l1.prototype,"narrow",void 0);_.E([_.K(),_.T("design:type",Object)],l1.prototype,"logoType",void 0);_.E([_.K(),_.T("design:type",Boolean)],l1.prototype,"voiceEnabled",void 0);
_.E([_.K(),_.T("design:type",Object)],l1.prototype,"menuStrings",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],l1.prototype,"dark",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],l1.prototype,"pageDarkTheme",void 0);_.E([_.K(),_.T("design:type",Object)],l1.prototype,"watchPageScrollTop",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.c9K}),_.T("design:type",Boolean)],l1.prototype,"isWatchPage",void 0);
_.E([_.K({reflectToAttribute:!0,selector:_.pOs}),_.T("design:type",Boolean)],l1.prototype,"isShortsPage",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],l1.prototype,"theater",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],l1.prototype,"fullscreen",void 0);_.E([_.K({reflectToAttribute:!0,selector:_.ok9}),_.T("design:type",String)],l1.prototype,"frostedGlassMode",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],l1.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],l1.prototype,"aiCompanionEnabled",void 0);_.E([_.K(),_.T("design:type",Object)],l1.prototype,"ytSearchboxFocused",void 0);_.E([_.uJ("#buttons > *"),_.T("design:type",Array)],l1.prototype,"buttons",void 0);_.E([_.uJ("ytd-button-renderer"),_.T("design:type",Array)],l1.prototype,"buttonRenderers",void 0);
_.E([_.gP("#background"),_.T("design:type",HTMLDivElement)],l1.prototype,"background",void 0);_.E([_.gP("#guide-button"),_.T("design:type",Object)],l1.prototype,"guideButton",void 0);_.E([_.gP("#logo"),_.T("design:type",Object)],l1.prototype,"logo",void 0);_.E([_.K({computed:"computeButtonOverride(dark)"}),_.T("design:type",Object)],l1.prototype,"buttonOverrides",void 0);
_.E([_.GY("dark"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],l1.prototype,"onDarkChanged",null);_.E([_.K({value:function(){return this.onVoiceTap.bind(this)}}),
_.T("design:type",Function)],l1.prototype,"boundOnTapVoiceButton",void 0);_.E([_.K(),_.T("design:type",Object)],l1.prototype,"topbarIsAboveChipbar",void 0);_.E([_.K(),_.T("design:type",String),_.T("design:paramtypes",[])],l1.prototype,"guideIcon",null);_.E([_.t("voiceEnabled"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],l1.prototype,"shouldShowVoiceSearchButton",null);
_.E([_.t("data.aiCompanionButton","aiCompanionEnabled"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],l1.prototype,"shouldShowAiCompanionButton",null);_.E([_.t("data"),_.T("design:type",Object),_.T("design:paramtypes",[])],l1.prototype,"voiceSearchButton",null);_.E([_.t("aiCompanionEnabled"),_.T("design:type",String),_.T("design:paramtypes",[])],l1.prototype,"narrowQuery",null);
_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],l1.prototype,"dataChanged",null);_.E([_.hj("yt-rendererstamper-finished"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],l1.prototype,"onRendererStamperFinished",null);_.E([_.GY("isWatchPage"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],l1.prototype,"onWatchPageChange",null);
_.E([_.GY("narrow"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],l1.prototype,"narrowChanged",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-masthead"})],l1);
_.r(l1,"ytd-masthead",function(){if(VBq!==void 0)return VBq;var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return VBq=l},{mode:_.Vj("kevlar_poly_si_batch_j036")?1:2});var G0q;var JpW={},Lxw={},qHv={},Miw={},RaJ=(Miw.OFFLINE=(JpW["publicytnetworkstatus-online"]="BACK_ONLINE",JpW),Miw.ONLINE=(Lxw["publicytnetworkstatus-offline"]="OFFLINE",Lxw),Miw.BACK_ONLINE=(qHv["publicytnetworkstatus-offline"]="OFFLINE",qHv.TIMER_TRIGGER="ONLINE",qHv),Miw),DA=function(){var l=_.p.apply(this,arguments)||this;l.currentState="ONLINE";l.scheduledJobId=0;l.bannerString="";l.bannerVe=null;l.networkStatusManagerInstance=new _.AL;return l};
_.Z(DA,_.p);_.W=DA.prototype;_.W.attached=function(){var l=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){l.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){l.stateChangeHandler("publicytnetworkstatus-offline")})};
_.W.detached=function(){var l=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){l.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){l.stateChangeHandler("publicytnetworkstatus-offline")})};
_.W.enterState=function(l){var D=this;this.scheduledJobId&&_.Tn.cancelJob(this.scheduledJobId);l==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):l==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.C3("NO_INTERNET_CONNECTION",void 0,"No internet connection")):l==="BACK_ONLINE"&&(this.bannerString=_.C3("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.oI(_.Tn,function(){D.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=l};
_.W.stateChangeHandler=function(l){(l=RaJ[this.currentState][l])&&this.enterState(l)};
_.W.logVisibility=function(l){var D=_.t6();this.createBannerVe(l);D&&this.bannerVe&&(l?_.wj(D,[this.bannerVe]):_.rj(D,[this.bannerVe]))};
_.W.createBannerVe=function(l){!this.bannerVe&&l&&(this.bannerVe=_.UE(37929),_.pM(_.he(),this.bannerVe))};
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",String)],DA.prototype,"currentState",void 0);_.E([_.K(),_.T("design:type",Object)],DA.prototype,"scheduledJobId",void 0);_.E([_.K(),_.T("design:type",Object)],DA.prototype,"bannerString",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-network-status-banner"})],DA);
_.r(DA,"ytd-network-status-banner",function(){if(G0q!==void 0)return G0q;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return G0q=
l},{mode:1});var Z1q;var UT=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};l.hidden=!0;l.frostedGlass=_.q("web_frosted_glass");return l};
_.Z(UT,_.p);UT.prototype.computeHidden=function(l){return l&&l.status?!1:!0};
UT.prototype.handleUpdatePermissionRoleCommand=function(l){if(l=_.M(l,_.j45))if(l=_.M(l.renderer,_.xOy))this.data=l};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],UT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],UT.prototype,"componentBehavior",void 0);_.E([_.K({value:!0,computed:"computeHidden(data)"}),_.T("design:type",Object)],UT.prototype,"hidden",void 0);_.E([_.K(),_.T("design:type",Object)],UT.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],UT.prototype,"frostedGlass",void 0);
_.E([_.x({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],UT);
_.r(UT,"ytd-permission-role-bottom-bar-renderer",function(){if(Z1q!==void 0)return Z1q;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return Z1q=l},{mode:1});var eaW;var mo$;var yzT={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var nj=function(){return _.p.apply(this,arguments)||this};
_.Z(nj,_.p);_.W=nj.prototype;_.W.attached=function(){this.JSC$21200_scroller&&(this.JSC$21200_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21200_scroller.attached&&typeof this.JSC$21200_scroller.attached==="function"&&this.JSC$21200_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(U){U.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var l=_.iJ(this.hostElement);l.querySelector("tp-yt-paper-radio-group").selected="";var D=l.querySelector("#reason-text");D&&(D.value="");l.querySelector("#description-text").value=""}};
_.W.canSubmit=function(l,D){_.O9(this.hostElement,"yt-invalidate-popup-tabbables");return!(l&&D)};
_.W.onCancel=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.W.onSubmit=function(){var l=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(A){return A.active}).map(function(A){return A.innerText.trim()}),D=this.hostElement.querySelector("tp-yt-paper-radio-group"),U=D.selectedItem,n=U.name;
U=U.innerText.trim();var y=D.querySelector("#reason-text");D=void 0;y&&(D=y.value);(y=this.descriptionText.value)&&(y=y.trim());AzJ(this.data.searchQuery,l,n,U,y,D);_.Vh(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.W.sendFormSubmitToast=function(){var l=_.Hc(_.C3("SBOX_INAPPROPRIATE_TOAST"));_.Vh(this.hostElement,"yt-open-popup-action",[l,this])};
_.W.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(l){return l.active})};
_.W.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
nj.prototype.onIronSelect=nj.prototype.onIronSelect;nj.prototype.onIronChange=nj.prototype.onIronChange;nj.prototype.dataChanged=nj.prototype.dataChanged;_.E([_.K(),_.T("design:type",Object)],nj.prototype,"data",void 0);_.E([_.K({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.T("design:type",Boolean)],nj.prototype,"submitDisabled",void 0);_.E([_.K(),_.T("design:type",Boolean)],nj.prototype,"suggestionSelected",void 0);
_.E([_.K(),_.T("design:type",Boolean)],nj.prototype,"catagorySelected",void 0);_.E([_.gP("#scroller"),_.T("design:type",Object)],nj.prototype,"JSC$21200_scroller",void 0);_.E([_.gP("#description-text"),_.T("design:type",Object)],nj.prototype,"descriptionText",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],nj.prototype,"dataChanged",null);
_.E([_.hj("iron-change"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],nj.prototype,"onIronChange",null);_.E([_.hj("iron-select"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],nj.prototype,"onIronSelect",null);_.E([_.x({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],nj);
_.r(nj,"ytd-search-suggestion-report-dialog",function(){if(mo$!==void 0)return mo$;var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);return mo$=l},{mode:1});var yV=function(l){var D=l.openPopupAction;var U=l.target;var n=l.container;var y=l.popupContainerConfig;var A=l.getElement;l=l.removeWhenClosed===void 0?!1:l.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=D;this.target=U;this.container=n;this.popupContainerConfig=y;this.getElement=A;this.JSC$21206_popupConfig=this.popupContainerConfig.JSC$20330_popupConfig[this.openPopupAction.popupType];this.rendererName=(D=this.getName())?_.nv9(D,Yn8(this.popupContainerConfig,
D)):"";_.q("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=l);this.createPopup()};
yV.prototype.updatePopup=function(l){this.openPopupAction=l;this.JSC$21206_popupConfig=this.popupContainerConfig.JSC$20330_popupConfig[this.openPopupAction.popupType];a_q(this);_.q("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
yV.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var SHw=function(l,D,U){(D=D&&l.JSC$21206_popupConfig.narrowProperties?l.JSC$21206_popupConfig.narrowProperties:l.JSC$21206_popupConfig.properties)&&U!==void 0&&(D.isAriaModal=U);tiJ(l,D);l.isRtl()&&tiJ(l,l.JSC$21206_popupConfig.rtlProperties);XaJ(l)};
yV.prototype.createPopup=function(){var l=this.JSC$21206_popupConfig.component;if(this.popupContent=k0q(this,this.rendererName)){if(l){this.popup=k0q(this,l);var D=this.popupContent;_.q("web_enable_wrapper_for_cow_component_in_popup")&&(D=document.createElement("div"),D.appendChild(this.popupContent));_.q("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21206_popupConfig.slotName&&D.setAttribute("slot",this.JSC$21206_popupConfig.slotName);l=this.popup;var U=this.container.tagName.toLowerCase(),
n=_.EJ(D);_.U4G(_.In(l),_.Yf(D,U,n));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.q("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.iJ(this.container).appendChild(this.popup)}};
var a_q=function(l){var D,U,n=(D=l.openPopupAction.accessibilityData)==null?void 0:(U=D.accessibilityData)==null?void 0:U.label;n&&(l.popup.ariaLabel=n);var y;((y=l.popupContent.polymerController)!=null?y:l.popupContent).data=(0,_.we.unsafeClone)(l.openPopupAction.popup[l.getName()]);l.popupContent.duration=doT(l);l.popupContent.positionType=l.openPopupAction.position;var A=l.openPopupAction.properties;A&&Object.keys(A).forEach(function(C){l.popupContent[C]=A[C]})},tiJ=function(l,D){if(D)for(var U=
_.B(Object.keys(D)),n=U.next();!n.done;n=U.next())n=n.value,l.popup[n]=D[n]},XaJ=function(l){if(l.openPopupAction.position){var D=l.JSC$21206_popupConfig.positionalProperties&&l.JSC$21206_popupConfig.positionalProperties[l.openPopupAction.position],U=l.JSC$21206_popupConfig.rtlPositionalProperties&&l.JSC$21206_popupConfig.rtlPositionalProperties[l.openPopupAction.position];
D=l.isRtl()&&U?U:D;D.shiftedHorizontalOffset&&(U=l.popup.style.display,l.popup.style.display="block",l.popupContent&&l.popup.positionTarget&&l.popupContent.clientWidth>l.popup.positionTarget.clientWidth&&(D.horizontalOffset=l.popup.positionTarget.clientWidth/2-D.shiftedHorizontalOffset),l.popup.style.display=U);tiJ(l,D)}},KxW=function(l,D,U){if(D){for(var n=_.B(Object.keys(D)),y=n.next();!y.done;y=n.next())y=y.value,l.popup.style[y]=D[y];
if(U)for(D=_.B(Object.keys(U)),n=D.next();!n.done;n=D.next())n=n.value,l.popup.style[n]=U[n]}};
yV.prototype.getName=function(){return _.EZ(this.openPopupAction.popup,"renderer")||_.EZ(this.openPopupAction.popup,"dialog")||_.EZ(this.openPopupAction.popup,"model")||void 0};
var doT=function(l){l=l.openPopupAction.durationHintMs;return l===0?l:Math.max(4E3,l||4E3)};
yV.prototype.isRtl=function(){return _.H3("HTML_DIR")==="rtl"};
var k0q=function(l,D){l=l.getElement(D,l.target);l==null&&_.II(new _.rc("popup getElement returned null",D));return l};var cpP={};
cpP.YtPopupContainerBehavior=[_.la.YtComponentBehavior,_.K$.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.HH(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Y2(this.hostElement)},
closePopup:function(l){var D=this.createCacheKey(void 0,l);this.popups_[D]&&this.handleClosePopupAction_(void 0,l)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Tn.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Tn.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(l){l.opened&&l.keepBelowPlayer&&this.ensurePopupBelowPlayer(l)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var l in this.popups_){var D=this.popups_[l];if(D.popup.scrollAction==="refit"){var U=D.popup.positionTarget.getBoundingClientRect(),n=D.popup;U=U.top;var y=D;if(!y.naturalHeight){y.popup.hidden=!1;y.popup.style.position="fixed";y.popup.style.top="0px";y.popup.style.left="0px";var A=y.popup.getBoundingClientRect();y.naturalHeight=A.bottom-A.top;y.popup.refit()}n.hidden=!(U>=y.naturalHeight+60);D.popupContent.clientHeight===0&&D.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(l){this.popupContainerConfig=l},
handleOpenPopupAction:function(l,D){var U=l.openPopupAction,n=_.Jc().resolve(_.G8(_.Jl))&&U.popupType==="TOAST";n&&!U.uniqueId&&(U.uniqueId=_.T1());if(!_.q("popup_container_parent_target_killswitch")){var y;D=(y=this.getParentTarget(D))!=null?y:D}var A=this.ensurePopup_(U,D);return new _.X0(function(C){A.then(function(h){if(!h)return C();this.maybeCreateNarrowMediaQuery_();var b=this.createCacheKey(h.rendererName,h.openPopupAction.uniqueId);if(U.showOncePerUniqueId){if(this.shownPopupKeys_.has(b))return C();
this.shownPopupKeys_.add(b)}b=this.popups_[b];var u=!(!b||!b.openPopupAction.beReused);u=!!U.reusePopup||u;if(h.popup.opened&&!u){n&&!h.openPopupAction.replacePopup||this.handleClosePopupAction_(h.rendererName,h.openPopupAction.uniqueId);u=U.popupType==="DIALOG"&&!_.q("popup_container_dialog_reopen_killswitch");if(!n&&!u&&b&&b.target==D&&!h.openPopupAction.replacePopup)return C();_.u6(h.popup,function(){this.completeOpenPopupAction_(U,D,h);C()}.bind(this))}else h.popup.opened?h.updatePopup(U):this.completeOpenPopupAction_(U,
D,h),C()}.bind(this))}.bind(this))},
getParentTarget:function(l){if(l&&l instanceof HTMLElement)for(var D=_.B(Object.entries(this.popups_)),U=D.next();!U.done;U=D.next())if(U=_.B(U.value),U.next(),U=U.next().value,this.popupClosesOnClick(U)&&U.popup.contains(l))return U.target},
popupClosesOnClick:function(l){return l.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(l.rendererName.toUpperCase())},
completeOpenPopupAction_:function(l,D,U){U.updatePopup(l);var n=this.narrowMediaQuery_.queryMatches,y=this.isAriaModal;l=this.expandToFullWidth;U.target=D;var A;D=((A=U.target.polymerController)!=null?A:U.target).popupPositionTarget||U.target;U.JSC$21206_popupConfig.targetContainer&&(D=U.container);U.popup.positionTarget=D;U.popupContent.positionTarget=D;XaJ(U);U.JSC$21206_popupConfig.forceFocus&&(U.popupContent.style.outline="none");U.popupContent.tabIndex=-1;U.JSC$21206_popupConfig.narrowProperties&&
(U.popup.style.position="static");U.JSC$21206_popupConfig.preventAutonav&&U.popup.setAttribute("prevent-autonav",!0);U.JSC$21206_popupConfig.forceCloseOnOutsideClick&&U.popup.setAttribute("force-close-on-outside-click",!0);SHw(U,n,y);A={};l&&(A.width="100%");KxW(U,U.JSC$21206_popupConfig.styles,A);U.isRtl()&&KxW(U,U.JSC$21206_popupConfig.rtlStyles,A);if(!U.openPopupAction.shouldStopParentSignal){var C;l=(C=U.target.polymerController)!=null?C:U.target;(U.popupContent.startForwardingEvents||U.popupContainerConfig.forwardingEnabledPopups.has(U.rendererName))&&
l.parentComponent!==U.popupContent&&U.popupContent!==U.target&&U.target!==document.body&&(U.popupContent.startForwardingEvents?U.popupContent.startForwardingEvents(U.popupContainerConfig.forwardedEvents,U.target):(U.JSC$21206_eventForwarder||(U.JSC$21206_eventForwarder=new _.DL(U.popupContent)),U.JSC$21206_eventForwarder.start(U.popupContainerConfig.forwardedEvents,U.target)))}U=U.popup;U.addEventListener("iron-overlay-opened",_.CY(this,this.onPopupIronOverlayOpened_));U.addEventListener("iron-overlay-closed",
_.CY(this,this.onPopupIronOverlayClosed_));U.addEventListener("iron-overlay-canceled",_.CY(this,this.onPopupIronOverlayCanceled_));U.addEventListener("yt-refit",_.CY(this,this.refitPopup_));U.addEventListener("yt-invalidate-popup-tabbables",_.CY(this,this.handleInvalidatePopupTabbables_));U.open()},
getPopupDurationMs_:function(l){return l.durationHintMs===0?l.durationHintMs:Math.max(4E3,l.durationHintMs||4E3)},
handleClosePopupAction_:function(l,D){var U=_.q("web_popup_cache_key_killswitch")||!!D;if(l||U){var n=this.createCacheKey(l,D);l=(l=this.popups_[n])&&l.popup}else l=_.zL5(_.n5);if(l&&l.close){if(D=_.Jc().resolve(_.G8(_.L$)))l.restoreFocusOnClose=D.isKeyBoardInUse();l.close();this.removePopup_(l,n)}},
handleClosePopupCommand_:function(l){l.closePopupCommand&&l.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,l.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(l){var D={},U;for(U in this.popups_)if(D={key$jscomp$1230:D.key$jscomp$1230},D.key$jscomp$1230=U,!l||!l.some(function(A){return function(C){return C==A.key$jscomp$1230}}(D))){var n=this.popups_[D.key$jscomp$1230],y=n.popup;
_.Jc().resolve(_.G8(_.Jl))&&n.openPopupAction.popupType==="TOAST"||(y&&y.close&&y.close(),this.removePopup_(y,D.key$jscomp$1230))}},
handleClosePopupsAction_:function(l){l.forEach(function(D){var U=this.popups_[D];U&&((U=U.popup)&&U.close&&U.close(),this.removePopup_(U,D))}.bind(this))},
handleGetPopupOpenedAction_:function(l,D){return(D=this.createCacheKey(l,D))&&this.popups_[D]?this.popups_[l].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var l=[],D;for(D in this.popups_){var U=this.popups_[D];U.popup.opened&&l.push(U)}return l},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(l,D){_.q("ytpopup_disable_default_html_caching")&&l&&l.removeWhenClosed&&(_.iJ(this.hostElement).removeChild(l),D&&this.popups_[D]&&delete this.popups_[D])},
shouldReusePopup_:function(l){return!(!l||!l.reusePopup)||!(!l||!l.beReused)},
ensurePopup_:function(l,D){this.maybeCreateNarrowMediaQuery_();var U=_.EZ(l.popup,"renderer")||_.EZ(l.popup,"dialog")||_.EZ(l.popup,"model");if(!U)return _.Ut();U=_.nv9(U,Yn8(this.popupContainerConfig,U));return _.Ut(this.getAndMaybeCreatePopup_(l,U,D))},
getAndMaybeCreatePopup_:function(l,D,U){var n=this.createCacheKey(D,l.uniqueId);if(this.popups_[n])return this.popups_[n];l=new yV({openPopupAction:l,target:U,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(D)});return this.popups_[n]=l},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(l){return _.q("ytpopup_disable_default_html_caching")?l&&l.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",_.CY(this,this.openPopupQueryMatchesChanged_)),_.iJ(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(l){l=l.detail.value;for(var D in this.popups_)SHw(this.popups_[D],l)},
onPopupIronOverlayClosed_:function(l){var D=l.currentTarget,U=_.Zxg(D);U=U.length>0?U[0]:D;if(U.is!=="ytd-reel-watch-while-dialog-renderer"||l.target.is!=="tp-yt-iron-dropdown"){l.detail.popup=D;l.detail.popupRenderer=U;var n,y={context:{openingElement:((n=this.popups_[(U==null?void 0:U.is)||""])==null?void 0:n.target)||void 0}};Object.assign(y,l.detail);var A;_.O9((A=U.hostElement)!=null?A:U,"yt-popup-closed",y);D.removeEventListener("yt-refit",_.CY(this,this.refitPopup_));D.removeEventListener("yt-invalidate-popup-tabbables",
_.CY(this,this.handleInvalidatePopupTabbables_));D.removeEventListener("iron-overlay-canceled",_.CY(this,this.onPopupIronOverlayCanceled_));D.removeEventListener("iron-overlay-closed",_.CY(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(D)}},
onPopupIronOverlayCanceled_:function(l,D){var U=l.currentTarget,n=_.Zxg(U);n=n.length>0?n[0]:U;if(n.is!=="ytd-reel-watch-while-dialog-renderer"||l.target.is!=="tp-yt-iron-dropdown"){var y;_.O9((y=n.hostElement)!=null?y:n,"yt-popup-canceled",l.detail);y=D?_.$f(D):null;(!D||["click","tap"].includes(D.type))&&!U.hasAttribute("force-close-on-outside-click")&&U.positionTarget&&y&&y.includes(U.positionTarget)&&l.preventDefault();U.restoreFocusOnClose=_.pi.keyboardEventMatchesKeys(D,"esc")}},
onPopupIronOverlayOpened_:function(l){l=l.currentTarget;var D=_.Zxg(l);D=D.length>0?D[0]:l;var U,n;_.O9((U=D.hostElement)!=null?U:D,"yt-popup-opened",(n=D.hostElement)!=null?n:D);l.keepBelowPlayer&&(this.ensurePopupBelowPlayer(l,!0),this.dynamicallyPositionedElements_.add(l));U=_.Jc().resolve(_.G8(_.L$));n=!!D.querySelector("#toast");U&&U.isKeyBoardInUse()&&!n&&(typeof D.focusFirstItem==="function"?D.focusFirstItem():(D=_.ohv(l),D.length&&D[0].focus()));l.removeEventListener("iron-overlay-opened",
_.CY(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(l){l=l.currentTarget;l.refit&&l.refit()},
refitPopups_:function(){for(var l in this.popups_)this.popups_[l].refit()},
handleInvalidatePopupTabbables_:function(l){l=l.currentTarget;l.invalidateTabbables&&l.invalidateTabbables()},
createCacheKey:function(l,D){return _.q("web_popup_cache_key_killswitch")?D?l+"#"+D:l:D?"#"+D:l},
openSheet:function(l,D){var U=l==null?void 0:l.openPopupActionCommand;if(!U&&(l==null?0:l.viewModel)){if(l.sheetPosition)a:switch(l.sheetPosition){case "SHEET_POSITION_RIGHT":U="OPEN_POPUP_POSITION_RIGHT";break a;default:U="OPEN_POPUP_POSITION_UNKNOWN"}else U=void 0;U={openPopupAction:{popup:{sheetViewModel:l.viewModel},popupType:"CONTEXTUAL_SHEET",position:U}}}if(U){var n;this.expandToFullWidth=(n=l==null?void 0:l.expandToFullWidth)!=null?n:!1;this.handleOpenPopupAction(U,D)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var l=this;return _.P(function(D){return D.return(l.handleGetOpenedPopupsAction_().filter(function(U){var n;return((n=U.openPopupAction)==null?void 0:n.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(l,D,U){if(_.q("web_dialog_utils_killswitch")){var n=l==null?void 0:l.openPopupActionCommand,y=(U==null?0:U.ariaLabel)?{accessibilityData:{accessibilityData:{label:U.ariaLabel}}}:void 0;!n&&(l==null?0:l.viewModel)&&(n={openPopupAction:Object.assign({},{popup:{dialogViewModel:l.viewModel},popupType:(U==null?0:U.isModal)?"MODAL":"DIALOG"},y&&y)});n&&this.handleOpenPopupAction(n,D)}else{if(y=l==null?void 0:l.viewModel){var A=U=U===void 0?{}:U;U=A.ariaLabel;y={popup:{dialogViewModel:y},
popupType:A.isModal?"MODAL":"DIALOG"};A={accessibilityData:{label:U}};U&&(y.accessibilityData=A);y={openPopupAction:y}}else y=void 0;if(y=(n=y)!=null?n:l==null?void 0:l.openPopupActionCommand)this.isAriaModal=_.q("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(y,D)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var l=this;return _.P(function(D){return D.return(l.handleGetOpenedPopupsAction_().filter(function(U){var n;return((n=U.openPopupAction)==null?void 0:n.popupType)==="DIALOG"}).length>0)})}}];var pa8;var xoJ;var jEP=_.wL(["about:blank"]),A_=function(){var l=_.p.apply(this,arguments)||this;l.isMuted=!1;l.pageLoadTimeoutId=void 0;return l};
_.Z(A_,_.p);_.W=A_.prototype;_.W.dataChanged=function(){var l=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var D=this.data.url,U=_.I2(D);_.q("enable_yt_ata_iframe_authuser")?(U=_.I2(D),_.i8(this.iframe,Wb8(U))):_.i8(this.iframe,U);this.pageLoadTimeoutId=_.oI(_.M9(),function(){return void l.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.nT({destination:window,iframe:this.iframe,origin:_.W7h(U.toString()),channelName:"ataiframe",onMessage:_.uO1(kw5,function(n){dnJ(n.data)?(n=_.H2(n.data,1,_.W2,_.vE()),n.length!==1?_.II(Error("Ml")):(n=n[0],n===3?(l.isMuted=!0,l.logStateChanged({adMuteRequested:!0})):n===1&&l.close())):_.II(Error("Nl"))}),
onEstablished:function(){l.cancelPageLoadTimeout();l.logStateChanged({pageLoadSucceeded:!0})}})}};
_.W.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.M9().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.W.logStateChanged=function(l){var D;if((D=this.data)==null?0:D.trackingParams)l={adsClientData:{aboutThisAdData:l}},_.he().stateChanged(this.data.trackingParams,l)};
_.W.close=function(){_.Vh(this.hostElement,"yt-close-popup-action",[this.is])};
_.W.handlesPopupClosed=function(l,D){var U=this,n,y;return _.P(function(A){if(A.nextAddress==1)return _.H3("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Vh(U.hostElement,"on-about-this-ad-popup-closed",[U.isMuted,D]),A.jumpTo(0)):l&&BUH(l)?A.yield(CWr(l),4):(U.isMuted&&_.Vh(U.hostElement,"yt-mute-ad-action",[U.is,U]),A.jumpTo(0));if(n=A.yieldResult){var C=y=new _.OR(n),h=U.isMuted;C.getOptions().includes("onAboutThisAdPopupClosed")?_.Js_(C,"onAboutThisAdPopupClosed",{isMuted:h,layoutId:D}):_.jq("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Kz(A)})};
_.W.onPopupClosed=function(l){var D=this,U,n;return _.P(function(y){U=_.Ja(jEP);_.i8(D.iframe,U);D.cancelPageLoadTimeout();if(!D.data)return y.jumpTo(0);D.ytRendererBehavior.markDirty();n=l.detail.context.openingElement;return y.yield(D.handlesPopupClosed(n,D.data.layoutId),0)})};
_.W.detached=function(){this.cancelPageLoadTimeout()};
_.W.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
A_.prototype.onPopupClosed=A_.prototype.onPopupClosed;A_.prototype.dataChanged=A_.prototype.dataChanged;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.E([_.gP("#iframe"),_.T("design:type",HTMLIFrameElement)],A_.prototype,"iframe",void 0);_.E([_.K(),_.T("design:type",Object)],A_.prototype,"data",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],A_.prototype,"dataChanged",null);
_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype",Promise)],A_.prototype,"onPopupClosed",null);_.E([_.S0({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],A_);
_.r(A_,"yt-about-this-ad-renderer",function(){if(xoJ===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;pa8===void 0&&(pa8=document.createElement("template"));var n=pa8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);xoJ=l}l=xoJ;return l},{mode:2});var Fxv;var ol5;var waJ=function(l){var D=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=D.message;"stack"in D&&(this.stack=D.stack);this.maxFileSizeMB=l;Object.setPrototypeOf(this,waJ.prototype)};
_.Z(waJ,Error);var rpP=function(l,D){var U=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=U.message;"stack"in U&&(this.stack=U.stack);this.minWidth=l;this.minHeight=D;Object.setPrototypeOf(this,rpP.prototype)};
_.Z(rpP,Error);var zar=function(l){this.requirements=l;this.JSC$21234_maxFileSize=l.maxFileSizeMB*1024*1024},f_$=function(l,D){if(D.size>l.JSC$21234_maxFileSize)throw new waJ(l.requirements.maxFileSizeMB);
};var $oP=function(l,D){this.canvas=l;this.imageEditorBuilder=D};
$oP.prototype.addEventListeners=function(l){var D=function(y){NdJ(l,y)};
this.JSC$21240_mouseDownEvent=D;var U=function(y){sE2(l,y)};
this.JSC$21240_mouseMoveEvent=U;var n=function(){Elr(l)};
this.JSC$21240_mouseUpEvent=n;this.canvas.addEventListener("mousedown",D);this.canvas.addEventListener("mousemove",U);document.addEventListener("mouseup",n)};
$oP.prototype.removeEventListeners=function(){this.JSC$21240_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21240_mouseDownEvent);this.JSC$21240_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21240_mouseMoveEvent);this.JSC$21240_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21240_mouseUpEvent)};
var Tdq=function(l,D){l.removeEventListeners();return new Promise(function(U){var n=new Image;n.crossOrigin="anonymous";n.onload=function(){var y=l.imageEditorBuilder(l.canvas,n);l.addEventListeners(y);U(y)};
n.src=D})},WC=function(l,D,U,n,y,A,C,h){this.canvas=l;
this.image=D;this.requiredRatio=U;this.minImageCropDimension=n;this.minOutputImageResolution=y;this.component=A;this.styleFocusedCorner=h===void 0?!0:h;this.action=2;this.focusedCorner=this.resizeCorner=0;l=this.canvas.getContext("2d");if(!l)throw Error("Ol");this.ctx=l;this.canvasMargin=C!=null?C:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;C=this.image;l=this.canvasInnerWidth/C.width;C.height*l>912&&(l=C.width/C.height*912/C.width);C=l;this.scaledImageWidth=this.canvas.width%2?
PWv(this.image.width*C):hL2(this.image.width*C);this.scaledImageHeight=Math.round(this.image.height*C);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21243_overlayMarginBottom=this.JSC$21243_overlayMarginTop=this.canvasMargin;this.JSC$21243_overlayMarginRight=this.JSC$21243_overlayMarginLeft=this.horizontalMargin;this.JSC$21243_overlayWidth=this.scaledImageWidth;this.JSC$21243_overlayHeight=this.scaledImageHeight;
l=this.image.width/this.image.height;l>this.requiredRatio?(this.JSC$21243_overlayWidth=this.canvas.width%2?PWv(this.scaledImageHeight*this.requiredRatio):hL2(this.scaledImageHeight*this.requiredRatio),this.JSC$21243_overlayMarginRight=this.JSC$21243_overlayMarginLeft=(this.canvas.width-this.JSC$21243_overlayWidth)/2):l<this.requiredRatio&&(this.JSC$21243_overlayHeight=this.canvas.height%2?PWv(this.scaledImageWidth/this.requiredRatio):hL2(this.scaledImageWidth/this.requiredRatio),this.JSC$21243_overlayMarginBottom=
this.JSC$21243_overlayMarginTop=(this.canvas.height-this.JSC$21243_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*C,this.scaledImageWidth);I_5(this)};
WC.prototype.getContext=function(){return this.ctx};
var NdJ=function(l,D){D={x:Math.round(D.pageX-l.canvas.getBoundingClientRect().left),y:Math.round(D.pageY-l.canvas.getBoundingClientRect().top)};l.dragStart=D;H1$(l,D)!==0?(l.action=1,YHw(l,D),l.resizeCorner=H1$(l,D)):D.x>l.JSC$21243_overlayMarginLeft&&D.x<l.JSC$21243_overlayMarginLeft+l.JSC$21243_overlayWidth&&D.y>l.JSC$21243_overlayMarginTop&&D.y<l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight&&(l.action=0)},O1r=function(l,D){switch(D){case 1:return{x:l.JSC$21243_overlayMarginLeft,
y:l.JSC$21243_overlayMarginTop};case 2:return{x:l.JSC$21243_overlayMarginLeft,y:l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight};case 3:return{x:l.JSC$21243_overlayMarginLeft+l.JSC$21243_overlayWidth,y:l.JSC$21243_overlayMarginTop};case 4:return{x:l.JSC$21243_overlayMarginLeft+l.JSC$21243_overlayWidth,y:l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight};default:throw Error("Pl");}},io8=function(l,D){if(l.focusedCorner!==0){l.dragStart=O1r(l,l.focusedCorner);
l.action=1;l.resizeCorner=l.focusedCorner;var U=l.dragStart.x,n=l.dragStart.y;switch(D){case 0:l.focusedCorner===1||l.focusedCorner===4?(U-=10,n-=10):(U-=10,n+=10);break;case 1:l.focusedCorner===1||l.focusedCorner===4?(U+=10,n+=10):(U+=10,n-=10);break;case 2:U=l.focusedCorner===1||l.focusedCorner===4?U-10:U+10;n-=10;break;case 3:U=l.focusedCorner===1||l.focusedCorner===4?U+10:U-10;n+=10;break;default:throw Error("Ql");}ViT(l,{x:U,y:n});I_5(l);l.action=2;l.dragStart=void 0}},sE2=function(l,D){D={x:Math.round(D.pageX-
l.canvas.getBoundingClientRect().left),
y:Math.round(D.pageY-l.canvas.getBoundingClientRect().top)};YHw(l,D);switch(l.action){case 1:ViT(l,D);break;case 0:l.dragStart&&(l.JSC$21243_overlayMarginLeft=Math.max(l.horizontalMargin,Math.min(l.JSC$21243_overlayMarginLeft-(l.dragStart.x-D.x),l.horizontalMargin+l.scaledImageWidth-l.JSC$21243_overlayWidth)),l.JSC$21243_overlayMarginRight=l.canvas.width-l.JSC$21243_overlayMarginLeft-l.JSC$21243_overlayWidth,l.JSC$21243_overlayMarginTop=Math.max(l.canvasMargin,Math.min(l.JSC$21243_overlayMarginTop-
(l.dragStart.y-D.y),l.scaledImageHeight-l.JSC$21243_overlayHeight+l.canvasMargin)),l.JSC$21243_overlayMarginBottom=l.canvas.height-(l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight));break;default:return}I_5(l);l.dragStart=D},Elr=function(l){l.action=2;
l.dragStart=void 0;document.body.style.cursor="auto"},YHw=function(l,D){switch(H1$(l,D)){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:l.action!==1&&(document.body.style.cursor="auto")}},H1$=function(l,D){var U=l.JSC$21243_overlayMarginLeft-5,n=l.JSC$21243_overlayMarginTop-5,y=l.JSC$21243_overlayMarginLeft+l.JSC$21243_overlayWidth-5;
l=l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight-5;return lHJ(D,{x:U,y:n})?1:lHJ(D,{x:y,y:n})?3:lHJ(D,{x:U,y:l})?2:lHJ(D,{x:y,y:l})?4:0},lHJ=function(l,D){return l.x>=D.x&&l.x<=D.x+10&&l.y>=D.y&&l.y<=D.y+10},ViT=function(l,D){if(l.dragStart)switch(l.resizeCorner){case 2:Math.abs((l.JSC$21243_overlayMarginLeft+l.JSC$21243_overlayWidth-D.x)/(D.y-l.JSC$21243_overlayMarginTop))>=l.requiredRatio?DX8(l,D.x):UX2(l,D.y);
break;case 1:Math.abs((l.JSC$21243_overlayMarginLeft+l.JSC$21243_overlayWidth-D.x)/(l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight-D.y))>=l.requiredRatio?nVH(l,D.x):UX2(l,D.y);break;case 4:Math.abs((D.x-l.JSC$21243_overlayMarginLeft)/(D.y-l.JSC$21243_overlayMarginTop))>=l.requiredRatio?DX8(l,D.x):ylr(l,D.y);break;case 3:Math.abs((D.x-l.JSC$21243_overlayMarginLeft)/(l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight-D.y))>=l.requiredRatio?nVH(l,D.x):ylr(l,D.y);break;default:throw Error("Rl");
}},DX8=function(l,D){var U=l.JSC$21243_overlayMarginTop;
l.JSC$21243_overlayMarginBottom=Al2(l,D);l.JSC$21243_overlayHeight=l.canvas.height-l.JSC$21243_overlayMarginBottom-U;l.JSC$21243_overlayWidth=Math.round(l.JSC$21243_overlayHeight*l.requiredRatio);WI8(l)},nVH=function(l,D){var U=l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight;
l.JSC$21243_overlayMarginTop=Al2(l,D);l.JSC$21243_overlayHeight=U-l.JSC$21243_overlayMarginTop;l.JSC$21243_overlayWidth=Math.round(l.JSC$21243_overlayHeight*l.requiredRatio);WI8(l)},WI8=function(l){switch(l.resizeCorner){case 2:case 1:l.JSC$21243_overlayMarginLeft=l.canvas.width-l.JSC$21243_overlayMarginRight-l.JSC$21243_overlayWidth;
break;case 4:case 3:l.JSC$21243_overlayMarginRight=l.canvas.width-l.JSC$21243_overlayMarginLeft-l.JSC$21243_overlayWidth;break;default:throw Error("Rl");}},UX2=function(l,D){var U=l.JSC$21243_overlayMarginLeft+l.JSC$21243_overlayWidth;
l.JSC$21243_overlayMarginLeft=Bw$(l,D);l.JSC$21243_overlayWidth=U-l.JSC$21243_overlayMarginLeft;l.JSC$21243_overlayHeight=Math.round(l.JSC$21243_overlayWidth/l.requiredRatio);CYr(l)},ylr=function(l,D){var U=l.JSC$21243_overlayMarginLeft;
l.JSC$21243_overlayMarginRight=Bw$(l,D);l.JSC$21243_overlayWidth=l.canvas.width-l.JSC$21243_overlayMarginRight-U;l.JSC$21243_overlayHeight=Math.round(l.JSC$21243_overlayWidth/l.requiredRatio);CYr(l)},CYr=function(l){switch(l.resizeCorner){case 2:case 4:l.JSC$21243_overlayMarginBottom=l.canvas.height-l.JSC$21243_overlayMarginTop-l.JSC$21243_overlayHeight;
break;case 1:case 3:l.JSC$21243_overlayMarginTop=l.canvas.height-l.JSC$21243_overlayMarginBottom-l.JSC$21243_overlayHeight;break;default:throw Error("Rl");}},Al2=function(l,D){switch(l.resizeCorner){case 2:D=l.canvas.height-(l.JSC$21243_overlayMarginTop+h4q(l,D));
break;case 4:D=l.canvas.height-(l.JSC$21243_overlayMarginTop+PYW(l,D));break;case 1:D=l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight-h4q(l,D);break;case 3:D=l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight-PYW(l,D);break;default:throw Error("Rl");}return Math.max(D,l.canvasMargin)},h4q=function(l,D){D=l.JSC$21243_overlayMarginLeft+l.JSC$21243_overlayWidth-Math.max(D,l.horizontalMargin);
D=D<0?l.JSC$21243_overlayWidth:Math.max(D,l.minOverlayWidth);return Math.round(D/l.requiredRatio)},PYW=function(l,D){D=l.canvas.width-Math.max(l.canvas.width-D,l.horizontalMargin)-l.JSC$21243_overlayMarginLeft;
D=D<0?l.JSC$21243_overlayWidth:Math.max(D,l.minOverlayWidth);return Math.round(D/l.requiredRatio)},Bw$=function(l,D){switch(l.resizeCorner){case 2:D=l.canvas.width-l.JSC$21243_overlayMarginRight-boJ(l,D);
break;case 4:D=l.canvas.width-l.JSC$21243_overlayMarginLeft-boJ(l,D);break;case 1:D=l.canvas.width-l.JSC$21243_overlayMarginRight-gVJ(l,D);break;case 3:D=l.canvas.width-l.JSC$21243_overlayMarginLeft-gVJ(l,D);break;default:throw Error("Rl");}return Math.max(D,l.horizontalMargin)},boJ=function(l,D){D=l.canvas.height-Math.max(l.canvas.height-D,l.canvasMargin)-l.JSC$21243_overlayMarginTop;
return D<0?l.JSC$21243_overlayWidth:Math.max(Math.round(D*l.requiredRatio),l.minOverlayWidth)},gVJ=function(l,D){D=l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight-Math.max(D,l.canvasMargin);
return D<0?l.JSC$21243_overlayWidth:Math.max(Math.round(D*l.requiredRatio),l.minOverlayWidth)},I_5=function(l){l.ctx.clearRect(0,0,l.canvas.width,l.canvas.height);
l.ctx.drawImage(l.image,0,0,l.image.width,l.image.height,l.horizontalMargin,l.canvasMargin,l.canvas.width-2*l.horizontalMargin,l.scaledImageHeight);l.ctx.fillStyle="rgba(0, 0, 0, 0.7)";l.ctx.fillRect(l.horizontalMargin,l.JSC$21243_overlayMarginTop,l.JSC$21243_overlayMarginLeft-l.horizontalMargin,l.JSC$21243_overlayHeight);l.ctx.fillRect(l.JSC$21243_overlayMarginLeft+l.JSC$21243_overlayWidth,l.JSC$21243_overlayMarginTop,l.JSC$21243_overlayMarginRight-l.horizontalMargin,l.JSC$21243_overlayHeight);l.ctx.fillRect(l.horizontalMargin,
l.canvasMargin,l.scaledImageWidth,l.JSC$21243_overlayMarginTop-l.canvasMargin);l.ctx.fillRect(l.horizontalMargin,l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight,l.scaledImageWidth,l.JSC$21243_overlayMarginBottom-l.canvasMargin);l.drawOverlay();l.component&&_.O9(l.component,"image-updated")};
WC.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21243_overlayMarginLeft,this.JSC$21243_overlayMarginTop,this.JSC$21243_overlayWidth,this.JSC$21243_overlayHeight);u1H(this)};
var u1H=function(l){var D=l.JSC$21243_overlayMarginLeft-5,U=l.JSC$21243_overlayMarginTop-5,n=l.JSC$21243_overlayMarginLeft+l.JSC$21243_overlayWidth-5,y=l.JSC$21243_overlayMarginTop+l.JSC$21243_overlayHeight-5;l.ctx.fillStyle="#FFF";l.ctx.fillRect(D,U,10,10);l.ctx.strokeRect(D,U,10,10);l.ctx.fillRect(n,U,10,10);l.ctx.strokeRect(n,U,10,10);l.ctx.fillRect(D,y,10,10);l.ctx.strokeRect(D,y,10,10);l.ctx.fillRect(n,y,10,10);l.ctx.strokeRect(n,y,10,10);if(l.focusedCorner!==0&&l.styleFocusedCorner){l.ctx.lineWidth=
4;l.ctx.strokeStyle="#3EA6FF";switch(l.focusedCorner){case 1:--D;--U;break;case 2:--D;U=y-1;break;case 3:D=n-1;--U;break;case 4:D=n-1;U=y-1;break;default:return}l.ctx.strokeRect(D,U,12,12)}};
WC.prototype.crop=function(l,D){D=D===void 0?!0:D;var U=this.image.width/this.scaledImageWidth,n=document.createElement("canvas"),y=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],A=this.JSC$21243_overlayWidth*U,C=this.JSC$21243_overlayHeight*U;n.width=Math.max(A,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);n.height=Math.max(C,y);l&&(n.width=Math.min(n.width,n.height),n.height=Math.min(n.width,n.height));
l=n.getContext("2d");if(!l)throw Error("Fl");y=(this.JSC$21243_overlayMarginLeft-this.horizontalMargin)*U;U*=this.JSC$21243_overlayMarginTop-this.canvasMargin;D||(l.fillStyle="white",l.fillRect(0,0,n.width,n.height));l.drawImage(this.image,y,U,A,C,0,0,n.width,n.height);return n};var vV8=function(l,D,U,n,y){WC.call(this,l,D,U,n,void 0,y,8,!1)};
_.Z(vV8,WC);vV8.prototype.drawOverlay=function(){var l=this.getContext(),D=this.JSC$21243_overlayWidth,U=this.JSC$21243_overlayHeight,n=this.JSC$21243_overlayMarginTop,y=this.JSC$21243_overlayMarginLeft;l.lineWidth=2;l.strokeStyle="#3EA6FF";l.beginPath();l.arc(y+D/2,n+U/2,D/2,0,2*Math.PI);l.stroke();l.strokeRect(y,n,D,U);u1H(this)};
var QsJ={maxFileSizeMB:15,minWidth:98,minHeight:98},GUv=["image/png","image/jpeg","image/gif"],BC=function(){var l=_.p.apply(this,arguments)||this;l.fileSelectorFocusListener=null;l.errorMessage=null;l.isLoading=!0;l.hideContainer=!0;l.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return l};
_.Z(BC,_.p);_.W=BC.prototype;_.W.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.W.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.W.computePlaylistThumbnail=function(l){return l==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.W.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Vh(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.W.setErrorState=function(l){this.resetErrorState();l&&(this.errorMessage=l)};
_.W.showPopup=function(){var l=this;this.hideContainer=!1;_.oI(_.Tn,function(){_.O9(l.hostElement,"yt-refit")});
this.isLoading=!1};
_.W.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.W.closePopup=function(){this.resetFileSelector();_.Vh(this.hostElement,"yt-close-popup-action",[this.is])};
_.W.onCancelTap=function(){this.isPlaylistThumbnail||_.Vh(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.W.openFileSelector=function(){var l=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.oI(_.Tn,function(){setTimeout(function(){if(!l.fileSelector.files||l.fileSelector.files.length===0)l.onCancelTap();l.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(D){D instanceof Error?_.EU(D):_.Tj(new _.rc(JSON.stringify(D)))}};
_.W.handleFileSelection=function(){var l=this,D,U,n,y,A,C;return _.P(function(h){switch(h.nextAddress){case 1:_.ZY(h,2);if(!l.fileSelector.files||!l.imageEditorCanvas)return l.onCancelTap(),h.return();D=l.fileSelector.files[0];f_$(l.imageChecker,D);_.ZY(h,4);return h.yield(klT(D),6);case 6:l.mimeType=h.yieldResult;_.WG(h,5,2);break;case 4:_.kF(h,2),_.Vh(l.hostElement,"yt-image-selection-error-action",[(U=l.data)==null?void 0:U.genericImageLoadErrorMessage]),l.onCancelTap();case 5:n=new FileReader;
n.addEventListener("load",function(){var b,u;return _.P(function(Q){if(Q.nextAddress==1){if(!n.result)return _.II(Error("Hl")),Q.return();b=n.result;u=new Image;u.src=b;u.onload=function(){try{var G=l.imageChecker;if(u.width<G.requirements.minWidth||u.height<G.requirements.minHeight)throw new rpP(G.requirements.minWidth,G.requirements.minHeight);}catch(L){if(L instanceof rpP){var J;_.Vh(l.hostElement,"yt-image-selection-error-action",[(J=l.data)==null?void 0:J.imageDimensionErrorMessage]);l.logImageDimensionErrorVe()}else L instanceof
Error?_.EU(L):(G=new _.rc(JSON.stringify(L)),_.EU(G));l.onCancelTap()}l.showPopup()};
u.onerror=function(){var G;_.Vh(l.hostElement,"yt-image-selection-error-action",[(G=l.data)==null?void 0:G.genericImageLoadErrorMessage]);l.onCancelTap()};
return Q.yield(Tdq(l.imageEditorCanvas,b),2)}l.imageEditor=Q.yieldResult;l.updatePositionOfAllCorners();l.addEventListeners(l.imageEditor);_.Kz(Q)})},!1);
n.readAsDataURL(D);_.WG(h,0);break;case 2:y=_.kF(h),y instanceof waJ?_.Vh(l.hostElement,"yt-image-selection-error-action",[(A=l.data)==null?void 0:A.imageSizeErrorMessage]):(y instanceof Error?_.EU(y):_.Tj(new _.rc(JSON.stringify(y))),_.Vh(l.hostElement,"yt-image-selection-error-action",[(C=l.data)==null?void 0:C.genericImageLoadErrorMessage])),l.onCancelTap(),_.Kz(h)}})};
_.W.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var l=_.Ce(_.he(),{veType:232707,visualElement:_.UE(232707)});l&&(l={visualElement:l},_.B9().reportShown(l))}};
_.W.handleImageSelectionErrorAction=function(l){this.isPlaylistThumbnail&&_.blo(this.hostElement,l)};
_.W.convertToImageFormatBundle=function(l){var D=this,U,n,y;return _.P(function(A){switch(A.nextAddress){case 1:return U=l.toDataURL(D.outputMimeType,1),A.yield(dFq(U),2);case 2:n=A.yieldResult;_.ZY(A,3);f_$(D.imageChecker,n);_.WG(A,4);break;case 3:y=_.kF(A);if(!(y instanceof waJ))throw y;_.II(new _.rc("Output size is bigger than input size for image",D.mimeType,D.outputMimeType,n.size));U=l.toDataURL("image/jpeg",.95);return A.yield(dFq(U),6);case 6:n=A.yieldResult;case 4:return A.return({dataUrl:U,
imageFile:n})}})};
_.W.handleUploadImageToScottyCommand=function(l){var D=this,U,n,y,A,C,h,b,u,Q,G;return _.P(function(J){switch(J.nextAddress){case 1:if(!D.imageEditor||!_.M(l,cRT))return J.return();U=_.M(l,cRT).scottyUploadUrl;if(!U){var L=new _.rc("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.EU(L);return J.return()}_.ZY(J,2);D.setLoadingState();n=D.imageEditor.crop(!1,!1);return J.yield(D.convertToImageFormatBundle(n),4);case 4:return y=J.yieldResult,J.yield(XmP(y.imageFile,U),5);
case 5:A=J.yieldResult;((C=D.data)==null?0:C.onUploadEndpoint)?(h=D.buildUploadServiceEndpoint(A),D.ytComponentBehavior.resolveCommand(h),b=_.M(h,_.lc),((u=b)==null?0:u.params)?D.closePopup():D.resetFileSelector()):(_.Vh(D.hostElement,"yt-image-updated-action",[y.dataUrl,A]),D.closePopup());_.WG(J,0);break;case 2:Q=_.kF(J),D.setErrorState((G=D.data)==null?void 0:G.uploadErrorMessage),Q instanceof Error?_.EU(Q):(L=new _.rc(JSON.stringify(Q)),_.EU(L)),_.Kz(J)}})};
_.W.buildUploadServiceEndpoint=function(l){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",l),this.data.onUploadEndpoint):null};
_.W.dataChanged=function(){var l=this,D;return _.P(function(U){if(U.nextAddress==1){if(!l.data||!l.canvasElement)return U.return();l.data.imageRatio&&l.data.minImageCropWidth||_.Tj(new _.rc("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));D=function(n,y){return l.data.imageType==="IMAGE_TYPE_AVATAR"?new vV8(n,y,l.data.imageRatio,[l.data.minImageCropWidth,l.data.minImageCropWidth/l.data.imageRatio],l.hostElement):new WC(n,y,l.data.imageRatio,[l.data.minImageCropWidth,
l.data.minImageCropWidth/l.data.imageRatio],void 0,l.hostElement,8,!1)};
l.imageEditorCanvas=new $oP(l.canvasElement,D);return l.data.url?U.yield(Tdq(l.imageEditorCanvas,l.data.url),3):(l.hideContainer=!0,l.openFileSelector(),U.jumpTo(0))}l.imageEditor=U.yieldResult;l.showPopup();l.addEventListeners(l.imageEditor);_.Kz(U)})};
_.W.addEventListeners=function(l){this.removeEventListeners();var D=function(y){NdJ(l,y)};
this.JSC$21251_mouseDownEvent=D;var U=function(y){sE2(l,y)};
this.JSC$21251_mouseMoveEvent=U;var n=function(){Elr(l)};
this.JSC$21251_mouseUpEvent=n;this.topLeftCorner.addEventListener("mousedown",D);this.topLeftCorner.addEventListener("mousemove",U);this.topLeftCorner.addEventListener("mouseup",n);this.topRightCorner.addEventListener("mousedown",D);this.topRightCorner.addEventListener("mousemove",U);this.topRightCorner.addEventListener("mouseup",n);this.bottomLeftCorner.addEventListener("mousedown",D);this.bottomLeftCorner.addEventListener("mousemove",U);this.bottomLeftCorner.addEventListener("mouseup",n);this.bottomRightCorner.addEventListener("mousedown",
D);this.bottomRightCorner.addEventListener("mousemove",U);this.bottomRightCorner.addEventListener("mouseup",n)};
_.W.removeEventListeners=function(){this.JSC$21251_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21251_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21251_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21251_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21251_mouseDownEvent));this.JSC$21251_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21251_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21251_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21251_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21251_mouseMoveEvent));this.JSC$21251_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21251_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21251_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21251_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21251_mouseUpEvent))};
_.W.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var l=document.activeElement;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;switch(l){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};
_.W.updatePositionOfCorner=function(l,D){var U=l.y-D.offsetHeight/2+4;D.style.left=l.x-D.offsetWidth/2+16+"px";D.style.top=U+"px"};
_.W.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var l=_.B([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),D=l.next();!D.done;D=l.next()){D=D.value;var U=O1r(this.imageEditor,D.corner);this.updatePositionOfCorner(U,D.div)}};
_.W.onLeft=function(l){this.imageEditor&&this.setFocusInImageEditor()&&(io8(this.imageEditor,0),this.updatePositionOfAllCorners(),l.preventDefault())};
_.W.onRight=function(l){this.imageEditor&&this.setFocusInImageEditor()&&(io8(this.imageEditor,1),this.updatePositionOfAllCorners(),l.preventDefault())};
_.W.onUp=function(l){this.imageEditor&&this.setFocusInImageEditor()&&(io8(this.imageEditor,2),this.updatePositionOfAllCorners(),l.preventDefault())};
_.W.onDown=function(l){this.imageEditor&&this.setFocusInImageEditor()&&(io8(this.imageEditor,3),this.updatePositionOfAllCorners(),l.preventDefault())};
_.W.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.QP.Object.defineProperties(BC.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&GUv.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var l,D,U;((D=this.data)==null?0:D.imageRatio)&&((U=this.data)==null?0:U.minImageCropWidth)?l={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:l=QsJ;return new zar(l)}}});
BC.prototype.updatePositionOfAllCorners=BC.prototype.updatePositionOfAllCorners;BC.prototype.dataChanged=BC.prototype.dataChanged;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],BC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],BC.prototype,"ytComponentBehavior",void 0);_.E([_.m(_.pi),_.T("design:type",Object)],BC.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.gP("#canvas"),_.T("design:type",HTMLCanvasElement)],BC.prototype,"canvasElement",void 0);_.E([_.gP("#file-selector"),_.T("design:type",HTMLInputElement)],BC.prototype,"fileSelector",void 0);_.E([_.gP("#top-left-corner"),_.T("design:type",HTMLDivElement)],BC.prototype,"topLeftCorner",void 0);_.E([_.gP("#top-right-corner"),_.T("design:type",HTMLDivElement)],BC.prototype,"topRightCorner",void 0);
_.E([_.gP("#bottom-left-corner"),_.T("design:type",HTMLDivElement)],BC.prototype,"bottomLeftCorner",void 0);_.E([_.gP("#bottom-right-corner"),_.T("design:type",HTMLDivElement)],BC.prototype,"bottomRightCorner",void 0);_.E([_.K(),_.T("design:type",Object)],BC.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],BC.prototype,"errorMessage",void 0);_.E([_.K(),_.T("design:type",Object)],BC.prototype,"isLoading",void 0);_.E([_.K(),_.T("design:type",Object)],BC.prototype,"hideContainer",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.T("design:type",Boolean)],BC.prototype,"isPlaylistThumbnail",void 0);_.E([_.GY("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype",Promise)],BC.prototype,"dataChanged",null);_.E([_.hj("image-updated"),_.hj("yt-refit"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],BC.prototype,"updatePositionOfAllCorners",null);
_.E([_.S0({is:"yt-image-editor-renderer",disableElementRegistration:!0})],BC);
_.r(BC,"yt-image-editor-renderer",function(){if(ol5===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Fxv===void 0&&(Fxv=document.createElement("template"));var n=Fxv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);ol5=l}l=ol5;return l},{mode:2});var Jl$;var LI$;var Cj=function(){return _.p.apply(this,arguments)||this};
_.Z(Cj,_.p);Cj.prototype.updateMinutesFromBinding=function(l){this.handleMinutesChanged&&this.handleMinutesChanged(l)};
Cj.prototype.updateSecondsFromBinding=function(l){this.handleSecondsChanged&&this.handleSecondsChanged(l)};
Cj.prototype.updateDescriptionFromBinding=function(l){this.handleDescriptionChanged&&this.handleDescriptionChanged(l)};
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],Cj.prototype,"ytComponentBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Cj.prototype,"data",void 0);_.E([_.K(),_.T("design:type",String)],Cj.prototype,"minutes",void 0);_.E([_.K(),_.T("design:type",String)],Cj.prototype,"seconds",void 0);_.E([_.K(),_.T("design:type",String)],Cj.prototype,"description",void 0);_.E([_.K(),_.T("design:type",Function)],Cj.prototype,"handleMinutesChanged",void 0);
_.E([_.K(),_.T("design:type",Function)],Cj.prototype,"handleSecondsChanged",void 0);_.E([_.K(),_.T("design:type",Function)],Cj.prototype,"handleDescriptionChanged",void 0);_.E([_.K(),_.T("design:type",Number)],Cj.prototype,"characterLimit",void 0);_.E([_.K(),_.T("design:type",Number)],Cj.prototype,"textNumRows",void 0);_.E([_.S0({is:"yt-report-details-form-content",disableElementRegistration:!0})],Cj);
_.r(Cj,"yt-report-details-form-content",function(){if(LI$===void 0){var l=document.createElement("template");_.e(l,'\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>');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Jl$===void 0&&(Jl$=document.createElement("template"));var n=Jl$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);LI$=l}l=LI$;return l},{mode:2});var qOw;var MXJ;var h_=function(){var l=_.p.apply(this,arguments)||this;l.updateMinutesFromBinding=function(D){l.minutes=D.detail.value};
l.updateSecondsFromBinding=function(D){l.seconds=D.detail.value};
l.updateDescriptionFromBinding=function(D){l.description=D.detail.value};
return l};
_.Z(h_,_.p);_.W=h_.prototype;_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.W.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"}}}};
_.W.ready=function(){_.iJ(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.W.onSubmitYtAction=function(l){var D=l.detail;D.actionName==="yt-service-request"&&(D=D.args[1],D.flagEndpoint&&(l.stopPropagation(),this.refireAction(D)))};
_.W.refireAction=function(l){var D={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(D.vss_id=this.vssId);_.lu(this.hostElement,[l,D]);this.submitDisabled=!0};
_.W.dataChanged=function(){var l=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var D=_.T4();D&&D.getPlayerPromise().then(function(U){var n=U.getOption("cc","track")||U.getOption("captions","track");n&&(l.vssId=n.vss_id);U=U.getCurrentTime();l.minutes=Math.floor(U/60).toString();l.seconds=(Math.floor(U)%60).toString()})};
_.W.updateSubmitButtonState=function(){var l;((l=this.data)==null?0:l.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==="")};
_.W.onYtServiceRequestCompleted=function(){_.Vh(this.hostElement,"yt-close-popup-action")};
_.W.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.QP.Object.defineProperties(h_.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var l;return((l=this.data)==null?void 0:l.textNumRows)||4}}});
h_.prototype.onYtServiceRequestError=h_.prototype.onYtServiceRequestError;h_.prototype.onYtServiceRequestCompleted=h_.prototype.onYtServiceRequestCompleted;h_.prototype.updateSubmitButtonState=h_.prototype.updateSubmitButtonState;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],h_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);
_.E([_.K({observer:"dataChanged"}),_.T("design:type",Object)],h_.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Boolean)],h_.prototype,"submitDisabled",void 0);_.E([_.K(),_.T("design:type",String)],h_.prototype,"minutes",void 0);_.E([_.K(),_.T("design:type",String)],h_.prototype,"seconds",void 0);_.E([_.K(),_.T("design:type",String)],h_.prototype,"description",void 0);_.E([_.K(),_.T("design:type",String)],h_.prototype,"vssId",void 0);
_.E([_.K({value:_.H3("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.T("design:type",Boolean)],h_.prototype,"isMusic",void 0);_.E([_.t("data"),_.T("design:type",Number),_.T("design:paramtypes",[])],h_.prototype,"characterLimit",null);_.E([_.t("data"),_.T("design:type",Number),_.T("design:paramtypes",[])],h_.prototype,"textNumRows",null);
_.E([_.GY("minutes","seconds","description","submitDisabled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],h_.prototype,"updateSubmitButtonState",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],h_.prototype,"onYtServiceRequestCompleted",null);
_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],h_.prototype,"onYtServiceRequestError",null);_.E([_.S0({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],h_);
_.r(h_,"yt-report-details-form-renderer",function(){if(MXJ===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;qOw===void 0&&(qOw=document.createElement("template"));var n=qOw;U.call(D,n.content.cloneNode(!0),l.content.firstChild);MXJ=l}l=MXJ;return l});var R4w;var ZoJ;var e45;var mXT;var PC=function(){return _.p.apply(this,arguments)||this};
_.Z(PC,_.p);
PC.prototype.onCheckedChanged_=function(){if(this.data){var l=_.iJ(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Vh(this.hostElement,"yt-additional-detail-checkbox-update",[l]):this.data.identifier==="yt-hide-user-checkbox"?_.Vh(this.hostElement,"yt-hide-user-checkbox-update",[l]):l&&this.data.enableCommand?_.Vh(this.hostElement,"yt-modify-report-form-command",[_.M(this.data.enableCommand,rRr)]):!l&&this.data.disableCommand&&_.Vh(this.hostElement,
"yt-modify-report-form-command",[_.M(this.data.enableCommand,rRr)])}};
PC.prototype.onLabelTap_=function(l){l.target.tagName!="A"&&(_.iJ(this.hostElement).querySelector("#checkbox").checked=!_.iJ(this.hostElement).querySelector("#checkbox").checked)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],PC.prototype,"data",void 0);_.E([_.S0({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],PC);
_.r(PC,"yt-boolean-form-field-v2-renderer",function(){if(mXT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;e45===void 0&&(e45=document.createElement("template"));var n=e45;U.call(D,n.content.cloneNode(!0),l.content.firstChild);mXT=l}l=mXT;return l});var b1=function(){var l=_.p.apply(this,arguments)||this;l.canShowAdditionalDetailCheckbox=!1;l.canShowCheckbox=!1;l.keepDropdownFocusedAfterSelection=!0;return l};
_.Z(b1,_.p);b1.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],b1.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],b1.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.K(),_.T("design:type",Object)],b1.prototype,"canShowCheckbox",void 0);_.E([_.K(),_.T("design:type",Object)],b1.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.S0({is:"yt-report-form-modal-content",disableElementRegistration:!0})],b1);
_.r(b1,"yt-report-form-modal-content",function(){if(ZoJ===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;R4w===void 0&&(R4w=document.createElement("template"));var n=R4w;U.call(D,n.content.cloneNode(!0),l.content.firstChild);ZoJ=l}l=ZoJ;return l},{mode:2});var aHW;var tXW;var gY=function(){var l=_.p.apply(this,arguments)||this;l.submitting=!1;l.submitButtonDisabled=!0;l.command=null;l.canShowCheckbox=!1;l.canShowAdditionalDetailCheckbox=!1;l.canShowNextButton=!1;l.additionalDetailCheckboxChecked=!1;l.refitJob=0;l.keepDropdownFocusedAfterSelection=!0;l.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 l};
_.Z(gY,_.p);_.W=gY.prototype;_.W.created=function(){this.refitJob=0};
_.W.attached=function(){this.JSC$21274_scroller&&(this.JSC$21274_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21274_scroller.attached&&typeof this.JSC$21274_scroller.attached==="function"&&this.JSC$21274_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.dataChanged=function(l){l&&(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,l.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),l.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.W.onYtPopupOpened=function(){var l=_.T4();l&&l.getPlayerPromise().then(function(D){D.pauseVideo()})};
_.W.onYtNavigate=function(l){_.M(l.detail.endpoint,_.nAH)&&(l.stopPropagation(),this.hideReportForm=!0)};
_.W.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.W.onYtServiceRequestCompleted=function(l,D){var U=D.actions;if(U){if(U.length===1&&_.M(U[0],_.n3)){var n;U=((n=_.M(U[0],_.n3))==null?void 0:n.commands)||[]}n=0;for(var y=U.length;n<y;n++)_.M(U[n],_.rA)&&(l.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(U[n]))}if(D.data&&(l=this.get("feedbackResponses",D.data)))for(D=0;D<l.length;D++)if(l[D].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.W.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.W._onDescendantIronResize=function(l){l.stopPropagation();return!1};
_.W.handleReportFormEndpointUpdateAction=function(l){if(l.submitEndpoint){var D=this.command=l.submitEndpoint;D=_.M(D,_.D$y);if(D==null?0:D.additionalDetailCheckboxChecked)D.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else l.submitNavigationEndpoint?(this.command=l.submitNavigationEndpoint,this.toggleSubmitButton(!1)):l.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:l.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;l.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",l));this.refit()};
_.W.handleConfirmDialogCloseAction=function(l){l.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.W.submitButtonDisabledChanged=function(){var l=this.hostElement.parentElement;l&&l.invalidateTabbables&&l.invalidateTabbables()};
_.W.handleModifyReportFormCommand=function(l){l=this.get("action",l);l==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:l==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:l==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:l==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:l==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:l==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.W.updateDialogStyling=function(){var l,D,U,n,y,A=((y=(l=this.data)==null?void 0:(D=l.optionsSupportedRenderers)==null?void 0:(U=D.optionsRenderer)==null?void 0:(n=U.items)==null?void 0:n.length)!=null?y:0)<=2?0:240;_.Wg(this.hostElement,{"--yt-report-form-modal-renderer-min-width":A+"px"})};
_.W.toggleSubmitButton=function(l){this.submitButtonDisabled=!l;this.submitButtonDisabled=l};
_.W.computeSubmitButtonData=function(l,D){var U={};_.M(D,_.nAH)?U.navigationEndpoint=D:U.command=D||void 0;l&&l.buttonRenderer&&_.we.extend(U,l.buttonRenderer);return U};
_.W.computeNextButtonData=function(l,D){var U={};if(!l||!l.buttonRenderer)return U;_.we.extend(U,l.buttonRenderer);if(!D)return U;if(_.M(D,_.nAH))U.navigationEndpoint=znP(D);else if(U.command=znP(D),l=_.M(U.command,_.D$y))l.legalCheckboxChecked=!0;return U};
_.W.computeShowNextButton=function(l,D,U){return!!l&&D&&U};
_.W.refit=function(){var l=this;this.refitJob||(this.refitJob=_.Tn.addLowPriorityJob(function(){_.O9(l.hostElement,"yt-refit");l.refitJob=0}))};
_.W.handleAdditionalDetailCheckboxUpdateAction=function(l){this.additionalDetailCheckboxChecked=l;_.M(this.command,_.D$y).additionalDetailCheckboxChecked=l};
_.QP.Object.defineProperties(gY,{template:{configurable:!0,enumerable:!0,get:function(){if(tXW===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;aHW===void 0&&(aHW=document.createElement("template"));var n=aHW;U.call(D,n.content.cloneNode(!0),l.content.firstChild);tXW=l}l=tXW;return l}}});
gY.prototype.onYtServiceRequestError=gY.prototype.onYtServiceRequestError;gY.prototype.onYtServiceRequestCompleted=gY.prototype.onYtServiceRequestCompleted;gY.prototype.onYtServiceRequestSent=gY.prototype.onYtServiceRequestSent;gY.prototype.onYtNavigate=gY.prototype.onYtNavigate;gY.prototype.onYtPopupOpened=gY.prototype.onYtPopupOpened;_.E([_.m(_.kk.YtOpenPopupBehavior),_.T("design:type",Object)],gY.prototype,"openPopupBehavior",void 0);
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],gY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],gY.prototype,"eventForwardingBehavior",void 0);_.E([_.m(_.$s),_.T("design:type",Object)],gY.prototype,"ironResizableBehavior",void 0);_.E([_.K({observer:"dataChanged"}),_.T("design:type",Object)],gY.prototype,"data",void 0);
_.E([_.K(),_.T("design:type",Object)],gY.prototype,"submitting",void 0);_.E([_.K({observer:"submitButtonDisabledChanged"}),_.T("design:type",Object)],gY.prototype,"submitButtonDisabled",void 0);_.E([_.K(),_.T("design:type",Object)],gY.prototype,"command",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],gY.prototype,"hideReportForm",void 0);_.E([_.K(),_.T("design:type",Object)],gY.prototype,"canShowCheckbox",void 0);
_.E([_.K(),_.T("design:type",Object)],gY.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.K(),_.T("design:type",Object)],gY.prototype,"canShowNextButton",void 0);_.E([_.K(),_.T("design:type",Object)],gY.prototype,"additionalDetailCheckboxChecked",void 0);_.E([_.K(),_.T("design:type",Object)],gY.prototype,"refitJob",void 0);_.E([_.K(),_.T("design:type",Object)],gY.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.gP("#scroller"),_.T("design:type",Object)],gY.prototype,"JSC$21274_scroller",void 0);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],gY.prototype,"onYtPopupOpened",null);_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],gY.prototype,"onYtNavigate",null);
_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],gY.prototype,"onYtServiceRequestSent",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],gY.prototype,"onYtServiceRequestCompleted",null);
_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],gY.prototype,"onYtServiceRequestError",null);_.E([_.S0({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],gY);var XXJ;var SO8;var u1=function(){return _.p.apply(this,arguments)||this};
_.Z(u1,_.p);_.W=u1.prototype;_.W.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.W.onVisible=function(){var l,D;(D=_.Jc().resolve(_.G8(_.ZH)))==null||D.enqueue({label:_.Nl((l=this.data)==null?void 0:l.messageTitle),elementToFocus:this.hostElement})};
_.W.onThumbnailLoaded=function(){_.O9(this.hostElement,"yt-refit")};
_.W.onDismissTap=function(){_.Vh(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.W.computeAlternateIcon=function(l){return l?l==="BACKSTAGE_ARTWORK"?"backstage:artwork":l:null};
_.W.computeFontFamily=function(l){return l==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.W.computeBackgroundStyle=function(l,D){if(l=this.computeBackgroundImage(l,D))if(l=_.H9(l.thumbnails))return'background-image: url("'+l+'");'};
_.W.computeHasFullHeightImage=function(l){return!(!(l&&l.thumbnails&&l.thumbnails.length>0)||this.modern)};
_.W.isModernStyle=function(l){return l.style==="STYLE_MODERN"};
_.W.computeIcon=function(l,D){if(l&&l.icon)return D?l.iconDark:l.icon};
_.W.computeBackgroundImage=function(l,D){if(l&&l.backgroundImage)return D?l.backgroundImageDark:l.backgroundImage};
_.W.computeLogo=function(l,D){if(l&&l.logo)return D?l.logoDark:l.logo};
_.W.computeShouldShowModernIcon=function(l,D){return l&&!!D};
_.W.getLogoContainerClassName=function(l){return this.logoWithPadding(l)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.W.getLogoImageId=function(l){return this.logoWithPadding(l)?"mealbar-logo-with-padding":"mealbar-logo"};
_.W.logoWithPadding=function(l){var D,U,n;return(l=(D=this.computeLogo(l,this.isDarkTheme))==null?void 0:(U=D.thumbnails)==null?void 0:(n=U[0])==null?void 0:n.height)&&l%31===0?!0:!1};
u1.prototype.onThumbnailLoaded=u1.prototype.onThumbnailLoaded;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.E([_.K({}),_.T("design:type",Object)],u1.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.T("design:type",Boolean)],u1.prototype,"modern",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],u1.prototype,"isDarkTheme",void 0);
_.E([_.K({computed:"computeIcon(data, isDarkTheme)"}),_.T("design:type",Object)],u1.prototype,"icon",void 0);_.E([_.K({computed:"computeLogo(data, isDarkTheme)"}),_.T("design:type",Object)],u1.prototype,"logo",void 0);_.E([_.K({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.T("design:type",Object)],u1.prototype,"backgroundStyle",void 0);_.E([_.K({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.T("design:type",Object)],u1.prototype,"alternateIcon",void 0);
_.E([_.K({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.T("design:type",Boolean)],u1.prototype,"hasFullHeightImage",void 0);_.E([_.K({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.T("design:type",Boolean)],u1.prototype,"useYoutubeSans",void 0);_.E([_.K({computed:"computeShouldShowModernIcon(modern, icon)"}),_.T("design:type",Boolean)],u1.prototype,"shouldShowModernIcon",void 0);
_.E([_.hj("yt-img-shadow-loaded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],u1.prototype,"onThumbnailLoaded",null);_.E([_.S0({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],u1);
_.r(u1,"yt-mealbar-promo-renderer",function(){if(SO8===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;XXJ===void 0&&(XXJ=document.createElement("template"));var n=XXJ;U.call(D,n.content.cloneNode(!0),l.content.firstChild);SO8=l}l=SO8;return l},{mode:2});var kUr;var dX8;var vC=function(){return _.p.apply(this,arguments)||this};
_.Z(vC,_.p);_.W=vC.prototype;_.W.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]]"}}}}}};
_.W.computeHasButtons_=function(l){return!(!l.dismissButton&&!l.acceptButton)};
_.W.computeStyle_=function(l){return l||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.W.observeImpressionEndpoints_=function(){var l=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(D){D.clickTrackingParams&&delete D.clickTrackingParams;_.lu(l.hostElement,[D])})};
_.W.onTap_=function(){_.Vh(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
vC.prototype.observeImpressionEndpoints_=vC.prototype.observeImpressionEndpoints_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],vC.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],vC.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],vC.prototype,"positionType",void 0);_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.T("design:type",Boolean)],vC.prototype,"hasButtons_",void 0);_.E([_.K({value:function(){return this.onTap_.bind(this)}}),
_.T("design:type",Function)],vC.prototype,"boundOnTap_",void 0);_.E([_.K({value:{style:"mono-inverse"}}),_.T("design:type",Object)],vC.prototype,"buttonOverride",void 0);_.E([_.Pg("data.promoConfig.impressionEndpoints"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],vC.prototype,"observeImpressionEndpoints_",null);_.E([_.S0({is:"yt-tooltip-renderer",disableElementRegistration:!0})],vC);
_.r(vC,"yt-tooltip-renderer",function(){if(dX8===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;kUr===void 0&&(kUr=document.createElement("template"));var n=kUr;U.call(D,n.content.cloneNode(!0),l.content.firstChild);dX8=l}l=dX8;return l},{mode:2});var KIv;var clq;var pXH={},xX$=(pXH.WEB_REMIX="music.youtube.com",pXH),QV=function(){var l=_.p.apply(this,arguments)||this;l.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return l};
_.Z(QV,_.p);_.W=QV.prototype;_.W.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.created=function(){this.embedHost_=xX$[_.H3("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.W.ready=function(){_.iJ(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.W.computeEmbedCode_=function(l,D,U,n,y){if(!l)return"";var A=l.videoId,C=l.fullListId,h=[];l.attributionId&&h.push("si="+l.attributionId);n||h.push("controls=0");U&&Number(D)>0&&h.push("start="+D);C&&(A="videoseries",h.push("list="+C));U="https://"+(y?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+A;l.clipId&&(h.push("clip="+l.clipId),h.push("clipt="+l.clipTiming));D=h.length>0?U+"?"+h.join("&amp;"):U;l.encryptedEmbedConfig&&h.push("embed_config="+JSON.stringify({enc:l.encryptedEmbedConfig}));
h=h.length>0?U+"?"+h.join("&amp;"):U;_.q("web_sharing_embed_preview_killswitch")?_.iJ(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(h,l.previewWidth||854,l.previewHeight||480):(_.cl(this.videoPreviewContainer),_.iJ(this.videoPreviewContainer).appendChild(this.buildIframeElement(h)));return this.getEmbedCode_(D,l.width||560,l.height||315)};
_.W.buildIframeElement=function(l){var D=document.createElement("iframe"),U,n;D.width=""+((n=(U=this.data)==null?void 0:U.previewWidth)!=null?n:854);var y,A;D.height=""+((A=(y=this.data)==null?void 0:y.previewHeight)!=null?A:480);_.l8(D,2,l);D.title="YouTube video player";D.frameBorder="0";D.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";D.referrerPolicy="strict-origin-when-cross-origin";D.allowFullscreen=!0;return D};
_.W.computeIsSquareAspectRatio_=function(l){return l.previewHeight&&l.previewWidth?l.previewHeight==l.previewWidth:!1};
_.W.computeShowEmbedOptions_=function(l){return!!l.enablePrivacyModeOptionLabel||!!l.showPlayerControlsOptionLabel};
_.W.getEmbedCode_=function(l,D,U){return'<iframe width="'+D+'" height="'+U+'" src="'+l+'" 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>'};
_.W.handleSignalActionCopyShareEmbedUrl_=function(){_.iJ(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.W.handleSetTimestamp_=function(l){this.startAtTimeStamp_=(this.startAtChecked_=l.isSet)?l.timestamp:0};
_.W.closePanel_=function(){_.Vh(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.W.onEmbedCode_=function(){_.iJ(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.W.onYtPopupClosed_=function(){_.cl(_.iJ(this.hostElement).querySelector("#video-preview"))};
_.W.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.M(this.data.actionButtons[0],_.yn)&&this.ytRendererBehavior.logExplicitClick(_.M(this.data.actionButtons[0],_.yn))};
QV.prototype.onYtPopupClosed_=QV.prototype.onYtPopupClosed_;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],QV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],QV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],QV.prototype,"data",void 0);
_.E([_.K({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.T("design:type",String)],QV.prototype,"embedCode_",void 0);_.E([_.K({value:!0}),_.T("design:type",Boolean)],QV.prototype,"isPlayerControlsOptionChecked_",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],QV.prototype,"isPrivacyModeOptionChecked_",void 0);_.E([_.K({value:!1,notify:!0}),_.T("design:type",Boolean)],QV.prototype,"startAtChecked_",void 0);
_.E([_.K({value:0}),_.T("design:type",Number)],QV.prototype,"startAtTimeStamp_",void 0);_.E([_.K({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],QV.prototype,"isSquareAspectRatio_",void 0);_.E([_.gP("#video-preview"),_.T("design:type",HTMLElement)],QV.prototype,"videoPreviewContainer",void 0);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],QV.prototype,"onYtPopupClosed_",null);
_.E([_.S0({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],QV);
_.r(QV,"yt-sharing-embed-renderer",function(){if(clq===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;KIv===void 0&&(KIv=document.createElement("template"));var n=KIv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);clq=l}l=clq;return l},{mode:2});var js2={};
js2.YtUnlimitedFamilyInterstitialBehavior=[_.kk.YtOpenPopupBehavior,_.K$.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(l){l=_.jBy(_.NN(l),"yt-button-renderer");return l?l.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(l){this.dialogHistory_.push(l)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var l=this.popFromHistory();if(l){var D={openPopupAction:{popupType:"DIALOG",popup:{}}};D.openPopupAction.popup[l.renderer]=l.data;this.showingPreviousDialog_=!0;this.openPopup(D)}},
handleOpenPopupAction_:function(l){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var D=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(n){return!!l.openPopupAction.popup[n]}),U=this.getElementName_();
D&&this.data&&(this.pushToHistory({renderer:U,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(l){if(l=_.M(l,u5P))this.loading=!0,_.Vh(this.hostElement,"yt-open-create-family-dialog",[l,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var l=this.hostElement.nodeName.split("-").slice(1).map(function(D){return""+D[0].toUpperCase()+D.slice(1).toLowerCase()}).join("");
return l[0].toLowerCase()+l.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var FIv;var oV8;var Gg=function(){return _.p.apply(this,arguments)||this};
_.Z(Gg,_.p);_.W=Gg.prototype;_.W.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}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Vh(this.hostElement,"yt-register-create-family-dialog");_.iJ(this.hostElement).querySelector("#thumbnail").onShow()};
_.W.fireOnCloseCommand_=function(){var l;((l=this.data)==null?0:l.onCloseCommand)&&_.DP(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.W.onYtServiceRequestSent_=function(l,D){D&&D.endpoint&&_.M(D.endpoint,_.AJ)||(this.loading=!0)};
_.W.onYtServiceRequestCompleted_=function(){var l=this.hostElement.parentElement;l.close&&l.close();this.loading=!1};
_.W.openPopupHandler_=function(l){if(l.detail==this){var D;((D=this.data)==null?0:D.onOpenCommands)&&_.DP(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.W.closePopupHandler_=function(l,D){this.fireOnCloseCommand_();if(D&&D.canceled===!0||D&&D.canceled===!1&&D.confirmed===!1){var U;((U=this.data)==null?0:U.onDismissCommands)&&_.DP(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.W.dataChanged_=function(){this.loading=!1};
Gg.prototype.dataChanged_=Gg.prototype.dataChanged_;Gg.prototype.closePopupHandler_=Gg.prototype.closePopupHandler_;Gg.prototype.openPopupHandler_=Gg.prototype.openPopupHandler_;Gg.prototype.onYtServiceRequestCompleted_=Gg.prototype.onYtServiceRequestCompleted_;Gg.prototype.onYtServiceRequestSent_=Gg.prototype.onYtServiceRequestSent_;_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],Gg.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(js2.YtUnlimitedFamilyInterstitialBehavior),_.T("design:type",Object)],Gg.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Gg.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],Gg.prototype,"loading",void 0);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],Gg.prototype,"onYtServiceRequestSent_",null);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],Gg.prototype,"onYtServiceRequestCompleted_",null);
_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],Gg.prototype,"openPopupHandler_",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],Gg.prototype,"closePopupHandler_",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Gg.prototype,"dataChanged_",null);
_.E([_.S0({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Gg);
_.r(Gg,"yt-unlimited-family-message-interstitial-renderer",function(){if(oV8===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;FIv===void 0&&(FIv=document.createElement("template"));var n=FIv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);oV8=l}l=oV8;return l},{mode:2});var wX8;var rl8;var J_=function(){return _.p.apply(this,arguments)||this};
_.Z(J_,_.p);J_.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"}}}};
J_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.iJ(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(l){l.onShow()});
_.iJ(this.hostElement).querySelector("#main-thumbnail").onShow()};
J_.prototype.onButtonTap_=function(l){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(l)};
J_.prototype.computeMainThumbnailWidth_=function(l){return l&&l.length!==0?72:96};
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],J_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.E([_.m(js2.YtUnlimitedFamilyInterstitialBehavior),_.T("design:type",Object)],J_.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],J_.prototype,"data",void 0);
_.E([_.K({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.T("design:type",Number)],J_.prototype,"mainThumbnailWidth_",void 0);_.E([_.K({value:function(){return this.onButtonTap_.bind(this)}}),
_.T("design:type",Function)],J_.prototype,"boundButtonTap_",void 0);_.E([_.S0({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],J_);
_.r(J_,"yt-unlimited-family-profile-interstitial-renderer",function(){if(rl8===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;wX8===void 0&&(wX8=document.createElement("template"));var n=wX8;U.call(D,n.content.cloneNode(!0),l.content.firstChild);rl8=l}l=rl8;return l},{mode:2});var z45;var fHT;var Lj=function(){var l=_.p.apply(this,arguments)||this;l.sliderAriaValueText_=null;l.selectedIndex_=0;l.messages={PAUSE_SLIDER:_.C3("PAUSE_SLIDER",void 0,"Pause Duration")};return l};
_.Z(Lj,_.p);_.W=Lj.prototype;_.W.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_]]"}}}}}};
_.W.onPopupOpened_=function(l){l.detail==this&&_.q("enable_premium_voluntary_pause")&&(_.Vh(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W.setDialogData=function(l){this.data=l;this.resetSlider_()};
_.W.dataChanged_=function(){this.data&&this.resetSlider_()};
_.W.onSubmitTap_=function(){if(this.data.confirmCommand){var l=this.data.confirmCommand;_.M(l,_.yg7)&&_.lu(this.hostElement,[l,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.W.onExitButtonTap_=function(){_.Vh(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.W.closePopupHandler_=function(l,D){(D&&D.canceled===!0||D.canceled===!1&&D.confirmed===!1)&&this.handleOnDismissCommands_()};
_.W.onSliderChange_=function(){this.selectedIndex_=_.iJ(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.W.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.W.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.W.resetSlider_=function(){if(this.data){var l=this.data.defaultEndOptionIndex||0,D=_.iJ(this.hostElement).querySelector("#id-pause-slider");if(D.immediateValue<l)for(;D.immediateValue!=l;)D.increment();else if(l<D.immediateValue)for(;D.immediateValue!=l;)D.decrement();this.selectedIndex_=l;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.W.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.DP(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.W.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.DP(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.W.onYtServiceRequestSent=function(){this.loading=!0};
_.W.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Lj.prototype.onYtServiceRequestCompleted=Lj.prototype.onYtServiceRequestCompleted;Lj.prototype.onYtServiceRequestSent=Lj.prototype.onYtServiceRequestSent;Lj.prototype.closePopupHandler_=Lj.prototype.closePopupHandler_;Lj.prototype.dataChanged_=Lj.prototype.dataChanged_;Lj.prototype.onPopupOpened_=Lj.prototype.onPopupOpened_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Lj.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],Lj.prototype,"loading",void 0);_.E([_.K(),_.T("design:type",Number)],Lj.prototype,"selectIndexMax_",void 0);_.E([_.K(),_.T("design:type",Object)],Lj.prototype,"selectedData_",void 0);
_.E([_.K(),_.T("design:type",Object)],Lj.prototype,"sliderAriaValueText_",void 0);_.E([_.K({value:function(){return this.onSubmitTap_.bind(this)}}),
_.T("design:type",Function)],Lj.prototype,"onButtonTap_",void 0);_.E([_.K({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.T("design:type",Function)],Lj.prototype,"onSecondaryTap_",void 0);_.E([_.K(),_.T("design:type",Object)],Lj.prototype,"messages",void 0);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],Lj.prototype,"onPopupOpened_",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],Lj.prototype,"dataChanged_",null);
_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],Lj.prototype,"closePopupHandler_",null);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],Lj.prototype,"onYtServiceRequestSent",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],Lj.prototype,"onYtServiceRequestCompleted",null);_.E([_.S0({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Lj);
_.r(Lj,"yt-unplugged-pause-membership-dialog-renderer",function(){if(fHT===void 0){var l=document.createElement("template");_.e(l,'\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>');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;z45===void 0&&(z45=document.createElement("template"));var n=z45;U.call(D,n.content.cloneNode(!0),l.content.firstChild);fHT=l}l=fHT;return l},{mode:2});var $Xv;var Nwq;var qu=function(){return _.p.apply(this,arguments)||this};
_.Z(qu,_.p);qu.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.ZV("vcBalanceRenderer")}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],qu.prototype,"data",void 0);_.E([_.S0({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],qu);
_.r(qu,"yt-vc-offer-layout-header-renderer",function(){if(Nwq===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;$Xv===void 0&&($Xv=document.createElement("template"));var n=$Xv;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Nwq=l}l=Nwq;return l},{mode:2});var ss$;var EVT;var Tww;var IHr;var Mu=function(){return _.p.apply(this,arguments)||this};
_.Z(Mu,_.p);Mu.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.QP.Object.defineProperties(Mu.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.mrq.YtTappableItemBehavior),_.T("design:type",Object)],Mu.prototype,"ytTappableItemBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Mu.prototype,"data",void 0);
_.E([_.K({reflectToAttribute:!0}),_.t("data.accessibilityText"),_.T("design:type",String),_.T("design:paramtypes",[])],Mu.prototype,"ariaLabel",null);_.E([_.K({reflectToAttribute:!0}),_.t("data.style"),_.T("design:type",String),_.T("design:paramtypes",[])],Mu.prototype,"vcOfferStyle",null);_.E([_.t("data.style","data.titleText"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],Mu.prototype,"showTitleText",null);_.E([_.S0({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Mu);
_.r(Mu,"yt-vc-offer-renderer",function(){if(IHr===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Tww===void 0&&(Tww=document.createElement("template"));var n=Tww;U.call(D,n.content.cloneNode(!0),l.content.firstChild);IHr=l}l=IHr;return l},{mode:2});var R9=function(){return _.p.apply(this,arguments)||this};
_.Z(R9,_.p);R9.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],R9.prototype,"data",void 0);_.E([_.S0({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],R9);
_.r(R9,"yt-vc-offer-layout-renderer",function(){if(EVT===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;ss$===void 0&&(ss$=document.createElement("template"));var n=ss$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);EVT=l}l=EVT;return l},{mode:2});var HoJ;var YO$;var Oo$;var VX8;var ZA=function(){return _.p.apply(this,arguments)||this};
_.Z(ZA,_.p);ZA.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],ZA.prototype,"data",void 0);_.E([_.S0({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],ZA);
_.r(ZA,"yt-ypc-offers-modal-top-bar-renderer",function(){if(VX8===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Oo$===void 0&&(Oo$=document.createElement("template"));var n=Oo$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);VX8=l}l=VX8;return l},{mode:2});var eR=function(){return _.p.apply(this,arguments)||this};
_.Z(eR,_.p);eR.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"}}}}};
eR.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
eR.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var l=this.scrollable;l.attached&&typeof l.attached==="function"&&l.attached()};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.gP("#scrollable"),_.T("design:type",Object)],eR.prototype,"scrollable",void 0);_.E([_.K(),_.T("design:type",Object)],eR.prototype,"data",void 0);_.E([_.S0({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],eR);
_.r(eR,"yt-ypc-offers-modal-renderer",function(){if(YO$===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;HoJ===void 0&&(HoJ=document.createElement("template"));var n=HoJ;U.call(D,n.content.cloneNode(!0),l.content.firstChild);YO$=l}l=YO$;return l},{mode:2});var iJ$;var lCW;var m3=function(){return _.p.apply(this,arguments)||this};
_.Z(m3,_.p);_.W=m3.prototype;_.W.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}}}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.iJ(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.W.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Vh(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.W.onYtPopupOpened_=function(l,D){(D==null?void 0:D.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.DP(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.W.onYtPopupClosed_=function(l,D){this.continueButtonTapped||D&&(D.canceled===!0||D.canceled===!1&&D.confirmed===!1)&&this.data.onDismissCommands&&_.DP(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.W.onYtServiceRequestError_=function(l){this.set("showSpinner",!1);_.F7(this.hostElement,l.detail.error.message)};
_.W.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.q("enable_ypc_spinners")?_.Vh(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
m3.prototype.onYtServiceRequestError_=m3.prototype.onYtServiceRequestError_;m3.prototype.onYtPopupClosed_=m3.prototype.onYtPopupClosed_;m3.prototype.onYtPopupOpened_=m3.prototype.onYtPopupOpened_;m3.prototype.onYtServiceRequestCompleted_=m3.prototype.onYtServiceRequestCompleted_;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.K(),_.T("design:type",Object)],m3.prototype,"data",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],m3.prototype,"showSpinner",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],m3.prototype,"continueButtonTapped",void 0);_.E([_.K({value:function(){return this.onContinueTapped_.bind(this)}}),
_.T("design:type",Function)],m3.prototype,"bindOnContinueTapped_",void 0);_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],m3.prototype,"onYtServiceRequestCompleted_",null);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],m3.prototype,"onYtPopupOpened_",null);
_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],m3.prototype,"onYtPopupClosed_",null);_.E([_.hj("yt-service-request-error"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],m3.prototype,"onYtServiceRequestError_",null);_.E([_.S0({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],m3);
_.r(m3,"yt-ypc-upgrade-dialog-renderer",function(){if(lCW===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;iJ$===void 0&&(iJ$=document.createElement("template"));var n=iJ$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);lCW=l}l=lCW;return l},{mode:2});var D7w;var U7J;var a9=function(){return _.p.apply(this,arguments)||this};
_.Z(a9,_.p);a9.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
a9.prototype.computeHasButtons_=function(l){return!(!l.dismissButton&&!l.confirmButton)};
a9.prototype.computeStyle_=function(l){return l||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],a9.prototype,"ytEventForwardingBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],a9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],a9.prototype,"data",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],a9.prototype,"positionType",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.T("design:type",Boolean)],a9.prototype,"hasButtons_",void 0);_.E([_.K({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.T("design:type",Boolean)],a9.prototype,"style_",void 0);_.E([_.S0({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],a9);
_.r(a9,"yt-bubble-hint-renderer",function(){if(U7J===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;D7w===void 0&&(D7w=document.createElement("template"));var n=D7w;U.call(D,n.content.cloneNode(!0),l.content.firstChild);U7J=l}l=U7J;return l},{mode:2});var nr$;var yhr;var t_=function(){var l=_.Gs.apply(this,arguments)||this;l.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return l};
_.Z(t_,_.Gs);_.W=t_.prototype;_.W.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.W.attached=function(){var l=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){l.$.thumbnail.onShow();l.$["header-image"].onShow()})};
_.W.handleCheckBoxUpdateAction_=function(l){this.canShowCheckboxEnabledConfirmButton=l};
_.W.computeUseOverlayForSpinner_=function(l,D){return!!l&&D};
_.W.computeShowSpinner_=function(l,D){return l||!!D};
_.W.fireOnCloseActions_=function(){var l,D=_.B(((l=this.data)==null?void 0:l.onClosedActions)||[]);for(l=D.next();!l.done;l=D.next())this.ytRendererBehavior.resolveCommand(l.value)};
_.W.fireOnOpenCommands_=function(l){var D,U=(D=this.data)==null?void 0:D.onOpenCommands;if(U)for(l.stopImmediatePropagation(),l=_.B(U),D=l.next();!D.done;D=l.next())this.ytRendererBehavior.resolveCommand(D.value)};
_.W.fireOnDismissCommands_=function(l){var D,U=(D=this.data)==null?void 0:D.onDismissCommands;if(U)for(l.stopImmediatePropagation(),l=_.B(U),D=l.next();!D.done;D=l.next())this.ytRendererBehavior.resolveCommand(D.value)};
_.W.openPopupHandler_=function(l){l.detail==this&&this.fireOnOpenCommands_(l)};
_.W.closePopupHandler_=function(l,D){_.iu(this,"yt-confirm-dialog-close-action",[D]);this.fireOnCloseActions_();(D&&D.canceled===!0||D&&D.canceled===!1&&D.confirmed===!1)&&this.fireOnDismissCommands_(l)};
_.W.onHeaderImageChanged_=function(){var l;((l=this.data)==null?0:l.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.W.computeHasHeaderImageWidth_=function(l){return l!=void 0};
_.W.computeHasLoadingMessage=function(l){return!!l};
_.W.onHeaderImageWidthChanged_=function(){var l,D=(l=this.data)==null?void 0:l.headerImageWidth;if(D){if(l=1.25*D*2+D,this.$.main.style.width=l+"px",D=this.$.scroller.firstElementChild)D.style.minWidth=l+"px"}else this.$.main.style.width="100%"};
_.W.onThumbnailChanged_=function(){var l;((l=this.data)==null?0:l.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")};
_.W.onYtNavigate_=function(l){l=_.NN(l);l instanceof Node&&_.lJ(this.$["confirm-button"]).contains(l)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.W.computePrimaryIsCancel_=function(l){return l};
_.W.computeIsCancelButtonHidden_=function(l){return l.skipCancelButton||!l.cancelButton};
_.W.computeIsCheckboxHidden_=function(l){return!l.checkbox};
_.W.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.W.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.W.onYtServiceRequestCompleted_=function(){var l;((l=this.data)==null?0:l.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.QP.Object.defineProperties(t_,{template:{configurable:!0,enumerable:!0,get:function(){if(yhr===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;nr$===void 0&&(nr$=document.createElement("template"));var n=nr$;U.call(D,n.content.cloneNode(!0),l.content.firstChild);yhr=l}l=yhr;return l}}});
t_.prototype.onYtServiceRequestCompleted_=t_.prototype.onYtServiceRequestCompleted_;t_.prototype.onYtServiceRequestSent_=t_.prototype.onYtServiceRequestSent_;t_.prototype.onThumbnailLoaded_=t_.prototype.onThumbnailLoaded_;t_.prototype.onYtNavigate_=t_.prototype.onYtNavigate_;t_.prototype.onThumbnailChanged_=t_.prototype.onThumbnailChanged_;t_.prototype.onHeaderImageWidthChanged_=t_.prototype.onHeaderImageWidthChanged_;t_.prototype.onHeaderImageChanged_=t_.prototype.onHeaderImageChanged_;
t_.prototype.closePopupHandler_=t_.prototype.closePopupHandler_;t_.prototype.openPopupHandler_=t_.prototype.openPopupHandler_;_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],t_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);
_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],t_.prototype,"ytEventForwardingBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],t_.prototype,"data",void 0);_.E([_.K({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.T("design:type",Boolean)],t_.prototype,"primaryIsCancel",void 0);_.E([_.K({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.T("design:type",Boolean)],t_.prototype,"isCancelButtonHidden",void 0);
_.E([_.K({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.T("design:type",Boolean)],t_.prototype,"isCheckboxHidden",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],t_.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.E([_.K({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.T("design:type",Boolean)],t_.prototype,"useOverlayForSpinner_",void 0);
_.E([_.K({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.T("design:type",Boolean)],t_.prototype,"showSpinner_",void 0);_.E([_.K({value:!1}),_.T("design:type",Boolean)],t_.prototype,"isActionInProgress_",void 0);_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.T("design:type",Boolean)],t_.prototype,"hasHeaderImageWidth_",void 0);
_.E([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.T("design:type",Boolean)],t_.prototype,"hasLoadingMessage",void 0);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],t_.prototype,"openPopupHandler_",null);_.E([_.hj("yt-popup-closed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],t_.prototype,"closePopupHandler_",null);
_.E([_.Pg("data.headerImage"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],t_.prototype,"onHeaderImageChanged_",null);_.E([_.Pg("data.headerImageWidth"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],t_.prototype,"onHeaderImageWidthChanged_",null);_.E([_.Pg("data.thumbnail"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],t_.prototype,"onThumbnailChanged_",null);
_.E([_.hj("yt-navigate"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],t_.prototype,"onYtNavigate_",null);_.E([_.hj("yt-img-shadow-loaded"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],t_.prototype,"onThumbnailLoaded_",null);_.E([_.hj("yt-service-request-sent"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.p0]),_.T("design:returntype")],t_.prototype,"onYtServiceRequestSent_",null);
_.E([_.hj("yt-service-request-completed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,_.z4]),_.T("design:returntype")],t_.prototype,"onYtServiceRequestCompleted_",null);_.E([_.S0({is:"yt-confirm-dialog-renderer",noInjection:!0})],t_);var Ahq;var WVH;var XA=function(){return _.p.apply(this,arguments)||this};
_.Z(XA,_.p);XA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.iJ(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
XA.prototype.computeConfirmButton_=function(l){var D={text:l.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};l.confirmNavigationEndpoint?D.navigationEndpoint=l.confirmNavigationEndpoint:l.confirmServiceEndpoint&&(D.serviceEndpoint=l.confirmServiceEndpoint);return D};
XA.prototype.computeShowTitle_=function(l){return!(l==null||!l.title)};
_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],XA.prototype,"data",void 0);_.E([_.K({computed:"computeShowTitle_(data)"}),_.T("design:type",Boolean)],XA.prototype,"showTitle",void 0);_.E([_.S0({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],XA);
_.r(XA,"yt-fancy-dismissible-dialog-renderer",function(){if(WVH===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;Ahq===void 0&&(Ahq=document.createElement("template"));var n=Ahq;U.call(D,n.content.cloneNode(!0),l.content.firstChild);WVH=l}l=WVH;return l});var B18;var Cs$;var SR=function(){var l=_.p.apply(this,arguments)||this;l.spinnerActive=!1;return l};
_.Z(SR,_.p);SR.prototype.created=function(){BIq(2201)};
SR.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
SR.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
SR.prototype.onIronOverlayClosed=SR.prototype.onIronOverlayClosed;SR.prototype.onIronOverlayOpened=SR.prototype.onIronOverlayOpened;_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.AM),_.T("design:type",Object)],SR.prototype,"tpYtIronOverlayBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],SR.prototype,"data",void 0);_.E([_.K(),_.T("design:type",Object)],SR.prototype,"spinnerActive",void 0);
_.E([_.hj("iron-overlay-opened"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SR.prototype,"onIronOverlayOpened",null);_.E([_.hj("iron-overlay-closed"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],SR.prototype,"onIronOverlayClosed",null);_.E([_.S0({is:"yt-loading-renderer",disableElementRegistration:!0})],SR);
_.r(SR,"yt-loading-renderer",function(){if(Cs$===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;B18===void 0&&(B18=document.createElement("template"));var n=B18;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Cs$=l}l=Cs$;return l},{mode:2});var hw5;var Ps8;var kL=function(){var l=_.p.apply(this,arguments)||this;l.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);l.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);l.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";l.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return l};
_.Z(kL,_.p);_.W=kL.prototype;_.W.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.W.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.W.onDarkModeToggledAction=function(l){this.isDarkTheme=l};
_.W.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.W.openPopupHandler_=function(l){l.detail===this.hostElement&&this.hostElement.hidden&&_.Vh(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.W.onDismissButtonTap_=function(){var l;this.closeOnDismissButton_.has(((l=this.data)==null?void 0:l.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Vh(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.W.onAcceptButtonTap_=function(){var l;this.closeOnAcceptButton_.has(((l=this.data)==null?void 0:l.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Vh(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.W.computeHasHeader_=function(l){return!!l.headerBackgroundImage};
_.W.computeLayoutStyle_=function(l){return l};
_.W.computePopupSize_=function(l){return l};
_.W.computeIconType_=function(l){return l.dialogIcon&&l.dialogIcon.iconType?l.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":l.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":l.dialogIcon.iconType:""};
_.W.computeIsLogo_=function(l){return!!l.dialogIcon&&!!l.dialogIcon.iconType&&(l.dialogIcon.iconType==="YOUTUBE_LOGO"||l.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||l.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.W.computeHasCustomLogo=function(l){return!(l==null||!l.headerForegroundImage)};
_.W.computeCustomLogo=function(l,D){if(l!=null&&l.headerForegroundImage)return l.headerForegroundImageDark?D?l.headerForegroundImageDark:l.headerForegroundImage:l.headerForegroundImage};
_.W.computeHeaderBackgroundImage=function(l,D){if(l!=null&&l.headerBackgroundImage)return D&&(l==null?0:l.headerBackgroundImageDark)?l.headerBackgroundImageDark:l.headerBackgroundImage};
_.W.shouldShowIconContainer=function(l,D){return l&&!D};
_.W.shouldShowNonYouTubeIcon=function(l,D){return!l&&!D};
_.W.getLogoImageId=function(l){var D,U,n;return(l=(D=this.computeCustomLogo(l,this.isDarkTheme))==null?void 0:(U=D.thumbnails)==null?void 0:(n=U[0])==null?void 0:n.height)&&l%31===0?"custom-logo-with-padding":"custom-logo"};
kL.prototype.openPopupHandler_=kL.prototype.openPopupHandler_;kL.prototype.dataChanged_=kL.prototype.dataChanged_;_.E([_.m(_.J9.YtRendererstamperBehavior),_.T("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.E([_.K(),_.T("design:type",Boolean)],kL.prototype,"isDarkTheme",void 0);
_.E([_.K({computed:"computeCustomLogo(data, isDarkTheme)"}),_.T("design:type",Object)],kL.prototype,"customLogo",void 0);_.E([_.K({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.T("design:type",Object)],kL.prototype,"headerBackgroundImage",void 0);_.E([_.K(),_.T("design:type",Object)],kL.prototype,"data",void 0);_.E([_.K({computed:"computeHasHeader_(data)"}),_.T("design:type",Boolean)],kL.prototype,"hasHeader",void 0);
_.E([_.K({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.T("design:type",Object)],kL.prototype,"layoutStyle",void 0);_.E([_.K({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.T("design:type",Object)],kL.prototype,"popupSize",void 0);_.E([_.K({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],kL.prototype,"hasLogo",void 0);
_.E([_.K({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.T("design:type",Boolean)],kL.prototype,"hasCustomLogo",void 0);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],kL.prototype,"dataChanged_",null);_.E([_.hj("yt-popup-opened"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],kL.prototype,"openPopupHandler_",null);
_.E([_.S0({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],kL);
_.r(kL,"yt-upsell-dialog-renderer",function(){if(Ps8===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;hw5===void 0&&(hw5=document.createElement("template"));var n=hw5;U.call(D,n.content.cloneNode(!0),l.content.firstChild);Ps8=l}l=Ps8;return l},{mode:2});var bJq=_.w(function(l){return _.g("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.g(_.v,{cond:l.title,then:function(D){return _.g("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},D)}}))},"Dj"),gr$=_.w(function(l){return _.g("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.g(_.uI,{data:l.closeButton},{buttonViewModel:function(D){return _.g("div",null,_.g(_.t9,{data:D.data}))}}))},"Ej"),uj$=_.w(function(l){var D=l.data;
return _.g(_.GZ,null,_.g("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.g("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.g(_.v,{cond:function(){return!!D().image&&!!D().title},
then:function(){return _.g(_.rh,{data:function(){return D().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.g("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.g(_.v,{cond:function(){return D().title},
then:function(U){return _.g("h3",{class:"miniAppGameInfoDialogViewModelTitle"},U)}}),_.g(_.v,{cond:function(){return D().primaryGenre},
then:function(U){return _.g("span",{class:"miniAppGameInfoDialogViewModelGenre"},U)}}))),_.g(_.v,{cond:function(){var U=D().description;
return U&&U.length<=150},
then:function(){return _.g("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.g("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return D().description}))}}))},"Fj"),vrJ=_.w(function(l){l=l.infoRows;
var D=_.Jc().resolve(_.GG),U=_.q("enable_displaying_ppn");return _.g("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.g(_.wt,{each:l},function(n){return _.g("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.g(_.v,{cond:function(){return n.label},
then:function(y){return _.g("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},y)}}),_.g(_.v,{cond:function(){return n.attributedLabel},
then:function(y){return _.g("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.g(_.BO,{text:y,noPreWrap:!0}))}}),_.g(_.v,{cond:function(){return n.value},
then:function(y){return _.g("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},y)}}),_.g(_.v,{cond:function(){return n.attributedValue},
then:function(y){return _.g("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.g(_.BO,{text:y,noPreWrap:!0}))}}))}),_.g(_.v,{cond:function(){return U&&D.clientData.has("post_play_nonce")},
then:function(){return _.g("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.g("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.g("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},D.getData("post_play_nonce")))}}))},"Gj"),Qh5=_.w(function(l){var D=l.data;
return _.g("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.g(bJq,{title:function(){return D().dialogTitle}}),_.g(uj$,{data:D}),_.g(_.v,{cond:function(){return D().infoRow},
then:function(U){return _.g(vrJ,{infoRows:U})}}),_.g(gr$,{closeButton:function(){return D().closeButton}}))},"Hj");
Qh5.idomCompat=!0;_.Tt(Qh5,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;return _.g("yt-gulp-triggering-dialog-view-model",{class:_.DV("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.g(_.rh,{data:function(){return D().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.g("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.g("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.g("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.g(_.BO,{text:function(){return D().title}})),_.g(_.v,{cond:function(){return D().bodyText},
then:function(U){return _.g(_.wt,{each:U},function(n){return _.g("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.g(_.BO,{text:n}))})}})),_.g("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.g(_.uI,{data:function(){return D().dismissButton}},{buttonViewModel:function(U){return _.g("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.g(_.t9,{data:U.data}))}}),_.g(_.uI,{data:function(){return D().actionButton}},{buttonViewModel:function(U){return _.g("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.g(_.t9,{data:U.data}))}}))))},"Ij"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.C$}});var G1J=_.w(function(l){var D=l.data;l=_.NQ(function(){return D().agreements},[]);
return _.g("installment-agreements-view-model",{class:_.DV("ytInstallmentAgreementsViewModelHost")},_.g(_.wt,{each:l},function(U){return _.g("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.g("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.g(_.BO,{text:U.label})),_.g("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.g(_.uI,{data:function(){return U.openButton}},{buttonViewModel:_.t9})))}))},"Jj");
G1J.idomCompat=!0;var JhH=_.w(function(l){var D=_.B(_.WK(function(){var I,iG;return((I=l.data().createPlaylistDialogFormSchema)==null?0:(iG=I.initialValues)==null?0:iG.title)?l.data().createPlaylistDialogFormSchema.initialValues.title:""})),U=D.next().value,n=D.next().value;
D=_.B(_.WK(function(){l.data();return!1}));
var y=D.next().value,A=D.next().value;D=_.B(_.WK(function(){l.data();return!1}));
var C=D.next().value,h=D.next().value;D=_.B(_.WK(function(){var I,iG;return(I=l.data().createPlaylistDialogFormSchema)==null?void 0:(iG=I.initialValues)==null?void 0:iG.visibility}));
var b=D.next().value,u=D.next().value;D=_.B(_.WK(function(){l.data();return!1}));
var Q=D.next().value,G=D.next().value;D=_.B(_.WK(function(){var I,iG;return(I=l.data().createPlaylistDialogFormSchema)==null?void 0:(iG=I.initialValues)==null?void 0:iG.isCollaborative}));
var J=D.next().value,L=D.next().value,R=_.bP("div");_.$i(function(){var I=R.value.querySelector("textarea");I&&(I.value=U())},"axFRaf");
_.N1(function(){var I;_.cHq((I=l.data().createPlaylistDialogFormSchema)==null?void 0:I.id,{onSubmit:function(){var iG=U();var CC=b(),vo=J(),td=l.data();iG={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:iG,privacyStatus:CC,videoIds:td.videoIds,sourcePlaylistId:td.sourcePlaylistId,params:vo?td.createPlaylistParamsCollaborationEnabled:td.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.Jc().resolve(_.qK).resolveCommand(iG)},
isValid:function(){return y()&&!C()&&!Q()}})});
var a=function(I){if(I!==void 0&&(n(I),!y()&&I.length>0&&A(!0),y())){var iG=bT5(l.data());if(iG){var CC=iG.minLength;iG=iG.maxLength;CC&&I.length<CC?h(!0):iG&&I.length>iG?h(!0):h(!1)}}},S=function(){var I=!(!J()||b()!=="PRIVATE");
G(I)},d=function(I){I!==void 0&&(u(I),S())},c=function(){if(Q())return up8(l.data())},N=function(){L(!J());
S()},z=function(){return{validate:function(I){if(y()){var iG=bT5(l.data());
if(iG){var CC=iG.minLength;iG=iG.translations;if(CC&&I.length<CC)return iG==null?void 0:iG.minLengthErrorMessage}}}}},f=function(){var I=bT5(l.data()),iG=I==null?void 0:I.maxLength,CC;
I=I==null?void 0:(CC=I.translations)==null?void 0:CC.maxLengthErrorMessage;if(iG&&I)return{maxChars:iG,errorMessage:I}};
return _.g("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.g("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:R},_.g(_.uI,{data:function(){return l.data().playlistTitle}},{textFormFieldViewModel:function(I){return _.g(_.r48,{data:I.data,
text:U,onInput:a,validation:z,characterLimit:f})},
textFieldViewModel:function(I){return _.g(_.wc$,{data:I.data,text:U,onInput:a,validation:z,characterLimit:f})}})),_.g("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.g(_.uI,{data:function(){return l.data().playlistVisibility}},{dropdownViewModel:function(I){return _.g(_.YBw,{data:I.data,
onSelected:d,error:c})}})),_.g(_.v,{cond:function(){return!!l.data().playlistCollaborate},
then:function(){return _.g("div",null,_.g(_.uI,{data:function(){return l.data().playlistCollaborate}},{switchListItemViewModel:function(I){return _.g(_.M7m,{data:I.data,
onTap:N})}}))}}))},"Lj");var LVJ=_.w(function(l){var D=l.data;return _.g("upsell-offer-table-cell-content-view-model",null,_.g("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.g(_.rt,null,_.g(_.F2,{when:function(){return D().iconType}},function(){return _.g("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.g(_.C0,{icon:function(){return D().iconType.toString()}}))}),_.g(_.F2,{when:function(){return D().title}},function(){return _.g(_.BO,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return D().title}})}),_.g(_.F2,{when:function(){return D().subtitle}},function(){return _.g(_.BO,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return D().subtitle}})}),_.g(_.F2,{when:function(){return D().infoText}},function(){return _.g(_.BO,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return D().infoText}})}),_.g(_.F2,{when:function(){return D().featureDescription}},function(){return _.g(_.BO,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return D().featureDescription}})}),_.g(_.F2,{when:function(){return D().note}},function(){return _.g(_.BO,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return D().note}})}))))},"Mj");
LVJ.idomCompat=!0;var qew=_.w(function(l){var D=l.data;return _.g("upsell-offer-table-cell-view-model",null,_.g("div",{class:_.DV("ytUpsellOfferTableCellViewModelCellWrapper",function(){return D().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":D().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.g(_.uI,{data:function(){return D().contents}},{upsellOfferTableCellContentViewModel:LVJ})))},"Nj");
qew.idomCompat=!0;var MxJ=_.w(function(l){var D=l.data;var U=l.upsellTableIsFirstRow;var n=function(){return(U==null?0:U())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},y=function(){return(U==null?0:U())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.g("ytm-upsell-offer-table-row-view-model",null,_.g("div",{class:function(){return(U==null?0:U())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"}},_.g(_.uI,{data:function(){return D().rowHeaderCell}},{upsellOfferTableCellViewModel:function(A){return _.g("div",{class:n},_.g(qew,{data:A.data}))}}),_.g("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.g(_.uI,{data:function(){return D().contentCells}},{upsellOfferTableCellViewModel:function(A){return _.g("div",
{class:y},_.g(qew,{data:A.data}))}}))))},"Oj");
MxJ.idomCompat=!0;var Rww=_.w(function(l){var D=l.data;return _.g("ytm-upsell-offer-table-view-model",null,_.g("div",{class:"ytUpsellOfferTableViewModelHost"},_.g("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.g(_.uI,{data:function(){return D().rows}},{upsellOfferTableRowViewModel:function(U,n){return _.g(MxJ,{data:U.data,
upsellTableIsFirstRow:function(){return n()===0}})}}))))},"Pj");
Rww.idomCompat=!0;var ZJw=_.w(function(l){var D=function(){return l.data()},U=_.NQ(l.noPadding,!1),n=function(){var A,C;
return(C=(A=D().logo.accessibilityData)==null?void 0:A.label)!=null?C:""},y={};
return _.g("upsell-view-model",{class:_.DV("ytUpsellViewModelHost",(y.ytUpsellViewModelHostNoPadding=function(){return U()},y.ytUpsellViewModelHostWide=function(){return D().offerTable!==void 0},y))},_.g("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.g(_.v,{cond:function(){return _.pq(D().logo)},
then:function(A){return _.g(_.rh,{data:A,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:n})}})),_.g("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.g(_.BO,{text:function(){return D().title}})),_.g("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.g(_.wt,{each:function(){var A;
return(A=D().subtitles)!=null?A:[]},
keyBy:"INDEX"},function(A){var C={};return _.g("div",{class:_.DV("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(C.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return D().offerTable!==void 0},C))},_.g(_.BO,{text:A}))})),_.g("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.g(_.wt,{each:function(){var A;
return(A=D().benefitInfos)!=null?A:[]},
keyBy:"INDEX"},function(A){return _.g(_.v,{cond:function(){return A().info},
then:function(C){return _.g("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.g(_.C0,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.g(_.BO,{text:C}))}})})),_.g(_.v,{cond:function(){return D().offerTable!==void 0},
then:function(){return _.g("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.g(_.uI,{data:function(){return D().offerTable}},{upsellOfferTableViewModel:function(A){return _.g(Rww,{data:A.data})}}))}}),_.g("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.g(_.wt,{each:function(){var A;
return(A=D().legalInfos)!=null?A:[]},
keyBy:"INDEX"},function(A){var C={};return _.g("div",{class:_.DV("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(C.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return D().offerTable!==void 0},C))},_.g(_.BO,{text:A}))})))},"Qj");var ewP=_.w(function(l){var D=l.data;l={};l=(l.ytMiniAppScoreChallengeViewModelScoreRadial=!0,l.ytMiniAppScoreChallengeViewModelDarkScoreRadial=vhT(),l);return _.g("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.g("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return D().title}),_.g("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return D().subtitle}),_.g("div",{class:_.MJ(l)},_.g("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return D().score})),_.g("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return D().prompt}))},"Rj");var m7$=function(){this.store=_.fY();this.formId=""};
m7$.prototype.onInit=function(l){l.formId&&(this.formId=l.formId,this.store.dispatch(_.V0({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var aCq=_.w(function(l){function D(h){if(h&&(h=_.M(h,_.Gy)))return Object.assign({},h,{isSelected:A()})}
var U=_.B(_.WK(function(){var h,b;return(b=(h=_.M(l.data().option,_.Gy))==null?void 0:h.isSelected)!=null?b:!1})),n=U.next().value,y=U.next().value,A=n;
_.N1(function(){var h;_.cHq((h=l.data().formSchema)==null?void 0:h.id,{onSubmit:function(){var b=_.Jc().resolve(_.qK),u=!!l.data().selectedCommand,Q=!!l.data().unselectedCommand;if(A()){if(u)var G=l.data().selectedCommand}else Q&&(G=l.data().unselectedCommand);G=_.te(G);D(l.data().option)&&!G?(b="",!u&&Q?b="selected ":u&&!Q&&(b="unselected "),u=new _.rc("No "+b+"command found for SelectionListItemFormViewModel"),_.EU(u)):G&&b.resolveCommand(G)},
isValid:function(){return!0}})});
var C=function(){y(!A())};
_.NV(function(){var h,b,u=(h=l.data())==null?void 0:(b=h.formSchema)==null?void 0:b.id;u&&_.bI()().delete(u)});
return _.g("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.g("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.g(_.BO,{text:function(){return l.data().paragraph}})),_.g(_.v,{cond:function(){return D(l.data().option)},
then:function(h){return _.g(_.Bv,{data:h,isCompact:!0,hideSelectionTextChevron:!0,onTap:C,disableHorizontalPadding:!0})}}))},"Sj");var txq=_.w(function(l){var D=l.data;var U=l.disablePadding;var n=l.className;var y=_.bP("yt-dialog-header-view-model"),A=function(){var h=D().imageBanner;a:switch(D().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var b="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:b="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:h,style:b,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},C=function(){return D().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.N1(function(){var h=function(){_.Vh(y.value,"yt-refit-popups-action")},b;
(b=y.value)==null||b.addEventListener("image-loaded",h);_.NV(function(){var u;(u=y.value)==null||u.removeEventListener("image-loaded",h)})});
l={};return _.g("yt-dialog-header-view-model",{el:y,class:_.DV(n,(l.ytDialogHeaderViewModelHost=!0,l.ytDialogHeaderViewModelHostDisablePadding=U,l))},_.g(_.v,{cond:function(){return D().imageBanner},
then:function(){var h={};return _.g("div",{class:_.DV(n,(h.ytDialogHeaderViewModelBanner=!0,h.ytDialogHeaderViewModelBannerFullBleed=C,h)),style:_.BK({"max-height":function(){return D().assetContainerMaxHeight!==void 0?D().assetContainerMaxHeight+"px":void 0}})},_.g(_.XQ,{data:A,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.g(_.v,{cond:function(){return D().headerBlock},
then:function(){return _.g("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.g(_.uI,{data:function(){return D().headerBlock}},{contentPreviewImageViewModel:function(h){return _.g(_.XQ,{data:h.data,
notifyOnLoaded:!0})}}))}}),_.g(_.v,{cond:function(){return D().customBanner},
then:function(h){return _.g("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.g(_.uI,{data:h},{avatarStackViewModel:_.DD}))}}),_.g(_.v,{cond:function(){return D().headline},
then:function(h){return _.g("h2",null,_.g(_.BO,{text:h,className:"ytDialogHeaderViewModelText"}))}}))},"Tj");
txq.idomCompat=!0;var XVv=_.w(function(l){var D=_.hJC(function(){return l.data().formId}),U=D.submitForm,n=D.isValid;
return _.g("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.g(_.uI,{data:function(){return l.data().panelFooter}},{panelFooterViewModel:function(y){return _.g(_.w1,{data:y.data,
disablePadding:!0,disablePrimaryButton:function(){return!n()},
onClickPrimaryButton:function(){U()}})}}))},"Uj");var Sev=_.w(function(l){var D=function(){var U,n;return(n=(U=_.M(l.data().rendererContext,_.vF))==null?void 0:U.label)!=null?n:""};
return _.g("yt-dialog-image-content-view-model",{class:_.DV("ytDialogImageContentViewModelHost",l.className)},_.g(_.v,{cond:function(){return _.pq(l.data().image)},
then:function(U){var n={};return _.g("div",{style:_.BK((n.width=(0,_.yO)(function(){var y;return(y=l.data().imageMaxWidth)!=null?y:""}),n)),
class:"ytDialogImageContentViewModelImage"},_.g(_.rh,{data:U,alt:D,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.g(_.BO,{text:function(){return l.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Vj");var KVq=_.w(function(l){var D=_.sl(l,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),U=D.elRefCallback;l=D.Icon;var n=D.Asset,y=D.assetType,A=D.Title,C=D.LeadingActionHeader,h=D.TrailingActionHeader,b=D.headerPosition,u=D.Content,Q=D.buttonLayout,G=D.buttonStyle,J=D.primaryButtonWiz,L=D.secondaryButtonWiz,R=D.contentAlignment,a=D.isFullscreen,S=D.width,d=D.maxHeight,c=D.isHeaderWizDefined,N=D.Header,z=D.isFooterWizDefined,
f=D.Footer;D=_.bP("dialog-layout",function(j3){U==null||U(j3)});
var I=J?function(){var j3={};return J({buttonOverrides:function(){return{style:(G==null?void 0:G())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.DV((j3["yt-spec-dialog-layout__dialog-layout-button"]=!0,j3["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(Q==null?void 0:Q())===0||(Q==null?void 0:Q())===2},j3))})}:void 0,iG=L?function(){var j3={};
return L({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.DV((j3["yt-spec-dialog-layout__dialog-layout-button"]=!0,j3["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(Q==null?void 0:Q())===0||(Q==null?void 0:Q())===2},j3))})}:void 0,CC=function(){return(!!A||!!C||!!h)&&b()===0},vo={},td={},GN={},Ms={};
return _.g("dialog-layout",{el:D,class:_.DV((vo["yt-spec-dialog-layout"]=!0,vo["yt-spec-dialog-layout--dialog-layout-fullscreen"]=a,vo["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!a()},vo["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return d()===1},vo["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(y==null?void 0:y())===1},vo)),
style:function(){return(S==null?void 0:S())!==void 0?"width: "+S()+"px;":""}},l?_.g("div",{class:_.DV((td["yt-spec-dialog-layout__dialog-layout-icon"]=!0,td["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!n&&b()===1},td["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return R()===1},td))},_.g(l,null)):null,_.g(_.v,{cond:c,
then:function(){return N?_.g("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.g(N,null)):null},
else:function(){return _.g(_.GZ,null,_.g(_.v,{cond:CC,then:function(){return _.g(k1r,{contentAlignment:R,LeadingActionHeader:C,TrailingActionHeader:h,Title:A,isAboveAsset:!!n})}}),n?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.g(n,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.g("div",{class:_.DV((GN["yt-spec-dialog-layout__dialog-layout-container"]=!0,GN["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(R==null?void 0:R())===1},
GN["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!A&&!(N&&c())||!!n&&(b==null?void 0:b())===0},GN))},_.g(_.v,{cond:function(){return A&&!N&&(b==null?void 0:b())===1},
then:function(){return _.g(k1r,{contentAlignment:R,LeadingActionHeader:C,TrailingActionHeader:h,Title:A,isAboveAsset:!1})}}),u?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.g(u,null))):null,_.g(_.v,{cond:z,
then:function(){return f?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.g(f,null)):null}}),I||iG?_.g(d7$,{footerClasses:_.DV((Ms["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Ms["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Ms["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(Q==null?void 0:Q())===2},Ms["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(Q==null?void 0:Q())===1},Ms)),
PrimaryButton:I,SecondaryButton:iG}):null))},"Wj"),k1r=_.w(function(l){var D=_.sl(l,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),U=D.contentAlignment,n=D.LeadingActionHeader;l=D.Title;var y=D.TrailingActionHeader,A=D.isAboveAsset,C=D.enableLeadingActionHeader;D={};return _.g("div",{class:_.DV((D["yt-spec-dialog-layout__dialog-header-container"]=!0,D["yt-spec-dialog-layout__dialog-header"]=!0,D["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=A,D["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(U==null?void 0:U())===1&&C()},D))},_.g(_.v,{cond:function(){return C()},
then:function(){return n?_.g("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.g(n,null)):null}}),l?_.g("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.g(l,null)):null,y?_.g("div",null,_.g(y,null)):null)},"Xj"),d7$=_.w(function(l){var D=l.footerClasses;
var U=l.PrimaryButton;l=l.SecondaryButton;return _.g("div",{class:D},l?_.g(l,null):null,U?_.g(U,null):null)},"Yj");var chr=_.w(function(l){var D=l.data;return _.g("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.g("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.g(_.uI,{data:function(){return D().avatar}},{avatarViewModel:_.iX})),_.g("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.g(_.BO,{text:function(){return D().title}})),_.g(_.BO,{text:function(){return D().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Zj");var pV8=_.w(function(l){return _.g("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.g(_.BO,{text:function(){return l.data().inviteMessage}})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.g(_.BO,{text:function(){return l.data().attributedAccountSectionHeaderText}})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.g(_.uI,{data:function(){return l.data().accountAvatar}},{avatarViewModel:_.iX}),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.g(_.BO,{text:function(){return l.data().accountName}}),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.g(_.BO,{text:function(){return l.data().handle}}))),_.g(_.uI,{data:function(){return l.data().trailingButton}},{buttonViewModel:_.t9})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.g(_.BO,{text:function(){return l.data().termsOfService}})))},"$j");var x7P=_.w(function(l){var D=l.data;return _.g("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.g("div",{class:"ytAccessConfirmationViewModelContent"},_.g(_.uI,{data:function(){var U;return(U=D().avatar)!=null?U:D().dualAvatar}},{dualAvatarViewModel:function(U){return _.g(_.Pw$,{data:U.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(U){return _.g(_.lX,{data:U.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.g("h2",{class:"ytAccessConfirmationViewModelTitle"},_.g(_.BO,{text:function(){return D().title}})),_.g(_.BO,{text:function(){return D().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"ak");var jh8=_.w(function(l){var D=l.data;var U=void 0;l=_.B(_.WK(function(){var u;return((u=_.M(D().content,_.CJ))==null?void 0:u.defaultSelectedKey)||""}));
var n=l.next().value,y=l.next().value,A,C=function(){y("");var u;(u=U)!=null&&u.store.dispatch(_.V0({type:"RESET_COMMAND_MAP"}))};
_.N1(function(){U=new m7$;window.addEventListener("yt-popup-closed",C)});
_.$i(function(){if(U&&A!==D().formId&&(U.onInit(D()),(A=D().formId)&&n())){var u=U,Q={key:n()};Q.command&&u.store.dispatch(B7T(A,Q.command))}},"c2n8Gf");
_.NV(function(){window.removeEventListener("yt-popup-closed",C)});
var h=function(u,Q,G){Q.key&&G&&Q.key!==n()&&(y(Q.key),U&&Q.command&&U.store.dispatch(B7T(G,Q.command)))},b=function(){if(_.M(D().content,_.CJ))return!(n==null?0:n())};
return _.g("yt-dialog-view-model",{class:_.DV("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.g(KVq,{Header:function(){return _.g(_.uI,{data:function(){return D().header}},{dialogHeaderViewModel:function(u){return _.g(txq,{data:u.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!D().header},
Content:function(){return _.g(_.uI,{data:function(){return D().customContent?D().customContent:D().content}},{basicContentViewModel:_.Pez,
createPlaylistDialogFormViewModel:JhH,collaborativePlaylistInviteMessageViewModel:pV8,miniAppScoreChallengeViewModel:ewP,radioButtonGroupViewModel:function(u){var Q=u.data;return _.g(_.xl8,{data:Q,selectedKey:n,onSelected:h,groupName:function(){return Q().formId}})},
selectionListItemFormViewModel:aCq,upsellViewModel:function(u){return _.g(ZJw,{data:u.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:chr,installmentAgreementsViewModel:G1J,accessConfirmationViewModel:x7P,listViewModel:function(u){return _.g(_.Sxr,{data:u.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:Sev})},
Footer:function(){return _.g(_.uI,{data:function(){return D().footer}},{panelFooterViewModel:function(u){return _.g(_.w1,{data:u.data,
disablePadding:!0,disablePrimaryButton:b})},
formPanelFooterViewModel:XVv,formFooterViewModel:function(u){return _.g(_.Z7W,{data:u.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!D().footer}}))},"ck");
jh8.idomCompat=!0;_.Tt(jh8,"yt-dialog-view-model",{props:{data:_.C$},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var FVW=_.w(function(l){var D=l.data;return _.g("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.g(_.v,{cond:function(){return D().title},
then:function(U){return _.g("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.g(_.BO,{text:U,className:"ytPanelHeaderViewModelTitle"}))}}),_.g(_.v,{cond:function(){return D().subtitle},
then:function(U){return _.g(_.BO,{text:U,className:"ytPanelHeaderViewModelSubtitle"})}}))},"dk"),orH=_.w(function(l){var D=l.data;
var U=_.zDo(function(){return D().rendererContext});
l={};return _.g("yt-panel-header-view-model",{class:_.DV("ytPanelHeaderViewModelHost",(l.ytPanelHeaderViewModelHostHideDivider=function(){return!!D().shouldHideDivider},l.ytPanelHeaderViewModelHostCompact=function(){return!!D().subtitle},l)),
"aria-label":function(){var n;return(n=U())==null?void 0:n.label}},_.g(_.v,{cond:function(){return _.mr(D().rendererContext)},
then:function(){return _.g(_.bNh,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.eq(D().rendererContext)}},_.g(FVW,{data:D}))},
else:function(){return _.g(FVW,{data:D})}}),_.g("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.g(_.uI,{data:function(){return D().trailingButtons}},{buttonViewModel:function(n){return _.g(_.t9,{data:n.data,
className:"ytPanelHeaderViewModelButton"})}})))},"ek");
orH.idomCompat=!0;var wV2=_.w(function(l){var D=_.n0(function(A){var C;if((C=l.skipContentClick)==null?0:C.call(l))return!1;l.onContentWrapperClick(A);return!0}),U,n,y;
return _.g("div",{class:_.DV("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return l.isAnimating()?"transform: translateY("+l.currentY()+"px);transition: 0.2s":""}},(U=l.header)==null?void 0:U.call(l),_.g("div",{id:l.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.BK({"max-height":(0,_.yO)(l.maxHeightForContentWrapper)}),"on:scroll":_.n0(function(A){return l.onScroll(A),!1}),
"on:touchmove":_.n0(function(A){return A.stopPropagation(),!1})},_.g("div",{el:_.fe(l.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":D},(n=l.body)==null?void 0:n.call(l))),(y=l.footer)==null?void 0:y.call(l))},"fk");
wV2.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var rh8=_.w(function(l){var D=_.NQ(l.leadingLabel),U=_.NQ(l.trailingLabel),n=_.NQ(l.footerButtonType),y=function(){return D()||U()||l.hasPrimaryButton()||l.hasSecondaryButton()},A={},C=_.DV("yt-spec-bottom-sheet-layout__primary-button",(A["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return n()===0&&l.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return n()===1&&l.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return n()===2&&l.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return n()===3&&l.hasPrimaryButton()},A));
A={};var h=_.DV("yt-spec-bottom-sheet-layout__secondary-button",(A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return n()===1&&l.hasSecondaryButton()},A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return n()===2&&l.hasSecondaryButton()},A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return n()===3&&l.hasPrimaryButton()},A));
return _.g(_.v,{cond:l.hasFooterOverride,then:function(){var b;return _.g(_.GZ,null,(b=l.footerOverride)==null?void 0:b.call(l))},
else:function(){return _.g(_.v,{cond:y,then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.g(_.v,{cond:function(){return D()||U()},
then:function(){var b={};return _.g("div",{class:_.DV("yt-spec-bottom-sheet-layout__footer-label-wrapper",(b["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!l.hasPrimaryButton()},b))},_.g(_.v,{cond:D,
then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},D)}}),_.g(_.v,{cond:U,
then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},U)}}))}}),_.g(_.v,{cond:function(){return l.hasPrimaryButton()||l.hasSecondaryButton()},
then:function(){var b={};return _.g("div",{class:_.DV("yt-spec-bottom-sheet-layout__footer-button-wrapper",(b["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.WNh,b))},_.g(_.v,{cond:function(){return l.hasSecondaryButton()&&n()!==0},
then:function(){var u;return _.g("div",{class:h},(u=l.secondaryButton)==null?void 0:u.call(l))}}),_.g(_.v,{cond:l.hasPrimaryButton,
then:function(){var u;return _.g("div",{class:C},(u=l.primaryButton)==null?void 0:u.call(l))}}))}}))}})}})},"gk");
rh8.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var zw8=_.w(function(l){var D=_.NQ(l.title),U=_.NQ(l.subtitle);return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:l.headerId,"on:touchstart":_.n0(function(n){var y;(y=l.touchstart)==null||y.call(l,n);return!1}),
"on:touchmove":_.n0(function(n){var y;(y=l.touchmove)==null||y.call(l,n);return!1}),
"on:touchend":_.n0(function(n){var y;(y=l.touchend)==null||y.call(l,n);return!1})},_.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.g(_.v,{cond:l.hasHeaderOverride,
then:function(){var n;return _.g(_.GZ,null,(n=l.headerOverride)==null?void 0:n.call(l))},
else:function(){var n={};return _.g("div",{class:_.DV((n["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,n["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=D,n))},_.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.g(_.v,{cond:D,then:function(){return _.g(_.GZ,null,_.g("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},D),_.g(_.v,{cond:U,then:function(){return _.g("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
U)}}))}})),_.g(_.v,{cond:function(){return D()&&l.hasActionHeader()},
then:function(){var y;return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(y=l.actionHeader)==null?void 0:y.call(l))}}))}}))},"hk");
zw8.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.w(function(l){function D(CC){if(!N&&typeof MutationObserver!=="undefined"){var vo={childList:!0};"MutationObserver"in window&&(N=new MutationObserver(U.bind(void 0,CC)),N.observe(CC,vo))}}
function U(CC){typeof N!=="undefined"&&(z["content-wrapper"]===void 0&&(z["content-wrapper"]=CC.children[0].clientHeight),a(z["content-wrapper"]),R()>S()||d(R()))}
function n(){L(window.innerHeight);R()>S()||d(R());f.isFullScreen[0]()&&R()>S()?I().dispatch("Snap To Full Screen",{maxHeight:c()}):I().dispatch("Snap To Neutral Position",{maxHeight:S()})}
function y(CC){document.body.style.overscrollBehavior="none";CC.preventDefault();I().dispatch("Touch Start",{event:CC})}
function A(CC){CC.preventDefault();I().dispatch("Touch Move",{event:CC,contentScrollable:R()>S(),fullContentWrapperHeight:c(),contentWrapperHeight:S(),heightMap:z,contentWrapperId:"content-wrapper",header:qFw(l),footer:qFw(l),headerDivHeight:z["bottom-sheet-header"],footerDivHeight:z["bottom-sheet-footer"]})}
function C(){document.body.style.overscrollBehavior="";f.isFullScreen[0]()?f.currentY[0]()>=60?I().dispatch("Snap To Neutral Position",{maxHeight:S()}):I().dispatch("Snap To Full Screen",{maxHeight:c()}):f.currentY[0]()>=60?h():f.currentY[0]()<=-60&&R()>S()?I().dispatch("Snap To Full Screen",{maxHeight:c()}):I().dispatch("Snap To Neutral Position",{maxHeight:S()})}
function h(){I().dispatch("Close Sheet",{clientHeight:J(),maxHeight:0});setTimeout(function(){Lb5()},250)}
var b=_.bP("div"),u=_.bP("div"),Q=_.B(_.aw(window.innerHeight,void 0,"CmOsU")),G=Q.next().value;Q=Q.next().value;var J=G,L=Q;Q=_.B(_.aw(0,void 0,"p0Flhb"));G=Q.next().value;Q=Q.next().value;var R=G,a=Q;Q=_.B(_.WK(function(){var CC=qFw(l);return.6*J()-QR8(CC)-G5J(CC)}));
G=Q.next().value;Q=Q.next().value;var S=G,d=Q,c=function(){var CC=qFw(l),vo=J(),td=z["bottom-sheet-header"],GN=z["bottom-sheet-footer"];return vo-(CC.hasHeaderFn&&td!==void 0?td:QR8(CC))-(CC.hasFooterFn&&GN!==void 0?GN:G5J(CC))-24-24},N=null,z={},f={initialY:_.aw(0,void 0,"sxdESd"),
currentY:_.aw(0,void 0,"GZzqeb"),isAnimating:_.aw(!1,void 0,"vJBupc"),isFullScreen:_.aw(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.WK(S)},I=function(){var CC=null;return function(){if(!CC){var vo={initialY:f.initialY[0](),currentY:f.currentY[0](),isAnimating:f.isAnimating[0](),isFullScreen:f.isFullScreen[0](),maxHeightForContentWrapper:f.maxHeightForContentWrapper[0]()};CC=Jz$(vo)}return CC}}();
_.N1(function(){window.addEventListener("resize",n);I().subscribe(function(CC){f.initialY[1](CC.initialY);f.currentY[1](CC.currentY);f.isAnimating[1](CC.isAnimating);f.isFullScreen[1](CC.isFullScreen);f.maxHeightForContentWrapper[1](CC.maxHeightForContentWrapper)});
requestAnimationFrame(function(){b.value&&(z["bottom-sheet-header"]=b.value.clientHeight);u.value&&(z["bottom-sheet-footer"]=u.value.clientHeight)})});
_.NV(function(){window.removeEventListener("resize",n);N&&(N.disconnect(),N=null)});
var iG=_.DV({"bottom-sheet-content-without-icon":function(){var CC;return!((CC=l.shouldShowIcons)==null?0:CC.call(l))}});
return _.g("bottom-sheet-layout",null,_.g(wV2,{contentWrapperId:"content-wrapper",isAnimating:function(){return f.isAnimating[0]()},
currentY:function(){return f.currentY[0]()},
maxHeightForContentWrapper:function(){return f.maxHeightForContentWrapper[0]()},
shouldShowIcons:l.shouldShowIcons,skipContentClick:l.skipContentClick,onScroll:function(){var CC=document.getElementById("bottom-sheet-header"),vo=document.getElementById("content-wrapper");if(CC&&vo){var td={};td=(td["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,td["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,td);CC.className=vo.scrollTop>1?_.MJ(td):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Lb5,contentWrapperEl:function(CC){D(CC);requestAnimationFrame(function(){U(CC)})},
header:function(){return _.g("div",{el:b},_.g(zw8,{touchstart:y,touchmove:A,touchend:C,title:l.headerTitle,subtitle:l.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:l.headerFn,hasHeaderOverride:l.hasHeaderFn,actionHeader:l.headerActionHeader,hasActionHeader:l.hasHeaderActionHeader}))},
footer:function(){return _.g("div",{el:u},_.g(rh8,{footerButtonType:l.footerButtonType,leadingLabel:l.footerLeadingLabel,trailingLabel:l.footerTrailingLabel,primaryButton:l.footerPrimaryButton,hasPrimaryButton:l.hasFooterPrimaryButton,secondaryButton:l.footerSecondaryButton,hasSecondaryButton:l.hasFooterSecondaryButton,footerOverride:l.footerFn,hasFooterOverride:l.hasFooterFn}))},
body:function(){return _.g(_.v,{cond:l.hasContentFn,then:function(){var CC;return _.g("div",{class:iG},(CC=l.contentFn)==null?void 0:CC.call(l))}})}}))},"ik").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var fC5=_.w(function(l){var D=_.Jc().resolve(_.H0);return _.g("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.n0(function(){return void D.closeSheet()})},_.g(_.v,{cond:function(){return!!l.header},
then:function(){return _.g("div",{class:"ytContextualSheetLayoutHeaderContainer"},l.header())}}),_.g(_.v,{cond:function(){return!!l.content},
then:function(){return _.g("div",{class:"ytContextualSheetLayoutContentContainer"},l.content())}}),_.g(_.v,{cond:function(){return!!l.footer},
then:function(){return _.g("div",{class:"ytContextualSheetLayoutFooterContainer"},l.footer())}}))},"jk");
fC5.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var $7w=_.w(function(l){var D=l.data;var U=_.Jc().resolve(_.qK),n=_.bP("yt-sheet-view-model",function(y){if(_.q("web_focus_first_element_sheet")||!_.q("sheet_focus_first_killswitch"))return y.addEventListener("focus",function(){iew(y)}),function(){y.removeEventListener("focus",function(){iew(y)})}});
l={};return _.g("yt-sheet-view-model",{"on:mousedown":_.n0(function(y){_.q("sheet_focus_first_killswitch")||y.currentTarget!==y.target&&y.preventDefault()}),
"on:focus":_.n0(function(){_.q("sheet_focus_first_killswitch")||iew(n.value)}),
"on:mouseleave":_.n0(function(){var y,A=D==null?void 0:(y=D())==null?void 0:y.rendererContext,C;(y=(C=_.M(A,_.ti))==null?void 0:C.onHoverEnd)&&U.resolveCommand(y)}),
class:_.DV("ytSheetViewModelHost",(l.ytSheetViewModelContextual=!0,l.ytSheetViewModelDisableBackdropFilter=_.q("web_disable_backdrop_filter"),l)),el:n,tabindex:-1},_.g(_.v,{cond:D,then:function(y){return _.g(fC5,{header:function(){return _.g(_.uI,{data:function(){return y().header}},{panelHeaderViewModel:orH})},
content:function(){return _.g(_.uI,{data:function(){return y().content}},{listViewModel:function(A){return _.g(_.Sxr,{data:A.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:ZJw,miniAppScoreChallengeViewModel:ewP})},
footer:function(){return _.g(_.uI,{data:function(){return y().footer}},{panelFooterViewModel:_.w1})}})}}))},"kk");
$7w.idomCompat=!0;_.Tt($7w,"yt-sheet-view-model",{props:{data:_.C$}});var sh2=_.w(function(l){var D=function(){var U;return(U=l.data().enableDebuggingFeatures)!=null?U:!1};
return _.g("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.g(_.wt,{each:function(){var U;return(U=l.data().stickers)!=null?U:[]}},function(U){return _.g(N1T,{data:function(){return U},
debugMode:D})}))},"lk"),N1T=_.w(function(l){var D=_.sl(l,{debugMode:!1}).debugMode,U=_.NQ(function(){var b;
return(b=l.data().region)==null?void 0:b.w},0),n=_.NQ(function(){var b;
return(b=l.data().region)==null?void 0:b.h},0),y=_.NQ(function(){var b;
return(b=l.data().region)==null?void 0:b.x},0),A=_.NQ(function(){var b;
return(b=l.data().region)==null?void 0:b.y},0),C=_.n0(function(){var b=l.data().onTap;
b&&_.dh(b)}),h={};
return _.g("div",{class:_.DV("ytStoriesStickerLayerViewModelSticker",(h.ytStoriesStickerLayerViewModelDebugMode=D,h)),style:_.BK({width:function(){return 100*U()+"%"},
height:function(){return 100*n()+"%"},
left:function(){return 100*y()+"%"},
top:function(){return 100*A()+"%"},
"flex-direction":function(){return M85(l.data().flexDirection)},
"justify-content":function(){return RLP(l.data().justifyContent)},
"align-items":function(){return ZTW(l.data().alignItems)}}),
"on:click":C},_.g(_.uI,{data:function(){return l.data().button||l.data().toggleButton}},{buttonViewModel:function(b){return _.g(_.t9,{data:b.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(b){return _.g(_.s0,{data:b.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"mk");var T12=_.w(function(l){var D=function(){return l.data()},U={},n=_.B(_.aw(!1,void 0,"SegA3d")),y=n.next().value,A=n.next().value,C=_.NQ(function(){return D().backgroundColor},0);
n=_.NQ(function(){return D().actionButtons},[]);
var h=_.NQ(function(){return D().stickerLayer},{}),b=function(){var Q,G;
return{animationRef:U,animationConfig:{autoplay:!1,loop:!1,path:(G=(Q=D().foregroundAnimation)==null?void 0:Q.url)!=null?G:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){A(!0)},
complete:function(){l.navigateToNextItemOnLottieComplete()}}}},u=function(){var Q,G,J,L,R,a,S,d;
return{animationConfig:{autoplay:(a=(Q=D().backgroundAnimation)==null?void 0:(G=Q.settings)==null?void 0:G.autoplay)!=null?a:!1,loop:(S=(J=D().backgroundAnimation)==null?void 0:(L=J.settings)==null?void 0:L.loop)!=null?S:!1,path:(d=(R=D().backgroundAnimation)==null?void 0:R.url)!=null?d:"",name:"stories_item_background_animation"}}};
_.$i(function(){if(l.isVisible()&&y()){var Q;(Q=U.lottieEl)==null||Q.play();l.animationRef()&&(l.animationRef().lottieEl=U.lottieEl)}else{var G;(G=U.lottieEl)==null||G.stop()}},"MxM2wb");
return _.g("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.BK({"background-color":function(){return _.tu(C())+";"}})},_.g("div",{class:"ytStoriesItemViewModelAssetContent"},_.g(_.v,{cond:function(){return!!D().backgroundAnimation},
then:function(){return _.g(_.cO,{data:u,animationName:function(){return u().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.g(_.v,{cond:function(){return!!D().backgroundImage},
then:function(){return _.g(_.rh,{data:function(){return D().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.g(_.v,{cond:function(){return!!D().foregroundAnimation},
then:function(){return _.g(_.cO,{data:b,animationName:function(){return b().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.g(_.v,{cond:function(){return!!D().foregroundImage},
then:function(){return _.g(_.rh,{data:function(){return D().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.g("div",{class:"ytStoriesItemViewModelTopShadow"}),_.g(_.uI,{data:function(){return h()}},{storiesStickerLayerViewModel:sh2})),_.g("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.BK({"background-color":function(){return _.tu(C())}})},_.g("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.g(_.wt,{each:n},function(Q){return _.g(Err,{data:function(){return Q},
pauseAutoNavigation:l.pauseAutoNavigation})}))))},"ok"),ICJ={style:"overlay",
type:"outline"},Err=_.w(function(l){var D={};return _.g("div",{class:_.DV("ytStoriesItemViewModelActionButton",(D.ytStoriesItemViewModelStretchedActionButton=function(){return l.data().size==="STORIES_BUTTON_SIZE_STRETCH"},D)),
"on:click":_.n0(l.pauseAutoNavigation)},_.g(_.uI,{data:function(){return l.data().button}},{buttonViewModel:function(U){return _.g(_.t9,{data:U.data,
buttonOverrides:ICJ})}}))},"pk");var HJ2={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.Tt(_.w(function(l){var D=function(){var GN;return(GN=l.data().startIndex)!=null?GN:0},U=_.B(_.WK(D)),n=U.next().value,y=U.next().value;
U=_.B(_.aw(!1,void 0,"sjy7s"));var A=U.next().value,C=U.next().value,h=function(){var GN;return(GN=l.data().storyItems)!=null?GN:[]},b={},u=_.bP("yt-stories-viewer-view-model"),Q=function(){return l.data().dismissButton},G=function(){var GN;
return _.te((GN=_.M(Q(),_.CM))==null?void 0:GN.onTap)},J=_.bP("div"),L,R,a=!1,S=function(){var GN;
(GN=L)==null||GN.cancel();L=d(n()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});L.onfinish=function(){var Ms=_.M(h()[n()],IF5),j3,wl;Ms!=null&&Ms.foregroundAnimation&&((Ms==null?0:(j3=Ms.foregroundAnimation)==null?0:j3.url)||(Ms==null?0:(wl=Ms.foregroundAnimation)==null?0:wl.payload))||(n()!==h().length-1?(y(n()+1),S()):G()&&_.Xk(G()))}},d=function(GN){return J.value.children[GN].children[0]},c=function(){for(var GN=0;GN<n();GN++)d(GN).style.transform=
"scaleX(1)"},N=function(){a||(A()?C(!1):(n()===h().length-1&&G()&&_.Xk(G()),d(n()).style.transform="scaleX(1)",n()!==h().length-1&&(y(n()+1),S())))},z=function(){a||(A()?C(!1):(d(n()).style.transform="scaleX(0)",n()!==0&&y(n()-1),S()))},f=function(){C(!0)},I=function(){d(n()).style.transform="scaleX(1)";
n()!==h().length-1?(y(n()+1),S()):G()&&_.Xk(G())};
U=function(){a=!1;R=setTimeout(function(){C(!0);a=!0},300)};
var iG=function(){clearTimeout(R);a&&A()&&C(!1)};
_.$i(function(){if(A()){var GN;(GN=L)==null||GN.pause();var Ms;(Ms=b.lottieEl)==null||Ms.pause()}else{var j3;(j3=L)==null||j3.play();var wl;(wl=b.lottieEl)==null||wl.play()}},"vAvZob");
_.$i(function(){c();n()===D()&&S()},"uSlfE");
var CC=function(GN){GN.key==="ArrowLeft"?z():GN.key==="ArrowRight"&&N()},vo=function(GN){if(GN.target===u.value){(GN=G())&&_.Xk(GN);
clearTimeout(R);var Ms;(Ms=L)==null||Ms.cancel();window.removeEventListener("keydown",CC);window.removeEventListener("yt-popup-closed",vo)}},td=function(GN){GN.target===u.value&&(window.addEventListener("keydown",CC),window.addEventListener("yt-popup-closed",vo))};
_.N1(function(){c();S();window.addEventListener("yt-popup-opened",td)});
return _.g("yt-stories-viewer-view-model",{el:u,class:_.DV("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.g("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.g("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.n0(z),"on:mousedown":_.n0(U),"on:mouseup":_.n0(iG),"on:mouseleave":_.n0(iG)}),_.g("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.n0(N),"on:mousedown":_.n0(U),"on:mouseup":_.n0(iG),"on:mouseleave":_.n0(iG)})),
_.g("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.g(_.uI,{data:h},{storiesItemViewModel:function(GN,Ms){var j3=GN.data;return _.g(_.v,{cond:function(){return Math.abs(Ms()-n())<=1},
then:function(){var wl={};return _.g("div",{class:_.DV("ytStoriesViewerViewModelStoryItem",(wl.ytStoriesViewerViewModelActiveStoryItem=function(){return Ms()===n()},wl))},_.g(T12,{data:j3,
pauseAutoNavigation:f,navigateToNextItemOnLottieComplete:I,isVisible:function(){return Ms()===n()},
animationRef:b}))}})}})),_.g("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:J},_.g(_.wt,{each:h},function(){return _.g("div",{class:"ytStoriesViewerViewModelProgressBar"},_.g("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.g("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.g(_.rh,{data:HJ2,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.g("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.g(_.uI,{data:function(){return l.data().muteButton}},{toggleButtonViewModel:function(GN){return _.g(_.s0,{data:GN.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.g(_.uI,{data:Q},{buttonViewModel:function(GN){return _.g(_.t9,{data:GN.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"sk"),"yt-stories-viewer-view-model",{props:{data:_.C$}});_.Tt(_.w(function(l){var D=l.data;var U=_.bP("yt-gen-ai-feedback-form-view-model"),n=[];return _.g("yt-gen-ai-feedback-form-view-model",{el:U,class:"ytGenAiFeedbackFormViewModelHost"},_.g(_.BO,{text:function(){return D().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.g("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.g(_.uI,{data:function(){return D().feedbackChips}},{toggleButtonViewModel:function(y){var A=y.data;
return _.g(_.s0,{data:A,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(C){var h=A();h=_.M(h,_.Pq);h=_.M(h==null?void 0:h.defaultButtonViewModel,_.CM).trackingParams;C?n.push(h):(C=n.indexOf(h),C>-1&&n.splice(C,1))}})}})),_.g(_.BO,{text:function(){return D().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.g("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.g(_.uI,{data:function(){return D().submitButton}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){eLJ(U.value,n,D().uniqueId)}})}}),_.g(_.uI,{data:function(){return D().moreFeedbackButton}},{buttonViewModel:function(y){return _.g(_.t9,{data:y.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"tk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.C$},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var dY=function(){return _.p.apply(this,arguments)||this};
_.Z(dY,_.p);dY.prototype.created=function(){BIq(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(VJw);var l=_.Jc().resolve(_.tNq);l&&(l.container=this.ytPopupContainerBehavior);if(l=_.Jc().resolve(_.H0))l.container=this.ytPopupContainerBehavior;if(l=_.Jc().resolve(_.YO)){var D=this.ytPopupContainerBehavior;l.containerWasInjected?_.II(Error("qj")):l.container=D}};
dY.prototype.ensurePopupBelowPlayer=function(l,D){var U=_.Jc().resolve(_.G8(_.sm));if(!U||!U.isOnWatch()||!_.T4())return!1;U=U.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.uV().height>U+this.getPopupHeight(l,D)?(l.style.top="auto",l.style.bottom="0px"):(l.style.top=U+"px",l.style.bottom="auto");return!0};
dY.prototype.getPopupHeight=function(l,D){D&&(l.cachedPopupHeight=0);if(!l.cachedPopupHeight){D=0;var U=l.clientHeight,n=window.getComputedStyle(l);D+=parseInt(n.marginTop,10);D+=parseInt(n.marginBottom,10);l.cachedPopupHeight=U+D}return l.cachedPopupHeight};
dY.prototype.getElement=function(l){return document.createElement(l)};
_.E([_.m(cpP.YtPopupContainerBehavior),_.T("design:type",Object)],dY.prototype,"ytPopupContainerBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],dY.prototype,"ytComponentBehavior",void 0);_.E([_.x({disableElementRegistration:!0,is:"ytd-popup-container"})],dY);
_.r(dY,"ytd-popup-container",function(){if(eaW!==void 0)return eaW;var l=document.createElement("template");_.e(l,"\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");l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);return eaW=l},{mode:1});var Yer;var OJ8={};OJ8.YtLogYpcFlowCommandsBehavior=[_.K$.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(l){_.M(l,gn2)&&(l=_.M(l,gn2))&&(l.serializedTransactionFlowLoggingParams?_.qDB(l.serializedTransactionFlowLoggingParams):l.serializedYpcCancelFlowLoggingParams?(l=l.serializedYpcCancelFlowLoggingParams)&&_.ww("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",l):l.serializedYpcResumeFlowLoggingParams?(l=l.serializedYpcResumeFlowLoggingParams)&&_.ww("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",l):l.serializedYpcPauseFlowLoggingParams?(l=l.serializedYpcPauseFlowLoggingParams)&&
_.ww("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",l):l.serializedYpcRefundFlowLoggingParams?(l=l.serializedYpcRefundFlowLoggingParams)&&k48("YPC_EVENT_TYPE_START",l):l.serializedYpcDeactivateFlowLoggingParams?(l=l.serializedYpcDeactivateFlowLoggingParams)&&_.ww("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",l):l.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(l=l.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.ww("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",l))},
handleLogYpcFlowDismiss_:function(l){_.M(l,bxJ)&&(l=_.M(l,bxJ),l.serializedTransactionFlowLoggingParams?_.Mu_(l.serializedTransactionFlowLoggingParams):l.serializedYpcCancelFlowLoggingParams?(l=l.serializedYpcCancelFlowLoggingParams)&&_.ww("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",l):l.serializedYpcResumeFlowLoggingParams?(l=l.serializedYpcResumeFlowLoggingParams)&&_.ww("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",l):l.serializedYpcPauseFlowLoggingParams?(l=
l.serializedYpcPauseFlowLoggingParams)&&_.ww("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",l):l.serializedYpcRefundFlowLoggingParams&&(l=l.serializedYpcRefundFlowLoggingParams)&&k48("YPC_EVENT_TYPE_CANCEL",l))}}];var VxT={};VxT.YtCancelRecurrenceBehavior=[_.la.YtComponentBehavior,_.UX5,{attached:function(){var l=this;s8H(this,function(D,U){return l.ypcCancelRecurrenceHandler(D,U)})},
ypcCancelRecurrenceHandler:function(l,D){var U=this;if(!D||!D.ypcCancelRecurrenceEndpoint)return!1;if(!D.ypcCancelRecurrenceEndpoint.params)return _.ll(Error("Sl")),!0;_.K4(this.hostElement);var n=_.jZ.instance,y=_.Jc().resolve(_.G8(_.GI));n&&_.FE(n,D)?_.oL(n,D).then(function(A){U.ypcCancelRecurrenceSuccess_(l,D,{data:A})},function(A){U.ypcCancelRecurrenceFailure_(l,D,A)}).thenCatch(function(){_.ll(Error("Tl"))}):y?y.requestDataForServiceEndpoint(D).then(function(A){U.ypcCancelRecurrenceSuccess_(l,
D,A)},function(A){U.ypcCancelRecurrenceFailure_(l,D,A)}).thenCatch(function(){_.ll(Error("Tl"))}):_.ll(Error("Ul"));
return!0},
ypcCancelRecurrenceSuccess_:function(l,D,U){_.cF(this.hostElement);U.data||(U={data:U});U.data&&U.data.actions&&_.DP(this.hostElement,U.data.actions,this.hostElement);U.data.messageRenderer?K85(D.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(D=D.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.ww("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",D);_.O9(l,"yt-service-request-completed",U)},
ypcCancelRecurrenceFailure_:function(l,D,U){_.cF(this.hostElement);K85(D.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.O9(l,"yt-service-request-error",{error:U,params:[l,D]})}}];var iZ$=function(l,D){_.D9.call(this,D)};
_.Z(iZ$,RVJ);var lbJ={};lbJ.YtCompleteTransactionBehavior=[_.la.YtComponentBehavior,_.UX5,{attached:function(){var l=this;s8H(this,function(D,U){return l.ypcCompleteTransactionHandler(D,U)})},
completeTransaction:function(l,D){var U=this;D={payments_payload:window.btoa(D.integratorData),buybucket_params:l.data.buybucketParams,offer_params:l.data.offerParams};var n=_.Jc().resolve(_.GI),y=l.data.completeTransactionEndpoint,A=this.get("ypcCompleteTransactionEndpoint.actions",y);A&&_.DP(this.hostElement,A,this.hostElement);return(A=_.jZ.instance)&&_.FE(A,y)?_.oL(A,y,D).then(function(C){return!C||(C==null?0:C.error)?(C=U.get("data.serializedTransactionFlowLoggingParams",l),_.Le(new gz("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
C))):{data:C}}).then(function(C){return U.handleCompleteTransactionSuccess_(C,l)},function(){return U.handleCompleteTransactionFailure_(l)}):n.requestDataForServiceEndpoint(y,D).then(function(C){return U.handleCompleteTransactionSuccess_(C,l)},function(){return U.handleCompleteTransactionFailure_(l)})},
handleCompleteTransactionSuccess_:function(l,D){l.data||(l={data:l});if(l.data.messageRenderer)return _.Le(new iZ$(l.data.messageRenderer));if(l.data.trackingParams){var U=_.t6(),n=_.aS();U&&n&&_.jz(U,n,_.v9(l.data.trackingParams))}D=this.get("data.serializedTransactionFlowLoggingParams",D);dh2(D);return _.Ut(l)},
handleCompleteTransactionFailure_:function(l){l=this.get("data.serializedTransactionFlowLoggingParams",l);_.rX("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",l);return _.Le(new gz("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",l))},
ypcCompleteTransactionHandler:function(l,D){var U=this;if(!D.ypcCompleteTransactionEndpoint)return!1;if(!D.ypcCompleteTransactionEndpoint.transactionParams)return _.ll(Error("Vl")),!0;D.ypcCompleteTransactionEndpoint&&D.ypcCompleteTransactionEndpoint.gtmData&&_.$p(D.ypcCompleteTransactionEndpoint.gtmData);var n=_.Jc().resolve(_.G8(_.GI));if(n){_.K4(this.hostElement);var y=_.jZ.instance;y&&_.FE(y,D)?_.oL(y,D).then(function(A){return!A||(A==null?0:A.error)?(A=U.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
D),_.Le(new gz("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A))):{data:A}}).then(function(A){_.O9(l,"yt-service-request-completed");
U.ypcCompleteTransactionSuccess_(D,A)},function(){return U.ypcCompleteTransactionFailure_(D)}):n.requestDataForServiceEndpoint(D).then(function(A){_.O9(l,"yt-service-request-completed");
U.ypcCompleteTransactionSuccess_(D,A)},function(){return U.ypcCompleteTransactionFailure_(D)})}return!0},
ypcCompleteTransactionSuccess_:function(l,D){_.cF(this.hostElement);D.data||(D={data:D});_.Vh(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);D.data.messageRenderer||D.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(l):(_.$p('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",l));D.data.actions&&(l=u9W(D.data.actions),D=vz$(D.data.actions),l.length&&_.lu(this.hostElement,
l),D.length&&_.DP(this.hostElement,D,this.hostElement))},
ypcCompleteTransactionFailure_:function(l){_.cF(this.hostElement);_.Vh(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",l,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(l,D,U){if(D=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",D))D={serializedTransactionFlowLoggingParams:D},U&&(D.errorType=U),_.Na(l,D),_.sU()}}];var D6$={};D6$.YtEndpointHandlerWithYpcBehavior=[_.UX5,_.K$.YtActionHandlerBehavior,[{openWalletDialog:function(l,D,U,n,y,A,C){var h=this,b=_.wf();D=D.replace(/-/g,"+").replace(/_/g,"/");var u=_.bu().get("hl");_.zbl(_.sr(_.fU),D,b.resolve,y,function(Q){A&&A();b.reject(Q)},u,function(Q){return h.onServerBackendAnalyticEvent_(l,U,Q)},this.onDialogClose_.bind(this),n,C);
return b.promise},
openFixFlowDialog:function(l,D,U,n){l=l.replace(/-/g,"+").replace(/_/g,"/");_.sr(_.fU).openFixFlowDialog(l,D,U,n)},
onDialogClose_:function(){_.Vh(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(l,D,U){_.O9(l,"yt-commerce-action-init-done");D&&_.lu(this.hostElement,[D,{backend_analytics:U}])}}],
_.kk.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(l,D){l=this.get("data.nativeFlowEndpoint",D);D=this.get("data.fallbackEndpoint",D);l?_.lu(this.hostElement,[l]):D&&_.O9(this.hostElement,"yt-navigate",{endpoint:D})}}],
VxT.YtCancelRecurrenceBehavior,lbJ.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 l=this;s8H(this,function(D,U,n){return l.handleYPCEndpoint(D,U,n)});
this.ypcRegisterActionMapJobId_=_.oI(_.Tn,function(){l.registerActionMap(l.buyFlowActionMap_)})},
detached:function(){var l=this;_.Tn.cancelJob(this.ypcRegisterActionMapJobId_);_.oI(_.Tn,function(){l.unregisterActionMap(l.buyFlowActionMap_)})},
handleYPCEndpoint:function(l,D,U){var n=D.ypcGetCartEndpoint;if(n){_.m0("commerce_transaction");var y=n.gtmId;y&&_.fd(y);(n=n.gtmData)&&_.$p(n)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",D)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(l,D),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",D)!=null?(this.handleYPCFixInstrumentEndpoint_(l,D),!0):D.ypcPauseSubscriptionCommand?(cz$(this.hostElement,l,D,U),
!0):D.ypcResumeSubscriptionCommand?(jR2(this.hostElement,l,D),!0):D.getPaymentInstrumentsParamsCommand?(k52(this.hostElement,l,D),!0):D.ypcHandleTransactionEndpoint?(Xl5(this.hostElement,l,D,U),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(l,D){var U=this;_.ae("ttcr",void 0,"commerce_transaction");D=D.ypcGetCartEndpoint;var n=D.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,y=n.encryptedPurchaseParams,A=n.serializedTransactionFlowLoggingParams,C=n.serializedPaymentsClientParams,h=this.createGetCartResponseFromParams_(n,D.offerParams,A);this.changeButtonState(l,!0);_.Kb(this.openWalletDialog(l,y,n.ypcLogWalletAnalyticDataEndpoint,A,function(){U.changeButtonState(l,!1)},function(){U.changeButtonState(l,
!1)},C).then(function(b){return U.handleBuyFlowCompleteCallback_(l,h,b)},function(){return U.handleOnLoadError(h)}).then(function(b){return void U.handlePostPurchaseSuccess_(l,h,b)},function(b){return void U.handlePostPurchaseError_(b)}),function(){U.changeButtonState(l,!1);
l instanceof Element&&_.O9(l,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(l,D,U){var n=l.completeTransactionEndpoint,y=l.handleTransactionEndpoint;D={data:{offerParams:window.btoa(D),serializedTransactionFlowLoggingParams:U}};y?D.data.handleTransactionEndpoint=y:D.data.completeTransactionEndpoint=n;l.onCartDismissCommand&&(D.data.onCartDismissCommand=l.onCartDismissCommand);return D},
onGetCartServiceRequestCompleted_:function(l,D){var U=this,n=l.target;if(D&&D.data&&D.data.messageRenderer)_.cF(this.hostElement),this.handleMessageRenderer_(D.data.messageRenderer),this.changeButtonState(n,!1);else{var y=this.get("data.encryptedPurchaseParams",D),A=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",D),C=this.get("data.ypcLogWalletAnalyticDataEndpoint",D),h=this.get("data.serializedPaymentsClientParams",D),b=this.getLoggingParams_(D);if(b||y||A)l.stopPropagation(),_.ae("ttcr",
void 0,"commerce_transaction"),y||_.cF(this.hostElement),this.changeButtonState(n,!1),A?_.Vh(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.H3("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:A}}},this]):y&&(this.changeButtonState(n,!0),l=null,l=this.openWalletDialog(n,y,C,b,function(){_.cF(U.hostElement);U.changeButtonState(n,!1)},function(){_.cF(U.hostElement);
U.changeButtonState(n,!1)},h),_.Kb(l.then(function(u){return U.handleBuyFlowCompleteCallback_(n,D,u)},function(){return U.handleOnLoadError(D)}).then(function(u){return U.handlePostPurchaseSuccess_(n,D,u)},function(u){return U.handlePostPurchaseError_(u)}),function(){U.changeButtonState(n,!1);
_.O9(n,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(l,D){D&&D.endpoint&&D.endpoint.ypcGetCartEndpoint&&!D.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",D.endpoint.ypcGetCartEndpoint)&&_.DP(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",D.endpoint.ypcGetCartEndpoint)],l.target),_.K4(this.hostElement),this.changeButtonState(l.target,!0))},
onServiceRequestError_:function(l,D){if(D&&D.params&&D.params.length){D=_.B(D.params);for(var U=D.next();!U.done;U=D.next())if((U=U.value)&&U.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",U.ypcGetCartEndpoint)&&_.DP(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",U.ypcGetCartEndpoint)],l.target);_.cF(this.hostElement);this.changeButtonState(l.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(l,D,U){var n=U.integratorData;return n==null||n===""||U.error!=null?(n=this.getLoggingParams_(D),String(U.error)==="-1"?(D.data.onCartDismissCommand&&_.DP(this.hostElement,[D.data.onCartDismissCommand],l),_.Le(new gz("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",n,!0))):_.Le(new gz("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",n))):D.data.handleTransactionEndpoint?SFv(this.hostElement,D.data.handleTransactionEndpoint,{payments_payload:n,funds_guarantee_callback_client_data:U.integratorClientCallbackData}):
this.completeTransaction(D,U)},
handlePostPurchaseSuccess_:function(l,D,U){D=U.data;var n=!1,y,A;if(D&&((y=D.command)==null?0:(A=y.commandExecutorCommand)==null?0:A.commands)){var C,h;y=(C=D.command)==null?void 0:(h=C.commandExecutorCommand)==null?void 0:h.commands;for(C=0;C<y.length;C++)if(_.M(y[C],_.UY8)){n=!0;break}}n||(D&&D.gtmDatas&&D.gtmDatas.length?_.$p(D.gtmDatas[0]):_.$p('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));U.data&&U.data.actions&&(D=u9W(U.data.actions),U=vz$(U.data.actions),D.length&&
_.lu(this.hostElement,D),U.length&&_.DP(this.hostElement,U,l))},
handlePostPurchaseError_:function(l){l&&l.payload&&l.payload.isUserDismiss||_.EU(Error("Xl"))},
handleOnLoadError:function(l){l=this.getLoggingParams_(l);return _.Le(new gz("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",l))},
getLoggingParams_:function(l){return this.get("data.serializedTransactionFlowLoggingParams",l)},
handleMessageRenderer_:function(l){var D=_.EZ(l,"renderer"),U=_.H3("openPopupConfig");D==="confirmDialogRenderer"&&U&&_.Vh(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:U.popupTypeMap[D],popup:l}},this])},
handleYPCFixInstrumentEndpoint_:function(l,D){var U=this,n=D.ypcFixInstrumentEndpoint;D=n.encryptedFixInstrumentParameters;this.logFixFopEvent_(n,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(l,!0);this.openFixFlowDialog(D,function(y,A){U.onFixFlowCompleteCallback_(n,y,A)},function(){return U.changeButtonState(l,!1)},function(){U.changeButtonState(l,!1);
U.logFixFopEvent_(n,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(l,D,U){var n=_.UG("payments.business.integration.scenario.FixInstrument");if(D==n.IntegratorCallbackType.ON_COMPLETE){D="FIX_FOP_EVENT_TYPE_CANCEL";var y=null;U.error!=null?U.error!=n.OnCompleteCallbackError.USER_CANCELLED&&(_.DP(this.hostElement,[l.errorAction],this.hostElement),D="FIX_FOP_EVENT_TYPE_FAILURE",y="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.DP(this.hostElement,[l.successAction],this.hostElement),D="FIX_FOP_EVENT_TYPE_SUCCESS");_.DP(this.hostElement,[l.onFinishAction],
this.hostElement);this.logFixFopEvent_(l,D,y)}},
logFixFopEvent_:function(l,D,U){(l=l.serializedFixFopLoggingParams)?(D={eventType:D,serializedFixFopLoggingParams:l},U!=null&&(D.errorType=U),_.Na("fixFopFlow",D),_.sU()):_.EU(Error("Yl"))},
changeButtonState:function(l,D){_.q("enable_ypc_spinners")&&l&&(l.is==="yt-button-renderer"||l.is==="ytd-button-renderer")&&(l.disabled=D)}}];var U6$=function(l){this.JSC$32960_clientRoot=l;this.feedbackCollectorActionMap={"yt-help-dialog-requested":ohT,"yt-feedback-dialog-requested":FbT,"yt-signal-action-help":wl8,"yt-signal-action-send-feedback":rz5,"yt-send-feedback-action":fR8,"yt-user-feedback-endpoint":$U8};_.Wd(_.AH.getInstance(),this.feedbackCollectorActionMap,this.JSC$32960_clientRoot)},n38;var yF2=function(l){this.JSC$32965_clientRoot=l;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":NUW.bind(null,this.JSC$32965_clientRoot),"yt-signal-action-delete-all-downloads":Eh8,"yt-signal-action-delete-download":TUW,"yt-signal-action-delete-playlist-download":HT2,"yt-signal-action-install-pwa":Di$,"yt-signal-action-refresh-downloads":ibW,"yt-offline-video-endpoint":nN8,"yt-offline-playlist-endpoint":AX$,"yt-update-local-app-setting-command":BxW,"yt-offline-orchestration-action-command":hmJ,
"yt-signal-action-undo-delete-download":OTT,"yt-local-watch-history-command":gNH,"yt-signal-action-mark-download-to-mobile-edu-shown":vNP};_.Wd(_.AH.getInstance(),this.downloadManagerActionMap,this.JSC$32965_clientRoot);_.jd.instance=new _.jd},AF2;var Kj=function(){var l=_.p.apply(this,arguments)||this;l.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_"};l.remoteApi_=null;return l};
_.Z(Kj,_.p);_.W=Kj.prototype;
_.W.ready=function(){_.q("polymer_enable_mdx")&&(EqJ({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.q("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.q("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.q("enable_cast_short_lived_lounge_token")}),_.Ma("yt-remote-connection-change",this.handleConnectionChange_,this),_.Ma("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=loq())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.W.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.W.handleConnectionChange_=function(l){(this.mdxConnected=l)?(l=HEq(),!l&&S4$()&&khJ()&&(l={key:"cast-selector-receiver",name:khJ()}),l=l.name):l=null;this.receiverName=l;_.WE(this.remoteApi_);(this.remoteApi_=loq())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.W.handleReceiverAvailabilityChange_=function(){var l=ILw();S4$()&&_.MN("yt-remote-cast-available")&&l.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=l.length>0};
_.W.handleRemoteQueueChange_=function(){var l=this.currentVideoId_,D=this.currentListId_,U=x$(this.remoteApi_);this.currentVideoId_=U.videoId;this.currentListId_=U.listId;this.currentVideoId_&&_.Vh(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.q("polymer_enable_mdx_queue")?this.currentListId_:null,l,D])};
_.W.handleAddToQueueAction_=function(l){l=_.M(l,HGP);this.remoteApi_&&(l.videoId?this.remoteApi_.addVideo(l.videoId):l.playlistId&&this.remoteApi_.addPlaylist(l.playlistId))};
_.W.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.W.handleInsertInQueueAction_=function(l){l=_.M(l,YD2);this.remoteApi_&&l.videoId&&this.remoteApi_.JSC$20235_insertVideo(l.videoId)};
_.W.handleRemoveFromQueueAction_=function(l){l=_.M(l,OG$);this.remoteApi_&&l.videoId&&this.remoteApi_.JSC$20235_removeVideo(l.videoId)};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],Kj.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K(),_.T("design:type",Object)],Kj.prototype,"appId",void 0);_.E([_.K(),_.T("design:type",Boolean)],Kj.prototype,"mdxConnected",void 0);_.E([_.K(),_.T("design:type",Boolean)],Kj.prototype,"receiverAvailable",void 0);_.E([_.K(),_.T("design:type",Object)],Kj.prototype,"receiverName",void 0);_.E([_.K(),_.T("design:type",Object)],Kj.prototype,"currentVideoId_",void 0);
_.E([_.K(),_.T("design:type",Object)],Kj.prototype,"currentListId_",void 0);_.E([_.S0({is:"yt-mdx-manager",disableElementRegistration:!0})],Kj);_.r(Kj,"yt-mdx-manager",void 0,{mode:2});var Wa5;var B4W;var cC=function(){var l=_.p.apply(this,arguments)||this;l.APP_IDS={ytr:3,ytm:5};l.JSC$21464_timeoutId_=0;l.actionMap={"yt-open-create-family-dialog":"open"};return l};
_.Z(cC,_.p);_.W=cC.prototype;_.W.created=function(){BIq(2200)};
_.W.detached=function(){this.observer_&&this.observer_.disconnect()};
_.W.open=function(l,D){var U=this,n=l.serializedYpcFamilyCreateLoggingParams;this.JSC$21464_timeoutId_=setTimeout(this.abort_.bind(this,l.postFlowErrorEndpoint,n),3E4);D&&(this.onReadyCallback_=D);var y=_.iJ(this.hostElement).querySelector("#unicorn-iframe");n&&n&&Sm8("ypcFamilyCreateFlowStarted",n);_.n0G("family_creation",function(){var A=_.UG("gapi.family_creation.render");_.UG("gapi.config.update")("iframes/family_creation/url",U.getFamilyCreationUrlWithUnicornParams_());var C=3;l.appId&&l.appId in
U.APP_IDS&&(C=U.APP_IDS[l.appId]);C={authUser:_.H3("SESSION_INDEX")||0,clientId:C,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.H3("HL"),initialflow:[4,5,6,7],m:U.isMobile?1:0,onFlowComplete:U.onUnicornFlowComplete_.bind(U,l.postFlowSuccessEndpoint,n),onError:U.onUnicornFlowError_.bind(U,l.postFlowErrorEndpoint,n),onReady:U.onUnicornFlowReady_.bind(U,l.referencePcidParams)};A(y,C)})};
_.W.close=function(){_.iJ(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.W.onUnicornFlowComplete_=function(l,D){this.close();D&&D&&Sm8("ypcFamilyCreateFlowSucceeded",D);_.O9(this.hostElement,"yt-navigate",{endpoint:l})};
_.W.onUnicornFlowError_=function(l,D){this.close();D&&Sm8("ypcFamilyCreateFlowCancelled",D);_.O9(this.hostElement,"yt-navigate",{endpoint:l})};
_.W.onUnicornFlowReady_=function(l){var D=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();l&&_.UG("gapi.family_creation.setConfig")(0,l);this.observer_=new MutationObserver(function(){_.iJ(D.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.iJ(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.iJ(this.hostElement).querySelector("#dialog").open()};
_.W.getFamilyCreationUrlWithUnicornParams_=function(){return _.H3("YTR_FAMILY_CREATION_URL")};
_.W.getCurrentUrl_=function(){return document.location.href};
_.W.abort_=function(l,D){this.clearTimeout_();this.onUnicornFlowError_(l,D)};
_.W.clearTimeout_=function(){clearTimeout(this.JSC$21464_timeoutId_)};
_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],cC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],cC.prototype,"isMobile",void 0);_.E([_.K(),_.T("design:type",Object)],cC.prototype,"onReadyCallback_",void 0);_.E([_.K(),_.T("design:type",Object)],cC.prototype,"observer_",void 0);_.E([_.S0({is:"yt-create-family-dialog",disableElementRegistration:!0})],cC);
_.r(cC,"yt-create-family-dialog",function(){if(B4W===void 0){var l=document.createElement("template");_.e(l,'\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');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);var D=l.content,U=D.insertBefore;Wa5===void 0&&(Wa5=document.createElement("template"));var n=Wa5;U.call(D,n.content.cloneNode(!0),l.content.firstChild);B4W=l}l=B4W;return l},{mode:2});var C78;var hJP;var pj=function(){var l=_.p.apply(this,arguments)||this;l.STEP=1;l.BLOCK_ON=80;l.MIN_PROGESS=0;l.MAX_PROGESS=100;return l};
_.Z(pj,_.p);_.W=pj.prototype;_.W.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.W.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));_.Jc().addProvider({provide:jav,useValue:this})};
_.W.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.W.finish=function(){var l=this;this.progress=this.MAX_PROGESS;QPJ(function(){l.progress==l.MAX_PROGESS&&(l.hostElement.hidden=!0)})};
_.W.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.QP.Object.defineProperties(pj.prototype,{progress:{configurable:!0,enumerable:!0,set:function(l){this.progress_=l;var D="scaleX("+l/this.MAX_PROGESS+")",U=_.iJ(this.hostElement).querySelector("#progress").style;U.transform=D;U.webkitTransform=D;this.hostElement.setAttribute("aria-valuenow",String(l))},
get:function(){return this.progress_}}});
_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],pj.prototype,"ytComponentBehavior",void 0);_.E([_.S0({is:"yt-page-navigation-progress",disableElementRegistration:!0})],pj);
_.r(pj,"yt-page-navigation-progress",function(){if(hJP===void 0){var l=document.createElement("template");_.e(l,'\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');l.content.insertBefore(_.H().content.cloneNode(!0),
l.content.firstChild);var D=l.content,U=D.insertBefore;C78===void 0&&(C78=document.createElement("template"));var n=C78;U.call(D,n.content.cloneNode(!0),l.content.firstChild);hJP=l}l=hJP;return l},{mode:2});var P75={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"},bZ5={"font-size":"12px","font-style":"italic"},g3W={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.qYJ=function(){return _.P(function(l){_.Kz(l)})};var ug8=_.w(function(l){var D=function(){return l.data().subtext},U={};
return _.g("snackbar-view-model",{class:_.DV("snackbarViewModelHost",l.className)},_.g("div",{class:_.DV("snackbarViewModelEngagementBarWrapper",l.className)},_.g(_.v,{cond:function(){return l.data().image},
then:function(n){return _.g(_.rh,{data:n,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.g(_.v,{cond:function(){return l.data().imageContent},
then:function(){return _.g("div",{class:"snackbarViewModelAvatarContainer"},_.g(_.uI,{data:function(){return l.data().imageContent}},{decoratedAvatarViewModel:_.lX}))}}),_.g("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.g("div",{class:_.DV((U.snackbarViewModelTitle=!0,U.snackbarViewModelTitleWithSubtext=D,U))},_.g(_.BO,{text:function(){return l.data().text}})),_.g(_.v,{cond:D,
then:function(){return _.g("div",{class:"snackbarViewModelSubtext"},_.g(_.BO,{text:function(){return D()}}))}})),_.g(_.v,{cond:function(){return l.data().buttons},
then:function(){return _.g("div",{class:"snackbarViewModelButtonClassWrapper"},_.g(_.uI,{data:function(){return l.data().buttons}},{buttonViewModel:function(n){return _.g(_.t9,{data:n.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:l.target})}}))}})))},"uk");_.Tt(_.w(function(){function l(c,N,z){R(c);S(z);J("in");Q(!0);D(c,N);C=setTimeout(function(){U()},N)}
function D(c,N){var z,f=(z=c.text)==null?void 0:z.content;c=_.eq(c.rendererContext);f&&(N={label:f,command:c,durationMs:N},_.Jc().resolve(_.ZH).enqueue(N))}
function U(c){J("out");c&&clearTimeout(C)}
function n(){U(!0)}
function y(c){if(c){var N=c.snackbarViewModel,z=c.durationMs,f=c.target;z||(z=3E3);N&&(c=_.Jc().resolve(_.G8(_.Jl)))&&c.enqueue({isOpened:u,open:function(){l(N,z,f)},
close:U},0)}}
var A=_.gm("snackbar-container"),C=void 0,h=_.B(_.aw(!1,void 0,"mDc5N")),b=h.next().value;h=h.next().value;var u=b,Q=h;b=_.B(_.aw("out",void 0,"FpOs5e"));var G=b.next().value,J=b.next().value;b=_.B(_.aw(void 0,void 0,"jIDRob"));var L=b.next().value,R=b.next().value;b=_.B(_.aw(void 0,void 0,"kOA3Mb"));var a=b.next().value,S=b.next().value,d=_.n0(function(){if(G()==="out"){Q(!1);R(void 0);S(void 0);var c=_.Jc().resolve(_.G8(_.Jl));c&&Rnr(c,0)}});
_.N1(function(){var c=_.Jc().resolve(_.G8(_.mG2));c&&(c.showSnackbarFn=y,c.closeSnackbarFn=n)});
return _.g("snackbar-container",{class:"ytSnackbarContainerHost",el:A},_.g(_.v,{cond:function(){return u()&&!!L()},
then:function(){var c={};return _.g("div",{class:_.DV("ytSnackbarContainerSnackbarContainer",(c.ytSnackbarContainerMobile=!1,c.ytSnackbarContainerPivotBar=function(){var N;return!((N=_.Jc().resolve(_.G8(_.aU8)))==null||!N())},c.ytSnackbarContainerOpened=function(){return u()&&G()==="in"},c.ytSnackbarContainerClosed=function(){return u()&&G()==="out"},c)),
"on:animationend":d},_.g(ug8,{data:function(){return L()},
target:function(){return a()}}))}}))},"vk"),"snackbar-container");_.Tt(_.VE1,"yt-tooltip");var v3r=_.hyr.ephemeralActionSelector;_.Tt(_.w(function(){var l=_.gf(v3r);return _.g("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var D;return(D=l())==null?void 0:D.announcement})},"wk"),"yt-ephemeral-actions");var rX$=new Map;var hHJ=function(l,D){var U=this;this.handleError=l;this.logEventInternal=D;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){U.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
hHJ.prototype.logError=function(l){this.handleError(l)};
hHJ.prototype.logEvent=function(l,D){switch(l){case "IDB_DATA_CORRUPTED":_.q("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",D);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",D);break;case "IS_SUPPORTED_COMPLETED":_.q("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",D);break;case "QUOTA_EXCEEDED":QCw(this,D);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",D);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":l=Object.assign({},D,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",l)}};
var QCw=function(l,D){_.mI.getInstance().estimate().then(function(U){U=Object.assign({},D,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:fz$(U==null?void 0:U.usage),deviceStorageQuotaMbytes:fz$(U==null?void 0:U.quota)});l.logEventInternal("idbQuotaExceeded",U)})};var GfW=_.w(function(l){var D=_.bP("yt-draggable"),U=l.onDrag,n=l.onDragStart,y=l.onDragEnd,A=_.sl(l,{allowClicks:!1,dragThreshold:5}),C=A.dragThreshold,h=A.allowClicks;l=A.children;A=A.className;var b=void 0,u=void 0,Q=new _.zP(0,0),G=!1;_.N1(function(){b=new _.fL(D.value);u=new _.LS(L);J(b,u);if(h()){_.pT8(b,C());var a;(a=D.value)==null||a.addEventListener("click",R,{capture:!0})}_.NV(function(){var S;(S=b)==null||S.dispose();if(h()){var d;(d=D.value)==null||d.removeEventListener("click",R,{capture:!0})}})});
var J=function(a,S){_.Gt(a,"earlycancel",function(){h()&&(G=!1)});
_.Gt(a,"start",function(d){n==null||n(d);d.defaultPrevented||h()&&(G=!0)});
_.Gt(a,"beforedrag",function(d){b&&u&&(d.preventDefault(),Q=new _.zP(d.clientX-b.startX,d.clientY-b.startY),u.start())});
_.Gt(a,"end",function(){S.stop();y==null||y();Q=new _.zP(0,0)})},L=function(){Q&&U(Q)},R=function(a){G&&(G=!1,a.stopPropagation(),a.preventDefault())};
return _.g("yt-draggable",{el:D,class:_.DV("ytDraggableComponentHost",A)},l)},"xk");var JF2=_.w(function(l){var D=_.B(_.aw(0,void 0,"Qf0tbc")),U=D.next().value,n=D.next().value;D=function(y){var A={},C={};return _.g(GfW,{className:_.DV("ytdMiniplayerComponentResizer",(A.ytdMiniplayerComponentResizerDisabled=function(){return y===l.horizontalAlignment()||y===l.verticalAlignment()},A.ytdMiniplayerComponentResizerNorth=y==="north",A.ytdMiniplayerComponentResizerEast=y==="east",A.ytdMiniplayerComponentResizerSouth=y==="south",A.ytdMiniplayerComponentResizerWest=y==="west",A)),
onDragStart:function(){n(l.currentMiniplayerSize());if(l.onResizeStart)l.onResizeStart()},
onDrag:function(h){y!=="north"&&y!=="west"||h.scale(-1);var b;h=(b=y==="north"||y==="south")?h.y:h.x;var u=l.currentAspectRatio();b&&u>=1?h*=u:!b&&u<1&&(h/=u);b=h;l.onResize(U()+b)}},_.g("div",{class:_.DV("ytdMiniplayerComponentResizerCorner",(C.ytdMiniplayerComponentResizerNorthCorner=y==="north",C.ytdMiniplayerComponentResizerEastCorner=y==="east",C.ytdMiniplayerComponentResizerSouthCorner=y==="south",C.ytdMiniplayerComponentResizerWestCorner=y==="west",C))}))};
return _.g("div",{class:"ytdMiniplayerComponentResizers"},D("north"),D("east"),D("south"),D("west"))},"yk");var La$=16/9;_.Tt(_.w(function(){var l=_.bP("ytd-miniplayer"),D=_.B(_.aw(new _.Sr(NaN,NaN),void 0,"NHaFyc")),U=D.next().value,n=D.next().value;D=_.B(_.aw(!1,void 0,"a0rwG"));var y=D.next().value,A=D.next().value;D=_.B(_.aw(!1,void 0,"f1jSeb"));var C=D.next().value,h=D.next().value;D=_.B(_.aw(!1,void 0,"JojXKc"));var b=D.next().value,u=D.next().value;D=_.B(_.aw(!1,void 0,"FjS8Db"));var Q=D.next().value,G=D.next().value;D=_.B(_.aw(!1,void 0,"z5WG9e"));var J=D.next().value,L=D.next().value;D=_.B(_.aw(!1,void 0,"eUzZd"));
var R=D.next().value,a=D.next().value;D=_.B(_.aw(La$,void 0,"XsBIy"));var S=D.next().value,d=D.next().value,c=_.B(_.aw(!1,void 0,"FJSvse"));D=c.next().value;var N=c.next().value;c=_.B(_.aw(!1,void 0,"VDUFL"));var z=c.next().value,f=c.next().value;c=_.B(_.aw(void 0,void 0,"nFeh4b"));var I=c.next().value,iG=c.next().value;c=_.B(_.aw(GQ()?"west":"east",void 0,"T7co7c"));var CC=c.next().value,vo=c.next().value;c=_.B(_.aw("south",void 0,"QDUsLb"));var td=c.next().value,GN=c.next().value;c=_.B(_.aw(400,
void 0,"F7Vdze"));var Ms=c.next().value,j3=c.next().value,wl=_.Jc().resolve(_.kq).miniplayerPropSignalMap[0],zN=wl.data,Z7=wl.externalPlaylistData;c=wl.toastData;var Lm=wl.playabilityStatus,Vg=wl.isReadyToResume,v5=wl.isDisabled,mk=wl.watchWhile,dy=wl.playerVe,eW=wl.expandVe,Qq=wl.closeVe,Bo=wl.readyToResumeVe,D7=wl.readyToResumeCloseVe,qr=wl.repositionVe,H5=wl.resizeVe;wl=_.B(_.WK(Vg));var Mr=wl.next().value,V_=wl.next().value,ec=_.gf(_.xv.persistentPanelVisibleSelector),Nr=!1,gy=!1,uH;_.N1(function(){n(_.uV());
l.value.addEventListener("animationend",function(zv){zv.target===l.value&&(L(!1),a(!1))});
IzT(l.value)});
_.Pd("yt-window-resized",function(zv){zv&&n(zv)});
var yq=function(){uH&&d(uH.getVideoAspectRatio())},TN=function(){if(uH){var zv=uH.getPlayerState()===1;
Mr()&&zv&&V_(!1)}},l$=function(){var zv=eW();
if(zv){var mJ=_.t6(3);mJ&&_.zo(mJ,zv)}},uw=function(){var zv=Qq(),mJ=D7();
zv&&_.zo(_.t6(3),zv);Vg()&&mJ&&_.zo(_.t6(3),mJ)};
_.Pd("yt-activate-miniplayer",function(zv){var mJ;return _.P(function(nP){if(nP.nextAddress==1)return y()?nP.return():nP.yield((mJ=_.Jc().resolve(_.kq).getPlayerElement())==null?void 0:mJ.getPlayerPromise(),2);uH=nP.yieldResult;if(!uH)return nP.return();!z()&&_.q("kevlar_watch_while_v2")&&(GN(zv&&!_.q("kevlar_watch_while_bottom_align")?"north":"south"),vo(GQ()?"west":"east"));var Ft=uH;Ft.addEventListener("onVideoDataChange",yq);Ft.addEventListener("onStateChange",TN);Ft.addEventListener("onExpandMiniplayer",
l$);Ft.addEventListener("onCloseMiniplayer",uw);d(uH.getVideoAspectRatio());A(!0);TxP()||L(!0);_.Kz(nP)})});
_.Pd("yt-deactivate-miniplayer",function(zv,mJ){return _.P(function(nP){if(!y())return nP.return();A(!1);V_(!1);a(zv);G(!1);h(!1);if(uH){var Ft=uH;Ft.removeEventListener("onVideoDataChange",yq);Ft.removeEventListener("onStateChange",TN);Ft.removeEventListener("onExpandMiniplayer",l$);Ft.removeEventListener("onCloseMiniplayer",uw)}TxP()||mJ?mJ&&L(!1):L(!0);_.Kz(nP)})});
var UW=function(){return!(mk()&&_.q("kevlar_watch_while_modern"))},GT=function(){var zv;
return!((zv=Z7())==null||!zv.contents)},$8=function(){var zv=Ms();
var mJ=U();mJ=Math.min(Math.min(mJ.width,mJ.height)-32,720);var nP=S(),Ft=UW(),PE=GT()&&C(),bO=Math.min(zv,mJ);zv=new _.Sr(192,Ft?116:192);nP=new _.Sr(PE?La$:nP,1);bO=new _.Sr(bO,Ft?bO-76:bO);bO=nP.aspectRatio()>bO.aspectRatio()?bO.width/nP.width:bO.height/nP.height;nP=nP.scale(bO);zv.width<=nP.width&&zv.height<=nP.height||(zv=nP.aspectRatio()<=zv.aspectRatio()?zv.width/nP.width:zv.height/nP.height,nP.scale(zv),nP.width=Math.min(nP.width,mJ),nP.height=Math.min(nP.height,mJ));return new _.Sr(nP.width,
_.tS(192,nP.height+Ve5(Ft,PE),720))},hA=function(){var zv=$8(),mJ=UW(),nP=GT()&&C();
return new _.Sr(zv.width,zv.height-Ve5(mJ,nP))},qG=function(){var zv=function(mJ){mJ.target===l.value&&Q()&&(G(!1),l.value.removeEventListener("transitionend",zv))};
TxP()||(l.value.addEventListener("transitionend",zv),G(!0));h(!C())};
_.$i(function(){var zv=dy(),mJ=_.t6(3),nP=_.aS(3);if(mJ&&nP&&zv){_.jz(mJ,nP,zv);nP=qr();var Ft=H5(),PE=eW(),bO=Qq(),gs=D7();PE&&bO&&gs&&(_.FI(mJ,zv,[PE,bO,gs]),_.wj(mJ,[PE,bO]));nP&&Ft&&_.FI(mJ,zv,[nP,Ft])}},"UBpUDd");
_.$i(function(){var zv=Bo();if(zv){var mJ=_.t6(0),nP=_.aS(0);mJ&&nP&&(_.jz(mJ,nP,zv),_.wj(mJ,[zv]))}},"fQpBzb");
wl={};return _.g("ytd-miniplayer",{el:l,class:_.DV("ytdMiniplayerComponentHost",(wl.ytdMiniplayerComponentVisible=function(){return(y()||J())&&!(mk()&&_.q("kevlar_watch_while_counterfactual"))},wl.ytdMiniplayerComponentAnimatingSnap=b,wl.ytdMiniplayerComponentAnimatingPlaylistExpand=Q,wl.ytdMiniplayerComponentAnimatingFade=J,wl),function(){if(J()){var zv=td();
var mJ=y(),nP=R();zv=mJ?zv==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":nP?zv==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":zv==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else zv="";return zv}),
style:_.BK({top:function(){return td()==="north"?"16px":""},
right:function(){var zv=CC(),mJ=ec();mJ=(mJ===void 0?0:mJ)&&!GQ()?400:0;return zv==="east"?16+mJ+"px":""},
bottom:function(){return td()==="south"?"16px":""},
left:function(){var zv=CC(),mJ=ec();mJ=(mJ===void 0?0:mJ)&&GQ()?400:0;return zv==="west"?16+mJ+"px":""},
width:function(){return $8().width+"px"},
height:function(){return $8().height+"px"},
transform:function(){var zv=I();return zv?"translate("+zv.x+"px, "+zv.y+"px)":""}})},_.g("div",{class:"ytdMiniplayerComponentContent"},_.g(GfW,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(zv){var mJ=Obv(CC(),td(),U(),$8(),I()),nP=hA();Math.abs(zv.clientY-(mJ.y+nP.height))>15?(N(!0),zv=_.t6(3),mJ=qr(),Nr||(Nr=!0,zv&&mJ&&_.wj(zv,[mJ])),zv&&mJ&&_.zo(zv,mJ)):zv.preventDefault()},
onDrag:function(zv){iG(zv)},
onDragEnd:function(){var zv=HbJ(Obv(CC(),td(),U(),$8(),I()),U(),$8()),mJ=YYH(CC(),td(),U(),$8(),ec()),nP=YYH(zv.horizontalAlignment,zv.verticalAlignment,U(),$8(),ec());nP=new _.zP(nP.x-mJ.x,nP.y-mJ.y);var Ft;mJ=mJ.y+(((Ft=I())==null?void 0:Ft.y)||0)+$8().height/2;var PE=function(){CC()===zv.horizontalAlignment&&td()===zv.verticalAlignment||f(!0);vo(zv.horizontalAlignment);GN(zv.verticalAlignment);iG(void 0)},bO=function(gs){gs.target===l.value&&b()&&(u(!1),PE(),l.value.removeEventListener("transitionend",
bO))};
N(!1);td()==="south"&&mJ>U().height?(PE(),_.Jc().resolve(_.kq).close()):(l.value.addEventListener("transitionend",bO),u(!0),iG(nP))}},_.g(_.v,{cond:y,
then:function(){return _.g(_.vHT,{isDisabled:v5,playabilityStatus:Lm,size:hA})}}),_.g(_.v,{cond:UW,
then:function(){return _.g(_.gHP,{isReadyToResume:Mr,data:zN,expanded:C,onExpandClick:qG,playlistData:Z7})}}),_.g(_.v,{cond:D,
then:function(){return _.g("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.g(_.v,{cond:function(){return GT()&&C()||Q()},
then:function(){return _.g(_.eIP,{className:"ytdMiniplayerComponentPlaylistPanel",data:Z7,hideHeaderText:!0,withinMiniplayer:!0})}}),_.g("div",{class:"ytdMiniplayerComponentToast"},_.g(_.Q2r,{toastData:c}))),_.g(JF2,{onResize:function(zv){j3(_.tS(192,zv,720))},
onResizeStart:function(){var zv=_.t6(3),mJ=H5();gy||(gy=!0,zv&&mJ&&_.wj(zv,[mJ]));zv&&mJ&&_.zo(zv,mJ)},
currentAspectRatio:S,currentMiniplayerSize:Ms,horizontalAlignment:CC,verticalAlignment:td}))},"Bk"),"ytd-miniplayer",{});var qfJ=_.xv.persistentPanelVisibleSelector,xL=function(){var l=_.p.apply(this,arguments)||this;l.tabGesturesIsActive=!1;l.persistentPanelEnabled=_.q("enable_ai_companion");l.hasDelegation=!1;l.isFrostedGlassInitialized=!1;l.frostedGlassExp=_.q("web_frosted_glass");l.hasPendingWatchNavigation=!1;l.mastheadHiddenFocusWithinKillswitch=_.q("web_masthead_hidden_focus_within_killswitch");l.clientOnlyWizTooltipsEnabled=_.q("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
l.scrollAtTop=!0;l.guideScrollTop=0;l.isTheaterModeSession=_.il("START_IN_THEATER_MODE");l.iMaxTheaterMode=_.q("web_watch_imax_theater_mode");l.isFullWindowSession=_.il("START_IN_FULL_WINDOW_MODE");l.hasCreateFamilyDialog=!1;l.mastheadHeight=56;l.networkStatusManager=new _.AL;l.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"};l.dynamicActionMap={"yt-run-attestation-command":function(D){var U=_.P85.instance,n=_.M(D,_.J7r);return n?_.q("use_rta_manager_for_async")&&
HY$()?OLP(U,n,D.clickTrackingParams):Ygq(U,n,D.clickTrackingParams):_.Le(Error("pi"))}};
l.isFrostedGlassDisabled=!1;l.isChannelOrPlaylistPage=!1;return l};
_.Z(xL,_.p);_.W=xL.prototype;_.W.created=function(){var l=_.Jc();_.q("kevlar_clear_duplicate_pref_cookie")&&_.oI(_.Tn,function(){var D=_.xZ.get("PREF");D&&!/f\d=/.test(D)&&(D=_.e_("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=D?"PREF=null;domain="+D+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.q("gzip_gel_with_worker")&&_.lNG();_.q("jspb_serialize_with_worker")&&qV2();_.q("web_worker_availability_check")&&zmH();_.q("nwl_init_killswitch")||Jev().then(function(){_.Tn.addLowPriorityJob(AU8)});
this.pageManagerAttachedPromise=_.wf();this.ytdAppBehavior.loadDepsPromise=_.dx([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.A1(this.onThrottledScroll,200,this);_.q("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);PmW();MLT=!!_.UG("ytappsettings.initialized");cs=_.UG("ytappsettings.previousValue");h02=_.UG("ytappsettings.previousSnapshotTime");MLT||(MLT=!0,P_r());bhv();gz8();_.IN("DEFERRED_DETACH",
_.q("kevlar_tuner_should_defer_detach"));_.IN("REUSE_COMPONENTS",!0);_.IN("STAMPER_STABLE_LIST",!0);_.IN("SCHEDULED_LAZY_LIST",!0);_.IN("openPopupConfig",OV$);_.IN("useClickHandler",!0);_.q("kevlar_shell_cleanup")&&_.Tn.addLowPriorityJob(VQ2.bind(this,_.nC.caches));_.il("IS_SHELL_LOAD")&&_.ZP({shellStartupDurationMs:Math.round((0,_.J3)()-_.JJ())});emJ(this.networkStatusManager);_.q("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Gmq(P75)),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!",
Gmq(bZ5)),console.log("%cVisit http://go/join-youtube-web to apply today.",Gmq(g3W)));_.S9T(l.resolve(_.MX),1E3)};
_.W.ready=function(){var l=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var D=ktW();D&&!_.q("external_fullscreen_killswitch")&&document.addEventListener(D,this.setFullscreen.bind(this));(D=window.matchMedia("(prefers-color-scheme: dark)"))&&D.addEventListener&&D.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(D=_.Jc().resolve(_.G8(_.Qvy)))D.subscribe("navigation-start",
function(U){U.destinationPageSubtype==="watch"&&(l.hasPendingWatchNavigation=!0)}),D.subscribe("navigation-end",function(U){U.destinationPageSubtype==="watch"&&(l.hasPendingWatchNavigation=!1)})};
_.W.attached=function(){var l=this;_.PN().processSignal("ci");_.q("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.BTm?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.AS(_.eRo(),"SUCCESS");this.updateIconSet();_.HH(this.guideInnerContent,!1);_.jp().initVisibilityObserver();this.guideService.guideElement=this.guide;var D=document.createElement("ytd-miniplayer"),U=_.iJ(this.hostElement).querySelector("#content");
_.iJ(this.hostElement).insertBefore(D,U);_.PN().processSignal("ma");_.Jc().resolve(_.kq).init(D);this.persistentPanelEnabled&&_.dNJ(_.Jc().resolve(_.O3),this.persistentPanelContainer,"APP");_.il("IS_SHELL_LOAD")&&(U=document.createElement("ytd-network-status-banner"),_.iJ(this.hostElement).insertBefore(U,D));_.q("kevlar_right_click_on_lockups")&&_.n5._onCaptureClick&&document.addEventListener("contextmenu",_.n5._onCaptureClick.bind(_.n5),!0);var n=function(){var y=_.vO("yt-page-navigation-progress");
_.iJ(l.hostElement).appendChild(y)};
setTimeout(function(){_.PN().parkOrScheduleJob(n,0,"eocs",16)},0);
_.q("service_worker_push_enabled")&&_.oI(_.Tn,XK8);_.Wd(_.AH.getInstance(),this.dynamicActionMap,this.hostElement);_.O9(this.hostElement,"ytd-app-attached");_.PN().processSignal("aa");$Dv(this.hostElement);_.vG("gapi.load",_.n0G);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.oI(_.Tn,
function(){var y=document.createElement("ytd-video-preview");_.iJ(_.iJ(l.hostElement).querySelector("#video-preview")).appendChild(y)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.oI(_.Tn,function(){MeW();l.registerWithViewTransitionManager()});
if(_.xf()&&this.isAppDarkTheme()!==_.ck())this.onDarkModeToggledAction();else D=_.pU()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==D&&(_.q("enable_dark_theme_only_on_shorts")?_.KU(_.q("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Ct(window.location.href,{theme:"dark"})):_.II(new _.rc("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(DWT=new laJ(this.hostElement)),AF2=new yF2(this.hostElement),n38=new U6$(this.hostElement),Mj2=new qo8(this.hostElement)};
_.W.getThemeSettingsToLog=function(){var l=_.pU()==="USER_INTERFACE_THEME_DARK";l=_.xf()?_.ck()?"os-dark":"os-light":l?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:l,cookiesEnabled:_.Fi()}};
_.W.detached=function(){_.Y2(this.guideInnerContent);_.Tn.cancelJob(Xg);Xg=0;_.Tn.cancelJob(k3);k3=0;_.uk$(fk5);fk5.length=0;w9q=_.WKc=null;_.jp().dispose();_.q("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Bd(_.AH.getInstance(),DWT.playlistHandlerActionMap,DWT.JSC$32670_clientRoot);_.Bd(_.AH.getInstance(),AF2.downloadManagerActionMap,AF2.JSC$32965_clientRoot);_.Bd(_.AH.getInstance(),n38.feedbackCollectorActionMap,n38.JSC$32960_clientRoot);
for(var l=_.B(Mj2.eventListeners),D=l.next();!D.done;D=l.next()){var U=_.B(D.value);D=U.next().value;U=U.next().value;U=_.B(U);for(var n=U.next();!n.done;n=U.next()){var y=_.B(n.value);n=y.next().value;y=y.next().value;D.removeEventListener(n,y)}}_.Bd(_.AH.getInstance(),Mj2.autonavPauseActionMap,Mj2.JSC$20417_clientRoot)};
_.W.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.bu().getFlag(186)};
_.W.computeIsInlinePreviewEnabled=function(l,D,U){return!U&&_.q9v({miniplayerIsActive:l,miniplayerPlaybackState:D})};
_.W.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.V0({type:"SET_FROSTED_GLASS_MODE",payload:!_.q("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"}))};
_.W.computeIsFrostedGlassDisabled=function(l,D,U,n){return l||D||U||n&&_.q("web_frosted_glass_disable_watch")};
_.W.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.q("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.W.computeIsHomePage=function(l,D){if(!l||D==null||!D.endpoint)return!1;var U;return((U=_.M(D.endpoint,_.Pk))==null?void 0:U.browseId)==="FEwhat_to_watch"};
_.W.updateIsChannelOrPlaylistPage=function(){if(_.q("web_frosted_glass")){var l,D,U=(D=(l=_.Jc().resolve(_.G8(_.sm)))==null?void 0:l.getCurrentPage())==null?void 0:D.pageSubtype;this.isChannelOrPlaylistPage=U?["channel","channels","playlist"].includes(U):!1}};
_.W.scheduleFrostedGlassInitialization=function(){var l=this;_.q("web_frosted_glass")&&_.PN().parkOrScheduleJob(function(){l.isFrostedGlassInitialized=!0},0,_.rw(["eocs",
"cr"]),300)};
_.W.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.Uv1(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.V0({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.V0({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.W.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(hV$(!0))};
_.W.onYtSignalActionRequestPersistentStorage=function(){if(!_.q("request_persistent_storage_killswitch")){var l=_.Jc().resolve(_.Ei2);l.cachedPersistStatePromise||(l.cachedPersistStatePromise=Kmv())}};
_.W.handleYtChannelCreationFormEndpoints=function(l){l&&this.ytComponentBehavior.resolveCommand(l)};
_.W.handleShowEngagementPanelEndpoint=function(l){l&&this.ytComponentBehavior.resolveCommand(l)};
_.W.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(hV$(!1))};
_.W.initIconDefs=function(l,D){var U=document.createElement("iron-iconset-svg");U.name=l;l=document.createElementNS("http://www.w3.org/2000/svg","svg");U.appendChild(l);l.appendChild(D);document.body.appendChild(U);return U};
_.W.onWindowResized=function(){_.Vh(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var l=_.Sp.getInstance();l.documentWidth_=document.body.clientWidth;ZLH(l)};
_.W.onWindowScrolled=function(){var l=_.Jc().resolve(_.sm).getCurrentPage();if(l!=null&&l.getScrollTop){var D=this.ytdReduxBehavior,U=D.dispatch;l=l.getScrollTop()<=0;U.call(D,_.V0({type:"SET_SCROLL_AT_TOP",payload:l}))}};
_.W.guideIsVisibleButNotPersistentSelectorChanged=function(){var l=_.Jc().resolve(_.sm).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=l.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"),
l.setScrollTop(this.guideScrollTop));_.iu(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.W.getCurrentPageScrollableElementType=function(){var l=_.Jc().resolve(_.sm).getCurrentPage();if(l&&l.getPageScrollingElement())return l.getPageScrollingElement().nodeName};
_.W.observeGuideVisibility=function(){var l=_.Sp.getInstance(),D=this.miniGuideVisible;l.guidePersistentAndVisible_=this.guidePersistentAndVisible;l.miniGuideVisible_=D;ZLH(l)};
_.W.observePersistentPanelVisibility=function(){var l=_.Sp.getInstance();l.persistentPanelVisible_=this.persistentPanelVisible;ZLH(l)};
_.W.handleEduDismissAction=function(l){l&&l.eduDismissAction&&(_.Vh(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Wn7.getInstance(),_.tC.set(l.eduDismissAction.key+"-dismissed",!0))};
_.W.handleEduImpressionAction=function(l){if(l&&l.eduImpressionAction){var D=_.Wn7.getInstance();l=l.eduImpressionAction.key;D.JSC$13260_eduDisplayedThisLoad_[_.Awh[l].setKey||l]=!0;_.tC.set(l+"-impression",parseInt(_.tC.get(l+"-impression")||0,10)+1)}};
_.W.onYtSignalActionConfirmMentionsEdu=function(){_.Vh(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.dv.getInstance();_.kp.set("edu-dismissed",!0)};
_.W.onYtSignalActionRecordMentionsEduImpression=function(){_.dv.getInstance();var l=_.kp.set,D=parseInt(_.kp.get("edu-impressions"),10);l.call(_.kp,"edu-impressions",(isFinite(D)?D:0)+1)};
_.W.onYtPageManagerAttached=function(l){var D;((D=_.NN(l))==null?void 0:D.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.W.onInvokeInstrumentManagerAction=function(l,D){EN$(D,l)};
_.W.updateIconSet=function(){var l=this.hostElement.querySelector("#masthead");if(l){var D=_.lJ(l),U=D.querySelector("g#yt-logo-updated");U&&(l=document.createElementNS("http://www.w3.org/2000/svg","defs"),l.appendChild(U.cloneNode(!0)),(D=D.querySelector("g#yt-logo-red-updated"))&&l.appendChild(D.cloneNode(!0)),this.initIconDefs("yt-logos-ext",l))}};
_.W.updateMastheadData=function(){var l=this,D,U,n,y,A;return _.P(function(C){if(C.nextAddress==1){D=l.data;U=l.hostElement.querySelector("#masthead");if(!U)return C.return();_.u6(l,function(){U.data=l.topbarData});
if(!l.get("response.topbar",D)||l.get("response.topbar.responseContext.maxAgeSeconds",D)===0)return C.jumpTo(0);if(n=_.Jc().resolve(_.lY))return C.yield(n(),6);y=_.Jc().resolve(_.dZ);return C.yield(y.put("service:topbar:fallback",new _.Ku({innertubeResponse:l.get("response.topbar",D)})),0)}return(A=C.yieldResult)?C.yield(A.put("service:topbar:fallback",new _.Ku({innertubeResponse:l.get("response.topbar",D)})),0):C.jumpTo(0)})};
_.W.computeTopbarData=function(l){if(!l)return null;var D;return this.isShortsPage&&this.topbarData&&!_.M((D=l.response)==null?void 0:D.topbar,jb8)?this.topbarData:l.response&&"topbar"in l.response?_.M(l.response.topbar,jb8)||null:null};
_.W.onSetTheaterModeEnabled=function(l,D){this.isTheaterModeSession=D.enabled;this.setTheaterModeStyles(D.enabled)};
_.W.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.W.onDarkModeToggledAction=function(){var l=_.kZ(window.location.href);if(!_.hq$(l)){(l=!!_.BS(window.location.href).themeRefresh)&&_.II(new _.rc("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!l){P_r();l={themeRefresh:1};var D=_.Jc().resolve(_.sm);if(D.isOnWatch()){var U,n;D=((U=D.getPlayerFromWatch())==null?void 0:(n=U.getPlayer())==null?void 0:n.getCurrentTime())||0;D>=1&&(l.time_continue=Math.floor(D))}_.Fi()||_.pU()!=="USER_INTERFACE_THEME_DARK"||(l.theme="dark");_.KU(_.Ct(window.location.href,
l))}_.q("web_appshell_refresh_trigger")&&_.nC.caches&&this.refreshAppShellResponse();U=_.jG(window.location.href);_.xO(_.Jc().resolve(_.jK),_.E9(U,"theme"))}};
_.W.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.W.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.W.onPlayerFullscreen=function(l){_.Ta();this.playerFullscreen=l};
_.W.setRestrictedMode=function(l){var D=_.bu();_.gj(0,58,l);D.save();_.Jc().resolve(_.xp).reload()};
_.W.onPageChanged=function(l){l.detail.newPageType==="ytd-watch-flexy"||l.detail.newPageType==="ytd-watch-fixie"||l.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.R7("WEB_PAGE_TYPE_WATCH")):l.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.R7("WEB_PAGE_TYPE_SHORTS")):l.detail.newPageType==="ytd-browse"&&l.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.R7("WEB_PAGE_TYPE_MINI_APP")):_.q("web_frosted_glass")&&l.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.R7("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.R7("WEB_PAGE_TYPE_UNKNOWN"));l.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.W.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.W.onGuideToggleTap=function(){_.O9(this.hostElement,"yt-guide-toggle")};
_.W.onGuideToggleHover=function(){_.O9(this.hostElement,"yt-guide-hover")};
_.W.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.W.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.W.setMastheadTheme=function(){var l=_.lJ(this.hostElement).querySelector("#masthead");l&&(l.dark=l.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),l.isDarkThemeForced=!1)};
_.W.onRequestPanelModeChange=function(l,D){this.hideHeaderShadow=D.mode!=="seamed"};
_.W.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.W.onDrawerIronSelect=function(l){_.NN(l).id==="guide"&&this.processDrawerIronSelect()};
_.W.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var l="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(l="opened"));_.O9(this.hostElement,"yt-autonav-pause-guide-"+l)};
_.W.onAddElementToApp=function(l){_.iJ(this.hostElement).appendChild(l.detail)};
_.W.onThrottledScroll=function(){var l=_.Jc().resolve(_.sm).getCurrentPage();l&&(this.scrollAtTop=l.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.W.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.W.setFullscreen=function(){if(_.q("external_fullscreen")||!this.isWatchPage){var l=_.q("kevlar_fullerscreen_root_only_killswitch")?!!_.Ta():!!_.Ta()&&_.Ta()===document.documentElement;l=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(l||this.isFullWindowSession);this.fullscreen!==l&&((this.fullscreen=l)&&_.iu(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.EB().dispatch(_.N_8(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Vh(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.W.setFullscreenLoggingForShorts=function(l){var D,U,n;return _.P(function(y){if(y.nextAddress==1)return y.yield((D=_.T4())==null?void 0:D.getPlayerPromise(),2);U=y.yieldResult;(n=U)==null||n.setAppFullscreen(l);_.Kz(y)})};
_.W.updateMastheadCssHeight=function(){var l=this.mastheadHeight;this.fullscreen&&(l=0);_.Wg(this.hostElement,{"--ytd-masthead-height":l+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.W.updateNetworkStatusBannerDisplayStatus=function(){var l="unset";this.fullscreen&&(l="none");_.Wg(this.hostElement,{"--ytd-network-status-banner-display":l})};
_.W.updateNetworkStatusBannerCssHeight=function(){var l="unset";this.fullscreen&&(l="0px");_.Wg(this.hostElement,{"--ytd-network-status-banner-max-height":l})};
_.W.updateScrollAndMasthead=function(l,D,U,n){this.iMaxTheaterMode||(n=!1);var y=_.Jc().resolve(_.sm).getCurrentPage();l||D||n?(document.body.classList.add("no-scroll"),y.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.CY(this,this.onScroll)),y.setScrollTop(0),_.Wg(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Ih()+"px"})):U?_.O9(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.O9(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
y.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.CY(this,this.onScroll)));this.mastheadHidden=l||D||U;this.updateMastheadCssHeight();_.q("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.W.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.W.onYtNavigateAction=function(l){l=this.get("navigateAction.endpoint",l);_.O9(this.hostElement,"yt-navigate",{endpoint:l})};
_.W.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var l=document.createElement("yt-create-family-dialog");_.iJ(this.hostElement).appendChild(l);this.hasCreateFamilyDialog=!0}};
_.W.onSetPushNotificationsEnabledCommand=function(l){var D=this,U=_.M(l,xkP);U&&typeof U.enabled==="boolean"&&(Notification.permission!=="granted"?Z05().then(function(){Notification.permission==="granted"?(A1v(!U.enabled).then(C_v),U.successAction&&_.lu(D.hostElement,[U.successAction])):U.failureAction&&_.lu(D.hostElement,[U.failureAction])}):(A1v(!U.enabled).then(C_v),U.successAction&&_.lu(this.hostElement,[U.successAction])))};
_.W.onYtSignalActionEnableChromeNotifications=function(){e0$(!0)};
_.W.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.M(this.topbarData.hotkeyDialog,wf8)}}})};
_.W.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Vh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.W.onYtEndpointChangeHandler=function(l,D){var U=_.sr(_.pd);U.pendingPrefetchJob_&&(D=!(!D||D.autonav!="1"),U.pendingPrefetchJob_.resolve(l&&_.BRs(l)?_.CX$(l,D):""),U.pendingPrefetchJob_=null);_.Vh(this.hostElement,"yt-pause-active-page-context");_.Vh(this.hostElement,"ytd-log-youthere-nav");_.Vh(this.hostElement,"yt-prepare-page-dispose")};
_.W.handleCommandWithCommandHandler=function(l,D){_.yu.instance.resolveCommand(l,{form:{element:D}})};
_.W.onYtTimedCommand=function(l){var D=this;l=_.M(l,eqv);var U=l.command;U&&_.BI(_.Tn,function(){var n=_.M(U,_.L45);n?(_.yu.instance.resolveCommand(U),D.maybeLogGetAnswerRequestTick(n)):_.DP(D.hostElement,[U],D.hostElement)},l.timeoutMs||0)};
_.W.maybeLogGetAnswerRequestTick=function(l){l&&l.isFirstRequest&&(_.m0("search_overview_answer"),_.ae("so_rq",void 0,"search_overview_answer"))};
_.W.onYtSignalActionSkipNavigation=function(){var l=_.Jc().resolve(_.sm).getCurrentPage();_.hL(l)};
_.W.onYtSignalActionCopyDebugData=function(){F8W()};
_.W.handleEntityUpdateCommand=function(l){_.h4(_.M(l,_.zR1).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.W.logFlowLoggingEventCommand=function(l){if(l=_.M(l,_.Nnd))if(l.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var D=l.flowEventNamespace,U=l.flowEventType,n=l.flowType;n&&D&&U&&_.iK3(_.Wk(D,U,l.flowEventMetadata),n)}else{D=_.Bk();U=l.flowEventNamespace;n=l.flowEventType;var y=l.flowType;y&&U&&n&&D.logFlowEvent(_.Wk(U,n,l.flowEventMetadata),y,l.flowNonce)}};
_.W.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.W.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.W.onTouchStart=function(){var l=_.Fc();_.t6()&&_.xo(l.JSC$13382_screenManager,{visualElement:l.ve})};
_.W.handleSelectLanguageCommand=function(l){if(l=_.M(l,KoW).hl){var D=_.bu();D.set("hl",l);D.save();_.Jc().resolve(_.xp).reload()}};
_.W.handleConfirmDialogEndpoint=function(l){(l=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(l))&&this.ytOpenPopupBehavior.openPopup(l)};
_.W.handleOpenPopupNavigationEndpoints=function(l,D){(l=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(l))&&this.ytOpenPopupBehavior.openPopup(l,D)};
_.W.handleSaveCommandToSessionStorage=function(l){if(l=_.M(l,_.eny)){var D=l.key;D&&l.command&&window.sessionStorage.setItem(D,JSON.stringify(l.command))}};
_.W.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(l){l&&l.active&&l.active.postMessage({type:"refresh_shell"})}).catch(function(l){l.name!=="SecurityError"&&_.EU(l)})};
_.W.onDeviceThemeChanged=function(){var l=_.ck();_.gj(_.bu(),185,l);_.bu().save()};
_.W.handleYtRegisterPromoCommand=function(l){if(_.M(l,pf$)){var D=_.Jc().resolve(_.sm).getCurrentPage()||this.hostElement;kcJ().registerPromoCommand(_.M(l,pf$),D)}};
_.W.onYtNavigateHomeAction=function(){if(!_.q("kevlar_miniplayer_navigate_home_from_app_killswitch")){var l,D,U,n,y=(n=(l=this.topbarData)==null?void 0:(D=l.logo)==null?void 0:(U=D.topbarLogoRenderer)==null?void 0:U.endpoint)!=null?n:_.zA;this.ytComponentBehavior.resolveCommand(y)}};
_.W.onYtLocationCollectionCommand=function(l){LOW(_.M(l,Ti8))};
_.W.onYtGetLocationCommand=function(l){GlP(_.M(l,ERJ),this)};
_.W.updateRenderGuideFromBinding=function(l){this.renderGuide=l.detail.value};
_.W.updateGuidePersistentAndVisibleFromBinding=function(l){this.guidePersistentAndVisible=l.detail.value};
_.W.updateMiniGuideVisibleFromBinding=function(l){this.miniGuideVisible=l.detail.value};
_.W.onThemeSelected=function(l,D){var U=_.bu(),n=l||D?l:_.ck(),y=(n&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!n&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.hq$(_.kZ(window.location.href));_.gj(0,165,l);_.gj(0,174,D);U.save();y&&_.Vh(this.hostElement,"yt-dark-mode-toggled-action",[n]);_.Vh(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.W.getCurrentTheme=function(){return _.xf()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.pU()};
_.W.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.W.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.W.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.W.handleShowConsentPrimitive=function(l){var D=this,U,n;return _.P(function(y){if(y.nextAddress==1){try{U=(n=_.T4())==null?void 0:n.getPlayerPromise()}catch(A){}return y.yield(wbJ(l,U),2)}_.Vh(D.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Kz(y)})};
_.W.handleSelectActiveIdentityEndpointInternal=function(l){_.kf();l=_.M(l,_.x27);if(l!=null&&l.supportedTokens){l=_.B(l.supportedTokens);for(var D=l.next();!D.done;D=l.next())D=D.value,D.accountSigninToken&&_.KU(D.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.W.handleUpdatePermissionRoleCommand=function(l){if(l=_.M(l,_.j45)){var D;this.hasDelegation=!((D=_.M(l.renderer,_.xOy))==null||!D.status)}};
_.W.registerWithViewTransitionManager=function(){var l=_.Jc().resolve(_.G8(_.NB));if(l){var D,U=(D=this.guide)==null?void 0:D.querySelector("#scrim"),n;D=(n=this.guide)==null?void 0:n.querySelector("#contentContainer");U&&D&&l.isAnyTransitionEnabled&&(n={},l.viewTransitionCoordinator.registerElement(U,(n.slide="app-drawer-scrim-page-transition",n["lockup-to-watch"]="app-drawer-scrim-page-transition",n["learning-journey"]="app-drawer-scrim-page-transition",n)),U={},l.viewTransitionCoordinator.registerElement(D,
(U.slide="app-drawer-container-page-transition",U["lockup-to-watch"]="app-drawer-container-page-transition",U["learning-journey"]="app-drawer-container-page-transition",U)))}};
_.QP.Object.defineProperties(xL.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.q("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.QP.Object.defineProperties(xL,{template:{configurable:!0,enumerable:!0,get:function(){if(Yer===void 0){var l=document.createElement("template");_.e(l,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
l.content.insertBefore(_.H().content.cloneNode(!0),l.content.firstChild);Yer=l}l=Yer;return l}}});
xL.prototype.onOpenHotkeyDialog=xL.prototype.onOpenHotkeyDialog;xL.prototype.setFullscreen=xL.prototype.setFullscreen;xL.prototype.onAddElementToApp=xL.prototype.onAddElementToApp;xL.prototype.onDrawerIronSelect=xL.prototype.onDrawerIronSelect;xL.prototype.onGuideOpenButtonHover=xL.prototype.onGuideOpenButtonHover;xL.prototype.onRequestPanelModeChange=xL.prototype.onRequestPanelModeChange;xL.prototype.onPageDataUpdated=xL.prototype.onPageDataUpdated;xL.prototype.onPageChanged=xL.prototype.onPageChanged;
xL.prototype.onSetTheaterModeEnabled=xL.prototype.onSetTheaterModeEnabled;xL.prototype.updateMastheadData=xL.prototype.updateMastheadData;xL.prototype.onYtPageManagerAttached=xL.prototype.onYtPageManagerAttached;xL.prototype.observePersistentPanelVisibility=xL.prototype.observePersistentPanelVisibility;xL.prototype.observeGuideVisibility=xL.prototype.observeGuideVisibility;xL.prototype.guideIsVisibleButNotPersistentSelectorChanged=xL.prototype.guideIsVisibleButNotPersistentSelectorChanged;
xL.prototype.isInlinePreviewEnabledChanged=xL.prototype.isInlinePreviewEnabledChanged;xL.prototype.isWatchPageChanged=xL.prototype.isWatchPageChanged;xL.prototype.dispatchFrostedGlassMode=xL.prototype.dispatchFrostedGlassMode;_.E([_.m(_.l5),_.T("design:type",Object)],xL.prototype,"ytdReduxBehavior",void 0);_.E([_.m(_.NP.YtEventForwardingBehavior),_.T("design:type",Object)],xL.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.m(_.kk.YtOpenPopupBehavior),_.T("design:type",Object)],xL.prototype,"ytOpenPopupBehavior",void 0);_.E([_.m(_.K$.YtActionHandlerBehavior),_.T("design:type",Object)],xL.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.m({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.AH.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.q("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var l;((l=this.actionRouterNode.hostElement)!=null?l:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var l;((l=this.actionRouterNode.hostElement)!=null?l:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(l){this.actionRouter_.handleAction(l.detail)}}),
_.T("design:type",Object)],xL.prototype,"ytActionRouterBehavior",void 0);_.E([_.m(F15.YtdAppBehavior),_.T("design:type",Object)],xL.prototype,"ytdAppBehavior",void 0);_.E([_.m(_.d9.YtEndpointBehavior),_.T("design:type",Object)],xL.prototype,"ytEndpointBehavior",void 0);_.E([_.m(D6$.YtEndpointHandlerWithYpcBehavior),_.T("design:type",Object)],xL.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.E([_.m(OJ8.YtLogYpcFlowCommandsBehavior),_.T("design:type",Object)],xL.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.E([_.m(_.Y.YtRendererBehavior),_.T("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.E([_.m(_.la.YtComponentBehavior),_.T("design:type",Object)],xL.prototype,"ytComponentBehavior",void 0);_.E([_.K({selector:_.FX8}),_.T("design:type",Object)],xL.prototype,"tabGesturesIsActive",void 0);_.E([_.K(),_.T("design:type",Boolean)],xL.prototype,"renderGuide",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"guidePersistentAndVisible",void 0);_.E([_.K({selector:_.jnH}),_.T("design:type",Boolean)],xL.prototype,"guideIsVisibleButNotPersistent",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"standalone",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"miniGuideVisible",void 0);
_.E([_.K(),_.T("design:type",Object)],xL.prototype,"persistentPanelEnabled",void 0);_.E([_.K({selector:qfJ,reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"persistentPanelVisible",void 0);_.E([_.K({selector:_.FPo}),_.T("design:type",Number)],xL.prototype,"miniplayerPlaybackState",void 0);_.E([_.K({selector:_.Xo,reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"miniplayerIsActive",void 0);
_.E([_.K({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.T("design:type",Boolean)],xL.prototype,"isInlinePreviewEnabled",void 0);_.E([_.K(),_.T("design:type",Boolean)],xL.prototype,"isInlinePreviewDisabled",void 0);_.E([_.K({reflectToAttribute:!0,value:function(){return _.il("START_IN_FULL_WINDOW_MODE")}}),
_.T("design:type",Boolean)],xL.prototype,"mastheadHidden",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"playerFullscreen",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"fullscreen",void 0);_.E([_.K({value:!1,reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"hideHeaderShadow",void 0);
_.E([_.K({value:{GUIDE_ALT_LABEL:_.C3("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.T("design:type",Object)],xL.prototype,"menuStrings",void 0);_.E([_.K({computed:"computeTopbarData(data)"}),_.T("design:type",Object)],xL.prototype,"topbarData",void 0);_.E([_.K({selector:_.c9K,reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"isWatchPage",void 0);_.E([_.K({selector:_.pOs,reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"isShortsPage",void 0);
_.E([_.K({selector:function(l){return _.Ss(l)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.T("design:type",Boolean)],xL.prototype,"isMiniAppPage",void 0);_.E([_.K({selector:function(l){return _.Ss(l)==="WEB_PAGE_TYPE_BROWSE"}}),
_.T("design:type",Boolean)],xL.prototype,"isBrowsePage",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Boolean)],xL.prototype,"scrolling",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],xL.prototype,"hasDelegation",void 0);_.E([_.K({reflectToAttribute:!0,value:!1}),_.T("design:type",Boolean)],xL.prototype,"guideScrolledByTouch",void 0);_.E([_.K(),_.T("design:type",Object)],xL.prototype,"isFrostedGlassInitialized",void 0);
_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],xL.prototype,"frostedGlassExp",void 0);_.E([_.K({selector:function(l){return l.ui.chipBarIsSticky}}),
_.T("design:type",Boolean)],xL.prototype,"chipBarIsSticky",void 0);_.E([_.K({computed:"computeIsHomePage(isBrowsePage, data)"}),_.T("design:type",Boolean)],xL.prototype,"isHomePage",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],xL.prototype,"hasPendingWatchNavigation",void 0);_.E([_.K({reflectToAttribute:!0}),_.T("design:type",Object)],xL.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.E([_.K(),_.T("design:type",Object)],xL.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.E([_.hF("guide"),_.T("design:type",Object)],xL.prototype,"guide",void 0);_.E([_.hF("guide-service"),_.T("design:type",aa$)],xL.prototype,"guideService",void 0);_.E([_.hF("guide-inner-content"),_.T("design:type",HTMLDivElement)],xL.prototype,"guideInnerContent",void 0);_.E([_.gP("#persistent-panel-container"),_.T("design:type",HTMLElement)],xL.prototype,"persistentPanelContainer",void 0);
_.E([_.K({selector:_.ok9}),_.T("design:type",String)],xL.prototype,"frostedGlassMode",void 0);_.E([_.Pg("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xL.prototype,"dispatchFrostedGlassMode",null);_.E([_.K({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.T("design:type",Object)],xL.prototype,"isFrostedGlassDisabled",void 0);
_.E([_.Pg("isWatchPage"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xL.prototype,"isWatchPageChanged",null);_.E([_.t("isHomePage","chipBarIsSticky"),_.T("design:type",Boolean),_.T("design:paramtypes",[])],xL.prototype,"applyFrostedGlassToChipBar",null);_.E([_.K(),_.T("design:type",Object)],xL.prototype,"isChannelOrPlaylistPage",void 0);
_.E([_.GY("isInlinePreviewEnabled"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xL.prototype,"isInlinePreviewEnabledChanged",null);_.E([_.Pg("guideIsVisibleButNotPersistent"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xL.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.E([_.Pg("guidePersistentAndVisible","miniGuideVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xL.prototype,"observeGuideVisibility",null);_.E([_.Pg("persistentPanelVisible"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xL.prototype,"observePersistentPanelVisibility",null);
_.E([_.hj("attached"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],xL.prototype,"onYtPageManagerAttached",null);_.E([_.Pg("data"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype",Promise)],xL.prototype,"updateMastheadData",null);_.E([_.hj("yt-set-theater-mode-enabled"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent,Object]),_.T("design:returntype")],xL.prototype,"onSetTheaterModeEnabled",null);
_.E([_.hj("yt-page-type-changed"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],xL.prototype,"onPageChanged",null);_.E([_.hj("yt-page-data-updated"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xL.prototype,"onPageDataUpdated",null);_.E([_.hj("yt-request-panel-mode-change"),_.T("design:type",Function),_.T("design:paramtypes",[Event,Object]),_.T("design:returntype")],xL.prototype,"onRequestPanelModeChange",null);
_.E([_.hj("yt-guide-hover"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xL.prototype,"onGuideOpenButtonHover",null);_.E([_.hj("app-drawer-transitioned"),_.T("design:type",Function),_.T("design:paramtypes",[Event]),_.T("design:returntype")],xL.prototype,"onDrawerIronSelect",null);_.E([_.hj("yt-add-element-to-app"),_.T("design:type",Function),_.T("design:paramtypes",[CustomEvent]),_.T("design:returntype")],xL.prototype,"onAddElementToApp",null);
_.E([_.hj("yt-set-fullerscreen-styles"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xL.prototype,"setFullscreen",null);_.E([_.hj("yt-open-hotkey-dialog"),_.T("design:type",Function),_.T("design:paramtypes",[]),_.T("design:returntype")],xL.prototype,"onOpenHotkeyDialog",null);_.E([_.x({is:"ytd-app"})],xL);_.PN().processSignal("eor");
_.sd();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
